stencil.min.js 4.3 MB

1234
  1. /*!
  2. Stencil Compiler v2.15.1 | MIT Licensed | https://stenciljs.com
  3. */
  4. !function(e){"use strict";"undefined"==typeof globalThis&&("undefined"!=typeof self?self.globalThis=self:"undefined"!=typeof window?window.globalThis=window:"undefined"!=typeof global&&(global.globalThis=global));const t=globalThis.Buffer||{},r=globalThis.process||{};r.argv||(r.argv=[""]);let n="/";if(r.cwd||(r.cwd=()=>n),r.chdir||(r.chdir=e=>n=e),!r.nextTick){const e=Promise.resolve();r.nextTick=t=>e.then(t)}function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function a(e,t){for(var r,n="",i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),a=s,o=0;continue}}else if(2===n.length||1===n.length){n="",i=0,a=s,o=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&&-1!==o?++o:o=-1}return n}r.platform||(r.platform="stencil"),r.version||(r.version="v12.0.0"),r.browser=!!globalThis.location;var o={resolve(){for(var e,t="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=r.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=a(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=a(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(i(e),e.length>0&&47===e.charCodeAt(0)),join(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];i(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":o.normalize(e)},relative(e,t){if(i(e),i(t),e===t)return"";if((e=o.resolve(e))===(t=o.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,a=n-r,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var c=t.length-s,l=a<c?a:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(47===t.charCodeAt(s+d))return t.slice(s+d+1);if(0===d)return t.slice(s+d)}else a>l&&(47===e.charCodeAt(r+d)?u=d:0===d&&(u=0));break}var p=e.charCodeAt(r+d);if(p!==t.charCodeAt(s+d))break;47===p&&(u=d)}var _="";for(d=r+u+1;d<=n;++d)d!==n&&47!==e.charCodeAt(d)||(0===_.length?_+="..":_+="/..");return _.length>0?_+t.slice(s+u):(s+=u,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:e=>e,dirname(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,a=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!a){n=o;break}}else a=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,a=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!o){n=r+1;break}}else-1===c&&(o=!1,c=r+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(a=r):(s=-1,a=c))}return n===a?a=c:-1===a&&(a=e.length),e.slice(n,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){n=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":e.slice(n,a)},extname(e){i(e);for(var t=-1,r=0,n=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===n&&(a=!1,n=s+1),46===c?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!a){r=s+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)},format(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return((e,t)=>{var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n})(0,e)},parse(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),a=47===n;a?(t.root="/",r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if(47!==(n=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===n?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);else if(!l){s=u+1;break}return-1===o||-1===c||0===d||1===d&&o===c-1&&o===s+1?-1!==c&&(t.base=t.name=0===s&&a?e.slice(1,c):e.slice(s,c)):(0===s&&a?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(s,o),t.base=e.slice(s,c)),t.ext=e.slice(o,c)),s>0?t.dir=e.slice(0,s-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o;var s=o;const c=!("undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),l=!("win32"===(c?r.platform:"")),u="undefined"!=typeof location&&"undefined"!=typeof navigator&&"undefined"!=typeof XMLHttpRequest,d=u&&"undefined"!=typeof self&&"function"==typeof self.importScripts,p=u&&"function"==typeof Worker,_="function"==typeof fetch,f=c?require:()=>{},m=c?r.cwd:()=>"/",g="$",h="collection-manifest.json",y=(e,t)=>{let r=0;"shadow"===e.encapsulation?(r|=1,e.shadowDelegatesFocus&&(r|=16)):"scoped"===e.encapsulation&&(r|=2),"shadow"!==e.encapsulation&&e.htmlTagNames.includes("slot")&&(r|=4),e.hasMode&&(r|=32);const n=b(e,t),i=k(e);return N([r,e.tagName,Object.keys(n).length>0?n:void 0,i.length>0?i:void 0])},v=e=>{const t=JSON.stringify(e);return t.length>1e4?`JSON.parse(${JSON.stringify(t)})`:t},b=(e,t=!0)=>({...x(e.properties),...T(e.states),...t?C(e.methods):{}}),x=e=>{const t={};return e.forEach((e=>{t[e.name]=N([E(e),S(e)])})),t},E=e=>{let t=D(e.type);return e.mutable&&(t|=1024),e.reflect&&(t|=512),t},S=e=>{if("string"==typeof e.attribute){if(e.name===e.attribute)return;return e.attribute}},D=e=>"string"===e?1:"number"===e?2:"boolean"===e?4:"any"===e?8:16,T=e=>{const t={};return e.forEach((e=>{t[e.name]=[32]})),t},C=e=>{const t={};return e.forEach((e=>{t[e.name]=[64]})),t},k=e=>e.listeners.map((e=>[A(e),e.name,e.method])),A=e=>{let t=0;switch(e.capture&&(t|=2),e.passive&&(t|=1),e.target){case"document":t|=4;break;case"window":t|=8;break;case"body":t|=16;break;case"parent":t|=32}return t},N=e=>{const t=e;for(var r=t.length-1;r>=0&&!t[r];r--)t.pop();return t},w=e=>e.toLowerCase(),F=e=>w(e.replace(/([A-Z0-9])/g,(e=>" "+e[0])).trim().replace(/ /g,"-")),P=e=>w(e).split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(""),I=e=>e.charAt(0).toUpperCase()+e.slice(1),O=()=>{},M=(e,t)=>e.slice().sort(((e,r)=>{const n=t(e),i=t(r);return n<i?-1:n>i?1:0})),R=e=>e.flat?e.flat(1):e.reduce(((e,t)=>(e.push(...t),e)),[]),L=(e,t=(e=>e))=>{const r=new Set;return e.filter((e=>{const n=t(e);return null==n||!r.has(n)&&(r.add(n),!0)}))},B=(e,t)=>t.reduce(((t,r)=>(e[r]&&(t[r]=e[r]),t)),{}),j=e=>"boolean"==typeof e,U=e=>"function"==typeof e,V=e=>"number"==typeof e,z=e=>null!=e&&"object"==typeof e&&!1===Array.isArray(e),K=e=>"string"==typeof e,W=e=>(e=>null!=e)(e)&&U(e[Symbol.iterator]),H=e=>!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,J=e=>{const t={"{":"}","(":")","[":"]"},r=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(""===e)return!1;let n;for(;n=r.exec(e);){if(n[2])return!0;let r=n.index+n[0].length;const i=n[1],a=i?t[i]:null;if(i&&a){const t=e.indexOf(a,r);-1!==t&&(r=t+1)}e=e.slice(r)}return!1},$=e=>"/"===e||G.test(e),G=/^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?[\\/]$/,q=(e,t)=>{const r=[],n=[],i=new Set;for(let a=0;a<t.length;a++){const o=X(e,t[a]),s=o.absFilePath+o.code+o.messageText+o.type;if(i.has(s))continue;i.add(s);const c=r.length+n.length;"error"===o.level?r.push(o):c<Z&&n.push(o)}return[...r,...n]},X=(e,t)=>{if(t.messageText&&("string"==typeof t.messageText.message?t.messageText=t.messageText.message:"string"==typeof t.messageText&&0===t.messageText.indexOf("Error: ")&&(t.messageText=t.messageText.slice(7))),t.messageText&&t.messageText.includes("Cannot find name 'h'")){t.header='Missing "h" import for JSX types',t.messageText='In order to load accurate JSX types for components, the "h" function must be imported from "@stencil/core" by each component using JSX. For example: import { Component, h } from \'@stencil/core\';';try{const r=e.fs.readFileSync(t.absFilePath),n=Y(r);for(let e=0;e<n.length;e++){const r=n[e];if(r.includes("@stencil/core")){const i=[],a=e-1;if(a>-1){const e={lineIndex:a,lineNumber:a+1,text:n[a],errorCharStart:-1,errorLength:-1};i.push(e)}const o={lineIndex:e,lineNumber:e+1,text:r,errorCharStart:0,errorLength:-1};i.push(o),t.lineNumber=o.lineNumber,t.columnNumber=r.indexOf("}");const s=e+1;if(s<n.length){const e={lineIndex:s,lineNumber:s+1,text:n[s],errorCharStart:-1,errorLength:-1};i.push(e)}t.lines=i;break}}}catch(e){}}return t},Y=e=>"string"!=typeof e?[]:(e=e.replace(/\\r/g,"\n")).split("\n"),Q=e=>void 0===e?"undefined":null===e?"null":("string"!=typeof e&&(e=e.toString()),e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")),Z=25,ee=e=>{const t={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:null,absFilePath:null,lines:[]};return e&&e.push(t),t},te=e=>{const t={level:"warn",type:"build",header:"Build Warn",messageText:"build warn",relFilePath:null,absFilePath:null,lines:[]};return e.push(t),t},re=(e,t,r,n,i)=>{const a=ee(t);if(a.messageText=n,a.absFilePath=r,"string"==typeof i)try{const t=e.fs.readFileSync(r).replace(/\r/g,"\n").split("\n");for(let e=0;e<t.length;e++){const r=t[e],n=r.indexOf(i);if(n>-1){const o={lineIndex:e,lineNumber:e+1,text:r,errorCharStart:n,errorLength:i.length};if(a.lineNumber=o.lineNumber,a.columnNumber=n+1,a.lines.push(o),e>=0){const r={lineIndex:o.lineIndex-1,lineNumber:o.lineNumber-1,text:t[e-1],errorCharStart:-1,errorLength:-1};a.lines.unshift(r)}if(e<t.length){const r={lineIndex:o.lineIndex+1,lineNumber:o.lineNumber+1,text:t[e+1],errorCharStart:-1,errorLength:-1};a.lines.push(r)}break}}}catch(e){}return a},ne=(e,t,r)=>{const n={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:null,absFilePath:null,lines:[]};return K(r)?n.messageText=r.length?r:"UNKNOWN ERROR":null!=t&&(null!=t.stack?n.messageText=t.stack.toString():null!=t.message?n.messageText=t.message.length?t.message:"UNKNOWN ERROR":n.messageText=t.toString()),null==e||ae(n.messageText)||e.push(n),n},ie=e=>null!=e&&0!==e.length&&e.some((e=>"error"===e.level&&"runtime"!==e.type)),ae=e=>e===oe,oe="task canceled",se=(e,t,r,n)=>{const i=de(n.code),a={level:"error",type:"bundling",language:"javascript",code:n.code,header:"Rollup"+(i.length>0?": "+i:""),messageText:i,relFilePath:null,absFilePath:null,lines:[]};"debug"===e.logLevel&&n.stack?a.messageText=n.stack:n.message&&(a.messageText=n.message),n.plugin&&(a.messageText+=` (plugin: ${n.plugin}${n.hook?`, ${n.hook}`:""})`);const o=n.loc;if(null!=o){const e=o.file||n.id;if(K(e))try{const r=t.fs.readFileSync(e);if(r){a.absFilePath=e;try{const e=Y(r),t={lineIndex:o.line-1,lineNumber:o.line,text:e[o.line-1],errorCharStart:o.column,errorLength:0};a.lineNumber=t.lineNumber,a.columnNumber=t.errorCharStart;const n=t.text.slice(o.column);for(let e=0;e<n.length&&!ue.has(n.charAt(e));e++)t.errorLength++;if(a.lines.push(t),0===t.errorLength&&t.errorCharStart>0&&(t.errorLength=1,t.errorCharStart--),t.lineIndex>0){const r={lineIndex:t.lineIndex-1,lineNumber:t.lineNumber-1,text:e[t.lineIndex-1],errorCharStart:-1,errorLength:-1};a.lines.unshift(r)}if(t.lineIndex+1<e.length){const r={lineIndex:t.lineIndex+1,lineNumber:t.lineNumber+1,text:e[t.lineIndex+1],errorCharStart:-1,errorLength:-1};a.lines.push(r)}}catch(e){a.messageText+=`\nError parsing: ${a.absFilePath}, line: ${o.line}, column: ${o.column}`,a.debugText=r}}else"string"==typeof n.frame&&(a.messageText+="\n"+n.frame)}catch(e){}}r.diagnostics.push(a)},ce=(e,t)=>{const r=new Set;return n=>{if(null==n||le.has(n.code)||r.has(n.message))return;r.add(n.message);let i="";t&&(i=t.reduce(((e,t)=>(e.push(...t.cmps),e)),[]).join(", ").trim(),i.length&&(i+=": "));const a=te(e);a.header=`Bundling Warning ${n.code}`,a.messageText=i+(n.message||n)}},le=new Set(["THIS_IS_UNDEFINED","NON_EXISTENT_EXPORT","CIRCULAR_DEPENDENCY","EMPTY_BUNDLE","UNUSED_EXTERNAL_IMPORT"]),ue=new Set([" ","=",".",",","?",":",";","(",")","{","}","[","]","|","'",'"',"`"]),de=e=>"string"==typeof e?e.split("_").map((e=>I(e.toLowerCase()))).join(" "):(e||"").trim(),pe=e=>{if("string"!=typeof e)throw new Error("invalid path to normalize");e=_e(e.trim());const t=be(e,ge(e)),r=me(t),n=r[0],i=r[1],a=n+r.slice(1).join("/");return""===a?".":""===n&&i&&e.includes("/")&&!i.startsWith(".")&&!i.startsWith("@")?"./"+a:a},_e=e=>e.replace(fe,"/"),fe=/\\/g,me=e=>{if(!Array.isArray(e)||0===e.length)return[];const t=[e[0]];for(let r=1;r<e.length;r++){const n=e[r];if(n&&"."!==n){if(".."===n)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(n)}}return t},ge=e=>{const t=he(e);return t<0?~t:t},he=e=>{if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const r=e.indexOf(47===t?"/":"\\",2);return r<0?e.length:r+1}if(ye(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const r=e.indexOf("://");if(-1!==r){const t=r+"://".length,n=e.indexOf("/",t);if(-1!==n){const i=e.slice(0,r),a=e.slice(t,n);if("file"===i&&(""===a||"localhost"===a)&&ye(e.charCodeAt(n+1))){const t=ve(e,n+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(n+1)}return~e.length}return 0},ye=e=>e>=97&&e<=122||e>=65&&e<=90,ve=(e,t)=>{const r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){const r=e.charCodeAt(t+2);if(97===r||65===r)return t+3}return-1},be=(e,t)=>{const r=e.substring(0,t),n=e.substring(t).split("/"),i=n.length;return i>0&&!n[i-1]&&n.pop(),[r,...n]},xe=e=>pe(e.split("?")[0].replace(/\0/g,"")),Ee=(e,t)=>{if(!t)return e;const r=t.getSourceFile();if(!r)return e;e.absFilePath=pe(r.fileName);const n=r.text,i=Y(n),a=t.getStart(),o=t.getEnd(),s=r.getLineAndCharacterOfPosition(a),c={lineIndex:s.line,lineNumber:s.line+1,text:i[s.line],errorCharStart:s.character,errorLength:Math.max(o-a,1)};if(e.lineNumber=c.lineNumber,e.columnNumber=c.errorCharStart+1,e.lines.push(c),0===c.errorLength&&c.errorCharStart>0&&(c.errorLength=1,c.errorCharStart--),c.lineIndex>0){const t={lineIndex:c.lineIndex-1,lineNumber:c.lineNumber-1,text:i[c.lineIndex-1],errorCharStart:-1,errorLength:-1};e.lines.unshift(t)}if(c.lineIndex+1<i.length){const t={lineIndex:c.lineIndex+1,lineNumber:c.lineNumber+1,text:i[c.lineIndex+1],errorCharStart:-1,errorLength:-1};e.lines.push(t)}return e},Se=e=>{const t=[],r=Math.min(e.length,50);for(let n=0;n<r;n++)t.push(De(e[n]));return t},De=e=>{const t={level:"warn",type:"typescript",language:"typescript",header:"TypeScript",code:e.code.toString(),messageText:Te(e,e.messageText),relFilePath:null,absFilePath:null,lines:[]};if(1===e.category&&(t.level="error"),e.file){t.absFilePath=e.file.fileName;const r=e.file.text,n=Y(r),i=e.file.getLineAndCharacterOfPosition(e.start),a={lineIndex:i.line,lineNumber:i.line+1,text:n[i.line],errorCharStart:i.character,errorLength:Math.max(e.length,1)};if(t.lineNumber=a.lineNumber,t.columnNumber=a.errorCharStart+1,t.lines.push(a),0===a.errorLength&&a.errorCharStart>0&&(a.errorLength=1,a.errorCharStart--),a.lineIndex>0){const e={lineIndex:a.lineIndex-1,lineNumber:a.lineNumber-1,text:n[a.lineIndex-1],errorCharStart:-1,errorLength:-1};t.lines.unshift(e)}if(a.lineIndex+1<n.length){const e={lineIndex:a.lineIndex+1,lineNumber:a.lineNumber+1,text:n[a.lineIndex+1],errorCharStart:-1,errorLength:-1};t.lines.push(e)}}return t},Te=(e,t)=>{if("string"==typeof t)return t;if(void 0===t)return"";const r=[],n=e.file.fileName.includes("stencil.config");n&&r.push(2322);let i="";if(!r.includes(t.code)&&(i=t.messageText,W(t.next)))for(const r of t.next)i+=Te(e,r);return n&&(i=i.replace("type 'StencilConfig'","Stencil Config"),i=i.replace("Object literal may only specify known properties, but ",""),i=i.replace("Object literal may only specify known properties, and ","")),i.trim()},Ce=e=>!!K(e)&&((e=e.toLowerCase()).startsWith("https://")||e.startsWith("http://")),ke=e=>(K(e)&&(e=(e=(e=(e=e.split("?")[0]).split("#")[0]).split("&")[0]).split("=")[0],e=(e=F(e)).replace(/[|;$%@"<>()+,.{}_\!\/\\]/g,"-"),(e=(e=P(e)).length>1?e[0].toLowerCase()+e.slice(1):e.toLowerCase()).length>0&&!isNaN(e[0])&&(e="_"+e)),e),Ae=e=>{const{preamble:t}=e;if(!t)return"";const r=t.split("\n").map((e=>` * ${e}`));return r.unshift("/*!"),r.push(" */"),r.join("\n")},Ne=/\r?\n|\r/g;function we(e){return null==e?"":`${e.text.replace(Ne," ")}\n${e.tags.filter((e=>"internal"!==e.name)).map((e=>`@${e.name} ${(e.text||"").replace(Ne," ")}`)).join("\n")}`.trim()}const Fe=(e,t)=>K(t)?Pe(e,t):null,Pe=(e,t)=>{const r={diagnostic:null,data:null,filePath:t};if(K(e))try{r.data=JSON.parse(e)}catch(e){r.diagnostic=ee(),r.diagnostic.absFilePath=t,r.diagnostic.header="Error Parsing JSON",e instanceof Error&&(r.diagnostic.messageText=e.message)}else r.diagnostic=ee(),r.diagnostic.absFilePath=t,r.diagnostic.header="Error Parsing JSON",r.diagnostic.messageText="Invalid JSON input to parse";return r},Ie=["@stencil/core"],Oe=e=>{if("string"!=typeof e)return`Tag "${e}" must be a string type`;if(e!==e.trim())return"Tag can not contain white spaces";if(e!==e.toLowerCase())return"Tag can not contain upper case characters";if(0===e.length)return"Received empty tag value";if(e.indexOf(" ")>-1)return`"${e}" tag cannot contain a space`;if(e.indexOf(",")>-1)return`"${e}" tag cannot be used for multiple tags`;const t=e.replace(/\w|-/g,"");return""!==t?`"${e}" tag contains invalid characters: ${t}`:-1===e.indexOf("-")?`"${e}" tag must contain a dash (-) to work as a valid web component`:e.indexOf("--")>-1?`"${e}" tag cannot contain multiple dashes (--) next to each other`:0===e.indexOf("-")?`"${e}" tag cannot start with a dash (-)`:e.lastIndexOf("-")===e.length-1?`"${e}" tag cannot end with a dash (-)`:void 0},Me=e=>e?{file:e.file,mappings:e.mappings,names:e.names,sources:e.sources,sourcesContent:e.sourcesContent,version:e.version}:null,Re=e=>`\n${(e=>{return`//# sourceMappingURL=${t=e,encodeURIComponent(t).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16)))}`;var t})(e)}.map`;let Le,Be,je,Ue,Ve,ze,Ke,We,He,Je,$e,Ge,qe;const Xe={},Ye=e=>{e||(e=s),Object.assign(Xe,e);const t=Xe.normalize,r=Xe.join,n=Xe.relative,i=Xe.resolve;ze=Xe.normalize=(...e)=>pe(t.apply(Xe,e)),Ve=Xe.join=(...e)=>pe(r.apply(Xe,e)),We=Xe.relative=(...e)=>pe(n.apply(Xe,e)),He=Xe.resolve=(...e)=>pe(i.apply(Xe,e)),Le=Xe.basename,Be=Xe.dirname,je=Xe.extname,Ue=Xe.isAbsolute,Ke=Xe.parse,Je=Xe.sep,$e=Xe.delimiter,Ge=Xe.posix,Xe.win32?qe=Xe.win32:(qe={...Ge},qe.sep="\\")};Ye(c?f("path"):s);const Qe={__proto__:null,get basename(){return Le},get dirname(){return Be},get extname(){return je},get isAbsolute(){return Ue},get join(){return Ve},get normalize(){return ze},get parse(){return Ke},get relative(){return We},get resolve(){return He},get sep(){return Je},get delimiter(){return $e},get posix(){return Ge},get win32(){return qe},path:Xe,setPlatformPath:Ye,default:Xe};function Ze(e,t,r){return e(r={path:t,exports:{},require:(e,t)=>(()=>{throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})()},r.exports),r.exports}function et(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((r=>{var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})})),t}var tt=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).process;const rt=Object.assign(Object.create(null),tt,{default:tt}),nt=()=>{const e=[],t=t=>{const r=e.findIndex((e=>e.callback===t));return r>-1&&(e.splice(r,1),!0)};return{emit(t,r){const n=t.toLowerCase().trim(),i=e.slice();for(const e of i)if(null==e.eventName)try{e.callback(t,r)}catch(e){console.error(e)}else if(e.eventName===n)try{e.callback(r)}catch(e){console.error(e)}},on(r,n){if("function"==typeof r){const n=null,i=r;return e.push({eventName:n,callback:i}),()=>t(i)}if("string"==typeof r&&"function"==typeof n){const i=r.toLowerCase().trim(),a=n;return e.push({eventName:i,callback:a}),()=>t(a)}return()=>!1},unsubscribeAll(){e.length=0}}},it=()=>{let e=u,t="info";return{enableColors:t=>e=t,getLevel:()=>t,setLevel:e=>t=e,emoji:e=>e,info:console.log.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),red:e=>e,green:e=>e,yellow:e=>e,blue:e=>e,magenta:e=>e,cyan:e=>e,gray:e=>e,bold:e=>e,dim:e=>e,bgRed:e=>e,createTimeSpan:(e,t=!1)=>({duration:()=>0,finish:()=>0}),printDiagnostics(t){t.forEach((t=>at(t,e)))}}},at=(e,t)=>{let r=ct,n="Build",i="";"error"===e.level?(r=st,n="Error"):"warn"===e.level&&(r=ot,n="Warning"),e.header&&(n=e.header);const a=e.relFilePath||e.absFilePath;if(a&&(i+=a,"number"==typeof e.lineNumber&&e.lineNumber>0&&(i+=", line "+e.lineNumber,"number"==typeof e.columnNumber&&e.columnNumber>0&&(i+=", column "+e.columnNumber)),i+="\n"),i+=e.messageText,e.lines&&e.lines.length>0&&(e.lines.forEach((e=>{i+="\n"+e.lineNumber+": "+e.text})),i+="\n"),t){const e=["%c"+n,`background: ${r}; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;`];console.log(...e,i)}else"error"===e.level?console.error(i):"warn"===e.level?console.warn(i):console.log(i)},ot="#f39c12",st="#c0392b",ct="#3498db",lt=[".tsx",".ts",".mjs",".js",".jsx",".json",".md"],ut=["package.json","index.js","index.mjs"],dt=e=>e.endsWith(".d.ts"),pt=e=>!dt(e)&&e.endsWith(".ts"),_t=e=>e.endsWith(".tsx"),ft=e=>e.endsWith(".jsx"),mt=e=>e.endsWith(".js"),gt=(e,t)=>e+"/"+t,ht=e=>lt.some((t=>e.endsWith(t))),yt=(e,t)=>{try{const r=JSON.parse(t);r.name&&r.version&&((e,t,r)=>{e.set(t,r)})(e,r.name,r.version)}catch(e){}},vt=e=>e.startsWith(".")||e.startsWith("/"),bt=e=>_&&u&&xt(e),xt=e=>pe(e).split("/").includes("node_modules"),Et=e=>{e.startsWith("~")&&(e=e.substring(1));const t=e.split("/"),r={moduleId:null,filePath:null,scope:null,scopeSubModuleId:null};return e.startsWith("@")&&t.length>1?(r.moduleId=t.slice(0,2).join("/"),r.filePath=t.slice(2).join("/"),r.scope=t[0],r.scopeSubModuleId=t[1]):(r.moduleId=t[0],r.filePath=t.slice(1).join("/")),r},St=(e,t)=>{const r=pe(e).split("/"),n=Et(t);for(let e=r.length-1;e>=1;e--)if("node_modules"===r[e-1])if(n.scope){if(r[e]===n.scope&&r[e+1]===n.scopeSubModuleId)return r.slice(0,e+2).join("/")}else if(r[e]===n.moduleId)return r.slice(0,e+1).join("/");return null},Dt=new Map,Tt=new Set,Ct=(e,t)=>{let r=(t=pe(t)).split("/");const n=r.lastIndexOf("node_modules");return n>-1&&n<r.length-1&&(r=r.slice(n+1),r=r[0].startsWith("@")?r.slice(2):r.slice(1),t=r.join("/")),new URL("./"+t,(e=>new URL("../",e).href)(e)).href},kt=(e,t,r,n)=>At(e,t,r)+"/"+n,At=(e,t,r)=>{let n=(r=pe(r)).split("/").filter((e=>e.length));const i=n.lastIndexOf("node_modules");i>-1&&i<n.length-1&&(n=n.slice(i+1));let a=n.shift();a.startsWith("@")&&(a+="/"+n.shift());const o=n.join("/");if("@stencil/core"===a){const t=e.getCompilerExecutingPath();return Ct(t,o)}return e.getRemoteModuleUrl({moduleId:a,version:t.get(a),path:o})},Nt=e=>{if(pt(e)||_t(e))return!0;const t=e.split("/"),r=t[t.length-2],n=t[t.length-1];return!("node_modules"!==r||!ht(n))},wt=e=>Ft.some((t=>e.endsWith(t))),Ft=["/@stencil/core/internal.js","/@stencil/core/internal.json","/@stencil/core/internal.mjs","/@stencil/core/internal/stencil-core.js/index.json","/@stencil/core/internal/stencil-core.js.json","/@stencil/core/internal/stencil-core.js/package.json","/@stencil/core.js","/@stencil/core.json","/@stencil/core.mjs","/@stencil/core.css","/@stencil/core/index.js","/@stencil/core/index.json","/@stencil/core/index.mjs","/@stencil/core/index.css","/@stencil/package.json"],Pt=async(e,t,r,n,i)=>{if(!(Nt(i)||Tt.has(n)||wt(n)))try{const a=await((e,t,r)=>(console.trace(t),e&&U(e.fetch)?e.fetch(t,r):fetch(t,r)))(e,n);if(a){if(a.ok){const o=await a.clone().text();return await(async(e,t,r,n,i,a)=>{r.endsWith("package.json")&&yt(a,i);let o=Be(n);for(;"/"!==o&&""!==o;)t?(t.clearFileCache(o),await t.sys.createDir(o)):await e.createDir(o),o=Be(o);t?(t.clearFileCache(n),await t.sys.writeFile(n,i)):await e.writeFile(n,i)})(e,t,n,i,o,r),o}404===a.status&&Tt.add(n)}}catch(e){console.error(e)}},It=(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))},Ot=(...e)=>e.forEach((e=>console.log(e))),Mt=e=>"function"==typeof e[Mt.custom]?function(...t){return e[Mt.custom].apply(this,t)}:function(...t){return new Promise(((r,n)=>{t.push(((e,t)=>{null!=e?n(e):r(t)})),e.apply(this,t)}))};Mt.custom=Symbol("promisify.custom");const Rt={inherits:It,inspect:Ot,promisify:Mt},Lt={__proto__:null,inherits:It,inspect:Ot,promisify:Mt,default:Rt};class Bt extends Error{constructor(e,t,r="ENOENT",n=-2){super(`ENOENT: no such file or directory, ${e} '${t}'`),this.syscall=e,this.path=t,this.code=r,this.errno=n}}const jt={__sys:{}},Ut=jt.exists=(e,t)=>{jt.__sys.access(e).then(t).catch((()=>t(!1)))};Ut[Mt.custom]=e=>jt.__sys.access(e);const Vt=jt.existsSync=e=>jt.__sys.accessSync(e),zt=jt.mkdir=(e,t,r)=>{r="function"==typeof r?r:"function"==typeof t?t:null,t="function"==typeof t?void 0:t,jt.__sys.createDir(e,t).then((t=>{r&&(t.error?r(new Bt("mkdir",e)):r(null))})).catch((e=>{r&&r(e)}))},Kt=jt.mkdirSync=(e,t)=>{if(jt.__sys.createDirSync(e,t).error)throw new Bt("mkdir",e)},Wt=jt.readdirSync=e=>jt.__sys.readDirSync(e).map((e=>Le(e))),Ht=jt.readFile=async(e,t,r)=>{const n="object"==typeof t?t.encoding:"string"==typeof t?t:"utf-8";r="function"==typeof r?r:"function"==typeof t?t:null,jt.__sys.readFile(e,n).then((t=>{r&&r("string"==typeof t?null:new Bt("open",e),t)})).catch((e=>{r&&r(e)}))},Jt=jt.readFileSync=(e,t)=>{const r="object"==typeof t?t.encoding:"string"==typeof t?t:"utf-8",n=jt.__sys.readFileSync(e,r);if("string"!=typeof n)throw new Bt("open",e);return n},$t=jt.realpath=(e,t,r)=>{r="function"==typeof r?r:"function"==typeof t?t:null,jt.__sys.realpath(e).then((e=>{r&&r(e.error,e.path)})).catch((e=>{r&&r(e)}))},Gt=jt.realpathSync=e=>{const t=jt.__sys.realpathSync(e);if(t.error)throw t.error;return pe(t.path)},qt=jt.statSync=e=>{const t=jt.__sys.statSync(e);if(t.error)throw new Bt("statSync",e);return{isDirectory:()=>t.isDirectory,isFile:()=>t.isFile,isSymbolicLink:()=>t.isSymbolicLink,size:t.size,mtimeMs:t.mtimeMs}},Xt=jt.lstatSync=qt,Yt=jt.stat=(e,t,r)=>{r="function"==typeof r?r:"function"==typeof t?t:null,jt.__sys.stat(e).then((t=>{r&&(t.error?r(new Bt("stat",e)):r({isDirectory:()=>t.isDirectory,isFile:()=>t.isFile,isSymbolicLink:()=>t.isSymbolicLink,size:t.size,mtimeMs:t.mtimeMs}))})).catch((e=>{r&&r(e)}))},Qt=jt.watch=()=>{throw new Error("fs.watch() not implemented")},Zt=jt.writeFile=(e,t,r,n)=>{n="function"==typeof n?n:"function"==typeof r?r:null,jt.__sys.writeFile(e,t).then((t=>{n&&(t.error?n(new Bt("writeFile",e)):n(null))})).catch((e=>{n&&n(e)}))},er={__proto__:null,exists:Ut,existsSync:Vt,mkdir:zt,mkdirSync:Kt,readdirSync:Wt,readFile:Ht,readFileSync:Jt,realpath:$t,realpathSync:Gt,statSync:qt,lstatSync:Xt,stat:Yt,watch:Qt,writeFile:Zt,default:jt};var tr=()=>{var e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;var t=(new Error).stack;return Error.prepareStackTrace=e,t[2].getFileName()},rr=Ze((e=>{var t="win32"===r.platform,n=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,i={parse:e=>{if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t,r=(t=e,n.exec(t).slice(1));if(!r||5!==r.length)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0]===r[1]?r[0]:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}}},a=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,o={parse:e=>{if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t,r=(t=e,a.exec(t).slice(1));if(!r||5!==r.length)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}}};e.exports=t?i.parse:o.parse,e.exports.posix=o.parse,e.exports.win32=i.parse}));const nr=et(Qe);var ir=nr.parse||rr,ar=(e,t)=>{var r="/";/^([A-Za-z]:)/.test(e)?r="":/^\\\\/.test(e)&&(r="\\\\");for(var n=[e],i=ir(e);i.dir!==n[n.length-1];)n.push(i.dir),i=ir(i.dir);return n.reduce(((e,n)=>e.concat(t.map((e=>nr.resolve(r,n,e))))),[])},or=(e,t,r)=>{var n=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&"function"==typeof t.paths)return t.paths(r,e,(()=>ar(e,n)),t);var i=ar(e,n);return t&&t.paths?i.concat(t.paths):i},sr=(e,t)=>t||{},cr="Function.prototype.bind called on incompatible ",lr=Array.prototype.slice,ur=Object.prototype.toString,dr="[object Function]",pr=(Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||ur.call(t)!==dr)throw new TypeError(cr+t);for(var r,n=lr.call(arguments,1),i=function(){if(this instanceof r){var i=t.apply(this,n.concat(lr.call(arguments)));return Object(i)===i?i:this}return t.apply(e,n.concat(lr.call(arguments)))},a=Math.max(0,t.length-n.length),o=[],s=0;s<a;s++)o.push("$"+s);if(r=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var c=()=>{};c.prototype=t.prototype,r.prototype=new c,c.prototype=null}return r}).call(Function.call,Object.prototype.hasOwnProperty);const _r={assert:!0,"assert/strict":">= 15",async_hooks:">= 8",buffer_ieee754:"< 0.9.7",buffer:!0,child_process:!0,cluster:!0,console:!0,constants:!0,crypto:!0,_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,diagnostics_channel:">= 15.1",dns:!0,"dns/promises":">= 15",domain:">= 0.7.12",events:!0,freelist:"< 6",fs:!0,"fs/promises":[">= 10 && < 10.1",">= 14"],_http_agent:">= 0.11.1",_http_client:">= 0.11.1",_http_common:">= 0.11.1",_http_incoming:">= 0.11.1",_http_outgoing:">= 0.11.1",_http_server:">= 0.11.1",http:!0,http2:">= 8.8",https:!0,inspector:">= 8.0.0",_linklist:"< 8",module:!0,net:!0,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12",os:!0,path:!0,"path/posix":">= 15.3","path/win32":">= 15.3",perf_hooks:">= 8.5",process:">= 1",punycode:!0,querystring:!0,readline:!0,repl:!0,smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4",_stream_transform:">= 0.9.4",_stream_wrap:">= 1.4.1",_stream_passthrough:">= 0.9.4",_stream_readable:">= 0.9.4",_stream_writable:">= 0.9.4",stream:!0,"stream/promises":">= 15",string_decoder:!0,sys:[">= 0.6 && < 0.7",">= 0.8"],timers:!0,"timers/promises":">= 15",_tls_common:">= 0.11.13",_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3",tls:!0,trace_events:">= 10",tty:!0,url:!0,util:!0,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],v8:">= 1",vm:!0,wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7",zlib:!0};function fr(e,t){for(var r=e.split("."),n=t.split(" "),i=n.length>1?n[0]:"=",a=(n.length>1?n[1]:n[0]).split("."),o=0;o<3;++o){var s=parseInt(r[o]||0,10),c=parseInt(a[o]||0,10);if(s!==c)return"<"===i?s<c:">="===i&&s>=c}return">="===i}function mr(e,t){var r=t.split(/ ?&& ?/);if(0===r.length)return!1;for(var n=0;n<r.length;++n)if(!fr(e,r[n]))return!1;return!0}var gr=(e,t)=>pr(_r,e)&&((e,t)=>{if("boolean"==typeof t)return t;var n=void 0===e?r.versions&&r.versions.node&&r.versions.node:e;if("string"!=typeof n)throw new TypeError(void 0===e?"Unable to determine current node version":"If provided, a valid node version is required");if(t&&"object"==typeof t){for(var i=0;i<t.length;++i)if(mr(n,t[i]))return!0;return!1}return mr(n,t)})(t,_r[e]);const hr=et(er);var yr=hr.realpath&&"function"==typeof hr.realpath.native?hr.realpath.native:hr.realpath,vr=(e,t)=>{hr.stat(e,((e,r)=>e?"ENOENT"===e.code||"ENOTDIR"===e.code?t(null,!1):t(e):t(null,r.isFile()||r.isFIFO())))},br=(e,t)=>{hr.stat(e,((e,r)=>e?"ENOENT"===e.code||"ENOTDIR"===e.code?t(null,!1):t(e):t(null,r.isDirectory())))},xr=(e,t)=>{yr(e,((r,n)=>{r&&"ENOENT"!==r.code?t(r):t(null,r?e:n)}))},Er=(e,t,r,n)=>{r&&!1===r.preserveSymlinks?e(t,n):n(null,t)},Sr=(e,t,r)=>{e(t,((e,t)=>{if(e)r(e);else try{var n=JSON.parse(t);r(null,n)}catch(e){r(null)}}))},Dr=(e,t,n)=>{var i=n,a=t;if("function"==typeof t&&(i=a,a={}),"string"!=typeof e){var o=new TypeError("Path must be a string.");return r.nextTick((()=>{i(o)}))}var s=(a=sr(0,a)).isFile||vr,c=a.isDirectory||br,l=a.readFile||hr.readFile,u=a.realpath||xr,d=a.readPackage||Sr;if(a.readFile&&a.readPackage){var p=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return r.nextTick((()=>{i(p)}))}var _=a.packageIterator,f=a.extensions||[".js"],m=!1!==a.includeCoreModules,g=a.basedir||nr.dirname(tr()),h=a.filename||g;a.paths=a.paths||[];var y,v=nr.resolve(g);function b(t,r,n){t?i(t):r?i(null,r,n):S(y,((t,r,n)=>{if(t)i(t);else if(r)Er(u,r,a,((e,t)=>{e?i(e):i(null,t,n)}));else{var o=new Error("Cannot find module '"+e+"' from '"+h+"'");o.code="MODULE_NOT_FOUND",i(o)}}))}function x(e,t,r){var n=t,i=r;"function"==typeof n&&(i=n,n=void 0),function e(t,r,n){if(0===t.length)return i(null,void 0,n);var o=r+t[0],c=n;function l(n,l,d){if(c=l,n)return i(n);if(d&&c&&a.pathFilter){var p=nr.relative(d,o),_=p.slice(0,p.length-t[0].length),m=a.pathFilter(c,r,_);if(m)return e([""].concat(f.slice()),nr.resolve(d,m),c)}s(o,u)}function u(n,a){return n?i(n):a?i(null,o,c):(e(t.slice(1),r,c),void 0)}c?l(null,c):E(nr.dirname(o),l)}([""].concat(f),e,n)}function E(e,t){return""===e||"/"===e||"win32"===r.platform&&/^\w:[/\\]*$/.test(e)||/[/\\]node_modules[/\\]*$/.test(e)?t(null):(Er(u,e,a,((r,n)=>{if(r)return E(nr.dirname(e),t);var i=nr.join(n,"package.json");s(i,((r,n)=>{if(!n)return E(nr.dirname(e),t);d(l,i,((r,n)=>{r&&t(r);var o=n;o&&a.packageFilter&&(o=a.packageFilter(o,i)),t(null,o,e)}))}))})),void 0)}function S(e,t,r){var n=r,i=t;"function"==typeof i&&(n=i,i=a.package),Er(u,e,a,((t,r)=>{if(t)return n(t);var o=nr.join(r,"package.json");s(o,((t,r)=>t?n(t):r?(d(l,o,((t,r)=>{if(t)return n(t);var i=r;if(i&&a.packageFilter&&(i=a.packageFilter(i,o)),i&&i.main){if("string"!=typeof i.main){var s=new TypeError("package “"+i.name+"” `main` must be a string");return s.code="INVALID_PACKAGE_MAIN",n(s)}return"."!==i.main&&"./"!==i.main||(i.main="index"),x(nr.resolve(e,i.main),i,((t,r,i)=>t?n(t):r?n(null,r,i):i?(S(nr.resolve(e,i.main),i,((t,r,i)=>t?n(t):r?n(null,r,i):(x(nr.join(e,"index"),i,n),void 0))),void 0):x(nr.join(e,"index"),i,n))),void 0}x(nr.join(e,"/index"),i,n)})),void 0):x(nr.join(e,"index"),i,n)))}))}function D(e,t){if(0===t.length)return e(null,void 0);var r=t[0];function n(t,n,o){return t?e(t):n?e(null,n,o):(S(r,a.package,i),void 0)}function i(r,n,i){return r?e(r):n?e(null,n,i):(D(e,t.slice(1)),void 0)}c(nr.dirname(r),((i,o)=>i?e(i):o?(x(r,a.package,n),void 0):D(e,t.slice(1))))}Er(u,v,a,((t,r)=>{t?i(t):!(t=>{if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))y=nr.resolve(t,e),"."!==e&&".."!==e&&"/"!==e.slice(-1)||(y+="/"),/\/$/.test(e)&&y===t?S(y,a.package,b):x(y,a.package,b);else{if(m&&gr(e))return i(null,e);!((e,t,r)=>{var n=()=>((e,t,r)=>{for(var n=or(t,r,e),i=0;i<n.length;i++)n[i]=nr.join(n[i],e);return n})(e,t,a);D(r,_?_(e,t,n,a):n())})(e,t,((t,r,n)=>{if(t)i(t);else{if(r)return Er(u,r,a,((e,t)=>{e?i(e):i(null,t,n)}));var o=new Error("Cannot find module '"+e+"' from '"+h+"'");o.code="MODULE_NOT_FOUND",i(o)}}))}})(r)}))};const Tr={assert:!0,"assert/strict":">= 15",async_hooks:">= 8",buffer_ieee754:"< 0.9.7",buffer:!0,child_process:!0,cluster:!0,console:!0,constants:!0,crypto:!0,_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,diagnostics_channel:">= 15.1",dns:!0,"dns/promises":">= 15",domain:">= 0.7.12",events:!0,freelist:"< 6",fs:!0,"fs/promises":[">= 10 && < 10.1",">= 14"],_http_agent:">= 0.11.1",_http_client:">= 0.11.1",_http_common:">= 0.11.1",_http_incoming:">= 0.11.1",_http_outgoing:">= 0.11.1",_http_server:">= 0.11.1",http:!0,http2:">= 8.8",https:!0,inspector:">= 8.0.0",_linklist:"< 8",module:!0,net:!0,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12",os:!0,path:!0,"path/posix":">= 15.3","path/win32":">= 15.3",perf_hooks:">= 8.5",process:">= 1",punycode:!0,querystring:!0,readline:!0,repl:!0,smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4",_stream_transform:">= 0.9.4",_stream_wrap:">= 1.4.1",_stream_passthrough:">= 0.9.4",_stream_readable:">= 0.9.4",_stream_writable:">= 0.9.4",stream:!0,"stream/promises":">= 15",string_decoder:!0,sys:[">= 0.6 && < 0.7",">= 0.8"],timers:!0,"timers/promises":">= 15",_tls_common:">= 0.11.13",_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3",tls:!0,trace_events:">= 10",tty:!0,url:!0,util:!0,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],v8:">= 1",vm:!0,wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7",zlib:!0};var Cr=r.versions&&r.versions.node&&r.versions.node.split(".")||[];function kr(e){for(var t=e.split(" "),r=t.length>1?t[0]:"=",n=(t.length>1?t[1]:t[0]).split("."),i=0;i<3;++i){var a=parseInt(Cr[i]||0,10),o=parseInt(n[i]||0,10);if(a!==o)return"<"===r?a<o:">="===r&&a>=o}return">="===r}function Ar(e){var t=e.split(/ ?&& ?/);if(0===t.length)return!1;for(var r=0;r<t.length;++r)if(!kr(t[r]))return!1;return!0}function Nr(e){if("boolean"==typeof e)return e;if(e&&"object"==typeof e){for(var t=0;t<e.length;++t)if(Ar(e[t]))return!0;return!1}return Ar(e)}var wr={};for(var Fr in Tr)Object.prototype.hasOwnProperty.call(Tr,Fr)&&(wr[Fr]=Nr(Tr[Fr]));var Pr=wr,Ir=hr.realpathSync&&"function"==typeof hr.realpathSync.native?hr.realpathSync.native:hr.realpathSync,Or=e=>{try{var t=hr.statSync(e)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return!1;throw e}return t.isFile()||t.isFIFO()},Mr=e=>{try{var t=hr.statSync(e)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return!1;throw e}return t.isDirectory()},Rr=e=>{try{return Ir(e)}catch(e){if("ENOENT"!==e.code)throw e}return e},Lr=(e,t,r)=>r&&!1===r.preserveSymlinks?e(t):t,Br=(e,t)=>{var r=e(t);try{return JSON.parse(r)}catch(e){}};Dr.core=Pr,Dr.isCore=e=>gr(e),Dr.sync=(e,t)=>{if("string"!=typeof e)throw new TypeError("Path must be a string.");var n=sr(0,t),i=n.isFile||Or,a=n.readFileSync||hr.readFileSync,o=n.isDirectory||Mr,s=n.realpathSync||Rr,c=n.readPackageSync||Br;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var l=n.packageIterator,u=n.extensions||[".js"],d=!1!==n.includeCoreModules,p=n.basedir||nr.dirname(tr()),_=n.filename||p;n.paths=n.paths||[];var f=Lr(s,nr.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var m=nr.resolve(f,e);"."!==e&&".."!==e&&"/"!==e.slice(-1)||(m+="/");var g=v(m)||x(m);if(g)return Lr(s,g,n)}else{if(d&&gr(e))return e;var h=((e,t)=>{for(var r=()=>((e,t,r)=>{for(var n=or(t,r,e),i=0;i<n.length;i++)n[i]=nr.join(n[i],e);return n})(e,t,n),i=l?l(e,t,r,n):r(),a=0;a<i.length;a++){var s=i[a];if(o(nr.dirname(s))){var c=v(s);if(c)return c;var u=x(s);if(u)return u}}})(e,f);if(h)return Lr(s,h,n)}var y=new Error("Cannot find module '"+e+"' from '"+_+"'");throw y.code="MODULE_NOT_FOUND",y;function v(e){var t=b(nr.dirname(e));if(t&&t.dir&&t.pkg&&n.pathFilter){var r=nr.relative(t.dir,e),a=n.pathFilter(t.pkg,e,r);a&&(e=nr.resolve(t.dir,a))}if(i(e))return e;for(var o=0;o<u.length;o++){var s=e+u[o];if(i(s))return s}}function b(e){if(""!==e&&"/"!==e&&!("win32"===r.platform&&/^\w:[/\\]*$/.test(e)||/[/\\]node_modules[/\\]*$/.test(e))){var t=nr.join(Lr(s,e,n),"package.json");if(!i(t))return b(nr.dirname(e));var o=c(a,t);return o&&n.packageFilter&&(o=n.packageFilter(o,e)),{pkg:o,dir:e}}}function x(e){var t=nr.join(Lr(s,e,n),"/package.json");if(i(t)){try{var r=c(a,t)}catch(e){}if(r&&n.packageFilter&&(r=n.packageFilter(r,e)),r&&r.main){if("string"!=typeof r.main){var o=new TypeError("package “"+r.name+"” `main` must be a string");throw o.code="INVALID_PACKAGE_MAIN",o}"."!==r.main&&"./"!==r.main||(r.main="index");try{var l=v(nr.resolve(e,r.main));if(l)return l;var u=x(nr.resolve(e,r.main));if(u)return u}catch(e){}}}return v(nr.join(e,"/index"))}};var jr=Dr;const Ur=(e,t,r)=>{const n=Vr(e,t,r.exts);return n.basedir=Be(xe(r.containingFile)),r.packageFilter?n.packageFilter=r.packageFilter:null!==r.packageFilter&&(n.packageFilter=e=>(K(e.main)&&""!==e.main||(e.main="package.json"),e)),new Promise(((e,t)=>{jr(r.moduleId,n,((n,i,a)=>{if(n)t(n);else{i=pe(i);const t={moduleId:r.moduleId,resolveId:i,pkgData:a,pkgDirPath:St(i,r.moduleId)};e(t)}}))}))},Vr=(e,t,r)=>({async isFile(n,i){const a=xe(n);if((await t.stat(a)).isFile)return i(null,!0),void 0;if(bt(a)&&r.some((e=>a.endsWith(e)))){const r=At(e,Dt,a);return i(null,"string"==typeof await Pt(e,t,Dt,r,a)),void 0}i(null,!1)},async isDirectory(r,n){const i=xe(r);if((await t.stat(i)).isDirectory)return n(null,!0),void 0;if(bt(i)){if("node_modules"===Le(i))return t.sys.createDirSync(i),t.clearFileCache(i),n(null,!0),void 0;if(ht(i))return n(null,!1),void 0;for(const r of ut){const a=kt(e,Dt,i,r),o=gt(i,r),s=await Pt(e,t,Dt,a,o);if(K(s))return n(null,!0),void 0}}n(null,!1)},async readFile(e,r){const n=xe(e),i=await t.readFile(n);return K(i)?r(null,i):r(`readFile not found: ${e}`)},async realpath(t,r){const n=xe(t),i=await e.realpath(n);i.error&&"ENOENT"!==i.error.code?r(i.error):r(null,i.error?n:i.path)},extensions:r}),zr="4.5.4",Kr="2.15.1",Wr={stencil:Kr,parse5:"6.0.1",rollup:"2.42.3",sizzle:"2.42.3",terser:"5.6.1",typescript:zr},Hr=e=>{const t=e&&e.logger?e.logger:it(),r=new Map,n=new Set,i=e=>n.add(e),a=e=>n.delete(e),o=nt(),c=u&&navigator.hardwareConcurrency||1,l=e=>{if("/"===e||""===e)return"/";const t=Be(e),r=Le(e);return t.endsWith("/")?pe(`${t}${r}`):pe(`${t}/${r}`)},_=e=>{const t=r.get(l(e));return!(!t||!(t.isDirectory||t.isFile&&"string"==typeof t.data))},f=(e,t)=>{e=l(e);const r={basename:Le(e),dirname:Be(e),path:e,newDirs:[],error:null};return m(e,t,r),r},m=(e,t,n)=>{const i=Be(e);t&&t.recursive&&!$(i)&&m(i,t,n);const a=r.get(e);a?(a.isDirectory=!0,a.isFile=!1):(r.set(e,{basename:Le(e),dirname:i,isDirectory:!0,isFile:!1,watcherCallbacks:null,data:void 0}),n.newDirs.push(e),D(e,new Set))},g=e=>{e=l(e);const t=[],n=r.get(e);return n&&n.isDirectory&&r.forEach(((r,n)=>{"/"!==n&&(r.isDirectory||r.isFile&&"string"==typeof r.data)&&(e.endsWith("/")&&`${e}${r.basename}`===n||`${e}/${r.basename}`===n)&&t.push(n)})),t.sort()},h=e=>{e=l(e);const t=r.get(e);if(t&&t.isFile)return t.data},y=e=>({path:l(e),error:null}),v=(e,t,n)=>{const i=E(e);if(!i.error&&!n.error)if(i.isFile){const i=Be(t),a=f(i,{recursive:!0}),o=r.get(e).data,s=T(t,o);n.newDirs.push(...a.newDirs),n.renamed.push({oldPath:e,newPath:t,isDirectory:!1,isFile:!0}),s.error?n.error=s.error:n.newFiles.push(t)}else if(i.isDirectory){const r=g(e),i=f(t,{recursive:!0});n.newDirs.push(...i.newDirs),n.renamed.push({oldPath:e,newPath:t,isDirectory:!0,isFile:!1});for(const i of r){const r=i.replace(e,t);v(i,r,n)}}},b=(e,t={})=>{const r={basename:Le(e),dirname:Be(e),path:e,removedDirs:[],removedFiles:[],error:null};return x(e,t,r),r},x=(e,t,n)=>{if(!n.error){e=l(e);const i=g(e);if(t&&t.recursive)for(const e of i){const i=r.get(e);if(i)if(i.isDirectory)x(e,t,n);else if(i.isFile){const t=S(e);t.error?n.error=t.error:n.removedFiles.push(e)}}else if(i.length>0)return n.error="cannot delete directory that contains files/subdirectories",void 0;r.delete(e),D(e,new Set),n.removedDirs.push(e)}},E=e=>{e=l(e);const t=r.get(e);return t&&(t.isDirectory||t.isFile&&"string"==typeof t.data)?{isDirectory:t.isDirectory,isFile:t.isFile,isSymbolicLink:!1,size:t.isFile&&t.data?t.data.length:0,error:null}:{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,error:`ENOENT: no such file or directory, statSync '${e}'`}},S=e=>{e=l(e);const t={basename:Le(e),dirname:Be(e),path:e,error:null},n=r.get(e);if(n){if(n.watcherCallbacks)for(const t of n.watcherCallbacks)t(e,"fileDelete");r.delete(e),D(e,new Set)}return t},D=(e,t)=>{const n=l(Be(e)),i=r.get(n);if(i&&i.isDirectory&&i.watcherCallbacks)for(const t of i.watcherCallbacks)t(e,null);t.has(n)||(t.add(n),D(n,t))},T=(e,t)=>{const n={path:e=l(e),error:null},i=r.get(e);if(i){const r=i.data!==t;if(i.data=t,r&&i.watcherCallbacks)for(const t of i.watcherCallbacks)t(e,"fileUpdate")}else r.set(e,{basename:Le(e),dirname:Be(e),isDirectory:!1,isFile:!0,watcherCallbacks:null,data:t}),D(e,new Set);return n},C="undefined"!=typeof self?null===self||void 0===self?void 0:self.fetch:"undefined"!=typeof window?null===window||void 0===window?void 0:window.fetch:"undefined"!=typeof global?null===global||void 0===global?void 0:global.fetch:void 0,k=Promise.resolve();f("/");const A={name:"in-memory",version:Kr,events:o,access:async e=>_(e),accessSync:_,addDestory:i,copyFile:async(e,t)=>(T(t,h(e)),!0),createDir:async(e,t)=>f(e,t),createDirSync:f,homeDir:()=>(void 0)(),isTTY(){var e;return!!(null===(e=null==rt?void 0:tt.stdout)||void 0===e?void 0:e.isTTY)},getEnvironmentVar:e=>null==rt?void 0:tt.env[e],async destroy(){const e=[];n.forEach((r=>{try{const t=r();t&&t.then&&e.push(t)}catch(e){t.error(`stencil sys destroy: ${e}`)}})),await Promise.all(e),n.clear()},encodeToBase64:e=>btoa(unescape(encodeURIComponent(e))),exit:async e=>t.warn(`exit ${e}`),getCurrentDirectory:()=>"/",getCompilerExecutingPath:()=>d?location.href:A.getRemoteModuleUrl({moduleId:"@stencil/core",path:"compiler/stencil.min.js"}),getLocalModulePath:e=>Ve(e.rootDir,"node_modules",e.moduleId,e.path),getRemoteModuleUrl(e){const t=`${e.moduleId}${e.version?"@"+e.version:""}/${e.path}`;return new URL(t,"https://cdn.jsdelivr.net/npm/").href},hardwareConcurrency:c,isSymbolicLink:async e=>!1,nextTick:e=>k.then(e),normalizePath:l,platformPath:s,readDir:async e=>g(e),readDirSync:g,readFile:async e=>h(e),readFileSync:h,realpath:async e=>y(e),realpathSync:y,removeDestory:a,async rename(e,t){const r={oldPath:e=pe(e),newPath:t=pe(t),renamed:[],oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],isFile:!1,isDirectory:!1,error:null},n=E(e);if(n.error)r.error=`${e} does not exist`;else if(n.isFile?r.isFile=!0:n.isDirectory&&(r.isDirectory=!0),v(e,t,r),!r.error)if(r.isDirectory){const t=b(e,{recursive:!0});t.error?r.error=t.error:(r.oldDirs.push(...t.removedDirs),r.oldFiles.push(...t.removedFiles))}else if(r.isFile){const t=S(e);t.error?r.error=t.error:r.oldFiles.push(e)}return r},fetch:C,resolvePath:e=>l(e),removeDir:async(e,t={})=>b(e,t),removeDirSync:b,stat:async e=>E(e),statSync:E,tmpDirSync:()=>"/.tmp",removeFile:async e=>S(e),removeFileSync:S,watchDirectory(e,t){e=l(e);const n=r.get(e),o=()=>{const n=r.get(e);if(n&&n.watcherCallbacks){const e=n.watcherCallbacks.indexOf(t);e>-1&&n.watcherCallbacks.splice(e,1)}};return i(o),n?(n.isDirectory=!0,n.isFile=!1,n.watcherCallbacks=n.watcherCallbacks||[],n.watcherCallbacks.push(t)):r.set(e,{basename:Le(e),dirname:Be(e),isDirectory:!0,isFile:!1,watcherCallbacks:[t],data:void 0}),{close(){a(o),o()}}},watchFile(e,t){e=l(e);const n=r.get(e),o=()=>{const n=r.get(e);if(n&&n.watcherCallbacks){const e=n.watcherCallbacks.indexOf(t);e>-1&&n.watcherCallbacks.splice(e,1)}};return i(o),n?(n.isDirectory=!1,n.isFile=!0,n.watcherCallbacks=n.watcherCallbacks||[],n.watcherCallbacks.push(t)):r.set(e,{basename:Le(e),dirname:Be(e),isDirectory:!1,isFile:!0,watcherCallbacks:[t],data:void 0}),{close(){a(o),o()}}},watchTimeout:32,writeFile:async(e,t)=>T(e,t),writeFileSync:T,async generateContentHash(e,t){const r=await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e));let n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("");return"number"==typeof t&&(n=n.slice(0,t)),n},createWorkerController:p?e=>((e,t)=>{let r,n=0,i=!1,a=!1,o=0;const s=new Map,c=[],l=[],u=Math.max(Math.min(t,e.hardwareConcurrency),2)-1,d=Promise.resolve(),p=e=>console.error(e),_=()=>{let t=null;const n=e.getCompilerExecutingPath(),a={name:"stencil.worker."+o++};try{t=new Worker(n,a)}catch(e){null==r&&(r=new Blob([`importScripts('${n}');`],{type:"application/javascript"})),t=new Worker(URL.createObjectURL(r),a)}const c={worker:t,activeTasks:0,sendQueue:[]};return t.onerror=p,t.onmessage=e=>((e,t)=>{if(!i){const r=t.data;if(Array.isArray(r))for(const t of r)if(t){const r=s.get(t.stencilId);r?(s.delete(t.stencilId),t.stencilRtnError?r.reject(t.stencilRtnError):r.resolve(t.stencilRtnValue),e.activeTasks--,(e.activeTasks<0||e.activeTasks>50)&&(e.activeTasks=0)):t.stencilRtnError&&console.error(t.stencilRtnError)}}})(c,e),c},f=e=>{e.sendQueue.length>0&&(e.worker.postMessage(e.sendQueue),e.sendQueue.length=0)},m=e=>{let t;if(l.length>0){if(t=l[0],u>1){for(const e of l)e.activeTasks<t.activeTasks&&(t=e);t.activeTasks>0&&l.length<u&&(t=_(),l.push(t))}}else t=_(),l.push(t);t.activeTasks++,t.sendQueue.push(e)},g=()=>{a=!1,c.forEach(m),c.length=0,l.forEach(f)},h=(...e)=>new Promise(((t,r)=>{if(i)r(oe);else{const i={stencilId:n++,args:e};c.push(i),s.set(i.stencilId,{resolve:t,reject:r}),a||(a=!0,d.then(g))}}));return{send:h,destroy(){i=!0,s.forEach((e=>e.reject(oe))),s.clear(),l.forEach((e=>e.worker.terminate())),l.length=0},handler(e){return(...t)=>h(e,...t)},maxWorkers:u}})(A,e):null,details:{cpuModel:"",freemem:()=>0,platform:"",release:"",totalmem:0},copy:async(e,r)=>(t.info("todo, copy task",e.length,r),{diagnostics:[],dirPaths:[],filePaths:[]}),resolveModuleId(e){return Ur(A,null,e)}};return A};let Jr;const $r={overrideBrowserslist:["last 2 versions","iOS >= 9","Android >= 4.4","Explorer >= 11","ExplorerMobile >= 11"],cascade:!1,remove:!1,flexbox:"no-2009"},Gr=(e,t)=>{let r=1,n=1;const i=[],a=e=>{const t=e.match(/\n/g);t&&(r+=t.length);const i=e.lastIndexOf("\n");n=~i?e.length-i:n+e.length},o=()=>{const e={line:r,column:n};return t=>(t.position=new T(e),p(),t)},s=a=>{const o=e.split("\n"),s={level:"error",type:"css",language:"css",header:"CSS Parse",messageText:a,absFilePath:t,lines:[{lineIndex:r-1,lineNumber:r,errorCharStart:n,text:e[r-1]}]};if(r>1){const t={lineIndex:r-1,lineNumber:r-1,text:e[r-2],errorCharStart:-1,errorLength:-1};s.lines.unshift(t)}if(r+2<o.length){const e={lineIndex:r,lineNumber:r+1,text:o[r],errorCharStart:-1,errorLength:-1};s.lines.push(e)}return i.push(s),null},c=()=>u(/^{\s*/),l=()=>u(/^}/),u=t=>{const r=t.exec(e);if(!r)return;const n=r[0];return a(n),e=e.slice(n.length),r},d=()=>{let t;const r=[];for(p(),_(r);e.length&&"}"!==e.charAt(0)&&(t=S()||D());)!1!==t&&(r.push(t),_(r));return r},p=()=>u(/^\s*/),_=e=>{let t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e},f=()=>{const t=o();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return null;let r=2;for(;""!==e.charAt(r)&&("*"!==e.charAt(r)||"/"!==e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return s("End of comment missing");const i=e.slice(2,r-2);return n+=2,a(i),e=e.slice(r),n+=2,t({type:1,comment:i})},m=()=>{const e=u(/^([^{]+)/);return e?qr(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(e=>e.replace(/,/g,"‌"))).split(/\s*(?![^(]*\)),\s*/).map((e=>e.replace(/\u200C/g,","))):null},g=()=>{const e=o();let t=u(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return null;if(t=qr(t[0]),!u(/^:\s*/))return s("property missing ':'");const r=u(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),n=e({type:4,property:t.replace(Yr,""),value:r?qr(r[0]).replace(Yr,""):""});return u(/^[;\s]*/),n},h=()=>{const e=[];if(!c())return s("missing '{'");let t;for(_(e);t=g();)!1!==t&&(e.push(t),_(e));return l()?e:s("missing '}'")},y=()=>{let e;const t=[],r=o();for(;e=u(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),u(/^,\s*/);return t.length?r({type:9,values:t,declarations:h()}):null},v=(e,t)=>{const r=new RegExp("^@"+e+"\\s*([^;]+);");return()=>{const n=o(),i=u(r);if(!i)return null;const a={type:t};return a[e]=i[1].trim(),n(a)}},b=v("import",7),x=v("charset",0),E=v("namespace",11),S=()=>"@"!==e[0]?null:(()=>{const e=o();let t=u(/^@([-\w]+)?keyframes\s*/);if(!t)return null;const r=t[1];if(t=u(/^([-\w]+)\s*/),!t)return s("@keyframes missing name");const n=t[1];if(!c())return s("@keyframes missing '{'");let i,a=_();for(;i=y();)a.push(i),a=a.concat(_());return l()?e({type:8,name:n,vendor:r,keyframes:a}):s("@keyframes missing '}'")})()||(()=>{const e=o(),t=u(/^@media *([^{]+)/);if(!t)return null;const r=qr(t[1]);if(!c())return s("@media missing '{'");const n=_().concat(d());return l()?e({type:10,media:r,rules:n}):s("@media missing '}'")})()||(()=>{const e=o(),t=u(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);return t?e({type:2,name:qr(t[1]),media:qr(t[2])}):null})()||(()=>{const e=o(),t=u(/^@supports *([^{]+)/);if(!t)return null;const r=qr(t[1]);if(!c())return s("@supports missing '{'");const n=_().concat(d());return l()?e({type:15,supports:r,rules:n}):s("@supports missing '}'")})()||b()||x()||E()||(()=>{const e=o(),t=u(/^@([-\w]+)?document *([^{]+)/);if(!t)return null;const r=qr(t[1]),n=qr(t[2]);if(!c())return s("@document missing '{'");const i=_().concat(d());return l()?e({type:3,document:n,vendor:r,rules:i}):s("@document missing '}'")})()||(()=>{const e=o();if(!u(/^@page */))return null;const t=m()||[];if(!c())return s("@page missing '{'");let r,n=_();for(;r=g();)n.push(r),n=n.concat(_());return l()?e({type:12,selectors:t,declarations:n}):s("@page missing '}'")})()||(()=>{const e=o();if(!u(/^@host\s*/))return null;if(!c())return s("@host missing '{'");const t=_().concat(d());return l()?e({type:6,rules:t}):s("@host missing '}'")})()||(()=>{const e=o();if(!u(/^@font-face\s*/))return null;if(!c())return s("@font-face missing '{'");let t,r=_();for(;t=g();)r.push(t),r=r.concat(_());return l()?e({type:5,declarations:r}):s("@font-face missing '}'")})(),D=()=>{const e=o(),t=m();return t?(_(),e({type:13,selectors:t,declarations:h()})):s("selector missing")};class T{constructor(e){this.start=e,this.end={line:r,column:n},this.source=t}}return T.prototype.content=e,{diagnostics:i,...Xr((()=>{const e=d();return{type:14,stylesheet:{source:t,rules:e}}})())}},qr=e=>e?e.trim():"",Xr=(e,t)=>{const r=e&&"string"==typeof e.type,n=r?e:t;for(const t in e){const r=e[t];Array.isArray(r)?r.forEach((e=>{Xr(e,n)})):r&&"object"==typeof r&&Xr(r,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e},Yr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Qr=e=>{Zr.all.length=Zr.tags.length=Zr.classNames.length=Zr.ids.length=Zr.attrs.length=0;const t=(e=e.replace(/\./g," .").replace(/\#/g," #").replace(/\[/g," [").replace(/\>/g," > ").replace(/\+/g," + ").replace(/\~/g," ~ ").replace(/\*/g," * ").replace(/\:not\((.*?)\)/g," ")).split(" ");for(let e=0,r=t.length;e<r;e++)t[e]=t[e].split(":")[0],0!==t[e].length&&("."===t[e].charAt(0)?Zr.classNames.push(t[e].slice(1)):"#"===t[e].charAt(0)?Zr.ids.push(t[e].slice(1)):"["===t[e].charAt(0)?(t[e]=t[e].slice(1).split("=")[0].split("]")[0].trim(),Zr.attrs.push(t[e].toLowerCase())):/[a-z]/g.test(t[e].charAt(0))&&Zr.tags.push(t[e].toLowerCase()));return Zr.classNames=Zr.classNames.sort(((e,t)=>e.length<t.length?-1:e.length>t.length?1:0)),Zr},Zr={all:[],tags:[],classNames:[],ids:[],attrs:[]},en=(e,t,r,n)=>{const i=t.type;return 4===i?rn(t,r,n):13===i?tn(e,t):1===i?"!"===t.comment[0]?`/*${t.comment}*/`:"":10===i?nn(e,t):8===i?an(e,t):9===i?on(e,t):5===i?sn(e,t):15===i?cn(e,t):7===i?"@import "+t.import+";":0===i?"@charset "+t.charset+";":12===i?ln(e,t):6===i?"@host{"+dn(e,t.rules)+"}":2===i?"@custom-media "+t.name+" "+t.media+";":3===i?un(e,t):11===i?"@namespace "+t.namespace+";":""},tn=(e,t)=>{const r=t.declarations,n=e.usedSelectors,i=t.selectors.slice();if(null==r||0===r.length)return"";if(n){let t,r,a=!0;for(t=i.length-1;t>=0;t--){const o=Qr(i[t]);a=!0;let s=o.classNames.length;if(s>0&&e.hasUsedClassNames)for(r=0;r<s;r++)if(!n.classNames.has(o.classNames[r])){a=!1;break}if(a&&e.hasUsedTags&&(s=o.tags.length,s>0))for(r=0;r<s;r++)if(!n.tags.has(o.tags[r])){a=!1;break}if(a&&e.hasUsedAttrs&&(s=o.attrs.length,s>0))for(r=0;r<s;r++)if(!n.attrs.has(o.attrs[r])){a=!1;break}if(a&&e.hasUsedIds&&(s=o.ids.length,s>0))for(r=0;r<s;r++)if(!n.ids.has(o.ids[r])){a=!1;break}a||i.splice(t,1)}}if(0===i.length)return"";const a=[];let o="";for(const e of t.selectors)o=pn(e),a.includes(o)||a.push(o);return`${a}{${dn(e,r)}}`},rn=(e,t,r)=>""===e.value?"":r-1===t?e.property+":"+e.value:e.property+":"+e.value+";",nn=(e,t)=>{const r=dn(e,t.rules);return""===r?"":"@media "+_n(t.media)+"{"+r+"}"},an=(e,t)=>{const r=dn(e,t.keyframes);return""===r?"":"@"+(t.vendor||"")+"keyframes "+t.name+"{"+r+"}"},on=(e,t)=>t.values.join(",")+"{"+dn(e,t.declarations)+"}",sn=(e,t)=>{const r=dn(e,t.declarations);return""===r?"":"@font-face{"+r+"}"},cn=(e,t)=>{const r=dn(e,t.rules);return""===r?"":"@supports "+t.supports+"{"+r+"}"},ln=(e,t)=>"@page "+t.selectors.join(", ")+"{"+dn(e,t.declarations)+"}",un=(e,t)=>{const r=dn(e,t.rules),n="@"+(t.vendor||"")+"document "+t.document;return""===r?"":n+"{"+r+"}"},dn=(e,t)=>{let r="";if(t)for(let n=0,i=t.length;n<i;n++)r+=en(e,t[n],n,i);return r},pn=e=>{let t="",r="",n=!1;for(let i=0,a=(e=e.trim()).length;i<a;i++)if(r=e[i],"["===r&&"\\"!==t[t.length-1]?n=!0:"]"===r&&"\\"!==t[t.length-1]&&(n=!1),!n&&fn.test(r)){if(mn.test(e[i+1]))continue;if(gn.test(t[t.length-1]))continue;t+=" "}else t+=r;return t},_n=e=>{let t="",r="";for(let n=0,i=(e=e.trim()).length;n<i;n++)if(r=e[n],fn.test(r)){if(fn.test(t[t.length-1]))continue;t+=" "}else t+=r;return t},fn=/\s/,mn=/[>\(\)\~\,\+\s]/,gn=/[>\(\~\,\+]/,hn=async e=>{const t=Gr(e.css);return ie(t.diagnostics)?e.css:(U(e.resolveUrl)&&t.stylesheet&&Array.isArray(t.stylesheet.rules)&&await yn(t.stylesheet.rules,e.resolveUrl),((e,t)=>{const r={}.usedSelectors||null,n={usedSelectors:r||null,hasUsedAttrs:!!r&&r.attrs.size>0,hasUsedClassNames:!!r&&r.classNames.size>0,hasUsedIds:!!r&&r.ids.size>0,hasUsedTags:!!r&&r.tags.size>0},i=e.rules;if(!i)return"";const a=i.length,o=[];for(let e=0;e<a;e++)o.push(en(n,i[e],e,a));return o.join("")})(t.stylesheet))},yn=async(e,t,r)=>{for(const r of e){if(4===r.type&&K(r.value)&&r.value.includes("url(")){const e=r.value.split(",").map((e=>e.trim()));for(let r=0;r<e.length;r++){const n=/url\((.*?)\)/.exec(e[r]);if(n)try{const i=n[1].replace(/(\'|\")/g,""),a=await t(i);e[r]=e[r].replace(i,a)}catch(e){}}r.value=e.join(",")}Array.isArray(r.declarations)&&await yn(r.declarations,t),Array.isArray(r.rules)&&await yn(r.rules,t),Array.isArray(r.keyframes)&&await yn(r.keyframes,t)}},vn=async e=>{let t={output:e.input,diagnostics:[]};return!1!==e.autoprefixer&&null!==e.autoprefixer&&(t=await(async(e,t)=>{const r={output:e,diagnostics:[]};if(!c)return r;try{const n=(e=>{const{postcss:t,autoprefixer:r}=f("../sys/node/autoprefixer.js");return Jr||(Jr=t([r(e)])),Jr})(null!=t&&"object"==typeof t?t:$r),i=await n.process(e,{map:null});i.warnings().forEach((e=>{r.diagnostics.push({header:`Autoprefix CSS: ${e.plugin}`,messageText:e.text,level:"warn",type:"css"})})),r.output=i.css}catch(e){const t={header:"Autoprefix CSS",messageText:"CSS Error"+e,level:"error",type:"css"};if("string"==typeof e.name&&(t.header=e.name),"string"==typeof e.reason&&(t.messageText=e.reason),"string"==typeof e.source&&"number"==typeof e.line){const r=e.source.replace(/\r/g,"\n").split("\n");if(r.length>0){const n=e=>{const n=r[e];if("string"==typeof n){const e={lineIndex:-1,lineNumber:-1,text:n,errorCharStart:-1,errorLength:-1};t.lines=t.lines||[],t.lines.push(e)}};n(e.line-3),n(e.line-2),n(e.line-1),n(e.line),n(e.line+1),n(e.line+2),n(e.line+3)}}r.diagnostics.push(t)}return r})(e.input,e.autoprefixer),ie(t.diagnostics))||!1!==e.minify&&(t.output=await hn({css:t.output,resolveUrl:e.resolveUrl})),t};var bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),xn=e=>{if(0<=e&&e<bn.length)return bn[e];throw new TypeError("Must be between 0 and 63: "+e)},En=e=>{var t,r="",n=(e=>e<0?1+(-e<<1):0+(e<<1))(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=xn(t)}while(n>0);return r},Sn=(e,t,r)=>{var n,i,a,o,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1==(i=65<=(s=e.charCodeAt(t++))&&s<=90?s-65:97<=s&&s<=122?s-97+26:48<=s&&s<=57?s-48+52:43==s?62:47==s?63:-1))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),l+=(i&=31)<<u,u+=5}while(n);r.value=(o=(a=l)>>1,1==(1&a)?-o:o),r.rest=t},Dn=Ze(((e,t)=>{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(o=c[u])?c.splice(u,1):".."===o?l++:l>0&&(""===o?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=e=>"/"===e.charAt(0)||r.test(e),t.relative=(e,t)=>{""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:e=>u(e)?"$"+e:e,t.fromSetString=c?l:e=>u(e)?e.slice(1):e,t.compareByOriginalPositions=(e,t,r)=>{var n=d(e.source,t.source);return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=(e,t,r)=>{var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=(e,t)=>{var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.parseSourceMapInput=e=>JSON.parse(e.replace(/^\)]}'[^\n]*\n/,"")),t.computeSourceURL=(e,t,r)=>{if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}})),Tn=Object.prototype.hasOwnProperty,Cn="undefined"!=typeof Map;function kn(){this._array=[],this._set=Cn?new Map:Object.create(null)}kn.fromArray=(e,t)=>{for(var r=new kn,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},kn.prototype.size=function(){return Cn?this._set.size:Object.getOwnPropertyNames(this._set).length},kn.prototype.add=function(e,t){var r=Cn?e:Dn.toSetString(e),n=Cn?this.has(e):Tn.call(this._set,r),i=this._array.length;n&&!t||this._array.push(e),n||(Cn?this._set.set(e,i):this._set[r]=i)},kn.prototype.has=function(e){if(Cn)return this._set.has(e);var t=Dn.toSetString(e);return Tn.call(this._set,t)},kn.prototype.indexOf=function(e){if(Cn){var t=this._set.get(e);if(t>=0)return t}else{var r=Dn.toSetString(e);if(Tn.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},kn.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},kn.prototype.toArray=function(){return this._array.slice()};var An=kn;function Nn(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Nn.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Nn.prototype.add=function(e){var t,r,n,i,a,o;r=e,n=(t=this._last).generatedLine,i=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,i>n||i==n&&o>=a||Dn.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Nn.prototype.toArray=function(){return this._sorted||(this._array.sort(Dn.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var wn=An,Fn={MappingList:Nn}.MappingList;function Pn(e){e||(e={}),this._file=Dn.getArg(e,"file",null),this._sourceRoot=Dn.getArg(e,"sourceRoot",null),this._skipValidation=Dn.getArg(e,"skipValidation",!1),this._sources=new wn,this._names=new wn,this._mappings=new Fn,this._sourcesContents=null}Pn.prototype._version=3,Pn.fromSourceMap=e=>{var t=e.sourceRoot,r=new Pn({file:e.file,sourceRoot:t});return e.eachMapping((e=>{var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=Dn.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((n=>{var i=n;null!==t&&(i=Dn.relative(t,n)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(n);null!=a&&r.setSourceContent(n,a)})),r},Pn.prototype.addMapping=function(e){var t=Dn.getArg(e,"generated"),r=Dn.getArg(e,"original",null),n=Dn.getArg(e,"source",null),i=Dn.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},Pn.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=Dn.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Dn.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[Dn.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Pn.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var i=this._sourceRoot;null!=i&&(n=Dn.relative(i,n));var a=new wn,o=new wn;this._mappings.unsortedForEach((t=>{if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=Dn.join(r,t.source)),null!=i&&(t.source=Dn.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||o.has(l)||o.add(l)}),this),this._sources=a,this._names=o,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=Dn.join(r,t)),null!=i&&(t=Dn.relative(i,t)),this.setSourceContent(t,n))}),this)},Pn.prototype._validateMapping=(e,t,r,n)=>{if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},Pn.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,c=0,l=0,u="",d=this._mappings.toArray(),p=0,_=d.length;p<_;p++){if(e="",(t=d[p]).generatedLine!==a)for(i=0;t.generatedLine!==a;)e+=";",a++;else if(p>0){if(!Dn.compareByGeneratedPositionsInflated(t,d[p-1]))continue;e+=","}e+=En(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=En(n-l),l=n,e+=En(t.originalLine-1-s),s=t.originalLine-1,e+=En(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=En(r-c),c=r)),u+=e}return u},Pn.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=Dn.relative(t,e));var r=Dn.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},Pn.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},Pn.prototype.toString=function(){return JSON.stringify(this.toJSON())};var In={SourceMapGenerator:Pn},On=Ze(((e,t)=>{function r(e,n,i,a,o,s){var c=Math.floor((n-e)/2)+e,l=o(i,a[c],!0);return 0===l?c:l>0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:c:c-e>1?r(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=(e,n,i,a)=>{if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}}));function Mn(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Rn(e,t,r,n){if(r<n){var i=r-1;Mn(e,(c=r,l=n,Math.round(c+Math.random()*(l-c))),n);for(var a=e[n],o=r;o<n;o++)t(e[o],a)<=0&&Mn(e,i+=1,o);Mn(e,i+1,o);var s=i+1;Rn(e,t,r,s-1),Rn(e,t,s+1,n)}var c,l}var Ln=An,Bn=(e,t)=>{Rn(e,t,0,e.length-1)};function jn(e,t){var r=e;return"string"==typeof e&&(r=Dn.parseSourceMapInput(e)),null!=r.sections?new Wn(r,t):new Vn(r,t)}jn.fromSourceMap=(e,t)=>Vn.fromSourceMap(e,t),jn.prototype._version=3,jn.prototype.__generatedMappings=null,Object.defineProperty(jn.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),jn.prototype.__originalMappings=null,Object.defineProperty(jn.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),jn.prototype._charIsMappingSeparator=(e,t)=>{var r=e.charAt(t);return";"===r||","===r},jn.prototype._parseMappings=(e,t)=>{throw new Error("Subclasses must implement _parseMappings")},jn.GENERATED_ORDER=1,jn.ORIGINAL_ORDER=2,jn.GREATEST_LOWER_BOUND=1,jn.LEAST_UPPER_BOUND=2,jn.prototype.eachMapping=function(e,t,r){var n,i=t||null;switch(r||jn.GENERATED_ORDER){case jn.GENERATED_ORDER:n=this._generatedMappings;break;case jn.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=Dn.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},jn.prototype.allGeneratedPositionsFor=function(e){var t=Dn.getArg(e,"line"),r={source:Dn.getArg(e,"source"),originalLine:t,originalColumn:Dn.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var n=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",Dn.compareByOriginalPositions,On.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:Dn.getArg(a,"generatedLine",null),column:Dn.getArg(a,"generatedColumn",null),lastColumn:Dn.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:Dn.getArg(a,"generatedLine",null),column:Dn.getArg(a,"generatedColumn",null),lastColumn:Dn.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};var Un=jn;function Vn(e,t){var r=e;"string"==typeof e&&(r=Dn.parseSourceMapInput(e));var n=Dn.getArg(r,"version"),i=Dn.getArg(r,"sources"),a=Dn.getArg(r,"names",[]),o=Dn.getArg(r,"sourceRoot",null),s=Dn.getArg(r,"sourcesContent",null),c=Dn.getArg(r,"mappings"),l=Dn.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=Dn.normalize(o)),i=i.map(String).map(Dn.normalize).map((e=>o&&Dn.isAbsolute(o)&&Dn.isAbsolute(e)?Dn.relative(o,e):e)),this._names=Ln.fromArray(a.map(String),!0),this._sources=Ln.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((e=>Dn.computeSourceURL(o,e,t))),this.sourceRoot=o,this.sourcesContent=s,this._mappings=c,this._sourceMapURL=t,this.file=l}function zn(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Vn.prototype=Object.create(jn.prototype),Vn.prototype.consumer=jn,Vn.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=Dn.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},Vn.fromSourceMap=(e,t)=>{var r=Object.create(Vn.prototype),n=r._names=Ln.fromArray(e._names.toArray(),!0),i=r._sources=Ln.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map((e=>Dn.computeSourceURL(r.sourceRoot,e,t)));for(var a=e._mappings.toArray().slice(),o=r.__generatedMappings=[],s=r.__originalMappings=[],c=0,l=a.length;c<l;c++){var u=a[c],d=new zn;d.generatedLine=u.generatedLine,d.generatedColumn=u.generatedColumn,u.source&&(d.source=i.indexOf(u.source),d.originalLine=u.originalLine,d.originalColumn=u.originalColumn,u.name&&(d.name=n.indexOf(u.name)),s.push(d)),o.push(d)}return Bn(r.__originalMappings,Dn.compareByOriginalPositions),r},Vn.prototype._version=3,Object.defineProperty(Vn.prototype,"sources",{get(){return this._absoluteSources.slice()}}),Vn.prototype._parseMappings=function(e,t){for(var r,n,i,a,o,s=1,c=0,l=0,u=0,d=0,p=0,_=e.length,f=0,m={},g={},h=[],y=[];f<_;)if(";"===e.charAt(f))s++,f++,c=0;else if(","===e.charAt(f))f++;else{for((r=new zn).generatedLine=s,a=f;a<_&&!this._charIsMappingSeparator(e,a);a++);if(i=m[n=e.slice(f,a)])f+=n.length;else{for(i=[];f<a;)Sn(e,f,g),o=g.value,f=g.rest,i.push(o);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");m[n]=i}r.generatedColumn=c+i[0],c=r.generatedColumn,i.length>1&&(r.source=d+i[1],d+=i[1],r.originalLine=l+i[2],l=r.originalLine,r.originalLine+=1,r.originalColumn=u+i[3],u=r.originalColumn,i.length>4&&(r.name=p+i[4],p+=i[4])),y.push(r),"number"==typeof r.originalLine&&h.push(r)}Bn(y,Dn.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,Bn(h,Dn.compareByOriginalPositions),this.__originalMappings=h},Vn.prototype._findMapping=(e,t,r,n,i,a)=>{if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return On.search(e,t,i,a)},Vn.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},Vn.prototype.originalPositionFor=function(e){var t={generatedLine:Dn.getArg(e,"line"),generatedColumn:Dn.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",Dn.compareByGeneratedPositionsDeflated,Dn.getArg(e,"bias",jn.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=Dn.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),i=Dn.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=Dn.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:Dn.getArg(n,"originalLine",null),column:Dn.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},Vn.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((e=>null==e))},Vn.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var n,i=e;if(null!=this.sourceRoot&&(i=Dn.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=Dn.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},Vn.prototype.generatedPositionFor=function(e){var t=Dn.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:Dn.getArg(e,"line"),originalColumn:Dn.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",Dn.compareByOriginalPositions,Dn.getArg(e,"bias",jn.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:Dn.getArg(i,"generatedLine",null),column:Dn.getArg(i,"generatedColumn",null),lastColumn:Dn.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var Kn=Vn;function Wn(e,t){var r=e;"string"==typeof e&&(r=Dn.parseSourceMapInput(e));var n=Dn.getArg(r,"version"),i=Dn.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Ln,this._names=new Ln;var a={line:-1,column:0};this._sections=i.map((e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");var r=Dn.getArg(e,"offset"),n=Dn.getArg(r,"line"),i=Dn.getArg(r,"column");if(n<a.line||n===a.line&&i<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=r,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new jn(Dn.getArg(e,"map"),t)}}))}Wn.prototype=Object.create(jn.prototype),Wn.prototype.constructor=jn,Wn.prototype._version=3,Object.defineProperty(Wn.prototype,"sources",{get(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),Wn.prototype.originalPositionFor=function(e){var t={generatedLine:Dn.getArg(e,"line"),generatedColumn:Dn.getArg(e,"column")},r=On.search(t,this._sections,((e,t)=>e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn)),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},Wn.prototype.hasContentsOfAllSources=function(){return this._sections.every((e=>e.consumer.hasContentsOfAllSources()))},Wn.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Wn.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer._findSourceIndex(Dn.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},Wn.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],i=n.consumer._generatedMappings,a=0;a<i.length;a++){var o=i[a],s=n.consumer._sources.at(o.source);s=Dn.computeSourceURL(n.consumer.sourceRoot,s,this._sourceMapURL),this._sources.add(s),s=this._sources.indexOf(s);var c=null;o.name&&(c=n.consumer._names.at(o.name),this._names.add(c),c=this._names.indexOf(c));var l={source:s,generatedLine:o.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(n.generatedOffset.generatedLine===o.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:c};this.__generatedMappings.push(l),"number"==typeof l.originalLine&&this.__originalMappings.push(l)}Bn(this.__generatedMappings,Dn.compareByGeneratedPositionsDeflated),Bn(this.__originalMappings,Dn.compareByOriginalPositions)};var Hn={SourceMapConsumer:Un,BasicSourceMapConsumer:Kn,IndexedSourceMapConsumer:Wn},Jn=In.SourceMapGenerator,$n=/(\r?\n)/,Gn="$$$isSourceNode$$$";function qn(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[Gn]=!0,null!=n&&this.add(n)}qn.fromStringWithSourceMap=function(e,t,r){var n=new qn,i=e.split($n),a=0,o=()=>{return e()+(e()||"");function e(){return a<i.length?i[a++]:void 0}},s=1,c=0,l=null;return t.eachMapping((e=>{if(null!==l){if(!(s<e.generatedLine)){var t=(r=i[a]||"").substr(0,e.generatedColumn-c);return i[a]=r.substr(e.generatedColumn-c),c=e.generatedColumn,u(l,t),l=e,void 0}u(l,o()),s++,c=0}for(;s<e.generatedLine;)n.add(o()),s++;if(c<e.generatedColumn){var r=i[a]||"";n.add(r.substr(0,e.generatedColumn)),i[a]=r.substr(e.generatedColumn),c=e.generatedColumn}l=e}),this),a<i.length&&(l&&u(l,o()),n.add(i.splice(a).join(""))),t.sources.forEach((e=>{var i=t.sourceContentFor(e);null!=i&&(null!=r&&(e=Dn.join(r,e)),n.setSourceContent(e,i))})),n;function u(e,t){if(null===e||void 0===e.source)n.add(t);else{var i=r?Dn.join(r,e.source):e.source;n.add(new qn(e.originalLine,e.originalColumn,i,t,e.name))}}},qn.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[Gn]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},qn.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[Gn]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},qn.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[Gn]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},qn.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},qn.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[Gn]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},qn.prototype.setSourceContent=function(e,t){this.sourceContents[Dn.toSetString(e)]=t},qn.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][Gn]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(Dn.fromSetString(n[t]),this.sourceContents[n[t]])},qn.prototype.toString=function(){var e="";return this.walk((t=>{e+=t})),e},qn.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new Jn(e),n=!1,i=null,a=null,o=null,s=null;return this.walk(((e,c)=>{t.code+=e,null!==c.source&&null!==c.line&&null!==c.column?(i===c.source&&a===c.line&&o===c.column&&s===c.name||r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name}),i=c.source,a=c.line,o=c.column,s=c.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),i=null,n=!1);for(var l=0,u=e.length;l<u;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===u?(i=null,n=!1):n&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name})):t.column++})),this.walkSourceContents(((e,t)=>{r.setSourceContent(e,t)})),{code:t.code,map:r}};var Xn={SourceMapGenerator:In.SourceMapGenerator,SourceMapConsumer:Hn.SourceMapConsumer,SourceNode:{SourceNode:qn}.SourceNode};function Yn(e){return e.split("")}function Qn(e,t){return t.includes(e)}class Zn extends Error{constructor(e,t){super(),this.name="DefaultsError",this.message=e,this.defs=t}}function ei(e,t,r){!0===e&&(e={}),null!=e&&"object"==typeof e&&(e=Object.assign({},e));const n=e||{};if(r)for(const e in n)if(mi(n,e)&&!mi(t,e))throw new Zn("`"+e+"` is not a supported option",t);for(const r in t)if(mi(t,r))if(e&&mi(e,r))if("ecma"===r){let t=0|e[r];t>5&&t<2015&&(t+=2009),n[r]=t}else n[r]=e&&mi(e,r)?e[r]:t[r];else n[r]=t[r];return n}function ti(){}function ri(){return!1}function ni(){return!0}function ii(){return this}function ai(){return null}var oi=function(){function e(e,a,o){var s,c=[],l=[];function u(){var u=a(e[s],s),d=u instanceof i;return d&&(u=u.v),u instanceof r?(u=u.v)instanceof n?l.push.apply(l,o?u.v.slice().reverse():u.v):l.push(u):u!==t&&(u instanceof n?c.push.apply(c,o?u.v.slice().reverse():u.v):c.push(u)),d}if(Array.isArray(e))if(o){for(s=e.length;--s>=0&&!u(););c.reverse(),l.reverse()}else for(s=0;s<e.length&&!u();++s);else for(s in e)if(mi(e,s)&&u())break;return l.concat(c)}e.at_top=e=>new r(e),e.splice=e=>new n(e),e.last=e=>new i(e);var t=e.skip={};function r(e){this.v=e}function n(e){this.v=e}function i(e){this.v=e}return e}();function si(e,t,r){return r||(r={}),t&&(r.start||(r.start=t.start),r.end||(r.end=t.end)),new e(r)}function ci(e,t){e.includes(t)||e.push(t)}function li(e,t){return e.replace(/{(.+?)}/g,((e,r)=>t&&t[r]))}function ui(e,t){for(var r=e.length;--r>=0;)e[r]===t&&e.splice(r,1)}function di(e,t){return e.length<2?e.slice():function e(r){if(r.length<=1)return r;var n=Math.floor(r.length/2),i=r.slice(0,n),a=r.slice(n);return((e,r)=>{for(var n=[],i=0,a=0,o=0;i<e.length&&a<r.length;)t(e[i],r[a])<=0?n[o++]=e[i++]:n[o++]=r[a++];return i<e.length&&n.push.apply(n,e.slice(i)),a<r.length&&n.push.apply(n,r.slice(a)),n})(i=e(i),a=e(a))}(e)}function pi(e){return Array.isArray(e)||(e=e.split(" ")),new Set(e)}function _i(e,t,r){e.has(t)?e.get(t).push(r):e.set(t,[r])}function fi(e){var t=Object.create(null);return e.forEach(((e,r)=>{t["$"+r]=e})),t}function mi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gi(e,t){return!0===e||e instanceof RegExp&&e.test(t)}var hi={"\0":"0","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function yi(e){return e.replace(/[\0\n\r\u2028\u2029]/g,((t,r)=>("\\"!=e[r-1]||"\\"==e[r-2]&&!/(?:^|[^\\])(?:\\{2})*$/.test(e.slice(0,r-1))?"\\":"")+hi[t]))}function vi(e,t){return e._annotations&t}function bi(e,t){e._annotations|=t}var xi="",Ei=!0,Si="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",Di="false null true",Ti="enum implements import interface package private protected public static super this "+Di+" "+Si,Ci="return new delete throw else case yield await";Si=pi(Si),Ti=pi(Ti),Ci=pi(Ci),Di=pi(Di);var ki=pi(Yn("+-*&%=<>!?|~^")),Ai=/[0-9a-f]/i,Ni=/^0x[0-9a-f]+$/i,wi=/^0[0-7]+$/,Fi=/^0o[0-7]+$/i,Pi=/^0b[01]+$/i,Ii=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,Oi=/^(0[xob])?[0-9a-f]+n$/i,Mi=pi(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","||=","&&=","??=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]),Ri=pi(Yn("  \n\r\t\f\v​           \u2028\u2029   \ufeff")),Li=pi(Yn("\n\r\u2028\u2029")),Bi=pi(Yn(";]),:")),ji=pi(Yn("[{(,;:")),Ui=pi(Yn("[]{}(),;:")),Vi={ID_Start:/[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])+/};function zi(e,t){if(Ki(e.charCodeAt(t))){if(Wi(e.charCodeAt(t+1)))return e.charAt(t)+e.charAt(t+1)}else if(Wi(e.charCodeAt(t))&&Ki(e.charCodeAt(t-1)))return e.charAt(t-1)+e.charAt(t);return e.charAt(t)}function Ki(e){return e>=55296&&e<=56319}function Wi(e){return e>=56320&&e<=57343}function Hi(e){return e>=48&&e<=57}function Ji(e){return Vi.ID_Start.test(e)}function $i(e){return Vi.ID_Continue.test(e)}const Gi=/^[a-z_$][a-z0-9_$]*$/i;function qi(e){return Gi.test(e)}function Xi(e,t){if(Gi.test(e))return!0;if(!t&&/[\ud800-\udfff]/.test(e))return!1;var r=Vi.ID_Start.exec(e);return!(!r||0!==r.index||(e=e.slice(r[0].length))&&(!(r=Vi.ID_Continue.exec(e))||r[0].length!==e.length))}function Yi(e,t=!0){if(!t&&e.includes("e"))return NaN;if(Ni.test(e))return parseInt(e.substr(2),16);if(wi.test(e))return parseInt(e.substr(1),8);if(Fi.test(e))return parseInt(e.substr(2),8);if(Pi.test(e))return parseInt(e.substr(2),2);if(Ii.test(e))return parseFloat(e);var r=parseFloat(e);return r==e?r:void 0}class Qi extends Error{constructor(e,t,r,n,i){super(),this.name="SyntaxError",this.message=e,this.filename=t,this.line=r,this.col=n,this.pos=i}}function Zi(e,t,r,n,i){throw new Qi(e,t,r,n,i)}function ea(e,t,r){return e.type==t&&(null==r||e.value==r)}var ta={};function ra(e,t,r,n){var i={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function a(){return zi(i.text,i.pos)}function o(){if(46!==i.text.charCodeAt(i.pos+1))return!1;const e=i.text.charCodeAt(i.pos+2);return e<48||e>57}function s(e,t){var r=zi(i.text,i.pos++);if(e&&!r)throw ta;return Li.has(r)?(i.newline_before=i.newline_before||!t,++i.line,i.col=0,"\r"==r&&"\n"==a()&&(++i.pos,r="\n")):(r.length>1&&(++i.pos,++i.col),++i.col),r}function c(e){for(;e--;)s()}function l(e){return i.text.substr(i.pos,e.length)==e}function u(e,t){var r=i.text.indexOf(e,i.pos);if(t&&-1==r)throw ta;return r}function d(){i.tokline=i.line,i.tokcol=i.col,i.tokpos=i.pos}var p=!1,_=null;function f(e,r,n){i.regex_allowed="operator"==e&&!ia.has(r)||"keyword"==e&&Ci.has(r)||"punc"==e&&ji.has(r)||"arrow"==e,"punc"!=e||"."!=r&&"?."!=r?n||(p=!1):p=!0;const a=i.tokline,o=i.tokcol,s=i.tokpos,c=i.newline_before,l=t;let u=[],d=[];n||(u=i.comments_before,d=i.comments_before=[]),i.newline_before=!1;const f=new _a(e,r,a,o,s,c,u,d,l);return n||(_=f),f}function m(){for(;Ri.has(a());)s()}function g(e){Zi(e,t,i.tokline,i.tokcol,i.tokpos)}function h(e){var t=!1,r=!1,n=!1,i="."==e,o=!1,c=!1,l=(e=>{for(var t,r="",n=0;(t=a())&&e(t,n++);)r+=s();return r})(((a,s)=>{if(o)return!1;switch(a.charCodeAt(0)){case 95:return c=!0;case 98:case 66:return n=!0;case 111:case 79:case 120:case 88:return!n&&(n=!0);case 101:case 69:return!!n||!t&&(t=r=!0);case 45:return r||0==s&&!e;case 43:return r;case r=!1,46:return!(i||n||t)&&(i=!0)}return"n"===a?(o=!0,!0):Ai.test(a)}));if(e&&(l=e+l),xi=l,wi.test(l)&&w.has_directive("use strict")&&g("Legacy octal literals are not allowed in strict mode"),c&&(l.endsWith("_")?g("Numeric separators are not allowed at the end of numeric literals"):l.includes("__")&&g("Only one underscore is allowed as numeric separator"),l=l.replace(/_/g,"")),l.endsWith("n")){const e=l.slice(0,-1),t=Yi(e,Ni.test(e));if(!i&&Oi.test(l)&&!isNaN(t))return f("big_int",e);g("Invalid or unexpected token")}var u=Yi(l);if(!isNaN(u))return f("num",u);g("Invalid syntax: "+l)}function y(e){return e>="0"&&e<="7"}function v(e,t,r){var n=s(!0,e);switch(n.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(b(2,t));case 117:if("{"==a()){for(s(!0),"}"===a()&&g("Expecting hex-character between {}");"0"==a();)s(!0);var o,c=u("}",!0)-i.pos;return(c>6||(o=b(c,t))>1114111)&&g("Unicode reference out of bounds"),s(!0),(e=>e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e))(o)}return String.fromCharCode(b(4,t));case 10:return"";case 13:if("\n"==a())return s(!0,e),""}return y(n)?(r&&t&&("0"===n&&!y(a())||g("Octal escape sequences are not allowed in template strings")),((e,t)=>{var r=a();return r>="0"&&r<="7"&&(e+=s(!0))[0]<="3"&&(r=a())>="0"&&r<="7"&&(e+=s(!0)),"0"===e?"\0":(e.length>0&&w.has_directive("use strict")&&t&&g("Legacy octal escape sequences are not allowed in strict mode"),String.fromCharCode(parseInt(e,8)))})(n,t)):n}function b(e,t){for(var r=0;e>0;--e){if(!t&&isNaN(parseInt(a(),16)))return parseInt(r,16)||"";var n=s(!0);isNaN(parseInt(n,16))&&g("Invalid hex-character pattern in string"),r+=n}return parseInt(r,16)}var x=N("Unterminated string constant",(()=>{const e=i.pos;for(var t=s(),r=[];;){var n=s(!0,!0);if("\\"==n)n=v(!0,!0);else if("\r"==n||"\n"==n)g("Unterminated string constant");else if(n==t)break;r.push(n)}var a=f("string",r.join(""));return xi=i.text.slice(e,i.pos),a.quote=t,a})),E=N("Unterminated template",(e=>{e&&i.template_braces.push(i.brace_counter);var t,r,n="",o="";for(s(!0,!0);"`"!=(t=s(!0,!0));){if("\r"==t)"\n"==a()&&++i.pos,t="\n";else if("$"==t&&"{"==a())return s(!0,!0),i.brace_counter++,r=f(e?"template_head":"template_substitution",n),xi=o,Ei=!1,r;if(o+=t,"\\"==t){var c=i.pos;t=v(!0,!(_&&("name"===_.type||"punc"===_.type&&(")"===_.value||"]"===_.value))),!0),o+=i.text.substr(c,i.pos-c)}n+=t}return i.template_braces.pop(),r=f(e?"template_head":"template_substitution",n),xi=o,Ei=!0,r}));function S(e){var t,r=i.regex_allowed,n=(()=>{for(var e=i.text,t=i.pos,r=i.text.length;t<r;++t){var n=e[t];if(Li.has(n))return t}return-1})();return-1==n?(t=i.text.substr(i.pos),i.pos=i.text.length):(t=i.text.substring(i.pos,n),i.pos=n),i.col=i.tokcol+(i.pos-i.tokpos),i.comments_before.push(f(e,t,!0)),i.regex_allowed=r,w}var D=N("Unterminated multiline comment",(()=>{var e=i.regex_allowed,t=u("*/",!0),r=i.text.substring(i.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return c((e=>{for(var t=0,r=0;r<e.length;r++)Ki(e.charCodeAt(r))&&Wi(e.charCodeAt(r+1))&&(t++,r++);return e.length-t})(r)+2),i.comments_before.push(f("comment2",r,!0)),i.newline_before=i.newline_before||r.includes("\n"),i.regex_allowed=e,w})),T=N("Unterminated identifier name",(()=>{var e,t=[],r=!1,n=()=>(r=!0,s(),"u"!==a()&&g("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),v(!1,!0));if("\\"===(e=a()))Ji(e=n())||g("First identifier char is an invalid identifier char");else{if(!Ji(e))return"";s()}for(t.push(e);null!=(e=a());){if("\\"===(e=a()))$i(e=n())||g("Invalid escaped identifier char");else{if(!$i(e))break;s()}t.push(e)}const i=t.join("");return Ti.has(i)&&r&&g("Escaped characters are not allowed in keywords"),i})),C=N("Unterminated regular expression",(e=>{for(var t,r=!1,n=!1;t=s(!0);)if(Li.has(t))g("Unexpected line terminator");else if(r)e+="\\"+t,r=!1;else if("["==t)n=!0,e+=t;else if("]"==t&&n)n=!1,e+=t;else{if("/"==t&&!n)break;"\\"==t?r=!0:e+=t}return f("regexp","/"+e+"/"+T())}));function k(e){return f("operator",function e(t){if(!a())return t;var r=t+a();return Mi.has(r)?(s(),e(r)):t}(e||s()))}function A(){switch(s(),a()){case"/":return s(),S("comment1");case"*":return s(),D()}return i.regex_allowed?C(""):k("/")}function N(e,t){return r=>{try{return t(r)}catch(t){if(t!==ta)throw t;g(e)}}}function w(e){if(null!=e)return C(e);for(n&&0==i.pos&&l("#!")&&(d(),c(2),S("comment5"));;){if(m(),d(),r){if(l("\x3c!--")){c(4),S("comment3");continue}if(l("--\x3e")&&i.newline_before){c(3),S("comment4");continue}}var t=a();if(!t)return f("eof");var u=t.charCodeAt(0);switch(u){case 34:case 39:return x();case 46:return s(),Hi(a().charCodeAt(0))?h("."):"."===a()?(s(),s(),f("expand","...")):f("punc",".");case 47:var _=A();if(_===w)continue;return _;case 61:return s(),">"===a()?(s(),f("arrow","=>")):k("=");case 63:if(!o())break;return s(),s(),f("punc","?.");case 96:return E(!0);case 123:i.brace_counter++;break;case 125:if(i.brace_counter--,i.template_braces.length>0&&i.template_braces[i.template_braces.length-1]===i.brace_counter)return E(!1)}if(Hi(u))return h();if(Ui.has(t))return f("punc",s());if(ki.has(t))return k();if(92==u||Ji(t))return y=T(),p?f("name",y):Di.has(y)?f("atom",y):Si.has(y)?Mi.has(y)?f("operator",y):f("keyword",y):f("name",y);if(35==u)return s(),f("privatename",T());break}var y;g("Unexpected character '"+t+"'")}return w.next=s,w.peek=a,w.context=e=>(e&&(i=e),i),w.add_directive=e=>{i.directive_stack[i.directive_stack.length-1].push(e),void 0===i.directives[e]?i.directives[e]=1:i.directives[e]++},w.push_directives_stack=()=>{i.directive_stack.push([])},w.pop_directives_stack=()=>{for(var e=i.directive_stack[i.directive_stack.length-1],t=0;t<e.length;t++)i.directives[e[t]]--;i.directive_stack.pop()},w.has_directive=e=>i.directives[e]>0,w}var na=pi(["typeof","void","delete","--","++","!","~","-","+"]),ia=pi(["--","++"]),aa=pi(["=","+=","-=","??=","&&=","||=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),oa=pi(["??=","&&=","||="]),sa=((e,t)=>{for(var r=0;r<e.length;++r)for(var n=e[r],i=0;i<n.length;++i)t[n[i]]=r+1;return t})([["||"],["??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),ca=pi(["atom","num","big_int","string","regexp","name"]);function la(e,t){const r=new WeakMap;t=ei(t,{bare_returns:!1,ecma:null,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var n={input:"string"==typeof e?ra(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};function i(e,t){return ea(n.token,e,t)}function a(){return n.peeked||(n.peeked=n.input())}function o(){return n.prev=n.token,n.peeked||a(),n.token=n.peeked,n.peeked=null,n.in_directives=n.in_directives&&("string"==n.token.type||i("punc",";")),n.token}function s(){return n.prev}function c(e,t,r,i){var a=n.input.context();Zi(e,a.filename,null!=t?t:a.tokline,null!=r?r:a.tokcol,null!=i?i:a.tokpos)}function l(e,t){c(t,e.line,e.col)}function u(e){null==e&&(e=n.token),l(e,"Unexpected token: "+e.type+" ("+e.value+")")}function d(e,t){if(i(e,t))return o();l(n.token,"Unexpected token "+n.token.type+" «"+n.token.value+"», expected "+e+" «"+t+"»")}function p(e){return d("punc",e)}function _(e){return e.nlb||!e.comments_before.every((e=>!e.nlb))}function f(){return!t.strict&&(i("eof")||i("punc","}")||_(n.token))}function m(){return n.in_generator===n.in_function}function g(){return n.in_async===n.in_function||0===n.in_function&&n.input.has_directive("use strict")}function h(e){i("punc",";")?o():e||f()||u()}function y(){p("(");var e=me(!0);return p(")"),e}function v(e){return(...t)=>{const r=n.token,i=e(...t);return i.start=r,i.end=s(),i}}function b(){(i("operator","/")||i("operator","/="))&&(n.peeked=null,n.token=n.input(n.token.value.substr(1)))}n.token=o();var x=v((function e(r,m,v){switch(b(),n.token.type){case"string":if(n.in_directives){var x=a();!xi.includes("\\")&&(ea(x,"punc",";")||ea(x,"punc","}")||_(x)||ea(x,"eof"))?n.input.add_directive(n.token.value):n.in_directives=!1}var A=n.in_directives,w=S();return A&&w.body instanceof bs?new ha(w.body):w;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return S();case"name":if("async"==n.token.value&&ea(a(),"keyword","function"))return o(),o(),m&&c("functions are not allowed as the body of a loop"),N(Va,!1,!0,r);if("import"==n.token.value&&!ea(a(),"punc","(")&&!ea(a(),"punc",".")){o();var P=(()=>{var e,t,r=s();i("name")&&(e=ae(us)),i("punc",",")&&o(),((t=Z(!0))||e)&&d("name","from");var a=n.token;return"string"!==a.type&&u(),o(),new go({start:r,imported_name:e,imported_names:t,module_name:new bs({start:a,value:a.value,quote:a.quote,end:a}),end:n.token})})();return h(),P}return ea(a(),"punc",":")?E():S();case"punc":switch(n.token.value){case"{":return new Ea({start:n.token,body:M(),end:s()});case"[":case"(":return S();case";":return n.in_directives=!1,o(),new Sa;default:u()}case"keyword":switch(n.token.value){case"break":return o(),D(Ya);case"continue":return o(),D(Qa);case"debugger":return o(),h(),new ga;case"do":o();var I=ge(e);d("keyword","while");var L=y();return h(!0),new Aa({body:I,condition:L});case"while":return o(),new Na({condition:y(),body:ge((()=>e(!1,!0)))});case"for":return o(),(()=>{var e="`for await` invalid in this context",t=n.token;"name"==t.type&&"await"==t.value?(g()||l(t,e),o()):t=!1,p("(");var r=null;if(i("punc",";"))t&&l(t,e);else{r=i("keyword","var")?(o(),B(!0)):i("keyword","let")?(o(),j(!0)):i("keyword","const")?(o(),U(!0)):me(!0,!0);var a=i("operator","in"),s=i("name","of");if(t&&!s&&l(t,e),a||s)return r instanceof lo?r.definitions.length>1&&l(r.start,"Only one variable declaration allowed in for..in loop"):pe(r)||(r=_e(r))instanceof za||l(r.start,"Invalid left-hand side in for..in loop"),o(),a?k(r):C(r,!!t)}return T(r)})();case"class":return o(),m&&c("classes are not allowed as the body of a loop"),v&&c("classes are not allowed as the body of an if"),q($o);case"function":return o(),m&&c("functions are not allowed as the body of a loop"),N(Va,!1,!1,r);case"if":return o(),O();case"return":0!=n.in_function||t.bare_returns||c("'return' outside of function"),o();var V=null;return i("punc",";")?o():f()||(V=me(!0),h()),new Ga({value:V});case"switch":return o(),new ro({expression:y(),body:ge(R)});case"throw":return o(),_(n.token)&&c("Illegal newline after 'throw'"),V=me(!0),h(),new qa({value:V});case"try":return o(),(()=>{var e=M(),t=null,r=null;if(i("keyword","catch")){var a=n.token;if(o(),i("punc","{"))var l=null;else p("("),l=F(void 0,ls),p(")");t=new so({start:a,argname:l,body:M(),end:s()})}return i("keyword","finally")&&(a=n.token,o(),r=new co({start:a,body:M(),end:s()})),t||r||c("Missing catch/finally blocks"),new oo({body:e,bcatch:t,bfinally:r})})();case"var":return o(),P=B(),h(),P;case"let":return o(),P=j(),h(),P;case"const":return o(),P=U(),h(),P;case"with":return n.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),o(),new Ia({expression:y(),body:e()});case"export":if(!ea(a(),"punc","("))return o(),P=ee(),i("punc",";")&&h(),P}}u()}));function E(){var e=ae(ps);"await"===e.name&&n.in_async===n.in_function&&l(n.prev,"await cannot be used as label inside async function"),n.labels.some((t=>t.name===e.name))&&c("Label "+e.name+" defined twice"),p(":"),n.labels.push(e);var t=x();return n.labels.pop(),t instanceof Ca||e.references.forEach((t=>{t instanceof Qa&&(t=t.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))})),new Ta({body:t,label:e})}function S(e){return new ya({body:(e=me(!0),h(),e)})}function D(e){var t,r=null;f()||(r=ae(gs,!0)),null!=r?((t=n.labels.find((e=>e.name===r.name)))||c("Undefined label "+r.name),r.thedef=t):0==n.in_loop&&c(e.TYPE+" not inside a loop or switch"),h();var i=new e({label:r});return t&&t.references.push(i),i}function T(e){p(";");var t=i("punc",";")?null:me(!0);p(";");var r=i("punc",")")?null:me(!0);return p(")"),new wa({init:e,condition:t,step:r,body:ge((()=>x(!1,!0)))})}function C(e,t){var r=e instanceof lo?e.definitions[0].name:null,n=me(!0);return p(")"),new Pa({await:t,init:e,name:r,object:n,body:ge((()=>x(!1,!0)))})}function k(e){var t=me(!0);return p(")"),new Fa({init:e,object:t,body:ge((()=>x(!1,!0)))})}var A=(e,t,r)=>{_(n.token)&&c("Unexpected newline before arrow (=>)"),d("arrow","=>");var a=I(i("punc","{"),!1,r),o=a instanceof Array&&a.length?a[a.length-1].end:a instanceof Array?e:a.end;return new Ua({start:e,end:o,async:r,argnames:t,body:a})},N=(e,t,r,n)=>{var a=e===Va,c=i("operator","*");c&&o();var l=i("name")?ae(a?ns:os):null;a&&!l&&(n?e=ja:u()),!l||e===Ba||l instanceof Yo||u(s());var d=[],p=I(!0,c||t,r,l,d);return new e({start:d.start,end:p.end,is_generator:c,async:r,name:l,argnames:d,body:p})};function w(e,t){var r=new Set,n=!1,i=!1,a=!1,o=!!t,s={add_parameter(t){if(r.has(t.value))!1===n&&(n=t),s.check_strict();else if(r.add(t.value),e)switch(t.value){case"arguments":case"eval":case"yield":o&&l(t,"Unexpected "+t.value+" identifier as parameter inside strict mode");break;default:Ti.has(t.value)&&u()}},mark_default_assignment(e){!1===i&&(i=e)},mark_spread(e){!1===a&&(a=e)},mark_strict_mode(){o=!0},is_strict:()=>!1!==i||!1!==a||o,check_strict(){s.is_strict()&&!1!==n&&l(n,"Parameter "+n.value+" was used already")}};return s}function F(e,t){var r,a=!1;return void 0===e&&(e=w(!0,n.input.has_directive("use strict"))),i("expand","...")&&(a=n.token,e.mark_spread(n.token),o()),r=P(e,t),i("operator","=")&&!1===a&&(e.mark_default_assignment(n.token),o(),r=new Io({start:r.start,left:r,operator:"=",right:me(!1),end:n.token})),!1!==a&&(i("punc",")")||u(),r=new Ra({start:a,expression:r,end:a})),e.check_strict(),r}function P(e,t){var r,l=[],d=!0,_=!1,f=n.token;if(void 0===e&&(e=w(!1,n.input.has_directive("use strict"))),t=void 0===t?rs:t,i("punc","[")){for(o();!i("punc","]");){if(d?d=!1:p(","),i("expand","...")&&(_=!0,r=n.token,e.mark_spread(n.token),o()),i("punc"))switch(n.token.value){case",":l.push(new As({start:n.token,end:n.token}));continue;case"]":break;case"[":case"{":l.push(P(e,t));break;default:u()}else i("name")?(e.add_parameter(n.token),l.push(ae(t))):c("Invalid function parameter");i("operator","=")&&!1===_&&(e.mark_default_assignment(n.token),o(),l[l.length-1]=new Io({start:l[l.length-1].start,left:l[l.length-1],operator:"=",right:me(!1),end:n.token})),_&&(i("punc","]")||c("Rest element must be last element"),l[l.length-1]=new Ra({start:r,expression:l[l.length-1],end:r}))}return p("]"),e.check_strict(),new za({start:f,names:l,is_array:!0,end:s()})}if(i("punc","{")){for(o();!i("punc","}");){if(d?d=!1:p(","),i("expand","...")&&(_=!0,r=n.token,e.mark_spread(n.token),o()),i("name")&&(ea(a(),"punc")||ea(a(),"operator"))&&[",","}","="].includes(a().value)){e.add_parameter(n.token);var m=s(),g=ae(t);_?l.push(new Ra({start:r,expression:g,end:g.end})):l.push(new Lo({start:m,key:g.name,value:g,end:g.end}))}else{if(i("punc","}"))continue;var h=n.token,y=te();null===y?u(s()):"name"!==s().type||i("punc",":")?(p(":"),l.push(new Lo({start:h,quote:h.quote,key:y,value:P(e,t),end:s()}))):l.push(new Lo({start:s(),key:y,value:new t({start:s(),name:y,end:s()}),end:s()}))}_?i("punc","}")||c("Rest element must be last element"):i("operator","=")&&(e.mark_default_assignment(n.token),o(),l[l.length-1].value=new Io({start:l[l.length-1].value.start,left:l[l.length-1].value,operator:"=",right:me(!1),end:n.token}))}return p("}"),e.check_strict(),new za({start:f,names:l,is_array:!1,end:s()})}if(i("name"))return e.add_parameter(n.token),ae(t);c("Invalid function parameter")}function I(e,t,r,a,s){var c=n.in_loop,l=n.labels,u=n.in_generator,d=n.in_async;if(++n.in_function,t&&(n.in_generator=n.in_function),r&&(n.in_async=n.in_function),s&&(e=>{var t=w(!0,n.input.has_directive("use strict"));for(p("(");!i("punc",")");){var r=F(t);if(e.push(r),i("punc",")")||p(","),r instanceof Ra)break}o()})(s),e&&(n.in_directives=!0),n.in_loop=0,n.labels=[],e){n.input.push_directives_stack();var _=M();a&&ie(a),s&&s.forEach(ie),n.input.pop_directives_stack()}else _=[new Ga({start:n.token,value:me(!1),end:n.token})];return--n.in_function,n.in_loop=c,n.labels=l,n.in_generator=u,n.in_async=d,_}function O(){var e=y(),t=x(!1,!1,!0),r=null;return i("keyword","else")&&(o(),r=x(!1,!1,!0)),new to({condition:e,body:t,alternative:r})}function M(){p("{");for(var e=[];!i("punc","}");)i("eof")&&u(),e.push(x());return o(),e}function R(){p("{");for(var e,t=[],r=null,a=null;!i("punc","}");)i("eof")&&u(),i("keyword","case")?(a&&(a.end=s()),r=[],a=new ao({start:(e=n.token,o(),e),expression:me(!0),body:r}),t.push(a),p(":")):i("keyword","default")?(a&&(a.end=s()),r=[],a=new io({start:(e=n.token,o(),p(":"),e),body:r}),t.push(a)):(r||u(),r.push(x()));return a&&(a.end=s()),o(),t}function L(e,t){for(var r,a=[];;){var l="var"===t?Qo:"const"===t?es:"let"===t?ts:null;if(i("punc","{")||i("punc","[")?r=new fo({start:n.token,name:P(void 0,l),value:i("operator","=")?(d("operator","="),me(!1,e)):null,end:s()}):"import"==(r=new fo({start:n.token,name:ae(l),value:i("operator","=")?(o(),me(!1,e)):e||"const"!==t?null:c("Missing initializer in const declaration"),end:s()})).name.name&&c("Unexpected token: import"),a.push(r),!i("punc",","))break;o()}return a}var B=e=>new uo({start:s(),definitions:L(e,"var"),end:s()}),j=e=>new po({start:s(),definitions:L(e,"let"),end:s()}),U=e=>new _o({start:s(),definitions:L(e,"const"),end:s()});function V(){var e,t=n.token;switch(t.type){case"name":e=ne(_s);break;case"num":e=new xs({start:t,end:t,value:t.value,raw:xi});break;case"big_int":e=new Es({start:t,end:t,value:t.value});break;case"string":e=new bs({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":const[r,n,i]=t.value.match(/^\/(.*)\/(\w*)$/);e=new Ss({start:t,end:t,value:{source:n,flags:i}});break;case"atom":switch(t.value){case"false":e=new Fs({start:t,end:t});break;case"true":e=new Ps({start:t,end:t});break;case"null":e=new Ts({start:t,end:t})}}return o(),e}function z(e,t){var r=(e,t)=>t?new Io({start:e.start,left:e,operator:"=",right:t,end:t.end}):e;return e instanceof Mo?r(new za({start:e.start,end:e.end,is_array:!1,names:e.properties.map((e=>z(e)))}),t):e instanceof Lo?(e.value=z(e.value),r(e,t)):e instanceof As?e:e instanceof za?(e.names=e.names.map((e=>z(e))),r(e,t)):e instanceof _s?r(new rs({name:e.name,start:e.start,end:e.end}),t):e instanceof Ra?(e.expression=z(e.expression),r(e,t)):e instanceof Oo?r(new za({start:e.start,end:e.end,is_array:!0,names:e.elements.map((e=>z(e)))}),t):e instanceof Po?r(z(e.left,e.right),t):e instanceof Io?(e.left=z(e.left),e):void c("Invalid function parameter",e.start.line,e.start.col)}var K=(e,t)=>{if(i("operator","new"))return(e=>{var t=n.token;if(d("operator","new"),i("punc","."))return o(),d("name","target"),se(new Xo({start:t,end:s()}),e);var r,a=K(!1);i("punc","(")?(o(),r=H(")",!0)):r=[];var c=new bo({start:t,expression:a,args:r,end:s()});return oe(c),se(c,e)})(e);if(i("operator","import"))return(()=>{var e=n.token;return d("operator","import"),d("punc","."),d("name","meta"),se(new ho({start:e,end:s()}),!1)})();var c,l=n.token,_=i("name","async")&&"["!=(c=a()).value&&"arrow"!=c.type&&V();if(i("punc")){switch(n.token.value){case"(":if(_&&!e)break;var f=((e,t)=>{var r,a,c,l=[];for(p("(");!i("punc",")");)r&&u(r),i("expand","...")?(r=n.token,t&&(a=n.token),o(),l.push(new Ra({start:s(),expression:me(),end:n.token}))):l.push(me()),i("punc",")")||(p(","),i("punc",")")&&(c=s(),t&&(a=c)));return p(")"),e&&i("arrow","=>")?r&&c&&u(c):a&&u(a),l})(t,!_);if(t&&i("arrow","=>"))return A(l,f.map((e=>z(e))),!!_);var m=_?new vo({expression:_,args:f}):1==f.length?f[0]:new xo({expressions:f});if(m.start){const e=l.comments_before.length;if(r.set(l,e),m.start.comments_before.unshift(...l.comments_before),l.comments_before=m.start.comments_before,0==e&&l.comments_before.length>0){var g=l.comments_before[0];g.nlb||(g.nlb=l.nlb,l.nlb=!1)}l.comments_after=m.start.comments_after}m.start=l;var h=s();return m.end&&(h.comments_before=m.end.comments_before,m.end.comments_after.push(...h.comments_after),h.comments_after=m.end.comments_after),m.end=h,m instanceof vo&&oe(m),se(m,e);case"[":return se(J(),e);case"{":return se(G(),e)}_||u()}if(t&&i("name")&&ea(a(),"arrow")){var y=new rs({name:n.token.value,start:l,end:l});return o(),A(l,[y],!!_)}if(i("keyword","function")){o();var v=N(ja,!1,!!_);return v.start=l,v.end=s(),se(v,e)}if(_)return se(_,e);if(i("keyword","class")){o();var b=q(Go);return b.start=l,b.end=s(),se(b,e)}return i("template_head")?se(W(),e):ca.has(n.token.type)?se(V(),e):void u()};function W(){var e=[],t=n.token;for(e.push(new Ha({start:n.token,raw:xi,value:n.token.value,end:n.token}));!Ei;)o(),b(),e.push(me(!0)),e.push(new Ha({start:n.token,raw:xi,value:n.token.value,end:n.token}));return o(),new Wa({start:t,segments:e,end:n.token})}function H(e,t,r){for(var a=!0,c=[];!i("punc",e)&&(a?a=!1:p(","),!t||!i("punc",e));)i("punc",",")&&r?c.push(new As({start:n.token,end:n.token})):i("expand","...")?(o(),c.push(new Ra({start:s(),expression:me(),end:n.token}))):c.push(me(!1));return o(),c}var J=v((()=>(p("["),new Oo({elements:H("]",!t.strict,!0)})))),$=v(((e,t)=>N(Ba,e,t))),G=v((()=>{var e=n.token,r=!0,a=[];for(p("{");!i("punc","}")&&(r?r=!1:p(","),t.strict||!i("punc","}"));)if("expand"!=(e=n.token).type){var c,l=te();if(i("punc",":"))null===l?u(s()):(o(),c=me(!1));else{var d=X(l,e);if(d){a.push(d);continue}c=new _s({start:s(),name:l,end:s()})}i("operator","=")&&(o(),c=new Po({start:e,left:c,operator:"=",right:me(!1),logical:!1,end:s()})),a.push(new Lo({start:e,quote:e.quote,key:l instanceof fa?l:""+l,value:c,end:s()}))}else o(),a.push(new Ra({start:e,expression:me(!1),end:s()}));return o(),new Mo({properties:a})}));function q(e){var t,r,a,c,l=[];for(n.input.push_directives_stack(),n.input.add_directive("use strict"),"name"==n.token.type&&"extends"!=n.token.value&&(a=ae(e===$o?ss:cs)),e!==$o||a||u(),"extends"==n.token.value&&(o(),c=me(!0)),p("{");i("punc",";");)o();for(;!i("punc","}");)for(t=n.token,(r=X(te(),t,!0))||u(),l.push(r);i("punc",";");)o();return n.input.pop_directives_stack(),o(),new e({start:t,name:a,extends:c,properties:l,end:s()})}function X(e,t,r){var a=(e,t)=>"string"==typeof e||"number"==typeof e?new is({start:t,name:""+e,end:s()}):(null===e&&u(),e),c="privatename"==t.type,l=!1,d=!1,p=!1,_=t;if(r&&"static"===e&&!i("punc","(")&&(d=!0,c="privatename"==(_=n.token).type,e=te()),"async"!==e||i("punc","(")||i("punc",",")||i("punc","}")||i("operator","=")||(l=!0,c="privatename"==(_=n.token).type,e=te()),null===e&&(p=!0,c="privatename"==(_=n.token).type,null===(e=te())&&u()),i("punc","("))return e=a(e,t),new(c?Ko:zo)({start:t,static:d,is_generator:p,async:l,key:e,quote:e instanceof is?_.quote:void 0,value:$(p,l),end:s()});const f=n.token;if(("get"===e||"set"===e)&&"privatename"===f.type)return o(),new("get"===e?jo:Bo)({start:t,static:d,key:a(f.value,t),value:$(),end:s()});if("get"==e){if(!i("punc")||i("punc","["))return e=a(te(),t),new Vo({start:t,static:d,key:e,quote:e instanceof is?f.quote:void 0,value:$(),end:s()})}else if("set"==e&&(!i("punc")||i("punc","[")))return e=a(te(),t),new Uo({start:t,static:d,key:e,quote:e instanceof is?f.quote:void 0,value:$(),end:s()});if(r){const r=(e=>"string"==typeof e||"number"==typeof e?new as({start:_,end:_,name:""+e}):(null===e&&u(),e))(e),n=r instanceof as?_.quote:void 0,a=c?Jo:Ho;if(i("operator","="))return o(),new a({start:t,static:d,quote:n,key:r,value:me(!1),end:s()});if(i("name")||i("privatename")||i("operator","*")||i("punc",";")||i("punc","}"))return new a({start:t,static:d,quote:n,key:r,end:s()})}}function Y(e){function t(e){return new e({name:te(),start:s(),end:s()})}var r,a,c=e?ds:ms,l=e?us:fs,u=n.token;return e?r=t(c):a=t(l),i("name","as")?(o(),e?a=t(l):r=t(c)):e?a=new l(r):r=new c(a),new mo({start:u,foreign_name:r,name:a,end:s()})}function Q(e,t){var r,i=e?ds:ms,a=e?us:fs,o=n.token,c=s();return t=t||new a({name:"*",start:o,end:c}),r=new i({name:"*",start:o,end:c}),new mo({start:o,foreign_name:r,name:t,end:c})}function Z(e){var t;if(i("punc","{")){for(o(),t=[];!i("punc","}");)t.push(Y(e)),i("punc",",")&&o();o()}else if(i("operator","*")){var r;o(),e&&i("name","as")&&(o(),r=ae(e?us:ms)),t=[Q(e,r)]}return t}function ee(){var e,t,r,c,l,d=n.token;if(i("keyword","default"))e=!0,o();else if(t=Z(!1)){if(i("name","from")){o();var p=n.token;return"string"!==p.type&&u(),o(),new yo({start:d,is_default:e,exported_names:t,module_name:new bs({start:p,value:p.value,quote:p.quote,end:p}),end:s()})}return new yo({start:d,is_default:e,exported_names:t,end:s()})}return i("punc","{")||e&&(i("keyword","class")||i("keyword","function"))&&ea(a(),"punc")?(c=me(!1),h()):(r=x(e))instanceof lo&&e?u(r.start):r instanceof lo||r instanceof La||r instanceof $o?l=r:r instanceof ya?c=r.body:u(r.start),new yo({start:d,is_default:e,exported_value:c,exported_definition:l,end:s()})}function te(){var e=n.token;switch(e.type){case"punc":if("["===e.value){o();var t=me(!1);return p("]"),t}u(e);case"operator":if("*"===e.value)return o(),null;["delete","in","instanceof","new","typeof","void"].includes(e.value)||u(e);case"name":case"privatename":case"string":case"num":case"big_int":case"keyword":case"atom":return o(),e.value;default:u(e)}}function re(){var e=n.token;return"name"!=e.type&&"privatename"!=e.type&&u(),o(),e.value}function ne(e){var t=n.token.value;return new("this"==t?hs:"super"==t?ys:e)({name:String(t),start:n.token,end:n.token})}function ie(e){var t=e.name;m()&&"yield"==t&&l(e.start,"Yield cannot be used as identifier inside generators"),n.input.has_directive("use strict")&&("yield"==t&&l(e.start,"Unexpected yield identifier inside strict mode"),e instanceof Yo&&("arguments"==t||"eval"==t)&&l(e.start,"Unexpected "+t+" in strict mode"))}function ae(e,t){if(!i("name"))return t||c("Name expected"),null;var r=ne(e);return ie(r),o(),r}function oe(e){var t=e.start,n=t.comments_before;const i=r.get(t);for(var a=null!=i?i:n.length;--a>=0;){var o=n[a];if(/[@#]__/.test(o.value)){if(/[@#]__PURE__/.test(o.value)){bi(e,Bs);break}if(/[@#]__INLINE__/.test(o.value)){bi(e,js);break}if(/[@#]__NOINLINE__/.test(o.value)){bi(e,Us);break}}}}var se=(e,t,r)=>{var n=e.start;if(i("punc",".")){o();const a=i("privatename")?Do:So;return se(new a({start:n,expression:e,optional:!1,property:re(),end:s()}),t,r)}if(i("punc","[")){o();var a=me(!0);return p("]"),se(new To({start:n,expression:e,optional:!1,property:a,end:s()}),t,r)}if(t&&i("punc","(")){o();var c=new vo({start:n,expression:e,optional:!1,args:ce(),end:s()});return oe(c),se(c,!0,r)}if(i("punc","?.")){let r;if(o(),t&&i("punc","(")){o();const t=new vo({start:n,optional:!0,expression:e,args:ce(),end:s()});oe(t),r=se(t,!0,!0)}else if(i("name")||i("privatename")){const a=i("privatename")?Do:So;r=se(new a({start:n,expression:e,optional:!0,property:re(),end:s()}),t,!0)}else if(i("punc","[")){o();const i=me(!0);p("]"),r=se(new To({start:n,expression:e,optional:!0,property:i,end:s()}),t,!0)}return r||u(),r instanceof Co?r:new Co({start:n,expression:r,end:s()})}return i("template_head")?(r&&u(),se(new Ka({start:n,prefix:e,template_string:W(),end:s()}),t)):e};function ce(){for(var e=[];!i("punc",")");)i("expand","...")?(o(),e.push(new Ra({start:s(),expression:me(!1),end:s()}))):e.push(me(!1)),i("punc",")")||p(",");return o(),e}var le=(e,t)=>{var r=n.token;if("name"==r.type&&"await"==r.value&&g())return o(),g()||c("Unexpected await expression outside async function",n.prev.line,n.prev.col,n.prev.pos),new Za({start:s(),end:n.token,expression:le(!0)});if(i("operator")&&na.has(r.value)){o(),b();var a=ue(Ao,r,le(e));return a.start=r,a.end=s(),a}for(var l=K(e,t);i("operator")&&ia.has(n.token.value)&&!_(n.token);)l instanceof Ua&&u(),(l=ue(No,n.token,l)).start=r,l.end=n.token,o();return l};function ue(e,t,r){var i=t.value;switch(i){case"++":case"--":pe(r)||c("Invalid use of "+i+" operator",t.line,t.col,t.pos);break;case"delete":r instanceof _s&&n.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",r.start.line,r.start.col,r.start.pos)}return new e({operator:i,expression:r})}var de=(e,t,r)=>{var a=i("operator")?n.token.value:null;"in"==a&&r&&(a=null),"**"==a&&e instanceof Ao&&!ea(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&u(e.start);var s=null!=a?sa[a]:null;if(null!=s&&(s>t||"**"===a&&t===s)){o();var c=de(le(!0),s,r);return de(new wo({start:e.start,left:e,operator:a,right:c,end:c.end}),t,r)}return e};function pe(e){return e instanceof Eo||e instanceof _s}function _e(e){if(e instanceof Mo)e=new za({start:e.start,names:e.properties.map(_e),is_array:!1,end:e.end});else if(e instanceof Oo){for(var t=[],r=0;r<e.elements.length;r++)e.elements[r]instanceof Ra&&(r+1!==e.elements.length&&l(e.elements[r].start,"Spread must the be last element in destructuring array"),e.elements[r].expression=_e(e.elements[r].expression)),t.push(_e(e.elements[r]));e=new za({start:e.start,names:t,is_array:!0,end:e.end})}else e instanceof Ro?e.value=_e(e.value):e instanceof Po&&(e=new Io({start:e.start,left:e.left,operator:"=",right:e.right,end:e.end}));return e}var fe=e=>{b();var t=n.token;if("name"==t.type&&"yield"==t.value){if(m())return o(),(()=>{m()||c("Unexpected yield expression outside generator function",n.prev.line,n.prev.col,n.prev.pos);var e=n.token,t=!1,r=!0;return f()||i("punc")&&Bi.has(n.token.value)?r=!1:i("operator","*")&&(t=!0,o()),new eo({start:e,is_star:t,expression:r?me():null,end:s()})})();n.input.has_directive("use strict")&&l(n.token,"Unexpected yield identifier inside strict mode")}var r=(e=>{var t=n.token,r=(e=>de(le(!0,!0),0,e))(e);if(i("operator","?")){o();var a=me(!1);return p(":"),new Fo({start:t,condition:r,consequent:a,alternative:me(!1,e),end:s()})}return r})(e),a=n.token.value;if(i("operator")&&aa.has(a)){if(pe(r)||(r=_e(r))instanceof za)return o(),new Po({start:t,left:r,operator:a,right:fe(e),logical:oa.has(a),end:s()});c("Invalid assignment")}return r},me=(e,t)=>{for(var r=n.token,s=[];s.push(fe(t)),e&&i("punc",",");)o(),e=!0;return 1==s.length?s[0]:new xo({start:r,expressions:s,end:a()})};function ge(e){++n.in_loop;var t=e();return--n.in_loop,t}return t.expression?me(!0):(()=>{var e=n.token,r=[];for(n.input.push_directives_stack(),t.module&&n.input.add_directive("use strict");!i("eof");)r.push(x());n.input.pop_directives_stack();var a=s(),o=t.toplevel;return o?(o.body=o.body.concat(r),o.end=a):o=new Ma({start:e,body:r,end:a}),o})()}function ua(e,t,r,n=fa){var i=t=t?t.split(/\s+/):[];n&&n.PROPS&&(t=t.concat(n.PROPS));for(var a="return function AST_"+e+"(props){ if (props) { ",o=t.length;--o>=0;)a+="this."+t[o]+" = props."+t[o]+";";const s=n&&Object.create(n.prototype);(s&&s.initialize||r&&r.initialize)&&(a+="this.initialize();"),a+="}",a+="this.flags = 0;",a+="}";var c=new Function(a)();if(s&&(c.prototype=s,c.BASE=n),n&&n.SUBCLASSES.push(c),c.prototype.CTOR=c,c.prototype.constructor=c,c.PROPS=t||null,c.SELF_PROPS=i,c.SUBCLASSES=[],e&&(c.prototype.TYPE=c.TYPE=e),r)for(o in r)mi(r,o)&&("$"===o[0]?c[o.substr(1)]=r[o]:c.prototype[o]=r[o]);return c.DEFMETHOD=function(e,t){this.prototype[e]=t},c}const da=(e,t)=>Boolean(e.flags&t),pa=(e,t,r)=>{r?e.flags|=t:e.flags&=~t};class _a{constructor(e,t,r,n,i,a,o,s,c){this.flags=a?1:0,this.type=e,this.value=t,this.line=r,this.col=n,this.pos=i,this.comments_before=o,this.comments_after=s,this.file=c,Object.seal(this)}get nlb(){return da(this,1)}set nlb(e){pa(this,1,e)}get quote(){return da(this,4)?da(this,2)?"'":'"':""}set quote(e){pa(this,2,"'"===e),pa(this,4,!!e)}}var fa=ua("Node","start end",{_clone(e){if(e){var t=this.clone();return t.transform(new Ls((e=>{if(e!==t)return e.clone(!0)})))}return new this.CTOR(this)},clone(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk(e){return e._visit(this)},walk(e){return this._walk(e)},_children_backwards(){}},null),ma=ua("Statement",null,{$documentation:"Base class of all statements"}),ga=ua("Debugger",null,{$documentation:"Represents a debugger statement"},ma),ha=ua("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},ma),ya=ua("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk(e){return e._visit(this,(function(){this.body._walk(e)}))},_children_backwards(e){e(this.body)}},ma);function va(e,t){const r=e.body;for(var n=0,i=r.length;n<i;n++)r[n]._walk(t)}function ba(e){var t=this._clone(e);return this.block_scope&&(t.block_scope=this.block_scope.clone()),t}var xa=ua("Block","body block_scope",{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk(e){return e._visit(this,(function(){va(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t])},clone:ba},ma),Ea=ua("BlockStatement",null,{$documentation:"A block statement"},xa),Sa=ua("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},ma),Da=ua("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},ma),Ta=ua("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk(e){return e._visit(this,(function(){this.label._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.label)},clone(e){var t=this._clone(e);if(e){var r=t.label,n=this.label;t.walk(new Rs((e=>{e instanceof Xa&&e.label&&e.label.thedef===n&&(e.label.thedef=r,r.references.push(e))})))}return t}},Da),Ca=ua("IterationStatement","block_scope",{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:ba},Da),ka=ua("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},Ca),Aa=ua("Do",null,{$documentation:"A `do` statement",_walk(e){return e._visit(this,(function(){this.body._walk(e),this.condition._walk(e)}))},_children_backwards(e){e(this.condition),e(this.body)}},ka),Na=ua("While",null,{$documentation:"A `while` statement",_walk(e){return e._visit(this,(function(){this.condition._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.condition)}},ka),wa=ua("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk(e){return e._visit(this,(function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),this.step&&e(this.step),this.condition&&e(this.condition),this.init&&e(this.init)}},Ca),Fa=ua("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk(e){return e._visit(this,(function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),this.object&&e(this.object),this.init&&e(this.init)}},Ca),Pa=ua("ForOf","await",{$documentation:"A `for ... of` statement"},Fa),Ia=ua("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk(e){return e._visit(this,(function(){this.expression._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.expression)}},Da),Oa=ua("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Map/S] a map of name -> SymbolDef for all variables/functions defined in this scope",functions:"[Map/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone(e,t){var r=this._clone(e);return e&&this.variables&&t&&!this._block_scope?r.figure_out_scope({},{toplevel:t,parent_scope:this.parent_scope}):(this.variables&&(r.variables=new Map(this.variables)),this.functions&&(r.functions=new Map(this.functions)),this.enclosed&&(r.enclosed=this.enclosed.slice()),this._block_scope&&(r._block_scope=this._block_scope)),r},pinned(){return this.uses_eval||this.uses_with}},xa),Ma=ua("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs(e){var t=this.body,r="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return(r=la(r)).transform(new Ls((e=>{if(e instanceof ha&&"$ORIG"==e.value)return oi.splice(t)})))},wrap_enclose(e){"string"!=typeof e&&(e="");var t=e.indexOf(":");t<0&&(t=e.length);var r=this.body;return la(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new Ls((e=>{if(e instanceof ha&&"$ORIG"==e.value)return oi.splice(r)})))}},Oa),Ra=ua("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk(e){return e._visit(this,(function(){this.expression.walk(e)}))},_children_backwards(e){e(this.expression)}}),La=ua("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names(){for(var e=[],t=0;t<this.argnames.length;t++)this.argnames[t]instanceof za?e.push(...this.argnames[t].all_symbols()):e.push(this.argnames[t]);return e},_walk(e){return e._visit(this,(function(){this.name&&this.name._walk(e);for(var t=this.argnames,r=0,n=t.length;r<n;r++)t[r]._walk(e);va(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);for(t=this.argnames.length;t--;)e(this.argnames[t]);this.name&&e(this.name)},is_braceless(){return this.body[0]instanceof Ga&&this.body[0].value}},Oa),Ba=ua("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},La),ja=ua("Function",null,{$documentation:"A function expression"},La),Ua=ua("Arrow",null,{$documentation:"An ES6 Arrow function ((a) => b)"},La),Va=ua("Defun",null,{$documentation:"A function definition"},La),za=ua("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk(e){return e._visit(this,(function(){this.names.forEach((t=>{t._walk(e)}))}))},_children_backwards(e){let t=this.names.length;for(;t--;)e(this.names[t])},all_symbols(){var e=[];return this.walk(new Rs((t=>{t instanceof qo&&e.push(t)}))),e}}),Ka=ua("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_Node] The prefix, which will get called."},_walk(e){return e._visit(this,(function(){this.prefix._walk(e),this.template_string._walk(e)}))},_children_backwards(e){e(this.template_string),e(this.prefix)}}),Wa=ua("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk(e){return e._visit(this,(function(){this.segments.forEach((t=>{t._walk(e)}))}))},_children_backwards(e){let t=this.segments.length;for(;t--;)e(this.segments[t])}}),Ha=ua("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw source of the segment"}}),Ja=ua("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},ma),$a=ua("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk(e){return e._visit(this,this.value&&function(){this.value._walk(e)})},_children_backwards(e){this.value&&e(this.value)}},Ja),Ga=ua("Return",null,{$documentation:"A `return` statement"},$a),qa=ua("Throw",null,{$documentation:"A `throw` statement"},$a),Xa=ua("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk(e){return e._visit(this,this.label&&function(){this.label._walk(e)})},_children_backwards(e){this.label&&e(this.label)}},Ja),Ya=ua("Break",null,{$documentation:"A `break` statement"},Xa),Qa=ua("Continue",null,{$documentation:"A `continue` statement"},Xa),Za=ua("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),eo=ua("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})},_children_backwards(e){this.expression&&e(this.expression)}}),to=ua("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk(e){return e._visit(this,(function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)}))},_children_backwards(e){this.alternative&&e(this.alternative),e(this.body),e(this.condition)}},Da),ro=ua("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk(e){return e._visit(this,(function(){this.expression._walk(e),va(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},xa),no=ua("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},xa),io=ua("Default",null,{$documentation:"A `default` switch branch"},no),ao=ua("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk(e){return e._visit(this,(function(){this.expression._walk(e),va(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},no),oo=ua("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk(e){return e._visit(this,(function(){va(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)}))},_children_backwards(e){this.bfinally&&e(this.bfinally),this.bcatch&&e(this.bcatch);let t=this.body.length;for(;t--;)e(this.body[t])}},xa),so=ua("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk(e){return e._visit(this,(function(){this.argname&&this.argname._walk(e),va(this,e)}))},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);this.argname&&e(this.argname)}},xa),co=ua("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},xa),lo=ua("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk(e){return e._visit(this,(function(){for(var t=this.definitions,r=0,n=t.length;r<n;r++)t[r]._walk(e)}))},_children_backwards(e){let t=this.definitions.length;for(;t--;)e(this.definitions[t])}},ma),uo=ua("Var",null,{$documentation:"A `var` statement"},lo),po=ua("Let",null,{$documentation:"A `let` statement"},lo),_o=ua("Const",null,{$documentation:"A `const` statement"},lo),fo=ua("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk(e){return e._visit(this,(function(){this.name._walk(e),this.value&&this.value._walk(e)}))},_children_backwards(e){this.value&&e(this.value),e(this.name)}}),mo=ua("NameMapping","foreign_name name",{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk(e){return e._visit(this,(function(){this.foreign_name._walk(e),this.name._walk(e)}))},_children_backwards(e){e(this.name),e(this.foreign_name)}}),go=ua("Import","imported_name imported_names module_name",{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from"},_walk(e){return e._visit(this,(function(){this.imported_name&&this.imported_name._walk(e),this.imported_names&&this.imported_names.forEach((t=>{t._walk(e)})),this.module_name._walk(e)}))},_children_backwards(e){if(e(this.module_name),this.imported_names){let t=this.imported_names.length;for(;t--;)e(this.imported_names[t])}this.imported_name&&e(this.imported_name)}}),ho=ua("ImportMeta",null,{$documentation:"A reference to import.meta"}),yo=ua("Export","exported_definition exported_value is_default exported_names module_name",{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module"},_walk(e){return e._visit(this,(function(){this.exported_definition&&this.exported_definition._walk(e),this.exported_value&&this.exported_value._walk(e),this.exported_names&&this.exported_names.forEach((t=>{t._walk(e)})),this.module_name&&this.module_name._walk(e)}))},_children_backwards(e){if(this.module_name&&e(this.module_name),this.exported_names){let t=this.exported_names.length;for(;t--;)e(this.exported_names[t])}this.exported_value&&e(this.exported_value),this.exported_definition&&e(this.exported_definition)}},ma),vo=ua("Call","expression args optional _annotations",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments",optional:"[boolean] whether this is an optional call (IE ?.() )",_annotations:"[number] bitfield containing information about the call"},initialize(){null==this._annotations&&(this._annotations=0)},_walk(e){return e._visit(this,(function(){for(var t=this.args,r=0,n=t.length;r<n;r++)t[r]._walk(e);this.expression._walk(e)}))},_children_backwards(e){let t=this.args.length;for(;t--;)e(this.args[t]);e(this.expression)}}),bo=ua("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},vo),xo=ua("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk(e){return e._visit(this,(function(){this.expressions.forEach((t=>{t._walk(e)}))}))},_children_backwards(e){let t=this.expressions.length;for(;t--;)e(this.expressions[t])}}),Eo=ua("PropAccess","expression property optional",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot & AST_DotHash this is always a plain string, while for AST_Sub it's an arbitrary AST_Node",optional:"[boolean] whether this is an optional property access (IE ?.)"}}),So=ua("Dot","quote",{$documentation:"A dotted property access expression",$propdoc:{quote:"[string] the original quote character when transformed from AST_Sub"},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}},Eo),Do=ua("DotHash","",{$documentation:"A dotted property access to a private property",_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}},Eo),To=ua("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk(e){return e._visit(this,(function(){this.expression._walk(e),this.property._walk(e)}))},_children_backwards(e){e(this.property),e(this.expression)}},Eo),Co=ua("Chain","expression",{$documentation:"A chain expression like a?.b?.(c)?.[d]",$propdoc:{expression:"[AST_Call|AST_Dot|AST_DotHash|AST_Sub] chain element."},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),ko=ua("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk(e){return e._visit(this,(function(){this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),Ao=ua("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},ko),No=ua("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},ko),wo=ua("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk(e){return e._visit(this,(function(){this.left._walk(e),this.right._walk(e)}))},_children_backwards(e){e(this.right),e(this.left)}}),Fo=ua("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk(e){return e._visit(this,(function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)}))},_children_backwards(e){e(this.alternative),e(this.consequent),e(this.condition)}}),Po=ua("Assign","logical",{$documentation:"An assignment expression — `a = b + 5`",$propdoc:{logical:"Whether it's a logical assignment"}},wo),Io=ua("DefaultAssign",null,{$documentation:"A default assignment expression like in `(a = 3) => a`"},wo),Oo=ua("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk(e){return e._visit(this,(function(){for(var t=this.elements,r=0,n=t.length;r<n;r++)t[r]._walk(e)}))},_children_backwards(e){let t=this.elements.length;for(;t--;)e(this.elements[t])}}),Mo=ua("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk(e){return e._visit(this,(function(){for(var t=this.properties,r=0,n=t.length;r<n;r++)t[r]._walk(e)}))},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t])}}),Ro=ua("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk(e){return e._visit(this,(function(){this.key instanceof fa&&this.key._walk(e),this.value._walk(e)}))},_children_backwards(e){e(this.value),this.key instanceof fa&&e(this.key)}}),Lo=ua("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"},computed_key(){return this.key instanceof fa}},Ro),Bo=ua("PrivateSetter","static",{$propdoc:{static:"[boolean] whether this is a static private setter"},$documentation:"A private setter property",computed_key:()=>!1},Ro),jo=ua("PrivateGetter","static",{$propdoc:{static:"[boolean] whether this is a static private getter"},$documentation:"A private getter property",computed_key:()=>!1},Ro),Uo=ua("ObjectSetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property",computed_key(){return!(this.key instanceof is)}},Ro),Vo=ua("ObjectGetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property",computed_key(){return!(this.key instanceof is)}},Ro),zo=ua("ConciseMethod","quote static is_generator async",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class",computed_key(){return!(this.key instanceof is)}},Ro),Ko=ua("PrivateMethod","",{$documentation:"A private class method inside a class"},zo),Wo=ua("Class","name extends properties",{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk(e){return e._visit(this,(function(){this.name&&this.name._walk(e),this.extends&&this.extends._walk(e),this.properties.forEach((t=>t._walk(e)))}))},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t]);this.extends&&e(this.extends),this.name&&e(this.name)}},Oa),Ho=ua("ClassProperty","static quote",{$documentation:"A class property",$propdoc:{static:"[boolean] whether this is a static key",quote:"[string] which quote is being used"},_walk(e){return e._visit(this,(function(){this.key instanceof fa&&this.key._walk(e),this.value instanceof fa&&this.value._walk(e)}))},_children_backwards(e){this.value instanceof fa&&e(this.value),this.key instanceof fa&&e(this.key)},computed_key(){return!(this.key instanceof as)}},Ro),Jo=ua("ClassProperty","",{$documentation:"A class property for a private property"},Ho),$o=ua("DefClass",null,{$documentation:"A class definition"},Wo),Go=ua("ClassExpression",null,{$documentation:"A class expression."},Wo),qo=ua("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),Xo=ua("NewTarget",null,{$documentation:"A reference to new.target"}),Yo=ua("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},qo),Qo=ua("SymbolVar",null,{$documentation:"Symbol defining a variable"},Yo),Zo=ua("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},Yo),es=ua("SymbolConst",null,{$documentation:"A constant declaration"},Zo),ts=ua("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},Zo),rs=ua("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},Qo),ns=ua("SymbolDefun",null,{$documentation:"Symbol defining a function"},Yo),is=ua("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},qo),as=ua("SymbolClassProperty",null,{$documentation:"Symbol for a class property"},qo),os=ua("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},Yo),ss=ua("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},Zo),cs=ua("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},Yo),ls=ua("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},Zo),us=ua("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},Zo),ds=ua("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},qo),ps=ua("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize(){this.references=[],this.thedef=this}},qo),_s=ua("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},qo),fs=ua("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},_s),ms=ua("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},qo),gs=ua("LabelRef",null,{$documentation:"Reference to a label symbol"},qo),hs=ua("This",null,{$documentation:"The `this` symbol"},qo),ys=ua("Super",null,{$documentation:"The `super` symbol"},hs),vs=ua("Constant",null,{$documentation:"Base class for all constants",getValue(){return this.value}}),bs=ua("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},vs),xs=ua("Number","value raw",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",raw:"[string] numeric value as string"}},vs),Es=ua("BigInt","value",{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},vs),Ss=ua("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},vs),Ds=ua("Atom",null,{$documentation:"Base class for atoms"},vs),Ts=ua("Null",null,{$documentation:"The `null` atom",value:null},Ds),Cs=ua("NaN",null,{$documentation:"The impossible value",value:NaN},Ds),ks=ua("Undefined",null,{$documentation:"The `undefined` value",value:void 0},Ds),As=ua("Hole",null,{$documentation:"A hole in an array",value:void 0},Ds),Ns=ua("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},Ds),ws=ua("Boolean",null,{$documentation:"Base class for booleans"},Ds),Fs=ua("False",null,{$documentation:"The `false` atom",value:!1},ws),Ps=ua("True",null,{$documentation:"The `true` atom",value:!0},ws);function Is(e,t,r=[e]){const n=r.push.bind(r);for(;r.length;){const e=r.pop(),i=t(e,r);if(i){if(i===Ms)return!0}else e._children_backwards(n)}return!1}function Os(e,t,r){const n=[e],i=n.push.bind(n),a=r?r.slice():[],o=[];let s;const c={parent:(e=0)=>-1===e?s:r&&e>=a.length?(e-=a.length,r[r.length-(e+1)]):a[a.length-(1+e)]};for(;n.length;){for(s=n.pop();o.length&&n.length==o[o.length-1];)a.pop(),o.pop();const e=t(s,c);if(e){if(e===Ms)return!0;continue}const r=n.length;s._children_backwards(i),n.length>r&&(a.push(s),o.push(r-1))}return!1}const Ms=Symbol("abort walk");class Rs{constructor(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}_visit(e,t){this.push(e);var r=this.visit(e,t?()=>{t.call(e)}:ti);return!r&&t&&t.call(e),this.pop(),r}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){e instanceof La?this.directives=Object.create(this.directives):e instanceof ha&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof Wo&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)}pop(){var e=this.stack.pop();(e instanceof La||e instanceof Wo)&&(this.directives=Object.getPrototypeOf(this.directives))}self(){return this.stack[this.stack.length-1]}find_parent(e){for(var t=this.stack,r=t.length;--r>=0;){var n=t[r];if(n instanceof e)return n}}has_directive(e){var t=this.directives[e];if(t)return t;var r=this.stack[this.stack.length-1];if(r instanceof Oa&&r.body)for(var n=0;n<r.body.length;++n){var i=r.body[n];if(!(i instanceof ha))break;if(i.value==e)return i}}loopcontrol_target(e){var t=this.stack;if(e.label){for(var r=t.length;--r>=0;)if((n=t[r])instanceof Ta&&n.label.name==e.label.name)return n.body}else for(r=t.length;--r>=0;){var n;if((n=t[r])instanceof Ca||e instanceof Ya&&n instanceof ro)return n}}}class Ls extends Rs{constructor(e,t){super(),this.before=e,this.after=t}}const Bs=1,js=2,Us=4,Vs=Object.freeze({__proto__:null,AST_Accessor:Ba,AST_Array:Oo,AST_Arrow:Ua,AST_Assign:Po,AST_Atom:Ds,AST_Await:Za,AST_BigInt:Es,AST_Binary:wo,AST_Block:xa,AST_BlockStatement:Ea,AST_Boolean:ws,AST_Break:Ya,AST_Call:vo,AST_Case:ao,AST_Catch:so,AST_Chain:Co,AST_Class:Wo,AST_ClassExpression:Go,AST_ClassPrivateProperty:Jo,AST_ClassProperty:Ho,AST_ConciseMethod:zo,AST_Conditional:Fo,AST_Const:_o,AST_Constant:vs,AST_Continue:Qa,AST_Debugger:ga,AST_Default:io,AST_DefaultAssign:Io,AST_DefClass:$o,AST_Definitions:lo,AST_Defun:Va,AST_Destructuring:za,AST_Directive:ha,AST_Do:Aa,AST_Dot:So,AST_DotHash:Do,AST_DWLoop:ka,AST_EmptyStatement:Sa,AST_Exit:$a,AST_Expansion:Ra,AST_Export:yo,AST_False:Fs,AST_Finally:co,AST_For:wa,AST_ForIn:Fa,AST_ForOf:Pa,AST_Function:ja,AST_Hole:As,AST_If:to,AST_Import:go,AST_ImportMeta:ho,AST_Infinity:Ns,AST_IterationStatement:Ca,AST_Jump:Ja,AST_Label:ps,AST_LabeledStatement:Ta,AST_LabelRef:gs,AST_Lambda:La,AST_Let:po,AST_LoopControl:Xa,AST_NameMapping:mo,AST_NaN:Cs,AST_New:bo,AST_NewTarget:Xo,AST_Node:fa,AST_Null:Ts,AST_Number:xs,AST_Object:Mo,AST_ObjectGetter:Vo,AST_ObjectKeyVal:Lo,AST_ObjectProperty:Ro,AST_ObjectSetter:Uo,AST_PrefixedTemplateString:Ka,AST_PrivateGetter:jo,AST_PrivateMethod:Ko,AST_PrivateSetter:Bo,AST_PropAccess:Eo,AST_RegExp:Ss,AST_Return:Ga,AST_Scope:Oa,AST_Sequence:xo,AST_SimpleStatement:ya,AST_Statement:ma,AST_StatementWithBody:Da,AST_String:bs,AST_Sub:To,AST_Super:ys,AST_Switch:ro,AST_SwitchBranch:no,AST_Symbol:qo,AST_SymbolBlockDeclaration:Zo,AST_SymbolCatch:ls,AST_SymbolClass:cs,AST_SymbolClassProperty:as,AST_SymbolConst:es,AST_SymbolDeclaration:Yo,AST_SymbolDefClass:ss,AST_SymbolDefun:ns,AST_SymbolExport:fs,AST_SymbolExportForeign:ms,AST_SymbolFunarg:rs,AST_SymbolImport:us,AST_SymbolImportForeign:ds,AST_SymbolLambda:os,AST_SymbolLet:ts,AST_SymbolMethod:is,AST_SymbolRef:_s,AST_SymbolVar:Qo,AST_TemplateSegment:Ha,AST_TemplateString:Wa,AST_This:hs,AST_Throw:qa,AST_Token:_a,AST_Toplevel:Ma,AST_True:Ps,AST_Try:oo,AST_Unary:ko,AST_UnaryPostfix:No,AST_UnaryPrefix:Ao,AST_Undefined:ks,AST_Var:uo,AST_VarDef:fo,AST_While:Na,AST_With:Ia,AST_Yield:eo,TreeTransformer:Ls,TreeWalker:Rs,walk:Is,walk_abort:Ms,walk_body:va,walk_parent:Os,_INLINE:js,_NOINLINE:Us,_PURE:Bs});function zs(e,t){e.DEFMETHOD("transform",(function(e,r){let n;if(e.push(this),e.before&&(n=e.before(this,t,r)),void 0===n&&(n=this,t(n,e),e.after)){const t=e.after(n,r);void 0!==t&&(n=t)}return e.pop(),n}))}function Ks(e,t){return oi(e,(e=>e.transform(t,!0)))}function Ws(e){let t=e.parent(-1);for(let r,n=0;r=e.parent(n);n++){if(r instanceof ma&&r.body===t)return!0;if(!(r instanceof xo&&r.expressions[0]===t||"Call"===r.TYPE&&r.expression===t||r instanceof Ka&&r.prefix===t||r instanceof So&&r.expression===t||r instanceof To&&r.expression===t||r instanceof Fo&&r.condition===t||r instanceof wo&&r.left===t||r instanceof No&&r.expression===t))return!1;t=r}}function Hs(e){return e instanceof Mo||(e instanceof xo?Hs(e.expressions[0]):"Call"===e.TYPE?Hs(e.expression):e instanceof Ka?Hs(e.prefix):e instanceof So||e instanceof To?Hs(e.expression):e instanceof Fo?Hs(e.condition):e instanceof wo?Hs(e.left):e instanceof No&&Hs(e.expression))}zs(fa,ti),zs(Ta,((e,t)=>{e.label=e.label.transform(t),e.body=e.body.transform(t)})),zs(ya,((e,t)=>{e.body=e.body.transform(t)})),zs(xa,((e,t)=>{e.body=Ks(e.body,t)})),zs(Aa,((e,t)=>{e.body=e.body.transform(t),e.condition=e.condition.transform(t)})),zs(Na,((e,t)=>{e.condition=e.condition.transform(t),e.body=e.body.transform(t)})),zs(wa,((e,t)=>{e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)})),zs(Fa,((e,t)=>{e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)})),zs(Ia,((e,t)=>{e.expression=e.expression.transform(t),e.body=e.body.transform(t)})),zs($a,((e,t)=>{e.value&&(e.value=e.value.transform(t))})),zs(Xa,((e,t)=>{e.label&&(e.label=e.label.transform(t))})),zs(to,((e,t)=>{e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))})),zs(ro,((e,t)=>{e.expression=e.expression.transform(t),e.body=Ks(e.body,t)})),zs(ao,((e,t)=>{e.expression=e.expression.transform(t),e.body=Ks(e.body,t)})),zs(oo,((e,t)=>{e.body=Ks(e.body,t),e.bcatch&&(e.bcatch=e.bcatch.transform(t)),e.bfinally&&(e.bfinally=e.bfinally.transform(t))})),zs(so,((e,t)=>{e.argname&&(e.argname=e.argname.transform(t)),e.body=Ks(e.body,t)})),zs(lo,((e,t)=>{e.definitions=Ks(e.definitions,t)})),zs(fo,((e,t)=>{e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))})),zs(za,((e,t)=>{e.names=Ks(e.names,t)})),zs(La,((e,t)=>{e.name&&(e.name=e.name.transform(t)),e.argnames=Ks(e.argnames,t),e.body instanceof fa?e.body=e.body.transform(t):e.body=Ks(e.body,t)})),zs(vo,((e,t)=>{e.expression=e.expression.transform(t),e.args=Ks(e.args,t)})),zs(xo,((e,t)=>{const r=Ks(e.expressions,t);e.expressions=r.length?r:[new xs({value:0})]})),zs(So,((e,t)=>{e.expression=e.expression.transform(t)})),zs(To,((e,t)=>{e.expression=e.expression.transform(t),e.property=e.property.transform(t)})),zs(Co,((e,t)=>{e.expression=e.expression.transform(t)})),zs(eo,((e,t)=>{e.expression&&(e.expression=e.expression.transform(t))})),zs(Za,((e,t)=>{e.expression=e.expression.transform(t)})),zs(ko,((e,t)=>{e.expression=e.expression.transform(t)})),zs(wo,((e,t)=>{e.left=e.left.transform(t),e.right=e.right.transform(t)})),zs(Fo,((e,t)=>{e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)})),zs(Oo,((e,t)=>{e.elements=Ks(e.elements,t)})),zs(Mo,((e,t)=>{e.properties=Ks(e.properties,t)})),zs(Ro,((e,t)=>{e.key instanceof fa&&(e.key=e.key.transform(t)),e.value&&(e.value=e.value.transform(t))})),zs(Wo,((e,t)=>{e.name&&(e.name=e.name.transform(t)),e.extends&&(e.extends=e.extends.transform(t)),e.properties=Ks(e.properties,t)})),zs(Ra,((e,t)=>{e.expression=e.expression.transform(t)})),zs(mo,((e,t)=>{e.foreign_name=e.foreign_name.transform(t),e.name=e.name.transform(t)})),zs(go,((e,t)=>{e.imported_name&&(e.imported_name=e.imported_name.transform(t)),e.imported_names&&Ks(e.imported_names,t),e.module_name=e.module_name.transform(t)})),zs(yo,((e,t)=>{e.exported_definition&&(e.exported_definition=e.exported_definition.transform(t)),e.exported_value&&(e.exported_value=e.exported_value.transform(t)),e.exported_names&&Ks(e.exported_names,t),e.module_name&&(e.module_name=e.module_name.transform(t))})),zs(Wa,((e,t)=>{e.segments=Ks(e.segments,t)})),zs(Ka,((e,t)=>{e.prefix=e.prefix.transform(t),e.template_string=e.template_string.transform(t)})),function(){var e=e=>{for(var t=!0,r=0;r<e.length;r++)t&&e[r]instanceof ma&&e[r].body instanceof bs?e[r]=new ha({start:e[r].start,end:e[r].end,value:e[r].body.value}):!t||e[r]instanceof ma&&e[r].body instanceof bs||(t=!1);return e},t={Program:t=>new Ma({start:r(t),end:n(t),body:e(t.body.map(o))}),ArrayPattern:e=>new za({start:r(e),end:n(e),names:e.elements.map((e=>null===e?new As:o(e))),is_array:!0}),ObjectPattern:e=>new za({start:r(e),end:n(e),names:e.properties.map(o),is_array:!1}),AssignmentPattern:e=>new Io({start:r(e),end:n(e),left:o(e.left),operator:"=",right:o(e.right)}),SpreadElement:e=>new Ra({start:r(e),end:n(e),expression:o(e.argument)}),RestElement:e=>new Ra({start:r(e),end:n(e),expression:o(e.argument)}),TemplateElement:e=>new Ha({start:r(e),end:n(e),value:e.value.cooked,raw:e.value.raw}),TemplateLiteral(e){for(var t=[],i=0;i<e.quasis.length;i++)t.push(o(e.quasis[i])),e.expressions[i]&&t.push(o(e.expressions[i]));return new Wa({start:r(e),end:n(e),segments:t})},TaggedTemplateExpression:e=>new Ka({start:r(e),end:n(e),template_string:o(e.quasi),prefix:o(e.tag)}),FunctionDeclaration:t=>new Va({start:r(t),end:n(t),name:o(t.id),argnames:t.params.map(o),is_generator:t.generator,async:t.async,body:e(o(t.body).body)}),FunctionExpression:t=>new ja({start:r(t),end:n(t),name:o(t.id),argnames:t.params.map(o),is_generator:t.generator,async:t.async,body:e(o(t.body).body)}),ArrowFunctionExpression(e){const t="BlockStatement"===e.body.type?o(e.body).body:[si(Ga,{},{value:o(e.body)})];return new Ua({start:r(e),end:n(e),argnames:e.params.map(o),body:t,async:e.async})},ExpressionStatement:e=>new ya({start:r(e),end:n(e),body:o(e.expression)}),TryStatement(e){var t=e.handlers||[e.handler];if(t.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new oo({start:r(e),end:n(e),body:o(e.block).body,bcatch:o(t[0]),bfinally:e.finalizer?new co(o(e.finalizer)):null})},Property(e){var t=e.key,i={start:r(t||e.value),end:n(e.value),key:"Identifier"==t.type?t.name:t.value,value:o(e.value)};return e.computed&&(i.key=o(e.key)),e.method?(i.is_generator=e.value.generator,i.async=e.value.async,e.computed?i.key=o(e.key):i.key=new is({name:i.key}),new zo(i)):"init"==e.kind?("Identifier"!=t.type&&"Literal"!=t.type&&(i.key=o(t)),new Lo(i)):("string"!=typeof i.key&&"number"!=typeof i.key||(i.key=new is({name:i.key})),i.value=new Ba(i.value),"get"==e.kind?new Vo(i):"set"==e.kind?new Uo(i):"method"==e.kind?(i.async=e.value.async,i.is_generator=e.value.generator,i.quote=e.computed?'"':null,new zo(i)):void 0)},MethodDefinition(e){var t={start:r(e),end:n(e),key:e.computed?o(e.key):new is({name:e.key.name||e.key.value}),value:o(e.value),static:e.static};return"get"==e.kind?new Vo(t):"set"==e.kind?new Uo(t):(t.is_generator=e.value.generator,t.async=e.value.async,new zo(t))},FieldDefinition(e){let t;if(e.computed)t=o(e.key);else{if("Identifier"!==e.key.type)throw new Error("Non-Identifier key in FieldDefinition");t=o(e.key)}return new Ho({start:r(e),end:n(e),key:t,value:o(e.value),static:e.static})},PropertyDefinition(e){let t;if(e.computed)t=o(e.key);else{if("Identifier"!==e.key.type)throw new Error("Non-Identifier key in PropertyDefinition");t=o(e.key)}return new Ho({start:r(e),end:n(e),key:t,value:o(e.value),static:e.static})},ArrayExpression:e=>new Oo({start:r(e),end:n(e),elements:e.elements.map((e=>null===e?new As:o(e)))}),ObjectExpression:e=>new Mo({start:r(e),end:n(e),properties:e.properties.map((e=>("SpreadElement"===e.type||(e.type="Property"),o(e))))}),SequenceExpression:e=>new xo({start:r(e),end:n(e),expressions:e.expressions.map(o)}),MemberExpression:e=>new(e.computed?To:So)({start:r(e),end:n(e),property:e.computed?o(e.property):e.property.name,expression:o(e.object),optional:e.optional||!1}),ChainExpression:e=>new Co({start:r(e),end:n(e),expression:o(e.expression)}),SwitchCase:e=>new(e.test?ao:io)({start:r(e),end:n(e),expression:o(e.test),body:e.consequent.map(o)}),VariableDeclaration:e=>new("const"===e.kind?_o:"let"===e.kind?po:uo)({start:r(e),end:n(e),definitions:e.declarations.map(o)}),ImportDeclaration(e){var t=null,i=null;return e.specifiers.forEach((e=>{"ImportSpecifier"===e.type?(i||(i=[]),i.push(new mo({start:r(e),end:n(e),foreign_name:o(e.imported),name:o(e.local)}))):"ImportDefaultSpecifier"===e.type?t=o(e.local):"ImportNamespaceSpecifier"===e.type&&(i||(i=[]),i.push(new mo({start:r(e),end:n(e),foreign_name:new ds({name:"*"}),name:o(e.local)})))})),new go({start:r(e),end:n(e),imported_name:t,imported_names:i,module_name:o(e.source)})},ExportAllDeclaration:e=>new yo({start:r(e),end:n(e),exported_names:[new mo({name:new ms({name:"*"}),foreign_name:new ms({name:"*"})})],module_name:o(e.source)}),ExportNamedDeclaration:e=>new yo({start:r(e),end:n(e),exported_definition:o(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map((e=>new mo({foreign_name:o(e.exported),name:o(e.local)}))):null,module_name:o(e.source)}),ExportDefaultDeclaration:e=>new yo({start:r(e),end:n(e),exported_value:o(e.declaration),is_default:!0}),Literal(e){var t=e.value,i={start:r(e),end:n(e)},a=e.regex;if(a&&a.pattern)return i.value={source:a.pattern,flags:a.flags},new Ss(i);if(a){const r=e.raw||t,n=r.match(/^\/(.*)\/(\w*)$/);if(!n)throw new Error("Invalid regex source "+r);const[a,o,s]=n;return i.value={source:o,flags:s},new Ss(i)}if(null===t)return new Ts(i);switch(typeof t){case"string":return i.value=t,new bs(i);case"number":return i.value=t,i.raw=e.raw||t.toString(),new xs(i);case"boolean":return new(t?Ps:Fs)(i)}},MetaProperty:e=>"new"===e.meta.name&&"target"===e.property.name?new Xo({start:r(e),end:n(e)}):"import"===e.meta.name&&"meta"===e.property.name?new ho({start:r(e),end:n(e)}):void 0,Identifier(e){var t=a[a.length-2];return new("LabeledStatement"==t.type?ps:"VariableDeclarator"==t.type&&t.id===e?"const"==t.kind?es:"let"==t.kind?ts:Qo:/Import.*Specifier/.test(t.type)?t.local===e?us:ds:"ExportSpecifier"==t.type?t.local===e?fs:ms:"FunctionExpression"==t.type?t.id===e?os:rs:"FunctionDeclaration"==t.type?t.id===e?ns:rs:"ArrowFunctionExpression"==t.type?t.params.includes(e)?rs:_s:"ClassExpression"==t.type?t.id===e?cs:_s:"Property"==t.type?t.key===e&&t.computed||t.value===e?_s:is:"PropertyDefinition"==t.type||"FieldDefinition"===t.type?t.key===e&&t.computed||t.value===e?_s:as:"ClassDeclaration"==t.type?t.id===e?ss:_s:"MethodDefinition"==t.type?t.computed?_s:is:"CatchClause"==t.type?ls:"BreakStatement"==t.type||"ContinueStatement"==t.type?gs:_s)({start:r(e),end:n(e),name:e.name})},BigIntLiteral:e=>new Es({start:r(e),end:n(e),value:e.value})};function r(e){var t=e.loc,r=t&&t.start,n=e.range;return new _a("","",r&&r.line||0,r&&r.column||0,n?n[0]:e.start,!1,[],[],t&&t.source)}function n(e){var t=e.loc,r=t&&t.end,n=e.range;return new _a("","",r&&r.line||0,r&&r.column||0,n?n[0]:e.end,!1,[],[],t&&t.source)}function i(e,i,a){var c="function From_Moz_"+e+"(M){\n";c+="return new U2."+i.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var u="function To_Moz_"+e+"(M){\n";u+="return {\ntype: "+JSON.stringify(e),a&&a.split(/\s*,\s*/).forEach((e=>{var t=/([a-z0-9$_]+)([=@>%])([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var r=t[1],n=t[2],i=t[3];switch(c+=",\n"+i+": ",u+=",\n"+r+": ",n){case"@":c+="M."+r+".map(from_moz)",u+="M."+i+".map(to_moz)";break;case">":c+="from_moz(M."+r+")",u+="to_moz(M."+i+")";break;case"=":c+="M."+r,u+="M."+i;break;case"%":c+="from_moz(M."+r+").body",u+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}})),c+="\n})\n}",u+="\n}\n}",c=new Function("U2","my_start_token","my_end_token","from_moz","return("+c+")")(Vs,r,n,o),u=new Function("to_moz","to_moz_block","to_moz_scope","return("+u+")")(l,d,p),t[e]=c,s(i,u)}t.UpdateExpression=t.UnaryExpression=e=>new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Ao:No)({start:r(e),end:n(e),operator:e.operator,expression:o(e.argument)}),t.ClassDeclaration=t.ClassExpression=e=>new("ClassDeclaration"===e.type?$o:Go)({start:r(e),end:n(e),name:o(e.id),extends:o(e.superClass),properties:e.body.body.map(o)}),i("EmptyStatement",Sa),i("BlockStatement",Ea,"body@body"),i("IfStatement",to,"test>condition, consequent>body, alternate>alternative"),i("LabeledStatement",Ta,"label>label, body>body"),i("BreakStatement",Ya,"label>label"),i("ContinueStatement",Qa,"label>label"),i("WithStatement",Ia,"object>expression, body>body"),i("SwitchStatement",ro,"discriminant>expression, cases@body"),i("ReturnStatement",Ga,"argument>value"),i("ThrowStatement",qa,"argument>value"),i("WhileStatement",Na,"test>condition, body>body"),i("DoWhileStatement",Aa,"test>condition, body>body"),i("ForStatement",wa,"init>init, test>condition, update>step, body>body"),i("ForInStatement",Fa,"left>init, right>object, body>body"),i("ForOfStatement",Pa,"left>init, right>object, body>body, await=await"),i("AwaitExpression",Za,"argument>expression"),i("YieldExpression",eo,"argument>expression, delegate=is_star"),i("DebuggerStatement",ga),i("VariableDeclarator",fo,"id>name, init>value"),i("CatchClause",so,"param>argname, body%body"),i("ThisExpression",hs),i("Super",ys),i("BinaryExpression",wo,"operator=operator, left>left, right>right"),i("LogicalExpression",wo,"operator=operator, left>left, right>right"),i("AssignmentExpression",Po,"operator=operator, left>left, right>right"),i("ConditionalExpression",Fo,"test>condition, consequent>consequent, alternate>alternative"),i("NewExpression",bo,"callee>expression, arguments@args"),i("CallExpression",vo,"callee>expression, optional=optional, arguments@args"),s(Ma,(e=>p("Program",e))),s(Ra,(e=>({type:u()?"RestElement":"SpreadElement",argument:l(e.expression)}))),s(Ka,(e=>({type:"TaggedTemplateExpression",tag:l(e.prefix),quasi:l(e.template_string)}))),s(Wa,(e=>{for(var t=[],r=[],n=0;n<e.segments.length;n++)n%2!=0?r.push(l(e.segments[n])):t.push({type:"TemplateElement",value:{raw:e.segments[n].raw,cooked:e.segments[n].value},tail:n===e.segments.length-1});return{type:"TemplateLiteral",quasis:t,expressions:r}})),s(Va,(e=>({type:"FunctionDeclaration",id:l(e.name),params:e.argnames.map(l),generator:e.is_generator,async:e.async,body:p("BlockStatement",e)}))),s(ja,((e,t)=>{var r=void 0!==t.is_generator?t.is_generator:e.is_generator;return{type:"FunctionExpression",id:l(e.name),params:e.argnames.map(l),generator:r,async:e.async,body:p("BlockStatement",e)}})),s(Ua,(e=>{var t={type:"BlockStatement",body:e.body.map(l)};return{type:"ArrowFunctionExpression",params:e.argnames.map(l),async:e.async,body:t}})),s(za,(e=>e.is_array?{type:"ArrayPattern",elements:e.names.map(l)}:{type:"ObjectPattern",properties:e.names.map(l)})),s(ha,(e=>({type:"ExpressionStatement",expression:{type:"Literal",value:e.value,raw:e.print_to_string()},directive:e.value}))),s(ya,(e=>({type:"ExpressionStatement",expression:l(e.body)}))),s(no,(e=>({type:"SwitchCase",test:l(e.expression),consequent:e.body.map(l)}))),s(oo,(e=>({type:"TryStatement",block:d(e),handler:l(e.bcatch),guardedHandlers:[],finalizer:l(e.bfinally)}))),s(so,(e=>({type:"CatchClause",param:l(e.argname),guard:null,body:d(e)}))),s(lo,(e=>({type:"VariableDeclaration",kind:e instanceof _o?"const":e instanceof po?"let":"var",declarations:e.definitions.map(l)}))),s(yo,(e=>e.exported_names?"*"===e.exported_names[0].name.name?{type:"ExportAllDeclaration",source:l(e.module_name)}:{type:"ExportNamedDeclaration",specifiers:e.exported_names.map((e=>({type:"ExportSpecifier",exported:l(e.foreign_name),local:l(e.name)}))),declaration:l(e.exported_definition),source:l(e.module_name)}:{type:e.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:l(e.exported_value||e.exported_definition)})),s(go,(e=>{var t=[];return e.imported_name&&t.push({type:"ImportDefaultSpecifier",local:l(e.imported_name)}),e.imported_names&&"*"===e.imported_names[0].foreign_name.name?t.push({type:"ImportNamespaceSpecifier",local:l(e.imported_names[0].name)}):e.imported_names&&e.imported_names.forEach((e=>{t.push({type:"ImportSpecifier",local:l(e.name),imported:l(e.foreign_name)})})),{type:"ImportDeclaration",specifiers:t,source:l(e.module_name)}})),s(ho,(()=>({type:"MetaProperty",meta:{type:"Identifier",name:"import"},property:{type:"Identifier",name:"meta"}}))),s(xo,(e=>({type:"SequenceExpression",expressions:e.expressions.map(l)}))),s(Do,(e=>({type:"MemberExpression",object:l(e.expression),computed:!1,property:{type:"PrivateIdentifier",name:e.property},optional:e.optional}))),s(Eo,(e=>{var t=e instanceof To;return{type:"MemberExpression",object:l(e.expression),computed:t,property:t?l(e.property):{type:"Identifier",name:e.property},optional:e.optional}})),s(Co,(e=>({type:"ChainExpression",expression:l(e.expression)}))),s(ko,(e=>({type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Ao,argument:l(e.expression)}))),s(wo,(e=>"="==e.operator&&u()?{type:"AssignmentPattern",left:l(e.left),right:l(e.right)}:{type:"&&"==e.operator||"||"==e.operator||"??"===e.operator?"LogicalExpression":"BinaryExpression",left:l(e.left),operator:e.operator,right:l(e.right)})),s(Oo,(e=>({type:"ArrayExpression",elements:e.elements.map(l)}))),s(Mo,(e=>({type:"ObjectExpression",properties:e.properties.map(l)}))),s(Ro,((e,t)=>{var r,n=e.key instanceof fa?l(e.key):{type:"Identifier",value:e.key};"number"==typeof e.key&&(n={type:"Literal",value:Number(e.key)}),"string"==typeof e.key&&(n={type:"Identifier",name:e.key});var i="string"==typeof e.key||"number"==typeof e.key,a=!i&&(!(e.key instanceof qo)||e.key instanceof _s);return e instanceof Lo?(r="init",a=!i):e instanceof Vo?r="get":e instanceof Uo&&(r="set"),e instanceof jo||e instanceof Bo?{type:"MethodDefinition",computed:!1,kind:e instanceof jo?"get":"set",static:e.static,key:{type:"PrivateIdentifier",name:e.key.name},value:l(e.value)}:e instanceof Jo?{type:"PropertyDefinition",key:{type:"PrivateIdentifier",name:e.key.name},value:l(e.value),computed:!1,static:e.static}:e instanceof Ho?{type:"PropertyDefinition",key:n,value:l(e.value),computed:a,static:e.static}:t instanceof Wo?{type:"MethodDefinition",computed:a,kind:r,static:e.static,key:l(e.key),value:l(e.value)}:{type:"Property",computed:a,kind:r,key:n,value:l(e.value)}})),s(zo,((e,t)=>{if(t instanceof Mo)return{type:"Property",computed:!(e.key instanceof qo)||e.key instanceof _s,kind:"init",method:!0,shorthand:!1,key:l(e.key),value:l(e.value)};const r=e instanceof Ko?{type:"PrivateIdentifier",name:e.key.name}:l(e.key);return{type:"MethodDefinition",kind:"constructor"===e.key?"constructor":"method",key:r,value:l(e.value),computed:!(e.key instanceof qo)||e.key instanceof _s,static:e.static}})),s(Wo,(e=>({type:e instanceof Go?"ClassExpression":"ClassDeclaration",superClass:l(e.extends),id:e.name?l(e.name):null,body:{type:"ClassBody",body:e.properties.map(l)}}))),s(Xo,(()=>({type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}))),s(qo,((e,t)=>{if(e instanceof is&&t.quote)return{type:"Literal",value:e.name};var r=e.definition();return{type:"Identifier",name:r?r.mangled_name||r.name:e.name}})),s(Ss,(e=>{const t=e.value.source,r=e.value.flags;return{type:"Literal",value:null,raw:e.print_to_string(),regex:{pattern:t,flags:r}}})),s(vs,(e=>({type:"Literal",value:e.value,raw:e.raw||e.print_to_string()}))),s(Ds,(e=>({type:"Identifier",name:String(e.value)}))),s(Es,(e=>({type:"BigIntLiteral",value:e.value}))),ws.DEFMETHOD("to_mozilla_ast",vs.prototype.to_mozilla_ast),Ts.DEFMETHOD("to_mozilla_ast",vs.prototype.to_mozilla_ast),As.DEFMETHOD("to_mozilla_ast",(()=>null)),xa.DEFMETHOD("to_mozilla_ast",Ea.prototype.to_mozilla_ast),La.DEFMETHOD("to_mozilla_ast",ja.prototype.to_mozilla_ast);var a=null;function o(e){a.push(e);var r=null!=e?t[e.type](e):null;return a.pop(),r}function s(e,t){e.DEFMETHOD("to_mozilla_ast",(function(e){return r=t(this,e),n=this.start,i=this.end,n&&i?(null!=n.pos&&null!=i.endpos&&(r.range=[n.pos,i.endpos]),n.line&&(r.loc={start:{line:n.line,column:n.col},end:i.endline?{line:i.endline,column:i.endcol}:null},n.file&&(r.loc.source=n.file)),r):r;var r,n,i}))}fa.from_mozilla_ast=e=>{var t=a;a=[];var r=o(e);return a=t,r};var c=null;function l(e){null===c&&(c=[]),c.push(e);var t=null!=e?e.to_mozilla_ast(c[c.length-2]):null;return c.pop(),0===c.length&&(c=null),t}function u(){for(var e=c.length;e--;)if(c[e]instanceof za)return!0;return!1}function d(e){return{type:"BlockStatement",body:e.body.map(l)}}function p(e,t){var r=t.body.map(l);return t.body[0]instanceof ya&&t.body[0].body instanceof bs&&r.unshift(l(new Sa(t.body[0]))),{type:e,body:r}}}();const Js=/^$|[;{][\s\n]*$/,$s=/[@#]__(PURE|INLINE|NOINLINE)__/g;function Gs(e){return("comment2"===e.type||"comment1"===e.type)&&/@preserve|@lic|@cc_on|^\**!/i.test(e.value)}function qs(e){var t=!e;void 0===(e=ei(e,{ascii_only:!1,beautify:!1,braces:!1,comments:"some",ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_numbers:!1,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_annotations:!1,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1,wrap_func_args:!0},!0)).shorthand&&(e.shorthand=e.ecma>5);var r=ri;if(e.comments){let t=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var n=e.comments.lastIndexOf("/");t=new RegExp(e.comments.substr(1,n-1),e.comments.substr(n+1))}r=t instanceof RegExp?e=>"comment5"!=e.type&&t.test(e.value):"function"==typeof t?function(e){return"comment5"!=e.type&&t(this,e)}:"some"===t?Gs:ni}var i=0,a=0,o=1,s=0,c="";let l=new Set;var u=e.ascii_only?(t,r)=>(e.ecma>=2015&&!e.safari10&&(t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,(e=>"\\u{"+((e,t)=>Ki(e.charCodeAt(0))?65536+(e.charCodeAt(0)-55296<<10)+e.charCodeAt(1)-56320:e.charCodeAt(0))(e).toString(16)+"}"))),t.replace(/[\u0000-\u001f\u007f-\uffff]/g,(e=>{var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!r){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t}))):e=>e.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,((e,t)=>t?"\\u"+t.charCodeAt(0).toString(16):e));function d(t,r){var n=((t,r)=>{var n=0,i=0;function a(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function o(){return'"'+t.replace(/\x22/g,'\\"')+'"'}if(t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,((r,a)=>{switch(r){case'"':return++n,'"';case"'":return++i,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(zi(t,a+1))?"\\x00":"\\0"}return r})),t=u(t),"`"===r)return"`"+t.replace(/`/g,"\\`")+"`";switch(e.quote_style){case 1:return a();case 2:return o();case 3:return"'"==r?a():o();default:return n>i?a():o()}})(t,r);return e.inline_script&&(n=(n=(n=n.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),n}var p,_,f=!1,m=!1,g=!1,h=0,y=!1,v=!1,b=-1,x="",E=e.source_map&&[],S=E?()=>{E.forEach((t=>{try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,t.name||"name"!=t.token.type?t.name:t.token.value)}catch(e){}})),E=[]}:ti,D=e.max_line_len?()=>{if(a>e.max_line_len&&h){var t=c.slice(0,h),r=c.slice(h);if(E){var n=r.length-a;E.forEach((e=>{e.line++,e.col+=n}))}c=t+"\n"+r,o++,s++,a=r.length}h&&(h=0,S())}:ti,T=pi("( [ + * / - , . `");function C(t){var r=zi(t=String(t),0);y&&r&&(y=!1,"\n"!==r&&(C("\n"),A())),v&&r&&(v=!1,/[\s;})]/.test(r)||k()),b=-1;var n=x.charAt(x.length-1);g&&(g=!1,(":"!==n||"}"!==r)&&(r&&";}".includes(r)||";"===n)||(e.semicolons||T.has(r)?(c+=";",a++,s++):(D(),a>0&&(c+="\n",s++,o++,a=0),/^\s+$/.test(t)&&(g=!0)),e.beautify||(m=!1))),m&&(($i(n)&&($i(r)||"\\"==r)||"/"==r&&r==n||("+"==r||"-"==r)&&r==x)&&(c+=" ",a++,s++),m=!1),p&&(E.push({token:p,name:_,line:o,col:a}),p=!1,h||S()),c+=t,f="("==t[t.length-1],s+=t.length;var i=t.split(/\r?\n/),l=i.length-1;o+=l,a+=i[0].length,l>0&&(D(),a=i[l].length),x=t}var k=e.beautify?()=>{C(" ")}:()=>{m=!0},A=e.beautify?t=>{var r;e.beautify&&C((r=t?.5:0," ".repeat(e.indent_start+i-r*e.indent_level)))}:ti,N=e.beautify?(e,t)=>{!0===e&&(e=I());var r=i;i=e;var n=t();return i=r,n}:(e,t)=>t(),w=e.beautify?()=>{if(b<0)return C("\n");"\n"!=c[b]&&(c=c.slice(0,b)+"\n"+c.slice(b),s++,o++),b++}:e.max_line_len?()=>{D(),h=c.length}:ti,F=e.beautify?()=>{C(";")}:()=>{g=!0};function P(){g=!1,C(";")}function I(){return i+e.indent_level}function O(){return h&&D(),c}function M(){let e=c.length-1;for(;e>=0;){const t=c.charCodeAt(e);if(10===t)return!0;if(32!==t)return!1;e--}return!0}function R(t){return e.preserve_annotations||(t=t.replace($s," ")),/^\s*$/.test(t)?"":t.replace(/(<\s*\/\s*)(script)/i,"<\\/$2")}var L=[];return{get:O,toString:O,indent:A,in_directive:!1,use_asm:null,active_scope:null,indentation:()=>i,current_width:()=>a-i,should_break(){return e.width&&this.current_width()>=e.width},has_parens:()=>f,newline:w,print:C,star(){C("*")},space:k,comma(){C(","),k()},colon(){C(":"),k()},last:()=>x,semicolon:F,force_semicolon:P,to_utf8:u,print_name(e){C((e=>(e=e.toString(),u(e,!0)))(e))},print_string(e,t,r){var n=d(e,t);!0!==r||n.includes("\\")||(Js.test(c)||P(),P()),C(n)},print_template_string_chars(e){var t=d(e,"`").replace(/\${/g,"\\${");return C(t.substr(1,t.length-2))},encode_string:d,next_indent:I,with_indent:N,with_block(e){var t;return C("{"),w(),N(I(),(()=>{t=e()})),A(),C("}"),t},with_parens(e){C("(");var t=e();return C(")"),t},with_square(e){C("[");var t=e();return C("]"),t},add_mapping:E?(e,t)=>{p=e,_=t}:ti,option:t=>e[t],printed_comments:l,prepend_comments:t?ti:function(t){var n=t.start;if(!n)return;var i=this.printed_comments;const a=t instanceof $a&&t.value;if(n.comments_before&&i.has(n.comments_before)){if(!a)return;n.comments_before=[]}var o=n.comments_before;if(o||(o=n.comments_before=[]),i.add(o),a){var c=new Rs((e=>{var t=c.parent();if(!(t instanceof $a||t instanceof wo&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof Fo&&t.condition===e||t instanceof So&&t.expression===e||t instanceof xo&&t.expressions[0]===e||t instanceof To&&t.expression===e||t instanceof No))return!0;if(e.start){var r=e.start.comments_before;r&&!i.has(r)&&(i.add(r),o=o.concat(r))}}));c.push(t),t.value.walk(c)}if(0==s){o.length>0&&e.shebang&&"comment5"===o[0].type&&!i.has(o[0])&&(C("#!"+o.shift().value+"\n"),A());var l=e.preamble;l&&C(l.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(o=o.filter(r,t).filter((e=>!i.has(e)))).length){var u=M();o.forEach(((e,t)=>{if(i.add(e),u||(e.nlb?(C("\n"),A(),u=!0):t>0&&k()),/comment[134]/.test(e.type))(r=R(e.value))&&(C("//"+r+"\n"),A()),u=!0;else if("comment2"==e.type){var r;(r=R(e.value))&&C("/*"+r+"*/"),u=!1}})),u||(n.nlb?(C("\n"),A()):k())}},append_comments:t||r===ri?ti:function(e,t){var n=e.end;if(n){var i=this.printed_comments,a=n[t?"comments_before":"comments_after"];if(a&&!i.has(a)&&(e instanceof ma||a.every((e=>!/comment[134]/.test(e.type))))){i.add(a);var o=c.length;a.filter(r,e).forEach(((e,r)=>{if(!i.has(e))if(i.add(e),v=!1,y?(C("\n"),A(),y=!1):e.nlb&&(r>0||!M())?(C("\n"),A()):(r>0||!t)&&k(),/comment[134]/.test(e.type)){const t=R(e.value);t&&C("//"+t),y=!0}else if("comment2"==e.type){const t=R(e.value);t&&C("/*"+t+"*/"),v=!0}})),c.length>o&&(b=o)}}},line:()=>o,col:()=>a,pos:()=>s,push_node(e){L.push(e)},pop_node:()=>L.pop(),parent:e=>L[L.length-2-(e||0)]}}!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}function t(e,r){Array.isArray(e)?e.forEach((e=>{t(e,r)})):e.DEFMETHOD("needs_parens",r)}function r(e,t,r,n){var i=e.length-1;r.in_directive=n,e.forEach(((e,n)=>{!0!==r.in_directive||e instanceof ha||e instanceof Sa||e instanceof ya&&e.body instanceof bs||(r.in_directive=!1),e instanceof Sa||(r.indent(),e.print(r),n==i&&t||(r.newline(),t&&r.newline())),!0===r.in_directive&&e instanceof ya&&e.body instanceof bs&&(r.in_directive=!1)})),r.in_directive=!1}function n(e,t){t.print("{"),t.with_indent(t.next_indent(),(()=>{t.append_comments(e,!0)})),t.print("}")}function i(e,t,i){e.body.length>0?t.with_block((()=>{r(e.body,!1,t,i)})):n(e,t)}function a(e,t,r){var n=!1;r&&(n=Is(e,(e=>e instanceof Oa||(e instanceof wo&&"in"==e.operator?Ms:void 0)))),e.print(t,n)}function o(e,t,r){return r.option("quote_keys")?r.print_string(e):""+ +e==e&&e>=0?r.option("keep_numbers")?r.print(e):r.print(u(e)):(Ti.has(e)?r.option("ie8"):r.option("ecma")<2015||r.option("safari10")?!qi(e):!Xi(e,!0))||t&&r.option("keep_quoted_props")?r.print_string(e,t):r.print_name(e)}fa.DEFMETHOD("print",(function(e,t){var r=this,n=r._codegen;function i(){e.prepend_comments(r),r.add_source_map(e),n(r,e),e.append_comments(r)}r instanceof Oa?e.active_scope=r:!e.use_asm&&r instanceof ha&&"use asm"==r.value&&(e.use_asm=e.active_scope),e.push_node(r),t||r.needs_parens(e)?e.with_parens(i):i(),e.pop_node(),r===e.use_asm&&(e.use_asm=null)})),fa.DEFMETHOD("_print",fa.prototype.print),fa.DEFMETHOD("print_to_string",(function(e){var t=qs(e);return this.print(t),t.get()})),t(fa,ri),t(ja,(function(e){return!((e.has_parens()||!Ws(e))&&!(e.option("webkit")&&(t=e.parent())instanceof Eo&&t.expression===this)&&!(e.option("wrap_iife")&&(t=e.parent())instanceof vo&&t.expression===this)&&!(e.option("wrap_func_args")&&(t=e.parent())instanceof vo&&t.args.includes(this)));var t})),t(Ua,(function(e){var t=e.parent();return!!(e.option("wrap_func_args")&&t instanceof vo&&t.args.includes(this))||t instanceof Eo&&t.expression===this})),t(Mo,(e=>!e.has_parens()&&Ws(e))),t(Go,Ws),t(ko,(function(e){var t=e.parent();return t instanceof Eo&&t.expression===this||t instanceof vo&&t.expression===this||t instanceof wo&&"**"===t.operator&&this instanceof Ao&&t.left===this&&"++"!==this.operator&&"--"!==this.operator})),t(Za,(function(e){var t=e.parent();return t instanceof Eo&&t.expression===this||t instanceof vo&&t.expression===this||t instanceof wo&&"**"===t.operator&&t.left===this||e.option("safari10")&&t instanceof Ao})),t(xo,(function(e){var t=e.parent();return t instanceof vo||t instanceof ko||t instanceof wo||t instanceof fo||t instanceof Eo||t instanceof Oo||t instanceof Ro||t instanceof Fo||t instanceof Ua||t instanceof Io||t instanceof Ra||t instanceof Pa&&this===t.object||t instanceof eo||t instanceof yo})),t(wo,(function(e){var t=e.parent();if(t instanceof vo&&t.expression===this)return!0;if(t instanceof ko)return!0;if(t instanceof Eo&&t.expression===this)return!0;if(t instanceof wo){const e=t.operator,r=this.operator;if("??"===r&&("||"===e||"&&"===e))return!0;if("??"===e&&("||"===r||"&&"===r))return!0;const n=sa[e],i=sa[r];if(n>i||n==i&&(this===t.right||"**"==e))return!0}})),t(eo,(function(e){var t=e.parent();return t instanceof wo&&"="!==t.operator||t instanceof vo&&t.expression===this||t instanceof Fo&&t.condition===this||t instanceof ko||t instanceof Eo&&t.expression===this||void 0})),t(Eo,(function(e){var t=e.parent();if(t instanceof bo&&t.expression===this)return Is(this,(e=>e instanceof Oa||(e instanceof vo?Ms:void 0)))})),t(vo,(function(e){var t,r=e.parent();return!!(r instanceof bo&&r.expression===this||r instanceof yo&&r.is_default&&this.expression instanceof ja)||this.expression instanceof ja&&r instanceof Eo&&r.expression===this&&(t=e.parent(1))instanceof Po&&t.left===r})),t(bo,(function(e){var t=e.parent();if(0===this.args.length&&(t instanceof Eo||t instanceof vo&&t.expression===this))return!0})),t(xs,(function(e){var t=e.parent();if(t instanceof Eo&&t.expression===this){var r=this.getValue();if(r<0||/^0/.test(u(r)))return!0}})),t(Es,(function(e){var t=e.parent();if(t instanceof Eo&&t.expression===this&&this.getValue().startsWith("-"))return!0})),t([Po,Fo],(function(e){var t=e.parent();return t instanceof ko||t instanceof wo&&!(t instanceof Po)||t instanceof vo&&t.expression===this||t instanceof Fo&&t.condition===this||t instanceof Eo&&t.expression===this||this instanceof Po&&this.left instanceof za&&!1===this.left.is_array||void 0})),e(ha,((e,t)=>{t.print_string(e.value,e.quote),t.semicolon()})),e(Ra,((e,t)=>{t.print("..."),e.expression.print(t)})),e(za,((e,t)=>{t.print(e.is_array?"[":"{");var r=e.names.length;e.names.forEach(((e,n)=>{n>0&&t.comma(),e.print(t),n==r-1&&e instanceof As&&t.comma()})),t.print(e.is_array?"]":"}")})),e(ga,((e,t)=>{t.print("debugger"),t.semicolon()})),Da.DEFMETHOD("_do_print_body",(function(e){l(this.body,e)})),e(ma,((e,t)=>{e.body.print(t),t.semicolon()})),e(Ma,((e,t)=>{r(e.body,!0,t,!0),t.print("")})),e(Ta,((e,t)=>{e.label.print(t),t.colon(),e.body.print(t)})),e(ya,((e,t)=>{e.body.print(t),t.semicolon()})),e(Ea,((e,t)=>{i(e,t)})),e(Sa,((e,t)=>{t.semicolon()})),e(Aa,((e,t)=>{t.print("do"),t.space(),d(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens((()=>{e.condition.print(t)})),t.semicolon()})),e(Na,((e,t)=>{t.print("while"),t.space(),t.with_parens((()=>{e.condition.print(t)})),t.space(),e._do_print_body(t)})),e(wa,((e,t)=>{t.print("for"),t.space(),t.with_parens((()=>{e.init?(e.init instanceof lo?e.init.print(t):a(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)})),t.space(),e._do_print_body(t)})),e(Fa,((e,t)=>{t.print("for"),e.await&&(t.space(),t.print("await")),t.space(),t.with_parens((()=>{e.init.print(t),t.space(),t.print(e instanceof Pa?"of":"in"),t.space(),e.object.print(t)})),t.space(),e._do_print_body(t)})),e(Ia,((e,t)=>{t.print("with"),t.space(),t.with_parens((()=>{e.expression.print(t)})),t.space(),e._do_print_body(t)})),La.DEFMETHOD("_do_print",(function(e,t){var r=this;t||(r.async&&(e.print("async"),e.space()),e.print("function"),r.is_generator&&e.star(),r.name&&e.space()),r.name instanceof qo?r.name.print(e):t&&r.name instanceof fa&&e.with_square((()=>{r.name.print(e)})),e.with_parens((()=>{r.argnames.forEach(((t,r)=>{r&&e.comma(),t.print(e)}))})),e.space(),i(r,e,!0)})),e(La,((e,t)=>{e._do_print(t)})),e(Ka,((e,t)=>{var r=e.prefix,n=r instanceof La||r instanceof wo||r instanceof Fo||r instanceof xo||r instanceof ko||r instanceof So&&r.expression instanceof Mo;n&&t.print("("),e.prefix.print(t),n&&t.print(")"),e.template_string.print(t)})),e(Wa,((e,t)=>{var r=t.parent()instanceof Ka;t.print("`");for(var n=0;n<e.segments.length;n++)e.segments[n]instanceof Ha?r?t.print(e.segments[n].raw):t.print_template_string_chars(e.segments[n].value):(t.print("${"),e.segments[n].print(t),t.print("}"));t.print("`")})),e(Ha,((e,t)=>{t.print_template_string_chars(e.value)})),Ua.DEFMETHOD("_do_print",(function(e){var t=this,r=e.parent(),n=r instanceof wo&&!(r instanceof Po)||r instanceof ko||r instanceof vo&&t===r.expression;n&&e.print("("),t.async&&(e.print("async"),e.space()),1===t.argnames.length&&t.argnames[0]instanceof qo?t.argnames[0].print(e):e.with_parens((()=>{t.argnames.forEach(((t,r)=>{r&&e.comma(),t.print(e)}))})),e.space(),e.print("=>"),e.space();const a=t.body[0];if(1===t.body.length&&a instanceof Ga){const t=a.value;t?Hs(t)?(e.print("("),t.print(e),e.print(")")):t.print(e):e.print("{}")}else i(t,e);n&&e.print(")")})),$a.DEFMETHOD("_do_print",(function(e,t){if(e.print(t),this.value){e.space();const t=this.value.start.comments_before;t&&t.length&&!e.printed_comments.has(t)?(e.print("("),this.value.print(e),e.print(")")):this.value.print(e)}e.semicolon()})),e(Ga,((e,t)=>{e._do_print(t,"return")})),e(qa,((e,t)=>{e._do_print(t,"throw")})),e(eo,((e,t)=>{var r=e.is_star?"*":"";t.print("yield"+r),e.expression&&(t.space(),e.expression.print(t))})),e(Za,((e,t)=>{t.print("await"),t.space();var r=e.expression,n=!(r instanceof vo||r instanceof _s||r instanceof Eo||r instanceof ko||r instanceof vs||r instanceof Za||r instanceof Mo);n&&t.print("("),e.expression.print(t),n&&t.print(")")})),Xa.DEFMETHOD("_do_print",(function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()})),e(Ya,((e,t)=>{e._do_print(t,"break")})),e(Qa,((e,t)=>{e._do_print(t,"continue")})),e(to,((e,t)=>{t.print("if"),t.space(),t.with_parens((()=>{e.condition.print(t)})),t.space(),e.alternative?(((e,t)=>{var r=e.body;if(t.option("braces")||t.option("ie8")&&r instanceof Aa)return d(r,t);if(!r)return t.force_semicolon();for(;;)if(r instanceof to){if(!r.alternative)return void d(e.body,t);r=r.alternative}else{if(!(r instanceof Da))break;r=r.body}l(e.body,t)})(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof to?e.alternative.print(t):l(e.alternative,t)):e._do_print_body(t)})),e(ro,((e,t)=>{t.print("switch"),t.space(),t.with_parens((()=>{e.expression.print(t)})),t.space();var r=e.body.length-1;r<0?n(e,t):t.with_block((()=>{e.body.forEach(((e,n)=>{t.indent(!0),e.print(t),n<r&&e.body.length>0&&t.newline()}))}))})),no.DEFMETHOD("_do_print_body",(function(e){e.newline(),this.body.forEach((t=>{e.indent(),t.print(e),e.newline()}))})),e(io,((e,t)=>{t.print("default:"),e._do_print_body(t)})),e(ao,((e,t)=>{t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)})),e(oo,((e,t)=>{t.print("try"),t.space(),i(e,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))})),e(so,((e,t)=>{t.print("catch"),e.argname&&(t.space(),t.with_parens((()=>{e.argname.print(t)}))),t.space(),i(e,t)})),e(co,((e,t)=>{t.print("finally"),t.space(),i(e,t)})),lo.DEFMETHOD("_do_print",(function(e,t){e.print(t),e.space(),this.definitions.forEach(((t,r)=>{r&&e.comma(),t.print(e)}));var r=e.parent();(!(r instanceof wa||r instanceof Fa)||r&&r.init!==this)&&e.semicolon()})),e(po,((e,t)=>{e._do_print(t,"let")})),e(uo,((e,t)=>{e._do_print(t,"var")})),e(_o,((e,t)=>{e._do_print(t,"const")})),e(go,((e,t)=>{t.print("import"),t.space(),e.imported_name&&e.imported_name.print(t),e.imported_name&&e.imported_names&&(t.print(","),t.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(t):(t.print("{"),e.imported_names.forEach(((r,n)=>{t.space(),r.print(t),n<e.imported_names.length-1&&t.print(",")})),t.space(),t.print("}"))),(e.imported_name||e.imported_names)&&(t.space(),t.print("from"),t.space()),e.module_name.print(t),t.semicolon()})),e(ho,((e,t)=>{t.print("import.meta")})),e(mo,((e,t)=>{var r=t.parent()instanceof go,n=e.name.definition();(n&&n.mangled_name||e.name.name)!==e.foreign_name.name?(r?t.print(e.foreign_name.name):e.name.print(t),t.space(),t.print("as"),t.space(),r?e.name.print(t):t.print(e.foreign_name.name)):e.name.print(t)})),e(yo,((e,t)=>{if(t.print("export"),t.space(),e.is_default&&(t.print("default"),t.space()),e.exported_names)1===e.exported_names.length&&"*"===e.exported_names[0].name.name?e.exported_names[0].print(t):(t.print("{"),e.exported_names.forEach(((r,n)=>{t.space(),r.print(t),n<e.exported_names.length-1&&t.print(",")})),t.space(),t.print("}"));else if(e.exported_value)e.exported_value.print(t);else if(e.exported_definition&&(e.exported_definition.print(t),e.exported_definition instanceof lo))return;e.module_name&&(t.space(),t.print("from"),t.space(),e.module_name.print(t)),(e.exported_value&&!(e.exported_value instanceof Va||e.exported_value instanceof ja||e.exported_value instanceof Wo)||e.module_name||e.exported_names)&&t.semicolon()})),e(fo,((e,t)=>{if(e.name.print(t),e.value){t.space(),t.print("="),t.space();var r=t.parent(1),n=r instanceof wa||r instanceof Fa;a(e.value,t,n)}})),e(vo,((e,t)=>{e.expression.print(t),e instanceof bo&&0===e.args.length||((e.expression instanceof vo||e.expression instanceof La)&&t.add_mapping(e.start),e.optional&&t.print("?."),t.with_parens((()=>{e.args.forEach(((e,r)=>{r&&t.comma(),e.print(t)}))})))})),e(bo,((e,t)=>{t.print("new"),t.space(),vo.prototype._codegen(e,t)})),xo.DEFMETHOD("_do_print",(function(e){this.expressions.forEach(((t,r)=>{r>0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)}))})),e(xo,((e,t)=>{e._do_print(t)})),e(So,((e,t)=>{var r=e.expression;r.print(t);var n=e.property,i=Ti.has(n)?t.option("ie8"):!Xi(n,t.option("ecma")>=2015||t.option("safari10"));e.optional&&t.print("?."),i?(t.print("["),t.add_mapping(e.end),t.print_string(n),t.print("]")):(r instanceof xs&&r.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),e.optional||t.print("."),t.add_mapping(e.end),t.print_name(n))})),e(Do,((e,t)=>{e.expression.print(t);var r=e.property;e.optional&&t.print("?"),t.print(".#"),t.print_name(r)})),e(To,((e,t)=>{e.expression.print(t),e.optional&&t.print("?."),t.print("["),e.property.print(t),t.print("]")})),e(Co,((e,t)=>{e.expression.print(t)})),e(Ao,((e,t)=>{var r=e.operator;t.print(r),(/^[a-z]/i.test(r)||/[+-]$/.test(r)&&e.expression instanceof Ao&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)})),e(No,((e,t)=>{e.expression.print(t),t.print(e.operator)})),e(wo,((e,t)=>{var r=e.operator;e.left.print(t),">"==r[0]&&e.left instanceof No&&"--"==e.left.operator?t.print(" "):t.space(),t.print(r),("<"==r||"<<"==r)&&e.right instanceof Ao&&"!"==e.right.operator&&e.right.expression instanceof Ao&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)})),e(Fo,((e,t)=>{e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)})),e(Oo,((e,t)=>{t.with_square((()=>{var r=e.elements,n=r.length;n>0&&t.space(),r.forEach(((e,r)=>{r&&t.comma(),e.print(t),r===n-1&&e instanceof As&&t.comma()})),n>0&&t.space()}))})),e(Mo,((e,t)=>{e.properties.length>0?t.with_block((()=>{e.properties.forEach(((e,r)=>{r&&(t.print(","),t.newline()),t.indent(),e.print(t)})),t.newline()})):n(e,t)})),e(Wo,((e,t)=>{if(t.print("class"),t.space(),e.name&&(e.name.print(t),t.space()),e.extends){var r=!(e.extends instanceof _s||e.extends instanceof Eo||e.extends instanceof Go||e.extends instanceof ja);t.print("extends"),r?t.print("("):t.space(),e.extends.print(t),r?t.print(")"):t.space()}e.properties.length>0?t.with_block((()=>{e.properties.forEach(((e,r)=>{r&&t.newline(),t.indent(),e.print(t)})),t.newline()})):t.print("{}")})),e(Xo,((e,t)=>{t.print("new.target")})),e(Lo,((e,t)=>{function r(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var n=t.option("shorthand");n&&e.value instanceof qo&&Xi(e.key,t.option("ecma")>=2015||t.option("safari10"))&&r(e.value)===e.key&&!Ti.has(e.key)?o(e.key,e.quote,t):n&&e.value instanceof Io&&e.value.left instanceof qo&&Xi(e.key,t.option("ecma")>=2015||t.option("safari10"))&&r(e.value.left)===e.key?(o(e.key,e.quote,t),t.space(),t.print("="),t.space(),e.value.right.print(t)):(e.key instanceof fa?t.with_square((()=>{e.key.print(t)})):o(e.key,e.quote,t),t.colon(),e.value.print(t))})),e(Jo,((e,t)=>{e.static&&(t.print("static"),t.space()),t.print("#"),o(e.key.name,e.quote,t),e.value&&(t.print("="),e.value.print(t)),t.semicolon()})),e(Ho,((e,t)=>{e.static&&(t.print("static"),t.space()),e.key instanceof as?o(e.key.name,e.quote,t):(t.print("["),e.key.print(t),t.print("]")),e.value&&(t.print("="),e.value.print(t)),t.semicolon()})),Ro.DEFMETHOD("_print_getter_setter",(function(e,t,r){var n=this;n.static&&(r.print("static"),r.space()),e&&(r.print(e),r.space()),n.key instanceof is?(t&&r.print("#"),o(n.key.name,n.quote,r)):r.with_square((()=>{n.key.print(r)})),n.value._do_print(r,!0)})),e(Uo,((e,t)=>{e._print_getter_setter("set",!1,t)})),e(Vo,((e,t)=>{e._print_getter_setter("get",!1,t)})),e(Bo,((e,t)=>{e._print_getter_setter("set",!0,t)})),e(jo,((e,t)=>{e._print_getter_setter("get",!0,t)})),e(Ko,((e,t)=>{var r;e.is_generator&&e.async?r="async*":e.is_generator?r="*":e.async&&(r="async"),e._print_getter_setter(r,!0,t)})),e(zo,((e,t)=>{var r;e.is_generator&&e.async?r="async*":e.is_generator?r="*":e.async&&(r="async"),e._print_getter_setter(r,!1,t)})),qo.DEFMETHOD("_do_print",(function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)})),e(qo,((e,t)=>{e._do_print(t)})),e(As,ti),e(hs,((e,t)=>{t.print("this")})),e(ys,((e,t)=>{t.print("super")})),e(vs,((e,t)=>{t.print(e.getValue())})),e(bs,((e,t)=>{t.print_string(e.getValue(),e.quote,t.in_directive)})),e(xs,((e,t)=>{(t.option("keep_numbers")||t.use_asm)&&e.raw?t.print(e.raw):t.print(u(e.getValue()))})),e(Es,((e,t)=>{t.print(e.getValue()+"n")}));const s=/(<\s*\/\s*script)/i,c=(e,t)=>t.replace("/","\\/");function l(e,t){t.option("braces")?d(e,t):!e||e instanceof Sa?t.force_semicolon():e.print(t)}function u(e){var t,r,n,i=e.toString(10).replace(/^0\./,".").replace("e+","e"),a=[i];return Math.floor(e)===e&&(e<0?a.push("-0x"+(-e).toString(16).toLowerCase()):a.push("0x"+e.toString(16).toLowerCase())),(t=/^\.0+/.exec(i))?(r=t[0].length,n=i.slice(r),a.push(n+"e-"+(n.length+r-1))):(t=/0+$/.exec(i))?(r=t[0].length,a.push(i.slice(0,-r)+"e"+r)):(t=/^(\d)\.(\d+)e(-?\d+)$/.exec(i))&&a.push(t[1]+t[2]+"e"+(t[3]-t[2].length)),(e=>{for(var t=e[0],r=t.length,n=1;n<e.length;++n)e[n].length<r&&(r=(t=e[n]).length);return t})(a)}function d(e,t){!e||e instanceof Sa?t.print("{}"):e instanceof Ea?e.print(t):t.with_block((()=>{t.indent(),e.print(t),t.newline()}))}function p(e,t){e.forEach((e=>{e.DEFMETHOD("add_source_map",t)}))}e(Ss,((e,t)=>{let{source:r,flags:n}=e.getValue();r=yi(r),n=n?(e=>{const t=new Set(e.split(""));let r="";for(const e of"gimuy")t.has(e)&&(r+=e,t.delete(e));return t.size&&t.forEach((e=>{r+=e})),r})(n):"",r=r.replace(s,c),t.print(t.to_utf8(`/${r}/${n}`));const i=t.parent();i instanceof wo&&/^\w/.test(i.operator)&&i.left===e&&t.print(" ")})),p([fa,Ta,Ma],ti),p([Oo,Ea,so,Wo,vs,ga,lo,ha,co,Ja,La,bo,Mo,Da,qo,ro,no,Wa,Ha,oo],(function(e){e.add_mapping(this.start)})),p([Vo,Uo],(function(e){e.add_mapping(this.start,this.key.name)})),p([Ro],(function(e){e.add_mapping(this.start,this.key)}))}();const Xs=(e,t)=>null===e&&null===t||e.TYPE===t.TYPE&&e.shallow_cmp(t),Ys=e=>{const t=Object.keys(e).map((t=>{if("eq"===e[t])return`this.${t} === other.${t}`;if("exist"===e[t])return`(this.${t} == null ? other.${t} == null : this.${t} === other.${t})`;throw new Error(`mkshallow: Unexpected instruction: ${e[t]}`)})).join(" && ");return new Function("other","return "+t)},Qs=()=>!0;fa.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)},ga.prototype.shallow_cmp=Qs,ha.prototype.shallow_cmp=Ys({value:"eq"}),ya.prototype.shallow_cmp=Qs,xa.prototype.shallow_cmp=Qs,Sa.prototype.shallow_cmp=Qs,Ta.prototype.shallow_cmp=Ys({"label.name":"eq"}),Aa.prototype.shallow_cmp=Qs,Na.prototype.shallow_cmp=Qs,wa.prototype.shallow_cmp=Ys({init:"exist",condition:"exist",step:"exist"}),Fa.prototype.shallow_cmp=Qs,Pa.prototype.shallow_cmp=Qs,Ia.prototype.shallow_cmp=Qs,Ma.prototype.shallow_cmp=Qs,Ra.prototype.shallow_cmp=Qs,La.prototype.shallow_cmp=Ys({is_generator:"eq",async:"eq"}),za.prototype.shallow_cmp=Ys({is_array:"eq"}),Ka.prototype.shallow_cmp=Qs,Wa.prototype.shallow_cmp=Qs,Ha.prototype.shallow_cmp=Ys({value:"eq"}),Ja.prototype.shallow_cmp=Qs,Xa.prototype.shallow_cmp=Qs,Za.prototype.shallow_cmp=Qs,eo.prototype.shallow_cmp=Ys({is_star:"eq"}),to.prototype.shallow_cmp=Ys({alternative:"exist"}),ro.prototype.shallow_cmp=Qs,no.prototype.shallow_cmp=Qs,oo.prototype.shallow_cmp=Ys({bcatch:"exist",bfinally:"exist"}),so.prototype.shallow_cmp=Ys({argname:"exist"}),co.prototype.shallow_cmp=Qs,lo.prototype.shallow_cmp=Qs,fo.prototype.shallow_cmp=Ys({value:"exist"}),mo.prototype.shallow_cmp=Qs,go.prototype.shallow_cmp=Ys({imported_name:"exist",imported_names:"exist"}),ho.prototype.shallow_cmp=Qs,yo.prototype.shallow_cmp=Ys({exported_definition:"exist",exported_value:"exist",exported_names:"exist",module_name:"eq",is_default:"eq"}),vo.prototype.shallow_cmp=Qs,xo.prototype.shallow_cmp=Qs,Eo.prototype.shallow_cmp=Qs,Co.prototype.shallow_cmp=Qs,So.prototype.shallow_cmp=Ys({property:"eq"}),ko.prototype.shallow_cmp=Ys({operator:"eq"}),wo.prototype.shallow_cmp=Ys({operator:"eq"}),Fo.prototype.shallow_cmp=Qs,Oo.prototype.shallow_cmp=Qs,Mo.prototype.shallow_cmp=Qs,Ro.prototype.shallow_cmp=Qs,Lo.prototype.shallow_cmp=Ys({key:"eq"}),Uo.prototype.shallow_cmp=Ys({static:"eq"}),Vo.prototype.shallow_cmp=Ys({static:"eq"}),zo.prototype.shallow_cmp=Ys({static:"eq",is_generator:"eq",async:"eq"}),Wo.prototype.shallow_cmp=Ys({name:"exist",extends:"exist"}),Ho.prototype.shallow_cmp=Ys({static:"eq"}),qo.prototype.shallow_cmp=Ys({name:"eq"}),Xo.prototype.shallow_cmp=Qs,hs.prototype.shallow_cmp=Qs,ys.prototype.shallow_cmp=Qs,bs.prototype.shallow_cmp=Ys({value:"eq"}),xs.prototype.shallow_cmp=Ys({value:"eq"}),Es.prototype.shallow_cmp=Ys({value:"eq"}),Ss.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source},Ds.prototype.shallow_cmp=Qs;let Zs=null,ec=null;class tc{constructor(e,t,r){this.name=t.name,this.orig=[t],this.init=r,this.eliminated=0,this.assignments=0,this.scope=e,this.replaced=0,this.global=!1,this.export=0,this.mangled_name=null,this.undeclared=!1,this.id=tc.next_id++,this.chained=!1,this.direct_access=!1,this.escaped=0,this.recursive_refs=0,this.references=[],this.should_replace=void 0,this.single_use=!1,this.fixed=!1,Object.seal(this)}fixed_value(){return!this.fixed||this.fixed instanceof fa?this.fixed:this.fixed()}unmangleable(e){return e||(e={}),!!(Zs&&Zs.has(this.id)&&gi(e.keep_fnames,this.orig[0].name))||this.global&&!e.toplevel||1&this.export||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof os||this.orig[0]instanceof ns)&&gi(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof is||(this.orig[0]instanceof cs||this.orig[0]instanceof ss)&&gi(e.keep_classnames,this.orig[0].name)}mangle(e){const t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var r=this.scope,n=this.orig[0];e.ie8&&n instanceof os&&(r=r.parent_scope);const i=rc(this);this.mangled_name=i?i.mangled_name||i.name:r.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}}}function rc(e){if(e.orig[0]instanceof ls&&e.scope.is_block_scope())return e.scope.get_defun_scope().variables.get(e.name)}function nc(e,t){var r=e.enclosed;e:for(;;){var n=ic(++e.cname);if(!Ti.has(n)&&!(t.reserved.has(n)||ec&&ec.has(n))){for(let e=r.length;--e>=0;){const i=r[e];if(n==(i.mangled_name||i.unmangleable(t)&&i.name))continue e}return n}}}tc.next_id=1,Oa.DEFMETHOD("figure_out_scope",(function(e,{parent_scope:t=null,toplevel:r=this}={}){if(e=ei(e,{cache:null,ie8:!1,safari10:!1}),!(r instanceof Ma))throw new Error("Invalid toplevel scope");var n=this.parent_scope=t,i=new Map,a=null,o=null,s=[],c=new Rs(((t,r)=>{if(t.is_block_scope()){const i=n;t.block_scope=n=new Oa(t),n._block_scope=!0;const a=t instanceof so?i.parent_scope:i;if(n.init_scope_vars(a),n.uses_with=i.uses_with,n.uses_eval=i.uses_eval,e.safari10&&(t instanceof wa||t instanceof Fa)&&s.push(n),t instanceof ro){const e=n;n=i,t.expression.walk(c),n=e;for(let e=0;e<t.body.length;e++)t.body[e].walk(c)}else r();return n=i,!0}if(t instanceof za){const e=o;return o=t,r(),o=e,!0}if(t instanceof Oa){t.init_scope_vars(n);var u=n,d=a,p=i;return a=n=t,i=new Map,r(),n=u,a=d,i=p,!0}if(t instanceof Ta){var _=t.label;if(i.has(_.name))throw new Error(li("Label {name} defined twice",_));return i.set(_.name,_),r(),i.delete(_.name),!0}if(t instanceof Ia)for(var f=n;f;f=f.parent_scope)f.uses_with=!0;else{if(t instanceof qo&&(t.scope=n),t instanceof ps&&(t.thedef=t,t.references=[]),t instanceof os)a.def_function(t,"arguments"==t.name?void 0:a);else if(t instanceof ns)l((t.scope=a.parent_scope.get_defun_scope()).def_function(t,a),1);else if(t instanceof cs)l(a.def_variable(t,a),1);else if(t instanceof us)n.def_variable(t);else if(t instanceof ss)l((t.scope=a.parent_scope).def_function(t,a),1);else if(t instanceof Qo||t instanceof ts||t instanceof es||t instanceof ls){if((m=t instanceof Zo?n.def_variable(t,null):a.def_variable(t,"SymbolVar"==t.TYPE?null:void 0)).orig.every((e=>e===t||(t instanceof Zo?e instanceof os:!(e instanceof ts||e instanceof es))))||Zi(`"${t.name}" is redeclared`,t.start.file,t.start.line,t.start.col,t.start.pos),t instanceof rs||l(m,2),a!==n){t.mark_enclosed();var m=n.find_variable(t);t.thedef!==m&&(t.thedef=m,t.reference())}}else if(t instanceof gs){var g=i.get(t.name);if(!g)throw new Error(li("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=g}n instanceof Ma||!(t instanceof yo||t instanceof go)||Zi(`"${t.TYPE}" statement may only appear at the top level`,t.start.file,t.start.line,t.start.col,t.start.pos)}}));function l(e,t){if(o){var r=0;do{t++}while(c.parent(r++)!==o)}var n=c.parent(t);if(e.export=n instanceof yo?1:0){var i=n.exported_definition;(i instanceof Va||i instanceof $o)&&n.is_default&&(e.export=2)}}if(this.walk(c),this instanceof Ma&&(this.globals=new Map),c=new Rs((e=>{if(e instanceof Xa&&e.label)return e.label.thedef.references.push(e),!0;if(e instanceof _s){var t,n=e.name;if("eval"==n&&c.parent()instanceof vo)for(var i=e.scope;i&&!i.uses_eval;i=i.parent_scope)i.uses_eval=!0;return c.parent()instanceof mo&&c.parent(1).module_name||!(t=e.scope.find_variable(n))?(t=r.def_global(e),e instanceof fs&&(t.export=1)):t.scope instanceof La&&"arguments"==n&&(t.scope.uses_arguments=!0),e.thedef=t,e.reference(),!e.scope.is_block_scope()||t.orig[0]instanceof Zo||(e.scope=e.scope.get_defun_scope()),!0}var a;if(e instanceof ls&&(a=rc(e.definition())))for(i=e.scope;i&&(ci(i.enclosed,a),i!==a.scope);)i=i.parent_scope})),this.walk(c),(e.ie8||e.safari10)&&Is(this,(e=>{if(e instanceof ls){var t=e.name,n=e.thedef.references,i=e.scope.get_defun_scope(),a=i.find_variable(t)||r.globals.get(t)||i.def_variable(e);return n.forEach((e=>{e.thedef=a,e.reference()})),e.thedef=a,e.reference(),!0}})),e.safari10)for(const e of s)e.parent_scope.variables.forEach((t=>{ci(e.enclosed,t)}))})),Ma.DEFMETHOD("def_global",(function(e){var t=this.globals,r=e.name;if(t.has(r))return t.get(r);var n=new tc(this,e);return n.undeclared=!0,n.global=!0,t.set(r,n),n})),Oa.DEFMETHOD("init_scope_vars",(function(e){this.variables=new Map,this.functions=new Map,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1})),Oa.DEFMETHOD("conflicting_def",(function(e){return this.enclosed.find((t=>t.name===e))||this.variables.has(e)||this.parent_scope&&this.parent_scope.conflicting_def(e)})),Oa.DEFMETHOD("conflicting_def_shallow",(function(e){return this.enclosed.find((t=>t.name===e))||this.variables.has(e)})),Oa.DEFMETHOD("add_child_scope",(function(e){if(e.parent_scope===this)return;e.parent_scope=this;const t=(()=>{const e=[];let t=this;do{e.push(t)}while(t=t.parent_scope);return e.reverse(),e})(),r=new Set(e.enclosed),n=[];for(const e of t){n.forEach((t=>ci(e.enclosed,t)));for(const t of e.variables.values())r.has(t)&&(ci(n,t),ci(e.enclosed,t))}})),Oa.DEFMETHOD("create_symbol",(function(e,{source:t,tentative_name:r,scope:n,conflict_scopes:i=[n],init:a=null}={}){let o;if(i=(e=>{const t=new Set;for(const r of new Set(e))!function e(r){null==r||t.has(r)||(t.add(r),e(r.parent_scope))}(r);return[...t]})(i),r){r=o=r.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_");let e=0;for(;i.find((e=>e.conflicting_def_shallow(o)));)o=r+"$"+e++}if(!o)throw new Error("No symbol name could be generated in create_symbol()");const s=si(e,t,{name:o,scope:n});return this.def_variable(s,a||null),s.mark_enclosed(),s})),fa.DEFMETHOD("is_block_scope",ri),Wo.DEFMETHOD("is_block_scope",ri),La.DEFMETHOD("is_block_scope",ri),Ma.DEFMETHOD("is_block_scope",ri),no.DEFMETHOD("is_block_scope",ri),xa.DEFMETHOD("is_block_scope",ni),Oa.DEFMETHOD("is_block_scope",(function(){return this._block_scope||!1})),Ca.DEFMETHOD("is_block_scope",ni),La.DEFMETHOD("init_scope_vars",(function(){Oa.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new rs({name:"arguments",start:this.start,end:this.end}))})),Ua.DEFMETHOD("init_scope_vars",(function(){Oa.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1})),qo.DEFMETHOD("mark_enclosed",(function(){for(var e=this.definition(),t=this.scope;t&&(ci(t.enclosed,e),t!==e.scope);)t=t.parent_scope})),qo.DEFMETHOD("reference",(function(){this.definition().references.push(this),this.mark_enclosed()})),Oa.DEFMETHOD("find_variable",(function(e){return e instanceof qo&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)})),Oa.DEFMETHOD("def_function",(function(e,t){var r=this.def_variable(e,t);return(!r.init||r.init instanceof Va)&&(r.init=t),this.functions.set(e.name,r),r})),Oa.DEFMETHOD("def_variable",(function(e,t){var r=this.variables.get(e.name);return r?(r.orig.push(e),r.init&&(r.scope!==e.scope||r.init instanceof ja)&&(r.init=t)):(r=new tc(this,e,t),this.variables.set(e.name,r),r.global=!this.parent_scope),e.thedef=r})),Oa.DEFMETHOD("next_mangled",(function(e){return nc(this,e)})),Ma.DEFMETHOD("next_mangled",(function(e){let t;const r=this.mangled_names;do{t=nc(this,e)}while(r.has(t));return t})),ja.DEFMETHOD("next_mangled",(function(e,t){for(var r=t.orig[0]instanceof rs&&this.name&&this.name.definition(),n=r?r.mangled_name||r.name:null;;){var i=nc(this,e);if(!n||n!=i)return i}})),qo.DEFMETHOD("unmangleable",(function(e){var t=this.definition();return!t||t.unmangleable(e)})),ps.DEFMETHOD("unmangleable",ri),qo.DEFMETHOD("unreferenced",(function(){return!this.definition().references.length&&!this.scope.pinned()})),qo.DEFMETHOD("definition",(function(){return this.thedef})),qo.DEFMETHOD("global",(function(){return this.thedef.global})),Ma.DEFMETHOD("_default_mangler_options",(e=>((e=ei(e,{eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1})).module&&(e.toplevel=!0),Array.isArray(e.reserved)||e.reserved instanceof Set||(e.reserved=[]),e.reserved=new Set(e.reserved),e.reserved.add("arguments"),e))),Ma.DEFMETHOD("mangle_names",(function(e){e=this._default_mangler_options(e);var t=-1,r=[];e.keep_fnames&&(Zs=new Set);const n=this.mangled_names=new Set;e.cache&&(this.globals.forEach(a),e.cache.props&&e.cache.props.forEach((e=>{n.add(e)})));var i=new Rs(((n,i)=>{if(n instanceof Ta){var o=t;return i(),t=o,!0}if(n instanceof Oa)n.variables.forEach(a);else if(n.is_block_scope())n.block_scope.variables.forEach(a);else if(Zs&&n instanceof fo&&n.value instanceof La&&!n.value.name&&gi(e.keep_fnames,n.name.name))Zs.add(n.name.definition().id);else{if(n instanceof ps){let e;do{e=ic(++t)}while(Ti.has(e));return n.mangled_name=e,!0}!e.ie8&&!e.safari10&&n instanceof ls&&r.push(n.definition())}}));function a(t){!(e.reserved.has(t.name)||1&t.export)&&r.push(t)}this.walk(i),(e.keep_fnames||e.keep_classnames)&&(ec=new Set,r.forEach((t=>{t.name.length<6&&t.unmangleable(e)&&ec.add(t.name)}))),r.forEach((t=>{t.mangle(e)})),Zs=null,ec=null})),Ma.DEFMETHOD("find_colliding_names",(function(e){const t=e.cache&&e.cache.props,r=new Set;return e.reserved.forEach(n),this.globals.forEach(i),this.walk(new Rs((e=>{e instanceof Oa&&e.variables.forEach(i),e instanceof ls&&i(e.definition())}))),r;function n(e){r.add(e)}function i(r){var i=r.name;if(r.global&&t&&t.has(i))i=t.get(i);else if(!r.unmangleable(e))return;n(i)}})),Ma.DEFMETHOD("expand_names",(function(e){ic.reset(),ic.sort(),e=this._default_mangler_options(e);var t=this.find_colliding_names(e),r=0;function n(n){if(n.global&&e.cache)return;if(n.unmangleable(e))return;if(e.reserved.has(n.name))return;const i=rc(n),a=n.name=i?i.name:(()=>{var e;do{e=ic(r++)}while(t.has(e)||Ti.has(e));return e})();n.orig.forEach((e=>{e.name=a})),n.references.forEach((e=>{e.name=a}))}this.globals.forEach(n),this.walk(new Rs((e=>{e instanceof Oa&&e.variables.forEach(n),e instanceof ls&&n(e.definition())})))})),fa.DEFMETHOD("tail_node",ii),xo.DEFMETHOD("tail_node",(function(){return this.expressions[this.expressions.length-1]})),Ma.DEFMETHOD("compute_char_frequency",(function(e){e=this._default_mangler_options(e);try{fa.prototype.print=function(r,n){this._print(r,n),this instanceof qo&&!this.unmangleable(e)?ic.consider(this.name,-1):e.properties&&(this instanceof Do?ic.consider("#"+this.property,-1):this instanceof So?ic.consider(this.property,-1):this instanceof To&&t(this.property))},ic.consider(this.print_to_string(),1)}finally{fa.prototype.print=fa.prototype._print}function t(e){e instanceof bs?ic.consider(e.value,-1):e instanceof Fo?(t(e.consequent),t(e.alternative)):e instanceof xo&&t(e.tail_node())}ic.sort()}));const ic=(()=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),t="0123456789".split("");let r,n;function i(){n=new Map,e.forEach((e=>{n.set(e,0)})),t.forEach((e=>{n.set(e,0)}))}function a(e,t){return n.get(t)-n.get(e)}function o(e){var t="",n=54;e++;do{e--,t+=r[e%n],e=Math.floor(e/n),n=64}while(e>0);return t}return o.consider=(e,t)=>{for(var r=e.length;--r>=0;)n.set(e[r],n.get(e[r])+t)},o.sort=()=>{r=di(e,a).concat(di(t,a))},o.reset=i,i(),o})();let ac;fa.prototype.size=function(e,t){ac=e&&e.mangle_options;let r=0;return Os(this,((e,t)=>{if(r+=e._size(t),e instanceof Ua&&e.is_braceless())return r+=e.body[0].value._size(t),!0}),t||e&&e.stack),ac=void 0,r},fa.prototype._size=()=>0,ga.prototype._size=()=>8,ha.prototype._size=function(){return 2+this.value.length};const oc=e=>e.length&&e.length-1;xa.prototype._size=function(){return 2+oc(this.body)},Ma.prototype._size=function(){return oc(this.body)},Sa.prototype._size=()=>1,Ta.prototype._size=()=>2,Aa.prototype._size=()=>9,Na.prototype._size=()=>7,wa.prototype._size=()=>8,Fa.prototype._size=()=>8,Ia.prototype._size=()=>6,Ra.prototype._size=()=>3;const sc=e=>(e.is_generator?1:0)+(e.async?6:0);Ba.prototype._size=function(){return sc(this)+4+oc(this.argnames)+oc(this.body)},ja.prototype._size=function(e){return 2*!!Ws(e)+sc(this)+12+oc(this.argnames)+oc(this.body)},Va.prototype._size=function(){return sc(this)+13+oc(this.argnames)+oc(this.body)},Ua.prototype._size=function(){let e=2+oc(this.argnames);1===this.argnames.length&&this.argnames[0]instanceof qo||(e+=2);const t=this.is_braceless()?0:oc(this.body)+2;return sc(this)+e+t},za.prototype._size=()=>2,Wa.prototype._size=function(){return 2+3*Math.floor(this.segments.length/2)},Ha.prototype._size=function(){return this.value.length},Ga.prototype._size=function(){return this.value?7:6},qa.prototype._size=()=>6,Ya.prototype._size=function(){return this.label?6:5},Qa.prototype._size=function(){return this.label?9:8},to.prototype._size=()=>4,ro.prototype._size=function(){return 8+oc(this.body)},ao.prototype._size=function(){return 5+oc(this.body)},io.prototype._size=function(){return 8+oc(this.body)},oo.prototype._size=function(){return 3+oc(this.body)},so.prototype._size=function(){let e=7+oc(this.body);return this.argname&&(e+=2),e},co.prototype._size=function(){return 7+oc(this.body)};const cc=(e,t)=>e+oc(t.definitions);uo.prototype._size=function(){return cc(4,this)},po.prototype._size=function(){return cc(4,this)},_o.prototype._size=function(){return cc(6,this)},fo.prototype._size=function(){return this.value?1:0},mo.prototype._size=function(){return this.name?4:0},go.prototype._size=function(){let e=6;return this.imported_name&&(e+=1),(this.imported_name||this.imported_names)&&(e+=5),this.imported_names&&(e+=2+oc(this.imported_names)),e},ho.prototype._size=()=>11,yo.prototype._size=function(){let e=7+(this.is_default?8:0);return this.exported_value&&(e+=this.exported_value._size()),this.exported_names&&(e+=2+oc(this.exported_names)),this.module_name&&(e+=5),e},vo.prototype._size=function(){return this.optional?4+oc(this.args):2+oc(this.args)},bo.prototype._size=function(){return 6+oc(this.args)},xo.prototype._size=function(){return oc(this.expressions)},So.prototype._size=function(){return this.optional?this.property.length+2:this.property.length+1},Do.prototype._size=function(){return this.optional?this.property.length+3:this.property.length+2},To.prototype._size=function(){return this.optional?4:2},ko.prototype._size=function(){return"typeof"===this.operator?7:"void"===this.operator?5:this.operator.length},wo.prototype._size=function(e){if("in"===this.operator)return 4;let t=this.operator.length;return("+"===this.operator||"-"===this.operator)&&this.right instanceof ko&&this.right.operator===this.operator&&(t+=1),this.needs_parens(e)&&(t+=2),t},Fo.prototype._size=()=>3,Oo.prototype._size=function(){return 2+oc(this.elements)},Mo.prototype._size=function(e){let t=2;return Ws(e)&&(t+=2),t+oc(this.properties)};const lc=e=>"string"==typeof e?e.length:0;Lo.prototype._size=function(){return lc(this.key)+1};const uc=e=>e?7:0;Vo.prototype._size=function(){return 5+uc(this.static)+lc(this.key)},Uo.prototype._size=function(){return 5+uc(this.static)+lc(this.key)},zo.prototype._size=function(){return uc(this.static)+lc(this.key)+sc(this)},Ko.prototype._size=function(){return zo.prototype._size.call(this)+1},jo.prototype._size=Bo.prototype._size=function(){return zo.prototype._size.call(this)+4},Wo.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)},Ho.prototype._size=function(){return uc(this.static)+("string"==typeof this.key?this.key.length+2:0)+(this.value?1:0)},Jo.prototype._size=function(){return Ho.prototype._size.call(this)+1},qo.prototype._size=function(){return!ac||this.definition().unmangleable(ac)?this.name.length:1},as.prototype._size=function(){return this.name.length},_s.prototype._size=Yo.prototype._size=function(){const{name:e,thedef:t}=this;return t&&t.global?e.length:"arguments"===e?9:qo.prototype._size.call(this)},Xo.prototype._size=()=>10,ds.prototype._size=function(){return this.name.length},ms.prototype._size=function(){return this.name.length},hs.prototype._size=()=>4,ys.prototype._size=()=>5,bs.prototype._size=function(){return this.value.length+2},xs.prototype._size=function(){const{value:e}=this;return 0===e?1:e>0&&Math.floor(e)===e?Math.floor(Math.log10(e)+1):e.toString().length},Es.prototype._size=function(){return this.value.length},Ss.prototype._size=function(){return this.value.toString().length},Ts.prototype._size=()=>4,Cs.prototype._size=()=>3,ks.prototype._size=()=>6,As.prototype._size=()=>0,Ns.prototype._size=()=>8,Ps.prototype._size=()=>4,Fs.prototype._size=()=>5,Za.prototype._size=()=>6,eo.prototype._size=()=>6;const dc=(e,t)=>e.flags&t,pc=(e,t)=>{e.flags|=t},_c=(e,t)=>{e.flags&=~t};class fc extends Rs{constructor(e,{false_by_default:t=!1,mangle_options:r=!1}){super(),void 0===e.defaults||e.defaults||(t=!0),this.options=ei(e,{arguments:!1,arrows:!t,booleans:!t,booleans_as_integers:!1,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:!0,directives:!t,drop_console:!1,drop_debugger:!t,ecma:5,evaluate:!t,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,module:!1,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:null,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!t,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_symbols:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var i in n)"@"===i[0]&&mi(n,i)&&(n[i.slice(1)]=la(n[i],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var a=this.options.pure_funcs;this.pure_funcs="function"==typeof a?a:a?e=>!a.includes(e.expression.print_to_string()):ni;var o=this.options.top_retain;o instanceof RegExp?this.top_retain=e=>o.test(e.name):"function"==typeof o?this.top_retain=o:o&&("string"==typeof o&&(o=o.split(/,/)),this.top_retain=e=>o.includes(e.name)),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var s=this.options.toplevel;this.toplevel="string"==typeof s?{funcs:/funcs/.test(s),vars:/vars/.test(s)}:{funcs:s,vars:s};var c=this.options.sequences;this.sequences_limit=1==c?800:0|c,this.evaluated_regexps=new Map,this._toplevel=void 0,this.mangle_options=r}option(e){return this.options[e]}exposed(e){if(e.export)return!0;if(e.global)for(var t=0,r=e.orig.length;t<r;t++)if(!this.toplevel[e.orig[t]instanceof ns?"funcs":"vars"])return!0;return!1}in_boolean_context(){if(!this.option("booleans"))return!1;for(var e,t=this.self(),r=0;e=this.parent(r);r++){if(e instanceof ya||e instanceof Fo&&e.condition===t||e instanceof ka&&e.condition===t||e instanceof wa&&e.condition===t||e instanceof to&&e.condition===t||e instanceof Ao&&"!"==e.operator&&e.expression===t)return!0;if(!(e instanceof wo&&("&&"==e.operator||"||"==e.operator||"??"==e.operator)||e instanceof Fo||e.tail_node()===t))return!1;t=e}}get_toplevel(){return this._toplevel}compress(e){e=e.resolve_defines(this),this._toplevel=e,this.option("expression")&&this._toplevel.process_expression(!0);for(var t=+this.options.passes||1,r=1/0,n=!1,i={ie8:this.option("ie8")},a=0;a<t;a++)if(this._toplevel.figure_out_scope(i),0===a&&this.option("drop_console")&&(this._toplevel=this._toplevel.drop_console()),(a>0||this.option("reduce_vars"))&&this._toplevel.reset_opt_flags(this),this._toplevel=this._toplevel.transform(this),t>1){let e=0;if(Is(this._toplevel,(()=>{e++})),e<r)r=e,n=!1;else{if(n)break;n=!0}}return this.option("expression")&&this._toplevel.process_expression(!1),e=this._toplevel,this._toplevel=void 0,e}before(e,t){if(dc(e,256))return e;var r=!1;e instanceof Oa&&(e=(e=e.hoist_properties(this)).hoist_declarations(this),r=!0),t(e,this),t(e,this);var n=e.optimize(this);return r&&n instanceof Oa&&(n.drop_unused(this),t(n,this)),n===e&&pc(n,256),n}}function mc(e,t){e.DEFMETHOD("optimize",(function(e){var r=this;if(dc(r,512))return r;if(e.has_directive("use asm"))return r;var n=t(r,e);return pc(n,512),n}))}function gc(e,t){if(!((t=Bc(t))instanceof fa)){var r;if(e instanceof Oo){var n=e.elements;if("length"==t)return Dc(n.length,e);"number"==typeof t&&t in n&&(r=n[t])}else if(e instanceof Mo){t=""+t;for(var i=e.properties,a=i.length;--a>=0;){if(!(i[a]instanceof Lo))return;r||i[a].key!==t||(r=i[a].value)}}return r instanceof _s&&r.fixed_value()||r}}function hc(e,t,r,n,i,a){var o=t.parent(i),s=zc(r,o);if(s)return s;if(!a&&o instanceof vo&&o.expression===r&&!(n instanceof Ua)&&!(n instanceof Wo)&&!o.is_expr_pure(e)&&(!(n instanceof ja)||!(o instanceof bo)&&n.contains_this()))return!0;if(o instanceof Oo)return hc(e,t,o,o,i+1);if(o instanceof Lo&&r===o.value){var c=t.parent(i+1);return hc(e,t,c,c,i+2)}if(o instanceof Eo&&o.expression===r){var l=gc(n,o.property);return!a&&hc(e,t,o,l,i+1)}}function yc(e){return e instanceof Ua||e instanceof ja}function vc(e){if(e instanceof hs)return!0;if(e instanceof _s)return e.definition().orig[0]instanceof os;if(e instanceof Eo){if((e=e.expression)instanceof _s){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof Ss)&&(e instanceof vs||vc(e))}return!1}function bc(e,t){if(!(e instanceof _s))return!1;for(var r=e.definition().orig,n=r.length;--n>=0;)if(r[n]instanceof t)return!0}function xc(e){for(let t=0;;t++){const r=e.parent(t);if(r instanceof Ma)return r;if(r instanceof La)return r;if(r.block_scope)return r.block_scope}}function Ec(e,t){for(var r,n=0;(r=e.parent(n++))&&!(r instanceof Oa);)if(r instanceof so&&r.argname){r=r.argname.definition().scope;break}return r.find_variable(t)}function Sc(e,t){if(1==t.length)return t[0];if(0==t.length)throw new Error("trying to create a sequence with length zero!");return si(xo,e,{expressions:t.reduce(Cc,[])})}function Dc(e,t){switch(typeof e){case"string":return si(bs,t,{value:e});case"number":return isNaN(e)?si(Cs,t):isFinite(e)?1/e<0?si(Ao,t,{operator:"-",expression:si(xs,t,{value:-e})}):si(xs,t,{value:e}):e<0?si(Ao,t,{operator:"-",expression:si(Ns,t)}):si(Ns,t);case"boolean":return si(e?Ps:Fs,t);case"undefined":return si(ks,t);default:if(null===e)return si(Ts,t,{value:null});if(e instanceof RegExp)return si(Ss,t,{value:{source:yi(e.source),flags:e.flags}});throw new Error(li("Can't handle constant of type: {type}",{type:typeof e}))}}function Tc(e,t,r){return e instanceof Ao&&"delete"==e.operator||e instanceof vo&&e.expression===t&&(r instanceof Eo||r instanceof _s&&"eval"==r.name)?Sc(t,[si(xs,t,{value:0}),r]):r}function Cc(e,t){return t instanceof xo?e.push(...t.expressions):e.push(t),e}function kc(e){if(null===e)return[];if(e instanceof Ea)return e.body;if(e instanceof Sa)return[];if(e instanceof ma)return[e];throw new Error("Can't convert thing to statement array")}function Ac(e){return null===e||e instanceof Sa||e instanceof Ea&&0==e.body.length}function Nc(e){return!(e instanceof $o||e instanceof Va||e instanceof po||e instanceof _o||e instanceof yo||e instanceof go)}function wc(e){return e instanceof Ca&&e.body instanceof Ea?e.body:e}function Fc(e){return"Call"==e.TYPE&&(e.expression instanceof ja||Fc(e.expression))}function Pc(e){return e instanceof _s&&e.definition().undeclared}mc(fa,(e=>e)),Ma.DEFMETHOD("drop_console",(function(){return this.transform(new Ls((e=>{if("Call"==e.TYPE){var t=e.expression;if(t instanceof Eo){for(var r=t.expression;r.expression;)r=r.expression;if(Pc(r)&&"console"==r.name)return si(ks,e)}}})))})),fa.DEFMETHOD("equivalent_to",(function(e){return((e,t)=>{if(!Xs(e,t))return!1;const r=[e],n=[t],i=r.push.bind(r),a=n.push.bind(n);for(;r.length&&n.length;){const e=r.pop(),t=n.pop();if(!Xs(e,t))return!1;if(e._children_backwards(i),t._children_backwards(a),r.length!==n.length)return!1}return 0==r.length&&0==n.length})(this,e)})),Oa.DEFMETHOD("process_expression",(function(e,t){var r=this,n=new Ls((i=>{if(e&&i instanceof ya)return si(Ga,i,{value:i.body});if(!e&&i instanceof Ga){if(t){var a=i.value&&i.value.drop_side_effect_free(t,!0);return a?si(ya,i,{body:a}):si(Sa,i)}return si(ya,i,{body:i.value||si(Ao,i,{operator:"void",expression:si(xs,i,{value:0})})})}if(i instanceof Wo||i instanceof La&&i!==r)return i;if(i instanceof xa){var o=i.body.length-1;o>=0&&(i.body[o]=i.body[o].transform(n))}else i instanceof to?(i.body=i.body.transform(n),i.alternative&&(i.alternative=i.alternative.transform(n))):i instanceof Ia&&(i.body=i.body.transform(n));return i}));r.transform(n)})),function(e){function t(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=0,t.recursive_refs=0,t.references=[],t.single_use=void 0,t.scope.pinned()?t.fixed=!1:t.orig[0]instanceof es||!e.exposed(t)?t.fixed=t.init:t.fixed=!1}function r(e,r,n){n.variables.forEach((n=>{t(r,n),null===n.fixed?(e.defs_to_safe_ids.set(n.id,e.safe_ids),o(e,n,!0)):n.fixed&&(e.loop_ids.set(n.id,e.in_loop),o(e,n,!0))}))}function n(e,r){r.block_scope&&r.block_scope.variables.forEach((r=>{t(e,r)}))}function i(e){e.safe_ids=Object.create(e.safe_ids)}function a(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function o(e,t,r){e.safe_ids[t.id]=r}function s(e,t){if("m"==t.single_use)return!1;if(e.safe_ids[t.id]){if(null==t.fixed){var r=t.orig[0];if(r instanceof rs||"arguments"==r.name)return!1;t.fixed=si(ks,r)}return!0}return t.fixed instanceof Va}function c(e,t,r,n){if(void 0===t.fixed)return!0;let i;return null===t.fixed&&(i=e.defs_to_safe_ids.get(t.id))?(i[t.id]=!1,e.defs_to_safe_ids.delete(t.id),!0):!!mi(e.safe_ids,t.id)&&!!s(e,t)&&!1!==t.fixed&&!(null!=t.fixed&&(!n||t.references.length>t.assignments))&&(t.fixed instanceof Va?n instanceof fa&&t.fixed.parent_scope===r:t.orig.every((e=>!(e instanceof es||e instanceof ns||e instanceof os))))}function l(e,t,r,n,i,a=0,o=1){var s=e.parent(a);if(i){if(i.is_constant())return;if(i instanceof Go)return}if(s instanceof Po&&("="===s.operator||s.logical)&&n===s.right||s instanceof vo&&(n!==s.expression||s instanceof bo)||s instanceof $a&&n===s.value&&n.scope!==t.scope||s instanceof fo&&n===s.value||s instanceof eo&&n===s.value&&n.scope!==t.scope)return!(o>1)||i&&i.is_constant_expression(r)||(o=1),void((!t.escaped||t.escaped>o)&&(t.escaped=o));if(s instanceof Oo||s instanceof Za||s instanceof wo&&Uc.has(s.operator)||s instanceof Fo&&n!==s.condition||s instanceof Ra||s instanceof xo&&n===s.tail_node())l(e,t,r,s,s,a+1,o);else if(s instanceof Lo&&n===s.value){var c=e.parent(a+1);l(e,t,r,c,c,a+2,o)}else if(s instanceof Eo&&n===s.expression&&(l(e,t,r,s,i=gc(i,s.property),a+1,o+1),i))return;a>0||s instanceof xo&&n!==s.tail_node()||s instanceof ya||(t.direct_access=!0)}e(fa,ti);const u=e=>Is(e,(e=>{if(e instanceof qo){var t=e.definition();t&&(e instanceof _s&&t.references.push(e),t.fixed=!1)}}));e(Ba,(function(e,t,n){return i(e),r(e,n,this),t(),a(e),!0})),e(Po,(function(e,t,r){var n=this;if(n.left instanceof za)return void u(n.left);const s=()=>{if(n.logical)return n.left.walk(e),i(e),n.right.walk(e),a(e),!0};var d=n.left;if(!(d instanceof _s))return s();var p=d.definition(),_=c(e,p,d.scope,n.right);if(p.assignments++,!_)return s();var f=p.fixed;if(!f&&"="!=n.operator&&!n.logical)return s();var m="="==n.operator,g=m?n.right:n;return hc(r,e,n,g,0)?s():(p.references.push(d),n.logical||(m||(p.chained=!0),p.fixed=m?()=>n.right:()=>si(wo,n,{operator:n.operator.slice(0,-1),left:f instanceof fa?f:f(),right:n.right})),n.logical?(o(e,p,!1),i(e),n.right.walk(e),a(e),!0):(o(e,p,!1),n.right.walk(e),o(e,p,!0),l(e,p,d.scope,n,g,0,1),!0))})),e(wo,(function(e){if(Uc.has(this.operator))return this.left.walk(e),i(e),this.right.walk(e),a(e),!0})),e(xa,(function(e,t,r){n(r,this)})),e(ao,(function(e){return i(e),this.expression.walk(e),a(e),i(e),va(this,e),a(e),!0})),e(Wo,(function(e,t){return _c(this,16),i(e),t(),a(e),!0})),e(Fo,(function(e){return this.condition.walk(e),i(e),this.consequent.walk(e),a(e),i(e),this.alternative.walk(e),a(e),!0})),e(Co,((e,t)=>{const r=e.safe_ids;return t(),e.safe_ids=r,!0})),e(vo,(function(e){this.expression.walk(e),this.optional&&i(e);for(const t of this.args)t.walk(e);return!0})),e(Eo,(function(e){if(this.optional)return this.expression.walk(e),i(e),this.property instanceof fa&&this.property.walk(e),!0})),e(io,((e,t)=>(i(e),t(),a(e),!0))),e(La,(function(e,t,n){return _c(this,16),i(e),r(e,n,this),this.uses_arguments?(t(),void a(e)):(!this.name&&(s=e.parent())instanceof vo&&s.expression===this&&!s.args.some((e=>e instanceof Ra))&&this.argnames.every((e=>e instanceof qo))&&this.argnames.forEach(((t,r)=>{if(t.definition){var n=t.definition();n.orig.length>1||(void 0!==n.fixed||this.uses_arguments&&!e.has_directive("use strict")?n.fixed=!1:(n.fixed=()=>s.args[r]||si(ks,s),e.loop_ids.set(n.id,e.in_loop),o(e,n,!0)))}})),t(),a(e),!0);var s})),e(Aa,(function(e,t,r){n(r,this);const o=e.in_loop;return e.in_loop=this,i(e),this.body.walk(e),rl(this)&&(a(e),i(e)),this.condition.walk(e),a(e),e.in_loop=o,!0})),e(wa,(function(e,t,r){n(r,this),this.init&&this.init.walk(e);const o=e.in_loop;return e.in_loop=this,i(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(rl(this)&&(a(e),i(e)),this.step.walk(e)),a(e),e.in_loop=o,!0})),e(Fa,(function(e,t,r){n(r,this),u(this.init),this.object.walk(e);const o=e.in_loop;return e.in_loop=this,i(e),this.body.walk(e),a(e),e.in_loop=o,!0})),e(to,(function(e){return this.condition.walk(e),i(e),this.body.walk(e),a(e),this.alternative&&(i(e),this.alternative.walk(e),a(e)),!0})),e(Ta,(function(e){return i(e),this.body.walk(e),a(e),!0})),e(ls,(function(){this.definition().fixed=!1})),e(_s,(function(e,t,r){var n,i,a=this.definition();a.references.push(this),1==a.references.length&&!a.fixed&&a.orig[0]instanceof ns&&e.loop_ids.set(a.id,e.in_loop),void 0!==a.fixed&&s(e,a)?a.fixed&&((n=this.fixed_value())instanceof La&&ol(e,a)?a.recursive_refs++:n&&!r.exposed(a)&&((e,t,r)=>t.option("unused")&&!r.scope.pinned()&&r.references.length-r.recursive_refs==1&&e.loop_ids.get(r.id)===e.in_loop)(e,r,a)?a.single_use=n instanceof La&&!n.pinned()||n instanceof Wo||a.scope===this.scope&&n.is_constant_expression():a.single_use=!1,hc(r,e,this,n,0,!!(i=n)&&(i.is_constant()||i instanceof La||i instanceof hs))&&(a.single_use?a.single_use="m":a.fixed=!1)):a.fixed=!1,l(e,a,this.scope,this,n,0,1)})),e(Ma,(function(e,n,i){this.globals.forEach((e=>{t(i,e)})),r(e,i,this)})),e(oo,(function(e,t,r){return n(r,this),i(e),va(this,e),a(e),this.bcatch&&(i(e),this.bcatch.walk(e),a(e)),this.bfinally&&this.bfinally.walk(e),!0})),e(ko,(function(e){var t=this;if("++"===t.operator||"--"===t.operator){var r=t.expression;if(r instanceof _s){var n=r.definition(),i=c(e,n,r.scope,!0);if(n.assignments++,i){var a=n.fixed;if(a)return n.references.push(r),n.chained=!0,n.fixed=()=>si(wo,t,{operator:t.operator.slice(0,-1),left:si(Ao,t,{operator:"+",expression:a instanceof fa?a:a()}),right:si(xs,t,{value:1})}),o(e,n,!0),!0}}}})),e(fo,(function(e,t){var r=this;if(r.name instanceof za)u(r.name);else{var n=r.name.definition();if(r.value){if(c(e,n,r.name.scope,r.value))return n.fixed=()=>r.value,e.loop_ids.set(n.id,e.in_loop),o(e,n,!1),t(),o(e,n,!0),!0;n.fixed=!1}}})),e(Na,(function(e,t,r){n(r,this);const o=e.in_loop;return e.in_loop=this,i(e),t(),a(e),e.in_loop=o,!0}))}(((e,t)=>{e.DEFMETHOD("reduce_vars",t)})),Ma.DEFMETHOD("reset_opt_flags",(function(e){const t=this,r=e.option("reduce_vars"),n=new Rs(((i,a)=>{if(_c(i,1792),r)return e.top_retain&&i instanceof Va&&n.parent()===t&&pc(i,1024),i.reduce_vars(n,a,e)}));n.safe_ids=Object.create(null),n.in_loop=null,n.loop_ids=new Map,n.defs_to_safe_ids=new Map,t.walk(n)})),qo.DEFMETHOD("fixed_value",(function(){var e=this.thedef.fixed;return!e||e instanceof fa?e:e()})),_s.DEFMETHOD("is_immutable",(function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof os}));var Ic=pi("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");_s.DEFMETHOD("is_declared",(function(e){return!this.definition().undeclared||e.option("unsafe")&&Ic.has(this.name)}));var Oc=pi("Infinity NaN undefined");function Mc(e){return e instanceof Ns||e instanceof Cs||e instanceof ks}function Rc(e,t){var r,n,i=t.find_parent(Oa).get_defun_scope();!(()=>{var e=t.self(),a=0;do{if(e instanceof so||e instanceof co)a++;else if(e instanceof Ca)r=!0;else{if(e instanceof Oa){i=e;break}e instanceof oo&&(n=!0)}}while(e=t.parent(a++))})();var a,o=10;do{a=!1,c(e),t.option("dead_code")&&u(e,t),t.option("if_return")&&l(e,t),t.sequences_limit>0&&(p(e,t),f(e,t)),t.option("join_vars")&&g(e),t.option("collapse_vars")&&s(e,t)}while(a&&o-- >0);function s(e,t){if(i.pinned())return e;for(var o,s=[],c=e.length,l=new Ls((e=>{if(T)return e;if(!D)return e!==d[p]?e:++p<d.length?P(e):(D=!0,(m=R(e,0))===e&&(T=!0),e);var r,i=l.parent();if(e instanceof Po&&(e.logical||"="!=e.operator&&h.equivalent_to(e.left))||e instanceof Za||e instanceof vo&&h instanceof Eo&&h.equivalent_to(e.expression)||e instanceof ga||e instanceof za||e instanceof Ra&&e.expression instanceof qo&&(e.expression instanceof hs||e.expression.definition().references.length>1)||e instanceof Ca&&!(e instanceof wa)||e instanceof Xa||e instanceof oo||e instanceof Ia||e instanceof eo||e instanceof yo||e instanceof Wo||i instanceof wa&&e!==i.init||!x&&e instanceof _s&&!e.is_declared(t)&&!Yc.has(e)||e instanceof _s&&i instanceof vo&&vi(i,Us))return T=!0,e;if(g||v&&x||!(i instanceof wo&&Uc.has(i.operator)&&i.left!==e||i instanceof Fo&&i.condition!==e||i instanceof to&&i.condition!==e)||(g=i),k&&!(e instanceof Yo)&&h.equivalent_to(e)){if(g)return T=!0,e;if(zc(e,i))return f&&C++,e;if(C++,f&&_ instanceof fo)return e;if(a=T=!0,_ instanceof No)return si(Ao,_,_);if(_ instanceof fo){var o=_.name.definition(),s=_.value;return o.references.length-o.replaced!=1||t.exposed(o)?si(Po,_,{operator:"=",logical:!1,left:si(_s,_.name,_.name),right:s}):(o.replaced++,S&&Mc(s)?s.transform(t):Tc(i,e,s))}return _c(_,32),_}return(e instanceof vo||e instanceof $a&&(b||h instanceof Eo||K(h))||e instanceof Eo&&(b||e.expression.may_throw_on_access(t))||e instanceof _s&&(y.get(e.name)||b&&K(e))||e instanceof fo&&e.value&&(y.has(e.name.name)||b&&K(e.name))||(r=zc(e.left,e))&&(r instanceof Eo||y.has(r.name))||E&&(n?e.has_side_effects(t):W(e)))&&(m=e,e instanceof Oa&&(T=!0)),P(e)}),(e=>{T||(m===e&&(T=!0),g===e&&(g=null))})),u=new Ls((e=>{if(T)return e;if(!D){if(e!==d[p])return e;if(++p<d.length)return;return D=!0,e}return e instanceof _s&&e.name==w.name?(--C||(T=!0),zc(e,u.parent())?e:(w.replaced++,f.replaced--,_.value)):e instanceof io||e instanceof Oa?e:void 0}));--c>=0;){0==c&&t.option("unused")&&O();var d=[];for(M(e[c]);s.length>0;){d=s.pop();var p=0,_=d[d.length-1],f=null,m=null,g=null,h=L(_);if(h&&!vc(h)&&!h.has_side_effects(t)){var y=j(_),v=V(h);h instanceof _s&&y.set(h.name,!1);var b=(F=_)instanceof ko?Vc.has(F.operator):B(F).has_side_effects(t),x=z(),E=_.may_throw(t),S=_.name instanceof rs,D=S,T=!1,C=0,k=!o||!D;if(!k){for(var A=t.self().argnames.lastIndexOf(_.name)+1;!T&&A<o.length;A++)o[A].transform(l);k=!0}for(var N=c;!T&&N<e.length;N++)e[N].transform(l);if(f){var w=_.name.definition();if(T&&w.references.length-w.replaced>C)C=!1;else{for(T=!1,p=0,D=S,N=c;!T&&N<e.length;N++)e[N].transform(u);f.single_use=!1}}C&&!U(_)&&e.splice(c,1)}}}var F;function P(e){if(e instanceof Oa)return e;if(e instanceof ro){e.expression=e.expression.transform(l);for(var t=0,r=e.body.length;!T&&t<r;t++){var n=e.body[t];if(n instanceof ao){if(!D){if(n!==d[p])continue;p++}if(n.expression=n.expression.transform(l),!x)break}}return T=!0,e}}function I(e,t,r){var n=!1,a=!(e instanceof Ua);return t.walk(new Rs(((t,o)=>{if(n)return!0;if(t instanceof _s&&(e.variables.has(t.name)||((e,t)=>{if(e.global)return!1;let r=e.scope;for(;r&&r!==t;){if(r.variables.has(e.name))return!0;r=r.parent_scope}return!1})(t.definition(),e))){var s=t.definition().scope;if(s!==i)for(;s=s.parent_scope;)if(s===i)return!0;return n=!0}if((r||a)&&t instanceof hs)return n=!0;if(t instanceof Oa&&!(t instanceof Ua)){var c=a;return a=!1,o(),a=c,!0}}))),n}function O(){var e,r=t.self();if(yc(r)&&!r.name&&!r.uses_arguments&&!r.pinned()&&(e=t.parent())instanceof vo&&e.expression===r&&e.args.every((e=>!(e instanceof Ra)))){var n=t.has_directive("use strict");n&&!Qn(n,r.body)&&(n=!1);var i=r.argnames.length;o=e.args.slice(i);for(var a=new Set,c=i;--c>=0;){var l=r.argnames[c],u=e.args[c];const i=l.definition&&l.definition();if(!(i&&i.orig.length>1||(o.unshift(si(fo,l,{name:l,value:u})),a.has(l.name))))if(a.add(l.name),l instanceof Ra){var d=e.args.slice(c);d.every((e=>!I(r,e,n)))&&s.unshift([si(fo,l,{name:l.expression,value:si(Oo,e,{elements:d})})])}else u?(u instanceof La&&u.pinned()||I(r,u,n))&&(u=null):u=si(ks,l).transform(t),u&&s.unshift([si(fo,l,{name:l,value:u})])}}}function M(e){if(d.push(e),e instanceof Po)e.left.has_side_effects(t)||s.push(d.slice()),M(e.right);else if(e instanceof wo)M(e.left),M(e.right);else if(e instanceof vo&&!vi(e,Us))M(e.expression),e.args.forEach(M);else if(e instanceof ao)M(e.expression);else if(e instanceof Fo)M(e.condition),M(e.consequent),M(e.alternative);else if(e instanceof lo){var r=e.definitions.length,n=r-200;for(n<0&&(n=0);n<r;n++)M(e.definitions[n])}else e instanceof ka?(M(e.condition),e.body instanceof xa||M(e.body)):e instanceof $a?e.value&&M(e.value):e instanceof wa?(e.init&&M(e.init),e.condition&&M(e.condition),e.step&&M(e.step),e.body instanceof xa||M(e.body)):e instanceof Fa?(M(e.object),e.body instanceof xa||M(e.body)):e instanceof to?(M(e.condition),e.body instanceof xa||M(e.body),!e.alternative||e.alternative instanceof xa||M(e.alternative)):e instanceof xo?e.expressions.forEach(M):e instanceof ya?M(e.body):e instanceof ro?(M(e.expression),e.body.forEach(M)):e instanceof ko?"++"!=e.operator&&"--"!=e.operator||s.push(d.slice()):e instanceof fo&&e.value&&(s.push(d.slice()),M(e.value));d.pop()}function R(e,t,r){var n=l.parent(t);return n instanceof Po?!r||n.logical||n.left instanceof Eo||y.has(n.left.name)?e:R(n,t+1,r):n instanceof wo?!r||Uc.has(n.operator)&&n.left!==e?e:R(n,t+1,r):n instanceof vo||n instanceof ao?e:n instanceof Fo?r&&n.condition===e?R(n,t+1,r):e:n instanceof lo?R(n,t+1,!0):n instanceof $a?r?R(n,t+1,r):e:n instanceof to?r&&n.condition===e?R(n,t+1,r):e:n instanceof Ca?e:n instanceof xo?R(n,t+1,n.tail_node()!==e):n instanceof ya?R(n,t+1,!0):n instanceof ro||n instanceof fo?e:null}function L(e){if(e instanceof Po&&e.logical)return!1;if(!(e instanceof fo&&e.name instanceof Yo)){const t=e instanceof Po?e.left:e.expression;return!bc(t,es)&&!bc(t,ts)&&t}var r=e.name.definition();if(Qn(e.name,r.orig)){var n=r.references.length-r.replaced;if(n)return r.orig.length-r.eliminated>1&&!(e.name instanceof rs)||(n>1?(e=>{var t=e.value;if(t instanceof _s&&"arguments"!=t.name){var r=t.definition();if(!r.undeclared)return f=r}})(e):!t.exposed(r))?si(_s,e.name,e.name):void 0}}function B(e){return e instanceof Po?e.right:e.value}function j(e){var r=new Map;if(e instanceof ko)return r;var n=new Rs((e=>{for(var i=e;i instanceof Eo;)i=i.expression;(i instanceof _s||i instanceof hs)&&r.set(i.name,r.get(i.name)||hc(t,n,e,e,0))}));return B(e).walk(n),r}function U(r){if(r.name instanceof rs){var n=t.parent(),i=t.self().argnames,a=i.indexOf(r.name);if(a<0)n.args.length=Math.min(n.args.length,i.length-1);else{var o=n.args;o[a]&&(o[a]=si(xs,o[a],{value:0}))}return!0}var s=!1;return e[c].transform(new Ls(((e,t,n)=>s?e:e===r||e.body===r?(s=!0,e instanceof fo?(e.value=e.name instanceof es?si(ks,e.value):null,e):n?oi.skip:null):void 0),(e=>{if(e instanceof xo)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}})))}function V(e){for(;e instanceof Eo;)e=e.expression;return e instanceof _s&&e.definition().scope===i&&!(r&&(y.has(e.name)||_ instanceof ko||_ instanceof Po&&!_.logical&&"="!=_.operator))}function z(){if(b)return!1;if(f)return!0;if(h instanceof _s){var e=h.definition();if(e.references.length-e.replaced==(_ instanceof fo?1:2))return!0}return!1}function K(e){if(!e.definition)return!0;var t=e.definition();return!(1==t.orig.length&&t.orig[0]instanceof ns||t.scope.get_defun_scope()===i&&t.references.every((e=>{var t=e.scope.get_defun_scope();return"Scope"==t.TYPE&&(t=t.parent_scope),t===i})))}function W(e,t){if(e instanceof Po)return W(e.left,!0);if(e instanceof ko)return W(e.expression,!0);if(e instanceof fo)return e.value&&W(e.value);if(t){if(e instanceof So)return W(e.expression,!0);if(e instanceof To)return W(e.expression,!0);if(e instanceof _s)return e.definition().scope!==i}return!1}}function c(e){for(var t=[],r=0;r<e.length;){var n=e[r];n instanceof Ea&&n.body.every(Nc)?(a=!0,c(n.body),e.splice(r,1,...n.body),r+=n.body.length):n instanceof Sa?(a=!0,e.splice(r,1)):n instanceof ha?t.indexOf(n.value)<0?(r++,t.push(n.value)):(a=!0,e.splice(r,1)):r++}}function l(e,t){for(var r=t.self(),n=(e=>{for(var t=0,r=e.length;--r>=0;){var n=e[r];if(n instanceof to&&n.body instanceof Ga&&++t>1)return!0}return!1})(e),i=r instanceof La,o=e.length;--o>=0;){var s=e[o],c=y(o),l=e[c];if(i&&!l&&s instanceof Ga){if(!s.value){a=!0,e.splice(o,1);continue}if(s.value instanceof Ao&&"void"==s.value.operator){a=!0,e[o]=si(ya,s,{body:s.value.expression});continue}}if(s instanceof to){var u;if(m(u=Qc(s.body))){u.label&&ui(u.label.thedef.references,u),a=!0,(s=s.clone()).condition=s.condition.negate(t);var p=h(s.body,u);s.body=si(Ea,s,{body:kc(s.alternative).concat(g())}),s.alternative=si(Ea,s,{body:p}),e[o]=s.transform(t);continue}if(m(u=Qc(s.alternative))){u.label&&ui(u.label.thedef.references,u),a=!0,(s=s.clone()).body=si(Ea,s.body,{body:kc(s.body).concat(g())}),p=h(s.alternative,u),s.alternative=si(Ea,s.alternative,{body:p}),e[o]=s.transform(t);continue}}if(s instanceof to&&s.body instanceof Ga){var _=s.body.value;if(!_&&!s.alternative&&(i&&!l||l instanceof Ga&&!l.value)){a=!0,e[o]=si(ya,s.condition,{body:s.condition});continue}if(_&&!s.alternative&&l instanceof Ga&&l.value){a=!0,(s=s.clone()).alternative=l,e[o]=s.transform(t),e.splice(c,1);continue}if(_&&!s.alternative&&(!l&&i&&n||l instanceof Ga)){a=!0,(s=s.clone()).alternative=l||si(Ga,s,{value:null}),e[o]=s.transform(t),l&&e.splice(c,1);continue}var f=e[v(o)];if(t.option("sequences")&&i&&!s.alternative&&f instanceof to&&f.body instanceof Ga&&y(c)==e.length&&l instanceof ya){a=!0,(s=s.clone()).alternative=si(Ea,l,{body:[l,si(Ga,l,{value:null})]}),e[o]=s.transform(t),e.splice(c,1);continue}}}function m(n){if(!n)return!1;for(var a=o+1,s=e.length;a<s;a++){var c=e[a];if(c instanceof _o||c instanceof po)return!1}var l=n instanceof Xa?t.loopcontrol_target(n):null;return n instanceof Ga&&i&&(e=>!e||e instanceof Ao&&"void"==e.operator)(n.value)||n instanceof Qa&&r===wc(l)||n instanceof Ya&&l instanceof Ea&&r===l}function g(){var t=e.slice(o+1);return e.length=o+1,t.filter((t=>!(t instanceof Va&&(e.push(t),1))))}function h(e,t){var r=kc(e).slice(0,-1);return t.value&&r.push(si(ya,t.value,{body:t.value.expression})),r}function y(t){for(var r=t+1,n=e.length;r<n;r++){var i=e[r];if(!(i instanceof uo&&d(i)))break}return r}function v(t){for(var r=t;--r>=0;){var n=e[r];if(!(n instanceof uo&&d(n)))break}return r}}function u(e,t){for(var r,n=t.self(),i=0,o=0,s=e.length;i<s;i++){var c=e[i];if(c instanceof Xa){var l=t.loopcontrol_target(c);c instanceof Ya&&!(l instanceof Ca)&&wc(l)===n||c instanceof Qa&&wc(l)===n?c.label&&ui(c.label.thedef.references,c):e[o++]=c}else e[o++]=c;if(Qc(c)){r=e.slice(i+1);break}}e.length=o,a=o!=s,r&&r.forEach((r=>{Lc(t,r,e)}))}function d(e){return e.definitions.every((e=>!e.value))}function p(e,t){if(!(e.length<2)){for(var r=[],n=0,i=0,o=e.length;i<o;i++){var s=e[i];if(s instanceof ya){r.length>=t.sequences_limit&&l();var c=s.body;r.length>0&&(c=c.drop_side_effect_free(t)),c&&Cc(r,c)}else s instanceof lo&&d(s)||s instanceof Va||l(),e[n++]=s}l(),e.length=n,n!=o&&(a=!0)}function l(){if(r.length){var t=Sc(r[0],r);e[n++]=si(ya,t,{body:t}),r=[]}}}function _(e,t){if(!(e instanceof Ea))return e;for(var r=null,n=0,i=e.body.length;n<i;n++){var a=e.body[n];if(a instanceof uo&&d(a))t.push(a);else{if(r)return!1;r=a}}return r}function f(e,t){function r(e){i--,a=!0;var r=n.body;return Sc(r,[r,e]).transform(t)}for(var n,i=0,o=0;o<e.length;o++){var s=e[o];if(n&&(s instanceof $a?s.value=r(s.value||si(ks,s).transform(t)):s instanceof wa?s.init instanceof lo||Is(n.body,(e=>e instanceof Oa||(e instanceof wo&&"in"===e.operator?Ms:void 0)))||(s.init?s.init=r(s.init):(s.init=n.body,i--,a=!0)):s instanceof Fa?s.init instanceof _o||s.init instanceof po||(s.object=r(s.object)):s instanceof to?s.condition=r(s.condition):(s instanceof ro||s instanceof Ia)&&(s.expression=r(s.expression))),t.option("conditionals")&&s instanceof to){var c=[],l=_(s.body,c),u=_(s.alternative,c);if(!1!==l&&!1!==u&&c.length>0){var d=c.length;c.push(si(to,s,{condition:s.condition,body:l||si(Sa,s.body),alternative:u})),c.unshift(i,1),[].splice.apply(e,c),o+=d,i+=d+1,n=null,a=!0;continue}}e[i++]=s,n=s instanceof ya?s:null}e.length=i}function m(e,r){if(e instanceof lo){var n,a=e.definitions[e.definitions.length-1];if(a.value instanceof Mo&&(r instanceof Po&&!r.logical?n=[r]:r instanceof xo&&(n=r.expressions.slice()),n)){var o=!1;do{var s=n[0];if(!(s instanceof Po))break;if("="!=s.operator)break;if(!(s.left instanceof Eo))break;var c=s.left.expression;if(!(c instanceof _s))break;if(a.name.name!=c.name)break;if(!s.right.is_constant_expression(i))break;var l=s.left.property;if(l instanceof fa&&(l=l.evaluate(t)),l instanceof fa)break;l=""+l;var u=t.option("ecma")<2015&&t.has_directive("use strict")?e=>e.key!=l&&e.key&&e.key.name!=l:e=>e.key&&e.key.name!=l;if(!a.value.properties.every(u))break;var d=a.value.properties.filter((e=>e.key===l))[0];d?d.value=new xo({start:d.start,expressions:[d.value.clone(),s.right.clone()],end:d.end}):a.value.properties.push(si(Lo,s,{key:l,value:s.right})),n.shift(),o=!0}while(n.length);return o&&n}}}function g(e){for(var t,r=0,n=-1,i=e.length;r<i;r++){var o=e[r],s=e[n];if(o instanceof lo)s&&s.TYPE==o.TYPE?(s.definitions=s.definitions.concat(o.definitions),a=!0):t&&t.TYPE==o.TYPE&&d(o)?(t.definitions=t.definitions.concat(o.definitions),a=!0):(e[++n]=o,t=o);else if(o instanceof $a)o.value=l(o.value);else if(o instanceof wa)(c=m(s,o.init))?(a=!0,o.init=c.length?Sc(o.init,c):null,e[++n]=o):s instanceof uo&&(!o.init||o.init.TYPE==s.TYPE)?(o.init&&(s.definitions=s.definitions.concat(o.init.definitions)),o.init=s,e[n]=o,a=!0):t&&o.init&&t.TYPE==o.init.TYPE&&d(o.init)?(t.definitions=t.definitions.concat(o.init.definitions),o.init=null,e[++n]=o,a=!0):e[++n]=o;else if(o instanceof Fa)o.object=l(o.object);else if(o instanceof to)o.condition=l(o.condition);else if(o instanceof ya){var c;if(c=m(s,o.body)){if(a=!0,!c.length)continue;o.body=Sc(o.body,c)}e[++n]=o}else o instanceof ro||o instanceof Ia?o.expression=l(o.expression):e[++n]=o}function l(t){e[++n]=o;var r=m(s,t);return r?(a=!0,r.length?Sc(t,r):t instanceof xo?t.tail_node().left:t.left):t}e.length=n+1}}function Lc(e,t,r){Is(t,(n=>n instanceof uo?(n.remove_initializers(),r.push(n),!0):n instanceof Va&&(n===t||!e.has_directive("use strict"))?(r.push(n===t?n:si(uo,n,{definitions:[si(fo,n,{name:si(Qo,n.name,n.name),value:null})]})),!0):n instanceof yo||n instanceof go?(r.push(n),!0):n instanceof Oa||void 0))}function Bc(e){return e instanceof vs?e.getValue():e instanceof Ao&&"void"==e.operator&&e.expression instanceof vs?void 0:e}function jc(e,t){return dc(e,8)||e instanceof ks||e instanceof Ao&&"void"==e.operator&&!e.expression.has_side_effects(t)}!function(e){function t(e){return/strict/.test(e.option("pure_getters"))}fa.DEFMETHOD("may_throw_on_access",(function(e){return!e.option("pure_getters")||this._dot_throw(e)})),e(fa,t),e(Ts,ni),e(ks,ni),e(vs,ri),e(Oo,ri),e(Mo,(function(e){if(!t(e))return!1;for(var r=this.properties.length;--r>=0;)if(this.properties[r]._dot_throw(e))return!0;return!1})),e(Wo,ri),e(Ro,ri),e(Vo,ni),e(Ra,(function(e){return this.expression._dot_throw(e)})),e(ja,ri),e(Ua,ri),e(No,ri),e(Ao,(function(){return"void"==this.operator})),e(wo,(function(e){return("&&"==this.operator||"||"==this.operator||"??"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))})),e(Po,(function(e){return!!this.logical||"="==this.operator&&this.right._dot_throw(e)})),e(Fo,(function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)})),e(So,(function(e){return!(!t(e)||"prototype"==this.property&&(this.expression instanceof ja||this.expression instanceof Wo))})),e(Co,(function(e){return this.expression._dot_throw(e)})),e(xo,(function(e){return this.tail_node()._dot_throw(e)})),e(_s,(function(e){if("arguments"===this.name)return!1;if(dc(this,8))return!0;if(!t(e))return!1;if(Pc(this)&&this.is_declared(e))return!1;if(this.is_immutable())return!1;var r=this.fixed_value();return!r||r._dot_throw(e)}))}(((e,t)=>{e.DEFMETHOD("_dot_throw",t)})),function(e){const t=pi("! delete"),r=pi("in instanceof == != === !== < <= >= >");e(fa,ri),e(Ao,(function(){return t.has(this.operator)})),e(wo,(function(){return r.has(this.operator)||Uc.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()})),e(Fo,(function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()})),e(Po,(function(){return"="==this.operator&&this.right.is_boolean()})),e(xo,(function(){return this.tail_node().is_boolean()})),e(Ps,ni),e(Fs,ni)}(((e,t)=>{e.DEFMETHOD("is_boolean",t)})),function(e){e(fa,ri),e(xs,ni);var t=pi("+ - ~ ++ --");e(ko,(function(){return t.has(this.operator)}));var r=pi("- * / % & | ^ << >> >>>");e(wo,(function(e){return r.has(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)})),e(Po,(function(e){return r.has(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)})),e(xo,(function(e){return this.tail_node().is_number(e)})),e(Fo,(function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)}))}(((e,t)=>{e.DEFMETHOD("is_number",t)})),function(e){e(fa,ri),e(bs,ni),e(Wa,ni),e(Ao,(function(){return"typeof"==this.operator})),e(wo,(function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))})),e(Po,(function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)})),e(xo,(function(e){return this.tail_node().is_string(e)})),e(Fo,(function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)}))}(((e,t)=>{e.DEFMETHOD("is_string",t)}));var Uc=pi("&& || ??"),Vc=pi("delete ++ --");function zc(e,t){return t instanceof ko&&Vc.has(t.operator)?t.expression:t instanceof Po&&t.left===e?e:void 0}function Kc(e,t){return e.size()>t.size()?t:e}function Wc(e,t){return Kc(si(ya,e,{body:e}),si(ya,t,{body:t})).body}function Hc(e,t,r){return(Ws(e)?Wc:Kc)(t,r)}function Jc(e){const t=new Map;for(var r of Object.keys(e))t.set(r,pi(e[r]));return t}!function(e){function t(e,r){if(e instanceof fa)return si(e.CTOR,r,e);if(Array.isArray(e))return si(Oo,r,{elements:e.map((e=>t(e,r)))});if(e&&"object"==typeof e){var n=[];for(var i in e)mi(e,i)&&n.push(si(Lo,r,{key:i,value:t(e[i],r)}));return si(Mo,r,{properties:n})}return Dc(e,r)}Ma.DEFMETHOD("resolve_defines",(function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new Ls((function(t){var r=t._find_defs(e,"");if(r){for(var n,i=0,a=t;(n=this.parent(i++))&&n instanceof Eo&&n.expression===a;)a=n;if(!zc(a,n))return r}})))):this})),e(fa,ti),e(Co,(function(e,t){return this.expression._find_defs(e,t)})),e(So,(function(e,t){return this.expression._find_defs(e,"."+this.property+t)})),e(Yo,(function(){this.global()})),e(_s,(function(e,r){if(this.global()){var n=e.option("global_defs"),i=this.name+r;return mi(n,i)?t(n[i],this):void 0}}))}(((e,t)=>{e.DEFMETHOD("_find_defs",t)}));var $c=["constructor","toString","valueOf"],Gc=Jc({Array:["indexOf","join","lastIndexOf","slice"].concat($c),Boolean:$c,Function:$c,Number:["toExponential","toFixed","toPrecision"].concat($c),Object:$c,RegExp:["test"].concat($c),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat($c)}),qc=Jc({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]});!function(e){fa.DEFMETHOD("evaluate",(function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);return!t||t instanceof RegExp?t:"function"==typeof t||"object"==typeof t?this:t}));var t=pi("! ~ - + void");fa.DEFMETHOD("is_constant",(function(){return this instanceof vs?!(this instanceof Ss):this instanceof Ao&&this.expression instanceof vs&&t.has(this.operator)})),e(ma,(function(){throw new Error(li("Cannot evaluate a statement [{file}:{line},{col}]",this.start))})),e(La,ii),e(Wo,ii),e(fa,ii),e(vs,(function(){return this.getValue()})),e(Es,ii),e(Ss,(function(e){let t=e.evaluated_regexps.get(this);if(void 0===t){try{t=(0,eval)(this.print_to_string())}catch(e){t=null}e.evaluated_regexps.set(this,t)}return t||this})),e(Wa,(function(){return 1!==this.segments.length?this:this.segments[0].value})),e(ja,(function(e){if(e.option("unsafe")){var t=()=>{};return t.node=this,t.toString=function(){return this.node.print_to_string()},t}return this})),e(Oo,(function(e,t){if(e.option("unsafe")){for(var r=[],n=0,i=this.elements.length;n<i;n++){var a=this.elements[n],o=a._eval(e,t);if(a===o)return this;r.push(o)}return r}return this})),e(Mo,(function(e,t){if(e.option("unsafe")){for(var r={},n=0,i=this.properties.length;n<i;n++){var a=this.properties[n];if(a instanceof Ra)return this;var o=a.key;if(o instanceof qo)o=o.name;else if(o instanceof fa&&(o=o._eval(e,t))===a.key)return this;if("function"==typeof Object.prototype[o])return this;if(!(a.value instanceof ja)&&(r[o]=a.value._eval(e,t),r[o]===a.value))return this}return r}return this}));var r=pi("! typeof void");e(Ao,(function(e,t){var n=this.expression;if(e.option("typeofs")&&"typeof"==this.operator&&(n instanceof La||n instanceof _s&&n.fixed_value()instanceof La))return"function";if(r.has(this.operator)||t++,(n=n._eval(e,t))===this.expression)return this;switch(this.operator){case"!":return!n;case"typeof":return n instanceof RegExp?this:typeof n;case"void":return;case"~":return~n;case"-":return-n;case"+":return+n}return this}));var n=pi("&& || ?? === !==");const i=pi("== != === !=="),a=e=>"object"==typeof e||"function"==typeof e||"symbol"==typeof e;e(wo,(function(e,t){n.has(this.operator)||t++;var r=this.left._eval(e,t);if(r===this.left)return this;var o,s=this.right._eval(e,t);if(s===this.right)return this;if(null!=r&&null!=s&&i.has(this.operator)&&a(r)&&a(s)&&typeof r==typeof s)return this;switch(this.operator){case"&&":o=r&&s;break;case"||":o=r||s;break;case"??":o=null!=r?r:s;break;case"|":o=r|s;break;case"&":o=r&s;break;case"^":o=r^s;break;case"+":o=r+s;break;case"*":o=r*s;break;case"**":o=Math.pow(r,s);break;case"/":o=r/s;break;case"%":o=r%s;break;case"-":o=r-s;break;case"<<":o=r<<s;break;case">>":o=r>>s;break;case">>>":o=r>>>s;break;case"==":o=r==s;break;case"===":o=r===s;break;case"!=":o=r!=s;break;case"!==":o=r!==s;break;case"<":o=r<s;break;case"<=":o=r<=s;break;case">":o=r>s;break;case">=":o=r>=s;break;default:return this}return isNaN(o)&&e.find_parent(Ia)?this:o})),e(Fo,(function(e,t){var r=this.condition._eval(e,t);if(r===this.condition)return this;var n=r?this.consequent:this.alternative,i=n._eval(e,t);return i===n?this:i}));const o=new Set;e(_s,(function(e,t){if(o.has(this))return this;var r=this.fixed_value();if(!r)return this;o.add(this);const n=r._eval(e,t);if(o.delete(this),n===r)return this;if(n&&"object"==typeof n){var i=this.definition().escaped;if(i&&t>i)return this}return n}));var s={Array,Math,Number,Object,String},c=Jc({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]});e(Eo,(function(e,t){if(!this.optional||null!=this.expression._eval(e,t)){if(e.option("unsafe")){var r=this.property;if(r instanceof fa&&(r=r._eval(e,t))===this.property)return this;var n,i=this.expression;if(Pc(i)){var a,o="hasOwnProperty"===i.name&&"call"===r&&(a=e.parent()&&e.parent().args)&&a&&a[0]&&a[0].evaluate(e);if(null==(o=o instanceof So?o.expression:o)||o.thedef&&o.thedef.undeclared)return this.clone();var l=c.get(i.name);if(!l||!l.has(r))return this;n=s[i.name]}else{if(!(n=i._eval(e,t+1))||n===i||!mi(n,r))return this;if("function"==typeof n)switch(r){case"name":return n.node.name?n.node.name.name:"";case"length":return n.node.argnames.length;default:return this}}return n[r]}return this}})),e(Co,(function(e,t){const r=this.expression._eval(e,t);return r===this.expression?this:r})),e(vo,(function(e,t){var r=this.expression;if(!this.optional||null!=this.expression._eval(e,t)){if(e.option("unsafe")&&r instanceof Eo){var n,i=r.property;if(i instanceof fa&&(i=i._eval(e,t))===r.property)return this;var a=r.expression;if(Pc(a)){var o="hasOwnProperty"===a.name&&"call"===i&&this.args[0]&&this.args[0].evaluate(e);if(null==(o=o instanceof So?o.expression:o)||o.thedef&&o.thedef.undeclared)return this.clone();var c=qc.get(a.name);if(!c||!c.has(i))return this;n=s[a.name]}else{if((n=a._eval(e,t+1))===a||!n)return this;var l=Gc.get(n.constructor.name);if(!l||!l.has(i))return this}for(var u=[],d=0,p=this.args.length;d<p;d++){var _=this.args[d],f=_._eval(e,t);if(_===f)return this;u.push(f)}try{return n[i].apply(n,u)}catch(e){}}return this}})),e(bo,ii)}(((e,t)=>{e.DEFMETHOD("_eval",t)})),function(e){function t(e){return si(Ao,e,{operator:"!",expression:e})}function r(e,r,n){var i=t(e);if(n){var a=si(ya,r,{body:r});return Kc(i,a)===a?r:i}return Kc(i,r)}e(fa,(function(){return t(this)})),e(ma,(()=>{throw new Error("Cannot negate a statement")})),e(ja,(function(){return t(this)})),e(Ua,(function(){return t(this)})),e(Ao,(function(){return"!"==this.operator?this.expression:t(this)})),e(xo,(function(e){var t=this.expressions.slice();return t.push(t.pop().negate(e)),Sc(this,t)})),e(Fo,(function(e,t){var n=this.clone();return n.consequent=n.consequent.negate(e),n.alternative=n.alternative.negate(e),r(this,n,t)})),e(wo,(function(e,n){var i=this.clone(),a=this.operator;if(e.option("unsafe_comps"))switch(a){case"<=":return i.operator=">",i;case"<":return i.operator=">=",i;case">=":return i.operator="<",i;case">":return i.operator="<=",i}switch(a){case"==":return i.operator="!=",i;case"!=":return i.operator="==",i;case"===":return i.operator="!==",i;case"!==":return i.operator="===",i;case"&&":return i.operator="||",i.left=i.left.negate(e,n),i.right=i.right.negate(e),r(this,i,n);case"||":return i.operator="&&",i.left=i.left.negate(e,n),i.right=i.right.negate(e),r(this,i,n);case"??":return i.right=i.right.negate(e),r(this,i,n)}return t(this)}))}((function(e,t){e.DEFMETHOD("negate",(function(e,r){return t.call(this,e,r)}))}));var Xc=pi("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");vo.DEFMETHOD("is_expr_pure",(function(e){if(e.option("unsafe")){var t=this.expression,r=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&"hasOwnProperty"===t.expression.name&&(null==r||r.thedef&&r.thedef.undeclared))return!1;if(Pc(t)&&Xc.has(t.name))return!0;let n;if(t instanceof So&&Pc(t.expression)&&(n=qc.get(t.expression.name))&&n.has(t.property))return!0}return!!vi(this,Bs)||!e.pure_funcs(this)})),fa.DEFMETHOD("is_call_pure",ri),So.DEFMETHOD("is_call_pure",(function(e){if(!e.option("unsafe"))return;const t=this.expression;let r;return t instanceof Oo?r=Gc.get("Array"):t.is_boolean()?r=Gc.get("Boolean"):t.is_number(e)?r=Gc.get("Number"):t instanceof Ss?r=Gc.get("RegExp"):t.is_string(e)?r=Gc.get("String"):this.may_throw_on_access(e)||(r=Gc.get("Object")),r&&r.has(this.property)}));const Yc=new Set(["Number","String","Array","Object","Function","Promise"]);function Qc(e){return e&&e.aborts()}!function(e){function t(e,t){for(var r=e.length;--r>=0;)if(e[r].has_side_effects(t))return!0;return!1}e(fa,ni),e(Sa,ri),e(vs,ri),e(hs,ri),e(xa,(function(e){return t(this.body,e)})),e(vo,(function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||t(this.args,e)})),e(ro,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(ao,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(oo,(function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)})),e(to,(function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)})),e(Ta,(function(e){return this.body.has_side_effects(e)})),e(ya,(function(e){return this.body.has_side_effects(e)})),e(La,ri),e(Wo,(function(e){return!(!this.extends||!this.extends.has_side_effects(e))||t(this.properties,e)})),e(wo,(function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)})),e(Po,ni),e(Fo,(function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)})),e(ko,(function(e){return Vc.has(this.operator)||this.expression.has_side_effects(e)})),e(_s,(function(e){return!this.is_declared(e)&&!Yc.has(this.name)})),e(as,ri),e(Yo,ri),e(Mo,(function(e){return t(this.properties,e)})),e(Ro,(function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.value&&this.value.has_side_effects(e)})),e(Ho,(function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.static&&this.value&&this.value.has_side_effects(e)})),e(zo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(Vo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(Uo,(function(e){return this.computed_key()&&this.key.has_side_effects(e)})),e(Oo,(function(e){return t(this.elements,e)})),e(So,(function(e){return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)})),e(To,(function(e){return(!this.optional||!pl(this.expression))&&(!this.optional&&this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e))})),e(Co,(function(e){return this.expression.has_side_effects(e)})),e(xo,(function(e){return t(this.expressions,e)})),e(lo,(function(e){return t(this.definitions,e)})),e(fo,(function(){return this.value})),e(Ha,ri),e(Wa,(function(e){return t(this.segments,e)}))}(((e,t)=>{e.DEFMETHOD("has_side_effects",t)})),function(e){function t(e,t){for(var r=e.length;--r>=0;)if(e[r].may_throw(t))return!0;return!1}e(fa,ni),e(vs,ri),e(Sa,ri),e(La,ri),e(Yo,ri),e(hs,ri),e(Wo,(function(e){return!(!this.extends||!this.extends.may_throw(e))||t(this.properties,e)})),e(Oo,(function(e){return t(this.elements,e)})),e(Po,(function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof _s)&&this.left.may_throw(e)})),e(wo,(function(e){return this.left.may_throw(e)||this.right.may_throw(e)})),e(xa,(function(e){return t(this.body,e)})),e(vo,(function(e){return(!this.optional||!pl(this.expression))&&(!!t(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||!(this.expression instanceof La)||t(this.expression.body,e)))})),e(ao,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(Fo,(function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)})),e(lo,(function(e){return t(this.definitions,e)})),e(to,(function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)})),e(Ta,(function(e){return this.body.may_throw(e)})),e(Mo,(function(e){return t(this.properties,e)})),e(Ro,(function(e){return!!this.value&&this.value.may_throw(e)})),e(Ho,(function(e){return this.computed_key()&&this.key.may_throw(e)||this.static&&this.value&&this.value.may_throw(e)})),e(zo,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(Vo,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(Uo,(function(e){return this.computed_key()&&this.key.may_throw(e)})),e(Ga,(function(e){return this.value&&this.value.may_throw(e)})),e(xo,(function(e){return t(this.expressions,e)})),e(ya,(function(e){return this.body.may_throw(e)})),e(So,(function(e){return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)})),e(To,(function(e){return(!this.optional||!pl(this.expression))&&(!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e))})),e(Co,(function(e){return this.expression.may_throw(e)})),e(ro,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(_s,(function(e){return!this.is_declared(e)&&!Yc.has(this.name)})),e(as,ri),e(oo,(function(e){return this.bcatch?this.bcatch.may_throw(e):t(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)})),e(ko,(function(e){return!("typeof"==this.operator&&this.expression instanceof _s)&&this.expression.may_throw(e)})),e(fo,(function(e){return!!this.value&&this.value.may_throw(e)}))}(((e,t)=>{e.DEFMETHOD("may_throw",t)})),function(e){function t(e){let t=!0;return Is(this,(r=>{if(r instanceof _s){if(dc(this,16))return t=!1,Ms;var n=r.definition();if(Qn(n,this.enclosed)&&!this.variables.has(n.name)){if(e){var i=e.find_variable(r);if(n.undeclared?!i:i===n)return t="f",!0}return t=!1,Ms}return!0}if(r instanceof hs&&this instanceof Ua)return t=!1,Ms})),t}e(fa,ri),e(vs,ni),e(Wo,(function(e){if(this.extends&&!this.extends.is_constant_expression(e))return!1;for(const t of this.properties){if(t.computed_key()&&!t.key.is_constant_expression(e))return!1;if(t.static&&t.value&&!t.value.is_constant_expression(e))return!1}return t.call(this,e)})),e(La,t),e(ko,(function(){return this.expression.is_constant_expression()})),e(wo,(function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()})),e(Oo,(function(){return this.elements.every((e=>e.is_constant_expression()))})),e(Mo,(function(){return this.properties.every((e=>e.is_constant_expression()))})),e(Ro,(function(){return!(this.key instanceof fa||!this.value||!this.value.is_constant_expression())}))}(((e,t)=>{e.DEFMETHOD("is_constant_expression",t)})),function(e){function t(){for(var e=0;e<this.body.length;e++)if(Qc(this.body[e]))return this.body[e];return null}e(ma,ai),e(Ja,ii),e(go,(()=>null)),e(Ea,t),e(no,t),e(to,(function(){return this.alternative&&Qc(this.body)&&Qc(this.alternative)&&this}))}(((e,t)=>{e.DEFMETHOD("aborts",t)}));var Zc=new Set(["use asm","use strict"]);function el(e,t){return Rc(e.body,t),t.option("side_effects")&&1==e.body.length&&e.body[0]===t.has_directive("use strict")&&(e.body.length=0),e}mc(ha,((e,t)=>!t.option("directives")||Zc.has(e.value)&&t.has_directive(e.value)===e?e:si(Sa,e))),mc(ga,((e,t)=>t.option("drop_debugger")?si(Sa,e):e)),mc(Ta,((e,t)=>e.body instanceof Ya&&t.loopcontrol_target(e.body)===e.body?si(Sa,e):0==e.label.references.length?e.body:e)),mc(xa,((e,t)=>(Rc(e.body,t),e))),mc(Ea,((e,t)=>{switch(Rc(e.body,t),e.body.length){case 1:if(!t.has_directive("use strict")&&t.parent()instanceof to&&(e=>!(e instanceof _o||e instanceof po||e instanceof Wo))(e.body[0])||Nc(e.body[0]))return e.body[0];break;case 0:return si(Sa,e)}return e})),mc(La,el);const tl=/keep_assign/;function rl(e,t){var r=!1,n=new Rs((t=>!!(r||t instanceof Oa)||(t instanceof Xa&&n.loopcontrol_target(t)===e?r=!0:void 0)));return t instanceof Ta&&n.push(t),n.push(e),e.body.walk(n),r}function nl(e,t){var r=e.body instanceof Ea?e.body.body[0]:e.body;if(t.option("dead_code")&&i(r)){var n=[];return e.init instanceof ma?n.push(e.init):e.init&&n.push(si(ya,e.init,{body:e.init})),e.condition&&n.push(si(ya,e.condition,{body:e.condition})),Lc(t,e.body,n),si(Ea,e,{body:n})}return r instanceof to&&(i(r.body)?(e.condition?e.condition=si(wo,e.condition,{left:e.condition,operator:"&&",right:r.condition.negate(t)}):e.condition=r.condition.negate(t),a(r.alternative)):i(r.alternative)&&(e.condition?e.condition=si(wo,e.condition,{left:e.condition,operator:"&&",right:r.condition}):e.condition=r.condition,a(r.body))),e;function i(e){return e instanceof Ya&&t.loopcontrol_target(e)===t.self()}function a(r){r=kc(r),e.body instanceof Ea?(e.body=e.body.clone(),e.body.body=r.concat(e.body.body.slice(1)),e.body=e.body.transform(t)):e.body=si(Ea,e.body,{body:r}).transform(t),e=nl(e,t)}}function il(e,t){return t.top_retain&&e instanceof Va&&dc(e,1024)&&e.name&&t.top_retain(e.name)}Oa.DEFMETHOD("drop_unused",(function(e){if(!e.option("unused"))return;if(e.has_directive("use asm"))return;var t=this;if(t.pinned())return;var r=!(t instanceof Ma)||e.toplevel.funcs,n=!(t instanceof Ma)||e.toplevel.vars;const i=tl.test(e.option("unused"))?ri:e=>e instanceof Po&&!e.logical&&(dc(e,32)||"="==e.operator)?e.left:e instanceof ko&&dc(e,32)?e.expression:void 0;var a=new Map,o=new Map;t instanceof Ma&&e.top_retain&&t.variables.forEach((t=>{e.top_retain(t)&&!a.has(t.id)&&a.set(t.id,t)}));var s=new Map,c=new Map,l=this,u=new Rs(((i,d)=>{if(i instanceof La&&i.uses_arguments&&!u.has_directive("use strict")&&i.argnames.forEach((e=>{if(e instanceof Yo){var t=e.definition();a.has(t.id)||a.set(t.id,t)}})),i!==t){if(i instanceof Va||i instanceof $o){var _=i.name.definition();if((u.parent()instanceof yo||!r&&l===t)&&_.global&&!a.has(_.id)&&a.set(_.id,_),i instanceof $o){i.extends&&(i.extends.has_side_effects(e)||i.extends.may_throw(e))&&i.extends.walk(u);for(const t of i.properties)(t.has_side_effects(e)||t.may_throw(e))&&t.walk(u)}return _i(c,_.id,i),!0}if(i instanceof rs&&l===t&&_i(s,i.definition().id,i),i instanceof lo&&l===t){const t=u.parent()instanceof yo;return i.definitions.forEach((r=>{if(r.name instanceof Qo&&_i(s,r.name.definition().id,r),!t&&n||Is(r.name,(e=>{if(e instanceof Yo){const r=e.definition();!t&&!r.global||a.has(r.id)||a.set(r.id,r)}})),r.value){if(r.name instanceof za)r.walk(u);else{var i=r.name.definition();_i(c,i.id,r.value),i.chained||r.name.fixed_value()!==r.value||o.set(i.id,r)}r.value.has_side_effects(e)&&r.value.walk(u)}})),!0}return p(i,d)}}));t.walk(u),u=new Rs(p),a.forEach((e=>{var t=c.get(e.id);t&&t.forEach((e=>{e.walk(u)}))}));var d=new Ls((function(c,u,p){var _=d.parent();if(n){const e=i(c);if(e instanceof _s){var f=e.definition(),m=a.has(f.id);if(c instanceof Po){if(!m||o.has(f.id)&&o.get(f.id)!==c)return Tc(_,c,c.right.transform(d))}else if(!m)return p?oi.skip:si(xs,c,{value:0})}}if(l===t){if(c.name&&(c instanceof Go&&!gi(e.option("keep_classnames"),(f=c.name.definition()).name)||c instanceof ja&&!gi(e.option("keep_fnames"),(f=c.name.definition()).name))&&(!a.has(f.id)||f.orig.length>1)&&(c.name=null),c instanceof La&&!(c instanceof Ba))for(var g=!e.option("keep_fargs"),h=c.argnames,y=h.length;--y>=0;){var v=h[y];v instanceof Ra&&(v=v.expression),v instanceof Io&&(v=v.left),v instanceof za||a.has(v.definition().id)?g=!1:(pc(v,1),g&&h.pop())}if((c instanceof Va||c instanceof $o)&&c!==t){const t=c.name.definition();if(!(t.global&&!r||a.has(t.id))){if(t.eliminated++,c instanceof $o){const t=c.drop_side_effect_free(e);if(t)return si(ya,c,{body:t})}return p?oi.skip:si(Sa,c)}}if(c instanceof lo&&!(_ instanceof Fa&&_.init===c)){var b=!(_ instanceof Ma||c instanceof uo),x=[],E=[],S=[],D=[];switch(c.definitions.forEach((t=>{t.value&&(t.value=t.value.transform(d));var r=t.name instanceof za,i=r?new tc(null,{name:"<destructure>"}):t.name.definition();if(b&&i.global)return S.push(t);if(!n&&!b||r&&(t.name.names.length||t.name.is_array||1!=e.option("pure_getters"))||a.has(i.id)){if(t.value&&o.has(i.id)&&o.get(i.id)!==t&&(t.value=t.value.drop_side_effect_free(e)),t.name instanceof Qo){var l=s.get(i.id);if(l.length>1&&(!t.value||i.orig.indexOf(t.name)>i.eliminated)){if(t.value){var u=si(_s,t.name,t.name);i.references.push(u);var p=si(Po,t,{operator:"=",logical:!1,left:u,right:t.value});o.get(i.id)===t&&o.set(i.id,p),D.push(p.transform(d))}return ui(l,t),void i.eliminated++}}t.value?(D.length>0&&(S.length>0?(D.push(t.value),t.value=Sc(t.value,D)):x.push(si(ya,c,{body:Sc(c,D)})),D=[]),S.push(t)):E.push(t)}else if(i.orig[0]instanceof ls)(_=t.value&&t.value.drop_side_effect_free(e))&&D.push(_),t.value=null,E.push(t);else{var _;(_=t.value&&t.value.drop_side_effect_free(e))&&D.push(_),i.eliminated++}})),(E.length>0||S.length>0)&&(c.definitions=E.concat(S),x.push(c)),D.length>0&&x.push(si(ya,c,{body:Sc(c,D)})),x.length){case 0:return p?oi.skip:si(Sa,c);case 1:return x[0];default:return p?oi.splice(x):si(Ea,c,{body:x})}}if(c instanceof wa)return u(c,this),c.init instanceof Ea&&(T=c.init,c.init=T.body.pop(),T.body.push(c)),c.init instanceof ya?c.init=c.init.body:Ac(c.init)&&(c.init=null),T?p?oi.splice(T.body):T:c;if(c instanceof Ta&&c.body instanceof wa){if(u(c,this),c.body instanceof Ea){var T=c.body;return c.body=T.body.pop(),T.body.push(c),p?oi.splice(T.body):T}return c}if(c instanceof Ea)return u(c,this),p&&c.body.every(Nc)?oi.splice(c.body):c;if(c instanceof Oa){const e=l;return l=c,u(c,this),l=e,c}}}));function p(e,r){var n;const s=i(e);if(s instanceof _s&&!bc(e.left,Zo)&&t.variables.get(s.name)===(n=s.definition()))return e instanceof Po&&(e.right.walk(u),n.chained||e.left.fixed_value()!==e.right||o.set(n.id,e)),!0;if(e instanceof _s){if(n=e.definition(),!a.has(n.id)&&(a.set(n.id,n),n.orig[0]instanceof ls)){const e=n.scope.is_block_scope()&&n.scope.get_defun_scope().variables.get(n.name);e&&a.set(e.id,e)}return!0}if(e instanceof Oa){var c=l;return l=e,r(),l=c,!0}}t.transform(d)})),Oa.DEFMETHOD("hoist_declarations",(function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var r=e.option("hoist_funs"),n=e.option("hoist_vars");if(r||n){var i=[],a=[],o=new Map,s=0,c=0;Is(t,(e=>e instanceof Oa&&e!==t||(e instanceof uo?(++c,!0):void 0))),n=n&&c>1;var l=new Ls((c=>{if(c!==t){if(c instanceof ha)return i.push(c),si(Sa,c);if(r&&c instanceof Va&&!(l.parent()instanceof yo)&&l.parent()===t)return a.push(c),si(Sa,c);if(n&&c instanceof uo&&!c.definitions.some((e=>e.name instanceof za))){c.definitions.forEach((e=>{o.set(e.name.name,e),++s}));var u=c.to_assignments(e),d=l.parent();if(d instanceof Fa&&d.init===c){if(null==u){var p=c.definitions[0].name;return si(_s,p,p)}return u}return d instanceof wa&&d.init===c?u:u?si(ya,c,{body:u}):si(Sa,c)}if(c instanceof Oa)return c}}));if(t=t.transform(l),s>0){var u=[];const e=t instanceof La,r=e?t.args_as_names():null;if(o.forEach(((t,n)=>{e&&r.some((e=>e.name===t.name.name))?o.delete(n):((t=t.clone()).value=null,u.push(t),o.set(n,t))})),u.length>0){for(;0<t.body.length;){if(t.body[0]instanceof ya){var d,p,_=t.body[0].body;if(_ instanceof Po&&"="==_.operator&&(d=_.left)instanceof qo&&o.has(d.name)){if((f=o.get(d.name)).value)break;f.value=_.right,ui(u,f),u.push(f),t.body.splice(0,1);continue}if(_ instanceof xo&&(p=_.expressions[0])instanceof Po&&"="==p.operator&&(d=p.left)instanceof qo&&o.has(d.name)){var f;if((f=o.get(d.name)).value)break;f.value=p.right,ui(u,f),u.push(f),t.body[0].body=Sc(_,_.expressions.slice(1));continue}}if(t.body[0]instanceof Sa)t.body.splice(0,1);else{if(!(t.body[0]instanceof Ea))break;t.body.splice(0,1,...t.body[0].body)}}u=si(uo,t,{definitions:u}),a.push(u)}}t.body=i.concat(a,t.body)}return t})),Oa.DEFMETHOD("hoist_properties",(function(e){var t=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return t;var r=t instanceof Ma&&e.top_retain||ri,n=new Map,i=new Ls((function(a,o){if(a instanceof lo&&i.parent()instanceof yo)return a;if(a instanceof fo){const s=a.name;let c,l;if(s.scope===t&&1!=(c=s.definition()).escaped&&!c.assignments&&!c.direct_access&&!c.single_use&&!e.exposed(c)&&!r(c)&&(l=s.fixed_value())===a.value&&l instanceof Mo&&!l.properties.some((e=>e instanceof Ra||e.computed_key()))){o(a,this);const e=new Map,r=[];return l.properties.forEach((({key:n,value:o})=>{const c=xc(i),l=t.create_symbol(s.CTOR,{source:s,scope:c,conflict_scopes:new Set([c,...s.definition().references.map((e=>e.scope))]),tentative_name:s.name+"_"+n});e.set(String(n),l.definition()),r.push(si(fo,a,{name:l,value:o}))})),n.set(c.id,e),oi.splice(r)}}else if(a instanceof Eo&&a.expression instanceof _s){const e=n.get(a.expression.definition().id);if(e){const t=e.get(String(Bc(a.property))),r=si(_s,a,{name:t.name,scope:a.expression.scope,thedef:t});return r.reference({}),r}}}));return t.transform(i)})),function(e){function t(e,t,r){var n=e.length;if(!n)return null;for(var i=[],a=!1,o=0;o<n;o++){var s=e[o].drop_side_effect_free(t,r);a|=s!==e[o],s&&(i.push(s),r=!1)}return a?i.length?i:null:e}e(fa,ii),e(vs,ai),e(hs,ai),e(vo,(function(e,r){if(this.optional&&pl(this.expression))return si(ks,this);if(!this.is_expr_pure(e)){if(this.expression.is_call_pure(e)){var n=this.args.slice();return n.unshift(this.expression.expression),(n=t(n,e,r))&&Sc(this,n)}if(yc(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var i=this.clone();return i.expression.process_expression(!1,e),i}return this}var a=t(this.args,e,r);return a&&Sc(this,a)})),e(Ba,ai),e(ja,ai),e(Ua,ai),e(Wo,(function(e){const t=[],r=this.extends&&this.extends.drop_side_effect_free(e);r&&t.push(r);for(const r of this.properties){const n=r.drop_side_effect_free(e);n&&t.push(n)}return t.length?Sc(this,t):null})),e(wo,(function(e,t){var r=this.right.drop_side_effect_free(e);if(!r)return this.left.drop_side_effect_free(e,t);if(Uc.has(this.operator)){if(r===this.right)return this;var n=this.clone();return n.right=r,n}var i=this.left.drop_side_effect_free(e,t);return i?Sc(this,[i,r]):this.right.drop_side_effect_free(e,t)})),e(Po,(function(e){if(this.logical)return this;var t=this.left;if(t.has_side_effects(e)||e.has_directive("use strict")&&t instanceof Eo&&t.expression.is_constant())return this;for(pc(this,32);t instanceof Eo;)t=t.expression;return t.is_constant_expression(e.find_parent(Oa))?this.right.drop_side_effect_free(e):this})),e(Fo,(function(e){var t=this.consequent.drop_side_effect_free(e),r=this.alternative.drop_side_effect_free(e);if(t===this.consequent&&r===this.alternative)return this;if(!t)return r?si(wo,this,{operator:"||",left:this.condition,right:r}):this.condition.drop_side_effect_free(e);if(!r)return si(wo,this,{operator:"&&",left:this.condition,right:t});var n=this.clone();return n.consequent=t,n.alternative=r,n})),e(ko,(function(e,t){if(Vc.has(this.operator))return this.expression.has_side_effects(e)?_c(this,32):pc(this,32),this;if("typeof"==this.operator&&this.expression instanceof _s)return null;var r=this.expression.drop_side_effect_free(e,t);return t&&r&&Fc(r)?r===this.expression&&"!"==this.operator?this:r.negate(e,t):r})),e(_s,(function(e){return this.is_declared(e)||Yc.has(this.name)?null:this})),e(Mo,(function(e,r){var n=t(this.properties,e,r);return n&&Sc(this,n)})),e(Ro,(function(e,t){const r=this instanceof Lo&&this.key instanceof fa&&this.key.drop_side_effect_free(e,t),n=this.value&&this.value.drop_side_effect_free(e,t);return r&&n?Sc(this,[r,n]):r||n})),e(Ho,(function(e){const t=this.computed_key()&&this.key.drop_side_effect_free(e),r=this.static&&this.value&&this.value.drop_side_effect_free(e);return t&&r?Sc(this,[t,r]):t||r||null})),e(zo,(function(){return this.computed_key()?this.key:null})),e(Vo,(function(){return this.computed_key()?this.key:null})),e(Uo,(function(){return this.computed_key()?this.key:null})),e(Oo,(function(e,r){var n=t(this.elements,e,r);return n&&Sc(this,n)})),e(So,(function(e,t){return this.optional?pl(this.expression)?si(ks,this):this:this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,t)})),e(To,(function(e,t){if(this.optional)return pl(this.expression)?si(ks,this):this;if(this.expression.may_throw_on_access(e))return this;var r=this.expression.drop_side_effect_free(e,t);if(!r)return this.property.drop_side_effect_free(e,t);var n=this.property.drop_side_effect_free(e);return n?Sc(this,[r,n]):r})),e(Co,(function(e,t){return this.expression.drop_side_effect_free(e,t)})),e(xo,(function(e){var t=this.tail_node(),r=t.drop_side_effect_free(e);if(r===t)return this;var n=this.expressions.slice(0,-1);return r&&n.push(r),n.length?Sc(this,n):si(xs,this,{value:0})})),e(Ra,(function(e,t){return this.expression.drop_side_effect_free(e,t)})),e(Ha,ai),e(Wa,(function(e){var r=t(this.segments,e,Ws);return r&&Sc(this,r)}))}(((e,t)=>{e.DEFMETHOD("drop_side_effect_free",t)})),mc(ya,((e,t)=>{if(t.option("side_effects")){var r=e.body,n=r.drop_side_effect_free(t,!0);if(!n)return si(Sa,e);if(n!==r)return si(ya,e,{body:n})}return e})),mc(Na,((e,t)=>t.option("loops")?si(wa,e,e).optimize(t):e)),mc(Aa,((e,t)=>{if(!t.option("loops"))return e;var r=e.condition.tail_node().evaluate(t);if(!(r instanceof fa)){if(r)return si(wa,e,{body:si(Ea,e.body,{body:[e.body,si(ya,e.condition,{body:e.condition})]})}).optimize(t);if(!rl(e,t.parent()))return si(Ea,e.body,{body:[e.body,si(ya,e.condition,{body:e.condition})]}).optimize(t)}return e})),mc(wa,((e,t)=>{if(!t.option("loops"))return e;if(t.option("side_effects")&&e.init&&(e.init=e.init.drop_side_effect_free(t)),e.condition){var r=e.condition.evaluate(t);if(!(r instanceof fa))if(r)e.condition=null;else if(!t.option("dead_code")){var n=e.condition;e.condition=Dc(r,e.condition),e.condition=Kc(e.condition.transform(t),n)}if(t.option("dead_code")&&(r instanceof fa&&(r=e.condition.tail_node().evaluate(t)),!r)){var i=[];return Lc(t,e.body,i),e.init instanceof ma?i.push(e.init):e.init&&i.push(si(ya,e.init,{body:e.init})),i.push(si(ya,e.condition,{body:e.condition})),si(Ea,e,{body:i}).optimize(t)}}return nl(e,t)})),mc(to,((e,t)=>{if(Ac(e.alternative)&&(e.alternative=null),!t.option("conditionals"))return e;var r=e.condition.evaluate(t);if(!(t.option("dead_code")||r instanceof fa)){var n=e.condition;e.condition=Dc(r,n),e.condition=Kc(e.condition.transform(t),n)}if(t.option("dead_code")){if(r instanceof fa&&(r=e.condition.tail_node().evaluate(t)),!r){var i=[];return Lc(t,e.body,i),i.push(si(ya,e.condition,{body:e.condition})),e.alternative&&i.push(e.alternative),si(Ea,e,{body:i}).optimize(t)}if(!(r instanceof fa))return(i=[]).push(si(ya,e.condition,{body:e.condition})),i.push(e.body),e.alternative&&Lc(t,e.alternative,i),si(Ea,e,{body:i}).optimize(t)}var a=e.condition.negate(t),o=e.condition.size(),s=a.size(),c=s<o;if(e.alternative&&c){c=!1,e.condition=a;var l=e.body;e.body=e.alternative||si(Sa,e),e.alternative=l}if(Ac(e.body)&&Ac(e.alternative))return si(ya,e.condition,{body:e.condition.clone()}).optimize(t);if(e.body instanceof ya&&e.alternative instanceof ya)return si(ya,e,{body:si(Fo,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(t);if(Ac(e.alternative)&&e.body instanceof ya)return o===s&&!c&&e.condition instanceof wo&&"||"==e.condition.operator&&(c=!0),c?si(ya,e,{body:si(wo,e,{operator:"||",left:a,right:e.body.body})}).optimize(t):si(ya,e,{body:si(wo,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(t);if(e.body instanceof Sa&&e.alternative instanceof ya)return si(ya,e,{body:si(wo,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(t);if(e.body instanceof $a&&e.alternative instanceof $a&&e.body.TYPE==e.alternative.TYPE)return si(e.body.CTOR,e,{value:si(Fo,e,{condition:e.condition,consequent:e.body.value||si(ks,e.body),alternative:e.alternative.value||si(ks,e.alternative)}).transform(t)}).optimize(t);if(e.body instanceof to&&!e.body.alternative&&!e.alternative&&(e=si(to,e,{condition:si(wo,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),Qc(e.body)&&e.alternative){var u=e.alternative;return e.alternative=null,si(Ea,e,{body:[e,u]}).optimize(t)}return Qc(e.alternative)?(i=e.body,e.body=e.alternative,e.condition=c?a:e.condition.negate(t),e.alternative=null,si(Ea,e,{body:[e,i]}).optimize(t)):e})),mc(ro,((e,t)=>{if(!t.option("switches"))return e;var r,n=e.expression.evaluate(t);if(!(n instanceof fa)){var i=e.expression;e.expression=Dc(n,i),e.expression=Kc(e.expression.transform(t),i)}if(!t.option("dead_code"))return e;n instanceof fa&&(n=e.expression.tail_node().evaluate(t));for(var a,o,s=[],c=[],l=0,u=e.body.length;l<u&&!o;l++){if((r=e.body[l])instanceof io)a?y(r,c[c.length-1]):a=r;else if(!(n instanceof fa)){if(!((g=r.expression.evaluate(t))instanceof fa)&&g!==n){y(r,c[c.length-1]);continue}if(g instanceof fa&&(g=r.expression.tail_node().evaluate(t)),g===n&&(o=r,a)){var d=c.indexOf(a);c.splice(d,1),y(a,c[d-1]),a=null}}if(Qc(r)){var p=c[c.length-1];Qc(p)&&p.body.length==r.body.length&&si(Ea,p,p).equivalent_to(si(Ea,r,r))&&(p.body=[])}c.push(r)}for(;l<u;)y(e.body[l++],c[c.length-1]);for(c.length>0&&(c[0].body=s.concat(c[0].body)),e.body=c;r=c[c.length-1];){var _=r.body[r.body.length-1];if(_ instanceof Ya&&t.loopcontrol_target(_)===e&&r.body.pop(),r.body.length||r instanceof ao&&(a||r.expression.has_side_effects(t)))break;c.pop()===a&&(a=null)}if(0==c.length)return si(Ea,e,{body:s.concat(si(ya,e.expression,{body:e.expression}))}).optimize(t);if(1==c.length&&(c[0]===o||c[0]===a)){var f=!1,m=new Rs((t=>{if(f||t instanceof La||t instanceof ya)return!0;t instanceof Ya&&m.loopcontrol_target(t)===e&&(f=!0)}));if(e.walk(m),!f){var g,h=c[0].body.slice();return(g=c[0].expression)&&h.unshift(si(ya,g,{body:g})),h.unshift(si(ya,e.expression,{body:e.expression})),si(Ea,e,{body:h}).optimize(t)}}return e;function y(e,r){r&&!Qc(r)?r.body=r.body.concat(e.body):Lc(t,e,s)}})),mc(oo,((e,t)=>{if(Rc(e.body,t),e.bcatch&&e.bfinally&&e.bfinally.body.every(Ac)&&(e.bfinally=null),t.option("dead_code")&&e.body.every(Ac)){var r=[];return e.bcatch&&Lc(t,e.bcatch,r),e.bfinally&&r.push(...e.bfinally.body),si(Ea,e,{body:r}).optimize(t)}return e})),lo.DEFMETHOD("remove_initializers",(function(){var e=[];this.definitions.forEach((t=>{t.name instanceof Yo?(t.value=null,e.push(t)):Is(t.name,(r=>{r instanceof Yo&&e.push(si(fo,t,{name:r,value:null}))}))})),this.definitions=e})),lo.DEFMETHOD("to_assignments",(function(e){var t=e.option("reduce_vars"),r=[];for(const e of this.definitions){if(e.value){var n=si(_s,e.name,e.name);r.push(si(Po,e,{operator:"=",logical:!1,left:n,right:e.value})),t&&(n.definition().fixed=!1)}else if(e.value){var i=si(fo,e,{name:e.name,value:e.value}),a=si(uo,e,{definitions:[i]});r.push(a)}const o=e.name.definition();o.eliminated++,o.replaced--}return 0==r.length?null:Sc(this,r)})),mc(lo,(e=>0==e.definitions.length?si(Sa,e):e)),mc(fo,(e=>(e.name instanceof ts&&null!=e.value&&jc(e.value)&&(e.value=null),e))),mc(go,(e=>e)),mc(vo,(function(e,t){var r=e.expression,n=r;ml(e.args);var i=e.args.every((e=>!(e instanceof Ra)));if(t.option("reduce_vars")&&n instanceof _s&&!vi(e,Us)){const e=n.fixed_value();il(e,t)||(n=e)}if(e.optional&&pl(n))return si(ks,e);var a=n instanceof La;if(a&&n.pinned())return e;if(t.option("unused")&&i&&a&&!n.uses_arguments){for(var o=0,s=0,c=0,l=e.args.length;c<l;c++){if(n.argnames[c]instanceof Ra){if(dc(n.argnames[c].expression,1))for(;c<l;)(f=e.args[c++].drop_side_effect_free(t))&&(e.args[o++]=f);else for(;c<l;)e.args[o++]=e.args[c++];s=o;break}var u=c>=n.argnames.length;if(u||dc(n.argnames[c],1)){if(f=e.args[c].drop_side_effect_free(t))e.args[o++]=f;else if(!u){e.args[o++]=si(xs,e.args[c],{value:0});continue}}else e.args[o++]=e.args[c];s=o}e.args.length=s}if(t.option("unsafe"))if(Pc(r))switch(r.name){case"Array":if(1!=e.args.length)return si(Oo,e,{elements:e.args}).optimize(t);if(e.args[0]instanceof xs&&e.args[0].value<=11){const t=[];for(let r=0;r<e.args[0].value;r++)t.push(new As);return new Oo({elements:t})}break;case"Object":if(0==e.args.length)return si(Mo,e,{properties:[]});break;case"String":if(0==e.args.length)return si(bs,e,{value:""});if(e.args.length<=1)return si(wo,e,{left:e.args[0],operator:"+",right:si(bs,e,{value:""})}).optimize(t);break;case"Number":if(0==e.args.length)return si(xs,e,{value:0});if(1==e.args.length&&t.option("unsafe_math"))return si(Ao,e,{expression:e.args[0],operator:"+"}).optimize(t);break;case"Symbol":1==e.args.length&&e.args[0]instanceof bs&&t.option("unsafe_symbols")&&(e.args.length=0);break;case"Boolean":if(0==e.args.length)return si(Fs,e);if(1==e.args.length)return si(Ao,e,{expression:si(Ao,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(t);break;case"RegExp":var d=[];if(e.args.length>=1&&e.args.length<=2&&e.args.every((e=>{var r=e.evaluate(t);return d.push(r),e!==r}))){let[r,n]=d;r=yi(new RegExp(r).source);const i=si(Ss,e,{value:{source:r,flags:n}});if(i._eval(t)!==i)return i}}else if(r instanceof So)switch(r.property){case"toString":if(0==e.args.length&&!r.expression.may_throw_on_access(t))return si(wo,e,{left:si(bs,e,{value:""}),operator:"+",right:r.expression}).optimize(t);break;case"join":if(r.expression instanceof Oo)e:{var p;if(!(e.args.length>0&&(p=e.args[0].evaluate(t))===e.args[0])){var _,f,m=[],g=[];for(c=0,l=r.expression.elements.length;c<l;c++){var h=r.expression.elements[c];if(h instanceof Ra)break e;var y=h.evaluate(t);y!==h?g.push(y):(g.length>0&&(m.push(si(bs,e,{value:g.join(p)})),g.length=0),m.push(h))}return g.length>0&&m.push(si(bs,e,{value:g.join(p)})),0==m.length?si(bs,e,{value:""}):1==m.length?m[0].is_string(t)?m[0]:si(wo,m[0],{operator:"+",left:si(bs,e,{value:""}),right:m[0]}):""==p?(_=m[0].is_string(t)||m[1].is_string(t)?m.shift():si(bs,e,{value:""}),m.reduce(((e,t)=>si(wo,t,{operator:"+",left:e,right:t})),_).optimize(t)):((f=e.clone()).expression=f.expression.clone(),f.expression.expression=f.expression.expression.clone(),f.expression.expression.elements=m,Hc(t,e,f))}}break;case"charAt":if(r.expression.is_string(t)){var v=e.args[0],b=v?v.evaluate(t):0;if(b!==v)return si(To,r,{expression:r.expression,property:Dc(0|b,v||r)}).optimize(t)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof Oo)return(I=e.args[1].elements.slice()).unshift(e.args[0]),si(vo,e,{expression:si(So,r,{expression:r.expression,optional:!1,property:"call"}),args:I}).optimize(t);break;case"call":var x=r.expression;if(x instanceof _s&&(x=x.fixed_value()),x instanceof La&&!x.contains_this())return(e.args.length?Sc(this,[e.args[0],si(vo,e,{expression:r.expression,args:e.args.slice(1)})]):si(vo,e,{expression:r.expression,args:[]})).optimize(t)}if(t.option("unsafe_Function")&&Pc(r)&&"Function"==r.name){if(0==e.args.length)return si(ja,e,{argnames:[],body:[]}).optimize(t);if(e.args.every((e=>e instanceof bs)))try{var E=la(C="n(function("+e.args.slice(0,-1).map((e=>e.value)).join(",")+"){"+e.args[e.args.length-1].value+"})"),S={ie8:t.option("ie8")};E.figure_out_scope(S);var D,T=new fc(t.options,{mangle_options:t.mangle_options});(E=E.transform(T)).figure_out_scope(S),ic.reset(),E.compute_char_frequency(S),E.mangle_names(S),Is(E,(e=>{if(yc(e))return D=e,Ms}));var C=qs();return Ea.prototype._codegen.call(D,D,C),e.args=[si(bs,e,{value:D.argnames.map((e=>e.print_to_string())).join(",")}),si(bs,e.args[e.args.length-1],{value:C.get().replace(/^{|}$/g,"")})],e}catch(e){if(!(e instanceof Qi))throw e}}var k=a&&n.body[0],A=a&&!n.is_generator&&!n.async,N=A&&t.option("inline")&&!e.is_expr_pure(t);if(N&&k instanceof Ga){let r=k.value;if(!r||r.is_constant_expression()){r=r?r.clone(!0):si(ks,e);const n=e.args.concat(r);return Sc(e,n).optimize(t)}if(1===n.argnames.length&&n.argnames[0]instanceof rs&&e.args.length<2&&r instanceof _s&&r.name===n.argnames[0].name){const r=(e.args[0]||si(ks)).optimize(t);let n;return r instanceof Eo&&(n=t.parent())instanceof vo&&n.expression===e?Sc(e,[si(xs,e,{value:0}),r]):r}}if(N){var w,F,P=-1;let a,o,s;if(i&&!n.uses_arguments&&!(t.parent()instanceof Wo)&&!(n.name&&n instanceof ja)&&(o=(e=>{var r=n.body,i=r.length;if(t.option("inline")<3)return 1==i&&M(e);e=null;for(var a=0;a<i;a++){var o=r[a];if(o instanceof uo){if(e&&!o.definitions.every((e=>!e.value)))return!1}else{if(e)return!1;o instanceof Sa||(e=o)}}return M(e)})(k))&&(r===n||vi(e,js)||t.option("unused")&&1==(a=r.definition()).references.length&&!ol(t,a)&&n.is_constant_expression(r.scope))&&!vi(e,Bs|Us)&&!n.contains_this()&&(()=>{var e=new Set;do{if((w=t.parent(++P)).is_block_scope()&&w.block_scope&&w.block_scope.variables.forEach((t=>{e.add(t.name)})),w instanceof so)w.argname&&e.add(w.argname.name);else if(w instanceof Ca)F=[];else if(w instanceof _s&&w.fixed_value()instanceof Oa)return!1}while(!(w instanceof Oa));var r=!(w instanceof Ma)||t.toplevel.vars,i=t.option("inline");return!(!((e,t)=>{for(var r=n.body.length,i=0;i<r;i++){var a=n.body[i];if(a instanceof uo){if(!t)return!1;for(var o=a.definitions.length;--o>=0;){var s=a.definitions[o].name;if(s instanceof za||e.has(s.name)||Oc.has(s.name)||w.conflicting_def(s.name))return!1;F&&F.push(s.definition())}}}return!0})(e,i>=3&&r)||!((e,t)=>{for(var r=0,i=n.argnames.length;r<i;r++){var a=n.argnames[r];if(a instanceof Io){if(dc(a.left,1))continue;return!1}if(a instanceof za)return!1;if(a instanceof Ra){if(dc(a.expression,1))continue;return!1}if(!dc(a,1)){if(!t||e.has(a.name)||Oc.has(a.name)||w.conflicting_def(a.name))return!1;F&&F.push(a.definition())}}return!0})(e,i>=2&&r)||F&&0!=F.length&&ll(n,F))})()&&(s=xc(t))&&!sl(s,n)&&!(()=>{let e,r=0;for(;e=t.parent(r++);){if(e instanceof Io)return!0;if(e instanceof xa)break}return!1})()&&!(w instanceof Wo))return pc(n,256),s.add_child_scope(n),Sc(e,(r=>{var i=[],a=[];if(((t,r)=>{for(var i=n.argnames.length,a=e.args.length;--a>=i;)r.push(e.args[a]);for(a=i;--a>=0;){var o=n.argnames[a],s=e.args[a];if(dc(o,1)||!o.name||w.conflicting_def(o.name))s&&r.push(s);else{var c=si(Qo,o,o);o.definition().orig.push(c),!s&&F&&(s=si(ks,e)),R(t,r,c,s)}}t.reverse(),r.reverse()})(i,a),((e,t)=>{for(var r=t.length,i=0,a=n.body.length;i<a;i++){var o=n.body[i];if(o instanceof uo)for(var s=0,c=o.definitions.length;s<c;s++){var l=o.definitions[s],u=l.name;if(R(e,t,u,l.value),F&&n.argnames.every((e=>e.name!=u.name))){var d=n.variables.get(u.name),p=si(_s,u,u);d.references.push(p),t.splice(r++,0,si(Po,l,{operator:"=",logical:!1,left:p,right:si(ks,u)}))}}}})(i,a),a.push(r),i.length){const e=w.body.indexOf(t.parent(P-1))+1;w.body.splice(e,0,si(uo,n,{definitions:i}))}return a.map((e=>e.clone(!0)))})(o)).optimize(t)}if(N&&vi(e,js))return pc(n,256),(n=si(n.CTOR===Va?ja:n.CTOR,n,n)).figure_out_scope({},{parent_scope:xc(t),toplevel:t.get_toplevel()}),si(vo,e,{expression:n,args:e.args}).optimize(t);if(A&&t.option("side_effects")&&n.body.every(Ac)){var I=e.args.concat(si(ks,e));return Sc(e,I).optimize(t)}if(t.option("negate_iife")&&t.parent()instanceof ya&&Fc(e))return e.negate(t,!0);var O=e.evaluate(t);return O!==e?(O=Dc(O,e).optimize(t),Hc(t,O,e)):e;function M(t){return t?t instanceof Ga?t.value?t.value.clone(!0):si(ks,e):t instanceof ya?si(Ao,t,{operator:"void",expression:t.body.clone(!0)}):void 0:si(ks,e)}function R(t,r,n,i){var a=n.definition();w.variables.has(n.name)||(w.variables.set(n.name,a),w.enclosed.push(a),t.push(si(fo,n,{name:n,value:null})));var o=si(_s,n,n);a.references.push(o),i&&r.push(si(Po,e,{operator:"=",logical:!1,left:o,right:i.clone()}))}})),mc(bo,((e,t)=>t.option("unsafe")&&Pc(e.expression)&&["Object","RegExp","Function","Error","Array"].includes(e.expression.name)?si(vo,e,e).transform(t):e)),mc(xo,((e,t)=>{if(!t.option("side_effects"))return e;var r,n,i=[];r=Ws(t),n=e.expressions.length-1,e.expressions.forEach(((e,a)=>{a<n&&(e=e.drop_side_effect_free(t,r)),e&&(Cc(i,e),r=!1)}));var a=i.length-1;return(()=>{for(;a>0&&jc(i[a],t);)a--;a<i.length-1&&(i[a]=si(Ao,e,{operator:"void",expression:i[a]}),i.length=a+1)})(),0==a?((e=Tc(t.parent(),t.self(),i[0]))instanceof xo||(e=e.optimize(t)),e):(e.expressions=i,e)})),ko.DEFMETHOD("lift_sequences",(function(e){if(e.option("sequences")&&this.expression instanceof xo){var t=this.expression.expressions.slice(),r=this.clone();return r.expression=t.pop(),t.push(r),Sc(this,t).optimize(e)}return this})),mc(No,((e,t)=>e.lift_sequences(t))),mc(Ao,((e,t)=>{var r=e.expression;if("delete"==e.operator&&!(r instanceof _s||r instanceof Eo||Mc(r))){if(r instanceof xo){const n=r.expressions.slice();return n.push(si(Ps,e)),Sc(e,n).optimize(t)}return Sc(e,[r,si(Ps,e)]).optimize(t)}var n=e.lift_sequences(t);if(n!==e)return n;if(t.option("side_effects")&&"void"==e.operator)return(r=r.drop_side_effect_free(t))?(e.expression=r,e):si(ks,e).optimize(t);if(t.in_boolean_context())switch(e.operator){case"!":if(r instanceof Ao&&"!"==r.operator)return r.expression;r instanceof wo&&(e=Hc(t,e,r.negate(t,Ws(t))));break;case"typeof":return(r instanceof _s?si(Ps,e):Sc(e,[r,si(Ps,e)])).optimize(t)}if("-"==e.operator&&r instanceof Ns&&(r=r.transform(t)),r instanceof wo&&("+"==e.operator||"-"==e.operator)&&("*"==r.operator||"/"==r.operator||"%"==r.operator))return si(wo,e,{operator:r.operator,left:si(Ao,r.left,{operator:e.operator,expression:r.left}),right:r.right});if("-"!=e.operator||!(r instanceof xs||r instanceof Ns||r instanceof Es)){var i=e.evaluate(t);if(i!==e)return Hc(t,i=Dc(i,e).optimize(t),e)}return e})),wo.DEFMETHOD("lift_sequences",(function(e){if(e.option("sequences")){if(this.left instanceof xo){var t=this.left.expressions.slice();return(r=this.clone()).left=t.pop(),t.push(r),Sc(this,t).optimize(e)}if(this.right instanceof xo&&!this.left.has_side_effects(e)){for(var r,n="="==this.operator&&this.left instanceof _s,i=(t=this.right.expressions).length-1,a=0;a<i&&(n||!t[a].has_side_effects(e));a++);if(a==i)return t=t.slice(),(r=this.clone()).right=t.pop(),t.push(r),Sc(this,t).optimize(e);if(a>0)return(r=this.clone()).right=Sc(this.right,t.slice(a)),(t=t.slice(0,a)).push(r),Sc(this,t).optimize(e)}}return this}));var al=pi("== === != !== * & | ^");function ol(e,t){for(var r,n=0;r=e.parent(n);n++)if(r instanceof La||r instanceof Wo){var i=r.name;if(i&&i.definition()===t)break}return r}function sl(e,t){for(const r of t.enclosed){if(t.variables.has(r.name))continue;const n=e.find_variable(r.name);if(n){if(n===r)continue;return!0}}return!1}function cl(e,t){return e instanceof _s||e.TYPE===t.TYPE}function ll(e,t){const r=e=>{if(e instanceof _s&&Qn(e.definition(),t))return Ms};return Os(e,((t,n)=>{if(t instanceof Oa&&t!==e){var i=n.parent();if(i instanceof vo&&i.expression===t)return;return!Is(t,r)||Ms}}))}mc(wo,((e,t)=>{function r(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function n(t){if(r()){t&&(e.operator=t);var n=e.left;e.left=e.right,e.right=n}}if(al.has(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof wo&&sa[e.left.operator]>=sa[e.operator]||n()),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":var i=!0;(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!i&&jc(e.left,t))e.left=si(Ts,e.left);else if(t.option("typeofs")&&e.left instanceof bs&&"undefined"==e.left.value&&e.right instanceof Ao&&"typeof"==e.right.operator){var a=e.right.expression;(a instanceof _s?!a.is_declared(t):a instanceof Eo&&t.option("ie8"))||(e.right=a,e.left=si(ks,e.left).optimize(t),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof _s&&e.right instanceof _s&&e.left.definition()===e.right.definition()&&(e=>e instanceof Oo||e instanceof La||e instanceof Mo||e instanceof Wo)(e.left.fixed_value()))return si("="==e.operator[0]?Ps:Fs,e);break;case"&&":case"||":var o=e.left;if(o.operator==e.operator&&(o=o.right),o instanceof wo&&o.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof wo&&o.operator==e.right.operator&&(jc(o.left,t)&&e.right.left instanceof Ts||o.left instanceof Ts&&jc(e.right.left,t))&&!o.right.has_side_effects(t)&&o.right.equivalent_to(e.right.right)){var s=si(wo,e,{operator:o.operator.slice(0,-1),left:si(Ts,e),right:o.right});return o!==e.left&&(s=si(wo,e,{operator:e.operator,left:e.left.left,right:s})),s}}if("+"==e.operator&&t.in_boolean_context()){var c=e.left.evaluate(t),l=e.right.evaluate(t);if(c&&"string"==typeof c)return Sc(e,[e.right,si(Ps,e)]).optimize(t);if(l&&"string"==typeof l)return Sc(e,[e.left,si(Ps,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof wo)||t.parent()instanceof Po){var u=si(Ao,e,{operator:"!",expression:e.negate(t,Ws(t))});e=Hc(t,e,u)}if(t.option("unsafe_comps"))switch(e.operator){case"<":n(">");break;case"<=":n(">=")}}if("+"==e.operator){if(e.right instanceof bs&&""==e.right.getValue()&&e.left.is_string(t))return e.left;if(e.left instanceof bs&&""==e.left.getValue()&&e.right.is_string(t))return e.right;if(e.left instanceof wo&&"+"==e.left.operator&&e.left.left instanceof bs&&""==e.left.left.getValue()&&e.right.is_string(t))return e.left=e.left.right,e}if(t.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!dc(e.left,2)||!dc(e.left,4)&&e.left.evaluate(t)))return Tc(t.parent(),t.self(),e.left).optimize(t);if(!(c instanceof fa))return Sc(e,[e.left,e.right]).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof fa)&&("&&"==(d=t.parent()).operator&&d.left===t.self()||t.in_boolean_context()))return e.left.optimize(t)}else{if(t.in_boolean_context())return Sc(e,[e.left,si(Fs,e)]).optimize(t);pc(e,4)}if("||"==e.left.operator&&!(p=e.left.right.evaluate(t)))return si(Fo,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t);break;case"||":var d,p;if(!(c=!!dc(e.left,2)||!dc(e.left,4)&&e.left.evaluate(t)))return Sc(e,[e.left,e.right]).optimize(t);if(!(c instanceof fa))return Tc(t.parent(),t.self(),e.left).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof fa)){if(t.in_boolean_context())return Sc(e,[e.left,si(Ps,e)]).optimize(t);pc(e,2)}}else if("||"==(d=t.parent()).operator&&d.left===t.self()||t.in_boolean_context())return e.left.optimize(t);if("&&"==e.left.operator&&(p=e.left.right.evaluate(t))&&!(p instanceof fa))return si(Fo,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t);break;case"??":if(pl(e.left))return e.right;if(!((c=e.left.evaluate(t))instanceof fa))return null==c?e.right:e.left;if(t.in_boolean_context()){const r=e.right.evaluate(t);if(!(r instanceof fa||r))return e.left}}var _=!0;switch(e.operator){case"+":if(e.right instanceof vs&&e.left instanceof wo&&"+"==e.left.operator&&e.left.is_string(t)){var f=(m=si(wo,e,{operator:"+",left:e.left.right,right:e.right})).optimize(t);m!==f&&(e=si(wo,e,{operator:"+",left:e.left.left,right:f}))}if(e.left instanceof wo&&"+"==e.left.operator&&e.left.is_string(t)&&e.right instanceof wo&&"+"==e.right.operator&&e.right.is_string(t)){var m,g=(m=si(wo,e,{operator:"+",left:e.left.right,right:e.right.left})).optimize(t);m!==g&&(e=si(wo,e,{operator:"+",left:si(wo,e.left,{operator:"+",left:e.left.left,right:g}),right:e.right.right}))}if(e.right instanceof Ao&&"-"==e.right.operator&&e.left.is_number(t)){e=si(wo,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Ao&&"-"==e.left.operator&&r()&&e.right.is_number(t)){e=si(wo,e,{operator:"-",left:e.right,right:e.left.expression});break}if(e.left instanceof Wa){var h=e.left;if((f=e.right.evaluate(t))!=e.right)return h.segments[h.segments.length-1].value+=String(f),h}if(e.right instanceof Wa&&(f=e.right,(h=e.left.evaluate(t))!=e.left))return f.segments[0].value=String(h)+f.segments[0].value,f;if(e.left instanceof Wa&&e.right instanceof Wa){var y=(h=e.left).segments;f=e.right,y[y.length-1].value+=f.segments[0].value;for(var v=1;v<f.segments.length;v++)y.push(f.segments[v]);return h}case"*":_=t.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(t)&&e.right.is_number(t)&&r()&&!(e.left instanceof wo&&e.left.operator!=e.operator&&sa[e.left.operator]>=sa[e.operator])){var b=si(wo,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof vs&&!(e.left instanceof vs)?Hc(t,b,e):Hc(t,e,b)}_&&e.is_number(t)&&(e.right instanceof wo&&e.right.operator==e.operator&&(e=si(wo,e,{operator:e.operator,left:si(wo,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof vs&&e.left instanceof wo&&e.left.operator==e.operator&&(e.left.left instanceof vs?e=si(wo,e,{operator:e.operator,left:si(wo,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof vs&&(e=si(wo,e,{operator:e.operator,left:si(wo,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof wo&&e.left.operator==e.operator&&e.left.right instanceof vs&&e.right instanceof wo&&e.right.operator==e.operator&&e.right.left instanceof vs&&(e=si(wo,e,{operator:e.operator,left:si(wo,e.left,{operator:e.operator,left:si(wo,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof wo&&e.right.operator==e.operator&&(Uc.has(e.operator)||"+"==e.operator&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=si(wo,e.left,{operator:e.operator,left:e.left.transform(t),right:e.right.left.transform(t)}),e.right=e.right.right.transform(t),e.transform(t);var x=e.evaluate(t);return x!==e?(x=Dc(x,e).optimize(t),Hc(t,x,e)):e})),mc(fs,(e=>e)),mc(_s,((e,t)=>{if(!t.option("ie8")&&Pc(e)&&!t.find_parent(Ia))switch(e.name){case"undefined":return si(ks,e).optimize(t);case"NaN":return si(Cs,e).optimize(t);case"Infinity":return si(Ns,e).optimize(t)}const r=t.parent();if(t.option("reduce_vars")&&zc(e,r)!==e){const a=e.definition(),o=xc(t);if(t.top_retain&&a.global&&t.top_retain(a))return a.fixed=!1,a.single_use=!1,e;let s=e.fixed_value(),c=a.single_use&&!(r instanceof vo&&r.is_expr_pure(t)||vi(r,Us))&&!(r instanceof yo&&s instanceof La&&s.name);if(c&&(s instanceof La||s instanceof Wo))if(il(s,t))c=!1;else if(a.scope!==e.scope&&(1==a.escaped||dc(s,16)||(e=>{for(var t,r=0;t=e.parent(r++);){if(t instanceof ma)return!1;if(t instanceof Oo||t instanceof Lo||t instanceof Mo)return!0}return!1})(t)))c=!1;else if(ol(t,a))c=!1;else if((a.scope!==e.scope||a.orig[0]instanceof rs)&&(c=s.is_constant_expression(e.scope),"f"==c)){var n=e.scope;do{(n instanceof Va||yc(n))&&pc(n,16)}while(n=n.parent_scope)}if(c&&s instanceof La&&(c=a.scope===e.scope&&!sl(o,s)||r instanceof vo&&r.expression===e&&!sl(o,s)&&!(s.name&&s.name.definition().recursive_refs>0)),c&&s instanceof Wo&&(c=!(s.extends&&(s.extends.may_throw(t)||s.extends.has_side_effects(t))||s.properties.some((e=>e.may_throw(t)||e.has_side_effects(t))))),c&&s){if(s instanceof $o&&(pc(s,256),s=si(Go,s,s)),s instanceof Va&&(pc(s,256),s=si(ja,s,s)),a.recursive_refs>0&&s.name instanceof ns){const e=s.name.definition();let t=s.variables.get(s.name.name),r=t&&t.orig[0];r instanceof os||(r=si(os,s.name,s.name),r.scope=s,s.name=r,t=s.def_function(r)),Is(s,(r=>{r instanceof _s&&r.definition()===e&&(r.thedef=t,t.references.push(r))}))}return(s instanceof La||s instanceof Wo)&&s.parent_scope!==o&&(s=s.clone(!0,t.get_toplevel()),o.add_child_scope(s)),s.optimize(t)}if(s){let r;if(s instanceof hs)a.orig[0]instanceof rs||!a.references.every((e=>a.scope===e.scope))||(r=s);else{var i=s.evaluate(t);i===s||!t.option("unsafe_regexp")&&i instanceof RegExp||(r=Dc(i,s))}if(r){const n=e.size(t),i=r.size(t);let o=0;if(t.option("unused")&&!t.exposed(a)&&(o=(n+2+i)/(a.references.length-a.assignments)),i<=n+o)return r}}}return e})),mc(ks,((e,t)=>{if(t.option("unsafe_undefined")){var r=Ec(t,"undefined");if(r){var n=si(_s,e,{name:"undefined",scope:r.scope,thedef:r});return pc(n,8),n}}var i=zc(t.self(),t.parent());return i&&cl(i,e)?e:si(Ao,e,{operator:"void",expression:si(xs,e,{value:0})})})),mc(Ns,((e,t)=>{var r=zc(t.self(),t.parent());return r&&cl(r,e)?e:!t.option("keep_infinity")||r&&!cl(r,e)||Ec(t,"Infinity")?si(wo,e,{operator:"/",left:si(xs,e,{value:1}),right:si(xs,e,{value:0})}):e})),mc(Cs,((e,t)=>{var r=zc(t.self(),t.parent());return r&&!cl(r,e)||Ec(t,"NaN")?si(wo,e,{operator:"/",left:si(xs,e,{value:0}),right:si(xs,e,{value:0})}):e}));const ul=pi("+ - / * % >> << >>> | ^ &"),dl=pi("* | ^ &");function pl(e){let t;return e instanceof Ts||jc(e)||e instanceof _s&&(t=e.definition().fixed)instanceof fa&&pl(t)||e instanceof Eo&&e.optional&&pl(e.expression)||e instanceof vo&&e.optional&&pl(e.expression)||e instanceof Co&&pl(e.expression)}function _l(e,t){return e instanceof _s&&(e=e.fixed_value()),!!e&&(!(e instanceof La||e instanceof Wo)||!(e instanceof La&&e.contains_this())||t.parent()instanceof bo)}function fl(e,t){return t.in_boolean_context()?Hc(t,e,Sc(e,[e,si(Ps,e)]).optimize(t)):e}function ml(e){for(var t=0;t<e.length;t++){var r=e[t];if(r instanceof Ra){var n=r.expression;n instanceof Oo&&!n.elements.some((e=>e instanceof As))&&(e.splice(t,1,...n.elements),t--)}}}function gl(e,t){if(!t.option("computed_props"))return e;if(!(e.key instanceof vs))return e;if(e.key instanceof bs||e.key instanceof xs){if("__proto__"===e.key.value)return e;if("constructor"==e.key.value&&t.parent()instanceof Wo)return e;e.key=e instanceof Lo?e.key.value:si(e instanceof Ho?as:is,e.key,{name:e.key.value})}return e}mc(Po,((e,t)=>{if(e.logical)return e.lift_sequences(t);var r;if(t.option("dead_code")&&e.left instanceof _s&&(r=e.left.definition()).scope===t.find_parent(La)){var n,i=0,a=e;do{if(n=a,(a=t.parent(i++))instanceof $a){if(o(i,a))break;if(ll(r.scope,[r]))break;return"="==e.operator?e.right:(r.fixed=!1,si(wo,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(t))}}while(a instanceof wo&&a.right===n||a instanceof xo&&a.tail_node()===n)}return"="==(e=e.lift_sequences(t)).operator&&e.left instanceof _s&&e.right instanceof wo&&(e.right.left instanceof _s&&e.right.left.name==e.left.name&&ul.has(e.right.operator)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof _s&&e.right.right.name==e.left.name&&dl.has(e.right.operator)&&!e.right.left.has_side_effects(t)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e;function o(r,n){var i=e.right;e.right=si(Ts,i);var a=n.may_throw(t);e.right=i;for(var o,s=e.left.definition().scope;(o=t.parent(r++))!==s;)if(o instanceof oo){if(o.bfinally)return!0;if(a&&o.bcatch)return!0}}})),mc(Io,((e,t)=>{if(!t.option("evaluate"))return e;var r=e.right.evaluate(t);return void 0===r?e=e.left:r!==e.right&&(r=Dc(r,e.right),e.right=Kc(r,e.right)),e})),mc(Fo,((e,t)=>{if(!t.option("conditionals"))return e;if(e.condition instanceof xo){var r=e.condition.expressions.slice();return e.condition=r.pop(),r.push(e),Sc(e,r)}var n=e.condition.evaluate(t);if(n!==e.condition)return Tc(t.parent(),t.self(),n?e.consequent:e.alternative);var i=n.negate(t,Ws(t));Hc(t,n,i)===i&&(e=si(Fo,e,{condition:i,consequent:e.alternative,alternative:e.consequent}));var a,o=e.condition,s=e.consequent,c=e.alternative;if(o instanceof _s&&s instanceof _s&&o.definition()===s.definition())return si(wo,e,{operator:"||",left:o,right:c});if(s instanceof Po&&c instanceof Po&&s.operator===c.operator&&s.logical===c.logical&&s.left.equivalent_to(c.left)&&(!e.condition.has_side_effects(t)||"="==s.operator&&!s.left.has_side_effects(t)))return si(Po,e,{operator:s.operator,left:s.left,logical:s.logical,right:si(Fo,e,{condition:e.condition,consequent:s.right,alternative:c.right})});if(s instanceof vo&&c.TYPE===s.TYPE&&s.args.length>0&&s.args.length==c.args.length&&s.expression.equivalent_to(c.expression)&&!e.condition.has_side_effects(t)&&!s.expression.has_side_effects(t)&&"number"==typeof(a=(()=>{for(var e=s.args,t=c.args,r=0,n=e.length;r<n;r++){if(e[r]instanceof Ra)return;if(!e[r].equivalent_to(t[r])){if(t[r]instanceof Ra)return;for(var i=r+1;i<n;i++){if(e[i]instanceof Ra)return;if(!e[i].equivalent_to(t[i]))return}return r}}})())){var l=s.clone();return l.args[a]=si(Fo,e,{condition:e.condition,consequent:s.args[a],alternative:c.args[a]}),l}if(c instanceof Fo&&s.equivalent_to(c.consequent))return si(Fo,e,{condition:si(wo,e,{operator:"||",left:o,right:c.condition}),consequent:s,alternative:c.alternative}).optimize(t);if(t.option("ecma")>=2020&&((e,t,r)=>{if(t.may_throw(r))return!1;let n;if(e instanceof wo&&"=="===e.operator&&((n=pl(e.left)&&e.left)||(n=pl(e.right)&&e.right))&&(n===e.left?e.right:e.left).equivalent_to(t))return!0;if(e instanceof wo&&"||"===e.operator){let r,n;const i=e=>{if(!(e instanceof wo)||"==="!==e.operator&&"=="!==e.operator)return!1;let i,a=0;return e.left instanceof Ts&&(a++,r=e,i=e.right),e.right instanceof Ts&&(a++,r=e,i=e.left),jc(e.left)&&(a++,n=e,i=e.right),jc(e.right)&&(a++,n=e,i=e.left),1===a&&!!i.equivalent_to(t)};if(!i(e.left))return!1;if(!i(e.right))return!1;if(r&&n&&r!==n)return!0}return!1})(o,c,t))return si(wo,e,{operator:"??",left:c,right:s}).optimize(t);if(c instanceof xo&&s.equivalent_to(c.expressions[c.expressions.length-1]))return Sc(e,[si(wo,e,{operator:"||",left:o,right:Sc(e,c.expressions.slice(0,-1))}),s]).optimize(t);if(c instanceof wo&&"&&"==c.operator&&s.equivalent_to(c.right))return si(wo,e,{operator:"&&",left:si(wo,e,{operator:"||",left:o,right:c.left}),right:s}).optimize(t);if(s instanceof Fo&&s.alternative.equivalent_to(c))return si(Fo,e,{condition:si(wo,e,{left:e.condition,operator:"&&",right:s.condition}),consequent:s.consequent,alternative:c});if(s.equivalent_to(c))return Sc(e,[e.condition,s]).optimize(t);if(s instanceof wo&&"||"==s.operator&&s.right.equivalent_to(c))return si(wo,e,{operator:"||",left:si(wo,e,{operator:"&&",left:e.condition,right:s.left}),right:c}).optimize(t);var u=t.in_boolean_context();return p(e.consequent)?_(e.alternative)?d(e.condition):si(wo,e,{operator:"||",left:d(e.condition),right:e.alternative}):_(e.consequent)?p(e.alternative)?d(e.condition.negate(t)):si(wo,e,{operator:"&&",left:d(e.condition.negate(t)),right:e.alternative}):p(e.alternative)?si(wo,e,{operator:"||",left:d(e.condition.negate(t)),right:e.consequent}):_(e.alternative)?si(wo,e,{operator:"&&",left:d(e.condition),right:e.consequent}):e;function d(e){return e.is_boolean()?e:si(Ao,e,{operator:"!",expression:e.negate(t)})}function p(e){return e instanceof Ps||u&&e instanceof vs&&e.getValue()||e instanceof Ao&&"!"==e.operator&&e.expression instanceof vs&&!e.expression.getValue()}function _(e){return e instanceof Fs||u&&e instanceof vs&&!e.getValue()||e instanceof Ao&&"!"==e.operator&&e.expression instanceof vs&&e.expression.getValue()}})),mc(ws,((e,t)=>{if(t.in_boolean_context())return si(xs,e,{value:+e.value});var r=t.parent();return t.option("booleans_as_integers")?(r instanceof wo&&("==="==r.operator||"!=="==r.operator)&&(r.operator=r.operator.replace(/=$/,"")),si(xs,e,{value:+e.value})):t.option("booleans")?r instanceof wo&&("=="==r.operator||"!="==r.operator)?si(xs,e,{value:+e.value}):si(Ao,e,{operator:"!",expression:si(xs,e,{value:1-e.value})}):e})),Eo.DEFMETHOD("flatten_object",(function(e,t){if(t.option("properties")){var r=t.option("unsafe_arrows")&&t.option("ecma")>=2015,n=this.expression;if(n instanceof Mo)for(var i=n.properties,a=i.length;--a>=0;){var o=i[a];if(""+(o instanceof zo?o.key.name:o.key)==e){if(!i.every((e=>e instanceof Lo||r&&e instanceof zo&&!e.is_generator)))break;if(!_l(o.value,t))break;return si(To,this,{expression:si(Oo,n,{elements:i.map((e=>{var t=e.value;t instanceof Ba&&(t=si(ja,t,t));var r=e.key;return r instanceof fa&&!(r instanceof is)?Sc(e,[r,t]):t}))}),property:si(xs,this,{value:a})})}}}})),mc(To,((e,t)=>{var r,n=e.expression,i=e.property;if(t.option("properties")){var a=i.evaluate(t);if(a!==i){"string"==typeof a&&("undefined"==a?a=void 0:(x=parseFloat(a)).toString()==a&&(a=x)),i=e.property=Kc(i,Dc(a,i).transform(t));var o=""+a;if(qi(o)&&o.length<=i.size()+1)return si(So,e,{expression:n,optional:e.optional,property:o,quote:i.quote}).optimize(t)}}e:if(t.option("arguments")&&n instanceof _s&&"arguments"==n.name&&1==n.definition().orig.length&&(r=n.scope)instanceof La&&r.uses_arguments&&!(r instanceof Ua)&&i instanceof xs){for(var s=i.getValue(),c=new Set,l=r.argnames,u=0;u<l.length;u++){if(!(l[u]instanceof rs))break e;var d=l[u].name;if(c.has(d))break e;c.add(d)}var p=r.argnames[s];if(p&&t.has_directive("use strict")){var _=p.definition();(!t.option("reduce_vars")||_.assignments||_.orig.length>1)&&(p=null)}else if(!p&&!t.option("keep_fargs")&&s<r.argnames.length+5)for(;s>=r.argnames.length;)p=r.create_symbol(rs,{source:r,scope:r,tentative_name:"argument_"+r.argnames.length}),r.argnames.push(p);if(p){var f=si(_s,e,p);return f.reference({}),_c(p,1),f}}if(zc(e,t.parent()))return e;if(a!==i){var m=e.flatten_object(o,t);m&&(n=e.expression=m.expression,i=e.property=m.property)}if(t.option("properties")&&t.option("side_effects")&&i instanceof xs&&n instanceof Oo){s=i.getValue();var g=n.elements,h=g[s];e:if(_l(h,t)){for(var y=!0,v=[],b=g.length;--b>s;)(x=g[b].drop_side_effect_free(t))&&(v.unshift(x),y&&x.has_side_effects(t)&&(y=!1));if(h instanceof Ra)break e;for(h=h instanceof As?si(ks,h):h,y||v.unshift(h);--b>=0;){var x;if((x=g[b])instanceof Ra)break e;(x=x.drop_side_effect_free(t))?v.unshift(x):s--}return y?(v.push(h),Sc(e,v).optimize(t)):si(To,e,{expression:si(Oo,n,{elements:v}),property:si(xs,i,{value:s})})}}var E=e.evaluate(t);return E!==e?Hc(t,E=Dc(E,e).optimize(t),e):e.optional&&pl(e.expression)?si(ks,e):e})),mc(Co,((e,t)=>(e.expression=e.expression.optimize(t),e))),La.DEFMETHOD("contains_this",(function(){return Is(this,(e=>e instanceof hs?Ms:e!==this&&e instanceof Oa&&!(e instanceof Ua)||void 0))})),mc(So,((e,t)=>{const r=t.parent();if(zc(e,r))return e;if(t.option("unsafe_proto")&&e.expression instanceof So&&"prototype"==e.expression.property){var n=e.expression.expression;if(Pc(n))switch(n.name){case"Array":e.expression=si(Oo,e.expression,{elements:[]});break;case"Function":e.expression=si(ja,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=si(xs,e.expression,{value:0});break;case"Object":e.expression=si(Mo,e.expression,{properties:[]});break;case"RegExp":e.expression=si(Ss,e.expression,{value:{source:"t",flags:""}});break;case"String":e.expression=si(bs,e.expression,{value:""})}}if(!(r instanceof vo&&vi(r,Us))){const r=e.flatten_object(e.property,t);if(r)return r.optimize(t)}let i=e.evaluate(t);return i!==e?(i=Dc(i,e).optimize(t),Hc(t,i,e)):e.optional&&pl(e.expression)?si(ks,e):e})),mc(Oo,((e,t)=>{var r=fl(e,t);return r!==e?r:(ml(e.elements),e)})),mc(Mo,((e,t)=>{var r=fl(e,t);return r!==e?r:((e=>{for(var t=0;t<e.length;t++){var r=e[t];if(r instanceof Ra){const n=r.expression;n instanceof Mo&&n.properties.every((e=>e instanceof Lo))?(e.splice(t,1,...n.properties),t--):n instanceof vs&&!(n instanceof bs)&&e.splice(t,1)}}})(e.properties),e)})),mc(Ss,fl),mc(Ga,((e,t)=>(e.value&&jc(e.value,t)&&(e.value=null),e))),mc(Ua,el),mc(ja,((e,t)=>(e=el(e,t),!(t.option("unsafe_arrows")&&t.option("ecma")>=2015)||e.name||e.is_generator||e.uses_arguments||e.pinned()||Is(e,(e=>{if(e instanceof hs)return Ms}))?e:si(Ua,e,e).optimize(t)))),mc(Wo,(e=>e)),mc(eo,((e,t)=>(e.expression&&!e.is_star&&jc(e.expression,t)&&(e.expression=null),e))),mc(Wa,((e,t)=>{if(!t.option("evaluate")||t.parent()instanceof Ka)return e;for(var r=[],n=0;n<e.segments.length;n++){var i=e.segments[n];if(i instanceof fa){var a=i.evaluate(t);if(a!==i&&(a+"").length<=i.size()+"${}".length){r[r.length-1].value=r[r.length-1].value+a+e.segments[++n].value;continue}if(i instanceof Wa){var o=i.segments;r[r.length-1].value+=o[0].value;for(var s=1;s<o.length;s++)i=o[s],r.push(i);continue}}r.push(i)}if(e.segments=r,1==r.length)return si(bs,e,r[0]);if(3===r.length&&r[1]instanceof fa&&(r[1].is_string(t)||r[1].is_number(t)||pl(r[1])||t.option("unsafe"))){if(""===r[2].value)return si(wo,e,{operator:"+",left:si(bs,e,{value:r[0].value}),right:r[1]});if(""===r[0].value)return si(wo,e,{operator:"+",left:r[1],right:si(bs,e,{value:r[2].value})})}return e})),mc(Ka,(e=>e)),mc(Ro,gl),mc(zo,((e,t)=>{if(gl(e,t),t.option("arrows")&&t.parent()instanceof Mo&&!e.is_generator&&!e.value.uses_arguments&&!e.value.pinned()&&1==e.value.body.length&&e.value.body[0]instanceof Ga&&e.value.body[0].value&&!e.value.contains_this()){var r=si(Ua,e.value,e.value);return r.async=e.async,r.is_generator=e.is_generator,si(Lo,e,{key:e.key instanceof is?e.key.name:e.key,value:r,quote:e.quote})}return e})),mc(Lo,((e,t)=>{gl(e,t);var r=t.option("unsafe_methods");if(r&&t.option("ecma")>=2015&&(!(r instanceof RegExp)||r.test(e.key+""))){var n=e.key,i=e.value;if((i instanceof Ua&&Array.isArray(i.body)&&!i.contains_this()||i instanceof ja)&&!i.name)return si(zo,e,{async:i.async,is_generator:i.is_generator,key:n instanceof fa?n:si(is,e,{name:n}),value:si(Ba,i,i),quote:e.quote})}return e})),mc(za,((e,t)=>{if(1==t.option("pure_getters")&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!(e=>{for(var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],r=0,n=0,i=t.length;r<i;n++){var a=e.parent(n);if(!a)return!1;if(0!==r||"Destructuring"!=a.TYPE){if(!t[r].test(a.TYPE))return!1;r++}}return!0})(t)&&!(e.names[e.names.length-1]instanceof Ra)){for(var r=[],n=0;n<e.names.length;n++){var i=e.names[n];i instanceof Lo&&"string"==typeof i.key&&i.value instanceof Yo&&!a(t,i.value.definition())||r.push(i)}r.length!=e.names.length&&(e.names=r)}return e;function a(e,t){return!!t.references.length||!!t.global&&(!e.toplevel.vars||!!e.top_retain&&e.top_retain(t))}}));var hl=["$&","$'","$*","$+","$1","$2","$3","$4","$5","$6","$7","$8","$9","$_","$`","$input","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-fill-mode","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-border-end","-moz-border-end-color","-moz-border-end-style","-moz-border-end-width","-moz-border-image","-moz-border-start","-moz-border-start-color","-moz-border-start-style","-moz-border-start-width","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-float-edge","-moz-font-feature-settings","-moz-font-language-override","-moz-force-broken-image-icon","-moz-hyphens","-moz-image-region","-moz-margin-end","-moz-margin-start","-moz-orient","-moz-osx-font-smoothing","-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-padding-end","-moz-padding-start","-moz-perspective","-moz-perspective-origin","-moz-tab-size","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transform-style","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-input","-moz-user-modify","-moz-user-select","-moz-window-dragging","-webkit-align-content","-webkit-align-items","-webkit-align-self","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-origin","-webkit-background-size","-webkit-border-bottom-left-radius","-webkit-border-bottom-right-radius","-webkit-border-image","-webkit-border-radius","-webkit-border-top-left-radius","-webkit-border-top-right-radius","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-shadow","-webkit-box-sizing","-webkit-filter","-webkit-flex","-webkit-flex-basis","-webkit-flex-direction","-webkit-flex-flow","-webkit-flex-grow","-webkit-flex-shrink","-webkit-flex-wrap","-webkit-justify-content","-webkit-line-clamp","-webkit-mask","-webkit-mask-clip","-webkit-mask-composite","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-position","-webkit-mask-position-x","-webkit-mask-position-y","-webkit-mask-repeat","-webkit-mask-size","-webkit-order","-webkit-perspective","-webkit-perspective-origin","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-transform","-webkit-transform-origin","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-select","0","1","10","11","12","13","14","15","16","17","18","19","2","20","3","4","5","6","7","8","9","@@iterator","ABORT_ERR","ACTIVE","ACTIVE_ATTRIBUTES","ACTIVE_TEXTURE","ACTIVE_UNIFORMS","ACTIVE_UNIFORM_BLOCKS","ADDITION","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALLOW_KEYBOARD_INPUT","ALLPASS","ALPHA","ALPHA_BITS","ALREADY_SIGNALED","ALT_MASK","ALWAYS","ANY_SAMPLES_PASSED","ANY_SAMPLES_PASSED_CONSERVATIVE","ANY_TYPE","ANY_UNORDERED_NODE_TYPE","ARRAY_BUFFER","ARRAY_BUFFER_BINDING","ATTACHED_SHADERS","ATTRIBUTE_NODE","AT_TARGET","AbortController","AbortSignal","AbsoluteOrientationSensor","AbstractRange","Accelerometer","AddSearchProvider","AggregateError","AnalyserNode","Animation","AnimationEffect","AnimationEvent","AnimationPlaybackEvent","AnimationTimeline","AnonXMLHttpRequest","Any","ApplicationCache","ApplicationCacheErrorEvent","Array","ArrayBuffer","ArrayType","Atomics","Attr","Audio","AudioBuffer","AudioBufferSourceNode","AudioContext","AudioDestinationNode","AudioListener","AudioNode","AudioParam","AudioParamMap","AudioProcessingEvent","AudioScheduledSourceNode","AudioStreamTrack","AudioWorklet","AudioWorkletNode","AuthenticatorAssertionResponse","AuthenticatorAttestationResponse","AuthenticatorResponse","AutocompleteErrorEvent","BACK","BAD_BOUNDARYPOINTS_ERR","BAD_REQUEST","BANDPASS","BLEND","BLEND_COLOR","BLEND_DST_ALPHA","BLEND_DST_RGB","BLEND_EQUATION","BLEND_EQUATION_ALPHA","BLEND_EQUATION_RGB","BLEND_SRC_ALPHA","BLEND_SRC_RGB","BLUE_BITS","BLUR","BOOL","BOOLEAN_TYPE","BOOL_VEC2","BOOL_VEC3","BOOL_VEC4","BOTH","BROWSER_DEFAULT_WEBGL","BUBBLING_PHASE","BUFFER_SIZE","BUFFER_USAGE","BYTE","BYTES_PER_ELEMENT","BackgroundFetchManager","BackgroundFetchRecord","BackgroundFetchRegistration","BarProp","BarcodeDetector","BaseAudioContext","BaseHref","BatteryManager","BeforeInstallPromptEvent","BeforeLoadEvent","BeforeUnloadEvent","BigInt","BigInt64Array","BigUint64Array","BiquadFilterNode","Blob","BlobEvent","Bluetooth","BluetoothCharacteristicProperties","BluetoothDevice","BluetoothRemoteGATTCharacteristic","BluetoothRemoteGATTDescriptor","BluetoothRemoteGATTServer","BluetoothRemoteGATTService","BluetoothUUID","Boolean","BroadcastChannel","ByteLengthQueuingStrategy","CAPTURING_PHASE","CCW","CDATASection","CDATA_SECTION_NODE","CHANGE","CHARSET_RULE","CHECKING","CLAMP_TO_EDGE","CLICK","CLOSED","CLOSING","COLOR","COLOR_ATTACHMENT0","COLOR_ATTACHMENT1","COLOR_ATTACHMENT10","COLOR_ATTACHMENT11","COLOR_ATTACHMENT12","COLOR_ATTACHMENT13","COLOR_ATTACHMENT14","COLOR_ATTACHMENT15","COLOR_ATTACHMENT2","COLOR_ATTACHMENT3","COLOR_ATTACHMENT4","COLOR_ATTACHMENT5","COLOR_ATTACHMENT6","COLOR_ATTACHMENT7","COLOR_ATTACHMENT8","COLOR_ATTACHMENT9","COLOR_BUFFER_BIT","COLOR_CLEAR_VALUE","COLOR_WRITEMASK","COMMENT_NODE","COMPARE_REF_TO_TEXTURE","COMPILE_STATUS","COMPRESSED_RGBA_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT3_EXT","COMPRESSED_RGBA_S3TC_DXT5_EXT","COMPRESSED_RGB_S3TC_DXT1_EXT","COMPRESSED_TEXTURE_FORMATS","CONDITION_SATISFIED","CONFIGURATION_UNSUPPORTED","CONNECTING","CONSTANT_ALPHA","CONSTANT_COLOR","CONSTRAINT_ERR","CONTEXT_LOST_WEBGL","CONTROL_MASK","COPY_READ_BUFFER","COPY_READ_BUFFER_BINDING","COPY_WRITE_BUFFER","COPY_WRITE_BUFFER_BINDING","COUNTER_STYLE_RULE","CSS","CSS2Properties","CSSAnimation","CSSCharsetRule","CSSConditionRule","CSSCounterStyleRule","CSSFontFaceRule","CSSFontFeatureValuesRule","CSSGroupingRule","CSSImageValue","CSSImportRule","CSSKeyframeRule","CSSKeyframesRule","CSSKeywordValue","CSSMathInvert","CSSMathMax","CSSMathMin","CSSMathNegate","CSSMathProduct","CSSMathSum","CSSMathValue","CSSMatrixComponent","CSSMediaRule","CSSMozDocumentRule","CSSNameSpaceRule","CSSNamespaceRule","CSSNumericArray","CSSNumericValue","CSSPageRule","CSSPerspective","CSSPositionValue","CSSPrimitiveValue","CSSRotate","CSSRule","CSSRuleList","CSSScale","CSSSkew","CSSSkewX","CSSSkewY","CSSStyleDeclaration","CSSStyleRule","CSSStyleSheet","CSSStyleValue","CSSSupportsRule","CSSTransformComponent","CSSTransformValue","CSSTransition","CSSTranslate","CSSUnitValue","CSSUnknownRule","CSSUnparsedValue","CSSValue","CSSValueList","CSSVariableReferenceValue","CSSVariablesDeclaration","CSSVariablesRule","CSSViewportRule","CSS_ATTR","CSS_CM","CSS_COUNTER","CSS_CUSTOM","CSS_DEG","CSS_DIMENSION","CSS_EMS","CSS_EXS","CSS_FILTER_BLUR","CSS_FILTER_BRIGHTNESS","CSS_FILTER_CONTRAST","CSS_FILTER_CUSTOM","CSS_FILTER_DROP_SHADOW","CSS_FILTER_GRAYSCALE","CSS_FILTER_HUE_ROTATE","CSS_FILTER_INVERT","CSS_FILTER_OPACITY","CSS_FILTER_REFERENCE","CSS_FILTER_SATURATE","CSS_FILTER_SEPIA","CSS_GRAD","CSS_HZ","CSS_IDENT","CSS_IN","CSS_INHERIT","CSS_KHZ","CSS_MATRIX","CSS_MATRIX3D","CSS_MM","CSS_MS","CSS_NUMBER","CSS_PC","CSS_PERCENTAGE","CSS_PERSPECTIVE","CSS_PRIMITIVE_VALUE","CSS_PT","CSS_PX","CSS_RAD","CSS_RECT","CSS_RGBCOLOR","CSS_ROTATE","CSS_ROTATE3D","CSS_ROTATEX","CSS_ROTATEY","CSS_ROTATEZ","CSS_S","CSS_SCALE","CSS_SCALE3D","CSS_SCALEX","CSS_SCALEY","CSS_SCALEZ","CSS_SKEW","CSS_SKEWX","CSS_SKEWY","CSS_STRING","CSS_TRANSLATE","CSS_TRANSLATE3D","CSS_TRANSLATEX","CSS_TRANSLATEY","CSS_TRANSLATEZ","CSS_UNKNOWN","CSS_URI","CSS_VALUE_LIST","CSS_VH","CSS_VMAX","CSS_VMIN","CSS_VW","CULL_FACE","CULL_FACE_MODE","CURRENT_PROGRAM","CURRENT_QUERY","CURRENT_VERTEX_ATTRIB","CUSTOM","CW","Cache","CacheStorage","CanvasCaptureMediaStream","CanvasCaptureMediaStreamTrack","CanvasGradient","CanvasPattern","CanvasRenderingContext2D","CaretPosition","ChannelMergerNode","ChannelSplitterNode","CharacterData","ClientRect","ClientRectList","Clipboard","ClipboardEvent","ClipboardItem","CloseEvent","Collator","CommandEvent","Comment","CompileError","CompositionEvent","CompressionStream","Console","ConstantSourceNode","Controllers","ConvolverNode","CountQueuingStrategy","Counter","Credential","CredentialsContainer","Crypto","CryptoKey","CustomElementRegistry","CustomEvent","DATABASE_ERR","DATA_CLONE_ERR","DATA_ERR","DBLCLICK","DECR","DECR_WRAP","DELETE_STATUS","DEPTH","DEPTH24_STENCIL8","DEPTH32F_STENCIL8","DEPTH_ATTACHMENT","DEPTH_BITS","DEPTH_BUFFER_BIT","DEPTH_CLEAR_VALUE","DEPTH_COMPONENT","DEPTH_COMPONENT16","DEPTH_COMPONENT24","DEPTH_COMPONENT32F","DEPTH_FUNC","DEPTH_RANGE","DEPTH_STENCIL","DEPTH_STENCIL_ATTACHMENT","DEPTH_TEST","DEPTH_WRITEMASK","DEVICE_INELIGIBLE","DIRECTION_DOWN","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DISABLED","DISPATCH_REQUEST_ERR","DITHER","DOCUMENT_FRAGMENT_NODE","DOCUMENT_NODE","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","DOCUMENT_POSITION_PRECEDING","DOCUMENT_TYPE_NODE","DOMCursor","DOMError","DOMException","DOMImplementation","DOMImplementationLS","DOMMatrix","DOMMatrixReadOnly","DOMParser","DOMPoint","DOMPointReadOnly","DOMQuad","DOMRect","DOMRectList","DOMRectReadOnly","DOMRequest","DOMSTRING_SIZE_ERR","DOMSettableTokenList","DOMStringList","DOMStringMap","DOMTokenList","DOMTransactionEvent","DOM_DELTA_LINE","DOM_DELTA_PAGE","DOM_DELTA_PIXEL","DOM_INPUT_METHOD_DROP","DOM_INPUT_METHOD_HANDWRITING","DOM_INPUT_METHOD_IME","DOM_INPUT_METHOD_KEYBOARD","DOM_INPUT_METHOD_MULTIMODAL","DOM_INPUT_METHOD_OPTION","DOM_INPUT_METHOD_PASTE","DOM_INPUT_METHOD_SCRIPT","DOM_INPUT_METHOD_UNKNOWN","DOM_INPUT_METHOD_VOICE","DOM_KEY_LOCATION_JOYSTICK","DOM_KEY_LOCATION_LEFT","DOM_KEY_LOCATION_MOBILE","DOM_KEY_LOCATION_NUMPAD","DOM_KEY_LOCATION_RIGHT","DOM_KEY_LOCATION_STANDARD","DOM_VK_0","DOM_VK_1","DOM_VK_2","DOM_VK_3","DOM_VK_4","DOM_VK_5","DOM_VK_6","DOM_VK_7","DOM_VK_8","DOM_VK_9","DOM_VK_A","DOM_VK_ACCEPT","DOM_VK_ADD","DOM_VK_ALT","DOM_VK_ALTGR","DOM_VK_AMPERSAND","DOM_VK_ASTERISK","DOM_VK_AT","DOM_VK_ATTN","DOM_VK_B","DOM_VK_BACKSPACE","DOM_VK_BACK_QUOTE","DOM_VK_BACK_SLASH","DOM_VK_BACK_SPACE","DOM_VK_C","DOM_VK_CANCEL","DOM_VK_CAPS_LOCK","DOM_VK_CIRCUMFLEX","DOM_VK_CLEAR","DOM_VK_CLOSE_BRACKET","DOM_VK_CLOSE_CURLY_BRACKET","DOM_VK_CLOSE_PAREN","DOM_VK_COLON","DOM_VK_COMMA","DOM_VK_CONTEXT_MENU","DOM_VK_CONTROL","DOM_VK_CONVERT","DOM_VK_CRSEL","DOM_VK_CTRL","DOM_VK_D","DOM_VK_DECIMAL","DOM_VK_DELETE","DOM_VK_DIVIDE","DOM_VK_DOLLAR","DOM_VK_DOUBLE_QUOTE","DOM_VK_DOWN","DOM_VK_E","DOM_VK_EISU","DOM_VK_END","DOM_VK_ENTER","DOM_VK_EQUALS","DOM_VK_EREOF","DOM_VK_ESCAPE","DOM_VK_EXCLAMATION","DOM_VK_EXECUTE","DOM_VK_EXSEL","DOM_VK_F","DOM_VK_F1","DOM_VK_F10","DOM_VK_F11","DOM_VK_F12","DOM_VK_F13","DOM_VK_F14","DOM_VK_F15","DOM_VK_F16","DOM_VK_F17","DOM_VK_F18","DOM_VK_F19","DOM_VK_F2","DOM_VK_F20","DOM_VK_F21","DOM_VK_F22","DOM_VK_F23","DOM_VK_F24","DOM_VK_F25","DOM_VK_F26","DOM_VK_F27","DOM_VK_F28","DOM_VK_F29","DOM_VK_F3","DOM_VK_F30","DOM_VK_F31","DOM_VK_F32","DOM_VK_F33","DOM_VK_F34","DOM_VK_F35","DOM_VK_F36","DOM_VK_F4","DOM_VK_F5","DOM_VK_F6","DOM_VK_F7","DOM_VK_F8","DOM_VK_F9","DOM_VK_FINAL","DOM_VK_FRONT","DOM_VK_G","DOM_VK_GREATER_THAN","DOM_VK_H","DOM_VK_HANGUL","DOM_VK_HANJA","DOM_VK_HASH","DOM_VK_HELP","DOM_VK_HK_TOGGLE","DOM_VK_HOME","DOM_VK_HYPHEN_MINUS","DOM_VK_I","DOM_VK_INSERT","DOM_VK_J","DOM_VK_JUNJA","DOM_VK_K","DOM_VK_KANA","DOM_VK_KANJI","DOM_VK_L","DOM_VK_LEFT","DOM_VK_LEFT_TAB","DOM_VK_LESS_THAN","DOM_VK_M","DOM_VK_META","DOM_VK_MODECHANGE","DOM_VK_MULTIPLY","DOM_VK_N","DOM_VK_NONCONVERT","DOM_VK_NUMPAD0","DOM_VK_NUMPAD1","DOM_VK_NUMPAD2","DOM_VK_NUMPAD3","DOM_VK_NUMPAD4","DOM_VK_NUMPAD5","DOM_VK_NUMPAD6","DOM_VK_NUMPAD7","DOM_VK_NUMPAD8","DOM_VK_NUMPAD9","DOM_VK_NUM_LOCK","DOM_VK_O","DOM_VK_OEM_1","DOM_VK_OEM_102","DOM_VK_OEM_2","DOM_VK_OEM_3","DOM_VK_OEM_4","DOM_VK_OEM_5","DOM_VK_OEM_6","DOM_VK_OEM_7","DOM_VK_OEM_8","DOM_VK_OEM_COMMA","DOM_VK_OEM_MINUS","DOM_VK_OEM_PERIOD","DOM_VK_OEM_PLUS","DOM_VK_OPEN_BRACKET","DOM_VK_OPEN_CURLY_BRACKET","DOM_VK_OPEN_PAREN","DOM_VK_P","DOM_VK_PA1","DOM_VK_PAGEDOWN","DOM_VK_PAGEUP","DOM_VK_PAGE_DOWN","DOM_VK_PAGE_UP","DOM_VK_PAUSE","DOM_VK_PERCENT","DOM_VK_PERIOD","DOM_VK_PIPE","DOM_VK_PLAY","DOM_VK_PLUS","DOM_VK_PRINT","DOM_VK_PRINTSCREEN","DOM_VK_PROCESSKEY","DOM_VK_PROPERITES","DOM_VK_Q","DOM_VK_QUESTION_MARK","DOM_VK_QUOTE","DOM_VK_R","DOM_VK_REDO","DOM_VK_RETURN","DOM_VK_RIGHT","DOM_VK_S","DOM_VK_SCROLL_LOCK","DOM_VK_SELECT","DOM_VK_SEMICOLON","DOM_VK_SEPARATOR","DOM_VK_SHIFT","DOM_VK_SLASH","DOM_VK_SLEEP","DOM_VK_SPACE","DOM_VK_SUBTRACT","DOM_VK_T","DOM_VK_TAB","DOM_VK_TILDE","DOM_VK_U","DOM_VK_UNDERSCORE","DOM_VK_UNDO","DOM_VK_UNICODE","DOM_VK_UP","DOM_VK_V","DOM_VK_VOLUME_DOWN","DOM_VK_VOLUME_MUTE","DOM_VK_VOLUME_UP","DOM_VK_W","DOM_VK_WIN","DOM_VK_WINDOW","DOM_VK_WIN_ICO_00","DOM_VK_WIN_ICO_CLEAR","DOM_VK_WIN_ICO_HELP","DOM_VK_WIN_OEM_ATTN","DOM_VK_WIN_OEM_AUTO","DOM_VK_WIN_OEM_BACKTAB","DOM_VK_WIN_OEM_CLEAR","DOM_VK_WIN_OEM_COPY","DOM_VK_WIN_OEM_CUSEL","DOM_VK_WIN_OEM_ENLW","DOM_VK_WIN_OEM_FINISH","DOM_VK_WIN_OEM_FJ_JISHO","DOM_VK_WIN_OEM_FJ_LOYA","DOM_VK_WIN_OEM_FJ_MASSHOU","DOM_VK_WIN_OEM_FJ_ROYA","DOM_VK_WIN_OEM_FJ_TOUROKU","DOM_VK_WIN_OEM_JUMP","DOM_VK_WIN_OEM_PA1","DOM_VK_WIN_OEM_PA2","DOM_VK_WIN_OEM_PA3","DOM_VK_WIN_OEM_RESET","DOM_VK_WIN_OEM_WSCTRL","DOM_VK_X","DOM_VK_XF86XK_ADD_FAVORITE","DOM_VK_XF86XK_APPLICATION_LEFT","DOM_VK_XF86XK_APPLICATION_RIGHT","DOM_VK_XF86XK_AUDIO_CYCLE_TRACK","DOM_VK_XF86XK_AUDIO_FORWARD","DOM_VK_XF86XK_AUDIO_LOWER_VOLUME","DOM_VK_XF86XK_AUDIO_MEDIA","DOM_VK_XF86XK_AUDIO_MUTE","DOM_VK_XF86XK_AUDIO_NEXT","DOM_VK_XF86XK_AUDIO_PAUSE","DOM_VK_XF86XK_AUDIO_PLAY","DOM_VK_XF86XK_AUDIO_PREV","DOM_VK_XF86XK_AUDIO_RAISE_VOLUME","DOM_VK_XF86XK_AUDIO_RANDOM_PLAY","DOM_VK_XF86XK_AUDIO_RECORD","DOM_VK_XF86XK_AUDIO_REPEAT","DOM_VK_XF86XK_AUDIO_REWIND","DOM_VK_XF86XK_AUDIO_STOP","DOM_VK_XF86XK_AWAY","DOM_VK_XF86XK_BACK","DOM_VK_XF86XK_BACK_FORWARD","DOM_VK_XF86XK_BATTERY","DOM_VK_XF86XK_BLUE","DOM_VK_XF86XK_BLUETOOTH","DOM_VK_XF86XK_BOOK","DOM_VK_XF86XK_BRIGHTNESS_ADJUST","DOM_VK_XF86XK_CALCULATOR","DOM_VK_XF86XK_CALENDAR","DOM_VK_XF86XK_CD","DOM_VK_XF86XK_CLOSE","DOM_VK_XF86XK_COMMUNITY","DOM_VK_XF86XK_CONTRAST_ADJUST","DOM_VK_XF86XK_COPY","DOM_VK_XF86XK_CUT","DOM_VK_XF86XK_CYCLE_ANGLE","DOM_VK_XF86XK_DISPLAY","DOM_VK_XF86XK_DOCUMENTS","DOM_VK_XF86XK_DOS","DOM_VK_XF86XK_EJECT","DOM_VK_XF86XK_EXCEL","DOM_VK_XF86XK_EXPLORER","DOM_VK_XF86XK_FAVORITES","DOM_VK_XF86XK_FINANCE","DOM_VK_XF86XK_FORWARD","DOM_VK_XF86XK_FRAME_BACK","DOM_VK_XF86XK_FRAME_FORWARD","DOM_VK_XF86XK_GAME","DOM_VK_XF86XK_GO","DOM_VK_XF86XK_GREEN","DOM_VK_XF86XK_HIBERNATE","DOM_VK_XF86XK_HISTORY","DOM_VK_XF86XK_HOME_PAGE","DOM_VK_XF86XK_HOT_LINKS","DOM_VK_XF86XK_I_TOUCH","DOM_VK_XF86XK_KBD_BRIGHTNESS_DOWN","DOM_VK_XF86XK_KBD_BRIGHTNESS_UP","DOM_VK_XF86XK_KBD_LIGHT_ON_OFF","DOM_VK_XF86XK_LAUNCH0","DOM_VK_XF86XK_LAUNCH1","DOM_VK_XF86XK_LAUNCH2","DOM_VK_XF86XK_LAUNCH3","DOM_VK_XF86XK_LAUNCH4","DOM_VK_XF86XK_LAUNCH5","DOM_VK_XF86XK_LAUNCH6","DOM_VK_XF86XK_LAUNCH7","DOM_VK_XF86XK_LAUNCH8","DOM_VK_XF86XK_LAUNCH9","DOM_VK_XF86XK_LAUNCH_A","DOM_VK_XF86XK_LAUNCH_B","DOM_VK_XF86XK_LAUNCH_C","DOM_VK_XF86XK_LAUNCH_D","DOM_VK_XF86XK_LAUNCH_E","DOM_VK_XF86XK_LAUNCH_F","DOM_VK_XF86XK_LIGHT_BULB","DOM_VK_XF86XK_LOG_OFF","DOM_VK_XF86XK_MAIL","DOM_VK_XF86XK_MAIL_FORWARD","DOM_VK_XF86XK_MARKET","DOM_VK_XF86XK_MEETING","DOM_VK_XF86XK_MEMO","DOM_VK_XF86XK_MENU_KB","DOM_VK_XF86XK_MENU_PB","DOM_VK_XF86XK_MESSENGER","DOM_VK_XF86XK_MON_BRIGHTNESS_DOWN","DOM_VK_XF86XK_MON_BRIGHTNESS_UP","DOM_VK_XF86XK_MUSIC","DOM_VK_XF86XK_MY_COMPUTER","DOM_VK_XF86XK_MY_SITES","DOM_VK_XF86XK_NEW","DOM_VK_XF86XK_NEWS","DOM_VK_XF86XK_OFFICE_HOME","DOM_VK_XF86XK_OPEN","DOM_VK_XF86XK_OPEN_URL","DOM_VK_XF86XK_OPTION","DOM_VK_XF86XK_PASTE","DOM_VK_XF86XK_PHONE","DOM_VK_XF86XK_PICTURES","DOM_VK_XF86XK_POWER_DOWN","DOM_VK_XF86XK_POWER_OFF","DOM_VK_XF86XK_RED","DOM_VK_XF86XK_REFRESH","DOM_VK_XF86XK_RELOAD","DOM_VK_XF86XK_REPLY","DOM_VK_XF86XK_ROCKER_DOWN","DOM_VK_XF86XK_ROCKER_ENTER","DOM_VK_XF86XK_ROCKER_UP","DOM_VK_XF86XK_ROTATE_WINDOWS","DOM_VK_XF86XK_ROTATION_KB","DOM_VK_XF86XK_ROTATION_PB","DOM_VK_XF86XK_SAVE","DOM_VK_XF86XK_SCREEN_SAVER","DOM_VK_XF86XK_SCROLL_CLICK","DOM_VK_XF86XK_SCROLL_DOWN","DOM_VK_XF86XK_SCROLL_UP","DOM_VK_XF86XK_SEARCH","DOM_VK_XF86XK_SEND","DOM_VK_XF86XK_SHOP","DOM_VK_XF86XK_SPELL","DOM_VK_XF86XK_SPLIT_SCREEN","DOM_VK_XF86XK_STANDBY","DOM_VK_XF86XK_START","DOM_VK_XF86XK_STOP","DOM_VK_XF86XK_SUBTITLE","DOM_VK_XF86XK_SUPPORT","DOM_VK_XF86XK_SUSPEND","DOM_VK_XF86XK_TASK_PANE","DOM_VK_XF86XK_TERMINAL","DOM_VK_XF86XK_TIME","DOM_VK_XF86XK_TOOLS","DOM_VK_XF86XK_TOP_MENU","DOM_VK_XF86XK_TO_DO_LIST","DOM_VK_XF86XK_TRAVEL","DOM_VK_XF86XK_USER1KB","DOM_VK_XF86XK_USER2KB","DOM_VK_XF86XK_USER_PB","DOM_VK_XF86XK_UWB","DOM_VK_XF86XK_VENDOR_HOME","DOM_VK_XF86XK_VIDEO","DOM_VK_XF86XK_VIEW","DOM_VK_XF86XK_WAKE_UP","DOM_VK_XF86XK_WEB_CAM","DOM_VK_XF86XK_WHEEL_BUTTON","DOM_VK_XF86XK_WLAN","DOM_VK_XF86XK_WORD","DOM_VK_XF86XK_WWW","DOM_VK_XF86XK_XFER","DOM_VK_XF86XK_YELLOW","DOM_VK_XF86XK_ZOOM_IN","DOM_VK_XF86XK_ZOOM_OUT","DOM_VK_Y","DOM_VK_Z","DOM_VK_ZOOM","DONE","DONT_CARE","DOWNLOADING","DRAGDROP","DRAW_BUFFER0","DRAW_BUFFER1","DRAW_BUFFER10","DRAW_BUFFER11","DRAW_BUFFER12","DRAW_BUFFER13","DRAW_BUFFER14","DRAW_BUFFER15","DRAW_BUFFER2","DRAW_BUFFER3","DRAW_BUFFER4","DRAW_BUFFER5","DRAW_BUFFER6","DRAW_BUFFER7","DRAW_BUFFER8","DRAW_BUFFER9","DRAW_FRAMEBUFFER","DRAW_FRAMEBUFFER_BINDING","DST_ALPHA","DST_COLOR","DYNAMIC_COPY","DYNAMIC_DRAW","DYNAMIC_READ","DataChannel","DataTransfer","DataTransferItem","DataTransferItemList","DataView","Date","DateTimeFormat","DecompressionStream","DelayNode","DeprecationReportBody","DesktopNotification","DesktopNotificationCenter","DeviceLightEvent","DeviceMotionEvent","DeviceMotionEventAcceleration","DeviceMotionEventRotationRate","DeviceOrientationEvent","DeviceProximityEvent","DeviceStorage","DeviceStorageChangeEvent","Directory","DisplayNames","Document","DocumentFragment","DocumentTimeline","DocumentType","DragEvent","DynamicsCompressorNode","E","ELEMENT_ARRAY_BUFFER","ELEMENT_ARRAY_BUFFER_BINDING","ELEMENT_NODE","EMPTY","ENCODING_ERR","ENDED","END_TO_END","END_TO_START","ENTITY_NODE","ENTITY_REFERENCE_NODE","EPSILON","EQUAL","EQUALPOWER","ERROR","EXPONENTIAL_DISTANCE","Element","ElementInternals","ElementQuery","EnterPictureInPictureEvent","Entity","EntityReference","Error","ErrorEvent","EvalError","Event","EventException","EventSource","EventTarget","External","FASTEST","FIDOSDK","FILTER_ACCEPT","FILTER_INTERRUPT","FILTER_REJECT","FILTER_SKIP","FINISHED_STATE","FIRST_ORDERED_NODE_TYPE","FLOAT","FLOAT_32_UNSIGNED_INT_24_8_REV","FLOAT_MAT2","FLOAT_MAT2x3","FLOAT_MAT2x4","FLOAT_MAT3","FLOAT_MAT3x2","FLOAT_MAT3x4","FLOAT_MAT4","FLOAT_MAT4x2","FLOAT_MAT4x3","FLOAT_VEC2","FLOAT_VEC3","FLOAT_VEC4","FOCUS","FONT_FACE_RULE","FONT_FEATURE_VALUES_RULE","FRAGMENT_SHADER","FRAGMENT_SHADER_DERIVATIVE_HINT","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","FRAMEBUFFER","FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE","FRAMEBUFFER_ATTACHMENT_BLUE_SIZE","FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING","FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE","FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE","FRAMEBUFFER_ATTACHMENT_GREEN_SIZE","FRAMEBUFFER_ATTACHMENT_OBJECT_NAME","FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE","FRAMEBUFFER_ATTACHMENT_RED_SIZE","FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE","FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE","FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER","FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL","FRAMEBUFFER_BINDING","FRAMEBUFFER_COMPLETE","FRAMEBUFFER_DEFAULT","FRAMEBUFFER_INCOMPLETE_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_DIMENSIONS","FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_MULTISAMPLE","FRAMEBUFFER_UNSUPPORTED","FRONT","FRONT_AND_BACK","FRONT_FACE","FUNC_ADD","FUNC_REVERSE_SUBTRACT","FUNC_SUBTRACT","FeaturePolicy","FeaturePolicyViolationReportBody","FederatedCredential","Feed","FeedEntry","File","FileError","FileList","FileReader","FileSystem","FileSystemDirectoryEntry","FileSystemDirectoryReader","FileSystemEntry","FileSystemFileEntry","FinalizationRegistry","FindInPage","Float32Array","Float64Array","FocusEvent","FontFace","FontFaceSet","FontFaceSetLoadEvent","FormData","FormDataEvent","FragmentDirective","Function","GENERATE_MIPMAP_HINT","GEQUAL","GREATER","GREEN_BITS","GainNode","Gamepad","GamepadAxisMoveEvent","GamepadButton","GamepadButtonEvent","GamepadEvent","GamepadHapticActuator","GamepadPose","Geolocation","GeolocationCoordinates","GeolocationPosition","GeolocationPositionError","GestureEvent","Global","Gyroscope","HALF_FLOAT","HAVE_CURRENT_DATA","HAVE_ENOUGH_DATA","HAVE_FUTURE_DATA","HAVE_METADATA","HAVE_NOTHING","HEADERS_RECEIVED","HIDDEN","HIERARCHY_REQUEST_ERR","HIGHPASS","HIGHSHELF","HIGH_FLOAT","HIGH_INT","HORIZONTAL","HORIZONTAL_AXIS","HRTF","HTMLAllCollection","HTMLAnchorElement","HTMLAppletElement","HTMLAreaElement","HTMLAudioElement","HTMLBRElement","HTMLBaseElement","HTMLBaseFontElement","HTMLBlockquoteElement","HTMLBodyElement","HTMLButtonElement","HTMLCanvasElement","HTMLCollection","HTMLCommandElement","HTMLContentElement","HTMLDListElement","HTMLDataElement","HTMLDataListElement","HTMLDetailsElement","HTMLDialogElement","HTMLDirectoryElement","HTMLDivElement","HTMLDocument","HTMLElement","HTMLEmbedElement","HTMLFieldSetElement","HTMLFontElement","HTMLFormControlsCollection","HTMLFormElement","HTMLFrameElement","HTMLFrameSetElement","HTMLHRElement","HTMLHeadElement","HTMLHeadingElement","HTMLHtmlElement","HTMLIFrameElement","HTMLImageElement","HTMLInputElement","HTMLIsIndexElement","HTMLKeygenElement","HTMLLIElement","HTMLLabelElement","HTMLLegendElement","HTMLLinkElement","HTMLMapElement","HTMLMarqueeElement","HTMLMediaElement","HTMLMenuElement","HTMLMenuItemElement","HTMLMetaElement","HTMLMeterElement","HTMLModElement","HTMLOListElement","HTMLObjectElement","HTMLOptGroupElement","HTMLOptionElement","HTMLOptionsCollection","HTMLOutputElement","HTMLParagraphElement","HTMLParamElement","HTMLPictureElement","HTMLPreElement","HTMLProgressElement","HTMLPropertiesCollection","HTMLQuoteElement","HTMLScriptElement","HTMLSelectElement","HTMLShadowElement","HTMLSlotElement","HTMLSourceElement","HTMLSpanElement","HTMLStyleElement","HTMLTableCaptionElement","HTMLTableCellElement","HTMLTableColElement","HTMLTableElement","HTMLTableRowElement","HTMLTableSectionElement","HTMLTemplateElement","HTMLTextAreaElement","HTMLTimeElement","HTMLTitleElement","HTMLTrackElement","HTMLUListElement","HTMLUnknownElement","HTMLVideoElement","HashChangeEvent","Headers","History","Hz","ICE_CHECKING","ICE_CLOSED","ICE_COMPLETED","ICE_CONNECTED","ICE_FAILED","ICE_GATHERING","ICE_WAITING","IDBCursor","IDBCursorWithValue","IDBDatabase","IDBDatabaseException","IDBFactory","IDBFileHandle","IDBFileRequest","IDBIndex","IDBKeyRange","IDBMutableFile","IDBObjectStore","IDBOpenDBRequest","IDBRequest","IDBTransaction","IDBVersionChangeEvent","IDLE","IIRFilterNode","IMPLEMENTATION_COLOR_READ_FORMAT","IMPLEMENTATION_COLOR_READ_TYPE","IMPORT_RULE","INCR","INCR_WRAP","INDEX_SIZE_ERR","INT","INTERLEAVED_ATTRIBS","INT_2_10_10_10_REV","INT_SAMPLER_2D","INT_SAMPLER_2D_ARRAY","INT_SAMPLER_3D","INT_SAMPLER_CUBE","INT_VEC2","INT_VEC3","INT_VEC4","INUSE_ATTRIBUTE_ERR","INVALID_ACCESS_ERR","INVALID_CHARACTER_ERR","INVALID_ENUM","INVALID_EXPRESSION_ERR","INVALID_FRAMEBUFFER_OPERATION","INVALID_INDEX","INVALID_MODIFICATION_ERR","INVALID_NODE_TYPE_ERR","INVALID_OPERATION","INVALID_STATE_ERR","INVALID_VALUE","INVERSE_DISTANCE","INVERT","IceCandidate","IdleDeadline","Image","ImageBitmap","ImageBitmapRenderingContext","ImageCapture","ImageData","Infinity","InputDeviceCapabilities","InputDeviceInfo","InputEvent","InputMethodContext","InstallTrigger","InstallTriggerImpl","Instance","Int16Array","Int32Array","Int8Array","Intent","InternalError","IntersectionObserver","IntersectionObserverEntry","Intl","IsSearchProviderInstalled","Iterator","JSON","KEEP","KEYDOWN","KEYFRAMES_RULE","KEYFRAME_RULE","KEYPRESS","KEYUP","KeyEvent","Keyboard","KeyboardEvent","KeyboardLayoutMap","KeyframeEffect","LENGTHADJUST_SPACING","LENGTHADJUST_SPACINGANDGLYPHS","LENGTHADJUST_UNKNOWN","LEQUAL","LESS","LINEAR","LINEAR_DISTANCE","LINEAR_MIPMAP_LINEAR","LINEAR_MIPMAP_NEAREST","LINES","LINE_LOOP","LINE_STRIP","LINE_WIDTH","LINK_STATUS","LIVE","LN10","LN2","LOADED","LOADING","LOG10E","LOG2E","LOWPASS","LOWSHELF","LOW_FLOAT","LOW_INT","LSException","LSParserFilter","LUMINANCE","LUMINANCE_ALPHA","LargestContentfulPaint","LayoutShift","LayoutShiftAttribution","LinearAccelerationSensor","LinkError","ListFormat","LocalMediaStream","Locale","Location","Lock","LockManager","MAX","MAX_3D_TEXTURE_SIZE","MAX_ARRAY_TEXTURE_LAYERS","MAX_CLIENT_WAIT_TIMEOUT_WEBGL","MAX_COLOR_ATTACHMENTS","MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_COMBINED_UNIFORM_BLOCKS","MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_DRAW_BUFFERS","MAX_ELEMENTS_INDICES","MAX_ELEMENTS_VERTICES","MAX_ELEMENT_INDEX","MAX_FRAGMENT_INPUT_COMPONENTS","MAX_FRAGMENT_UNIFORM_BLOCKS","MAX_FRAGMENT_UNIFORM_COMPONENTS","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_PROGRAM_TEXEL_OFFSET","MAX_RENDERBUFFER_SIZE","MAX_SAFE_INTEGER","MAX_SAMPLES","MAX_SERVER_WAIT_TIMEOUT","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_LOD_BIAS","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_TEXTURE_SIZE","MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS","MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS","MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS","MAX_UNIFORM_BLOCK_SIZE","MAX_UNIFORM_BUFFER_BINDINGS","MAX_VALUE","MAX_VARYING_COMPONENTS","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_OUTPUT_COMPONENTS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_BLOCKS","MAX_VERTEX_UNIFORM_COMPONENTS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","MEDIA_ERR_ABORTED","MEDIA_ERR_DECODE","MEDIA_ERR_ENCRYPTED","MEDIA_ERR_NETWORK","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_KEYERR_CLIENT","MEDIA_KEYERR_DOMAIN","MEDIA_KEYERR_HARDWARECHANGE","MEDIA_KEYERR_OUTPUT","MEDIA_KEYERR_SERVICE","MEDIA_KEYERR_UNKNOWN","MEDIA_RULE","MEDIUM_FLOAT","MEDIUM_INT","META_MASK","MIDIAccess","MIDIConnectionEvent","MIDIInput","MIDIInputMap","MIDIMessageEvent","MIDIOutput","MIDIOutputMap","MIDIPort","MIN","MIN_PROGRAM_TEXEL_OFFSET","MIN_SAFE_INTEGER","MIN_VALUE","MIRRORED_REPEAT","MODE_ASYNCHRONOUS","MODE_SYNCHRONOUS","MODIFICATION","MOUSEDOWN","MOUSEDRAG","MOUSEMOVE","MOUSEOUT","MOUSEOVER","MOUSEUP","MOZ_KEYFRAMES_RULE","MOZ_KEYFRAME_RULE","MOZ_SOURCE_CURSOR","MOZ_SOURCE_ERASER","MOZ_SOURCE_KEYBOARD","MOZ_SOURCE_MOUSE","MOZ_SOURCE_PEN","MOZ_SOURCE_TOUCH","MOZ_SOURCE_UNKNOWN","MSGESTURE_FLAG_BEGIN","MSGESTURE_FLAG_CANCEL","MSGESTURE_FLAG_END","MSGESTURE_FLAG_INERTIA","MSGESTURE_FLAG_NONE","MSPOINTER_TYPE_MOUSE","MSPOINTER_TYPE_PEN","MSPOINTER_TYPE_TOUCH","MS_ASYNC_CALLBACK_STATUS_ASSIGN_DELEGATE","MS_ASYNC_CALLBACK_STATUS_CANCEL","MS_ASYNC_CALLBACK_STATUS_CHOOSEANY","MS_ASYNC_CALLBACK_STATUS_ERROR","MS_ASYNC_CALLBACK_STATUS_JOIN","MS_ASYNC_OP_STATUS_CANCELED","MS_ASYNC_OP_STATUS_ERROR","MS_ASYNC_OP_STATUS_SUCCESS","MS_MANIPULATION_STATE_ACTIVE","MS_MANIPULATION_STATE_CANCELLED","MS_MANIPULATION_STATE_COMMITTED","MS_MANIPULATION_STATE_DRAGGING","MS_MANIPULATION_STATE_INERTIA","MS_MANIPULATION_STATE_PRESELECT","MS_MANIPULATION_STATE_SELECTING","MS_MANIPULATION_STATE_STOPPED","MS_MEDIA_ERR_ENCRYPTED","MS_MEDIA_KEYERR_CLIENT","MS_MEDIA_KEYERR_DOMAIN","MS_MEDIA_KEYERR_HARDWARECHANGE","MS_MEDIA_KEYERR_OUTPUT","MS_MEDIA_KEYERR_SERVICE","MS_MEDIA_KEYERR_UNKNOWN","Map","Math","MathMLElement","MediaCapabilities","MediaCapabilitiesInfo","MediaController","MediaDeviceInfo","MediaDevices","MediaElementAudioSourceNode","MediaEncryptedEvent","MediaError","MediaKeyError","MediaKeyEvent","MediaKeyMessageEvent","MediaKeyNeededEvent","MediaKeySession","MediaKeyStatusMap","MediaKeySystemAccess","MediaKeys","MediaList","MediaMetadata","MediaQueryList","MediaQueryListEvent","MediaRecorder","MediaRecorderErrorEvent","MediaSession","MediaSettingsRange","MediaSource","MediaStream","MediaStreamAudioDestinationNode","MediaStreamAudioSourceNode","MediaStreamEvent","MediaStreamTrack","MediaStreamTrackAudioSourceNode","MediaStreamTrackEvent","Memory","MessageChannel","MessageEvent","MessagePort","Methods","MimeType","MimeTypeArray","Module","MouseEvent","MouseScrollEvent","MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBackfaceVisibility","MozBinding","MozBorderBottomColors","MozBorderEnd","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStart","MozBorderStartColor","MozBorderStartStyle","MozBorderStartWidth","MozBorderTopColors","MozBoxAlign","MozBoxDirection","MozBoxFlex","MozBoxOrdinalGroup","MozBoxOrient","MozBoxPack","MozBoxSizing","MozCSSKeyframeRule","MozCSSKeyframesRule","MozColumnCount","MozColumnFill","MozColumnGap","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContactChangeEvent","MozFloatEdge","MozFontFeatureSettings","MozFontLanguageOverride","MozForceBrokenImageIcon","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozMmsEvent","MozMmsMessage","MozMobileMessageThread","MozOSXFontSmoothing","MozOrient","MozOsxFontSmoothing","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozPerspective","MozPerspectiveOrigin","MozPowerManager","MozSettingsEvent","MozSmsEvent","MozSmsMessage","MozStackSizing","MozTabSize","MozTextAlignLast","MozTextDecorationColor","MozTextDecorationLine","MozTextDecorationStyle","MozTextSizeAdjust","MozTransform","MozTransformOrigin","MozTransformStyle","MozTransition","MozTransitionDelay","MozTransitionDuration","MozTransitionProperty","MozTransitionTimingFunction","MozUserFocus","MozUserInput","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","MutationEvent","MutationObserver","MutationRecord","NAMESPACE_ERR","NAMESPACE_RULE","NEAREST","NEAREST_MIPMAP_LINEAR","NEAREST_MIPMAP_NEAREST","NEGATIVE_INFINITY","NETWORK_EMPTY","NETWORK_ERR","NETWORK_IDLE","NETWORK_LOADED","NETWORK_LOADING","NETWORK_NO_SOURCE","NEVER","NEW","NEXT","NEXT_NO_DUPLICATE","NICEST","NODE_AFTER","NODE_BEFORE","NODE_BEFORE_AND_AFTER","NODE_INSIDE","NONE","NON_TRANSIENT_ERR","NOTATION_NODE","NOTCH","NOTEQUAL","NOT_ALLOWED_ERR","NOT_FOUND_ERR","NOT_READABLE_ERR","NOT_SUPPORTED_ERR","NO_DATA_ALLOWED_ERR","NO_ERR","NO_ERROR","NO_MODIFICATION_ALLOWED_ERR","NUMBER_TYPE","NUM_COMPRESSED_TEXTURE_FORMATS","NaN","NamedNodeMap","NavigationPreloadManager","Navigator","NearbyLinks","NetworkInformation","Node","NodeFilter","NodeIterator","NodeList","Notation","Notification","NotifyPaintEvent","Number","NumberFormat","OBJECT_TYPE","OBSOLETE","OK","ONE","ONE_MINUS_CONSTANT_ALPHA","ONE_MINUS_CONSTANT_COLOR","ONE_MINUS_DST_ALPHA","ONE_MINUS_DST_COLOR","ONE_MINUS_SRC_ALPHA","ONE_MINUS_SRC_COLOR","OPEN","OPENED","OPENING","ORDERED_NODE_ITERATOR_TYPE","ORDERED_NODE_SNAPSHOT_TYPE","OTHER_ERROR","OUT_OF_MEMORY","Object","OfflineAudioCompletionEvent","OfflineAudioContext","OfflineResourceList","OffscreenCanvas","OffscreenCanvasRenderingContext2D","Option","OrientationSensor","OscillatorNode","OverconstrainedError","OverflowEvent","PACK_ALIGNMENT","PACK_ROW_LENGTH","PACK_SKIP_PIXELS","PACK_SKIP_ROWS","PAGE_RULE","PARSE_ERR","PATHSEG_ARC_ABS","PATHSEG_ARC_REL","PATHSEG_CLOSEPATH","PATHSEG_CURVETO_CUBIC_ABS","PATHSEG_CURVETO_CUBIC_REL","PATHSEG_CURVETO_CUBIC_SMOOTH_ABS","PATHSEG_CURVETO_CUBIC_SMOOTH_REL","PATHSEG_CURVETO_QUADRATIC_ABS","PATHSEG_CURVETO_QUADRATIC_REL","PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS","PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL","PATHSEG_LINETO_ABS","PATHSEG_LINETO_HORIZONTAL_ABS","PATHSEG_LINETO_HORIZONTAL_REL","PATHSEG_LINETO_REL","PATHSEG_LINETO_VERTICAL_ABS","PATHSEG_LINETO_VERTICAL_REL","PATHSEG_MOVETO_ABS","PATHSEG_MOVETO_REL","PATHSEG_UNKNOWN","PATH_EXISTS_ERR","PEAKING","PERMISSION_DENIED","PERSISTENT","PI","PIXEL_PACK_BUFFER","PIXEL_PACK_BUFFER_BINDING","PIXEL_UNPACK_BUFFER","PIXEL_UNPACK_BUFFER_BINDING","PLAYING_STATE","POINTS","POLYGON_OFFSET_FACTOR","POLYGON_OFFSET_FILL","POLYGON_OFFSET_UNITS","POSITION_UNAVAILABLE","POSITIVE_INFINITY","PREV","PREV_NO_DUPLICATE","PROCESSING_INSTRUCTION_NODE","PageChangeEvent","PageTransitionEvent","PaintRequest","PaintRequestList","PannerNode","PasswordCredential","Path2D","PaymentAddress","PaymentInstruments","PaymentManager","PaymentMethodChangeEvent","PaymentRequest","PaymentRequestUpdateEvent","PaymentResponse","Performance","PerformanceElementTiming","PerformanceEntry","PerformanceEventTiming","PerformanceLongTaskTiming","PerformanceMark","PerformanceMeasure","PerformanceNavigation","PerformanceNavigationTiming","PerformanceObserver","PerformanceObserverEntryList","PerformancePaintTiming","PerformanceResourceTiming","PerformanceServerTiming","PerformanceTiming","PeriodicSyncManager","PeriodicWave","PermissionStatus","Permissions","PhotoCapabilities","PictureInPictureWindow","Plugin","PluginArray","PluralRules","PointerEvent","PopStateEvent","PopupBlockedEvent","Presentation","PresentationAvailability","PresentationConnection","PresentationConnectionAvailableEvent","PresentationConnectionCloseEvent","PresentationConnectionList","PresentationReceiver","PresentationRequest","ProcessingInstruction","ProgressEvent","Promise","PromiseRejectionEvent","PropertyNodeList","Proxy","PublicKeyCredential","PushManager","PushSubscription","PushSubscriptionOptions","Q","QUERY_RESULT","QUERY_RESULT_AVAILABLE","QUOTA_ERR","QUOTA_EXCEEDED_ERR","QueryInterface","R11F_G11F_B10F","R16F","R16I","R16UI","R32F","R32I","R32UI","R8","R8I","R8UI","R8_SNORM","RASTERIZER_DISCARD","READ_BUFFER","READ_FRAMEBUFFER","READ_FRAMEBUFFER_BINDING","READ_ONLY","READ_ONLY_ERR","READ_WRITE","RED","RED_BITS","RED_INTEGER","REMOVAL","RENDERBUFFER","RENDERBUFFER_ALPHA_SIZE","RENDERBUFFER_BINDING","RENDERBUFFER_BLUE_SIZE","RENDERBUFFER_DEPTH_SIZE","RENDERBUFFER_GREEN_SIZE","RENDERBUFFER_HEIGHT","RENDERBUFFER_INTERNAL_FORMAT","RENDERBUFFER_RED_SIZE","RENDERBUFFER_SAMPLES","RENDERBUFFER_STENCIL_SIZE","RENDERBUFFER_WIDTH","RENDERER","RENDERING_INTENT_ABSOLUTE_COLORIMETRIC","RENDERING_INTENT_AUTO","RENDERING_INTENT_PERCEPTUAL","RENDERING_INTENT_RELATIVE_COLORIMETRIC","RENDERING_INTENT_SATURATION","RENDERING_INTENT_UNKNOWN","REPEAT","REPLACE","RG","RG16F","RG16I","RG16UI","RG32F","RG32I","RG32UI","RG8","RG8I","RG8UI","RG8_SNORM","RGB","RGB10_A2","RGB10_A2UI","RGB16F","RGB16I","RGB16UI","RGB32F","RGB32I","RGB32UI","RGB565","RGB5_A1","RGB8","RGB8I","RGB8UI","RGB8_SNORM","RGB9_E5","RGBA","RGBA16F","RGBA16I","RGBA16UI","RGBA32F","RGBA32I","RGBA32UI","RGBA4","RGBA8","RGBA8I","RGBA8UI","RGBA8_SNORM","RGBA_INTEGER","RGBColor","RGB_INTEGER","RG_INTEGER","ROTATION_CLOCKWISE","ROTATION_COUNTERCLOCKWISE","RTCCertificate","RTCDTMFSender","RTCDTMFToneChangeEvent","RTCDataChannel","RTCDataChannelEvent","RTCDtlsTransport","RTCError","RTCErrorEvent","RTCIceCandidate","RTCIceTransport","RTCPeerConnection","RTCPeerConnectionIceErrorEvent","RTCPeerConnectionIceEvent","RTCRtpReceiver","RTCRtpSender","RTCRtpTransceiver","RTCSctpTransport","RTCSessionDescription","RTCStatsReport","RTCTrackEvent","RadioNodeList","Range","RangeError","RangeException","ReadableStream","ReadableStreamDefaultReader","RecordErrorEvent","Rect","ReferenceError","Reflect","RegExp","RelativeOrientationSensor","RelativeTimeFormat","RemotePlayback","Report","ReportBody","ReportingObserver","Request","ResizeObserver","ResizeObserverEntry","ResizeObserverSize","Response","RuntimeError","SAMPLER_2D","SAMPLER_2D_ARRAY","SAMPLER_2D_ARRAY_SHADOW","SAMPLER_2D_SHADOW","SAMPLER_3D","SAMPLER_BINDING","SAMPLER_CUBE","SAMPLER_CUBE_SHADOW","SAMPLES","SAMPLE_ALPHA_TO_COVERAGE","SAMPLE_BUFFERS","SAMPLE_COVERAGE","SAMPLE_COVERAGE_INVERT","SAMPLE_COVERAGE_VALUE","SAWTOOTH","SCHEDULED_STATE","SCISSOR_BOX","SCISSOR_TEST","SCROLL_PAGE_DOWN","SCROLL_PAGE_UP","SDP_ANSWER","SDP_OFFER","SDP_PRANSWER","SECURITY_ERR","SELECT","SEPARATE_ATTRIBS","SERIALIZE_ERR","SEVERITY_ERROR","SEVERITY_FATAL_ERROR","SEVERITY_WARNING","SHADER_COMPILER","SHADER_TYPE","SHADING_LANGUAGE_VERSION","SHIFT_MASK","SHORT","SHOWING","SHOW_ALL","SHOW_ATTRIBUTE","SHOW_CDATA_SECTION","SHOW_COMMENT","SHOW_DOCUMENT","SHOW_DOCUMENT_FRAGMENT","SHOW_DOCUMENT_TYPE","SHOW_ELEMENT","SHOW_ENTITY","SHOW_ENTITY_REFERENCE","SHOW_NOTATION","SHOW_PROCESSING_INSTRUCTION","SHOW_TEXT","SIGNALED","SIGNED_NORMALIZED","SINE","SOUNDFIELD","SQLException","SQRT1_2","SQRT2","SQUARE","SRC_ALPHA","SRC_ALPHA_SATURATE","SRC_COLOR","SRGB","SRGB8","SRGB8_ALPHA8","START_TO_END","START_TO_START","STATIC_COPY","STATIC_DRAW","STATIC_READ","STENCIL","STENCIL_ATTACHMENT","STENCIL_BACK_FAIL","STENCIL_BACK_FUNC","STENCIL_BACK_PASS_DEPTH_FAIL","STENCIL_BACK_PASS_DEPTH_PASS","STENCIL_BACK_REF","STENCIL_BACK_VALUE_MASK","STENCIL_BACK_WRITEMASK","STENCIL_BITS","STENCIL_BUFFER_BIT","STENCIL_CLEAR_VALUE","STENCIL_FAIL","STENCIL_FUNC","STENCIL_INDEX","STENCIL_INDEX8","STENCIL_PASS_DEPTH_FAIL","STENCIL_PASS_DEPTH_PASS","STENCIL_REF","STENCIL_TEST","STENCIL_VALUE_MASK","STENCIL_WRITEMASK","STREAM_COPY","STREAM_DRAW","STREAM_READ","STRING_TYPE","STYLE_RULE","SUBPIXEL_BITS","SUPPORTS_RULE","SVGAElement","SVGAltGlyphDefElement","SVGAltGlyphElement","SVGAltGlyphItemElement","SVGAngle","SVGAnimateColorElement","SVGAnimateElement","SVGAnimateMotionElement","SVGAnimateTransformElement","SVGAnimatedAngle","SVGAnimatedBoolean","SVGAnimatedEnumeration","SVGAnimatedInteger","SVGAnimatedLength","SVGAnimatedLengthList","SVGAnimatedNumber","SVGAnimatedNumberList","SVGAnimatedPreserveAspectRatio","SVGAnimatedRect","SVGAnimatedString","SVGAnimatedTransformList","SVGAnimationElement","SVGCircleElement","SVGClipPathElement","SVGColor","SVGComponentTransferFunctionElement","SVGCursorElement","SVGDefsElement","SVGDescElement","SVGDiscardElement","SVGDocument","SVGElement","SVGElementInstance","SVGElementInstanceList","SVGEllipseElement","SVGException","SVGFEBlendElement","SVGFEColorMatrixElement","SVGFEComponentTransferElement","SVGFECompositeElement","SVGFEConvolveMatrixElement","SVGFEDiffuseLightingElement","SVGFEDisplacementMapElement","SVGFEDistantLightElement","SVGFEDropShadowElement","SVGFEFloodElement","SVGFEFuncAElement","SVGFEFuncBElement","SVGFEFuncGElement","SVGFEFuncRElement","SVGFEGaussianBlurElement","SVGFEImageElement","SVGFEMergeElement","SVGFEMergeNodeElement","SVGFEMorphologyElement","SVGFEOffsetElement","SVGFEPointLightElement","SVGFESpecularLightingElement","SVGFESpotLightElement","SVGFETileElement","SVGFETurbulenceElement","SVGFilterElement","SVGFontElement","SVGFontFaceElement","SVGFontFaceFormatElement","SVGFontFaceNameElement","SVGFontFaceSrcElement","SVGFontFaceUriElement","SVGForeignObjectElement","SVGGElement","SVGGeometryElement","SVGGlyphElement","SVGGlyphRefElement","SVGGradientElement","SVGGraphicsElement","SVGHKernElement","SVGImageElement","SVGLength","SVGLengthList","SVGLineElement","SVGLinearGradientElement","SVGMPathElement","SVGMarkerElement","SVGMaskElement","SVGMatrix","SVGMetadataElement","SVGMissingGlyphElement","SVGNumber","SVGNumberList","SVGPaint","SVGPathElement","SVGPathSeg","SVGPathSegArcAbs","SVGPathSegArcRel","SVGPathSegClosePath","SVGPathSegCurvetoCubicAbs","SVGPathSegCurvetoCubicRel","SVGPathSegCurvetoCubicSmoothAbs","SVGPathSegCurvetoCubicSmoothRel","SVGPathSegCurvetoQuadraticAbs","SVGPathSegCurvetoQuadraticRel","SVGPathSegCurvetoQuadraticSmoothAbs","SVGPathSegCurvetoQuadraticSmoothRel","SVGPathSegLinetoAbs","SVGPathSegLinetoHorizontalAbs","SVGPathSegLinetoHorizontalRel","SVGPathSegLinetoRel","SVGPathSegLinetoVerticalAbs","SVGPathSegLinetoVerticalRel","SVGPathSegList","SVGPathSegMovetoAbs","SVGPathSegMovetoRel","SVGPatternElement","SVGPoint","SVGPointList","SVGPolygonElement","SVGPolylineElement","SVGPreserveAspectRatio","SVGRadialGradientElement","SVGRect","SVGRectElement","SVGRenderingIntent","SVGSVGElement","SVGScriptElement","SVGSetElement","SVGStopElement","SVGStringList","SVGStyleElement","SVGSwitchElement","SVGSymbolElement","SVGTRefElement","SVGTSpanElement","SVGTextContentElement","SVGTextElement","SVGTextPathElement","SVGTextPositioningElement","SVGTitleElement","SVGTransform","SVGTransformList","SVGUnitTypes","SVGUseElement","SVGVKernElement","SVGViewElement","SVGViewSpec","SVGZoomAndPan","SVGZoomEvent","SVG_ANGLETYPE_DEG","SVG_ANGLETYPE_GRAD","SVG_ANGLETYPE_RAD","SVG_ANGLETYPE_UNKNOWN","SVG_ANGLETYPE_UNSPECIFIED","SVG_CHANNEL_A","SVG_CHANNEL_B","SVG_CHANNEL_G","SVG_CHANNEL_R","SVG_CHANNEL_UNKNOWN","SVG_COLORTYPE_CURRENTCOLOR","SVG_COLORTYPE_RGBCOLOR","SVG_COLORTYPE_RGBCOLOR_ICCCOLOR","SVG_COLORTYPE_UNKNOWN","SVG_EDGEMODE_DUPLICATE","SVG_EDGEMODE_NONE","SVG_EDGEMODE_UNKNOWN","SVG_EDGEMODE_WRAP","SVG_FEBLEND_MODE_COLOR","SVG_FEBLEND_MODE_COLOR_BURN","SVG_FEBLEND_MODE_COLOR_DODGE","SVG_FEBLEND_MODE_DARKEN","SVG_FEBLEND_MODE_DIFFERENCE","SVG_FEBLEND_MODE_EXCLUSION","SVG_FEBLEND_MODE_HARD_LIGHT","SVG_FEBLEND_MODE_HUE","SVG_FEBLEND_MODE_LIGHTEN","SVG_FEBLEND_MODE_LUMINOSITY","SVG_FEBLEND_MODE_MULTIPLY","SVG_FEBLEND_MODE_NORMAL","SVG_FEBLEND_MODE_OVERLAY","SVG_FEBLEND_MODE_SATURATION","SVG_FEBLEND_MODE_SCREEN","SVG_FEBLEND_MODE_SOFT_LIGHT","SVG_FEBLEND_MODE_UNKNOWN","SVG_FECOLORMATRIX_TYPE_HUEROTATE","SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA","SVG_FECOLORMATRIX_TYPE_MATRIX","SVG_FECOLORMATRIX_TYPE_SATURATE","SVG_FECOLORMATRIX_TYPE_UNKNOWN","SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE","SVG_FECOMPONENTTRANSFER_TYPE_GAMMA","SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY","SVG_FECOMPONENTTRANSFER_TYPE_LINEAR","SVG_FECOMPONENTTRANSFER_TYPE_TABLE","SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_ARITHMETIC","SVG_FECOMPOSITE_OPERATOR_ATOP","SVG_FECOMPOSITE_OPERATOR_IN","SVG_FECOMPOSITE_OPERATOR_OUT","SVG_FECOMPOSITE_OPERATOR_OVER","SVG_FECOMPOSITE_OPERATOR_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_XOR","SVG_INVALID_VALUE_ERR","SVG_LENGTHTYPE_CM","SVG_LENGTHTYPE_EMS","SVG_LENGTHTYPE_EXS","SVG_LENGTHTYPE_IN","SVG_LENGTHTYPE_MM","SVG_LENGTHTYPE_NUMBER","SVG_LENGTHTYPE_PC","SVG_LENGTHTYPE_PERCENTAGE","SVG_LENGTHTYPE_PT","SVG_LENGTHTYPE_PX","SVG_LENGTHTYPE_UNKNOWN","SVG_MARKERUNITS_STROKEWIDTH","SVG_MARKERUNITS_UNKNOWN","SVG_MARKERUNITS_USERSPACEONUSE","SVG_MARKER_ORIENT_ANGLE","SVG_MARKER_ORIENT_AUTO","SVG_MARKER_ORIENT_UNKNOWN","SVG_MASKTYPE_ALPHA","SVG_MASKTYPE_LUMINANCE","SVG_MATRIX_NOT_INVERTABLE","SVG_MEETORSLICE_MEET","SVG_MEETORSLICE_SLICE","SVG_MEETORSLICE_UNKNOWN","SVG_MORPHOLOGY_OPERATOR_DILATE","SVG_MORPHOLOGY_OPERATOR_ERODE","SVG_MORPHOLOGY_OPERATOR_UNKNOWN","SVG_PAINTTYPE_CURRENTCOLOR","SVG_PAINTTYPE_NONE","SVG_PAINTTYPE_RGBCOLOR","SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR","SVG_PAINTTYPE_UNKNOWN","SVG_PAINTTYPE_URI","SVG_PAINTTYPE_URI_CURRENTCOLOR","SVG_PAINTTYPE_URI_NONE","SVG_PAINTTYPE_URI_RGBCOLOR","SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR","SVG_PRESERVEASPECTRATIO_NONE","SVG_PRESERVEASPECTRATIO_UNKNOWN","SVG_PRESERVEASPECTRATIO_XMAXYMAX","SVG_PRESERVEASPECTRATIO_XMAXYMID","SVG_PRESERVEASPECTRATIO_XMAXYMIN","SVG_PRESERVEASPECTRATIO_XMIDYMAX","SVG_PRESERVEASPECTRATIO_XMIDYMID","SVG_PRESERVEASPECTRATIO_XMIDYMIN","SVG_PRESERVEASPECTRATIO_XMINYMAX","SVG_PRESERVEASPECTRATIO_XMINYMID","SVG_PRESERVEASPECTRATIO_XMINYMIN","SVG_SPREADMETHOD_PAD","SVG_SPREADMETHOD_REFLECT","SVG_SPREADMETHOD_REPEAT","SVG_SPREADMETHOD_UNKNOWN","SVG_STITCHTYPE_NOSTITCH","SVG_STITCHTYPE_STITCH","SVG_STITCHTYPE_UNKNOWN","SVG_TRANSFORM_MATRIX","SVG_TRANSFORM_ROTATE","SVG_TRANSFORM_SCALE","SVG_TRANSFORM_SKEWX","SVG_TRANSFORM_SKEWY","SVG_TRANSFORM_TRANSLATE","SVG_TRANSFORM_UNKNOWN","SVG_TURBULENCE_TYPE_FRACTALNOISE","SVG_TURBULENCE_TYPE_TURBULENCE","SVG_TURBULENCE_TYPE_UNKNOWN","SVG_UNIT_TYPE_OBJECTBOUNDINGBOX","SVG_UNIT_TYPE_UNKNOWN","SVG_UNIT_TYPE_USERSPACEONUSE","SVG_WRONG_TYPE_ERR","SVG_ZOOMANDPAN_DISABLE","SVG_ZOOMANDPAN_MAGNIFY","SVG_ZOOMANDPAN_UNKNOWN","SYNC_CONDITION","SYNC_FENCE","SYNC_FLAGS","SYNC_FLUSH_COMMANDS_BIT","SYNC_GPU_COMMANDS_COMPLETE","SYNC_STATUS","SYNTAX_ERR","SavedPages","Screen","ScreenOrientation","Script","ScriptProcessorNode","ScrollAreaEvent","SecurityPolicyViolationEvent","Selection","Sensor","SensorErrorEvent","ServiceWorker","ServiceWorkerContainer","ServiceWorkerRegistration","SessionDescription","Set","ShadowRoot","SharedArrayBuffer","SharedWorker","SimpleGestureEvent","SourceBuffer","SourceBufferList","SpeechSynthesis","SpeechSynthesisErrorEvent","SpeechSynthesisEvent","SpeechSynthesisUtterance","SpeechSynthesisVoice","StaticRange","StereoPannerNode","StopIteration","Storage","StorageEvent","StorageManager","String","StructType","StylePropertyMap","StylePropertyMapReadOnly","StyleSheet","StyleSheetList","SubmitEvent","SubtleCrypto","Symbol","SyncManager","SyntaxError","TEMPORARY","TEXTPATH_METHODTYPE_ALIGN","TEXTPATH_METHODTYPE_STRETCH","TEXTPATH_METHODTYPE_UNKNOWN","TEXTPATH_SPACINGTYPE_AUTO","TEXTPATH_SPACINGTYPE_EXACT","TEXTPATH_SPACINGTYPE_UNKNOWN","TEXTURE","TEXTURE0","TEXTURE1","TEXTURE10","TEXTURE11","TEXTURE12","TEXTURE13","TEXTURE14","TEXTURE15","TEXTURE16","TEXTURE17","TEXTURE18","TEXTURE19","TEXTURE2","TEXTURE20","TEXTURE21","TEXTURE22","TEXTURE23","TEXTURE24","TEXTURE25","TEXTURE26","TEXTURE27","TEXTURE28","TEXTURE29","TEXTURE3","TEXTURE30","TEXTURE31","TEXTURE4","TEXTURE5","TEXTURE6","TEXTURE7","TEXTURE8","TEXTURE9","TEXTURE_2D","TEXTURE_2D_ARRAY","TEXTURE_3D","TEXTURE_BASE_LEVEL","TEXTURE_BINDING_2D","TEXTURE_BINDING_2D_ARRAY","TEXTURE_BINDING_3D","TEXTURE_BINDING_CUBE_MAP","TEXTURE_COMPARE_FUNC","TEXTURE_COMPARE_MODE","TEXTURE_CUBE_MAP","TEXTURE_CUBE_MAP_NEGATIVE_X","TEXTURE_CUBE_MAP_NEGATIVE_Y","TEXTURE_CUBE_MAP_NEGATIVE_Z","TEXTURE_CUBE_MAP_POSITIVE_X","TEXTURE_CUBE_MAP_POSITIVE_Y","TEXTURE_CUBE_MAP_POSITIVE_Z","TEXTURE_IMMUTABLE_FORMAT","TEXTURE_IMMUTABLE_LEVELS","TEXTURE_MAG_FILTER","TEXTURE_MAX_ANISOTROPY_EXT","TEXTURE_MAX_LEVEL","TEXTURE_MAX_LOD","TEXTURE_MIN_FILTER","TEXTURE_MIN_LOD","TEXTURE_WRAP_R","TEXTURE_WRAP_S","TEXTURE_WRAP_T","TEXT_NODE","TIMEOUT","TIMEOUT_ERR","TIMEOUT_EXPIRED","TIMEOUT_IGNORED","TOO_LARGE_ERR","TRANSACTION_INACTIVE_ERR","TRANSFORM_FEEDBACK","TRANSFORM_FEEDBACK_ACTIVE","TRANSFORM_FEEDBACK_BINDING","TRANSFORM_FEEDBACK_BUFFER","TRANSFORM_FEEDBACK_BUFFER_BINDING","TRANSFORM_FEEDBACK_BUFFER_MODE","TRANSFORM_FEEDBACK_BUFFER_SIZE","TRANSFORM_FEEDBACK_BUFFER_START","TRANSFORM_FEEDBACK_PAUSED","TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN","TRANSFORM_FEEDBACK_VARYINGS","TRIANGLE","TRIANGLES","TRIANGLE_FAN","TRIANGLE_STRIP","TYPE_BACK_FORWARD","TYPE_ERR","TYPE_MISMATCH_ERR","TYPE_NAVIGATE","TYPE_RELOAD","TYPE_RESERVED","Table","TaskAttributionTiming","Text","TextDecoder","TextDecoderStream","TextEncoder","TextEncoderStream","TextEvent","TextMetrics","TextTrack","TextTrackCue","TextTrackCueList","TextTrackList","TimeEvent","TimeRanges","Touch","TouchEvent","TouchList","TrackEvent","TransformStream","TransitionEvent","TreeWalker","TrustedHTML","TrustedScript","TrustedScriptURL","TrustedTypePolicy","TrustedTypePolicyFactory","TypeError","TypedObject","U2F","UIEvent","UNCACHED","UNIFORM_ARRAY_STRIDE","UNIFORM_BLOCK_ACTIVE_UNIFORMS","UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES","UNIFORM_BLOCK_BINDING","UNIFORM_BLOCK_DATA_SIZE","UNIFORM_BLOCK_INDEX","UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER","UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER","UNIFORM_BUFFER","UNIFORM_BUFFER_BINDING","UNIFORM_BUFFER_OFFSET_ALIGNMENT","UNIFORM_BUFFER_SIZE","UNIFORM_BUFFER_START","UNIFORM_IS_ROW_MAJOR","UNIFORM_MATRIX_STRIDE","UNIFORM_OFFSET","UNIFORM_SIZE","UNIFORM_TYPE","UNKNOWN_ERR","UNKNOWN_RULE","UNMASKED_RENDERER_WEBGL","UNMASKED_VENDOR_WEBGL","UNORDERED_NODE_ITERATOR_TYPE","UNORDERED_NODE_SNAPSHOT_TYPE","UNPACK_ALIGNMENT","UNPACK_COLORSPACE_CONVERSION_WEBGL","UNPACK_FLIP_Y_WEBGL","UNPACK_IMAGE_HEIGHT","UNPACK_PREMULTIPLY_ALPHA_WEBGL","UNPACK_ROW_LENGTH","UNPACK_SKIP_IMAGES","UNPACK_SKIP_PIXELS","UNPACK_SKIP_ROWS","UNSCHEDULED_STATE","UNSENT","UNSIGNALED","UNSIGNED_BYTE","UNSIGNED_INT","UNSIGNED_INT_10F_11F_11F_REV","UNSIGNED_INT_24_8","UNSIGNED_INT_2_10_10_10_REV","UNSIGNED_INT_5_9_9_9_REV","UNSIGNED_INT_SAMPLER_2D","UNSIGNED_INT_SAMPLER_2D_ARRAY","UNSIGNED_INT_SAMPLER_3D","UNSIGNED_INT_SAMPLER_CUBE","UNSIGNED_INT_VEC2","UNSIGNED_INT_VEC3","UNSIGNED_INT_VEC4","UNSIGNED_NORMALIZED","UNSIGNED_SHORT","UNSIGNED_SHORT_4_4_4_4","UNSIGNED_SHORT_5_5_5_1","UNSIGNED_SHORT_5_6_5","UNSPECIFIED_EVENT_TYPE_ERR","UPDATEREADY","URIError","URL","URLSearchParams","URLUnencoded","URL_MISMATCH_ERR","USB","USBAlternateInterface","USBConfiguration","USBConnectionEvent","USBDevice","USBEndpoint","USBInTransferResult","USBInterface","USBIsochronousInTransferPacket","USBIsochronousInTransferResult","USBIsochronousOutTransferPacket","USBIsochronousOutTransferResult","USBOutTransferResult","UTC","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","UserActivation","UserMessageHandler","UserMessageHandlersNamespace","UserProximityEvent","VALIDATE_STATUS","VALIDATION_ERR","VARIABLES_RULE","VENDOR","VERSION","VERSION_CHANGE","VERSION_ERR","VERTEX_ARRAY_BINDING","VERTEX_ATTRIB_ARRAY_BUFFER_BINDING","VERTEX_ATTRIB_ARRAY_DIVISOR","VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE","VERTEX_ATTRIB_ARRAY_ENABLED","VERTEX_ATTRIB_ARRAY_INTEGER","VERTEX_ATTRIB_ARRAY_NORMALIZED","VERTEX_ATTRIB_ARRAY_POINTER","VERTEX_ATTRIB_ARRAY_SIZE","VERTEX_ATTRIB_ARRAY_STRIDE","VERTEX_ATTRIB_ARRAY_TYPE","VERTEX_SHADER","VERTICAL","VERTICAL_AXIS","VER_ERR","VIEWPORT","VIEWPORT_RULE","VRDisplay","VRDisplayCapabilities","VRDisplayEvent","VREyeParameters","VRFieldOfView","VRFrameData","VRPose","VRStageParameters","VTTCue","VTTRegion","ValidityState","VideoPlaybackQuality","VideoStreamTrack","VisualViewport","WAIT_FAILED","WEBKIT_FILTER_RULE","WEBKIT_KEYFRAMES_RULE","WEBKIT_KEYFRAME_RULE","WEBKIT_REGION_RULE","WRONG_DOCUMENT_ERR","WakeLock","WakeLockSentinel","WasmAnyRef","WaveShaperNode","WeakMap","WeakRef","WeakSet","WebAssembly","WebGL2RenderingContext","WebGLActiveInfo","WebGLBuffer","WebGLContextEvent","WebGLFramebuffer","WebGLProgram","WebGLQuery","WebGLRenderbuffer","WebGLRenderingContext","WebGLSampler","WebGLShader","WebGLShaderPrecisionFormat","WebGLSync","WebGLTexture","WebGLTransformFeedback","WebGLUniformLocation","WebGLVertexArray","WebGLVertexArrayObject","WebKitAnimationEvent","WebKitBlobBuilder","WebKitCSSFilterRule","WebKitCSSFilterValue","WebKitCSSKeyframeRule","WebKitCSSKeyframesRule","WebKitCSSMatrix","WebKitCSSRegionRule","WebKitCSSTransformValue","WebKitDataCue","WebKitGamepad","WebKitMediaKeyError","WebKitMediaKeyMessageEvent","WebKitMediaKeySession","WebKitMediaKeys","WebKitMediaSource","WebKitMutationObserver","WebKitNamespace","WebKitPlaybackTargetAvailabilityEvent","WebKitPoint","WebKitShadowRoot","WebKitSourceBuffer","WebKitSourceBufferList","WebKitTransitionEvent","WebSocket","WebkitAlignContent","WebkitAlignItems","WebkitAlignSelf","WebkitAnimation","WebkitAnimationDelay","WebkitAnimationDirection","WebkitAnimationDuration","WebkitAnimationFillMode","WebkitAnimationIterationCount","WebkitAnimationName","WebkitAnimationPlayState","WebkitAnimationTimingFunction","WebkitAppearance","WebkitBackfaceVisibility","WebkitBackgroundClip","WebkitBackgroundOrigin","WebkitBackgroundSize","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius","WebkitBorderImage","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBoxAlign","WebkitBoxDirection","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitBoxOrient","WebkitBoxPack","WebkitBoxShadow","WebkitBoxSizing","WebkitFilter","WebkitFlex","WebkitFlexBasis","WebkitFlexDirection","WebkitFlexFlow","WebkitFlexGrow","WebkitFlexShrink","WebkitFlexWrap","WebkitJustifyContent","WebkitLineClamp","WebkitMask","WebkitMaskClip","WebkitMaskComposite","WebkitMaskImage","WebkitMaskOrigin","WebkitMaskPosition","WebkitMaskPositionX","WebkitMaskPositionY","WebkitMaskRepeat","WebkitMaskSize","WebkitOrder","WebkitPerspective","WebkitPerspectiveOrigin","WebkitTextFillColor","WebkitTextSizeAdjust","WebkitTextStroke","WebkitTextStrokeColor","WebkitTextStrokeWidth","WebkitTransform","WebkitTransformOrigin","WebkitTransformStyle","WebkitTransition","WebkitTransitionDelay","WebkitTransitionDuration","WebkitTransitionProperty","WebkitTransitionTimingFunction","WebkitUserSelect","WheelEvent","Window","Worker","Worklet","WritableStream","WritableStreamDefaultWriter","XMLDocument","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestException","XMLHttpRequestProgressEvent","XMLHttpRequestUpload","XMLSerializer","XMLStylesheetProcessingInstruction","XPathEvaluator","XPathException","XPathExpression","XPathNSResolver","XPathResult","XRBoundedReferenceSpace","XRDOMOverlayState","XRFrame","XRHitTestResult","XRHitTestSource","XRInputSource","XRInputSourceArray","XRInputSourceEvent","XRInputSourcesChangeEvent","XRLayer","XRPose","XRRay","XRReferenceSpace","XRReferenceSpaceEvent","XRRenderState","XRRigidTransform","XRSession","XRSessionEvent","XRSpace","XRSystem","XRTransientInputHitTestResult","XRTransientInputHitTestSource","XRView","XRViewerPose","XRViewport","XRWebGLLayer","XSLTProcessor","ZERO","_XD0M_","_YD0M_","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","__opera","__proto__","_browserjsran","a","aLink","abbr","abort","aborted","abs","absolute","acceleration","accelerationIncludingGravity","accelerator","accept","acceptCharset","acceptNode","accessKey","accessKeyLabel","accuracy","acos","acosh","action","actionURL","actions","activated","active","activeCues","activeElement","activeSourceBuffers","activeSourceCount","activeTexture","activeVRDisplays","actualBoundingBoxAscent","actualBoundingBoxDescent","actualBoundingBoxLeft","actualBoundingBoxRight","add","addAll","addBehavior","addCandidate","addColorStop","addCue","addElement","addEventListener","addFilter","addFromString","addFromUri","addIceCandidate","addImport","addListener","addModule","addNamed","addPageRule","addPath","addPointer","addRange","addRegion","addRule","addSearchEngine","addSourceBuffer","addStream","addTextTrack","addTrack","addTransceiver","addWakeLockListener","added","addedNodes","additionalName","additiveSymbols","addons","address","addressLine","adoptNode","adoptedStyleSheets","adr","advance","after","album","alert","algorithm","align","align-content","align-items","align-self","alignContent","alignItems","alignSelf","alignmentBaseline","alinkColor","all","allSettled","allow","allowFullscreen","allowPaymentRequest","allowedDirections","allowedFeatures","allowedToPlay","allowsFeature","alpha","alt","altGraphKey","altHtml","altKey","altLeft","alternate","alternateSetting","alternates","altitude","altitudeAccuracy","amplitude","ancestorOrigins","anchor","anchorNode","anchorOffset","anchors","and","angle","angularAcceleration","angularVelocity","animVal","animate","animatedInstanceRoot","animatedNormalizedPathSegList","animatedPathSegList","animatedPoints","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationStartTime","animationTimingFunction","animationsPaused","anniversary","antialias","anticipatedRemoval","any","app","appCodeName","appMinorVersion","appName","appNotifications","appVersion","appearance","append","appendBuffer","appendChild","appendData","appendItem","appendMedium","appendNamed","appendRule","appendStream","appendWindowEnd","appendWindowStart","applets","applicationCache","applicationServerKey","apply","applyConstraints","applyElement","arc","arcTo","archive","areas","arguments","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","arrayBuffer","artist","artwork","as","asIntN","asUintN","asin","asinh","assert","assign","assignedElements","assignedNodes","assignedSlot","async","asyncIterator","atEnd","atan","atan2","atanh","atob","attachEvent","attachInternals","attachShader","attachShadow","attachments","attack","attestationObject","attrChange","attrName","attributeFilter","attributeName","attributeNamespace","attributeOldValue","attributeStyleMap","attributes","attribution","audioBitsPerSecond","audioTracks","audioWorklet","authenticatedSignedWrites","authenticatorData","autoIncrement","autobuffer","autocapitalize","autocomplete","autocorrect","autofocus","automationRate","autoplay","availHeight","availLeft","availTop","availWidth","availability","available","aversion","ax","axes","axis","ay","azimuth","b","back","backface-visibility","backfaceVisibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundFetch","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","badInput","badge","balance","baseFrequencyX","baseFrequencyY","baseLatency","baseLayer","baseNode","baseOffset","baseURI","baseVal","baselineShift","battery","bday","before","beginElement","beginElementAt","beginPath","beginQuery","beginTransformFeedback","behavior","behaviorCookie","behaviorPart","behaviorUrns","beta","bezierCurveTo","bgColor","bgProperties","bias","big","bigint64","biguint64","binaryType","bind","bindAttribLocation","bindBuffer","bindBufferBase","bindBufferRange","bindFramebuffer","bindRenderbuffer","bindSampler","bindTexture","bindTransformFeedback","bindVertexArray","blendColor","blendEquation","blendEquationSeparate","blendFunc","blendFuncSeparate","blink","blitFramebuffer","blob","block-size","blockDirection","blockSize","blockedURI","blue","bluetooth","blur","body","bodyUsed","bold","bookmarks","booleanValue","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderBoxSize","borderCollapse","borderColor","borderColorDark","borderColorLight","borderEndEndRadius","borderEndStartRadius","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderInline","borderInlineColor","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineStyle","borderInlineWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStartEndRadius","borderStartStartRadius","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","bottomMargin","bound","boundElements","boundingClientRect","boundingHeight","boundingLeft","boundingTop","boundingWidth","bounds","boundsGeometry","box-decoration-break","box-shadow","box-sizing","boxDecorationBreak","boxShadow","boxSizing","break-after","break-before","break-inside","breakAfter","breakBefore","breakInside","broadcast","browserLanguage","btoa","bubbles","buffer","bufferData","bufferDepth","bufferSize","bufferSubData","buffered","bufferedAmount","bufferedAmountLowThreshold","buildID","buildNumber","button","buttonID","buttons","byteLength","byteOffset","bytesWritten","c","cache","caches","call","caller","canBeFormatted","canBeMounted","canBeShared","canHaveChildren","canHaveHTML","canInsertDTMF","canMakePayment","canPlayType","canPresent","canTrickleIceCandidates","cancel","cancelAndHoldAtTime","cancelAnimationFrame","cancelBubble","cancelIdleCallback","cancelScheduledValues","cancelVideoFrameCallback","cancelWatchAvailability","cancelable","candidate","canonicalUUID","canvas","capabilities","caption","caption-side","captionSide","capture","captureEvents","captureStackTrace","captureStream","caret-color","caretBidiLevel","caretColor","caretPositionFromPoint","caretRangeFromPoint","cast","catch","category","cbrt","cd","ceil","cellIndex","cellPadding","cellSpacing","cells","ch","chOff","chain","challenge","changeType","changedTouches","channel","channelCount","channelCountMode","channelInterpretation","char","charAt","charCode","charCodeAt","charIndex","charLength","characterData","characterDataOldValue","characterSet","characteristic","charging","chargingTime","charset","check","checkEnclosure","checkFramebufferStatus","checkIntersection","checkValidity","checked","childElementCount","childList","childNodes","children","chrome","ciphertext","cite","city","claimInterface","claimed","classList","className","classid","clear","clearAppBadge","clearAttributes","clearBufferfi","clearBufferfv","clearBufferiv","clearBufferuiv","clearColor","clearData","clearDepth","clearHalt","clearImmediate","clearInterval","clearLiveSeekableRange","clearMarks","clearMaxGCPauseAccumulator","clearMeasures","clearParameters","clearRect","clearResourceTimings","clearShadow","clearStencil","clearTimeout","clearWatch","click","clickCount","clientDataJSON","clientHeight","clientInformation","clientLeft","clientRect","clientRects","clientTop","clientWaitSync","clientWidth","clientX","clientY","clip","clip-path","clip-rule","clipBottom","clipLeft","clipPath","clipPathUnits","clipRight","clipRule","clipTop","clipboard","clipboardData","clone","cloneContents","cloneNode","cloneRange","close","closePath","closed","closest","clz","clz32","cm","cmp","code","codeBase","codePointAt","codeType","colSpan","collapse","collapseToEnd","collapseToStart","collapsed","collect","colno","color","color-adjust","color-interpolation","color-interpolation-filters","colorAdjust","colorDepth","colorInterpolation","colorInterpolationFilters","colorMask","colorType","cols","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columnCount","columnFill","columnGap","columnNumber","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","command","commit","commitPreferences","commitStyles","commonAncestorContainer","compact","compareBoundaryPoints","compareDocumentPosition","compareEndPoints","compareExchange","compareNode","comparePoint","compatMode","compatible","compile","compileShader","compileStreaming","complete","component","componentFromPoint","composed","composedPath","composite","compositionEndOffset","compositionStartOffset","compressedTexImage2D","compressedTexImage3D","compressedTexSubImage2D","compressedTexSubImage3D","computedStyleMap","concat","conditionText","coneInnerAngle","coneOuterAngle","coneOuterGain","configuration","configurationName","configurationValue","configurations","confirm","confirmComposition","confirmSiteSpecificTrackingException","confirmWebWideTrackingException","connect","connectEnd","connectShark","connectStart","connected","connection","connectionList","connectionSpeed","connectionState","connections","console","consolidate","constraint","constrictionActive","construct","constructor","contactID","contain","containerId","containerName","containerSrc","containerType","contains","containsNode","content","contentBoxSize","contentDocument","contentEditable","contentHint","contentOverflow","contentRect","contentScriptType","contentStyleType","contentType","contentWindow","context","contextMenu","contextmenu","continue","continuePrimaryKey","continuous","control","controlTransferIn","controlTransferOut","controller","controls","controlsList","convertPointFromNode","convertQuadFromNode","convertRectFromNode","convertToBlob","convertToSpecifiedUnits","cookie","cookieEnabled","coords","copyBufferSubData","copyFromChannel","copyTexImage2D","copyTexSubImage2D","copyTexSubImage3D","copyToChannel","copyWithin","correspondingElement","correspondingUseElement","corruptedVideoFrames","cos","cosh","count","countReset","counter-increment","counter-reset","counter-set","counterIncrement","counterReset","counterSet","country","cpuClass","cpuSleepAllowed","create","createAnalyser","createAnswer","createAttribute","createAttributeNS","createBiquadFilter","createBuffer","createBufferSource","createCDATASection","createCSSStyleSheet","createCaption","createChannelMerger","createChannelSplitter","createComment","createConstantSource","createContextualFragment","createControlRange","createConvolver","createDTMFSender","createDataChannel","createDelay","createDelayNode","createDocument","createDocumentFragment","createDocumentType","createDynamicsCompressor","createElement","createElementNS","createEntityReference","createEvent","createEventObject","createExpression","createFramebuffer","createFunction","createGain","createGainNode","createHTML","createHTMLDocument","createIIRFilter","createImageBitmap","createImageData","createIndex","createJavaScriptNode","createLinearGradient","createMediaElementSource","createMediaKeys","createMediaStreamDestination","createMediaStreamSource","createMediaStreamTrackSource","createMutableFile","createNSResolver","createNodeIterator","createNotification","createObjectStore","createObjectURL","createOffer","createOscillator","createPanner","createPattern","createPeriodicWave","createPolicy","createPopup","createProcessingInstruction","createProgram","createQuery","createRadialGradient","createRange","createRangeCollection","createReader","createRenderbuffer","createSVGAngle","createSVGLength","createSVGMatrix","createSVGNumber","createSVGPathSegArcAbs","createSVGPathSegArcRel","createSVGPathSegClosePath","createSVGPathSegCurvetoCubicAbs","createSVGPathSegCurvetoCubicRel","createSVGPathSegCurvetoCubicSmoothAbs","createSVGPathSegCurvetoCubicSmoothRel","createSVGPathSegCurvetoQuadraticAbs","createSVGPathSegCurvetoQuadraticRel","createSVGPathSegCurvetoQuadraticSmoothAbs","createSVGPathSegCurvetoQuadraticSmoothRel","createSVGPathSegLinetoAbs","createSVGPathSegLinetoHorizontalAbs","createSVGPathSegLinetoHorizontalRel","createSVGPathSegLinetoRel","createSVGPathSegLinetoVerticalAbs","createSVGPathSegLinetoVerticalRel","createSVGPathSegMovetoAbs","createSVGPathSegMovetoRel","createSVGPoint","createSVGRect","createSVGTransform","createSVGTransformFromMatrix","createSampler","createScript","createScriptProcessor","createScriptURL","createSession","createShader","createShadowRoot","createStereoPanner","createStyleSheet","createTBody","createTFoot","createTHead","createTextNode","createTextRange","createTexture","createTouch","createTouchList","createTransformFeedback","createTreeWalker","createVertexArray","createWaveShaper","creationTime","credentials","crossOrigin","crossOriginIsolated","crypto","csi","csp","cssFloat","cssRules","cssText","cssValueType","ctrlKey","ctrlLeft","cues","cullFace","currentDirection","currentLocalDescription","currentNode","currentPage","currentRect","currentRemoteDescription","currentScale","currentScript","currentSrc","currentState","currentStyle","currentTarget","currentTime","currentTranslate","currentView","cursor","curve","customElements","customError","cx","cy","d","data","dataFld","dataFormatAs","dataLoss","dataLossMessage","dataPageSize","dataSrc","dataTransfer","database","databases","dataset","dateTime","db","debug","debuggerEnabled","declare","decode","decodeAudioData","decodeURI","decodeURIComponent","decodedBodySize","decoding","decodingInfo","decrypt","default","defaultCharset","defaultChecked","defaultMuted","defaultPlaybackRate","defaultPolicy","defaultPrevented","defaultRequest","defaultSelected","defaultStatus","defaultURL","defaultValue","defaultView","defaultstatus","defer","define","defineMagicFunction","defineMagicVariable","defineProperties","defineProperty","deg","delay","delayTime","delegatesFocus","delete","deleteBuffer","deleteCaption","deleteCell","deleteContents","deleteData","deleteDatabase","deleteFramebuffer","deleteFromDocument","deleteIndex","deleteMedium","deleteObjectStore","deleteProgram","deleteProperty","deleteQuery","deleteRenderbuffer","deleteRow","deleteRule","deleteSampler","deleteShader","deleteSync","deleteTFoot","deleteTHead","deleteTexture","deleteTransformFeedback","deleteVertexArray","deliverChangeRecords","delivery","deliveryInfo","deliveryStatus","deliveryTimestamp","delta","deltaMode","deltaX","deltaY","deltaZ","dependentLocality","depthFar","depthFunc","depthMask","depthNear","depthRange","deref","deriveBits","deriveKey","description","deselectAll","designMode","desiredSize","destination","destinationURL","detach","detachEvent","detachShader","detail","details","detect","detune","device","deviceClass","deviceId","deviceMemory","devicePixelContentBoxSize","devicePixelRatio","deviceProtocol","deviceSubclass","deviceVersionMajor","deviceVersionMinor","deviceVersionSubminor","deviceXDPI","deviceYDPI","didTimeout","diffuseConstant","digest","dimensions","dir","dirName","direction","dirxml","disable","disablePictureInPicture","disableRemotePlayback","disableVertexAttribArray","disabled","dischargingTime","disconnect","disconnectShark","dispatchEvent","display","displayId","displayName","disposition","distanceModel","div","divisor","djsapi","djsproxy","doImport","doNotTrack","doScroll","doctype","document","documentElement","documentMode","documentURI","dolphin","dolphinGameCenter","dolphininfo","dolphinmeta","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domOverlayState","domain","domainLookupEnd","domainLookupStart","dominant-baseline","dominantBaseline","done","dopplerFactor","dotAll","downDegrees","downlink","download","downloadTotal","downloaded","dpcm","dpi","dppx","dragDrop","draggable","drawArrays","drawArraysInstanced","drawArraysInstancedANGLE","drawBuffers","drawCustomFocusRing","drawElements","drawElementsInstanced","drawElementsInstancedANGLE","drawFocusIfNeeded","drawImage","drawImageFromRect","drawRangeElements","drawSystemFocusRing","drawingBufferHeight","drawingBufferWidth","dropEffect","droppedVideoFrames","dropzone","dtmf","dump","dumpProfile","duplicate","durability","duration","dvname","dvnum","dx","dy","dynsrc","e","edgeMode","effect","effectAllowed","effectiveDirective","effectiveType","elapsedTime","element","elementFromPoint","elementTiming","elements","elementsFromPoint","elevation","ellipse","em","email","embeds","emma","empty","empty-cells","emptyCells","emptyHTML","emptyScript","emulatedPosition","enable","enableBackground","enableDelegations","enableStyleSheetsForSet","enableVertexAttribArray","enabled","enabledPlugin","encode","encodeInto","encodeURI","encodeURIComponent","encodedBodySize","encoding","encodingInfo","encrypt","enctype","end","endContainer","endElement","endElementAt","endOfStream","endOffset","endQuery","endTime","endTransformFeedback","ended","endpoint","endpointNumber","endpoints","endsWith","enterKeyHint","entities","entries","entryType","enumerate","enumerateDevices","enumerateEditable","environmentBlendMode","equals","error","errorCode","errorDetail","errorText","escape","estimate","eval","evaluate","event","eventPhase","every","ex","exception","exchange","exec","execCommand","execCommandShowHelp","execScript","exitFullscreen","exitPictureInPicture","exitPointerLock","exitPresent","exp","expand","expandEntityReferences","expando","expansion","expiration","expirationTime","expires","expiryDate","explicitOriginalTarget","expm1","exponent","exponentialRampToValueAtTime","exportKey","exports","extend","extensions","extentNode","extentOffset","external","externalResourcesRequired","extractContents","extractable","eye","f","face","factoryReset","failureReason","fallback","family","familyName","farthestViewportElement","fastSeek","fatal","featureId","featurePolicy","featureSettings","features","fenceSync","fetch","fetchStart","fftSize","fgColor","fieldOfView","file","fileCreatedDate","fileHandle","fileModifiedDate","fileName","fileSize","fileUpdatedDate","filename","files","filesystem","fill","fill-opacity","fill-rule","fillLightMode","fillOpacity","fillRect","fillRule","fillStyle","fillText","filter","filterResX","filterResY","filterUnits","filters","finally","find","findIndex","findRule","findText","finish","finished","fireEvent","firesTouchEvents","firstChild","firstElementChild","firstPage","fixed","flags","flat","flatMap","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","flipX","flipY","float","float32","float64","flood-color","flood-opacity","floodColor","floodOpacity","floor","flush","focus","focusNode","focusOffset","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontSize","fontSizeAdjust","fontSmoothingEnabled","fontStretch","fontStyle","fontSynthesis","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","fontcolor","fontfaces","fonts","fontsize","for","forEach","force","forceRedraw","form","formAction","formData","formEnctype","formMethod","formNoValidate","formTarget","format","formatToParts","forms","forward","forwardX","forwardY","forwardZ","foundation","fr","fragmentDirective","frame","frameBorder","frameElement","frameSpacing","framebuffer","framebufferHeight","framebufferRenderbuffer","framebufferTexture2D","framebufferTextureLayer","framebufferWidth","frames","freeSpace","freeze","frequency","frequencyBinCount","from","fromCharCode","fromCodePoint","fromElement","fromEntries","fromFloat32Array","fromFloat64Array","fromMatrix","fromPoint","fromQuad","fromRect","frontFace","fround","fullPath","fullScreen","fullscreen","fullscreenElement","fullscreenEnabled","fx","fy","gain","gamepad","gamma","gap","gatheringState","gatt","genderIdentity","generateCertificate","generateKey","generateMipmap","generateRequest","geolocation","gestureObject","get","getActiveAttrib","getActiveUniform","getActiveUniformBlockName","getActiveUniformBlockParameter","getActiveUniforms","getAdjacentText","getAll","getAllKeys","getAllResponseHeaders","getAllowlistForFeature","getAnimations","getAsFile","getAsString","getAttachedShaders","getAttribLocation","getAttribute","getAttributeNS","getAttributeNames","getAttributeNode","getAttributeNodeNS","getAttributeType","getAudioTracks","getAvailability","getBBox","getBattery","getBigInt64","getBigUint64","getBlob","getBookmark","getBoundingClientRect","getBounds","getBoxQuads","getBufferParameter","getBufferSubData","getByteFrequencyData","getByteTimeDomainData","getCSSCanvasContext","getCTM","getCandidateWindowClientRect","getCanonicalLocales","getCapabilities","getChannelData","getCharNumAtPosition","getCharacteristic","getCharacteristics","getClientExtensionResults","getClientRect","getClientRects","getCoalescedEvents","getCompositionAlternatives","getComputedStyle","getComputedTextLength","getComputedTiming","getConfiguration","getConstraints","getContext","getContextAttributes","getContributingSources","getCounterValue","getCueAsHTML","getCueById","getCurrentPosition","getCurrentTime","getData","getDatabaseNames","getDate","getDay","getDefaultComputedStyle","getDescriptor","getDescriptors","getDestinationInsertionPoints","getDevices","getDirectory","getDisplayMedia","getDistributedNodes","getEditable","getElementById","getElementsByClassName","getElementsByName","getElementsByTagName","getElementsByTagNameNS","getEnclosureList","getEndPositionOfChar","getEntries","getEntriesByName","getEntriesByType","getError","getExtension","getExtentOfChar","getEyeParameters","getFeature","getFile","getFiles","getFilesAndDirectories","getFingerprints","getFloat32","getFloat64","getFloatFrequencyData","getFloatTimeDomainData","getFloatValue","getFragDataLocation","getFrameData","getFramebufferAttachmentParameter","getFrequencyResponse","getFullYear","getGamepads","getHitTestResults","getHitTestResultsForTransientInput","getHours","getIdentityAssertion","getIds","getImageData","getIndexedParameter","getInstalledRelatedApps","getInt16","getInt32","getInt8","getInternalformatParameter","getIntersectionList","getItem","getItems","getKey","getKeyframes","getLayers","getLayoutMap","getLineDash","getLocalCandidates","getLocalParameters","getLocalStreams","getMarks","getMatchedCSSRules","getMaxGCPauseSinceClear","getMeasures","getMetadata","getMilliseconds","getMinutes","getModifierState","getMonth","getNamedItem","getNamedItemNS","getNativeFramebufferScaleFactor","getNotifications","getNotifier","getNumberOfChars","getOffsetReferenceSpace","getOutputTimestamp","getOverrideHistoryNavigationMode","getOverrideStyle","getOwnPropertyDescriptor","getOwnPropertyDescriptors","getOwnPropertyNames","getOwnPropertySymbols","getParameter","getParameters","getParent","getPathSegAtLength","getPhotoCapabilities","getPhotoSettings","getPointAtLength","getPose","getPredictedEvents","getPreference","getPreferenceDefault","getPresentationAttribute","getPreventDefault","getPrimaryService","getPrimaryServices","getProgramInfoLog","getProgramParameter","getPropertyCSSValue","getPropertyPriority","getPropertyShorthand","getPropertyType","getPropertyValue","getPrototypeOf","getQuery","getQueryParameter","getRGBColorValue","getRandomValues","getRangeAt","getReader","getReceivers","getRectValue","getRegistration","getRegistrations","getRemoteCandidates","getRemoteCertificates","getRemoteParameters","getRemoteStreams","getRenderbufferParameter","getResponseHeader","getRoot","getRootNode","getRotationOfChar","getSVGDocument","getSamplerParameter","getScreenCTM","getSeconds","getSelectedCandidatePair","getSelection","getSenders","getService","getSettings","getShaderInfoLog","getShaderParameter","getShaderPrecisionFormat","getShaderSource","getSimpleDuration","getSiteIcons","getSources","getSpeculativeParserUrls","getStartPositionOfChar","getStartTime","getState","getStats","getStatusForPolicy","getStorageUpdates","getStreamById","getStringValue","getSubStringLength","getSubscription","getSupportedConstraints","getSupportedExtensions","getSupportedFormats","getSyncParameter","getSynchronizationSources","getTags","getTargetRanges","getTexParameter","getTime","getTimezoneOffset","getTiming","getTotalLength","getTrackById","getTracks","getTransceivers","getTransform","getTransformFeedbackVarying","getTransformToElement","getTransports","getType","getTypeMapping","getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","getUint16","getUint32","getUint8","getUniform","getUniformBlockIndex","getUniformIndices","getUniformLocation","getUserMedia","getVRDisplays","getValues","getVarDate","getVariableValue","getVertexAttrib","getVertexAttribOffset","getVideoPlaybackQuality","getVideoTracks","getViewerPose","getViewport","getVoices","getWakeLockState","getWriter","getYear","givenName","global","globalAlpha","globalCompositeOperation","globalThis","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","go","grabFrame","grad","gradientTransform","gradientUnits","grammars","green","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","gripSpace","group","groupCollapsed","groupEnd","groupId","hadRecentInput","hand","handedness","hapticActuators","hardwareConcurrency","has","hasAttribute","hasAttributeNS","hasAttributes","hasBeenActive","hasChildNodes","hasComposition","hasEnrolledInstrument","hasExtension","hasExternalDisplay","hasFeature","hasFocus","hasInstance","hasLayout","hasOrientation","hasOwnProperty","hasPointerCapture","hasPosition","hasReading","hasStorageAccess","hash","head","headers","heading","height","hidden","hide","hideFocus","high","highWaterMark","hint","history","honorificPrefix","honorificSuffix","horizontalOverflow","host","hostCandidate","hostname","href","hrefTranslate","hreflang","hspace","html5TagCheckInerface","htmlFor","htmlText","httpEquiv","httpRequestStatusCode","hwTimestamp","hyphens","hypot","iccId","iceConnectionState","iceGatheringState","iceTransport","icon","iconURL","id","identifier","identity","idpLoginUrl","ignoreBOM","ignoreCase","ignoreDepthValues","image-orientation","image-rendering","imageHeight","imageOrientation","imageRendering","imageSizes","imageSmoothingEnabled","imageSmoothingQuality","imageSrcset","imageWidth","images","ime-mode","imeMode","implementation","importKey","importNode","importStylesheet","imports","impp","imul","in","in1","in2","inBandMetadataTrackDispatchType","inRange","includes","incremental","indeterminate","index","indexNames","indexOf","indexedDB","indicate","inertiaDestinationX","inertiaDestinationY","info","init","initAnimationEvent","initBeforeLoadEvent","initClipboardEvent","initCloseEvent","initCommandEvent","initCompositionEvent","initCustomEvent","initData","initDataType","initDeviceMotionEvent","initDeviceOrientationEvent","initDragEvent","initErrorEvent","initEvent","initFocusEvent","initGestureEvent","initHashChangeEvent","initKeyEvent","initKeyboardEvent","initMSManipulationEvent","initMessageEvent","initMouseEvent","initMouseScrollEvent","initMouseWheelEvent","initMutationEvent","initNSMouseEvent","initOverflowEvent","initPageEvent","initPageTransitionEvent","initPointerEvent","initPopStateEvent","initProgressEvent","initScrollAreaEvent","initSimpleGestureEvent","initStorageEvent","initTextEvent","initTimeEvent","initTouchEvent","initTransitionEvent","initUIEvent","initWebKitAnimationEvent","initWebKitTransitionEvent","initWebKitWheelEvent","initWheelEvent","initialTime","initialize","initiatorType","inline-size","inlineSize","inlineVerticalFieldOfView","inner","innerHTML","innerHeight","innerText","innerWidth","input","inputBuffer","inputEncoding","inputMethod","inputMode","inputSource","inputSources","inputType","inputs","insertAdjacentElement","insertAdjacentHTML","insertAdjacentText","insertBefore","insertCell","insertDTMF","insertData","insertItemBefore","insertNode","insertRow","insertRule","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","installing","instanceRoot","instantiate","instantiateStreaming","instruments","int16","int32","int8","integrity","interactionMode","intercept","interfaceClass","interfaceName","interfaceNumber","interfaceProtocol","interfaceSubclass","interfaces","interimResults","internalSubset","interpretation","intersectionRatio","intersectionRect","intersectsNode","interval","invalidIteratorState","invalidateFramebuffer","invalidateSubFramebuffer","inverse","invertSelf","is","is2D","isActive","isAlternate","isArray","isBingCurrentSearchDefault","isBuffer","isCandidateWindowVisible","isChar","isCollapsed","isComposing","isConcatSpreadable","isConnected","isContentEditable","isContentHandlerRegistered","isContextLost","isDefaultNamespace","isDirectory","isDisabled","isEnabled","isEqual","isEqualNode","isExtensible","isExternalCTAP2SecurityKeySupported","isFile","isFinite","isFramebuffer","isFrozen","isGenerator","isHTML","isHistoryNavigation","isId","isIdentity","isInjected","isInteger","isIntersecting","isLockFree","isMap","isMultiLine","isNaN","isOpen","isPointInFill","isPointInPath","isPointInRange","isPointInStroke","isPrefAlternate","isPresenting","isPrimary","isProgram","isPropertyImplicit","isProtocolHandlerRegistered","isPrototypeOf","isQuery","isRenderbuffer","isSafeInteger","isSameNode","isSampler","isScript","isScriptURL","isSealed","isSecureContext","isSessionSupported","isShader","isSupported","isSync","isTextEdit","isTexture","isTransformFeedback","isTrusted","isTypeSupported","isUserVerifyingPlatformAuthenticatorAvailable","isVertexArray","isView","isVisible","isochronousTransferIn","isochronousTransferOut","isolation","italics","item","itemId","itemProp","itemRef","itemScope","itemType","itemValue","items","iterateNext","iterationComposite","iterator","javaEnabled","jobTitle","join","json","justify-content","justify-items","justify-self","justifyContent","justifyItems","justifySelf","k1","k2","k3","k4","kHz","keepalive","kernelMatrix","kernelUnitLengthX","kernelUnitLengthY","kerning","key","keyCode","keyFor","keyIdentifier","keyLightEnabled","keyLocation","keyPath","keyStatuses","keySystem","keyText","keyUsage","keyboard","keys","keytype","kind","knee","label","labels","lang","language","languages","largeArcFlag","lastChild","lastElementChild","lastEventId","lastIndex","lastIndexOf","lastInputTime","lastMatch","lastMessageSubject","lastMessageType","lastModified","lastModifiedDate","lastPage","lastParen","lastState","lastStyleSheetSet","latitude","layerX","layerY","layoutFlow","layoutGrid","layoutGridChar","layoutGridLine","layoutGridMode","layoutGridType","lbound","left","leftContext","leftDegrees","leftMargin","leftProjectionMatrix","leftViewMatrix","length","lengthAdjust","lengthComputable","letter-spacing","letterSpacing","level","lighting-color","lightingColor","limitingConeAngle","line","line-break","line-height","lineAlign","lineBreak","lineCap","lineDashOffset","lineHeight","lineJoin","lineNumber","lineTo","lineWidth","linearAcceleration","linearRampToValueAtTime","linearVelocity","lineno","lines","link","linkColor","linkProgram","links","list","list-style","list-style-image","list-style-position","list-style-type","listStyle","listStyleImage","listStylePosition","listStyleType","listener","load","loadEventEnd","loadEventStart","loadTime","loadTimes","loaded","loading","localDescription","localName","localService","localStorage","locale","localeCompare","location","locationbar","lock","locked","lockedFile","locks","log","log10","log1p","log2","logicalXDPI","logicalYDPI","longDesc","longitude","lookupNamespaceURI","lookupPrefix","loop","loopEnd","loopStart","looping","low","lower","lowerBound","lowerOpen","lowsrc","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","makeXRCompatible","manifest","manufacturer","manufacturerName","map","mapping","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marginBlock","marginBlockEnd","marginBlockStart","marginBottom","marginHeight","marginInline","marginInlineEnd","marginInlineStart","marginLeft","marginRight","marginTop","marginWidth","mark","marker","marker-end","marker-mid","marker-offset","marker-start","markerEnd","markerHeight","markerMid","markerOffset","markerStart","markerUnits","markerWidth","marks","mask","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-position-x","mask-position-y","mask-repeat","mask-size","mask-type","maskClip","maskComposite","maskContentUnits","maskImage","maskMode","maskOrigin","maskPosition","maskPositionX","maskPositionY","maskRepeat","maskSize","maskType","maskUnits","match","matchAll","matchMedia","matchMedium","matches","matrix","matrixTransform","max","max-block-size","max-height","max-inline-size","max-width","maxActions","maxAlternatives","maxBlockSize","maxChannelCount","maxChannels","maxConnectionsPerServer","maxDecibels","maxDistance","maxHeight","maxInlineSize","maxLayers","maxLength","maxMessageSize","maxPacketLifeTime","maxRetransmits","maxTouchPoints","maxValue","maxWidth","measure","measureText","media","mediaCapabilities","mediaDevices","mediaElement","mediaGroup","mediaKeys","mediaSession","mediaStream","mediaText","meetOrSlice","memory","menubar","mergeAttributes","message","messageClass","messageHandlers","messageType","metaKey","metadata","method","methodDetails","methodName","mid","mimeType","mimeTypes","min","min-block-size","min-height","min-inline-size","min-width","minBlockSize","minDecibels","minHeight","minInlineSize","minLength","minValue","minWidth","miterLimit","mix-blend-mode","mixBlendMode","mm","mode","modify","mount","move","moveBy","moveEnd","moveFirst","moveFocusDown","moveFocusLeft","moveFocusRight","moveFocusUp","moveNext","moveRow","moveStart","moveTo","moveToBookmark","moveToElementText","moveToPoint","movementX","movementY","mozAdd","mozAnimationStartTime","mozAnon","mozApps","mozAudioCaptured","mozAudioChannelType","mozAutoplayEnabled","mozCancelAnimationFrame","mozCancelFullScreen","mozCancelRequestAnimationFrame","mozCaptureStream","mozCaptureStreamUntilEnded","mozClearDataAt","mozContact","mozContacts","mozCreateFileHandle","mozCurrentTransform","mozCurrentTransformInverse","mozCursor","mozDash","mozDashOffset","mozDecodedFrames","mozExitPointerLock","mozFillRule","mozFragmentEnd","mozFrameDelay","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozGetAll","mozGetAllKeys","mozGetAsFile","mozGetDataAt","mozGetMetadata","mozGetUserMedia","mozHasAudio","mozHasItem","mozHidden","mozImageSmoothingEnabled","mozIndexedDB","mozInnerScreenX","mozInnerScreenY","mozInputSource","mozIsTextField","mozItem","mozItemCount","mozItems","mozLength","mozLockOrientation","mozMatchesSelector","mozMovementX","mozMovementY","mozOpaque","mozOrientation","mozPaintCount","mozPaintedFrames","mozParsedFrames","mozPay","mozPointerLockElement","mozPresentedFrames","mozPreservesPitch","mozPressure","mozPrintCallback","mozRTCIceCandidate","mozRTCPeerConnection","mozRTCSessionDescription","mozRemove","mozRequestAnimationFrame","mozRequestFullScreen","mozRequestPointerLock","mozSetDataAt","mozSetImageElement","mozSourceNode","mozSrcObject","mozSystem","mozTCPSocket","mozTextStyle","mozTypesAt","mozUnlockOrientation","mozUserCancelled","mozVisibilityState","ms","msAnimation","msAnimationDelay","msAnimationDirection","msAnimationDuration","msAnimationFillMode","msAnimationIterationCount","msAnimationName","msAnimationPlayState","msAnimationStartTime","msAnimationTimingFunction","msBackfaceVisibility","msBlockProgression","msCSSOMElementFloatMetrics","msCaching","msCachingEnabled","msCancelRequestAnimationFrame","msCapsLockWarningOff","msClearImmediate","msClose","msContentZoomChaining","msContentZoomFactor","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msConvertURL","msCrypto","msDoNotTrack","msElementsFromPoint","msElementsFromRect","msExitFullscreen","msExtendedCode","msFillRule","msFirstPaint","msFlex","msFlexAlign","msFlexDirection","msFlexFlow","msFlexItemAlign","msFlexLinePack","msFlexNegative","msFlexOrder","msFlexPack","msFlexPositive","msFlexPreferredSize","msFlexWrap","msFlowFrom","msFlowInto","msFontFeatureSettings","msFullscreenElement","msFullscreenEnabled","msGetInputContext","msGetRegionContent","msGetUntransformedBounds","msGraphicsTrustStatus","msGridColumn","msGridColumnAlign","msGridColumnSpan","msGridColumns","msGridRow","msGridRowAlign","msGridRowSpan","msGridRows","msHidden","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImageSmoothingEnabled","msImeAlign","msIndexedDB","msInterpolationMode","msIsStaticHTML","msKeySystem","msKeys","msLaunchUri","msLockOrientation","msManipulationViewsEnabled","msMatchMedia","msMatchesSelector","msMaxTouchPoints","msOrientation","msOverflowStyle","msPerspective","msPerspectiveOrigin","msPlayToDisabled","msPlayToPreferredSourceUri","msPlayToPrimary","msPointerEnabled","msRegionOverflow","msReleasePointerCapture","msRequestAnimationFrame","msRequestFullscreen","msSaveBlob","msSaveOrOpenBlob","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msSetImmediate","msSetMediaKeys","msSetPointerCapture","msTextCombineHorizontal","msTextSizeAdjust","msToBlob","msTouchAction","msTouchSelect","msTraceAsyncCallbackCompleted","msTraceAsyncCallbackStarting","msTraceAsyncOperationCompleted","msTraceAsyncOperationStarting","msTransform","msTransformOrigin","msTransformStyle","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUnlockOrientation","msUpdateAsyncCallbackRelation","msUserSelect","msVisibilityState","msWrapFlow","msWrapMargin","msWrapThrough","msWriteProfilerMark","msZoom","msZoomTo","mt","mul","multiEntry","multiSelectionObj","multiline","multiple","multiply","multiplySelf","mutableFile","muted","n","name","nameProp","namedItem","namedRecordset","names","namespaceURI","namespaces","naturalHeight","naturalWidth","navigate","navigation","navigationMode","navigationPreload","navigationStart","navigator","near","nearestViewportElement","negative","negotiated","netscape","networkState","newScale","newTranslate","newURL","newValue","newValueSpecifiedUnits","newVersion","newhome","next","nextElementSibling","nextHopProtocol","nextNode","nextPage","nextSibling","nickname","noHref","noModule","noResize","noShade","noValidate","noWrap","node","nodeName","nodeType","nodeValue","nonce","normalize","normalizedPathSegList","notationName","notations","note","noteGrainOn","noteOff","noteOn","notify","now","numOctaves","number","numberOfChannels","numberOfInputs","numberOfItems","numberOfOutputs","numberValue","oMatchesSelector","object","object-fit","object-position","objectFit","objectPosition","objectStore","objectStoreNames","objectType","observe","of","offscreenBuffering","offset","offset-anchor","offset-distance","offset-path","offset-rotate","offsetAnchor","offsetDistance","offsetHeight","offsetLeft","offsetNode","offsetParent","offsetPath","offsetRotate","offsetTop","offsetWidth","offsetX","offsetY","ok","oldURL","oldValue","oldVersion","olderShadowRoot","onLine","onabort","onabsolutedeviceorientation","onactivate","onactive","onaddsourcebuffer","onaddstream","onaddtrack","onafterprint","onafterscriptexecute","onafterupdate","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onappinstalled","onaudioend","onaudioprocess","onaudiostart","onautocomplete","onautocompleteerror","onauxclick","onbeforeactivate","onbeforecopy","onbeforecut","onbeforedeactivate","onbeforeeditfocus","onbeforeinstallprompt","onbeforepaste","onbeforeprint","onbeforescriptexecute","onbeforeunload","onbeforeupdate","onbeforexrselect","onbegin","onblocked","onblur","onbounce","onboundary","onbufferedamountlow","oncached","oncancel","oncandidatewindowhide","oncandidatewindowshow","oncandidatewindowupdate","oncanplay","oncanplaythrough","once","oncellchange","onchange","oncharacteristicvaluechanged","onchargingchange","onchargingtimechange","onchecking","onclick","onclose","onclosing","oncompassneedscalibration","oncomplete","onconnect","onconnecting","onconnectionavailable","onconnectionstatechange","oncontextmenu","oncontrollerchange","oncontrolselect","oncopy","oncuechange","oncut","ondataavailable","ondatachannel","ondatasetchanged","ondatasetcomplete","ondblclick","ondeactivate","ondevicechange","ondevicelight","ondevicemotion","ondeviceorientation","ondeviceorientationabsolute","ondeviceproximity","ondischargingtimechange","ondisconnect","ondisplay","ondownloading","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onencrypted","onend","onended","onenter","onenterpictureinpicture","onerror","onerrorupdate","onexit","onfilterchange","onfinish","onfocus","onfocusin","onfocusout","onformdata","onfreeze","onfullscreenchange","onfullscreenerror","ongatheringstatechange","ongattserverdisconnected","ongesturechange","ongestureend","ongesturestart","ongotpointercapture","onhashchange","onhelp","onicecandidate","onicecandidateerror","oniceconnectionstatechange","onicegatheringstatechange","oninactive","oninput","oninputsourceschange","oninvalid","onkeydown","onkeypress","onkeystatuseschange","onkeyup","onlanguagechange","onlayoutcomplete","onleavepictureinpicture","onlevelchange","onload","onloadeddata","onloadedmetadata","onloadend","onloading","onloadingdone","onloadingerror","onloadstart","onlosecapture","onlostpointercapture","only","onmark","onmessage","onmessageerror","onmidimessage","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onmove","onmoveend","onmovestart","onmozfullscreenchange","onmozfullscreenerror","onmozorientationchange","onmozpointerlockchange","onmozpointerlockerror","onmscontentzoom","onmsfullscreenchange","onmsfullscreenerror","onmsgesturechange","onmsgesturedoubletap","onmsgestureend","onmsgesturehold","onmsgesturestart","onmsgesturetap","onmsgotpointercapture","onmsinertiastart","onmslostpointercapture","onmsmanipulationstatechanged","onmsneedkey","onmsorientationchange","onmspointercancel","onmspointerdown","onmspointerenter","onmspointerhover","onmspointerleave","onmspointermove","onmspointerout","onmspointerover","onmspointerup","onmssitemodejumplistitemremoved","onmsthumbnailclick","onmute","onnegotiationneeded","onnomatch","onnoupdate","onobsolete","onoffline","ononline","onopen","onorientationchange","onpagechange","onpagehide","onpageshow","onpaste","onpause","onpayerdetailchange","onpaymentmethodchange","onplay","onplaying","onpluginstreamstart","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointerlockchange","onpointerlockerror","onpointermove","onpointerout","onpointerover","onpointerrawupdate","onpointerup","onpopstate","onprocessorerror","onprogress","onpropertychange","onratechange","onreading","onreadystatechange","onrejectionhandled","onrelease","onremove","onremovesourcebuffer","onremovestream","onremovetrack","onrepeat","onreset","onresize","onresizeend","onresizestart","onresourcetimingbufferfull","onresult","onresume","onrowenter","onrowexit","onrowsdelete","onrowsinserted","onscroll","onsearch","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectedcandidatepairchange","onselectend","onselectionchange","onselectstart","onshippingaddresschange","onshippingoptionchange","onshow","onsignalingstatechange","onsoundend","onsoundstart","onsourceclose","onsourceclosed","onsourceended","onsourceopen","onspeechend","onspeechstart","onsqueeze","onsqueezeend","onsqueezestart","onstalled","onstart","onstatechange","onstop","onstorage","onstoragecommit","onsubmit","onsuccess","onsuspend","onterminate","ontextinput","ontimeout","ontimeupdate","ontoggle","ontonechange","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontrack","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onunhandledrejection","onunload","onunmute","onupdate","onupdateend","onupdatefound","onupdateready","onupdatestart","onupgradeneeded","onuserproximity","onversionchange","onvisibilitychange","onvoiceschanged","onvolumechange","onvrdisplayactivate","onvrdisplayconnect","onvrdisplaydeactivate","onvrdisplaydisconnect","onvrdisplaypresentchange","onwaiting","onwaitingforkey","onwarning","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkitcurrentplaybacktargetiswirelesschanged","onwebkitfullscreenchange","onwebkitfullscreenerror","onwebkitkeyadded","onwebkitkeyerror","onwebkitkeymessage","onwebkitneedkey","onwebkitorientationchange","onwebkitplaybacktargetavailabilitychanged","onwebkitpointerlockchange","onwebkitpointerlockerror","onwebkitresourcetimingbufferfull","onwebkittransitionend","onwheel","onzoom","opacity","open","openCursor","openDatabase","openKeyCursor","opened","opener","opera","operationType","operator","opr","optimum","options","or","order","orderX","orderY","ordered","org","organization","orient","orientAngle","orientType","orientation","orientationX","orientationY","orientationZ","origin","originalPolicy","originalTarget","orphans","oscpu","outerHTML","outerHeight","outerText","outerWidth","outline","outline-color","outline-offset","outline-style","outline-width","outlineColor","outlineOffset","outlineStyle","outlineWidth","outputBuffer","outputLatency","outputs","overflow","overflow-anchor","overflow-block","overflow-inline","overflow-wrap","overflow-x","overflow-y","overflowAnchor","overflowBlock","overflowInline","overflowWrap","overflowX","overflowY","overrideMimeType","oversample","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","ownKeys","ownerDocument","ownerElement","ownerNode","ownerRule","ownerSVGElement","owningElement","p1","p2","p3","p4","packetSize","packets","pad","padEnd","padStart","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingBottom","paddingInline","paddingInlineEnd","paddingInlineStart","paddingLeft","paddingRight","paddingTop","page","page-break-after","page-break-before","page-break-inside","pageBreakAfter","pageBreakBefore","pageBreakInside","pageCount","pageLeft","pageTop","pageX","pageXOffset","pageY","pageYOffset","pages","paint-order","paintOrder","paintRequests","paintType","paintWorklet","palette","pan","panningModel","parameters","parent","parentElement","parentNode","parentRule","parentStyleSheet","parentTextEdit","parentWindow","parse","parseAll","parseFloat","parseFromString","parseInt","part","participants","passive","password","pasteHTML","path","pathLength","pathSegList","pathSegType","pathSegTypeAsLetter","pathname","pattern","patternContentUnits","patternMismatch","patternTransform","patternUnits","pause","pauseAnimations","pauseOnExit","pauseProfilers","pauseTransformFeedback","paused","payerEmail","payerName","payerPhone","paymentManager","pc","peerIdentity","pending","pendingLocalDescription","pendingRemoteDescription","percent","performance","periodicSync","permission","permissionState","permissions","persist","persisted","personalbar","perspective","perspective-origin","perspectiveOrigin","phone","phoneticFamilyName","phoneticGivenName","photo","pictureInPictureElement","pictureInPictureEnabled","pictureInPictureWindow","ping","pipeThrough","pipeTo","pitch","pixelBottom","pixelDepth","pixelHeight","pixelLeft","pixelRight","pixelStorei","pixelTop","pixelUnitToMillimeterX","pixelUnitToMillimeterY","pixelWidth","place-content","place-items","place-self","placeContent","placeItems","placeSelf","placeholder","platform","platforms","play","playEffect","playState","playbackRate","playbackState","playbackTime","played","playoutDelayHint","playsInline","plugins","pluginspage","pname","pointer-events","pointerBeforeReferenceNode","pointerEnabled","pointerEvents","pointerId","pointerLockElement","pointerType","points","pointsAtX","pointsAtY","pointsAtZ","polygonOffset","pop","populateMatrix","popupWindowFeatures","popupWindowName","popupWindowURI","port","port1","port2","ports","posBottom","posHeight","posLeft","posRight","posTop","posWidth","pose","position","positionAlign","positionX","positionY","positionZ","postError","postMessage","postalCode","poster","pow","powerEfficient","powerOff","preMultiplySelf","precision","preferredStyleSheetSet","preferredStylesheetSet","prefix","preload","prepend","presentation","preserveAlpha","preserveAspectRatio","preserveAspectRatioString","pressed","pressure","prevValue","preventDefault","preventExtensions","preventSilentAccess","previousElementSibling","previousNode","previousPage","previousRect","previousScale","previousSibling","previousTranslate","primaryKey","primitiveType","primitiveUnits","principals","print","priority","privateKey","probablySupportsContext","process","processIceMessage","processingEnd","processingStart","product","productId","productName","productSub","profile","profileEnd","profiles","projectionMatrix","promise","prompt","properties","propertyIsEnumerable","propertyName","protocol","protocolLong","prototype","provider","pseudoClass","pseudoElement","pt","publicId","publicKey","published","pulse","push","pushManager","pushNotification","pushState","put","putImageData","px","quadraticCurveTo","qualifier","quaternion","query","queryCommandEnabled","queryCommandIndeterm","queryCommandState","queryCommandSupported","queryCommandText","queryCommandValue","querySelector","querySelectorAll","queueMicrotask","quote","quotes","r","r1","r2","race","rad","radiogroup","radiusX","radiusY","random","range","rangeCount","rangeMax","rangeMin","rangeOffset","rangeOverflow","rangeParent","rangeUnderflow","rate","ratio","raw","rawId","read","readAsArrayBuffer","readAsBinaryString","readAsBlob","readAsDataURL","readAsText","readBuffer","readEntries","readOnly","readPixels","readReportRequested","readText","readValue","readable","ready","readyState","reason","reboot","receivedAlert","receiver","receivers","recipient","reconnect","recordNumber","recordsAvailable","recordset","rect","red","redEyeReduction","redirect","redirectCount","redirectEnd","redirectStart","redirected","reduce","reduceRight","reduction","refDistance","refX","refY","referenceNode","referenceSpace","referrer","referrerPolicy","refresh","region","regionAnchorX","regionAnchorY","regionId","regions","register","registerContentHandler","registerElement","registerProperty","registerProtocolHandler","reject","rel","relList","relatedAddress","relatedNode","relatedPort","relatedTarget","release","releaseCapture","releaseEvents","releaseInterface","releaseLock","releasePointerCapture","releaseShaderCompiler","reliable","reliableWrite","reload","rem","remainingSpace","remote","remoteDescription","remove","removeAllRanges","removeAttribute","removeAttributeNS","removeAttributeNode","removeBehavior","removeChild","removeCue","removeEventListener","removeFilter","removeImport","removeItem","removeListener","removeNamedItem","removeNamedItemNS","removeNode","removeParameter","removeProperty","removeRange","removeRegion","removeRule","removeSiteSpecificTrackingException","removeSourceBuffer","removeStream","removeTrack","removeVariable","removeWakeLockListener","removeWebWideTrackingException","removed","removedNodes","renderHeight","renderState","renderTime","renderWidth","renderbufferStorage","renderbufferStorageMultisample","renderedBuffer","renderingMode","renotify","repeat","replace","replaceAdjacentText","replaceAll","replaceChild","replaceChildren","replaceData","replaceId","replaceItem","replaceNode","replaceState","replaceSync","replaceTrack","replaceWholeText","replaceWith","reportValidity","request","requestAnimationFrame","requestAutocomplete","requestData","requestDevice","requestFrame","requestFullscreen","requestHitTestSource","requestHitTestSourceForTransientInput","requestId","requestIdleCallback","requestMIDIAccess","requestMediaKeySystemAccess","requestPermission","requestPictureInPicture","requestPointerLock","requestPresent","requestReferenceSpace","requestSession","requestStart","requestStorageAccess","requestSubmit","requestVideoFrameCallback","requestingWindow","requireInteraction","required","requiredExtensions","requiredFeatures","reset","resetPose","resetTransform","resize","resizeBy","resizeTo","resolve","response","responseBody","responseEnd","responseReady","responseStart","responseText","responseType","responseURL","responseXML","restartIce","restore","result","resultIndex","resultType","results","resume","resumeProfilers","resumeTransformFeedback","retry","returnValue","rev","reverse","reversed","revocable","revokeObjectURL","rgbColor","right","rightContext","rightDegrees","rightMargin","rightProjectionMatrix","rightViewMatrix","role","rolloffFactor","root","rootBounds","rootElement","rootMargin","rotate","rotateAxisAngle","rotateAxisAngleSelf","rotateFromVector","rotateFromVectorSelf","rotateSelf","rotation","rotationAngle","rotationRate","round","row-gap","rowGap","rowIndex","rowSpan","rows","rtcpTransport","rtt","ruby-align","ruby-position","rubyAlign","rubyOverhang","rubyPosition","rules","runtime","runtimeStyle","rx","ry","s","safari","sample","sampleCoverage","sampleRate","samplerParameterf","samplerParameteri","sandbox","save","saveData","scale","scale3d","scale3dSelf","scaleNonUniform","scaleNonUniformSelf","scaleSelf","scheme","scissor","scope","scopeName","scoped","screen","screenBrightness","screenEnabled","screenLeft","screenPixelToMillimeterX","screenPixelToMillimeterY","screenTop","screenX","screenY","scriptURL","scripts","scroll","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","scrollAmount","scrollBehavior","scrollBy","scrollByLines","scrollByPages","scrollDelay","scrollHeight","scrollIntoView","scrollIntoViewIfNeeded","scrollLeft","scrollLeftMax","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollMaxX","scrollMaxY","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollRestoration","scrollSnapAlign","scrollSnapType","scrollTo","scrollTop","scrollTopMax","scrollWidth","scrollX","scrollY","scrollbar-color","scrollbar-width","scrollbar3dLightColor","scrollbarArrowColor","scrollbarBaseColor","scrollbarColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarHighlightColor","scrollbarShadowColor","scrollbarTrackColor","scrollbarWidth","scrollbars","scrolling","scrollingElement","sctp","sctpCauseCode","sdp","sdpLineNumber","sdpMLineIndex","sdpMid","seal","search","searchBox","searchBoxJavaBridge_","searchParams","sectionRowIndex","secureConnectionStart","security","seed","seekToNextFrame","seekable","seeking","select","selectAllChildren","selectAlternateInterface","selectConfiguration","selectNode","selectNodeContents","selectNodes","selectSingleNode","selectSubString","selected","selectedIndex","selectedOptions","selectedStyleSheetSet","selectedStylesheetSet","selection","selectionDirection","selectionEnd","selectionStart","selector","selectorText","self","send","sendAsBinary","sendBeacon","sender","sentAlert","sentTimestamp","separator","serialNumber","serializeToString","serverTiming","service","serviceWorker","session","sessionId","sessionStorage","set","setActionHandler","setActive","setAlpha","setAppBadge","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS","setBaseAndExtent","setBigInt64","setBigUint64","setBingCurrentSearchDefault","setCapture","setCodecPreferences","setColor","setCompositeOperation","setConfiguration","setCurrentTime","setCustomValidity","setData","setDate","setDragImage","setEnd","setEndAfter","setEndBefore","setEndPoint","setFillColor","setFilterRes","setFloat32","setFloat64","setFloatValue","setFormValue","setFullYear","setHeaderValue","setHours","setIdentityProvider","setImmediate","setInt16","setInt32","setInt8","setInterval","setItem","setKeyframes","setLineCap","setLineDash","setLineJoin","setLineWidth","setLiveSeekableRange","setLocalDescription","setMatrix","setMatrixValue","setMediaKeys","setMilliseconds","setMinutes","setMiterLimit","setMonth","setNamedItem","setNamedItemNS","setNonUserCodeExceptions","setOrientToAngle","setOrientToAuto","setOrientation","setOverrideHistoryNavigationMode","setPaint","setParameter","setParameters","setPeriodicWave","setPointerCapture","setPosition","setPositionState","setPreference","setProperty","setPrototypeOf","setRGBColor","setRGBColorICCColor","setRadius","setRangeText","setRemoteDescription","setRequestHeader","setResizable","setResourceTimingBufferSize","setRotate","setScale","setSeconds","setSelectionRange","setServerCertificate","setShadow","setSinkId","setSkewX","setSkewY","setStart","setStartAfter","setStartBefore","setStdDeviation","setStreams","setStringValue","setStrokeColor","setSuggestResult","setTargetAtTime","setTargetValueAtTime","setTime","setTimeout","setTransform","setTranslate","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setUint16","setUint32","setUint8","setUri","setValidity","setValueAtTime","setValueCurveAtTime","setVariable","setVelocity","setVersion","setYear","settingName","settingValue","sex","shaderSource","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","shadowRoot","shape","shape-image-threshold","shape-margin","shape-outside","shape-rendering","shapeImageThreshold","shapeMargin","shapeOutside","shapeRendering","sheet","shift","shiftKey","shiftLeft","shippingAddress","shippingOption","shippingType","show","showHelp","showModal","showModalDialog","showModelessDialog","showNotification","sidebar","sign","signal","signalingState","signature","silent","sin","singleNodeValue","sinh","sinkId","sittingToStandingTransform","size","sizeToContent","sizeX","sizeZ","sizes","skewX","skewXSelf","skewY","skewYSelf","slice","slope","slot","small","smil","smooth","smoothingTimeConstant","snapToLines","snapshotItem","snapshotLength","some","sort","sortingCode","source","sourceBuffer","sourceBuffers","sourceCapabilities","sourceFile","sourceIndex","sources","spacing","span","speak","speakAs","speaking","species","specified","specularConstant","specularExponent","speechSynthesis","speed","speedOfSound","spellcheck","splice","split","splitText","spreadMethod","sqrt","src","srcElement","srcFilter","srcObject","srcUrn","srcdoc","srclang","srcset","stack","stackTraceLimit","stacktrace","stageParameters","standalone","standby","start","startContainer","startIce","startMessages","startNotifications","startOffset","startProfiling","startRendering","startShark","startTime","startsWith","state","status","statusCode","statusMessage","statusText","statusbar","stdDeviationX","stdDeviationY","stencilFunc","stencilFuncSeparate","stencilMask","stencilMaskSeparate","stencilOp","stencilOpSeparate","step","stepDown","stepMismatch","stepUp","sticky","stitchTiles","stop","stop-color","stop-opacity","stopColor","stopImmediatePropagation","stopNotifications","stopOpacity","stopProfiling","stopPropagation","stopShark","stopped","storage","storageArea","storageName","storageStatus","store","storeSiteSpecificTrackingException","storeWebWideTrackingException","stpVersion","stream","streams","stretch","strike","string","stringValue","stringify","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeRect","strokeStyle","strokeText","strokeWidth","style","styleFloat","styleMap","styleMedia","styleSheet","styleSheetSets","styleSheets","sub","subarray","subject","submit","submitFrame","submitter","subscribe","substr","substring","substringData","subtle","subtree","suffix","suffixes","summary","sup","supported","supportedContentEncodings","supportedEntryTypes","supports","supportsSession","surfaceScale","surroundContents","suspend","suspendRedraw","swapCache","swapNode","sweepFlag","symbols","sync","sysexEnabled","system","systemCode","systemId","systemLanguage","systemXDPI","systemYDPI","tBodies","tFoot","tHead","tabIndex","table","table-layout","tableLayout","tableValues","tag","tagName","tagUrn","tags","taintEnabled","takePhoto","takeRecords","tan","tangentialPressure","tanh","target","targetElement","targetRayMode","targetRaySpace","targetTouches","targetX","targetY","tcpType","tee","tel","terminate","test","texImage2D","texImage3D","texParameterf","texParameteri","texStorage2D","texStorage3D","texSubImage2D","texSubImage3D","text","text-align","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","textAlign","textAlignLast","textAnchor","textAutospace","textBaseline","textCombineUpright","textContent","textDecoration","textDecorationBlink","textDecorationColor","textDecorationLine","textDecorationLineThrough","textDecorationNone","textDecorationOverline","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textDecorationUnderline","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textIndent","textJustify","textJustifyTrim","textKashida","textKashidaSpace","textLength","textOrientation","textOverflow","textRendering","textShadow","textTracks","textTransform","textUnderlineOffset","textUnderlinePosition","then","threadId","threshold","thresholds","tiltX","tiltY","time","timeEnd","timeLog","timeOrigin","timeRemaining","timeStamp","timecode","timeline","timelineTime","timeout","timestamp","timestampOffset","timing","title","to","toArray","toBlob","toDataURL","toDateString","toElement","toExponential","toFixed","toFloat32Array","toFloat64Array","toGMTString","toISOString","toJSON","toLocaleDateString","toLocaleFormat","toLocaleLowerCase","toLocaleString","toLocaleTimeString","toLocaleUpperCase","toLowerCase","toMatrix","toMethod","toPrecision","toPrimitive","toSdp","toSource","toStaticHTML","toString","toStringTag","toSum","toTimeString","toUTCString","toUpperCase","toggle","toggleAttribute","toggleLongPressEnabled","tone","toneBuffer","tooLong","tooShort","toolbar","top","topMargin","total","totalFrameDelay","totalVideoFrames","touch-action","touchAction","touched","touches","trace","track","trackVisibility","transaction","transactions","transceiver","transferControlToOffscreen","transferFromImageBitmap","transferImageBitmap","transferIn","transferOut","transferSize","transferToImageBitmap","transform","transform-box","transform-origin","transform-style","transformBox","transformFeedbackVaryings","transformOrigin","transformPoint","transformString","transformStyle","transformToDocument","transformToFragment","transition","transition-delay","transition-duration","transition-property","transition-timing-function","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateSelf","translationX","translationY","transport","trim","trimEnd","trimLeft","trimRight","trimStart","trueSpeed","trunc","truncate","trustedTypes","turn","twist","type","typeDetail","typeMismatch","typeMustMatch","types","u2f","ubound","uint16","uint32","uint8","uint8Clamped","undefined","unescape","uneval","unicode","unicode-bidi","unicodeBidi","unicodeRange","uniform1f","uniform1fv","uniform1i","uniform1iv","uniform1ui","uniform1uiv","uniform2f","uniform2fv","uniform2i","uniform2iv","uniform2ui","uniform2uiv","uniform3f","uniform3fv","uniform3i","uniform3iv","uniform3ui","uniform3uiv","uniform4f","uniform4fv","uniform4i","uniform4iv","uniform4ui","uniform4uiv","uniformBlockBinding","uniformMatrix2fv","uniformMatrix2x3fv","uniformMatrix2x4fv","uniformMatrix3fv","uniformMatrix3x2fv","uniformMatrix3x4fv","uniformMatrix4fv","uniformMatrix4x2fv","uniformMatrix4x3fv","unique","uniqueID","uniqueNumber","unit","unitType","units","unloadEventEnd","unloadEventStart","unlock","unmount","unobserve","unpause","unpauseAnimations","unreadCount","unregister","unregisterContentHandler","unregisterProtocolHandler","unscopables","unselectable","unshift","unsubscribe","unsuspendRedraw","unsuspendRedrawAll","unwatch","unwrapKey","upDegrees","upX","upY","upZ","update","updateCommands","updateIce","updateInterval","updatePlaybackRate","updateRenderState","updateSettings","updateTiming","updateViaCache","updateWith","updated","updating","upgrade","upload","uploadTotal","uploaded","upper","upperBound","upperOpen","uri","url","urn","urns","usages","usb","usbVersionMajor","usbVersionMinor","usbVersionSubminor","useCurrentView","useMap","useProgram","usedSpace","user-select","userActivation","userAgent","userChoice","userHandle","userHint","userLanguage","userSelect","userVisibleOnly","username","usernameFragment","utterance","uuid","v8BreakIterator","vAlign","vLink","valid","validate","validateProgram","validationMessage","validity","value","valueAsDate","valueAsNumber","valueAsString","valueInSpecifiedUnits","valueMissing","valueOf","valueText","valueType","values","variable","variant","variationSettings","vector-effect","vectorEffect","velocityAngular","velocityExpansion","velocityX","velocityY","vendor","vendorId","vendorSub","verify","version","vertexAttrib1f","vertexAttrib1fv","vertexAttrib2f","vertexAttrib2fv","vertexAttrib3f","vertexAttrib3fv","vertexAttrib4f","vertexAttrib4fv","vertexAttribDivisor","vertexAttribDivisorANGLE","vertexAttribI4i","vertexAttribI4iv","vertexAttribI4ui","vertexAttribI4uiv","vertexAttribIPointer","vertexAttribPointer","vertical","vertical-align","verticalAlign","verticalOverflow","vh","vibrate","vibrationActuator","videoBitsPerSecond","videoHeight","videoTracks","videoWidth","view","viewBox","viewBoxString","viewTarget","viewTargetString","viewport","viewportAnchorX","viewportAnchorY","viewportElement","views","violatedDirective","visibility","visibilityState","visible","visualViewport","vlinkColor","vmax","vmin","voice","voiceURI","volume","vrml","vspace","vw","w","wait","waitSync","waiting","wake","wakeLock","wand","warn","wasClean","wasDiscarded","watch","watchAvailability","watchPosition","webdriver","webkitAddKey","webkitAlignContent","webkitAlignItems","webkitAlignSelf","webkitAnimation","webkitAnimationDelay","webkitAnimationDirection","webkitAnimationDuration","webkitAnimationFillMode","webkitAnimationIterationCount","webkitAnimationName","webkitAnimationPlayState","webkitAnimationTimingFunction","webkitAppearance","webkitAudioContext","webkitAudioDecodedByteCount","webkitAudioPannerNode","webkitBackfaceVisibility","webkitBackground","webkitBackgroundAttachment","webkitBackgroundClip","webkitBackgroundColor","webkitBackgroundImage","webkitBackgroundOrigin","webkitBackgroundPosition","webkitBackgroundPositionX","webkitBackgroundPositionY","webkitBackgroundRepeat","webkitBackgroundSize","webkitBackingStorePixelRatio","webkitBorderBottomLeftRadius","webkitBorderBottomRightRadius","webkitBorderImage","webkitBorderImageOutset","webkitBorderImageRepeat","webkitBorderImageSlice","webkitBorderImageSource","webkitBorderImageWidth","webkitBorderRadius","webkitBorderTopLeftRadius","webkitBorderTopRightRadius","webkitBoxAlign","webkitBoxDirection","webkitBoxFlex","webkitBoxOrdinalGroup","webkitBoxOrient","webkitBoxPack","webkitBoxShadow","webkitBoxSizing","webkitCancelAnimationFrame","webkitCancelFullScreen","webkitCancelKeyRequest","webkitCancelRequestAnimationFrame","webkitClearResourceTimings","webkitClosedCaptionsVisible","webkitConvertPointFromNodeToPage","webkitConvertPointFromPageToNode","webkitCreateShadowRoot","webkitCurrentFullScreenElement","webkitCurrentPlaybackTargetIsWireless","webkitDecodedFrameCount","webkitDirectionInvertedFromDevice","webkitDisplayingFullscreen","webkitDroppedFrameCount","webkitEnterFullScreen","webkitEnterFullscreen","webkitEntries","webkitExitFullScreen","webkitExitFullscreen","webkitExitPointerLock","webkitFilter","webkitFlex","webkitFlexBasis","webkitFlexDirection","webkitFlexFlow","webkitFlexGrow","webkitFlexShrink","webkitFlexWrap","webkitFullScreenKeyboardInputAllowed","webkitFullscreenElement","webkitFullscreenEnabled","webkitGenerateKeyRequest","webkitGetAsEntry","webkitGetDatabaseNames","webkitGetEntries","webkitGetEntriesByName","webkitGetEntriesByType","webkitGetFlowByName","webkitGetGamepads","webkitGetImageDataHD","webkitGetNamedFlows","webkitGetRegionFlowRanges","webkitGetUserMedia","webkitHasClosedCaptions","webkitHidden","webkitIDBCursor","webkitIDBDatabase","webkitIDBDatabaseError","webkitIDBDatabaseException","webkitIDBFactory","webkitIDBIndex","webkitIDBKeyRange","webkitIDBObjectStore","webkitIDBRequest","webkitIDBTransaction","webkitImageSmoothingEnabled","webkitIndexedDB","webkitInitMessageEvent","webkitIsFullScreen","webkitJustifyContent","webkitKeys","webkitLineClamp","webkitLineDashOffset","webkitLockOrientation","webkitMask","webkitMaskClip","webkitMaskComposite","webkitMaskImage","webkitMaskOrigin","webkitMaskPosition","webkitMaskPositionX","webkitMaskPositionY","webkitMaskRepeat","webkitMaskSize","webkitMatchesSelector","webkitMediaStream","webkitNotifications","webkitOfflineAudioContext","webkitOrder","webkitOrientation","webkitPeerConnection00","webkitPersistentStorage","webkitPerspective","webkitPerspectiveOrigin","webkitPointerLockElement","webkitPostMessage","webkitPreservesPitch","webkitPutImageDataHD","webkitRTCPeerConnection","webkitRegionOverset","webkitRelativePath","webkitRequestAnimationFrame","webkitRequestFileSystem","webkitRequestFullScreen","webkitRequestFullscreen","webkitRequestPointerLock","webkitResolveLocalFileSystemURL","webkitSetMediaKeys","webkitSetResourceTimingBufferSize","webkitShadowRoot","webkitShowPlaybackTargetPicker","webkitSlice","webkitSpeechGrammar","webkitSpeechGrammarList","webkitSpeechRecognition","webkitSpeechRecognitionError","webkitSpeechRecognitionEvent","webkitStorageInfo","webkitSupportsFullscreen","webkitTemporaryStorage","webkitTextFillColor","webkitTextSizeAdjust","webkitTextStroke","webkitTextStrokeColor","webkitTextStrokeWidth","webkitTransform","webkitTransformOrigin","webkitTransformStyle","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitURL","webkitUnlockOrientation","webkitUserSelect","webkitVideoDecodedByteCount","webkitVisibilityState","webkitWirelessVideoPlaybackDisabled","webkitdirectory","webkitdropzone","webstore","weight","whatToShow","wheelDelta","wheelDeltaX","wheelDeltaY","whenDefined","which","white-space","whiteSpace","wholeText","widows","width","will-change","willChange","willValidate","window","withCredentials","word-break","word-spacing","word-wrap","wordBreak","wordSpacing","wordWrap","workerStart","wrap","wrapKey","writable","writableAuxiliaries","write","writeText","writeValue","writeWithoutResponse","writeln","writing-mode","writingMode","x","x1","x2","xChannelSelector","xmlEncoding","xmlStandalone","xmlVersion","xmlbase","xmllang","xmlspace","xor","xr","y","y1","y2","yChannelSelector","yandex","z","z-index","zIndex","zoom","zoomAndPan","zoomRectScreen"];function yl(e,t){e.walk(new Rs((e=>(e instanceof xo?yl(e.tail_node(),t):e instanceof bs?t(e.value):e instanceof Fo&&(yl(e.consequent,t),yl(e.alternative,t)),!0))))}var vl="undefined"==typeof atob?e=>t.from(e,"base64").toString():atob,bl="undefined"==typeof btoa?e=>t.from(e).toString("base64"):btoa;function xl(e){var t=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+/0-9A-Za-z]*=*)\s*$/.exec(e);return t?vl(t[2]):(console.warn("inline source map not found"),null)}function El(e,t,r){t[e]&&r.forEach((r=>{t[r]&&("object"!=typeof t[r]&&(t[r]={}),e in t[r]||(t[r][e]=t[e]))}))}function Sl(e){e&&("props"in e?e.props instanceof Map||(e.props=(e=>{var t=new Map;for(var r in e)mi(e,r)&&"$"===r.charAt(0)&&t.set(r.substr(1),e[r]);return t})(e.props)):e.props=new Map)}function Dl(e){return{props:fi(e.props)}}async function Tl(e,t){var r,n,i=(t=ei(t,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:null,format:null,parse:{},rename:void 0,safari10:!1,sourceMap:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0)).timings&&{start:Date.now()};if(void 0===t.keep_classnames&&(t.keep_classnames=t.keep_fnames),void 0===t.rename&&(t.rename=t.compress&&t.mangle),t.output&&t.format)throw new Error("Please only specify either output or format option, preferrably format.");if(t.format=t.format||t.output||{},El("ecma",t,["parse","compress","format"]),El("ie8",t,["compress","mangle","format"]),El("keep_classnames",t,["compress","mangle"]),El("keep_fnames",t,["compress","mangle"]),El("module",t,["parse","compress","mangle"]),El("safari10",t,["mangle","format"]),El("toplevel",t,["compress","mangle"]),El("warnings",t,["compress"]),t.mangle&&(t.mangle=ei(t.mangle,{cache:t.nameCache&&(t.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),t.mangle.properties&&("object"!=typeof t.mangle.properties&&(t.mangle.properties={}),t.mangle.properties.keep_quoted&&(r=t.mangle.properties.reserved,Array.isArray(r)||(r=[]),t.mangle.properties.reserved=r),t.nameCache&&!("cache"in t.mangle.properties)&&(t.mangle.properties.cache=t.nameCache.props||{})),Sl(t.mangle.cache),Sl(t.mangle.properties.cache)),t.sourceMap&&(t.sourceMap=ei(t.sourceMap,{asObject:!1,content:null,filename:null,includeSources:!1,root:null,url:null},!0)),i&&(i.parse=Date.now()),e instanceof Ma)n=e;else{for(var a in"string"==typeof e&&(e=[e]),t.parse=t.parse||{},t.parse.toplevel=null,e)if(mi(e,a)&&(t.parse.filename=a,t.parse.toplevel=la(e[a],t.parse),t.sourceMap&&"inline"==t.sourceMap.content)){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");t.sourceMap.content=xl(e[a])}n=t.parse.toplevel}r&&"strict"!==t.mangle.properties.keep_quoted&&((e,t)=>{function r(e){ci(t,e)}e.walk(new Rs((e=>{e instanceof Lo&&e.quote?r(e.key):e instanceof Ro&&e.quote?r(e.key.name):e instanceof To&&yl(e.property,r)})))})(n,r),t.wrap&&(n=n.wrap_commonjs(t.wrap)),t.enclose&&(n=n.wrap_enclose(t.enclose)),i&&(i.rename=Date.now()),i&&(i.compress=Date.now()),t.compress&&(n=new fc(t.compress,{mangle_options:t.mangle}).compress(n)),i&&(i.scope=Date.now()),t.mangle&&n.figure_out_scope(t.mangle),i&&(i.mangle=Date.now()),t.mangle&&(ic.reset(),n.compute_char_frequency(t.mangle),n.mangle_names(t.mangle)),i&&(i.properties=Date.now()),t.mangle&&t.mangle.properties&&(n=function(e,t){var r=(t=ei(t,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null,undeclared:!1},!0)).reserved;Array.isArray(r)||(r=[r]);var n=new Set(r);t.builtins||(e=>{hl.forEach(n);var t={},r="object"==typeof global?global:self;function n(t){e.add(t)}["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"].forEach((e=>{t[e]=r[e]||new Function})),["null","true","false","NaN","Infinity","-Infinity","undefined"].forEach(n),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,t.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,t.Map,parseFloat,parseInt,t.Promise,t.Proxy,RangeError,ReferenceError,t.Reflect,t.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,t.WeakMap,t.WeakSet].forEach((e=>{Object.getOwnPropertyNames(e).map(n),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(n)}))})(n);var i,a=-1,o=-1,s=new Map;t.cache?(i=t.cache.props).forEach((e=>{n.add(e)})):i=new Map;var c,l=t.regex&&new RegExp(t.regex),u=!1!==t.debug;u&&(c=!0===t.debug?"":t.debug);var d=new Set,p=new Set,_=new Set,f="strict"===t.keep_quoted;return e.walk(new Rs((e=>{if(e instanceof Jo||e instanceof Ko)_.add(e.key.name);else if(e instanceof Do)_.add(e.property);else if(e instanceof Lo)"string"!=typeof e.key||f&&e.quote||h(e.key);else if(e instanceof Ro)f&&e.key.end.quote||h(e.key.name);else if(e instanceof So){var r=!!t.undeclared;if(!r){for(var n=e;n.expression;)n=n.expression;r=!(n.thedef&&n.thedef.undeclared)}!r||f&&e.quote||h(e.property)}else e instanceof To?f||yl(e.property,h):e instanceof vo&&"Object.defineProperty"==e.expression.print_to_string()?yl(e.args[1],h):e instanceof wo&&"in"===e.operator&&yl(e.left,h)}))),e.transform(new Ls((e=>{e instanceof Jo||e instanceof Ko?e.key.name=v(e.key.name):e instanceof Do?e.property=v(e.property):e instanceof Lo?"string"!=typeof e.key||f&&e.quote||(e.key=y(e.key)):e instanceof Ro?f&&e.key.end.quote||(e.key.name=y(e.key.name)):e instanceof So?f&&e.quote||(e.property=y(e.property)):!t.keep_quoted&&e instanceof To?e.property=b(e.property):e instanceof vo&&"Object.defineProperty"==e.expression.print_to_string()?e.args[1]=b(e.args[1]):e instanceof wo&&"in"===e.operator&&(e.left=b(e.left))})));function m(e){return!p.has(e)&&!n.has(e)&&(t.only_cache?i.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e))}function g(e){return!(l&&!l.test(e))&&!n.has(e)&&(i.has(e)||d.has(e))}function h(e){m(e)&&d.add(e),g(e)||p.add(e)}function y(e){if(!g(e))return e;var t=i.get(e);if(!t){if(u){var r="_$"+e+"$"+c+"_";m(r)&&(t=r)}if(!t)do{t=ic(++a)}while(!m(t));i.set(e,t)}return t}function v(e){let t=s.get(e);return t||(t=ic(++o),s.set(e,t)),t}function b(e){return e.transform(new Ls((e=>{if(e instanceof xo){var t=e.expressions.length-1;e.expressions[t]=b(e.expressions[t])}else e instanceof bs?e.value=y(e.value):e instanceof Fo&&(e.consequent=b(e.consequent),e.alternative=b(e.alternative));return e})))}}(n,t.mangle.properties)),i&&(i.format=Date.now());var o={};if(t.format.ast&&(o.ast=n),!mi(t.format,"code")||t.format.code){if(t.sourceMap&&(t.format.source_map=await(async e=>{var t;e=ei(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var r=new Xn.SourceMapGenerator({file:e.file,sourceRoot:e.root});return e.orig&&(t=await new Xn.SourceMapConsumer(e.orig)).sources.forEach((e=>{var n=t.sourceContentFor(e,!0);n&&r.setSourceContent(e,n)})),{add(n,i,a,o,s,c){if(t){var l=t.originalPositionFor({line:o,column:s});if(null===l.source)return;n=l.source,o=l.line,s=l.column,c=l.name||c}r.addMapping({generated:{line:i+e.dest_line_diff,column:a},original:{line:o+e.orig_line_diff,column:s},source:n,name:c})},get(){return r},toString(){return r.toString()},destroy(){t&&t.destroy&&t.destroy()}}})({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources)){if(e instanceof Ma)throw new Error("original source content unavailable");for(var a in e)mi(e,a)&&t.format.source_map.get().setSourceContent(a,e[a])}delete t.format.ast,delete t.format.code;var s=qs(t.format);if(n.print(s),o.code=s.get(),t.sourceMap)if(t.sourceMap.asObject?o.map=t.format.source_map.get().toJSON():o.map=t.format.source_map.toString(),"inline"==t.sourceMap.url){var c="object"==typeof o.map?JSON.stringify(o.map):o.map;o.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+bl(c)}else t.sourceMap.url&&(o.code+="\n//# sourceMappingURL="+t.sourceMap.url)}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=Dl(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=Dl(t.mangle.properties.cache))),t.format&&t.format.source_map&&t.format.source_map.destroy(),i&&(i.end=Date.now(),o.timings={parse:.001*(i.rename-i.parse),rename:.001*(i.compress-i.rename),compress:.001*(i.scope-i.compress),scope:.001*(i.mangle-i.scope),mangle:.001*(i.properties-i.mangle),properties:.001*(i.format-i.properties),format:.001*(i.end-i.format),total:.001*(i.end-i.start)}),o}const Cl=async(e,t)=>{const r={output:e,sourceMap:null,diagnostics:[]};if(t){const e=t.mangle;if(e){const t=e.properties;t&&t.regex&&(t.regex=new RegExp(t.regex))}t.sourceMap&&(t.compress=void 0)}try{const n=await Tl(e,t);r.output=n.code,r.sourceMap="string"==typeof n.map?JSON.parse(n.map):n.map;const i=t.compress;i&&i.module&&r.output.endsWith("};")&&(r.output=r.output.substring(0,r.output.length-1))}catch(t){t instanceof Error&&console.log(t.stack),kl(e,r.diagnostics,t)}return r},kl=(e,t,r)=>{const n={level:"error",type:"build",language:"javascript",header:"Minify JS",code:"",messageText:r.message,absFilePath:null,relFilePath:null,lines:[]},i=r;if("number"==typeof i.line&&i.line>-1){const t=Y(e),r={lineIndex:i.line-1,lineNumber:i.line,text:t[i.line-1],errorCharStart:i.col,errorLength:0};n.lineNumber=r.lineNumber,n.columnNumber=r.errorCharStart;const a=r.text.slice(n.columnNumber);for(let e=0;e<a.length&&!Al.has(a.charAt(e));e++)r.errorLength++;if(n.lines.push(r),0===r.errorLength&&r.errorCharStart>0&&(r.errorLength=1,r.errorCharStart--),r.lineIndex>0){const e={lineIndex:r.lineIndex-1,lineNumber:r.lineNumber-1,text:t[r.lineIndex-1],errorCharStart:-1,errorLength:-1};n.lines.unshift(e)}if(r.lineIndex+1<t.length){const e={lineIndex:r.lineIndex+1,lineNumber:r.lineNumber+1,text:t[r.lineIndex+1],errorCharStart:-1,errorLength:-1};n.lines.push(e)}}t.push(n)},Al=new Set([" ","=",".",",","?",":",";","(",")","{","}","[","]","|","'",'"',"`"]);var Nl=Xn.SourceMapConsumer,wl=Xn.SourceMapGenerator;r.browser=!c;const Fl={};var Pl,Il=(void 0,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}),Ol=(void 0,function(){return(Ol=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}),Ml=(void 0,(e,t)=>(Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e)),Rl=(void 0,function(e,t){var r,n,i,a,o={label:0,sent(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return s=>(a=>{if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}})([a,s])}}),Ll=(void 0,(e,t)=>{var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}),Bl=(void 0,Pl=(e,t)=>(Pl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&((e,t)=>{e.__proto__=t})||((e,t)=>{for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Pl(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});!function(e){function t(){var e={};return e.prev=e,{head:e,tail:e,size:0}}function r(e,t){return e===t||e!=e&&t!=t}function n(e){var t=e.prev;if(!t||t===e)throw new Error("Illegal state");return t}function i(e){for(;e;){var t=!e.prev;if(e=e.next,!t)return e}}function a(e,t){for(var i=e.tail;i!==e.head;i=n(i))if(r(i.key,t))return i}function o(e,t,r){var n=a(e,t);if(!n){var i=((e,t)=>({key:e,value:t,next:void 0,prev:void 0}))(t,r);return i.prev=e.tail,e.tail.next=i,e.tail=i,e.size++,i}n.value=r}function s(e,t){for(var i=e.tail;i!==e.head;i=n(i)){if(void 0===i.prev)throw new Error("Illegal state");if(r(i.key,t)){if(i.next)i.next.prev=i.prev;else{if(e.tail!==i)throw new Error("Illegal state");e.tail=i.prev}return i.prev.next=i.next,i.next=i.prev,i.prev=void 0,e.size--,i}}}function c(e){for(var t=e.tail;t!==e.head;){var r=n(t);t.next=e.head,t.prev=void 0,t=r}e.head.next=void 0,e.tail=e.head,e.size=0}function l(e,t){for(var r=e.head;r;)(r=i(r))&&t(r.value,r.key)}function u(e,t){if(e)for(var r=e.next();!r.done;r=e.next())t(r.value)}function d(e,t){return{current:e.head,selector:t}}function p(e){return e.current=i(e.current),e.current?{value:e.selector(e.current.key,e.current.value),done:!1}:{value:void 0,done:!0}}var _;(_=e.ShimCollections||(e.ShimCollections={})).createMapShim=function(e){var r=function(){function e(e,t){this._data=d(e,t)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),u(e(r),(e=>{var t=e[0],r=e[1];return n.set(t,r)}))}return Object.defineProperty(n.prototype,"size",{get(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.get=function(e){var t;return null===(t=a(this._mapData,e))||void 0===t?void 0:t.value},n.prototype.set=function(e,t){return o(this._mapData,e,t),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,((e,t)=>e))},n.prototype.values=function(){return new r(this._mapData,((e,t)=>t))},n.prototype.entries=function(){return new r(this._mapData,((e,t)=>[e,t]))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()},_.createSetShim=function(e){var r=function(){function e(e,t){this._data=d(e,t)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),u(e(r),(e=>n.add(e)))}return Object.defineProperty(n.prototype,"size",{get(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.add=function(e){return o(this._mapData,e,e),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,((e,t)=>e))},n.prototype.values=function(){return new r(this._mapData,((e,t)=>t))},n.prototype.entries=function(){return new r(this._mapData,((e,t)=>[e,t]))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()}}(Fl),(e=>{var t,r;function n(r,n,i){var a,o=null!==(a=t[n]())&&void 0!==a?a:null===e.ShimCollections||void 0===e.ShimCollections?void 0:e.ShimCollections[i](e.getIterator);if(o)return o;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(r," implementation."))}e.versionMajorMinor="4.5",e.version="4.5.4",(r=e.Comparison||(e.Comparison={}))[r.LessThan=-1]="LessThan",r[r.EqualTo=0]="EqualTo",r[r.GreaterThan=1]="GreaterThan",(e=>{e.tryGetNativeMap=()=>"undefined"!=typeof Map&&"entries"in Map.prototype&&1===new Map([[0,0]]).size?Map:void 0,e.tryGetNativeSet=()=>"undefined"!=typeof Set&&"entries"in Set.prototype&&1===new Set([0]).size?Set:void 0})(t||(t={})),e.Map=n("Map","tryGetNativeMap","createMapShim"),e.Set=n("Set","tryGetNativeSet","createSetShim")})(Fl),function(e){function t(e,t,r){if(void 0===r&&(r=P),e)for(var n=0,i=e;n<i.length;n++)if(r(i[n],t))return!0;return!1}function r(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++)if(t(n[r]))return!0}return!1}function n(e,t){return r(t)?r(e)?Il(Il([],e,!0),t,!0):t:e}function i(e,t){return t}function a(e){return e.map(i)}function o(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function s(e,t){return t<0?e.length+t:t}function c(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:s(t,r),n=void 0===n?t.length:s(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function l(e,r,n){return!t(e,r,n)&&(e.push(r),!0)}function u(e,t,r){t.sort(((t,n)=>r(e[t],e[n])||O(t,n)))}function d(e,t){return 0===e.length?e:e.slice().sort(t)}function p(e){var t=0;return{next:()=>t===e.length?{value:void 0,done:!0}:(t++,{value:e[t-1],done:!1})}}function _(e,t,r,n,i){return f(e,r(t),r,n,i)}function f(e,t,n,i,a){if(!r(e))return-1;for(var o=a||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(i(n(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function m(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.getIterator=t=>{if(t){if(T(t))return p(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}},e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=()=>new e.Map,e.createMapFromTemplate=t=>{var r=new e.Map;for(var n in t)g.call(t,n)&&r.set(n,t[n]);return r},e.length=e=>e?e.length:0,e.forEach=(e,t)=>{if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},e.forEachRight=(e,t)=>{if(e)for(var r=e.length-1;r>=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=(e,t)=>{if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},e.firstDefinedIterator=(e,t)=>{for(;;){var r=e.next();if(r.done)return;var n=t(r.value);if(void 0!==n)return n}},e.reduceLeftIterator=(e,t,r)=>{var n=r;if(e)for(var i=e.next(),a=0;!i.done;i=e.next(),a++)n=t(n,i.value,a);return n},e.zipWith=(t,r,n)=>{var i=[];e.Debug.assertEqual(t.length,r.length);for(var a=0;a<t.length;a++)i.push(n(t[a],r[a],a));return i},e.zipToIterator=(t,r)=>{e.Debug.assertEqual(t.length,r.length);var n=0;return{next:()=>n===t.length?{value:void 0,done:!0}:(n++,{value:[t[n-1],r[n-1]],done:!1})}},e.zipToMap=(t,r)=>{e.Debug.assert(t.length===r.length);for(var n=new e.Map,i=0;i<t.length;++i)n.set(t[i],r[i]);return n},e.intersperse=(e,t)=>{if(e.length<=1)return e;for(var r=[],n=0,i=e.length;n<i;n++)n&&r.push(t),r.push(e[n]);return r},e.every=(e,t)=>{if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},e.find=(e,t)=>{for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},e.findLast=(e,t)=>{for(var r=e.length-1;r>=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=(e,t,r)=>{for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},e.findLastIndex=(e,t,r)=>{for(var n=void 0===r?e.length-1:r;n>=0;n--)if(t(e[n],n))return n;return-1},e.findMap=(t,r)=>{for(var n=0;n<t.length;n++){var i=r(t[n],n);if(i)return i}return e.Debug.fail()},e.contains=t,e.arraysEqual=(e,t,r)=>(void 0===r&&(r=P),e.length===t.length&&e.every(((e,n)=>r(e,t[n])))),e.indexOfAnyCharCode=(e,r,n)=>{for(var i=n||0;i<e.length;i++)if(t(r,e.charCodeAt(i)))return i;return-1},e.countWhere=(e,t)=>{var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},e.filter=(e,t)=>{if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=(e,t)=>{for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=e=>{e.length=0},e.map=(e,t)=>{var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},e.mapIterator=(e,t)=>({next(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}),e.sameMap=(e,t)=>{if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=e=>{for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(T(i)?c(t,i):t.push(i))}return t},e.flatMap=(t,r)=>{var n;if(t)for(var i=0;i<t.length;i++){var a=r(t[i],i);a&&(n=T(a)?c(n,a):o(n,a))}return n||e.emptyArray},e.flatMapToMutable=(e,t)=>{var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(T(i)?c(r,i):r.push(i))}return r},e.flatMapIterator=(t,r)=>{var n=t.next();if(n.done)return e.emptyIterator;var i=a(n.value);return{next(){for(;;){var e=i.next();if(!e.done)return e;var r=t.next();if(r.done)return r;i=a(r.value)}}};function a(t){var n=r(t);return void 0===n?e.emptyIterator:T(n)?p(n):n}},e.sameFlatMap=(e,t)=>{var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||T(a))&&(r||(r=e.slice(0,n)),T(a)?c(r,a):r.push(a))}return r||e},e.mapAllOrFail=(e,t)=>{for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},e.mapDefined=(e,t)=>{var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},e.mapDefinedIterator=(e,t)=>({next(){for(;;){var r=e.next();if(r.done)return r;var n=t(r.value);if(void 0!==n)return{value:n,done:!1}}}}),e.mapDefinedEntries=(t,r)=>{if(t){var n=new e.Map;return t.forEach(((e,t)=>{var i=r(t,e);if(void 0!==i){var a=i[0],o=i[1];void 0!==a&&void 0!==o&&n.set(a,o)}})),n}},e.mapDefinedValues=(t,r)=>{if(t){var n=new e.Set;return t.forEach((e=>{var t=r(e);void 0!==t&&n.add(t)})),n}},e.getOrUpdate=(e,t,r)=>{if(e.has(t))return e.get(t);var n=r();return e.set(t,n),n},e.tryAddToSet=(e,t)=>!e.has(t)&&(e.add(t),!0),e.emptyIterator={next:()=>({value:void 0,done:!0})},e.singleIterator=e=>{var t=!1;return{next(){var r=t;return t=!0,r?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=(e,t,r)=>{var n;if(e){n=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var l=r(e.slice(s,c),a,s,c);l&&n.push(l),s=c}a=o,c++}}return n},e.mapEntries=(t,r)=>{if(t){var n=new e.Map;return t.forEach(((e,t)=>{var i=r(t,e),a=i[0],o=i[1];n.set(a,o)})),n}},e.some=r,e.getRangesWhere=(e,t,r)=>{for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},e.concatenate=n,e.indicesOf=a,e.deduplicate=(e,t,r)=>0===e.length?[]:1===e.length?e.slice():r?((e,t,r)=>{var n=a(e);u(e,n,r);for(var i=e[n[0]],o=[n[0]],s=1;s<n.length;s++){var c=n[s],l=e[c];t(i,l)||(o.push(c),i=l)}return o.sort(),o.map((t=>e[t]))})(e,t,r):((e,t)=>{for(var r=[],n=0,i=e;n<i.length;n++)l(r,i[n],t);return r})(e,t),e.insertSorted=(e,t,r)=>{if(0!==e.length){var n=_(e,t,k,r);n<0&&e.splice(~n,0,t)}else e.push(t)},e.sortAndDeduplicate=(t,r,n)=>((t,r)=>{if(0===t.length)return e.emptyArray;for(var n=t[0],i=[n],a=1;a<t.length;a++){var o=t[a];switch(r(o,n)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}i.push(n=o)}return i})(d(t,r),n||r||R),e.arrayIsSorted=(e,t)=>{if(e.length<2)return!0;for(var r=e[0],n=0,i=e.slice(1);n<i.length;n++){var a=i[n];if(1===t(r,a))return!1;r=a}return!0},e.arrayIsEqualTo=(e,t,r)=>{if(void 0===r&&(r=P),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},e.compact=e=>{var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},e.relativeComplement=(t,r,n)=>{if(!r||!t||0===r.length||0===t.length)return r;var i=[];e:for(var a=0,o=0;o<r.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;a<t.length;a++)switch(a>s&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=(e,t)=>{for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},e.append=o,e.combine=(e,t)=>void 0===e?t:void 0===t?e:T(e)?T(t)?n(e,t):o(e,t):T(t)?o(t,e):[e,t],e.addRange=c,e.pushIfUnique=l,e.appendIfUnique=(e,t,r)=>e?(l(e,t,r),e):[t],e.sort=d,e.arrayIterator=p,e.arrayReverseIterator=e=>{var t=e.length;return{next:()=>0===t?{value:void 0,done:!0}:(t--,{value:e[t],done:!1})}},e.stableSort=(e,t)=>{var r=a(e);return u(e,r,t),r.map((t=>e[t]))},e.rangeEquals=(e,t,r,n)=>{for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},e.elementAt=(e,t)=>{if(e&&(t=s(e,t))<e.length)return e[t]},e.firstOrUndefined=e=>0===e.length?void 0:e[0],e.first=t=>(e.Debug.assert(0!==t.length),t[0]),e.lastOrUndefined=e=>0===e.length?void 0:e[e.length-1],e.last=t=>(e.Debug.assert(0!==t.length),t[t.length-1]),e.singleOrUndefined=e=>e&&1===e.length?e[0]:void 0,e.singleOrMany=e=>e&&1===e.length?e[0]:e,e.replaceElement=(e,t,r)=>{var n=e.slice(0);return n[t]=r,n},e.binarySearch=_,e.binarySearchKey=f,e.reduceLeft=m;var g=Object.prototype.hasOwnProperty;function h(e,t){return g.call(e,t)}function y(e){var t=[];for(var r in e)g.call(e,r)&&t.push(r);return t}e.hasProperty=h,e.getProperty=(e,t)=>g.call(e,t)?e[t]:void 0,e.getOwnKeys=y,e.getAllKeys=e=>{var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++)l(t,n[r])}while(e=Object.getPrototypeOf(e));return t},e.getOwnValues=e=>{var t=[];for(var r in e)g.call(e,r)&&t.push(e[r]);return t};var v=Object.entries||(e=>{for(var t=y(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=[t[n],e[t[n]]];return r});function b(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function x(e,t,r){void 0===r&&(r=k);for(var n=E(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function E(){var t=new e.Map;return t.add=S,t.remove=D,t}function S(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function D(e,t){var r=this.get(e);r&&(W(r,t),r.length||this.delete(e))}function T(e){return Array.isArray?Array.isArray(e):e instanceof Array}function C(e){}function k(e){return e}function A(e){return e.toLowerCase()}e.getEntries=e=>e?v(e):[],e.arrayOf=(e,t)=>{for(var r=new Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.arrayFrom=b,e.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(void 0!==a)for(var o in a)h(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=(e,t,r)=>{if(void 0===r&&(r=P),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(g.call(e,n)){if(!g.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(g.call(t,n)&&!g.call(e,n))return!1;return!0},e.arrayToMap=(t,r,n)=>{void 0===n&&(n=k);for(var i=new e.Map,a=0,o=t;a<o.length;a++){var s=o[a],c=r(s);void 0!==c&&i.set(c,n(s))}return i},e.arrayToNumericMap=(e,t,r)=>{void 0===r&&(r=k);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToMultiMap=x,e.group=(e,t,r)=>(void 0===r&&(r=k),b(x(e,t).values(),r)),e.clone=e=>{var t={};for(var r in e)g.call(e,r)&&(t[r]=e[r]);return t},e.extend=(e,t)=>{var r={};for(var n in t)g.call(t,n)&&(r[n]=t[n]);for(var n in e)g.call(e,n)&&(r[n]=e[n]);return r},e.copyProperties=(e,t)=>{for(var r in t)g.call(t,r)&&(e[r]=t[r])},e.maybeBind=(e,t)=>t?t.bind(e):void 0,e.createMultiMap=E,e.createUnderscoreEscapedMultiMap=()=>E(),e.isArray=T,e.toArray=e=>T(e)?e:[e],e.isString=e=>"string"==typeof e,e.isNumber=e=>"number"==typeof e,e.tryCast=(e,t)=>void 0!==e&&t(e)?e:void 0,e.cast=(t,r)=>void 0!==t&&r(t)?t:e.Debug.fail("Invalid cast. The supplied value ".concat(t," did not pass the test '").concat(e.Debug.getFunctionName(r),"'.")),e.noop=C,e.returnFalse=()=>!1,e.returnTrue=()=>!0,e.returnUndefined=()=>{},e.identity=k,e.toLowerCase=A;var N,w=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function F(e){return w.test(e)?e.replace(w,A):e}function P(e,t){return e===t}function I(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function O(e,t){return I(e,t)}function M(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function R(e,t){return I(e,t)}e.toFileNameLowerCase=F,e.notImplemented=()=>{throw new Error("Not implemented")},e.memoize=e=>{var t;return()=>(e&&(t=e(),e=void 0),t)},e.memoizeOne=t=>{var r=new e.Map;return e=>{var n="".concat(typeof e,":").concat(e),i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return e=>m(a,((e,t)=>t(e)),e)}return n?i=>n(r(t(e(i)))):r?n=>r(t(e(n))):t?r=>t(e(r)):e?t=>e(t):e=>e},(N=e.AssertionLevel||(e.AssertionLevel={}))[N.None=0]="None",N[N.Normal=1]="Normal",N[N.Aggressive=2]="Aggressive",N[N.VeryAggressive=3]="VeryAggressive",e.equateValues=P,e.equateStringsCaseInsensitive=(e,t)=>e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase(),e.equateStringsCaseSensitive=(e,t)=>P(e,t),e.compareValues=O,e.compareTextSpans=(e,t)=>O(null==e?void 0:e.start,null==t?void 0:t.start)||O(null==e?void 0:e.length,null==t?void 0:t.length),e.min=(e,t,r)=>-1===r(e,t)?e:t,e.compareStringsCaseInsensitive=M,e.compareStringsCaseSensitive=R,e.getStringComparer=e=>e?M:R;var L,B,j=(()=>{var e,t,r="object"==typeof Intl&&"function"==typeof Intl.Collator?e=>{var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return(e,r)=>n(e,r,t)}:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?e=>{return void 0!==e?i():(e,r)=>n(e,r,t);function t(e,t){return e.localeCompare(t)}}:i;return n=>void 0===n?e||(e=r(n)):"en-US"===n?t||(t=r(n)):r(n);function n(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function i(){return(t,r)=>n(t,r,e);function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return e<t?-1:e>t?1:0}}})();function U(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),l=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var u=o,d=1;d<c;d++)i[d]=a;for(d=c;d<=l;d++){var p=e[o-1].toLowerCase()===t[d-1].toLowerCase()?n[d-1]+.1:n[d-1]+2,_=s===t.charCodeAt(d-1)?n[d-1]:Math.min(n[d]+1,i[d-1]+1,p);i[d]=_,u=Math.min(u,_)}for(d=l+1;d<=t.length;d++)i[d]=a;if(u>r)return;var f=n;n=i,i=f}var m=n[t.length];return m>r?void 0:m}function V(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function z(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function K(e,t){e[t]=e[e.length-1],e.pop()}function W(e,t){return((e,r)=>{for(var n=0;n<e.length;n++)if(e[n]===t)return K(e,n),!0;return!1})(e)}function H(e,t){return 0===e.lastIndexOf(t,0)}function J(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&H(t,r)&&V(t,n)}function $(e,t,r,n){for(var i=0,a=e[n];i<a.length;i++){var o=a[i],s=void 0;r?(s=r.slice()).push(o):s=[o],n===e.length-1?t.push(s):$(e,t,s,n+1)}}e.getUILocale=()=>B,e.setUILocale=e=>{B!==e&&(B=e,L=void 0)},e.compareStringsCaseSensitiveUI=(e,t)=>(L||(L=j(B)))(e,t),e.compareProperties=(e,t,r,n)=>e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r]),e.compareBooleans=(e,t)=>O(e?1:0,t?1:0),e.getSpellingSuggestion=(t,r,n)=>{for(var i,a=Math.min(2,Math.floor(.34*t.length)),o=Math.floor(.4*t.length)+1,s=0,c=r;s<c.length;s++){var l=c[s],u=n(l);if(void 0!==u&&Math.abs(u.length-t.length)<=a){if(u===t)continue;if(u.length<3&&u.toLowerCase()!==t.toLowerCase())continue;var d=U(t,u,o-.1);if(void 0===d)continue;e.Debug.assert(d<o),o=d,i=l}}return i},e.endsWith=V,e.removeSuffix=(e,t)=>V(e,t)?e.slice(0,e.length-t.length):e,e.tryRemoveSuffix=(e,t)=>V(e,t)?e.slice(0,e.length-t.length):void 0,e.stringContains=(e,t)=>-1!==e.indexOf(t),e.removeMinAndVersionNumbers=e=>{for(var t=e.length,r=t-1;r>0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=(e,t)=>{for(var r=0;r<e.length;r++)if(e[r]===t)return z(e,r),!0;return!1},e.orderedRemoveItemAt=z,e.unorderedRemoveItemAt=K,e.unorderedRemoveItem=W,e.createGetCanonicalFileName=e=>e?k:F,e.patternText=e=>{var t=e.prefix,r=e.suffix;return"".concat(t,"*").concat(r)},e.matchedText=(t,r)=>(e.Debug.assert(J(t,r)),r.substring(t.prefix.length,r.length-t.suffix.length)),e.findBestPatternMatch=(e,t,r)=>{for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);J(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},e.startsWith=H,e.removePrefix=(e,t)=>H(e,t)?e.substr(t.length):e,e.tryRemovePrefix=(e,t,r)=>(void 0===r&&(r=k),H(r(e),r(t))?e.substring(t.length):void 0),e.and=(e,t)=>r=>e(r)&&t(r),e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,i=e;n<i.length;n++){var a=i[n];if(a.apply(void 0,t))return!0}return!1}},e.not=e=>function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!e.apply(void 0,t)},e.assertType=e=>{},e.singleElementArray=e=>void 0===e?void 0:[e],e.enumerateInsertsAndDeletes=(e,t,r,n,i,a)=>{a=a||C;for(var o=0,s=0,c=e.length,l=t.length,u=!1;o<c&&s<l;){var d=e[o],p=t[s],_=r(d,p);-1===_?(n(d),o++,u=!0):1===_?(i(p),s++,u=!0):(a(p,d),o++,s++)}for(;o<c;)n(e[o++]),u=!0;for(;s<l;)i(t[s++]),u=!0;return u},e.fill=(e,t)=>{for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.cartesianProduct=e=>{var t=[];return $(e,t,void 0,0),t},e.padLeft=(e,t,r)=>(void 0===r&&(r=" "),t<=e.length?e:r.repeat(t-e.length)+e),e.padRight=(e,t,r)=>(void 0===r&&(r=" "),t<=e.length?e:e+r.repeat(t-e.length)),e.takeWhile=(e,t)=>{for(var r=e.length,n=0;n<r&&t(e[n]);)n++;return e.slice(0,n)},e.trimString=String.prototype.trim?e=>e.trim():t=>e.trimStringEnd(e.trimStringStart(t)),e.trimStringEnd=String.prototype.trimEnd?e=>e.trimEnd():t=>{for(var r=t.length-1;r>=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}(Fl),function(e){var t;!(e=>{e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"})(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function l(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=l,(i=l=r.log||(r.log={})).error=e=>{c(t.Error,e)},i.warn=e=>{c(t.Warning,e)},i.log=e=>{c(t.Info,e)},i.trace=e=>{c(t.Verbose,e)};var u={};function d(e){return a>=e}function p(t,n){return!!d(t)||(u[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function _(e,t){var r=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||_),r}function f(e,t,r,n){e||(t=t?"False expression: ".concat(t):"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),_(t,n||f))}function m(e,t,r){null==e&&_(t,r||m)}function g(e,t,r){return m(e,t,r||g),e}function h(e,t,r){for(var n=0,i=e;n<i.length;n++)m(i[n],t,r||h)}function y(e,t,r){return h(e,t,r||y),e}function v(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}function b(t,r,n){void 0===t&&(t=0);var i=(t=>{var r=[];for(var n in t){var i=t[n];"number"==typeof i&&r.push([i,n])}return e.stableSort(r,((t,r)=>e.compareValues(t[0],r[0])))})(r);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;s<c.length;s++){var l=c[s],u=l[0],d=l[1];if(u>t)break;0!==u&&u&t&&(a="".concat(a).concat(a?"|":"").concat(d),o&=~u)}if(0===o)return a}else for(var p=0,_=i;p<_.length;p++){var f=_[p];if(u=f[0],d=f[1],u===t)return d}return t.toString()}function x(t){return b(t,e.SyntaxKind,!1)}function E(t){return b(t,e.NodeFlags,!0)}function S(t){return b(t,e.ModifierFlags,!0)}function D(t){return b(t,e.TransformFlags,!0)}function T(t){return b(t,e.EmitFlags,!0)}function C(t){return b(t,e.SymbolFlags,!0)}function k(t){return b(t,e.TypeFlags,!0)}function A(t){return b(t,e.SignatureFlags,!0)}function N(t){return b(t,e.ObjectFlags,!0)}function w(t){return b(t,e.FlowFlags,!0)}r.getAssertionLevel=()=>a,r.setAssertionLevel=t=>{var n=a;if(a=t,t>n)for(var i=0,o=e.getOwnKeys(u);i<o.length;i++){var s=o[i],c=u[s];void 0!==c&&r[s]!==c.assertion&&t>=c.level&&(r[s]=c,u[s]=void 0)}},r.shouldAssert=d,r.fail=_,r.failBadSyntaxKind=function e(t,r,n){return _("".concat(r||"Unexpected node.","\r\nNode ").concat(x(t.kind)," was unexpected."),n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){if(t!==r){var o=n?i?"".concat(n," ").concat(i):n:"";_("Expected ".concat(t," === ").concat(r,". ").concat(o),a||e)}},r.assertLessThan=function e(t,r,n,i){t>=r&&_("Expected ".concat(t," < ").concat(r,". ").concat(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&_("Expected ".concat(t," <= ").concat(r),n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t<r&&_("Expected ".concat(t," >= ").concat(r),n||e)},r.assertIsDefined=m,r.checkDefined=g,r.assertDefined=g,r.assertEachIsDefined=h,r.checkEachDefined=y,r.assertEachDefined=y,r.assertNever=function t(r,n,i){void 0===n&&(n="Illegal value:");var a="object"==typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")&&x?"SyntaxKind: "+x(r.kind):JSON.stringify(r);return _("".concat(n," ").concat(a),i||t)},r.assertEachNode=function t(r,n,i,a){p(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(()=>"Node array did not pass test '".concat(v(n),"'.")),a||t)},r.assertNode=function e(t,r,n,i){p(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(()=>"Node ".concat(x(null==t?void 0:t.kind)," did not pass test '").concat(v(r),"'.")),i||e)},r.assertNotNode=function e(t,r,n,i){p(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(()=>"Node ".concat(x(t.kind)," should not have passed test '").concat(v(r),"'.")),i||e)},r.assertOptionalNode=function e(t,r,n,i){p(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(()=>"Node ".concat(x(null==t?void 0:t.kind)," did not pass test '").concat(v(r),"'.")),i||e)},r.assertOptionalToken=function e(t,r,n,i){p(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(()=>"Node ".concat(x(null==t?void 0:t.kind)," was not a '").concat(x(r),"' token.")),i||e)},r.assertMissingNode=function e(t,r,n){p(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(()=>"Node ".concat(x(t.kind)," was unexpected'.")),n||e)},r.type=e=>{},r.getFunctionName=v,r.formatSymbol=t=>"{ name: ".concat(e.unescapeLeadingUnderscores(t.escapedName),"; flags: ").concat(C(t.flags),"; declarations: ").concat(e.map(t.declarations,(e=>x(e.kind)))," }"),r.formatEnum=b,r.formatSyntaxKind=x,r.formatSnippetKind=t=>b(t,e.SnippetKind,!1),r.formatNodeFlags=E,r.formatModifierFlags=S,r.formatTransformFlags=D,r.formatEmitFlags=T,r.formatSymbolFlags=C,r.formatTypeFlags=k,r.formatSignatureFlags=A,r.formatObjectFlags=N,r.formatFlowFlags=w;var F,P,I,O=!1;function M(e){return(()=>{if(B(),!F)throw new Error("Debugging helpers could not be loaded.");return F})().formatControlFlowGraph(e)}function R(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return"".concat(e).concat(t?" (".concat(w(t),")"):"")}},__debugFlowFlags:{get(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value(){return M(this)}}})}function L(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>(e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e))}})}function B(){if(!O){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return"".concat(t," '").concat(e.symbolName(this),"'").concat(r?" (".concat(C(r),")"):"")}},__debugFlags:{get(){return C(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return"".concat(t).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(r?" (".concat(N(r),")"):"")}},__debugFlags:{get(){return k(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get(){return A(this.flags)}},__debugSignatureToString:{value(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n<i.length;n++){var a=i[n];a.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(a.prototype,{__tsDebuggerDisplay:{value(){var t=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":x(this.kind);return"".concat(t).concat(this.flags?" (".concat(E(this.flags),")"):"")}},__debugKind:{get(){return x(this.kind)}},__debugNodeFlags:{get(){return E(this.flags)}},__debugModifierFlags:{get(){return S(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get(){return D(this.transformFlags)}},__debugIsParseTreeNode:{get(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get(){return T(e.getEmitFlags(this))}},__debugGetText:{value(t){if(e.nodeIsSynthesized(this))return"";var n=(void 0===r&&"function"==typeof WeakMap&&(r=new WeakMap),r),i=null==n?void 0:n.get(this);if(void 0===i){var a=e.getParseTreeNode(this),o=a&&e.getSourceFileOfNode(a);i=o?e.getSourceTextOfNodeFromSourceFile(o,a,t):"",null==n||n.set(this,i)}return i}}})}try{if(e.sys&&e.sys.require){var o=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),s=e.sys.require(o,"./compiler-debug");s.error||(s.module.init(e),F=s.module)}}catch(e){}O=!0}}function j(t,r,n,i,a){var o=r?"DeprecationError: ":"DeprecationWarning: ";return o+="'".concat(t,"' "),o+=i?"has been deprecated since v".concat(i):"is deprecated",(o+=r?" and can no longer be used.":n?" and will no longer be usable after v".concat(n,"."):".")+(a?" ".concat(e.formatStringFromArgs(a,[t],0)):"")}r.printControlFlowGraph=e=>console.log(M(e)),r.formatControlFlowGraph=M,r.attachFlowNodeDebugInfo=e=>{O&&("function"==typeof Object.setPrototypeOf?(P||R(P=Object.create(Object.prototype)),Object.setPrototypeOf(e,P)):R(e))},r.attachNodeArrayDebugInfo=e=>{O&&("function"==typeof Object.setPrototypeOf?(I||L(I=Object.create(Array.prototype)),Object.setPrototypeOf(e,I)):L(e))},r.enableDebugInfo=B,r.deprecate=function(t,r){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(((t,r)=>{var n,i;void 0===r&&(r={});var a="string"==typeof r.typeScriptVersion?new e.Version(r.typeScriptVersion):null!==(n=r.typeScriptVersion)&&void 0!==n?n:o(),s="string"==typeof r.errorAfter?new e.Version(r.errorAfter):r.errorAfter,c="string"==typeof r.warnAfter?new e.Version(r.warnAfter):r.warnAfter,u="string"==typeof r.since?new e.Version(r.since):null!==(i=r.since)&&void 0!==i?i:c,d=r.error||s&&a.compareTo(s)<=0,p=!c||a.compareTo(c)>=0;return d?((e,t,r,n)=>{var i=j(e,!0,t,r,n);return()=>{throw new TypeError(i)}})(t,s,u,r.message):p?((e,t,r,n)=>{var i=!1;return()=>{i||(l.warn(j(e,!1,t,r,n)),i=!0)}})(t,s,u,r.message):e.noop})(v(t),r),t)}}(e.Debug||(e.Debug={}))}(Fl),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var l=e.Debug.checkDefined(o(t),"Invalid version");t=l.major,i=l.minor,a=l.patch,s=l.prerelease,c=l.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=e=>{var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||((t,r)=>{if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a<n;a++){var o=t[a],s=r[a];if(o!==s){var c=i.test(o),l=i.test(s);if(c||l){if(c!==l)return c?-1:1;if(u=e.compareValues(+o,+s))return u}else{var u;if(u=e.compareStringsCaseSensitive(o,s))return u}}}return e.compareValues(t.length,r.length)})(this.prerelease,t.prerelease)},t.prototype.increment=function(r){switch(r){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(r)}},t.prototype.toString=function(){var t="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(t+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(t+="+".concat(this.build.join("."))),t},t.zero=new t(0,0,0),t}();function o(e){var i=t.exec(e);if(i){var a=i[1],o=i[2],s=void 0===o?"0":o,c=i[3],l=void 0===c?"0":c,u=i[4],d=void 0===u?"":u,p=i[5],_=void 0===p?"":p;if((!d||r.test(d))&&(!_||n.test(_)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(l,10),prerelease:d,build:_}}}e.Version=a;var s=function(){function t(t){this._alternatives=t?e.Debug.checkDefined(_(t),"Invalid range spec."):e.emptyArray}return t.tryParse=e=>{var r=_(e);if(r){var n=new t("");return n._alternatives=r,n}},t.prototype.test=function(e){return"string"==typeof e&&(e=new a(e)),((e,t)=>{if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++)if(v(e,n[r]))return!0;return!1})(e,this._alternatives)},t.prototype.toString=function(){return t=this._alternatives,e.map(t,x).join(" || ")||"*";var t},t}();e.VersionRange=s;var c=/\|\|/g,l=/\s+/g,u=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,d=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,p=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function _(t){for(var r=[],n=0,i=e.trimString(t).split(c);n<i.length;n++){var a=i[n];if(a){var o=[];a=e.trimString(a);var s=d.exec(a);if(s){if(!m(s[1],s[2],o))return}else for(var u=0,_=a.split(l);u<_.length;u++){var f=_[u],h=p.exec(e.trimString(f));if(!h||!g(h[1],h[2],o))return}r.push(o)}}return r}function f(e){var t=u.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,o=t[3],s=void 0===o?"*":o,c=t[4],l=t[5];return{version:new a(h(r)?0:parseInt(r,10),h(r)||h(i)?0:parseInt(i,10),h(r)||h(i)||h(s)?0:parseInt(s,10),c,l),major:r,minor:i,patch:s}}}function m(e,t,r){var n=f(e);if(!n)return!1;var i=f(t);return!!i&&(h(n.major)||r.push(y(">=",n.version)),h(i.major)||r.push(h(i.minor)?y("<",i.version.increment("major")):h(i.patch)?y("<",i.version.increment("minor")):y("<=",i.version)),!0)}function g(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(h(o))"<"!==e&&">"!==e||r.push(y("<",a.zero));else switch(e){case"~":r.push(y(">=",i)),r.push(y("<",i.increment(h(s)?"major":"minor")));break;case"^":r.push(y(">=",i)),r.push(y("<",i.increment(i.major>0||h(s)?"major":i.minor>0||h(c)?"minor":"patch")));break;case"<":case">=":r.push(y(e,i));break;case"<=":case">":r.push(h(s)?y("<="===e?"<":">=",i.increment("major")):h(c)?y("<="===e?"<":">=",i.increment("minor")):y(e,i));break;case"=":case void 0:h(s)||h(c)?(r.push(y(">=",i)),r.push(y("<",i.increment(h(s)?"major":"minor")))):r.push(y("=",i));break;default:return!1}return!0}function h(e){return"*"===e||"x"===e||"X"===e}function y(e,t){return{operator:e,operand:t}}function v(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!b(e,i.operator,i.operand))return!1}return!0}function b(t,r,n){var i=t.compareTo(n);switch(r){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function x(t){return e.map(t,E).join(" ")}function E(e){return"".concat(e.operator).concat(e.operand)}}(Fl),(e=>{function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var n=(()=>{if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}})()||(()=>{if(void 0!==r&&r.nextTick&&!r.browser&&"object"==typeof module&&"function"==typeof require)try{var n,i=require("perf_hooks"),a=i.performance,o=i.PerformanceObserver;if(t(a,o)){n=a;var s=new e.Version(r.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(s)&&(n={get timeOrigin(){return a.timeOrigin},now:()=>a.now(),mark:e=>a.mark(e),measure(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",a.mark(r)),a.measure(e,t,r),"__performance.measure-fix__"===r&&a.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:n,PerformanceObserver:o}}}catch(e){}})(),i=null==n?void 0:n.performance;e.tryGetNativePerformanceHooks=()=>n,e.timestamp=i?()=>i.now():Date.now?Date.now:()=>+new Date})(Fl),(e=>{!(t=>{var r,n;function i(t,r,n){var i=0;return{enter(){1==++i&&u(r)},exit(){0==--i?(u(n),d(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=(e,r,n,a)=>e?i(r,n,a):t.nullTimer,t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function d(t,r,i){var c,u;if(a){var d=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),p=null!==(u=void 0!==r?s.get(r):void 0)&&void 0!==u?u:o,_=l.get(t)||0;l.set(t,_+(d-p)),null==n||n.measure(t,r,i)}}t.mark=u,t.measure=d,t.getCount=e=>c.get(e)||0,t.getDuration=e=>l.get(e)||0,t.forEachMeasure=e=>{l.forEach(((t,r)=>e(r,t)))},t.isEnabled=()=>a,t.enable=t=>{var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=()=>{a&&(s.clear(),c.clear(),l.clear(),n=void 0,a=!1)}})(e.performance||(e.performance={}))})(Fl),(e=>{var t,n,i={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var a=null!==(t=r.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=require(a)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:i})(Fl),(e=>{var t;!(t=>{var n,i,a,o,s=0,c=0,l=[],u=[];t.startTracing=(o,d,p)=>{if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=require("fs")}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}i=o,l.length=0,void 0===a&&(a=e.combinePaths(d,"legend.json")),n.existsSync(d)||n.mkdirSync(d,{recursive:!0});var _="build"===i?".".concat(r.pid,"-").concat(++s):"server"===i?".".concat(r.pid):"",f=e.combinePaths(d,"trace".concat(_,".json")),m=e.combinePaths(d,"types".concat(_,".json"));u.push({configFilePath:p,tracePath:f,typesPath:m}),c=n.openSync(f,"w"),e.tracing=t;var g={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(c,"[\n"+[Ol({name:"process_name",args:{name:"tsc"}},g),Ol({name:"thread_name",args:{name:"Main"}},g),Ol(Ol({name:"TracingStartedInBrowser"},g),{cat:"disabled-by-default-devtools.timeline"})].map((e=>JSON.stringify(e))).join(",\n"))},t.stopTracing=()=>{e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!l.length==("server"!==i)),n.writeSync(c,"\n]\n"),n.closeSync(c),e.tracing=void 0,l.length?(t=>{var r,i,a,o,s,c,l,d,p,_,m,g,h,y,v,b,x,E,S,D,T,C;e.performance.mark("beginDumpTypes");var k=u[u.length-1].typesPath,A=n.openSync(k,"w"),N=new e.Map;n.writeSync(A,"[");for(var w=t.length,F=0;F<w;F++){var P=t[F],I=P.objectFlags,O=null!==(r=P.aliasSymbol)&&void 0!==r?r:P.symbol,M=void 0;if(16&I|2944&P.flags)try{M=null===(i=P.checker)||void 0===i?void 0:i.typeToString(P)}catch(e){M=void 0}var R={};if(8388608&P.flags){var L=P;R={indexedAccessObjectType:null===(a=L.objectType)||void 0===a?void 0:a.id,indexedAccessIndexType:null===(o=L.indexType)||void 0===o?void 0:o.id}}var B={};if(4&I){var j=P;B={instantiatedType:null===(s=j.target)||void 0===s?void 0:s.id,typeArguments:null===(c=j.resolvedTypeArguments)||void 0===c?void 0:c.map((e=>e.id)),referenceLocation:f(j.node)}}var U={};if(16777216&P.flags){var V=P;U={conditionalCheckType:null===(l=V.checkType)||void 0===l?void 0:l.id,conditionalExtendsType:null===(d=V.extendsType)||void 0===d?void 0:d.id,conditionalTrueType:null!==(_=null===(p=V.resolvedTrueType)||void 0===p?void 0:p.id)&&void 0!==_?_:-1,conditionalFalseType:null!==(g=null===(m=V.resolvedFalseType)||void 0===m?void 0:m.id)&&void 0!==g?g:-1}}var z={};if(33554432&P.flags){var K=P;z={substitutionBaseType:null===(h=K.baseType)||void 0===h?void 0:h.id,substituteType:null===(y=K.substitute)||void 0===y?void 0:y.id}}var W={};if(1024&I){var H=P;W={reverseMappedSourceType:null===(v=H.source)||void 0===v?void 0:v.id,reverseMappedMappedType:null===(b=H.mappedType)||void 0===b?void 0:b.id,reverseMappedConstraintType:null===(x=H.constraintType)||void 0===x?void 0:x.id}}var J={};if(256&I){var $=P;J={evolvingArrayElementType:$.elementType.id,evolvingArrayFinalType:null===(E=$.finalArrayType)||void 0===E?void 0:E.id}}var G=void 0,q=P.checker.getRecursionIdentity(P);q&&((G=N.get(q))||(G=N.size,N.set(q,G)));var X=Ol(Ol(Ol(Ol(Ol(Ol(Ol({id:P.id,intrinsicName:P.intrinsicName,symbolName:(null==O?void 0:O.escapedName)&&e.unescapeLeadingUnderscores(O.escapedName),recursionId:G,isTuple:!!(8&I)||void 0,unionTypes:1048576&P.flags?null===(S=P.types)||void 0===S?void 0:S.map((e=>e.id)):void 0,intersectionTypes:2097152&P.flags?P.types.map((e=>e.id)):void 0,aliasTypeArguments:null===(D=P.aliasTypeArguments)||void 0===D?void 0:D.map((e=>e.id)),keyofType:4194304&P.flags?null===(T=P.type)||void 0===T?void 0:T.id:void 0},R),B),U),z),W),J),{destructuringPattern:f(P.pattern),firstDeclaration:f(null===(C=null==O?void 0:O.declarations)||void 0===C?void 0:C[0]),flags:e.Debug.formatTypeFlags(P.flags).split("|"),display:M});n.writeSync(A,JSON.stringify(X)),F<w-1&&n.writeSync(A,",\n")}n.writeSync(A,"]\n"),n.closeSync(A),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")})(l):u[u.length-1].typesPath=void 0},t.recordType=e=>{"server"!==i&&l.push(e)},(o=t.Phase||(t.Phase={})).Parse="parse",o.Program="program",o.Bind="bind",o.Check="check",o.CheckTypes="checkTypes",o.Emit="emit",o.Session="session",t.instant=(e,t,r)=>{_("I",e,t,r,'"s":"g"')};var d=[];function p(e,t){var r=d[e],n=r.phase,i=r.name,a=r.args,o=r.time;r.separateBeginAndEnd?_("E",n,i,a,void 0,t):1e4-o%1e4<=t-o&&_("X",n,i,a,'"dur":'.concat(t-o),o)}function _(t,r,a,o,s,l){void 0===l&&(l=1e3*e.timestamp()),"server"===i&&"checkTypes"===r||(e.performance.mark("beginTracing"),n.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'.concat(t,'","cat":"').concat(r,'","ts":').concat(l,',"name":"').concat(a,'"')),s&&n.writeSync(c,",".concat(s)),o&&n.writeSync(c,',"args":'.concat(JSON.stringify(o))),n.writeSync(c,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function f(t){var r=e.getSourceFileOfNode(t);return r?{path:r.path,start:n(e.getLineAndCharacterOfPosition(r,t.pos)),end:n(e.getLineAndCharacterOfPosition(r,t.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}t.push=(t,r,n,i)=>{void 0===i&&(i=!1),i&&_("B",t,r,n),d.push({phase:t,name:r,args:n,time:1e3*e.timestamp(),separateBeginAndEnd:i})},t.pop=()=>{e.Debug.assert(d.length>0),p(d.length-1,1e3*e.timestamp()),d.length--},t.popAll=()=>{for(var t=1e3*e.timestamp(),r=d.length-1;r>=0;r--)p(r,t);d.length=0},t.dumpLegend=()=>{a&&n.writeFileSync(a,JSON.stringify(u))}})(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend})(Fl),(e=>{var t,r,n,i,a,o,s,c,l,u,d,p,_,f,m,g,h,y,v,b,x,E,S,D,T,C,k,A,N,w,F,P,I,O,M,R,L,B,j,U,V,z,K,W,H,J,$,G,q,X,Y,Q,Z,ee,te,re,ne,ie,ae,oe,se,ce,le,ue,de,pe,_e;(l=e.SyntaxKind||(e.SyntaxKind={}))[l.Unknown=0]="Unknown",l[l.EndOfFileToken=1]="EndOfFileToken",l[l.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",l[l.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",l[l.NewLineTrivia=4]="NewLineTrivia",l[l.WhitespaceTrivia=5]="WhitespaceTrivia",l[l.ShebangTrivia=6]="ShebangTrivia",l[l.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",l[l.NumericLiteral=8]="NumericLiteral",l[l.BigIntLiteral=9]="BigIntLiteral",l[l.StringLiteral=10]="StringLiteral",l[l.JsxText=11]="JsxText",l[l.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",l[l.RegularExpressionLiteral=13]="RegularExpressionLiteral",l[l.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",l[l.TemplateHead=15]="TemplateHead",l[l.TemplateMiddle=16]="TemplateMiddle",l[l.TemplateTail=17]="TemplateTail",l[l.OpenBraceToken=18]="OpenBraceToken",l[l.CloseBraceToken=19]="CloseBraceToken",l[l.OpenParenToken=20]="OpenParenToken",l[l.CloseParenToken=21]="CloseParenToken",l[l.OpenBracketToken=22]="OpenBracketToken",l[l.CloseBracketToken=23]="CloseBracketToken",l[l.DotToken=24]="DotToken",l[l.DotDotDotToken=25]="DotDotDotToken",l[l.SemicolonToken=26]="SemicolonToken",l[l.CommaToken=27]="CommaToken",l[l.QuestionDotToken=28]="QuestionDotToken",l[l.LessThanToken=29]="LessThanToken",l[l.LessThanSlashToken=30]="LessThanSlashToken",l[l.GreaterThanToken=31]="GreaterThanToken",l[l.LessThanEqualsToken=32]="LessThanEqualsToken",l[l.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",l[l.EqualsEqualsToken=34]="EqualsEqualsToken",l[l.ExclamationEqualsToken=35]="ExclamationEqualsToken",l[l.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",l[l.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",l[l.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",l[l.PlusToken=39]="PlusToken",l[l.MinusToken=40]="MinusToken",l[l.AsteriskToken=41]="AsteriskToken",l[l.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",l[l.SlashToken=43]="SlashToken",l[l.PercentToken=44]="PercentToken",l[l.PlusPlusToken=45]="PlusPlusToken",l[l.MinusMinusToken=46]="MinusMinusToken",l[l.LessThanLessThanToken=47]="LessThanLessThanToken",l[l.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",l[l.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",l[l.AmpersandToken=50]="AmpersandToken",l[l.BarToken=51]="BarToken",l[l.CaretToken=52]="CaretToken",l[l.ExclamationToken=53]="ExclamationToken",l[l.TildeToken=54]="TildeToken",l[l.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",l[l.BarBarToken=56]="BarBarToken",l[l.QuestionToken=57]="QuestionToken",l[l.ColonToken=58]="ColonToken",l[l.AtToken=59]="AtToken",l[l.QuestionQuestionToken=60]="QuestionQuestionToken",l[l.BacktickToken=61]="BacktickToken",l[l.HashToken=62]="HashToken",l[l.EqualsToken=63]="EqualsToken",l[l.PlusEqualsToken=64]="PlusEqualsToken",l[l.MinusEqualsToken=65]="MinusEqualsToken",l[l.AsteriskEqualsToken=66]="AsteriskEqualsToken",l[l.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",l[l.SlashEqualsToken=68]="SlashEqualsToken",l[l.PercentEqualsToken=69]="PercentEqualsToken",l[l.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",l[l.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",l[l.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",l[l.AmpersandEqualsToken=73]="AmpersandEqualsToken",l[l.BarEqualsToken=74]="BarEqualsToken",l[l.BarBarEqualsToken=75]="BarBarEqualsToken",l[l.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",l[l.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",l[l.CaretEqualsToken=78]="CaretEqualsToken",l[l.Identifier=79]="Identifier",l[l.PrivateIdentifier=80]="PrivateIdentifier",l[l.BreakKeyword=81]="BreakKeyword",l[l.CaseKeyword=82]="CaseKeyword",l[l.CatchKeyword=83]="CatchKeyword",l[l.ClassKeyword=84]="ClassKeyword",l[l.ConstKeyword=85]="ConstKeyword",l[l.ContinueKeyword=86]="ContinueKeyword",l[l.DebuggerKeyword=87]="DebuggerKeyword",l[l.DefaultKeyword=88]="DefaultKeyword",l[l.DeleteKeyword=89]="DeleteKeyword",l[l.DoKeyword=90]="DoKeyword",l[l.ElseKeyword=91]="ElseKeyword",l[l.EnumKeyword=92]="EnumKeyword",l[l.ExportKeyword=93]="ExportKeyword",l[l.ExtendsKeyword=94]="ExtendsKeyword",l[l.FalseKeyword=95]="FalseKeyword",l[l.FinallyKeyword=96]="FinallyKeyword",l[l.ForKeyword=97]="ForKeyword",l[l.FunctionKeyword=98]="FunctionKeyword",l[l.IfKeyword=99]="IfKeyword",l[l.ImportKeyword=100]="ImportKeyword",l[l.InKeyword=101]="InKeyword",l[l.InstanceOfKeyword=102]="InstanceOfKeyword",l[l.NewKeyword=103]="NewKeyword",l[l.NullKeyword=104]="NullKeyword",l[l.ReturnKeyword=105]="ReturnKeyword",l[l.SuperKeyword=106]="SuperKeyword",l[l.SwitchKeyword=107]="SwitchKeyword",l[l.ThisKeyword=108]="ThisKeyword",l[l.ThrowKeyword=109]="ThrowKeyword",l[l.TrueKeyword=110]="TrueKeyword",l[l.TryKeyword=111]="TryKeyword",l[l.TypeOfKeyword=112]="TypeOfKeyword",l[l.VarKeyword=113]="VarKeyword",l[l.VoidKeyword=114]="VoidKeyword",l[l.WhileKeyword=115]="WhileKeyword",l[l.WithKeyword=116]="WithKeyword",l[l.ImplementsKeyword=117]="ImplementsKeyword",l[l.InterfaceKeyword=118]="InterfaceKeyword",l[l.LetKeyword=119]="LetKeyword",l[l.PackageKeyword=120]="PackageKeyword",l[l.PrivateKeyword=121]="PrivateKeyword",l[l.ProtectedKeyword=122]="ProtectedKeyword",l[l.PublicKeyword=123]="PublicKeyword",l[l.StaticKeyword=124]="StaticKeyword",l[l.YieldKeyword=125]="YieldKeyword",l[l.AbstractKeyword=126]="AbstractKeyword",l[l.AsKeyword=127]="AsKeyword",l[l.AssertsKeyword=128]="AssertsKeyword",l[l.AssertKeyword=129]="AssertKeyword",l[l.AnyKeyword=130]="AnyKeyword",l[l.AsyncKeyword=131]="AsyncKeyword",l[l.AwaitKeyword=132]="AwaitKeyword",l[l.BooleanKeyword=133]="BooleanKeyword",l[l.ConstructorKeyword=134]="ConstructorKeyword",l[l.DeclareKeyword=135]="DeclareKeyword",l[l.GetKeyword=136]="GetKeyword",l[l.InferKeyword=137]="InferKeyword",l[l.IntrinsicKeyword=138]="IntrinsicKeyword",l[l.IsKeyword=139]="IsKeyword",l[l.KeyOfKeyword=140]="KeyOfKeyword",l[l.ModuleKeyword=141]="ModuleKeyword",l[l.NamespaceKeyword=142]="NamespaceKeyword",l[l.NeverKeyword=143]="NeverKeyword",l[l.ReadonlyKeyword=144]="ReadonlyKeyword",l[l.RequireKeyword=145]="RequireKeyword",l[l.NumberKeyword=146]="NumberKeyword",l[l.ObjectKeyword=147]="ObjectKeyword",l[l.SetKeyword=148]="SetKeyword",l[l.StringKeyword=149]="StringKeyword",l[l.SymbolKeyword=150]="SymbolKeyword",l[l.TypeKeyword=151]="TypeKeyword",l[l.UndefinedKeyword=152]="UndefinedKeyword",l[l.UniqueKeyword=153]="UniqueKeyword",l[l.UnknownKeyword=154]="UnknownKeyword",l[l.FromKeyword=155]="FromKeyword",l[l.GlobalKeyword=156]="GlobalKeyword",l[l.BigIntKeyword=157]="BigIntKeyword",l[l.OverrideKeyword=158]="OverrideKeyword",l[l.OfKeyword=159]="OfKeyword",l[l.QualifiedName=160]="QualifiedName",l[l.ComputedPropertyName=161]="ComputedPropertyName",l[l.TypeParameter=162]="TypeParameter",l[l.Parameter=163]="Parameter",l[l.Decorator=164]="Decorator",l[l.PropertySignature=165]="PropertySignature",l[l.PropertyDeclaration=166]="PropertyDeclaration",l[l.MethodSignature=167]="MethodSignature",l[l.MethodDeclaration=168]="MethodDeclaration",l[l.ClassStaticBlockDeclaration=169]="ClassStaticBlockDeclaration",l[l.Constructor=170]="Constructor",l[l.GetAccessor=171]="GetAccessor",l[l.SetAccessor=172]="SetAccessor",l[l.CallSignature=173]="CallSignature",l[l.ConstructSignature=174]="ConstructSignature",l[l.IndexSignature=175]="IndexSignature",l[l.TypePredicate=176]="TypePredicate",l[l.TypeReference=177]="TypeReference",l[l.FunctionType=178]="FunctionType",l[l.ConstructorType=179]="ConstructorType",l[l.TypeQuery=180]="TypeQuery",l[l.TypeLiteral=181]="TypeLiteral",l[l.ArrayType=182]="ArrayType",l[l.TupleType=183]="TupleType",l[l.OptionalType=184]="OptionalType",l[l.RestType=185]="RestType",l[l.UnionType=186]="UnionType",l[l.IntersectionType=187]="IntersectionType",l[l.ConditionalType=188]="ConditionalType",l[l.InferType=189]="InferType",l[l.ParenthesizedType=190]="ParenthesizedType",l[l.ThisType=191]="ThisType",l[l.TypeOperator=192]="TypeOperator",l[l.IndexedAccessType=193]="IndexedAccessType",l[l.MappedType=194]="MappedType",l[l.LiteralType=195]="LiteralType",l[l.NamedTupleMember=196]="NamedTupleMember",l[l.TemplateLiteralType=197]="TemplateLiteralType",l[l.TemplateLiteralTypeSpan=198]="TemplateLiteralTypeSpan",l[l.ImportType=199]="ImportType",l[l.ObjectBindingPattern=200]="ObjectBindingPattern",l[l.ArrayBindingPattern=201]="ArrayBindingPattern",l[l.BindingElement=202]="BindingElement",l[l.ArrayLiteralExpression=203]="ArrayLiteralExpression",l[l.ObjectLiteralExpression=204]="ObjectLiteralExpression",l[l.PropertyAccessExpression=205]="PropertyAccessExpression",l[l.ElementAccessExpression=206]="ElementAccessExpression",l[l.CallExpression=207]="CallExpression",l[l.NewExpression=208]="NewExpression",l[l.TaggedTemplateExpression=209]="TaggedTemplateExpression",l[l.TypeAssertionExpression=210]="TypeAssertionExpression",l[l.ParenthesizedExpression=211]="ParenthesizedExpression",l[l.FunctionExpression=212]="FunctionExpression",l[l.ArrowFunction=213]="ArrowFunction",l[l.DeleteExpression=214]="DeleteExpression",l[l.TypeOfExpression=215]="TypeOfExpression",l[l.VoidExpression=216]="VoidExpression",l[l.AwaitExpression=217]="AwaitExpression",l[l.PrefixUnaryExpression=218]="PrefixUnaryExpression",l[l.PostfixUnaryExpression=219]="PostfixUnaryExpression",l[l.BinaryExpression=220]="BinaryExpression",l[l.ConditionalExpression=221]="ConditionalExpression",l[l.TemplateExpression=222]="TemplateExpression",l[l.YieldExpression=223]="YieldExpression",l[l.SpreadElement=224]="SpreadElement",l[l.ClassExpression=225]="ClassExpression",l[l.OmittedExpression=226]="OmittedExpression",l[l.ExpressionWithTypeArguments=227]="ExpressionWithTypeArguments",l[l.AsExpression=228]="AsExpression",l[l.NonNullExpression=229]="NonNullExpression",l[l.MetaProperty=230]="MetaProperty",l[l.SyntheticExpression=231]="SyntheticExpression",l[l.TemplateSpan=232]="TemplateSpan",l[l.SemicolonClassElement=233]="SemicolonClassElement",l[l.Block=234]="Block",l[l.EmptyStatement=235]="EmptyStatement",l[l.VariableStatement=236]="VariableStatement",l[l.ExpressionStatement=237]="ExpressionStatement",l[l.IfStatement=238]="IfStatement",l[l.DoStatement=239]="DoStatement",l[l.WhileStatement=240]="WhileStatement",l[l.ForStatement=241]="ForStatement",l[l.ForInStatement=242]="ForInStatement",l[l.ForOfStatement=243]="ForOfStatement",l[l.ContinueStatement=244]="ContinueStatement",l[l.BreakStatement=245]="BreakStatement",l[l.ReturnStatement=246]="ReturnStatement",l[l.WithStatement=247]="WithStatement",l[l.SwitchStatement=248]="SwitchStatement",l[l.LabeledStatement=249]="LabeledStatement",l[l.ThrowStatement=250]="ThrowStatement",l[l.TryStatement=251]="TryStatement",l[l.DebuggerStatement=252]="DebuggerStatement",l[l.VariableDeclaration=253]="VariableDeclaration",l[l.VariableDeclarationList=254]="VariableDeclarationList",l[l.FunctionDeclaration=255]="FunctionDeclaration",l[l.ClassDeclaration=256]="ClassDeclaration",l[l.InterfaceDeclaration=257]="InterfaceDeclaration",l[l.TypeAliasDeclaration=258]="TypeAliasDeclaration",l[l.EnumDeclaration=259]="EnumDeclaration",l[l.ModuleDeclaration=260]="ModuleDeclaration",l[l.ModuleBlock=261]="ModuleBlock",l[l.CaseBlock=262]="CaseBlock",l[l.NamespaceExportDeclaration=263]="NamespaceExportDeclaration",l[l.ImportEqualsDeclaration=264]="ImportEqualsDeclaration",l[l.ImportDeclaration=265]="ImportDeclaration",l[l.ImportClause=266]="ImportClause",l[l.NamespaceImport=267]="NamespaceImport",l[l.NamedImports=268]="NamedImports",l[l.ImportSpecifier=269]="ImportSpecifier",l[l.ExportAssignment=270]="ExportAssignment",l[l.ExportDeclaration=271]="ExportDeclaration",l[l.NamedExports=272]="NamedExports",l[l.NamespaceExport=273]="NamespaceExport",l[l.ExportSpecifier=274]="ExportSpecifier",l[l.MissingDeclaration=275]="MissingDeclaration",l[l.ExternalModuleReference=276]="ExternalModuleReference",l[l.JsxElement=277]="JsxElement",l[l.JsxSelfClosingElement=278]="JsxSelfClosingElement",l[l.JsxOpeningElement=279]="JsxOpeningElement",l[l.JsxClosingElement=280]="JsxClosingElement",l[l.JsxFragment=281]="JsxFragment",l[l.JsxOpeningFragment=282]="JsxOpeningFragment",l[l.JsxClosingFragment=283]="JsxClosingFragment",l[l.JsxAttribute=284]="JsxAttribute",l[l.JsxAttributes=285]="JsxAttributes",l[l.JsxSpreadAttribute=286]="JsxSpreadAttribute",l[l.JsxExpression=287]="JsxExpression",l[l.CaseClause=288]="CaseClause",l[l.DefaultClause=289]="DefaultClause",l[l.HeritageClause=290]="HeritageClause",l[l.CatchClause=291]="CatchClause",l[l.AssertClause=292]="AssertClause",l[l.AssertEntry=293]="AssertEntry",l[l.PropertyAssignment=294]="PropertyAssignment",l[l.ShorthandPropertyAssignment=295]="ShorthandPropertyAssignment",l[l.SpreadAssignment=296]="SpreadAssignment",l[l.EnumMember=297]="EnumMember",l[l.UnparsedPrologue=298]="UnparsedPrologue",l[l.UnparsedPrepend=299]="UnparsedPrepend",l[l.UnparsedText=300]="UnparsedText",l[l.UnparsedInternalText=301]="UnparsedInternalText",l[l.UnparsedSyntheticReference=302]="UnparsedSyntheticReference",l[l.SourceFile=303]="SourceFile",l[l.Bundle=304]="Bundle",l[l.UnparsedSource=305]="UnparsedSource",l[l.InputFiles=306]="InputFiles",l[l.JSDocTypeExpression=307]="JSDocTypeExpression",l[l.JSDocNameReference=308]="JSDocNameReference",l[l.JSDocMemberName=309]="JSDocMemberName",l[l.JSDocAllType=310]="JSDocAllType",l[l.JSDocUnknownType=311]="JSDocUnknownType",l[l.JSDocNullableType=312]="JSDocNullableType",l[l.JSDocNonNullableType=313]="JSDocNonNullableType",l[l.JSDocOptionalType=314]="JSDocOptionalType",l[l.JSDocFunctionType=315]="JSDocFunctionType",l[l.JSDocVariadicType=316]="JSDocVariadicType",l[l.JSDocNamepathType=317]="JSDocNamepathType",l[l.JSDocComment=318]="JSDocComment",l[l.JSDocText=319]="JSDocText",l[l.JSDocTypeLiteral=320]="JSDocTypeLiteral",l[l.JSDocSignature=321]="JSDocSignature",l[l.JSDocLink=322]="JSDocLink",l[l.JSDocLinkCode=323]="JSDocLinkCode",l[l.JSDocLinkPlain=324]="JSDocLinkPlain",l[l.JSDocTag=325]="JSDocTag",l[l.JSDocAugmentsTag=326]="JSDocAugmentsTag",l[l.JSDocImplementsTag=327]="JSDocImplementsTag",l[l.JSDocAuthorTag=328]="JSDocAuthorTag",l[l.JSDocDeprecatedTag=329]="JSDocDeprecatedTag",l[l.JSDocClassTag=330]="JSDocClassTag",l[l.JSDocPublicTag=331]="JSDocPublicTag",l[l.JSDocPrivateTag=332]="JSDocPrivateTag",l[l.JSDocProtectedTag=333]="JSDocProtectedTag",l[l.JSDocReadonlyTag=334]="JSDocReadonlyTag",l[l.JSDocOverrideTag=335]="JSDocOverrideTag",l[l.JSDocCallbackTag=336]="JSDocCallbackTag",l[l.JSDocEnumTag=337]="JSDocEnumTag",l[l.JSDocParameterTag=338]="JSDocParameterTag",l[l.JSDocReturnTag=339]="JSDocReturnTag",l[l.JSDocThisTag=340]="JSDocThisTag",l[l.JSDocTypeTag=341]="JSDocTypeTag",l[l.JSDocTemplateTag=342]="JSDocTemplateTag",l[l.JSDocTypedefTag=343]="JSDocTypedefTag",l[l.JSDocSeeTag=344]="JSDocSeeTag",l[l.JSDocPropertyTag=345]="JSDocPropertyTag",l[l.SyntaxList=346]="SyntaxList",l[l.NotEmittedStatement=347]="NotEmittedStatement",l[l.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",l[l.CommaListExpression=349]="CommaListExpression",l[l.MergeDeclarationMarker=350]="MergeDeclarationMarker",l[l.EndOfDeclarationMarker=351]="EndOfDeclarationMarker",l[l.SyntheticReferenceExpression=352]="SyntheticReferenceExpression",l[l.Count=353]="Count",l[l.FirstAssignment=63]="FirstAssignment",l[l.LastAssignment=78]="LastAssignment",l[l.FirstCompoundAssignment=64]="FirstCompoundAssignment",l[l.LastCompoundAssignment=78]="LastCompoundAssignment",l[l.FirstReservedWord=81]="FirstReservedWord",l[l.LastReservedWord=116]="LastReservedWord",l[l.FirstKeyword=81]="FirstKeyword",l[l.LastKeyword=159]="LastKeyword",l[l.FirstFutureReservedWord=117]="FirstFutureReservedWord",l[l.LastFutureReservedWord=125]="LastFutureReservedWord",l[l.FirstTypeNode=176]="FirstTypeNode",l[l.LastTypeNode=199]="LastTypeNode",l[l.FirstPunctuation=18]="FirstPunctuation",l[l.LastPunctuation=78]="LastPunctuation",l[l.FirstToken=0]="FirstToken",l[l.LastToken=159]="LastToken",l[l.FirstTriviaToken=2]="FirstTriviaToken",l[l.LastTriviaToken=7]="LastTriviaToken",l[l.FirstLiteralToken=8]="FirstLiteralToken",l[l.LastLiteralToken=14]="LastLiteralToken",l[l.FirstTemplateToken=14]="FirstTemplateToken",l[l.LastTemplateToken=17]="LastTemplateToken",l[l.FirstBinaryOperator=29]="FirstBinaryOperator",l[l.LastBinaryOperator=78]="LastBinaryOperator",l[l.FirstStatement=236]="FirstStatement",l[l.LastStatement=252]="LastStatement",l[l.FirstNode=160]="FirstNode",l[l.FirstJSDocNode=307]="FirstJSDocNode",l[l.LastJSDocNode=345]="LastJSDocNode",l[l.FirstJSDocTagNode=325]="FirstJSDocTagNode",l[l.LastJSDocTagNode=345]="LastJSDocTagNode",l[l.FirstContextualKeyword=126]="FirstContextualKeyword",l[l.LastContextualKeyword=159]="LastContextualKeyword",(c=e.NodeFlags||(e.NodeFlags={}))[c.None=0]="None",c[c.Let=1]="Let",c[c.Const=2]="Const",c[c.NestedNamespace=4]="NestedNamespace",c[c.Synthesized=8]="Synthesized",c[c.Namespace=16]="Namespace",c[c.OptionalChain=32]="OptionalChain",c[c.ExportContext=64]="ExportContext",c[c.ContainsThis=128]="ContainsThis",c[c.HasImplicitReturn=256]="HasImplicitReturn",c[c.HasExplicitReturn=512]="HasExplicitReturn",c[c.GlobalAugmentation=1024]="GlobalAugmentation",c[c.HasAsyncFunctions=2048]="HasAsyncFunctions",c[c.DisallowInContext=4096]="DisallowInContext",c[c.YieldContext=8192]="YieldContext",c[c.DecoratorContext=16384]="DecoratorContext",c[c.AwaitContext=32768]="AwaitContext",c[c.ThisNodeHasError=65536]="ThisNodeHasError",c[c.JavaScriptFile=131072]="JavaScriptFile",c[c.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",c[c.HasAggregatedChildData=524288]="HasAggregatedChildData",c[c.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",c[c.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",c[c.JSDoc=4194304]="JSDoc",c[c.Ambient=8388608]="Ambient",c[c.InWithStatement=16777216]="InWithStatement",c[c.JsonFile=33554432]="JsonFile",c[c.TypeCached=67108864]="TypeCached",c[c.Deprecated=134217728]="Deprecated",c[c.BlockScoped=3]="BlockScoped",c[c.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",c[c.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",c[c.ContextFlags=25358336]="ContextFlags",c[c.TypeExcludesFlags=40960]="TypeExcludesFlags",c[c.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(s=e.ModifierFlags||(e.ModifierFlags={}))[s.None=0]="None",s[s.Export=1]="Export",s[s.Ambient=2]="Ambient",s[s.Public=4]="Public",s[s.Private=8]="Private",s[s.Protected=16]="Protected",s[s.Static=32]="Static",s[s.Readonly=64]="Readonly",s[s.Abstract=128]="Abstract",s[s.Async=256]="Async",s[s.Default=512]="Default",s[s.Const=2048]="Const",s[s.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",s[s.Deprecated=8192]="Deprecated",s[s.Override=16384]="Override",s[s.HasComputedFlags=536870912]="HasComputedFlags",s[s.AccessibilityModifier=28]="AccessibilityModifier",s[s.ParameterPropertyModifier=16476]="ParameterPropertyModifier",s[s.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",s[s.TypeScriptModifier=18654]="TypeScriptModifier",s[s.ExportDefault=513]="ExportDefault",s[s.All=27647]="All",(o=e.JsxFlags||(e.JsxFlags={}))[o.None=0]="None",o[o.IntrinsicNamedElement=1]="IntrinsicNamedElement",o[o.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",o[o.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask",(i=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[i.None=0]="None",i[i.Auto=1]="Auto",i[i.Loop=2]="Loop",i[i.Unique=3]="Unique",i[i.Node=4]="Node",i[i.KindMask=7]="KindMask",i[i.ReservedInNestedScopes=8]="ReservedInNestedScopes",i[i.Optimistic=16]="Optimistic",i[i.FileLevel=32]="FileLevel",i[i.AllowNameSubstitution=64]="AllowNameSubstitution",(n=e.TokenFlags||(e.TokenFlags={}))[n.None=0]="None",n[n.PrecedingLineBreak=1]="PrecedingLineBreak",n[n.PrecedingJSDocComment=2]="PrecedingJSDocComment",n[n.Unterminated=4]="Unterminated",n[n.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",n[n.Scientific=16]="Scientific",n[n.Octal=32]="Octal",n[n.HexSpecifier=64]="HexSpecifier",n[n.BinarySpecifier=128]="BinarySpecifier",n[n.OctalSpecifier=256]="OctalSpecifier",n[n.ContainsSeparator=512]="ContainsSeparator",n[n.UnicodeEscape=1024]="UnicodeEscape",n[n.ContainsInvalidEscape=2048]="ContainsInvalidEscape",n[n.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",n[n.NumericLiteralFlags=1008]="NumericLiteralFlags",n[n.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(r=e.FlowFlags||(e.FlowFlags={}))[r.Unreachable=1]="Unreachable",r[r.Start=2]="Start",r[r.BranchLabel=4]="BranchLabel",r[r.LoopLabel=8]="LoopLabel",r[r.Assignment=16]="Assignment",r[r.TrueCondition=32]="TrueCondition",r[r.FalseCondition=64]="FalseCondition",r[r.SwitchClause=128]="SwitchClause",r[r.ArrayMutation=256]="ArrayMutation",r[r.Call=512]="Call",r[r.ReduceLabel=1024]="ReduceLabel",r[r.Referenced=2048]="Referenced",r[r.Shared=4096]="Shared",r[r.Label=12]="Label",r[r.Condition=96]="Condition",(t=e.CommentDirectiveType||(e.CommentDirectiveType={}))[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",e.OperationCanceledException=()=>{},(_e=e.FileIncludeKind||(e.FileIncludeKind={}))[_e.RootFile=0]="RootFile",_e[_e.SourceFromProjectReference=1]="SourceFromProjectReference",_e[_e.OutputFromProjectReference=2]="OutputFromProjectReference",_e[_e.Import=3]="Import",_e[_e.ReferenceFile=4]="ReferenceFile",_e[_e.TypeReferenceDirective=5]="TypeReferenceDirective",_e[_e.LibFile=6]="LibFile",_e[_e.LibReferenceDirective=7]="LibReferenceDirective",_e[_e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(pe=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[pe.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",pe[pe.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(de=e.StructureIsReused||(e.StructureIsReused={}))[de.Not=0]="Not",de[de.SafeModules=1]="SafeModules",de[de.Completely=2]="Completely",(ue=e.ExitStatus||(e.ExitStatus={}))[ue.Success=0]="Success",ue[ue.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",ue[ue.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",ue[ue.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",ue[ue.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",ue[ue.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(le=e.MemberOverrideStatus||(e.MemberOverrideStatus={}))[le.Ok=0]="Ok",le[le.NeedsOverride=1]="NeedsOverride",le[le.HasInvalidOverride=2]="HasInvalidOverride",(ce=e.UnionReduction||(e.UnionReduction={}))[ce.None=0]="None",ce[ce.Literal=1]="Literal",ce[ce.Subtype=2]="Subtype",(se=e.ContextFlags||(e.ContextFlags={}))[se.None=0]="None",se[se.Signature=1]="Signature",se[se.NoConstraints=2]="NoConstraints",se[se.Completions=4]="Completions",se[se.SkipBindingPatterns=8]="SkipBindingPatterns",(oe=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[oe.None=0]="None",oe[oe.NoTruncation=1]="NoTruncation",oe[oe.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",oe[oe.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",oe[oe.UseStructuralFallback=8]="UseStructuralFallback",oe[oe.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",oe[oe.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",oe[oe.UseFullyQualifiedType=64]="UseFullyQualifiedType",oe[oe.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",oe[oe.SuppressAnyReturnType=256]="SuppressAnyReturnType",oe[oe.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",oe[oe.MultilineObjectLiterals=1024]="MultilineObjectLiterals",oe[oe.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",oe[oe.UseTypeOfFunction=4096]="UseTypeOfFunction",oe[oe.OmitParameterModifiers=8192]="OmitParameterModifiers",oe[oe.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",oe[oe.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",oe[oe.NoTypeReduction=536870912]="NoTypeReduction",oe[oe.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",oe[oe.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",oe[oe.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",oe[oe.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",oe[oe.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",oe[oe.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",oe[oe.AllowEmptyTuple=524288]="AllowEmptyTuple",oe[oe.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",oe[oe.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",oe[oe.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",oe[oe.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",oe[oe.IgnoreErrors=70221824]="IgnoreErrors",oe[oe.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",oe[oe.InTypeAlias=8388608]="InTypeAlias",oe[oe.InInitialEntityName=16777216]="InInitialEntityName",(ae=e.TypeFormatFlags||(e.TypeFormatFlags={}))[ae.None=0]="None",ae[ae.NoTruncation=1]="NoTruncation",ae[ae.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",ae[ae.UseStructuralFallback=8]="UseStructuralFallback",ae[ae.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",ae[ae.UseFullyQualifiedType=64]="UseFullyQualifiedType",ae[ae.SuppressAnyReturnType=256]="SuppressAnyReturnType",ae[ae.MultilineObjectLiterals=1024]="MultilineObjectLiterals",ae[ae.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",ae[ae.UseTypeOfFunction=4096]="UseTypeOfFunction",ae[ae.OmitParameterModifiers=8192]="OmitParameterModifiers",ae[ae.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",ae[ae.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",ae[ae.NoTypeReduction=536870912]="NoTypeReduction",ae[ae.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",ae[ae.AddUndefined=131072]="AddUndefined",ae[ae.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",ae[ae.InArrayType=524288]="InArrayType",ae[ae.InElementType=2097152]="InElementType",ae[ae.InFirstTypeArgument=4194304]="InFirstTypeArgument",ae[ae.InTypeAlias=8388608]="InTypeAlias",ae[ae.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",ae[ae.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(ie=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[ie.None=0]="None",ie[ie.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",ie[ie.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",ie[ie.AllowAnyNodeKind=4]="AllowAnyNodeKind",ie[ie.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",ie[ie.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(ne=e.SymbolAccessibility||(e.SymbolAccessibility={}))[ne.Accessible=0]="Accessible",ne[ne.NotAccessible=1]="NotAccessible",ne[ne.CannotBeNamed=2]="CannotBeNamed",(re=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[re.UnionOrIntersection=0]="UnionOrIntersection",re[re.Spread=1]="Spread",(te=e.TypePredicateKind||(e.TypePredicateKind={}))[te.This=0]="This",te[te.Identifier=1]="Identifier",te[te.AssertsThis=2]="AssertsThis",te[te.AssertsIdentifier=3]="AssertsIdentifier",(ee=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[ee.Unknown=0]="Unknown",ee[ee.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",ee[ee.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",ee[ee.NumberLikeType=3]="NumberLikeType",ee[ee.BigIntLikeType=4]="BigIntLikeType",ee[ee.StringLikeType=5]="StringLikeType",ee[ee.BooleanType=6]="BooleanType",ee[ee.ArrayLikeType=7]="ArrayLikeType",ee[ee.ESSymbolType=8]="ESSymbolType",ee[ee.Promise=9]="Promise",ee[ee.TypeWithCallSignature=10]="TypeWithCallSignature",ee[ee.ObjectType=11]="ObjectType",(Z=e.SymbolFlags||(e.SymbolFlags={}))[Z.None=0]="None",Z[Z.FunctionScopedVariable=1]="FunctionScopedVariable",Z[Z.BlockScopedVariable=2]="BlockScopedVariable",Z[Z.Property=4]="Property",Z[Z.EnumMember=8]="EnumMember",Z[Z.Function=16]="Function",Z[Z.Class=32]="Class",Z[Z.Interface=64]="Interface",Z[Z.ConstEnum=128]="ConstEnum",Z[Z.RegularEnum=256]="RegularEnum",Z[Z.ValueModule=512]="ValueModule",Z[Z.NamespaceModule=1024]="NamespaceModule",Z[Z.TypeLiteral=2048]="TypeLiteral",Z[Z.ObjectLiteral=4096]="ObjectLiteral",Z[Z.Method=8192]="Method",Z[Z.Constructor=16384]="Constructor",Z[Z.GetAccessor=32768]="GetAccessor",Z[Z.SetAccessor=65536]="SetAccessor",Z[Z.Signature=131072]="Signature",Z[Z.TypeParameter=262144]="TypeParameter",Z[Z.TypeAlias=524288]="TypeAlias",Z[Z.ExportValue=1048576]="ExportValue",Z[Z.Alias=2097152]="Alias",Z[Z.Prototype=4194304]="Prototype",Z[Z.ExportStar=8388608]="ExportStar",Z[Z.Optional=16777216]="Optional",Z[Z.Transient=33554432]="Transient",Z[Z.Assignment=67108864]="Assignment",Z[Z.ModuleExports=134217728]="ModuleExports",Z[Z.All=67108863]="All",Z[Z.Enum=384]="Enum",Z[Z.Variable=3]="Variable",Z[Z.Value=111551]="Value",Z[Z.Type=788968]="Type",Z[Z.Namespace=1920]="Namespace",Z[Z.Module=1536]="Module",Z[Z.Accessor=98304]="Accessor",Z[Z.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",Z[Z.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",Z[Z.ParameterExcludes=111551]="ParameterExcludes",Z[Z.PropertyExcludes=0]="PropertyExcludes",Z[Z.EnumMemberExcludes=900095]="EnumMemberExcludes",Z[Z.FunctionExcludes=110991]="FunctionExcludes",Z[Z.ClassExcludes=899503]="ClassExcludes",Z[Z.InterfaceExcludes=788872]="InterfaceExcludes",Z[Z.RegularEnumExcludes=899327]="RegularEnumExcludes",Z[Z.ConstEnumExcludes=899967]="ConstEnumExcludes",Z[Z.ValueModuleExcludes=110735]="ValueModuleExcludes",Z[Z.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",Z[Z.MethodExcludes=103359]="MethodExcludes",Z[Z.GetAccessorExcludes=46015]="GetAccessorExcludes",Z[Z.SetAccessorExcludes=78783]="SetAccessorExcludes",Z[Z.TypeParameterExcludes=526824]="TypeParameterExcludes",Z[Z.TypeAliasExcludes=788968]="TypeAliasExcludes",Z[Z.AliasExcludes=2097152]="AliasExcludes",Z[Z.ModuleMember=2623475]="ModuleMember",Z[Z.ExportHasLocal=944]="ExportHasLocal",Z[Z.BlockScoped=418]="BlockScoped",Z[Z.PropertyOrAccessor=98308]="PropertyOrAccessor",Z[Z.ClassMember=106500]="ClassMember",Z[Z.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",Z[Z.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",Z[Z.Classifiable=2885600]="Classifiable",Z[Z.LateBindingContainer=6256]="LateBindingContainer",(Q=e.EnumKind||(e.EnumKind={}))[Q.Numeric=0]="Numeric",Q[Q.Literal=1]="Literal",(Y=e.CheckFlags||(e.CheckFlags={}))[Y.Instantiated=1]="Instantiated",Y[Y.SyntheticProperty=2]="SyntheticProperty",Y[Y.SyntheticMethod=4]="SyntheticMethod",Y[Y.Readonly=8]="Readonly",Y[Y.ReadPartial=16]="ReadPartial",Y[Y.WritePartial=32]="WritePartial",Y[Y.HasNonUniformType=64]="HasNonUniformType",Y[Y.HasLiteralType=128]="HasLiteralType",Y[Y.ContainsPublic=256]="ContainsPublic",Y[Y.ContainsProtected=512]="ContainsProtected",Y[Y.ContainsPrivate=1024]="ContainsPrivate",Y[Y.ContainsStatic=2048]="ContainsStatic",Y[Y.Late=4096]="Late",Y[Y.ReverseMapped=8192]="ReverseMapped",Y[Y.OptionalParameter=16384]="OptionalParameter",Y[Y.RestParameter=32768]="RestParameter",Y[Y.DeferredType=65536]="DeferredType",Y[Y.HasNeverType=131072]="HasNeverType",Y[Y.Mapped=262144]="Mapped",Y[Y.StripOptional=524288]="StripOptional",Y[Y.Unresolved=1048576]="Unresolved",Y[Y.Synthetic=6]="Synthetic",Y[Y.Discriminant=192]="Discriminant",Y[Y.Partial=48]="Partial",(X=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",X.Constructor="__constructor",X.New="__new",X.Index="__index",X.ExportStar="__export",X.Global="__global",X.Missing="__missing",X.Type="__type",X.Object="__object",X.JSXAttributes="__jsxAttributes",X.Class="__class",X.Function="__function",X.Computed="__computed",X.Resolving="__resolving__",X.ExportEquals="export=",X.Default="default",X.This="this",(q=e.NodeCheckFlags||(e.NodeCheckFlags={}))[q.TypeChecked=1]="TypeChecked",q[q.LexicalThis=2]="LexicalThis",q[q.CaptureThis=4]="CaptureThis",q[q.CaptureNewTarget=8]="CaptureNewTarget",q[q.SuperInstance=256]="SuperInstance",q[q.SuperStatic=512]="SuperStatic",q[q.ContextChecked=1024]="ContextChecked",q[q.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",q[q.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",q[q.CaptureArguments=8192]="CaptureArguments",q[q.EnumValuesComputed=16384]="EnumValuesComputed",q[q.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",q[q.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",q[q.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",q[q.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",q[q.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",q[q.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",q[q.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",q[q.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",q[q.AssignmentsMarked=8388608]="AssignmentsMarked",q[q.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",q[q.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",q[q.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",q[q.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",(G=e.TypeFlags||(e.TypeFlags={}))[G.Any=1]="Any",G[G.Unknown=2]="Unknown",G[G.String=4]="String",G[G.Number=8]="Number",G[G.Boolean=16]="Boolean",G[G.Enum=32]="Enum",G[G.BigInt=64]="BigInt",G[G.StringLiteral=128]="StringLiteral",G[G.NumberLiteral=256]="NumberLiteral",G[G.BooleanLiteral=512]="BooleanLiteral",G[G.EnumLiteral=1024]="EnumLiteral",G[G.BigIntLiteral=2048]="BigIntLiteral",G[G.ESSymbol=4096]="ESSymbol",G[G.UniqueESSymbol=8192]="UniqueESSymbol",G[G.Void=16384]="Void",G[G.Undefined=32768]="Undefined",G[G.Null=65536]="Null",G[G.Never=131072]="Never",G[G.TypeParameter=262144]="TypeParameter",G[G.Object=524288]="Object",G[G.Union=1048576]="Union",G[G.Intersection=2097152]="Intersection",G[G.Index=4194304]="Index",G[G.IndexedAccess=8388608]="IndexedAccess",G[G.Conditional=16777216]="Conditional",G[G.Substitution=33554432]="Substitution",G[G.NonPrimitive=67108864]="NonPrimitive",G[G.TemplateLiteral=134217728]="TemplateLiteral",G[G.StringMapping=268435456]="StringMapping",G[G.AnyOrUnknown=3]="AnyOrUnknown",G[G.Nullable=98304]="Nullable",G[G.Literal=2944]="Literal",G[G.Unit=109440]="Unit",G[G.StringOrNumberLiteral=384]="StringOrNumberLiteral",G[G.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",G[G.DefinitelyFalsy=117632]="DefinitelyFalsy",G[G.PossiblyFalsy=117724]="PossiblyFalsy",G[G.Intrinsic=67359327]="Intrinsic",G[G.Primitive=131068]="Primitive",G[G.StringLike=402653316]="StringLike",G[G.NumberLike=296]="NumberLike",G[G.BigIntLike=2112]="BigIntLike",G[G.BooleanLike=528]="BooleanLike",G[G.EnumLike=1056]="EnumLike",G[G.ESSymbolLike=12288]="ESSymbolLike",G[G.VoidLike=49152]="VoidLike",G[G.DisjointDomains=469892092]="DisjointDomains",G[G.UnionOrIntersection=3145728]="UnionOrIntersection",G[G.StructuredType=3670016]="StructuredType",G[G.TypeVariable=8650752]="TypeVariable",G[G.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",G[G.InstantiablePrimitive=406847488]="InstantiablePrimitive",G[G.Instantiable=465829888]="Instantiable",G[G.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",G[G.ObjectFlagsType=3899393]="ObjectFlagsType",G[G.Simplifiable=25165824]="Simplifiable",G[G.Singleton=67358815]="Singleton",G[G.Narrowable=536624127]="Narrowable",G[G.IncludesMask=205258751]="IncludesMask",G[G.IncludesMissingType=262144]="IncludesMissingType",G[G.IncludesNonWideningType=4194304]="IncludesNonWideningType",G[G.IncludesWildcard=8388608]="IncludesWildcard",G[G.IncludesEmptyObject=16777216]="IncludesEmptyObject",G[G.IncludesInstantiable=33554432]="IncludesInstantiable",G[G.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",($=e.ObjectFlags||(e.ObjectFlags={}))[$.Class=1]="Class",$[$.Interface=2]="Interface",$[$.Reference=4]="Reference",$[$.Tuple=8]="Tuple",$[$.Anonymous=16]="Anonymous",$[$.Mapped=32]="Mapped",$[$.Instantiated=64]="Instantiated",$[$.ObjectLiteral=128]="ObjectLiteral",$[$.EvolvingArray=256]="EvolvingArray",$[$.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",$[$.ReverseMapped=1024]="ReverseMapped",$[$.JsxAttributes=2048]="JsxAttributes",$[$.MarkerType=4096]="MarkerType",$[$.JSLiteral=8192]="JSLiteral",$[$.FreshLiteral=16384]="FreshLiteral",$[$.ArrayLiteral=32768]="ArrayLiteral",$[$.PrimitiveUnion=65536]="PrimitiveUnion",$[$.ContainsWideningType=131072]="ContainsWideningType",$[$.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",$[$.NonInferrableType=524288]="NonInferrableType",$[$.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",$[$.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",$[$.ClassOrInterface=3]="ClassOrInterface",$[$.RequiresWidening=393216]="RequiresWidening",$[$.PropagatingFlags=917504]="PropagatingFlags",$[$.ObjectTypeKindMask=1343]="ObjectTypeKindMask",$[$.ContainsSpread=4194304]="ContainsSpread",$[$.ObjectRestType=8388608]="ObjectRestType",$[$.IsClassInstanceClone=16777216]="IsClassInstanceClone",$[$.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",$[$.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",$[$.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",$[$.IsGenericObjectType=8388608]="IsGenericObjectType",$[$.IsGenericIndexType=16777216]="IsGenericIndexType",$[$.IsGenericType=25165824]="IsGenericType",$[$.ContainsIntersections=33554432]="ContainsIntersections",$[$.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",$[$.IsNeverIntersection=67108864]="IsNeverIntersection",(J=e.VarianceFlags||(e.VarianceFlags={}))[J.Invariant=0]="Invariant",J[J.Covariant=1]="Covariant",J[J.Contravariant=2]="Contravariant",J[J.Bivariant=3]="Bivariant",J[J.Independent=4]="Independent",J[J.VarianceMask=7]="VarianceMask",J[J.Unmeasurable=8]="Unmeasurable",J[J.Unreliable=16]="Unreliable",J[J.AllowsStructuralFallback=24]="AllowsStructuralFallback",(H=e.ElementFlags||(e.ElementFlags={}))[H.Required=1]="Required",H[H.Optional=2]="Optional",H[H.Rest=4]="Rest",H[H.Variadic=8]="Variadic",H[H.Fixed=3]="Fixed",H[H.Variable=12]="Variable",H[H.NonRequired=14]="NonRequired",H[H.NonRest=11]="NonRest",(W=e.AccessFlags||(e.AccessFlags={}))[W.None=0]="None",W[W.IncludeUndefined=1]="IncludeUndefined",W[W.NoIndexSignatures=2]="NoIndexSignatures",W[W.Writing=4]="Writing",W[W.CacheSymbol=8]="CacheSymbol",W[W.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",W[W.ExpressionPosition=32]="ExpressionPosition",W[W.ReportDeprecated=64]="ReportDeprecated",W[W.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",W[W.Contextual=256]="Contextual",W[W.Persistent=1]="Persistent",(K=e.JsxReferenceKind||(e.JsxReferenceKind={}))[K.Component=0]="Component",K[K.Function=1]="Function",K[K.Mixed=2]="Mixed",(z=e.SignatureKind||(e.SignatureKind={}))[z.Call=0]="Call",z[z.Construct=1]="Construct",(V=e.SignatureFlags||(e.SignatureFlags={}))[V.None=0]="None",V[V.HasRestParameter=1]="HasRestParameter",V[V.HasLiteralTypes=2]="HasLiteralTypes",V[V.Abstract=4]="Abstract",V[V.IsInnerCallChain=8]="IsInnerCallChain",V[V.IsOuterCallChain=16]="IsOuterCallChain",V[V.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",V[V.PropagatingFlags=39]="PropagatingFlags",V[V.CallChainFlags=24]="CallChainFlags",(U=e.IndexKind||(e.IndexKind={}))[U.String=0]="String",U[U.Number=1]="Number",(j=e.TypeMapKind||(e.TypeMapKind={}))[j.Simple=0]="Simple",j[j.Array=1]="Array",j[j.Function=2]="Function",j[j.Composite=3]="Composite",j[j.Merged=4]="Merged",(B=e.InferencePriority||(e.InferencePriority={}))[B.NakedTypeVariable=1]="NakedTypeVariable",B[B.SpeculativeTuple=2]="SpeculativeTuple",B[B.SubstituteSource=4]="SubstituteSource",B[B.HomomorphicMappedType=8]="HomomorphicMappedType",B[B.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",B[B.MappedTypeConstraint=32]="MappedTypeConstraint",B[B.ContravariantConditional=64]="ContravariantConditional",B[B.ReturnType=128]="ReturnType",B[B.LiteralKeyof=256]="LiteralKeyof",B[B.NoConstraints=512]="NoConstraints",B[B.AlwaysStrict=1024]="AlwaysStrict",B[B.MaxValue=2048]="MaxValue",B[B.PriorityImpliesCombination=416]="PriorityImpliesCombination",B[B.Circularity=-1]="Circularity",(L=e.InferenceFlags||(e.InferenceFlags={}))[L.None=0]="None",L[L.NoDefault=1]="NoDefault",L[L.AnyDefault=2]="AnyDefault",L[L.SkippedGenericFunction=4]="SkippedGenericFunction",(R=e.Ternary||(e.Ternary={}))[R.False=0]="False",R[R.Unknown=1]="Unknown",R[R.Maybe=3]="Maybe",R[R.True=-1]="True",(M=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[M.None=0]="None",M[M.ExportsProperty=1]="ExportsProperty",M[M.ModuleExports=2]="ModuleExports",M[M.PrototypeProperty=3]="PrototypeProperty",M[M.ThisProperty=4]="ThisProperty",M[M.Property=5]="Property",M[M.Prototype=6]="Prototype",M[M.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",M[M.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",M[M.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",(e=>{e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"})(u=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=(e,t)=>{void 0===t&&(t=!0);var r=u[e.category];return t?r.toLowerCase():r},(O=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[O.Classic=1]="Classic",O[O.NodeJs=2]="NodeJs",O[O.Node12=3]="Node12",O[O.NodeNext=99]="NodeNext",(I=e.WatchFileKind||(e.WatchFileKind={}))[I.FixedPollingInterval=0]="FixedPollingInterval",I[I.PriorityPollingInterval=1]="PriorityPollingInterval",I[I.DynamicPriorityPolling=2]="DynamicPriorityPolling",I[I.FixedChunkSizePolling=3]="FixedChunkSizePolling",I[I.UseFsEvents=4]="UseFsEvents",I[I.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(P=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[P.UseFsEvents=0]="UseFsEvents",P[P.FixedPollingInterval=1]="FixedPollingInterval",P[P.DynamicPriorityPolling=2]="DynamicPriorityPolling",P[P.FixedChunkSizePolling=3]="FixedChunkSizePolling",(F=e.PollingWatchKind||(e.PollingWatchKind={}))[F.FixedInterval=0]="FixedInterval",F[F.PriorityInterval=1]="PriorityInterval",F[F.DynamicPriority=2]="DynamicPriority",F[F.FixedChunkSize=3]="FixedChunkSize",(w=e.ModuleKind||(e.ModuleKind={}))[w.None=0]="None",w[w.CommonJS=1]="CommonJS",w[w.AMD=2]="AMD",w[w.UMD=3]="UMD",w[w.System=4]="System",w[w.ES2015=5]="ES2015",w[w.ES2020=6]="ES2020",w[w.ES2022=7]="ES2022",w[w.ESNext=99]="ESNext",w[w.Node12=100]="Node12",w[w.NodeNext=199]="NodeNext",(N=e.JsxEmit||(e.JsxEmit={}))[N.None=0]="None",N[N.Preserve=1]="Preserve",N[N.React=2]="React",N[N.ReactNative=3]="ReactNative",N[N.ReactJSX=4]="ReactJSX",N[N.ReactJSXDev=5]="ReactJSXDev",(A=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[A.Remove=0]="Remove",A[A.Preserve=1]="Preserve",A[A.Error=2]="Error",(k=e.NewLineKind||(e.NewLineKind={}))[k.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",k[k.LineFeed=1]="LineFeed",(C=e.ScriptKind||(e.ScriptKind={}))[C.Unknown=0]="Unknown",C[C.JS=1]="JS",C[C.JSX=2]="JSX",C[C.TS=3]="TS",C[C.TSX=4]="TSX",C[C.External=5]="External",C[C.JSON=6]="JSON",C[C.Deferred=7]="Deferred",(T=e.ScriptTarget||(e.ScriptTarget={}))[T.ES3=0]="ES3",T[T.ES5=1]="ES5",T[T.ES2015=2]="ES2015",T[T.ES2016=3]="ES2016",T[T.ES2017=4]="ES2017",T[T.ES2018=5]="ES2018",T[T.ES2019=6]="ES2019",T[T.ES2020=7]="ES2020",T[T.ES2021=8]="ES2021",T[T.ESNext=99]="ESNext",T[T.JSON=100]="JSON",T[T.Latest=99]="Latest",(D=e.LanguageVariant||(e.LanguageVariant={}))[D.Standard=0]="Standard",D[D.JSX=1]="JSX",(S=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[S.None=0]="None",S[S.Recursive=1]="Recursive",(E=e.CharacterCodes||(e.CharacterCodes={}))[E.nullCharacter=0]="nullCharacter",E[E.maxAsciiCharacter=127]="maxAsciiCharacter",E[E.lineFeed=10]="lineFeed",E[E.carriageReturn=13]="carriageReturn",E[E.lineSeparator=8232]="lineSeparator",E[E.paragraphSeparator=8233]="paragraphSeparator",E[E.nextLine=133]="nextLine",E[E.space=32]="space",E[E.nonBreakingSpace=160]="nonBreakingSpace",E[E.enQuad=8192]="enQuad",E[E.emQuad=8193]="emQuad",E[E.enSpace=8194]="enSpace",E[E.emSpace=8195]="emSpace",E[E.threePerEmSpace=8196]="threePerEmSpace",E[E.fourPerEmSpace=8197]="fourPerEmSpace",E[E.sixPerEmSpace=8198]="sixPerEmSpace",E[E.figureSpace=8199]="figureSpace",E[E.punctuationSpace=8200]="punctuationSpace",E[E.thinSpace=8201]="thinSpace",E[E.hairSpace=8202]="hairSpace",E[E.zeroWidthSpace=8203]="zeroWidthSpace",E[E.narrowNoBreakSpace=8239]="narrowNoBreakSpace",E[E.ideographicSpace=12288]="ideographicSpace",E[E.mathematicalSpace=8287]="mathematicalSpace",E[E.ogham=5760]="ogham",E[E._=95]="_",E[E.$=36]="$",E[E._0=48]="_0",E[E._1=49]="_1",E[E._2=50]="_2",E[E._3=51]="_3",E[E._4=52]="_4",E[E._5=53]="_5",E[E._6=54]="_6",E[E._7=55]="_7",E[E._8=56]="_8",E[E._9=57]="_9",E[E.a=97]="a",E[E.b=98]="b",E[E.c=99]="c",E[E.d=100]="d",E[E.e=101]="e",E[E.f=102]="f",E[E.g=103]="g",E[E.h=104]="h",E[E.i=105]="i",E[E.j=106]="j",E[E.k=107]="k",E[E.l=108]="l",E[E.m=109]="m",E[E.n=110]="n",E[E.o=111]="o",E[E.p=112]="p",E[E.q=113]="q",E[E.r=114]="r",E[E.s=115]="s",E[E.t=116]="t",E[E.u=117]="u",E[E.v=118]="v",E[E.w=119]="w",E[E.x=120]="x",E[E.y=121]="y",E[E.z=122]="z",E[E.A=65]="A",E[E.B=66]="B",E[E.C=67]="C",E[E.D=68]="D",E[E.E=69]="E",E[E.F=70]="F",E[E.G=71]="G",E[E.H=72]="H",E[E.I=73]="I",E[E.J=74]="J",E[E.K=75]="K",E[E.L=76]="L",E[E.M=77]="M",E[E.N=78]="N",E[E.O=79]="O",E[E.P=80]="P",E[E.Q=81]="Q",E[E.R=82]="R",E[E.S=83]="S",E[E.T=84]="T",E[E.U=85]="U",E[E.V=86]="V",E[E.W=87]="W",E[E.X=88]="X",E[E.Y=89]="Y",E[E.Z=90]="Z",E[E.ampersand=38]="ampersand",E[E.asterisk=42]="asterisk",E[E.at=64]="at",E[E.backslash=92]="backslash",E[E.backtick=96]="backtick",E[E.bar=124]="bar",E[E.caret=94]="caret",E[E.closeBrace=125]="closeBrace",E[E.closeBracket=93]="closeBracket",E[E.closeParen=41]="closeParen",E[E.colon=58]="colon",E[E.comma=44]="comma",E[E.dot=46]="dot",E[E.doubleQuote=34]="doubleQuote",E[E.equals=61]="equals",E[E.exclamation=33]="exclamation",E[E.greaterThan=62]="greaterThan",E[E.hash=35]="hash",E[E.lessThan=60]="lessThan",E[E.minus=45]="minus",E[E.openBrace=123]="openBrace",E[E.openBracket=91]="openBracket",E[E.openParen=40]="openParen",E[E.percent=37]="percent",E[E.plus=43]="plus",E[E.question=63]="question",E[E.semicolon=59]="semicolon",E[E.singleQuote=39]="singleQuote",E[E.slash=47]="slash",E[E.tilde=126]="tilde",E[E.backspace=8]="backspace",E[E.formFeed=12]="formFeed",E[E.byteOrderMark=65279]="byteOrderMark",E[E.tab=9]="tab",E[E.verticalTab=11]="verticalTab",(x=e.Extension||(e.Extension={})).Ts=".ts",x.Tsx=".tsx",x.Dts=".d.ts",x.Js=".js",x.Jsx=".jsx",x.Json=".json",x.TsBuildInfo=".tsbuildinfo",x.Mjs=".mjs",x.Mts=".mts",x.Dmts=".d.mts",x.Cjs=".cjs",x.Cts=".cts",x.Dcts=".d.cts",(b=e.TransformFlags||(e.TransformFlags={}))[b.None=0]="None",b[b.ContainsTypeScript=1]="ContainsTypeScript",b[b.ContainsJsx=2]="ContainsJsx",b[b.ContainsESNext=4]="ContainsESNext",b[b.ContainsES2021=8]="ContainsES2021",b[b.ContainsES2020=16]="ContainsES2020",b[b.ContainsES2019=32]="ContainsES2019",b[b.ContainsES2018=64]="ContainsES2018",b[b.ContainsES2017=128]="ContainsES2017",b[b.ContainsES2016=256]="ContainsES2016",b[b.ContainsES2015=512]="ContainsES2015",b[b.ContainsGenerator=1024]="ContainsGenerator",b[b.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",b[b.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",b[b.ContainsLexicalThis=8192]="ContainsLexicalThis",b[b.ContainsRestOrSpread=16384]="ContainsRestOrSpread",b[b.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",b[b.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",b[b.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",b[b.ContainsBindingPattern=262144]="ContainsBindingPattern",b[b.ContainsYield=524288]="ContainsYield",b[b.ContainsAwait=1048576]="ContainsAwait",b[b.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",b[b.ContainsDynamicImport=4194304]="ContainsDynamicImport",b[b.ContainsClassFields=8388608]="ContainsClassFields",b[b.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",b[b.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",b[b.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",b[b.HasComputedFlags=536870912]="HasComputedFlags",b[b.AssertTypeScript=1]="AssertTypeScript",b[b.AssertJsx=2]="AssertJsx",b[b.AssertESNext=4]="AssertESNext",b[b.AssertES2021=8]="AssertES2021",b[b.AssertES2020=16]="AssertES2020",b[b.AssertES2019=32]="AssertES2019",b[b.AssertES2018=64]="AssertES2018",b[b.AssertES2017=128]="AssertES2017",b[b.AssertES2016=256]="AssertES2016",b[b.AssertES2015=512]="AssertES2015",b[b.AssertGenerator=1024]="AssertGenerator",b[b.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",b[b.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",b[b.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",b[b.NodeExcludes=536870912]="NodeExcludes",b[b.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",b[b.FunctionExcludes=591310848]="FunctionExcludes",b[b.ConstructorExcludes=591306752]="ConstructorExcludes",b[b.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",b[b.PropertyExcludes=570433536]="PropertyExcludes",b[b.ClassExcludes=536940544]="ClassExcludes",b[b.ModuleExcludes=589443072]="ModuleExcludes",b[b.TypeExcludes=-2]="TypeExcludes",b[b.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",b[b.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",b[b.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",b[b.ParameterExcludes=536870912]="ParameterExcludes",b[b.CatchClauseExcludes=536903680]="CatchClauseExcludes",b[b.BindingPatternExcludes=536887296]="BindingPatternExcludes",b[b.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",b[b.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(v=e.SnippetKind||(e.SnippetKind={}))[v.TabStop=0]="TabStop",v[v.Placeholder=1]="Placeholder",v[v.Choice=2]="Choice",v[v.Variable=3]="Variable",(y=e.EmitFlags||(e.EmitFlags={}))[y.None=0]="None",y[y.SingleLine=1]="SingleLine",y[y.AdviseOnEmitNode=2]="AdviseOnEmitNode",y[y.NoSubstitution=4]="NoSubstitution",y[y.CapturesThis=8]="CapturesThis",y[y.NoLeadingSourceMap=16]="NoLeadingSourceMap",y[y.NoTrailingSourceMap=32]="NoTrailingSourceMap",y[y.NoSourceMap=48]="NoSourceMap",y[y.NoNestedSourceMaps=64]="NoNestedSourceMaps",y[y.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",y[y.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",y[y.NoTokenSourceMaps=384]="NoTokenSourceMaps",y[y.NoLeadingComments=512]="NoLeadingComments",y[y.NoTrailingComments=1024]="NoTrailingComments",y[y.NoComments=1536]="NoComments",y[y.NoNestedComments=2048]="NoNestedComments",y[y.HelperName=4096]="HelperName",y[y.ExportName=8192]="ExportName",y[y.LocalName=16384]="LocalName",y[y.InternalName=32768]="InternalName",y[y.Indented=65536]="Indented",y[y.NoIndentation=131072]="NoIndentation",y[y.AsyncFunctionBody=262144]="AsyncFunctionBody",y[y.ReuseTempVariableScope=524288]="ReuseTempVariableScope",y[y.CustomPrologue=1048576]="CustomPrologue",y[y.NoHoisting=2097152]="NoHoisting",y[y.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",y[y.Iterator=8388608]="Iterator",y[y.NoAsciiEscaping=16777216]="NoAsciiEscaping",y[y.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",y[y.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",y[y.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",y[y.Immutable=268435456]="Immutable",y[y.IndirectCall=536870912]="IndirectCall",(h=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[h.Extends=1]="Extends",h[h.Assign=2]="Assign",h[h.Rest=4]="Rest",h[h.Decorate=8]="Decorate",h[h.Metadata=16]="Metadata",h[h.Param=32]="Param",h[h.Awaiter=64]="Awaiter",h[h.Generator=128]="Generator",h[h.Values=256]="Values",h[h.Read=512]="Read",h[h.SpreadArray=1024]="SpreadArray",h[h.Await=2048]="Await",h[h.AsyncGenerator=4096]="AsyncGenerator",h[h.AsyncDelegator=8192]="AsyncDelegator",h[h.AsyncValues=16384]="AsyncValues",h[h.ExportStar=32768]="ExportStar",h[h.ImportStar=65536]="ImportStar",h[h.ImportDefault=131072]="ImportDefault",h[h.MakeTemplateObject=262144]="MakeTemplateObject",h[h.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",h[h.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",h[h.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",h[h.CreateBinding=4194304]="CreateBinding",h[h.FirstEmitHelper=1]="FirstEmitHelper",h[h.LastEmitHelper=4194304]="LastEmitHelper",h[h.ForOfIncludes=256]="ForOfIncludes",h[h.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",h[h.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",h[h.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",h[h.SpreadIncludes=1536]="SpreadIncludes",(g=e.EmitHint||(e.EmitHint={}))[g.SourceFile=0]="SourceFile",g[g.Expression=1]="Expression",g[g.IdentifierName=2]="IdentifierName",g[g.MappedTypeParameter=3]="MappedTypeParameter",g[g.Unspecified=4]="Unspecified",g[g.EmbeddedStatement=5]="EmbeddedStatement",g[g.JsxAttributeValue=6]="JsxAttributeValue",(m=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[m.Parentheses=1]="Parentheses",m[m.TypeAssertions=2]="TypeAssertions",m[m.NonNullAssertions=4]="NonNullAssertions",m[m.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",m[m.Assertions=6]="Assertions",m[m.All=15]="All",m[m.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",(f=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[f.None=0]="None",f[f.InParameters=1]="InParameters",f[f.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(_=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",_.EmitHelpers="emitHelpers",_.NoDefaultLib="no-default-lib",_.Reference="reference",_.Type="type",_.Lib="lib",_.Prepend="prepend",_.Text="text",_.Internal="internal",(p=e.ListFormat||(e.ListFormat={}))[p.None=0]="None",p[p.SingleLine=0]="SingleLine",p[p.MultiLine=1]="MultiLine",p[p.PreserveLines=2]="PreserveLines",p[p.LinesMask=3]="LinesMask",p[p.NotDelimited=0]="NotDelimited",p[p.BarDelimited=4]="BarDelimited",p[p.AmpersandDelimited=8]="AmpersandDelimited",p[p.CommaDelimited=16]="CommaDelimited",p[p.AsteriskDelimited=32]="AsteriskDelimited",p[p.DelimitersMask=60]="DelimitersMask",p[p.AllowTrailingComma=64]="AllowTrailingComma",p[p.Indented=128]="Indented",p[p.SpaceBetweenBraces=256]="SpaceBetweenBraces",p[p.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",p[p.Braces=1024]="Braces",p[p.Parenthesis=2048]="Parenthesis",p[p.AngleBrackets=4096]="AngleBrackets",p[p.SquareBrackets=8192]="SquareBrackets",p[p.BracketsMask=15360]="BracketsMask",p[p.OptionalIfUndefined=16384]="OptionalIfUndefined",p[p.OptionalIfEmpty=32768]="OptionalIfEmpty",p[p.Optional=49152]="Optional",p[p.PreferNewLine=65536]="PreferNewLine",p[p.NoTrailingNewLine=131072]="NoTrailingNewLine",p[p.NoInterveningComments=262144]="NoInterveningComments",p[p.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",p[p.SingleElement=1048576]="SingleElement",p[p.SpaceAfterList=2097152]="SpaceAfterList",p[p.Modifiers=262656]="Modifiers",p[p.HeritageClauses=512]="HeritageClauses",p[p.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",p[p.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",p[p.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",p[p.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",p[p.UnionTypeConstituents=516]="UnionTypeConstituents",p[p.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",p[p.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",p[p.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",p[p.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",p[p.ImportClauseEntries=526226]="ImportClauseEntries",p[p.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",p[p.CommaListElements=528]="CommaListElements",p[p.CallExpressionArguments=2576]="CallExpressionArguments",p[p.NewExpressionArguments=18960]="NewExpressionArguments",p[p.TemplateExpressionSpans=262144]="TemplateExpressionSpans",p[p.SingleLineBlockStatements=768]="SingleLineBlockStatements",p[p.MultiLineBlockStatements=129]="MultiLineBlockStatements",p[p.VariableDeclarationList=528]="VariableDeclarationList",p[p.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",p[p.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",p[p.ClassHeritageClauses=0]="ClassHeritageClauses",p[p.ClassMembers=129]="ClassMembers",p[p.InterfaceMembers=129]="InterfaceMembers",p[p.EnumMembers=145]="EnumMembers",p[p.CaseBlockClauses=129]="CaseBlockClauses",p[p.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",p[p.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",p[p.JsxElementAttributes=262656]="JsxElementAttributes",p[p.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",p[p.HeritageClauseTypes=528]="HeritageClauseTypes",p[p.SourceFileStatements=131073]="SourceFileStatements",p[p.Decorators=2146305]="Decorators",p[p.TypeArguments=53776]="TypeArguments",p[p.TypeParameters=53776]="TypeParameters",p[p.Parameters=2576]="Parameters",p[p.IndexSignatureParameters=8848]="IndexSignatureParameters",p[p.JSDocComment=33]="JSDocComment",(d=e.PragmaKindFlags||(e.PragmaKindFlags={}))[d.None=0]="None",d[d.TripleSlashXML=1]="TripleSlashXML",d[d.SingleLine=2]="SingleLine",d[d.MultiLine=4]="MultiLine",d[d.All=7]="All",d[d.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}})(Fl),(e=>{e.directorySeparator="/",e.altDirectorySeparator="\\";var t=/\\/g;function r(e){return 47===e||92===e}function n(e){return l(e)>0}function i(e){return 0!==l(e)}function a(e){return/^\.\.?($|[\\/])/.test(e)}function o(t,r){return t.length>r.length&&e.endsWith(t,r)}function s(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function c(e){return e>=97&&e<=122||e>=65&&e<=90}function l(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:e.altDirectorySeparator,2);return n<0?t.length:n+1}if(c(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var l=t.slice(0,a),u=t.slice(o,s);if("file"===l&&(""===u||"localhost"===u)&&c(t.charCodeAt(s+1))){var d=((e,t)=>{var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1})(t,s+2);if(-1!==d){if(47===t.charCodeAt(d))return~(d+1);if(d===t.length)return~d}}return~(s+1)}return~t.length}return 0}function u(e){var t=l(e);return t<0?~t:t}function d(t){var r=u(t=h(t));return r===t.length?t:(t=D(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(u(t=h(t))===t.length)return"";var i=(t=D(t)).slice(Math.max(u(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?f(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function _(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function f(t,r,n){if(r)return((e,t,r)=>{if("string"==typeof t)return _(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=_(e,i[n],r);if(a)return a}return""})(D(t),r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=p(t),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function m(t,r){return void 0===r&&(r=""),((t,r)=>{var n=t.substring(0,r),i=t.substring(r).split(e.directorySeparator);return i.length&&!e.lastOrUndefined(i)&&i.pop(),Il([n],i,!0)})(t=v(r,t),u(t))}function g(t){return 0===t.length?"":(t[0]&&T(t[0]))+t.slice(1).join(e.directorySeparator)}function h(r){var n=r.indexOf("\\");return-1===n?r:(t.lastIndex=n,r.replace(t,e.directorySeparator))}function y(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n<t.length;n++){var i=t[n];if(i&&"."!==i){if(".."===i)if(r.length>1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function v(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&(e=h(e));for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=h(a),e=e&&0===u(a)?T(e)+a:a)}return e}function b(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return S(e.some(r)?v.apply(void 0,Il([t],r,!1)):h(t))}function x(e,t){return y(m(e,t))}function E(e,t){return g(x(e,t))}function S(e){if(e=h(e),!k.test(e))return e;var t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!k.test(e)))return e;var r=g(y(m(e)));return r&&s(e)?T(r):r}function D(e){return s(e)?e.substr(0,e.length-1):e}function T(t){return s(t)?t:t+e.directorySeparator}function C(e){return i(e)||a(e)?e:"./"+e}e.isAnyDirectorySeparator=r,e.isUrl=e=>l(e)<0,e.isRootedDiskPath=n,e.isDiskPathRoot=e=>{var t=l(e);return t>0&&t===e.length},e.pathIsAbsolute=i,e.pathIsRelative=a,e.pathIsBareSpecifier=e=>!i(e)&&!a(e),e.hasExtension=t=>e.stringContains(p(t),"."),e.fileExtensionIs=o,e.fileExtensionIsOneOf=(e,t)=>{for(var r=0,n=t;r<n.length;r++)if(o(e,n[r]))return!0;return!1},e.hasTrailingDirectorySeparator=s,e.getRootLength=u,e.getDirectoryPath=d,e.getBaseFileName=p,e.getAnyExtensionFromPath=f,e.getPathComponents=m,e.getPathFromPathComponents=g,e.normalizeSlashes=h,e.reducePathComponents=y,e.combinePaths=v,e.resolvePath=b,e.getNormalizedPathComponents=x,e.getNormalizedAbsolutePath=E,e.normalizePath=S,e.getNormalizedAbsolutePathWithoutRoot=(t,r)=>{return 0===(n=x(t,r)).length?"":n.slice(1).join(e.directorySeparator);var n},e.toPath=(e,t,r)=>r(n(e)?S(e):E(e,t)),e.normalizePathAndParts=t=>{var r=y(m(t=h(t))),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:s(t)?T(a):a,parts:i}}return{path:n,parts:i}},e.removeTrailingDirectorySeparator=D,e.ensureTrailingDirectorySeparator=T,e.ensurePathIsNonModuleName=C,e.changeAnyExtension=(t,r,n,i)=>{var a=void 0!==n&&void 0!==i?f(t,n,i):f(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t};var k=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function A(t,r,n){if(t===r)return 0;if(void 0===t)return-1;if(void 0===r)return 1;var i=t.substring(0,u(t)),a=r.substring(0,u(r)),o=e.compareStringsCaseInsensitive(i,a);if(0!==o)return o;var s=t.substring(i.length),c=r.substring(a.length);if(!k.test(s)&&!k.test(c))return n(s,c);for(var l=y(m(t)),d=y(m(r)),p=Math.min(l.length,d.length),_=1;_<p;_++){var f=n(l[_],d[_]);if(0!==f)return f}return e.compareValues(l.length,d.length)}function N(t,r,n,i){var a,o=y(m(t)),s=y(m(r));for(a=0;a<o.length&&a<s.length;a++){var c=i(o[a]),l=i(s[a]);if(!(0===a?e.equateStringsCaseInsensitive:n)(c,l))break}if(0===a)return s;for(var u=s.slice(a),d=[];a<o.length;a++)d.push("..");return Il(Il([""],d,!0),u,!0)}function w(t,r,n){e.Debug.assert(u(t)>0==u(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return g(N(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function F(t,r,i,a,o){var s=N(b(i,t),b(i,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&n(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return g(s)}e.comparePathsCaseSensitive=(t,r)=>A(t,r,e.compareStringsCaseSensitive),e.comparePathsCaseInsensitive=(t,r)=>A(t,r,e.compareStringsCaseInsensitive),e.comparePaths=(t,r,n,i)=>("string"==typeof n?(t=v(n,t),r=v(n,r)):"boolean"==typeof n&&(i=n),A(t,r,e.getStringComparer(i))),e.containsPath=(t,r,n,i)=>{if("string"==typeof n?(t=v(n,t),r=v(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=y(m(t)),o=y(m(r));if(o.length<a.length)return!1;for(var s=i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,c=0;c<a.length;c++)if(!(0===c?e.equateStringsCaseInsensitive:s)(a[c],o[c]))return!1;return!0},e.startsWithDirectory=(t,r,n)=>{var i=n(t),a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.getPathComponentsRelativeTo=N,e.getRelativePathFromDirectory=w,e.convertToRelativePath=(e,t,r)=>n(e)?F(t,e,t,r,!1):e,e.getRelativePathFromFile=(e,t,r)=>C(w(d(e),t,r)),e.getRelativePathToDirectoryOrUrl=F,e.forEachAncestorDirectory=(e,t)=>{for(;;){var r=t(e);if(void 0!==r)return r;var n=d(e);if(n===e)return;e=n}},e.isNodeModulesDirectory=t=>e.endsWith(t,"/node_modules")})(Fl),(e=>{function t(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var n,i;function a(t,r){return t.getModifiedTime(r)||e.missingFileModifiedTime}function o(e){var t;return(t={})[i.Low]=e.Low,t[i.Medium]=e.Medium,t[i.High]=e.High,t}e.generateDjb2Hash=t,e.setStackTraceLimit=()=>{Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},(e=>{e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"})(n=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),(e=>{e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"})(i=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0),e.getModifiedTime=a;var s,c,l={Low:32,Medium:64,High:256},u=o(l);function d(t){if(t.getEnvironmentVariable){var r=((e,t)=>{var r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}})(0,i);u=a("TSC_WATCH_POLLINGCHUNKSIZE",l)||u,e.unchangedPollThresholds=a("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",l)||e.unchangedPollThresholds}function n(e){var r;return n("Low"),n("Medium"),n("High"),r;function n(n){var i=((e,r)=>t.getEnvironmentVariable("".concat(e,"_").concat(r.toUpperCase())))(e,n);i&&((r||(r={}))[n]=Number(i))}}function a(e,t){var i=n(e);return(r||i)&&o(i?Ol(Ol({},t),i):t)}}function p(e,t,r,n,i){for(var o=r,s=t.length;n&&s;++r===t.length&&(o<r&&(t.length=o),r=0,o=0),s--){var c=t[r];if(c)if(c.isClosed)t[r]=void 0;else{n--;var l=g(c,a(e,c.fileName));c.isClosed?t[r]=void 0:(null==i||i(c,r,l),t[r]&&(o<r&&(t[o]=c,t[r]=void 0),o++))}}return r}function _(t){var r=[],n=[],o=l(i.Low),s=l(i.Medium),c=l(i.High);return(n,i,o)=>{var s={fileName:n,callback:i,unchangedPolls:0,mtime:a(t,n)};return r.push(s),g(s,o),{close(){s.isClosed=!0,e.unorderedRemoveItem(r,s)}}};function l(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function d(t){t.pollIndex=f(t,t.pollingInterval,t.pollIndex,u[t.pollingInterval]),t.length?y(t.pollingInterval):(e.Debug.assert(0===t.pollIndex),t.pollScheduled=!1)}function _(e){f(n,i.Low,0,n.length),d(e),!e.pollScheduled&&n.length&&y(i.Low)}function f(r,a,o,s){return p(t,r,o,s,((t,o,s)=>{var c;s?(t.unchangedPolls=0,r!==n&&(r[o]=void 0,c=t,n.push(c),h(i.Low))):t.unchangedPolls!==e.unchangedPollThresholds[a]?t.unchangedPolls++:r===n?(t.unchangedPolls=1,r[o]=void 0,g(t,i.Low)):a!==i.High&&(t.unchangedPolls++,r[o]=void 0,g(t,a===i.Low?i.Medium:i.High))}))}function m(e){switch(e){case i.Low:return o;case i.Medium:return s;case i.High:return c}}function g(e,t){m(t).push(e),h(t)}function h(e){m(e).pollScheduled||y(e)}function y(e){m(e).pollScheduled=t.setTimeout(e===i.Low?_:d,e,m(e))}}function f(t){var r,n=[],o=0;return(r,i)=>{var o={fileName:r,callback:i,mtime:a(t,r)};return n.push(o),c(),{close(){o.isClosed=!0,e.unorderedRemoveItem(n,o)}}};function s(){r=void 0,o=p(t,n,o,u[i.Low]),c()}function c(){n.length&&!r&&(r=t.setTimeout(s,i.High))}}function m(t,r){var n=new e.Map,i=e.createMultiMap(),a=e.createGetCanonicalFileName(r);return(r,o,s,c)=>{var l=a(r),u=n.get(l);return u?u.refCount++:n.set(l,{watcher:t(r,((t,r)=>e.forEach(i.get(l),(e=>e(t,r)))),s,c),refCount:1}),i.add(l,o),{close(){var t=e.Debug.checkDefined(n.get(l));i.remove(l,o),t.refCount--,t.refCount||(n.delete(l),e.closeFileWatcherOf(t))}}}}function g(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,h(r,n)),!0)}function h(e,t){return 0===e?n.Created:0===t?n.Deleted:n.Changed}function y(t){var r,n=t.watchDirectory,i=t.useCaseSensitiveFileNames,a=t.getCurrentDirectory,o=t.getAccessibleSortedChildDirectories,s=t.directoryExists,c=t.realpath,l=t.setTimeout,u=t.clearTimeout,d=new e.Map,p=e.createMultiMap(),_=new e.Map,f=e.getStringComparer(!i),m=e.createGetCanonicalFileName(i);return(e,t,r,i)=>r?g(e,i,t):n(e,t,r,i);function g(t,i,a){var o=m(t),c=d.get(o);c?c.refCount++:(c={watcher:n(t,(e=>{E(e,i)||((null==i?void 0:i.synchronousWatchDirectory)?(h(o,e),x(t,o,i)):((e,t,n,i)=>{var a=d.get(t);a&&s(e)?((e,t,n,i)=>{var a=_.get(t);a?a.fileNames.push(n):_.set(t,{dirName:e,options:i,fileNames:[n]}),r&&(u(r),r=void 0),r=l(y,1e3)})(e,t,n,i):(h(t,n),v(a))})(t,o,e,i))}),!1,i),refCount:1,childWatches:e.emptyArray},d.set(o,c),x(t,o,i));var f=a&&{dirName:t,callback:a};return f&&p.add(o,f),{dirName:t,close(){var t=e.Debug.checkDefined(d.get(o));f&&p.remove(o,f),t.refCount--,t.refCount||(d.delete(o),e.closeFileWatcherOf(t),t.childWatches.forEach(e.closeFileWatcher))}}}function h(t,r,n){var i,a;e.isString(r)?i=r:a=r,p.forEach(((r,o)=>{var s;if((!a||!0!==a.get(o))&&(o===t||e.startsWith(t,o)&&t[o.length]===e.directorySeparator))if(a)if(n){var c=a.get(o);c?(s=c).push.apply(s,n):a.set(o,n.slice())}else a.set(o,!0);else r.forEach((e=>(0,e.callback)(i)))}))}function y(){r=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(_.size));for(var t=e.timestamp(),n=new e.Map;!r&&_.size;){var i=_.entries().next();e.Debug.assert(!i.done);var a=i.value,o=a[0],s=a[1],c=s.dirName,l=s.options,u=s.fileNames;_.delete(o);var d=x(c,o,l);h(o,n,d?void 0:u)}e.sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-t,"ms:: ").concat(_.size)),p.forEach(((t,r)=>{var i=n.get(r);i&&t.forEach((t=>{var r=t.callback,n=t.dirName;e.isArray(i)?i.forEach(r):r(n)}))}));var f=e.timestamp()-t;e.sysLog("sysLog:: Elapsed:: ".concat(f,"ms:: onTimerToUpdateChildWatches:: ").concat(_.size," ").concat(r))}function v(t){if(t){var r=t.childWatches;t.childWatches=e.emptyArray;for(var n=0,i=r;n<i.length;n++){var a=i[n];a.close(),v(d.get(m(a.dirName)))}}}function x(t,r,n){var i,a=d.get(r);if(!a)return!1;var l=e.enumerateInsertsAndDeletes(s(t)?e.mapDefined(o(t),(r=>{var i=e.getNormalizedAbsolutePath(r,t);return E(i,n)||0!==f(i,e.normalizePath(c(i)))?void 0:i})):e.emptyArray,a.childWatches,((e,t)=>f(e,t.dirName)),(e=>{u(g(e,n))}),e.closeFileWatcher,u);return a.childWatches=i||e.emptyArray,l;function u(e){(i||(i=[])).push(e)}}function E(t,r){return e.some(e.ignoredPaths,(r=>((t,r)=>!!e.stringContains(t,r)||!i&&e.stringContains(m(t),r))(t,r)))||b(t,r,i,a)}}function v(e){return(t,r)=>e(r===n.Changed?"change":"rename","")}function b(t,r,n,i){return((null==r?void 0:r.excludeDirectories)||(null==r?void 0:r.excludeFiles))&&(e.matchesExclude(t,null==r?void 0:r.excludeFiles,n,i())||e.matchesExclude(t,null==r?void 0:r.excludeDirectories,n,i()))}function x(t,r,n,i,a){return(o,s)=>{if("rename"===o){var c=s?e.normalizePath(e.combinePaths(t,s)):t;s&&b(c,n,i,a)||r(c)}}}function E(t){var r,a,o,s,c=t.pollingWatchFile,l=t.getModifiedTime,u=t.setTimeout,d=t.clearTimeout,p=t.fsWatch,m=t.fileExists,g=t.useCaseSensitiveFileNames,h=t.getCurrentDirectory,v=t.fsSupportsRecursiveFsWatch,b=t.directoryExists,E=t.getAccessibleSortedChildDirectories,S=t.realpath,D=t.tscWatchFile,T=t.useNonPollingWatchers,C=t.tscWatchDirectory,k=t.defaultWatchFileKind;return{watchFile(t,r,a,s){s=((t,r)=>{if(t&&void 0!==t.watchFile)return t;switch(D){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return w(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,t);case"UseFsEventsWithFallbackDynamicPolling":return w(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,t);case"UseFsEventsOnParentDirectory":r=!0;default:return r?w(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,t):{watchFile:(null==k?void 0:k())||e.WatchFileKind.FixedPollingInterval}}})(s,T);var l=e.Debug.checkDefined(s.watchFile);switch(l){case e.WatchFileKind.FixedPollingInterval:return c(t,r,i.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return c(t,r,a,void 0);case e.WatchFileKind.DynamicPriorityPolling:return A()(t,r,a,void 0);case e.WatchFileKind.FixedChunkSizePolling:return N()(t,r,void 0,void 0);case e.WatchFileKind.UseFsEvents:return p(t,0,((e,t,r)=>i=>{t(e,"rename"===i?r(e)?n.Created:n.Deleted:n.Changed)})(t,r,m),!1,a,e.getFallbackOptions(s));case e.WatchFileKind.UseFsEventsOnParentDirectory:return o||(o=((t,r)=>{var a=e.createMultiMap(),o=new e.Map,s=e.createGetCanonicalFileName(r);return(r,c,l,u)=>{var d=s(r);a.add(d,c);var p=e.getDirectoryPath(d)||".",_=o.get(p)||((r,c,l)=>{var u=t(r,1,((t,i)=>{if(e.isString(i)){var o=e.getNormalizedAbsolutePath(i,r),c=o&&a.get(s(o));if(c)for(var l=0,u=c;l<u.length;l++)(0,u[l])(o,n.Changed)}}),!1,i.Medium,l);return u.referenceCount=0,o.set(c,u),u})(e.getDirectoryPath(r)||".",p,u);return _.referenceCount++,{close(){1===_.referenceCount?(_.close(),o.delete(p)):_.referenceCount--,a.remove(d,c)}}}})(p,g)),o(t,r,a,e.getFallbackOptions(s));default:e.Debug.assertNever(l)}},watchDirectory:(t,r,n,a)=>v?p(t,1,x(t,r,a,g,h),n,i.Medium,e.getFallbackOptions(a)):(s||(s=y({useCaseSensitiveFileNames:g,getCurrentDirectory:h,directoryExists:b,getAccessibleSortedChildDirectories:E,watchDirectory:F,realpath:S,setTimeout:u,clearTimeout:d})),s(t,r,n,a))};function A(){return r||(r=_({getModifiedTime:l,setTimeout:u}))}function N(){return a||(a=f({getModifiedTime:l,setTimeout:u}))}function w(e,t,r){var n=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===n?t:n}}function F(t,r,n,a){e.Debug.assert(!n);var o=(t=>{if(t&&void 0!==t.watchDirectory)return t;switch(C){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var r=null==t?void 0:t.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==r?r:void 0}}})(a),s=e.Debug.checkDefined(o.watchDirectory);switch(s){case e.WatchDirectoryKind.FixedPollingInterval:return c(t,(()=>r(t)),i.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return A()(t,(()=>r(t)),i.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return N()(t,(()=>r(t)),void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return p(t,1,x(t,r,a,g,h),n,i.Medium,e.getFallbackOptions(o));default:e.Debug.assertNever(s)}}}function S(t){var r=t.writeFile;t.writeFile=(n,i,a)=>e.writeFileEnsuringDirectories(n,i,!!a,((e,n,i)=>r.call(t,e,n,i)),(e=>t.createDirectory(e)),(e=>t.directoryExists(e)))}function D(){if(void 0!==r){var e=r.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.unchangedPollThresholds=o(l),e.setCustomPollingValues=d,e.createDynamicPriorityPollingWatchFile=_,e.createSingleFileWatcherPerName=m,e.onWatchedFileStat=g,e.getFileWatcherEventKind=h,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop,e.setSysLog=t=>{e.sysLog=t},e.createDirectoryWatcherSupportingRecursive=y,(c=e.FileSystemEntryKind||(e.FileSystemEntryKind={}))[c.File=0]="File",c[c.Directory=1]="Directory",e.createFileWatcherCallback=v,e.createSystemWatchFunctions=E,e.patchWriteFileEnsuringDirectory=S,e.getNodeMajorVersion=D,e.sys=(void 0!==r&&r.nextTick&&!r.browser&&"undefined"!=typeof require&&(s=(()=>{var i,a,o=require("fs"),c=require("path"),l=require("os");try{a=require("crypto")}catch(e){a=void 0}var u,d=!1,p=require("buffer").Buffer,_=D()>=4,f="linux"===r.platform||"darwin"===r.platform,g=l.platform(),h="win32"!==g&&"win64"!==g&&!P((u=__filename,u.replace(/\w/g,(e=>{var t=e.toUpperCase();return e===t?e.toLowerCase():t})))),y=null!==(i=o.realpathSync.native)&&void 0!==i?i:o.realpathSync,b=_&&("win32"===r.platform||"darwin"===r.platform),x=e.memoize((()=>r.cwd())),S=E({pollingWatchFile:m(((e,t,r)=>{var i;return o.watchFile(e,{persistent:!0,interval:r},a),{close:()=>o.unwatchFile(e,a)};function a(r,a){var o=0==+a.mtime||i===n.Deleted;if(0==+r.mtime){if(o)return;i=n.Deleted}else if(o)i=n.Created;else{if(+r.mtime==+a.mtime)return;i=n.Changed}t(e,i)}}),h),getModifiedTime:M,setTimeout,clearTimeout,fsWatch(t,r,i,a,s,c){var l,u,p;f&&(u=t.substr(t.lastIndexOf(e.directorySeparator)),p=u.slice(e.directorySeparator.length));var _=F(t,r)?g():x();return{close(){_.close(),_=void 0}};function m(r){e.sysLog("sysLog:: ".concat(t,":: Changing watcher to ").concat(r===g?"Present":"Missing","FileSystemEntryWatcher")),i("rename",""),_&&(_.close(),_=r())}function g(){if(void 0===l&&(l=b?{persistent:!0,recursive:!!a}:{persistent:!0}),d)return e.sysLog("sysLog:: ".concat(t,":: Defaulting to fsWatchFile")),y();try{var r=o.watch(t,l,f?h:i);return r.on("error",(()=>m(x))),r}catch(r){return d||(d="ENOSPC"===r.code),e.sysLog("sysLog:: ".concat(t,":: Changing to fsWatchFile")),y()}}function h(e,n){return"rename"!==e||n&&n!==p&&(-1===n.lastIndexOf(u)||n.lastIndexOf(u)!==n.length-u.length)||F(t,r)?i(e,n):m(x)}function y(){return T(t,v(i),s,c)}function x(){return T(t,((e,i)=>{i===n.Created&&F(t,r)&&m(g)}),s,c)}},useCaseSensitiveFileNames:h,getCurrentDirectory:x,fileExists:P,fsSupportsRecursiveFsWatch:b,directoryExists:I,getAccessibleSortedChildDirectories:e=>w(e).directories,realpath:O,tscWatchFile:r.env.TSC_WATCHFILE,useNonPollingWatchers:r.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:r.env.TSC_WATCHDIRECTORY,defaultWatchFileKind(){var e,t;return null===(t=(e=s).defaultWatchFileKind)||void 0===t?void 0:t.call(e)}}),T=S.watchFile,C=S.watchDirectory,k={args:r.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:h,write(e){r.stdout.write(e)},getWidthOfTerminal:()=>r.stdout.columns,writeOutputIsTTY:()=>r.stdout.isTTY,readFile(t,r){e.perfLogger.logStartReadFile(t);var n=((e,t)=>{var r;try{r=o.readFileSync(e)}catch(e){return}var n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i<n;i+=2){var a=r[i];r[i]=r[i+1],r[i+1]=a}return r.toString("utf16le",2)}return n>=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")})(t);return e.perfLogger.logStopReadFile(),n},writeFile(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=o.openSync(t,"w"),o.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&o.closeSync(i)}},watchFile:T,watchDirectory:C,resolvePath:e=>c.resolve(e),fileExists:P,directoryExists:I,createDirectory(e){if(!k.directoryExists(e))try{o.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>__filename,getCurrentDirectory:x,getDirectories:e=>w(e).directories.slice(),getEnvironmentVariable:e=>r.env[e]||"",readDirectory:(t,n,i,a,o)=>e.matchFiles(t,n,i,a,h,r.cwd(),o,w,O),getModifiedTime:M,setModifiedTime(e,t){try{o.utimesSync(e,t,t)}catch(e){return}},deleteFile(e){try{return o.unlinkSync(e)}catch(e){return}},createHash:a?R:t,createSHA256Hash:a?R:void 0,getMemoryUsage:()=>(global.gc&&global.gc(),r.memoryUsage().heapUsed),getFileSize(e){try{var t=A(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit(e){!(e=>{e()})((()=>r.exit(e)))},cpuProfilingEnabled:()=>e.contains(r.execArgv,"--cpu-prof")||e.contains(r.execArgv,"--prof"),realpath:O,debugMode:!!r.env.NODE_INSPECTOR_IPC||!!r.env.VSCODE_INSPECTOR_OPTIONS||e.some(r.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e))),tryEnableSourceMapsForHost(){try{require("source-map-support").install()}catch(e){}},setTimeout,clearTimeout,clearScreen(){r.stdout.write("c")},setBlocking(){r.stdout&&r.stdout._handle&&r.stdout._handle.setBlocking&&r.stdout._handle.setBlocking(!0)},bufferFrom:N,base64decode:e=>N(e,"base64").toString("utf8"),base64encode:e=>N(e).toString("base64"),require(t,r){try{var n=e.resolveJSModule(r,t,k);return{module:require(n),modulePath:n,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return k;function A(e){return o.statSync(e,{throwIfNoEntry:!1})}function N(e,t){return p.from&&p.from!==Int8Array.from?p.from(e,t):new p(e,t)}function w(t){e.perfLogger.logEvent("ReadDir: "+(t||"."));try{for(var r=o.readdirSync(t||".",{withFileTypes:!0}),n=[],i=[],a=0,s=r;a<s.length;a++){var c=s[a],l="string"==typeof c?c:c.name;if("."!==l&&".."!==l){var u=void 0;if("string"==typeof c||c.isSymbolicLink()){var d=e.combinePaths(t,l);try{if(!(u=A(d)))continue}catch(e){continue}}else u=c;u.isFile()?n.push(l):u.isDirectory()&&i.push(l)}}return n.sort(),i.sort(),{files:n,directories:i}}catch(t){return e.emptyFileSystemEntries}}function F(e,t){var r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var n=A(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=r}}function P(e){return F(e,0)}function I(e){return F(e,1)}function O(e){try{return y(e)}catch(t){return e}}function M(e){var t;try{return null===(t=A(e))||void 0===t?void 0:t.mtime}catch(e){return}}function R(e){var t=a.createHash("sha256");return t.update(e),t.digest("hex")}})()),s&&S(s),s),e.setSys=t=>{e.sys=t},e.sys&&e.sys.getEnvironmentVariable&&(d(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(Fl),(e=>{function t(e,t,r,n,i,a,o){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:t(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:t(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:t(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node12', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node12', or 'nodenext'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:t(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:t(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:t(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:t(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:t(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:t(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:t(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead:t(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:t(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:t(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:t(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:t(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821","Import assertions are only supported when the '--module' option is set to 'esnext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:t(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path:t(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0:t(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:t(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:t(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:t(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:t(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:t(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:t(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:t(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects"),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date"),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'"),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like `__extends` in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied `any` type.."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when `this` is given the type `any`."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type"),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add `undefined` to a type when accessed using an index."),Enable_error_reporting_when_a_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read"),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing `const enum` declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode"),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read"),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for `bind`, `call`, and `apply` methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account `null` and `undefined`."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have `@internal` in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress `noImplicitAny` errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:t(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like `./node_modules/@types`."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:t(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types"),Type_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:t(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:t(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:t(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:t(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),JSON_imports_are_experimental_in_ES_module_mode_imports:t(7062,e.DiagnosticCategory.Error,"JSON_imports_are_experimental_in_ES_module_mode_imports_7062","JSON imports are experimental in ES module mode imports."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}})(Fl),(e=>{var t;function r(e){return e>=79}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=e=>31===e||r(e),e.textToKeywordObj=((t={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:157,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=134,t.debugger=87,t.declare=135,t.default=88,t.delete=89,t.do=90,t.else=91,t.enum=92,t.export=93,t.extends=94,t.false=95,t.finally=96,t.for=97,t.from=155,t.function=98,t.get=136,t.if=99,t.implements=117,t.import=100,t.in=101,t.infer=137,t.instanceof=102,t.interface=118,t.intrinsic=138,t.is=139,t.keyof=140,t.let=119,t.module=141,t.namespace=142,t.never=143,t.new=103,t.null=104,t.number=146,t.object=147,t.package=120,t.private=121,t.protected=122,t.public=123,t.override=158,t.readonly=144,t.require=145,t.global=156,t.return=105,t.set=148,t.static=124,t.string=149,t.super=106,t.switch=107,t.symbol=150,t.this=108,t.throw=109,t.true=110,t.try=111,t.type=151,t.typeof=112,t.undefined=152,t.unique=153,t.unknown=154,t.var=113,t.void=114,t.while=115,t.with=116,t.yield=125,t.async=131,t.await=132,t.of=159,t);var n=new e.Map(e.getEntries(e.textToKeywordObj)),i=new e.Map(e.getEntries(Ol(Ol({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),a=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],o=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],s=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],u=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],d=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function _(e,t){if(e<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[r+1])return!0;e<t[r]?i=r:n=r+2}return!1}function f(e,t){return _(e,t>=2?l:1===t?s:a)}e.isUnicodeIdentifierStart=f;var m,g=(m=[],i.forEach(((e,t)=>{m[e]=t})),m);function h(e){for(var t=new Array,r=0,n=0;r<e.length;){var i=e.charCodeAt(r);switch(r++,i){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:i>127&&D(i)&&(t.push(n),n=r)}}return t.push(n),t}function y(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: ".concat(r,", lineStarts.length: ").concat(t.length," , line map is correct? ").concat(void 0!==i?e.arraysEqual(t,h(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r<t.length-1?e.Debug.assert(o<t[r+1]):void 0!==i&&e.Debug.assert(o<=i.length),o)}function v(e){return e.lineMap||(e.lineMap=h(e.text))}function b(e,t){var r=x(e,t);return{line:r,character:t-e[r]}}function x(t,r,n){var i=e.binarySearch(t,r,e.identity,e.compareValues,n);return i<0&&(i=~i-1,e.Debug.assert(-1!==i,"position cannot precede the beginning of the file")),i}function E(e){return S(e)||D(e)}function S(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function D(e){return 10===e||13===e||8232===e||8233===e}function T(e){return e>=48&&e<=57}function C(e){return T(e)||e>=65&&e<=70||e>=97&&e<=102}function k(e){return e>=48&&e<=55}e.tokenToString=e=>g[e],e.stringToToken=e=>i.get(e),e.computeLineStarts=h,e.getPositionOfLineAndCharacter=(e,t,r,n)=>e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):y(v(e),t,r,e.text,n),e.computePositionOfLineAndCharacter=y,e.getLineStarts=v,e.computeLineAndCharacterOfPosition=b,e.computeLineOfPosition=x,e.getLinesBetweenPositions=(e,t,r)=>{if(t===r)return 0;var n=v(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=x(n,i),c=x(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=(e,t)=>b(v(e),t),e.isWhiteSpaceLike=E,e.isWhiteSpaceSingleLine=S,e.isLineBreak=D,e.isOctalDigit=k,e.couldStartTrivia=(e,t)=>{var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=(t,r,n,i,a)=>{if(e.positionIsSynthesized(r))return r;for(var o=!1;;){var s=t.charCodeAt(r);switch(s){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;o=!!a;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r<t.length&&!D(t.charCodeAt(r));)r++;o=!1;continue}if(42===t.charCodeAt(r+1)){for(r+=2;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(N(t,r)){r=w(t,r),o=!1;continue}break;case 35:if(0===r&&P(t,r)){r=I(t,r),o=!1;continue}break;case 42:if(o){r++,o=!1;continue}break;default:if(s>127&&E(s)){r++;continue}}return r}};var A="<<<<<<<".length;function N(t,r){if(e.Debug.assert(r>=0),0===r||D(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+A<t.length){for(var i=0;i<A;i++)if(t.charCodeAt(r+i)!==n)return!1;return 61===n||32===t.charCodeAt(r+A)}}return!1}function w(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,r,A);var i=t.charCodeAt(r),a=t.length;if(60===i||62===i)for(;r<a&&!D(t.charCodeAt(r));)r++;else for(e.Debug.assert(124===i||61===i);r<a;){var o=t.charCodeAt(r);if((61===o||62===o)&&o!==i&&N(t,r))break;r++}return r}var F=/^#!.*/;function P(t,r){return e.Debug.assert(0===r),F.test(t)}function I(e,t){return t+F.exec(e)[0].length}function O(e,t,r,n,i,a,o){var s,c,l,u,d=!1,p=n,_=o;if(0===r){p=!0;var f=B(t);f&&(r=f.length)}e:for(;r>=0&&r<t.length;){var m=t.charCodeAt(r);switch(m){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;p=!0,d&&(u=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var g=t.charCodeAt(r+1),h=!1;if(47===g||42===g){var y=47===g?2:3,v=r;if(r+=2,47===g)for(;r<t.length;){if(D(t.charCodeAt(r))){h=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(p){if(d&&(_=i(s,c,l,u,a,_),!e&&_))return _;s=v,c=r,l=y,u=h,d=!0}continue}break e;default:if(m>127&&E(m)){d&&D(m)&&(u=!0),r++;continue}break e}}return d&&(_=i(s,c,l,u,a,_)),_}function M(e,t,r,n,i){return O(!0,e,t,!1,r,n,i)}function R(e,t,r,n,i){return O(!0,e,t,!0,r,n,i)}function L(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function B(e){var t=F.exec(e);if(t)return t[0]}function j(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&f(e,t)}function U(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&((e,t)=>_(e,t>=2?u:1===t?c:o))(e,t)}e.isShebangTrivia=P,e.scanShebangTrivia=I,e.forEachLeadingCommentRange=(e,t,r,n)=>O(!1,e,t,!1,r,n),e.forEachTrailingCommentRange=(e,t,r,n)=>O(!1,e,t,!0,r,n),e.reduceEachLeadingCommentRange=M,e.reduceEachTrailingCommentRange=R,e.getLeadingCommentRanges=(e,t)=>M(e,t,L,void 0,void 0),e.getTrailingCommentRanges=(e,t)=>R(e,t,L,void 0,void 0),e.getShebang=B,e.isIdentifierStart=j,e.isIdentifierPart=U,e.isIdentifierText=(e,t,r)=>{var n=V(e,0);if(!j(n,t))return!1;for(var i=z(n);i<e.length;i+=z(n))if(!U(n=V(e,i),t,r))return!1;return!0},e.createScanner=(t,i,a,o,s,c,l)=>{void 0===a&&(a=0);var u,_,f,m,g,h,y,v,b=o,x=0;le(b,c,l);var A={getStartPos:()=>f,getTextPos:()=>u,getToken:()=>g,getTokenPos:()=>m,getTokenText:()=>b.substring(m,u),getTokenValue:()=>h,hasUnicodeEscape:()=>0!=(1024&y),hasExtendedUnicodeEscape:()=>0!=(8&y),hasPrecedingLineBreak:()=>0!=(1&y),hasPrecedingJSDocComment:()=>0!=(2&y),isIdentifier:()=>79===g||g>116,isReservedWord:()=>g>=81&&g<=116,isUnterminated:()=>0!=(4&y),getCommentDirectives:()=>v,getNumericLiteralFlags:()=>1008&y,getTokenFlags:()=>y,reScanGreaterToken(){if(31===g){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=72):(u+=2,g=49):61===b.charCodeAt(u+1)?(u+=2,g=71):(u++,g=48);if(61===b.charCodeAt(u))return u++,g=33}return g},reScanAsteriskEqualsToken:()=>(e.Debug.assert(66===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=m+1,g=63),reScanSlashToken(){if(43===g||68===g){for(var r=m+1,n=!1,i=!1;;){if(r>=_){y|=4,F(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(D(a)){y|=4,F(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r<_&&U(b.charCodeAt(r),t);)r++;u=r,h=b.substring(m,u),g=13}return g},reScanTemplateToken:t=>(e.Debug.assert(19===g,"'reScanTemplateToken' should only be called on a '}'"),u=m,g=$(t)),reScanTemplateHeadOrNoSubstitutionTemplate:()=>(u=m,g=$(!0)),scanJsxIdentifier(){if(r(g)){for(var e=!1;u<_;){var t=b.charCodeAt(u);if(45!==t)if(58!==t||e){var n=u;if(h+=Z(),u===n)break}else h+=":",u++,e=!0,g=79;else h+="-",u++}":"===h.slice(-1)&&(h=h.slice(0,-1),u--)}return g},scanJsxAttributeValue:se,reScanJsxAttributeValue:()=>(u=m=f,se()),reScanJsxToken:e=>(void 0===e&&(e=!0),u=m=f,g=oe(e)),reScanLessThanToken:()=>47===g?(u=m+1,g=29):g,reScanHashToken:()=>80===g?(u=m+1,g=62):g,reScanQuestionToken:()=>(e.Debug.assert(60===g,"'reScanQuestionToken' should only be called on a '??'"),u=m+1,g=57),reScanInvalidIdentifier(){e.Debug.assert(0===g,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=m=f,y=0;var t=V(b,u),r=ie(t,99);return r?g=r:(u+=z(t),g)},scanJsxToken:oe,scanJsDocToken(){if(f=m=u,y=0,u>=_)return g=1;var e=V(b,u);switch(u+=z(e),e){case 9:case 11:case 12:case 32:for(;u<_&&S(b.charCodeAt(u));)u++;return g=5;case 64:return g=59;case 13:10===b.charCodeAt(u)&&u++;case 10:return y|=1,g=4;case 42:return g=41;case 123:return g=18;case 125:return g=19;case 91:return g=22;case 93:return g=23;case 60:return g=29;case 62:return g=31;case 61:return g=63;case 44:return g=27;case 46:return g=24;case 96:return g=61;case 35:return g=62;case 92:u--;var r=Q();if(r>=0&&j(r,t))return u+=3,y|=8,h=X()+Z(),g=ee();var n=Y();return n>=0&&j(n,t)?(u+=6,y|=1024,h=String.fromCharCode(n)+Z(),g=ee()):(u++,g=0)}if(j(e,t)){for(var i=e;u<_&&U(i=V(b,u),t)||45===b.charCodeAt(u);)u+=z(i);return h=b.substring(m,u),92===i&&(h+=Z()),g=ee()}return g=0},scan:ne,getText:()=>b,clearCommentDirectives(){v=void 0},setText:le,setScriptTarget(e){t=e},setLanguageVariant(e){a=e},setOnError(e){s=e},setTextPos:ue,setInJSDocType(e){x+=e?1:-1},tryScan:e=>ce(e,!1),lookAhead:e=>ce(e,!0),scanRange(e,t,r){var n=_,i=u,a=f,o=m,s=g,c=h,l=y,d=v;le(b,e,t);var p=r();return _=n,u=i,f=a,m=o,g=s,h=c,y=l,v=d,p}};return e.Debug.isDebugging&&Object.defineProperty(A,"__debugShowCurrentPositionInText",{get(){var e=A.getText();return e.slice(0,A.getStartPos())+"║"+e.slice(A.getStartPos())}}),A;function F(e,t,r){if(void 0===t&&(t=u),s){var n=u;u=t,s(e,r||0),u=n}}function O(){for(var t=u,r=!1,n=!1,i="";;){var a=b.charCodeAt(u);if(95!==a){if(!T(a))break;r=!0,n=!1,u++}else y|=512,r?(r=!1,n=!0,i+=b.substring(t,u)):F(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),t=++u}return 95===b.charCodeAt(u-1)&&F(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),i+b.substring(t,u)}function M(){var t,r,n=u,i=O();46===b.charCodeAt(u)&&(u++,t=O());var a,o=u;if(69===b.charCodeAt(u)||101===b.charCodeAt(u)){u++,y|=16,43!==b.charCodeAt(u)&&45!==b.charCodeAt(u)||u++;var s=u,c=O();c?(r=b.substring(o,s)+c,o=u):F(e.Diagnostics.Digit_expected)}if(512&y?(a=i,t&&(a+="."+t),r&&(a+=r)):a=b.substring(n,o),void 0!==t||16&y)return R(n,void 0===t&&!!(16&y)),{type:8,value:""+ +a};h=a;var l=re();return R(n),{type:l,value:h}}function R(r,n){if(j(V(b,u),t)){var i=u,a=Z().length;1===a&&"n"===b[i]?F(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(F(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),u=i)}}function L(){for(var e=u;k(b.charCodeAt(u));)u++;return+b.substring(e,u)}function B(e,t){var r=H(e,!1,t);return r?parseInt(r,16):-1}function K(e,t){return H(e,!0,t)}function H(t,r,n){for(var i=[],a=!1,o=!1;i.length<t||r;){var s=b.charCodeAt(u);if(n&&95===s)y|=512,a?(a=!1,o=!0):F(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++;else{if(a=n,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),u++,o=!1}}return i.length<t&&(i=[]),95===b.charCodeAt(u-1)&&F(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),String.fromCharCode.apply(String,i)}function J(t){void 0===t&&(t=!1);for(var r=b.charCodeAt(u),n="",i=++u;;){if(u>=_){n+=b.substring(i,u),y|=4,F(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(u);if(a===r){n+=b.substring(i,u),u++;break}if(92!==a||t){if(D(a)&&!t){n+=b.substring(i,u),y|=4,F(e.Diagnostics.Unterminated_string_literal);break}u++}else n+=b.substring(i,u),n+=G(),i=u}return n}function $(t){for(var r,n=96===b.charCodeAt(u),i=++u,a="";;){if(u>=_){a+=b.substring(i,u),y|=4,F(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(u);if(96===o){a+=b.substring(i,u),u++,r=n?14:17;break}if(36===o&&u+1<_&&123===b.charCodeAt(u+1)){a+=b.substring(i,u),u+=2,r=n?15:16;break}92!==o?13!==o?u++:(a+=b.substring(i,u),++u<_&&10===b.charCodeAt(u)&&u++,a+="\n",i=u):(a+=b.substring(i,u),a+=G(t),i=u)}return e.Debug.assert(void 0!==r),h=a,r}function G(t){var r=u;if(++u>=_)return F(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(u);switch(u++,n){case 48:return t&&u<_&&T(b.charCodeAt(u))?(u++,y|=2048,b.substring(r,u)):"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(t)for(var i=u;i<u+4;i++)if(i<_&&!C(b.charCodeAt(i))&&123!==b.charCodeAt(i))return u=i,y|=2048,b.substring(r,u);if(u<_&&123===b.charCodeAt(u)){if(u++,t&&!C(b.charCodeAt(u)))return y|=2048,b.substring(r,u);if(t){var a=u,o=K(1,!1);if(!((o?parseInt(o,16):-1)<=1114111&&125===b.charCodeAt(u)))return y|=2048,b.substring(r,u);u=a}return y|=8,X()}return y|=1024,q(4);case 120:if(t){if(!C(b.charCodeAt(u)))return y|=2048,b.substring(r,u);if(!C(b.charCodeAt(u+1)))return u++,y|=2048,b.substring(r,u)}return q(2);case 13:u<_&&10===b.charCodeAt(u)&&u++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function q(t){var r=B(t,!1);return r>=0?String.fromCharCode(r):(F(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=K(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(F(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(F(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),u>=_?(F(e.Diagnostics.Unexpected_end_of_text),n=!0):125===b.charCodeAt(u)?u++:(F(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":W(r)}function Y(){if(u+5<_&&117===b.charCodeAt(u+1)){var e=u;u+=2;var t=B(4,!1);return u=e,t}return-1}function Q(){if(t>=2&&117===V(b,u+1)&&123===V(b,u+2)){var e=u;u+=3;var r=K(1,!1),n=r?parseInt(r,16):-1;return u=e,n}return-1}function Z(){for(var e="",r=u;u<_;){var n=V(b,u);if(U(n,t))u+=z(n);else{if(92!==n)break;if((n=Q())>=0&&U(n,t)){u+=3,y|=8,e+=X(),r=u;continue}if(!((n=Y())>=0&&U(n,t)))break;y|=1024,e+=b.substring(r,u),e+=W(n),r=u+=6}}return e+b.substring(r,u)}function ee(){var e=h.length;if(e>=2&&e<=12){var t=h.charCodeAt(0);if(t>=97&&t<=122){var r=n.get(h);if(void 0!==r)return g=r}}return g=79}function te(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(u);if(95!==a){if(n=!0,!T(a)||a-48>=t)break;r+=b[u],u++,i=!1}else y|=512,n?(n=!1,i=!0):F(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&F(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),r}function re(){if(110===b.charCodeAt(u))return h+="n",384&y&&(h=e.parsePseudoBigInt(h)+"n"),u++,9;var t=128&y?parseInt(h.slice(2),2):256&y?parseInt(h.slice(2),8):+h;return h=""+t,8}function ne(){var r;f=u,y=0;for(var n=!1;;){if(m=u,u>=_)return g=1;var o=V(b,u);if(35===o&&0===u&&P(b,u)){if(u=I(b,u),i)continue;return g=6}switch(o){case 10:case 13:if(y|=1,i){u++;continue}return 13===o&&u+1<_&&10===b.charCodeAt(u+1)?u+=2:u++,g=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(i){u++;continue}for(;u<_&&S(b.charCodeAt(u));)u++;return g=5;case 33:return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=37):(u+=2,g=35):(u++,g=53);case 34:case 39:return h=J(),g=10;case 96:return g=$(!1);case 37:return 61===b.charCodeAt(u+1)?(u+=2,g=69):(u++,g=44);case 38:return 38===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=76):(u+=2,g=55):61===b.charCodeAt(u+1)?(u+=2,g=73):(u++,g=50);case 40:return u++,g=20;case 41:return u++,g=21;case 42:if(61===b.charCodeAt(u+1))return u+=2,g=66;if(42===b.charCodeAt(u+1))return 61===b.charCodeAt(u+2)?(u+=3,g=67):(u+=2,g=42);if(u++,x&&!n&&1&y){n=!0;continue}return g=41;case 43:return 43===b.charCodeAt(u+1)?(u+=2,g=45):61===b.charCodeAt(u+1)?(u+=2,g=64):(u++,g=39);case 44:return u++,g=27;case 45:return 45===b.charCodeAt(u+1)?(u+=2,g=46):61===b.charCodeAt(u+1)?(u+=2,g=65):(u++,g=40);case 46:return T(b.charCodeAt(u+1))?(h=M().value,g=8):46===b.charCodeAt(u+1)&&46===b.charCodeAt(u+2)?(u+=3,g=25):(u++,g=24);case 47:if(47===b.charCodeAt(u+1)){for(u+=2;u<_&&!D(b.charCodeAt(u));)u++;if(v=ae(v,b.slice(m,u),d,m),i)continue;return g=2}if(42===b.charCodeAt(u+1)){u+=2,42===b.charCodeAt(u)&&47!==b.charCodeAt(u+1)&&(y|=2);for(var s=!1,c=m;u<_;){var l=b.charCodeAt(u);if(42===l&&47===b.charCodeAt(u+1)){u+=2,s=!0;break}u++,D(l)&&(c=u,y|=1)}if(v=ae(v,b.slice(c,u),p,c),s||F(e.Diagnostics.Asterisk_Slash_expected),i)continue;return s||(y|=4),g=3}return 61===b.charCodeAt(u+1)?(u+=2,g=68):(u++,g=43);case 48:if(u+2<_&&(88===b.charCodeAt(u+1)||120===b.charCodeAt(u+1)))return u+=2,(h=K(1,!0))||(F(e.Diagnostics.Hexadecimal_digit_expected),h="0"),h="0x"+h,y|=64,g=re();if(u+2<_&&(66===b.charCodeAt(u+1)||98===b.charCodeAt(u+1)))return u+=2,(h=te(2))||(F(e.Diagnostics.Binary_digit_expected),h="0"),h="0b"+h,y|=128,g=re();if(u+2<_&&(79===b.charCodeAt(u+1)||111===b.charCodeAt(u+1)))return u+=2,(h=te(8))||(F(e.Diagnostics.Octal_digit_expected),h="0"),h="0o"+h,y|=256,g=re();if(u+1<_&&k(b.charCodeAt(u+1)))return h=""+L(),y|=32,g=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=M(),g=r.type,h=r.value,g;case 58:return u++,g=58;case 59:return u++,g=26;case 60:if(N(b,u)){if(u=w(b,u,F),i)continue;return g=7}return 60===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=70):(u+=2,g=47):61===b.charCodeAt(u+1)?(u+=2,g=32):1===a&&47===b.charCodeAt(u+1)&&42!==b.charCodeAt(u+2)?(u+=2,g=30):(u++,g=29);case 61:if(N(b,u)){if(u=w(b,u,F),i)continue;return g=7}return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=36):(u+=2,g=34):62===b.charCodeAt(u+1)?(u+=2,g=38):(u++,g=63);case 62:if(N(b,u)){if(u=w(b,u,F),i)continue;return g=7}return u++,g=31;case 63:return 46!==b.charCodeAt(u+1)||T(b.charCodeAt(u+2))?63===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=77):(u+=2,g=60):(u++,g=57):(u+=2,g=28);case 91:return u++,g=22;case 93:return u++,g=23;case 94:return 61===b.charCodeAt(u+1)?(u+=2,g=78):(u++,g=52);case 123:return u++,g=18;case 124:if(N(b,u)){if(u=w(b,u,F),i)continue;return g=7}return 124===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=75):(u+=2,g=56):61===b.charCodeAt(u+1)?(u+=2,g=74):(u++,g=51);case 125:return u++,g=19;case 126:return u++,g=54;case 64:return u++,g=59;case 92:var E=Q();if(E>=0&&j(E,t))return u+=3,y|=8,h=X()+Z(),g=ee();var C=Y();return C>=0&&j(C,t)?(u+=6,y|=1024,h=String.fromCharCode(C)+Z(),g=ee()):(F(e.Diagnostics.Invalid_character),u++,g=0);case 35:return 0!==u&&"!"===b[u+1]?(F(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,g=0):(j(V(b,u+1),t)?(u++,ie(V(b,u),t)):(h=String.fromCharCode(V(b,u)),F(e.Diagnostics.Invalid_character,u++,z(o))),g=80);default:var A=ie(o,t);if(A)return g=A;if(S(o)){u+=z(o);continue}if(D(o)){y|=1,u+=z(o);continue}var O=z(o);return F(e.Diagnostics.Invalid_character,u,O),u+=O,g=0}}}function ie(e,t){var r=e;if(j(r,t)){for(u+=z(r);u<_&&U(r=V(b,u),t);)u+=z(r);return h=b.substring(m,u),92===r&&(h+=Z()),ee()}}function ae(t,r,n,i){var a=((e,t)=>{var r=t.exec(e);if(r)switch(r[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}})(e.trimStringStart(r),n);return void 0===a?t:e.append(t,{range:{pos:i,end:u},type:a})}function oe(t){if(void 0===t&&(t=!0),f=m=u,u>=_)return g=1;var r=b.charCodeAt(u);if(60===r)return 47===b.charCodeAt(u+1)?(u+=2,g=30):(u++,g=29);if(123===r)return u++,g=18;for(var n=0;u<_&&123!==(r=b.charCodeAt(u));){if(60===r){if(N(b,u))return u=w(b,u,F),g=7;break}if(62===r&&F(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,u,1),125===r&&F(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,u,1),D(r)&&0===n)n=-1;else{if(!t&&D(r)&&n>0)break;E(r)||(n=u)}u++}return h=b.substring(f,u),-1===n?12:11}function se(){switch(f=u,b.charCodeAt(u)){case 34:case 39:return h=J(!0),g=10;default:return ne()}}function ce(e,t){var r=u,n=f,i=m,a=g,o=h,s=y,c=e();return c&&!t||(u=r,f=n,m=i,g=a,h=o,y=s),c}function le(e,t,r){b=e||"",_=void 0===r?b.length:t+r,ue(t||0)}function ue(t){e.Debug.assert(t>=0),u=t,f=t,m=t,g=0,h=void 0,y=0}};var V=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>{var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function z(e){return e>=65536?2:1}var K=String.fromCodePoint?e=>String.fromCodePoint(e):t=>{if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function W(e){return K(e)}e.utf16EncodeAsString=W})(Fl),(e=>{function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function l(t){return!!Q(t)&&e.every(t.elements,u)}function u(t){return!!e.isOmittedExpression(t)||l(t.name)}function d(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function p(t,r){e.isBindingElement(t)&&(t=d(t));var n=r(t);return 253===t.kind&&(t=t.parent),t&&254===t.kind&&(n|=r(t),t=t.parent),t&&236===t.kind&&(n|=r(t)),n}function _(e){return 0==(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function m(e){return f(e.escapedText)}function g(t){var r=t.parent.parent;if(r){if(se(r))return h(r);switch(r.kind){case 236:if(r.declarationList&&r.declarationList.declarations[0])return h(r.declarationList.declarations[0]);break;case 237:var n=r.expression;switch(220===n.kind&&63===n.operatorToken.kind&&(n=n.left),n.kind){case 205:return n.name;case 206:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 211:return h(r.expression);case 249:if(se(r.statement)||ne(r.statement))return h(r.statement)}}}function h(t){var r=x(t);return r&&e.isIdentifier(r)?r:void 0}function y(e){return e.name||g(e)}function v(e){return!!e.name}function b(t){switch(t.kind){case 79:return t;case 345:case 338:var r=t.name;if(160===r.kind)return r.right;break;case 207:case 220:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 343:return y(t);case 337:return g(t);case 270:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 206:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?E(t):void 0)}function E(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return N(t.parent,r).filter((t=>e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=N(t.parent,r).filter(e.isJSDocParameterTag);if(i<a.length)return[a[i]]}return e.emptyArray}function D(e){return S(e,!1)}function T(t,r){var n=t.name.escapedText;return N(t.parent,r).filter((t=>e.isJSDocTemplateTag(t)&&t.typeParameters.some((e=>e.name.escapedText===n))))}function C(t){return F(t,e.isJSDocReturnTag)}function k(t){var r=F(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type)return r}function A(t){var r=F(t,e.isJSDocTypeTag);return!r&&e.isParameter(t)&&(r=e.find(D(t),(e=>!!e.typeExpression))),r&&r.typeExpression&&r.typeExpression.type}function N(t,r){var n=t.jsDocCache;if(void 0===n||r){var i=e.getJSDocCommentsAndTags(t,r);e.Debug.assert(i.length<2||i[0]!==i[1]),n=e.flatMap(i,(t=>e.isJSDoc(t)?t.tags:t)),r||(t.jsDocCache=n)}return n}function w(e){return N(e,!1)}function F(t,r,n){return e.find(N(t,n),r)}function P(e,t){return w(e).filter(t)}function I(e){var t=e.kind;return!!(32&e.flags)&&(205===t||206===t||207===t||229===t)}function O(t){return I(t)&&!e.isNonNullExpression(t)&&!!t.questionDotToken}function M(t){return e.skipOuterExpressions(t,8)}function R(e){switch(e.kind){case 300:case 301:return!0;default:return!1}}function L(e){return e>=160}function B(e){return e>=0&&e<=159}function j(e){return 8<=e&&e<=14}function U(e){return 14<=e&&e<=17}function V(t){return(e.isPropertyDeclaration(t)||q(t))&&e.isPrivateIdentifier(t.name)}function z(e){switch(e){case 126:case 131:case 85:case 135:case 88:case 93:case 123:case 121:case 122:case 144:case 124:case 158:return!0}return!1}function K(t){return!!(16476&e.modifierToFlag(t))}function W(e){return!!e&&J(e.kind)}function H(e){switch(e){case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return!1}}function J(e){switch(e){case 167:case 173:case 321:case 174:case 175:case 178:case 315:case 179:return!0;default:return H(e)}}function $(e){var t=e.kind;return 170===t||166===t||168===t||171===t||172===t||175===t||169===t||233===t}function G(e){return e&&(256===e.kind||225===e.kind)}function q(e){switch(e.kind){case 168:case 171:case 172:return!0;default:return!1}}function X(e){var t=e.kind;return 174===t||173===t||165===t||167===t||175===t}function Y(e){var t=e.kind;return 294===t||295===t||296===t||168===t||171===t||172===t}function Q(e){if(e){var t=e.kind;return 201===t||200===t}return!1}function Z(e){switch(e.kind){case 200:case 204:return!0}return!1}function ee(e){switch(e.kind){case 201:case 203:return!0}return!1}function te(e){switch(e){case 205:case 206:case 208:case 207:case 277:case 278:case 281:case 209:case 203:case 211:case 204:case 225:case 212:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 222:case 95:case 104:case 108:case 110:case 106:case 229:case 230:case 100:return!0;default:return!1}}function re(e){switch(e){case 218:case 219:case 214:case 215:case 216:case 217:case 210:return!0;default:return te(e)}}function ne(e){return(e=>{switch(e){case 221:case 223:case 213:case 220:case 224:case 228:case 226:case 349:case 348:return!0;default:return re(e)}})(M(e).kind)}function ie(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ae(e){return 255===e||275===e||256===e||257===e||258===e||259===e||260===e||265===e||264===e||271===e||270===e||263===e}function oe(e){return 245===e||244===e||252===e||239===e||237===e||235===e||242===e||243===e||241===e||238===e||249===e||246===e||248===e||250===e||251===e||236===e||240===e||247===e||347===e||351===e||350===e}function se(t){return 162===t.kind?t.parent&&342!==t.parent.kind||e.isInJSFile(t):213===(r=t.kind)||202===r||256===r||225===r||169===r||170===r||259===r||297===r||274===r||255===r||212===r||171===r||266===r||264===r||269===r||257===r||284===r||168===r||167===r||260===r||263===r||267===r||273===r||163===r||294===r||166===r||165===r||172===r||295===r||258===r||162===r||253===r||343===r||336===r||345===r;var r}function ce(e){return e.kind>=325&&e.kind<=345}e.isExternalModuleNameRelative=t=>e.pathIsRelative(t)||e.isRootedDiskPath(t),e.sortAndDeduplicateDiagnostics=t=>e.sortAndDeduplicate(t,e.compareDiagnostics),e.getDefaultLibFileName=t=>{switch(e.getEmitScriptTarget(t)){case 99:return"lib.esnext.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=(e,r)=>r>=e.start&&r<t(e),e.textRangeContainsPositionInclusive=(e,t)=>t>=e.pos&&t<=e.end,e.textSpanContainsTextSpan=(e,r)=>r.start>=e.start&&t(r)<=t(e),e.textSpanOverlapsWith=(e,t)=>void 0!==n(e,t),e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=(e,t)=>i(e.start,e.length,t.start,t.length),e.textSpanIntersectsWith=(e,t,r)=>i(e.start,e.length,t,r),e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=(e,r)=>r<=t(e)&&r>=e.start,e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=e=>o(e.span.start,e.newLength),e.textChangeRangeIsUnchanged=e=>r(e.span)&&0===e.newLength,e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=r=>{if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,l=1;l<r.length;l++){var u=r[l],d=i,p=a,_=o,f=u.span.start,m=t(u.span),g=f+u.newLength;i=Math.min(d,f),a=Math.max(p,p+(m-_)),o=Math.max(g,g+(_-m))}return c(s(i,a),o-i)},e.getTypeParameterOwner=e=>{if(e&&162===e.kind)for(var t=e;t;t=t.parent)if(W(t)||G(t)||257===t.kind)return t},e.isParameterPropertyDeclaration=(t,r)=>e.hasSyntacticModifier(t,16476)&&170===r.kind,e.isEmptyBindingPattern=l,e.isEmptyBindingElement=u,e.walkUpBindingElementsAndPatterns=d,e.getCombinedModifierFlags=t=>p(t,e.getEffectiveModifierFlags),e.getCombinedNodeFlagsAlwaysIncludeJSDoc=t=>p(t,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc),e.getCombinedNodeFlags=e=>p(e,(e=>e.flags)),e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],e.validateLocaleAndSetLanguage=(t,r,n)=>{var i=t.toLowerCase(),a=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(a){var o=a[1],s=a[3];e.contains(e.supportedLocaleDirectories,i)&&!c(o,s,n)&&c(o,void 0,n),e.setUILocale(t)}else n&&n.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function c(t,n,i){var a=e.normalizePath(r.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,t);if(n&&(s=s+"-"+n),s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!r.fileExists(s))return!1;var c="";try{c=r.readFile(s)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(c))}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=(e,t)=>{if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0},e.findAncestor=(e,t)=>{for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}},e.isParseTreeNode=_,e.getParseTreeNode=(e,t)=>{if(void 0===e||_(e))return e;for(e=e.original;e;){if(_(e))return!t||t(e)?e:void 0;e=e.original}},e.escapeLeadingUnderscores=e=>e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e,e.unescapeLeadingUnderscores=f,e.idText=m,e.symbolName=e=>e.valueDeclaration&&V(e.valueDeclaration)?m(e.valueDeclaration.name):f(e.escapedName),e.nodeHasName=function t(r,n){return!(!v(r)||!e.isIdentifier(r.name)||m(r.name)!==m(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(e=>t(e,n))))},e.getNameOfJSDocTypedef=y,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=E,e.getJSDocParameterTags=D,e.getJSDocParameterTagsNoCache=e=>S(e,!0),e.getJSDocTypeParameterTags=e=>T(e,!1),e.getJSDocTypeParameterTagsNoCache=e=>T(e,!0),e.hasJSDocParameterTags=t=>!!F(t,e.isJSDocParameterTag),e.getJSDocAugmentsTag=t=>F(t,e.isJSDocAugmentsTag),e.getJSDocImplementsTags=t=>P(t,e.isJSDocImplementsTag),e.getJSDocClassTag=t=>F(t,e.isJSDocClassTag),e.getJSDocPublicTag=t=>F(t,e.isJSDocPublicTag),e.getJSDocPublicTagNoCache=t=>F(t,e.isJSDocPublicTag,!0),e.getJSDocPrivateTag=t=>F(t,e.isJSDocPrivateTag),e.getJSDocPrivateTagNoCache=t=>F(t,e.isJSDocPrivateTag,!0),e.getJSDocProtectedTag=t=>F(t,e.isJSDocProtectedTag),e.getJSDocProtectedTagNoCache=t=>F(t,e.isJSDocProtectedTag,!0),e.getJSDocReadonlyTag=t=>F(t,e.isJSDocReadonlyTag),e.getJSDocReadonlyTagNoCache=t=>F(t,e.isJSDocReadonlyTag,!0),e.getJSDocOverrideTagNoCache=t=>F(t,e.isJSDocOverrideTag,!0),e.getJSDocDeprecatedTag=t=>F(t,e.isJSDocDeprecatedTag),e.getJSDocDeprecatedTagNoCache=t=>F(t,e.isJSDocDeprecatedTag,!0),e.getJSDocEnumTag=t=>F(t,e.isJSDocEnumTag),e.getJSDocThisTag=t=>F(t,e.isJSDocThisTag),e.getJSDocReturnTag=C,e.getJSDocTemplateTag=t=>F(t,e.isJSDocTemplateTag),e.getJSDocTypeTag=k,e.getJSDocType=A,e.getJSDocReturnType=t=>{var r=C(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=w,e.getJSDocTagsNoCache=e=>N(e,!0),e.getAllJSDocTags=P,e.getAllJSDocTagsOfKind=(e,t)=>w(e).filter((e=>e.kind===t)),e.getTextOfJSDocComment=t=>"string"==typeof t?t:null==t?void 0:t.map((t=>319===t.kind?t.text:"{@link ".concat(t.name?e.entityNameToString(t.name)+" ":"").concat(t.text,"}"))).join(""),e.getEffectiveTypeParameterDeclarations=t=>{if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(318===t.parent.kind),e.flatMap(t.parent.tags,(t=>e.isJSDocTemplateTag(t)?t.typeParameters:void 0));if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=A(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=t=>t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0,e.isMemberName=e=>79===e.kind||80===e.kind,e.isGetOrSetAccessorDeclaration=e=>172===e.kind||171===e.kind,e.isPropertyAccessChain=t=>e.isPropertyAccessExpression(t)&&!!(32&t.flags),e.isElementAccessChain=t=>e.isElementAccessExpression(t)&&!!(32&t.flags),e.isCallChain=t=>e.isCallExpression(t)&&!!(32&t.flags),e.isOptionalChain=I,e.isOptionalChainRoot=O,e.isExpressionOfOptionalChainRoot=e=>O(e.parent)&&e.parent.expression===e,e.isOutermostOptionalChain=e=>!I(e.parent)||O(e.parent)||e!==e.parent.expression,e.isNullishCoalesce=e=>220===e.kind&&60===e.operatorToken.kind,e.isConstTypeReference=t=>e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments,e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=t=>e.isNonNullExpression(t)&&!!(32&t.flags),e.isBreakOrContinueStatement=e=>245===e.kind||244===e.kind,e.isNamedExportBindings=e=>273===e.kind||272===e.kind,e.isUnparsedTextLike=R,e.isUnparsedNode=e=>R(e)||298===e.kind||302===e.kind,e.isJSDocPropertyLikeTag=e=>345===e.kind||338===e.kind,e.isNode=e=>L(e.kind),e.isNodeKind=L,e.isTokenKind=B,e.isToken=e=>B(e.kind),e.isNodeArray=e=>e.hasOwnProperty("pos")&&e.hasOwnProperty("end"),e.isLiteralKind=j,e.isLiteralExpression=e=>j(e.kind),e.isTemplateLiteralKind=U,e.isTemplateLiteralToken=e=>U(e.kind),e.isTemplateMiddleOrTemplateTail=e=>{var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=t=>e.isImportSpecifier(t)||e.isExportSpecifier(t),e.isTypeOnlyImportOrExportDeclaration=e=>{switch(e.kind){case 269:case 274:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 267:return e.parent.isTypeOnly;case 266:case 264:return e.isTypeOnly;default:return!1}},e.isAssertionKey=t=>e.isStringLiteral(t)||e.isIdentifier(t),e.isStringTextContainingNode=e=>10===e.kind||U(e.kind),e.isGeneratedIdentifier=t=>e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0,e.isPrivateIdentifierClassElementDeclaration=V,e.isPrivateIdentifierPropertyAccessExpression=t=>e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name),e.isModifierKind=z,e.isParameterPropertyModifier=K,e.isClassMemberModifier=e=>K(e)||124===e||158===e,e.isModifier=e=>z(e.kind),e.isEntityName=e=>{var t=e.kind;return 160===t||79===t},e.isPropertyName=e=>{var t=e.kind;return 79===t||80===t||10===t||8===t||161===t},e.isBindingName=e=>{var t=e.kind;return 79===t||200===t||201===t},e.isFunctionLike=W,e.isFunctionLikeOrClassStaticBlockDeclaration=t=>!!t&&(J(t.kind)||e.isClassStaticBlockDeclaration(t)),e.isFunctionLikeDeclaration=e=>e&&H(e.kind),e.isBooleanLiteral=e=>110===e.kind||95===e.kind,e.isFunctionLikeKind=J,e.isFunctionOrModuleBlock=t=>e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&W(t.parent),e.isClassElement=$,e.isClassLike=G,e.isAccessor=e=>e&&(171===e.kind||172===e.kind),e.isMethodOrAccessor=q,e.isTypeElement=X,e.isClassOrTypeElement=e=>X(e)||$(e),e.isObjectLiteralElementLike=Y,e.isTypeNode=t=>e.isTypeNodeKind(t.kind),e.isFunctionOrConstructorTypeNode=e=>{switch(e.kind){case 178:case 179:return!0}return!1},e.isBindingPattern=Q,e.isAssignmentPattern=e=>{var t=e.kind;return 203===t||204===t},e.isArrayBindingElement=e=>{var t=e.kind;return 202===t||226===t},e.isDeclarationBindingElement=e=>{switch(e.kind){case 253:case 163:case 202:return!0}return!1},e.isBindingOrAssignmentPattern=e=>Z(e)||ee(e),e.isObjectBindingOrAssignmentPattern=Z,e.isObjectBindingOrAssignmentElement=e=>{switch(e.kind){case 202:case 294:case 295:case 296:return!0}return!1},e.isArrayBindingOrAssignmentPattern=ee,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=e=>{var t=e.kind;return 205===t||160===t||199===t},e.isPropertyAccessOrQualifiedName=e=>{var t=e.kind;return 205===t||160===t},e.isCallLikeExpression=e=>{switch(e.kind){case 279:case 278:case 207:case 208:case 209:case 164:return!0;default:return!1}},e.isCallOrNewExpression=e=>207===e.kind||208===e.kind,e.isTemplateLiteral=e=>{var t=e.kind;return 222===t||14===t},e.isLeftHandSideExpression=e=>te(M(e).kind),e.isUnaryExpression=e=>re(M(e).kind),e.isUnaryExpressionWithWrite=e=>{switch(e.kind){case 219:return!0;case 218:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ne,e.isAssertionExpression=e=>{var t=e.kind;return 210===t||228===t},e.isNotEmittedOrPartiallyEmittedNode=t=>e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t),e.isIterationStatement=function e(t,r){switch(t.kind){case 241:case 242:case 243:case 239:case 240:return!0;case 249:return r&&e(t.statement,r)}return!1},e.isScopeMarker=ie,e.hasScopeMarker=t=>e.some(t,ie),e.needsScopeMarker=t=>!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t)),e.isExternalModuleIndicator=t=>e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1),e.isForInOrOfStatement=e=>242===e.kind||243===e.kind,e.isConciseBody=t=>e.isBlock(t)||ne(t),e.isFunctionBody=t=>e.isBlock(t),e.isForInitializer=t=>e.isVariableDeclarationList(t)||ne(t),e.isModuleBody=e=>{var t=e.kind;return 261===t||260===t||79===t},e.isNamespaceBody=e=>{var t=e.kind;return 261===t||260===t},e.isJSDocNamespaceBody=e=>{var t=e.kind;return 79===t||260===t},e.isNamedImportBindings=e=>{var t=e.kind;return 268===t||267===t},e.isModuleOrEnumDeclaration=e=>260===e.kind||259===e.kind,e.isDeclaration=se,e.isDeclarationStatement=e=>ae(e.kind),e.isStatementButNotDeclaration=e=>oe(e.kind),e.isStatement=t=>{var r=t.kind;return oe(r)||ae(r)||(t=>234===t.kind&&(void 0===t.parent||251!==t.parent.kind&&291!==t.parent.kind)&&!e.isFunctionBlock(t))(t)},e.isStatementOrBlock=e=>{var t=e.kind;return oe(t)||ae(t)||234===t},e.isModuleReference=e=>{var t=e.kind;return 276===t||160===t||79===t},e.isJsxTagNameExpression=e=>{var t=e.kind;return 108===t||79===t||205===t},e.isJsxChild=e=>{var t=e.kind;return 277===t||287===t||278===t||11===t||281===t},e.isJsxAttributeLike=e=>{var t=e.kind;return 284===t||286===t},e.isStringLiteralOrJsxExpression=e=>{var t=e.kind;return 10===t||287===t},e.isJsxOpeningLikeElement=e=>{var t=e.kind;return 279===t||278===t},e.isCaseOrDefaultClause=e=>{var t=e.kind;return 288===t||289===t},e.isJSDocNode=e=>e.kind>=307&&e.kind<=345,e.isJSDocCommentContainingNode=t=>318===t.kind||317===t.kind||319===t.kind||ue(t)||ce(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t),e.isJSDocTag=ce,e.isSetAccessor=e=>172===e.kind,e.isGetAccessor=e=>171===e.kind,e.hasJSDocNodes=e=>{var t=e.jsDoc;return!!t&&t.length>0},e.hasType=e=>!!e.type,e.hasInitializer=e=>!!e.initializer,e.hasOnlyExpressionInitializer=e=>{switch(e.kind){case 253:case 163:case 202:case 165:case 166:case 294:case 297:return!0;default:return!1}},e.isObjectLiteralElement=e=>284===e.kind||286===e.kind||Y(e),e.isTypeReferenceType=e=>177===e.kind||227===e.kind;var le=1073741823;function ue(e){return 322===e.kind||323===e.kind||324===e.kind}e.guessIndentation=t=>{for(var r=le,n=0,i=t;n<i.length;n++){var a=i[n];if(a.length){for(var o=0;o<a.length&&o<r&&e.isWhiteSpaceLike(a.charCodeAt(o));o++);if(o<r&&(r=o),0===r)return 0}}return r===le?void 0:r},e.isStringLiteralLike=e=>10===e.kind||14===e.kind,e.isJSDocLinkLike=ue})(Fl),function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6,e.getDeclarationOfKind=(e,t)=>{var r=e.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===t)return a}},e.createUnderscoreEscapedMap=()=>new e.Map,e.hasEntries=e=>!!e&&!!e.size,e.createSymbolTable=t=>{var r=new e.Map;if(t)for(var n=0,i=t;n<i.length;n++){var a=i[n];r.set(a.escapedName,a)}return r},e.isTransientSymbol=e=>0!=(33554432&e.flags);var t,r,n,i=(t="",{getText:()=>t,write:r=e=>t+=e,rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:(e,t)=>r(e),writeTrailingSemicolon:r,writeComment:r,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:e.noop,decreaseIndent:e.noop,clear:()=>t="",trackSymbol:()=>!1,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function a(t,r){return o(t,r,e.moduleResolutionOptionDeclarations)}function o(e,t,r){return e!==t&&r.some((r=>!ui(An(e,r),An(t,r))))}function s(e){return e.end-e.pos}function c(e){for(;e&&303!==e.kind;)e=e.parent;return e}function l(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function u(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function d(e){return!u(e)}function p(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice.apply(e,Il([n,0],t,!1)),e}function _(e,t,r){if(void 0===t)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice(n,0,t),e}function f(e){return J(e)||!!(1048576&x(e))}function m(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function g(t,r,n){return u(t)?t.pos:e.isJSDocNode(t)||11===t.kind?e.skipTrivia((r||c(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?g(t.jsDoc[0],r):346===t.kind&&t._children.length>0?g(t._children[0],r,n):e.skipTrivia((r||c(t)).text,t.pos,!1,!1,be(t))}function h(e,t,r){return void 0===r&&(r=!1),y(e.text,t,r)}function y(t,r,n){if(void 0===n&&(n=!1),u(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return(t=>!!e.findAncestor(t,e.isJSDocTypeExpression))(r)&&(i=i.split(/\r\n|\n|\r/).map((t=>e.trimStringStart(t.replace(/^\s*\*/,"")))).join("\n")),i}function v(e,t){return void 0===t&&(t=!1),h(c(e),e,t)}function b(e){return e.pos}function x(e){var t=e.emitNode;return t&&t.flags||0}function E(e){var t=Ct(e);return 253===t.kind&&291===t.parent.kind}function S(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||T(t))}function D(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function T(e){return!!(1024&e.flags)}function C(e){return S(e)&&k(e)}function k(t){switch(t.parent.kind){case 303:return e.isExternalModule(t.parent);case 261:return S(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function A(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((t=>!(C(t)||e.isModuleDeclaration(t)&&T(t))))}function N(t,r){switch(t.kind){case 303:case 262:case 291:case 260:case 241:case 242:case 243:case 170:case 168:case 171:case 172:case 255:case 212:case 213:case 166:case 169:return!0;case 234:return!e.isFunctionLikeOrClassStaticBlockDeclaration(r)}return!1}function w(t){switch(t.kind){case 173:case 174:case 167:case 175:case 178:case 179:case 315:case 256:case 225:case 257:case 258:case 342:case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return e.assertType(t),!1}}function F(e){switch(e.kind){case 265:case 264:return!0;default:return!1}}function P(t){return F(t)||e.isExportDeclaration(t)}function I(t){return e.findAncestor(t.parent,(e=>N(e,e.parent)))}function O(e){return e&&0!==s(e)?v(e):"(Missing)"}function M(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 161:return vt(t.expression)?e.escapeLeadingUnderscores(t.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}function R(t){switch(t.kind){case 108:return"this";case 80:case 79:return 0===s(t)?e.idText(t):v(t);case 160:return R(t.left)+"."+R(t.right);case 205:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?R(t.expression)+"."+R(t.name):e.Debug.assertNever(t.name);case 309:return R(t.left)+R(t.right);default:return e.Debug.assertNever(t)}}function L(e,t,r,n,i,a,o){var s=V(e,t);return gn(e,s.start,s.length,r,n,i,a,o)}function B(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length))}function j(e,t,r,n,i){return B(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function U(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function V(t,r){var n=r;switch(r.kind){case 303:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):U(t,i);case 253:case 202:case 256:case 225:case 257:case 260:case 259:case 297:case 255:case 212:case 168:case 171:case 172:case 258:case 166:case 165:case 267:n=r.name;break;case 213:return((t,r)=>{var n=e.skipTrivia(t.text,r.pos);if(r.body&&234===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i<e.getLineAndCharacterOfPosition(t,r.body.end).line)return e.createTextSpan(n,l(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)})(t,r);case 288:case 289:var a=e.skipTrivia(t.text,r.pos),o=r.statements.length>0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return U(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=u(n),c=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function z(e){return 6===e.scriptKind}function K(t){return!!(2&e.getCombinedNodeFlags(t))}function W(e){return 207===e.kind&&100===e.expression.kind}function H(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function J(e){return 237===e.kind&&10===e.expression.kind}function $(e){return!!(1048576&x(e))}function G(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=(e,t)=>e.configFilePath!==t.configFilePath||a(e,t),e.optionsHaveModuleResolutionChanges=a,e.changesAffectingProgramStructure=(t,r)=>o(t,r,e.optionsAffectingProgramStructure),e.optionsHaveChanges=o,e.forEachAncestor=(t,r)=>{for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=(e,t)=>{for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=(e,t)=>{for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=(e,t)=>{e.forEach(((e,r)=>{t.set(r,e)}))},e.usingSingleLineStringWriter=e=>{var t=i.getText();try{return e(i),i.getText()}finally{i.clear(),i.writeKeyword(t)}},e.getFullWidth=s,e.getResolvedModule=(e,t,r)=>e&&e.resolvedModules&&e.resolvedModules.get(t,r),e.setResolvedModule=(t,r,n,i)=>{t.resolvedModules||(t.resolvedModules=e.createModeAwareCache()),t.resolvedModules.set(r,i,n)},e.setResolvedTypeReferenceDirective=(t,r,n)=>{t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),t.resolvedTypeReferenceDirectiveNames.set(r,void 0,n)},e.projectReferenceIsEqualTo=(e,t)=>e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular,e.moduleResolutionIsEqualTo=(e,t)=>{return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&((r=e.packageId)===(n=t.packageId)||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=e=>{var t=e.name,r=e.subModuleName,n=e.version,i=r?"".concat(t,"/").concat(r):t;return"".concat(i,"@").concat(n)},e.typeDirectiveIsEqualTo=(e,t)=>e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath,e.hasChangesInResolutions=(t,r,n,i,a)=>{e.Debug.assert(t.length===r.length);for(var o=0;o<t.length;o++){var s=r[o],c=n&&n.get(t[o],i&&e.getModeForResolutionAtIndex(i,o));if(c?!s||!a(c,s):s)return!0}return!1},e.containsParseError=function t(r){return(r=>{524288&r.flags||((0!=(65536&r.flags)||e.forEachChild(r,t))&&(r.flags|=262144),r.flags|=524288)})(r),0!=(262144&r.flags)},e.getSourceFileOfNode=c,e.getSourceFileOfModule=e=>c(e.valueDeclaration||A(e)),e.isStatementWithLocals=e=>{switch(e.kind){case 234:case 262:case 241:case 242:case 243:return!0}return!1},e.getStartPositionOfLine=(t,r)=>(e.Debug.assert(t>=0),e.getLineStarts(r)[t]),e.nodePosToString=t=>{var r=c(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return"".concat(r.fileName,"(").concat(n.line+1,",").concat(n.character+1,")")},e.getEndLinePosition=l,e.isFileLevelUniqueName=(e,t,r)=>!(r&&r(t)||e.identifiers.has(t)),e.nodeIsMissing=u,e.nodeIsPresent=d,e.insertStatementsAfterStandardPrologue=(e,t)=>p(e,t,J),e.insertStatementsAfterCustomPrologue=(e,t)=>p(e,t,f),e.insertStatementAfterStandardPrologue=(e,t)=>_(e,t,J),e.insertStatementAfterCustomPrologue=(e,t)=>_(e,t,f),e.isRecognizedTripleSlashComment=(t,r,n)=>{if(47===t.charCodeAt(r+1)&&r+2<n&&47===t.charCodeAt(r+2)){var i=t.substring(r,n);return!!(e.fullTripleSlashReferencePathRegEx.test(i)||e.fullTripleSlashAMDReferencePathRegEx.test(i)||q.test(i)||ee.test(i))}return!1},e.isPinnedComment=m,e.createCommentDirectivesMap=(t,r)=>{var n=new e.Map(r.map((r=>["".concat(e.getLineAndCharacterOfPosition(t,r.range.end).line),r]))),i=new e.Map;return{getUnusedExpectations:()=>e.arrayFrom(n.entries()).filter((e=>{var t=e[0];return 0===e[1].type&&!i.get(t)})).map((e=>e[1])),markUsed:e=>!!n.has("".concat(e))&&(i.set("".concat(e),!0),!0)}},e.getTokenPosOfNode=g,e.getNonDecoratorTokenPosOfNode=(t,r)=>u(t)||!t.decorators?g(t,r):e.skipTrivia((r||c(t)).text,t.decorators.end),e.getSourceTextOfNodeFromSourceFile=h,e.isExportNamespaceAsDefaultDeclaration=t=>!!(e.isExportDeclaration(t)&&t.exportClause&&e.isNamespaceExport(t.exportClause)&&"default"===t.exportClause.name.escapedText),e.getTextOfNodeFromSourceText=y,e.getTextOfNode=v,e.indexOfNode=(t,r)=>e.binarySearch(t,r,b,e.compareValues),e.getEmitFlags=x,e.getScriptTargetFeatures=()=>({es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},esnext:{NumberFormat:["formatToParts"]}}),(n=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}))[n.None=0]="None",n[n.NeverAsciiEscape=1]="NeverAsciiEscape",n[n.JsxAttributeEscape=2]="JsxAttributeEscape",n[n.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",n[n.AllowNumericSeparator=8]="AllowNumericSeparator",e.getLiteralText=(t,r,n)=>{var i;if(((t,r)=>!(kt(t)||!t.parent||4&r&&t.isUnterminated||(e.isNumericLiteral(t)&&512&t.numericLiteralFlags?!(8&r):e.isBigIntLiteral(t))))(t,n))return h(r,t);switch(t.kind){case 10:var a=2&n?Jt:1&n||16777216&x(t)?jt:Vt;return t.singleQuote?"'"+a(t.text,39)+"'":'"'+a(t.text,34)+'"';case 14:case 15:case 16:case 17:a=1&n||16777216&x(t)?jt:Vt;var o=null!==(i=t.rawText)&&void 0!==i?i:(e=>e.replace(Pt,"\\${"))(a(t.text,96));switch(t.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break;case 8:case 9:return t.text;case 13:return 4&n&&t.isUnterminated?t.text+(92===t.text.charCodeAt(t.text.length-1)?" /":"/"):t.text}return e.Debug.fail("Literal kind '".concat(t.kind,"' not accounted for."))},e.getTextOfConstantValue=t=>e.isString(t)?'"'+Vt(t)+'"':""+t,e.makeIdentifierFromModuleName=t=>e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_"),e.isBlockOrCatchScoped=t=>0!=(3&e.getCombinedNodeFlags(t))||E(t),e.isCatchClauseVariableDeclarationOrBindingElement=E,e.isAmbientModule=S,e.isModuleWithStringLiteralName=t=>e.isModuleDeclaration(t)&&10===t.name.kind,e.isNonGlobalAmbientModule=t=>e.isModuleDeclaration(t)&&e.isStringLiteral(t.name),e.isEffectiveModuleDeclaration=D,e.isShorthandAmbientModuleSymbol=e=>{return!!(t=e.valueDeclaration)&&260===t.kind&&!t.body;var t},e.isBlockScopedContainerTopLevel=t=>303===t.kind||260===t.kind||e.isFunctionLikeOrClassStaticBlockDeclaration(t),e.isGlobalScopeAugmentation=T,e.isExternalModuleAugmentation=C,e.isModuleAugmentationExternal=k,e.getNonAugmentationDeclaration=A,e.isEffectiveExternalModule=(t,r)=>{return e.isExternalModule(t)||r.isolatedModules||((n=Sn(r))===e.ModuleKind.CommonJS||n===e.ModuleKind.Node12||n===e.ModuleKind.NodeNext)&&!!t.commonJsModuleIndicator;var n},e.isEffectiveStrictModeSourceFile=(t,r)=>{switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(t.isDeclarationFile||!Cn(r,"alwaysStrict")&&!e.startsWithUseStrict(t.statements)&&(!e.isExternalModule(t)&&!r.isolatedModules||!(Sn(r)>=e.ModuleKind.ES2015)&&r.noImplicitUseStrict))},e.isBlockScope=N,e.isDeclarationWithTypeParameters=t=>{switch(t.kind){case 336:case 343:case 321:return!0;default:return e.assertType(t),w(t)}},e.isDeclarationWithTypeParameterChildren=w,e.isAnyImportSyntax=F,e.isLateVisibilityPaintedStatement=e=>{switch(e.kind){case 265:case 264:case 236:case 256:case 255:case 260:case 258:case 257:case 259:return!0;default:return!1}},e.hasPossibleExternalModuleReference=t=>P(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||W(t),e.isAnyImportOrReExport=P,e.getEnclosingBlockScopeContainer=I,e.forEachEnclosingBlockScopeContainer=(e,t)=>{for(var r=I(e);r;)t(r),r=I(r)},e.declarationNameToString=O,e.getNameFromIndexInfo=e=>e.declaration?O(e.declaration.parameters[0].name):void 0,e.isComputedNonLiteralName=e=>161===e.kind&&!vt(e.expression),e.getTextOfPropertyName=M,e.entityNameToString=R,e.createDiagnosticForNode=(e,t,r,n,i,a)=>L(c(e),e,t,r,n,i,a),e.createDiagnosticForNodeArray=(t,r,n,i,a,o,s)=>{var c=e.skipTrivia(t.text,r.pos);return gn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=L,e.createDiagnosticForNodeFromMessageChain=(e,t,r)=>{var n=c(e),i=V(n,e);return j(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=j,e.createDiagnosticForFileFromMessageChain=(e,t,r)=>({file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}),e.createDiagnosticForRange=(e,t,r)=>({file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}),e.getSpanOfTokenAtPosition=U,e.getErrorSpanForNode=V,e.isExternalOrCommonJsModule=e=>void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator),e.isJsonSourceFile=z,e.isEnumConst=t=>!!(2048&e.getCombinedModifierFlags(t)),e.isDeclarationReadonly=t=>!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent)),e.isVarConst=K,e.isLet=t=>!!(1&e.getCombinedNodeFlags(t)),e.isSuperCall=e=>207===e.kind&&106===e.expression.kind,e.isImportCall=W,e.isImportMeta=t=>e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText,e.isLiteralImportTypeNode=H,e.isPrologueDirective=J,e.isCustomPrologue=$,e.isHoistedFunction=t=>$(t)&&e.isFunctionDeclaration(t),e.isHoistedVariableStatement=t=>$(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,G),e.getLeadingCommentRangesOfNode=(t,r)=>11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0,e.getJSDocCommentRanges=(t,r)=>{var n=163===t.kind||162===t.kind||212===t.kind||213===t.kind||211===t.kind||253===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(e=>42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var q=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var X,Y,Q,Z,ee=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function te(t){if(176<=t.kind&&t.kind<=199)return!0;switch(t.kind){case 130:case 154:case 146:case 157:case 149:case 133:case 150:case 147:case 152:case 143:return!0;case 114:return 216!==t.parent.kind;case 227:return!Br(t);case 162:return 194===t.parent.kind||189===t.parent.kind;case 79:(160===t.parent.kind&&t.parent.right===t||205===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||160===t.kind||205===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 160:case 205:case 108:var r=t.parent;if(180===r.kind)return!1;if(199===r.kind)return!r.isTypeOf;if(176<=r.kind&&r.kind<=199)return!0;switch(r.kind){case 227:return!Br(r);case 162:case 342:return t===r.constraint;case 166:case 165:case 163:case 253:return t===r.type;case 255:case 212:case 213:case 170:case 168:case 167:case 171:case 172:return t===r.type;case 173:case 174:case 175:case 210:return t===r.type;case 207:case 208:return e.contains(r.typeArguments,t);case 209:return!1}}return!1}function re(e){if(e)switch(e.kind){case 202:case 297:case 163:case 294:case 166:case 165:case 295:case 253:return!0}return!1}function ne(e){return 254===e.parent.kind&&236===e.parent.parent.kind}function ie(e,t,r){return e.properties.filter((e=>{if(294===e.kind){var n=M(e.name);return t===n||!!r&&r===n}return!1}))}function ae(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function oe(t,r){var n=ae(t);return n?ie(n,r):e.emptyArray}function se(t,r){for(e.Debug.assert(303!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 161:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 164:163===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 213:if(!r)continue;case 255:case 212:case 260:case 169:case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 173:case 174:case 175:case 259:case 303:return t}}}function ce(e){var t=e.kind;return(205===t||206===t)&&106===e.expression.kind}function le(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 256:return!0;case 166:return 256===r.kind;case 171:case 172:case 168:return void 0!==t.body&&256===r.kind;case 163:return void 0!==r.body&&(170===r.kind||168===r.kind||172===r.kind)&&256===n.kind}return!1}function ue(e,t,r){return void 0!==e.decorators&&le(e,t,r)}function de(e,t,r){return ue(e,t,r)||pe(e,t)}function pe(t,r){switch(t.kind){case 256:return e.some(t.members,(e=>de(e,t,r)));case 168:case 172:case 170:return e.some(t.parameters,(e=>ue(e,t,r)));default:return!1}}function _e(e){var t=e.parent;return(279===t.kind||278===t.kind||280===t.kind)&&t.tagName===e}function fe(t){switch(t.kind){case 106:case 104:case 110:case 95:case 13:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 228:case 210:case 229:case 211:case 212:case 225:case 213:case 216:case 214:case 215:case 218:case 219:case 220:case 221:case 224:case 222:case 226:case 277:case 278:case 281:case 223:case 217:case 230:return!0;case 160:for(;160===t.parent.kind;)t=t.parent;return 180===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||_e(t);case 309:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 180===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||_e(t);case 80:return e.isBinaryExpression(t.parent)&&t.parent.left===t&&101===t.parent.operatorToken.kind;case 79:if(180===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||_e(t))return!0;case 8:case 9:case 10:case 14:case 108:return me(t);default:return!1}}function me(e){var t=e.parent;switch(t.kind){case 253:case 163:case 166:case 165:case 297:case 294:case 202:return t.initializer===e;case 237:case 238:case 239:case 240:case 246:case 247:case 248:case 288:case 250:return t.expression===e;case 241:var r=t;return r.initializer===e&&254!==r.initializer.kind||r.condition===e||r.incrementor===e;case 242:case 243:var n=t;return n.initializer===e&&254!==n.initializer.kind||n.expression===e;case 210:case 228:case 232:case 161:return e===t.expression;case 164:case 287:case 286:case 296:return!0;case 227:return t.expression===e&&Br(t);case 295:return t.objectAssignmentInitializer===e;default:return fe(t)}}function ge(e){for(;160===e.kind||79===e.kind;)e=e.parent;return 180===e.kind}function he(e){return 264===e.kind&&276===e.moduleReference.kind}function ye(e){return ve(e)}function ve(e){return!!e&&!!(131072&e.flags)}function be(e){return!!e&&!!(4194304&e.flags)}function xe(t,r){if(207!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function Ee(t){return 202===t.kind&&(t=t.parent.parent),e.isVariableDeclaration(t)&&!!t.initializer&&xe(nn(t.initializer),!0)}function Se(t){return e.isBinaryExpression(t)||rn(t)||e.isIdentifier(t)||e.isCallExpression(t)}function De(t){return ve(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&jr(t.name)&&Ce(t.name,t.initializer.left)?t.initializer.right:t.initializer}function Te(t,r){if(e.isCallExpression(t)){var n=st(t.expression);return 212===n.kind||213===n.kind?t:void 0}return 212===t.kind||225===t.kind||213===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Ce(t,r){if(Dt(t)&&Dt(r))return Tt(t)===Tt(r);if(e.isIdentifier(t)&&Ie(r)&&(108===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))){var n=Be(r);return e.isPrivateIdentifier(n)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Ce(t,n)}return!(!Ie(t)||!Ie(r))&&Ue(t)===Ue(r)&&Ce(t.expression,r.expression)}function ke(e){for(;Lr(e,!0);)e=e.right;return e}function Ae(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Ne(t){return e.isIdentifier(t)&&"module"===t.escapedText}function we(t){return(e.isPropertyAccessExpression(t)||Oe(t))&&Ne(t.expression)&&"exports"===Ue(t)}function Fe(t){var r=(t=>{if(e.isCallExpression(t)){if(!Pe(t))return 0;var r=t.arguments[0];return Ae(r)||we(r)?8:Me(r)&&"prototype"===Ue(r)?9:7}return 63!==t.operatorToken.kind||!rn(t.left)||(n=ke(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text)?0:Le(t.left.expression,!0)&&"prototype"===Ue(t.left)&&e.isObjectLiteralExpression(ze(t))?6:Ve(t.left);var n})(t);return 5===r||ve(t)?r:0}function Pe(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&vt(t.arguments[1])&&Le(t.arguments[0],!0)}function Ie(t){return e.isPropertyAccessExpression(t)||Oe(t)}function Oe(t){return e.isElementAccessExpression(t)&&vt(t.argumentExpression)}function Me(t,r){return e.isPropertyAccessExpression(t)&&(!r&&108===t.expression.kind||e.isIdentifier(t.name)&&Le(t.expression,!0))||Re(t,r)}function Re(e,t){return Oe(e)&&(!t&&108===e.expression.kind||jr(e.expression)||Me(e.expression,!0))}function Le(e,t){return jr(e)||Me(e,t)}function Be(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function je(t){if(e.isPropertyAccessExpression(t))return t.name;var r=st(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Ue(t){var r=je(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function Ve(t){if(108===t.expression.kind)return 4;if(we(t))return 2;if(Le(t.expression,!0)){if(Vr(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===Ue(r))&&Me(t))return 1;if(Le(t,!0)||e.isElementAccessExpression(t)&&Et(t))return 5}return 0}function ze(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Ke(t){switch(t.parent.kind){case 265:case 271:return t.parent;case 276:return t.parent.parent;case 207:return W(t.parent)||xe(t.parent,!1)?t.parent:void 0;case 195:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function We(t){switch(t.kind){case 265:case 271:return t.moduleSpecifier;case 264:return 276===t.moduleReference.kind?t.moduleReference.expression:void 0;case 199:return H(t)?t.argument.literal:void 0;case 207:return t.arguments[0];case 260:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function He(e){return 343===e.kind||336===e.kind||337===e.kind}function Je(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Fe(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function $e(e){switch(e.kind){case 236:var t=Ge(e);return t&&t.initializer;case 166:case 294:return e.initializer}}function Ge(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function qe(t){return e.isModuleDeclaration(t)&&t.body&&260===t.body.kind?t.body:void 0}function Xe(t,r){if(e.isJSDoc(r)){var n=e.filter(r.tags,(e=>Ye(t,e)));return r.tags===n?[r]:n}return Ye(t,r)?[r]:void 0}function Ye(t,r){return!(e.isJSDocTypeTag(r)&&r.parent&&e.isJSDoc(r.parent)&&e.isParenthesizedExpression(r.parent.parent)&&r.parent.parent!==t)}function Qe(t){var r=t.parent;return 294===r.kind||270===r.kind||166===r.kind||237===r.kind&&205===t.kind||246===r.kind||qe(r)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?r:r.parent&&(Ge(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(Ge(r.parent.parent)||$e(r.parent.parent)===t||Je(r.parent.parent))?r.parent.parent:void 0}function Ze(t){var r=et(t);return r&&e.isFunctionLike(r)?r:void 0}function et(t){var r=tt(t);if(r)return Je(r)||(t=>e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?ke(t.expression):void 0)(r)||$e(r)||Ge(r)||qe(r)||r}function tt(t){var r=rt(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function rt(t){return e.findAncestor(t.parent,e.isJSDoc)}function nt(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&316===r.kind}function it(e){for(var t=e.parent;;){switch(t.kind){case 220:var r=t.operatorToken.kind;return Or(r)&&t.left===e?63===r||Ir(r)?1:2:0;case 218:case 219:var n=t.operator;return 45===n||46===n?2:0;case 242:case 243:return t.initializer===e?1:0;case 211:case 203:case 224:case 229:e=t;break;case 296:e=t.parent;break;case 295:if(t.name!==e)return 0;e=t.parent;break;case 294:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function at(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function ot(e){return at(e,211)}function st(t,r){var n=r?17:1;return e.skipOuterExpressions(t,n)}function ct(t){return jr(t)||e.isClassExpression(t)}function lt(e){return ct(ut(e))}function ut(t){return e.isExportAssignment(t)?t.expression:t.right}function dt(t){var r=pt(t);if(r&&ve(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function pt(e){var t=mt(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function _t(t){if(ve(t))return e.getJSDocImplementsTags(t).map((e=>e.class));var r=mt(t.heritageClauses,117);return null==r?void 0:r.types}function ft(e){var t=mt(e.heritageClauses,94);return t?t.types:void 0}function mt(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.token===t)return i}}function gt(e){return 81<=e&&e<=159}function ht(e){return 126<=e&&e<=159}function yt(e){return gt(e)&&!ht(e)}function vt(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}function bt(t){return e.isPrefixUnaryExpression(t)&&(39===t.operator||40===t.operator)&&e.isNumericLiteral(t.operand)}function xt(t){var r=e.getNameOfDeclaration(t);return!!r&&Et(r)}function Et(t){if(161!==t.kind&&206!==t.kind)return!1;var r=e.isElementAccessExpression(t)?st(t.argumentExpression):t.expression;return!vt(r)&&!bt(r)}function St(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 161:var r=t.expression;return vt(r)?e.escapeLeadingUnderscores(r.text):bt(r)?40===r.operator?e.tokenToString(r.operator)+r.operand.text:r.operand.text:void 0;default:return e.Debug.assertNever(t)}}function Dt(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function Tt(t){return e.isMemberName(t)?e.idText(t):t.text}function Ct(e){for(;202===e.kind;)e=e.parent.parent;return e}function kt(e){return si(e.pos)||si(e.end)}function At(e,t,r){switch(e){case 208:return r?0:1;case 218:case 215:case 216:case 214:case 217:case 221:case 223:return 1;case 220:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function Nt(e){return 220===e.kind?e.operatorToken.kind:218===e.kind||219===e.kind?e.operator:e.kind}function wt(e,t,r){switch(e){case 349:return 0;case 224:return 1;case 223:return 2;case 221:return 4;case 220:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return Ft(t)}case 210:case 229:case 218:case 215:case 216:case 214:case 217:return 16;case 219:return 17;case 207:return 18;case 208:return r?19:18;case 209:case 205:case 206:case 230:return 19;case 228:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 203:case 204:case 212:case 213:case 225:case 13:case 14:case 222:case 211:case 226:case 277:case 278:case 281:return 20;default:return-1}}function Ft(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.isPartOfTypeNode=te,e.isChildOfNodeWithKind=(e,t)=>{for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},e.forEachReturnStatement=(t,r)=>function t(n){switch(n.kind){case 246:return r(n);case 262:case 234:case 238:case 239:case 240:case 241:case 242:case 243:case 247:case 248:case 288:case 289:case 249:case 251:case 291:return e.forEachChild(n,t)}}(t),e.forEachYieldExpression=(t,r)=>function t(n){switch(n.kind){case 223:r(n);var i=n.expression;return void(i&&t(i));case 259:case 257:case 260:case 258:return;default:if(e.isFunctionLike(n)){if(n.name&&161===n.name.kind)return void t(n.name.expression)}else te(n)||e.forEachChild(n,t)}}(t),e.getRestParameterElementType=t=>t&&182===t.kind?t.elementType:t&&177===t.kind?e.singleOrUndefined(t.typeArguments):void 0,e.getMembersOfDeclaration=e=>{switch(e.kind){case 257:case 256:case 225:case 181:return e.members;case 204:return e.properties}},e.isVariableLike=re,e.isVariableLikeOrAccessor=t=>re(t)||e.isAccessor(t),e.isVariableDeclarationInVariableStatement=ne,e.isValidESSymbolDeclaration=t=>e.isVariableDeclaration(t)?K(t)&&e.isIdentifier(t.name)&&ne(t):e.isPropertyDeclaration(t)?Sr(t)&&Er(t):e.isPropertySignature(t)&&Sr(t),e.introducesArgumentsExoticObject=e=>{switch(e.kind){case 168:case 167:case 170:case 171:case 172:case 255:case 212:return!0}return!1},e.unwrapInnermostStatementOfLabel=(e,t)=>{for(;;){if(t&&t(e),249!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=t=>t&&234===t.kind&&e.isFunctionLike(t.parent),e.isObjectLiteralMethod=e=>e&&168===e.kind&&204===e.parent.kind,e.isObjectLiteralOrClassExpressionMethodOrAccessor=e=>!(168!==e.kind&&171!==e.kind&&172!==e.kind||204!==e.parent.kind&&225!==e.parent.kind),e.isIdentifierTypePredicate=e=>e&&1===e.kind,e.isThisTypePredicate=e=>e&&0===e.kind,e.getPropertyAssignment=ie,e.getPropertyArrayElementValue=(t,r,n)=>e.firstDefined(ie(t,r),(t=>e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(t=>e.isStringLiteral(t)&&t.text===n)):void 0)),e.getTsConfigObjectLiteralExpression=ae,e.getTsConfigPropArrayElementValue=(t,r,n)=>e.firstDefined(oe(t,r),(t=>e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(t=>e.isStringLiteral(t)&&t.text===n)):void 0)),e.getTsConfigPropArray=oe,e.getContainingFunction=t=>e.findAncestor(t.parent,e.isFunctionLike),e.getContainingFunctionDeclaration=t=>e.findAncestor(t.parent,e.isFunctionLikeDeclaration),e.getContainingClass=t=>e.findAncestor(t.parent,e.isClassLike),e.getContainingClassStaticBlock=t=>e.findAncestor(t.parent,(t=>e.isClassLike(t)||e.isFunctionLike(t)?"quit":e.isClassStaticBlockDeclaration(t))),e.getContainingFunctionOrClassStaticBlock=t=>e.findAncestor(t.parent,e.isFunctionLikeOrClassStaticBlockDeclaration),e.getThisContainer=se,e.isInTopLevelContext=t=>{e.isIdentifier(t)&&(e.isClassDeclaration(t.parent)||e.isFunctionDeclaration(t.parent))&&t.parent.name===t&&(t=t.parent);var r=se(t,!0);return e.isSourceFile(r)},e.getNewTargetContainer=e=>{var t=se(e,!1);if(t)switch(t.kind){case 170:case 255:case 212:return t}},e.getSuperContainer=(t,r)=>{for(;;){if(!(t=t.parent))return t;switch(t.kind){case 161:t=t.parent;break;case 255:case 212:case 213:if(!r)continue;case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 169:return t;case 164:163===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=e=>{if(212===e.kind||213===e.kind){for(var t=e,r=e.parent;211===r.kind;)t=r,r=r.parent;if(207===r.kind&&r.expression===t)return r}},e.isSuperOrSuperProperty=e=>106===e.kind||ce(e),e.isSuperProperty=ce,e.isThisProperty=e=>{var t=e.kind;return(205===t||206===t)&&108===e.expression.kind},e.isThisInitializedDeclaration=t=>{var r;return!!t&&e.isVariableDeclaration(t)&&108===(null===(r=t.initializer)||void 0===r?void 0:r.kind)},e.isThisInitializedObjectBindingExpression=t=>!!t&&(e.isShorthandPropertyAssignment(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&63===t.parent.parent.operatorToken.kind&&108===t.parent.parent.right.kind,e.getEntityNameFromTypeNode=e=>{switch(e.kind){case 177:return e.typeName;case 227:return jr(e.expression)?e.expression:void 0;case 79:case 160:return e}},e.getInvokedExpression=e=>{switch(e.kind){case 209:return e.tag;case 279:case 278:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=le,e.nodeIsDecorated=ue,e.nodeOrChildIsDecorated=de,e.childIsDecorated=pe,e.classOrConstructorParameterIsDecorated=e=>{if(ue(e))return!0;var t=cr(e);return!!t&&pe(t,e)},e.isJSXTagName=_e,e.isExpressionNode=fe,e.isInExpressionContext=me,e.isPartOfTypeQuery=ge,e.isNamespaceReexportDeclaration=t=>e.isNamespaceExport(t)&&!!t.parent.moduleSpecifier,e.isExternalModuleImportEqualsDeclaration=he,e.getExternalModuleImportEqualsDeclarationExpression=t=>(e.Debug.assert(he(t)),t.moduleReference.expression),e.getExternalModuleRequireArgument=e=>Ee(e)&&nn(e.initializer).arguments[0],e.isInternalModuleImportEqualsDeclaration=e=>264===e.kind&&276!==e.moduleReference.kind,e.isSourceFileJS=ye,e.isSourceFileNotJS=e=>!ve(e),e.isInJSFile=ve,e.isInJsonFile=e=>!!e&&!!(33554432&e.flags),e.isSourceFileNotJson=e=>!z(e),e.isInJSDoc=be,e.isJSDocIndexSignature=t=>e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(149===t.typeArguments[0].kind||146===t.typeArguments[0].kind),e.isRequireCall=xe,e.isRequireVariableDeclaration=Ee,e.isRequireVariableStatement=t=>e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&e.every(t.declarationList.declarations,(e=>Ee(e))),e.isSingleOrDoubleQuote=e=>39===e||34===e,e.isStringDoubleQuoted=(e,t)=>34===h(t,e).charCodeAt(0),e.isAssignmentDeclaration=Se,e.getEffectiveInitializer=De,e.getDeclaredExpandoInitializer=e=>{var t=De(e);return t&&Te(t,Vr(e.name))},e.getAssignedExpandoInitializer=t=>{if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=Vr(t.parent.left);return Te(t.parent.right,r)||((t,r,n)=>{var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&Te(r.right,n);if(i&&Ce(t,r.left))return i})(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Pe(t)){var n=((t,r)=>e.forEach(t.properties,(t=>e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&Te(t.initializer,r))))(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=Te,e.isDefaultedExpandoInitializer=t=>{var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&Te(t.right,Vr(r))&&jr(r)&&Ce(r,t.left)},e.getNameOfExpando=t=>{if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(63===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=Ce,e.getRightMostAssignedExpression=ke,e.isExportsIdentifier=Ae,e.isModuleIdentifier=Ne,e.isModuleExportsAccessExpression=we,e.getAssignmentDeclarationKind=Fe,e.isBindableObjectDefinePropertyCall=Pe,e.isLiteralLikeAccess=Ie,e.isLiteralLikeElementAccess=Oe,e.isBindableStaticAccessExpression=Me,e.isBindableStaticElementAccessExpression=Re,e.isBindableStaticNameExpression=Le,e.getNameOrArgument=Be,e.getElementOrPropertyAccessArgumentExpressionOrName=je,e.getElementOrPropertyAccessName=Ue,e.getAssignmentDeclarationPropertyAccessKind=Ve,e.getInitializerOfBinaryExpression=ze,e.isPrototypePropertyAssignment=t=>e.isBinaryExpression(t)&&3===Fe(t),e.isSpecialPropertyDeclaration=t=>ve(t)&&t.parent&&237===t.parent.kind&&(!e.isElementAccessExpression(t)||Oe(t))&&!!e.getJSDocTypeTag(t.parent),e.setValueDeclaration=(e,t)=>{var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&Se(r)&&!Se(t)||r.kind!==t.kind&&D(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=t=>{if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 255===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.tryGetModuleSpecifierFromDeclaration=t=>{var r,n,i;switch(t.kind){case 253:return t.initializer.arguments[0].text;case 265:return null===(r=e.tryCast(t.moduleSpecifier,e.isStringLiteralLike))||void 0===r?void 0:r.text;case 264:return null===(i=e.tryCast(null===(n=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===n?void 0:n.expression,e.isStringLiteralLike))||void 0===i?void 0:i.text;default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=t=>Ke(t)||e.Debug.failBadSyntaxKind(t.parent),e.tryGetImportFromModuleSpecifier=Ke,e.getExternalModuleName=We,e.getNamespaceDeclarationNode=t=>{switch(t.kind){case 265:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 264:return t;case 271:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=e=>265===e.kind&&!!e.importClause&&!!e.importClause.name,e.forEachImportClauseDeclaration=(t,r)=>{var n;return t.name&&(n=r(t))||t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r))?n:void 0},e.hasQuestionToken=e=>{if(e)switch(e.kind){case 163:case 168:case 167:case 295:case 294:case 166:case 165:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=t=>{var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=He,e.isTypeAlias=t=>He(t)||e.isTypeAliasDeclaration(t),e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=$e,e.getSingleVariableOfVariableStatement=Ge,e.getJSDocCommentsAndTags=(t,r)=>{var n;re(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.addRange(n,Xe(t,e.last(t.initializer.jsDoc))));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.addRange(n,Xe(t,e.last(i.jsDoc)))),163===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(162===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=Qe(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=Qe,e.getParameterSymbolFromJSDoc=t=>{if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=Ze(t);if(n){var i=e.find(n.parameters,(e=>79===e.name.kind&&e.name.escapedText===r));return i&&i.symbol}}},e.getEffectiveContainerForJSDocTemplateTag=t=>{if(e.isJSDoc(t.parent)&&t.parent.tags){var r=e.find(t.parent.tags,He);if(r)return r}return Ze(t)},e.getHostSignatureFromJSDoc=Ze,e.getEffectiveJSDocHost=et,e.getJSDocHost=tt,e.getJSDocRoot=rt,e.getTypeParameterFromJsDoc=t=>{var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(e=>e.name.escapedText===r))},e.hasRestParameter=t=>{var r=e.lastOrUndefined(t.parameters);return!!r&&nt(r)},e.isRestParameter=nt,e.hasTypeArguments=e=>!!e.typeArguments,(Z=e.AssignmentKind||(e.AssignmentKind={}))[Z.None=0]="None",Z[Z.Definite=1]="Definite",Z[Z.Compound=2]="Compound",e.getAssignmentTargetKind=it,e.isAssignmentTarget=e=>0!==it(e),e.isNodeWithPossibleHoistedDeclaration=e=>{switch(e.kind){case 234:case 236:case 247:case 238:case 248:case 262:case 288:case 289:case 249:case 241:case 242:case 243:case 239:case 240:case 251:case 291:return!0}return!1},e.isValueSignatureDeclaration=t=>e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t),e.walkUpParenthesizedTypes=e=>at(e,190),e.walkUpParenthesizedExpressions=ot,e.walkUpParenthesizedTypesAndGetParentAndChild=e=>{for(var t;e&&190===e.kind;)t=e,e=e.parent;return[t,e]},e.skipParentheses=st,e.isDeleteTarget=e=>(205===e.kind||206===e.kind)&&(e=ot(e.parent))&&214===e.kind,e.isNodeDescendantOf=(e,t)=>{for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=t=>!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t,e.getDeclarationFromName=t=>{var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 79:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Fe(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=t=>vt(t)&&161===t.parent.kind&&e.isDeclaration(t.parent.parent),e.isIdentifierName=e=>{var t=e.parent;switch(t.kind){case 166:case 165:case 168:case 167:case 171:case 172:case 297:case 294:case 205:return t.name===e;case 160:return t.right===e;case 202:case 269:return t.propertyName===e;case 274:case 284:return!0}return!1},e.isAliasSymbolDeclaration=t=>264===t.kind||263===t.kind||266===t.kind&&!!t.name||267===t.kind||273===t.kind||269===t.kind||274===t.kind||270===t.kind&&lt(t)||e.isBinaryExpression(t)&&2===Fe(t)&&lt(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&ct(t.parent.right)||295===t.kind||294===t.kind&&ct(t.initializer),e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 266:case 269:case 267:case 274:case 270:case 264:return t.parent;case 160:do{t=t.parent}while(160===t.parent.kind);return e(t)}},e.isAliasableExpression=ct,e.exportAssignmentIsAlias=lt,e.getExportAssignmentExpression=ut,e.getPropertyAssignmentAliasLikeExpression=e=>295===e.kind?e.name:294===e.kind?e.initializer:e.parent.right,e.getEffectiveBaseTypeNode=dt,e.getClassExtendsHeritageElement=pt,e.getEffectiveImplementsTypeNodes=_t,e.getAllSuperTypeNodes=t=>e.isInterfaceDeclaration(t)?ft(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(dt(t)),_t(t))||e.emptyArray,e.getInterfaceBaseTypeNodes=ft,e.getHeritageClause=mt,e.getAncestor=(e,t)=>{for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=gt,e.isContextualKeyword=ht,e.isNonContextualKeyword=yt,e.isFutureReservedKeyword=e=>117<=e&&e<=125,e.isStringANonContextualKeyword=t=>{var r=e.stringToToken(t);return void 0!==r&&yt(r)},e.isStringAKeyword=t=>{var r=e.stringToToken(t);return void 0!==r&&gt(r)},e.isIdentifierANonContextualKeyword=e=>{var t=e.originalKeywordKind;return!!t&&!ht(t)},e.isTrivia=e=>2<=e&&e<=7,(Q=e.FunctionFlags||(e.FunctionFlags={}))[Q.Normal=0]="Normal",Q[Q.Generator=1]="Generator",Q[Q.Async=2]="Async",Q[Q.Invalid=4]="Invalid",Q[Q.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=e=>{if(!e)return 4;var t=0;switch(e.kind){case 255:case 212:case 168:e.asteriskToken&&(t|=1);case 213:br(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=e=>{switch(e.kind){case 255:case 212:case 213:case 168:return void 0!==e.body&&void 0===e.asteriskToken&&br(e,256)}return!1},e.isStringOrNumericLiteralLike=vt,e.isSignedNumericLiteral=bt,e.hasDynamicName=xt,e.isDynamicName=Et,e.getPropertyNameForPropertyNameNode=St,e.isPropertyNameLiteral=Dt,e.getTextOfIdentifierOrLiteral=Tt,e.getEscapedTextOfIdentifierOrLiteral=t=>e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text),e.getPropertyNameForUniqueESSymbol=t=>"__@".concat(e.getSymbolId(t),"@").concat(t.escapedName),e.getSymbolNameForPrivateIdentifier=(t,r)=>"__#".concat(e.getSymbolId(t),"@").concat(r),e.isKnownSymbol=t=>e.startsWith(t.escapedName,"__@"),e.isPrivateIdentifierSymbol=t=>e.startsWith(t.escapedName,"__#"),e.isESSymbolIdentifier=e=>79===e.kind&&"Symbol"===e.escapedText,e.isPushOrUnshiftIdentifier=e=>"push"===e.escapedText||"unshift"===e.escapedText,e.isParameterDeclaration=e=>163===Ct(e).kind,e.getRootDeclaration=Ct,e.nodeStartsNewLexicalEnvironment=e=>{var t=e.kind;return 170===t||212===t||255===t||213===t||168===t||171===t||172===t||260===t||303===t},e.nodeIsSynthesized=kt,e.getOriginalSourceFile=t=>e.getParseTreeNode(t,e.isSourceFile)||t,(Y=e.Associativity||(e.Associativity={}))[Y.Left=0]="Left",Y[Y.Right=1]="Right",e.getExpressionAssociativity=e=>{var t=Nt(e),r=208===e.kind&&void 0!==e.arguments;return At(e.kind,t,r)},e.getOperatorAssociativity=At,e.getExpressionPrecedence=e=>{var t=Nt(e),r=208===e.kind&&void 0!==e.arguments;return wt(e.kind,t,r)},e.getOperator=Nt,(X=e.OperatorPrecedence||(e.OperatorPrecedence={}))[X.Comma=0]="Comma",X[X.Spread=1]="Spread",X[X.Yield=2]="Yield",X[X.Assignment=3]="Assignment",X[X.Conditional=4]="Conditional",X[X.Coalesce=4]="Coalesce",X[X.LogicalOR=5]="LogicalOR",X[X.LogicalAND=6]="LogicalAND",X[X.BitwiseOR=7]="BitwiseOR",X[X.BitwiseXOR=8]="BitwiseXOR",X[X.BitwiseAND=9]="BitwiseAND",X[X.Equality=10]="Equality",X[X.Relational=11]="Relational",X[X.Shift=12]="Shift",X[X.Additive=13]="Additive",X[X.Multiplicative=14]="Multiplicative",X[X.Exponentiation=15]="Exponentiation",X[X.Unary=16]="Unary",X[X.Update=17]="Update",X[X.LeftHandSide=18]="LeftHandSide",X[X.Member=19]="Member",X[X.Primary=20]="Primary",X[X.Highest=20]="Highest",X[X.Lowest=0]="Lowest",X[X.Invalid=-1]="Invalid",e.getOperatorPrecedence=wt,e.getBinaryOperatorPrecedence=Ft,e.getSemanticJsxChildren=t=>e.filter(t,(e=>{switch(e.kind){case 287:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}})),e.createDiagnosticCollection=()=>{var t=[],r=[],n=new e.Map,i=!1;return{add(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t),e.insertSorted(o,a,vn)},lookup(r){var i;if(i=r.file?n.get(r.file.fileName):t){var a=e.binarySearch(i,r,e.identity,bn);return a>=0?i[a]:void 0}},getGlobalDiagnostics:()=>(i=!0,t),getDiagnostics(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,(e=>n.get(e)));return t.length?(a.unshift.apply(a,t),a):a}}};var Pt=/\$\{/g;e.hasInvalidEscape=t=>t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(e=>!!e.literal.templateFlags)));var It=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ot=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Mt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Rt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function Lt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Bt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Rt.get(e)||Lt(e.charCodeAt(0))}function jt(e,t){var r=96===t?Mt:39===t?Ot:It;return e.replace(r,Bt)}e.escapeString=jt;var Ut=/[^\u0000-\u007F]/g;function Vt(e,t){return e=jt(e,t),Ut.test(e)?e.replace(Ut,(e=>Lt(e.charCodeAt(0)))):e}e.escapeNonAsciiString=Vt;var zt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Kt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Wt=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function Ht(e){return 0===e.charCodeAt(0)?"&#0;":Wt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Jt(e,t){var r=39===t?Kt:zt;return e.replace(r,Ht)}e.escapeJsxAttributeString=Jt,e.stripQuotes=e=>{var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=t=>{var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var $t=[""," "];function Gt(e){for(var t=$t[1],r=$t.length;r<=e;r++)$t.push($t[r-1]+t);return $t[e]}function qt(){return $t[1].length}function Xt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Yt(e,t,r){return t.moduleName||Zt(e,t.fileName,r&&r.fileName)}function Qt(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function Zt(t,r,n){var i=e=>t.getCanonicalFileName(e),a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=ni(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function er(e,t,r,n,i){var a=t.declarationDir||t.outDir,o=a?ar(e,a,r,n,i):e,s=tr(o);return ni(o)+s}function tr(t){return e.fileExtensionIsOneOf(t,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(t,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(t,[".json"])?".json.d.ts":".d.ts"}function rr(e){return e.outFile||e.out}function nr(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&ye(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(z(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function ir(e,t,r){return ar(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function ar(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function or(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(or(e.getDirectoryPath(t),r,n),r(t))}function sr(t,r){return e.computeLineOfPosition(t,r)}function cr(t){return e.find(t.members,(t=>e.isConstructorDeclaration(t)&&d(t.body)))}function lr(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&ur(e.parameters[0]);return e.parameters[t?1:0]}}function ur(e){return dr(e.name)}function dr(e){return!!e&&79===e.kind&&pr(e)}function pr(e){return 108===e.originalKeywordKind}function _r(t){if(ve(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!ve(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function fr(e,t,r,n){mr(e,t,r.pos,n)}function mr(e,t,r,n){n&&n.length&&r!==n[0].pos&&sr(e,r)!==sr(e,n[0].pos)&&t.writeLine()}function gr(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,l=0,u=n;l<u.length;l++){var d=u[l];c&&(r.writeSpace(" "),c=!1),s(e,t,r,d.pos,d.end,o),d.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function hr(t,r,n,i,a,o){var s=Math.min(r,o-1),c=e.trimString(t.substring(a,s));c?(n.writeComment(c),s!==r&&n.writeLine()):n.rawWrite(i)}function yr(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=qt()-i%qt():i++;return i}function vr(e,t){return!!Dr(e,t)}function br(e,t){return!!Tr(e,t)}function xr(t){return e.isClassElement(t)&&Er(t)||e.isClassStaticBlockDeclaration(t)}function Er(e){return br(e,32)}function Sr(e){return vr(e,64)}function Dr(e,t){return kr(e)&t}function Tr(e,t){return Ar(e)&t}function Cr(e,t,r){return e.kind>=0&&e.kind<=159?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|wr(e)),!t||4096&e.modifierFlagsCache||!r&&!ve(e)||!e.parent||(e.modifierFlagsCache|=4096|Nr(e)),-536875009&e.modifierFlagsCache)}function kr(e){return Cr(e,!0)}function Ar(e){return Cr(e,!1)}function Nr(t){var r=0;return t.parent&&!e.isParameter(t)&&(ve(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64),e.getJSDocOverrideTagNoCache(t)&&(r|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function wr(e){var t=Fr(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Fr(e){var t=0;if(e)for(var r=0,n=e;r<n.length;r++)t|=Pr(n[r].kind);return t}function Pr(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 144:return 64;case 158:return 16384}return 0}function Ir(e){return 75===e||76===e||77===e}function Or(e){return e>=63&&e<=78}function Mr(e){var t=Rr(e);return t&&!t.isImplements?t.class:void 0}function Rr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:117===t.parent.token}:void 0}function Lr(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:Or(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Br(e){return void 0!==Mr(e)}function jr(e){return 79===e.kind||Ur(e)}function Ur(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&jr(t.expression)}function Vr(e){return Me(e)&&"prototype"===Ue(e)}e.getIndentString=Gt,e.getIndentSize=qt,e.createTextWriter=t=>{var r,n,i,a,o,s=!1;function c(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function l(e){e&&e.length&&(i&&(e=Gt(n)+e,i=!1),r+=e,c(e))}function u(e){e&&(s=!1),l(e)}function d(){r="",n=0,i=!0,a=0,o=0,s=!1}return d(),{write:u,rawWrite(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral(e){e&&e.length&&u(e)},writeLine(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent(){n++},decreaseIndent(){n--},getIndent:()=>n,getTextPos:()=>r.length,getLine:()=>a,getColumn:()=>i?n*qt():r.length-o,getText:()=>r,isAtStartOfLine:()=>i,hasTrailingComment:()=>s,hasTrailingWhitespace:()=>!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1)),clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:()=>!1,writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:(e,t)=>u(e),writeTrailingSemicolon:u,writeComment(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:()=>i?r.length:r.length+t.length}},e.getTrailingSemicolonDeferringWriter=e=>{var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return Ol(Ol({},e),{writeTrailingSemicolon(){t=!0},writeLiteral(t){r(),e.writeLiteral(t)},writeStringLiteral(t){r(),e.writeStringLiteral(t)},writeSymbol(t,n){r(),e.writeSymbol(t,n)},writePunctuation(t){r(),e.writePunctuation(t)},writeKeyword(t){r(),e.writeKeyword(t)},writeOperator(t){r(),e.writeOperator(t)},writeParameter(t){r(),e.writeParameter(t)},writeSpace(t){r(),e.writeSpace(t)},writeProperty(t){r(),e.writeProperty(t)},writeComment(t){r(),e.writeComment(t)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=Xt,e.hostGetCanonicalFileName=t=>e.createGetCanonicalFileName(Xt(t)),e.getResolvedExternalModuleName=Yt,e.getExternalModuleNameFromDeclaration=(t,r,n)=>{var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=We(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==Qt(t,i.path).indexOf(Qt(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return Yt(t,i)}},e.getExternalModuleNameFromPath=Zt,e.getOwnEmitOutputFilePath=(e,t,r)=>{var n=t.getCompilerOptions();return(n.outDir?ni(ir(e,t,n.outDir)):ni(e))+r},e.getDeclarationEmitOutputFilePath=(e,t)=>er(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e))),e.getDeclarationEmitOutputFilePathWorker=er,e.getDeclarationEmitExtensionForPath=tr,e.outFile=rr,e.getPathsBasePath=(t,r)=>{var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=(t,r,n)=>{var i=t.getCompilerOptions();if(rr(i)){var a=Sn(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(r=>(o||!e.isExternalModule(r))&&nr(r,t,n)))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(e=>nr(e,t,n)))},e.sourceFileMayBeEmitted=nr,e.getSourceFilePathInNewDir=ir,e.getSourceFilePathInNewDirWorker=ar,e.writeFile=(t,r,n,i,a,o)=>{t.writeFile(n,i,a,(t=>{r.add(hn(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o)},e.writeFileEnsuringDirectories=(t,r,n,i,a,o)=>{try{i(t,r,n)}catch(s){or(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=(t,r)=>{var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=sr,e.getFirstConstructorWithBody=cr,e.getSetAccessorValueParameter=lr,e.getSetAccessorTypeAnnotationNode=e=>{var t=lr(e);return t&&t.type},e.getThisParameter=t=>{if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(ur(r))return r}},e.parameterIsThisKeyword=ur,e.isThisIdentifier=dr,e.isThisInTypeQuery=t=>{if(!dr(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 180===t.parent.kind},e.identifierIsThisKeyword=pr,e.getAllAccessorDeclarations=(t,r)=>{var n,i,a,o;return xt(r)?(n=r,171===r.kind?a=r:172===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(t=>{e.isAccessor(t)&&xr(t)===xr(r)&&St(t.name)===St(r.name)&&(n?i||(i=t):n=t,171!==t.kind||a||(a=t),172!==t.kind||o||(o=t))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=_r,e.getTypeAnnotationNode=e=>e.type,e.getEffectiveReturnTypeNode=t=>e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(ve(t)?e.getJSDocReturnType(t):void 0),e.getJSDocTypeParameterDeclarations=t=>e.flatMap(e.getJSDocTags(t),(t=>(t=>e.isJSDocTemplateTag(t)&&!(318===t.parent.kind&&t.parent.tags.some(He)))(t)?t.typeParameters:void 0)),e.getEffectiveSetAccessorTypeAnnotationNode=e=>{var t=lr(e);return t&&_r(t)},e.emitNewLineBeforeLeadingComments=fr,e.emitNewLineBeforeLeadingCommentsOfPosition=mr,e.emitNewLineBeforeLeadingCommentOfPosition=(e,t,r,n)=>{r!==n&&sr(e,r)!==sr(e,n)&&t.writeLine()},e.emitComments=gr,e.emitDetachedComments=(t,r,n,i,a,o,s)=>{var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(e=>m(t,e.pos)))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var u=[],d=void 0,p=0,_=c;p<_.length;p++){var f=_[p];if(d){var g=sr(r,d.end);if(sr(r,f.pos)>=g+2)break}u.push(f),d=f}u.length&&(g=sr(r,e.last(u).end),sr(r,e.skipTrivia(t,a.pos))>=g+2&&(fr(r,n,a,c),gr(t,r,n,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end}))}return l},e.writeCommentRange=(t,r,n,i,a,o)=>{if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,l=void 0,u=i,d=s.line;u<a;d++){var p=d+1===c?t.length+1:r[d+1];if(u!==i){void 0===l&&(l=yr(t,r[s.line],i));var _=n.getIndent()*qt()-l+yr(t,u,p);if(_>0){var f=_%qt(),m=Gt((_-f)/qt());for(n.rawWrite(m);f;)n.rawWrite(" "),f--}else n.rawWrite("")}hr(t,a,n,o,u,p),u=p}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=e=>0!==kr(e),e.hasSyntacticModifiers=e=>0!==Ar(e),e.hasEffectiveModifier=vr,e.hasSyntacticModifier=br,e.isStatic=xr,e.hasStaticModifier=Er,e.hasOverrideModifier=e=>vr(e,16384),e.hasAbstractModifier=e=>br(e,128),e.hasAmbientModifier=e=>br(e,2),e.hasEffectiveReadonlyModifier=Sr,e.getSelectedEffectiveModifierFlags=Dr,e.getSelectedSyntacticModifierFlags=Tr,e.getEffectiveModifierFlags=kr,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=e=>Cr(e,!0,!0),e.getSyntacticModifierFlags=Ar,e.getEffectiveModifierFlagsNoCache=e=>wr(e)|Nr(e),e.getSyntacticModifierFlagsNoCache=wr,e.modifiersToFlags=Fr,e.modifierToFlag=Pr,e.createModifiers=t=>t?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(t)):void 0,e.isLogicalOperator=e=>56===e||55===e||53===e,e.isLogicalOrCoalescingAssignmentOperator=Ir,e.isLogicalOrCoalescingAssignmentExpression=e=>Ir(e.operatorToken.kind),e.isAssignmentOperator=Or,e.tryGetClassExtendingExpressionWithTypeArguments=Mr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Rr,e.isAssignmentExpression=Lr,e.isLeftHandSideOfAssignment=e=>Lr(e.parent)&&e.parent.left===e,e.isDestructuringAssignment=e=>{if(Lr(e,!0)){var t=e.left.kind;return 204===t||203===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Br,e.isEntityNameExpression=jr,e.getFirstIdentifier=e=>{switch(e.kind){case 79:return e;case 160:do{e=e.left}while(79!==e.kind);return e;case 205:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||108===t.kind||106===t.kind||230===t.kind||205===t.kind&&e(t.expression)||211===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Ur,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+R(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+St(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=Vr,e.isRightSideOfQualifiedNameOrPropertyAccess=e=>160===e.parent.kind&&e.parent.right===e||205===e.parent.kind&&e.parent.name===e,e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=t=>e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t,e.isEmptyObjectLiteral=e=>204===e.kind&&0===e.properties.length,e.isEmptyArrayLiteral=e=>203===e.kind&&0===e.elements.length,e.getLocalSymbolForExportDefault=t=>{if((t=>t&&e.length(t.declarations)>0&&br(t.declarations[0],512))(t)&&t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(i.localSymbol)return i.localSymbol}},e.tryExtractTSExtension=t=>e.find(Xn,(r=>e.fileExtensionIs(t,r)));var zr,Kr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Wr(t){for(var r,n,i,a,o="",s=(t=>{for(var r=[],n=t.length,i=0;i<n;i++){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(a>>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r})(t),c=0,l=s.length;c<l;)r=s[c]>>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=l?i=a=64:c+2>=l&&(a=64),o+=Kr.charAt(r)+Kr.charAt(n)+Kr.charAt(i)+Kr.charAt(a),c+=3;return o}function Hr(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function Jr(e,t){return Hr(t,e.end)}function $r(e){return e.decorators&&e.decorators.length>0?Jr(e,e.decorators.end):e}function Gr(e,t,r){return qr(Xr(e,r,!1),t.end,r)}function qr(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function Xr(t,r,n){return si(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function Yr(e){return void 0!==e.initializer}function Qr(e){return 33554432&e.flags?e.checkFlags:0}function Zr(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 211:return Zr(r);case 219:case 218:var n=r.operator;return 45===n||46===n?c():0;case 220:var i=r,a=i.left,o=i.operatorToken;return a===t&&Or(o.kind)?63===o.kind?1:c():0;case 205:return r.name!==t?0:Zr(r);case 294:var s=Zr(r.parent);return t===r.name?(t=>{switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}})(s):s;case 295:return t===r.objectAssignmentInitializer?0:Zr(r.parent);case 203:return Zr(r);default:return 0}function c(){return r.parent&&237===ot(r.parent).kind?1:2}}function en(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach(((r,a)=>{var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)}))}function tn(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function rn(e){return 205===e.kind||206===e.kind}function nn(e){for(;rn(e);)e=e.expression;return e}function an(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function on(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function sn(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function cn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function ln(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function un(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function dn(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(e=>e)}function pn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,((t,i)=>""+e.Debug.checkDefined(r[+i+n])))}function _n(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function fn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function mn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o<s.length;o++){var c=s[o];fn(c)&&c.fileName===n?(e.Debug.assertLessThanOrEqual(c.start,i),e.Debug.assertLessThanOrEqual(c.start+c.length,i),a.relatedInformation.push(mn(c,r))):a.relatedInformation.push(c)}}return a}function gn(e,t,r,n){B(e,t,r);var i=_n(n);return arguments.length>4&&(i=pn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function hn(e){var t=_n(e);return arguments.length>1&&(t=pn(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function yn(e){return e.file?e.file.path:void 0}function vn(t,r){return bn(t,r)||((t,r)=>t.relatedInformation||r.relatedInformation?t.relatedInformation&&r.relatedInformation?e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,((e,t)=>vn(e,r.relatedInformation[t])))||0:t.relatedInformation?-1:1:0)(t,r)||0}function bn(t,r){return e.compareStringsCaseSensitive(yn(t),yn(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||xn(t.messageText,r.messageText)||0}function xn(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;a<i;a++)if(n=xn(t.next[a],r.next[a]))return n;return t.next.length<r.next.length?-1:t.next.length>r.next.length?1:0}function En(t){return t.target||t.module===e.ModuleKind.Node12&&7||t.module===e.ModuleKind.NodeNext&&99||0}function Sn(t){return"number"==typeof t.module?t.module:En(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Dn(t){if(void 0!==t.esModuleInterop)return t.esModuleInterop;switch(Sn(t)){case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0}}function Tn(e){return!(!e.declaration&&!e.composite)}function Cn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function kn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function An(e,t){return t.strictFlag?Cn(e,t.name):e[t.name]}function Nn(t,r,n,i){for(var a=e.getPathComponents(e.getNormalizedAbsolutePath(t,n)),o=e.getPathComponents(e.getNormalizedAbsolutePath(r,n)),s=!1;a.length>=2&&o.length>=2&&!wn(a[a.length-2],i)&&!wn(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]:void 0}function wn(t,r){return void 0!==t&&("node_modules"===r(t)||e.startsWith(t,"@"))}e.convertToBase64=Wr,e.base64encode=(e,t)=>e&&e.base64encode?e.base64encode(t):Wr(t),e.base64decode=(e,t)=>{if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i<r&&t.charCodeAt(i)!==Kr.charCodeAt(64);){var a=Kr.indexOf(t[i]),o=Kr.indexOf(t[i+1]),s=Kr.indexOf(t[i+2]),c=Kr.indexOf(t[i+3]),l=(63&a)<<2|o>>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?n.push(l):0===d&&0!==c?n.push(l,u):n.push(l,u,d),i+=4}return(e=>{for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t})(n)},e.readJson=(t,r)=>{try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);return i.error?{}:i.config}catch(e){return{}}},e.directoryProbablyExists=(e,t)=>!t.directoryExists||t.directoryExists(e),e.getNewLineCharacter=(t,r)=>{switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=Hr,e.moveRangeEnd=(e,t)=>Hr(e.pos,t),e.moveRangePos=Jr,e.moveRangePastDecorators=$r,e.moveRangePastModifiers=e=>e.modifiers&&e.modifiers.length>0?Jr(e,e.modifiers.end):$r(e),e.isCollapsedRange=e=>e.pos===e.end,e.createTokenRange=(t,r)=>Hr(t,t+e.tokenToString(r).length),e.rangeIsOnSingleLine=(e,t)=>Gr(e,e,t),e.rangeStartPositionsAreOnSameLine=(e,t,r)=>qr(Xr(e,r,!1),Xr(t,r,!1),r),e.rangeEndPositionsAreOnSameLine=(e,t,r)=>qr(e.end,t.end,r),e.rangeStartIsOnSameLineAsRangeEnd=Gr,e.rangeEndIsOnSameLineAsRangeStart=(e,t,r)=>qr(e.end,Xr(t,r,!1),r),e.getLinesBetweenRangeEndAndRangeStart=(t,r,n,i)=>{var a=Xr(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=(t,r,n)=>e.getLinesBetweenPositions(n,t.end,r.end),e.isNodeArrayMultiLine=(e,t)=>!qr(e.pos,e.end,t),e.positionsAreOnSameLine=qr,e.getStartPositionOfRange=Xr,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=(t,r,n,i)=>{var a=e.skipTrivia(n.text,t,!1,i),o=((t,r,n)=>{for(void 0===r&&(r=0);t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t})(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=(t,r,n,i)=>{var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=t=>{var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 259:case 260:return r===r.parent.name}return!1},e.getInitializedVariables=t=>e.filter(t.declarations,Yr),e.isWatchSet=e=>e.watch&&e.hasOwnProperty("watch"),e.closeFileWatcher=e=>{e.close()},e.getCheckFlags=Qr,e.getDeclarationModifierFlagsFromSymbol=(t,r)=>{if(void 0===r&&(r=!1),t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,(e=>172===e.kind))||t.valueDeclaration,i=e.getCombinedModifierFlags(n);return t.parent&&32&t.parent.flags?i:-29&i}if(6&Qr(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?32:0)}return 4194304&t.flags?36:0},e.skipAlias=(e,t)=>2097152&e.flags?t.getAliasedSymbol(e):e,e.getCombinedLocalAndExportSymbolFlags=e=>e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags,e.isWriteOnlyAccess=e=>1===Zr(e),e.isWriteAccess=e=>0!==Zr(e),(e=>{e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"})(zr||(zr={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=(e,t)=>{e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=en,e.mutateMap=(e,t,r)=>{en(e,t,r);var n=r.createNewValue;t.forEach(((t,r)=>{e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=e=>{if(32&e.flags){var t=tn(e);return!!t&&br(t,128)}return!1},e.getClassLikeDeclarationOfSymbol=tn,e.getObjectFlags=e=>3899393&e.flags?e.objectFlags:0,e.typeHasCallOrConstructSignatures=(e,t)=>0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length,e.forSomeAncestorDirectory=(t,r)=>!!e.forEachAncestorDirectory(t,(e=>!!r(e)||void 0)),e.isUMDExportSymbol=t=>!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0]),e.showModuleSpecifier=t=>{var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:v(r)},e.getLastChild=t=>{var r;return e.forEachChild(t,(e=>{d(e)&&(r=e)}),(e=>{for(var t=e.length-1;t>=0;t--)if(d(e[t])){r=e[t];break}})),r},e.addToSeen=(e,t,r)=>(void 0===r&&(r=!0),!e.has(t)&&(e.set(t,r),!0)),e.isObjectTypeDeclaration=t=>e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t),e.isTypeNodeKind=e=>e>=176&&e<=199||130===e||154===e||146===e||157===e||147===e||133===e||149===e||150===e||114===e||152===e||143===e||227===e||310===e||311===e||312===e||313===e||314===e||315===e||316===e,e.isAccessExpression=rn,e.getNameOfAccessExpression=t=>205===t.kind?t.name:(e.Debug.assert(206===t.kind),t.argumentExpression),e.isBundleFileTextLike=e=>{switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=e=>268===e.kind||272===e.kind,e.getLeftmostAccessExpression=nn,e.getLeftmostExpression=(e,t)=>{for(;;){switch(e.kind){case 219:e=e.operand;continue;case 220:e=e.left;continue;case 221:e=e.condition;continue;case 209:e=e.tag;continue;case 207:if(t)return e;case 228:case 206:case 205:case 229:case 348:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:()=>cn,getTokenConstructor:()=>ln,getIdentifierConstructor:()=>un,getPrivateIdentifierConstructor:()=>cn,getSourceFileConstructor:()=>cn,getSymbolConstructor:()=>an,getTypeConstructor:()=>on,getSignatureConstructor:()=>sn,getSourceMapSourceConstructor:()=>dn},e.setObjectAllocator=t=>{e.objectAllocator=t},e.formatStringFromArgs=pn,e.setLocalizedDiagnosticMessages=t=>{e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=_n,e.createDetachedDiagnostic=function(e,t,r,n){B(void 0,t,r);var i=_n(n);return arguments.length>4&&(i=pn(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=(e,t)=>{for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];r.push(mn(a,t))}return r},e.createFileDiagnostic=gn,e.formatMessage=function(e,t){var r=_n(t);return arguments.length>2&&(r=pn(r,arguments,2)),r},e.createCompilerDiagnostic=hn,e.createCompilerDiagnosticFromMessageChain=(e,t)=>({file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}),e.chainDiagnosticMessages=function(e,t){var r=_n(t);return arguments.length>2&&(r=pn(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=(e,t)=>{for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=vn,e.compareDiagnosticsSkipRelatedInformation=bn,e.getLanguageVariant=e=>4===e||2===e||1===e||6===e?1:0,e.getEmitScriptTarget=En,e.getEmitModuleKind=Sn,e.getEmitModuleResolutionKind=t=>{var r=t.moduleResolution;if(void 0===r)switch(Sn(t)){case e.ModuleKind.CommonJS:r=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:r=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:r=e.ModuleResolutionKind.NodeNext;break;default:r=e.ModuleResolutionKind.Classic}return r},e.hasJsonModuleEmitEnabled=t=>{switch(Sn(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0;default:return!1}},e.unreachableCodeIsError=e=>!1===e.allowUnreachableCode,e.unusedLabelIsError=e=>!1===e.allowUnusedLabels,e.getAreDeclarationMapsEnabled=e=>!(!Tn(e)||!e.declarationMap),e.getESModuleInterop=Dn,e.getAllowSyntheticDefaultImports=t=>{var r=Sn(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:Dn(t)||r===e.ModuleKind.System},e.getEmitDeclarations=Tn,e.shouldPreserveConstEnums=e=>!(!e.preserveConstEnums&&!e.isolatedModules),e.isIncrementalCompilation=e=>!(!e.incremental&&!e.composite),e.getStrictOptionValue=Cn,e.getAllowJSCompilerOption=kn,e.getUseDefineForClassFields=e=>void 0===e.useDefineForClassFields?99===En(e):e.useDefineForClassFields,e.compilerOptionsAffectSemanticDiagnostics=(t,r)=>o(r,t,e.semanticDiagnosticsOptionDeclarations),e.compilerOptionsAffectEmit=(t,r)=>o(r,t,e.affectsEmitOptionDeclarations),e.getCompilerOptionValue=An,e.getJSXTransformEnabled=e=>{var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=(t,r)=>{var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[n.length-1]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=(e,t)=>e?"".concat(e,"/").concat(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0,e.hasZeroOrOneAsteriskCharacter=e=>{for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0},e.createSymlinkCache=function(t,r){var n,i,a,o=!1;return{getSymlinkedFiles:()=>a,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(t,r)=>(a||(a=new e.Map)).set(t,r),setSymlinkedDirectory(a,o){var s=e.toPath(a,t,r);gi(s)||(s=e.ensureTrailingDirectorySeparator(s),!1===o||(null==n?void 0:n.has(s))||(i||(i=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(o.realPath),a),(n||(n=new e.Map)).set(s,o))},setSymlinkedDirectoryFromSymlinkedFile(n,i){this.setSymlinkedFile(e.toPath(n,t,r),i);var a=Nn(i,n,t,r)||e.emptyArray,o=a[0],s=a[1];o&&s&&this.setSymlinkedDirectory(s,{real:o,realPath:e.toPath(o,t,r)})},setSymlinksFromResolutions(t,r){var n,i=this;e.Debug.assert(!o),o=!0;for(var a=0,c=t;a<c.length;a++)null===(n=c[a].resolvedModules)||void 0===n||n.forEach((e=>s(i,e)));null==r||r.forEach((e=>s(i,e)))},hasProcessedResolutions:()=>o};function s(n,i){if(i&&i.originalPath&&i.resolvedFileName){var a=i.resolvedFileName,o=i.originalPath;n.setSymlinkedFile(e.toPath(o,t,r),a);var s=Nn(a,o,t,r)||e.emptyArray,c=s[0],l=s[1];c&&l&&n.setSymlinkedDirectory(l,{real:c,realPath:e.toPath(c,t,r)})}}},e.tryRemoveDirectoryPrefix=(t,r,n)=>{var i,a=e.tryRemovePrefix(t,r,n);return void 0===a?void 0:(i=a,e.isAnyDirectorySeparator(i.charCodeAt(0))?i.slice(1):void 0)};var Fn=/[^\w\s\/]/g;function Pn(e){return"\\"+e}e.regExpEscape=e=>e.replace(Fn,Pn);var In=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var On="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),Mn={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(On,"[^/.][^/]*)*?"),replaceWildcardCharacter:e=>Kn(e,Mn.singleAsteriskRegexFragment)},Rn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(On,"[^/.][^/]*)*?"),replaceWildcardCharacter:e=>Kn(e,Rn.singleAsteriskRegexFragment)},Ln={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Kn(e,Ln.singleAsteriskRegexFragment)},Bn={files:Mn,directories:Rn,exclude:Ln};function jn(e,t,r){var n=Un(e,t,r);if(n&&n.length){var i=n.map((e=>"(".concat(e,")"))).join("|"),a="exclude"===r?"($|/)":"$";return"^(".concat(i,")").concat(a)}}function Un(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(e=>e&&zn(e,r,n,Bn[n])))}function Vn(e){return!/[.*?]/.test(e)}function zn(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",l=!1,u=e.getNormalizedPathComponents(t,r),d=e.last(u);if("exclude"===n||"**"!==d){u[0]=e.removeTrailingDirectorySeparator(u[0]),Vn(d)&&u.push("**","*");for(var p=0,_=0,f=u;_<f.length;_++){var m=f[_];if("**"===m)c+=o;else if("directories"===n&&(c+="(",p++),l&&(c+=e.directorySeparator),"exclude"!==n){var g="";42===m.charCodeAt(0)?(g+="([^./]"+a+")?",m=m.substr(1)):63===m.charCodeAt(0)&&(g+="[^./]",m=m.substr(1)),(g+=m.replace(Fn,s))!==m&&(c+=On),c+=g}else c+=m.replace(Fn,s);l=!0}for(;p>0;)c+=")?",p--;return c}}function Kn(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Wn(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Un(n,o,"files"),(e=>"^".concat(e,"$"))),includeFilePattern:jn(n,o,"files"),includeDirectoryPattern:jn(n,o,"directories"),excludePattern:jn(r,o,"exclude"),basePaths:Jn(t,n,i)}}function Hn(e,t){return new RegExp(e,t?"":"i")}function Jn(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o<s.length;o++){var c=s[o],l=e.isRootedDiskPath(c)?c:e.normalizePath(e.combinePaths(t,c));a.push($n(l))}a.sort(e.getStringComparer(!n));for(var u=r=>{e.every(i,(i=>!e.containsPath(i,r,t,!n)))&&i.push(r)},d=0,p=a;d<p.length;d++)u(p[d])}return i}function $n(t){var r=e.indexOfAnyCharCode(t,In);return r<0?e.hasExtension(t)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function Gn(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getRegularExpressionForWildcard=jn,e.getRegularExpressionsForWildcards=Un,e.isImplicitGlob=Vn,e.getPatternFromSpec=(e,t,r)=>{var n=e&&zn(e,t,r,Bn[r]);return n&&"^(".concat(n,")").concat("exclude"===r?"($|/)":"$")},e.getFileMatcherPatterns=Wn,e.getRegexFromPattern=Hn,e.matchFiles=(t,r,n,i,a,o,s,c,l)=>{t=e.normalizePath(t),o=e.normalizePath(o);for(var u=Wn(t,n,i,a,o),d=u.includeFilePatterns&&u.includeFilePatterns.map((e=>Hn(e,a))),p=u.includeDirectoryPattern&&Hn(u.includeDirectoryPattern,a),_=u.excludePattern&&Hn(u.excludePattern,a),f=d?d.map((()=>[])):[[]],m=new e.Map,g=e.createGetCanonicalFileName(a),h=0,y=u.basePaths;h<y.length;h++){var v=y[h];b(v,e.combinePaths(o,v),s)}return e.flatten(f);function b(t,n,i){var a=g(l(n));if(!m.has(a)){m.set(a,!0);for(var o=c(t),s=o.files,u=o.directories,h=i=>{var a=e.combinePaths(t,i),o=e.combinePaths(n,i);if(r&&!e.fileExtensionIsOneOf(a,r))return"continue";if(_&&_.test(o))return"continue";if(d){var s=e.findIndex(d,(e=>e.test(o)));-1!==s&&f[s].push(a)}else f[0].push(a)},y=0,v=e.sort(s,e.compareStringsCaseSensitive);y<v.length;y++)h(S=v[y]);if(void 0===i||0!=--i)for(var x=0,E=e.sort(u,e.compareStringsCaseSensitive);x<E.length;x++){var S=E[x],D=e.combinePaths(t,S),T=e.combinePaths(n,S);p&&!p.test(T)||_&&_.test(T)||b(D,T,i)}}}},e.ensureScriptKind=(e,t)=>t||Gn(e)||3,e.getScriptKindFromFileName=Gn,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var qn=Il(Il([],e.supportedTSExtensions,!0),[[".json"]],!1),Xn=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var Yn=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Qn=Il(Il([],Yn,!0),[[".json"]],!1);function Zn(t,r){var n=t&&kn(t);if(!r||0===r.length)return n?Yn:e.supportedTSExtensions;var i=n?Yn:e.supportedTSExtensions,a=e.flatten(i);return Il(Il([],i,!0),e.mapDefined(r,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&-1===a.indexOf(e.extension)?[e.extension]:void 0;var t})),!0)}function ei(t,r){return t&&t.resolveJsonModule?r===Yn?Qn:r===e.supportedTSExtensions?qn:Il(Il([],r,!0),[[".json"]],!1):r}function ti(e){var t=e.match(/\//g);return t?t.length:0}e.getSupportedExtensions=Zn,e.getSupportedExtensionsWithJsonIfResolveJsonModule=ei,e.hasJSFileExtension=t=>e.some(e.supportedJSExtensionsFlat,(r=>e.fileExtensionIs(t,r))),e.hasTSFileExtension=t=>e.some(e.supportedTSExtensionsFlat,(r=>e.fileExtensionIs(t,r))),e.isSupportedSourceFileName=(t,r,n)=>{if(!t)return!1;for(var i=Zn(r,n),a=0,o=e.flatten(ei(r,i));a<o.length;a++){var s=o[a];if(e.fileExtensionIs(t,s))return!0}return!1},e.compareNumberOfDirectorySeparators=(t,r)=>e.compareValues(ti(t),ti(r));var ri=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function ni(e){for(var t=0,r=ri;t<r.length;t++){var n=ii(e,r[t]);if(void 0!==n)return n}return e}function ii(t,r){return e.fileExtensionIs(t,r)?ai(t,r):void 0}function ai(e,t){return e.substring(0,e.length-t.length)}function oi(e){var t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function si(e){return!(e>=0)}function ci(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e}function li(t){return e.find(ri,(r=>e.fileExtensionIs(t,r)))}function ui(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,ui)}function di(e,t){return e.pos=t,e}function pi(e,t){return e.end=t,e}function _i(e,t,r){return pi(di(e,t),r)}function fi(e,t){return e&&t&&(e.parent=t),e}function mi(t){return!e.isOmittedExpression(t)}function gi(t){return e.some(e.ignoredPaths,(r=>e.stringContains(t,r)))}function hi(e){return 253===e.kind&&291===e.parent.kind}e.removeFileExtension=ni,e.tryRemoveExtension=ii,e.removeExtension=ai,e.changeExtension=(t,r)=>e.changeAnyExtension(t,r,ri,!1),e.tryParsePattern=oi,e.tryParsePatterns=t=>e.mapDefined(e.getOwnKeys(t),(e=>oi(e))),e.positionIsSynthesized=si,e.extensionIsTS=ci,e.resolutionExtensionIsTSOrJson=e=>ci(e)||".json"===e,e.extensionFromPath=t=>{var r=li(t);return void 0!==r?r:e.Debug.fail("File ".concat(t," has unknown extension."))},e.isAnySupportedFileExtension=e=>void 0!==li(e),e.tryGetExtensionFromPath=li,e.isCheckJsEnabledForFile=(e,t)=>e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=(t,r)=>{for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(o===r)return r;e.isString(o)||n.push(o)}return e.findBestPatternMatch(n,(e=>e),r)},e.sliceAfter=(t,r)=>{var n=t.indexOf(r);return e.Debug.assert(-1!==n),t.slice(n)},e.addRelatedInfo=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length?(t.relatedInformation||(t.relatedInformation=[]),e.Debug.assert(t.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(r=t.relatedInformation).push.apply(r,n),t):t},e.minAndMax=(t,r)=>{e.Debug.assert(0!==t.length);for(var n=r(t[0]),i=n,a=1;a<t.length;a++){var o=r(t[a]);o<n?n=o:o>i&&(i=o)}return{min:n,max:i}},e.rangeOfNode=e=>({pos:g(e),end:e.end}),e.rangeOfTypeParameters=(t,r)=>({pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}),e.skipTypeChecking=(e,t,r)=>t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName),e.isJsonEqual=ui,e.parsePseudoBigInt=e=>{var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var p=d>>>16;p&&(o[l+1]|=p)}for(var _="",f=o.length-1,m=!0;m;){var g=0;for(m=!1,l=f;l>=0;l--){var h=g<<16|o[l],y=h/10|0;o[l]=y,g=h-10*y,y&&!m&&(f=l,m=!0)}_=g+_}return _},e.pseudoBigIntToString=e=>{var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=t=>!!(8388608&t.flags)||ge(t)||(t=>{if(79!==t.kind)return!1;var r=e.findAncestor(t.parent,(e=>{switch(e.kind){case 290:return!0;case 205:case 227:return!1;default:return"quit"}}));return 117===(null==r?void 0:r.token)||257===(null==r?void 0:r.parent.kind)})(t)||(e=>{for(;79===e.kind||205===e.kind;)e=e.parent;if(161!==e.kind)return!1;if(br(e.parent,128))return!0;var t=e.parent.parent.kind;return 257===t||181===t})(t)||!(fe(t)||(t=>e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t)(t)),e.isIdentifierTypeReference=t=>e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName),e.arrayIsHomogeneous=(t,r)=>{if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i<a;i++)if(!r(n,t[i]))return!1;return!0},e.setTextRangePos=di,e.setTextRangeEnd=pi,e.setTextRangePosEnd=_i,e.setTextRangePosWidth=(e,t,r)=>_i(e,t,t+r),e.setNodeFlags=(e,t)=>(e&&(e.flags=t),e),e.setParent=fi,e.setEachParent=(e,t)=>{if(e)for(var r=0,n=e;r<n.length;r++)fi(n[r],t);return e},e.setParentRecursive=(t,r)=>{return t?(e.forEachChildRecursively(t,e.isJSDocNode(t)?n:(t,r)=>n(t,r)||(t=>{if(e.hasJSDocNodes(t))for(var r=0,i=t.jsDoc;r<i.length;r++){var a=i[r];n(a,t),e.forEachChildRecursively(a,n)}})(t)),t):t;function n(e,t){if(r&&e.parent===t)return"skip";fi(e,t)}},e.isPackedArrayLiteral=t=>e.isArrayLiteralExpression(t)&&e.every(t.elements,mi),e.expressionResultIsUnused=t=>{for(e.Debug.assertIsDefined(t.parent);;){var r=t.parent;if(e.isParenthesizedExpression(r))t=r;else{if(e.isExpressionStatement(r)||e.isVoidExpression(r)||e.isForStatement(r)&&(r.initializer===t||r.incrementor===t))return!0;if(e.isCommaListExpression(r)){if(t!==e.last(r.elements))return!0;t=r}else{if(!e.isBinaryExpression(r)||27!==r.operatorToken.kind)return!1;if(t===r.left)return!0;t=r}}}},e.containsIgnoredPath=gi,e.getContainingNodeArray=t=>{if(t.parent){switch(t.kind){case 162:var r=t.parent;return 189===r.kind?void 0:r.typeParameters;case 163:return t.parent.parameters;case 198:case 232:return t.parent.templateSpans;case 164:return t.parent.decorators;case 290:return t.parent.heritageClauses}var n=t.parent;if(e.isJSDocTag(t))return e.isJSDocTypeLiteral(t.parent)?void 0:t.parent.tags;switch(n.kind){case 181:case 257:return e.isTypeElement(t)?n.members:void 0;case 186:case 187:return n.types;case 183:case 203:case 349:case 268:case 272:return n.elements;case 204:case 285:return n.properties;case 207:case 208:return e.isTypeNode(t)?n.typeArguments:n.expression===t?void 0:n.arguments;case 277:case 281:return e.isJsxChild(t)?n.children:void 0;case 279:case 278:return e.isTypeNode(t)?n.typeArguments:void 0;case 234:case 288:case 289:case 261:return n.statements;case 262:return n.clauses;case 256:case 225:return e.isClassElement(t)?n.members:void 0;case 259:return e.isEnumMember(t)?n.members:void 0;case 303:return n.statements}}},e.hasContextSensitiveParameters=t=>{if(!t.typeParameters){if(e.some(t.parameters,(e=>!_r(e))))return!0;if(213!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!ur(r))return!0}}return!1},e.isInfinityOrNaNString=e=>"Infinity"===e||"-Infinity"===e||"NaN"===e,e.isCatchClauseVariableDeclaration=hi,e.isParameterOrCatchClauseVariable=t=>{var r=t.valueDeclaration&&Ct(t.valueDeclaration);return!!r&&(e.isParameter(r)||hi(r))},e.isFunctionExpressionOrArrowFunction=e=>212===e.kind||213===e.kind,e.escapeSnippetText=e=>e.replace(/\$/gm,"\\$")}(Fl),(e=>{e.createBaseNodeFactory=()=>{var t,r,n,i,a;return{createBaseSourceFileNode:t=>new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(n||(n=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(r||(r=e.objectAllocator.getTokenConstructor()))(t,-1,-1),createBaseNode:r=>new(t||(t=e.objectAllocator.getNodeConstructor()))(r,-1,-1)}}})(Fl),(e=>{e.createParenthesizerRules=t=>{var r,n;return{getParenthesizeLeftSideOfBinaryForOperator(t){r||(r=new e.Map);var n=r.get(t);return n||(n=e=>o(t,e),r.set(t,n)),n},getParenthesizeRightSideOfBinaryForOperator(t){n||(n=new e.Map);var r=n.get(t);return r||(r=e=>s(t,void 0,e),n.set(t,r)),r},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:r=>e.isCommaSequence(r)?t.createParenthesizedExpression(r):r,parenthesizeConditionOfConditionalExpression(r){var n=e.getOperatorPrecedence(221,57),i=e.skipPartiallyEmittedExpressions(r),a=e.getExpressionPrecedence(i);return 1!==e.compareValues(a,n)?t.createParenthesizedExpression(r):r},parenthesizeBranchOfConditionalExpression(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isCommaSequence(n)?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfExportDefault(r){var n=e.skipPartiallyEmittedExpressions(r),i=e.isCommaSequence(n);if(!i)switch(e.getLeftmostExpression(n,!1).kind){case 225:case 212:i=!0}return i?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfNew(r){var n=e.getLeftmostExpression(r,!0);switch(n.kind){case 207:return t.createParenthesizedExpression(r);case 208:return n.arguments?r:t.createParenthesizedExpression(r)}return c(r)},parenthesizeLeftSideOfAccess:c,parenthesizeOperandOfPostfixUnary:r=>e.isLeftHandSideExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r),parenthesizeOperandOfPrefixUnary:r=>e.isUnaryExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r),parenthesizeExpressionsOfCommaDelimitedList(r){var n=e.sameMap(r,l);return e.setTextRange(t.createNodeArray(n,r.hasTrailingComma),r)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement(r){var n=e.skipPartiallyEmittedExpressions(r);if(e.isCallExpression(n)){var i=n.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(212===a||213===a){var o=t.updateCallExpression(n,e.setTextRange(t.createParenthesizedExpression(i),i),n.typeArguments,n.arguments);return t.restoreOuterExpressions(r,o,8)}}var s=e.getLeftmostExpression(n,!1).kind;return 204===s||212===s?e.setTextRange(t.createParenthesizedExpression(r),r):r},parenthesizeConciseBodyOfArrowFunction:r=>e.isBlock(r)||!e.isCommaSequence(r)&&204!==e.getLeftmostExpression(r,!1).kind?r:e.setTextRange(t.createParenthesizedExpression(r),r),parenthesizeMemberOfConditionalType:u,parenthesizeMemberOfElementType:d,parenthesizeElementTypeOfArrayType(e){switch(e.kind){case 180:case 192:case 189:return t.createParenthesizedType(e)}return d(e)},parenthesizeConstituentTypesOfUnionOrIntersectionType:r=>t.createNodeArray(e.sameMap(r,d)),parenthesizeTypeArguments(r){if(e.some(r))return t.createNodeArray(e.sameMap(r,p))}};function i(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(220===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=i(t.left),n=e.isLiteralKind(r)&&r===i(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function a(r,n,a,o){return 211===e.skipPartiallyEmittedExpressions(n).kind?n:((t,r,n,a)=>{var o=e.getOperatorPrecedence(220,t),s=e.getOperatorAssociativity(220,t),c=e.skipPartiallyEmittedExpressions(r);if(!n&&213===r.kind&&o>3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!n&&1===s&&223===r.kind);case 1:return!1;case 0:if(n)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if((e=>41===e||51===e||50===e||52===e)(t))return!1;if(39===t){var u=a?i(a):0;if(e.isLiteralKind(u)&&u===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}})(r,n,a,o)?t.createParenthesizedExpression(n):n}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isLeftHandSideExpression(n)&&(208!==n.kind||n.arguments)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function l(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(220,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function u(e){return 188===e.kind?t.createParenthesizedType(e):e}function d(e){switch(e.kind){case 186:case 187:case 178:case 179:return t.createParenthesizedType(e)}return u(e)}function p(r,n){return 0===n&&e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:t=>e.identity,getParenthesizeRightSideOfBinaryForOperator:t=>e.identity,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:t=>e.cast(t,e.isLeftHandSideExpression),parenthesizeLeftSideOfAccess:t=>e.cast(t,e.isLeftHandSideExpression),parenthesizeOperandOfPostfixUnary:t=>e.cast(t,e.isLeftHandSideExpression),parenthesizeOperandOfPrefixUnary:t=>e.cast(t,e.isUnaryExpression),parenthesizeExpressionsOfCommaDelimitedList:t=>e.cast(t,e.isNodeArray),parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:t=>e.cast(t,e.isNodeArray),parenthesizeTypeArguments:t=>t&&e.cast(t,e.isNodeArray)}})(Fl),(e=>{e.createNodeConverters=t=>{return{convertToFunctionBlock(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);return e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0),n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 201:case 203:return o(e);case 200:case 204:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}})(Fl),(e=>{var t,r,n=0;function i(r,i){var _=8&r?a:o,f=e.memoize((()=>1&r?e.nullParenthesizerRules:e.createParenthesizerRules(k))),m=e.memoize((()=>2&r?e.nullNodeConverters:e.createNodeConverters(k))),g=e.memoizeOne((e=>(t,r)=>Ot(t,e,r))),h=e.memoizeOne((e=>t=>Pt(e,t))),v=e.memoizeOne((e=>t=>It(t,e))),b=e.memoizeOne((e=>()=>(e=>N(e))(e))),x=e.memoizeOne((e=>t=>en(e,t))),E=e.memoizeOne((e=>(t,r)=>((e,t,r)=>t.type!==r?_(en(e,r),t):t)(e,t,r))),S=e.memoizeOne((e=>(t,r)=>xn(e,t,r))),D=e.memoizeOne((e=>(t,r,n)=>((e,t,r,n)=>(void 0===r&&(r=on(t)),t.tagName!==r||t.comment!==n?_(xn(e,r,n),t):t))(e,t,r,n))),T=e.memoizeOne((e=>(t,r,n)=>En(e,t,r,n))),C=e.memoizeOne((e=>(t,r,n,i)=>((e,t,r,n,i)=>(void 0===r&&(r=on(t)),t.tagName!==r||t.typeExpression!==n||t.comment!==i?_(En(e,r,n,i),t):t))(e,t,r,n,i))),k={get parenthesizer(){return f()},get converters(){return m()},createNodeArray:A,createNumericLiteral:z,createBigIntLiteral:K,createStringLiteral:H,createStringLiteralFromNode(t){var r=W(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:J,createLiteralLikeNode(e,t){switch(e){case 8:return z(t,0);case 9:return K(t);case 10:return H(t,void 0);case 11:return Fn(t,!1);case 12:return Fn(t,!0);case 13:return J(t);case 14:return jt(e,t,void 0,0)}},createIdentifier:q,updateIdentifier:(t,r)=>t.typeArguments!==r?_(q(e.idText(t),r),t):t,createTempVariable:X,createLoopVariable(e){var t=2;return e&&(t|=8),G("",t)},createUniqueName:(t,r)=>(void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),G(t,3|r)),getGeneratedNameForNode:Y,createPrivateIdentifier(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var r=i.createBasePrivateIdentifierNode(80);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=8388608,r},createToken:Z,createSuper:()=>Z(106),createThis:ee,createNull:()=>Z(104),createTrue:te,createFalse:re,createModifier:ne,createModifiersFromModifierFlags:ie,createQualifiedName:ae,updateQualifiedName:(e,t,r)=>e.left!==t||e.right!==r?_(ae(t,r),e):e,createComputedPropertyName:oe,updateComputedPropertyName:(e,t)=>e.expression!==t?_(oe(t),e):e,createTypeParameterDeclaration:se,updateTypeParameterDeclaration:(e,t,r,n)=>e.name!==t||e.constraint!==r||e.default!==n?_(se(t,r,n),e):e,createParameterDeclaration:ce,updateParameterDeclaration:le,createDecorator:ue,updateDecorator:(e,t)=>e.expression!==t?_(ue(t),e):e,createPropertySignature:de,updatePropertySignature:pe,createPropertyDeclaration:_e,updatePropertyDeclaration:fe,createMethodSignature:me,updateMethodSignature:ge,createMethodDeclaration:he,updateMethodDeclaration:ye,createConstructorDeclaration:be,updateConstructorDeclaration:xe,createGetAccessorDeclaration:Ee,updateGetAccessorDeclaration:Se,createSetAccessorDeclaration:De,updateSetAccessorDeclaration:Te,createCallSignature:Ce,updateCallSignature:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?O(Ce(t,r,n),e):e,createConstructSignature:ke,updateConstructSignature:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?O(ke(t,r,n),e):e,createIndexSignature:Ae,updateIndexSignature:Ne,createClassStaticBlockDeclaration:ve,updateClassStaticBlockDeclaration:(e,t,r,n)=>e.decorators!==t||e.modifier!==r||e.body!==n?_(ve(t,r,n),e):e,createTemplateLiteralTypeSpan:we,updateTemplateLiteralTypeSpan:(e,t,r)=>e.type!==t||e.literal!==r?_(we(t,r),e):e,createKeywordTypeNode:e=>Z(e),createTypePredicateNode:Fe,updateTypePredicateNode:(e,t,r,n)=>e.assertsModifier!==t||e.parameterName!==r||e.type!==n?_(Fe(t,r,n),e):e,createTypeReferenceNode:Pe,updateTypeReferenceNode:(e,t,r)=>e.typeName!==t||e.typeArguments!==r?_(Pe(t,r),e):e,createFunctionTypeNode:Ie,updateFunctionTypeNode:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?O(Ie(t,r,n),e):e,createConstructorTypeNode:Oe,updateConstructorTypeNode(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 5===t.length?Le.apply(void 0,t):4===t.length?Be.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")},createTypeQueryNode:je,updateTypeQueryNode:(e,t)=>e.exprName!==t?_(je(t),e):e,createTypeLiteralNode:Ue,updateTypeLiteralNode:(e,t)=>e.members!==t?_(Ue(t),e):e,createArrayTypeNode:Ve,updateArrayTypeNode:(e,t)=>e.elementType!==t?_(Ve(t),e):e,createTupleTypeNode:ze,updateTupleTypeNode:(e,t)=>e.elements!==t?_(ze(t),e):e,createNamedTupleMember:Ke,updateNamedTupleMember:(e,t,r,n,i)=>e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?_(Ke(t,r,n,i),e):e,createOptionalTypeNode:We,updateOptionalTypeNode:(e,t)=>e.type!==t?_(We(t),e):e,createRestTypeNode:He,updateRestTypeNode:(e,t)=>e.type!==t?_(He(t),e):e,createUnionTypeNode:e=>Je(186,e),updateUnionTypeNode:(e,t)=>$e(e,t),createIntersectionTypeNode:e=>Je(187,e),updateIntersectionTypeNode:(e,t)=>$e(e,t),createConditionalTypeNode:Ge,updateConditionalTypeNode:(e,t,r,n,i)=>e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?_(Ge(t,r,n,i),e):e,createInferTypeNode:qe,updateInferTypeNode:(e,t)=>e.typeParameter!==t?_(qe(t),e):e,createImportTypeNode:Ye,updateImportTypeNode:(e,t,r,n,i)=>(void 0===i&&(i=e.isTypeOf),e.argument!==t||e.qualifier!==r||e.typeArguments!==n||e.isTypeOf!==i?_(Ye(t,r,n,i),e):e),createParenthesizedType:Qe,updateParenthesizedType:(e,t)=>e.type!==t?_(Qe(t),e):e,createThisTypeNode(){var e=N(191);return e.transformFlags=1,e},createTypeOperatorNode:Ze,updateTypeOperatorNode:(e,t)=>e.type!==t?_(Ze(e.operator,t),e):e,createIndexedAccessTypeNode:et,updateIndexedAccessTypeNode:(e,t,r)=>e.objectType!==t||e.indexType!==r?_(et(t,r),e):e,createMappedTypeNode:tt,updateMappedTypeNode:(e,t,r,n,i,a,o)=>e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==n||e.questionToken!==i||e.type!==a||e.members!==o?_(tt(t,r,n,i,a,o),e):e,createLiteralTypeNode:rt,updateLiteralTypeNode:(e,t)=>e.literal!==t?_(rt(t),e):e,createTemplateLiteralType:Xe,updateTemplateLiteralType:(e,t,r)=>e.head!==t||e.templateSpans!==r?_(Xe(t,r),e):e,createObjectBindingPattern:nt,updateObjectBindingPattern:(e,t)=>e.elements!==t?_(nt(t),e):e,createArrayBindingPattern:it,updateArrayBindingPattern:(e,t)=>e.elements!==t?_(it(t),e):e,createBindingElement:at,updateBindingElement:(e,t,r,n,i)=>e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?_(at(t,r,n,i),e):e,createArrayLiteralExpression:st,updateArrayLiteralExpression:(e,t)=>e.elements!==t?_(st(t,e.multiLine),e):e,createObjectLiteralExpression:ct,updateObjectLiteralExpression:(e,t)=>e.properties!==t?_(ct(t,e.multiLine),e):e,createPropertyAccessExpression:4&r?(t,r)=>e.setEmitFlags(lt(t,r),131072):lt,updatePropertyAccessExpression:(t,r,n)=>e.isPropertyAccessChain(t)?dt(t,r,t.questionDotToken,e.cast(n,e.isIdentifier)):t.expression!==r||t.name!==n?_(lt(r,n),t):t,createPropertyAccessChain:4&r?(t,r,n)=>e.setEmitFlags(ut(t,r,n),131072):ut,updatePropertyAccessChain:dt,createElementAccessExpression:pt,updateElementAccessExpression:(t,r,n)=>e.isElementAccessChain(t)?ft(t,r,t.questionDotToken,n):t.expression!==r||t.argumentExpression!==n?_(pt(r,n),t):t,createElementAccessChain:_t,updateElementAccessChain:ft,createCallExpression:mt,updateCallExpression:(t,r,n,i)=>e.isCallChain(t)?ht(t,r,t.questionDotToken,n,i):t.expression!==r||t.typeArguments!==n||t.arguments!==i?_(mt(r,n,i),t):t,createCallChain:gt,updateCallChain:ht,createNewExpression:yt,updateNewExpression:(e,t,r,n)=>e.expression!==t||e.typeArguments!==r||e.arguments!==n?_(yt(t,r,n),e):e,createTaggedTemplateExpression:vt,updateTaggedTemplateExpression:(e,t,r,n)=>e.tag!==t||e.typeArguments!==r||e.template!==n?_(vt(t,r,n),e):e,createTypeAssertion:bt,updateTypeAssertion:xt,createParenthesizedExpression:Et,updateParenthesizedExpression:St,createFunctionExpression:Dt,updateFunctionExpression:Tt,createArrowFunction:Ct,updateArrowFunction:kt,createDeleteExpression:At,updateDeleteExpression:(e,t)=>e.expression!==t?_(At(t),e):e,createTypeOfExpression:Nt,updateTypeOfExpression:(e,t)=>e.expression!==t?_(Nt(t),e):e,createVoidExpression:wt,updateVoidExpression:(e,t)=>e.expression!==t?_(wt(t),e):e,createAwaitExpression:Ft,updateAwaitExpression:(e,t)=>e.expression!==t?_(Ft(t),e):e,createPrefixUnaryExpression:Pt,updatePrefixUnaryExpression:(e,t)=>e.operand!==t?_(Pt(e.operator,t),e):e,createPostfixUnaryExpression:It,updatePostfixUnaryExpression:(e,t)=>e.operand!==t?_(It(t,e.operator),e):e,createBinaryExpression:Ot,updateBinaryExpression:(e,t,r,n)=>e.left!==t||e.operatorToken!==r||e.right!==n?_(Ot(t,r,n),e):e,createConditionalExpression:Rt,updateConditionalExpression:(e,t,r,n,i,a)=>e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?_(Rt(t,r,n,i,a),e):e,createTemplateExpression:Lt,updateTemplateExpression:(e,t,r)=>e.head!==t||e.templateSpans!==r?_(Lt(t,r),e):e,createTemplateHead:(e,t,r)=>Bt(15,e,t,r),createTemplateMiddle:(e,t,r)=>Bt(16,e,t,r),createTemplateTail:(e,t,r)=>Bt(17,e,t,r),createNoSubstitutionTemplateLiteral:(e,t,r)=>Bt(14,e,t,r),createTemplateLiteralLikeNode:jt,createYieldExpression:Ut,updateYieldExpression:(e,t,r)=>e.expression!==r||e.asteriskToken!==t?_(Ut(t,r),e):e,createSpreadElement:Vt,updateSpreadElement:(e,t)=>e.expression!==t?_(Vt(t),e):e,createClassExpression:zt,updateClassExpression:Kt,createOmittedExpression:()=>ot(226),createExpressionWithTypeArguments:Wt,updateExpressionWithTypeArguments:(e,t,r)=>e.expression!==t||e.typeArguments!==r?_(Wt(t,r),e):e,createAsExpression:Ht,updateAsExpression:Jt,createNonNullExpression:$t,updateNonNullExpression:Gt,createNonNullChain:qt,updateNonNullChain:Xt,createMetaProperty:Yt,updateMetaProperty:(e,t)=>e.name!==t?_(Yt(e.keywordToken,t),e):e,createTemplateSpan:Qt,updateTemplateSpan:(e,t,r)=>e.expression!==t||e.literal!==r?_(Qt(t,r),e):e,createSemicolonClassElement(){var e=N(233);return e.transformFlags|=512,e},createBlock:Zt,updateBlock:(e,t)=>e.statements!==t?_(Zt(t,e.multiLine),e):e,createVariableStatement:er,updateVariableStatement:tr,createEmptyStatement:rr,createExpressionStatement:nr,updateExpressionStatement:(e,t)=>e.expression!==t?_(nr(t),e):e,createIfStatement:ir,updateIfStatement:(e,t,r,n)=>e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?_(ir(t,r,n),e):e,createDoStatement:ar,updateDoStatement:(e,t,r)=>e.statement!==t||e.expression!==r?_(ar(t,r),e):e,createWhileStatement:or,updateWhileStatement:(e,t,r)=>e.expression!==t||e.statement!==r?_(or(t,r),e):e,createForStatement:sr,updateForStatement:(e,t,r,n,i)=>e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?_(sr(t,r,n,i),e):e,createForInStatement:cr,updateForInStatement:(e,t,r,n)=>e.initializer!==t||e.expression!==r||e.statement!==n?_(cr(t,r,n),e):e,createForOfStatement:lr,updateForOfStatement:(e,t,r,n,i)=>e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?_(lr(t,r,n,i),e):e,createContinueStatement:ur,updateContinueStatement:(e,t)=>e.label!==t?_(ur(t),e):e,createBreakStatement:dr,updateBreakStatement:(e,t)=>e.label!==t?_(dr(t),e):e,createReturnStatement:pr,updateReturnStatement:(e,t)=>e.expression!==t?_(pr(t),e):e,createWithStatement:_r,updateWithStatement:(e,t,r)=>e.expression!==t||e.statement!==r?_(_r(t,r),e):e,createSwitchStatement:fr,updateSwitchStatement:(e,t,r)=>e.expression!==t||e.caseBlock!==r?_(fr(t,r),e):e,createLabeledStatement:mr,updateLabeledStatement:gr,createThrowStatement:hr,updateThrowStatement:(e,t)=>e.expression!==t?_(hr(t),e):e,createTryStatement:yr,updateTryStatement:(e,t,r,n)=>e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?_(yr(t,r,n),e):e,createDebuggerStatement:()=>N(252),createVariableDeclaration:vr,updateVariableDeclaration:(e,t,r,n,i)=>e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?_(vr(t,r,n,i),e):e,createVariableDeclarationList:br,updateVariableDeclarationList:(e,t)=>e.declarations!==t?_(br(t,e.flags),e):e,createFunctionDeclaration:xr,updateFunctionDeclaration:Er,createClassDeclaration:Sr,updateClassDeclaration:Dr,createInterfaceDeclaration:Tr,updateInterfaceDeclaration:Cr,createTypeAliasDeclaration:kr,updateTypeAliasDeclaration:Ar,createEnumDeclaration:Nr,updateEnumDeclaration:wr,createModuleDeclaration:Fr,updateModuleDeclaration:Pr,createModuleBlock:Ir,updateModuleBlock:(e,t)=>e.statements!==t?_(Ir(t),e):e,createCaseBlock:Or,updateCaseBlock:(e,t)=>e.clauses!==t?_(Or(t),e):e,createNamespaceExportDeclaration:Mr,updateNamespaceExportDeclaration:(e,t)=>e.name!==t?_(Mr(t),e):e,createImportEqualsDeclaration:Rr,updateImportEqualsDeclaration:Lr,createImportDeclaration:Br,updateImportDeclaration:jr,createImportClause:Ur,updateImportClause:(e,t,r,n)=>e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?_(Ur(t,r,n),e):e,createAssertClause:Vr,updateAssertClause:(e,t,r)=>e.elements!==t||e.multiLine!==r?_(Vr(t,r),e):e,createAssertEntry:zr,updateAssertEntry:(e,t,r)=>e.name!==t||e.value!==r?_(zr(t,r),e):e,createNamespaceImport:Kr,updateNamespaceImport:(e,t)=>e.name!==t?_(Kr(t),e):e,createNamespaceExport:Wr,updateNamespaceExport:(e,t)=>e.name!==t?_(Wr(t),e):e,createNamedImports:Hr,updateNamedImports:(e,t)=>e.elements!==t?_(Hr(t),e):e,createImportSpecifier:Jr,updateImportSpecifier:(e,t,r,n)=>e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?_(Jr(t,r,n),e):e,createExportAssignment:$r,updateExportAssignment:Gr,createExportDeclaration:qr,updateExportDeclaration:Xr,createNamedExports:Yr,updateNamedExports:(e,t)=>e.elements!==t?_(Yr(t),e):e,createExportSpecifier:Qr,updateExportSpecifier:(e,t,r,n)=>e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?_(Qr(t,r,n),e):e,createMissingDeclaration:()=>w(275,void 0,void 0),createExternalModuleReference:Zr,updateExternalModuleReference:(e,t)=>e.expression!==t?_(Zr(t),e):e,get createJSDocAllType(){return b(310)},get createJSDocUnknownType(){return b(311)},get createJSDocNonNullableType(){return x(313)},get updateJSDocNonNullableType(){return E(313)},get createJSDocNullableType(){return x(312)},get updateJSDocNullableType(){return E(312)},get createJSDocOptionalType(){return x(314)},get updateJSDocOptionalType(){return E(314)},get createJSDocVariadicType(){return x(316)},get updateJSDocVariadicType(){return E(316)},get createJSDocNamepathType(){return x(317)},get updateJSDocNamepathType(){return E(317)},createJSDocFunctionType:tn,updateJSDocFunctionType:(e,t,r)=>e.parameters!==t||e.type!==r?_(tn(t,r),e):e,createJSDocTypeLiteral:rn,updateJSDocTypeLiteral:(e,t,r)=>e.jsDocPropertyTags!==t||e.isArrayType!==r?_(rn(t,r),e):e,createJSDocTypeExpression:nn,updateJSDocTypeExpression:(e,t)=>e.type!==t?_(nn(t),e):e,createJSDocSignature:an,updateJSDocSignature:(e,t,r,n)=>e.typeParameters!==t||e.parameters!==r||e.type!==n?_(an(t,r,n),e):e,createJSDocTemplateTag:cn,updateJSDocTemplateTag:(e,t,r,n,i)=>(void 0===t&&(t=on(e)),e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?_(cn(t,r,n,i),e):e),createJSDocTypedefTag:ln,updateJSDocTypedefTag:(e,t,r,n,i)=>(void 0===t&&(t=on(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?_(ln(t,r,n,i),e):e),createJSDocParameterTag:un,updateJSDocParameterTag:(e,t,r,n,i,a,o)=>(void 0===t&&(t=on(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?_(un(t,r,n,i,a,o),e):e),createJSDocPropertyTag:dn,updateJSDocPropertyTag:(e,t,r,n,i,a,o)=>(void 0===t&&(t=on(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?_(dn(t,r,n,i,a,o),e):e),createJSDocCallbackTag:pn,updateJSDocCallbackTag:(e,t,r,n,i)=>(void 0===t&&(t=on(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?_(pn(t,r,n,i),e):e),createJSDocAugmentsTag:_n,updateJSDocAugmentsTag:(e,t,r,n)=>(void 0===t&&(t=on(e)),e.tagName!==t||e.class!==r||e.comment!==n?_(_n(t,r,n),e):e),createJSDocImplementsTag:fn,updateJSDocImplementsTag:(e,t,r,n)=>(void 0===t&&(t=on(e)),e.tagName!==t||e.class!==r||e.comment!==n?_(fn(t,r,n),e):e),createJSDocSeeTag:mn,updateJSDocSeeTag:(e,t,r,n)=>e.tagName!==t||e.name!==r||e.comment!==n?_(mn(t,r,n),e):e,createJSDocNameReference:gn,updateJSDocNameReference:(e,t)=>e.name!==t?_(gn(t),e):e,createJSDocMemberName:hn,updateJSDocMemberName:(e,t,r)=>e.left!==t||e.right!==r?_(hn(t,r),e):e,createJSDocLink:yn,updateJSDocLink:(e,t,r)=>e.name!==t?_(yn(t,r),e):e,createJSDocLinkCode:vn,updateJSDocLinkCode:(e,t,r)=>e.name!==t?_(vn(t,r),e):e,createJSDocLinkPlain:bn,updateJSDocLinkPlain:(e,t,r)=>e.name!==t?_(bn(t,r),e):e,get createJSDocTypeTag(){return T(341)},get updateJSDocTypeTag(){return C(341)},get createJSDocReturnTag(){return T(339)},get updateJSDocReturnTag(){return C(339)},get createJSDocThisTag(){return T(340)},get updateJSDocThisTag(){return C(340)},get createJSDocEnumTag(){return T(337)},get updateJSDocEnumTag(){return C(337)},get createJSDocAuthorTag(){return S(328)},get updateJSDocAuthorTag(){return D(328)},get createJSDocClassTag(){return S(330)},get updateJSDocClassTag(){return D(330)},get createJSDocPublicTag(){return S(331)},get updateJSDocPublicTag(){return D(331)},get createJSDocPrivateTag(){return S(332)},get updateJSDocPrivateTag(){return D(332)},get createJSDocProtectedTag(){return S(333)},get updateJSDocProtectedTag(){return D(333)},get createJSDocReadonlyTag(){return S(334)},get updateJSDocReadonlyTag(){return D(334)},get createJSDocOverrideTag(){return S(335)},get updateJSDocOverrideTag(){return D(335)},get createJSDocDeprecatedTag(){return S(329)},get updateJSDocDeprecatedTag(){return D(329)},createJSDocUnknownTag:Sn,updateJSDocUnknownTag:(e,t,r)=>e.tagName!==t||e.comment!==r?_(Sn(t,r),e):e,createJSDocText:Dn,updateJSDocText:(e,t)=>e.text!==t?_(Dn(t),e):e,createJSDocComment:Tn,updateJSDocComment:(e,t,r)=>e.comment!==t||e.tags!==r?_(Tn(t,r),e):e,createJsxElement:Cn,updateJsxElement:(e,t,r,n)=>e.openingElement!==t||e.children!==r||e.closingElement!==n?_(Cn(t,r,n),e):e,createJsxSelfClosingElement:kn,updateJsxSelfClosingElement:(e,t,r,n)=>e.tagName!==t||e.typeArguments!==r||e.attributes!==n?_(kn(t,r,n),e):e,createJsxOpeningElement:An,updateJsxOpeningElement:(e,t,r,n)=>e.tagName!==t||e.typeArguments!==r||e.attributes!==n?_(An(t,r,n),e):e,createJsxClosingElement:Nn,updateJsxClosingElement:(e,t)=>e.tagName!==t?_(Nn(t),e):e,createJsxFragment:wn,createJsxText:Fn,updateJsxText:(e,t,r)=>e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?_(Fn(t,r),e):e,createJsxOpeningFragment(){var e=N(282);return e.transformFlags|=2,e},createJsxJsxClosingFragment(){var e=N(283);return e.transformFlags|=2,e},updateJsxFragment:(e,t,r,n)=>e.openingFragment!==t||e.children!==r||e.closingFragment!==n?_(wn(t,r,n),e):e,createJsxAttribute:Pn,updateJsxAttribute:(e,t,r)=>e.name!==t||e.initializer!==r?_(Pn(t,r),e):e,createJsxAttributes:In,updateJsxAttributes:(e,t)=>e.properties!==t?_(In(t),e):e,createJsxSpreadAttribute:On,updateJsxSpreadAttribute:(e,t)=>e.expression!==t?_(On(t),e):e,createJsxExpression:Mn,updateJsxExpression:(e,t)=>e.expression!==t?_(Mn(e.dotDotDotToken,t),e):e,createCaseClause:Rn,updateCaseClause:(e,t,r)=>e.expression!==t||e.statements!==r?_(Rn(t,r),e):e,createDefaultClause:Ln,updateDefaultClause:(e,t)=>e.statements!==t?_(Ln(t),e):e,createHeritageClause:Bn,updateHeritageClause:(e,t)=>e.types!==t?_(Bn(e.token,t),e):e,createCatchClause:jn,updateCatchClause:(e,t,r)=>e.variableDeclaration!==t||e.block!==r?_(jn(t,r),e):e,createPropertyAssignment:Un,updatePropertyAssignment(e,t,r){return e.name!==t||e.initializer!==r?(n=Un(t,r),(i=e).decorators&&(n.decorators=i.decorators),i.modifiers&&(n.modifiers=i.modifiers),i.questionToken&&(n.questionToken=i.questionToken),i.exclamationToken&&(n.exclamationToken=i.exclamationToken),_(n,i)):e;var n,i},createShorthandPropertyAssignment:Vn,updateShorthandPropertyAssignment(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?(n=Vn(t,r),(i=e).decorators&&(n.decorators=i.decorators),i.modifiers&&(n.modifiers=i.modifiers),i.equalsToken&&(n.equalsToken=i.equalsToken),i.questionToken&&(n.questionToken=i.questionToken),i.exclamationToken&&(n.exclamationToken=i.exclamationToken),_(n,i)):e;var n,i},createSpreadAssignment:zn,updateSpreadAssignment:(e,t)=>e.expression!==t?_(zn(t),e):e,createEnumMember:Kn,updateEnumMember:(e,t,r)=>e.name!==t||e.initializer!==r?_(Kn(t,r),e):e,createSourceFile(e,t,r){var n=i.createBaseSourceFileNode(303);return n.statements=A(e),n.endOfFileToken=t,n.flags|=r,n.fileName="",n.text="",n.languageVersion=0,n.languageVariant=0,n.scriptKind=0,n.isDeclarationFile=!1,n.hasNoDefaultLib=!1,n.transformFlags|=d(n.statements)|u(n.endOfFileToken),n},updateSourceFile:(t,r,n,a,o,s,c)=>(void 0===n&&(n=t.isDeclarationFile),void 0===a&&(a=t.referencedFiles),void 0===o&&(o=t.typeReferenceDirectives),void 0===s&&(s=t.hasNoDefaultLib),void 0===c&&(c=t.libReferenceDirectives),t.statements!==r||t.isDeclarationFile!==n||t.referencedFiles!==a||t.typeReferenceDirectives!==o||t.hasNoDefaultLib!==s||t.libReferenceDirectives!==c?_(((t,r,n,a,o,s,c)=>{var l=i.createBaseSourceFileNode(303);for(var p in t)"emitNode"!==p&&!e.hasProperty(l,p)&&e.hasProperty(t,p)&&(l[p]=t[p]);return l.flags|=t.flags,l.statements=A(r),l.endOfFileToken=t.endOfFileToken,l.isDeclarationFile=n,l.referencedFiles=a,l.typeReferenceDirectives=o,l.hasNoDefaultLib=s,l.libReferenceDirectives=c,l.transformFlags=d(l.statements)|u(l.endOfFileToken),l.impliedNodeFormat=t.impliedNodeFormat,l})(t,r,n,a,o,s,c),t):t),createBundle:Wn,updateBundle:(t,r,n)=>(void 0===n&&(n=e.emptyArray),t.sourceFiles!==r||t.prepends!==n?_(Wn(r,n),t):t),createUnparsedSource(t,r,n){var i=N(305);return i.prologues=t,i.syntheticReferences=r,i.texts=n,i.fileName="",i.text="",i.referencedFiles=e.emptyArray,i.libReferenceDirectives=e.emptyArray,i.getLineAndCharacterOfPosition=t=>e.getLineAndCharacterOfPosition(i,t),i},createUnparsedPrologue:e=>Hn(298,e),createUnparsedPrepend(e,t){var r=Hn(299,e);return r.texts=t,r},createUnparsedTextLike:(e,t)=>Hn(t?301:300,e),createUnparsedSyntheticReference(e){var t=N(302);return t.data=e.data,t.section=e,t},createInputFiles(){var e=N(306);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression(e,t,r){void 0===t&&(t=!1);var n=N(231);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList(e){var t=N(346);return t._children=e,t},createNotEmittedStatement(t){var r=N(347);return r.original=t,e.setTextRange(r,t),r},createPartiallyEmittedExpression:Jn,updatePartiallyEmittedExpression:$n,createCommaListExpression:qn,updateCommaListExpression:(e,t)=>e.elements!==t?_(qn(t),e):e,createEndOfDeclarationMarker(e){var t=N(351);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker(e){var t=N(350);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:Xn,updateSyntheticReferenceExpression:(e,t,r)=>e.expression!==t||e.thisArg!==r?_(Xn(t,r),e):e,cloneNode:Yn,get createComma(){return g(27)},get createAssignment(){return g(63)},get createLogicalOr(){return g(56)},get createLogicalAnd(){return g(55)},get createBitwiseOr(){return g(51)},get createBitwiseXor(){return g(52)},get createBitwiseAnd(){return g(50)},get createStrictEquality(){return g(36)},get createStrictInequality(){return g(37)},get createEquality(){return g(34)},get createInequality(){return g(35)},get createLessThan(){return g(29)},get createLessThanEquals(){return g(32)},get createGreaterThan(){return g(31)},get createGreaterThanEquals(){return g(33)},get createLeftShift(){return g(47)},get createRightShift(){return g(48)},get createUnsignedRightShift(){return g(49)},get createAdd(){return g(39)},get createSubtract(){return g(40)},get createMultiply(){return g(41)},get createDivide(){return g(43)},get createModulo(){return g(44)},get createExponent(){return g(42)},get createPrefixPlus(){return h(39)},get createPrefixMinus(){return h(40)},get createPrefixIncrement(){return h(45)},get createPrefixDecrement(){return h(46)},get createBitwiseNot(){return h(54)},get createLogicalNot(){return h(53)},get createPostfixIncrement(){return v(45)},get createPostfixDecrement(){return v(46)},createImmediatelyInvokedFunctionExpression:(e,t,r)=>mt(Dt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Zt(e,!0)),void 0,r?[r]:[]),createImmediatelyInvokedArrowFunction:(e,t,r)=>mt(Ct(void 0,void 0,t?[t]:[],void 0,void 0,Zt(e,!0)),void 0,r?[r]:[]),createVoidZero:Qn,createExportDefault:e=>$r(void 0,void 0,!1,e),createExternalModuleExport:e=>qr(void 0,void 0,!1,Yr([Qr(!1,void 0,e)])),createTypeCheck:(e,t)=>"undefined"===t?k.createStrictEquality(e,Qn()):k.createStrictEquality(Nt(e),H(t)),createMethodCall:Zn,createGlobalMethodCall:ei,createFunctionBindCall:(e,t,r)=>Zn(e,"bind",Il([t],r,!0)),createFunctionCallCall:(e,t,r)=>Zn(e,"call",Il([t],r,!0)),createFunctionApplyCall:(e,t,r)=>Zn(e,"apply",[t,r]),createArraySliceCall:(e,t)=>Zn(e,"slice",void 0===t?[]:[pi(t)]),createArrayConcatCall:(e,t)=>Zn(e,"concat",t),createObjectDefinePropertyCall:(e,t,r)=>ei("Object","defineProperty",[e,pi(t),r]),createReflectGetCall:(e,t,r)=>ei("Reflect","get",r?[e,t,r]:[e,t]),createReflectSetCall:(e,t,r,n)=>ei("Reflect","set",n?[e,t,r,n]:[e,t,r]),createPropertyDescriptor(t,r){var n=[];ti(n,"enumerable",pi(t.enumerable)),ti(n,"configurable",pi(t.configurable));var i=ti(n,"writable",pi(t.writable));i=ti(n,"value",t.value)||i;var a=ti(n,"get",t.get);return a=ti(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ct(n,!r)},createCallBinding(t,r,n,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(t,15);return e.isSuperProperty(s)?(a=ee(),o=s):e.isSuperKeyword(s)?(a=ee(),o=void 0!==n&&n<2?e.setTextRange(q("_super"),s):s):4096&e.getEmitFlags(s)?(a=Qn(),o=f().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?ri(s.expression,i)?(a=X(r),o=lt(e.setTextRange(k.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?ri(s.expression,i)?(a=X(r),o=pt(e.setTextRange(k.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=Qn(),o=f().parenthesizeLeftSideOfAccess(t)),{target:o,thisArg:a}},createAssignmentTargetWrapper:(e,t)=>lt(Et(ct([De(void 0,void 0,"value",[ce(void 0,void 0,void 0,e,void 0,void 0,void 0)],Zt([nr(t)]))])),"value"),inlineExpressions:t=>t.length>10?qn(t):e.reduceLeft(t,k.createComma),getInternalName:(e,t,r)=>ni(e,t,r,49152),getLocalName:(e,t,r)=>ni(e,t,r,16384),getExportName:ii,getDeclarationName:(e,t,r)=>ni(e,t,r),getNamespaceMemberName:ai,getExternalModuleOrNamespaceExportName:(t,r,n,i)=>t&&e.hasSyntacticModifier(r,1)?ai(t,ni(r),n,i):ii(r,n,i),restoreOuterExpressions:function t(r,n,i){return void 0===i&&(i=15),r&&e.isOuterExpression(r,i)&&(a=r,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?((e,t)=>{switch(e.kind){case 211:return St(e,t);case 210:return xt(e,e.type,t);case 228:return Jt(e,t,e.type);case 229:return Gt(e,t);case 348:return $n(e,t)}})(r,t(r.expression,n)):n;var a},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=gr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);return i&&i(n),a},createUseStrictPrologue:oi,copyPrologue:(e,t,r,n)=>ci(e,t,si(e,t,r),n),copyStandardPrologue:si,copyCustomPrologue:ci,ensureUseStrict:t=>e.findUseStrictPrologue(t)?t:e.setTextRange(A(Il([oi()],t,!0)),t),liftToBlock:t=>(e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||Zt(t)),mergeLexicalEnvironment(t,r){if(!e.some(r))return t;var n=li(t,e.isPrologueDirective,0),i=li(t,e.isHoistedFunction,n),a=li(t,e.isHoistedVariableStatement,i),o=li(r,e.isPrologueDirective,0),s=li(r,e.isHoistedFunction,o),c=li(r,e.isHoistedVariableStatement,s),l=li(r,e.isCustomPrologue,c);e.Debug.assert(l===r.length,"Expected declarations to be valid standard or custom prologues");var u=e.isNodeArray(t)?t.slice():t;if(l>c&&u.splice.apply(u,Il([a,0],r.slice(c,l),!1)),c>s&&u.splice.apply(u,Il([i,0],r.slice(s,c),!1)),s>o&&u.splice.apply(u,Il([n,0],r.slice(o,s),!1)),o>0)if(0===n)u.splice.apply(u,Il([0,0],r.slice(0,o),!1));else{for(var d=new e.Map,p=0;p<n;p++){var _=t[p];d.set(_.expression.text,!0)}for(p=o-1;p>=0;p--){var f=r[p];d.has(f.expression.text)||u.unshift(f)}}return e.isNodeArray(t)?e.setTextRange(A(u,t.hasTrailingComma),t):t},updateModifiers(t,r){var n;return"number"==typeof r&&(r=ie(r)),e.isParameter(t)?le(t,t.decorators,r,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?pe(t,r,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?fe(t,t.decorators,r,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?ge(t,r,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?ye(t,t.decorators,r,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?xe(t,t.decorators,r,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Se(t,t.decorators,r,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Te(t,t.decorators,r,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Ne(t,t.decorators,r,t.parameters,t.type):e.isFunctionExpression(t)?Tt(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?kt(t,r,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Kt(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?tr(t,r,t.declarationList):e.isFunctionDeclaration(t)?Er(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Dr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?Cr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Ar(t,t.decorators,r,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?wr(t,t.decorators,r,t.name,t.members):e.isModuleDeclaration(t)?Pr(t,t.decorators,r,t.name,t.body):e.isImportEqualsDeclaration(t)?Lr(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?jr(t,t.decorators,r,t.importClause,t.moduleSpecifier,t.assertClause):e.isExportAssignment(t)?Gr(t,t.decorators,r,t.expression):e.isExportDeclaration(t)?Xr(t,t.decorators,r,t.isTypeOnly,t.exportClause,t.moduleSpecifier,t.assertClause):e.Debug.assertNever(t)}};return k;function A(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===r||t.hasTrailingComma===r)return void 0===t.transformFlags&&p(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.slice();return n.pos=t.pos,n.end=t.end,n.hasTrailingComma=r,n.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(n),n}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!r,p(a),e.Debug.attachNodeArrayDebugInfo(a),a}function N(e){return i.createBaseNode(e)}function w(e,t,r){var n=N(e);return n.decorators=ui(t),n.modifiers=ui(r),n.transformFlags|=d(n.decorators)|d(n.modifiers),n.symbol=void 0,n.localSymbol=void 0,n.locals=void 0,n.nextContainer=void 0,n}function F(t,r,n,i){var a=w(t,r,n);if(i=di(i),a.name=i,i)switch(a.kind){case 168:case 171:case 172:case 166:case 294:if(e.isIdentifier(i)){a.transformFlags|=l(i);break}default:a.transformFlags|=u(i)}return a}function P(e,t,r,n,i){var a=F(e,t,r,n);return a.typeParameters=ui(i),a.transformFlags|=d(a.typeParameters),i&&(a.transformFlags|=1),a}function I(e,t,r,n,i,a,o){var s=P(e,t,r,n,i);return s.parameters=A(a),s.type=o,s.transformFlags|=d(s.parameters)|u(s.type),o&&(s.transformFlags|=1),s}function O(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),_(e,t)}function M(e,t,r,n,i,a,o,s){var c=I(e,t,r,n,i,a,o);return c.body=s,c.transformFlags|=-16777217&u(c.body),s||(c.transformFlags|=1),c}function R(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),O(e,t)}function L(e,t,r,n,i,a){var o=P(e,t,r,n,i);return o.heritageClauses=ui(a),o.transformFlags|=d(o.heritageClauses),o}function B(e,t,r,n,i,a,o){var s=L(e,t,r,n,i,a);return s.members=A(o),s.transformFlags|=d(s.members),s}function j(e,t,r,n,i){var a=F(e,t,r,n);return a.initializer=i,a.transformFlags|=u(a.initializer),a}function U(e,t,r,n,i,a){var o=j(e,t,r,n,a);return o.type=i,o.transformFlags|=u(i),i&&(o.transformFlags|=1),o}function V(e,t){var r=Q(e);return r.text=t,r}function z(e,t){void 0===t&&(t=0);var r=V(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=512),r}function K(t){var r=V(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function W(e,t){var r=V(10,e);return r.singleQuote=t,r}function H(e,t,r){var n=W(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=512),n}function J(e){return V(13,e)}function $(t,r){void 0===r&&t&&(r=e.stringToToken(t)),79===r&&(r=void 0);var n=i.createBaseIdentifierNode(79);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function G(e,t){var r=$(e,void 0);return r.autoGenerateFlags=t,r.autoGenerateId=n,n++,r}function q(e,t,r){var n=$(e,r);return t&&(n.typeArguments=A(t)),132===n.originalKeywordKind&&(n.transformFlags|=16777216),n}function X(e,t){var r=1;t&&(r|=8);var n=G("",r);return e&&e(n),n}function Y(t,r){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags");var n=G(t&&e.isIdentifier(t)?e.idText(t):"",4|r);return n.original=t,n}function Q(e){return i.createBaseTokenNode(e)}function Z(t){e.Debug.assert(t>=0&&t<=159,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=Q(t),n=0;switch(t){case 131:n=192;break;case 123:case 121:case 122:case 144:case 126:case 135:case 85:case 130:case 146:case 157:case 143:case 147:case 158:case 149:case 133:case 150:case 114:case 154:case 152:n=1;break;case 106:n=33554944;break;case 124:n=512;break;case 108:n=8192}return n&&(r.transformFlags|=n),r}function ee(){return Z(108)}function te(){return Z(110)}function re(){return Z(95)}function ne(e){return Z(e)}function ie(e){var t=[];return 1&e&&t.push(ne(93)),2&e&&t.push(ne(135)),512&e&&t.push(ne(88)),2048&e&&t.push(ne(85)),4&e&&t.push(ne(123)),8&e&&t.push(ne(121)),16&e&&t.push(ne(122)),128&e&&t.push(ne(126)),32&e&&t.push(ne(124)),16384&e&&t.push(ne(158)),64&e&&t.push(ne(144)),256&e&&t.push(ne(131)),t}function ae(e,t){var r=N(160);return r.left=e,r.right=di(t),r.transformFlags|=u(r.left)|l(r.right),r}function oe(e){var t=N(161);return t.expression=f().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=66048|u(t.expression),t}function se(e,t,r){var n=F(162,void 0,void 0,e);return n.constraint=t,n.default=r,n.transformFlags=1,n}function ce(t,r,n,i,a,o,s){var c=U(163,t,r,i,o,s&&f().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=n,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=u(c.dotDotDotToken)|u(c.questionToken),a&&(c.transformFlags|=1),16476&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=4096),(s||n)&&(c.transformFlags|=512)),c}function le(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?_(ce(t,r,n,i,a,o,s),e):e}function ue(e){var t=N(164);return t.expression=f().parenthesizeLeftSideOfAccess(e),t.transformFlags|=4097|u(t.expression),t}function de(e,t,r,n){var i=F(165,void 0,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i}function pe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?_(de(t,r,n,i),e):e}function _e(t,r,n,i,a,o){var s=U(166,t,r,n,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=u(s.questionToken)|u(s.exclamationToken)|8388608,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=4096),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function fe(t,r,n,i,a,o,s){return t.decorators!==r||t.modifiers!==n||t.name!==i||t.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||t.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||t.type!==o||t.initializer!==s?_(_e(r,n,i,a,o,s),t):t}function me(e,t,r,n,i,a){var o=I(167,void 0,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function ge(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?O(me(t,r,n,i,a,o),e):e}function he(t,r,n,i,a,o,s,c,l){var d=M(168,t,r,i,o,s,c,l);return d.asteriskToken=n,d.questionToken=a,d.transformFlags|=u(d.asteriskToken)|u(d.questionToken)|512,a&&(d.transformFlags|=1),256&e.modifiersToFlags(d.modifiers)?d.transformFlags|=n?64:128:n&&(d.transformFlags|=1024),d}function ye(e,t,r,n,i,a,o,s,c,l){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?R(he(t,r,n,i,a,o,s,c,l),e):e}function ve(e,t,r){var n=P(169,e,t,void 0,void 0);return n.body=r,n.transformFlags=8388608|u(r),n}function be(e,t,r,n){var i=M(170,e,t,void 0,void 0,r,void 0,n);return i.transformFlags|=512,i}function xe(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?R(be(t,r,n,i),e):e}function Ee(e,t,r,n,i,a){return M(171,e,t,r,void 0,n,i,a)}function Se(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?R(Ee(t,r,n,i,a,o),e):e}function De(e,t,r,n,i){return M(172,e,t,r,void 0,n,void 0,i)}function Te(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?R(De(t,r,n,i,a),e):e}function Ce(e,t,r){var n=I(173,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function ke(e,t,r){var n=I(174,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ae(e,t,r,n){var i=I(175,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function Ne(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?O(Ae(t,r,n,i),e):e}function we(e,t){var r=N(198);return r.type=e,r.literal=t,r.transformFlags=1,r}function Fe(e,t,r){var n=N(176);return n.assertsModifier=e,n.parameterName=di(t),n.type=r,n.transformFlags=1,n}function Pe(e,t){var r=N(177);return r.typeName=di(e),r.typeArguments=t&&f().parenthesizeTypeArguments(A(t)),r.transformFlags=1,r}function Ie(e,t,r){var n=I(178,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Oe(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 4===t.length?Me.apply(void 0,t):3===t.length?Re.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")}function Me(e,t,r,n){var i=I(179,void 0,e,void 0,t,r,n);return i.transformFlags=1,i}function Re(e,t,r){return Me(void 0,e,t,r)}function Le(e,t,r,n,i){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i?O(Oe(t,r,n,i),e):e}function Be(e,t,r,n){return Le(e,e.modifiers,t,r,n)}function je(e){var t=N(180);return t.exprName=e,t.transformFlags=1,t}function Ue(e){var t=N(181);return t.members=A(e),t.transformFlags=1,t}function Ve(e){var t=N(182);return t.elementType=f().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function ze(e){var t=N(183);return t.elements=A(e),t.transformFlags=1,t}function Ke(e,t,r,n){var i=N(196);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function We(e){var t=N(184);return t.type=f().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function He(e){var t=N(185);return t.type=e,t.transformFlags=1,t}function Je(e,t){var r=N(e);return r.types=f().parenthesizeConstituentTypesOfUnionOrIntersectionType(t),r.transformFlags=1,r}function $e(e,t){return e.types!==t?_(Je(e.kind,t),e):e}function Ge(e,t,r,n){var i=N(188);return i.checkType=f().parenthesizeMemberOfConditionalType(e),i.extendsType=f().parenthesizeMemberOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function qe(e){var t=N(189);return t.typeParameter=e,t.transformFlags=1,t}function Xe(e,t){var r=N(197);return r.head=e,r.templateSpans=A(t),r.transformFlags=1,r}function Ye(e,t,r,n){void 0===n&&(n=!1);var i=N(199);return i.argument=e,i.qualifier=t,i.typeArguments=r&&f().parenthesizeTypeArguments(r),i.isTypeOf=n,i.transformFlags=1,i}function Qe(e){var t=N(190);return t.type=e,t.transformFlags=1,t}function Ze(e,t){var r=N(192);return r.operator=e,r.type=f().parenthesizeMemberOfElementType(t),r.transformFlags=1,r}function et(e,t){var r=N(193);return r.objectType=f().parenthesizeMemberOfElementType(e),r.indexType=t,r.transformFlags=1,r}function tt(e,t,r,n,i,a){var o=N(194);return o.readonlyToken=e,o.typeParameter=t,o.nameType=r,o.questionToken=n,o.type=i,o.members=a&&A(a),o.transformFlags=1,o}function rt(e){var t=N(195);return t.literal=e,t.transformFlags=1,t}function nt(e){var t=N(200);return t.elements=A(e),t.transformFlags|=262656|d(t.elements),16384&t.transformFlags&&(t.transformFlags|=32832),t}function it(e){var t=N(201);return t.elements=A(e),t.transformFlags|=262656|d(t.elements),t}function at(t,r,n,i){var a=j(202,void 0,void 0,n,i&&f().parenthesizeExpressionForDisallowedComma(i));return a.propertyName=di(r),a.dotDotDotToken=t,a.transformFlags|=512|u(a.dotDotDotToken),a.propertyName&&(a.transformFlags|=e.isIdentifier(a.propertyName)?l(a.propertyName):u(a.propertyName)),t&&(a.transformFlags|=16384),a}function ot(e){return N(e)}function st(t,r){var n=ot(203),i=t&&e.lastOrUndefined(t),a=A(t,!(!i||!e.isOmittedExpression(i))||void 0);return n.elements=f().parenthesizeExpressionsOfCommaDelimitedList(a),n.multiLine=r,n.transformFlags|=d(n.elements),n}function ct(e,t){var r=ot(204);return r.properties=A(e),r.multiLine=t,r.transformFlags|=d(r.properties),r}function lt(t,r){var n=ot(205);return n.expression=f().parenthesizeLeftSideOfAccess(t),n.name=di(r),n.transformFlags=u(n.expression)|(e.isIdentifier(n.name)?l(n.name):u(n.name)),e.isSuperKeyword(t)&&(n.transformFlags|=192),n}function ut(t,r,n){var i=ot(205);return i.flags|=32,i.expression=f().parenthesizeLeftSideOfAccess(t),i.questionDotToken=r,i.name=di(n),i.transformFlags|=16|u(i.expression)|u(i.questionDotToken)|(e.isIdentifier(i.name)?l(i.name):u(i.name)),i}function dt(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),t.expression!==r||t.questionDotToken!==n||t.name!==i?_(ut(r,n,i),t):t}function pt(t,r){var n=ot(206);return n.expression=f().parenthesizeLeftSideOfAccess(t),n.argumentExpression=pi(r),n.transformFlags|=u(n.expression)|u(n.argumentExpression),e.isSuperKeyword(t)&&(n.transformFlags|=192),n}function _t(e,t,r){var n=ot(206);return n.flags|=32,n.expression=f().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.argumentExpression=pi(r),n.transformFlags|=u(n.expression)|u(n.questionDotToken)|u(n.argumentExpression)|16,n}function ft(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),t.expression!==r||t.questionDotToken!==n||t.argumentExpression!==i?_(_t(r,n,i),t):t}function mt(t,r,n){var i=ot(207);return i.expression=f().parenthesizeLeftSideOfAccess(t),i.typeArguments=ui(r),i.arguments=f().parenthesizeExpressionsOfCommaDelimitedList(A(n)),i.transformFlags|=u(i.expression)|d(i.typeArguments)|d(i.arguments),i.typeArguments&&(i.transformFlags|=1),e.isImportKeyword(i.expression)?i.transformFlags|=4194304:e.isSuperProperty(i.expression)&&(i.transformFlags|=8192),i}function gt(t,r,n,i){var a=ot(207);return a.flags|=32,a.expression=f().parenthesizeLeftSideOfAccess(t),a.questionDotToken=r,a.typeArguments=ui(n),a.arguments=f().parenthesizeExpressionsOfCommaDelimitedList(A(i)),a.transformFlags|=u(a.expression)|u(a.questionDotToken)|d(a.typeArguments)|d(a.arguments)|16,a.typeArguments&&(a.transformFlags|=1),e.isSuperProperty(a.expression)&&(a.transformFlags|=8192),a}function ht(t,r,n,i,a){return e.Debug.assert(!!(32&t.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),t.expression!==r||t.questionDotToken!==n||t.typeArguments!==i||t.arguments!==a?_(gt(r,n,i,a),t):t}function yt(e,t,r){var n=ot(208);return n.expression=f().parenthesizeExpressionOfNew(e),n.typeArguments=ui(t),n.arguments=r?f().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=u(n.expression)|d(n.typeArguments)|d(n.arguments)|16,n.typeArguments&&(n.transformFlags|=1),n}function vt(t,r,n){var i=ot(209);return i.tag=f().parenthesizeLeftSideOfAccess(t),i.typeArguments=ui(r),i.template=n,i.transformFlags|=u(i.tag)|d(i.typeArguments)|u(i.template)|512,i.typeArguments&&(i.transformFlags|=1),e.hasInvalidEscape(i.template)&&(i.transformFlags|=64),i}function bt(e,t){var r=ot(210);return r.expression=f().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=u(r.expression)|u(r.type)|1,r}function xt(e,t,r){return e.type!==t||e.expression!==r?_(bt(t,r),e):e}function Et(e){var t=ot(211);return t.expression=e,t.transformFlags=u(t.expression),t}function St(e,t){return e.expression!==t?_(Et(t),e):e}function Dt(t,r,n,i,a,o,s){var c=M(212,void 0,t,n,i,a,o,s);return c.asteriskToken=r,c.transformFlags|=u(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=64:c.transformFlags|=128:c.asteriskToken&&(c.transformFlags|=1024),c}function Tt(e,t,r,n,i,a,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?R(Dt(t,r,n,i,a,o,s),e):e}function Ct(t,r,n,i,a,o){var s=M(213,void 0,t,void 0,r,n,i,f().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=a?a:Z(38),s.transformFlags|=512|u(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8320),s}function kt(e,t,r,n,i,a,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?R(Ct(t,r,n,i,a,o),e):e}function At(e){var t=ot(214);return t.expression=f().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=u(t.expression),t}function Nt(e){var t=ot(215);return t.expression=f().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=u(t.expression),t}function wt(e){var t=ot(216);return t.expression=f().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=u(t.expression),t}function Ft(e){var t=ot(217);return t.expression=f().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=1048768|u(t.expression),t}function Pt(t,r){var n=ot(218);return n.operator=t,n.operand=f().parenthesizeOperandOfPrefixUnary(r),n.transformFlags|=u(n.operand),45!==t&&46!==t||!e.isIdentifier(n.operand)||e.isGeneratedIdentifier(n.operand)||e.isLocalName(n.operand)||(n.transformFlags|=67108864),n}function It(t,r){var n=ot(219);return n.operator=r,n.operand=f().parenthesizeOperandOfPostfixUnary(t),n.transformFlags|=u(n.operand),!e.isIdentifier(n.operand)||e.isGeneratedIdentifier(n.operand)||e.isLocalName(n.operand)||(n.transformFlags|=67108864),n}function Ot(t,r,n){var i,a=ot(220),o="number"==typeof(i=r)?Z(i):i,s=o.kind;return a.left=f().parenthesizeLeftSideOfBinary(s,t),a.operatorToken=o,a.right=f().parenthesizeRightSideOfBinary(s,a.left,n),a.transformFlags|=u(a.left)|u(a.operatorToken)|u(a.right),60===s?a.transformFlags|=16:63===s?e.isObjectLiteralExpression(a.left)?a.transformFlags|=2624|Mt(a.left):e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=2560|Mt(a.left)):42===s||67===s?a.transformFlags|=256:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=8),a}function Mt(t){if(32768&t.transformFlags)return 32768;if(64&t.transformFlags)for(var r=0,n=e.getElementsOfBindingOrAssignmentPattern(t);r<n.length;r++){var i=n[r],a=e.getTargetOfBindingOrAssignmentElement(i);if(a&&e.isAssignmentPattern(a)){if(32768&a.transformFlags)return 32768;if(64&a.transformFlags){var o=Mt(a);if(o)return o}}}return 0}function Rt(e,t,r,n,i){var a=ot(221);return a.condition=f().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:Z(57),a.whenTrue=f().parenthesizeBranchOfConditionalExpression(r),a.colonToken=null!=n?n:Z(58),a.whenFalse=f().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=u(a.condition)|u(a.questionToken)|u(a.whenTrue)|u(a.colonToken)|u(a.whenFalse),a}function Lt(e,t){var r=ot(222);return r.head=e,r.templateSpans=A(t),r.transformFlags|=u(r.head)|d(r.templateSpans)|512,r}function Bt(r,n,i,a){void 0===a&&(a=0),e.Debug.assert(!(-2049&a),"Unsupported template flags.");var o=void 0;if(void 0!==i&&i!==n&&"object"==typeof(o=((r,n)=>{switch(t||(t=e.createScanner(99,!1,0)),r){case 14:t.setText("`"+n+"`");break;case 15:t.setText("`"+n+"${");break;case 16:t.setText("}"+n+"${");break;case 17:t.setText("}"+n+"`")}var i,a=t.scan();if(19===a&&(a=t.reScanTemplateToken(!1)),t.isUnterminated())return t.setText(void 0),c;switch(a){case 14:case 15:case 16:case 17:i=t.getTokenValue()}return void 0===i||1!==t.scan()?(t.setText(void 0),c):(t.setText(void 0),i)})(r,i)))return e.Debug.fail("Invalid raw text");if(void 0===n){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");n=o}else void 0!==o&&e.Debug.assert(n===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return jt(r,n,i,a)}function jt(e,t,r,n){var i=Q(e);return i.text=t,i.rawText=r,i.templateFlags=2048&n,i.transformFlags|=512,i.templateFlags&&(i.transformFlags|=64),i}function Ut(t,r){e.Debug.assert(!t||!!r,"A `YieldExpression` with an asteriskToken must have an expression.");var n=ot(223);return n.expression=r&&f().parenthesizeExpressionForDisallowedComma(r),n.asteriskToken=t,n.transformFlags|=u(n.expression)|u(n.asteriskToken)|524864,n}function Vt(e){var t=ot(224);return t.expression=f().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=16896|u(t.expression),t}function zt(e,t,r,n,i,a){var o=B(225,e,t,r,n,i,a);return o.transformFlags|=512,o}function Kt(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?_(zt(t,r,n,i,a,o),e):e}function Wt(e,t){var r=N(227);return r.expression=f().parenthesizeLeftSideOfAccess(e),r.typeArguments=t&&f().parenthesizeTypeArguments(t),r.transformFlags|=u(r.expression)|d(r.typeArguments)|512,r}function Ht(e,t){var r=ot(228);return r.expression=e,r.type=t,r.transformFlags|=u(r.expression)|u(r.type)|1,r}function Jt(e,t,r){return e.expression!==t||e.type!==r?_(Ht(t,r),e):e}function $t(e){var t=ot(229);return t.expression=f().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|u(t.expression),t}function Gt(t,r){return e.isNonNullChain(t)?Xt(t,r):t.expression!==r?_($t(r),t):t}function qt(e){var t=ot(229);return t.flags|=32,t.expression=f().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|u(t.expression),t}function Xt(t,r){return e.Debug.assert(!!(32&t.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==r?_(qt(r),t):t}function Yt(t,r){var n=ot(230);switch(n.keywordToken=t,n.name=r,n.transformFlags|=u(n.name),t){case 103:n.transformFlags|=512;break;case 100:n.transformFlags|=4;break;default:return e.Debug.assertNever(t)}return n}function Qt(e,t){var r=N(232);return r.expression=e,r.literal=t,r.transformFlags|=u(r.expression)|u(r.literal)|512,r}function Zt(e,t){var r=N(234);return r.statements=A(e),r.multiLine=t,r.transformFlags|=d(r.statements),r}function er(t,r){var n=w(236,void 0,t);return n.declarationList=e.isArray(r)?br(r):r,n.transformFlags|=u(n.declarationList),2&e.modifiersToFlags(n.modifiers)&&(n.transformFlags=1),n}function tr(e,t,r){return e.modifiers!==t||e.declarationList!==r?_(er(t,r),e):e}function rr(){return N(235)}function nr(e){var t=N(237);return t.expression=f().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=u(t.expression),t}function ir(e,t,r){var n=N(238);return n.expression=e,n.thenStatement=_i(t),n.elseStatement=_i(r),n.transformFlags|=u(n.expression)|u(n.thenStatement)|u(n.elseStatement),n}function ar(e,t){var r=N(239);return r.statement=_i(e),r.expression=t,r.transformFlags|=u(r.statement)|u(r.expression),r}function or(e,t){var r=N(240);return r.expression=e,r.statement=_i(t),r.transformFlags|=u(r.expression)|u(r.statement),r}function sr(e,t,r,n){var i=N(241);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=_i(n),i.transformFlags|=u(i.initializer)|u(i.condition)|u(i.incrementor)|u(i.statement),i}function cr(e,t,r){var n=N(242);return n.initializer=e,n.expression=t,n.statement=_i(r),n.transformFlags|=u(n.initializer)|u(n.expression)|u(n.statement),n}function lr(e,t,r,n){var i=N(243);return i.awaitModifier=e,i.initializer=t,i.expression=f().parenthesizeExpressionForDisallowedComma(r),i.statement=_i(n),i.transformFlags|=u(i.awaitModifier)|u(i.initializer)|u(i.expression)|u(i.statement)|512,e&&(i.transformFlags|=64),i}function ur(e){var t=N(244);return t.label=di(e),t.transformFlags|=2097152|u(t.label),t}function dr(e){var t=N(245);return t.label=di(e),t.transformFlags|=2097152|u(t.label),t}function pr(e){var t=N(246);return t.expression=e,t.transformFlags|=2097216|u(t.expression),t}function _r(e,t){var r=N(247);return r.expression=e,r.statement=_i(t),r.transformFlags|=u(r.expression)|u(r.statement),r}function fr(e,t){var r=N(248);return r.expression=f().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=u(r.expression)|u(r.caseBlock),r}function mr(e,t){var r=N(249);return r.label=di(e),r.statement=_i(t),r.transformFlags|=u(r.label)|u(r.statement),r}function gr(e,t,r){return e.label!==t||e.statement!==r?_(mr(t,r),e):e}function hr(e){var t=N(250);return t.expression=e,t.transformFlags|=u(t.expression),t}function yr(e,t,r){var n=N(251);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=u(n.tryBlock)|u(n.catchClause)|u(n.finallyBlock),n}function vr(e,t,r,n){var i=U(253,void 0,void 0,e,r,n&&f().parenthesizeExpressionForDisallowedComma(n));return i.exclamationToken=t,i.transformFlags|=u(i.exclamationToken),t&&(i.transformFlags|=1),i}function br(e,t){void 0===t&&(t=0);var r=N(254);return r.flags|=3&t,r.declarations=A(e),r.transformFlags|=2097152|d(r.declarations),3&t&&(r.transformFlags|=131584),r}function xr(t,r,n,i,a,o,s,c){var l=M(255,t,r,i,a,o,s,c);return l.asteriskToken=n,!l.body||2&e.modifiersToFlags(l.modifiers)?l.transformFlags=1:(l.transformFlags|=2097152|u(l.asteriskToken),256&e.modifiersToFlags(l.modifiers)?l.asteriskToken?l.transformFlags|=64:l.transformFlags|=128:l.asteriskToken&&(l.transformFlags|=1024)),l}function Er(e,t,r,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?R(xr(t,r,n,i,a,o,s,c),e):e}function Sr(t,r,n,i,a,o){var s=B(256,t,r,n,i,a,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=512,4096&s.transformFlags&&(s.transformFlags|=1)),s}function Dr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?_(Sr(t,r,n,i,a,o),e):e}function Tr(e,t,r,n,i,a){var o=L(257,e,t,r,n,i);return o.members=A(a),o.transformFlags=1,o}function Cr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?_(Tr(t,r,n,i,a,o),e):e}function kr(e,t,r,n,i){var a=P(258,e,t,r,n);return a.type=i,a.transformFlags=1,a}function Ar(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?_(kr(t,r,n,i,a),e):e}function Nr(e,t,r,n){var i=F(259,e,t,r);return i.members=A(n),i.transformFlags|=1|d(i.members),i.transformFlags&=-16777217,i}function wr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?_(Nr(t,r,n,i),e):e}function Fr(t,r,n,i,a){void 0===a&&(a=0);var o=w(260,t,r);return o.flags|=1044&a,o.name=n,o.body=i,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=u(o.name)|u(o.body)|1,o.transformFlags&=-16777217,o}function Pr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?_(Fr(t,r,n,i,e.flags),e):e}function Ir(e){var t=N(261);return t.statements=A(e),t.transformFlags|=d(t.statements),t}function Or(e){var t=N(262);return t.clauses=A(e),t.transformFlags|=d(t.clauses),t}function Mr(e){var t=F(263,void 0,void 0,e);return t.transformFlags=1,t}function Rr(t,r,n,i,a){var o=F(264,t,r,i);return o.isTypeOnly=n,o.moduleReference=a,o.transformFlags|=u(o.moduleReference),e.isExternalModuleReference(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-16777217,o}function Lr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.name!==i||e.moduleReference!==a?_(Rr(t,r,n,i,a),e):e}function Br(e,t,r,n,i){var a=w(265,e,t);return a.importClause=r,a.moduleSpecifier=n,a.assertClause=i,a.transformFlags|=u(a.importClause)|u(a.moduleSpecifier),a.transformFlags&=-16777217,a}function jr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i||e.assertClause!==a?_(Br(t,r,n,i,a),e):e}function Ur(e,t,r){var n=N(266);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=u(n.name)|u(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-16777217,n}function Vr(e,t){var r=N(292);return r.elements=e,r.multiLine=t,r.transformFlags|=4,r}function zr(e,t){var r=N(293);return r.name=e,r.value=t,r.transformFlags|=4,r}function Kr(e){var t=N(267);return t.name=e,t.transformFlags|=u(t.name),t.transformFlags&=-16777217,t}function Wr(e){var t=N(273);return t.name=e,t.transformFlags|=4|u(t.name),t.transformFlags&=-16777217,t}function Hr(e){var t=N(268);return t.elements=A(e),t.transformFlags|=d(t.elements),t.transformFlags&=-16777217,t}function Jr(e,t,r){var n=N(269);return n.isTypeOnly=e,n.propertyName=t,n.name=r,n.transformFlags|=u(n.propertyName)|u(n.name),n.transformFlags&=-16777217,n}function $r(e,t,r,n){var i=w(270,e,t);return i.isExportEquals=r,i.expression=r?f().parenthesizeRightSideOfBinary(63,void 0,n):f().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=u(i.expression),i.transformFlags&=-16777217,i}function Gr(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?_($r(t,r,e.isExportEquals,n),e):e}function qr(e,t,r,n,i,a){var o=w(271,e,t);return o.isTypeOnly=r,o.exportClause=n,o.moduleSpecifier=i,o.assertClause=a,o.transformFlags|=u(o.exportClause)|u(o.moduleSpecifier),o.transformFlags&=-16777217,o}function Xr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.exportClause!==i||e.moduleSpecifier!==a||e.assertClause!==o?_(qr(t,r,n,i,a,o),e):e}function Yr(e){var t=N(272);return t.elements=A(e),t.transformFlags|=d(t.elements),t.transformFlags&=-16777217,t}function Qr(e,t,r){var n=N(274);return n.isTypeOnly=e,n.propertyName=di(t),n.name=di(r),n.transformFlags|=u(n.propertyName)|u(n.name),n.transformFlags&=-16777217,n}function Zr(e){var t=N(276);return t.expression=e,t.transformFlags|=u(t.expression),t.transformFlags&=-16777217,t}function en(e,t){var r=N(e);return r.type=t,r}function tn(e,t){return I(315,void 0,void 0,void 0,void 0,e,t)}function rn(e,t){void 0===t&&(t=!1);var r=N(320);return r.jsDocPropertyTags=ui(e),r.isArrayType=t,r}function nn(e){var t=N(307);return t.type=e,t}function an(e,t,r){var n=N(321);return n.typeParameters=ui(e),n.parameters=A(t),n.type=r,n}function on(t){var r=s(t.kind);return t.tagName.escapedText===e.escapeLeadingUnderscores(r)?t.tagName:q(r)}function sn(e,t,r){var n=N(e);return n.tagName=t,n.comment=r,n}function cn(e,t,r,n){var i=sn(342,null!=e?e:q("template"),n);return i.constraint=t,i.typeParameters=A(r),i}function ln(t,r,n,i){var a=sn(343,null!=t?t:q("typedef"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function un(e,t,r,n,i,a){var o=sn(338,null!=e?e:q("param"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function dn(e,t,r,n,i,a){var o=sn(345,null!=e?e:q("prop"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function pn(t,r,n,i){var a=sn(336,null!=t?t:q("callback"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function _n(e,t,r){var n=sn(326,null!=e?e:q("augments"),r);return n.class=t,n}function fn(e,t,r){var n=sn(327,null!=e?e:q("implements"),r);return n.class=t,n}function mn(e,t,r){var n=sn(344,null!=e?e:q("see"),r);return n.name=t,n}function gn(e){var t=N(308);return t.name=e,t}function hn(e,t){var r=N(309);return r.left=e,r.right=t,r.transformFlags|=u(r.left)|u(r.right),r}function yn(e,t){var r=N(322);return r.name=e,r.text=t,r}function vn(e,t){var r=N(323);return r.name=e,r.text=t,r}function bn(e,t){var r=N(324);return r.name=e,r.text=t,r}function xn(e,t,r){return sn(e,null!=t?t:q(s(e)),r)}function En(e,t,r,n){var i=sn(e,null!=t?t:q(s(e)),n);return i.typeExpression=r,i}function Sn(e,t){return sn(325,e,t)}function Dn(e){var t=N(319);return t.text=e,t}function Tn(e,t){var r=N(318);return r.comment=e,r.tags=ui(t),r}function Cn(e,t,r){var n=N(277);return n.openingElement=e,n.children=A(t),n.closingElement=r,n.transformFlags|=u(n.openingElement)|d(n.children)|u(n.closingElement)|2,n}function kn(e,t,r){var n=N(278);return n.tagName=e,n.typeArguments=ui(t),n.attributes=r,n.transformFlags|=u(n.tagName)|d(n.typeArguments)|u(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function An(e,t,r){var n=N(279);return n.tagName=e,n.typeArguments=ui(t),n.attributes=r,n.transformFlags|=u(n.tagName)|d(n.typeArguments)|u(n.attributes)|2,t&&(n.transformFlags|=1),n}function Nn(e){var t=N(280);return t.tagName=e,t.transformFlags|=2|u(t.tagName),t}function wn(e,t,r){var n=N(281);return n.openingFragment=e,n.children=A(t),n.closingFragment=r,n.transformFlags|=u(n.openingFragment)|d(n.children)|u(n.closingFragment)|2,n}function Fn(e,t){var r=N(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function Pn(e,t){var r=N(284);return r.name=e,r.initializer=t,r.transformFlags|=u(r.name)|u(r.initializer)|2,r}function In(e){var t=N(285);return t.properties=A(e),t.transformFlags|=2|d(t.properties),t}function On(e){var t=N(286);return t.expression=e,t.transformFlags|=2|u(t.expression),t}function Mn(e,t){var r=N(287);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=u(r.dotDotDotToken)|u(r.expression)|2,r}function Rn(e,t){var r=N(288);return r.expression=f().parenthesizeExpressionForDisallowedComma(e),r.statements=A(t),r.transformFlags|=u(r.expression)|d(r.statements),r}function Ln(e){var t=N(289);return t.statements=A(e),t.transformFlags=d(t.statements),t}function Bn(t,r){var n=N(290);switch(n.token=t,n.types=A(r),n.transformFlags|=d(n.types),t){case 94:n.transformFlags|=512;break;case 117:n.transformFlags|=1;break;default:return e.Debug.assertNever(t)}return n}function jn(t,r){var n=N(291);return("string"==typeof t||t&&!e.isVariableDeclaration(t))&&(t=vr(t,void 0,void 0,void 0)),n.variableDeclaration=t,n.block=r,n.transformFlags|=u(n.variableDeclaration)|u(n.block),t||(n.transformFlags|=32),n}function Un(e,t){var r=F(294,void 0,void 0,e);return r.initializer=f().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=u(r.name)|u(r.initializer),r}function Vn(e,t){var r=F(295,void 0,void 0,e);return r.objectAssignmentInitializer=t&&f().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=512|u(r.objectAssignmentInitializer),r}function zn(e){var t=N(296);return t.expression=f().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=32832|u(t.expression),t}function Kn(e,t){var r=N(297);return r.name=di(e),r.initializer=t&&f().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=u(r.name)|u(r.initializer)|1,r}function Wn(t,r){void 0===r&&(r=e.emptyArray);var n=N(304);return n.prepends=r,n.sourceFiles=t,n}function Hn(e,t){var r=N(e);return r.data=t,r}function Jn(t,r){var n=N(348);return n.expression=t,n.original=r,n.transformFlags|=1|u(n.expression),e.setTextRange(n,r),n}function $n(e,t){return e.expression!==t?_(Jn(t,e.original),e):e}function Gn(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(e.isCommaListExpression(t))return t.elements;if(e.isBinaryExpression(t)&&e.isCommaToken(t.operatorToken))return[t.left,t.right]}return t}function qn(t){var r=N(349);return r.elements=A(e.sameFlatMap(t,Gn)),r.transformFlags|=d(r.elements),r}function Xn(e,t){var r=N(352);return r.expression=e,r.thisArg=t,r.transformFlags|=u(r.expression)|u(r.thisArg),r}function Yn(t){if(void 0===t)return t;var r=e.isSourceFile(t)?i.createBaseSourceFileNode(303):e.isIdentifier(t)?i.createBaseIdentifierNode(79):e.isPrivateIdentifier(t)?i.createBasePrivateIdentifierNode(80):e.isNodeKind(t.kind)?i.createBaseNode(t.kind):i.createBaseTokenNode(t.kind);for(var n in r.flags|=-9&t.flags,r.transformFlags=t.transformFlags,y(r,t),t)!r.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(r[n]=t[n]);return r}function Qn(){return wt(z("0"))}function Zn(t,r,n){return e.isCallChain(t)?gt(ut(t,void 0,r),void 0,void 0,n):mt(lt(t,r),void 0,n)}function ei(e,t,r){return Zn(q(e),t,r)}function ti(e,t,r){return!!r&&(e.push(Un(t,r)),!0)}function ri(t,r){var n=e.skipParentheses(t);switch(n.kind){case 79:return r;case 108:case 8:case 9:case 10:return!1;case 203:return 0!==n.elements.length;case 204:return n.properties.length>0;default:return!0}}function ni(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(Yn(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return Y(t)}function ii(e,t,r){return ni(e,t,r,8192)}function ai(t,r,n,i){var a=lt(t,e.nodeIsSynthesized(r)?r:Yn(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function oi(){return e.startOnNewLine(nr(H("use strict")))}function si(t,r,n){e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var i,a=!1,o=0,s=t.length;o<s;){var c=t[o];if(!e.isPrologueDirective(c))break;i=c,e.isStringLiteral(i.expression)&&"use strict"===i.expression.text&&(a=!0),r.push(c),o++}return n&&!a&&r.push(oi()),o}function ci(t,r,n,i,a){void 0===a&&(a=e.returnTrue);for(var o=t.length;void 0!==n&&n<o;){var s=t[n];if(!(1048576&e.getEmitFlags(s)&&a(s)))break;e.append(r,i?e.visitNode(s,i,e.isStatement):s),n++}return n}function li(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function ui(e){return e?A(e):void 0}function di(e){return"string"==typeof e?q(e):e}function pi(e){return"string"==typeof e?H(e):"number"==typeof e?z(e):"boolean"==typeof e?e?te():re():e}function _i(t){return t&&e.isNotEmittedStatement(t)?e.setTextRange(y(rr(),t),t):t}}function a(t,r){return t!==r&&e.setTextRange(t,r),t}function o(t,r){return t!==r&&(y(t,r),e.setTextRange(t,r)),t}function s(t){switch(t){case 341:return"type";case 339:return"returns";case 340:return"this";case 337:return"enum";case 328:return"author";case 330:return"class";case 331:return"public";case 332:return"private";case 333:return"protected";case 334:return"readonly";case 335:return"override";case 342:return"template";case 343:return"typedef";case 338:return"param";case 345:return"prop";case 336:return"callback";case 326:return"augments";case 327:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(t)))}}(r=e.NodeFactoryFlags||(e.NodeFactoryFlags={}))[r.None=0]="None",r[r.NoParenthesizerRules=1]="NoParenthesizerRules",r[r.NoNodeConverters=2]="NoNodeConverters",r[r.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",r[r.NoOriginalNode=8]="NoOriginalNode",e.createNodeFactory=i;var c={};function l(e){return-16777217&u(e)}function u(t){if(!t)return 0;var r=t.transformFlags&~_(t.kind);return e.isNamedDeclaration(t)&&e.isPropertyName(t.name)?r|33562624&t.name.transformFlags:r}function d(e){return e?e.transformFlags:0}function p(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=u(n[r]);e.transformFlags=t}function _(e){if(e>=176&&e<=199)return-2;switch(e){case 207:case 208:case 203:return 536887296;case 260:return 589443072;case 163:return 536870912;case 213:return 557748224;case 212:case 255:return 591310848;case 254:return 537165824;case 256:case 225:return 536940544;case 170:return 591306752;case 166:return 570433536;case 168:case 171:case 172:return 574529536;case 130:case 146:case 157:case 143:case 149:case 147:case 133:case 150:case 114:case 162:case 165:case 167:case 173:case 174:case 175:case 257:case 258:return-2;case 204:return 536973312;case 291:return 536903680;case 200:case 201:return 536887296;case 210:case 228:case 348:case 211:case 106:return 536870912;case 205:case 206:default:return 536870912}}e.getTransformFlagsSubtreeExclusions=_;var f=e.createBaseNodeFactory();function m(e){return e.flags|=8,e}var g,h={createBaseSourceFileNode:e=>m(f.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>m(f.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>m(f.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>m(f.createBaseTokenNode(e)),createBaseNode:e=>m(f.createBaseNode(e))};function y(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=((t,r)=>{var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,l=t.constantValue,u=t.helpers,d=t.startsOnNewLine;if(r||(r={}),i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments)),a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments)),n&&(r.flags=-268435457&n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=((e,t)=>{for(var r in t||(t=[]),e)t[r]=e[r];return t})(c,r.tokenSourceMapRanges)),void 0!==l&&(r.constantValue=l),u)for(var p=0,_=u;p<_.length;p++){var f=_[p];r.helpers=e.appendIfUnique(r.helpers,f)}return void 0!==d&&(r.startsOnNewLine=d),r})(n,t.emitNode))}return t}e.factory=i(4,h),e.createUnparsedSourceFile=(t,r,n)=>{var i,a,o,s,c,l,u,d,p,_;e.isString(t)?(o="",s=t,c=t.length,l=r,u=n):(e.Debug.assert("js"===r||"dts"===r),o=("js"===r?t.javascriptPath:t.declarationPath)||"",l="js"===r?t.javascriptMapPath:t.declarationMapPath,d=()=>"js"===r?t.javascriptText:t.declarationText,p=()=>"js"===r?t.javascriptMapText:t.declarationMapText,c=()=>d().length,t.buildInfo&&t.buildInfo.bundle&&(e.Debug.assert(void 0===n||"boolean"==typeof n),i=n,a="js"===r?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,_=t.oldFileOfCurrentEmit));var f=_?(t=>{for(var r,n,i=0,a=t.sections;i<a.length;i++){var o=a[i];switch(o.kind){case"internal":case"text":r=e.append(r,e.setTextRange(e.factory.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"lib":n=e.append(n,e.setTextRange(e.factory.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(o)}}var s=e.factory.createUnparsedSource(e.emptyArray,n,null!=r?r:e.emptyArray);return e.setEachParent(n,s),e.setEachParent(r,s),s.helpers=e.map(t.sources&&t.sources.helpers,(t=>e.getAllUnscopedEmitHelpers().get(t))),s})(e.Debug.assertDefined(a)):((t,r,n)=>{for(var i,a,o,s,c,l,u,d,p=0,_=t?t.sections:e.emptyArray;p<_.length;p++){var f=_[p];switch(f.kind){case"prologue":i=e.append(i,e.setTextRange(e.factory.createUnparsedPrologue(f.data),f));break;case"emitHelpers":a=e.append(a,e.getAllUnscopedEmitHelpers().get(f.data));break;case"no-default-lib":d=!0;break;case"reference":o=e.append(o,{pos:-1,end:-1,fileName:f.data});break;case"type":s=e.append(s,f.data);break;case"lib":c=e.append(c,{pos:-1,end:-1,fileName:f.data});break;case"prepend":for(var m=void 0,g=0,h=f.texts;g<h.length;g++){var y=h[g];r&&"internal"===y.kind||(m=e.append(m,e.setTextRange(e.factory.createUnparsedTextLike(y.data,"internal"===y.kind),y)))}l=e.addRange(l,m),u=e.append(u,e.factory.createUnparsedPrepend(f.data,null!=m?m:e.emptyArray));break;case"internal":if(r){u||(u=[]);break}case"text":u=e.append(u,e.setTextRange(e.factory.createUnparsedTextLike(f.data,"internal"===f.kind),f));break;default:e.Debug.assertNever(f)}}if(!u){var v=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(v,0,"function"==typeof n?n():n),u=[v]}var b=e.parseNodeFactory.createUnparsedSource(null!=i?i:e.emptyArray,void 0,u);return e.setEachParent(i,b),e.setEachParent(u,b),e.setEachParent(l,b),b.hasNoDefaultLib=d,b.helpers=a,b.referencedFiles=o||e.emptyArray,b.typeReferenceDirectives=s,b.libReferenceDirectives=c||e.emptyArray,b})(a,i,c);return f.fileName=o,f.sourceMapPath=l,f.oldFileOfCurrentEmit=_,d&&p?(Object.defineProperty(f,"text",{get:d}),Object.defineProperty(f,"sourceMapText",{get:p})):(e.Debug.assert(!_),f.text=null!=s?s:"",f.sourceMapText=u),f},e.createInputFiles=(t,r,n,i,a,o,s,c,l,u,d)=>{var p=e.parseNodeFactory.createInputFiles();if(e.isString(t))p.javascriptText=t,p.javascriptMapPath=n,p.javascriptMapText=i,p.declarationText=r,p.declarationMapPath=a,p.declarationMapText=o,p.javascriptPath=s,p.declarationPath=c,p.buildInfoPath=l,p.buildInfo=u,p.oldFileOfCurrentEmit=d;else{var _,f=new e.Map,m=e=>{if(void 0!==e){var r=f.get(e);return void 0===r&&(r=t(e),f.set(e,void 0!==r&&r)),!1!==r?r:void 0}},g=e=>{var t=m(e);return void 0!==t?t:"/* Input file ".concat(e," was missing */\r\n")};p.javascriptPath=r,p.javascriptMapPath=n,p.declarationPath=e.Debug.assertDefined(i),p.declarationMapPath=a,p.buildInfoPath=o,Object.defineProperties(p,{javascriptText:{get:()=>g(r)},javascriptMapText:{get:()=>m(n)},declarationText:{get:()=>g(e.Debug.assertDefined(i))},declarationMapText:{get:()=>m(a)},buildInfo:{get:()=>(t=>{if(void 0===_){var r=m(o);_=void 0!==r&&e.getBuildInfo(r)}return _||void 0})()}})}return p},e.createSourceMapSource=(t,r,n)=>new(g||(g=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n),e.setOriginalNode=y})(Fl),(e=>{function t(r){var n;if(r.emitNode)e.Debug.assert(!(268435456&r.emitNode.flags),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(r)){if(303===r.kind)return r.emitNode={annotatedNodes:[r]};t(null!==(n=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(r))))&&void 0!==n?n:e.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(r)}r.emitNode={}}return r.emitNode}function r(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.leadingComments}function n(e,r){return t(e).leadingComments=r,e}function i(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.trailingComments}function a(e,r){return t(e).trailingComments=r,e}e.getOrCreateEmitNode=t,e.disposeEmitNodes=t=>{var r,n,i=null===(n=null===(r=e.getSourceFileOfNode(e.getParseTreeNode(t)))||void 0===r?void 0:r.emitNode)||void 0===n?void 0:n.annotatedNodes;if(i)for(var a=0,o=i;a<o.length;a++)o[a].emitNode=void 0},e.removeAllComments=e=>{var r=t(e);return r.flags|=1536,r.leadingComments=void 0,r.trailingComments=void 0,e},e.setEmitFlags=(e,r)=>(t(e).flags=r,e),e.addEmitFlags=(e,r)=>{var n=t(e);return n.flags=n.flags|r,e},e.getSourceMapRange=e=>{var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.sourceMapRange)&&void 0!==r?r:e},e.setSourceMapRange=(e,r)=>(t(e).sourceMapRange=r,e),e.getTokenSourceMapRange=(e,t)=>{var r,n;return null===(n=null===(r=e.emitNode)||void 0===r?void 0:r.tokenSourceMapRanges)||void 0===n?void 0:n[t]},e.setTokenSourceMapRange=(e,r,n)=>{var i,a=t(e);return(null!==(i=a.tokenSourceMapRanges)&&void 0!==i?i:a.tokenSourceMapRanges=[])[r]=n,e},e.getStartsOnNewLine=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.startsOnNewLine},e.setStartsOnNewLine=(e,r)=>(t(e).startsOnNewLine=r,e),e.getCommentRange=e=>{var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.commentRange)&&void 0!==r?r:e},e.setCommentRange=(e,r)=>(t(e).commentRange=r,e),e.getSyntheticLeadingComments=r,e.setSyntheticLeadingComments=n,e.addSyntheticLeadingComment=(t,i,a,o)=>n(t,e.append(r(t),{kind:i,pos:-1,end:-1,hasTrailingNewLine:o,text:a})),e.getSyntheticTrailingComments=i,e.setSyntheticTrailingComments=a,e.addSyntheticTrailingComment=(t,r,n,o)=>a(t,e.append(i(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:o,text:n})),e.moveSyntheticComments=(e,o)=>{n(e,r(o)),a(e,i(o));var s=t(o);return s.leadingComments=void 0,s.trailingComments=void 0,e},e.getConstantValue=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.constantValue},e.setConstantValue=(e,r)=>(t(e).constantValue=r,e),e.addEmitHelper=(r,n)=>{var i=t(r);return i.helpers=e.append(i.helpers,n),r},e.addEmitHelpers=(r,n)=>{if(e.some(n))for(var i=t(r),a=0,o=n;a<o.length;a++){var s=o[a];i.helpers=e.appendIfUnique(i.helpers,s)}return r},e.removeEmitHelper=(t,r)=>{var n,i=null===(n=t.emitNode)||void 0===n?void 0:n.helpers;return!!i&&e.orderedRemoveItem(i,r)},e.getEmitHelpers=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.helpers},e.moveEmitHelpers=(r,n,i)=>{var a=r.emitNode,o=a&&a.helpers;if(e.some(o)){for(var s=t(n),c=0,l=0;l<o.length;l++){var u=o[l];i(u)?(c++,s.helpers=e.appendIfUnique(s.helpers,u)):c>0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.getSnippetElement=e=>{var t;return null===(t=e.emitNode)||void 0===t?void 0:t.snippetElement},e.setSnippetElement=(e,r)=>(t(e).snippetElement=r,e),e.ignoreSourceNewlines=e=>(t(e).flags|=134217728,e)})(Fl),(e=>{function t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return r=>{for(var n="",i=0;i<t.length;i++)n+=e[i],n+=r(t[i]);return n+e[e.length-1]}}var r;e.createEmitHelperFactory=t=>{var r=t.factory,n=e.memoize((()=>e.setEmitFlags(r.createTrue(),268435456))),i=e.memoize((()=>e.setEmitFlags(r.createFalse(),268435456)));return{getUnscopedHelperName:a,createDecorateHelper(n,i,o,s){t.requestEmitHelper(e.decorateHelper);var c=[];return c.push(r.createArrayLiteralExpression(n,!0)),c.push(i),o&&(c.push(o),s&&c.push(s)),r.createCallExpression(a("__decorate"),void 0,c)},createMetadataHelper:(n,i)=>(t.requestEmitHelper(e.metadataHelper),r.createCallExpression(a("__metadata"),void 0,[r.createStringLiteral(n),i])),createParamHelper:(n,i,o)=>(t.requestEmitHelper(e.paramHelper),e.setTextRange(r.createCallExpression(a("__param"),void 0,[r.createNumericLiteral(i+""),n]),o)),createAssignHelper:n=>e.getEmitScriptTarget(t.getCompilerOptions())>=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(e.assignHelper),r.createCallExpression(a("__assign"),void 0,n)),createAwaitHelper:n=>(t.requestEmitHelper(e.awaitHelper),r.createCallExpression(a("__await"),void 0,[n])),createAsyncGeneratorHelper:(n,i)=>(t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(n.emitNode||(n.emitNode={})).flags|=786432,r.createCallExpression(a("__asyncGenerator"),void 0,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])),createAsyncDelegatorHelper:n=>(t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(a("__asyncDelegator"),void 0,[n])),createAsyncValuesHelper:n=>(t.requestEmitHelper(e.asyncValues),r.createCallExpression(a("__asyncValues"),void 0,[n])),createRestHelper(n,i,o,s){t.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u<i.length-1;u++){var d=e.getPropertyNameOfBindingOrAssignmentElement(i[u]);if(d)if(e.isComputedPropertyName(d)){e.Debug.assertIsDefined(o,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var p=o[l];l++,c.push(r.createConditionalExpression(r.createTypeCheck(p,"symbol"),void 0,p,void 0,r.createAdd(p,r.createStringLiteral(""))))}else c.push(r.createStringLiteralFromNode(d))}return r.createCallExpression(a("__rest"),void 0,[n,e.setTextRange(r.createArrayLiteralExpression(c),s)])},createAwaiterHelper(n,i,o,s){t.requestEmitHelper(e.awaiterHelper);var c=r.createFunctionExpression(void 0,r.createToken(41),void 0,void 0,[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=786432,r.createCallExpression(a("__awaiter"),void 0,[n?r.createThis():r.createVoidZero(),i?r.createIdentifier("arguments"):r.createVoidZero(),o?e.createExpressionFromEntityName(r,o):r.createVoidZero(),c])},createExtendsHelper:n=>(t.requestEmitHelper(e.extendsHelper),r.createCallExpression(a("__extends"),void 0,[n,r.createUniqueName("_super",48)])),createTemplateObjectHelper:(n,i)=>(t.requestEmitHelper(e.templateObjectHelper),r.createCallExpression(a("__makeTemplateObject"),void 0,[n,i])),createSpreadArrayHelper:(o,s,c)=>(t.requestEmitHelper(e.spreadArrayHelper),r.createCallExpression(a("__spreadArray"),void 0,[o,s,c?n():i()])),createValuesHelper:n=>(t.requestEmitHelper(e.valuesHelper),r.createCallExpression(a("__values"),void 0,[n])),createReadHelper:(n,i)=>(t.requestEmitHelper(e.readHelper),r.createCallExpression(a("__read"),void 0,void 0!==i?[n,r.createNumericLiteral(i+"")]:[n])),createGeneratorHelper:n=>(t.requestEmitHelper(e.generatorHelper),r.createCallExpression(a("__generator"),void 0,[r.createThis(),n])),createCreateBindingHelper:(n,i,o)=>(t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(a("__createBinding"),void 0,Il([r.createIdentifier("exports"),n,i],o?[o]:[],!0))),createImportStarHelper:n=>(t.requestEmitHelper(e.importStarHelper),r.createCallExpression(a("__importStar"),void 0,[n])),createImportStarCallbackHelper:()=>(t.requestEmitHelper(e.importStarHelper),a("__importStar")),createImportDefaultHelper:n=>(t.requestEmitHelper(e.importDefaultHelper),r.createCallExpression(a("__importDefault"),void 0,[n])),createExportStarHelper:(n,i)=>(void 0===i&&(i=r.createIdentifier("exports")),t.requestEmitHelper(e.exportStarHelper),t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(a("__exportStar"),void 0,[n,i])),createClassPrivateFieldGetHelper(n,i,o,s){var c;return t.requestEmitHelper(e.classPrivateFieldGetHelper),c=s?[n,i,r.createStringLiteral(o),s]:[n,i,r.createStringLiteral(o)],r.createCallExpression(a("__classPrivateFieldGet"),void 0,c)},createClassPrivateFieldSetHelper(n,i,o,s,c){var l;return t.requestEmitHelper(e.classPrivateFieldSetHelper),l=c?[n,i,o,r.createStringLiteral(s),c]:[n,i,o,r.createStringLiteral(s)],r.createCallExpression(a("__classPrivateFieldSet"),void 0,l)},createClassPrivateFieldInHelper:(n,i)=>(t.requestEmitHelper(e.classPrivateFieldInHelper),r.createCallExpression(a("__classPrivateFieldIn"),void 0,[n,i]))};function a(t){return e.setEmitFlags(r.createIdentifier(t),4098)}},e.compareEmitHelpers=(t,r)=>t===r||t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority),e.helperString=t,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:"\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));"},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},e.getAllUnscopedEmitHelpers=()=>r||(r=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],(e=>e.name))),e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(Ml(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(Ml(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=(t,r)=>e.isCallExpression(t)&&e.isIdentifier(t.expression)&&0!=(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===r})(Fl),(e=>{e.isNumericLiteral=e=>8===e.kind,e.isBigIntLiteral=e=>9===e.kind,e.isStringLiteral=e=>10===e.kind,e.isJsxText=e=>11===e.kind,e.isRegularExpressionLiteral=e=>13===e.kind,e.isNoSubstitutionTemplateLiteral=e=>14===e.kind,e.isTemplateHead=e=>15===e.kind,e.isTemplateMiddle=e=>16===e.kind,e.isTemplateTail=e=>17===e.kind,e.isDotDotDotToken=e=>25===e.kind,e.isCommaToken=e=>27===e.kind,e.isPlusToken=e=>39===e.kind,e.isMinusToken=e=>40===e.kind,e.isAsteriskToken=e=>41===e.kind,e.isExclamationToken=e=>53===e.kind,e.isQuestionToken=e=>57===e.kind,e.isColonToken=e=>58===e.kind,e.isQuestionDotToken=e=>28===e.kind,e.isEqualsGreaterThanToken=e=>38===e.kind,e.isIdentifier=e=>79===e.kind,e.isPrivateIdentifier=e=>80===e.kind,e.isExportModifier=e=>93===e.kind,e.isAsyncModifier=e=>131===e.kind,e.isAssertsKeyword=e=>128===e.kind,e.isAwaitKeyword=e=>132===e.kind,e.isReadonlyKeyword=e=>144===e.kind,e.isStaticModifier=e=>124===e.kind,e.isAbstractModifier=e=>126===e.kind,e.isSuperKeyword=e=>106===e.kind,e.isImportKeyword=e=>100===e.kind,e.isQualifiedName=e=>160===e.kind,e.isComputedPropertyName=e=>161===e.kind,e.isTypeParameterDeclaration=e=>162===e.kind,e.isParameter=e=>163===e.kind,e.isDecorator=e=>164===e.kind,e.isPropertySignature=e=>165===e.kind,e.isPropertyDeclaration=e=>166===e.kind,e.isMethodSignature=e=>167===e.kind,e.isMethodDeclaration=e=>168===e.kind,e.isClassStaticBlockDeclaration=e=>169===e.kind,e.isConstructorDeclaration=e=>170===e.kind,e.isGetAccessorDeclaration=e=>171===e.kind,e.isSetAccessorDeclaration=e=>172===e.kind,e.isCallSignatureDeclaration=e=>173===e.kind,e.isConstructSignatureDeclaration=e=>174===e.kind,e.isIndexSignatureDeclaration=e=>175===e.kind,e.isTypePredicateNode=e=>176===e.kind,e.isTypeReferenceNode=e=>177===e.kind,e.isFunctionTypeNode=e=>178===e.kind,e.isConstructorTypeNode=e=>179===e.kind,e.isTypeQueryNode=e=>180===e.kind,e.isTypeLiteralNode=e=>181===e.kind,e.isArrayTypeNode=e=>182===e.kind,e.isTupleTypeNode=e=>183===e.kind,e.isNamedTupleMember=e=>196===e.kind,e.isOptionalTypeNode=e=>184===e.kind,e.isRestTypeNode=e=>185===e.kind,e.isUnionTypeNode=e=>186===e.kind,e.isIntersectionTypeNode=e=>187===e.kind,e.isConditionalTypeNode=e=>188===e.kind,e.isInferTypeNode=e=>189===e.kind,e.isParenthesizedTypeNode=e=>190===e.kind,e.isThisTypeNode=e=>191===e.kind,e.isTypeOperatorNode=e=>192===e.kind,e.isIndexedAccessTypeNode=e=>193===e.kind,e.isMappedTypeNode=e=>194===e.kind,e.isLiteralTypeNode=e=>195===e.kind,e.isImportTypeNode=e=>199===e.kind,e.isTemplateLiteralTypeSpan=e=>198===e.kind,e.isTemplateLiteralTypeNode=e=>197===e.kind,e.isObjectBindingPattern=e=>200===e.kind,e.isArrayBindingPattern=e=>201===e.kind,e.isBindingElement=e=>202===e.kind,e.isArrayLiteralExpression=e=>203===e.kind,e.isObjectLiteralExpression=e=>204===e.kind,e.isPropertyAccessExpression=e=>205===e.kind,e.isElementAccessExpression=e=>206===e.kind,e.isCallExpression=e=>207===e.kind,e.isNewExpression=e=>208===e.kind,e.isTaggedTemplateExpression=e=>209===e.kind,e.isTypeAssertionExpression=e=>210===e.kind,e.isParenthesizedExpression=e=>211===e.kind,e.isFunctionExpression=e=>212===e.kind,e.isArrowFunction=e=>213===e.kind,e.isDeleteExpression=e=>214===e.kind,e.isTypeOfExpression=e=>215===e.kind,e.isVoidExpression=e=>216===e.kind,e.isAwaitExpression=e=>217===e.kind,e.isPrefixUnaryExpression=e=>218===e.kind,e.isPostfixUnaryExpression=e=>219===e.kind,e.isBinaryExpression=e=>220===e.kind,e.isConditionalExpression=e=>221===e.kind,e.isTemplateExpression=e=>222===e.kind,e.isYieldExpression=e=>223===e.kind,e.isSpreadElement=e=>224===e.kind,e.isClassExpression=e=>225===e.kind,e.isOmittedExpression=e=>226===e.kind,e.isExpressionWithTypeArguments=e=>227===e.kind,e.isAsExpression=e=>228===e.kind,e.isNonNullExpression=e=>229===e.kind,e.isMetaProperty=e=>230===e.kind,e.isSyntheticExpression=e=>231===e.kind,e.isPartiallyEmittedExpression=e=>348===e.kind,e.isCommaListExpression=e=>349===e.kind,e.isTemplateSpan=e=>232===e.kind,e.isSemicolonClassElement=e=>233===e.kind,e.isBlock=e=>234===e.kind,e.isVariableStatement=e=>236===e.kind,e.isEmptyStatement=e=>235===e.kind,e.isExpressionStatement=e=>237===e.kind,e.isIfStatement=e=>238===e.kind,e.isDoStatement=e=>239===e.kind,e.isWhileStatement=e=>240===e.kind,e.isForStatement=e=>241===e.kind,e.isForInStatement=e=>242===e.kind,e.isForOfStatement=e=>243===e.kind,e.isContinueStatement=e=>244===e.kind,e.isBreakStatement=e=>245===e.kind,e.isReturnStatement=e=>246===e.kind,e.isWithStatement=e=>247===e.kind,e.isSwitchStatement=e=>248===e.kind,e.isLabeledStatement=e=>249===e.kind,e.isThrowStatement=e=>250===e.kind,e.isTryStatement=e=>251===e.kind,e.isDebuggerStatement=e=>252===e.kind,e.isVariableDeclaration=e=>253===e.kind,e.isVariableDeclarationList=e=>254===e.kind,e.isFunctionDeclaration=e=>255===e.kind,e.isClassDeclaration=e=>256===e.kind,e.isInterfaceDeclaration=e=>257===e.kind,e.isTypeAliasDeclaration=e=>258===e.kind,e.isEnumDeclaration=e=>259===e.kind,e.isModuleDeclaration=e=>260===e.kind,e.isModuleBlock=e=>261===e.kind,e.isCaseBlock=e=>262===e.kind,e.isNamespaceExportDeclaration=e=>263===e.kind,e.isImportEqualsDeclaration=e=>264===e.kind,e.isImportDeclaration=e=>265===e.kind,e.isImportClause=e=>266===e.kind,e.isAssertClause=e=>292===e.kind,e.isAssertEntry=e=>293===e.kind,e.isNamespaceImport=e=>267===e.kind,e.isNamespaceExport=e=>273===e.kind,e.isNamedImports=e=>268===e.kind,e.isImportSpecifier=e=>269===e.kind,e.isExportAssignment=e=>270===e.kind,e.isExportDeclaration=e=>271===e.kind,e.isNamedExports=e=>272===e.kind,e.isExportSpecifier=e=>274===e.kind,e.isMissingDeclaration=e=>275===e.kind,e.isNotEmittedStatement=e=>347===e.kind,e.isSyntheticReference=e=>352===e.kind,e.isMergeDeclarationMarker=e=>350===e.kind,e.isEndOfDeclarationMarker=e=>351===e.kind,e.isExternalModuleReference=e=>276===e.kind,e.isJsxElement=e=>277===e.kind,e.isJsxSelfClosingElement=e=>278===e.kind,e.isJsxOpeningElement=e=>279===e.kind,e.isJsxClosingElement=e=>280===e.kind,e.isJsxFragment=e=>281===e.kind,e.isJsxOpeningFragment=e=>282===e.kind,e.isJsxClosingFragment=e=>283===e.kind,e.isJsxAttribute=e=>284===e.kind,e.isJsxAttributes=e=>285===e.kind,e.isJsxSpreadAttribute=e=>286===e.kind,e.isJsxExpression=e=>287===e.kind,e.isCaseClause=e=>288===e.kind,e.isDefaultClause=e=>289===e.kind,e.isHeritageClause=e=>290===e.kind,e.isCatchClause=e=>291===e.kind,e.isPropertyAssignment=e=>294===e.kind,e.isShorthandPropertyAssignment=e=>295===e.kind,e.isSpreadAssignment=e=>296===e.kind,e.isEnumMember=e=>297===e.kind,e.isUnparsedPrepend=e=>299===e.kind,e.isSourceFile=e=>303===e.kind,e.isBundle=e=>304===e.kind,e.isUnparsedSource=e=>305===e.kind,e.isJSDocTypeExpression=e=>307===e.kind,e.isJSDocNameReference=e=>308===e.kind,e.isJSDocMemberName=e=>309===e.kind,e.isJSDocLink=e=>322===e.kind,e.isJSDocLinkCode=e=>323===e.kind,e.isJSDocLinkPlain=e=>324===e.kind,e.isJSDocAllType=e=>310===e.kind,e.isJSDocUnknownType=e=>311===e.kind,e.isJSDocNullableType=e=>312===e.kind,e.isJSDocNonNullableType=e=>313===e.kind,e.isJSDocOptionalType=e=>314===e.kind,e.isJSDocFunctionType=e=>315===e.kind,e.isJSDocVariadicType=e=>316===e.kind,e.isJSDocNamepathType=e=>317===e.kind,e.isJSDoc=e=>318===e.kind,e.isJSDocTypeLiteral=e=>320===e.kind,e.isJSDocSignature=e=>321===e.kind,e.isJSDocAugmentsTag=e=>326===e.kind,e.isJSDocAuthorTag=e=>328===e.kind,e.isJSDocClassTag=e=>330===e.kind,e.isJSDocCallbackTag=e=>336===e.kind,e.isJSDocPublicTag=e=>331===e.kind,e.isJSDocPrivateTag=e=>332===e.kind,e.isJSDocProtectedTag=e=>333===e.kind,e.isJSDocReadonlyTag=e=>334===e.kind,e.isJSDocOverrideTag=e=>335===e.kind,e.isJSDocDeprecatedTag=e=>329===e.kind,e.isJSDocSeeTag=e=>344===e.kind,e.isJSDocEnumTag=e=>337===e.kind,e.isJSDocParameterTag=e=>338===e.kind,e.isJSDocReturnTag=e=>339===e.kind,e.isJSDocThisTag=e=>340===e.kind,e.isJSDocTypeTag=e=>341===e.kind,e.isJSDocTemplateTag=e=>342===e.kind,e.isJSDocTypedefTag=e=>343===e.kind,e.isJSDocUnknownTag=e=>325===e.kind,e.isJSDocPropertyTag=e=>345===e.kind,e.isJSDocImplementsTag=e=>327===e.kind,e.isSyntaxList=e=>346===e.kind})(Fl),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isMemberName(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function n(t,i,a){if(e.isQualifiedName(i)){var o=n(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(i),a)}function i(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"createElement")}function a(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function o(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function s(t){return e.isParenthesizedExpression(t)&&e.isInJSFile(t)&&!!e.getJSDocTypeTag(t)}function c(e,t){switch(void 0===t&&(t=15),e.kind){case 211:return!(16&t&&s(e))&&0!=(1&t);case 210:case 228:return 0!=(2&t);case 229:return 0!=(4&t);case 348:return 0!=(8&t)}return!1}function l(e,t){for(void 0===t&&(t=15);c(e,t);)e=e.expression;return e}function u(t){return e.setStartsOnNewLine(t,!0)}function d(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function p(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=d(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||e.getESModuleInterop(n)&&a)&&s!==e.ModuleKind.System&&(s<e.ModuleKind.ES2015||r.impliedNodeFormat===e.ModuleKind.CommonJS);if(!c){var l=e.getEmitHelpers(r);if(l)for(var u=0,p=l;u<p.length;u++)if(!p[u].scoped){c=!0;break}}if(c){var _=e.getOriginalNode(r,e.isSourceFile),f=e.getOrCreateEmitNode(_);return f.externalHelpersModuleName||(f.externalHelpersModuleName=t.createUniqueName(e.externalHelpersModuleNameText))}}}function _(t,r,n,i){if(r)return r.moduleName?t.createStringLiteral(r.moduleName):!r.isDeclarationFile&&e.outFile(i)?t.createStringLiteral(e.getExternalModuleNameFromPath(n,r.fileName)):void 0}function f(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?f(t.left):e.isSpreadElement(t)?f(t.expression):t;switch(t.kind){case 294:return f(t.initializer);case 295:return t.name;case 296:return f(t.expression)}}function m(t){switch(t.kind){case 202:if(t.propertyName){var r=t.propertyName;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&g(r.expression)?r.expression:r}break;case 294:if(t.name)return r=t.name,e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&g(r.expression)?r.expression:r;break;case 296:return t.name&&e.isPrivateIdentifier(t.name)?e.Debug.failBadSyntaxKind(t.name):t.name}var n=f(t);if(n&&e.isPropertyName(n))return n}function g(e){var t=e.kind;return 10===t||8===t}var h;e.createEmptyExports=e=>e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0),e.createMemberAccessForPropertyName=t,e.createJsxFactoryExpression=i,e.createExpressionForJsxElement=(t,r,n,i,a,o)=>{var s=[n];if(i&&s.push(i),a&&a.length>0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,l=a;c<l.length;c++){var d=l[c];u(d),s.push(d)}else s.push(a[0]);return e.setTextRange(t.createCallExpression(r,void 0,s),o)},e.createExpressionForJsxFragment=(t,a,o,s,c,l,d)=>{var p=[((e,t,i,a)=>t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"Fragment"))(t,o,s,l),t.createNull()];if(c&&c.length>0)if(c.length>1)for(var _=0,f=c;_<f.length;_++){var m=f[_];u(m),p.push(m)}else p.push(c[0]);return e.setTextRange(t.createCallExpression(i(t,a,s,l),void 0,p),d)},e.createForOfBindingStatement=(t,r,n)=>{if(e.isVariableDeclarationList(r)){var i=e.first(r.declarations),a=t.updateVariableDeclaration(i,i.name,void 0,void 0,n);return e.setTextRange(t.createVariableStatement(void 0,t.updateVariableDeclarationList(r,[a])),r)}var o=e.setTextRange(t.createAssignment(r,n),r);return e.setTextRange(t.createExpressionStatement(o),r)},e.insertLeadingStatement=(t,r,n)=>e.isBlock(r)?t.updateBlock(r,e.setTextRange(t.createNodeArray(Il([n],r.statements,!0)),r.statements)):t.createBlock(t.createNodeArray([r,n]),!0),e.createExpressionFromEntityName=function t(r,n){if(e.isQualifiedName(n)){var i=t(r,n.left),a=e.setParent(e.setTextRange(r.cloneNode(n.right),n.right),n.right.parent);return e.setTextRange(r.createPropertyAccessExpression(i,a),n)}return e.setParent(e.setTextRange(r.cloneNode(n),n),n.parent)},e.createExpressionForPropertyName=a,e.createExpressionForObjectLiteralElementLike=(r,n,i,o)=>{switch(i.name&&e.isPrivateIdentifier(i.name)&&e.Debug.failBadSyntaxKind(i.name,"Private identifiers are not allowed in object literals."),i.kind){case 171:case 172:return((t,r,n,i,o)=>{var s=e.getAllAccessorDeclarations(r,n),c=s.firstAccessor,l=s.getAccessor,u=s.setAccessor;if(n===c)return e.setTextRange(t.createObjectDefinePropertyCall(i,a(t,n.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:l&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),c)})(r,n.properties,i,o,!!n.multiLine);case 294:return((r,n,i)=>e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),n.initializer),n),n))(r,i,o);case 295:return((r,n,i)=>e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),r.cloneNode(n.name)),n),n))(r,i,o);case 168:return((r,n,i)=>e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),e.setOriginalNode(e.setTextRange(r.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n))(r,i,o)}},e.expandPreOrPostfixIncrementOrDecrementExpression=(t,r,n,i,a)=>{var o=r.operator;e.Debug.assert(45===o||46===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var s=t.createTempVariable(i);n=t.createAssignment(s,n),e.setTextRange(n,r.operand);var c=e.isPrefixUnaryExpression(r)?t.createPrefixUnaryExpression(o,s):t.createPostfixUnaryExpression(s,o);return e.setTextRange(c,r),a&&(c=t.createAssignment(a,c),e.setTextRange(c,r)),n=t.createComma(n,c),e.setTextRange(n,r),e.isPostfixUnaryExpression(r)&&(n=t.createComma(n,s),e.setTextRange(n,r)),n},e.isInternalName=t=>0!=(32768&e.getEmitFlags(t)),e.isLocalName=t=>0!=(16384&e.getEmitFlags(t)),e.isExportName=t=>0!=(8192&e.getEmitFlags(t)),e.findUseStrictPrologue=t=>{for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))break;if(o(i))return i}},e.startsWithUseStrict=t=>{var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&o(r)},e.isCommaSequence=e=>220===e.kind&&27===e.operatorToken.kind||349===e.kind,e.isJSDocTypeAssertion=s,e.getJSDocTypeAssertionType=t=>{var r=e.getJSDocType(t);return e.Debug.assertIsDefined(r),r},e.isOuterExpression=c,e.skipOuterExpressions=l,e.skipAssertions=e=>l(e,6),e.startOnNewLine=u,e.getExternalHelpersModuleName=d,e.hasRecordedExternalHelpers=t=>{var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)},e.createExternalHelpersImportDeclarationIfNeeded=(t,r,n,i,a,o,s)=>{if(i.importHelpers&&e.isEffectiveExternalModule(n,i)){var c=void 0,l=e.getEmitModuleKind(i);if(l>=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext||n.impliedNodeFormat===e.ModuleKind.ESNext){var u=e.getEmitHelpers(n);if(u){for(var d=[],_=0,f=u;_<f.length;_++){var m=f[_];if(!m.scoped){var g=m.importName;g&&e.pushIfUnique(d,g)}}if(e.some(d)){d.sort(e.compareStringsCaseSensitive),c=t.createNamedImports(e.map(d,(i=>e.isFileLevelUniqueName(n,i)?t.createImportSpecifier(!1,void 0,t.createIdentifier(i)):t.createImportSpecifier(!1,t.createIdentifier(i),r.getUnscopedHelperName(i)))));var h=e.getOriginalNode(n,e.isSourceFile);e.getOrCreateEmitNode(h).externalHelpers=!0}}}else{var y=p(t,n,i,a,o||s);y&&(c=t.createNamespaceImport(y))}if(c){var v=t.createImportDeclaration(void 0,void 0,t.createImportClause(!1,void 0,c),t.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(v,67108864),v}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=p,e.getLocalNameForExternalImport=(t,r,n)=>{var i=e.getNamespaceDeclarationNode(r);if(i&&!e.isDefaultImport(r)&&!e.isExportNamespaceAsDefaultDeclaration(r)){var a=i.name;return e.isGeneratedIdentifier(a)?a:t.createIdentifier(e.getSourceTextOfNodeFromSourceFile(n,a)||e.idText(a))}return 265===r.kind&&r.importClause||271===r.kind&&r.moduleSpecifier?t.getGeneratedNameForNode(r):void 0},e.getExternalModuleNameLiteral=(t,r,n,i,a,o)=>{var s=e.getExternalModuleName(r);if(s&&e.isStringLiteral(s))return((e,t,r,n,i)=>_(r,n.getExternalModuleFileFromDeclaration(e),t,i))(r,i,t,a,o)||((e,t,r)=>{var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n?e.createStringLiteral(n):void 0})(t,s,n)||t.cloneNode(s)},e.tryGetModuleNameFromFile=_,e.getInitializerOfBindingOrAssignmentElement=function t(r){if(e.isDeclarationBindingElement(r))return r.initializer;if(e.isPropertyAssignment(r)){var n=r.initializer;return e.isAssignmentExpression(n,!0)?n.right:void 0}return e.isShorthandPropertyAssignment(r)?r.objectAssignmentInitializer:e.isAssignmentExpression(r,!0)?r.right:e.isSpreadElement(r)?t(r.expression):void 0},e.getTargetOfBindingOrAssignmentElement=f,e.getRestIndicatorOfBindingOrAssignmentElement=e=>{switch(e.kind){case 163:case 202:return e.dotDotDotToken;case 224:case 296:return e}},e.getPropertyNameOfBindingOrAssignmentElement=t=>{var r=m(t);return e.Debug.assert(!!r||e.isSpreadAssignment(t),"Invalid property name for binding element."),r},e.tryGetPropertyNameOfBindingOrAssignmentElement=m,e.getElementsOfBindingOrAssignmentPattern=e=>{switch(e.kind){case 200:case 201:case 203:return e.elements;case 204:return e.properties}},e.getJSDocTypeAliasName=t=>{if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}},e.canHaveModifiers=e=>{var t=e.kind;return 163===t||165===t||166===t||167===t||168===t||170===t||171===t||172===t||175===t||212===t||213===t||225===t||236===t||255===t||256===t||257===t||258===t||259===t||260===t||264===t||265===t||270===t||271===t},e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral),e.isLiteralTypeLikeExpression=t=>{var r=t.kind;return 104===r||110===r||95===r||e.isLiteralExpression(t)||e.isPrefixUnaryExpression(t)},e.isBinaryOperatorToken=t=>{return(t=>60===t||(e=>(e=>55===e||56===e)(e)||(e=>(e=>50===e||51===e||52===e)(e)||(e=>(e=>34===e||36===e||35===e||37===e)(e)||(e=>(e=>29===e||32===e||31===e||33===e||102===e||101===e)(e)||(e=>(e=>47===e||48===e||49===e)(e)||(e=>(e=>39===e||40===e)(e)||(e=>(e=>42===e)(e)||(e=>41===e||43===e||44===e)(e))(e))(e))(e))(e))(e))(e))(t)||e.isAssignmentOperator(t))(r=t.kind)||27===r;var r},(t=>{function r(t,n,i,a,o,s,l){var u=n>0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],u,l),i[n]=c(t,r),n}function n(t,r,i,a,o,s,d){e.Debug.assertEqual(i[r],n),e.Debug.assertIsDefined(t.onLeft),i[r]=c(t,n);var p=t.onLeft(a[r].left,o[r],a[r]);return p?(u(r,a,p),l(r,i,a,o,p)):r}function i(t,r,n,a,o,s,l){return e.Debug.assertEqual(n[r],i),e.Debug.assertIsDefined(t.onOperator),n[r]=c(t,i),t.onOperator(a[r].operatorToken,o[r],a[r]),r}function a(t,r,n,i,o,s,d){e.Debug.assertEqual(n[r],a),e.Debug.assertIsDefined(t.onRight),n[r]=c(t,a);var p=t.onRight(i[r].right,o[r],i[r]);return p?(u(r,i,p),l(r,n,i,o,p)):r}function o(t,r,n,i,a,s,l){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var u=t.onExit(i[r],a[r]);if(r>0){if(r--,t.foldState){var d=n[r]===o?"right":"left";a[r]=t.foldState(a[r],u,d)}}else s.value=u;return r}function s(t,r,n,i,a,o,c){return e.Debug.assertEqual(n[r],s),r}function c(t,c){switch(c){case r:if(t.onLeft)return n;case n:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function u(t,r,n){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(r[t]!==n,"Circular traversal detected."),t--}t.enter=r,t.left=n,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c})(h||(h={}));var y=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};e.createBinaryExpressionTrampoline=(t,r,n,i,a,o)=>{var s=new y(t,r,n,i,a,o);return(t,r)=>{for(var n={value:void 0},i=[h.enter],a=[t],o=[void 0],c=0;i[c]!==h.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}}}(Fl),(e=>{e.setTextRange=(t,r)=>r?e.setTextRangePosEnd(t,r.pos,r.end):t})(Fl),(e=>{var t,r,n,i,a,o,s,c,l;function u(e,t){return t&&e(t)}function d(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;n<i.length;n++){var a=e(i[n]);if(a)return a}}}function p(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function _(t,r,n){if(t&&!(t.kind<=159))switch(t.kind){case 160:return u(r,t.left)||u(r,t.right);case 162:return u(r,t.name)||u(r,t.constraint)||u(r,t.default)||u(r,t.expression);case 295:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.exclamationToken)||u(r,t.equalsToken)||u(r,t.objectAssignmentInitializer);case 296:return u(r,t.expression);case 163:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.dotDotDotToken)||u(r,t.name)||u(r,t.questionToken)||u(r,t.type)||u(r,t.initializer);case 166:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.exclamationToken)||u(r,t.type)||u(r,t.initializer);case 165:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.type)||u(r,t.initializer);case 294:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.questionToken)||u(r,t.initializer);case 253:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.exclamationToken)||u(r,t.type)||u(r,t.initializer);case 202:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.dotDotDotToken)||u(r,t.propertyName)||u(r,t.name)||u(r,t.initializer);case 178:case 179:case 173:case 174:case 175:return d(r,n,t.decorators)||d(r,n,t.modifiers)||d(r,n,t.typeParameters)||d(r,n,t.parameters)||u(r,t.type);case 168:case 167:case 170:case 171:case 172:case 212:case 255:case 213:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.asteriskToken)||u(r,t.name)||u(r,t.questionToken)||u(r,t.exclamationToken)||d(r,n,t.typeParameters)||d(r,n,t.parameters)||u(r,t.type)||u(r,t.equalsGreaterThanToken)||u(r,t.body);case 169:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.body);case 177:return u(r,t.typeName)||d(r,n,t.typeArguments);case 176:return u(r,t.assertsModifier)||u(r,t.parameterName)||u(r,t.type);case 180:return u(r,t.exprName);case 181:return d(r,n,t.members);case 182:return u(r,t.elementType);case 183:return d(r,n,t.elements);case 186:case 187:return d(r,n,t.types);case 188:return u(r,t.checkType)||u(r,t.extendsType)||u(r,t.trueType)||u(r,t.falseType);case 189:return u(r,t.typeParameter);case 199:return u(r,t.argument)||u(r,t.qualifier)||d(r,n,t.typeArguments);case 190:case 192:return u(r,t.type);case 193:return u(r,t.objectType)||u(r,t.indexType);case 194:return u(r,t.readonlyToken)||u(r,t.typeParameter)||u(r,t.nameType)||u(r,t.questionToken)||u(r,t.type)||d(r,n,t.members);case 195:return u(r,t.literal);case 196:return u(r,t.dotDotDotToken)||u(r,t.name)||u(r,t.questionToken)||u(r,t.type);case 200:case 201:case 203:return d(r,n,t.elements);case 204:return d(r,n,t.properties);case 205:return u(r,t.expression)||u(r,t.questionDotToken)||u(r,t.name);case 206:return u(r,t.expression)||u(r,t.questionDotToken)||u(r,t.argumentExpression);case 207:case 208:return u(r,t.expression)||u(r,t.questionDotToken)||d(r,n,t.typeArguments)||d(r,n,t.arguments);case 209:return u(r,t.tag)||u(r,t.questionDotToken)||d(r,n,t.typeArguments)||u(r,t.template);case 210:return u(r,t.type)||u(r,t.expression);case 211:case 214:case 215:case 216:return u(r,t.expression);case 218:return u(r,t.operand);case 223:return u(r,t.asteriskToken)||u(r,t.expression);case 217:return u(r,t.expression);case 219:return u(r,t.operand);case 220:return u(r,t.left)||u(r,t.operatorToken)||u(r,t.right);case 228:return u(r,t.expression)||u(r,t.type);case 229:return u(r,t.expression);case 230:return u(r,t.name);case 221:return u(r,t.condition)||u(r,t.questionToken)||u(r,t.whenTrue)||u(r,t.colonToken)||u(r,t.whenFalse);case 224:return u(r,t.expression);case 234:case 261:return d(r,n,t.statements);case 303:return d(r,n,t.statements)||u(r,t.endOfFileToken);case 236:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.declarationList);case 254:return d(r,n,t.declarations);case 237:return u(r,t.expression);case 238:return u(r,t.expression)||u(r,t.thenStatement)||u(r,t.elseStatement);case 239:return u(r,t.statement)||u(r,t.expression);case 240:return u(r,t.expression)||u(r,t.statement);case 241:return u(r,t.initializer)||u(r,t.condition)||u(r,t.incrementor)||u(r,t.statement);case 242:return u(r,t.initializer)||u(r,t.expression)||u(r,t.statement);case 243:return u(r,t.awaitModifier)||u(r,t.initializer)||u(r,t.expression)||u(r,t.statement);case 244:case 245:return u(r,t.label);case 246:return u(r,t.expression);case 247:return u(r,t.expression)||u(r,t.statement);case 248:return u(r,t.expression)||u(r,t.caseBlock);case 262:return d(r,n,t.clauses);case 288:return u(r,t.expression)||d(r,n,t.statements);case 289:return d(r,n,t.statements);case 249:return u(r,t.label)||u(r,t.statement);case 250:return u(r,t.expression);case 251:return u(r,t.tryBlock)||u(r,t.catchClause)||u(r,t.finallyBlock);case 291:return u(r,t.variableDeclaration)||u(r,t.block);case 164:return u(r,t.expression);case 256:case 225:case 257:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||d(r,n,t.typeParameters)||d(r,n,t.heritageClauses)||d(r,n,t.members);case 258:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||d(r,n,t.typeParameters)||u(r,t.type);case 259:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||d(r,n,t.members);case 297:return u(r,t.name)||u(r,t.initializer);case 260:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.body);case 264:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.name)||u(r,t.moduleReference);case 265:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.importClause)||u(r,t.moduleSpecifier)||u(r,t.assertClause);case 266:return u(r,t.name)||u(r,t.namedBindings);case 292:return d(r,n,t.elements);case 293:return u(r,t.name)||u(r,t.value);case 263:case 267:case 273:return u(r,t.name);case 268:case 272:return d(r,n,t.elements);case 271:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.exportClause)||u(r,t.moduleSpecifier)||u(r,t.assertClause);case 269:case 274:return u(r,t.propertyName)||u(r,t.name);case 270:return d(r,n,t.decorators)||d(r,n,t.modifiers)||u(r,t.expression);case 222:return u(r,t.head)||d(r,n,t.templateSpans);case 232:return u(r,t.expression)||u(r,t.literal);case 197:return u(r,t.head)||d(r,n,t.templateSpans);case 198:return u(r,t.type)||u(r,t.literal);case 161:return u(r,t.expression);case 290:return d(r,n,t.types);case 227:return u(r,t.expression)||d(r,n,t.typeArguments);case 276:return u(r,t.expression);case 275:return d(r,n,t.decorators);case 349:return d(r,n,t.elements);case 277:return u(r,t.openingElement)||d(r,n,t.children)||u(r,t.closingElement);case 281:return u(r,t.openingFragment)||d(r,n,t.children)||u(r,t.closingFragment);case 278:case 279:return u(r,t.tagName)||d(r,n,t.typeArguments)||u(r,t.attributes);case 285:return d(r,n,t.properties);case 284:return u(r,t.name)||u(r,t.initializer);case 286:return u(r,t.expression);case 287:return u(r,t.dotDotDotToken)||u(r,t.expression);case 280:return u(r,t.tagName);case 184:case 185:case 307:case 313:case 312:case 314:case 316:return u(r,t.type);case 315:return d(r,n,t.parameters)||u(r,t.type);case 318:return("string"==typeof t.comment?void 0:d(r,n,t.comment))||d(r,n,t.tags);case 344:return u(r,t.tagName)||u(r,t.name)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 308:return u(r,t.name);case 309:return u(r,t.left)||u(r,t.right);case 338:case 345:return u(r,t.tagName)||(t.isNameFirst?u(r,t.name)||u(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment)):u(r,t.typeExpression)||u(r,t.name)||("string"==typeof t.comment?void 0:d(r,n,t.comment)));case 328:return u(r,t.tagName)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 327:case 326:return u(r,t.tagName)||u(r,t.class)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 342:return u(r,t.tagName)||u(r,t.constraint)||d(r,n,t.typeParameters)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 343:return u(r,t.tagName)||(t.typeExpression&&307===t.typeExpression.kind?u(r,t.typeExpression)||u(r,t.fullName)||("string"==typeof t.comment?void 0:d(r,n,t.comment)):u(r,t.fullName)||u(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment)));case 336:return u(r,t.tagName)||u(r,t.fullName)||u(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 339:case 341:case 340:case 337:return u(r,t.tagName)||u(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 321:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||u(r,t.type);case 322:case 323:case 324:return u(r,t.name);case 320:return e.forEach(t.jsDocPropertyTags,r);case 325:case 330:case 331:case 332:case 333:case 334:case 329:return u(r,t.tagName)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 348:return u(r,t.expression)}}function f(e){var t=[];return _(e,r,r),t;function r(e){t.unshift(e)}}function m(e){return void 0!==e.externalModuleIndicator}function g(t){return e.fileExtensionIsOneOf(t,[".d.ts",".d.mts",".d.cts"])}function h(t,r){for(var n=[],i=0,a=e.getLeadingCommentRanges(r,0)||e.emptyArray;i<a.length;i++){var o=a[i];S(n,o,r.substring(o.pos,o.end))}t.pragmas=new e.Map;for(var s=0,c=n;s<c.length;s++){var l=c[s];if(t.pragmas.has(l.name)){var u=t.pragmas.get(l.name);u instanceof Array?u.push(l.args):t.pragmas.set(l.name,[u,l.args])}else t.pragmas.set(l.name,l.args)}}function y(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach(((n,i)=>{switch(i){case"reference":var a=t.referencedFiles,o=t.typeReferenceDirectives,s=t.libReferenceDirectives;e.forEach(e.toArray(n),(n=>{var i=n.arguments,c=i.types,l=i.lib,u=i.path;n.arguments["no-default-lib"]?t.hasNoDefaultLib=!0:c?o.push({pos:c.pos,end:c.end,fileName:c.value}):l?s.push({pos:l.pos,end:l.end,fileName:l.value}):u?a.push({pos:u.pos,end:u.end,fileName:u.value}):r(n.range.pos,n.range.end-n.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)}));break;case"amd-dependency":t.amdDependencies=e.map(e.toArray(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(var c=0,l=n;c<l.length;c++){var u=l[c];t.moduleName&&r(u.range.pos,u.range.end-u.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=u.arguments.name}else t.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(n),(e=>{(!t.checkJsDirective||e.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}!(e=>{e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"})(t||(t={})),(e=>{e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"})(r||(r={})),e.parseBaseNodeFactory={createBaseSourceFileNode:t=>new(s||(s=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(a||(a=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(o||(o=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(i||(i=e.objectAllocator.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(n||(n=e.objectAllocator.getNodeConstructor()))(t,-1,-1)},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=p,e.forEachChild=_,e.forEachChildRecursively=(t,r,n)=>{for(var i=f(t),a=[];a.length<i.length;)a.push(t);for(;0!==i.length;){var o=i.pop(),s=a.pop();if(e.isArray(o)){if(n&&(l=n(o,s))){if("skip"===l)continue;return l}for(var c=o.length-1;c>=0;--c)i.push(o[c]),a.push(s)}else{var l;if(l=r(o,s)){if("skip"===l)continue;return l}if(o.kind>=160)for(var u=0,d=f(o);u<d.length;u++){var p=d[u];i.push(p),a.push(o)}}}},e.createSourceFile=(t,r,n,i,a)=>{var o;return void 0===i&&(i=!1),null===e.tracing||void 0===e.tracing||e.tracing.push("parse","createSourceFile",{path:t},!0),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t),o=100===n?c.parseSourceFile(t,r,n,void 0,i,6):c.parseSourceFile(t,r,n,void 0,i,a),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o},e.parseIsolatedEntityName=(e,t)=>c.parseIsolatedEntityName(e,t),e.parseJsonText=(e,t)=>c.parseJsonText(e,t),e.isExternalModule=m,e.updateSourceFile=(e,t,r,n)=>{void 0===n&&(n=!1);var i=l.updateSourceFile(e,t,r,n);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=(e,t,r)=>{var n=c.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&c.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=(e,t,r)=>c.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r),(t=>{var r,n,i,a,o,s=e.createScanner(99,!0);function c(e){return k++,e}var u,d,f,v,b,x,E,S,D,C,k,A,N,w,F,P,I,O={createBaseSourceFileNode:e=>c(new o(e,0,0)),createBaseIdentifierNode:e=>c(new i(e,0,0)),createBasePrivateIdentifierNode:e=>c(new a(e,0,0)),createBaseTokenNode:e=>c(new n(e,0,0)),createBaseNode:e=>c(new r(e,0,0))},M=e.createNodeFactory(11,O),R=!0,L=!1;function B(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),j(t,r,n,i,6),d=I,he();var o,s,c=pe();if(1===fe())o=He([],c,c),s=Ve();else{for(var l=void 0;1!==fe();){var u=void 0;switch(fe()){case 22:u=Sn();break;case 110:case 95:case 104:u=Ve();break;case 40:u=Ce((()=>8===he()&&58!==he()))?Yr():Tn();break;case 8:case 10:if(Ce((()=>58!==he()))){u=Ot();break}default:u=Tn()}l&&e.isArray(l)?l.push(u):l?l=[l,u]:(l=u,1!==fe()&&se(e.Diagnostics.Unexpected_token))}var p=e.isArray(l)?Je(M.createArrayLiteralExpression(l),c):e.Debug.checkDefined(l),_=M.createExpressionStatement(p);Je(_,c),o=He([_],c),s=Ue(1,e.Diagnostics.Unexpected_token)}var f=J(t,2,6,!1,o,s,d);a&&H(f),f.nodeCount=k,f.identifierCount=w,f.identifiers=A,f.parseDiagnostics=e.attachFileToDiagnostics(E,f),S&&(f.jsDocDiagnostics=e.attachFileToDiagnostics(S,f));var m=f;return U(),m}function j(t,c,l,p,_){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),u=e.normalizePath(t),f=c,v=l,D=p,b=_,x=e.getLanguageVariant(_),E=[],F=0,A=new e.Map,N=new e.Map,w=0,k=0,d=0,R=!0,b){case 1:case 2:I=131072;break;case 6:I=33685504;break;default:I=0}L=!1,s.setText(f),s.setOnError(de),s.setScriptTarget(v),s.setLanguageVariant(x)}function U(){s.clearCommentDirectives(),s.setText(""),s.setOnError(void 0),f=void 0,v=void 0,D=void 0,b=void 0,x=void 0,d=0,E=void 0,S=void 0,F=0,A=void 0,P=void 0,R=!0}function V(t,r,n){var i=g(u);i&&(I|=8388608),d=I,he();var a=yt(0,Un);e.Debug.assert(1===fe());var o=W(Ve()),c=J(u,t,n,i,a,o,d);return h(c,f),y(c,((t,r,n)=>{E.push(e.createDetachedDiagnostic(u,t,r,n))})),c.commentDirectives=s.getCommentDirectives(),c.nodeCount=k,c.identifierCount=w,c.identifiers=A,c.parseDiagnostics=e.attachFileToDiagnostics(E,c),S&&(c.jsDocDiagnostics=e.attachFileToDiagnostics(S,c)),r&&H(c),c}function z(e,t){return t?W(e):e}t.parseSourceFile=(t,r,n,i,a,o)=>{var s;if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var c=B(t,r,n,i,a);return e.convertToObjectWorker(c,null===(s=c.statements[0])||void 0===s?void 0:s.expression,c.parseDiagnostics,!1,void 0,void 0),c.referencedFiles=e.emptyArray,c.typeReferenceDirectives=e.emptyArray,c.libReferenceDirectives=e.emptyArray,c.amdDependencies=e.emptyArray,c.hasNoDefaultLib=!1,c.pragmas=e.emptyMap,c}j(t,r,n,i,o);var l=V(n,a,o);return U(),l},t.parseIsolatedEntityName=(e,t)=>{j("",e,t,void 0,1),he();var r=kt(!0),n=1===fe()&&!E.length;return U(),n?r:void 0},t.parseJsonText=B;var K=!1;function W(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,f),(e=>Ie.parseJSDocComment(t,e.pos,e.end-e.pos)));return r.length&&(t.jsDoc=r),K&&(K=!1,t.flags|=134217728),t}function H(t){e.setParentRecursive(t,!0)}function J(t,r,n,i,a,o,c){var u=M.createSourceFile(a,o,c);return e.setTextRangePosWidth(u,0,f.length),(t=>{t.externalModuleIndicator=e.forEach(t.statements,Oi)||(e=>2097152&e.flags?Mi(e):void 0)(t)})(u),!i&&m(u)&&16777216&u.transformFlags&&(u=(t=>{var r=D,n=l.createSyntaxCursor(t);D={currentNode(e){var t=n.currentNode(e);return R&&t&&_(t)&&(t.intersectsChange=!0),t}};var i=[],a=E;E=[];for(var o=0,c=f(t.statements,0),u=()=>{var r=t.statements[o],n=t.statements[c];e.addRange(i,t.statements,o,c),o=m(t.statements,c);var l=e.findIndex(a,(e=>e.start>=r.pos)),u=l>=0?e.findIndex(a,(e=>e.start>=n.pos),l):-1;l>=0&&e.addRange(E,a,l,u>=0?u:void 0),Te((()=>{var e=I;for(I|=32768,s.setTextPos(n.pos),he();1!==fe();){var r=s.getStartPos(),a=vt(0,Un);if(i.push(a),r===s.getStartPos()&&he(),o>=0){var c=t.statements[o];if(a.end===c.pos)break;a.end>c.pos&&(o=m(t.statements,o+1))}}I=e}),2),c=o>=0?f(t.statements,o):-1};-1!==c;)u();if(o>=0){var d=t.statements[o];e.addRange(i,t.statements,o);var p=e.findIndex(a,(e=>e.start>=d.pos));p>=0&&e.addRange(E,a,p)}return D=r,M.updateSourceFile(t,e.setTextRange(M.createNodeArray(i),t.statements));function _(e){return!(32768&e.flags||!(16777216&e.transformFlags))}function f(e,t){for(var r=t;r<e.length;r++)if(_(e[r]))return r;return-1}function m(e,t){for(var r=t;r<e.length;r++)if(!_(e[r]))return r;return-1}})(u)),u.text=f,u.bindDiagnostics=[],u.bindSuggestionDiagnostics=void 0,u.languageVersion=r,u.fileName=t,u.languageVariant=e.getLanguageVariant(n),u.isDeclarationFile=i,u.scriptKind=n,u}function $(e,t){e?I|=t:I&=~t}function G(e){$(e,4096)}function q(e){$(e,8192)}function X(e){$(e,16384)}function Y(e){$(e,32768)}function Q(e,t){var r=e&I;if(r){$(!1,r);var n=t();return $(!0,r),n}return t()}function Z(e,t){var r=e&~I;if(r){$(!0,r);var n=t();return $(!1,r),n}return t()}function ee(e){return Q(4096,e)}function te(e){return Z(32768,e)}function re(e){return 0!=(I&e)}function ne(){return re(8192)}function ie(){return re(4096)}function ae(){return re(16384)}function oe(){return re(32768)}function se(e,t){le(s.getTokenPos(),s.getTextPos(),e,t)}function ce(t,r,n,i){var a=e.lastOrUndefined(E);a&&t===a.start||E.push(e.createDetachedDiagnostic(u,t,r,n,i)),L=!0}function le(e,t,r,n){ce(e,t-e,r,n)}function ue(e,t,r){le(e.pos,e.end,t,r)}function de(e,t){ce(s.getTextPos(),t,e)}function pe(){return s.getStartPos()}function _e(){return s.hasPrecedingJSDocComment()}function fe(){return C}function me(){return C=s.scan()}function ge(e){return he(),e()}function he(){return e.isKeyword(C)&&(s.hasUnicodeEscape()||s.hasExtendedUnicodeEscape())&&le(s.getTokenPos(),s.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),me()}function ye(){return C=s.scanJsDocToken()}function ve(){return C=s.reScanGreaterToken()}function be(){return C=s.reScanTemplateHeadOrNoSubstitutionTemplate()}function xe(){return C=s.reScanLessThanToken()}function Ee(){return C=s.reScanHashToken()}function Se(){return C=s.scanJsxIdentifier()}function De(){return C=s.scanJsxToken()}function Te(t,r){var n=C,i=E.length,a=L,o=I,c=0!==r?s.lookAhead(t):s.tryScan(t);return e.Debug.assert(o===I),c&&0===r||(C=n,2!==r&&(E.length=i),L=a),c}function Ce(e){return Te(e,1)}function ke(e){return Te(e,0)}function Ae(){return 79===fe()||fe()>116}function Ne(){return 79===fe()||(125!==fe()||!ne())&&(132!==fe()||!oe())&&fe()>116}function we(t,r,n){return void 0===n&&(n=!0),fe()===t?(n&&he(),!0):(r?se(r):se(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=H;var Fe,Pe,Ie,Oe=Object.keys(e.textToKeywordObj).filter((e=>e.length>2));function Me(t){var r;if(e.isTaggedTemplateExpression(t))le(e.skipTrivia(f,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var n=e.isIdentifier(t)?e.idText(t):void 0;if(n&&e.isIdentifierText(n,v)){var i=e.skipTrivia(f,t.pos);switch(n){case"const":case"let":case"var":return void le(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Re(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void le(i,s.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Re(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Re(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(r=e.getSpellingSuggestion(n,Oe,(e=>e)))&&void 0!==r?r:(t=>{for(var r=0,n=Oe;r<n.length;r++){var i=n[r];if(t.length>i.length+2&&e.startsWith(t,i))return"".concat(i," ").concat(t.slice(i.length))}})(n);a?le(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==fe()&&le(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else se(e.Diagnostics._0_expected,e.tokenToString(26))}}function Re(e,t,r){fe()===r?se(t):se(e,s.getTokenValue())}function Le(t){return fe()===t?(ye(),!0):(se(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Be(e){return fe()===e&&(he(),!0)}function je(e){if(fe()===e)return Ve()}function Ue(t,r,n){return je(t)||$e(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function Ve(){var e=pe(),t=fe();return he(),Je(M.createToken(t),e)}function ze(){return 26===fe()||19===fe()||1===fe()||s.hasPrecedingLineBreak()}function Ke(){return!!ze()&&(26===fe()&&he(),!0)}function We(){return Ke()||we(26)}function He(t,r,n,i){var a=M.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:s.getStartPos()),a}function Je(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:s.getStartPos()),I&&(t.flags|=I),L&&(L=!1,t.flags|=65536),t}function $e(t,r,n,i){r?ce(s.getStartPos(),0,n,i):n&&se(n,i);var a=pe();return Je(79===t?M.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?M.createTemplateLiteralLikeNode(t,"","",void 0):8===t?M.createNumericLiteral("",void 0):10===t?M.createStringLiteral("",void 0):275===t?M.createMissingDeclaration():M.createToken(t),a)}function Ge(e){var t=A.get(e);return void 0===t&&A.set(e,t=e),t}function qe(t,r,n){if(t){w++;var i=pe(),a=fe(),o=Ge(s.getTokenValue());return me(),Je(M.createIdentifier(o,void 0,a),i)}if(80===fe())return se(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),qe(!0);if(0===fe()&&s.tryScan((()=>79===s.reScanInvalidIdentifier())))return qe(!0);w++;var c=1===fe(),l=s.isReservedWord(),u=s.getTokenText(),d=l?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return $e(79,c,r||d,u)}function Xe(e){return qe(Ae(),void 0,e)}function Ye(e,t){return qe(Ne(),e,t)}function Qe(t){return qe(e.tokenIsIdentifierOrKeyword(fe()),t)}function Ze(){return e.tokenIsIdentifierOrKeyword(fe())||10===fe()||8===fe()}function et(){return(e=>{if(10===fe()||8===fe()){var t=Ot();return t.text=Ge(t.text),t}return 1,22===fe()?(()=>{var e=pe();we(22);var t=ee(Br);return we(23),Je(M.createComputedPropertyName(t),e)})():80===fe()?tt():Qe()})()}function tt(){var e,t,r=pe(),n=M.createPrivateIdentifier((e=s.getTokenText(),void 0===(t=N.get(e))&&N.set(e,t=e),t));return he(),Je(n,r)}function rt(e){return fe()===e&&ke(it)}function nt(){return he(),!s.hasPrecedingLineBreak()&&st()}function it(){switch(fe()){case 85:return 92===he();case 93:return he(),88===fe()?Ce(ct):151===fe()?Ce(ot):at();case 88:return ct();case 124:case 136:case 148:return he(),st();default:return nt()}}function at(){return 41!==fe()&&127!==fe()&&18!==fe()&&st()}function ot(){return he(),at()}function st(){return 22===fe()||18===fe()||41===fe()||25===fe()||Ze()}function ct(){return he(),84===fe()||98===fe()||118===fe()||126===fe()&&Ce(In)||131===fe()&&Ce(On)}function lt(t,r){if(bt(t))return!0;switch(t){case 0:case 1:case 3:return!(26===fe()&&r)&&Bn();case 2:return 82===fe()||88===fe();case 4:return Ce(ir);case 5:return Ce(ai)||26===fe()&&!r;case 6:return 22===fe()||Ze();case 12:switch(fe()){case 22:case 41:case 25:case 24:return!0;default:return Ze()}case 18:return Ze();case 9:return 22===fe()||25===fe()||Ze();case 24:return e.tokenIsIdentifierOrKeyword(fe())||10===fe();case 7:return 18===fe()?Ce(ut):r?Ne()&&!ft():Rr()&&!ft();case 8:return $n();case 10:return 27===fe()||25===fe()||$n();case 19:return Ne();case 15:switch(fe()){case 27:case 24:return!0}case 11:return 25===fe()||Lr();case 16:return Jt(!1);case 17:return Jt(!0);case 20:case 21:return 27===fe()||Er();case 22:return vi();case 23:return e.tokenIsIdentifierOrKeyword(fe());case 13:return e.tokenIsIdentifierOrKeyword(fe())||18===fe();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ut(){if(e.Debug.assert(18===fe()),19===he()){var t=he();return 27===t||18===t||94===t||117===t}return!0}function dt(){return he(),Ne()}function pt(){return he(),e.tokenIsIdentifierOrKeyword(fe())}function _t(){return he(),e.tokenIsIdentifierOrKeywordOrGreaterThan(fe())}function ft(){return(117===fe()||94===fe())&&Ce(mt)}function mt(){return he(),Lr()}function gt(){return he(),Er()}function ht(e){if(1===fe())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===fe();case 3:return 19===fe()||82===fe()||88===fe();case 7:return 18===fe()||94===fe()||117===fe();case 8:return!!ze()||!!Gr(fe())||38===fe();case 19:return 31===fe()||20===fe()||18===fe()||94===fe()||117===fe();case 11:return 21===fe()||26===fe();case 15:case 21:case 10:return 23===fe();case 17:case 16:case 18:return 21===fe()||23===fe();case 20:return 27!==fe();case 22:return 18===fe()||19===fe();case 13:return 31===fe()||43===fe();case 14:return 29===fe()&&Ce(Ci);default:return!1}}function yt(e,t){var r=F;F|=1<<e;for(var n=[],i=pe();!ht(e);)if(lt(e,!1))n.push(vt(e,t));else if(Et(e))break;return F=r,He(n,i)}function vt(e,t){var r=bt(e);return r?xt(r):t()}function bt(t){if(D&&(e=>{switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1})(t)&&!L){var r=D.currentNode(s.getStartPos());if(!(e.nodeIsMissing(r)||r.intersectsChange||e.containsParseError(r))&&(25358336&r.flags)===I&&((e,t)=>{switch(t){case 5:return(e=>{if(e)switch(e.kind){case 170:case 175:case 171:case 172:case 166:case 233:return!0;case 168:var t=e;return!(79===t.name.kind&&134===t.name.originalKeywordKind)}return!1})(e);case 2:return(e=>{if(e)switch(e.kind){case 288:case 289:return!0}return!1})(e);case 0:case 1:case 3:return(e=>{if(e)switch(e.kind){case 255:case 236:case 234:case 238:case 237:case 250:case 246:case 248:case 245:case 244:case 242:case 243:case 241:case 240:case 247:case 235:case 251:case 249:case 239:case 252:case 265:case 264:case 271:case 270:case 260:case 256:case 257:case 259:case 258:return!0}return!1})(e);case 6:return(e=>297===e.kind)(e);case 4:return(e=>{if(e)switch(e.kind){case 174:case 167:case 175:case 165:case 173:return!0}return!1})(e);case 8:return(e=>253===e.kind&&void 0===e.initializer)(e);case 17:case 16:return(e=>163===e.kind&&void 0===e.initializer)(e)}return!1})(r,t))return r.jsDocCache&&(r.jsDocCache=void 0),r}}function xt(e){return s.setTextPos(e.end),he(),e}function Et(t){return(t=>{switch(t){case 0:return 88===fe()?se(e.Diagnostics._0_expected,e.tokenToString(93)):se(e.Diagnostics.Declaration_or_statement_expected);case 1:return se(e.Diagnostics.Declaration_or_statement_expected);case 2:return se(e.Diagnostics.case_or_default_expected);case 3:return se(e.Diagnostics.Statement_expected);case 18:case 4:return se(e.Diagnostics.Property_or_signature_expected);case 5:return se(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return se(e.Diagnostics.Enum_member_expected);case 7:return se(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(fe())?se(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(fe())):se(e.Diagnostics.Variable_declaration_expected);case 9:return se(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return se(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return se(e.Diagnostics.Argument_expression_expected);case 12:return se(e.Diagnostics.Property_assignment_expected);case 15:return se(e.Diagnostics.Expression_or_comma_expected);case 17:return se(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(fe())?se(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(fe())):se(e.Diagnostics.Parameter_declaration_expected);case 19:return se(e.Diagnostics.Type_parameter_declaration_expected);case 20:return se(e.Diagnostics.Type_argument_expected);case 21:return se(e.Diagnostics.Type_expected);case 22:return se(e.Diagnostics.Unexpected_token_expected);case 23:case 13:case 14:se(e.Diagnostics.Identifier_expected)}})(t),!!(()=>{for(var e=0;e<25;e++)if(F&1<<e&&(lt(e,!0)||ht(e)))return!0;return!1})()||(he(),!1)}function St(e,t,r){var n=F;F|=1<<e;for(var i=[],a=pe(),o=-1;;)if(lt(e,!1)){var c=s.getStartPos();if(i.push(vt(e,t)),o=s.getTokenPos(),Be(27))continue;if(o=-1,ht(e))break;we(27,Dt(e)),r&&26===fe()&&!s.hasPrecedingLineBreak()&&he(),c===s.getStartPos()&&he()}else{if(ht(e))break;if(Et(e))break}return F=n,He(i,a,void 0,o>=0)}function Dt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Tt(){var e=He([],pe());return e.isMissingList=!0,e}function Ct(e,t,r,n){if(we(r)){var i=St(e,t);return we(n),i}return Tt()}function kt(e,t){for(var r=pe(),n=e?Qe(t):Ye(t),i=pe();Be(24);){if(29===fe()){n.jsdocDotPos=i;break}i=pe(),n=Je(M.createQualifiedName(n,Nt(e,!1)),r)}return n}function At(e,t){return Je(M.createQualifiedName(e,t),e.pos)}function Nt(t,r){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(fe())&&Ce(Pn))return $e(79,!0,e.Diagnostics.Identifier_expected);if(80===fe()){var n=tt();return r?n:$e(79,!0,e.Diagnostics.Identifier_expected)}return t?Qe():Ye()}function wt(e){var t=pe();return Je(M.createTemplateExpression(Mt(e),(e=>{var t,r=pe(),n=[];do{t=It(e),n.push(t)}while(16===t.literal.kind);return He(n,r)})(e)),t)}function Ft(){var e=pe();return Je(M.createTemplateLiteralTypeSpan(Ir(),Pt(!1)),e)}function Pt(t){return 19===fe()?((e=>{C=s.reScanTemplateToken(e)})(t),r=Rt(fe()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Ue(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function It(e){var t=pe();return Je(M.createTemplateSpan(ee(Br),Pt(e)),t)}function Ot(){return Rt(fe())}function Mt(t){t&&be();var r=Rt(fe());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function Rt(t){var r=pe(),n=e.isTemplateLiteralKind(t)?M.createTemplateLiteralLikeNode(t,s.getTokenValue(),(e=>{var t=14===e||17===e,r=s.getTokenText();return r.substring(1,r.length-(s.isUnterminated()?0:t?1:2))})(t),2048&s.getTokenFlags()):8===t?M.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===t?M.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?M.createLiteralLikeNode(t,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(n.isUnterminated=!0),he(),Je(n,r)}function Lt(){return kt(!0,e.Diagnostics.Type_expected)}function Bt(){if(!s.hasPrecedingLineBreak()&&29===xe())return Ct(20,Ir,29,31)}function jt(){var e=pe();return Je(M.createTypeReferenceNode(Lt(),Bt()),e)}function Ut(t){switch(t.kind){case 177:return e.nodeIsMissing(t.typeName);case 178:case 179:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||Ut(i);case 190:return Ut(t.type);default:return!1}}function Vt(){var e=pe();return he(),Je(M.createThisTypeNode(),e)}function zt(){var e,t=pe();return 108!==fe()&&103!==fe()||(e=Qe(),we(58)),Je(M.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Kt(),void 0),t)}function Kt(){s.setInJSDocType(!0);var e=pe();if(Be(141)){var t=M.createJSDocNamepathType(void 0);e:for(;;)switch(fe()){case 19:case 1:case 27:case 5:break e;default:ye()}return s.setInJSDocType(!1),Je(t,e)}var r=Be(25),n=Fr();return s.setInJSDocType(!1),r&&(n=Je(M.createJSDocVariadicType(n),e)),63===fe()?(he(),Je(M.createJSDocOptionalType(n),e)):n}function Wt(){var e,t,r=pe(),n=Ye();Be(94)&&(Er()||!Lr()?e=Ir():t=Qr());var i=Be(63)?Ir():void 0,a=M.createTypeParameterDeclaration(n,e,i);return a.expression=t,Je(a,r)}function Ht(){if(29===fe())return Ct(19,Wt,29,31)}function Jt(t){return 25===fe()||$n()||e.isModifierKind(fe())||59===fe()||Er(!t)}function $t(){return qt(!0)}function Gt(){return qt(!1)}function qt(t){var r=pe(),n=_e(),i=t?te(ci):ci();if(108===fe()){var a=M.createParameterDeclaration(i,void 0,void 0,qe(!0),void 0,Mr(),void 0);return i&&ue(i[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),z(Je(a,r),n)}var o=R;R=!1;var s=ui(),c=z(Je(M.createParameterDeclaration(i,s,je(25),(t=>{var r=Gn(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(fe())&&he(),r})(s),je(57),Mr(),jr()),r),n);return R=o,c}function Xt(t,r){if(((t,r)=>38===t?(we(t),!0):!!Be(58)||!(!r||38!==fe())&&(se(e.Diagnostics._0_expected,e.tokenToString(58)),he(),!0))(t,r))return Fr()}function Yt(e){var t=ne(),r=oe();q(!!(1&e)),Y(!!(2&e));var n=32&e?St(17,zt):St(16,r?$t:Gt);return q(t),Y(r),n}function Qt(e){if(!we(20))return Tt();var t=Yt(e);return we(21),t}function Zt(){Be(27)||We()}function er(e){var t=pe(),r=_e();174===e&&we(103);var n=Ht(),i=Qt(4),a=Xt(58,!0);return Zt(),z(Je(173===e?M.createCallSignature(n,i,a):M.createConstructSignature(n,i,a),t),r)}function tr(){return 22===fe()&&Ce(rr)}function rr(){if(he(),25===fe()||23===fe())return!0;if(e.isModifierKind(fe())){if(he(),Ne())return!0}else{if(!Ne())return!1;he()}return 58===fe()||27===fe()||57===fe()&&(he(),58===fe()||27===fe()||23===fe())}function nr(e,t,r,n){var i=Ct(16,Gt,22,23),a=Mr();return Zt(),z(Je(M.createIndexSignature(r,n,i,a),e),t)}function ir(){if(20===fe()||29===fe()||136===fe()||148===fe())return!0;for(var t=!1;e.isModifierKind(fe());)t=!0,he();return 22===fe()||(Ze()&&(t=!0,he()),!!t&&(20===fe()||29===fe()||57===fe()||58===fe()||27===fe()||ze()))}function ar(){if(20===fe()||29===fe())return er(173);if(103===fe()&&Ce(or))return er(174);var e=pe(),t=_e(),r=ui();return rt(136)?ii(e,t,void 0,r,171):rt(148)?ii(e,t,void 0,r,172):tr()?nr(e,t,void 0,r):((e,t,r)=>{var n,i=et(),a=je(57);if(20===fe()||29===fe()){var o=Ht(),s=Qt(4),c=Xt(58,!0);n=M.createMethodSignature(r,i,a,o,s,c)}else c=Mr(),n=M.createPropertySignature(r,i,a,c),63===fe()&&(n.initializer=jr());return Zt(),z(Je(n,e),t)})(e,t,r)}function or(){return he(),20===fe()||29===fe()}function sr(){return 24===he()}function cr(){switch(he()){case 20:case 29:case 24:return!0}return!1}function lr(){var e;return we(18)?(e=yt(4,ar),we(19)):e=Tt(),e}function ur(){return he(),39===fe()||40===fe()?144===he():(144===fe()&&he(),22===fe()&&dt()&&101===he())}function dr(){var t=pe();if(Be(25))return Je(M.createRestTypeNode(Ir()),t);var r=Ir();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=M.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function pr(){return 58===he()||57===fe()&&58===he()}function _r(){return 25===fe()?e.tokenIsIdentifierOrKeyword(he())&&pr():e.tokenIsIdentifierOrKeyword(fe())&&pr()}function fr(){if(Ce(_r)){var e=pe(),t=_e(),r=je(25),n=Qe(),i=je(57);we(58);var a=dr();return z(Je(M.createNamedTupleMember(r,n,i,a),e),t)}return dr()}function mr(){var e=pe(),t=_e(),r=(()=>{var e;if(126===fe()){var t=pe();he(),e=He([Je(M.createToken(126),t)],t)}return e})(),n=Be(103),i=Ht(),a=Qt(4),o=Xt(38,!1),s=n?M.createConstructorTypeNode(r,i,a,o):M.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),z(Je(s,e),t)}function gr(){var e=Ve();return 24===fe()?void 0:e}function hr(e){var t=pe();e&&he();var r=110===fe()||95===fe()||104===fe()?Ve():Rt(fe());return e&&(r=Je(M.createPrefixUnaryExpression(40,r),t)),Je(M.createLiteralTypeNode(r),t)}function yr(){return he(),100===fe()}function vr(){d|=1048576;var e=pe(),t=Be(112);we(100),we(20);var r=Ir();we(21);var n=Be(24)?Lt():void 0,i=Bt();return Je(M.createImportTypeNode(r,n,i,t),e)}function br(){return he(),8===fe()||9===fe()}function xr(){switch(fe()){case 130:case 154:case 149:case 146:case 157:case 150:case 133:case 152:case 143:case 147:return ke(gr)||jt();case 66:s.reScanAsteriskEqualsToken();case 41:return r=pe(),he(),Je(M.createJSDocAllType(),r);case 60:s.reScanQuestionToken();case 57:return(()=>{var e=pe();return he(),27===fe()||19===fe()||21===fe()||31===fe()||63===fe()||51===fe()?Je(M.createJSDocUnknownType(),e):Je(M.createJSDocNullableType(Ir()),e)})();case 98:return(()=>{var e=pe(),t=_e();if(Ce(Di)){he();var r=Qt(36),n=Xt(58,!1);return z(Je(M.createJSDocFunctionType(r,n),e),t)}return Je(M.createTypeReferenceNode(Qe(),void 0),e)})();case 53:return(()=>{var e=pe();return he(),Je(M.createJSDocNonNullableType(xr()),e)})();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return hr();case 40:return Ce(br)?hr(!0):jt();case 114:return Ve();case 108:var e=Vt();return 139!==fe()||s.hasPrecedingLineBreak()?e:(t=e,he(),Je(M.createTypePredicateNode(void 0,t,Ir()),t.pos));case 112:return Ce(yr)?vr():(()=>{var e=pe();return we(112),Je(M.createTypeQueryNode(kt(!0)),e)})();case 18:return Ce(ur)?(()=>{var e,t=pe();we(18),144!==fe()&&39!==fe()&&40!==fe()||144!==(e=Ve()).kind&&we(144),we(22);var r,n=(()=>{var e=pe(),t=Qe();we(101);var r=Ir();return Je(M.createTypeParameterDeclaration(t,r,void 0),e)})(),i=Be(127)?Ir():void 0;we(23),57!==fe()&&39!==fe()&&40!==fe()||57!==(r=Ve()).kind&&we(57);var a=Mr();We();var o=yt(4,ar);return we(19),Je(M.createMappedTypeNode(e,n,i,r,a,o),t)})():(()=>{var e=pe();return Je(M.createTypeLiteralNode(lr()),e)})();case 22:return(()=>{var e=pe();return Je(M.createTupleTypeNode(Ct(21,fr,22,23)),e)})();case 20:return(()=>{var e=pe();we(20);var t=Ir();return we(21),Je(M.createParenthesizedType(t),e)})();case 100:return vr();case 128:return Ce(Pn)?(()=>{var e=pe(),t=Ue(128),r=108===fe()?Vt():Ye(),n=Be(139)?Ir():void 0;return Je(M.createTypePredicateNode(t,r,n),e)})():jt();case 15:return(()=>{var e=pe();return Je(M.createTemplateLiteralType(Mt(!1),(()=>{var e,t=pe(),r=[];do{e=Ft(),r.push(e)}while(16===e.literal.kind);return He(r,t)})()),e)})();default:return jt()}var t,r}function Er(e){switch(fe()){case 130:case 154:case 149:case 146:case 157:case 133:case 144:case 150:case 153:case 114:case 152:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 147:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&Ce(br);case 20:return!e&&Ce(Sr);default:return Ne()}}function Sr(){return he(),21===fe()||Jt(!1)||Er()}function Dr(){var e,t=fe();switch(t){case 140:case 153:case 144:return(e=>{var t=pe();return we(e),Je(M.createTypeOperatorNode(e,Dr()),t)})(t);case 137:return e=pe(),we(137),Je(M.createInferTypeNode((()=>{var e=pe();return Je(M.createTypeParameterDeclaration(Ye(),void 0,void 0),e)})()),e)}return(()=>{for(var e=pe(),t=xr();!s.hasPrecedingLineBreak();)switch(fe()){case 53:he(),t=Je(M.createJSDocNonNullableType(t),e);break;case 57:if(Ce(gt))return t;he(),t=Je(M.createJSDocNullableType(t),e);break;case 22:if(we(22),Er()){var r=Ir();we(23),t=Je(M.createIndexedAccessTypeNode(t,r),e)}else we(23),t=Je(M.createArrayTypeNode(t),e);break;default:return t}return t})()}function Tr(t){if(Nr()){var r=mr();return ue(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function Cr(e,t,r){var n=pe(),i=51===e,a=Be(e),o=a&&Tr(i)||t();if(fe()===e||a){for(var s=[o];Be(e);)s.push(Tr(i)||t());o=Je(r(He(s,n)),n)}return o}function kr(){return Cr(50,Dr,M.createIntersectionTypeNode)}function Ar(){return he(),103===fe()}function Nr(){return 29===fe()||!(20!==fe()||!Ce(wr))||103===fe()||126===fe()&&Ce(Ar)}function wr(){if(he(),21===fe()||25===fe())return!0;if((()=>{if(e.isModifierKind(fe())&&ui(),Ne()||108===fe())return he(),!0;if(22===fe()||18===fe()){var t=E.length;return Gn(),t===E.length}return!1})()){if(58===fe()||27===fe()||57===fe()||63===fe())return!0;if(21===fe()&&(he(),38===fe()))return!0}return!1}function Fr(){var e=pe(),t=Ne()&&ke(Pr),r=Ir();return t?Je(M.createTypePredicateNode(void 0,t,r),e):r}function Pr(){var e=Ye();if(139===fe()&&!s.hasPrecedingLineBreak())return he(),e}function Ir(){return Q(40960,Or)}function Or(e){if(Nr())return mr();var t=pe(),r=Cr(51,kr,M.createUnionTypeNode);if(!e&&!s.hasPrecedingLineBreak()&&Be(94)){var n=Or(!0);we(57);var i=Or();we(58);var a=Or();return Je(M.createConditionalTypeNode(r,n,i,a),t)}return r}function Mr(){return Be(58)?Ir():void 0}function Rr(){switch(fe()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Ce(cr);default:return Ne()}}function Lr(){if(Rr())return!0;switch(fe()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return!(ie()&&101===fe()||!(e.getBinaryOperatorPrecedence(fe())>0))||Ne()}}function Br(){var e=ae();e&&X(!1);for(var t,r=pe(),n=Ur();t=je(27);)n=Xr(n,t,Ur(),r);return e&&X(!0),n}function jr(){return Be(63)?Ur():void 0}function Ur(){if(125===fe()&&(ne()||Ce(Mn)))return(()=>{var e=pe();return he(),s.hasPrecedingLineBreak()||41!==fe()&&!Lr()?Je(M.createYieldExpression(void 0,void 0),e):Je(M.createYieldExpression(je(41),Ur()),e)})();var t=(()=>{var e=20===fe()||29===fe()||131===fe()?Ce(zr):38===fe()?1:0;if(0!==e)return 1===e?Hr(!0):ke(Kr)})()||(()=>{if(131===fe()&&1===Ce(Wr)){var e=pe(),t=di();return Vr(e,$r(0),t)}})();if(t)return t;var r=pe(),n=$r(0);return 79===n.kind&&38===fe()?Vr(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(ve())?Xr(n,Ve(),Ur(),r):((t,r)=>{var n,i=je(57);return i?Je(M.createConditionalExpression(t,i,Q(20480,Ur),n=Ue(58),e.nodeIsPresent(n)?Ur():$e(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r):t})(n,r)}function Vr(t,r,n){e.Debug.assert(38===fe(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=M.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);Je(i,r.pos);var a=He([i],i.pos,i.end),o=Ue(38),s=Jr(!!n);return W(Je(M.createArrowFunction(n,void 0,a,void 0,o,s),t))}function zr(){if(131===fe()){if(he(),s.hasPrecedingLineBreak())return 0;if(20!==fe()&&29!==fe())return 0}var t=fe(),r=he();if(20===t){if(21===r)switch(he()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&131!==r&&Ce(dt))return 1;if(!Ne()&&108!==r)return 0;switch(he()){case 58:return 1;case 57:return he(),58===fe()||27===fe()||63===fe()||21===fe()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===t),Ne()?1===x?Ce((()=>{var e=he();if(94===e)switch(he()){case 63:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function Kr(){var t=s.getTokenPos();if(!(null==P?void 0:P.has(t))){var r=Hr(!1);return r||(P||(P=new e.Set)).add(t),r}}function Wr(){if(131===fe()){if(he(),s.hasPrecedingLineBreak()||38===fe())return 0;var e=$r(0);if(!s.hasPrecedingLineBreak()&&79===e.kind&&38===fe())return 1}return 0}function Hr(t){var r,n=pe(),i=_e(),a=di(),o=e.some(a,e.isAsyncModifier)?2:0,s=Ht();if(we(20)){if(r=Yt(o),!we(21)&&!t)return}else{if(!t)return;r=Tt()}var c=Xt(58,!1);if(!c||t||!Ut(c)){var l=c&&e.isJSDocFunctionType(c);if(t||38===fe()||!l&&18===fe()){var u=fe(),d=Ue(38),p=38===u||18===u?Jr(e.some(a,e.isAsyncModifier)):Ye();return z(Je(M.createArrowFunction(a,s,r,c,d,p),n),i)}}}function Jr(e){if(18===fe())return Nn(e?2:0);if(26!==fe()&&98!==fe()&&84!==fe()&&Bn()&&(18===fe()||98===fe()||84===fe()||59===fe()||!Lr()))return Nn(16|(e?2:0));var t=R;R=!1;var r=e?te(Ur):Q(32768,Ur);return R=t,r}function $r(e){var t=pe();return qr(e,Qr(),t)}function Gr(e){return 101===e||159===e}function qr(t,r,n){for(;;){ve();var i=e.getBinaryOperatorPrecedence(fe());if(!(42===fe()?i>=t:i>t))break;if(101===fe()&&ie())break;if(127===fe()){if(s.hasPrecedingLineBreak())break;he(),a=r,o=Ir(),r=Je(M.createAsExpression(a,o),a.pos)}else r=Xr(r,Ve(),$r(i),n)}var a,o;return r}function Xr(e,t,r,n){return Je(M.createBinaryExpression(e,t,r),n)}function Yr(){var e=pe();return Je(M.createPrefixUnaryExpression(fe(),ge(Zr)),e)}function Qr(){if((()=>{switch(fe()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(1!==x)return!1;default:return!0}})()){var t=pe(),r=en();return 42===fe()?qr(e.getBinaryOperatorPrecedence(fe()),r,t):r}var n=fe(),i=Zr();if(42===fe()){t=e.skipTrivia(f,i.pos);var a=i.end;210===i.kind?le(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):le(t,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}return i}function Zr(){switch(fe()){case 39:case 40:case 54:case 53:return Yr();case 89:return e=pe(),Je(M.createDeleteExpression(ge(Zr)),e);case 112:return(()=>{var e=pe();return Je(M.createTypeOfExpression(ge(Zr)),e)})();case 114:return(()=>{var e=pe();return Je(M.createVoidExpression(ge(Zr)),e)})();case 29:return(()=>{var e=pe();we(29);var t=Ir();we(31);var r=Zr();return Je(M.createTypeAssertion(t,r),e)})();case 132:if(132===fe()&&(oe()||Ce(Mn)))return(()=>{var e=pe();return Je(M.createAwaitExpression(ge(Zr)),e)})();default:return en()}var e}function en(){if(45===fe()||46===fe()){var t=pe();return Je(M.createPrefixUnaryExpression(fe(),ge(tn)),t)}if(1===x&&29===fe()&&Ce(_t))return nn(!0);var r=tn();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===fe()||46===fe())&&!s.hasPrecedingLineBreak()){var n=fe();return he(),Je(M.createPostfixUnaryExpression(r,n),r.pos)}return r}function tn(){var t,r=pe();return 100===fe()?Ce(or)?(d|=1048576,t=Ve()):Ce(sr)?(he(),he(),t=Je(M.createMetaProperty(100,Qe()),r),d|=2097152):t=rn():t=106===fe()?(()=>{var t=pe(),r=Ve();if(29===fe()){var n=pe();void 0!==ke(vn)&&le(n,pe(),e.Diagnostics.super_may_not_use_type_arguments)}return 20===fe()||24===fe()||22===fe()?r:(Ue(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Je(M.createPropertyAccessExpression(r,Nt(!0,!0)),t))})():rn(),hn(r,t)}function rn(){return fn(pe(),bn(),!0)}function nn(t,r,n){var i,a=pe(),o=(e=>{var t=pe();if(we(29),31===fe())return De(),Je(M.createJsxOpeningFragment(),t);var r,n=sn(),i=0==(131072&I)?yi():void 0,a=(()=>{var e=pe();return Je(M.createJsxAttributes(yt(13,ln)),e)})();return 31===fe()?(De(),r=M.createJsxOpeningElement(n,i,a)):(we(43),we(31,void 0,!1)&&(e?he():De()),r=M.createJsxSelfClosingElement(n,i,a)),Je(r,t)})(t);if(279===o.kind){var s=on(o),c=void 0,l=s[s.length-1];if(277===(null==l?void 0:l.kind)&&!T(l.openingElement.tagName,l.closingElement.tagName)&&T(o.tagName,l.closingElement.tagName)){var u=l.children.end,d=Je(M.createJsxElement(l.openingElement,l.children,Je(M.createJsxClosingElement(Je(M.createIdentifier(""),u,u)),u,u)),l.openingElement.pos,u);s=He(Il(Il([],s.slice(0,s.length-1),!0),[d],!1),s.pos,u),c=l.closingElement}else c=((e,t)=>{var r=pe();we(30);var n=sn();return we(31,void 0,!1)&&(t||!T(e.tagName,n)?he():De()),Je(M.createJsxClosingElement(n),r)})(o,t),T(o.tagName,c.tagName)||(n&&e.isJsxOpeningElement(n)&&T(c.tagName,n.tagName)?ue(o.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(f,o.tagName)):ue(c.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(f,o.tagName)));i=Je(M.createJsxElement(o,s,c),a)}else 282===o.kind?i=Je(M.createJsxFragment(o,on(o),(t=>{var r=pe();return we(30),e.tokenIsIdentifierOrKeyword(fe())&&ue(sn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),we(31,void 0,!1)&&(t?he():De()),Je(M.createJsxJsxClosingFragment(),r)})(t)),a):(e.Debug.assert(278===o.kind),i=o);if(t&&29===fe()){var p=void 0===r?i.pos:r,_=ke((()=>nn(!0,p)));if(_){var m=$e(27,!1);return e.setTextRangePosWidth(m,_.pos,0),le(e.skipTrivia(f,p),_.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Je(M.createBinaryExpression(i,m,_),a)}}return i}function an(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))ue(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;le(e.skipTrivia(f,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(f,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=pe(),a=M.createJsxText(s.getTokenValue(),12===C),C=s.scanJsxToken(),Je(a,i);case 18:return cn(!1);case 29:return nn(!1,void 0,t);default:return e.Debug.assertNever(r)}var i,a}function on(t){var r=[],n=pe(),i=F;for(F|=16384;;){var a=an(t,C=s.reScanJsxToken());if(!a)break;if(r.push(a),e.isJsxOpeningElement(t)&&277===(null==a?void 0:a.kind)&&!T(a.openingElement.tagName,a.closingElement.tagName)&&T(t.tagName,a.closingElement.tagName))break}return F=i,He(r,n)}function sn(){var e=pe();Se();for(var t=108===fe()?Ve():Qe();Be(24);)t=Je(M.createPropertyAccessExpression(t,Nt(!0,!1)),e);return t}function cn(e){var t,r,n=pe();if(we(18))return 19!==fe()&&(t=je(25),r=Br()),e?we(19):we(19,void 0,!1)&&De(),Je(M.createJsxExpression(t,r),n)}function ln(){if(18===fe())return(()=>{var e=pe();we(18),we(25);var t=Br();return we(19),Je(M.createJsxSpreadAttribute(t),e)})();Se();var e=pe();return Je(M.createJsxAttribute(Qe(),63!==fe()?void 0:10===(C=s.scanJsxAttributeValue())?Ot():cn(!0)),e)}function un(){return he(),e.tokenIsIdentifierOrKeyword(fe())||22===fe()||mn()}function dn(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function pn(t,r,n){var i=Nt(!0,!0),a=n||dn(r),o=a?M.createPropertyAccessChain(r,n,i):M.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&ue(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Je(o,t)}function _n(t,r,n){var i;if(23===fe())i=$e(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=ee(Br);e.isStringOrNumericLiteralLike(a)&&(a.text=Ge(a.text)),i=a}return we(23),Je(n||dn(r)?M.createElementAccessChain(r,n,i):M.createElementAccessExpression(r,i),t)}function fn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===fe()&&Ce(un)?(i=Ue(28),a=e.tokenIsIdentifierOrKeyword(fe())):a=Be(24),a)r=pn(t,r,i);else if(i||53!==fe()||s.hasPrecedingLineBreak())if(!i&&ae()||!Be(22)){if(!mn())return r;r=gn(t,r,i,void 0)}else r=_n(t,r,i);else he(),r=Je(M.createNonNullExpression(r),t)}}function mn(){return 14===fe()||15===fe()}function gn(e,t,r,n){var i=M.createTaggedTemplateExpression(t,n,14===fe()?(be(),Ot()):wt(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Je(i,e)}function hn(t,r){for(;;){r=fn(t,r,!0);var n=je(28);if(0!=(131072&I)||29!==fe()&&47!==fe()){if(20===fe()){a=yn(),r=Je(n||dn(r)?M.createCallChain(r,n,void 0,a):M.createCallExpression(r,void 0,a),t);continue}}else{var i=ke(vn);if(i){if(mn()){r=gn(t,r,n,i);continue}var a=yn();r=Je(n||dn(r)?M.createCallChain(r,n,i,a):M.createCallExpression(r,i,a),t);continue}}if(n){var o=$e(79,!1,e.Diagnostics.Identifier_expected);r=Je(M.createPropertyAccessChain(r,n,o),t)}break}return r}function yn(){we(20);var e=St(11,En);return we(21),e}function vn(){if(0==(131072&I)&&29===xe()){he();var e=St(20,Ir);if(we(31))return e&&(()=>{switch(fe()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}})()?e:void 0}}function bn(){switch(fe()){case 8:case 9:case 10:case 14:return Ot();case 108:case 106:case 104:case 110:case 95:return Ve();case 20:return(()=>{var e=pe(),t=_e();we(20);var r=ee(Br);return we(21),z(Je(M.createParenthesizedExpression(r),e),t)})();case 22:return Sn();case 18:return Tn();case 131:if(!Ce(On))break;return Cn();case 84:return fi(pe(),_e(),void 0,void 0,225);case 98:return Cn();case 103:return(()=>{var t=pe();if(we(103),Be(24)){var r=Qe();return Je(M.createMetaProperty(103,r),t)}for(var n,i,a=pe(),o=bn();;){o=fn(a,o,!1),n=ke(vn),mn()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=gn(a,o,void 0,n),n=void 0);break}return 20===fe()?i=yn():n&&le(t,s.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),Je(M.createNewExpression(o,n,i),t)})();case 43:case 68:if(13===(C=s.reScanSlashToken()))return Ot();break;case 15:return wt(!1);case 80:return tt()}return Ye(e.Diagnostics.Expression_expected)}function xn(){return 25===fe()?(()=>{var e=pe();we(25);var t=Ur();return Je(M.createSpreadElement(t),e)})():27===fe()?Je(M.createOmittedExpression(),pe()):Ur()}function En(){return Q(20480,xn)}function Sn(){var e=pe();we(22);var t=s.hasPrecedingLineBreak(),r=St(15,xn);return we(23),Je(M.createArrayLiteralExpression(r,t),e)}function Dn(){var e=pe(),t=_e();if(je(25)){var r=Ur();return z(Je(M.createSpreadAssignment(r),e),t)}var n=ci(),i=ui();if(rt(136))return ii(e,t,n,i,171);if(rt(148))return ii(e,t,n,i,172);var a,o=je(41),s=Ne(),c=et(),l=je(57),u=je(53);if(o||20===fe()||29===fe())return ti(e,t,n,i,o,c,l,u);if(s&&58!==fe()){var d=je(63),p=d?ee(Ur):void 0;(a=M.createShorthandPropertyAssignment(c,p)).equalsToken=d}else{we(58);var _=ee(Ur);a=M.createPropertyAssignment(c,_)}return a.decorators=n,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,z(Je(a,e),t)}function Tn(){var t=pe(),r=s.getTokenPos();we(18);var n=s.hasPrecedingLineBreak(),i=St(12,Dn,!0);if(!we(19)){var a=e.lastOrUndefined(E);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(u,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Je(M.createObjectLiteralExpression(i,n),t)}function Cn(){var t=ae();X(!1);var r=pe(),n=_e(),i=ui();we(98);var a=je(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?Z(40960,kn):o?Z(8192,kn):s?te(kn):kn(),l=Ht(),u=Qt(o|s),d=Xt(58,!1),p=Nn(o|s);return X(t),z(Je(M.createFunctionExpression(i,a,c,l,u,d,p),r),n)}function kn(){return Ae()?Xe():void 0}function An(t,r){var n=pe(),i=_e(),a=s.getTokenPos();if(we(18,r)||t){var o=s.hasPrecedingLineBreak(),c=yt(1,Un);if(!we(19)){var l=e.lastOrUndefined(E);l&&l.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(l,e.createDetachedDiagnostic(u,a,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var d=z(Je(M.createBlock(c,o),n),i);return 63===fe()&&(se(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),he()),d}return c=Tt(),z(Je(M.createBlock(c,void 0),n),i)}function Nn(e,t){var r=ne();q(!!(1&e));var n=oe();Y(!!(2&e));var i=R;R=!1;var a=ae();a&&X(!1);var o=An(!!(16&e),t);return a&&X(!0),R=i,q(r),Y(n),o}function wn(e){var t=pe(),r=_e();we(245===e?81:86);var n=ze()?void 0:Ye();return We(),z(Je(245===e?M.createBreakStatement(n):M.createContinueStatement(n),t),r)}function Fn(){return 82===fe()?(()=>{var e=pe();we(82);var t=ee(Br);we(58);var r=yt(3,Un);return Je(M.createCaseClause(t,r),e)})():(()=>{var e=pe();we(88),we(58);var t=yt(3,Un);return Je(M.createDefaultClause(t),e)})()}function Pn(){return he(),e.tokenIsIdentifierOrKeyword(fe())&&!s.hasPrecedingLineBreak()}function In(){return he(),84===fe()&&!s.hasPrecedingLineBreak()}function On(){return he(),98===fe()&&!s.hasPrecedingLineBreak()}function Mn(){return he(),(e.tokenIsIdentifierOrKeyword(fe())||8===fe()||9===fe()||10===fe())&&!s.hasPrecedingLineBreak()}function Rn(){for(;;)switch(fe()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 151:return he(),!s.hasPrecedingLineBreak()&&Ne();case 141:case 142:return he(),!s.hasPrecedingLineBreak()&&(Ne()||10===fe());case 126:case 131:case 135:case 121:case 122:case 123:case 144:if(he(),s.hasPrecedingLineBreak())return!1;continue;case 156:return he(),18===fe()||79===fe()||93===fe();case 100:return he(),10===fe()||41===fe()||18===fe()||e.tokenIsIdentifierOrKeyword(fe());case 93:var t=he();if(151===t&&(t=Ce(he)),63===t||41===t||18===t||88===t||127===t)return!0;continue;case 124:he();continue;default:return!1}}function Ln(){return Ce(Rn)}function Bn(){switch(fe()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Ln()||Ce(cr);case 85:case 93:return Ln();case 131:case 135:case 118:case 141:case 142:case 151:case 156:return!0;case 123:case 121:case 122:case 124:case 144:return Ln()||!Ce(Pn);default:return Lr()}}function jn(){return he(),Ae()||18===fe()||22===fe()}function Un(){switch(fe()){case 26:return t=pe(),r=_e(),we(26),z(Je(M.createEmptyStatement(),t),r);case 18:return An(!1);case 113:return Zn(pe(),_e(),void 0,void 0);case 119:if(Ce(jn))return Zn(pe(),_e(),void 0,void 0);break;case 98:return ei(pe(),_e(),void 0,void 0);case 84:return _i(pe(),_e(),void 0,void 0);case 99:return(()=>{var e=pe(),t=_e();we(99),we(20);var r=ee(Br);we(21);var n=Un(),i=Be(91)?Un():void 0;return z(Je(M.createIfStatement(r,n,i),e),t)})();case 90:return(()=>{var e=pe(),t=_e();we(90);var r=Un();we(115),we(20);var n=ee(Br);return we(21),Be(26),z(Je(M.createDoStatement(r,n),e),t)})();case 115:return(()=>{var e=pe(),t=_e();we(115),we(20);var r=ee(Br);we(21);var n=Un();return z(Je(M.createWhileStatement(r,n),e),t)})();case 97:return(()=>{var e=pe(),t=_e();we(97);var r,n,i=je(132);if(we(20),26!==fe()&&(r=113===fe()||119===fe()||85===fe()?Yn(!0):Z(4096,Br)),i?we(159):Be(159)){var a=ee(Ur);we(21),n=M.createForOfStatement(i,r,a,Un())}else if(Be(101))a=ee(Br),we(21),n=M.createForInStatement(r,a,Un());else{we(26);var o=26!==fe()&&21!==fe()?ee(Br):void 0;we(26);var s=21!==fe()?ee(Br):void 0;we(21),n=M.createForStatement(r,o,s,Un())}return z(Je(n,e),t)})();case 86:return wn(244);case 81:return wn(245);case 105:return(()=>{var e=pe(),t=_e();we(105);var r=ze()?void 0:ee(Br);return We(),z(Je(M.createReturnStatement(r),e),t)})();case 116:return(()=>{var e=pe(),t=_e();we(116),we(20);var r=ee(Br);we(21);var n=Z(16777216,Un);return z(Je(M.createWithStatement(r,n),e),t)})();case 107:return(()=>{var e=pe(),t=_e();we(107),we(20);var r=ee(Br);we(21);var n=(()=>{var e=pe();we(18);var t=yt(2,Fn);return we(19),Je(M.createCaseBlock(t),e)})();return z(Je(M.createSwitchStatement(r,n),e),t)})();case 109:return(()=>{var e=pe(),t=_e();we(109);var r=s.hasPrecedingLineBreak()?void 0:ee(Br);return void 0===r&&(w++,r=Je(M.createIdentifier(""),pe())),Ke()||Me(r),z(Je(M.createThrowStatement(r),e),t)})();case 111:case 83:case 96:return(()=>{var e=pe(),t=_e();we(111);var r,n=An(!1),i=83===fe()?(()=>{var e,t=pe();we(83),Be(20)?(e=Xn(),we(21)):e=void 0;var r=An(!1);return Je(M.createCatchClause(e,r),t)})():void 0;return i&&96!==fe()||(we(96),r=An(!1)),z(Je(M.createTryStatement(n,i,r),e),t)})();case 87:return(()=>{var e=pe(),t=_e();return we(87),We(),z(Je(M.createDebuggerStatement(),e),t)})();case 59:return zn();case 131:case 118:case 151:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 144:case 156:if(Ln())return zn()}var t,r;return(()=>{var t,r=pe(),n=_e(),i=20===fe(),a=ee(Br);return e.isIdentifier(a)&&Be(58)?t=M.createLabeledStatement(a,Un()):(Ke()||Me(a),t=M.createExpressionStatement(a),i&&(n=!1)),z(Je(t,r),n)})()}function Vn(e){return 135===e.kind}function zn(){var t=e.some(Ce((()=>(ci(),ui()))),Vn);if(t){var r=Z(8388608,(()=>{var e=bt(F);if(e)return xt(e)}));if(r)return r}var n=pe(),i=_e(),a=ci(),o=ui();if(t){for(var s=0,c=o;s<c.length;s++)c[s].flags|=8388608;return Z(8388608,(()=>Kn(n,i,a,o)))}return Kn(n,i,a,o)}function Kn(t,r,n,i){switch(fe()){case 113:case 119:case 85:return Zn(t,r,n,i);case 98:return ei(t,r,n,i);case 84:return _i(t,r,n,i);case 118:return((e,t,r,n)=>{we(118);var i=Ye(),a=Ht(),o=mi(),s=lr();return z(Je(M.createInterfaceDeclaration(r,n,i,a,o,s),e),t)})(t,r,n,i);case 151:return((e,t,r,n)=>{we(151);var i=Ye(),a=Ht();we(63);var o=138===fe()&&ke(gr)||Ir();return We(),z(Je(M.createTypeAliasDeclaration(r,n,i,a,o),e),t)})(t,r,n,i);case 92:return((e,t,r,n)=>{we(92);var i,a=Ye();return we(18)?(i=Q(40960,(()=>St(6,bi))),we(19)):i=Tt(),z(Je(M.createEnumDeclaration(r,n,a,i),e),t)})(t,r,n,i);case 156:case 141:case 142:return((e,t,r,n)=>{var i=0;if(156===fe())return Si(e,t,r,n);if(Be(142))i|=16;else if(we(141),10===fe())return Si(e,t,r,n);return Ei(e,t,r,n,i)})(t,r,n,i);case 100:return((e,t,r,n)=>{we(100);var i,a=s.getStartPos();Ne()&&(i=Ye());var o,c=!1;if(155===fe()||"type"!==(null==i?void 0:i.escapedText)||!Ne()&&41!==fe()&&18!==fe()||(c=!0,i=Ne()?Ye():void 0),i&&27!==fe()&&155!==fe())return((e,t,r,n,i,a)=>{we(63);var o=145===fe()&&Ce(Di)?(()=>{var e=pe();we(145),we(20);var t=Ni();return we(21),Je(M.createExternalModuleReference(t),e)})():kt(!1);return We(),z(Je(M.createImportEqualsDeclaration(r,n,a,i,o),e),t)})(e,t,r,n,i,c);(i||41===fe()||18===fe())&&(o=((e,t,r)=>{var n;return e&&!Be(27)||(n=41===fe()?(()=>{var e=pe();we(41),we(127);var t=Ye();return Je(M.createNamespaceImport(t),e)})():wi(268)),Je(M.createImportClause(r,e,n),t)})(i,a,c),we(155));var l,u=Ni();return 129!==fe()||s.hasPrecedingLineBreak()||(l=Ai()),We(),z(Je(M.createImportDeclaration(r,n,o,u,l),e),t)})(t,r,n,i);case 93:switch(he(),fe()){case 88:case 63:return((e,t,r,n)=>{var i,a=oe();Y(!0),Be(63)?i=!0:we(88);var o=Ur();return We(),Y(a),z(Je(M.createExportAssignment(r,n,i,o),e),t)})(t,r,n,i);case 127:return((e,t,r,n)=>{we(127),we(142);var i=Ye();We();var a=M.createNamespaceExportDeclaration(i);return a.decorators=r,a.modifiers=n,z(Je(a,e),t)})(t,r,n,i);default:return((e,t,r,n)=>{var i,a,o,c=oe();Y(!0);var l=Be(151),u=pe();return Be(41)?(Be(127)&&(i=(e=>Je(M.createNamespaceExport(Qe()),e))(u)),we(155),a=Ni()):(i=wi(272),(155===fe()||10===fe()&&!s.hasPrecedingLineBreak())&&(we(155),a=Ni())),a&&129===fe()&&!s.hasPrecedingLineBreak()&&(o=Ai()),We(),Y(c),z(Je(M.createExportDeclaration(r,n,l,i,a,o),e),t)})(t,r,n,i)}default:if(n||i){var a=$e(275,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(a,t),a.decorators=n,a.modifiers=i,a}return}}function Wn(e,t){if(18===fe()||!ze())return Nn(e,t);We()}function Hn(){var e=pe();if(27===fe())return Je(M.createOmittedExpression(),e);var t=je(25),r=Gn(),n=jr();return Je(M.createBindingElement(t,void 0,r,n),e)}function Jn(){var e,t=pe(),r=je(25),n=Ae(),i=et();n&&58!==fe()?(e=i,i=void 0):(we(58),e=Gn());var a=jr();return Je(M.createBindingElement(r,i,e,a),t)}function $n(){return 18===fe()||22===fe()||80===fe()||Ae()}function Gn(e){return 22===fe()?(()=>{var e=pe();we(22);var t=St(10,Hn);return we(23),Je(M.createArrayBindingPattern(t),e)})():18===fe()?(()=>{var e=pe();we(18);var t=St(9,Jn);return we(19),Je(M.createObjectBindingPattern(t),e)})():Xe(e)}function qn(){return Xn(!0)}function Xn(t){var r,n=pe(),i=_e(),a=Gn(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);t&&79===a.kind&&53===fe()&&!s.hasPrecedingLineBreak()&&(r=Ve());var o=Mr(),c=Gr(fe())?void 0:jr();return z(Je(M.createVariableDeclaration(a,r,o,c),n),i)}function Yn(t){var r,n=pe(),i=0;switch(fe()){case 113:break;case 119:i|=1;break;case 85:i|=2;break;default:e.Debug.fail()}if(he(),159===fe()&&Ce(Qn))r=Tt();else{var a=ie();G(t),r=St(8,t?Xn:qn),G(a)}return Je(M.createVariableDeclarationList(r,i),n)}function Qn(){return dt()&&21===he()}function Zn(e,t,r,n){var i=Yn(!1);We();var a=M.createVariableStatement(n,i);return a.decorators=r,z(Je(a,e),t)}function ei(t,r,n,i){var a=oe(),o=e.modifiersToFlags(i);we(98);var s=je(41),c=512&o?kn():Xe(),l=s?1:0,u=256&o?2:0,d=Ht();1&o&&Y(!0);var p=Qt(l|u),_=Xt(58,!1),f=Wn(l|u,e.Diagnostics.or_expected);return Y(a),z(Je(M.createFunctionDeclaration(n,i,s,c,d,p,_,f),t),r)}function ti(t,r,n,i,a,o,s,c,l){var u=a?1:0,d=e.some(i,e.isAsyncModifier)?2:0,p=Ht(),_=Qt(u|d),f=Xt(58,!1),m=Wn(u|d,l),g=M.createMethodDeclaration(n,i,a,o,s,p,_,f,m);return g.exclamationToken=c,z(Je(g,t),r)}function ri(t,r,n,i,a,o){var c=o||s.hasPrecedingLineBreak()?void 0:je(53),l=Mr(),u=Q(45056,jr);return((t,r,n)=>{if(59!==fe()||s.hasPrecedingLineBreak())return 20===fe()?(se(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),void he()):void(!r||ze()?Ke()||(n?18===fe()&&se(e.Diagnostics._0_expected,e.tokenToString(26)):Me(t)):n?se(e.Diagnostics._0_expected,e.tokenToString(26)):se(e.Diagnostics.Expected_for_property_initializer));se(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)})(a,l,u),z(Je(M.createPropertyDeclaration(n,i,a,o||c,l,u),t),r)}function ni(t,r,n,i){var a=je(41),o=et(),s=je(57);return a||20===fe()||29===fe()?ti(t,r,n,i,a,o,s,void 0,e.Diagnostics.or_expected):ri(t,r,n,i,o,s)}function ii(e,t,r,n,i){var a=et(),o=Ht(),s=Qt(0),c=Xt(58,!1),l=Wn(0),u=171===i?M.createGetAccessorDeclaration(r,n,a,s,c,l):M.createSetAccessorDeclaration(r,n,a,s,l);return u.typeParameters=o,c&&172===u.kind&&(u.type=c),z(Je(u,e),t)}function ai(){var t;if(59===fe())return!0;for(;e.isModifierKind(fe());){if(t=fe(),e.isClassMemberModifier(t))return!0;he()}if(41===fe())return!0;if(Ze()&&(t=fe(),he()),22===fe())return!0;if(void 0!==t){if(!e.isKeyword(t)||148===t||136===t)return!0;switch(fe()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return ze()}}return!1}function oi(){if(oe()&&132===fe()){var t=pe(),r=Ye(e.Diagnostics.Expression_expected);return he(),hn(t,fn(t,r,!0))}return tn()}function si(){var e=pe();if(Be(59)){var t=Z(16384,oi);return Je(M.createDecorator(t),e)}}function ci(){for(var t,r,n=pe();r=si();)t=e.append(t,r);return t&&He(t,n)}function li(t,r,n){var i=pe(),a=fe();if(85===fe()&&t){if(!ke(nt))return}else{if(r&&124===fe()&&Ce(Ti))return;if(n&&124===fe())return;if(!e.isModifierKind(fe())||!ke(it))return}return Je(M.createToken(a),i)}function ui(t,r){for(var n,i,a=pe(),o=!1;i=li(t,r,o);)124===i.kind&&(o=!0),n=e.append(n,i);return n&&He(n,a)}function di(){var e;if(131===fe()){var t=pe();he(),e=He([Je(M.createToken(131),t)],t)}return e}function pi(){var t=pe();if(26===fe())return he(),Je(M.createSemicolonClassElement(),t);var r=_e(),n=ci(),i=ui(!0,!0);if(124===fe()&&Ce(Ti))return((e,t,r,n)=>{Ue(124);var i=(()=>{var e=ne(),t=oe();q(!1),Y(!0);var r=An(!1);return q(e),Y(t),r})();return z(Je(M.createClassStaticBlockDeclaration(r,n,i),e),t)})(t,r,n,i);if(rt(136))return ii(t,r,n,i,171);if(rt(148))return ii(t,r,n,i,172);if(134===fe()||10===fe()){var a=((t,r,n,i)=>ke((()=>{if(134===fe()?we(134):10===fe()&&20===Ce(he)?ke((()=>{var e=Ot();return"constructor"===e.text?e:void 0})):void 0){var a=Ht(),o=Qt(0),s=Xt(58,!1),c=Wn(0,e.Diagnostics.or_expected),l=M.createConstructorDeclaration(n,i,o,c);return l.typeParameters=a,l.type=s,z(Je(l,t),r)}})))(t,r,n,i);if(a)return a}if(tr())return nr(t,r,n,i);if(e.tokenIsIdentifierOrKeyword(fe())||10===fe()||8===fe()||41===fe()||22===fe()){if(e.some(i,Vn)){for(var o=0,s=i;o<s.length;o++)s[o].flags|=8388608;return Z(8388608,(()=>ni(t,r,n,i)))}return ni(t,r,n,i)}if(n||i){var c=$e(79,!0,e.Diagnostics.Declaration_expected);return ri(t,r,n,i,c,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function _i(e,t,r,n){return fi(e,t,r,n,256)}function fi(t,r,n,i,a){var o=oe();we(84);var s=!Ae()||117===fe()&&Ce(pt)?void 0:qe(Ae()),c=Ht();e.some(i,e.isExportModifier)&&Y(!0);var l,u=mi();return we(18)?(l=yt(5,pi),we(19)):l=Tt(),Y(o),z(Je(256===a?M.createClassDeclaration(n,i,s,c,u,l):M.createClassExpression(n,i,s,c,u,l),t),r)}function mi(){if(vi())return yt(22,gi)}function gi(){var t=pe(),r=fe();e.Debug.assert(94===r||117===r),he();var n=St(7,hi);return Je(M.createHeritageClause(r,n),t)}function hi(){var e=pe(),t=tn(),r=yi();return Je(M.createExpressionWithTypeArguments(t,r),e)}function yi(){return 29===fe()?Ct(20,Ir,29,31):void 0}function vi(){return 94===fe()||117===fe()}function bi(){var e=pe(),t=_e(),r=et(),n=ee(jr);return z(Je(M.createEnumMember(r,n),e),t)}function xi(){var e,t=pe();return we(18)?(e=yt(1,Un),we(19)):e=Tt(),Je(M.createModuleBlock(e),t)}function Ei(e,t,r,n,i){var a=16&i,o=Ye(),s=Be(24)?Ei(pe(),!1,void 0,void 0,4|a):xi();return z(Je(M.createModuleDeclaration(r,n,o,s,i),e),t)}function Si(e,t,r,n){var i,a,o=0;return 156===fe()?(i=Ye(),o|=1024):(i=Ot()).text=Ge(i.text),18===fe()?a=xi():We(),z(Je(M.createModuleDeclaration(r,n,i,a,o),e),t)}function Di(){return 20===he()}function Ti(){return 18===he()}function Ci(){return 43===he()}function ki(){var t=pe(),r=e.tokenIsIdentifierOrKeyword(fe())?Qe():Rt(10);we(58);var n=Rt(10);return Je(M.createAssertEntry(r,n),t)}function Ai(){var t=pe();we(129);var r=s.getTokenPos();if(we(18)){var n=s.hasPrecedingLineBreak(),i=St(24,ki,!0);if(!we(19)){var a=e.lastOrUndefined(E);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(u,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Je(M.createAssertClause(i,n),t)}return i=He([],pe(),void 0,!1),Je(M.createAssertClause(i,!1),t)}function Ni(){if(10===fe()){var e=Ot();return e.text=Ge(e.text),e}return Br()}function wi(e){var t=pe();return Je(268===e?M.createNamedImports(Ct(23,Pi,18,19)):M.createNamedExports(Ct(23,Fi,18,19)),t)}function Fi(){return Ii(274)}function Pi(){return Ii(269)}function Ii(t){var r,n=pe(),i=e.isKeyword(fe())&&!Ne(),a=s.getTokenPos(),o=s.getTextPos(),c=!1,l=!0,u=Qe();if("type"===u.escapedText)if(127===fe()){var d=Qe();if(127===fe()){var p=Qe();e.tokenIsIdentifierOrKeyword(fe())?(c=!0,r=d,u=_(),l=!1):(r=u,u=p,l=!1)}else e.tokenIsIdentifierOrKeyword(fe())?(r=u,l=!1,u=_()):(c=!0,u=d)}else e.tokenIsIdentifierOrKeyword(fe())&&(c=!0,u=_());return l&&127===fe()&&(r=u,we(127),u=_()),269===t&&i&&le(a,o,e.Diagnostics.Identifier_expected),Je(269===t?M.createImportSpecifier(c,r,u):M.createExportSpecifier(c,r,u),n);function _(){return i=e.isKeyword(fe())&&!Ne(),a=s.getTokenPos(),o=s.getTextPos(),Qe()}}function Oi(t){return((t,r)=>e.some(t.modifiers,(e=>93===e.kind)))(t)||e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)||e.isImportDeclaration(t)||e.isExportAssignment(t)||e.isExportDeclaration(t)?t:void 0}function Mi(t){return(t=>e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText)(t)?t:_(t,Mi)}!(e=>{e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.JSDocParameters=17]="JSDocParameters",e[e.RestProperties=18]="RestProperties",e[e.TypeParameters=19]="TypeParameters",e[e.TypeArguments=20]="TypeArguments",e[e.TupleElementTypes=21]="TupleElementTypes",e[e.HeritageClauses=22]="HeritageClauses",e[e.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",e[e.AssertEntries=24]="AssertEntries",e[e.Count=25]="Count"})(Fe||(Fe={})),(e=>{e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"})(Pe||(Pe={})),(t=>{function r(e){var t=pe(),r=(e?Be:we)(18),n=Z(4194304,Kt);e&&!r||Le(19);var i=M.createJSDocTypeExpression(n);return H(i),Je(i,t)}function n(){for(var e=pe(),t=Be(18),r=pe(),n=kt(!1);80===fe();)Ee(),ye(),n=Je(M.createJSDocMemberName(n,Ye()),r);t&&Le(19);var i=M.createJSDocNameReference(n);return H(i),Je(i,e)}var i,a;function o(t,i){void 0===t&&(t=0);var a=f,o=void 0===i?a.length:t+i;if(i=o-t,e.Debug.assert(t>=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),p(a,t)){var c,l,d,_,m,g=[],h=[];return s.scanRange(t+3,i-5,(()=>{var r,n,i=1,u=t-(a.lastIndexOf("\n",t)+1)+4;function p(e){r||(r=u),g.push(e),u+=e.length}for(ye();H(5););H(4)&&(i=0,u=0);e:for(;;){switch(fe()){case 59:0===i||1===i?(v(g),m||(m=pe()),(n=D(u))&&(c?c.push(n):(c=[n],l=n.pos),d=n.end),i=0,r=void 0):p(s.getTokenText());break;case 4:g.push(s.getTokenText()),i=0,u=0;break;case 41:var f=s.getTokenText();1===i||2===i?(i=2,p(f)):(i=1,u+=f.length);break;case 5:var b=s.getTokenText();2===i?g.push(b):void 0!==r&&u+b.length>r&&g.push(b.slice(r-u)),u+=b.length;break;case 1:break e;case 18:i=2;var x=s.getStartPos(),E=A(s.getTextPos()-1);if(E){_||y(g),h.push(Je(M.createJSDocText(g.join("")),null!=_?_:t,x)),h.push(E),g=[],_=s.getTextPos();break}default:i=2,p(s.getTokenText())}ye()}v(g),h.length&&g.length&&h.push(Je(M.createJSDocText(g.join("")),null!=_?_:t,m)),h.length&&c&&e.Debug.assertIsDefined(m,"having parsed tags implies that the end of the comment span should be set");var S=c&&He(c,l,d);return Je(M.createJSDocComment(h.length?He(h,t,m):g.length?g.join(""):void 0,S),t,o)}))}function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function b(){for(;;){if(ye(),1===fe())return!0;if(5!==fe()&&4!==fe())return!1}}function x(){if(5!==fe()&&4!==fe()||!Ce(b))for(;5===fe()||4===fe();)ye()}function S(){if((5===fe()||4===fe())&&Ce(b))return"";for(var e=s.hasPrecedingLineBreak(),t=!1,r="";e&&41===fe()||5===fe()||4===fe();)r+=s.getTokenText(),4===fe()?(e=!0,t=!0,r=""):41===fe()&&(e=!1),ye();return t?r:""}function D(t){e.Debug.assert(59===fe());var i=s.getTokenPos();ye();var a,o=J(void 0),l=S();switch(o.escapedText){case"author":a=((t,r,n,i)=>{var a=pe(),o=(()=>{for(var e=[],t=!1,r=s.getToken();1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(s.getTokenText()),s.setTextPos(s.getTokenPos()+1);break}}e.push(s.getTokenText()),r=ye()}return M.createJSDocText(e.join(""))})(),c=s.getStartPos(),l=T(t,c,n,i);l||(c=s.getStartPos());var u="string"!=typeof l?He(e.concatenate([Je(o,a,c)],l),a):o.text+l;return Je(M.createJSDocAuthorTag(r,u),t)})(i,o,t,l);break;case"implements":a=((e,t,r,n)=>{var i=R();return Je(M.createJSDocImplementsTag(t,i,T(e,pe(),r,n)),e)})(i,o,t,l);break;case"augments":case"extends":a=((e,t,r,n)=>{var i=R();return Je(M.createJSDocAugmentsTag(t,i,T(e,pe(),r,n)),e)})(i,o,t,l);break;case"class":case"constructor":a=L(i,M.createJSDocClassTag,o,t,l);break;case"public":a=L(i,M.createJSDocPublicTag,o,t,l);break;case"private":a=L(i,M.createJSDocPrivateTag,o,t,l);break;case"protected":a=L(i,M.createJSDocProtectedTag,o,t,l);break;case"readonly":a=L(i,M.createJSDocReadonlyTag,o,t,l);break;case"override":a=L(i,M.createJSDocOverrideTag,o,t,l);break;case"deprecated":K=!0,a=L(i,M.createJSDocDeprecatedTag,o,t,l);break;case"this":a=((e,t,n,i)=>{var a=r(!0);return x(),Je(M.createJSDocThisTag(t,a,T(e,pe(),n,i)),e)})(i,o,t,l);break;case"enum":a=((e,t,n,i)=>{var a=r(!0);return x(),Je(M.createJSDocEnumTag(t,a,T(e,pe(),n,i)),e)})(i,o,t,l);break;case"arg":case"argument":case"param":return I(i,o,2,t);case"return":case"returns":a=((t,r,n,i)=>{e.some(c,e.isJSDocReturnTag)&&le(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=F();return Je(M.createJSDocReturnTag(r,a,T(t,pe(),n,i)),t)})(i,o,t,l);break;case"template":a=((e,t,n,i)=>{var a=18===fe()?r():void 0,o=(()=>{var e=pe(),t=[];do{x();var r=W();void 0!==r&&t.push(r),S()}while(H(27));return He(t,e)})();return Je(M.createJSDocTemplateTag(t,a,o,T(e,pe(),n,i)),e)})(i,o,t,l);break;case"type":a=O(i,o,t,l);break;case"typedef":a=((t,r,n,i)=>{var a,o=F();S();var s=B();x();var c,l=C(n);if(!o||P(o.type)){for(var d=void 0,p=void 0,_=void 0,f=!1;d=ke((()=>U(n)));)if(f=!0,341===d.kind){if(p){se(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var m=e.lastOrUndefined(E);m&&e.addRelatedInfo(m,e.createDetachedDiagnostic(u,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}p=d}else _=e.append(_,d);if(f){var g=o&&182===o.type.kind,h=M.createJSDocTypeLiteral(_,g);c=(o=p&&p.typeExpression&&!P(p.typeExpression.type)?p.typeExpression:Je(h,t)).end}}return c=c||void 0!==l?pe():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,l||(l=T(t,c,n,i)),Je(M.createJSDocTypedefTag(r,o,s,l),t,c)})(i,o,t,l);break;case"callback":a=((t,r,n,i)=>{var a=B();x();var o=C(n),s=(t=>{for(var r,n,i=pe();r=ke((()=>V(4,t)));)n=e.append(n,r);return He(n||[],i)})(n),c=ke((()=>{if(H(59)){var e=D(n);if(e&&339===e.kind)return e}})),l=Je(M.createJSDocSignature(void 0,s,c),t);return o||(o=T(t,pe(),n,i)),Je(M.createJSDocCallbackTag(r,l,a,o),t)})(i,o,t,l);break;case"see":a=((t,r,i,a)=>{var o=22===fe()||Ce((()=>59===ye()&&e.tokenIsIdentifierOrKeyword(ye())&&"link"===s.getTokenValue()))?void 0:n(),c=void 0!==i&&void 0!==a?T(t,pe(),i,a):void 0;return Je(M.createJSDocSeeTag(r,o,c),t)})(i,o,t,l);break;default:a=((e,t,r,n)=>Je(M.createJSDocUnknownTag(t,T(e,pe(),r,n)),e))(i,o,t,l)}return a}function T(e,t,r,n){return n||(r+=t-e),C(r,n.slice(r))}function C(e,t){var r,n,i=pe(),a=[],o=[],c=0,l=!0;function u(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&u(t),c=1);var d=fe();e:for(;;){switch(d){case 4:c=0,a.push(s.getTokenText()),e=0;break;case 59:if(3===c||2===c&&(!l||Ce(k))){a.push(s.getTokenText());break}s.setTextPos(s.getTextPos()-1);case 1:break e;case 5:if(2===c||3===c)u(s.getTokenText());else{var p=s.getTokenText();void 0!==n&&e+p.length>n&&a.push(p.slice(n-e)),e+=p.length}break;case 18:c=2;var _=s.getStartPos(),f=A(s.getTextPos()-1);f?(o.push(Je(M.createJSDocText(a.join("")),null!=r?r:i,_)),o.push(f),a=[],r=s.getTextPos()):u(s.getTokenText());break;case 61:c=3===c?2:3,u(s.getTokenText());break;case 41:if(0===c){c=1,e+=1;break}default:3!==c&&(c=2),u(s.getTokenText())}l=5===fe(),d=ye()}return y(a),v(a),o.length?(a.length&&o.push(Je(M.createJSDocText(a.join("")),null!=r?r:i)),He(o,i,s.getTextPos())):a.length?a.join(""):void 0}function k(){var e=ye();return 5===e||4===e}function A(t){var r=ke(N);if(r){ye(),x();var n=pe(),i=e.tokenIsIdentifierOrKeyword(fe())?kt(!0):void 0;if(i)for(;80===fe();)Ee(),ye(),i=Je(M.createJSDocMemberName(i,Ye()),n);for(var a=[];19!==fe()&&4!==fe()&&1!==fe();)a.push(s.getTokenText()),ye();return Je(("link"===r?M.createJSDocLink:"linkcode"===r?M.createJSDocLinkCode:M.createJSDocLinkPlain)(i,a.join("")),t,s.getTextPos())}}function N(){if(S(),18===fe()&&59===ye()&&e.tokenIsIdentifierOrKeyword(ye())){var t=s.getTokenValue();if("link"===t||"linkcode"===t||"linkplain"===t)return t}}function F(){return S(),18===fe()?r():void 0}function P(t){switch(t.kind){case 147:return!0;case 182:return P(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function I(t,r,n,i){var a=F(),o=!a;S();var s=(()=>{var t=H(22);t&&x();var r=H(61),n=(()=>{var e=J();for(Be(22)&&we(23);Be(24);){var t=J();Be(22)&&we(23),e=At(e,t)}return e})();return r&&((e=>{if(61===fe())return t=pe(),r=fe(),ye(),Je(M.createToken(r),t);var t,r})()||$e(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),t&&(x(),je(63)&&Br(),we(23)),{name:n,isBracketed:t}})(),c=s.name,l=s.isBracketed,u=S();o&&!Ce(N)&&(a=F());var d=T(t,pe(),i,u),p=4!==n&&((t,r,n,i)=>{if(t&&P(t.type)){for(var a=pe(),o=void 0,s=void 0;o=ke((()=>V(n,i,r)));)338!==o.kind&&345!==o.kind||(s=e.append(s,o));if(s){var c=Je(M.createJSDocTypeLiteral(s,182===t.type.kind),a);return Je(M.createJSDocTypeExpression(c),a)}}})(a,c,n,i);return p&&(a=p,o=!0),Je(1===n?M.createJSDocPropertyTag(r,c,l,a,o,d):M.createJSDocParameterTag(r,c,l,a,o,d),t)}function O(t,n,i,a){e.some(c,e.isJSDocTypeTag)&&le(n.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),l=void 0!==i&&void 0!==a?T(t,pe(),i,a):void 0;return Je(M.createJSDocTypeTag(n,o,l),t)}function R(){var e=Be(18),t=pe(),r=(()=>{for(var e=pe(),t=J();Be(24);){var r=J();t=Je(M.createPropertyAccessExpression(t,r),e)}return t})(),n=yi(),i=Je(M.createExpressionWithTypeArguments(r,n),t);return e&&we(19),i}function L(e,t,r,n,i){return Je(t(r,T(e,pe(),n,i)),e)}function B(t){var r=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(fe())){var n=J();if(Be(24)){var i=B(!0);return Je(M.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function j(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function U(e){return V(1,e)}function V(t,r,n){for(var i=!0,a=!1;;)switch(ye()){case 59:if(i){var o=z(t,r);return!(o&&(338===o.kind||345===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!j(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function z(t,r){e.Debug.assert(59===fe());var n=s.getStartPos();ye();var i,a=J();switch(x(),a.escapedText){case"type":return 1===t&&O(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&I(n,a,t,r)}function W(){var t=pe(),r=H(22);r&&x();var n,i=J(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(r&&(x(),we(63),n=Z(4194304,Kt),we(23)),!e.nodeIsMissing(i))return Je(M.createTypeParameterDeclaration(i,void 0,n),t)}function H(e){return fe()===e&&(ye(),!0)}function J(t){if(!e.tokenIsIdentifierOrKeyword(fe()))return $e(79,!t,t||e.Diagnostics.Identifier_expected);w++;var r=s.getTokenPos(),n=s.getTextPos(),i=fe(),a=Ge(s.getTokenValue()),o=Je(M.createIdentifier(a,void 0,i),r,n);return ye(),o}}t.parseJSDocTypeExpressionForTests=(t,n,i)=>{j("file.js",t,99,void 0,1),s.setText(t,n,i),C=s.scan();var a=r(),o=J("file.js",99,1,!1,[],M.createToken(1),0),c=e.attachFileToDiagnostics(E,o);return S&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(S,o)),U(),a?{jsDocTypeExpression:a,diagnostics:c}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=(t,r,n)=>{j("",t,99,void 0,1);var i=Z(4194304,(()=>o(r,n))),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(E,a);return U(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=(t,r,n)=>{var i=C,a=E.length,s=L,c=Z(4194304,(()=>o(r,n)));return e.setParent(c,t),131072&I&&(S||(S=[]),S.push.apply(S,E)),C=i,E.length=a,L=s,c},(e=>{e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"})(i||(i={})),(e=>{e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"})(a||(a={}))})(Ie=t.JSDocParser||(t.JSDocParser={}))})(c||(c={})),(t=>{function r(t,r,i,o,s,c){return void(r?u(t):l(t));function l(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),_(t,l,u),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d<p.length;d++)l(p[d]);a(t,c)}function u(t){t._children=void 0,e.setTextRangePosEnd(t,t.pos+i,t.end+i);for(var r=0,n=t;r<n.length;r++)l(n[r])}}function n(e){switch(e.kind){case 10:case 8:case 79:return!0}return!1}function i(t,r,n,i,a){e.Debug.assert(t.end>=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=t=>{e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a<o.length;a++)i(o[a]);_(t,i),e.Debug.assert(n<=t.end)}}function o(t,r){var n,i=t;if(_(t,(function t(a){if(!e.nodeIsMissing(a))return a.pos<=r?(a.pos>=i.pos&&(i=a),r<a.end?(_(a,t),!0):(e.Debug.assert(a.end<=r),void(n=a))):(e.Debug.assert(a.pos>r),!0)})),n){var a=(t=>{for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}})(n);a.pos>i.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),l=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===l)}}function l(t){var r=t.statements,n=0;e.Debug.assert(n<r.length);var i=r[n],a=-1;return{currentNode:o=>(o!==a&&(i&&i.end===o&&n<r.length-1&&(n++,i=r[n]),i&&i.pos===o||(e=>{return r=void 0,n=-1,i=void 0,void _(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(_(t,a,o),!0)}function o(t){if(e>=t.pos&&e<t.end)for(var s=0;s<t.length;s++){var c=t[s];if(c){if(c.pos===e)return r=t,n=s,i=c,!0;if(c.pos<e&&e<c.end)return _(c,a,o),!0}}return!1}})(o)),a=o,e.Debug.assert(!i||i.pos===o),i)}}var u;t.updateSourceFile=(t,n,u,d)=>{if(s(t,n,u,d=d||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return c.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var p=t;e.Debug.assert(!p.hasBeenIncrementallyParsed),p.hasBeenIncrementallyParsed=!0,c.fixupParentReferences(p);var f=t.text,m=l(t),g=((t,r)=>{for(var n=r.span.start,i=0;n>0&&i<=1;i++){var a=o(t,n);e.Debug.assert(a.pos<=n);var s=a.pos;n=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,l)})(t,u);s(t,n,g,d),e.Debug.assert(g.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(g.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(g))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var h=e.textChangeRangeNewSpan(g).length-g.span.length;!((t,n,o,s,c,l,u,d)=>{return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,l,u,d);else{var m=t.end;if(m>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),_(t,p,f),e.hasJSDocNodes(t))for(var g=0,h=t.jsDoc;g<h.length;g++)p(h[g]);a(t,d)}else e.Debug.assert(m<n)}}function f(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!0,c,l,u,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_<f.length;_++)p(f[_])}else e.Debug.assert(a<n)}}})(p,g.span.start,e.textSpanEnd(g.span),e.textSpanEnd(e.textChangeRangeNewSpan(g)),h,f,n,d);var y=c.parseSourceFile(t.fileName,n,t.languageVersion,m,!0,t.scriptKind);return y.commentDirectives=((t,r,n,i,a,o,s,c)=>{if(!t)return r;for(var l,u=!1,d=0,p=t;d<p.length;d++){var _=p[d],f=_.range,m=_.type;if(f.end<n)l=e.append(l,_);else if(f.pos>i){h();var g={range:{pos:f.pos+a,end:f.end+a},type:m};l=e.append(l,g),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(g.range.pos,g.range.end))}}return h(),l;function h(){u||(u=!0,l?r&&l.push.apply(l,r):l=r)}})(t.commentDirectives,y.commentDirectives,g.span.start,e.textSpanEnd(g.span),h,f,n,d),y.impliedNodeFormat=t.impliedNodeFormat,y},t.createSyntaxCursor=l,(e=>{e[e.Value=-1]="Value"})(u||(u={}))})(l||(l={})),e.isDeclarationFileName=g,e.processCommentPragmas=h,e.processPragmasIntoFields=y;var v=new e.Map;function b(e){if(v.has(e))return v.get(e);var t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return v.set(e,t),t}var x=/^\/\/\/\s*<(\S+)\s.*?\/>/im,E=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function S(t,r,n){var i=2===r.kind&&x.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c<l.length;c++){var u=l[c],d=b(u.name).exec(n);if(!d&&!u.optional)return;if(d){var p=d[2]||d[3];if(u.captureSpan){var _=r.pos+d.index+d[1].length+1;s[u.name]={value:p,pos:_,end:_+p.length}}else s[u.name]=p}}t.push({name:a,args:{arguments:s,range:r}})}else t.push({name:a,args:{arguments:{},range:r}})}else{var f=2===r.kind&&E.exec(n);if(f)return D(t,r,2,f);if(3===r.kind)for(var m=/@(\S+)(\s+.*)?$/gim,g=void 0;g=m.exec(n);)D(t,r,4,g)}}function D(t,r,n,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&n){var s=((t,r)=>{if(!r)return{};if(!t.args)return{};for(var n=e.trimString(r).split(/\s+/),i={},a=0;a<t.args.length;a++){var o=t.args[a];if(!n[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=n[a]}return i})(o,i[2]);"fail"!==s&&t.push({name:a,args:{arguments:s,range:r}})}}}function T(e,t){return e.kind===t.kind&&(79===e.kind?e.escapedText===t.escapedText:108===e.kind||e.name.escapedText===t.name.escapedText&&T(e.expression,t.expression))}e.tagNamesAreEquivalent=T})(Fl),(e=>{e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:"false"};var t=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(t.entries(),(e=>{var t=e[0];return[""+e[1],t]}))));var r=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2021.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=r.map((e=>e[0])),e.libMap=new e.Map(r),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:"false"},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Ee},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Ee},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:"false"},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:"false"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:"false"},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:"false"},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:"false"},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:"false"},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:"false"},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:"true"},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:"false"},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:"false"},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:"ES3"};var n,i=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:"false"},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:"false"},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:"false"},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:"false"},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:"false"},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:"false"},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node12:e.ModuleKind.Node12,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:"false"},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:"false"},{name:"jsx",type:t,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:"undefined"},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:"false"},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:"false"},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:"false"},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:"false"},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,defaultValueDescription:"false"},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:"false"},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:"false"},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:"false"},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:"false"},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Include_undefined_in_index_signature_results,defaultValueDescription:"false"},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:"false"},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:"false"},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node12:e.ModuleResolutionKind.Node12,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:"false"},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:"false"},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:"false"},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:"false"},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:"false"},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:"false"},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:"false"},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:"false"},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:"false"},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:"false"},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:"false"},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:"false"},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:"false"},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:"false"},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:"false"},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:"false"},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:"false"},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:"false"},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:"false"},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:"undefined"},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:"undefined"},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:"false"},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:"false"},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:"false"},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:"0"},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:"false"},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:"false"},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:"false"},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins,category:e.Diagnostics.Editor_Support}];function a(t){var r=new e.Map,n=new e.Map;return e.forEach(t,(e=>{r.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:r,shortOptionNames:n}}function o(){return n||(n=a(e.optionDeclarations))}e.optionDeclarations=Il(Il([],e.commonOptionsWithBuild,!0),i,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((e=>!!e.affectsSemanticDiagnostics)),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter((e=>!!e.affectsEmit)),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter((e=>!!e.affectsModuleResolution)),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter((e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics)),e.optionsAffectingProgramStructure=e.optionDeclarations.filter((e=>!!e.affectsProgramStructure)),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((t=>e.hasProperty(t,"transpileOptionValue"))),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:"false"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:"false"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:"false"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:"false"}],e.buildOpts=Il(Il([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:"false"},{name:"enable",type:"boolean",defaultValueDescription:"false"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:"false"}],e.createOptionNameMap=a,e.getOptionsNameMap=o;var s,c={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:b};function l(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function u(t){return d(t,e.createCompilerDiagnostic)}function d(t,r){var n=e.arrayFrom(t.type.keys()).map((e=>"'".concat(e,"'"))).join(", ");return r(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(t.name),n)}function p(t,r,n){return me(t,e.trimString(r||""),n)}function _(t,r,n){if(void 0===r&&(r=""),r=e.trimString(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.mapDefined(i,(e=>fe(t.element,parseInt(e),n)));case"string":return e.mapDefined(i,(e=>fe(t.element,e||"",n)));default:return e.mapDefined(i,(e=>p(t.element,e,n)))}}}function f(e){return e.name}function m(t,r,n,i){var a;if(null===(a=r.alternateMode)||void 0===a?void 0:a.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return n(r.alternateMode.diagnostic,t);var o=e.getSpellingSuggestion(t,r.optionDeclarations,f);return o?n(r.unknownDidYouMeanDiagnostic,i||t,o.name):n(r.unknownOptionDiagnostic,i||t)}function g(t,r,n){var i,a={},o=[],s=[];return c(r),{options:a,watchOptions:i,fileNames:o,errors:s};function c(r){for(var n=0;n<r.length;){var c=r[n];if(n++,64===c.charCodeAt(0))l(c.slice(1));else if(45===c.charCodeAt(0)){var u=c.slice(45===c.charCodeAt(1)?2:1),d=v(t.getOptionsNameMap,u,!0);if(d)n=h(r,n,t,d,a,s);else{var p=v(I.getOptionsNameMap,u,!0);p?n=h(r,n,I,p,i||(i={}),s):s.push(m(u,t,e.createCompilerDiagnostic,c))}}else o.push(c)}}function l(t){var r=D(t,n||(t=>e.sys.readFile(t)));if(e.isString(r)){for(var i=[],a=0;;){for(;a<r.length&&r.charCodeAt(a)<=32;)a++;if(a>=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a<r.length&&34!==r.charCodeAt(a);)a++;a<r.length?(i.push(r.substring(o+1,a)),a++):s.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(a)>32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function h(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=fe(i,!1,o),r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,U(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=fe(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=fe(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=fe(i,t[r]||"",o),r++;break;case"list":var c=_(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=p(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function y(e,t){return v(o,e,t)}function v(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function b(){return s||(s=a(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=l,e.createCompilerDiagnosticForInvalidCustomType=u,e.parseCustomTypeOption=p,e.parseListTypeOption=_,e.parseCommandLineWorker=g,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:c,getOptionsNameMap:o,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=(t,r)=>g(e.compilerOptionsDidYouMeanDiagnostics,t,r),e.getOptionFromName=y;var x={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:o},getOptionsNameMap:b,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function E(t,r){var n=e.parseJsonText(t,r);return{config:L(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function S(t,r){var n=D(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function D(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function T(t){return e.arrayToMap(t,f)}e.parseBuildCommand=t=>{var r=g(x,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=e.createCompilerDiagnostic.apply(void 0,arguments);return i.messageText},e.getParsedCommandLineOfConfigFile=(t,r,n,i,a,o)=>{var s=D(t,(e=>n.readFile(e)));if(e.isString(s)){var c=e.parseJsonText(t,s),l=n.getCurrentDirectory();return c.path=e.toPath(t,l,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)),c.resolvedPath=c.path,c.originalFileName=c.fileName,X(c,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),l),r,e.getNormalizedAbsolutePath(t,l),void 0,o,i,a)}n.onUnRecoverableConfigFileDiagnostic(s)},e.readConfigFile=(t,r)=>{var n=D(t,r);return e.isString(n)?E(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=E,e.readJsonConfigFile=S,e.tryReadFile=D;var C,k={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function A(){return C||(C=a(e.optionsForWatch))}var N,w,F,P,I={getOptionsNameMap:A,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function O(){return N||(N=T(e.optionDeclarations))}function M(){return w||(w=T(e.optionsForWatch))}function R(){return F||(F=T(e.typeAcquisitionDeclarations))}function L(t,r,n,i){var a,o=null===(a=t.statements[0])||void 0===a?void 0:a.expression,s=n?(void 0===P&&(P={name:void 0,type:"object",elementOptions:T([{name:"compilerOptions",type:"object",elementOptions:O(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:M(),extraKeyDiagnostics:I},{name:"typingOptions",type:"object",elementOptions:R(),extraKeyDiagnostics:k},{name:"typeAcquisition",type:"object",elementOptions:R(),extraKeyDiagnostics:k},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),P):void 0;if(o&&204!==o.kind){if(r.push(e.createDiagnosticForNodeInSourceFile(t,o,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===e.getBaseFileName(t.fileName)?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(o)){var c=e.find(o.elements,e.isObjectLiteralExpression);if(c)return j(t,c,r,!0,s,i)}return{}}return j(t,o,r,!0,s,i)}function B(e,t){var r;return j(e,null===(r=e.statements[0])||void 0===r?void 0:r.expression,t,!0,void 0,void 0)}function j(t,r,n,i,a,o){return r?l(r,a):i?{}:void 0;function s(e){return a&&a.elementOptions===e}function c(r,a,c,d){for(var p=i?{}:void 0,_=r=>{if(294!==r.kind)return n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_assignment_expected)),"continue";r.questionToken&&n.push(e.createDiagnosticForNodeInSourceFile(t,r.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),u(r.name)||n.push(e.createDiagnosticForNodeInSourceFile(t,r.name,e.Diagnostics.String_literal_with_double_quotes_expected));var _=e.isComputedNonLiteralName(r.name)?void 0:e.getTextOfPropertyName(r.name),f=_&&e.unescapeLeadingUnderscores(_),g=f&&a?a.get(f):void 0;f&&c&&!g&&(a?n.push(m(f,c,((n,i,a)=>e.createDiagnosticForNodeInSourceFile(t,r.name,n,i,a)))):n.push(e.createDiagnosticForNodeInSourceFile(t,r.name,c.unknownOptionDiagnostic,f)));var h=l(r.initializer,g);if(void 0!==f&&(i&&(p[f]=h),o&&(d||s(a)))){var y=V(g,h);d?y&&o.onSetValidOptionKeyValueInParent(d,g,h):s(a)&&(y?o.onSetValidOptionKeyValueInRoot(f,r.name,h,r.initializer):g||o.onSetUnknownOptionKeyValueInRoot(f,r.name,h,r.initializer))}},f=0,g=r.properties;f<g.length;f++)_(g[f]);return p}function l(r,a){var o;switch(r.kind){case 110:return g(a&&"boolean"!==a.type),m(!0);case 95:return g(a&&"boolean"!==a.type),m(!1);case 104:return g(a&&"extends"===a.name),m(null);case 10:u(r)||n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.String_literal_with_double_quotes_expected)),g(a&&e.isString(a.type)&&"string"!==a.type);var s=r.text;if(a&&!e.isString(a.type)){var p=a;p.type.has(s.toLowerCase())||(n.push(d(p,((n,i,a)=>e.createDiagnosticForNodeInSourceFile(t,r,n,i,a)))),o=!0)}return m(s);case 8:return g(a&&"number"!==a.type),m(Number(r.text));case 218:if(40!==r.operator||8!==r.operand.kind)break;return g(a&&"number"!==a.type),m(-Number(r.operand.text));case 204:g(a&&"object"!==a.type);var _=r;if(a){var f=a;return m(c(_,f.elementOptions,f.extraKeyDiagnostics,f.name))}return m(c(_,void 0,void 0,void 0));case 203:return g(a&&"list"!==a.type),m(((t,r)=>{if(i)return e.filter(t.map((e=>l(e,r))),(e=>void 0!==e));t.forEach((e=>l(e,r)))})(r.elements,a&&a.element))}return void(a?g(!0):n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function m(i){var s;if(!o){var c=null===(s=null==a?void 0:a.extraValidation)||void 0===s?void 0:s.call(a,i);if(c)return void n.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,Il([t,r],c,!1)))}return i}function g(i){i&&(n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,a.name,U(a))),o=!0)}}function u(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function U(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function V(t,r){return!!t&&(!!Q(r)||("list"===t.type?e.isArray(r):typeof r===(e.isString(t.type)?t.type:"string")))}function z(t){return Ol({},e.arrayFrom(t.entries()).reduce(((e,t)=>{var r;return Ol(Ol({},e),((r={})[t[0]]=t[1],r))}),{}))}function K(t){if(e.length(t)){if(1!==e.length(t))return t;if("**/*"!==t[0])return t}}function W(e){return"string"===e.type||"number"===e.type||"boolean"===e.type||"object"===e.type?void 0:"list"===e.type?W(e.element):e.type}function H(t,r){return e.forEachEntry(r,((e,r)=>{if(e===t)return r}))}function J(e,t){return $(e,o(),t)}function $(t,r,n){var i=r.optionsNameMap,a=new e.Map,o=n&&e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=r=>{if(e.hasProperty(t,r)){if(i.has(r)&&(i.get(r).category===e.Diagnostics.Command_line_Options||i.get(r).category===e.Diagnostics.Output_Formatting))return"continue";var s=t[r],c=i.get(r.toLowerCase());if(c){var l=W(c);l?"list"===c.type?a.set(r,s.map((e=>H(e,l)))):a.set(r,H(s,l)):n&&c.isFilePath?a.set(r,e.getRelativePathFromFile(n.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(n.configFilePath)),o)):a.set(r,s)}}};for(var c in t)s(c);return a}function G(t){return J(e.extend(t,e.defaultInitCompilerOptions))}function q(e,t,r){if(e&&!Q(t))if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function X(e,t,r,n,i,a,o,s,c){return ee(void 0,e,t,r,n,c,i,a,o,s)}function Y(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function Q(e){return null==e}function Z(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function ee(t,r,n,i,a,o,s,c,l,u){void 0===a&&(a={}),void 0===c&&(c=[]),void 0===l&&(l=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var d=[],p=ie(t,r,n,i,s,c,d,u),_=p.raw,f=e.extend(a,p.options||{}),m=o&&p.watchOptions?e.extend(o,p.watchOptions):p.watchOptions||o;f.configFilePath=s&&e.normalizeSlashes(s);var g=(()=>{var t=b("references",(e=>"object"==typeof e),"object"),n=y(v("files"));if(n){var i="no-prop"===t||e.isArray(t)&&0===t.length,a=e.hasProperty(_,"extends");if(0===n.length&&i&&!a)if(r){var o=s||"tsconfig.json",c=e.Diagnostics.The_files_list_in_config_file_0_is_empty,l=e.firstDefined(e.getTsConfigPropArray(r,"files"),(e=>e.initializer)),u=l?e.createDiagnosticForNodeInSourceFile(r,l,c,o):e.createCompilerDiagnostic(c,o);d.push(u)}else x(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}var p,f,m=y(v("include")),g=v("exclude"),h=y(g);if("no-prop"===g&&_.compilerOptions){var E=_.compilerOptions.outDir,S=_.compilerOptions.declarationDir;(E||S)&&(h=[E,S].filter((e=>!!e)))}return void 0===n&&void 0===m&&(m=["**/*"]),m&&(p=xe(m,d,!0,r,"include")),h&&(f=xe(h,d,!1,r,"exclude")),{filesSpecs:n,includeSpecs:m,excludeSpecs:h,validatedFilesSpec:e.filter(n,e.isString),validatedIncludeSpecs:p,validatedExcludeSpecs:f,pathPatterns:void 0}})();r&&(r.configFileSpecs=g),Y(f,r);var h=e.normalizePath(s?Z(s,i):i);return{options:f,watchOptions:m,fileNames:(e=>{var t=ye(g,e,f,n,l);return re(t,ne(_),c)&&d.push(te(g,s)),t})(h),projectReferences:(t=>{var r,n=b("references",(e=>"object"==typeof e),"object");if(e.isArray(n))for(var i=0,a=n;i<a.length;i++){var o=a[i];"string"!=typeof o.path?x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(r||(r=[])).push({path:e.getNormalizedAbsolutePath(o.path,t),originalPath:o.path,prepend:o.prepend,circular:o.circular})}return r})(h),typeAcquisition:p.typeAcquisition||ce(),raw:_,errors:d,wildcardDirectories:Se(g,h,n.useCaseSensitiveFileNames),compileOnSave:!!_.compileOnSave};function y(t){return e.isArray(t)?t:void 0}function v(t){return b(t,e.isString,"string")}function b(t,n,i){if(e.hasProperty(_,t)&&!Q(_[t])){if(e.isArray(_[t])){var a=_[t];return r||e.every(a,n)||d.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,i)),a}return x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,"Array"),"not-array"}return"no-prop"}function x(t,n,i){r||d.push(e.createCompilerDiagnostic(t,n,i))}}function te(t,r){var n=t.includeSpecs,i=t.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(n||[]),JSON.stringify(i||[]))}function re(e,t,r){return 0===e.length&&t&&(!r||0===r.length)}function ne(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}function ie(t,r,n,a,o,s,c,l){var u;a=e.normalizeSlashes(a);var d=e.getNormalizedAbsolutePath(o||"",a);if(s.indexOf(d)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,Il(Il([],s,!0),[d],!1).join(" -> "))),{raw:t||B(r,c)};var p=t?((t,r,n,i,a)=>{e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=se(t.compilerOptions,n,a,i),c=le(t.typeAcquisition||t.typingOptions,n,a,i),l=((e,t,r)=>ue(M(),e,t,void 0,I,r))(t.watchOptions,n,a);if(t.compileOnSave=((t,r,n)=>{if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=de(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i})(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?Z(i,n):n;o=ae(t.extends,r,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}})(t,n,a,o,c):((t,r,n,a,o)=>{var s,c,l,u,d,p=oe(a),_={onSetValidOptionKeyValueInParent(t,r,i){var o;switch(t){case"compilerOptions":o=p;break;case"watchOptions":o=l||(l={});break;case"typeAcquisition":o=s||(s=ce(a));break;case"typingOptions":o=c||(c=ce(a));break;default:e.Debug.fail("Unknown option")}o[r.name]=pe(r,n,i)},onSetValidOptionKeyValueInRoot(i,s,c,l){switch(i){case"extends":var d=a?Z(a,n):n;return void(u=ae(c,r,d,o,((r,n)=>e.createDiagnosticForNodeInSourceFile(t,l,r,n))))}},onSetUnknownOptionKeyValueInRoot(r,n,a,s){"excludes"===r&&o.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(i,(e=>e.name===r))&&(d=e.append(d,n))}},f=L(t,o,!0,_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:ce(a)),d&&f&&void 0===f.compilerOptions&&o.push(e.createDiagnosticForNodeInSourceFile(t,d[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(d[0]))),{raw:f,options:p,watchOptions:l,typeAcquisition:s,extendedConfigPath:u}})(r,n,a,o,c);if((null===(u=p.options)||void 0===u?void 0:u.paths)&&(p.options.pathsBasePath=a),p.extendedConfigPath){s=s.concat([d]);var _=((t,r,n,i,a,o)=>{var s,c,l,u,d=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);if(o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):((l=S(r,(e=>n.readFile(e)))).parseDiagnostics.length||(u=ie(void 0,l,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u})),t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,l.extendedSourceFiles)),!l.parseDiagnostics.length)return u;a.push.apply(a,l.parseDiagnostics)})(r,p.extendedConfigPath,n,s,c,l);if(_&&_.options){var f,m=_.raw,g=p.raw,h=t=>{!g[t]&&m[t]&&(g[t]=e.map(m[t],(t=>e.isRootedDiskPath(t)?t:e.combinePaths(f||(f=e.convertToRelativePath(e.getDirectoryPath(p.extendedConfigPath),a,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames))),t))))};h("include"),h("exclude"),h("files"),void 0===g.compileOnSave&&(g.compileOnSave=m.compileOnSave),p.options=e.assign({},_.options,p.options),p.watchOptions=p.watchOptions&&_.watchOptions?e.assign({},_.watchOptions,p.watchOptions):p.watchOptions||_.watchOptions}}return p}function ae(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o="".concat(o,".json"),r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function oe(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function se(t,r,n,i){var a=oe(i);return ue(O(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ce(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function le(e,t,r,n){var i=ce(n),a=l(e);return ue(R(),a,t,i,k,r),i}function ue(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=de(c,r[s],n,o):o.push(m(s,a,e.createCompilerDiagnostic))}return i}}function de(t,r,n,i){if(V(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return((t,r,n,i)=>e.filter(e.map(r,(e=>de(t.element,e,n,i))),(e=>!!e)))(t,r,n,i);if(!e.isString(a))return me(t,r,i);var o=fe(t,r,i);return Q(o)?o:_e(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,U(t)))}function pe(t,r,n){if(!Q(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(e=>pe(i.element,r,e))),(e=>!!e)):n}return e.isString(t.type)?_e(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function _e(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function fe(t,r,n){var i;if(!Q(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function me(e,t,r){if(!Q(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return fe(e,i,r);r.push(u(e))}}e.convertToObject=B,e.convertToObjectWorker=j,e.convertToTSConfig=(t,r,n)=>{var i,a,o,s=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),c=e.map(e.filter(t.fileNames,(null===(a=null===(i=t.options.configFile)||void 0===i?void 0:i.configFileSpecs)||void 0===a?void 0:a.validatedIncludeSpecs)?((t,r,n,i)=>{if(!r)return e.returnTrue;var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);return s?o?e=>!(s.test(e)&&!o.test(e)):e=>!s.test(e):o?e=>o.test(e):e.returnTrue})(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,n):e.returnTrue),(t=>e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),s))),l=J(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),u=t.watchOptions&&$(t.watchOptions,A());return Ol(Ol({compilerOptions:Ol(Ol({},z(l)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:u&&z(u),references:e.map(t.projectReferences,(e=>Ol(Ol({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:e.length(c)?c:void 0},(null===(o=t.options.configFile)||void 0===o?void 0:o.configFileSpecs)?{include:K(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.getCompilerOptionsDiffValue=(t,r)=>{var n,a,o=G(t);return n=[],a=Array(3).join(" "),i.forEach((t=>{if(o.has(t.name)){var r=o.get(t.name),i=Ce(t);r!==i?n.push("".concat(a).concat(t.name,": ").concat(r)):e.hasProperty(e.defaultInitCompilerOptions,t.name)&&n.push("".concat(a).concat(t.name,": ").concat(i))}})),n.join(r)+r},e.generateTSConfig=(t,r,n)=>{var i=G(t);return(()=>{for(var t=e.createMultiMap(),s=0,c=e.optionDeclarations;s<c.length;s++){var l=c[s],u=l.category;o(l)&&t.add(e.getLocaleSpecificMessage(u),l)}var d=0,p=0,_=[];t.forEach(((t,r)=>{0!==_.length&&_.push({value:""}),_.push({value:"/* ".concat(r," */")});for(var n=0,a=t;n<a.length;n++){var o,s=a[n];o=i.has(s.name)?'"'.concat(s.name,'": ').concat(JSON.stringify(i.get(s.name))).concat((p+=1)===i.size?"":","):'// "'.concat(s.name,'": ').concat(JSON.stringify(Ce(s)),","),_.push({value:o,description:"/* ".concat(s.description&&e.getLocaleSpecificMessage(s.description)||s.name," */")}),d=Math.max(o.length,d)}}));var f=a(2),m=[];m.push("{"),m.push("".concat(f,'"compilerOptions": {')),m.push("".concat(f).concat(f,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)," */")),m.push("");for(var g=0,h=_;g<h.length;g++){var y=h[g],v=y.value,b=y.description,x=void 0===b?"":b;m.push(v&&"".concat(f).concat(f).concat(v).concat(x&&a(d-v.length+2)+x))}if(r.length){m.push("".concat(f,"},")),m.push("".concat(f,'"files": ['));for(var E=0;E<r.length;E++)m.push("".concat(f).concat(f).concat(JSON.stringify(r[E])).concat(E===r.length-1?"":","));m.push("".concat(f,"]"))}else m.push("".concat(f,"}"));return m.push("}"),m.join(n)+n})();function a(e){return Array(e+1).join(" ")}function o(t){var r=t.category,n=t.name,a=t.isCommandLineOnly,o=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!a&&void 0!==r&&(!o.includes(r)||i.has(n))}},e.convertToOptionsWithAbsolutePaths=(t,r)=>{var n={},i=o().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=q(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n},e.parseJsonConfigFileContent=(e,t,r,n,i,a,o,s,c)=>ee(e,void 0,t,r,n,c,i,a,o,s),e.parseJsonSourceFileConfigFileContent=X,e.setConfigFileInOptions=Y,e.canJsonReportNoInputFiles=ne,e.updateErrorForNoInputFiles=(t,r,n,i,a)=>{var o=i.length;return re(t,a)?i.push(te(n,r)):e.filterMutate(i,(t=>!(t=>t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code)(t))),o!==i.length},e.convertCompilerOptionsFromJson=(e,t,r)=>{var n=[];return{options:se(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=(e,t,r)=>{var n=[];return{options:le(e,t,n,r),errors:n}},e.convertJsonOption=de;var ge=/(^|\/)\*\*\/?$/,he=/^[^*?]*(?=\/[^/]*[*?])/;function ye(t,r,n,i,a){void 0===a&&(a=e.emptyArray),r=e.normalizePath(r);var o,s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),c=new e.Map,l=new e.Map,u=new e.Map,d=t.validatedFilesSpec,p=t.validatedIncludeSpecs,_=t.validatedExcludeSpecs,f=e.getSupportedExtensions(n,a),m=e.getSupportedExtensionsWithJsonIfResolveJsonModule(n,f);if(d)for(var g=0,h=d;g<h.length;g++){var y=h[g],v=e.getNormalizedAbsolutePath(y,r);c.set(s(v),v)}if(p&&p.length>0)for(var b=t=>{if(e.fileExtensionIs(t,".json")){if(!o){var n=p.filter((t=>e.endsWith(t,".json"))),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(e=>"^".concat(e,"$")));o=a?a.map((t=>e.getRegexFromPattern(t,i.useCaseSensitiveFileNames))):e.emptyArray}if(-1!==e.findIndex(o,(e=>e.test(t)))){var d=s(t);c.has(d)||u.has(d)||u.set(d,t)}return"continue"}if(((t,r,n,i,a)=>{var o=e.forEach(i,(r=>e.fileExtensionIsOneOf(t,r)?r:void 0));if(!o)return!1;for(var s=0,c=o;s<c.length;s++){var l=c[s];if(e.fileExtensionIs(t,l))return!1;var u=a(e.changeExtension(t,l));if(r.has(u)||n.has(u)){if(".d.ts"===l&&(e.fileExtensionIs(t,".js")||e.fileExtensionIs(t,".jsx")))continue;return!0}}return!1})(t,c,l,f,s))return"continue";!((t,r,n,i)=>{var a=e.forEach(n,(r=>e.fileExtensionIsOneOf(t,r)?r:void 0));if(a)for(var o=a.length-1;o>=0;o--){var s=a[o];if(e.fileExtensionIs(t,s))return;var c=i(e.changeExtension(t,s));r.delete(c)}})(t,l,f,s);var _=s(t);c.has(_)||l.has(_)||l.set(_,t)},x=0,E=i.readDirectory(r,e.flatten(m),_,p,void 0);x<E.length;x++)b(v=E[x]);var S=e.arrayFrom(c.values()),D=e.arrayFrom(l.values());return S.concat(D,e.arrayFrom(u.values()))}function ve(t){var r=e.startsWith(t,"**/")?0:t.indexOf("/**/");return-1!==r&&(e.endsWith(t,"/..")?t.length:t.lastIndexOf("/../"))>r}function be(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function xe(t,r,n,i,a){return t.filter((t=>{if(!e.isString(t))return!1;var i=Ee(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function Ee(t,r){return r&&ge.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:ve(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Se(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var l=[],u=0,d=i;u<d.length;u++){var p=d[u],_=e.normalizePath(e.combinePaths(r,p));if(!s||!s.test(_)){var f=De(_,n);if(f){var m=f.key,g=f.flags,h=c[m];(void 0===h||h<g)&&(c[m]=g,1===g&&l.push(m))}}}for(var m in c)if(e.hasProperty(c,m))for(var y=0,v=l;y<v.length;y++){var b=v[y];m!==b&&e.containsPath(b,m,r,!n)&&delete c[m]}}return c}function De(t,r){var n=he.exec(t);if(n){var i=t.indexOf("?"),a=t.indexOf("*"),o=t.lastIndexOf(e.directorySeparator);return{key:r?n[0]:e.toFileNameLowerCase(n[0]),flags:-1!==i&&i<o||-1!==a&&a<o?1:0}}if(e.isImplicitGlob(t))return{key:r?t:e.toFileNameLowerCase(t),flags:1}}function Te(t,r){switch(r.type){case"object":case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var n=r.element;return e.isArray(t)?t.map((e=>Te(e,n))):"";default:return e.forEachEntry(r.type,((e,r)=>{if(e===t)return r}))}}function Ce(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":return t.isFilePath?"./":"";case"list":return[];case"object":return{};default:var r=t.type.keys().next();return r.done?e.Debug.fail("Expected 'option.type' to have entries."):r.value}}e.getFileNamesFromConfigSpecs=ye,e.isExcludedFile=(t,r,n,i,a)=>{var o=r.validatedFilesSpec,s=r.validatedIncludeSpecs,c=r.validatedExcludeSpecs;if(!e.length(s)||!e.length(c))return!1;n=e.normalizePath(n);var l=e.createGetCanonicalFileName(i);if(o)for(var u=0,d=o;u<d.length;u++){var p=d[u];if(l(e.getNormalizedAbsolutePath(p,n))===t)return!1}return be(t,c,i,a,n)},e.matchesExclude=(t,r,n,i)=>be(t,e.filter(r,(e=>!ve(e))),n,i),e.convertCompilerOptionsForTelemetry=e=>{var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=y(r);void 0!==n&&(t[r]=Te(e[r],n))}return t}})(Fl),(e=>{function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function r(e,t){return!!e.traceResolution&&void 0!==t.trace}function n(t,r){var n;if(r&&t){var i=t.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(n={name:i.name,subModuleName:r.path.slice(t.packageDirectory.length+e.directorySeparator.length),version:i.version})}return r&&{path:r.path,extension:r.ext,packageId:n}}function i(e){return n(void 0,e)}function a(t){if(t)return e.Debug.assert(void 0===t.packageId),{path:t.path,ext:t.extension}}var o,s;function c(t){if(t)return e.Debug.assert(e.extensionIsTS(t.extension)),{fileName:t.path,packageId:t.packageId}}function l(e,t,r,n){var i;return n?((i=n.failedLookupLocations).push.apply(i,r),n):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r}}function u(r,n,i,a){if(e.hasProperty(r,n)){var o=r[n];if(typeof o===i&&null!==o)return o;a.traceEnabled&&t(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,i,null===o?"null":typeof o)}else a.traceEnabled&&t(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,n)}function d(r,n,i,a){var o=u(r,n,"string",a);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,n,o,s),s}a.traceEnabled&&t(a.host,e.Diagnostics.package_json_had_a_falsy_0_field,n)}}function p(e,t,r){return d(e,"typings",t,r)||d(e,"types",t,r)}function _(e,t,r){return d(e,"main",t,r)}function f(r,n){var i=((r,n)=>{var i=u(r,"typesVersions","object",n);if(void 0!==i)return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i})(r,n);if(void 0!==i){if(n.traceEnabled)for(var a in i)e.hasProperty(i,a)&&!e.VersionRange.tryParse(a)&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,a);var o=m(i);if(o){var s=o.version,c=o.paths;if("object"==typeof c)return o;n.traceEnabled&&t(n.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(s,"']"),"object",typeof c)}else n.traceEnabled&&t(n.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function m(t){for(var r in s||(s=new e.Version(e.version)),t)if(e.hasProperty(t,r)){var n=e.VersionRange.tryParse(r);if(void 0!==n&&n.test(s))return{version:r,paths:t[r]}}}function g(t,r){return t.typeRoots?t.typeRoots:(t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?((t,r)=>{return r.directoryExists?(e.forEachAncestorDirectory(e.normalizePath(t),(t=>{var i=e.combinePaths(t,y);r.directoryExists(i)&&(n||(n=[])).push(i)})),n):[e.combinePaths(t,y)];var n})(n,r):void 0);var n}e.trace=t,e.isTraceEnabled=r,(e=>{e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly"})(o||(o={})),e.getPackageJsonTypesVersionsPaths=m,e.getEffectiveTypeRoots=g;var h,y=e.combinePaths("node_modules","@types");function v(t,r,n){var i="function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return 0===e.comparePaths(t,r,!i)}function b(t){var r=new e.Map,n=new e.Map;return{getOwnMap:()=>r,redirectsMap:n,getOrCreateMapOfCacheRedirects(i){if(!i)return r;var a=i.sourceFile.path,o=n.get(a);return o||(o=!t||e.optionsHaveModuleResolutionChanges(t,i.commandLine.options)?new e.Map:r,n.set(a,o)),o},clear(){r.clear(),n.clear()},setOwnOptions(e){t=e},setOwnMap(e){r=e}}}function x(t,r){var n;return{getPackageJsonInfo:i=>null==n?void 0:n.get(e.toPath(i,t,r)),setPackageJsonInfo(i,a){(n||(n=new e.Map)).set(e.toPath(i,t,r),a)},clear(){n=void 0},entries(){var t=null==n?void 0:n.entries();return t?e.arrayFrom(t):[]}}}function E(e,t,r,n){var i=e.getOrCreateMapOfCacheRedirects(t),a=i.get(r);return a||(a=n(),i.set(r,a)),a}function S(t,r,n){if(t.configFile){if(0===r.redirectsMap.size)e.Debug.assert(!n||0===n.redirectsMap.size),e.Debug.assert(0===r.getOwnMap().size),e.Debug.assert(!n||0===n.getOwnMap().size),r.redirectsMap.set(t.configFile.path,r.getOwnMap()),null==n||n.redirectsMap.set(t.configFile.path,n.getOwnMap());else{e.Debug.assert(!n||n.redirectsMap.size>0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i)),null==n||n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t),null==n||n.setOwnOptions(t)}}function D(t,r,n){return{getOrCreateCacheForDirectory(i,a){var o=e.toPath(i,t,r);return E(n,a,o,(()=>T()))},clear(){n.clear()},update(e){S(e,n)}}}function T(){var t=new e.Map,r=new e.Map,n={get:(e,r)=>t.get(i(e,r)),set:(e,r,a)=>(t.set(i(e,r),a),n),delete:(e,r)=>(t.delete(i(e,r)),n),has:(e,r)=>t.has(i(e,r)),forEach:e=>t.forEach(((t,n)=>{var i=r.get(n),a=i[0],o=i[1];return e(t,a,o)})),size:()=>t.size};return n;function i(e,t){var n=void 0===t?e:"".concat(t,"|").concat(e);return r.set(n,[e,t]),n}}function C(r,n,i,a,o){var s=((r,n,i,a)=>{var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(n))return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),ae(r,n,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)})(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?((r,n,i,a,o)=>{if(o.compilerOptions.rootDirs){o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,l=e.normalizePath(e.combinePaths(i,n)),u=0,d=o.compilerOptions.rootDirs;u<d.length;u++){var p=d[u],_=e.normalizePath(p);e.endsWith(_,e.directorySeparator)||(_+=e.directorySeparator);var f=e.startsWith(l,_)&&(void 0===c||c.length<_.length);o.traceEnabled&&t(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,_,l,f),f&&(c=_,s=p)}if(c){o.traceEnabled&&t(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,l,c);var m=l.substr(c.length);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,c,l);var g=a(r,l,!e.directoryProbablyExists(i,o.host),o);if(g)return g;o.traceEnabled&&t(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var h=0,y=o.compilerOptions.rootDirs;h<y.length;h++)if((p=y[h])!==s){var v=e.combinePaths(e.normalizePath(p),m);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,p,v);var b=e.getDirectoryPath(v),x=a(r,v,!e.directoryProbablyExists(b,o.host),o);if(x)return x}o.traceEnabled&&t(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}})(r,n,i,a,o):((r,n,i,a)=>{var o=a.compilerOptions.baseUrl;if(o){a.traceEnabled&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,n);var s=e.normalizePath(e.combinePaths(o,n));return a.traceEnabled&&t(a.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,o,s),i(r,s,!e.directoryProbablyExists(e.getDirectoryPath(s),a.host),a)}})(r,n,a,o)}function k(t,r,n,i,a,o,s,c){var l=e.getDirectoryPath(n);return O(t|(c===e.ModuleKind.ESNext?h.EsmMode:0),r,l,i,a,o,i.resolveJsonModule?w:N,s)}e.resolveTypeReferenceDirective=(n,i,a,s,l,u)=>{var d=r(a,s);l&&(a=l.commandLine.options);var p=i?e.getDirectoryPath(i):void 0,_=p?u&&u.getOrCreateCacheForDirectory(p,l):void 0,f=_&&_.get(n,void 0);if(f)return d&&(t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,n,i),l&&t(s,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,l.sourceFile.fileName),t(s,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,n,p),A(f)),f;var m=g(a,s);d&&(void 0===i?void 0===m?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,m):void 0===m?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,i):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,i,m),l&&t(s,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,l.sourceFile.fileName));var y,b=[],x=e.getEmitModuleResolutionKind(a)===e.ModuleResolutionKind.Node12?h.Node12Default:e.getEmitModuleResolutionKind(a)===e.ModuleResolutionKind.NodeNext?h.NodeNextDefault:h.None,E={compilerOptions:a,host:s,traceEnabled:d,failedLookupLocations:b,packageJsonInfoCache:u,features:x,conditions:["node","require","types"]},S=(()=>{if(m&&m.length)return d&&t(s,e.Diagnostics.Resolving_with_primary_search_path_0,m.join(", ")),e.firstDefined(m,(r=>{var i=e.combinePaths(r,n),a=e.getDirectoryPath(i),l=e.directoryProbablyExists(a,s);return!l&&d&&t(s,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),c(H(o.DtsOnly,i,!l,E))}));d&&t(s,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)})(),D=!0;if(S||(S=(()=>{var r=i&&e.getDirectoryPath(i);if(void 0!==r){var a;if(d&&t(s,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,r),e.isExternalModuleNameRelative(n)){var l=e.normalizePathAndParts(e.combinePaths(r,n)).path;a=R(o.DtsOnly,l,!1,E,!0)}else{var u=te(o.DtsOnly,n,r,E,void 0,void 0);a=u&&u.value}return c(a)}d&&t(s,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)})(),D=!1),S){var T=S.fileName,C=S.packageId,k=a.preserveSymlinks?T:M(T,s,d);y={primary:D,resolvedFileName:k,originalPath:v(T,k,s)?void 0:T,packageId:C,isExternalLibraryImport:L(T)}}return f={resolvedTypeReferenceDirective:y,failedLookupLocations:b},null==_||_.set(n,void 0,f),d&&A(f),f;function A(r){var i;(null===(i=r.resolvedTypeReferenceDirective)||void 0===i?void 0:i.resolvedFileName)?r.resolvedTypeReferenceDirective.packageId?t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,n,r.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(r.resolvedTypeReferenceDirective.packageId),r.resolvedTypeReferenceDirective.primary):t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,r.resolvedTypeReferenceDirective.resolvedFileName,r.resolvedTypeReferenceDirective.primary):t(s,e.Diagnostics.Type_reference_directive_0_was_not_resolved,n)}},e.getAutomaticTypeDirectiveNames=(t,r)=>{if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var i=g(t,r);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(r.directoryExists(s))for(var c=0,l=r.getDirectories(s);c<l.length;c++){var u=l[c],d=e.normalizePath(u),p=e.combinePaths(s,d,"package.json");if(!r.fileExists(p)||null!==e.readJson(p,r).typings){var _=e.getBaseFileName(d);46!==_.charCodeAt(0)&&n.push(_)}}}}return n},e.createCacheWithRedirects=b,e.createModeAwareCache=T,e.zipToModeAwareCache=(t,r,n)=>{e.Debug.assert(r.length===n.length);for(var i=T(),a=0;a<r.length;++a)i.set(r[a],e.getModeForResolutionAtIndex(t,a),n[a]);return i},e.createModuleResolutionCache=(t,r,n,i,a)=>{var o=D(t,r,i||(i=b(n)));a||(a=b(n));var s=x(t,r);return Ol(Ol(Ol({},s),o),{getOrCreateCacheForModuleName:(t,r,n)=>(e.Debug.assert(!e.isExternalModuleNameRelative(t)),E(a,n,void 0===r?t:"".concat(r,"|").concat(t),c)),clear(){o.clear(),a.clear(),s.clear()},update(e){S(e,i,a)},getPackageJsonInfoCache:()=>s});function c(){var n=new e.Map;return{get:i=>n.get(e.toPath(i,t,r)),set(i,a){var o=e.toPath(i,t,r);if(!n.has(o)){n.set(o,a);for(var s=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName),c=s&&((n,i)=>{for(var a=e.toPath(e.getDirectoryPath(i),t,r),o=0,s=Math.min(n.length,a.length);o<s&&n.charCodeAt(o)===a.charCodeAt(o);)o++;if(o===n.length&&(a.length===o||a[o]===e.directorySeparator))return n;var c=e.getRootLength(n);if(!(o<c)){var l=n.lastIndexOf(e.directorySeparator,o-1);if(-1!==l)return n.substr(0,Math.max(l,c))}})(o,s),l=o;l!==c;){var u=e.getDirectoryPath(l);if(u===l||n.has(u))break;n.set(u,a),l=u}}}}}},e.createTypeReferenceDirectiveResolutionCache=(e,t,r,n,i)=>{var a=D(e,t,i||(i=b(r)));return n||(n=x(e,t)),Ol(Ol(Ol({},n),a),{clear(){a.clear(),n.clear()}})},e.resolveModuleNameFromCache=(t,r,n,i)=>{var a=e.getDirectoryPath(r),o=n&&n.getOrCreateCacheForDirectory(a);if(o)return o.get(t,i)},e.resolveModuleName=(n,i,a,o,s,c,l)=>{var u=r(a,o);c&&(a=c.commandLine.options),u&&(t(o,e.Diagnostics.Resolving_module_0_from_1,n,i),c&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var d=e.getDirectoryPath(i),p=s&&s.getOrCreateCacheForDirectory(d,c),_=p&&p.get(n,l);if(_)u&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,d);else{var f=a.moduleResolution;if(void 0===f){switch(e.getEmitModuleKind(a)){case e.ModuleKind.CommonJS:f=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:f=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:f=e.ModuleResolutionKind.NodeNext;break;default:f=e.ModuleResolutionKind.Classic}u&&t(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[f])}else u&&t(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[f]);switch(e.perfLogger.logStartResolveModule(n),f){case e.ModuleResolutionKind.Node12:_=((e,t,r,n,i,a,o)=>k(h.Node12Default,e,t,r,n,i,a,o))(n,i,a,o,s,c,l);break;case e.ModuleResolutionKind.NodeNext:_=((e,t,r,n,i,a,o)=>k(h.NodeNextDefault,e,t,r,n,i,a,o))(n,i,a,o,s,c,l);break;case e.ModuleResolutionKind.NodeJs:_=I(n,i,a,o,s,c);break;case e.ModuleResolutionKind.Classic:_=ue(n,i,a,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(f))}_&&_.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(n,'" resolved to "').concat(_.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(_&&_.resolvedModule?""+_.resolvedModule.resolvedFileName:"null"),p&&(p.set(n,l,_),e.isExternalModuleNameRelative(n)||s.getOrCreateCacheForModuleName(n,l,c).set(d,_))}return u&&(_.resolvedModule?_.resolvedModule.packageId?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,n,_.resolvedModule.resolvedFileName,e.packageIdToString(_.resolvedModule.packageId)):t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,n,_.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,n)),_},e.resolveJSModule=(e,t,r)=>{var n=P(e,t,r),i=n.resolvedModule,a=n.failedLookupLocations;if(!i)throw new Error("Could not resolve JS module '".concat(e,"' starting at '").concat(t,"'. Looked in: ").concat(a.join(", ")));return i.resolvedFileName},e.tryResolveJSModule=(e,t,r)=>P(e,t,r).resolvedModule,(e=>{e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node12Default=14]="Node12Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.EsmMode=32]="EsmMode"})(h||(h={}));var A=[o.JavaScript],N=[o.TypeScript,o.JavaScript],w=Il(Il([],N,!0),[o.Json],!1),F=[o.TSConfig];function P(t,r,n){return O(h.None,t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,A,void 0)}function I(t,r,n,i,a,o,s){return O(h.None,t,e.getDirectoryPath(r),n,i,a,s?F:n.resolveJsonModule?w:N,o)}function O(n,i,a,s,c,u,d,p){var _,f,m=r(s,c),g=[],y={compilerOptions:s,host:c,traceEnabled:m,failedLookupLocations:g,packageJsonInfoCache:u,features:n,conditions:n&h.EsmMode?["node","import","types"]:["node","require","types"]},b=e.forEach(d,(r=>(r=>{var l,d=C(r,i,a,((e,t,r,n)=>R(e,t,r,n,!0)),y);if(d)return de({resolved:d,isExternalLibraryImport:L(d.path)});if(e.isExternalModuleNameRelative(i)){var _=e.normalizePathAndParts(e.combinePaths(a,i)),f=_.path,g=_.parts,b=R(r,f,!1,y,!0);return b&&de({resolved:b,isExternalLibraryImport:e.contains(g,"node_modules")})}if(n&h.Imports&&e.startsWith(i,"#")&&(l=((r,n,i,a,o,s)=>{var c,l;if("#"===n||e.startsWith(n,"#/"))return a.traceEnabled&&t(a.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,n),de(void 0);var u="function"==typeof a.host.useCaseSensitiveFileNames?a.host.useCaseSensitiveFileNames():a.host.useCaseSensitiveFileNames,d=e.toPath(e.combinePaths(i,"dummy"),null===(l=(c=a.host).getCurrentDirectory)||void 0===l?void 0:l.call(c),e.createGetCanonicalFileName(void 0===u||u)),p=J(d,a.packageJsonInfoCache,a.host,a.compilerOptions);return p?p.packageJsonContent.imports?Q(r,a,o,s,n,p.packageJsonContent.imports,p,!0)||(a.traceEnabled&&t(a.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,p.packageDirectory),de(void 0)):(a.traceEnabled&&t(a.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,p.packageDirectory),de(void 0)):(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),de(void 0))})(r,i,a,y,u,p)),!l&&n&h.SelfName&&(l=((t,r,n,i,a,o)=>{var s,c,l="function"==typeof i.host.useCaseSensitiveFileNames?i.host.useCaseSensitiveFileNames():i.host.useCaseSensitiveFileNames,u=J(e.toPath(e.combinePaths(n,"dummy"),null===(c=(s=i.host).getCurrentDirectory)||void 0===c?void 0:c.call(s),e.createGetCanonicalFileName(void 0===l||l)),i.packageJsonInfoCache,i.host,i.compilerOptions);if(u&&u.packageJsonContent.exports&&"string"==typeof u.packageJsonContent.name){var d=e.getPathComponents(r),p=e.getPathComponents(u.packageJsonContent.name);if(e.every(p,((e,t)=>d[t]===e))){var _=d.slice(p.length);return Y(u,t,e.length(_)?".".concat(e.directorySeparator).concat(_.join(e.directorySeparator)):".",i,a,o)}}})(r,i,a,y,u,p)),l||(m&&t(c,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,i,o[r]),l=te(r,i,a,y,u,p)),l){var x=l.value;if(!s.preserveSymlinks&&x&&!x.originalPath){var E=M(x.path,c,m),S=v(E,x.path,c)?void 0:x.path;x=Ol(Ol({},x),{path:E,originalPath:S})}return{value:x&&{resolved:x,isExternalLibraryImport:!0}}}})(r)));return l(null===(_=null==b?void 0:b.value)||void 0===_?void 0:_.resolved,null===(f=null==b?void 0:b.value)||void 0===f?void 0:f.isExternalLibraryImport,g,y.resultFromCache)}function M(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),"".concat(r," linked to nonexistent file ").concat(a)),a}function R(r,i,a,s,c){if(s.traceEnabled&&t(s.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,o[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var l=e.getDirectoryPath(i);e.directoryProbablyExists(l,s.host)||(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),a=!0)}var u=V(r,i,a,s);if(u){var d=c?B(u.path):void 0;return n(d?$(d,!1,s):void 0,u)}}return a||e.directoryProbablyExists(i,s.host)||(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0),H(r,i,a,s,c)}function L(t){return e.stringContains(t,e.nodeModulesPathPart)}function B(t){var r=e.normalizePath(t),n=r.lastIndexOf(e.nodeModulesPathPart);if(-1!==n){var i=n+e.nodeModulesPathPart.length,a=j(r,i);return 64===r.charCodeAt(i)&&(a=j(r,a)),r.slice(0,a)}}function j(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function U(e,t,r,n){return i(V(e,t,r,n))}function V(t,r,n,i){if(t===o.Json||t===o.TSConfig){var a=e.tryRemoveExtension(r,".json"),s=a?r.substring(a.length):"";return void 0===a&&t===o.Json?void 0:K(a||r,t,s,n,i)}if(!(i.features&h.EsmMode)){var c=K(r,t,"",n,i);if(c)return c}return z(t,r,n,i)}function z(r,n,i,a){if(e.hasJSFileExtension(n)||e.fileExtensionIs(n,".json")&&a.compilerOptions.resolveJsonModule){var o=e.removeFileExtension(n),s=n.substring(o.length);return a.traceEnabled&&t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,s),K(o,r,s,i,a)}}function K(t,r,n,i,a){if(!i){var s=e.getDirectoryPath(t);s&&(i=!e.directoryProbablyExists(s,a.host))}switch(r){case o.DtsOnly:switch(n){case".mjs":case".mts":case".d.mts":return c(".d.mts");case".cjs":case".cts":case".d.cts":return c(".d.cts");case".json":return t+=".json",c(".d.ts");default:return c(".d.ts")}case o.TypeScript:switch(n){case".mjs":case".mts":case".d.mts":return c(".mts")||c(".d.mts");case".cjs":case".cts":case".d.cts":return c(".cts")||c(".d.cts");case".json":return t+=".json",c(".d.ts");default:return c(".ts")||c(".tsx")||c(".d.ts")}case o.JavaScript:switch(n){case".mjs":case".mts":case".d.mts":return c(".mjs");case".cjs":case".cts":case".d.cts":return c(".cjs");case".json":return c(".json");default:return c(".js")||c(".jsx")}case o.TSConfig:case o.Json:return c(".json")}function c(e){var r=W(t+e,i,a);return void 0===r?void 0:{path:r,ext:e}}}function W(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function H(e,t,r,i,a){void 0===a&&(a=!0);var o=a?$(t,r,i):void 0;return n(o,G(e,t,r,i,o&&o.packageJsonContent,o&&o.versionPaths))}function J(t,n,i,a){var o={host:i,compilerOptions:a,traceEnabled:r(a,i),failedLookupLocations:[],packageJsonInfoCache:n,features:0,conditions:[]},s=e.getPathComponents(t);for(s.pop();s.length>0;){var c=$(e.getPathFromPathComponents(s),!1,o);if(c)return c;s.pop()}}function $(r,n,i){var a,o,s,c=i.host,l=i.traceEnabled,u=e.combinePaths(r,"package.json");if(n)i.failedLookupLocations.push(u);else{var d=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(u);if(void 0!==d)return"boolean"!=typeof d?(l&&t(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,u),d):(d&&l&&t(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void i.failedLookupLocations.push(u));var p=e.directoryProbablyExists(r,c);if(p&&c.fileExists(u)){var _=e.readJson(u,c);l&&t(c,e.Diagnostics.Found_package_json_at_0,u);var m={packageDirectory:r,packageJsonContent:_,versionPaths:f(_,i)};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(u,m),m}p&&l&&t(c,e.Diagnostics.File_0_does_not_exist,u),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(u,p),i.failedLookupLocations.push(u)}}function G(r,n,s,c,l,u){var f;if(l)switch(r){case o.JavaScript:case o.Json:f=_(l,n,c);break;case o.TypeScript:f=p(l,n,c)||_(l,n,c);break;case o.DtsOnly:f=p(l,n,c);break;case o.TSConfig:f=((e,t,r)=>d(e,"tsconfig",t,r))(l,n,c);break;default:return e.Debug.assertNever(r)}var m=(r,n,a,s)=>{var c=W(n,a,s);if(c){var l=((t,r)=>{var n=e.tryGetExtensionFromPath(r);return void 0!==n&&((e,t)=>{switch(e){case o.JavaScript:return".js"===t||".jsx"===t;case o.TSConfig:case o.Json:return".json"===t;case o.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case o.DtsOnly:return".d.ts"===t}})(t,n)?{path:r,ext:n}:void 0})(r,c);if(l)return i(l);s.traceEnabled&&t(s.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,c)}return R(r===o.DtsOnly?o.TypeScript:r,n,a,s,!1)},g=f?!e.directoryProbablyExists(e.getDirectoryPath(f),c.host):void 0,y=s||!e.directoryProbablyExists(n,c.host),v=e.combinePaths(n,r===o.TSConfig?"tsconfig":"index");if(u&&(!f||e.containsPath(n,f))){var b=e.getRelativePathFromDirectory(n,f||v,!1);c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.version,e.version,b);var x=ae(r,b,n,u.paths,void 0,m,g||y,c);if(x)return a(x.value)}return f&&a(m(r,f,g,c))||(c.features&h.EsmMode?void 0:V(r,v,y,c))}function q(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function X(t){return e.every(e.getOwnKeys(t),(t=>e.startsWith(t,".")))}function Y(r,n,i,a,o,s){if(r.packageJsonContent.exports){if("."===i){var c=void 0;if("string"==typeof r.packageJsonContent.exports||Array.isArray(r.packageJsonContent.exports)||"object"==typeof r.packageJsonContent.exports&&(u=r.packageJsonContent.exports,!e.some(e.getOwnKeys(u),(t=>e.startsWith(t,"."))))?c=r.packageJsonContent.exports:e.hasProperty(r.packageJsonContent.exports,".")&&(c=r.packageJsonContent.exports["."]),c)return Z(n,a,o,s,i,r,!1)(c,"",!1)}else if(X(r.packageJsonContent.exports)){if("object"!=typeof r.packageJsonContent.exports)return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),de(void 0);var l=Q(n,a,o,s,i,r.packageJsonContent.exports,r,!1);if(l)return l}var u;return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),de(void 0)}}function Q(t,r,n,i,a,o,s,c){var l=Z(t,r,n,i,a,s,c);if(!e.endsWith(a,e.directorySeparator)&&-1===a.indexOf("*")&&e.hasProperty(o,a))return l(_=o[a],"",!1);for(var u=0,d=e.sort(e.filter(e.getOwnKeys(o),(t=>-1!==t.indexOf("*")||e.endsWith(t,"/"))),((e,t)=>e.length-t.length));u<d.length;u++){var p=d[u];if(r.features&h.ExportsPatternTrailers&&m(p,a)){var _=o[p],f=p.indexOf("*");return l(_,a.substring(p.substring(0,f).length,a.length-(p.length-1-f)),!0)}if(e.endsWith(p,"*")&&e.startsWith(a,p.substring(0,p.length-1)))return l(_=o[p],a.substring(p.length-1),!0);if(e.startsWith(a,p))return l(_=o[p],a.substring(p.length),!1)}function m(t,r){if(e.endsWith(t,"*"))return!1;var n=t.indexOf("*");return-1!==n&&e.startsWith(r,t.substring(0,n))&&e.endsWith(r,t.substring(n+1))}}function Z(r,i,a,s,c,l,u){return function d(p,_,f){var m,g;if("string"==typeof p){if(!f&&_.length>0&&!e.endsWith(p,"/"))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),de(void 0);if(!e.startsWith(p,"./")){if(u&&!e.startsWith(p,"../")&&!e.startsWith(p,"/")&&!e.isRootedDiskPath(p)){var h=f?p.replace(/\*/g,_):p+_;return de((k=O(i.features,h,l.packageDirectory+"/",i.compilerOptions,i.host,a,[r],s)).resolvedModule?{path:k.resolvedModule.resolvedFileName,extension:k.resolvedModule.extension,packageId:k.resolvedModule.packageId,originalPath:k.resolvedModule.originalPath}:void 0)}return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),de(void 0)}var y=(e.pathIsRelative(p)?e.getPathComponents(p).slice(1):e.getPathComponents(p)).slice(1);if(y.indexOf("..")>=0||y.indexOf(".")>=0||y.indexOf("node_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),de(void 0);var v=e.combinePaths(l.packageDirectory,p),b=e.getPathComponents(_);if(b.indexOf("..")>=0||b.indexOf(".")>=0||b.indexOf("node_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),de(void 0);var x=e.getNormalizedAbsolutePath(f?v.replace(/\*/g,_):v+_,null===(g=(m=i.host).getCurrentDirectory)||void 0===g?void 0:g.call(m));return de(n(l,((t,r,n,i)=>t!==o.TypeScript&&t!==o.DtsOnly||!e.fileExtensionIsOneOf(r,[".d.ts",".d.cts",".d.mts"])?z(t,r,!1,i):void 0!==W(r,!1,i)?{path:r,ext:e.forEach([".d.ts",".d.cts",".d.mts"],(t=>e.fileExtensionIs(r,t)?t:void 0))}:void 0)(r,x,0,i)))}if("object"==typeof p&&null!==p){if(!Array.isArray(p)){for(var E=0,S=e.getOwnKeys(p);E<S.length;E++){var D=S[E];if(("default"===D||i.conditions.indexOf(D)>=0||ee(i.conditions,D))&&(k=d(p[D],_,f)))return k}return}if(!e.length(p))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),de(void 0);for(var T=0,C=p;T<C.length;T++){var k;if(k=d(C[T],_,f))return k}}else if(null===p)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,l.packageDirectory,c),de(void 0);return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,c),de(void 0)}}function ee(t,r){if(-1===t.indexOf("types"))return!1;if(!e.startsWith(r,"types@"))return!1;var n=e.VersionRange.tryParse(r.substring("types@".length));return!!n&&n.test(e.version)}function te(e,t,r,n,i,a){return re(e,t,r,n,!1,i,a)}function re(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,0===i.features?void 0:i.features&h.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),(n=>{if("node_modules"!==e.getBaseFileName(n))return le(c,r,n,i)||de(ne(t,r,n,i,a,o,s))}))}function ne(r,n,i,a,s,c,l){var u=e.combinePaths(i,"node_modules"),d=e.directoryProbablyExists(u,a.host);!d&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u);var p=s?void 0:ie(r,n,u,d,a,c,l);if(p)return p;if(r===o.TypeScript||r===o.DtsOnly){var _=e.combinePaths(u,"@types"),f=d;return d&&!e.directoryProbablyExists(_,a.host)&&(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),f=!1),ie(o.DtsOnly,((r,n)=>{var i=se(r);return n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i),i})(n,a),_,f,a,c,l)}}function ie(r,a,o,s,c,l,u){var d=e.normalizePath(e.combinePaths(o,a)),p=$(d,!s,c);if(!(c.features&h.Exports)&&p){var _=V(r,d,!s,c);if(_)return i(_);var f=G(r,d,!s,c,p.packageJsonContent,p.versionPaths);return n(p,f)}var m=q(a),g=m.packageName,y=m.rest,v=(t,r,i,a)=>{var o;if(p&&p.packageJsonContent.exports&&a.features&h.Exports)return null===(o=Y(p,t,e.combinePaths(".",y),a,l,u))||void 0===o?void 0:o.value;var s=V(t,r,i,a)||G(t,r,i,a,p&&p.packageJsonContent,p&&p.versionPaths);return n(p,s)};if(""!==y){var b=e.combinePaths(o,g);if((p=$(b,!s,c))&&p.versionPaths){c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,p.versionPaths.version,e.version,y);var x=s&&e.directoryProbablyExists(b,c.host),E=ae(r,y,b,p.versionPaths.paths,void 0,v,!x,c);if(E)return E.value}}return v(r,d,!s,c)}function ae(r,n,a,o,s,c,l,u){s||(s=e.tryParsePatterns(o));var d=e.matchPatternOrExact(s,n);if(d){var p=e.isString(d)?void 0:e.matchedText(d,n),_=e.isString(d)?d:e.patternText(d);return u.traceEnabled&&t(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,_),{value:e.forEach(o[_],(n=>{var o=p?n.replace("*",p):n,s=e.normalizePath(e.combinePaths(a,o));u.traceEnabled&&t(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,o);var d=e.tryGetExtensionFromPath(n);if(void 0!==d){var _=W(s,l,u);if(void 0!==_)return i({path:_,ext:d})}return c(r,s,l||!e.directoryProbablyExists(e.getDirectoryPath(s),u.host),u)}))}}}e.nodeModuleNameResolver=I,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=L,e.parseNodeModuleFromPath=B,e.getPackageScopeForPath=J,e.getPackageJsonInfo=$,e.parsePackageName=q,e.allKeysStartWithDot=X,e.isApplicableVersionedTypesKey=ee;var oe="__";function se(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,oe);if(r!==t)return r.slice(1)}return t}function ce(t){return e.stringContains(t,oe)?"@"+t.replace(oe,e.directorySeparator):t}function le(r,n,i,a){var o=r&&r.get(i);if(o)return a.traceEnabled&&t(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),a.resultFromCache=o,{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||!0,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId}}}function ue(t,n,i,a,s,c){var u=[],d={compilerOptions:i,host:a,traceEnabled:r(i,a),failedLookupLocations:u,packageJsonInfoCache:s,features:h.None,conditions:[]},p=e.getDirectoryPath(n),_=f(o.TypeScript)||f(o.JavaScript);return l(_&&_.value,!1,u,d.resultFromCache);function f(r){var n=C(r,t,p,U,d);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(p,t));return de(U(r,i,!1,d))}var a=s&&s.getOrCreateCacheForModuleName(t,void 0,c);return e.forEachAncestorDirectory(p,(n=>{var i=le(a,t,n,d);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return de(U(r,o,!1,d))}))||(r===o.TypeScript?((e,t,r)=>re(o.DtsOnly,e,t,r,!0,void 0,void 0))(t,p,d):void 0)}}function de(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=e=>"@types/".concat(se(e)),e.mangleScopedPackageName=se,e.getPackageNameFromTypesPackageName=t=>{var r=e.removePrefix(t,"@types/");return r!==t?ce(r):t},e.unmangleScopedPackageName=ce,e.classicNameResolver=ue,e.loadModuleFromGlobalCache=(n,i,a,s,c,u)=>{var d=r(a,s);d&&t(s,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,c);var p=[],_={compilerOptions:a,host:s,traceEnabled:d,failedLookupLocations:p,packageJsonInfoCache:u,features:h.None,conditions:[]};return l(ne(o.DtsOnly,n,c,_,!1,void 0,void 0),!0,p,_.resultFromCache)}})(Fl),(e=>{var t,r;function n(t,r){return t.body&&!t.body.parent&&(e.setParent(t.body,t),e.setParentRecursive(t.body,!1)),t.body?i(t.body,r):1}function i(t,r){void 0===r&&(r=new e.Map);var o=e.getNodeId(t);if(r.has(o))return r.get(o)||0;r.set(o,void 0);var s=((t,r)=>{switch(t.kind){case 257:case 258:return 0;case 259:if(e.isEnumConst(t))return 2;break;case 265:case 264:if(!e.hasSyntacticModifier(t,1))return 0;break;case 271:var o=t;if(!o.moduleSpecifier&&o.exportClause&&272===o.exportClause.kind){for(var s=0,c=0,l=o.exportClause.elements;c<l.length;c++){var u=a(l[c],r);if(u>s&&(s=u),1===s)return s}return s}break;case 261:var d=0;return e.forEachChild(t,(t=>{var n=i(t,r);switch(n){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(n)}})),d;case 260:return n(t,r);case 79:if(t.isInJSDocNamespace)return 0}return 1})(t,r);return r.set(o,s),s}function a(t,r){for(var n=t.propertyName||t.name,a=t.parent;a;){if(e.isBlock(a)||e.isModuleBlock(a)||e.isSourceFile(a)){for(var o=void 0,s=0,c=a.statements;s<c.length;s++){var l=c[s];if(e.nodeHasName(l,n)){l.parent||(e.setParent(l,a),e.setParentRecursive(l,!1));var u=i(l,r);if((void 0===o||u>o)&&(o=u),1===o)return o}}if(void 0!==o)return o}a=a.parent}return 1}function o(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(r=e.ModuleInstanceState||(e.ModuleInstanceState={}))[r.NonInstantiated=0]="NonInstantiated",r[r.Instantiated=1]="Instantiated",r[r.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=n,(e=>{e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"})(t||(t={}));var s=(()=>{var t,r,i,a,s,d,p,_,f,m,g,h,y,v,b,x,E,S,D,T,C,k,A,N,w=!1,F=0,P={flags:1},I={flags:1},O=(()=>{return e.createBinaryExpressionTrampoline(((t,r)=>{if(r){r.stackIndex++,e.setParent(t,a);var n=k;Le(t);var i=a;a=t,r.skip=!1,r.inStrictModeStack[r.stackIndex]=n,r.parentStack[r.stackIndex]=i}else r={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var o=t.operatorToken.kind;if(55===o||56===o||60===o||e.isLogicalOrCoalescingAssignmentOperator(o)){if(le(t)){var s=Y();ye(t,s,s),g=oe(s)}else ye(t,b,x);r.skip=!0}return r}),((e,r,n)=>{if(!r.skip)return t(e)}),((e,t,r)=>{t.skip||(27===e.kind&&me(r.left),Oe(e))}),((e,r,n)=>{if(!r.skip)return t(e)}),((t,r)=>{if(!r.skip){var n=t.operatorToken.kind;e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t)&&(he(t.left),63===n&&206===t.left.kind&&X(t.left.expression)&&(g=ie(256,g,t)))}var i=r.inStrictModeStack[r.stackIndex],o=r.parentStack[r.stackIndex];void 0!==i&&(k=i),void 0!==o&&(a=o),r.skip=!1,r.stackIndex--}),void 0);function t(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Oe(t)}})();function M(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return(n,c)=>{t=n,r=c,i=e.getEmitScriptTarget(r),k=((t,r)=>!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator)(t,c),N=new e.Set,F=0,A=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(P),e.Debug.attachFlowNodeDebugInfo(I),t.locals||(Oe(t),t.symbolCount=F,t.classifiableNames=N,(()=>{if(f){for(var r=s,n=_,i=p,c=a,u=g,d=0,m=f;d<m.length;d++){var h=m[d],y=h.parent.parent;s=e.findAncestor(y.parent,(e=>!!(1&Se(e))))||t,p=e.getEnclosingBlockScopeContainer(y)||t,g=o({flags:2}),a=h,Oe(h.typeExpression);var v=e.getNameOfDeclaration(h);if((e.isJSDocEnumTag(h)||!h.fullName)&&v&&e.isPropertyAccessEntityNameExpression(v.parent)){var b=qe(v.parent);if(b){$e(t.symbol,v.parent,b,!!e.findAncestor(v,(t=>e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText)),!1);var x=s;switch(e.getAssignmentDeclarationPropertyAccessKind(v.parent)){case 1:case 2:s=e.isExternalOrCommonJsModule(t)?t:void 0;break;case 4:s=v.parent.expression;break;case 3:s=v.parent.expression.name;break;case 5:s=l(t,v.parent.expression)?t:e.isPropertyAccessExpression(v.parent.expression)?v.parent.expression.name:v.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&V(h,524288,788968),s=x}}else e.isJSDocEnumTag(h)||!h.fullName||79===h.fullName.kind?(a=h.parent,Ne(h,524288,788968)):Oe(h.fullName)}s=r,_=n,p=i,a=c,g=u}})()),t=void 0,r=void 0,i=void 0,a=void 0,s=void 0,d=void 0,p=void 0,_=void 0,f=void 0,m=!1,g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,x=void 0,E=void 0,D=void 0,T=!1,w=!1,C=0};function R(e,t){return F++,new A(e,t)}function L(t,r,n){t.flags|=n,r.symbol=t,t.declarations=e.appendIfUnique(t.declarations,r),1955&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),t.constEnumOnlyModule&&304&t.flags&&(t.constEnumOnlyModule=!1),111551&n&&e.setValueDeclaration(t,r)}function B(t){if(270===t.kind)return t.isExportEquals?"export=":"default";var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'.concat(n,'"')}if(161===r.kind){var i=r.expression;if(e.isStringOrNumericLiteralLike(i))return e.escapeLeadingUnderscores(i.text);if(e.isSignedNumericLiteral(i))return e.tokenToString(i.operator)+i.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(r)){var a=e.getContainingClass(t);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,r.escapedText)}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 170:return"__constructor";case 178:case 173:case 321:return"__call";case 179:case 174:return"__new";case 175:return"__index";case 271:return"__export";case 303:return"export=";case 220:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 315:return e.isJSDocConstructSignature(t)?"__new":"__call";case 163:return e.Debug.assert(315===t.parent.kind,"Impossible parameter parent kind",(()=>"parent is: ".concat(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind,", expected JSDocFunctionType"))),"arg"+t.parent.parameters.indexOf(t)}}function j(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(B(t)))}function U(r,n,i,a,o,s,c){e.Debug.assert(c||!e.hasDynamicName(i));var l,u=e.hasSyntacticModifier(i,512)||e.isExportSpecifier(i)&&"default"===i.name.escapedText,d=c?"__computed":u&&n?"default":B(i);if(void 0===d)l=R(0,"__missing");else if(l=r.get(d),2885600&a&&N.add(d),l){if(s&&!l.isReplaceableByMethod)return l;if(l.flags&o)if(l.isReplaceableByMethod)r.set(d,l=R(0,d));else if(!(3&a&&67108864&l.flags)){e.isNamedDeclaration(i)&&e.setParent(i.name,i);var p=2&l.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,_=!0;(384&l.flags||384&a)&&(p=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,_=!1);var f=!1;e.length(l.declarations)&&(u||l.declarations&&l.declarations.length&&270===i.kind&&!i.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports,_=!1,f=!0);var m=[];e.isTypeAliasDeclaration(i)&&e.nodeIsMissing(i.type)&&e.hasSyntacticModifier(i,1)&&2887656&l.flags&&m.push(M(i,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(i.name.escapedText)," }")));var g=e.getNameOfDeclaration(i)||i;e.forEach(l.declarations,((r,n)=>{var i=e.getNameOfDeclaration(r)||r,a=M(i,p,_?j(r):void 0);t.bindDiagnostics.push(f?e.addRelatedInfo(a,M(g,0===n?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),f&&m.push(M(i,e.Diagnostics.The_first_export_default_is_here))}));var h=M(g,p,_?j(i):void 0);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,Il([h],m,!1))),l=R(0,d)}}else r.set(d,l=R(0,d)),s&&(l.isReplaceableByMethod=!0);return L(l,i,a),l.parent?e.Debug.assert(l.parent===n,"Existing symbol parent should match new one"):l.parent=n,l}function V(t,r,n){var i=!!(1&e.getCombinedModifierFlags(t))||(t=>{if(t.parent&&e.isModuleDeclaration(t)&&(t=t.parent),!e.isJSDocTypeAlias(t))return!1;if(!e.isJSDocEnumTag(t)&&t.fullName)return!0;var r=e.getNameOfDeclaration(t);return!(!r||!(e.isPropertyAccessEntityNameExpression(r.parent)&&qe(r.parent)||e.isDeclaration(r.parent)&&1&e.getCombinedModifierFlags(r.parent)))})(t);if(2097152&r)return 274===t.kind||264===t.kind&&i?U(s.symbol.exports,s.symbol,t,r,n):U(s.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&s.flags)){if(!s.locals||e.hasSyntacticModifier(t,512)&&!B(t))return U(s.symbol.exports,s.symbol,t,r,n);var a=111551&r?1048576:0,o=U(s.locals,void 0,t,a,n);return o.exportSymbol=U(s.symbol.exports,s.symbol,t,r,n),t.localSymbol=o,o}return U(s.locals,void 0,t,r,n)}function z(e){K(e,(e=>255===e.kind?Oe(e):void 0)),K(e,(e=>255!==e.kind?Oe(e):void 0))}function K(t,r){void 0===r&&(r=Oe),void 0!==t&&e.forEach(t,r)}function W(t){e.forEachChild(t,Oe,K)}function H(t){var i=w;if(w=!1,(t=>{if(!(1&g.flags))return!1;if(g===P&&(e.isStatementButNotDeclaration(t)&&235!==t.kind||256===t.kind||260===t.kind&&(t=>{var i=n(t);return 1===i||2===i&&e.shouldPreserveConstEnums(r)})(t))&&(g=I,!r.allowUnreachableCode)){var i=e.unreachableCodeIsError(r)&&!(8388608&t.flags)&&(!e.isVariableStatement(t)||!!(3&e.getCombinedNodeFlags(t.declarationList))||t.declarationList.declarations.some((e=>!!e.initializer)));!((t,r)=>{if(e.isStatement(t)&&c(t)&&e.isBlock(t.parent)){var n=t.parent.statements,i=e.sliceAfter(n,t);e.getRangesWhere(i,c,((e,t)=>r(i[e],i[t-1])))}else r(t,t)})(t,((t,r)=>Ie(i,t,r,e.Diagnostics.Unreachable_code_detected)))}return!0})(t))return W(t),Me(t),void(w=i);switch(t.kind>=236&&t.kind<=252&&!r.allowUnreachableCode&&(t.flowNode=g),t.kind){case 240:!(e=>{var t=_e(e,Q()),r=Y(),n=Y();te(t,g),g=t,de(e.expression,r,n),g=oe(r),pe(e.statement,n,t),te(t,g),g=oe(n)})(t);break;case 239:!(e=>{var t=Q(),r=_e(e,Y()),n=Y();te(t,g),g=t,pe(e.statement,n,r),te(r,g),g=oe(r),de(e.expression,t,n),g=oe(n)})(t);break;case 241:!(e=>{var t=_e(e,Q()),r=Y(),n=Y();Oe(e.initializer),te(t,g),g=t,de(e.condition,r,n),g=oe(r),pe(e.statement,n,t),Oe(e.incrementor),te(t,g),g=oe(n)})(t);break;case 242:case 243:!(e=>{var t=_e(e,Q()),r=Y();Oe(e.expression),te(t,g),g=t,243===e.kind&&Oe(e.awaitModifier),te(r,g),Oe(e.initializer),254!==e.initializer.kind&&he(e.initializer),pe(e.statement,r,t),te(t,g),g=oe(r)})(t);break;case 238:!(e=>{var t=Y(),r=Y(),n=Y();de(e.expression,t,r),g=oe(t),Oe(e.thenStatement),te(n,g),g=oe(r),Oe(e.elseStatement),te(n,g),g=oe(n)})(t);break;case 246:case 250:!(e=>{Oe(e.expression),246===e.kind&&(T=!0,v&&te(v,g)),g=P})(t);break;case 245:case 244:!(e=>{if(Oe(e.label),e.label){var t=(e=>{for(var t=D;t;t=t.next)if(t.name===e)return t})(e.label.escapedText);t&&(t.referenced=!0,fe(e,t.breakTarget,t.continueTarget))}else fe(e,h,y)})(t);break;case 251:!(t=>{var r=v,n=E,i=Y(),a=Y(),o=Y();if(t.finallyBlock&&(v=a),te(o,g),E=o,Oe(t.tryBlock),te(i,g),t.catchClause&&(g=oe(o),te(o=Y(),g),E=o,Oe(t.catchClause),te(i,g)),v=r,E=n,t.finallyBlock){var s=Y();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),g=s,Oe(t.finallyBlock),1&g.flags?g=P:(v&&a.antecedents&&te(v,Z(s,a.antecedents,g)),E&&o.antecedents&&te(E,Z(s,o.antecedents,g)),g=i.antecedents?Z(s,i.antecedents,g):P)}else g=oe(i)})(t);break;case 248:!(t=>{var r=Y();Oe(t.expression);var n=h,i=S;h=r,S=g,Oe(t.caseBlock),te(r,g);var a=e.forEach(t.caseBlock.clauses,(e=>289===e.kind));t.possiblyExhaustive=!a&&!r.antecedents,a||te(r,ne(S,t,0,0)),h=n,S=i,g=oe(r)})(t);break;case 262:!(e=>{for(var t=e.clauses,n=J(e.parent.expression),i=P,a=0;a<t.length;a++){for(var o=a;!t[a].statements.length&&a+1<t.length;)Oe(t[a]),a++;var s=Y();te(s,n?ne(S,e.parent,o,a+1):S),te(s,i),g=oe(s);var c=t[a];Oe(c),i=g,1&g.flags||a===t.length-1||!r.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=g)}})(t);break;case 288:!(e=>{var t=g;g=S,Oe(e.expression),g=t,K(e.statements)})(t);break;case 237:!(e=>{Oe(e.expression),me(e.expression)})(t);break;case 249:!(t=>{var n=Y();D={next:D,name:t.label.escapedText,breakTarget:n,continueTarget:void 0,referenced:!1},Oe(t.label),Oe(t.statement),D.referenced||r.allowUnusedLabels||((e,t,r)=>{Ie(e,t,t,r)})(e.unusedLabelIsError(r),t.label,e.Diagnostics.Unused_label),D=D.next,te(n,g),g=oe(n)})(t);break;case 218:!(e=>{if(53===e.operator){var t=b;b=x,x=t,W(e),x=b,b=t}else W(e),45!==e.operator&&46!==e.operator||he(e.operand)})(t);break;case 219:!(e=>{W(e),(45===e.operator||46===e.operator)&&he(e.operand)})(t);break;case 220:if(e.isDestructuringAssignment(t))return w=i,void(e=>{w?(w=!1,Oe(e.operatorToken),Oe(e.right),w=!0,Oe(e.left)):(w=!0,Oe(e.left),w=!1,Oe(e.operatorToken),Oe(e.right)),he(e.left)})(t);O(t);break;case 214:!(e=>{W(e),205===e.expression.kind&&he(e.expression)})(t);break;case 221:!(e=>{var t=Y(),r=Y(),n=Y();de(e.condition,t,r),g=oe(t),Oe(e.questionToken),Oe(e.whenTrue),te(n,g),g=oe(r),Oe(e.colonToken),Oe(e.whenFalse),te(n,g),g=oe(n)})(t);break;case 253:!(t=>{W(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&ve(t)})(t);break;case 205:case 206:!(t=>{e.isOptionalChain(t)?Ee(t):W(t)})(t);break;case 207:!(t=>{if(e.isOptionalChain(t))Ee(t);else{var r=e.skipParentheses(t.expression);212===r.kind||213===r.kind?(K(t.typeArguments),K(t.arguments),Oe(t.expression)):(W(t),106===t.expression.kind&&(g=ae(g,t)))}if(205===t.expression.kind){var n=t.expression;e.isIdentifier(n.name)&&X(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(g=ie(256,g,t))}})(t);break;case 229:!(t=>{e.isOptionalChain(t)?Ee(t):W(t)})(t);break;case 343:case 336:case 337:!(t=>{Oe(t.tagName),337!==t.kind&&t.fullName&&(e.setParent(t.fullName,t),e.setParentRecursive(t.fullName,!1)),"string"!=typeof t.comment&&K(t.comment)})(t);break;case 303:z(t.statements),Oe(t.endOfFileToken);break;case 234:case 261:z(t.statements);break;case 202:!(t=>{e.isBindingPattern(t.name)?(K(t.decorators),K(t.modifiers),Oe(t.dotDotDotToken),Oe(t.propertyName),Oe(t.initializer),Oe(t.name)):W(t)})(t);break;case 204:case 203:case 294:case 224:w=i;default:W(t)}Me(t),w=i}function J(e){switch(e.kind){case 79:case 80:case 108:case 205:case 206:return G(e);case 207:return(e=>{if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(G(r[t]))return!0;return!(205!==e.expression.kind||!G(e.expression.expression))})(e);case 211:case 229:return J(e.expression);case 220:return(e=>{switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return G(e.left);case 34:case 35:case 36:case 37:return X(e.left)||X(e.right)||q(e.right,e.left)||q(e.left,e.right);case 102:return X(e.left);case 101:case 27:return J(e.right)}return!1})(e);case 218:return 53===e.operator&&J(e.operand);case 215:return J(e.expression)}return!1}function $(t){return e.isDottedName(t)||(e.isPropertyAccessExpression(t)||e.isNonNullExpression(t)||e.isParenthesizedExpression(t))&&$(t.expression)||e.isBinaryExpression(t)&&27===t.operatorToken.kind&&$(t.right)||e.isElementAccessExpression(t)&&e.isStringOrNumericLiteralLike(t.argumentExpression)&&$(t.expression)||e.isAssignmentExpression(t)&&$(t.left)}function G(t){return $(t)||e.isOptionalChain(t)&&G(t.expression)}function q(t,r){return e.isTypeOfExpression(t)&&X(t.expression)&&e.isStringLiteralLike(r)}function X(e){switch(e.kind){case 211:return X(e.expression);case 220:switch(e.operatorToken.kind){case 63:return X(e.left);case 27:return X(e.right)}}return G(e)}function Y(){return o({flags:4,antecedents:void 0})}function Q(){return o({flags:8,antecedents:void 0})}function Z(e,t,r){return o({flags:1024,target:e,antecedents:t,antecedent:r})}function ee(e){e.flags|=2048&e.flags?4096:2048}function te(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),ee(r))}function re(t,r,n){return 1&r.flags?r:n?!(110===n.kind&&64&t||95===n.kind&&32&t)||e.isExpressionOfOptionalChainRoot(n)||e.isNullishCoalesce(n.parent)?J(n)?(ee(r),o({flags:t,antecedent:r,node:n})):r:P:32&t?r:P}function ne(e,t,r,n){return ee(e),o({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function ie(e,t,r){ee(t);var n=o({flags:e,antecedent:t,node:r});return E&&te(E,n),n}function ae(e,t){return ee(e),o({flags:512,antecedent:e,node:t})}function oe(e){var t=e.antecedents;return t?1===t.length?t[0]:e:P}function se(e){for(;;)if(211===e.kind)e=e.expression;else{if(218!==e.kind||53!==e.operator)return 220===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function ce(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)&&e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)}function le(t){for(;e.isParenthesizedExpression(t.parent)||e.isPrefixUnaryExpression(t.parent)&&53===t.parent.operator;)t=t.parent;return!((e=>{var t=e.parent;switch(t.kind){case 238:case 240:case 239:return t.expression===e;case 241:case 221:return t.condition===e}return!1})(t)||ce(t.parent)||se(t.parent)||e.isOptionalChain(t.parent)&&t.parent.expression===t)}function ue(e,t,r,n){var i=b,a=x;b=r,x=n,e(t),b=i,x=a}function de(t,r,n){ue(Oe,t,r,n),t&&(ce(t)||se(t)||e.isOptionalChain(t)&&e.isOutermostOptionalChain(t))||(te(r,re(32,g,t)),te(n,re(64,g,t)))}function pe(e,t,r){var n=h,i=y;h=t,y=r,Oe(e),h=n,y=i}function _e(e,t){for(var r=D;r&&249===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function fe(e,t,r){var n=245===e.kind?t:r;n&&(te(n,g),g=P)}function me(t){if(207===t.kind){var r=t;106!==r.expression.kind&&e.isDottedName(r.expression)&&(g=ae(g,r))}}function ge(e){220===e.kind&&63===e.operatorToken.kind?he(e.left):he(e)}function he(e){if($(e))g=ie(16,g,e);else if(203===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];224===n.kind?he(n.expression):ge(n)}else if(204===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];294===o.kind?ge(o.initializer):295===o.kind?he(o.name):296===o.kind&&he(o.expression)}}function ye(t,r,n){var i=Y();55===t.operatorToken.kind||76===t.operatorToken.kind?de(t.left,i,n):de(t.left,r,i),g=oe(i),Oe(t.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)?(ue(Oe,t.right,r,n),he(t.left),te(r,re(32,g,t)),te(n,re(64,g,t))):de(t.right,r,n)}function ve(t){var r=e.isOmittedExpression(t)?void 0:t.name;if(e.isBindingPattern(r))for(var n=0,i=r.elements;n<i.length;n++)ve(i[n]);else g=ie(16,g,t)}function be(e){switch(e.kind){case 205:Oe(e.questionDotToken),Oe(e.name);break;case 206:Oe(e.questionDotToken),Oe(e.argumentExpression);break;case 207:Oe(e.questionDotToken),K(e.typeArguments),K(e.arguments)}}function xe(t,r,n){var i=e.isOptionalChainRoot(t)?Y():void 0;!((t,r,n)=>{ue(Oe,t,r,n),e.isOptionalChain(t)&&!e.isOutermostOptionalChain(t)||(te(r,re(32,g,t)),te(n,re(64,g,t)))})(t.expression,i||r,n),i&&(g=oe(i)),ue(be,t,r,n),e.isOutermostOptionalChain(t)&&(te(r,re(32,g,t)),te(n,re(64,g,t)))}function Ee(e){if(le(e)){var t=Y();xe(e,t,t),g=oe(t)}else xe(e,b,x)}function Se(t){switch(t.kind){case 225:case 256:case 259:case 204:case 181:case 320:case 285:return 1;case 257:return 65;case 260:case 258:case 194:return 33;case 303:return 37;case 171:case 172:case 168:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(t))return 173;case 170:case 255:case 167:case 173:case 321:case 315:case 178:case 174:case 175:case 179:case 169:return 45;case 212:case 213:return 61;case 261:return 4;case 166:return t.initializer?4:0;case 291:case 241:case 242:case 243:case 262:return 2;case 234:return e.isFunctionLike(t.parent)||e.isClassStaticBlockDeclaration(t.parent)?0:2}return 0}function De(e){_&&(_.nextContainer=e),_=e}function Te(r,n,i){switch(s.kind){case 260:return V(r,n,i);case 303:return((r,n,i)=>e.isExternalModule(t)?V(r,n,i):U(t.locals,void 0,r,n,i))(r,n,i);case 225:case 256:return((t,r,n)=>e.isStatic(t)?U(s.symbol.exports,s.symbol,t,r,n):U(s.symbol.members,s.symbol,t,r,n))(r,n,i);case 259:return U(s.symbol.exports,s.symbol,r,n,i);case 181:case 320:case 204:case 257:case 285:return U(s.symbol.members,s.symbol,r,n,i);case 178:case 179:case 173:case 174:case 321:case 175:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 315:case 343:case 336:case 169:case 258:case 194:return U(s.locals,void 0,r,n,i)}}function Ce(t){8388608&t.flags&&!(t=>{var r=e.isSourceFile(t)?t:e.tryCast(t.body,e.isModuleBlock);return!!r&&r.statements.some((t=>e.isExportDeclaration(t)||e.isExportAssignment(t)))})(t)?t.flags|=64:t.flags&=-65}function ke(e){var t=n(e),r=0!==t;return Te(e,r?512:1024,r?110735:0),t}function Ae(e,t,r){var n=R(t,r);return 106508&t&&(n.parent=s.symbol),L(n,e,t),n}function Ne(t,r,n){switch(p.kind){case 260:V(t,r,n);break;case 303:if(e.isExternalOrCommonJsModule(s)){V(t,r,n);break}default:p.locals||(p.locals=e.createSymbolTable(),De(p)),U(p.locals,void 0,t,r,n)}}function we(r,n){if(n&&79===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,(r=>e.getContainingClass(r)?e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode)(r),e.idText(i)))}}var o}function Fe(e){k&&we(e,e.name)}function Pe(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Ie(r,n,i,a){!((r,n,i)=>{var a=e.createFileDiagnostic(t,n.pos,n.end-n.pos,i);r?t.bindDiagnostics.push(a):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,Ol(Ol({},a),{category:e.DiagnosticCategory.Suggestion}))})(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},a)}function Oe(t){if(t){e.setParent(t,a);var r=k;if(Le(t),t.kind>159){var n=a;a=t;var i=Se(t);0===i?H(t):((t,r)=>{var n=s,i=d,a=p;if(1&r?(213!==t.kind&&(d=s),s=p=t,32&r&&(s.locals=e.createSymbolTable()),De(s)):2&r&&((p=t).locals=void 0),4&r){var c=g,l=h,u=y,_=v,f=E,b=D,x=T,S=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);S||(g=o({flags:2}),144&r&&(g.node=t)),v=S||170===t.kind||169===t.kind||e.isInJSFile(t)&&(255===t.kind||212===t.kind)?Y():void 0,E=void 0,h=void 0,y=void 0,D=void 0,T=!1,H(t),t.flags&=-2817,!(1&g.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,T&&(t.flags|=512),t.endFlowNode=g),303===t.kind&&(t.flags|=C,t.endFlowNode=g),v&&(te(v,g),g=oe(v),(170===t.kind||169===t.kind||e.isInJSFile(t)&&(255===t.kind||212===t.kind))&&(t.returnFlowNode=g)),S||(g=c),h=l,y=u,v=_,E=f,D=b,T=x}else 64&r?(m=!1,H(t),t.flags=m?128|t.flags:-129&t.flags):H(t);s=n,d=i,p=a})(t,i),a=n}else n=a,1===t.kind&&(a=t),Me(t),a=n;k=r}}function Me(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r<n.length;r++)Oe(o=n[r]);else for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];e.setParent(o,t),e.setParentRecursive(o,!1)}}function Re(r){if(!k)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))return;if(o=a,'"use strict"'===(s=e.getSourceTextOfNodeFromSourceFile(t,o.expression))||"'use strict'"===s)return void(k=!0)}var o,s}function Le(n){switch(n.kind){case 79:if(n.isInJSDocNamespace){for(var o=n.parent;o&&!e.isJSDocTypeAlias(o);)o=o.parent;Ne(o,524288,788968);break}case 108:return g&&(e.isExpression(n)||295===a.kind)&&(n.flowNode=g),(r=>{t.parseDiagnostics.length||8388608&r.flags||4194304&r.flags||e.isIdentifierName(r)||(k&&r.originalKeywordKind>=117&&r.originalKeywordKind<=125?t.bindDiagnostics.push(M(r,(r=>e.getContainingClass(r)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode)(r),e.declarationNameToString(r))):132===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(M(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(M(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):125===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(M(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))})(n);case 160:g&&e.isPartOfTypeQuery(n)&&(n.flowNode=g);break;case 230:case 106:n.flowNode=g;break;case 80:return(r=>{"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(M(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))})(n);case 205:case 206:var c=n;g&&$(c)&&(c.flowNode=g),e.isSpecialPropertyDeclaration(c)&&(t=>{108===t.expression.kind?ze(t):e.isBindableStaticAccessExpression(t)&&303===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?He(t,t.parent):Je(t))})(c),e.isInJSFile(c)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(c)&&!u(p,"module")&&U(t.locals,void 0,c.expression,134217729,111550);break;case 220:switch(e.getAssignmentDeclarationKind(n)){case 1:Ue(n);break;case 2:!(r=>{if(je(r)){var n=e.getRightMostAssignedExpression(r.right);if(!(e.isEmptyObjectLiteral(n)||s===t&&l(t,n)))if(e.isObjectLiteralExpression(n)&&e.every(n.properties,e.isShorthandPropertyAssignment))e.forEach(n.properties,Ve);else{var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=U(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}}})(n);break;case 3:He(n.left,n);break;case 6:!(t=>{e.setParent(t.left,t),e.setParent(t.right,t),Xe(t.left.expression,t.left,!1,!0)})(n);break;case 4:ze(n);break;case 5:var d=n.left.expression;if(e.isInJSFile(n)&&e.isIdentifier(d)){var _=u(p,d.escapedText);if(e.isThisInitializedDeclaration(null==_?void 0:_.valueDeclaration)){ze(n);break}}!(r=>{var n,i=Ye(r.left.expression,s)||Ye(r.left.expression,p);if(e.isInJSFile(r)||e.isFunctionSymbol(i)){var a=e.getLeftmostAccessExpression(r.left);e.isIdentifier(a)&&2097152&(null===(n=u(s,a.escapedText))||void 0===n?void 0:n.flags)||(e.setParent(r.left,r),e.setParent(r.right,r),e.isIdentifier(r.left.expression)&&s===t&&l(t,r.left.expression)?Ue(r):e.hasDynamicName(r)?(Ae(r,67108868,"__computed"),We(r,$e(i,r.left.expression,qe(r.left),!1,!1))):Je(e.cast(r.left,e.isBindableStaticNameExpression)))}})(n);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return(t=>{k&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&we(t,t.left)})(n);case 291:return(e=>{k&&e.variableDeclaration&&we(e,e.variableDeclaration.name)})(n);case 214:return(r=>{if(k&&79===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}})(n);case 8:return(r=>{k&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(M(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))})(n);case 219:return(e=>{k&&we(e,e.operand)})(n);case 218:return(e=>{k&&(45!==e.operator&&46!==e.operator||we(e,e.operand))})(n);case 247:return(t=>{k&&Pe(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)})(n);case 249:return(t=>{k&&e.getEmitScriptTarget(r)>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Pe(t.label,e.Diagnostics.A_label_is_not_allowed_here)})(n);case 191:return void(m=!0);case 176:break;case 162:return(t=>{if(e.isJSDocTemplateTag(t.parent)){var r=e.getEffectiveContainerForJSDocTemplateTag(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),U(r.locals,void 0,t,262144,526824)):Te(t,262144,526824)}else if(189===t.parent.kind){var n=(t=>{var r=e.findAncestor(t,(t=>t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t));return r&&r.parent})(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),U(n.locals,void 0,t,262144,526824)):Ae(t,262144,B(t))}else Te(t,262144,526824)})(n);case 163:return et(n);case 253:return Ze(n);case 202:return n.flowNode=g,Ze(n);case 166:case 165:return(e=>tt(e,4|(e.questionToken?16777216:0),0))(n);case 294:case 295:return tt(n,4,0);case 297:return tt(n,8,900095);case 173:case 174:case 175:return Te(n,131072,0);case 168:case 167:return tt(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:103359);case 255:return(r=>{t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(C|=2048),Fe(r),k?((r=>{if(i<2&&303!==p.kind&&260!==p.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(p)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,(r=>e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5)(r)))}})(r),Ne(r,16,110991)):Te(r,16,110991)})(n);case 170:return Te(n,16384,0);case 171:return tt(n,32768,46015);case 172:return tt(n,65536,78783);case 178:case 315:case 321:case 179:return(t=>{var r=R(131072,B(t));L(r,t,131072);var n=R(2048,"__type");L(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)})(n);case 181:case 320:case 194:return(e=>Ae(e,2048,"__type"))(n);case 330:return(t=>{W(t);var r=e.getHostSignatureFromJSDoc(t);r&&168!==r.kind&&L(r.symbol,r,32)})(n);case 204:return(r=>{var n;if((e=>{e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"})(n||(n={})),k&&!e.isAssignmentTarget(r))for(var i=new e.Map,a=0,o=r.properties;a<o.length;a++){var s=o[a];if(296!==s.kind&&79===s.name.kind){var c=s.name,l=294===s.kind||295===s.kind||168===s.kind?1:2,u=i.get(c.escapedText);if(u){if(1===l&&1===u){var d=e.getErrorSpanForNode(t,c);t.bindDiagnostics.push(e.createFileDiagnostic(t,d.start,d.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else i.set(c.escapedText,l)}}return Ae(r,4096,"__object")})(n);case 212:case 213:return(r=>(t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(C|=2048),g&&(r.flowNode=g),Fe(r),Ae(r,16,r.name?r.name.escapedText:"__function")))(n);case 207:switch(e.getAssignmentDeclarationKind(n)){case 7:return(e=>{var t=Ye(e.arguments[0]),r=303===e.parent.parent.kind;Ge(e,t=$e(t,e.arguments[0],r,!1,!1),!1)})(n);case 8:return(e=>{if(je(e)){var t=Qe(e.arguments[0],void 0,((e,t)=>(t&&L(t,e,67110400),t)));t&&U(t.exports,t,e,1048580,0)}})(n);case 9:return(e=>{var t=Ye(e.arguments[0].expression);t&&t.valueDeclaration&&L(t,t.valueDeclaration,32),Ge(e,t,!0)})(n);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(n)&&(r=>{!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&je(r)})(n);break;case 225:case 256:return k=!0,(r=>{256===r.kind?Ne(r,32,899503):(Ae(r,32,r.name?r.name.escapedText:"__class"),r.name&&N.add(r.name.escapedText));var n=r.symbol,i=R(4194308,"prototype"),a=n.exports.get(i.escapedName);a&&(r.name&&e.setParent(r.name,r),t.bindDiagnostics.push(M(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i)))),n.exports.set(i.escapedName,i),i.parent=n})(n);case 257:return Ne(n,64,788872);case 258:return Ne(n,524288,788968);case 259:return(t=>e.isEnumConst(t)?Ne(t,128,899967):Ne(t,256,899327))(n);case 260:return(r=>{if(Ce(r),e.isAmbientModule(r))if(e.hasSyntacticModifier(r,1)&&Pe(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))ke(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;void 0===(n=e.tryParsePattern(i))&&Pe(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=Te(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&!e.isString(n)?{pattern:n,symbol:a}:void 0)}else{var o=ke(r);0!==o&&((a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}})(n);case 285:return(e=>Ae(e,4096,"__jsxAttributes"))(n);case 284:return((e,t,r)=>Te(e,4,0))(n);case 264:case 267:case 269:case 274:return Te(n,2097152,2097152);case 263:return(r=>{r.modifiers&&r.modifiers.length&&t.bindDiagnostics.push(M(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;n?t.bindDiagnostics.push(M(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),U(t.symbol.globalExports,t.symbol,r,2097152,2097152))})(n);case 266:return(e=>{e.name&&Te(e,2097152,2097152)})(n);case 271:return(t=>{s.symbol&&s.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),U(s.symbol.exports,s.symbol,t.exportClause,2097152,2097152)):U(s.symbol.exports,s.symbol,t,8388608,0):Ae(t,8388608,B(t))})(n);case 270:return(t=>{if(s.symbol&&s.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=U(s.symbol.exports,s.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else Ae(t,111551,B(t))})(n);case 303:return Re(n.statements),(()=>{if(Ce(t),e.isExternalModule(t))Be();else if(e.isJsonSourceFile(t)){Be();var r=t.symbol;U(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}})();case 234:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(n.parent))return;case 261:return Re(n.statements);case 338:if(321===n.parent.kind)return et(n);if(320!==n.parent.kind)break;case 345:var h=n;return Te(h,h.isBracketed||h.typeExpression&&314===h.typeExpression.type.kind?16777220:4,0);case 343:case 336:case 337:return(f||(f=[])).push(n)}}function Be(){Ae(t,512,'"'.concat(e.removeFileExtension(t.fileName),'"'))}function je(e){return!t.externalModuleIndicator&&(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,Be()),!0)}function Ue(t){if(je(t)){var r=Qe(t.left.expression,void 0,((e,t)=>(t&&L(t,e,67110400),t)));if(r){var n=e.isAliasableExpression(t.right)&&(e.isExportsIdentifier(t.left.expression)||e.isModuleExportsAccessExpression(t.left.expression))?2097152:1048580;e.setParent(t.left,t),U(r.exports,r,t.left,n,0)}}}function Ve(e){U(t.symbol.exports,t.symbol,e,69206016,0)}function ze(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var r=e.getThisContainer(t,!1);switch(r.kind){case 255:case 212:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind){var i=r.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=Ye(i.expression.expression,d))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?Ke(t,n,n.members):U(n.members,n,t,67108868,0),L(n,n.valueDeclaration,32));break;case 170:case 166:case 168:case 171:case 172:case 169:var a=r.parent,o=e.isStatic(r)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?Ke(t,a.symbol,o):U(o,a.symbol,t,67108868,0,!0);break;case 303:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?U(r.symbol.exports,r.symbol,t,1048580,0):Te(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function Ke(e,t,r){U(r,t,e,4,0,!0,!0),We(e,t)}function We(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function He(t,r){var n=t.expression,i=n.expression;e.setParent(i,n),e.setParent(n,t),e.setParent(t,r),Xe(i,t,!0,!0)}function Je(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),Xe(t.expression,t,!1,!1)}function $e(r,n,i,a,o){if(2097152&(null==r?void 0:r.flags))return r;if(i&&!a){var s=67110400;r=Qe(n,r,((r,n,i)=>n?(L(n,r,s),n):U(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,s,110735)))}return o&&r&&r.valueDeclaration&&L(r,r.valueDeclaration,32),r}function Ge(t,r,n){if(r&&(t=>{if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,i)}return!1})(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,(t=>{var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"set"===e.idText(r)}))&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,(t=>{var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"get"===e.idText(r)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),U(i,r,t,67108864|a,-67108865&o)}}function qe(t){return e.isBinaryExpression(t.parent)?303===(t=>{for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent})(t.parent).parent.kind:303===t.parent.parent.kind}function Xe(e,t,r,n){var i=Ye(e,s)||Ye(e,p),a=qe(t);Ge(t,i=$e(i,t.expression,a,r,n),r)}function Ye(t,r){if(void 0===r&&(r=s),e.isIdentifier(t))return u(r,t.escapedText);var n=Ye(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function Qe(r,n,i){if(l(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,Ye(r),n);var a=Qe(r.expression,n,i),o=e.getNameOrArgument(r);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(r)),a)}function Ze(t){k&&we(t,t.name),e.isBindingPattern(t.name)||(e.isInJSFile(t)&&e.isRequireVariableDeclaration(t)&&!e.getJSDocTypeTag(t)?Te(t,2097152,2097152):e.isBlockOrCatchScoped(t)?Ne(t,2,111551):e.isParameterDeclaration(t)?Te(t,1,111551):Te(t,1,111550))}function et(t){if((338!==t.kind||321===s.kind)&&(!k||8388608&t.flags||we(t,t.name),e.isBindingPattern(t.name)?Ae(t,1,"__"+t.parent.parameters.indexOf(t)):Te(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;U(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function tt(r,n,i){return t.isDeclarationFile||8388608&r.flags||!e.isAsyncFunction(r)||(C|=2048),g&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(r)&&(r.flowNode=g),e.hasDynamicName(r)?Ae(r,n,"__computed"):Te(r,n,i)}})();function c(t){return!(e.isFunctionDeclaration(t)||(t=>{switch(t.kind){case 257:case 258:return!0;case 260:return 1!==n(t);case 259:return e.hasSyntacticModifier(t,2048);default:return!1}})(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some((e=>!e.initializer)))}function l(t,r){for(var n=0,i=[r];i.length&&n<100;){if(n++,r=i.shift(),e.isExportsIdentifier(r)||e.isModuleExportsAccessExpression(r))return!0;if(e.isIdentifier(r)){var a=u(t,r.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.push(o),e.isAssignmentExpression(o,!0)&&(i.push(o.left),i.push(o.right))}}}return!1}function u(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}e.bindSourceFile=(t,r)=>{null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:t.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),s(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind"),null===e.tracing||void 0===e.tracing||e.tracing.pop()},e.isExportsOrModuleExportsOrAlias=l})(Fl),(e=>{e.createGetSymbolWalker=(t,r,n,i,a,o,s,c,l,u)=>d=>{void 0===d&&(d=()=>!0);var p=[],_=[];return{walkType(t){try{return f(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}},walkSymbol(t){try{return h(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}}};function f(t){if(t&&!p[t.id]&&(p[t.id]=t,!h(t.symbol))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&(t=>{f(t.target),e.forEach(u(t),f)})(t),32&n&&(e=>{f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)})(t),3&n&&(g(a=t),e.forEach(a.typeParameters,f),e.forEach(i(a),f),f(a.thisType)),24&n&&g(r)}var a;262144&t.flags&&(e=>{f(c(e))})(t),3145728&t.flags&&(t=>{e.forEach(t.types,f)})(t),4194304&t.flags&&(e=>{f(e.type)})(t),8388608&t.flags&&(e=>{f(e.objectType),f(e.indexType),f(e.constraint)})(t)}}function m(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o<s.length;o++)h(s[o]);f(t(i)),f(n(i))}function g(e){for(var t=a(e),r=0,n=t.indexInfos;r<n.length;r++){var i=n[r];f(i.keyType),f(i.type)}for(var o=0,s=t.callSignatures;o<s.length;o++)m(s[o]);for(var c=0,l=t.constructSignatures;c<l.length;c++)m(l[c]);for(var u=0,d=t.properties;u<d.length;u++)h(d[u])}function h(t){if(!t)return!1;var r=e.getSymbolId(t);return!_[r]&&(_[r]=t,!d(t)||(f(o(t)),t.exports&&t.exports.forEach(h),e.forEach(t.declarations,(e=>{if(e.type&&180===e.type.kind){var t=e.type;h(s(l(t.exprName)))}})),!1))}}})(Fl),function(e){var t,r,n,i,a=/^".+"$/,o="(anonymous)",s=1,c=1,l=1,u=1;!(e=>{e[e.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",e[e.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",e[e.AllowsStringInputFlag=4]="AllowsStringInputFlag",e[e.ForOfFlag=8]="ForOfFlag",e[e.YieldStarFlag=16]="YieldStarFlag",e[e.SpreadFlag=32]="SpreadFlag",e[e.DestructuringFlag=64]="DestructuringFlag",e[e.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",e[e.Element=1]="Element",e[e.Spread=33]="Spread",e[e.Destructuring=65]="Destructuring",e[e.ForOf=13]="ForOf",e[e.ForAwaitOf=15]="ForAwaitOf",e[e.YieldStar=17]="YieldStar",e[e.AsyncYieldStar=19]="AsyncYieldStar",e[e.GeneratorReturnType=1]="GeneratorReturnType",e[e.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(t||(t={})),(e=>{e[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next"})(r||(r={})),(e=>{e[e.Normal=0]="Normal",e[e.FunctionReturn=1]="FunctionReturn",e[e.GeneratorNext=2]="GeneratorNext",e[e.GeneratorYield=3]="GeneratorYield"})(n||(n={})),(e=>{e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts"})(i||(i={}));var d,p,_,f,m,g,h,y,v,b=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),x=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}));!(e=>{e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.ResolvedTypeArguments=6]="ResolvedTypeArguments",e[e.ResolvedBaseTypes=7]="ResolvedBaseTypes"})(d||(d={})),(e=>{e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp"})(p||(p={})),(e=>{e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.Callback=3]="Callback"})(_||(_={})),(e=>{e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.PropertyCheck=4]="PropertyCheck",e[e.UnionIntersectionCheck=8]="UnionIntersectionCheck",e[e.InPropertyCheck=16]="InPropertyCheck"})(f||(f={})),(e=>{e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"})(m||(m={})),(e=>{e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"})(g||(g={})),(e=>{e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"})(h||(h={})),(e=>{e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"})(y||(y={})),(e=>{e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"})(v||(v={}));var E,S,D,T,C=e.and(O,(t=>!e.isAccessor(t)));!(e=>{e[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.PrivateStatic=16]="PrivateStatic",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(E||(E={})),(e=>{e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"})(S||(S={})),(e=>{e[e.None=0]="None",e[e.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",e[e.VoidIsNonOptional=2]="VoidIsNonOptional"})(D||(D={})),(e=>{e[e.Uppercase=0]="Uppercase",e[e.Lowercase=1]="Lowercase",e[e.Capitalize=2]="Capitalize",e[e.Uncapitalize=3]="Uncapitalize"})(T||(T={}));var k,A=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function N(){}function w(){this.flags=0}function F(e){return e.id||(e.id=c,c++),e.id}function P(e){return e.id||(e.id=s,s++),e.id}function I(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function O(e){return 255!==e.kind&&168!==e.kind||!!e.body}function M(t){switch(t.parent.kind){case 269:case 274:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function R(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function L(e){return!!(1&e.flags)}function B(e){return!!(2&e.flags)}e.getNodeId=F,e.getSymbolId=P,e.isInstantiatedModule=I,e.createTypeChecker=function(t,r){var n,i,s,c,d=e.memoize((()=>{var r=new e.Map;return t.getSourceFiles().forEach((e=>{e.resolvedModules&&e.resolvedModules.forEach((e=>{e&&e.packageId&&r.set(e.packageId.name,".d.ts"===e.extension||!!r.get(e.packageId.name))}))})),r})),p=e.objectAllocator.getSymbolConstructor(),_=e.objectAllocator.getTypeConstructor(),f=e.objectAllocator.getSignatureConstructor(),m=0,g=0,h=0,y=0,v=0,E=0,S=0,D=e.createSymbolTable(),T=[1],j=t.getCompilerOptions(),U=e.getEmitScriptTarget(j),V=e.getEmitModuleKind(j),z=e.getUseDefineForClassFields(j),K=e.getAllowSyntheticDefaultImports(j),W=e.getStrictOptionValue(j,"strictNullChecks"),H=e.getStrictOptionValue(j,"strictFunctionTypes"),J=e.getStrictOptionValue(j,"strictBindCallApply"),$=e.getStrictOptionValue(j,"strictPropertyInitialization"),G=e.getStrictOptionValue(j,"noImplicitAny"),q=e.getStrictOptionValue(j,"noImplicitThis"),X=e.getStrictOptionValue(j,"useUnknownInCatchVariables"),Y=!!j.keyofStringsOnly,Q=j.suppressExcessPropertyErrors?0:16384,Z=j.exactOptionalPropertyTypes,ee=(()=>{var t=e.createBinaryExpressionTrampoline(((t,r,i)=>(r?(r.stackIndex++,r.skip=!1,n(r,void 0),a(r,void 0)):r={checkMode:i,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)?(r.skip=!0,a(r,ix(t.right,i)),r):((t=>{var r=t.left,n=t.operatorToken,i=t.right;60===n.kind&&(!e.isBinaryExpression(r)||56!==r.operatorToken.kind&&55!==r.operatorToken.kind||XD(r,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(r.operatorToken.kind),e.tokenToString(n.kind)),!e.isBinaryExpression(i)||56!==i.operatorToken.kind&&55!==i.operatorToken.kind||XD(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))})(t),63!==t.operatorToken.kind||204!==t.left.kind&&203!==t.left.kind||(r.skip=!0,a(r,Pb(t.left,ix(t.right,i),i,108===t.right.kind))),r))),((e,t,n)=>{if(!t.skip)return r(t,e)}),((t,r,o)=>{if(!r.skip){var s=i(r);e.Debug.assertIsDefined(s),n(r,s),a(r,void 0);var c=t.kind;if(55===c||56===c||60===c){if(55===c){var l=e.walkUpParenthesizedExpressions(o.parent);_E(o.left,s,e.isIfStatement(l)?l.thenStatement:void 0)}fE(s,o.left)}}}),((e,t,n)=>{if(!t.skip)return r(t,e)}),((t,r)=>{var o;if(r.skip)o=i(r);else{var s=(e=>e.typeStack[e.stackIndex])(r);e.Debug.assertIsDefined(s);var c=i(r);e.Debug.assertIsDefined(c),o=Mb(t.left,t.operatorToken,t.right,s,c,t)}return r.skip=!1,n(r,void 0),a(r,void 0),r.stackIndex--,o}),((e,t,r)=>(a(e,t),e)));return(r,n)=>{var i=t(r,n);return e.Debug.assertIsDefined(i),i};function r(t,r){if(e.isBinaryExpression(r))return r;a(t,ix(r,t.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function i(e){return e.typeStack[e.stackIndex+1]}function a(e,t){e.typeStack[e.stackIndex+1]=t}})(),te=(()=>{var r,n=t.getResolvedTypeReferenceDirectives();return n&&(r=new e.Map,n.forEach(((e,r)=>{if(e&&e.resolvedFileName){var n=t.getSourceFile(e.resolvedFileName);n&&a(n,r)}}))),{getReferencedExportContainer:WS,getReferencedImportDeclaration:HS,getReferencedDeclarationWithCollidingName:$S,isDeclarationWithCollidingName:GS,isValueAliasDeclaration(t){var r=e.getParseTreeNode(t);return!r||qS(r)},hasGlobalName:fD,isReferencedAliasDeclaration(t,r){var n=e.getParseTreeNode(t);return!n||ZS(n,r)},getNodeCheckFlags(t){var r=e.getParseTreeNode(t);return r?aD(r):0},isTopLevelValueImportEqualsWithEntityName:XS,isDeclarationVisible:Wa,isImplementationOfOverload:eD,isRequiredInitializedParameter:tD,isOptionalUninitializedParameterProperty:rD,isExpandoFunctionDeclaration:nD,getPropertiesOfContainerFunction:iD,createTypeOfDeclaration:dD,createReturnTypeOfSignatureDeclaration:pD,createTypeOfExpression:_D,createLiteralConstValue:yD,isSymbolAccessible:Sa,isEntityNameVisible:Na,getConstantValue(t){var r=e.getParseTreeNode(t,sD);return r?cD(r):void 0},collectLinkedAliases:Ha,getReferencedValueDeclaration:gD,getTypeReferenceSerializationKind:uD,isOptionalParameter:el,moduleExportsSomeValue:KS,isArgumentsLocalBinding:zS,getExternalModuleFileFromDeclaration(t){var r=e.getParseTreeNode(t,e.hasPossibleExternalModuleReference);return r&&xD(r)},getTypeReferenceDirectivesForEntityName(e){if(r){var t=790504;(79===e.kind&&Sm(e)||205===e.kind&&!(e=>e.parent&&227===e.parent.kind&&e.parent.parent&&290===e.parent.parent.kind)(e))&&(t=1160127);var n=Pi(e,t,!0);return n&&n!==Te?i(n,t):void 0}},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:hD,isLateBound(t){var r=e.getParseTreeNode(t,e.isDeclaration),n=r&&Xi(r);return!!(n&&4096&e.getCheckFlags(n))},getJsxFactoryEntity:vD,getJsxFragmentFactoryEntity:bD,getAllAccessorDeclarations(t){var r=172===(t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration)).kind?171:172,n=e.getDeclarationOfKind(Xi(t),r);return{firstAccessor:n&&n.pos<t.pos?n:t,secondAccessor:n&&n.pos<t.pos?t:n,setAccessor:172===t.kind?t:n,getAccessor:171===t.kind?t:n}},getSymbolOfExternalModuleSpecifier:e=>Mi(e,e,void 0),isBindingCapturedByNode(t,r){var n=e.getParseTreeNode(t),i=e.getParseTreeNode(r);return!!n&&!!i&&(e.isVariableDeclaration(i)||e.isBindingElement(i))&&((t,r)=>{var n=Jn(t);return!!n&&e.contains(n.capturedBlockScopeBindings,Xi(r))})(n,i)},getDeclarationStatementsForSourceFile(t,r,n,i){var a=e.getParseTreeNode(t);e.Debug.assert(a&&303===a.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=Xi(t);return o?o.exports?re.symbolTableToDeclarationStatements(o.exports,t,r,n,i):[]:t.locals?re.symbolTableToDeclarationStatements(t.locals,t,r,n,i):[]},isImportRequiredByAugmentation(t){var r=e.getSourceFileOfNode(t);if(!r.symbol)return!1;var n=xD(t);if(!n)return!1;if(n===r)return!1;for(var i=Ji(r.symbol),a=0,o=e.arrayFrom(i.values());a<o.length;a++){var s=o[a];if(s.mergeId){var c=qi(s);if(c.declarations)for(var l=0,u=c.declarations;l<u.length;l++){var d=u[l];if(e.getSourceFileOfNode(d)===n)return!0}}}return!1}};function i(t,n){if(r&&(t=>{if(!t.declarations)return!1;for(var n=t;;){var i=Yi(n);if(!i)break;n=i}if(n.valueDeclaration&&303===n.valueDeclaration.kind&&512&n.flags)return!1;for(var a=0,o=t.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(r.has(c.path))return!0}return!1})(t)){for(var i,a=0,o=t.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&n){var c=e.getSourceFileOfNode(s),l=r.get(c.path);if(!l)return;(i||(i=[])).push(l)}}return i}}function a(n,i){if(!r.has(n.path)){r.set(n.path,i);for(var o=0,s=n.referencedFiles;o<s.length;o++){var c=s[o].fileName,l=e.resolveTripleslashReference(c,n.fileName),u=t.getSourceFile(l);u&&a(u,i)}}}})(),re=(()=>{return{typeToTypeNode:(e,t,n,i)=>r(t,n,i,(t=>s(e,t))),indexInfoToIndexSignatureDeclaration:(e,t,n,i)=>r(t,n,i,(t=>p(e,t,void 0))),signatureToSignatureDeclaration:(e,t,n,i,a)=>r(n,i,a,(r=>_(e,t,r))),symbolToEntityName:(e,t,n,i,a)=>r(n,i,a,(r=>A(e,r,t,!1))),symbolToExpression:(e,t,n,i,a)=>r(n,i,a,(r=>N(e,r,t))),symbolToTypeParameterDeclarations:(e,t,n,i)=>r(t,n,i,(t=>b(e,t))),symbolToParameterDeclaration:(e,t,n,i)=>r(t,n,i,(t=>g(e,t))),typeParameterToDeclaration:(e,t,n,i)=>r(t,n,i,(t=>m(e,t))),symbolTableToDeclarationStatements:(t,n,a,o,c)=>r(n,a,o,(r=>((t,r,n)=>{var a=G(e.factory.createPropertyDeclaration,168,!0),o=G(((t,r,n,i,a)=>e.factory.createPropertySignature(r,n,i,a)),167,!1),c=r.enclosingDeclaration,l=[],u=new e.Set,d=[],f=r;(r=Ol(Ol({},f),{usedSymbolNames:new e.Set(f.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:Ol(Ol({},f.tracker),{trackSymbol(e,t,n){if(0===Sa(e,t,n,!1).accessibility){var i=v(e,r,n);4&e.flags||k(i[0])}else if(f.tracker&&f.tracker.trackSymbol)return f.tracker.trackSymbol(e,t,n);return!1}})})).tracker=i(r,r.tracker),e.forEachEntry(t,((t,r)=>{te(t,e.unescapeLeadingUnderscores(r))}));var g,h=!n,y=t.get("export=");return y&&t.size>1&&2097152&y.flags&&(t=e.createSymbolTable()).set("export=",y),T(t),g=(t=>{var r=e.findIndex(t,(t=>e.isExportDeclaration(t)&&!t.moduleSpecifier&&!t.assertClause&&!!t.exportClause&&e.isNamedExports(t.exportClause)));if(r>=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(r=>{if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(n=>e.nodeHasName(t[n],r.name)));if(e.length(i)&&e.every(i,(e=>x(t[e])))){for(var a=0,o=i;a<o.length;a++){var s=o[a];t[s]=E(t[s])}return}}return r}));e.length(i)?t[r]=e.factory.updateExportDeclaration(n,n.decorators,n.modifiers,n.isTypeOnly,e.factory.updateNamedExports(n.exportClause,i),n.moduleSpecifier,n.assertClause):e.orderedRemoveItemAt(t,r)}return t})(g=(t=>{var r=e.filter(t,(t=>e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)));if(e.length(r)>1){var n=e.filter(t,(t=>!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause));t=Il(Il([],n,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(t=>e.cast(t.exportClause,e.isNamedExports).elements))),void 0)],!1)}var i=e.filter(t,(t=>e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)));if(e.length(i)>1){var a=e.group(i,(t=>e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"));if(a.length!==i.length)for(var o=r=>{r.length>1&&(t=Il(Il([],e.filter(t,(e=>-1===r.indexOf(e))),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(t=>e.cast(t.exportClause,e.isNamedExports).elements))),r[0].moduleSpecifier)],!1))},s=0,c=a;s<c.length;s++)o(c[s])}return t})(g=(t=>{var r=e.find(t,e.isExportAssignment),n=e.findIndex(t,e.isModuleDeclaration),i=-1!==n?t[n]:void 0;if(i&&r&&r.isExportEquals&&e.isIdentifier(r.expression)&&e.isIdentifier(i.name)&&e.idText(i.name)===e.idText(r.expression)&&i.body&&e.isModuleBlock(i.body)){var a=e.filter(t,(t=>!!(1&e.getEffectiveModifierFlags(t)))),o=i.name,s=i.body;if(e.length(a)&&(i=e.factory.updateModuleDeclaration(i,i.decorators,i.modifiers,i.name,s=e.factory.updateModuleBlock(s,e.factory.createNodeArray(Il(Il([],i.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(a,(t=>{return r=t,e.isVariableStatement(r)?e.filter(e.map(r.declarationList.declarations,e.getNameOfDeclaration),b):e.filter([e.getNameOfDeclaration(r)],b);var r})),(t=>e.factory.createExportSpecifier(!1,void 0,t)))),void 0)],!1)))),t=Il(Il(Il([],t.slice(0,n),!0),[i],!1),t.slice(n+1),!0)),!e.find(t,(t=>t!==i&&e.nodeHasName(t,o)))){l=[];var c=!e.some(s.statements,(t=>e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)));e.forEach(s.statements,(e=>{w(e,c?1:0)})),t=Il(Il([],e.filter(t,(e=>e!==i&&e!==r)),!0),l,!0)}}return t})(g=l))),c&&(e.isSourceFile(c)&&e.isExternalOrCommonJsModule(c)||e.isModuleDeclaration(c))&&(!e.some(g,e.isExternalModuleIndicator)||!e.hasScopeMarker(g)&&e.some(g,e.needsScopeMarker))&&g.push(e.createEmptyExports(e.factory)),g;function b(e){return!!e&&79===e.kind}function x(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t)&&!e.isExternalModuleAugmentation(t)&&!e.isGlobalScopeAugmentation(t)||e.isInterfaceDeclaration(t)||kS(t)}function E(t){var r=-3&(1|e.getEffectiveModifierFlags(t));return e.factory.updateModifiers(t,r)}function D(t){var r=-2&e.getEffectiveModifierFlags(t);return e.factory.updateModifiers(t,r)}function T(t,r,n){r||d.push(new e.Map),t.forEach((e=>{C(e,!1,!!n)})),r||(d[d.length-1].forEach((e=>{C(e,!0,!!n)})),d.pop())}function C(t,l,d){var p=qi(t);if(!u.has(P(p))&&(u.add(P(p)),!l||e.length(t.declarations)&&e.some(t.declarations,(t=>!!e.findAncestor(t,(e=>e===c)))))){var _=r;r=(t=>{var r=Ol({},t);return r.typeParameterNames&&(r.typeParameterNames=new e.Map(r.typeParameterNames)),r.typeParameterNamesByText&&(r.typeParameterNamesByText=new e.Set(r.typeParameterNamesByText)),r.typeParameterSymbolList&&(r.typeParameterSymbolList=new e.Set(r.typeParameterSymbolList)),r.tracker=i(r,r.tracker),r})(r);var g=((t,i,l)=>{var u,d,p=e.unescapeLeadingUnderscores(t.escapedName),_="default"===t.escapedName;if(!i||131072&r.flags||!e.isStringANonContextualKeyword(p)||_){var f=_&&!!(-113&t.flags||16&t.flags&&e.length(fc(jo(t))))&&!(2097152&t.flags),g=!f&&!i&&e.isStringANonContextualKeyword(p)&&!_;(f||g)&&(i=!0);var h=(i?0:1)|(_&&!f?512:0),y=1536&t.flags&&7&t.flags&&"export="!==t.escapedName,v=y&&$(jo(t),t);if((8208&t.flags||v)&&I(jo(t),t,te(t,p),h),524288&t.flags&&((t,i,a)=>{var o,c=as(t),l=Hn(t).typeParameters,u=e.map(l,(e=>m(e,r))),d=null===(o=t.declarations)||void 0===o?void 0:o.find(e.isJSDocTypeAlias),p=e.getTextOfJSDocComment(d?d.comment||d.parent.comment:void 0),_=r.flags;r.flags|=8388608;var f=r.enclosingDeclaration;r.enclosingDeclaration=d;var g=d&&d.typeExpression&&e.isJSDocTypeExpression(d.typeExpression)&&z(r,d.typeExpression.type,k,n)||s(c,r);w(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,te(t,i),u,g),p?[{kind:3,text:"*\n * "+p.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),a),r.flags=_,r.enclosingDeclaration=f})(t,p,h),7&t.flags&&"export="!==t.escapedName&&!(4194304&t.flags)&&!(32&t.flags)&&!v)if(l)J(t)&&(g=!1,f=!1);else{var b=jo(t),x=te(t,p);if(16&t.flags||!$(b,t)){var E=2&t.flags?Og(t)?2:1:void 0,D=!f&&4&t.flags?Z(x,t):x,T=t.declarations&&e.find(t.declarations,(t=>e.isVariableDeclaration(t)));T&&e.isVariableDeclarationList(T.parent)&&1===T.parent.declarations.length&&(T=T.parent.parent);var C=null===(u=t.declarations)||void 0===u?void 0:u.find(e.isPropertyAccessExpression);if(C&&e.isBinaryExpression(C.parent)&&e.isIdentifier(C.parent.right)&&(null===(d=b.symbol)||void 0===d?void 0:d.valueDeclaration)&&e.isSourceFile(b.symbol.valueDeclaration)){var A=x===C.parent.right.escapedText?void 0:C.parent.right;w(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,A,x)])),0),r.tracker.trackSymbol(b.symbol,r.enclosingDeclaration,111551)}else w(e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(D,void 0,B(r,b,t,c,k,n))],E)),T),D!==x?-2&h:h),D===x||i||(w(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,D,x)])),0),g=!1,f=!1)}else I(b,t,x,h)}if(384&t.flags&&((t,r,n)=>{w(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Nb(t)?2048:0),te(t,r),e.map(e.filter(fc(jo(t)),(e=>!!(8&e.flags))),(t=>{var r=t.declarations&&t.declarations[0]&&e.isEnumMember(t.declarations[0])?cD(t.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(t.escapedName),void 0===r?void 0:"string"==typeof r?e.factory.createStringLiteral(r):e.factory.createNumericLiteral(r))}))),n)})(t,p,h),32&t.flags&&(4&t.flags&&t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration.parent)&&e.isClassExpression(t.valueDeclaration.parent.right)?W(t,te(t,p),h):((t,i,o)=>{var c,l,u=null===(c=t.declarations)||void 0===c?void 0:c.find(e.isClassLike),d=r.enclosingDeclaration;r.enclosingDeclaration=u||d;var p=$o(t),_=e.map(p,(e=>m(e,r))),f=is(t),g=ts(f),h=u&&e.getEffectiveImplementsTypeNodes(u),y=h&&(t=>{var i=e.mapDefined(t,(t=>{var i,a=r.enclosingDeclaration;r.enclosingDeclaration=t;var o=t.expression;if(e.isEntityNameExpression(o)){if(e.isIdentifier(o)&&""===e.idText(o))return l(void 0);var c;if(c=(i=V(o,r,k)).introducesError,o=i.node,c)return l(void 0)}return l(e.factory.createExpressionWithTypeArguments(o,e.map(t.typeArguments,(e=>z(r,e,k,n)||s(dp(e),r)))));function l(e){return r.enclosingDeclaration=a,e}}));if(i.length===t.length)return i})(h)||e.mapDefined((t=>{var r=e.emptyArray;if(t.symbol.declarations)for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n],o=e.getEffectiveImplementsTypeNodes(a);if(o)for(var s=0,c=o;s<c.length;s++){var l=dp(c[s]);Za(l)||(r===e.emptyArray?r=[l]:r.push(l))}}return r})(f),Q),v=jo(t),b=!!(null===(l=v.symbol)||void 0===l?void 0:l.valueDeclaration)&&e.isClassLike(v.symbol.valueDeclaration),x=b?Zo(v):Ne,E=Il(Il([],e.length(g)?[e.factory.createHeritageClause(94,e.map(g,(t=>((t,n,i)=>{var a=Y(t,111551);if(a)return a;var o=Z("".concat(i,"_base"));return w(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(o,void 0,s(n,r))],2)),0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(o),void 0)})(t,x,i))))]:[],!0),e.length(y)?[e.factory.createHeritageClause(117,y)]:[],!0),S=((t,r,n)=>{if(!e.length(r))return n;var i=new e.Map;e.forEach(n,(e=>{i.set(e.escapedName,e)}));for(var a=0,o=r;a<o.length;a++)for(var s=0,c=fc(Is(o[a],t.thisType));s<c.length;s++){var l=c[s],u=i.get(l.escapedName);u&&!U_(u,l)&&i.delete(l.escapedName)}return e.arrayFrom(i.values())})(f,g,fc(f)),D=e.filter(S,(t=>{var r=t.valueDeclaration;return!(!r||e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name))})),T=e.some(S,(t=>{var r=t.valueDeclaration;return!!r&&e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name)}))?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,C=e.flatMap(D,(e=>a(e,!1,g[0]))),A=e.flatMap(e.filter(fc(v),(e=>!(4194304&e.flags||"prototype"===e.escapedName||K(e)))),(e=>a(e,!0,x))),N=!b&&t.valueDeclaration&&e.isInJSFile(t.valueDeclaration)&&!e.some(jc(v,1))?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:q(1,v,x,170),F=X(f,g[0]);r.enclosingDeclaration=d,w(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,i,_,E,Il(Il(Il(Il(Il([],F,!0),A,!0),N,!0),C,!0),T,!0)),t.declarations&&e.filter(t.declarations,(t=>e.isClassDeclaration(t)||e.isClassExpression(t)))[0]),o)})(t,te(t,p),h)),(1536&t.flags&&(!y||(t=>e.every(F(t),(e=>!(111551&Si(e).flags))))(t))||v)&&((t,n,i)=>{var a=F(t),o=e.arrayToMultiMap(a,(e=>e.parent&&e.parent===t?"real":"merged")),s=o.get("real")||e.emptyArray,c=o.get("merged")||e.emptyArray;if(e.length(s)&&L(s,u=te(t,n),i,!!(67108880&t.flags)),e.length(c)){var l=e.getSourceFileOfNode(r.enclosingDeclaration),u=te(t,n),d=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(c,(e=>"export="!==e.escapedName)),(n=>{var i,a,o=e.unescapeLeadingUnderscores(n.escapedName),s=te(n,o),c=n.declarations&&li(n);if(!l||(c?l===e.getSourceFileOfNode(c):e.some(n.declarations,(t=>e.getSourceFileOfNode(t)===l)))){var u=c&&xi(c,!0);k(u||n);var d=u?te(u,e.unescapeLeadingUnderscores(u.escapedName)):s;return e.factory.createExportSpecifier(!1,o===d?void 0:d,o)}null===(a=null===(i=r.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)||void 0===a||a.call(i,l,t,n)}))))]);w(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(u),d,16),0)}})(t,p,h),64&t.flags&&!(32&t.flags)&&((t,n,i)=>{var a=is(t),s=$o(t),c=e.map(s,(e=>m(e,r))),l=ts(a),u=e.length(l)?Zu(l):void 0,d=e.flatMap(fc(a),(e=>((e,t)=>o(e,!1,t))(e,u))),p=q(0,a,u,173),_=q(1,a,u,174),f=X(a,u),g=e.length(l)?[e.factory.createHeritageClause(94,e.mapDefined(l,(e=>Y(e,111551))))]:void 0;w(e.factory.createInterfaceDeclaration(void 0,void 0,te(t,n),c,g,Il(Il(Il(Il([],f,!0),_,!0),p,!0),d,!0)),i)})(t,p,h),2097152&t.flags&&W(t,te(t,p),h),4&t.flags&&"export="===t.escapedName&&J(t),8388608&t.flags&&t.declarations)for(var N=0,P=t.declarations;N<P.length;N++){var O=P[N],M=Oi(O,O.moduleSpecifier);M&&w(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(S(M,r))),0)}f?w(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(te(t,p))),0):g&&w(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,te(t,p),p)])),0)}else r.encounteredError=!0})(t,l,d);return r.reportedDiagnostic&&(f.reportedDiagnostic=r.reportedDiagnostic),r=_,g}}function k(t){if(!e.some(t.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(d[d.length-1]),Z(e.unescapeLeadingUnderscores(t.escapedName),t);var r=!!(2097152&t.flags)&&!e.some(t.declarations,(t=>!!e.findAncestor(t,e.isExportDeclaration)||e.isNamespaceExport(t)||e.isImportEqualsDeclaration(t)&&!e.isExternalModuleReference(t.moduleReference)));d[r?0:d.length-1].set(P(t),t)}}function w(t,n){if(e.canHaveModifiers(t)){var i=0,a=r.enclosingDeclaration&&(e.isJSDocTypeAlias(r.enclosingDeclaration)?e.getSourceFileOfNode(r.enclosingDeclaration):r.enclosingDeclaration);1&n&&a&&((t=>e.isSourceFile(t)&&(e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t))||e.isAmbientModule(t)&&!e.isGlobalScopeAugmentation(t))(a)||e.isModuleDeclaration(a))&&x(t)&&(i|=1),!h||1&i||a&&8388608&a.flags||!(e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t))||(i|=2),512&n&&(e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionDeclaration(t))&&(i|=512),i&&(t=e.factory.updateModifiers(t,i|e.getEffectiveModifierFlags(t)))}l.push(t)}function F(t){return t.exports?e.filter(e.arrayFrom(t.exports.values()),K):[]}function I(t,i,a,o){for(var s=0,c=jc(t,0);s<c.length;s++){var l=c[s],u=_(l,255,r,{name:e.factory.createIdentifier(a),privateSymbolVisitor:k,bundledImports:n});w(e.setTextRange(u,M(l)),o)}1536&i.flags&&i.exports&&i.exports.size||L(e.filter(fc(t),K),a,o,!0)}function M(t){if(t.declaration&&t.declaration.parent){if(e.isBinaryExpression(t.declaration.parent)&&5===e.getAssignmentDeclarationKind(t.declaration.parent))return t.declaration.parent;if(e.isVariableDeclaration(t.declaration.parent)&&t.declaration.parent.parent)return t.declaration.parent.parent}return t.declaration}function L(t,n,i,a){if(e.length(t)){var o=e.arrayToMultiMap(t,(t=>!e.length(t.declarations)||e.some(t.declarations,(t=>e.getSourceFileOfNode(t)===e.getSourceFileOfNode(r.enclosingDeclaration)))?"local":"remote")).get("local")||e.emptyArray,s=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(n),e.factory.createModuleBlock([]),16);e.setParent(s,c),s.locals=e.createSymbolTable(t),s.symbol=t[0].parent;var u=l;l=[];var d=h;h=!1;var p=Ol(Ol({},r),{enclosingDeclaration:s}),_=r;r=p,T(e.createSymbolTable(o),a,!0),r=_,h=d;var f=l;l=u;var m=e.map(f,(t=>e.isExportAssignment(t)&&!t.isExportEquals&&e.isIdentifier(t.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,t.expression,e.factory.createIdentifier("default"))])):t)),g=e.every(m,(t=>e.hasSyntacticModifier(t,1)))?e.map(m,D):m;w(s=e.factory.updateModuleDeclaration(s,s.decorators,s.modifiers,s.name,e.factory.createModuleBlock(g)),i)}}function K(t){return!!(2887656&t.flags)||!(4194304&t.flags||"prototype"===t.escapedName||t.valueDeclaration&&e.isStatic(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent))}function W(t,n,i){var a,o,s,c,l,u=li(t);if(!u)return e.Debug.fail();var d,p=qi(xi(u,!0));if(p){var _=e.isShorthandAmbientModuleSymbol(p)&&(d=t.declarations,e.firstDefined(d,(t=>{if(e.isImportSpecifier(t)||e.isExportSpecifier(t))return e.idText(t.propertyName||t.name);if(e.isBinaryExpression(t)||e.isExportAssignment(t)){var r=e.isExportAssignment(t)?t.expression:t.right;if(e.isPropertyAccessExpression(r))return e.idText(r.name)}if(ui(t)){var n=e.getNameOfDeclaration(t);if(n&&e.isIdentifier(n))return e.idText(n)}})))||e.unescapeLeadingUnderscores(p.escapedName);"export="===_&&(e.getESModuleInterop(j)||j.allowSyntheticDefaultImports)&&(_="default");var f=te(p,_);switch(k(p),u.kind){case 202:if(253===(null===(o=null===(a=u.parent)||void 0===a?void 0:a.parent)||void 0===o?void 0:o.kind)){var m=S(p.parent||p,r),g=u.propertyName;w(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,g&&e.isIdentifier(g)?e.factory.createIdentifier(e.idText(g)):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(m),void 0),0);break}e.Debug.failBadSyntaxKind((null===(s=u.parent)||void 0===s?void 0:s.parent)||u,"Unhandled binding element grandparent kind in declaration serialization");break;case 295:220===(null===(l=null===(c=u.parent)||void 0===c?void 0:c.parent)||void 0===l?void 0:l.kind)&&H(e.unescapeLeadingUnderscores(t.escapedName),f);break;case 253:if(e.isPropertyAccessExpression(u.initializer)){var h=u.initializer,y=e.factory.createUniqueName(n),v=S(p.parent||p,r);w(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,y,e.factory.createExternalModuleReference(e.factory.createStringLiteral(v))),0),w(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(n),e.factory.createQualifiedName(y,h.name)),i);break}case 264:if("export="===p.escapedName&&e.some(p.declarations,e.isJsonSourceFile)){J(t);break}var b=!(512&p.flags||e.isVariableDeclaration(u));w(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(n),b?A(p,r,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(S(p,r)))),b?i:0);break;case 263:w(e.factory.createNamespaceExportDeclaration(e.idText(u.name)),0);break;case 266:w(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(n),void 0),e.factory.createStringLiteral(S(p.parent||p,r)),void 0),0);break;case 267:w(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(n))),e.factory.createStringLiteral(S(p,r)),void 0),0);break;case 273:w(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(n)),e.factory.createStringLiteral(S(p,r))),0);break;case 269:w(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,n!==_?e.factory.createIdentifier(_):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(S(p.parent||p,r)),void 0),0);break;case 274:var x=u.parent.parent.moduleSpecifier;H(e.unescapeLeadingUnderscores(t.escapedName),x?_:f,x&&e.isStringLiteralLike(x)?e.factory.createStringLiteral(x.text):void 0);break;case 270:J(t);break;case 220:case 205:case 206:"default"===t.escapedName||"export="===t.escapedName?J(t):H(n,f);break;default:return e.Debug.failBadSyntaxKind(u,"Unhandled alias declaration kind in symbol serializer!")}}}function H(t,r,n){w(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,t!==r?r:void 0,t)]),n),0)}function J(t){if(4194304&t.flags)return!1;var i=e.unescapeLeadingUnderscores(t.escapedName),a="export="===i,o=a||"default"===i,s=t.declarations&&li(t),u=s&&xi(s,!0);if(u&&e.length(u.declarations)&&e.some(u.declarations,(t=>e.getSourceFileOfNode(t)===e.getSourceFileOfNode(c)))){var d=s&&(e.isExportAssignment(s)||e.isBinaryExpression(s)?e.getExportAssignmentExpression(s):e.getPropertyAssignmentAliasLikeExpression(s)),p=d&&e.isEntityNameExpression(d)?(t=>{switch(t.kind){case 79:return t;case 160:do{t=t.left}while(79!==t.kind);return t;case 205:do{if(e.isModuleExportsAccessExpression(t.expression)&&!e.isPrivateIdentifier(t.name))return t.name;t=t.expression}while(79!==t.kind);return t}})(d):void 0,_=p&&Pi(p,67108863,!0,!0,c);(_||u)&&k(_||u);var f=r.tracker.trackSymbol;if(r.tracker.trackSymbol=()=>!1,o)l.push(e.factory.createExportAssignment(void 0,void 0,a,N(u,r,67108863)));else if(p===d&&p)H(i,e.idText(p));else if(d&&e.isClassExpression(d))H(i,te(u,e.symbolName(u)));else{var m=Z(i,t);w(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(m),A(u,r,67108863,!1)),0),H(i,m)}return r.tracker.trackSymbol=f,!0}m=Z(i,t);var g=Bf(jo(qi(t)));return $(g,t)?I(g,t,m,o?0:1):w(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(m,void 0,B(r,g,t,c,k,n))],2)),u&&4&u.flags&&"export="===u.escapedName?2:i===m?1:0),o?(l.push(e.factory.createExportAssignment(void 0,void 0,a,e.factory.createIdentifier(m))),!0):i!==m&&(H(i,m),!0)}function $(t,n){var i=e.getSourceFileOfNode(r.enclosingDeclaration);return 48&e.getObjectFlags(t)&&!e.length(Wc(t))&&!La(t)&&!(!e.length(e.filter(fc(t),K))&&!e.length(jc(t,0)))&&!e.length(jc(t,1))&&!R(n,c)&&!(t.symbol&&e.some(t.symbol.declarations,(t=>e.getSourceFileOfNode(t)!==i)))&&!e.some(fc(t),(e=>Ts(e.escapedName)))&&!e.some(fc(t),(t=>e.some(t.declarations,(t=>e.getSourceFileOfNode(t)!==i))))&&e.every(fc(t),(t=>e.isIdentifierText(e.symbolName(t),U)))}function G(t,i,a){return(o,s,l)=>{var u,d,p,f,m,g=e.getDeclarationModifierFlagsFromSymbol(o),h=!!(8&g);if(s&&2887656&o.flags)return[];if(4194304&o.flags||l&&Lc(l,o.escapedName)&&xb(Lc(l,o.escapedName))===xb(o)&&(16777216&o.flags)==(16777216&Lc(l,o.escapedName).flags)&&Hp(jo(o),Ya(l,o.escapedName)))return[];var y=-257&g|(s?32:0),v=O(o,r),b=null===(u=o.declarations)||void 0===u?void 0:u.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(98304&o.flags&&a){var x=[];if(65536&o.flags&&x.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(y),v,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,h?void 0:B(r,jo(o),o,c,k,n))],void 0),(null===(d=o.declarations)||void 0===d?void 0:d.find(e.isSetAccessor))||b)),32768&o.flags){var E=8&g;x.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(y),v,[],E?void 0:B(r,jo(o),o,c,k,n),void 0),(null===(p=o.declarations)||void 0===p?void 0:p.find(e.isGetAccessor))||b))}return x}if(98311&o.flags)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((xb(o)?64:0)|y),v,16777216&o.flags?e.factory.createToken(57):void 0,h?void 0:B(r,jo(o),o,c,k,n),void 0),(null===(f=o.declarations)||void 0===f?void 0:f.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||b);if(8208&o.flags){var S=jc(jo(o),0);if(8&y)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((xb(o)?64:0)|y),v,16777216&o.flags?e.factory.createToken(57):void 0,void 0,void 0),(null===(m=o.declarations)||void 0===m?void 0:m.find(e.isFunctionLikeDeclaration))||S[0]&&S[0].declaration||o.declarations&&o.declarations[0]);for(var D=[],T=0,C=S;T<C.length;T++){var A=C[T],N=_(A,i,r,{name:v,questionToken:16777216&o.flags?e.factory.createToken(57):void 0,modifiers:y?e.factory.createModifiersFromModifierFlags(y):void 0}),w=A.declaration&&e.isPrototypePropertyAssignment(A.declaration.parent)?A.declaration.parent:A.declaration;D.push(e.setTextRange(N,w))}return D}return e.Debug.fail("Unhandled class member kind! ".concat(o.__debugFlags||o.flags))}}function q(t,n,i,a){var o=jc(n,t);if(1===t){if(!i&&e.every(o,(t=>0===e.length(t.parameters))))return[];if(i){var s=jc(i,1);if(!e.length(s)&&e.every(o,(t=>0===e.length(t.parameters))))return[];if(s.length===o.length){for(var c=!1,l=0;l<s.length;l++)if(!z_(o[l],s[l],!1,!1,!0,Jp)){c=!0;break}if(!c)return[]}}for(var u=0,d=0,p=o;d<p.length;d++){var f=p[d];f.declaration&&(u|=e.getSelectedEffectiveModifierFlags(f.declaration,24))}if(u)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(u),[],void 0),o[0].declaration)]}for(var m=[],g=0,h=o;g<h.length;g++){var y=h[g],v=_(y,a,r);m.push(e.setTextRange(v,y.declaration))}return m}function X(e,t){for(var n=[],i=0,a=Wc(e);i<a.length;i++){var o=a[i];if(t){var s=Hc(t,o.keyType);if(s&&Hp(o.type,s.type))continue}n.push(p(o,r,void 0))}return n}function Y(t,n){var i,a;if(t.target&&xa(t.target.symbol,c,n)?(i=e.map(Vl(t),(e=>s(e,r))),a=N(t.target.symbol,r,788968)):t.symbol&&xa(t.symbol,c,n)&&(a=N(t.symbol,r,788968)),a)return e.factory.createExpressionWithTypeArguments(a,i)}function Q(t){return Y(t,788968)||(t.symbol?e.factory.createExpressionWithTypeArguments(N(t.symbol,r,788968),void 0):void 0)}function Z(e,t){var n,i,a=t?P(t):void 0;if(a&&r.remappedSymbolNames.has(a))return r.remappedSymbolNames.get(a);t&&(e=ee(t,e));for(var o=0,s=e;null===(n=r.usedSymbolNames)||void 0===n?void 0:n.has(e);)o++,e="".concat(s,"_").concat(o);return null===(i=r.usedSymbolNames)||void 0===i||i.add(e),a&&r.remappedSymbolNames.set(a,e),e}function ee(t,n){if("default"===n||"__class"===n||"__function"===n){var i=r.flags;r.flags|=16777216;var a=Ka(t,r);r.flags=i,n=a.length>0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),e.isIdentifierText(n,U)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function te(e,t){var n=P(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=ee(e,t),r.remappedSymbolNames.set(n,t),t)}})(t,r,c)))};function r(r,n,a,o){var s,c;e.Debug.assert(void 0===r||0==(8&r.flags));var l={enclosingDeclaration:r,flags:n||0,tracker:a&&a.trackSymbol?a:{trackSymbol:()=>!1,moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:e=>t.getProjectReferenceRedirect(e),isSourceOfProjectReferenceRedirect:e=>t.isSourceOfProjectReferenceRedirect(e),fileExists:e=>t.fileExists(e),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?e=>t.readFile(e):void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=i(l,l.tracker);var u=o(l);return l.truncating&&1&l.flags&&(null===(c=null===(s=l.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),l.encounteredError?void 0:u}function i(e,t){var r=t.trackSymbol;return Ol(Ol({},t),{reportCyclicStructureError:n(t.reportCyclicStructureError),reportInaccessibleThisError:n(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:n(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:n(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:n(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:n(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:n(t.reportNonSerializableProperty),trackSymbol:r&&function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(void 0,t);return i&&(e.reportedDiagnostic=!0),i}});function n(t){return t?function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.reportedDiagnostic=!0,t.apply(void 0,r)}:t}}function o(t){return t.truncating?t.truncating:t.truncating=t.approximateLength>(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function s(t,r){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var i=8388608&r.flags;if(r.flags&=-8388609,!t)return 262144&r.flags?(r.approximateLength+=3,e.factory.createKeywordTypeNode(130)):void(r.encounteredError=!0);if(536870912&r.flags||(t=Pc(t)),1&t.flags)return t.aliasSymbol?e.factory.createTypeReferenceNode(D(t.aliasSymbol),d(t.aliasTypeArguments,r)):t===Ie?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(r.approximateLength+=3,e.factory.createKeywordTypeNode(t===Me?138:130));if(2&t.flags)return e.factory.createKeywordTypeNode(154);if(4&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(8&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(64&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(157);if(16&t.flags&&!t.aliasSymbol)return r.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(1024&t.flags&&!(1048576&t.flags)){var a=Yi(t.symbol),l=T(a,r,788968);if(_s(a)===t)return l;var m=e.symbolName(t.symbol);return e.isIdentifierText(m,0)?U(l,e.factory.createTypeReferenceNode(m,void 0)):e.isImportTypeNode(l)?(l.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(l,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(m)))):e.isTypeReferenceNode(l)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(l.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(m))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return T(t.symbol,r,788968);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&r.flags)),16777216));if(256&t.flags){var g=t.value;return r.approximateLength+=(""+g).length,e.factory.createLiteralTypeNode(g<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-g)):e.factory.createNumericLiteral(g))}if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&r.flags)){if(ba(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,T(t.symbol,r,111551);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.factory.createTypeOperatorNode(153,e.factory.createKeywordTypeNode(150))}if(16384&t.flags)return r.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&t.flags)return r.approximateLength+=9,e.factory.createKeywordTypeNode(152);if(65536&t.flags)return r.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return r.approximateLength+=5,e.factory.createKeywordTypeNode(143);if(4096&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(67108864&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(Sd(t))return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&t.aliasSymbol&&(16384&r.flags||va(t.aliasSymbol,r.enclosingDeclaration))){var h=d(t.aliasTypeArguments,r);return!ua(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?T(t.aliasSymbol,r,788968,h):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),h)}var y=e.getObjectFlags(t);if(4&y)return e.Debug.assert(!!(524288&t.flags)),t.node?L(t,j):j(t);if(262144&t.flags||3&y){if(262144&t.flags&&e.contains(r.inferTypeParameters,t))return r.approximateLength+=e.symbolName(t.symbol).length+6,e.factory.createInferTypeNode(f(t,r,void 0));if(4&r.flags&&262144&t.flags&&!va(t.symbol,r.enclosingDeclaration)){var v=k(t,r);return r.approximateLength+=e.idText(v).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(v)),void 0)}return t.symbol?T(t.symbol,r,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(1048576&t.flags&&t.origin&&(t=t.origin),3145728&t.flags){var b=1048576&t.flags?(e=>{for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?Ye:ls(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&tp(e[n+o-1])===tp(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}return 65536&r&&t.push(ze),32768&r&&t.push(Be),t||e})(t.types):t.types;if(1===e.length(b))return s(b[0],r);var x=d(b,r,!0);return x&&x.length>0?1048576&t.flags?e.factory.createUnionTypeNode(x):e.factory.createIntersectionTypeNode(x):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&y)return e.Debug.assert(!!(524288&t.flags)),R(t);if(4194304&t.flags){var E=t.type;r.approximateLength+=6;var S=s(E,r);return e.factory.createTypeOperatorNode(140,S)}if(134217728&t.flags){var C=t.texts,A=t.types,N=e.factory.createTemplateHead(C[0]),w=e.factory.createNodeArray(e.map(A,((t,n)=>e.factory.createTemplateLiteralTypeSpan(s(t,r),(n<A.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(C[n+1])))));return r.approximateLength+=2,e.factory.createTemplateLiteralType(N,w)}if(268435456&t.flags){var I=s(t.type,r);return T(t.symbol,r,788968,[I])}if(8388608&t.flags){var O=s(t.objectType,r);return S=s(t.indexType,r),r.approximateLength+=2,e.factory.createIndexedAccessTypeNode(O,S)}return 16777216&t.flags?L(t,(t=>(t=>{var n=s(t.checkType,r),i=r.inferTypeParameters;r.inferTypeParameters=t.root.inferTypeParameters;var a=s(t.extendsType,r);r.inferTypeParameters=i;var o=M(Bd(t)),c=M(jd(t));return r.approximateLength+=15,e.factory.createConditionalTypeNode(n,a,o,c)})(t))):33554432&t.flags?s(t.baseType,r):e.Debug.fail("Should be unreachable.");function M(e){var t,n,i;return 1048576&e.flags?(null===(t=r.visitedTypes)||void 0===t?void 0:t.has(Bu(e)))?(131072&r.flags||(r.encounteredError=!0,null===(i=null===(n=r.tracker)||void 0===n?void 0:n.reportCyclicStructureError)||void 0===i||i.call(n)),c(r)):L(e,(e=>s(e,r))):s(e,r)}function R(t){var n,i=t.id,a=t.symbol;if(a){var o=La(t)?788968:111551;if(Av(a.valueDeclaration))return T(a,r,o);if(32&a.flags&&!Mo(a)&&!(a.valueDeclaration&&225===a.valueDeclaration.kind&&2048&r.flags)||896&a.flags||(()=>{var t,n=!!(8192&a.flags)&&e.some(a.declarations,(t=>e.isStatic(t))),o=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,(e=>303===e.parent.kind||261===e.parent.kind)));if(n||o)return(!!(4096&r.flags)||(null===(t=r.visitedTypes)||void 0===t?void 0:t.has(i)))&&(!(8&r.flags)||ba(a,r.enclosingDeclaration))})())return T(a,r,o);if(null===(n=r.visitedTypes)||void 0===n?void 0:n.has(i)){var s=(t=>{if(t.symbol&&2048&t.symbol.flags&&t.symbol.declarations){var r=e.walkUpParenthesizedTypes(t.symbol.declarations[0].parent);if(258===r.kind)return Xi(r)}})(t);return s?T(s,r,788968):c(r)}return L(t,B)}return B(t)}function L(t,n){var i,a,o=t.id,s=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags,l=4&e.getObjectFlags(t)&&t.node?"N"+F(t.node):16777216&t.flags?"N"+F(t.root.node):t.symbol?(s?"+":"")+P(t.symbol):void 0;r.visitedTypes||(r.visitedTypes=new e.Set),l&&!r.symbolDepth&&(r.symbolDepth=new e.Map);var u=r.enclosingDeclaration&&Jn(r.enclosingDeclaration),d="".concat(Bu(t),"|").concat(r.flags);u&&(u.serializedTypes||(u.serializedTypes=new e.Map));var p,_=null===(i=null==u?void 0:u.serializedTypes)||void 0===i?void 0:i.get(d);if(_)return _.truncating&&(r.truncating=!0),r.approximateLength+=_.addedLength,function t(r){return e.nodeIsSynthesized(r)||e.getParseTreeNode(r)!==r?e.setTextRange(e.factory.cloneNode(e.visitEachChild(r,t,e.nullTransformationContext)),r):r}(_);if(l){if((p=r.symbolDepth.get(l)||0)>10)return c(r);r.symbolDepth.set(l,p+1)}r.visitedTypes.add(o);var f=r.approximateLength,m=n(t),g=r.approximateLength-f;return r.reportedDiagnostic||r.encounteredError||(r.truncating&&(m.truncating=!0),m.addedLength=g,null===(a=null==u?void 0:u.serializedTypes)||void 0===a||a.set(d,m)),r.visitedTypes.delete(o),l&&r.symbolDepth.set(l,p),m}function B(t){if(lc(t)||t.containsError)return(t=>{e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;n=ic(t)?e.factory.createTypeOperatorNode(140,s(ac(t),r)):s(ec(t),r);var o=f(Zs(t),r,n),c=t.declaration.nameType?s(tc(t),r):void 0,l=s(kf(rc(t),!!(4&oc(t))),r),u=e.factory.createMappedTypeNode(i,o,c,a,l,void 0);return r.approximateLength+=10,e.setEmitFlags(u,1)})(t);var n=uc(t);if(!n.properties.length&&!n.indexInfos.length){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length)return _(n.callSignatures[0],178,r);if(1===n.constructSignatures.length&&!n.callSignatures.length)return _(n.constructSignatures[0],179,r)}var i=e.filter(n.constructSignatures,(e=>!!(4&e.flags)));if(e.some(i)){var a=e.map(i,El);return n.callSignatures.length+(n.constructSignatures.length-i.length)+n.indexInfos.length+(2048&r.flags?e.countWhere(n.properties,(e=>!(4194304&e.flags))):e.length(n.properties))&&a.push((t=>{if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(e=>!(4&e.flags)));if(t.constructSignatures===r)return t;var n=fa(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n})(n)),s(Zu(a),r)}var l=r.flags;r.flags|=4194304;var d=(t=>{if(o(r))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var n=[],i=0,a=t.callSignatures;i<a.length;i++){var s=a[i];n.push(_(s,173,r))}for(var l=0,d=t.constructSignatures;l<d.length;l++)4&(s=d[l]).flags||n.push(_(s,174,r));for(var f=0,m=t.indexInfos;f<m.length;f++){var g=m[f];n.push(p(g,r,1024&t.objectFlags?c(r):void 0))}var h=t.properties;if(!h)return n;for(var y=0,v=0,b=h;v<b.length;v++){var x=b[v];if(y++,2048&r.flags){if(4194304&x.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(x)&&r.tracker.reportPrivateInBaseOfClassExpression&&r.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(x.escapedName))}if(o(r)&&y+2<h.length-1){n.push(e.factory.createPropertySignature(void 0,"... ".concat(h.length-y," more ..."),void 0,void 0)),u(h[h.length-1],r,n);break}u(x,r,n)}return n.length?n:void 0})(n);r.flags=l;var m=e.factory.createTypeLiteralNode(d);return r.approximateLength+=2,e.setEmitFlags(m,1024&r.flags?0:1),m}function j(t){var n=Vl(t);if(t.target===Pt||t.target===It){if(2&r.flags){var i=s(n[0],r);return e.factory.createTypeReferenceNode(t.target===Pt?"Array":"ReadonlyArray",[i])}var a=s(n[0],r),o=e.factory.createArrayTypeNode(a);return t.target===Pt?o:e.factory.createTypeOperatorNode(144,o)}if(!(8&t.target.objectFlags)){if(2048&r.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!ba(t.symbol,r.enclosingDeclaration))return R(t);var c=t.target.outerTypeParameters,l=void(E=0);if(c)for(var u=c.length;E<u;){var p=E,_=Fl(c[E]);do{E++}while(E<u&&Fl(c[E])===_);if(!e.rangeEquals(c,n,p,E)){var f=d(n.slice(p,E),r),m=r.flags;r.flags|=16;var g=T(_,r,788968,f);r.flags=m,l=l?U(l,g):g}}var h=void 0;if(n.length>0){var y=(t.target.typeParameters||e.emptyArray).length;h=d(n.slice(E,y),r)}S=r.flags,r.flags|=16;var v=T(t.symbol,r,788968,h);return r.flags=S,l?U(l,v):v}if((n=e.sameMap(n,((e,r)=>kf(e,!!(2&t.target.elementFlags[r]))))).length>0){var b=zl(t),x=d(n.slice(0,b),r);if(x){if(t.target.labeledElementDeclarations)for(var E=0;E<x.length;E++){var S=t.target.elementFlags[E];x[E]=e.factory.createNamedTupleMember(12&S?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(Kv(t.target.labeledElementDeclarations[E]))),2&S?e.factory.createToken(57):void 0,4&S?e.factory.createArrayTypeNode(x[E]):x[E])}else for(E=0;E<Math.min(b,x.length);E++)S=t.target.elementFlags[E],x[E]=12&S?e.factory.createRestTypeNode(4&S?e.factory.createArrayTypeNode(x[E]):x[E]):2&S?e.factory.createOptionalTypeNode(x[E]):x[E];var D=e.setEmitFlags(e.factory.createTupleTypeNode(x),1);return t.target.readonly?e.factory.createTypeOperatorNode(144,D):D}}if(r.encounteredError||524288&r.flags)return D=e.setEmitFlags(e.factory.createTupleTypeNode([]),1),t.target.readonly?e.factory.createTypeOperatorNode(144,D):D;r.encounteredError=!0}function U(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments,i=t.qualifier;i&&(i=e.isIdentifier(i)?e.factory.updateIdentifier(i,n):e.factory.updateQualifiedName(i,i.left,e.factory.updateIdentifier(i.right,n))),n=r.typeArguments;for(var a=0,o=V(r);a<o.length;a++){var s=o[a];i=i?e.factory.createQualifiedName(i,s):s}return e.factory.updateImportTypeNode(t,t.argument,i,n,t.isTypeOf)}n=t.typeArguments;var c=t.typeName;c=e.isIdentifier(c)?e.factory.updateIdentifier(c,n):e.factory.updateQualifiedName(c,c.left,e.factory.updateIdentifier(c.right,n)),n=r.typeArguments;for(var l=0,u=V(r);l<u.length;l++)s=u[l],c=e.factory.createQualifiedName(c,s);return e.factory.updateTypeReferenceNode(t,c,n)}function V(t){for(var r=t.typeName,n=[];!e.isIdentifier(r);)n.unshift(r.right),r=r.left;return n.unshift(r),n}}function c(t){return t.approximateLength+=3,1&t.flags?e.factory.createKeywordTypeNode(130):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function l(t,r){var n;return!!(8192&e.getCheckFlags(t))&&(e.contains(r.reverseMappedStack,t)||(null===(n=r.reverseMappedStack)||void 0===n?void 0:n[0])&&!(16&e.getObjectFlags(e.last(r.reverseMappedStack).propertyType)))}function u(t,r,n){var i,a,o=!!(8192&e.getCheckFlags(t)),s=l(t,r)?Ne:Uo(t),u=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,r.tracker.trackSymbol&&4096&e.getCheckFlags(t)&&Ts(t.escapedName))if(t.declarations){var d=e.first(t.declarations);if(Cs(d))if(e.isBinaryExpression(d)){var p=e.getNameOfDeclaration(d);p&&e.isElementAccessExpression(p)&&e.isPropertyAccessEntityNameExpression(p.argumentExpression)&&h(p.argumentExpression,u,r)}else h(d.name.expression,u,r)}else(null===(i=r.tracker)||void 0===i?void 0:i.reportNonSerializableProperty)&&r.tracker.reportNonSerializableProperty(wa(t));r.enclosingDeclaration=t.valueDeclaration||(null===(a=t.declarations)||void 0===a?void 0:a[0])||u;var f=O(t,r);r.enclosingDeclaration=u,r.approximateLength+=e.symbolName(t).length+1;var m=16777216&t.flags?e.factory.createToken(57):void 0;if(8208&t.flags&&!dc(s).length&&!xb(t))for(var g=0,y=jc(ag(s,(e=>!(32768&e.flags))),0);g<y.length;g++){var v=_(y[g],167,r,{name:f,questionToken:m});n.push(S(v))}else{var b=void 0;l(t,r)?b=c(r):(o&&(r.reverseMappedStack||(r.reverseMappedStack=[]),r.reverseMappedStack.push(t)),b=s?B(r,s,t,u):e.factory.createKeywordTypeNode(130),o&&r.reverseMappedStack.pop());var x=xb(t)?[e.factory.createToken(144)]:void 0;x&&(r.approximateLength+=9);var E=e.factory.createPropertySignature(x,f,m,b);n.push(S(E))}function S(r){var n;if(e.some(t.declarations,(e=>345===e.kind))){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((e=>345===e.kind)),a=e.getTextOfJSDocComment(i.comment);a&&e.setSyntheticLeadingComments(r,[{kind:3,text:"*\n * "+a.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else t.valueDeclaration&&e.setCommentRange(r,t.valueDeclaration);return r}}function d(t,r,n){if(e.some(t)){if(o(r)){if(!n)return[e.factory.createTypeReferenceNode("...",void 0)];if(t.length>2)return[s(t[0],r),e.factory.createTypeReferenceNode("... ".concat(t.length-2," more ..."),void 0),s(t[t.length-1],r)]}for(var i=64&r.flags?void 0:e.createUnderscoreEscapedMultiMap(),a=[],c=0,l=0,u=t;l<u.length;l++){var d=u[l];if(c++,o(r)&&c+2<t.length-1){a.push(e.factory.createTypeReferenceNode("... ".concat(t.length-c," more ..."),void 0));var p=s(t[t.length-1],r);p&&a.push(p);break}r.approximateLength+=2;var _=s(d,r);_&&(a.push(_),i&&e.isIdentifierTypeReference(_)&&i.add(_.typeName.escapedText,[d,a.length-1]))}if(i){var f=r.flags;r.flags|=64,i.forEach((t=>{if(!e.arrayIsHomogeneous(t,((e,t)=>{return(r=e[0])===(n=t[0])||!!r.symbol&&r.symbol===n.symbol||!!r.aliasSymbol&&r.aliasSymbol===n.aliasSymbol;var r,n})))for(var n=0,i=t;n<i.length;n++){var o=i[n],c=o[0],l=o[1];a[l]=s(c,r)}})),r.flags=f}return a}}function p(t,r,n){var i=e.getNameFromIndexInfo(t)||"x",a=s(t.keyType,r),o=e.factory.createParameterDeclaration(void 0,void 0,void 0,i,void 0,a,void 0);return n||(n=s(t.type||Ne,r)),t.type||2097152&r.flags||(r.encounteredError=!0),r.approximateLength+=i.length+4,e.factory.createIndexSignature(void 0,t.isReadonly?[e.factory.createToken(144)]:void 0,[o],n)}function _(t,r,n,i){var a,o,c,l,u,d,p=256&n.flags;p&&(n.flags&=-257),n.approximateLength+=3,32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?d=t.target.typeParameters.map((e=>s(Rp(e,t.mapper),n))):u=t.typeParameters&&t.typeParameters.map((e=>m(e,n)));var _,f=js(t,!0)[0],h=(e.some(f,(t=>t!==f[f.length-1]&&!!(32768&e.getCheckFlags(t))))?t.parameters:f).map((e=>g(e,n,170===r,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)));if(t.thisParameter){var y=g(t.thisParameter,n);h.unshift(y)}var v=dl(t);if(v){var b=2===v.kind||3===v.kind?e.factory.createToken(128):void 0,x=1===v.kind||3===v.kind?e.setEmitFlags(e.factory.createIdentifier(v.parameterName),16777216):e.factory.createThisTypeNode(),E=v.type&&s(v.type,n);_=e.factory.createTypePredicateNode(b,x,E)}else{var S=_l(t);!S||p&&Qa(S)?p||(_=e.factory.createKeywordTypeNode(130)):_=((t,r,n,i,a)=>{if(!Za(r)&&t.enclosingDeclaration){var o=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration);if(e.findAncestor(o,(e=>e===t.enclosingDeclaration))&&o){var c=dp(o);if((262144&c.flags&&c.isThisType?Rp(c,n.mapper):c)===r&&L(o,r)){var l=z(t,o,i,a);if(l)return l}}}return s(r,t)})(n,S,t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}var D=null==i?void 0:i.modifiers;if(179===r&&4&t.flags){var T=e.modifiersToFlags(D);D=e.factory.createModifiersFromModifierFlags(128|T)}var C=173===r?e.factory.createCallSignature(u,h,_):174===r?e.factory.createConstructSignature(u,h,_):167===r?e.factory.createMethodSignature(D,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:e.factory.createIdentifier(""),null==i?void 0:i.questionToken,u,h,_):168===r?e.factory.createMethodDeclaration(void 0,D,void 0,null!==(o=null==i?void 0:i.name)&&void 0!==o?o:e.factory.createIdentifier(""),void 0,u,h,_,void 0):170===r?e.factory.createConstructorDeclaration(void 0,D,h,void 0):171===r?e.factory.createGetAccessorDeclaration(void 0,D,null!==(c=null==i?void 0:i.name)&&void 0!==c?c:e.factory.createIdentifier(""),h,_,void 0):172===r?e.factory.createSetAccessorDeclaration(void 0,D,null!==(l=null==i?void 0:i.name)&&void 0!==l?l:e.factory.createIdentifier(""),h,void 0):175===r?e.factory.createIndexSignature(void 0,D,h,_):315===r?e.factory.createJSDocFunctionType(h,_):178===r?e.factory.createFunctionTypeNode(u,h,null!=_?_:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):179===r?e.factory.createConstructorTypeNode(D,u,h,null!=_?_:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):255===r?e.factory.createFunctionDeclaration(void 0,D,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),u,h,_,void 0):212===r?e.factory.createFunctionExpression(D,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),u,h,_,e.factory.createBlock([])):213===r?e.factory.createArrowFunction(D,u,h,_,void 0,e.factory.createBlock([])):e.Debug.assertNever(r);return d&&(C.typeArguments=e.factory.createNodeArray(d)),C}function f(t,r,n){var i=r.flags;r.flags&=-513;var a=k(t,r),o=Cc(t),c=o&&s(o,r);return r.flags=i,e.factory.createTypeParameterDeclaration(a,n,c)}function m(e,t,r){return void 0===r&&(r=gc(e)),f(e,t,r&&s(r,t))}function g(t,r,n,i,a){var o=e.getDeclarationOfKind(t,163);o||e.isTransientSymbol(t)||(o=e.getDeclarationOfKind(t,338));var s,c=jo(t);o&&tD(o)&&(c=xf(c)),1073741824&r.flags&&o&&!e.isJSDocParameterTag(o)&&(s=o,W&&el(s)&&!s.initializer)&&(c=jm(c,524288));var l=B(r,c,t,r.enclosingDeclaration,i,a),u=!(8192&r.flags)&&n&&o&&o.modifiers?o.modifiers.map(e.factory.cloneNode):void 0,d=o&&e.isRestParameter(o)||32768&e.getCheckFlags(t)?e.factory.createToken(25):void 0,p=o&&o.name?79===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name),16777216):160===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name.right),16777216):function t(n){r.tracker.trackSymbol&&e.isComputedPropertyName(n)&&Ds(n)&&h(n.expression,r.enclosingDeclaration,r);var i=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t);return e.isBindingElement(i)&&(i=e.factory.updateBindingElement(i,i.dotDotDotToken,i.propertyName,i.name,void 0)),e.nodeIsSynthesized(i)||(i=e.factory.cloneNode(i)),e.setEmitFlags(i,16777217)}(o.name):e.symbolName(t),_=o&&el(o)||16384&e.getCheckFlags(t)?e.factory.createToken(57):void 0,f=e.factory.createParameterDeclaration(void 0,u,d,p,_,l,void 0);return r.approximateLength+=e.symbolName(t).length+3,f}function h(t,r,n){if(n.tracker.trackSymbol){var i=e.getFirstIdentifier(t),a=Yn(i,i.escapedText,1160127,void 0,void 0,!0);a&&n.tracker.trackSymbol(a,r,111551)}}function y(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),v(e,t,r,n)}function v(t,r,n,i){var a;return 262144&t.flags||!(r.enclosingDeclaration||64&r.flags)||134217728&r.flags?a=[t]:(a=e.Debug.checkDefined(function t(n,a,o){var s,c=ha(n,r.enclosingDeclaration,a,!!(128&r.flags));if(!c||ya(c[0],r.enclosingDeclaration,1===c.length?a:ga(a))){var l=Qi(c?c[0]:n,r.enclosingDeclaration,a);if(e.length(l)){s=l.map((t=>e.some(t.declarations,ka)?S(t,r):void 0));var u=l.map(((e,t)=>t));u.sort(((t,r)=>{var n=s[t],i=s[r];if(n&&i){var a=e.pathIsRelative(i);return e.pathIsRelative(n)===a?e.moduleSpecifiers.countPathComponents(n)-e.moduleSpecifiers.countPathComponents(i):a?-1:1}return 0}));for(var d=0,p=u.map((e=>l[e]));d<p.length;d++){var _=p[d],f=t(_,ga(a),!1);if(f){if(_.exports&&_.exports.get("export=")&&ta(_.exports.get("export="),n)){c=f;break}c=f.concat(c||[ea(_,n)||n]);break}}}}if(c)return c;if(o||!(6144&n.flags)){if(!o&&!i&&e.forEach(n.declarations,ka))return;return[n]}}(t,n,!0)),e.Debug.assert(a&&a.length>0)),a}function b(t,r){var n;return 524384&eS(t).flags&&(n=e.factory.createNodeArray(e.map($o(t),(e=>m(e,r))))),n}function x(t,r,n){var i;e.Debug.assert(t&&0<=r&&r<t.length);var a=t[r],o=P(a);if(!(null===(i=n.typeParameterSymbolList)||void 0===i?void 0:i.has(o))){var s;if((n.typeParameterSymbolList||(n.typeParameterSymbolList=new e.Set)).add(o),512&n.flags&&r<t.length-1){var c=a,l=t[r+1];if(1&e.getCheckFlags(l)){var u=(t=>e.concatenate(Jo(t),$o(t)))(2097152&c.flags?Di(c):c);s=d(e.map(u,(e=>yp(e,l.mapper))),n)}else s=b(a,n)}return s}}function E(t){return e.isIndexedAccessTypeNode(t.objectType)?E(t.objectType):t}function S(t,r){var n,i=e.getDeclarationOfKind(t,303);if(!i){var o=e.firstDefined(t.declarations,(e=>Zi(e,t)));o&&(i=e.getDeclarationOfKind(o,303))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i){if(r.tracker.trackReferencedAmbientModule){var s=e.filter(t.declarations,e.isAmbientModule);if(e.length(s))for(var c=0,l=s;c<l.length;c++){var u=l[c];r.tracker.trackReferencedAmbientModule(u,t)}}if(a.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!r.enclosingDeclaration||!r.tracker.moduleResolverHost)return a.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(t)).fileName;var d=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),p=Hn(t),_=p.specifierCache&&p.specifierCache.get(d.path);if(!_){var f=!!e.outFile(j),m=r.tracker.moduleResolverHost,g=f?Ol(Ol({},j),{baseUrl:m.getCommonSourceDirectory()}):j;_=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,le,g,d,m,{importModuleSpecifierPreference:f?"non-relative":"project-relative",importModuleSpecifierEnding:f?"minimal":void 0})),null!==(n=p.specifierCache)&&void 0!==n||(p.specifierCache=new e.Map),p.specifierCache.set(d.path,_)}return _}function D(t){var r=e.factory.createIdentifier(e.unescapeLeadingUnderscores(t.escapedName));return t.parent?e.factory.createQualifiedName(D(t.parent),r):r}function T(t,r,n,i){var a=y(t,r,n,!(16384&r.flags)),o=111551===n;if(e.some(a[0].declarations,ka)){var s=a.length>1?g(a,a.length-1,1):void 0,c=i||x(a,0,r),l=S(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.Classic&&l.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(l));var u=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(l));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=l.length+10,!s||e.isEntityName(s))return s&&((f=e.isIdentifier(s)?s:s.right).typeArguments=void 0),e.factory.createImportTypeNode(u,s,c,o);var d=E(s),p=d.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(u,p,c,o),d.indexType)}var _=g(a,a.length-1,0);if(e.isIndexedAccessTypeNode(_))return _;if(o)return e.factory.createTypeQueryNode(_);var f,m=(f=e.isIdentifier(_)?_:_.right).typeArguments;return f.typeArguments=void 0,e.factory.createTypeReferenceNode(_,m);function g(t,n,a){var o,s=n===t.length-1?i:x(t,n,r),c=t[n],l=t[n-1];if(0===n)r.flags|=16777216,o=Ka(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(l&&Hi(l)){var u=Hi(l);e.forEachEntry(u,((t,r)=>{if(ta(t,c)&&!Ts(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(o||(o=Ka(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&l&&Fs(l)&&Fs(l).get(c.escapedName)&&ta(Fs(l).get(c.escapedName),c)){var d=g(t,n-1,a);return e.isIndexedAccessTypeNode(d)?e.factory.createIndexedAccessTypeNode(d,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(d,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var p=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);return p.symbol=c,n>a?(d=g(t,n-1,a),e.isEntityName(d)?e.factory.createQualifiedName(d,p):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):p}}function C(e,t,r){var n=Yn(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!n||262144&n.flags&&n===r.symbol)}function k(t,r){var n,i;if(4&r.flags&&r.typeParameterNames){var a=r.typeParameterNames.get(Bu(t));if(a)return a}var o=A(t.symbol,r,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var s=o.escapedText,c=(null===(n=r.typeParameterNamesByTextNextNameCount)||void 0===n?void 0:n.get(s))||0,l=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||C(l,r,t);)c++,l="".concat(s,"_").concat(c);l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Bu(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function A(t,r,n,i){var a=y(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=Ka(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function N(t,r,n){var i=y(t,r,n);return function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=Ka(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,ka))return e.factory.createStringLiteral(S(o,r));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),U):e.isIdentifierStart(c,U);if(0===i||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return u.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),u):u}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?d=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,(e=>e.substring(1))),39===c):""+ +s===s&&(d=e.factory.createNumericLiteral(+s)),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),d)}(i,i.length-1)}function w(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function I(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function O(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,I);return((t,r,n)=>{var i=Hn(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,e.getEmitScriptTarget(j))||Ch(a)?Ch(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):M(a):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(N(i.symbol,r,111551))}})(t,r,n)||M(e.unescapeLeadingUnderscores(t.escapedName),!!e.length(t.declarations)&&e.every(t.declarations,w),n)}function M(t,r,n){return e.isIdentifierText(t,e.getEmitScriptTarget(j))?e.factory.createIdentifier(t):!r&&Ch(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)}function R(t,r){return t.declarations&&e.find(t.declarations,(t=>!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(e=>e===r)))))}function L(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=nl(r.target.typeParameters)}function B(t,r,n,i,a,o){if(!Za(r)&&i){var c=R(n,i);if(c&&!e.isFunctionLikeDeclaration(c)&&!e.isGetAccessorDeclaration(c)){var l=e.getEffectiveTypeAnnotationNode(c);if(dp(l)===r&&L(l,r)){var u=z(t,l,a,o);if(u)return u}}}var d=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(r=>e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration))))&&(t.flags|=1048576);var p=s(r,t);return t.flags=d,p}function V(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=Pi(s,67108863,!0,!0);if(c&&(0!==Sa(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var l=262144&c.flags?k(_s(c),r):e.factory.cloneNode(t);return l.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(l,t),16777216)}}return{introducesError:o,node:t}}function z(r,i,a,o){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var c=!1,l=e.getSourceFileOfNode(i),u=e.visitNode(i,(function n(i){if(e.isJSDocAllType(i)||317===i.kind)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(154);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,n),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,n),e.factory.createKeywordTypeNode(152)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,n);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,n));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(t=>{var a=e.isIdentifier(t.name)?t.name:t.name.right,o=Ya(dp(i),a.escapedText),c=o&&t.typeExpression&&dp(t.typeExpression.type)!==o?s(o,r):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,c||t.typeExpression&&e.visitNode(t.typeExpression.type,n)||e.factory.createKeywordTypeNode(130))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(130),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],n))],e.visitNode(i.typeArguments[1],n))]);var u;if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(i.modifiers,e.visitNodes(i.typeParameters,n),e.mapDefined(i.parameters,((t,r)=>t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(u=t.type):e.factory.createParameterDeclaration(void 0,void 0,m(t),g(t,r),t.questionToken,e.visitNode(t.type,n),void 0))),e.visitNode(u||i.type,n)||e.factory.createKeywordTypeNode(130)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,n),e.map(i.parameters,((t,r)=>e.factory.createParameterDeclaration(void 0,void 0,m(t),g(t,r),t.questionToken,e.visitNode(t.type,n),void 0))),e.visitNode(i.type,n)||e.factory.createKeywordTypeNode(130));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!L(i,dp(i))||ru(i)||Te===Gl(i,788968,!0)))return e.setOriginalNode(s(dp(i),r),i);if(e.isLiteralImportTypeNode(i)){var d=Jn(i).resolvedSymbol;return!e.isInJSDoc(i)||!d||(i.isTypeOf||788968&d.flags)&&e.length(i.typeArguments)>=nl($o(d))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,((n,i)=>{if(o){if(r.tracker&&r.tracker.moduleResolverHost){var a=xD(n);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:()=>r.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>r.tracker.moduleResolverHost.getCommonSourceDirectory()},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(r.tracker&&r.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=Mi(i,i,void 0);l&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i})(i,i.argument.literal)),i.qualifier,e.visitNodes(i.typeArguments,n,e.isTypeNode),i.isTypeOf):e.setOriginalNode(s(dp(i),r),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var p=V(i,r,a),_=p.introducesError,f=p.node;if(c=c||_,f!==i)return f}return l&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(l,i.pos).line===e.getLineAndCharacterOfPosition(l,i.end).line&&e.setEmitFlags(i,1),e.visitEachChild(i,n,e.nullTransformationContext);function m(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function g(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":m(t)?"args":"arg".concat(r)}}));if(!c)return u===i?e.setTextRange(e.factory.cloneNode(i),i):u}})(),ne=e.createSymbolTable(),ie=Rn(4,"undefined");ie.declarations=[];var ae=Rn(1536,"globalThis",8);ae.exports=ne,ae.declarations=[],ne.set(ae.escapedName,ae);var oe,se=Rn(4,"arguments"),ce=Rn(4,"require"),le={getNodeCount:()=>e.sum(t.getSourceFiles(),"nodeCount"),getIdentifierCount:()=>e.sum(t.getSourceFiles(),"identifierCount"),getSymbolCount:()=>e.sum(t.getSourceFiles(),"symbolCount")+g,getTypeCount:()=>m,getInstantiationCount:()=>y,getRelationCacheSizes:()=>({assignable:vn.size,identity:xn.size,subtype:hn.size,strictSubtype:yn.size}),isUndefinedSymbol:e=>e===ie,isArgumentsSymbol:e=>e===se,isUnknownSymbol:e=>e===Te,getMergedSymbol:qi,getDiagnostics:TS,getGlobalDiagnostics:()=>(CS(),_n.getGlobalDiagnostics()),getRecursionIdentity:j_,getUnmatchedProperties:im,getTypeOfSymbolAtLocation(t,r){var n=e.getParseTreeNode(r);return n?((t,r)=>{if(t=t.exportSymbol||t,(79===r.kind||80===r.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var n=tx(r);if(ra(Jn(r).resolvedSymbol)===t)return n}return e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&wo(r.parent)?Oo(r.parent.symbol,!0):Uo(t)})(t,n):Pe},getSymbolsOfParameterPropertyDeclaration(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):((t,r)=>{var n=t.parent,i=t.parent.parent,a=Gn(n.locals,r,111551),o=Gn(Fs(i.symbol),r,111551);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")})(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:_s,getPropertiesOfType:fc,getPropertyOfType:(t,r)=>Lc(t,e.escapeLeadingUnderscores(r)),getPrivateIdentifierPropertyOfType(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=fy(e.escapeLeadingUnderscores(r),i);return a?gy(t,a):void 0}},getTypeOfPropertyOfType:(t,r)=>Ya(t,e.escapeLeadingUnderscores(r)),getIndexInfoOfType:(e,t)=>Hc(e,0===t?We:He),getIndexInfosOfType:Wc,getSignaturesOfType:jc,getIndexTypeOfType:(e,t)=>Jc(e,0===t?We:He),getBaseTypes:ts,getBaseTypeOfLiteralType:af,getWidenedType:Bf,getTypeFromTypeNode(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?dp(r):Pe},getParameterType:Gv,getParameterIdentifierNameAtPosition(e,t){var r=e.parameters.length-(L(e)?1:0);if(t<r){var n=e.parameters[t];return Hv(n)?[n.escapedName,!1]:void 0}var i=e.parameters[r]||Te;if(Hv(i)){var a=jo(i);if(uf(a)){var o=a.target.labeledElementDeclarations,s=null==o?void 0:o[t-r],c=!!(null==s?void 0:s.dotDotDotToken);return s?[Kv(s),c]:void 0}return t===r?[i.escapedName,!0]:void 0}},getPromisedTypeOfPromise:Dx,getAwaitedType:e=>Nx(e),getReturnTypeOfSignature:_l,isNullableType:iy,getNullableType:bf,getNonNullableType:Ef,getNonOptionalType:Df,getTypeArguments:Vl,typeToTypeNode:re.typeToTypeNode,indexInfoToIndexSignatureDeclaration:re.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:re.signatureToSignatureDeclaration,symbolToEntityName:re.symbolToEntityName,symbolToExpression:re.symbolToExpression,symbolToTypeParameterDeclarations:re.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:re.symbolToParameterDeclaration,typeParameterToDeclaration:re.typeParameterToDeclaration,getSymbolsInScope(t,r){var n=e.getParseTreeNode(t);return n?((t,r)=>{if(16777216&t.flags)return[];var n=e.createSymbolTable(),i=!1;return(()=>{for(;t;){switch(t.locals&&!$n(t)&&o(t.locals,r),t.kind){case 303:if(!e.isExternalModule(t))break;case 260:s(Xi(t).exports,2623475&r);break;case 259:o(Xi(t).exports,8&r);break;case 225:t.name&&a(t.symbol,r);case 256:case 257:i||o(Fs(Xi(t)),788968&r);break;case 212:t.name&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(se,r),i=e.isStatic(t),t=t.parent}o(ne,r)})(),n.delete("this"),Yc(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach((e=>{a(e,t)}))}function s(t,r){r&&t.forEach((t=>{e.getDeclarationOfKind(t,274)||e.getDeclarationOfKind(t,273)||a(t,r)}))}})(n,r):[]},getSymbolAtLocation(t){var r=e.getParseTreeNode(t);return r?OS(r,!0):void 0},getIndexInfosAtLocation(t){var r=e.getParseTreeNode(t);return r?(t=>{if(e.isIdentifier(t)&&e.isPropertyAccessExpression(t.parent)&&t.parent.name===t){var r=id(t),n=tx(t.parent.expression),i=1048576&n.flags?n.types:[n];return e.flatMap(i,(t=>e.filter(Wc(t),(e=>zc(r,e.keyType)))))}})(r):void 0},getShorthandAssignmentValueSymbol(t){var r=e.getParseTreeNode(t);return r?(e=>{if(e&&295===e.kind)return Pi(e.name,2208703)})(r):void 0},getExportSpecifierLocalTargetSymbol(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?(t=>e.isExportSpecifier(t)?t.parent.parent.moduleSpecifier?hi(t.parent.parent,t):Pi(t.propertyName||t.name,2998271):Pi(t,2998271))(r):void 0},getExportSymbolOfSymbol:e=>qi(e.exportSymbol||e),getTypeAtLocation(t){var r=e.getParseTreeNode(t);return r?MS(r):Pe},getTypeOfAssignmentPattern(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&RS(r)||Pe},getPropertySymbolOfDestructuringAssignment(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?(t=>{var r=RS(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&Lc(r,t.escapedText)})(r):void 0},signatureToString:(t,r,n,i)=>Fa(t,e.getParseTreeNode(r),n,i),typeToString:(t,r,n)=>Pa(t,e.getParseTreeNode(r),n),symbolToString:(t,r,n,i)=>wa(t,e.getParseTreeNode(r),n,i),typePredicateToString:(t,r,n)=>Ba(t,e.getParseTreeNode(r),n),writeSignature:(t,r,n,i,a)=>Fa(t,e.getParseTreeNode(r),n,i,a),writeType:(t,r,n,i)=>Pa(t,e.getParseTreeNode(r),n,i),writeSymbol:(t,r,n,i,a)=>wa(t,e.getParseTreeNode(r),n,i,a),writeTypePredicate:(t,r,n,i)=>Ba(t,e.getParseTreeNode(r),n,i),getAugmentedPropertiesOfType:US,getRootSymbols:function t(r){var n=(t=>{if(6&e.getCheckFlags(t))return e.mapDefined(Hn(t).containingType.types,(e=>Lc(e,t.escapedName)));if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray((e=>{for(var t,r=e;r=Hn(r).target;)t=r;return t})(t))}})(r);return n?e.flatMap(n,t):[r]},getSymbolOfExpando:wv,getContextualType(t,r){var n=e.getParseTreeNode(t,e.isExpression);if(n){var i=e.findAncestor(n,e.isCallLikeExpression),a=i&&Jn(i).resolvedSignature;if(4&r&&i){var o=n;do{Jn(o).skipDirectInference=!0,o=o.parent}while(o&&o!==i);Jn(i).resolvedSignature=void 0}var s=mh(n,r);if(4&r&&i){o=n;do{Jn(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==i);Jn(i).resolvedSignature=a}return s}},getContextualTypeForObjectLiteralElement(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?ch(r):void 0},getContextualTypeForArgumentAtIndex(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&ih(n,r)},getContextualTypeForJsxAttribute(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&uh(r)},isContextSensitive:Vp,getTypeOfPropertyOfContextualType:sh,getFullyQualifiedName:Fi,getResolvedSignature:(e,t,r)=>ue(e,t,r,0),getResolvedSignatureForSignatureHelp:(e,t,r)=>ue(e,t,r,16),getExpandedParameters:js,hasEffectiveRestParameter:Zv,containsArgumentsReference:sl,getConstantValue(t){var r=e.getParseTreeNode(t,sD);return r?cD(r):void 0},isValidPropertyAccess(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&((e,t)=>{switch(e.kind){case 205:return My(e,106===e.expression.kind,t,Bf(ix(e.expression)));case 160:return My(e,!1,t,Bf(ix(e.left)));case 199:return My(e,!1,t,dp(e))}})(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&Oy(i,r,n)},getSignatureFromDeclaration(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?al(r):void 0},isImplementationOfOverload(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?eD(r):void 0},getImmediateAliasedSymbol:wh,getAliasedSymbol:Di,getEmitResolver:(e,t)=>(TS(e,t),te),getExportsOfModule:zi,getExportsAndPropertiesOfModule(t){var r=zi(t),n=Bi(t);if(n!==t){var i=jo(n);Wi(i)&&e.addRange(r,fc(i))}return r},forEachExportAndPropertyOfModule(e,t){Ji(e).forEach(((e,r)=>{ua(r)||t(e,r)}));var r=Bi(e);if(r!==e){var n=jo(r);Wi(n)&&((e,r)=>{3670016&(e=Ac(e)).flags&&uc(e).members.forEach(((e,r)=>{pa(e,r)&&((e,r)=>{t(e,r)})(e,r)}))})(n)}},getSymbolWalker:e.createGetSymbolWalker((e=>gl(e)||Ne),dl,_l,ts,uc,jo,Em,gc,e.getFirstIdentifier,Vl),getAmbientModules:()=>(Tt||(Tt=[],ne.forEach(((e,t)=>{a.test(t)&&Tt.push(e)}))),Tt),getJsxIntrinsicTagNamesAt(t){var r=Lh(k.IntrinsicElements,t);return r?fc(r):e.emptyArray},isOptionalParameter(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&el(r)},tryGetMemberInModuleExports:(t,r)=>Ki(e.escapeLeadingUnderscores(t),r),tryGetMemberInModuleExportsAndProperties:(t,r)=>((e,t)=>{var r=Ki(e,t);if(r)return r;var n=Bi(t);if(n!==t){var i=jo(n);return Wi(i)?Lc(i,e):void 0}})(e.escapeLeadingUnderscores(t),r),tryFindAmbientModule:e=>Zc(e,!0),tryFindAmbientModuleWithoutAugmentations:e=>Zc(e,!1),getApparentType:kc,getUnionType:Hu,isTypeAssignableTo:Xp,createAnonymousType:fa,createSignature:Ms,createSymbol:Rn,createIndexInfo:Tl,getAnyType:()=>Ne,getStringType:()=>We,getNumberType:()=>He,createPromiseType:sb,createArrayType:Du,getElementTypeOfArrayType:$_,getBooleanType:()=>Ye,getFalseType:e=>e?$e:Ge,getTrueType:e=>e?qe:Xe,getVoidType:()=>Ze,getUndefinedType:()=>Be,getNullType:()=>ze,getESSymbolType:()=>Qe,getNeverType:()=>et,getOptionalType:()=>Ue,getPromiseType:()=>gu(!1),getPromiseLikeType:()=>hu(!1),isSymbolAccessible:Sa,isArrayType:W_,isTupleType:uf,isArrayLikeType:G_,isTypeInvalidDueToUnionDiscriminant:(e,t)=>t.properties.some((t=>{var r=t.name&&id(t.name),n=r&&Ss(r)?As(r):void 0,i=void 0===n?void 0:Ya(e,n);return!!i&&nf(i)&&!Xp(MS(t),i)})),getExactOptionalProperties:e=>fc(e).filter((e=>Af(jo(e)))),getAllPossiblePropertiesOfTypes(t){var r=Hu(t);if(!(1048576&r.flags))return US(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=0,s=US(a[i]);o<s.length;o++){var c=s[o].escapedName;if(!n.has(c)){var l=Nc(r,c);l&&n.set(c,l)}}return e.arrayFrom(n.values())},getSuggestedSymbolForNonexistentProperty:Cy,getSuggestionForNonexistentProperty:Ay,getSuggestedSymbolForNonexistentJSXAttribute:ky,getSuggestedSymbolForNonexistentSymbol:(t,r,n)=>Ny(t,e.escapeLeadingUnderscores(r),n),getSuggestionForNonexistentSymbol:(t,r,n)=>((t,r,n)=>{var i=Ny(t,r,n);return i&&e.symbolName(i)})(t,e.escapeLeadingUnderscores(r),n),getSuggestedSymbolForNonexistentModule:wy,getSuggestionForNonexistentExport(t,r){var n=wy(t,r);return n&&e.symbolName(n)},getSuggestedSymbolForNonexistentClassMember:Ty,getBaseConstraintOfType:xc,getDefaultFromTypeParameter:e=>e&&262144&e.flags?Cc(e):void 0,resolveName:(t,r,n,i)=>Yn(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i),getJsxNamespace:t=>e.unescapeLeadingUnderscores(Tn(t)),getJsxFragmentFactory(t){var r=bD(t);return r&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(r).escapedText)},getAccessibleSymbolChain:ha,getTypePredicateOfSignature:dl,resolveExternalModuleName(t){var r=e.getParseTreeNode(t,e.isExpression);return r&&Oi(r,r,!0)},resolveExternalModuleSymbol:Bi,tryGetThisTypeAt(t,r){var n=e.getParseTreeNode(t);return n&&Jg(n,r)},getTypeArgumentConstraint(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r&&(t=>{var r=e.tryCast(t.parent,e.isTypeReferenceType);if(r){var n=gx(r);if(n){var i=gc(n[r.typeArguments.indexOf(t)]);return i&&Rp(i,hp(n,fx(r,n)))}}})(r)},getSuggestionDiagnostics(r,i){var a,o=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(o,j,t))return e.emptyArray;try{return n=i,ES(o),e.Debug.assert(!!(1&Jn(o).flags)),a=e.addRange(a,fn.getDiagnostics(o.fileName)),Vx(DS(o),((t,r,n)=>{e.containsParseError(t)||SS(r,!!(8388608&t.flags))||(a||(a=[])).push(Ol(Ol({},n),{category:e.DiagnosticCategory.Suggestion}))})),a||e.emptyArray}finally{n=void 0}},runWithCancellationToken(e,t){try{return n=e,t(le)}finally{n=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:$o,isDeclarationVisible:Wa,isPropertyAccessible:Ry,getTypeOnlyAliasDeclaration:ki,getMemberOverrideModifierStatus(t,r){if(!r.name)return 0;var n=Xi(t),i=_s(n),a=Is(i),o=jo(n),s=e.getEffectiveBaseTypeNode(t)&&ts(i),c=(null==s?void 0:s.length)?Is(e.first(s),i.thisType):void 0,l=Zo(i),u=r.parent?e.hasOverrideModifier(r):e.hasSyntacticModifier(r,16384),d=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(r.name));return QE(t,o,l,c,i,a,u,e.hasAbstractModifier(r),e.isStatic(r),!1,d)}};function ue(t,r,n,i){var a=e.getParseTreeNode(t,e.isCallLikeExpression);oe=n;var o=a?kv(a,r,i):void 0;return oe=void 0,o}var de=new e.Map,pe=new e.Map,_e=new e.Map,fe=new e.Map,me=new e.Map,ge=new e.Map,he=new e.Map,ye=new e.Map,ve=new e.Map,be=new e.Map,xe=new e.Map,Ee=new e.Map,Se=[],De=new e.Map,Te=Rn(4,"unknown"),Ce=Rn(0,"__resolving__"),ke=new e.Map,Ae=new e.Map,Ne=sa(1,"any"),we=sa(1,"any"),Fe=sa(1,"any"),Pe=sa(1,"error"),Ie=sa(1,"unresolved"),Oe=sa(1,"any",131072),Me=sa(1,"intrinsic"),Re=sa(2,"unknown"),Le=sa(2,"unknown"),Be=sa(32768,"undefined"),je=W?Be:sa(32768,"undefined",131072),Ue=sa(32768,"undefined"),Ve=Z?sa(32768,"undefined"):Be,ze=sa(65536,"null"),Ke=W?ze:sa(65536,"null",131072),We=sa(4,"string"),He=sa(8,"number"),Je=sa(64,"bigint"),$e=sa(512,"false"),Ge=sa(512,"false"),qe=sa(512,"true"),Xe=sa(512,"true");qe.regularType=Xe,qe.freshType=qe,Xe.regularType=Xe,Xe.freshType=qe,$e.regularType=Ge,$e.freshType=$e,Ge.regularType=Ge,Ge.freshType=$e;var Ye=Hu([Ge,Xe]),Qe=sa(4096,"symbol"),Ze=sa(16384,"void"),et=sa(131072,"never"),tt=sa(131072,"never"),rt=sa(131072,"never",524288),nt=sa(131072,"never"),it=sa(131072,"never"),at=sa(67108864,"object"),ot=Hu([We,He]),st=Hu([We,He,Qe]),ct=Y?We:st,lt=Hu([He,Je]),ut=Hu([We,He,Ye,Je,ze,Be]),dt=bp((e=>{return 262144&e.flags?(t=e).constraint===Re?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=la(t.symbol),t.restrictiveInstantiation.constraint=Re,t.restrictiveInstantiation):e;var t})),pt=bp((e=>262144&e.flags?Fe:e)),_t=fa(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray),ft=fa(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray);ft.objectFlags|=2048;var mt=Rn(2048,"__type");mt.members=e.createSymbolTable();var gt=fa(mt,D,e.emptyArray,e.emptyArray,e.emptyArray),ht=fa(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray);ht.instantiations=new e.Map;var yt=fa(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray);yt.objectFlags|=524288;var vt=fa(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray),bt=fa(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray),xt=fa(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray),Et=la(),St=la();St.constraint=Et;var Dt,Tt,Ct,kt,At,Nt,wt,Ft,Pt,It,Ot,Mt,Rt,Lt,Bt,jt,Ut,Vt,zt,Kt,Wt,Ht,Jt,$t,Gt,qt,Xt,Yt,Qt,Zt,er,tr,rr,nr,ir,ar,or,sr,cr,lr,ur,dr,pr,_r,fr,mr,gr,hr,yr,vr,br,xr=la(),Er=rl(1,"<<unresolved>>",0,Ne),Sr=Ms(void 0,void 0,void 0,e.emptyArray,Ne,void 0,0,0),Dr=Ms(void 0,void 0,void 0,e.emptyArray,Pe,void 0,0,0),Tr=Ms(void 0,void 0,void 0,e.emptyArray,Ne,void 0,0,0),Cr=Ms(void 0,void 0,void 0,e.emptyArray,tt,void 0,0,0),kr=Tl(He,We,!0),Ar=new e.Map,Nr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},wr=xE(Ne,Ne,Ne),Fr=xE(Ne,Ne,Re),Pr=xE(et,Ne,Be),Ir={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:e=>ir||(ir=du("AsyncIterator",3,e))||ht,getGlobalIterableType:e=>nr||(nr=du("AsyncIterable",1,e))||ht,getGlobalIterableIteratorType:e=>ar||(ar=du("AsyncIterableIterator",1,e))||ht,getGlobalGeneratorType:e=>or||(or=du("AsyncGenerator",3,e))||ht,resolveIterationType:Nx,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Or={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:e=>Qt||(Qt=du("Iterator",3,e))||ht,getGlobalIterableType:vu,getGlobalIterableIteratorType:e=>Zt||(Zt=du("IterableIterator",1,e))||ht,getGlobalGeneratorType:e=>er||(er=du("Generator",3,e))||ht,resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Mr=new e.Map,Rr=!1,Lr=new e.Map,Br=0,jr=0,Ur=0,Vr=!1,zr=0,Kr=np(""),Wr=ip(0),Hr=ap({negative:!1,base10Value:"0"}),Jr=[],$r=[],Gr=[],qr=0,Xr=[],Yr=[],Qr=[],Zr=[],en=[],tn=[],rn=[],nn=[],an=[],on=[],sn=[],cn=[],ln=[],un=[],dn=[],pn=[],_n=e.createDiagnosticCollection(),fn=e.createDiagnosticCollection(),mn=new e.Map(e.getEntries({string:We,number:He,bigint:Je,boolean:Ye,symbol:Qe,undefined:Be})),gn=Hu(e.arrayFrom(b.keys(),np)),hn=new e.Map,yn=new e.Map,vn=new e.Map,bn=new e.Map,xn=new e.Map,En=new e.Map,Sn=e.createSymbolTable();Sn.set(ie.escapedName,ie);var Dn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===j.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return(()=>{for(var r=0,n=t.getSourceFiles();r<n.length;r++){var i=n[r];e.bindSourceFile(i,j)}var a,o,s,c;Dt=new e.Map;for(var l=0,u=t.getSourceFiles();l<u.length;l++)if(!(i=u[l]).redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var d=i.locals.get("globalThis");if(null==d?void 0:d.declarations)for(var p=0,_=d.declarations;p<_.length;p++){var f=_[p];_n.add(e.createDiagnosticForNode(f,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}Kn(ne,i.locals)}i.jsGlobalAugmentations&&Kn(ne,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(Ct=e.concatenate(Ct,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports&&i.symbol.globalExports.forEach(((e,t)=>{ne.has(t)||ne.set(t,e)}))}if(a)for(var m=0,g=a;m<g.length;m++)for(var h=g[m],y=0,v=h;y<v.length;y++){var b=v[y];e.isGlobalScopeAugmentation(b.parent)&&Wn(b)}if(o=ne,s=Sn,c=e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,s.forEach(((t,r)=>{var n=o.get(r);n?e.forEach(n.declarations,((t,r)=>n=>_n.add(e.createDiagnosticForNode(n,r,t)))(e.unescapeLeadingUnderscores(r),c)):o.set(r,t)})),Hn(ie).type=je,Hn(se).type=du("IArguments",0,!0),Hn(Te).type=Pe,Hn(ae).type=ca(16,ae),Pt=du("Array",1,!0),At=du("Object",0,!0),Nt=du("Function",0,!0),wt=J&&du("CallableFunction",0,!0)||Nt,Ft=J&&du("NewableFunction",0,!0)||Nt,Ot=du("String",0,!0),Mt=du("Number",0,!0),Rt=du("Boolean",0,!0),Lt=du("RegExp",0,!0),jt=Du(Ne),(Ut=Du(we))===_t&&(Ut=fa(void 0,D,e.emptyArray,e.emptyArray,e.emptyArray)),It=bu("ReadonlyArray",1)||Pt,Vt=It?Eu(It,[Ne]):jt,Bt=bu("ThisType",1),a)for(var x=0,E=a;x<E.length;x++)for(var S=0,T=h=E[x];S<T.length;S++)b=T[S],e.isGlobalScopeAugmentation(b.parent)||Wn(b);Dt.forEach((t=>{var r=t.firstFile,n=t.secondFile,i=t.conflictingSymbols;if(i.size<8)i.forEach(((t,r)=>{for(var n=t.isBlockScoped,i=t.firstFileLocations,a=t.secondFileLocations,o=n?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,c=i;s<c.length;s++)zn(c[s],o,r,a);for(var l=0,u=a;l<u.length;l++)zn(u[l],o,r,i)}));else{var a=e.arrayFrom(i.keys()).join(", ");_n.add(e.addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(n,e.Diagnostics.Conflicts_are_in_this_file))),_n.add(e.addRelatedInfo(e.createDiagnosticForNode(n,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file)))}})),Dt=void 0})(),le;function Tn(t){if(t){var r=e.getSourceFileOfNode(t);if(r)if(e.isJsxOpeningFragment(t)){if(r.localJsxFragmentNamespace)return r.localJsxFragmentNamespace;var n=r.pragmas.get("jsxfrag");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,U),e.visitNode(r.localJsxFragmentFactory,kn),r.localJsxFragmentFactory)return r.localJsxFragmentNamespace=e.getFirstIdentifier(r.localJsxFragmentFactory).escapedText}var a=bD(t);if(a)return r.localJsxFragmentFactory=a,r.localJsxFragmentNamespace=e.getFirstIdentifier(a).escapedText}else{var o=Cn(r);if(o)return r.localJsxNamespace=o}}return yr||(yr="React",j.jsxFactory?(vr=e.parseIsolatedEntityName(j.jsxFactory,U),e.visitNode(vr,kn),vr&&(yr=e.getFirstIdentifier(vr).escapedText)):j.reactNamespace&&(yr=e.escapeLeadingUnderscores(j.reactNamespace))),vr||(vr=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(yr)),"createElement")),yr}function Cn(t){if(t.localJsxNamespace)return t.localJsxNamespace;var r=t.pragmas.get("jsx");if(r){var n=e.isArray(r)?r[0]:r;if(t.localJsxFactory=e.parseIsolatedEntityName(n.arguments.factory,U),e.visitNode(t.localJsxFactory,kn),t.localJsxFactory)return t.localJsxNamespace=e.getFirstIdentifier(t.localJsxFactory).escapedText}}function kn(t){return e.setTextRangePosEnd(t,-1,-1),e.visitEachChild(t,kn,e.nullTransformationContext)}function An(e,t,r,n,i,a,o){var s=wn(t,r,n,i,a,o);return s.skippedOn=e,s}function Nn(t,r,n,i,a,o){return t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o)}function wn(e,t,r,n,i,a){var o=Nn(e,t,r,n,i,a);return _n.add(o),o}function Fn(t,r){t?_n.add(r):fn.add(Ol(Ol({},r),{category:e.DiagnosticCategory.Suggestion}))}function Pn(t,r,n,i,a,o,s){if(r.pos<0||r.end<0){if(!t)return;var c=e.getSourceFileOfNode(r);Fn(t,"message"in n?e.createFileDiagnostic(c,0,0,n,i,a,o,s):e.createDiagnosticForFileFromMessageChain(c,n))}else Fn(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function In(t,r,n,i,a,o,s){var c=wn(t,n,i,a,o,s);if(r){var l=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,l)}return c}function On(t,r){var n=Array.isArray(t)?e.forEach(t,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(t);return n&&e.addRelatedInfo(r,e.createDiagnosticForNode(n,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),fn.add(r),r}function Mn(t,r,n){return On(r,e.createDiagnosticForNode(t,e.Diagnostics._0_is_deprecated,n))}function Rn(e,t,r){g++;var n=new p(33554432|e,t);return n.checkFlags=r||0,n}function Ln(e){var t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function Bn(e,t){t.mergeId||(t.mergeId=l,l++),Xr[t.mergeId]=e}function jn(t){var r=Rn(t.flags,t.escapedName);return r.declarations=t.declarations?t.declarations.slice():[],r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=new e.Map(t.members)),t.exports&&(r.exports=new e.Map(t.exports)),Bn(r,t),r}function Un(t,r,n){if(void 0===n&&(n=!1),!(t.flags&Ln(r.flags))||67108864&(r.flags|t.flags)){if(r===t)return t;if(!(33554432&t.flags)){var i=Si(t);if(i===Te)return r;t=jn(i)}512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&e.setValueDeclaration(t,r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),Kn(t.members,r.members,n)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),Kn(t.exports,r.exports,n)),n||Bn(t,r)}else if(1024&t.flags)t!==ae&&wn(r.declarations&&e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,wa(t));else{var a=!!(384&t.flags||384&r.flags),o=!!(2&t.flags||2&r.flags),s=a?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:o?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,c=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),l=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),u=wa(r);if(c&&l&&Dt&&!a&&c!==l){var d=-1===e.comparePaths(c.path,l.path)?c:l,p=d===c?l:c,_=e.getOrUpdate(Dt,"".concat(d.path,"|").concat(p.path),(()=>({firstFile:d,secondFile:p,conflictingSymbols:new e.Map}))),f=e.getOrUpdate(_.conflictingSymbols,u,(()=>({isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]})));m(f.firstFileLocations,r),m(f.secondFileLocations,t)}else Vn(r,s,u,t),Vn(t,s,u,r)}return t;function m(t,r){if(r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];e.pushIfUnique(t,a)}}}function Vn(t,r,n,i){e.forEach(t.declarations,(e=>{zn(e,r,n,i.declarations)}))}function zn(t,r,n,i){for(var a=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t,o=((t,r,n,i,a,o)=>{var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);return _n.lookup(s)||(_n.add(s),s)})(a,r,n),s=t=>{var r=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t;if(r===a)return"continue";o.relatedInformation=o.relatedInformation||[];var i=e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,n),s=e.createDiagnosticForNode(r,e.Diagnostics.and_here);if(e.length(o.relatedInformation)>=5||e.some(o.relatedInformation,(t=>0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i))))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c<l.length;c++)s(l[c])}function Kn(e,t,r){void 0===r&&(r=!1),t.forEach(((t,n)=>{var i=e.get(n);e.set(n,i?Un(i,t,r):t)}))}function Wn(t){var r,n,i,a=t.parent;if((null===(r=a.symbol.declarations)||void 0===r?void 0:r[0])===a)if(e.isGlobalScopeAugmentation(a))Kn(ne,a.symbol.exports);else{var o=Mi(t,t,8388608&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!o)return;if(1920&(o=Bi(o)).flags)if(e.some(Ct,(e=>o===e.symbol))){var s=Un(a.symbol,o,!0);kt||(kt=new e.Map),kt.set(t.text,s)}else{if((null===(n=o.exports)||void 0===n?void 0:n.get("__export"))&&(null===(i=a.symbol.exports)||void 0===i?void 0:i.size))for(var c=ws(o,"resolvedExports"),l=0,u=e.arrayFrom(a.symbol.exports.entries());l<u.length;l++){var d=u[l],p=d[0],_=d[1];c.has(p)&&!o.exports.has(p)&&Un(c.get(p),_)}Un(o,a.symbol)}else wn(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(a.symbol.declarations.length>1)}function Hn(e){if(33554432&e.flags)return e;var t=P(e);return Yr[t]||(Yr[t]=new N)}function Jn(e){var t=F(e);return Qr[t]||(Qr[t]=new w)}function $n(t){return 303===t.kind&&!e.isExternalOrCommonJsModule(t)}function Gn(t,r,n){if(n){var i=qi(t.get(r));if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=Di(i);if(a===Te||a.flags&n)return i}}}}function qn(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(V&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(j)||Sm(n)||8388608&r.flags)return!0;if(l(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(202===r.kind){var c=e.getAncestor(n,202);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<c.pos:qn(e.getAncestor(r,253),n)}return 253===r.kind?!((t,r)=>{switch(t.parent.parent.kind){case 236:case 241:case 243:if(si(r,t,o))return!0}var n=t.parent.parent;return e.isForInOrOfStatement(n)&&si(r,n.expression,o)})(r,n):e.isClassDeclaration(r)?!e.findAncestor(n,(t=>e.isComputedPropertyName(t)&&t.parent.parent===r)):e.isPropertyDeclaration(r)?!u(r,n,!1):!e.isParameterPropertyDeclaration(r,r.parent)||!(99===e.getEmitScriptTarget(j)&&z&&e.getContainingClass(r)===e.getContainingClass(n)&&l(n,r))}return!(!(274===n.parent.kind||270===n.parent.kind&&n.parent.isExportEquals)&&(270!==n.kind||!n.isExportEquals)&&!(4194304&n.flags||Sm(n)||e.findAncestor(n,(t=>e.isInterfaceDeclaration(t)||e.isTypeAliasDeclaration(t))))&&(!l(n,r)||99===e.getEmitScriptTarget(j)&&z&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))&&u(r,n,!0)));function l(t,r){return!!e.findAncestor(t,(n=>{if(n===o)return"quit";if(e.isFunctionLike(n))return!0;if(e.isClassStaticBlockDeclaration(n))return r.pos<t.pos;var i=e.tryCast(n.parent,e.isPropertyDeclaration);if(i&&i.initializer===n)if(e.isStatic(n.parent)){if(168===r.kind)return!0;if(e.isPropertyDeclaration(r)&&e.getContainingClass(t)===e.getContainingClass(r)){var a=r.name;if((e.isIdentifier(a)||e.isPrivateIdentifier(a))&&((t,r,n,i,a)=>{for(var o=0,s=n;o<s.length;o++){var c=s[o];if(c.pos>=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!(32768&hf(wg(l,r,xf(r)))))return!0}}return!1})(a,jo(Xi(r)),e.filter(r.parent.members,e.isClassStaticBlockDeclaration),r.parent.pos,n.pos))return!0}}else if(166!==r.kind||e.isStatic(r)||e.getContainingClass(t)!==e.getContainingClass(r))return!0;return!1}))}function u(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(r=>{if(r===t)return"quit";switch(r.kind){case 213:return!0;case 166:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 234:switch(r.parent.kind){case 171:case 168:case 172:return!0;default:return!1}default:return!1}}))}}function Xn(t,r,n){var i=e.getEmitScriptTarget(j),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=Jn(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(e=>s(e.name)||!!e.initializer&&s(e.initializer)))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 213:case 212:case 255:case 170:return!1;case 168:case 171:case 172:case 294:return s(t.name);case 166:return e.hasStaticModifier(t)?i<99||!z:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function Yn(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),void 0===s&&(s=!0),Qn(e,t,r,n,i,a,o,s,Gn)}function Qn(t,n,i,a,o,s,c,l,u){var d,p,_,f,m,g,h,y,v,b=t,x=!1,E=t,S=!1;e:for(;t;){if(t.locals&&!$n(t)&&(f=u(t.locals,n,i))){var T=!0;if(e.isFunctionLike(t)&&m&&m!==t.body?(i&f.flags&788968&&318!==m.kind&&(T=!!(262144&f.flags)&&(m===t.type||163===m.kind||162===m.kind)),i&f.flags&3&&(Xn(f,t,m)?T=!1:1&f.flags&&(T=163===m.kind||m===t.type&&!!e.findAncestor(f.valueDeclaration,e.isParameter)))):188===t.kind&&(T=m===t.trueType),T)break e;f=void 0}switch(x=x||ei(t,m),t.kind){case 303:if(!e.isExternalOrCommonJsModule(t))break;S=!0;case 260:var C=(null===(d=Xi(t))||void 0===d?void 0:d.exports)||D;if(303===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(f=C.get("default")){var k=e.getLocalSymbolForExportDefault(f);if(k&&f.flags&i&&k.escapedName===n)break e;f=void 0}var A=C.get(n);if(A&&2097152===A.flags&&(e.getDeclarationOfKind(A,274)||e.getDeclarationOfKind(A,273)))break}if("default"!==n&&(f=u(C,n,2623475&i))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(p=f.declarations)||void 0===p?void 0:p.some(e.isJSDocTypeAlias)))break e;f=void 0}break;case 259:if(f=u((null===(_=Xi(t))||void 0===_?void 0:_.exports)||D,n,8&i))break e;break;case 166:if(!e.isStatic(t)){var N=ia(t.parent);N&&N.locals&&u(N.locals,n,111551&i)&&(h=t)}break;case 256:case 225:case 257:if(f=u(Xi(t).members||D,n,788968&i)){if(!ni(f,t)){f=void 0;break}if(m&&e.isStatic(m))return void wn(E,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(225===t.kind&&32&i){var w=t.name;if(w&&n===w.escapedText){f=t.symbol;break e}}break;case 227:if(m===t.expression&&94===t.parent.token){var F=t.parent.parent;if(e.isClassLike(F)&&(f=u(Xi(F).members,n,788968&i)))return void(a&&wn(E,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 161:if(v=t.parent.parent,(e.isClassLike(v)||257===v.kind)&&(f=u(Xi(v).members,n,788968&i)))return void wn(E,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 213:if(e.getEmitScriptTarget(j)>=2)break;case 168:case 170:case 171:case 172:case 255:if(3&i&&"arguments"===n){f=se;break e}break;case 212:if(3&i&&"arguments"===n){f=se;break e}if(16&i){var P=t.name;if(P&&n===P.escapedText){f=t.symbol;break e}}break;case 164:t.parent&&163===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||256===t.parent.kind)&&(t=t.parent);break;case 343:case 336:case 337:(B=e.getJSDocRoot(t))&&(t=B.parent);break;case 163:m&&(m===t.initializer||m===t.name&&e.isBindingPattern(m))&&(y||(y=t));break;case 202:m&&(m===t.initializer||m===t.name&&e.isBindingPattern(m))&&e.isParameterDeclaration(t)&&!y&&(y=t);break;case 189:if(262144&i){var I=t.typeParameter.name;if(I&&n===I.escapedText){f=t.typeParameter.symbol;break e}}}ti(t)&&(g=t),m=t,t=e.isJSDocTemplateTag(t)&&e.getEffectiveContainerForJSDocTemplateTag(t)||t.parent}if(!s||!f||g&&f===g.symbol||(f.isReferenced|=i),!f){if(m&&(e.Debug.assert(303===m.kind),m.commonJsModuleIndicator&&"exports"===n&&i&m.symbol.flags))return m.symbol;c||(f=u(ne,n,i))}if(!f&&b&&e.isInJSFile(b)&&b.parent&&e.isRequireCall(b.parent,!1))return ce;if(f){if(a&&r){if(h&&(99!==e.getEmitScriptTarget(j)||!z)){var O=h.name;return void wn(E,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(O),ri(o))}if(E&&(2&i||(32&i||384&i)&&111551==(111551&i))){var M=ra(f);(2&M.flags||32&M.flags||384&M.flags)&&((t,r)=>{var n;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),!(67108881&t.flags&&32&t.flags)){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((t=>e.isBlockOrCatchScoped(t)||e.isClassLike(t)||259===t.kind));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&i.flags||qn(i,r))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=wn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=wn(r,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=wn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(j)&&(a=wn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}})(M,E)}if(f&&S&&111551==(111551&i)&&!(4194304&b.flags)){var R=qi(f);e.length(R.declarations)&&e.every(R.declarations,(t=>e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports))&&Pn(!j.allowUmdGlobalAccess,E,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(n))}if(f&&y&&!x&&111551==(111551&i)){var L=qi(Ps(f)),B=e.getRootDeclaration(y);L===Xi(y)?wn(E,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(y.name)):L.valueDeclaration&&L.valueDeclaration.pos>y.pos&&B.parent.locals&&u(B.parent.locals,L.escapedName,i)===L&&wn(E,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(y.name),e.declarationNameToString(E))}f&&E&&111551&i&&2097152&f.flags&&((t,r,n)=>{if(!e.isValidTypeOnlyAliasUseSite(n)){var i=ki(t);if(i){var a=274===i.kind?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,o=e.unescapeLeadingUnderscores(r);Zn(wn(n,a,o),i,o)}}})(f,n,E)}return f}if(a&&r&&(!E||!(((t,r,n)=>{if(!e.isIdentifier(t)||t.escapedText!==r||AS(t)||Sm(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=Xi(a.parent);if(!o)break;if(Lc(jo(o),r))return wn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ri(n),wa(o)),!0;if(a===i&&!e.isStatic(a)&&Lc(_s(o).thisType,r))return wn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ri(n)),!0}a=a.parent}return!1})(E,n,o)||ii(E)||((t,r,n)=>{var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=Si(Yn(t,r,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Lc(_s(a),s))return wn(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return wn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1})(E,n,i)||((t,r)=>!(!oi(r)||274!==t.parent.kind||(wn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),0)))(E,n)||((t,r,n)=>{if(111551&n){if(oi(r))return wn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=Si(Yn(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=e.unescapeLeadingUnderscores(r);return(e=>{switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1})(r)?wn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,a):((t,r)=>{var n=e.findAncestor(t.parent,(t=>!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")));if(n&&1===n.members.length){var i=_s(r);return!!(1048576&i.flags)&&kb(i,384,!0)}return!1})(t,i)?wn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,a,"K"===a?"P":"K"):wn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,a),!0}}return!1})(E,n,i)||((t,r,n)=>{if(111127&n){if(Si(Yn(t,r,1024,void 0,void 0,!1)))return wn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n&&Si(Yn(t,r,1536,void 0,void 0,!1)))return wn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0;return!1})(E,n,i)||((t,r,n)=>{if(788584&n){var i=Si(Yn(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return wn(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1})(E,n,i)))){var U=void 0;if(l&&qr<10&&((null==(U=Ny(b,n,i))?void 0:U.valueDeclaration)&&e.isAmbientModule(U.valueDeclaration)&&e.isGlobalScopeAugmentation(U.valueDeclaration)&&(U=void 0),U)){var V=wa(U),K=vy(b,U,!1),W=Nn(E,1920===i||o&&"string"!=typeof o&&e.nodeIsSynthesized(o)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:K?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,ri(o),V);Fn(!K,W),U.valueDeclaration&&e.addRelatedInfo(W,e.createDiagnosticForNode(U.valueDeclaration,e.Diagnostics._0_is_declared_here,V))}if(!U&&o){var H=(t=>{for(var r=ri(t),n=e.getScriptTargetFeatures(),i=0,a=e.getOwnKeys(n);i<a.length;i++){var o=a[i],s=e.getOwnKeys(n[o]);if(void 0!==s&&e.contains(s,r))return o}})(o);H?wn(E,a,ri(o),H):wn(E,a,ri(o))}qr++}}function Zn(t,r,n){return r?e.addRelatedInfo(t,e.createDiagnosticForNode(r,274===r.kind?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,n)):t}function ei(t,r){return 213!==t.kind&&212!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||166===t.kind&&!e.isStatic(t))&&(!r||r!==t.name):!(r&&r===t.name||!t.asteriskToken&&!e.hasSyntacticModifier(t,256)&&e.getImmediatelyInvokedFunctionExpression(t))}function ti(e){switch(e.kind){case 255:case 256:case 257:case 259:case 258:case 260:return!0;default:return!1}}function ri(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function ni(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(162===a.kind&&(e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent)===r)return!(e.isJSDocTemplateTag(a.parent)&&e.find(a.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function ii(t){var r=ai(t);return!(!r||!Pi(r,64,!0)||(wn(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),0))}function ai(t){switch(t.kind){case 79:case 205:return t.parent?ai(t.parent):void 0;case 227:if(e.isEntityNameExpression(t.expression))return t.expression;default:return}}function oi(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function si(t,r,n){return!!r&&!!e.findAncestor(t,(t=>t===n||e.isFunctionLike(t)?"quit":t===r))}function ci(e){switch(e.kind){case 264:return e;case 266:return e.parent;case 267:return e.parent.parent;case 269:return e.parent.parent.parent;default:return}}function li(t){return t.declarations&&e.findLast(t.declarations,ui)}function ui(t){return 264===t.kind||263===t.kind||266===t.kind&&!!t.name||267===t.kind||273===t.kind||269===t.kind||274===t.kind||270===t.kind&&e.exportAssignmentIsAlias(t)||e.isBinaryExpression(t)&&2===e.getAssignmentDeclarationKind(t)&&e.exportAssignmentIsAlias(t)||e.isAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&di(t.parent.right)||295===t.kind||294===t.kind&&di(t.initializer)||e.isRequireVariableDeclaration(t)}function di(t){return e.isAliasableExpression(t)||e.isFunctionExpression(t)&&Av(t)}function pi(e,t,r,n){var i=e.exports.get("export="),a=i?Lc(jo(i),t):e.exports.get(t),o=Si(a,n);return Ti(r,a,o,!1),o}function _i(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasSyntacticModifier(t,512)||e.isExportSpecifier(t)}function fi(t){return e.isStringLiteralLike(t)?e.getModeForUsageLocation(e.getSourceFileOfNode(t),t):void 0}function mi(t){return fi(t)===e.ModuleKind.ESNext&&e.endsWith(t.text,".json")}function gi(t,r,n,i){var a=t&&fi(i);if(t&&void 0!==a){var o=((t,r)=>t===e.ModuleKind.ESNext&&r===e.ModuleKind.CommonJS)(a,t.impliedNodeFormat);if(a===e.ModuleKind.ESNext||o)return o}if(!K)return!1;if(!t||t.isDeclarationFile){var s=pi(r,"default",void 0,!0);return!(s&&e.some(s.declarations,_i)||pi(r,e.escapeLeadingUnderscores("__esModule"),void 0,n))}return e.isSourceFileJS(t)?!t.externalModuleIndicator&&!pi(r,e.escapeLeadingUnderscores("__esModule"),void 0,n):Vi(r)}function hi(t,r,n){var i,a;void 0===n&&(n=!1);var o=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,s=Oi(t,o),c=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(c)){var l=ji(s,o,!1,"default"===c.escapedText&&!(!j.allowSyntheticDefaultImports&&!e.getESModuleInterop(j)));if(l&&c.escapedText){if(e.isShorthandAmbientModuleSymbol(s))return s;var u=void 0;u=s&&s.exports&&s.exports.get("export=")?Lc(jo(l),c.escapedText,!0):((e,t)=>{if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Si(Lc(dp(r),t))}})(l,c.escapedText),u=Si(u,n);var d=((e,t,r,n)=>{if(1536&e.flags){var i=Hi(e).get(t.escapedText),a=Si(i,n);return Ti(r,i,a,!1),a}})(l,c,r,n);if(void 0===d&&"default"===c.escapedText){var p=null===(i=s.declarations)||void 0===i?void 0:i.find(e.isSourceFile);(mi(o)||gi(p,s,n,o))&&(d=Bi(s,n)||Si(s,n))}var _=d&&u&&d!==u?((t,r)=>{if(t===Te&&r===Te)return Te;if(790504&t.flags)return t;var n=Rn(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n})(u,d):d||u;if(!_){var f=Fi(s,t),m=e.declarationNameToString(c),g=wy(c,l);if(void 0!==g){var h=wa(g),y=wn(c,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,f,m,h);g.valueDeclaration&&e.addRelatedInfo(y,e.createDiagnosticForNode(g.valueDeclaration,e.Diagnostics._0_is_declared_here,h))}else(null===(a=s.exports)||void 0===a?void 0:a.has("default"))?wn(c,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,f,m):((t,r,n,i,a)=>{var o,s,c=null===(s=null===(o=i.valueDeclaration)||void 0===o?void 0:o.locals)||void 0===s?void 0:s.get(r.escapedText),l=i.exports;if(c){var u=null==l?void 0:l.get("export=");if(u)ta(u,c)?((t,r,n,i)=>{V>=e.ModuleKind.ES2015?wn(r,e.getESModuleInterop(j)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):e.isInJSFile(t)?wn(r,e.getESModuleInterop(j)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):wn(r,e.getESModuleInterop(j)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)})(t,r,n,a):wn(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n);else{var d=l?e.find(Yc(l),(e=>!!ta(e,c))):void 0,p=d?wn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,a,n,wa(d)):wn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,a,n);c.declarations&&e.addRelatedInfo.apply(void 0,Il([p],e.map(c.declarations,((t,r)=>e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,n))),!1))}}else wn(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n)})(t,c,m,s,f)}return _}}}function yi(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function vi(e,t,r){var n=e.parent.parent.moduleSpecifier?hi(e.parent.parent,e,r):Pi(e.propertyName||e.name,t,!1,r);return Ti(e,void 0,n,!1),n}function bi(t,r){return e.isClassExpression(t)?Ub(t).symbol:e.isEntityName(t)||e.isEntityNameExpression(t)?Pi(t,901119,!0,r)||(Ub(t),Jn(t).resolvedSymbol):void 0}function xi(t,r){switch(void 0===r&&(r=!1),t.kind){case 264:case 253:return((t,r)=>{var n=yi(t);if(n){var i=e.getLeftmostAccessExpression(n.expression).arguments[0];return e.isIdentifier(n.name)?Si(Lc(ll(i),n.name.escapedText)):void 0}if(e.isVariableDeclaration(t)||276===t.moduleReference.kind){var a=Oi(t,e.getExternalModuleRequireArgument(t)||e.getExternalModuleImportEqualsDeclarationExpression(t)),o=Bi(a);return Ti(t,a,o,!1),o}var s=wi(t.moduleReference,r);return((t,r)=>{if(Ti(t,void 0,r,!1)&&!t.isTypeOnly){var n=ki(Xi(t)),i=274===n.kind,a=i?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,s=e.unescapeLeadingUnderscores(n.name.escapedText);e.addRelatedInfo(wn(t.moduleReference,a),e.createDiagnosticForNode(n,o,s))}})(t,s),s})(t,r);case 266:return((t,r)=>{var n,i=Oi(t,t.parent.moduleSpecifier);if(i){var a;a=e.isShorthandAmbientModuleSymbol(i)?i:pi(i,"default",t,r);var o=null===(n=i.declarations)||void 0===n?void 0:n.find(e.isSourceFile),s=mi(t.parent.moduleSpecifier),c=gi(o,i,r,t.parent.moduleSpecifier);if(a||c||s){if(c||s){var l=Bi(i,r)||Si(i,r);return Ti(t,i,l,!1),l}}else if(Vi(i)){var u=V>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",d=i.exports.get("export=").valueDeclaration,p=wn(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,wa(i),u);d&&e.addRelatedInfo(p,e.createDiagnosticForNode(d,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,u))}else!((t,r)=>{var n,i,a;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))wn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,wa(t),wa(r.symbol));else{var o=wn(r.name,e.Diagnostics.Module_0_has_no_default_export,wa(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((t=>{var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=Oi(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}})(i,t);return Ti(t,a,void 0,!1),a}})(t,r);case 267:return((e,t)=>{var r=e.parent.parent.moduleSpecifier,n=Oi(e,r),i=ji(n,r,t,!1);return Ti(e,n,i,!1),i})(t,r);case 273:return((e,t)=>{var r=e.parent.moduleSpecifier,n=r&&Oi(e,r),i=r&&ji(n,r,t,!1);return Ti(e,n,i,!1),i})(t,r);case 269:case 202:return((t,r)=>{var n=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,i=yi(n),a=hi(n,i||t,r),o=t.propertyName||t.name;return i&&a&&e.isIdentifier(o)?Si(Lc(jo(a),o.escapedText),r):(Ti(t,void 0,a,!1),a)})(t,r);case 274:return vi(t,901119,r);case 270:case 220:return((t,r)=>{var n=bi(e.isExportAssignment(t)?t.expression:t.right,r);return Ti(t,void 0,n,!1),n})(t,r);case 263:return((e,t)=>{var r=Bi(e.parent.symbol,t);return Ti(e,void 0,r,!1),r})(t,r);case 295:return Pi(t.name,901119,!0,r);case 294:return((e,t)=>bi(e.initializer,t))(t,r);case 206:case 205:return((t,r)=>{if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return bi(t.parent.right,r)})(t,r);default:return e.Debug.fail()}}function Ei(e,t){return void 0===t&&(t=901119),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Si(e,t){return!t&&Ei(e)?Di(e):e}function Di(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Hn(t);if(r.target)r.target===Ce&&(r.target=Te);else{r.target=Ce;var n=li(t);if(!n)return e.Debug.fail();var i=xi(n);r.target===Ce?r.target=i||Te:wn(n,e.Diagnostics.Circular_definition_of_import_alias_0,wa(t))}return r.target}function Ti(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=Xi(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return Hn(a).typeOnlyDeclaration=t,!0;var o=Hn(a);return Ci(o,r,i)||Ci(o,n,i)}function Ci(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:Hn(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function ki(e){if(2097152&e.flags)return Hn(e).typeOnlyDeclaration||void 0}function Ai(e){var t=Xi(e),r=Di(t);r&&(r===Te||111551&r.flags&&!QS(r)&&!ki(t))&&Ni(t)}function Ni(t){var r=Hn(t);if(!r.referenced){r.referenced=!0;var n=li(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=Si(t);(i===Te||111551&i.flags)&&Ub(n.moduleReference)}}}function wi(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||160===t.parent.kind?Pi(t,1920,!1,r):(e.Debug.assert(264===t.parent.kind),Pi(t,901119,!1,r))}function Fi(e,t){return e.parent?Fi(e.parent,t)+"."+wa(e):wa(e,t,void 0,20)}function Pi(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(79===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:xm(e.getFirstIdentifier(t)),l=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?((t,r)=>{if(eu(t.parent)){var n=(t=>{if(!e.findAncestor(t,(t=>e.isJSDocNode(t)||4194304&t.flags?e.isJSDocTypeAlias(t):"quit"))){var r=e.getJSDocHost(t);if(r&&e.isExpressionStatement(r)&&e.isBinaryExpression(r.expression)&&3===e.getAssignmentDeclarationKind(r.expression)&&(n=Xi(r.expression.left)))return Ii(n);if(r&&(e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)&&(n=Xi(r.parent.parent.left)))return Ii(n);var n,i=e.getEffectiveJSDocHost(t);if(i&&e.isFunctionLike(i))return(n=Xi(i))&&n.valueDeclaration}})(t.parent);if(n)return Yn(n,t.escapedText,r,void 0,t,!0)}})(t,r):void 0;if(!(o=qi(Yn(a||t,t.escapedText,r,n||l?void 0:c,t,!0,!1))))return qi(l)}else{if(160!==t.kind&&205!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var u=160===t.kind?t.left:t.expression,d=160===t.kind?t.right:t.name,p=Pi(u,s,n,!1,a);if(!p||e.nodeIsMissing(d))return;if(p===Te)return p;if(p.valueDeclaration&&e.isInJSFile(p.valueDeclaration)&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&Lv(p.valueDeclaration.initializer)){var _=p.valueDeclaration.initializer.arguments[0],f=Oi(_,_);if(f){var m=Bi(f);m&&(p=m)}}if(!(o=qi(Gn(Hi(p),d.escapedText,r)))){if(!n){var g=Fi(p),h=e.declarationNameToString(d),y=wy(d,p);if(y)return void wn(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,h,wa(y));var v=e.isQualifiedName(t)&&(t=>{for(;e.isQualifiedName(t.parent);)t=t.parent;return t})(t);if(At&&788968&r&&v&&!e.isTypeOfExpression(v.parent)&&(t=>{var r=e.getFirstIdentifier(t),n=Yn(r,r.escapedText,111551,void 0,r,!0);if(n){for(;e.isQualifiedName(r.parent);){if(!(n=Lc(jo(n),r.parent.right.escapedText)))return;r=r.parent}return n}})(v))return void wn(v,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(v));if(1920&r&&e.isQualifiedName(t.parent)){var b=qi(Gn(Hi(p),d.escapedText,788968));if(b)return void wn(t.parent.right,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,wa(b),e.unescapeLeadingUnderscores(t.parent.right.escapedText))}wn(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,g,h)}return}}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||270===t.parent.kind)&&Ti(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Di(o)}}function Ii(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function Oi(t,r,n){var i=e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return Mi(t,r,n?void 0:i)}function Mi(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?Ri(t,r.text,n,r,i):void 0}function Ri(r,n,i,a,o){var s,c,l,u,d,p,_;void 0===o&&(o=!1),e.startsWith(n,"@types/")&&wn(a,k=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var f=Zc(n,!0);if(f)return f;var m=e.getSourceFileOfNode(r),g=e.isStringLiteralLike(r)?r:(null===(s=e.findAncestor(r,e.isImportCall))||void 0===s?void 0:s.arguments[0])||(null===(c=e.findAncestor(r,e.isImportDeclaration))||void 0===c?void 0:c.moduleSpecifier)||(null===(l=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))||void 0===l?void 0:l.moduleReference.expression)||(null===(u=e.findAncestor(r,e.isExportDeclaration))||void 0===u?void 0:u.moduleSpecifier)||(null===(d=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)||void 0===d?void 0:d.name)||(null===(p=e.isLiteralImportTypeNode(r)?r:void 0)||void 0===p?void 0:p.argument.literal),h=g&&e.isStringLiteralLike(g)?e.getModeForUsageLocation(m,g):m.impliedNodeFormat,y=e.getResolvedModule(m,n,h),v=y&&e.getResolutionDiagnostic(j,y),b=y&&!v&&t.getSourceFile(y.resolvedFileName);if(b){if(b.symbol)return y.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(y.extension)&&Li(!1,a,y,n),(e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.NodeNext)&&((m.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration))&&b.impliedNodeFormat===e.ModuleKind.ESNext&&wn(a,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead,n),h===e.ModuleKind.ESNext&&j.resolveJsonModule&&".json"===y.extension&&wn(a,e.Diagnostics.JSON_imports_are_experimental_in_ES_module_mode_imports)),qi(b.symbol);i&&wn(a,e.Diagnostics.File_0_is_not_a_module,b.fileName)}else{if(Ct){var x=e.findBestPatternMatch(Ct,(e=>e.pattern),n);if(x)return qi(kt&&kt.get(n)||x.symbol)}if(y&&!e.resolutionExtensionIsTSOrJson(y.extension)&&void 0===v||v===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?wn(a,k=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,y.resolvedFileName):Li(G&&!!i,a,y,n);else if(i){if(y){var E=t.getProjectReferenceRedirect(y.resolvedFileName);if(E)return void wn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,E,y.resolvedFileName)}if(v)wn(a,v,n,y.resolvedFileName);else{var S=e.tryExtractTSExtension(n),D=e.pathIsRelative(n)&&!e.hasExtension(n),T=e.getEmitModuleResolutionKind(j),C=T===e.ModuleResolutionKind.Node12||T===e.ModuleResolutionKind.NodeNext;if(S){var k=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,A=e.removeExtension(n,S);V>=e.ModuleKind.ES2015&&(A+=".mts"===S?".mjs":".cts"===S?".cjs":".js"),wn(a,k,S,A)}else if(!j.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(j))wn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(h===e.ModuleKind.ESNext&&C&&D){var N=e.getNormalizedAbsolutePath(n,e.getDirectoryPath(m.path)),w=null===(_=Dn.find((e=>{var r=e[0];return t.fileExists(N+r)})))||void 0===_?void 0:_[1];w?wn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0,n+w):wn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else wn(a,i,n)}}}}function Li(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,d().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):(e=>!!d().get(e))(o.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o.name,i):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;Pn(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function Bi(t,r){if(null==t?void 0:t.exports){var n=((t,r)=>{if(!t||t===Te||t===r||1===r.exports.size||2097152&t.flags)return t;var n=Hn(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:jn(t);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),r.exports.forEach(((e,t)=>{"export="!==t&&i.exports.set(t,i.exports.has(t)?Un(i.exports.get(t),e):e)})),Hn(i).cjsExportMerged=i,n.cjsExportMerged=i})(qi(Si(t.exports.get("export="),r)),qi(t));return qi(n)||t}}function ji(t,r,n,i){var a=Bi(t,n);if(!n&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,303))){var o=V>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return wn(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,o),a}var s=r.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=e.isImportCall(s)?s.arguments[0]:s.moduleSpecifier,l=jo(a),u=Mv(l,a,t,c);if(u)return Ui(a,u,s);if(e.getESModuleInterop(j)){var d=Bc(l,0);if(d&&d.length||(d=Bc(l,1)),d&&d.length||Lc(l,"default"))return Ui(a,Rv(l,a,t,c),s)}}}return a}function Ui(t,r,n){var i=Rn(t.flags,t.escapedName);i.declarations=t.declarations?t.declarations.slice():[],i.parent=t.parent,i.target=t,i.originatingImport=n,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var a=uc(r);return i.type=fa(i,a.members,e.emptyArray,e.emptyArray,a.indexInfos),i}function Vi(e){return void 0!==e.exports.get("export=")}function zi(e){return Yc(Ji(e))}function Ki(e,t){var r=Ji(t);if(r)return r.get(e)}function Wi(t){return!(131068&t.flags||1&e.getObjectFlags(t)||W_(t)||uf(t))}function Hi(e){return 6256&e.flags?ws(e,"resolvedExports"):1536&e.flags?Ji(e):e.exports||D}function Ji(e){var t=Hn(e);return t.resolvedExports||(t.resolvedExports=Gi(e))}function $i(t,r,n,i){r&&r.forEach(((r,a)=>{if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Si(o)!==Si(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}))}function Gi(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,l=a.declarations;c<l.length;c++){var u=l[c];$i(o,t(Oi(u,u.moduleSpecifier)),s,u)}s.forEach(((t,r)=>{var n=t.exportsWithDuplicate;if("export="!==r&&n&&n.length&&!i.has(r))for(var a=0,o=n;a<o.length;a++){var c=o[a];_n.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(r).specifierText,e.unescapeLeadingUnderscores(r)))}})),$i(i,o)}return i}}(t=Bi(t))||D}function qi(e){var t;return e&&e.mergeId&&(t=Xr[e.mergeId])?t:e}function Xi(e){return qi(e.symbol&&Ps(e.symbol))}function Yi(e){return qi(e.parent&&Ps(e.parent))}function Qi(r,n,i){var a=Yi(r);if(a&&!(262144&r.flags)){var o=e.mapDefined(a.declarations,(e=>a&&Zi(e,a))),s=n&&((r,n)=>{var i,a=e.getSourceFileOfNode(n),o=F(a),s=Hn(r);if(s.extendedContainersByFile&&(i=s.extendedContainersByFile.get(o)))return i;if(a&&a.imports){for(var c=0,l=a.imports;c<l.length;c++){var u=l[c];if(!e.nodeIsSynthesized(u)){var d=Oi(n,u,!0);d&&ea(d,r)&&(i=e.append(i,d))}}if(e.length(i))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,i),i}if(s.extendedContainers)return s.extendedContainers;for(var p=0,_=t.getSourceFiles();p<_.length;p++){var f=_[p];if(e.isExternalModule(f)){var m=Xi(f);ea(m,r)&&(i=e.append(i,m))}}return s.extendedContainers=i||e.emptyArray})(r,n),c=((t,r)=>{var n=!!e.length(t.declarations)&&e.first(t.declarations);if(111551&r&&n&&n.parent&&e.isVariableDeclaration(n.parent)&&(e.isObjectLiteralExpression(n)&&n===n.parent.initializer||e.isTypeLiteralNode(n)&&n===n.parent.type))return Xi(n.parent)})(a,i);if(n&&a.flags&ga(i)&&ha(a,n,1920,!1))return e.append(e.concatenate(e.concatenate([a],o),s),c);var l=!(a.flags&ga(i))&&788968&a.flags&&524288&_s(a).flags&&111551===i?ma(n,(t=>e.forEachEntry(t,(e=>{if(e.flags&ga(i)&&jo(e)===_s(a))return e})))):void 0,u=Il(Il(l?[l]:[],o,!0),[a],!1);return u=e.append(u,c),e.addRange(u,s)}var d=e.mapDefined(r.declarations,(t=>!e.isAmbientModule(t)&&t.parent&&ka(t.parent)?Xi(t.parent):e.isClassExpression(t)&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&e.isAccessExpression(t.parent.left)&&e.isEntityNameExpression(t.parent.left.expression)?e.isModuleExportsAccessExpression(t.parent.left)||e.isExportsIdentifier(t.parent.left.expression)?Xi(e.getSourceFileOfNode(t)):(Ub(t.parent.left.expression),Jn(t.parent.left.expression).resolvedSymbol):void 0));if(e.length(d))return e.mapDefined(d,(e=>ea(e,r)?e:void 0))}function Zi(e,t){var r=Ta(e),n=r&&r.exports&&r.exports.get("export=");return n&&ta(n,t)?r:void 0}function ea(t,r){if(t===Yi(r))return r;var n=t.exports&&t.exports.get("export=");if(n&&ta(n,r))return t;var i=Hi(t),a=i.get(r.escapedName);return a&&ta(a,r)?a:e.forEachEntry(i,(e=>{if(ta(e,r))return e}))}function ta(e,t){if(qi(Si(qi(e)))===qi(Si(qi(t))))return e}function ra(e){return qi(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function na(e){return!!(111551&e.flags||2097152&e.flags&&111551&Di(e).flags&&!ki(e))}function ia(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(170===i.kind&&e.nodeIsPresent(i.body))return i}}function aa(t){var n=new _(le,t);return m++,n.id=m,r&&(null===e.tracing||void 0===e.tracing||e.tracing.recordType(n)),n}function oa(e){return new _(le,e)}function sa(e,t,r){void 0===r&&(r=0);var n=aa(e);return n.intrinsicName=t,n.objectFlags=r,n}function ca(e,t){var r=aa(524288);return r.objectFlags=e,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.indexInfos=void 0,r}function la(e){var t=aa(262144);return e&&(t.symbol=e),t}function ua(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function da(t){var r;return t.forEach(((e,t)=>{pa(e,t)&&(r||(r=[])).push(e)})),r||e.emptyArray}function pa(e,t){return!ua(t)&&na(e)}function _a(t,r,n,i,a){var o=t;return o.members=r,o.properties=e.emptyArray,o.callSignatures=n,o.constructSignatures=i,o.indexInfos=a,r!==D&&(o.properties=da(r)),o}function fa(e,t,r,n,i){return _a(ca(16,e),t,r,n,i)}function ma(t,r){for(var n,i=t=>{if(t.locals&&!$n(t)&&(n=r(t.locals,void 0,!0,t)))return{value:n};switch(t.kind){case 303:if(!e.isExternalOrCommonJsModule(t))break;case 260:var i=Xi(t);if(n=r((null==i?void 0:i.exports)||D,void 0,!0,t))return{value:n};break;case 256:case 225:case 257:var a;if((Xi(t).members||D).forEach(((t,r)=>{788968&t.flags&&(a||(a=e.createSymbolTable())).set(r,t)})),a&&(n=r(a,void 0,!1,t)))return{value:n}}},a=t;a;a=a.parent){var o=i(a);if("object"==typeof o)return o.value}return r(ne,void 0,!0)}function ga(e){return 111551===e?111551:1920}function ha(t,r,n,i,a){if(void 0===a&&(a=new e.Map),t&&!(e=>{if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++)switch(r[t].kind){case 166:case 168:case 171:case 172:continue;default:return!1}return!0}return!1})(t)){var o=Hn(t),s=o.accessibleChainCache||(o.accessibleChainCache=new e.Map),c=ma(r,((e,t,r,n)=>n)),l="".concat(i?0:1,"|").concat(c&&F(c),"|").concat(n);if(s.has(l))return s.get(l);var u=P(t),d=a.get(u);d||a.set(u,d=[]);var p=ma(r,_);return s.set(l,p),p}function _(n,a,o){if(e.pushIfUnique(d,n)){var s=((n,a,o)=>m(n.get(t.escapedName),void 0,a)?[t]:e.forEachEntry(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(e.isUMDExportSymbol(n)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(n.declarations,e.isExternalModuleImportEqualsDeclaration))&&(!o||!e.some(n.declarations,e.isNamespaceReexportDeclaration))&&(a||!e.getDeclarationOfKind(n,274))){var s=g(n,Di(n),a);if(s)return s}if(n.escapedName===t.escapedName&&n.exportSymbol&&m(qi(n.exportSymbol),void 0,a))return[t]}))||(n===ne?g(ae,ae,a):void 0))(n,a,o);return d.pop(),s}}function f(e,t){return!ya(e,r,t)||!!ha(e.parent,r,ga(t),i,a)}function m(r,i,a){return(t===(i||r)||qi(t)===qi(i||r))&&!e.some(r.declarations,ka)&&(a||f(qi(r),n))}function g(e,t,r){if(m(e,t,r))return[e];var i=Hi(t),a=i&&_(i,!0);return a&&f(e,ga(n))?[e].concat(a):void 0}}function ya(t,r,n){var i=!1;return ma(r,(r=>{var a=qi(r.get(t.escapedName));return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,274)?Di(a):a).flags&n)&&(i=!0,!0))})),i}function va(e,t){return 0===Da(e,t,788968,!1,!0).accessibility}function ba(e,t){return 0===Da(e,t,111551,!1,!0).accessibility}function xa(e,t,r){return 0===Da(e,t,r,!1,!1).accessibility}function Ea(t,r,n,i,a,o){if(e.length(t)){for(var s,c=!1,l=0,u=t;l<u.length;l++){var d=u[l],p=ha(d,r,i,!1);if(p){s=d;var _=Aa(p[0],a);if(_)return _}if(o&&e.some(d.declarations,ka)){if(a){c=!0;continue}return{accessibility:0}}var f=Ea(Qi(d,r,i),r,n,n===d?ga(i):i,a,o);if(f)return f}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:wa(n,r,i),errorModuleName:s!==n?wa(s,r,1920):void 0}:void 0}}function Sa(e,t,r,n){return Da(e,t,r,n,!0)}function Da(t,r,n,i,a){if(t&&r){var o=Ea([t],r,t,n,i,a);if(o)return o;var s=e.forEach(t.declarations,Ta);return s&&s!==Ta(r)?{accessibility:2,errorSymbolName:wa(t,r,n),errorModuleName:wa(s),errorNode:e.isInJSFile(r)?r:void 0}:{accessibility:1,errorSymbolName:wa(t,r,n)}}return{accessibility:0}}function Ta(t){var r=e.findAncestor(t,Ca);return r&&Xi(r)}function Ca(t){return e.isAmbientModule(t)||303===t.kind&&e.isExternalOrCommonJsModule(t)}function ka(t){return e.isModuleWithStringLiteralName(t)||303===t.kind&&e.isExternalOrCommonJsModule(t)}function Aa(t,r){var n;if(e.every(e.filter(t.declarations,(e=>79!==e.kind)),(r=>{var n,a;if(!Wa(r)){var o=ci(r);return o&&!e.hasSyntacticModifier(o,1)&&Wa(o.parent)?i(r,o):e.isVariableDeclaration(r)&&e.isVariableStatement(r.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent,1)&&Wa(r.parent.parent.parent)?i(r,r.parent.parent):e.isLateVisibilityPaintedStatement(r)&&!e.hasSyntacticModifier(r,1)&&Wa(r.parent)?i(r,r):!!(2097152&t.flags&&e.isBindingElement(r)&&e.isInJSFile(r)&&(null===(n=r.parent)||void 0===n?void 0:n.parent)&&e.isVariableDeclaration(r.parent.parent)&&(null===(a=r.parent.parent.parent)||void 0===a?void 0:a.parent)&&e.isVariableStatement(r.parent.parent.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent.parent.parent,1)&&r.parent.parent.parent.parent.parent&&Wa(r.parent.parent.parent.parent.parent))&&i(r,r.parent.parent.parent.parent)}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(Jn(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function Na(t,r){var n;n=180===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||161===t.parent.kind?1160127:160===t.kind||205===t.kind||264===t.parent.kind?1920:788968;var i=e.getFirstIdentifier(t),a=Yn(r,i.escapedText,n,void 0,void 0,!1);return a&&262144&a.flags&&788968&n?{accessibility:0}:a&&Aa(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function wa(t,r,n,i,a){void 0===i&&(i=4);var o=70221824;2&i&&(o|=128),1&i&&(o|=512),8&i&&(o|=16384),16&i&&(o|=134217728);var s=4&i?re.symbolToExpression:re.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,n,r,o),c=303===(null==r?void 0:r.kind)?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),l=r&&e.getSourceFileOfNode(r);return c.writeNode(4,a,l,i),i}}function Fa(t,r,n,i,a){return void 0===n&&(n=0),a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o;o=262144&n?1===i?179:178:1===i?174:173;var s=re.signatureToSignatureDeclaration(t,o,r,70222336|Ra(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),l=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,l,e.getTrailingSemicolonDeferringWriter(a)),a}}function Pa(t,r,n,i){void 0===n&&(n=1064960),void 0===i&&(i=e.createTextWriter(""));var a=j.noErrorTruncation||1&n,o=re.typeToTypeNode(t,r,70221824|Ra(n)|(a?1:0),i);if(void 0===o)return e.Debug.fail("should always get typenode");var s={removeComments:t!==Ie},c=e.createPrinter(s),l=r&&e.getSourceFileOfNode(r);c.writeNode(4,o,l,i);var u=i.getText(),d=a?2*e.noTruncationMaximumTruncationLength:2*e.defaultMaximumTruncationLength;return d&&u&&u.length>=d?u.substr(0,d-"...".length)+"...":u}function Ia(e,t){var r=Ma(e.symbol)?Pa(e,e.symbol.valueDeclaration):Pa(e),n=Ma(t.symbol)?Pa(t,t.symbol.valueDeclaration):Pa(t);return r===n&&(r=Oa(e),n=Oa(t)),[r,n]}function Oa(e){return Pa(e,void 0,64)}function Ma(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!Vp(t.valueDeclaration)}function Ra(e){return void 0===e&&(e=0),814775659&e}function La(t){return!!(t.symbol&&32&t.symbol.flags&&(t===is(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function Ba(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(128):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&re.typeToTypeNode(t.type,r,70222336|Ra(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function ja(e){return 8===e?"private":16===e?"protected":"public"}function Ua(t){return t&&t.parent&&261===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function Va(t){return 303===t.kind||e.isAmbientModule(t)}function za(t,r){var n=Hn(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,e.getEmitScriptTarget(j))||Ch(i)?Ch(i)&&e.startsWith(i,"-")?"[".concat(i,"]"):i:'"'.concat(e.escapeString(i,34),'"')}if(8192&n.flags)return"[".concat(Ka(n.symbol,r),"]")}}function Ka(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],Va)!==e.findAncestor(r.enclosingDeclaration,Va)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(t=>e.getNameOfDeclaration(t)?t:void 0)),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=Hn(t).nameType;if(a&&384&a.flags){var o=za(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&253===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 225:case 212:case 213:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),225===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=za(t,r);return void 0!==s?s:e.symbolName(t)}function Wa(t){if(t){var r=Jn(t);return void 0===r.isVisible&&(r.isVisible=!!(()=>{switch(t.kind){case 336:case 343:case 337:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 202:return Wa(t.parent.parent);case 253:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 260:case 256:case 257:case 258:case 255:case 259:case 264:if(e.isExternalModuleAugmentation(t))return!0;var r=Xa(t);return 1&e.getCombinedModifierFlags(t)||264!==t.kind&&303!==r.kind&&8388608&r.flags?Wa(r):$n(r);case 166:case 165:case 171:case 172:case 168:case 167:if(e.hasEffectiveModifier(t,24))return!1;case 170:case 174:case 173:case 175:case 163:case 261:case 178:case 179:case 181:case 177:case 182:case 183:case 186:case 187:case 190:case 196:return Wa(t.parent);case 266:case 267:case 269:return!1;case 162:case 303:case 263:return!0;case 270:default:return!1}})()),r.isVisible}return!1}function Ha(t,r){var n,i,a;return t.parent&&270===t.parent.kind?n=Yn(t,t.escapedText,2998271,void 0,t,!1):274===t.parent.kind&&(n=vi(t.parent,2998271)),n&&((a=new e.Set).add(P(n)),function t(n){e.forEach(n,(n=>{var o=ci(n)||n;if(r?Jn(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=Yn(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,P(c))&&t(c.declarations)}}))}(n.declarations)),i}function Ja(e,t){var r=$a(e,t);if(r>=0){for(var n=Jr.length,i=r;i<n;i++)$r[i]=!1;return!1}return Jr.push(e),$r.push(!0),Gr.push(t),!0}function $a(e,t){for(var r=Jr.length-1;r>=0;r--){if(Ga(Jr[r],Gr[r]))return-1;if(Jr[r]===e&&Gr[r]===t)return r}return-1}function Ga(t,r){switch(r){case 0:return!!Hn(t).type;case 5:return!!Jn(t).resolvedEnumType;case 2:return!!Hn(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved}return e.Debug.assertNever(r)}function qa(){return Jr.pop(),Gr.pop(),$r.pop()}function Xa(t){return e.findAncestor(e.getRootDeclaration(t),(e=>{switch(e.kind){case 253:case 254:case 269:case 268:case 267:case 266:return!1;default:return!0}})).parent}function Ya(e,t){var r=Lc(e,t);return r?jo(r):void 0}function Qa(e){return e&&0!=(1&e.flags)}function Za(e){return e===Pe||!!(1&e.flags&&e.aliasSymbol)}function eo(e){var t=Xi(e);return t&&Hn(t).type||_o(e,!1)}function to(t,r,n){if(131072&(t=ag(t,(e=>!(98304&e.flags)))).flags)return _t;if(1048576&t.flags)return cg(t,(e=>to(e,r,n)));var i=Hu(e.map(r,id));if(bd(t)||xd(i)){if(131072&i.flags)return t;var a=(pr||(pr=lu("Omit",2,!0)||Te),pr===Te?void 0:pr);return a?Wl(a,[t,i]):Pe}for(var o=e.createSymbolTable(),s=0,c=fc(t);s<c.length;s++){var l=c[s];Xp(ad(l,8576),i)||24&e.getDeclarationModifierFlagsFromSymbol(l)||!Yd(l)||o.set(l.escapedName,Qd(l,!1))}var u=fa(n,o,e.emptyArray,e.emptyArray,Wc(t));return u.objectFlags|=8388608,u}function ro(e){return!!(465829888&e.flags)&&Tb(xc(e)||Re,32768)}function no(e){return jm(ng(e,ro)?cg(e,(e=>465829888&e.flags?Ec(e):e)):e,524288)}function io(e,t){var r=ao(e);return r?wg(r,t):t}function ao(t){var r=(e=>{var t=e.parent.parent;switch(t.kind){case 202:case 294:return ao(t);case 203:return ao(e.parent);case 253:return t.initializer;case 220:return t.right}})(t);if(r&&r.flowNode){var n=oo(t);if(n){var i=e.setTextRange(e.parseNodeFactory.createStringLiteral(n),t),a=e.isLeftHandSideExpression(r)?r:e.parseNodeFactory.createParenthesizedExpression(r),o=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(a,i),t);return e.setParent(i,o),e.setParent(o,t),a!==r&&e.setParent(a,o),o.flowNode=r.flowNode,o}}}function oo(e){var t=e.parent;return 202===e.kind&&200===t.kind?so(e.propertyName||e.name):294===e.kind||295===e.kind?so(e.name):""+t.elements.indexOf(e)}function so(e){var t=id(e);return 384&t.flags?""+t.value:void 0}function co(t){var r,n=t.parent,i=eo(n.parent);if(!i||Qa(i))return i;if(W&&8388608&t.flags&&e.isParameterDeclaration(t)?i=Ef(i):!W||!n.parent.initializer||65536&Bm(Gm(n.parent.initializer))||(i=jm(i,524288)),200===n.kind)if(t.dotDotDotToken){if(2&(i=Pc(i)).flags||!Fh(i))return wn(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Pe;for(var a=[],o=0,s=n.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||a.push(c.propertyName||c.name)}r=to(i,a,t.symbol)}else{var l=t.propertyName||t.name;r=io(t,Ad(i,id(l),32,l))}else{var u=yE(65|(t.dotDotDotToken?0:128),i,Be,n),d=n.elements.indexOf(t);r=t.dotDotDotToken?ig(i,uf)?cg(i,(e=>Ou(e,d))):Du(u):G_(i)?io(t,wd(i,ip(d),32|(Eh(t)?16:0),t.name)||Pe):u}return t.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?!W||32768&hf(zb(t))?r:no(r):Kb(t,Hu([no(r),zb(t)],2)):r}function lo(t){var r=e.getJSDocType(t);if(r)return dp(r)}function uo(t){var r=e.skipParentheses(t,!0);return 203===r.kind&&0===r.elements.length}function po(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),W&&r?xf(e,t):e}function _o(t,r){if(e.isVariableDeclaration(t)&&242===t.parent.parent.kind){var n=sd(ay(ix(t.parent.parent.expression)));return 4456448&n.flags?cd(n):We}if(e.isVariableDeclaration(t)&&243===t.parent.parent.kind)return hE(t.parent.parent)||Ne;if(e.isBindingPattern(t.parent))return co(t);var i,a,o=e.isPropertyDeclaration(t)||e.isPropertySignature(t),s=r&&(o&&!!t.questionToken||e.isParameter(t)&&(!!t.questionToken||Qc(t))||tl(t)),c=No(t);if(c)return po(c,o,s);if((G||e.isInJSFile(t))&&e.isVariableDeclaration(t)&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(8388608&t.flags)){if(!(2&e.getCombinedNodeFlags(t)||t.initializer&&(i=t.initializer,a=e.skipParentheses(i,!0),104!==a.kind&&(79!==a.kind||Em(a)!==ie))))return we;if(t.initializer&&uo(t.initializer))return Ut}if(e.isParameter(t)){var l=t.parent;if(172===l.kind&&ks(l)){var u=e.getDeclarationOfKind(Xi(t.parent),171);if(u){var d=al(u),p=BD(l);return p&&t===p?(e.Debug.assert(!p.type),jo(d.thisParameter)):_l(d)}}if(e.isInJSFile(t)){var _=e.getJSDocType(l);if(_&&e.isFunctionTypeNode(_)){var f=al(_),m=l.parameters.indexOf(t);return t.dotDotDotToken?Xv(f,m):Gv(f,m)}}if(y="this"===t.symbol.escapedName?Yg(l):Qg(t))return po(y,!1,s)}if(e.hasOnlyExpressionInitializer(t)&&t.initializer){if(e.isInJSFile(t)&&!e.isParameter(t)){var g=bo(t,Xi(t),e.getDeclaredExpandoInitializer(t));if(g)return g}return po(y=Kb(t,zb(t)),o,s)}if(e.isPropertyDeclaration(t)&&(G||e.isInJSFile(t))){if(e.hasStaticModifier(t)){var h=e.filter(t.parent.members,e.isClassStaticBlockDeclaration);return(y=h.length?((t,r)=>{for(var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=0,a=r;i<a.length;i++){var o=a[i],s=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(s.expression,s),e.setParent(s,o),s.flowNode=o.returnFlowNode;var c=yo(s,t);if(!G||c!==we&&c!==Ut||wn(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,wa(t),Pa(c)),!ig(c,iy))return sE(c)}})(t.symbol,h):2&e.getEffectiveModifierFlags(t)?L_(t.symbol):void 0)&&po(y,!0,s)}var y,v=ia(t.parent);return(y=v?ho(t.symbol,v):2&e.getEffectiveModifierFlags(t)?L_(t.symbol):void 0)&&po(y,!0,s)}return e.isJsxAttribute(t)?qe:e.isBindingPattern(t.name)?To(t.name,!1,!0):void 0}function fo(t){if(t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration)){var r=Hn(t);return void 0===r.isConstructorDeclaredProperty&&(r.isConstructorDeclaredProperty=!1,r.isConstructorDeclaredProperty=!!go(t)&&e.every(t.declarations,(r=>e.isBinaryExpression(r)&&ah(r)&&(206!==r.left.kind||e.isStringOrNumericLiteralLike(r.left.argumentExpression))&&!xo(void 0,r,t,r)))),r.isConstructorDeclaredProperty}return!1}function mo(t){var r=t.valueDeclaration;return r&&e.isPropertyDeclaration(r)&&!e.getEffectiveTypeAnnotationNode(r)&&!r.initializer&&(G||e.isInJSFile(r))}function go(t){if(t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=e.getThisContainer(i,!1);if(a&&(170===a.kind||Av(a)))return a}}function ho(t,r){var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(i.expression,i),e.setParent(i,r),i.flowNode=r.returnFlowNode;var a=yo(i,t);return!G||a!==we&&a!==Ut||wn(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,wa(t),Pa(a)),ig(a,iy)?void 0:sE(a)}function yo(t,r){var n=(null==r?void 0:r.valueDeclaration)&&(!mo(r)||2&e.getEffectiveModifierFlags(r.valueDeclaration))&&L_(r)||Be;return wg(t,we,n)}function vo(t,r){var n,i=e.getAssignedExpandoInitializer(t.valueDeclaration);if(i){var a=e.getJSDocTypeTag(i);return a&&a.typeExpression?dp(a.typeExpression):t.valueDeclaration&&bo(t.valueDeclaration,t,i)||of(Ub(i))}var o=!1,s=!1;if(fo(t)&&(n=ho(t,go(t))),!n){var c=void 0;if(t.declarations){for(var l=void 0,u=0,d=t.declarations;u<d.length;u++){var p=d[u],_=e.isBinaryExpression(p)||e.isCallExpression(p)?p:e.isAccessExpression(p)?e.isBinaryExpression(p.parent)?p.parent:p:void 0;if(_){var f=e.isAccessExpression(_)?e.getAssignmentDeclarationPropertyAccessKind(_):e.getAssignmentDeclarationKind(_);(4===f||e.isBinaryExpression(_)&&ah(_,f))&&(So(_)?o=!0:s=!0),e.isCallExpression(_)||(l=xo(l,_,t,p)),l||(c||(c=[])).push(e.isBinaryExpression(_)||e.isCallExpression(_)?Eo(t,r,_,f):et)}}n=l}if(!n){if(!e.length(c))return Pe;var m=o&&t.declarations?((t,r)=>(e.Debug.assert(t.length===r.length),t.filter(((t,n)=>{var i=r[n],a=e.isBinaryExpression(i)?i:e.isBinaryExpression(i.parent)?i.parent:void 0;return a&&So(a)}))))(c,t.declarations):void 0;if(s){var g=L_(t);g&&((m||(m=[])).push(g),o=!0)}n=Hu(e.some(m,(e=>!!(-98305&e.flags)))?m:c,2)}}var h=Bf(po(n,!1,s&&!o));return t.valueDeclaration&&ag(h,(e=>!!(-98305&e.flags)))===et?(Vf(t.valueDeclaration,Ne),Ne):h}function bo(t,r,n){var i,a;if(e.isInJSFile(t)&&n&&e.isObjectLiteralExpression(n)&&!n.properties.length){for(var o=e.createSymbolTable();e.isBinaryExpression(t)||e.isPropertyAccessExpression(t);){var s=Xi(t);(null===(i=null==s?void 0:s.exports)||void 0===i?void 0:i.size)&&Kn(o,s.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var c=Xi(t);(null===(a=null==c?void 0:c.exports)||void 0===a?void 0:a.size)&&Kn(o,c.exports);var l=fa(r,o,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=8192,l}}function xo(t,r,n,i){var a,o=e.getEffectiveTypeAnnotationNode(r.parent);if(o){var s=Bf(dp(o));if(!t)return s;Za(t)||Za(s)||Hp(t,s)||lE(void 0,t,i,s)}if(null===(a=n.parent)||void 0===a?void 0:a.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(n.parent.valueDeclaration);if(c){var l=Lc(dp(c),n.escapedName);if(l)return Uo(l)}}return t}function Eo(t,r,n,i){if(e.isCallExpression(n)){if(r)return jo(r);var a=Ub(n.arguments[2]),o=Ya(a,"value");if(o)return o;var s=Ya(a,"get");if(s){var c=Gy(s);if(c)return _l(c)}var l=Ya(a,"set");if(l){var u=Gy(l);if(u)return rb(u)}return Ne}if(((t,r)=>e.isPropertyAccessExpression(t)&&108===t.expression.kind&&e.forEachChildRecursively(r,(e=>Tm(t,e))))(n.left,n.right))return Ne;var d=r?jo(r):of(Ub(n.right));if(524288&d.flags&&2===i&&"export="===t.escapedName){var p=uc(d),_=e.createSymbolTable();e.copyEntries(p.members,_);var f=_.size;r&&!r.exports&&(r.exports=e.createSymbolTable()),(r||t).exports.forEach(((t,r)=>{var n,i=_.get(r);if(i&&i!==t)if(111551&t.flags&&111551&i.flags){if(t.valueDeclaration&&i.valueDeclaration&&e.getSourceFileOfNode(t.valueDeclaration)!==e.getSourceFileOfNode(i.valueDeclaration)){var a=e.unescapeLeadingUnderscores(t.escapedName),o=(null===(n=e.tryCast(i.valueDeclaration,e.isNamedDeclaration))||void 0===n?void 0:n.name)||i.valueDeclaration;e.addRelatedInfo(wn(t.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(o,e.Diagnostics._0_was_also_declared_here,a)),e.addRelatedInfo(wn(o,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_was_also_declared_here,a))}var s=Rn(t.flags|i.flags,r);s.type=Hu([jo(t),jo(i)]),s.valueDeclaration=i.valueDeclaration,s.declarations=e.concatenate(i.declarations,t.declarations),_.set(r,s)}else _.set(r,Un(t,i));else _.set(r,t)}));var m=fa(f!==_.size?void 0:p.symbol,_,p.callSignatures,p.constructSignatures,p.indexInfos);return m.objectFlags|=8192&e.getObjectFlags(d),m.symbol&&32&m.symbol.flags&&d===is(m.symbol)&&(m.objectFlags|=16777216),m}return Y_(d)?(Vf(n,jt),jt):d}function So(t){var r=e.getThisContainer(t,!1);return 170===r.kind||255===r.kind||212===r.kind&&!e.isPrototypePropertyAssignment(r.parent)}function Do(t,r,n){return t.initializer?po(Kb(t,zb(t,e.isBindingPattern(t.name)?To(t.name,!0,!1):Re))):e.isBindingPattern(t.name)?To(t.name,r,n):(n&&!Ao(t)&&Vf(t,Ne),r?Oe:Ne)}function To(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),200===t.kind?((t,r,n)=>{var i,a=e.createSymbolTable(),o=262272;e.forEach(t.elements,(e=>{var t=e.propertyName||e.name;if(e.dotDotDotToken)i=Tl(We,Ne,!1);else{var s=id(t);if(Ss(s)){var c=As(s),l=Rn(4|(e.initializer?16777216:0),c);l.type=Do(e,r,n),l.bindingElement=e,a.set(l.escapedName,l)}else o|=512}}));var s=fa(void 0,a,e.emptyArray,e.emptyArray,i?[i]:e.emptyArray);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=262144),s})(t,r,n):((t,r,n)=>{var i,a=t.elements,o=e.lastOrUndefined(a),s=o&&202===o.kind&&o.dotDotDotToken?o:void 0;if(0===a.length||1===a.length&&s)return U>=2?(i=Ne,Eu(vu(!0),[i])):jt;var c=e.map(a,(t=>e.isOmittedExpression(t)?Ne:Do(t,r,n))),l=e.findLastIndex(a,(t=>!(t===s||e.isOmittedExpression(t)||Eh(t))),a.length-1)+1,u=wu(c,e.map(a,((e,t)=>e===s?4:t>=l?2:1)));return r&&((u=jl(u)).pattern=t,u.objectFlags|=262144),u})(t,r,n)}function Co(e,t){return ko(_o(e,!0),e,t)}function ko(t,r,n){return t?(4096&t.flags&&(i=Xi(r.parent),(a=Wt||(Wt=cu("SymbolConstructor",!1)))&&i&&i===a)&&(t=sp(r)),n&&zf(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==Xi(r)&&(t=Qe),Bf(t)):(t=e.isParameter(r)&&r.dotDotDotToken?jt:Ne,n&&(Ao(r)||Vf(r,t)),t);var i,a}function Ao(t){var r=e.getRootDeclaration(t);return vx(163===r.kind?r.parent:r)}function No(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return dp(r)}function wo(t){if(t)return 171===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function Fo(e){var t=wo(e);return t&&dp(t)}function Po(t){var r=Hn(t);return r.type||(r.type=Io(t)||e.Debug.fail("Read type of accessor must always produce a type"))}function Io(t,r){if(void 0===r&&(r=!1),!Ja(t,0))return Pe;var n=Oo(t,r);return qa()||(n=Ne,G&&wn(e.getDeclarationOfKind(t,171),e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,wa(t))),n}function Oo(t,r){void 0===r&&(r=!1);var n=e.getDeclarationOfKind(t,171),i=e.getDeclarationOfKind(t,172),a=Fo(i);if(r&&a)return c(a,t);if(n&&e.isInJSFile(n)){var o=lo(n);if(o)return c(o,t)}var s=Fo(n);return s?c(s,t):a||(n&&n.body?c(ub(n),t):i?(vx(i)||Pn(G,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,wa(t)),Ne):n?(e.Debug.assert(!!n,"there must exist a getter as we are current checking either setter or getter in this function"),vx(n)||Pn(G,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,wa(t)),Ne):void 0);function c(t,r){return 1&e.getCheckFlags(r)?Rp(t,Hn(r).mapper):t}}function Mo(t){var r=Zo(is(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(e=>!!(8650752&e.flags))):void 0}function Ro(t){var r=Hn(t),n=r;if(!r.type){var i=t.valueDeclaration&&wv(t.valueDeclaration,!1);if(i){var a=Nv(t,i);a&&(t=r=a)}n.type=r.type=(t=>{var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Ne;if(r&&(220===r.kind||e.isAccessExpression(r)&&220===r.parent.kind))return vo(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=Bi(t);if(n!==t){if(!Ja(t,0))return Pe;var i=qi(t.exports.get("export=")),a=vo(i,i===n?void 0:n);return qa()?a:Bo(t)}}var o=ca(16,t);if(32&t.flags){var s=Mo(t);return s?Zu([o,s]):o}return W&&16777216&t.flags?xf(o):o})(t)}return r.type}function Lo(e){var t=Hn(e);return t.type||(t.type=ds(e))}function Bo(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(wn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,wa(t)),Pe):(G&&(163!==r.kind||r.initializer)&&wn(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,wa(t)),Ne)}function jo(t){var r=e.getCheckFlags(t);return 65536&r?(t=>{var r=Hn(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?Hu(r.deferralConstituents):Zu(r.deferralConstituents)),r.type})(t):1&r?(e=>{var t=Hn(e);if(!t.type){if(!Ja(e,0))return t.type=Pe;var r=Rp(jo(t.target),t.mapper);qa()||(r=Bo(e)),t.type=r}return t.type})(t):262144&r?(t=>{if(!t.type){var r=t.mappedType;if(!Ja(t,0))return r.containsError=!0,Pe;var n=Rp(rc(r.target||r),Tp(r.mapper,Zs(r),t.keyType)),i=W&&16777216&t.flags&&!Tb(n,49152)?xf(n,!0):524288&t.checkFlags?Nf(n):n;qa()||(wn(c,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,wa(t),Pa(r)),i=Pe),t.type=i}return t.type})(t):8192&r?(e=>{var t=Hn(e);return t.type||(t.type=nm(e.propertyType,e.mappedType,e.constraintType)),t.type})(t):7&t.flags?(t=>{var r=Hn(t);if(!r.type){var n=(t=>{if(4194304&t.flags)return(r=_s(Yi(t))).typeParameters?Bl(r,e.map(r.typeParameters,(e=>Ne))):r;var r;if(t===ce)return Ne;if(134217728&t.flags&&t.valueDeclaration){var n=Xi(e.getSourceFileOfNode(t.valueDeclaration)),i=Rn(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),fa(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return X?Re:Ne;var l=MS(c);return Qa(l)||l===Re?l:Pe}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?Bf(of(ix(s.statements[0].expression))):_t;if(!Ja(t,0))return 512&t.flags&&!(67108864&t.flags)?Ro(t):Bo(t);if(270===s.kind)o=ko(No(s)||Ub(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=vo(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return Ro(t);o=e.isBinaryExpression(s.parent)?vo(t):No(s)||Ne}else if(e.isPropertyAssignment(s))o=No(s)||$b(s);else if(e.isJsxAttribute(s))o=No(s)||Oh(s);else if(e.isShorthandPropertyAssignment(s))o=No(s)||Jb(s.name,0);else if(e.isObjectLiteralMethod(s))o=No(s)||Gb(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=Co(s,!0);else if(e.isEnumDeclaration(s))o=Ro(t);else if(e.isEnumMember(s))o=Lo(t);else{if(!e.isAccessor(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=Oo(t)||e.Debug.fail("Non-write accessor resolution must always produce a type")}return qa()?o:512&t.flags&&!(67108864&t.flags)?Ro(t):Bo(t)})(t);r.type||(r.type=n)}return r.type})(t):9136&t.flags?Ro(t):8&t.flags?Lo(t):98304&t.flags?Po(t):2097152&t.flags?(t=>{var r=Hn(t);if(!r.type){var n=Di(t),i=t.declarations&&xi(li(t),!0),a=e.firstDefined(null==i?void 0:i.declarations,(t=>e.isExportAssignment(t)?No(t):void 0));r.type=(null==i?void 0:i.declarations)&&hS(i.declarations)&&t.declarations.length?(t=>{var r=e.getSourceFileOfNode(t.declarations[0]),n=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every((t=>e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression))),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),n):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),n);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.endFlowNode,wg(a,we,Be)})(i):hS(t.declarations)?we:a||(111551&n.flags?jo(n):Pe)}return r.type})(t):Pe}function Uo(e){return kf(jo(e),!!(16777216&e.flags))}function Vo(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function zo(t){return 4&e.getObjectFlags(t)?t.target:t}function Ko(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=zo(n);return i===r||e.some(ts(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function Wo(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,ps(Xi(a)))}return t}function Ho(t,r){for(;;){if((t=t.parent)&&e.isBinaryExpression(t)){var n=e.getAssignmentDeclarationKind(t);if(6===n||3===n){var i=Xi(t.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,(e=>t===e))&&(t=i.parent.valueDeclaration)}}if(!t)return;switch(t.kind){case 256:case 225:case 257:case 173:case 174:case 167:case 178:case 179:case 315:case 255:case 168:case 212:case 213:case 258:case 342:case 343:case 337:case 336:case 194:case 188:var a=Ho(t,r);if(194===t.kind)return e.append(a,ps(Xi(t.typeParameter)));if(188===t.kind)return e.concatenate(a,Ud(t));var o=Wo(a,e.getEffectiveTypeParameterDeclarations(t)),s=r&&(256===t.kind||225===t.kind||257===t.kind||Av(t))&&is(Xi(t)).thisType;return s?e.append(o,s):o;case 338:var c=e.getParameterSymbolFromJSDoc(t);c&&(t=c.valueDeclaration);break;case 318:return a=Ho(t,r),t.tags?Wo(a,e.flatMap(t.tags,(t=>e.isJSDocTemplateTag(t)?t.typeParameters:void 0))):a}}}function Jo(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,257);return e.Debug.assert(!!r,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Ho(r)}function $o(t){if(t.declarations){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(257===a.kind||256===a.kind||225===a.kind||Av(a)||e.isTypeAlias(a)){var o=a;r=Wo(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}}function Go(e){var t=jc(e,1);if(1===t.length){var r=t[0];if(!r.typeParameters&&1===r.parameters.length&&L(r)){var n=zv(r.parameters[0]);return Qa(n)||$_(n)===Ne}}return!1}function qo(e){if(jc(e,1).length>0)return!0;if(8650752&e.flags){var t=xc(e);return!!t&&Go(t)}return!1}function Xo(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function Yo(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(jc(t,1),(t=>(a||i>=nl(t.typeParameters))&&i<=e.length(t.typeParameters)))}function Qo(t,r,n){var i=Yo(t,r,n),a=e.map(r,dp);return e.sameMap(i,(t=>e.some(t.typeParameters)?hl(t,a,e.isInJSFile(n)):t))}function Zo(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=Xo(t);if(!i)return t.resolvedBaseConstructorType=Be;if(!Ja(t,1))return Pe;var a=ix(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),ix(n.expression)),2621440&a.flags&&uc(a),!qa())return wn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,wa(t.symbol)),t.resolvedBaseConstructorType=Pe;if(!(1&a.flags||a===Ke||qo(a))){var o=wn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Pa(a));if(262144&a.flags){var s=wl(a),c=Re;if(s){var l=jc(s,1);l[0]&&(c=_l(l[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,wa(a.symbol),Pa(c)))}return t.resolvedBaseConstructorType=Pe}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function es(t,r){wn(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Pa(r,void 0,2))}function ts(t){if(!t.baseTypesResolved){if(Ja(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[rs(t)]:96&t.symbol.flags?(32&t.symbol.flags&&(t=>{t.resolvedBaseTypes=e.resolvingEmptyArray;var r=kc(Zo(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=Xo(t),a=r.symbol?_s(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&(e=>{var t=e.outerTypeParameters;if(t){var r=t.length-1,n=Vl(e);return t[r].symbol!==n[r].symbol}return!0})(a))n=Kl(i,r.symbol);else if(1&r.flags)n=r;else{var o=Qo(r,i.typeArguments,i);if(!o.length)return wn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=_l(o[0])}if(Za(n))return t.resolvedBaseTypes=e.emptyArray;var s=Pc(n);if(!ns(s)){var c=Rc(void 0,n),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Pa(s));return _n.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),t.resolvedBaseTypes=e.emptyArray}if(t===s||Ko(s,t))return wn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Pa(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[s]})(t),64&t.symbol.flags&&(t=>{if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];if(257===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=Pc(dp(s));Za(c)||(ns(c)?t===c||Ko(c,t)?es(i,t):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):wn(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}})(t)):e.Debug.fail("type must be class or interface"),!qa()&&t.symbol.declarations))for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];256!==i.kind&&257!==i.kind||es(i,t)}t.baseTypesResolved=!0}return t.resolvedBaseTypes}function rs(t){return Du(Hu(e.sameMap(t.typeParameters,((e,r)=>8&t.elementFlags[r]?Ad(e,He):e))||e.emptyArray),t.readonly)}function ns(t){if(262144&t.flags){var r=xc(t);if(r)return ns(r)}return!!(67633153&t.flags&&!lc(t)||2097152&t.flags&&e.every(t.types,ns))}function is(t){var r,n,i,a,o,s=Hn(t),c=s;if(!s.declaredType){var l=32&t.flags?1:2,u=Nv(t,t.valueDeclaration&&((o=(null==(a=null===(n=null==(i=(r=t.valueDeclaration)&&wv(r,!0))?void 0:i.exports)||void 0===n?void 0:n.get("prototype"))?void 0:a.valueDeclaration)&&(t=>{if(!t.parent)return!1;for(var r=t.parent;r&&205===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&63===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}})(a.valueDeclaration))?Xi(o):void 0));u&&(t=s=u);var d=c.declaredType=s.declaredType=ca(l,t),p=Jo(t),_=$o(t);(p||_||1===l||!(t=>{if(!t.declarations)return!0;for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(257===i.kind){if(128&i.flags)return!1;var a=e.getInterfaceBaseTypeNodes(i);if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var l=Pi(c.expression,788968,!0);if(!l||!(64&l.flags)||is(l).thisType)return!1}}}}return!0})(t))&&(d.objectFlags|=4,d.typeParameters=e.concatenate(p,_),d.outerTypeParameters=p,d.localTypeParameters=_,d.instantiations=new e.Map,d.instantiations.set(Pl(d.typeParameters),d),d.target=d,d.resolvedTypeArguments=d.typeParameters,d.thisType=la(t),d.thisType.isThisType=!0,d.thisType.constraint=d)}return s.declaredType}function as(t){var r,n=Hn(t);if(!n.declaredType){if(!Ja(t,2))return Pe;var i=e.Debug.checkDefined(null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),a=e.isJSDocTypeAlias(i)?i.typeExpression:i.type,o=a?dp(a):Pe;if(qa()){var s=$o(t);s&&(n.typeParameters=s,n.instantiations=new e.Map,n.instantiations.set(Pl(s),o))}else o=Pe,337===i.kind?wn(i.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,wa(t)):wn(e.isNamedDeclaration(i)?i.name:i||i,e.Diagnostics.Type_alias_0_circularly_references_itself,wa(t));n.declaredType=o}return n.declaredType}function os(t){return!!e.isStringLiteralLike(t)||220===t.kind&&os(t.left)&&os(t.right)}function ss(t){var r=t.initializer;if(!r)return!(8388608&t.flags);switch(r.kind){case 10:case 8:case 14:return!0;case 218:return 40===r.operator&&8===r.operand.kind;case 79:return e.nodeIsMissing(r)||!!Xi(t.parent).exports.get(r.escapedText);case 220:return os(r);default:return!1}}function cs(t){var r=Hn(t);if(void 0!==r.enumKind)return r.enumKind;var n=!1;if(t.declarations)for(var i=0,a=t.declarations;i<a.length;i++){var o=a[i];if(259===o.kind)for(var s=0,c=o.members;s<c.length;s++){var l=c[s];if(l.initializer&&e.isStringLiteralLike(l.initializer))return r.enumKind=1;ss(l)||(n=!0)}}return r.enumKind=n?0:1}function ls(e){return 1024&e.flags&&!(1048576&e.flags)?_s(Yi(e.symbol)):e}function us(e){var t=Hn(e);if(t.declaredType)return t.declaredType;if(1===cs(e)){h++;var r=[];if(e.declarations)for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(259===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],l=oD(c),u=ep(op(void 0!==l?l:0,h,Xi(c)));Hn(Xi(c)).declaredType=u,r.push(tp(u))}}if(r.length){var d=Hu(r,1,e,void 0);return 1048576&d.flags&&(d.flags|=1024,d.symbol=e),t.declaredType=d}}var p=aa(32);return p.symbol=e,t.declaredType=p}function ds(e){var t=Hn(e);if(!t.declaredType){var r=us(Yi(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function ps(e){var t=Hn(e);return t.declaredType||(t.declaredType=la(e))}function _s(e){return fs(e)||Pe}function fs(e){return 96&e.flags?is(e):524288&e.flags?as(e):262144&e.flags?ps(e):384&e.flags?us(e):8&e.flags?ds(e):2097152&e.flags?(e=>{var t=Hn(e);return t.declaredType||(t.declaredType=_s(Di(e)))})(e):void 0}function ms(e){switch(e.kind){case 130:case 154:case 149:case 146:case 157:case 133:case 150:case 147:case 114:case 152:case 143:case 195:return!0;case 182:return ms(e.elementType);case 177:return!e.typeArguments||e.typeArguments.every(ms)}return!1}function gs(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||ms(r)}function hs(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?ms(r):!e.hasInitializer(t)}function ys(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 166:case 165:return hs(r);case 168:case 167:case 170:case 171:case 172:return n=r,i=e.getEffectiveReturnTypeNode(n),a=e.getEffectiveTypeParameterDeclarations(n),(170===n.kind||!!i&&ms(i))&&n.parameters.every(hs)&&a.every(gs)}}var n,i,a;return!1}function vs(t,r,n){for(var i=e.createSymbolTable(),a=0,o=t;a<o.length;a++){var s=o[a];i.set(s.escapedName,n&&ys(s)?s:Ap(s,r))}return i}function bs(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||xs(i)||e.set(i.escapedName,i)}}function xs(t){return!!t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration)&&e.isStatic(t.valueDeclaration)}function Es(t){if(!t.declaredProperties){var r=t.symbol,n=Fs(r);t.declaredProperties=da(n),t.declaredCallSignatures=e.emptyArray,t.declaredConstructSignatures=e.emptyArray,t.declaredIndexInfos=e.emptyArray,t.declaredCallSignatures=cl(n.get("__call")),t.declaredConstructSignatures=cl(n.get("__new")),t.declaredIndexInfos=Cl(r)}return t}function Ss(e){return!!(8576&e.flags)}function Ds(t){if(!e.isComputedPropertyName(t)&&!e.isElementAccessExpression(t))return!1;var r=e.isComputedPropertyName(t)?t.expression:t.argumentExpression;return e.isEntityNameExpression(r)&&Ss(e.isComputedPropertyName(t)?kh(t):Ub(r))}function Ts(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Cs(t){var r=e.getNameOfDeclaration(t);return!!r&&Ds(r)}function ks(t){return!e.hasDynamicName(t)||Cs(t)}function As(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):e.Debug.fail()}function Ns(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=Jn(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=e.isBinaryExpression(i)?i.left:i.name,s=e.isElementAccessExpression(o)?Ub(o.argumentExpression):kh(o);if(Ss(s)){var c=As(s),l=i.symbol.flags,u=n.get(c);u||n.set(c,u=Rn(0,c,4096));var d=r&&r.get(c);if(u.flags&Ln(l)||d){var p=d?e.concatenate(d.declarations,u.declarations):u.declarations,_=!(8192&s.flags)&&e.unescapeLeadingUnderscores(c)||e.declarationNameToString(o);e.forEach(p,(t=>wn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Property_0_was_also_declared_here,_))),wn(o||i,e.Diagnostics.Duplicate_property_0,_),u=Rn(0,c,4096)}return u.nameType=s,((t,r,n)=>{e.Debug.assert(!!(4096&e.getCheckFlags(t)),"Expected a late-bound symbol."),t.flags|=n,Hn(r.symbol).lateSymbol=t,t.declarations?r.symbol.isReplaceableByMethod||t.declarations.push(r):t.declarations=[r],111551&n&&(t.valueDeclaration&&t.valueDeclaration.kind===r.kind||(t.valueDeclaration=r))})(u,i,l),u.parent?e.Debug.assert(u.parent===t,"Existing symbol parent should match new one"):u.parent=t,a.resolvedSymbol=u}}return a.resolvedSymbol}function ws(t,r){var n=Hn(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?Gi(t):t.exports:t.members;n[r]=a||D;for(var o=e.createSymbolTable(),s=0,c=t.declarations||e.emptyArray;s<c.length;s++){var l=c[s],u=e.getMembersOfDeclaration(l);if(u)for(var d=0,p=u;d<p.length;d++){var _=p[d];i===e.hasStaticModifier(_)&&Cs(_)&&Ns(t,a,o,_)}}var f=t.assignmentDeclarationMembers;if(f)for(var m=0,g=e.arrayFrom(f.values());m<g.length;m++){_=g[m];var h=e.getAssignmentDeclarationKind(_);i===!(3===h||e.isBinaryExpression(_)&&ah(_,h)||9===h||6===h)&&Cs(_)&&Ns(t,a,o,_)}n[r]=((t,r)=>{if(!(null==t?void 0:t.size))return r;if(!(null==r?void 0:r.size))return t;var n=e.createSymbolTable();return Kn(n,t),Kn(n,r),n})(a,o)||D}return n[r]}function Fs(e){return 6256&e.flags?ws(e,"resolvedMembers"):e.members||D}function Ps(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=Hn(t);if(!r.lateSymbol&&e.some(t.declarations,Cs)){var n=qi(t.parent);e.some(t.declarations,e.hasStaticModifier)?Hi(n):Fs(n)}return r.lateSymbol||(r.lateSymbol=t)}return t}function Is(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=Vl(t);if(e.length(i.typeParameters)===e.length(a)){var o=Bl(i,e.concatenate(a,[r||i.thisType]));return n?kc(o):o}}else if(2097152&t.flags){var s=e.sameMap(t.types,(e=>Is(e,r,n)));return s!==t.types?Zu(s):t}return n?kc(t):t}function Os(t,r,n,i){var a,o,s,c,l;e.rangeEquals(n,i,0,n.length)?(o=r.symbol?Fs(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,l=r.declaredIndexInfos):(a=hp(n,i),o=vs(r.declaredProperties,a,1===n.length),s=mp(r.declaredCallSignatures,a),c=mp(r.declaredConstructSignatures,a),l=gp(r.declaredIndexInfos,a));var u=ts(r);if(u.length){r.symbol&&o===Fs(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),_a(t,o,s,c,l);for(var d=e.lastOrUndefined(i),p=0,_=u;p<_.length;p++){var f=_[p],m=d?Is(Rp(f,a),d):f;bs(o,fc(m)),s=e.concatenate(s,jc(m,0)),c=e.concatenate(c,jc(m,1));var g=m!==Ne?Wc(m):[Tl(We,Ne,!1)];l=e.concatenate(l,e.filter(g,(e=>!Uc(l,e.keyType))))}}_a(t,o,s,c,l)}function Ms(e,t,r,n,i,a,o,s){var c=new f(le,s);return c.declaration=e,c.typeParameters=t,c.parameters=n,c.thisParameter=r,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function Rs(e){var t=Ms(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function Ls(e,t){var r=Rs(e);return r.compositeSignatures=t,r.compositeKind=1048576,r.target=void 0,r.mapper=void 0,r}function Bs(t,r){if((24&t.flags)===r)return t;t.optionalCallSignatureCache||(t.optionalCallSignatureCache={});var n=8===r?"inner":"outer";return t.optionalCallSignatureCache[n]||(t.optionalCallSignatureCache[n]=((t,r)=>{e.Debug.assert(8===r||16===r,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var n=Rs(t);return n.flags|=r,n})(t,r))}function js(t,r){if(L(t)){var n=t.parameters.length-1,i=jo(t.parameters[n]);if(uf(i))return[a(i,n)];if(!r&&1048576&i.flags&&e.every(i.types,uf))return e.map(i.types,(e=>a(e,n)))}return[t.parameters];function a(r,n){var i=Vl(r),a=r.target.labeledElementDeclarations,o=e.map(i,((e,i)=>{var o=!!a&&Kv(a[i])||Wv(t,n+i,r),s=r.target.elementFlags[i],c=Rn(1,o,12&s?32768:2&s?16384:0);return c.type=4&s?Du(e):e,c}));return e.concatenate(t.parameters.slice(0,n),o)}}function Us(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(z_(s,t,r,n,i,r?Gp:Jp))return s}}function Vs(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!Us(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:Us(t[i],r,!0,!1,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function zs(t){for(var r,n,i=0;i<t.length;i++){if(0===t[i].length)return e.emptyArray;t[i].length>1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a<o.length;a++){var s=o[a];if(!r||!Us(r,s,!1,!1,!0)){var c=Vs(t,s,i);if(c){var l=s;if(c.length>1){var u=s.thisParameter,d=e.forEach(c,(e=>e.thisParameter));d&&(u=Ff(d,Zu(e.mapDefined(c,(e=>e.thisParameter&&jo(e.thisParameter)))))),(l=Ls(s,c)).thisParameter=u}(r||(r=[])).push(l)}}}}if(!e.length(r)&&-1!==n){for(var p=t[void 0!==n?n:0],_=p.slice(),f=t=>{if(t!==p){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(_=r.typeParameters&&e.some(_,(e=>!!e.typeParameters&&!Ks(r.typeParameters,e.typeParameters)))?void 0:e.map(_,(t=>((t,r)=>{var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=hp(r.typeParameters,t.typeParameters));var a=t.declaration,o=((e,t,r)=>{for(var n=Yv(e),i=Yv(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Zv(e)||Zv(t),l=c&&!Zv(a),u=new Array(s+(l?1:0)),d=0;d<s;d++){var p=qv(a,d);a===t&&(p=Rp(p,r));var _=qv(o,d)||Re;o===t&&(_=Rp(_,r));var f=Zu([p,_]),m=c&&!l&&d===s-1,g=d>=Qv(a)&&d>=Qv(o),h=d>=n?void 0:Wv(e,d),y=d>=i?void 0:Wv(t,d),v=Rn(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg".concat(d));v.type=m?Du(f):f,u[d]=v}if(l){var b=Rn(1,"args");b.type=Du(Gv(o,s)),o===t&&(b.type=Rp(b.type,r)),u[s]=b}return u})(t,r,n),s=Ms(a,i,((e,t,r)=>e&&t?Ff(e,Zu([jo(e),Rp(jo(t),r)])):e||t)(t.thisParameter,r.thisParameter,n),o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return s.compositeKind=1048576,s.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(s.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?Sp(t.mapper,n):n),s})(t,r)))))return"break"}},m=0,g=t;m<g.length&&"break"!==f(g[m]);m++);r=_}return r||e.emptyArray}function Ks(t,r){if(e.length(t)!==e.length(r))return!1;if(!t||!r)return!0;for(var n=hp(r,t),i=0;i<t.length;i++){var a=t[i],o=r[i];if(a!==o&&!Hp(wl(a)||Re,Rp(wl(o)||Re,n)))return!1}return!0}function Ws(t){var r=Wc(t[0]);if(r){for(var n=[],i=r=>{var i=r.keyType;e.every(t,(e=>!!Hc(e,i)))&&n.push(Tl(i,Hu(e.map(t,(e=>Jc(e,i)))),e.some(t,(e=>Hc(e,i).isReadonly))))},a=0,o=r;a<o.length;a++)i(o[a]);return n}return e.emptyArray}function Hs(e,t){return e?t?Zu([e,t]):e:t}function Js(t){var r=e.countWhere(t,(e=>jc(e,1).length>0)),n=e.map(t,Go);if(r>0&&r===e.countWhere(n,(e=>e))){var i=n.indexOf(!0);n[i]=!1}return n}function $s(t,r){for(var n=r=>{t&&!e.every(t,(e=>!z_(e,r,!1,!1,!1,Jp)))||(t=e.append(t,r))},i=0,a=r;i<a.length;i++)n(a[i]);return t}function Gs(t,r,n){if(t)for(var i=0;i<t.length;i++){var a=t[i];if(a.keyType===r.keyType)return t[i]=Tl(a.keyType,n?Hu([a.type,r.type]):Zu([a.type,r.type]),n?a.isReadonly||r.isReadonly:a.isReadonly&&r.isReadonly),t}return e.append(t,r)}function qs(e,t,r){return Rp(e,hp([t.indexType,t.objectType],[ip(0),wu([r])]))}function Xs(t){if(4194304&t.flags){var r=kc(t.type);return df(r)?Mu(r):sd(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=Xs(n);if(i!==n)return Mp(t,Dp(t.root.checkType,i,t.mapper))}return t}return 1048576&t.flags?cg(t,Xs):2097152&t.flags?Zu(e.sameMap(t.types,Xs)):t}function Ys(t){return 4096&e.getCheckFlags(t)}function Qs(e,t,r,n){for(var i=0,a=fc(e);i<a.length;i++)n(ad(a[i],t));if(1&e.flags)n(We);else for(var o=0,s=Wc(e);o<s.length;o++){var c=s[o];(!r||134217732&c.keyType.flags)&&n(c.keyType)}}function Zs(e){return e.typeParameter||(e.typeParameter=ps(Xi(e.declaration.typeParameter)))}function ec(e){return e.constraintType||(e.constraintType=gc(Zs(e))||Pe)}function tc(e){return e.declaration.nameType?e.nameType||(e.nameType=Rp(dp(e.declaration.nameType),e.mapper)):void 0}function rc(e){return e.templateType||(e.templateType=e.declaration.type?Rp(po(dp(e.declaration.type),!0,!!(4&oc(e))),e.mapper):Pe)}function nc(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function ic(e){var t=nc(e);return 192===t.kind&&140===t.operator}function ac(e){if(!e.modifiersType)if(ic(e))e.modifiersType=Rp(dp(nc(e).type),e.mapper);else{var t=ec(Pd(e.declaration)),r=t&&262144&t.flags?gc(t):t;e.modifiersType=r&&4194304&r.flags?Rp(r.type,e.mapper):Re}return e.modifiersType}function oc(e){var t=e.declaration;return(t.readonlyToken?40===t.readonlyToken.kind?2:1:0)|(t.questionToken?40===t.questionToken.kind?8:4:0)}function sc(e){var t=oc(e);return 8&t?-1:4&t?1:0}function cc(e){var t=sc(e),r=ac(e);return t||(lc(r)?sc(r):0)}function lc(t){return!!(32&e.getObjectFlags(t))&&xd(ec(t))}function uc(t){return t.members||(524288&t.flags?4&t.objectFlags?(t=>{var r=Es(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),i=Vl(t);Os(t,r,n,i.length===n.length?i:e.concatenate(i,[t]))})(t):3&t.objectFlags?(t=>{Os(t,Es(t),e.emptyArray,e.emptyArray)})(t):1024&t.objectFlags?(t=>{for(var r=Hc(t.source,We),n=oc(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r?[Tl(We,nm(r.type,t.mappedType,t.constraintType),i&&r.isReadonly)]:e.emptyArray,s=e.createSymbolTable(),c=0,l=fc(t.source);c<l.length;c++){var u=l[c],d=8192|(i&&xb(u)?8:0),p=Rn(4|u.flags&a,u.escapedName,d);if(p.declarations=u.declarations,p.nameType=Hn(u).nameType,p.propertyType=jo(u),8388608&t.constraintType.type.flags&&262144&t.constraintType.type.objectType.flags&&262144&t.constraintType.type.indexType.flags){var _=t.constraintType.type.objectType,f=qs(t.mappedType,t.constraintType.type,_);p.mappedType=f,p.constraintType=sd(_)}else p.mappedType=t.mappedType,p.constraintType=t.constraintType;s.set(u.escapedName,p)}_a(t,s,e.emptyArray,e.emptyArray,o)})(t):16&t.objectFlags?(t=>{var r=qi(t.symbol);if(t.target)_a(t,D,e.emptyArray,e.emptyArray,e.emptyArray),_a(t,a=vs(dc(t.target),t.mapper,!1),n=mp(jc(t.target,0),t.mapper),i=mp(jc(t.target,1),t.mapper),o=gp(Wc(t.target),t.mapper));else if(2048&r.flags){_a(t,D,e.emptyArray,e.emptyArray,e.emptyArray);var n=cl((a=Fs(r)).get("__call")),i=cl(a.get("__new"));_a(t,a,n,i,o=Cl(r))}else{var a=D,o=void 0;if(r.exports&&(a=Hi(r),r===ae)){var s=new e.Map;a.forEach((e=>{418&e.flags||s.set(e.escapedName,e)})),a=s}var c=void 0;if(_a(t,a,e.emptyArray,e.emptyArray,e.emptyArray),32&r.flags){var l=Zo(is(r));11272192&l.flags?bs(a=e.createSymbolTable((t=>{var r=da(t),n=Dl(t);return n?e.concatenate(r,[n]):r})(a)),fc(l)):l===Ne&&(c=Tl(We,Ne,!1))}var u=Dl(a);if(u?o=kl(u):(c&&(o=e.append(o,c)),384&r.flags&&(32&_s(r).flags||e.some(t.properties,(e=>!!(296&jo(e).flags))))&&(o=e.append(o,kr))),_a(t,a,e.emptyArray,e.emptyArray,o||e.emptyArray),8208&r.flags&&(t.callSignatures=cl(r)),32&r.flags){var d=is(r);i=r.members?cl(r.members.get("__constructor")):e.emptyArray,16&r.flags&&(i=e.addRange(i.slice(),e.mapDefined(t.callSignatures,(e=>Av(e.declaration)?Ms(e.declaration,e.typeParameters,e.thisParameter,e.parameters,d,void 0,e.minArgumentCount,39&e.flags):void 0)))),i.length||(i=(t=>{var r=jc(Zo(t),1),n=e.getClassLikeDeclarationOfSymbol(t.symbol),i=!!n&&e.hasSyntacticModifier(n,128);if(0===r.length)return[Ms(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,i?4:0)];for(var a=Xo(t),o=e.isInJSFile(a),s=iu(a),c=e.length(s),l=[],u=0,d=r;u<d.length;u++){var p=d[u],_=nl(p.typeParameters),f=e.length(p.typeParameters);if(o||c>=_&&c<=f){var m=f?vl(p,il(s,p.typeParameters,_,o)):Rs(p);m.typeParameters=t.localTypeParameters,m.resolvedReturnType=t,m.flags=i?4|m.flags:-5&m.flags,l.push(m)}}return l})(d)),t.constructSignatures=i}}})(t):32&t.objectFlags&&(t=>{var r,n=e.createSymbolTable();_a(t,D,e.emptyArray,e.emptyArray,e.emptyArray);var i=Zs(t),a=ec(t),o=tc(t.target||t),s=rc(t.target||t),c=kc(ac(t)),l=oc(t),u=Y?128:8576;function d(e){rg(o?Rp(o,Tp(t.mapper,i,e)):e,(a=>((e,a)=>{if(Ss(a)){var u=As(a),d=n.get(u);if(d)d.nameType=Hu([d.nameType,a]),d.keyType=Hu([d.keyType,e]);else{var p=Ss(e)?Lc(c,As(e)):void 0,_=!!(4&l||!(8&l)&&p&&16777216&p.flags),f=!!(1&l||!(2&l)&&p&&xb(p)),m=W&&!_&&p&&16777216&p.flags,g=Rn(4|(_?16777216:0),u,262144|(p?Ys(p):0)|(f?8:0)|(m?524288:0));g.mappedType=t,g.nameType=a,g.keyType=e,p&&(g.syntheticOrigin=p,g.declarations=o?void 0:p.declarations),n.set(u,g)}}else if(Al(a)||33&a.flags){var h=Tl(5&a.flags?We:40&a.flags?He:a,Rp(s,Tp(t.mapper,i,e)),!!(1&l));r=Gs(r,h,!0)}})(e,a)))}ic(t)?Qs(c,u,Y,d):rg(Xs(a),d),_a(t,n,e.emptyArray,e.emptyArray,r||e.emptyArray)})(t):1048576&t.flags?(t=>{var r=zs(e.map(t.types,(e=>e===Nt?[Dr]:jc(e,0)))),n=zs(e.map(t.types,(e=>jc(e,1)))),i=Ws(t.types);_a(t,D,r,n,i)})(t):2097152&t.flags&&(t=>{for(var r,n,i,a=t.types,o=Js(a),s=e.countWhere(o,(e=>e)),c=c=>{var l=t.types[c];if(!o[c]){var u=jc(l,1);u.length&&s>0&&(u=e.map(u,(e=>{var t=Rs(e);return t.resolvedReturnType=((e,t,r,n)=>{for(var i=[],a=0;a<t.length;a++)a===n?i.push(e):r[a]&&i.push(_l(jc(t[a],1)[0]));return Zu(i)})(_l(e),a,o,c),t}))),n=$s(n,u)}r=$s(r,jc(l,0)),i=e.reduceLeft(Wc(l),((e,t)=>Gs(e,t,!1)),i)},l=0;l<a.length;l++)c(l);_a(t,D,r||e.emptyArray,n||e.emptyArray,i||e.emptyArray)})(t)),t}function dc(t){return 524288&t.flags?uc(t).properties:e.emptyArray}function pc(e,t){if(524288&e.flags){var r=uc(e).members.get(t);if(r&&na(r))return r}}function _c(t){if(!t.resolvedProperties){for(var r=e.createSymbolTable(),n=0,i=t.types;n<i.length;n++){for(var a=i[n],o=0,s=fc(a);o<s.length;o++){var c=s[o];if(!r.has(c.escapedName)){var l=Fc(t,c.escapedName);l&&r.set(c.escapedName,l)}}if(1048576&t.flags&&0===Wc(a).length)break}t.resolvedProperties=da(r)}return t.resolvedProperties}function fc(e){return 3145728&(e=Ac(e)).flags?_c(e):dc(e)}function mc(e){return 262144&e.flags?gc(e):8388608&e.flags?(e=>Sc(e)?(e=>{var t=hc(e.indexType);if(t&&t!==e.indexType){var r=wd(e.objectType,t,e.accessFlags);if(r)return r}var n=hc(e.objectType);if(n&&n!==e.objectType)return wd(n,e.indexType,e.accessFlags)})(e):void 0)(e):16777216&e.flags?(e=>Sc(e)?bc(e):void 0)(e):xc(e)}function gc(e){return Sc(e)?wl(e):void 0}function hc(e){var t=Dd(e,!1);return t!==e?t:mc(e)}function yc(e){if(!e.resolvedDefaultConstraint){var t=(e=>e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?Rp(dp(e.root.node.trueType),e.combinedMapper):Bd(e)))(e),r=jd(e);e.resolvedDefaultConstraint=Qa(t)?r:Qa(r)?t:Hu([t,r])}return e.resolvedDefaultConstraint}function vc(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=Dd(e.checkType,!1),r=t===e.checkType?mc(t):t;if(r&&r!==e.checkType){var n=Mp(e,Dp(e.root.checkType,r,e.mapper));if(!(131072&n.flags))return n}}}function bc(e){return vc(e)||yc(e)}function xc(e){if(464781312&e.flags){var t=Dc(e);return t!==vt&&t!==bt?t:void 0}return 4194304&e.flags?ct:void 0}function Ec(e){return xc(e)||e}function Sc(e){return Dc(e)!==bt}function Dc(t){if(t.resolvedBaseConstraint)return t.resolvedBaseConstraint;var r=[];return t.resolvedBaseConstraint=Is(n(t),t);function n(t){if(!t.immediateBaseConstraint){if(!Ja(t,4))return bt;var n=void 0;if((r.length<10||r.length<50&&!B_(t,r,r.length))&&(r.push(t),n=(t=>{if(262144&t.flags){var r=wl(t);return t.isThisType||!r?r:i(r)}if(3145728&t.flags){for(var n=[],a=!1,o=0,s=u=t.types;o<s.length;o++){var c=s[o],l=i(c);l?(l!==c&&(a=!0),n.push(l)):a=!0}return a?1048576&t.flags&&n.length===u.length?Hu(n):2097152&t.flags&&n.length?Zu(n):void 0:t}if(4194304&t.flags)return ct;if(134217728&t.flags){var u=t.types,d=e.mapDefined(u,i);return d.length===u.length?ld(t.texts,d):We}if(268435456&t.flags)return(r=i(t.type))?dd(t.symbol,r):We;if(8388608&t.flags){var p=i(t.objectType),_=i(t.indexType),f=p&&_&&wd(p,_,t.accessFlags);return f&&i(f)}return 16777216&t.flags?(r=bc(t))&&i(r):33554432&t.flags?i(t.substitute):t})(Dd(t,!1)),r.pop()),!qa()){if(262144&t.flags){var a=Nl(t);if(a){var o=wn(a,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Pa(t));!c||e.isNodeDescendantOf(a,c)||e.isNodeDescendantOf(c,a)||e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}n=bt}t.immediateBaseConstraint=n||vt}return t.immediateBaseConstraint}function i(e){var t=n(e);return t!==vt&&t!==bt?t:void 0}}function Tc(t){if(t.default)t.default===xt&&(t.default=bt);else if(t.target){var r=Tc(t.target);t.default=r?Rp(r,t.mapper):vt}else{t.default=xt;var n=t.symbol&&e.forEach(t.symbol.declarations,(t=>e.isTypeParameterDeclaration(t)&&t.default)),i=n?dp(n):vt;t.default===xt&&(t.default=i)}return t.default}function Cc(e){var t=Tc(e);return t!==vt&&t!==bt?t:void 0}function kc(t){var r=465829888&t.flags?xc(t)||Re:t;return 32&e.getObjectFlags(r)?(e=>e.resolvedApparentType||(e.resolvedApparentType=(e=>{var t=wp(e);if(t&&!e.declaration.nameType){var r=gc(t);if(r&&(W_(r)||uf(r)))return Rp(e,Dp(t,r,e.mapper))}return e})(e)))(r):2097152&r.flags?(e=>e.resolvedApparentType||(e.resolvedApparentType=Is(e,e,!0)))(r):402653316&r.flags?Ot:296&r.flags?Mt:2112&r.flags?fr||(fr=du("BigInt",0,U>=7))||_t:528&r.flags?Rt:12288&r.flags?mu(U>=2):67108864&r.flags?_t:4194304&r.flags?ct:2&r.flags&&!W?_t:r}function Ac(e){return Pc(kc(Pc(e)))}function Nc(t,r,n){for(var i,a,o,s,c,l=1048576&t.flags,u=l?0:16777216,d=4,p=l?0:8,_=!1,f=0,m=t.types;f<m.length;f++)if(!(Za(N=kc(m[f]))||131072&N.flags)){var g=(A=Lc(N,r,n))?e.getDeclarationModifierFlagsFromSymbol(A):0;if(A){if(l?u|=16777216&A.flags:u&=A.flags,o){if(A!==o)if((eS(A)||A)===(eS(o)||o)&&-1===V_(o,A,((e,t)=>e===t?-1:0)))_=!!o.parent&&!!e.length($o(o.parent));else{s||(s=new e.Map).set(P(o),o);var h=P(A);s.has(h)||s.set(h,A)}}else o=A;l&&xb(A)?p|=8:l||xb(A)||(p&=-9),p|=(24&g?0:256)|(16&g?512:0)|(8&g?1024:0)|(32&g?2048:0),Zh(A)||(d=2)}else if(l){var y=!Ts(r)&&qc(N,r);y?(p|=32|(y.isReadonly?8:0),c=e.append(c,uf(N)?_f(N)||Be:y.type)):!gm(N)||4194304&e.getObjectFlags(N)?p|=16:(p|=32,c=e.append(c,Be))}}if(o&&!(l&&(s||48&p)&&1536&p)){if(!(s||16&p||c)){if(_){var v=Ff(o,o.type);return v.parent=null===(a=null===(i=o.valueDeclaration)||void 0===i?void 0:i.symbol)||void 0===a?void 0:a.parent,v.containingType=t,v.mapper=o.mapper,v}return o}for(var b,x,E,S,D=[],T=!1,C=0,k=s?e.arrayFrom(s.values()):[o];C<k.length;C++){var A=k[C];S?A.valueDeclaration&&A.valueDeclaration!==S&&(T=!0):S=A.valueDeclaration,b=e.addRange(b,A.declarations);var N=jo(A);x?N!==x&&(p|=64):(x=N,E=Hn(A).nameType),(nf(N)||yd(N))&&(p|=128),131072&N.flags&&(p|=131072),D.push(N)}e.addRange(D,c);var w=Rn(4|u,r,d|p);return w.containingType=t,!T&&S&&(w.valueDeclaration=S,S.symbol.parent&&(w.parent=S.symbol.parent)),w.declarations=b,w.nameType=E,D.length>2?(w.checkFlags|=65536,w.deferralParent=t,w.deferralConstituents=D):w.type=l?Hu(D):Zu(D),w}}function wc(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;return o||(o=Nc(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o),o}function Fc(t,r,n){var i=wc(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function Pc(t){return 1048576&t.flags&&33554432&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=(t=>{var r=e.sameMap(t.types,Pc);if(r===t.types)return t;var n=Hu(r);return 1048576&n.flags&&(n.resolvedReducedType=n),n})(t)):2097152&t.flags?(33554432&t.objectFlags||(t.objectFlags|=33554432|(e.some(_c(t),Ic)?67108864:0)),67108864&t.objectFlags?et:t):t}function Ic(e){return Oc(e)||Mc(e)}function Oc(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&jo(t).flags))}function Mc(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Rc(t,r){if(2097152&r.flags&&67108864&e.getObjectFlags(r)){var n=e.find(_c(r),Oc);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Pa(r,void 0,536870912),wa(n));var i=e.find(_c(r),Mc);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Pa(r,void 0,536870912),wa(i))}return t}function Lc(e,t,r){if(524288&(e=Ac(e)).flags){var n=uc(e),i=n.members.get(t);if(i&&na(i))return i;if(r)return;var a=n===yt?Nt:n.callSignatures.length?wt:n.constructSignatures.length?Ft:void 0;if(a){var o=pc(a,t);if(o)return o}return pc(At,t)}if(3145728&e.flags)return Fc(e,t,r)}function Bc(t,r){if(3670016&t.flags){var n=uc(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function jc(e,t){return Bc(Ac(e),t)}function Uc(t,r){return e.find(t,(e=>e.keyType===r))}function Vc(t,r){for(var n,i,a,o=0,s=t;o<s.length;o++){var c=s[o];c.keyType===We?n=c:zc(r,c.keyType)&&(i?(a||(a=[i])).push(c):i=c)}return a?Tl(Re,Zu(e.map(a,(e=>e.type))),e.reduceLeft(a,((e,t)=>e&&t.isReadonly),!0)):i||(n&&zc(r,We)?n:void 0)}function zc(e,t){return Xp(e,t)||t===We&&Xp(e,He)||t===He&&!!(128&e.flags)&&Ch(e.value)}function Kc(t){return 3670016&t.flags?uc(t).indexInfos:e.emptyArray}function Wc(e){return Kc(Ac(e))}function Hc(e,t){return Uc(Wc(e),t)}function Jc(e,t){var r;return null===(r=Hc(e,t))||void 0===r?void 0:r.type}function $c(e,t){return Wc(e).filter((e=>zc(t,e.keyType)))}function Gc(e,t){return Vc(Wc(e),t)}function qc(t,r){return Gc(t,Ts(r)?Qe:np(e.unescapeLeadingUnderscores(r)))}function Xc(t){for(var r,n=0,i=e.getEffectiveTypeParameterDeclarations(t);n<i.length;n++){var a=i[n];r=e.appendIfUnique(r,ps(a.symbol))}return r}function Yc(e){var t=[];return e.forEach(((e,r)=>{ua(r)||t.push(e)})),t}function Qc(t){return e.isInJSFile(t)&&(t.type&&314===t.type.kind||e.getJSDocParameterTags(t).some((e=>{var t=e.isBracketed,r=e.typeExpression;return t||!!r&&314===r.type.kind})))}function Zc(t,r){if(!e.isExternalModuleNameRelative(t)){var n=Gn(ne,'"'+t+'"',512);return n&&r?qi(n):n}}function el(t){if(e.hasQuestionToken(t)||tl(t)||Qc(t))return!0;if(t.initializer){var r=al(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=Qv(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function tl(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&314===n.type.kind}function rl(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function nl(t){var r,n=0;if(t)for(var i=0;i<t.length;i++)(r=t[i]).symbol&&e.forEach(r.symbol.declarations,(t=>e.isTypeParameterDeclaration(t)&&t.default))||(n=i+1);return n}function il(t,r,n,i){var a=e.length(r);if(!a)return[];var o=e.length(t);if(i||o>=n&&o<=a){for(var s=t?t.slice():[],c=o;c<a;c++)s[c]=Pe;var l=vm(i);for(c=o;c<a;c++){var u=Cc(r[c]);i&&u&&(Hp(u,Re)||Hp(u,_t))&&(u=Ne),s[c]=u?Rp(u,hp(r,s)):l}return s.length=r.length,s}return t&&t.slice()}function al(t){var r,n=Jn(t);if(!n.resolvedSignature){var i=[],a=0,o=0,s=void 0,c=!1,l=e.getImmediatelyInvokedFunctionExpression(t),u=e.isJSDocConstructSignature(t);!l&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t)&&(a|=32);for(var d=u?1:0;d<t.parameters.length;d++){var p=t.parameters[d],_=p.symbol,f=e.isJSDocParameterTag(p)?p.typeExpression&&p.typeExpression.type:p.type;_&&4&_.flags&&!e.isBindingPattern(p.name)&&(_=Yn(p,_.escapedName,111551,void 0,void 0,!1)),0===d&&"this"===_.escapedName?(c=!0,s=p.symbol):i.push(_),f&&195===f.kind&&(a|=2),tl(p)||p.initializer||p.questionToken||e.isRestParameter(p)||l&&i.length>l.arguments.length&&!f||Qc(p)||(o=i.length)}if((171===t.kind||172===t.kind)&&ks(t)&&(!c||!s)){var m=171===t.kind?172:171,g=e.getDeclarationOfKind(Xi(t),m);g&&(s=(r=BD(g))&&r.symbol)}var h=170===t.kind?is(qi(t.parent.symbol)):void 0,y=h?h.localTypeParameters:Xc(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&((t,r)=>{if(e.isJSDocSignature(t)||!sl(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,(t=>t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0)),o=Rn(3,"args",32768);return o.type=a?Du(dp(a.type)):jt,a&&r.pop(),r.push(o),!0})(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,128)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,128))&&(a|=4),n.resolvedSignature=Ms(t,y,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function ol(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&Gy(dp(r.typeExpression))}}function sl(t){var r=Jn(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 79:return r.escapedText===se.escapedName&&mD(r)===se;case 166:case 168:case 171:case 172:return 161===r.name.kind&&t(r.name);case 205:case 206:return t(r.expression);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function cl(t){if(!t||!t.declarations)return e.emptyArray;for(var r=[],n=0;n<t.declarations.length;n++){var i=t.declarations[n];if(e.isFunctionLike(i)){if(n>0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(al(i))}}return r}function ll(e){var t=Oi(e,e);if(t){var r=Bi(t);if(r)return jo(r)}return Ne}function ul(e){if(e.thisParameter)return jo(e.thisParameter)}function dl(t){if(!t.resolvedTypePredicate){if(t.target){var r=dl(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,rl(o.kind,o.parameterName,o.parameterIndex,Rp(o.type,s))):Er}else if(t.compositeSignatures)t.resolvedTypePredicate=((e,t)=>{for(var r,n=[],i=0,a=e;i<a.length;i++){var o=dl(a[i]);if(!o||2===o.kind||3===o.kind){if(2097152!==t)continue;return}if(r){if(!Ju(r,o))return}else r=o;n.push(o.type)}if(r){var s=pl(n,t);return rl(r.kind,r.parameterName,r.parameterIndex,s)}})(t.compositeSignatures,t.compositeKind)||Er;else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration),i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=ol(t.declaration);a&&t!==a&&(i=dl(a))}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?((t,r)=>{var n=t.parameterName,i=t.type&&dp(t.type);return 191===n.kind?rl(t.assertsModifier?2:0,void 0,void 0,i):rl(t.assertsModifier?3:1,n.escapedText,e.findIndex(r.parameters,(e=>e.escapedName===n.escapedText)),i)})(n,t):i||Er}e.Debug.assert(!!t.resolvedTypePredicate)}var o,s;return t.resolvedTypePredicate===Er?void 0:t.resolvedTypePredicate}function pl(e,t,r){return 2097152!==t?Hu(e,r):Zu(e)}function _l(t){if(!t.resolvedReturnType){if(!Ja(t,3))return Pe;var r=t.target?Rp(_l(t.target),t.mapper):t.compositeSignatures?Rp(pl(e.map(t.compositeSignatures,_l),t.compositeKind,2),t.mapper):fl(t.declaration)||(e.nodeIsMissing(t.declaration.body)?Ne:ub(t.declaration));if(8&t.flags?r=Sf(r):16&t.flags&&(r=xf(r)),!qa()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n)wn(n,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(G){var i=t.declaration,a=e.getNameOfDeclaration(i);a?wn(a,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(a)):wn(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}r=Ne}t.resolvedReturnType=r}return t.resolvedReturnType}function fl(t){if(170===t.kind)return is(qi(t.parent.symbol));if(e.isJSDocConstructSignature(t))return dp(t.parameters[0].type);var r,n=e.getEffectiveReturnTypeNode(t);if(n)return dp(n);if(171===t.kind&&ks(t)){var i=e.isInJSFile(t)&&lo(t);if(i)return i;var a=Fo(e.getDeclarationOfKind(Xi(t),172));if(a)return a}return(r=ol(t))&&_l(r)}function ml(e){return!e.resolvedReturnType&&$a(e,3)>=0}function gl(e){if(L(e)){var t=jo(e.parameters[e.parameters.length-1]),r=uf(t)?_f(t):t;return r&&Jc(r,He)}}function hl(e,t,r,n){var i=yl(e,il(t,e.typeParameters,nl(e.typeParameters),r));if(n){var a=qy(_l(i));if(a){var o=Rs(a);o.typeParameters=n;var s=Rs(i);return s.resolvedReturnType=El(o),s}}return i}function yl(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=Pl(r),a=n.get(i);return a||n.set(i,a=vl(t,r)),a}function vl(e,t){return kp(e,((e,t)=>hp(e.typeParameters,t))(e,t),!0)}function bl(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=(e=>kp(e,Ep(e.typeParameters),!0))(e)):e}function xl(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=Ep(r),i=hp(r,e.map(r,(e=>gc(e)||Re))),a=e.map(r,(e=>Rp(e,i)||Re)),o=0;o<r.length-1;o++)a=fp(a,i);return a=fp(a,n),t.baseSignatureCache=kp(t,hp(r,a),!0)}return t}function El(t){if(!t.isolatedSignatureType){var r=t.declaration?t.declaration.kind:0,n=170===r||174===r||179===r,i=ca(16);i.members=D,i.properties=e.emptyArray,i.callSignatures=n?e.emptyArray:[t],i.constructSignatures=n?[t]:e.emptyArray,i.indexInfos=e.emptyArray,t.isolatedSignatureType=i}return t.isolatedSignatureType}function Sl(e){return e.members?Dl(e.members):void 0}function Dl(e){return e.get("__index")}function Tl(e,t,r,n){return{keyType:e,type:t,isReadonly:r,declaration:n}}function Cl(t){var r=Sl(t);return r?kl(r):e.emptyArray}function kl(t){if(t.declarations){for(var r=[],n=t=>{if(1===t.parameters.length){var n=t.parameters[0];n.type&&rg(dp(n.type),(n=>{Al(n)&&!Uc(r,n)&&r.push(Tl(n,t.type?dp(t.type):Ne,e.hasEffectiveModifier(t,64),t))}))}},i=0,a=t.declarations;i<a.length;i++)n(a[i]);return r}return e.emptyArray}function Al(t){return!!(4108&t.flags)||yd(t)||!!(2097152&t.flags)&&!vd(t)&&e.some(t.types,Al)}function Nl(t){return e.mapDefined(e.filter(t.symbol&&t.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function wl(t){if(!t.constraint)if(t.target){var r=gc(t.target);t.constraint=r?Rp(r,t.mapper):vt}else{var n=Nl(t);if(n){var i=dp(n);1&i.flags&&!Za(i)&&(i=194===n.parent.parent.kind?ct:Re),t.constraint=i}else t.constraint=(t=>{var r,n;if(null===(r=t.symbol)||void 0===r?void 0:r.declarations)for(var i=0,a=t.symbol.declarations;i<a.length;i++){var o=a[i];if(189===o.parent.kind){var s=e.walkUpParenthesizedTypesAndGetParentAndChild(o.parent.parent),c=s[0],l=void 0===c?o.parent:c,u=s[1];if(177===u.kind){var d=u,p=gx(d);if(p){var _=d.typeArguments.indexOf(l);if(_<p.length){var f=gc(p[_]);if(f){var m=Rp(f,hp(p,fx(d,p)));m!==t&&(n=e.append(n,m))}}}}else if(163===u.kind&&u.dotDotDotToken||185===u.kind||196===u.kind&&u.dotDotDotToken)n=e.append(n,Du(Re));else if(198===u.kind)n=e.append(n,We);else if(162===u.kind&&194===u.parent.kind)n=e.append(n,ct);else if(194===u.kind&&u.type&&e.skipParentheses(u.type)===o.parent&&188===u.parent.kind&&u.parent.extendsType===u&&194===u.parent.checkType.kind&&u.parent.checkType.type){var g=u.parent.checkType,h=dp(g.type);n=e.append(n,Rp(h,vp(ps(Xi(g.typeParameter)),g.typeParameter.constraint?dp(g.typeParameter.constraint):ct)))}}}return n&&Zu(n)})(t)||vt}return t.constraint===vt?void 0:t.constraint}function Fl(t){var r=e.getDeclarationOfKind(t.symbol,162),n=e.isJSDocTemplateTag(r.parent)?e.getEffectiveContainerForJSDocTemplateTag(r.parent):r.parent;return n&&Xi(n)}function Pl(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var i=e[n].id,a=1;n+a<r&&e[n+a].id===i+a;)a++;t.length&&(t+=","),t+=i,a>1&&(t+=":"+a),n+=a}return t}function Ml(e,t){return e?"@".concat(P(e))+(t?":".concat(Pl(t)):""):""}function Ll(t,r){for(var n=0,i=0,a=t;i<a.length;i++){var o=a[i];o.flags&r||(n|=e.getObjectFlags(o))}return 917504&n}function Bl(e,t){var r=Pl(t),n=e.instantiations.get(r);return n||(n=ca(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?Ll(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function jl(e){var t=aa(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Ul(e,t,r,n,i){if(!n){var a=Jd(n=Hd(t));i=r?fp(a,r):a}var o=ca(4,e.symbol);return o.target=e,o.node=t,o.mapper=r,o.aliasSymbol=n,o.aliasTypeArguments=i,o}function Vl(t){var r,n;if(!t.resolvedTypeArguments){if(!Ja(t,6))return(null===(r=t.target.localTypeParameters)||void 0===r?void 0:r.map((()=>Pe)))||e.emptyArray;var i=t.node,a=i?177===i.kind?e.concatenate(t.target.outerTypeParameters,fx(i,t.target.localTypeParameters)):182===i.kind?[dp(i.elementType)]:e.map(i.elements,dp):e.emptyArray;qa()?t.resolvedTypeArguments=t.mapper?fp(a,t.mapper):a:(t.resolvedTypeArguments=(null===(n=t.target.localTypeParameters)||void 0===n?void 0:n.map((()=>Pe)))||e.emptyArray,wn(t.node||c,t.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,t.target.symbol&&wa(t.target.symbol)))}return t.resolvedTypeArguments}function zl(t){return e.length(t.target.typeParameters)}function Kl(t,r){var n=_s(qi(r)),i=n.localTypeParameters;if(i){var a=e.length(t.typeArguments),o=nl(i),s=e.isInJSFile(t);if((G||!s)&&(a<o||a>i.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(wn(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Pa(n,void 0,2),o,i.length),!s)return Pe}return 177===t.kind&&ku(t,e.length(t.typeArguments)!==i.length)?Ul(n,t,void 0):Bl(n,e.concatenate(n.outerTypeParameters,il(iu(t),i,o,s)))}return tu(t,r)?n:Pe}function Wl(t,r,n,i){var a=_s(t);if(a===Me&&A.has(t.escapedName)&&r&&1===r.length)return dd(t,r[0]);var o=Hn(t),s=o.typeParameters,c=Pl(r)+Ml(n,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=Lp(a,hp(s,il(r,s,nl(s),e.isInJSFile(t.valueDeclaration))),n,i)),l}function Hl(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function Jl(e){return e.parent?"".concat(Jl(e.parent),".").concat(e.escapedName):e.escapedName}function $l(e){var t=(160===e.kind?e.right:205===e.kind?e.name:e).escapedText;if(t){var r=160===e.kind?$l(e.left):205===e.kind?$l(e.expression):void 0,n=r?"".concat(Jl(r),".").concat(t):t,i=ke.get(n);return i||(ke.set(n,i=Rn(524288,t,1048576)),i.parent=r,i.declaredType=Ie),i}return Te}function Gl(t,r,n){var i=(t=>{switch(t.kind){case 177:return t.typeName;case 227:var r=t.expression;if(e.isEntityNameExpression(r))return r}})(t);if(!i)return Te;var a=Pi(i,r,n);return a&&a!==Te?a:n?Te:$l(i)}function ql(t,r){if(r===Te)return Pe;if(96&(r=(t=>{var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=Xi(n);if(i)return Nv(i,t)}}})(r)||r).flags)return Kl(t,r);if(524288&r.flags)return((t,r)=>{if(1048576&e.getCheckFlags(r)){var n=iu(t),i=Ml(r,n),a=Ae.get(i);return a||((a=sa(1,"error")).aliasSymbol=r,a.aliasTypeArguments=n,Ae.set(i,a)),a}var o=_s(r),s=Hn(r).typeParameters;if(s){var c=e.length(t.typeArguments),l=nl(s);if(c<l||c>s.length)return wn(t,l===s.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,wa(r),l,s.length),Pe;var u=Hd(t),d=!u||!Hl(r)&&Hl(u)?void 0:u;return Wl(r,iu(t),d,Jd(d))}return tu(t,r)?o:Pe})(t,r);var n=fs(r);return n?tu(t,r)?tp(n):Pe:111551&r.flags&&eu(t)?((e,t)=>{var r=Jn(e);if(!r.resolvedJSDocType){var n=jo(t),i=n;if(t.valueDeclaration){var a=199===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=ql(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType})(t,r)||(Gl(t,788968),jo(r)):Pe}function Xl(e,t){if(3&t.flags||t===e)return e;var r="".concat(Bu(e),">").concat(Bu(t)),n=xe.get(r);if(n)return n;var i=aa(33554432);return i.baseType=e,i.substitute=t,xe.set(r,i),i}function Yl(e){return 183===e.kind&&1===e.elements.length}function Ql(e,t,r){return Yl(t)&&Yl(r)?Ql(e,t.elements[0],r.elements[0]):Id(dp(t))===e?dp(r):void 0}function Zl(t,r){for(var n,i=!0;r&&!e.isStatement(r)&&318!==r.kind;){var a=r.parent;if(163===a.kind&&(i=!i),(i||8650752&t.flags)&&188===a.kind&&r===a.trueType){var o=Ql(t,a.checkType,a.extendsType);o&&(n=e.append(n,o))}r=a}return n?Xl(t,Zu(e.append(n,t))):t}function eu(e){return!!(4194304&e.flags)&&(177===e.kind||199===e.kind)}function tu(t,r){return!t.typeArguments||(wn(t,e.Diagnostics.Type_0_is_not_generic,r?wa(r):t.typeName?e.declarationNameToString(t.typeName):o),!1)}function ru(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return tu(t),We;case"Number":return tu(t),He;case"Boolean":return tu(t),Ye;case"Void":return tu(t),Ze;case"Undefined":return tu(t),Be;case"Null":return tu(t),ze;case"Function":case"function":return tu(t),Nt;case"array":return r&&r.length||G?void 0:jt;case"promise":return r&&r.length||G?void 0:sb(Ne);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=dp(r[0]),i=dp(r[1]),a=n===We||n===He?[Tl(n,i,!1)]:e.emptyArray;return fa(void 0,D,e.emptyArray,e.emptyArray,a)}return Ne}return tu(t),G?void 0:Ne}}}function nu(t){var r=Jn(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=Te,r.resolvedType=Ub(t.parent.expression);var n=void 0,i=void 0,a=788968;eu(t)&&((i=ru(t))||((n=Gl(t,a,!0))===Te?n=Gl(t,900095):Gl(t,a),i=ql(t,n))),i||(i=ql(t,n=Gl(t,a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function iu(t){return e.map(t.typeArguments,dp)}function au(t){var r=Jn(t);if(!r.resolvedType){var n=e.isThisIdentifier(t.exprName)?Hg(t.exprName):ix(t.exprName);r.resolvedType=tp(Bf(n))}return r.resolvedType}function ou(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];switch(i.kind){case 256:case 257:case 259:return i}}}if(!t)return r?ht:_t;var i=_s(t);return 524288&i.flags?e.length(i.typeParameters)!==r?(wn(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?ht:_t):i:(wn(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?ht:_t)}function su(t,r){return uu(t,111551,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function cu(t,r){return uu(t,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}function lu(t,r,n){var i=uu(t,788968,n?e.Diagnostics.Cannot_find_global_type_0:void 0);if(!i||(_s(i),e.length(Hn(i).typeParameters)===r))return i;wn(i.declarations&&e.find(i.declarations,e.isTypeAliasDeclaration),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(i),r)}function uu(e,t,r){return Yn(void 0,e,t,r,e,!1,!1,!1)}function du(e,t,r){var n=cu(e,r);return n||r?ou(n,t):void 0}function pu(){return cr||(cr=du("ImportMeta",0,!0)||_t)}function _u(e){return ur||(ur=du("ImportCallOptions",0,e))||_t}function fu(e){return Kt||(Kt=su("Symbol",e))}function mu(e){return Ht||(Ht=du("Symbol",0,e))||_t}function gu(e){return $t||($t=du("Promise",1,e))||ht}function hu(e){return Gt||(Gt=du("PromiseLike",1,e))||ht}function yu(e){return qt||(qt=su("Promise",e))}function vu(e){return Yt||(Yt=du("Iterable",1,e))||ht}function bu(e,t){void 0===t&&(t=0);var r=uu(e,788968,void 0);return r&&ou(r,t)}function xu(e){return _r||(_r=lu("Awaited",1,e)||(e?Te:void 0)),_r===Te?void 0:_r}function Eu(e,t){return e!==ht?Bl(e,t):_t}function Su(e){return Eu(Jt||(Jt=du("TypedPropertyDescriptor",1,!0)||ht),[e])}function Du(e,t){return Eu(t?It:Pt,[e])}function Tu(e){switch(e.kind){case 184:return 2;case 185:return Cu(e);case 196:return e.questionToken?2:e.dotDotDotToken?Cu(e):1;default:return 1}}function Cu(e){return up(e.type)?4:8}function ku(t,r){return!!Hd(t)||Au(t)&&(182===t.kind?Nu(t.elementType):183===t.kind?e.some(t.elements,Nu):r||e.some(t.typeArguments,Nu))}function Au(e){var t=e.parent;switch(t.kind){case 190:case 196:case 177:case 186:case 187:case 193:case 188:case 192:case 182:case 183:return Au(t);case 258:return!0}return!1}function Nu(t){switch(t.kind){case 177:return eu(t)||!!(524288&Gl(t,788968).flags);case 180:return!0;case 192:return 153!==t.operator&&Nu(t.type);case 190:case 184:case 196:case 314:case 312:case 313:case 307:return Nu(t.type);case 185:return 182!==t.type.kind||Nu(t.type.elementType);case 186:case 187:return e.some(t.types,Nu);case 193:return Nu(t.objectType)||Nu(t.indexType);case 188:return Nu(t.checkType)||Nu(t.extendsType)||Nu(t.trueType)||Nu(t.falseType)}return!1}function wu(t,r,n,i){void 0===n&&(n=!1);var a=Fu(r||e.map(t,(e=>1)),n,i);return a===ht?_t:t.length?Pu(a,t):a}function Fu(t,r,n){if(1===t.length&&4&t[0])return r?It:Pt;var i=e.map(t,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(r?"R":"")+(n&&n.length?","+e.map(n,F).join(","):""),a=de.get(i);return a||de.set(i,a=((t,r,n)=>{var i,a=t.length,o=e.countWhere(t,(e=>!!(9&e))),s=[],c=0;if(a){i=new Array(a);for(var l=0;l<a;l++){var u=i[l]=la(),d=t[l];if(!(12&(c|=d))){var p=Rn(4|(2&d?16777216:0),""+l,r?8:0);p.tupleLabelDeclaration=null==n?void 0:n[l],p.type=u,s.push(p)}}}var _=s.length,f=Rn(4,"length");if(12&c)f.type=He;else{var m=[];for(l=o;l<=a;l++)m.push(ip(l));f.type=Hu(m)}s.push(f);var g=ca(12);return g.typeParameters=i,g.outerTypeParameters=void 0,g.localTypeParameters=i,g.instantiations=new e.Map,g.instantiations.set(Pl(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=la(),g.thisType.isThisType=!0,g.thisType.constraint=g,g.declaredProperties=s,g.declaredCallSignatures=e.emptyArray,g.declaredConstructSignatures=e.emptyArray,g.declaredIndexInfos=e.emptyArray,g.elementFlags=t,g.minLength=o,g.fixedLength=_,g.hasRestElement=!!(12&c),g.combinedFlags=c,g.readonly=r,g.labeledElementDeclarations=n,g})(t,r,n)),a}function Pu(e,t){return 8&e.objectFlags?Iu(e,t):Bl(e,t)}function Iu(t,r){var n,i,a;if(!(14&t.combinedFlags))return Bl(t,r);if(8&t.combinedFlags){var o=e.findIndex(r,((e,r)=>!!(8&t.elementFlags[r]&&1179648&e.flags)));if(o>=0)return td(e.map(r,((e,r)=>8&t.elementFlags[r]?e:Re)))?cg(r[o],(n=>Iu(t,e.replaceElement(r,o,n)))):Pe}for(var s=[],l=[],u=[],d=-1,p=-1,_=-1,f=o=>{var l=r[o],u=t.elementFlags[o];if(8&u)if(58982400&l.flags||lc(l))y(l,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(uf(l)){var d=Vl(l);if(d.length+s.length>=1e4)return wn(c,e.isPartOfTypeNode(c)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Pe};e.forEach(d,((e,t)=>{var r;return y(e,l.target.elementFlags[t],null===(r=l.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else y(G_(l)&&Jc(l,He)||Pe,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else y(l,u,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},m=0;m<r.length;m++){var g=f(m);if("object"==typeof g)return g.value}for(m=0;m<d;m++)2&l[m]&&(l[m]=1);p>=0&&p<_&&(s[p]=Hu(e.sameMap(s.slice(p,_+1),((e,t)=>8&l[p+t]?Ad(e,He):e))),s.splice(p+1,_-p),l.splice(p+1,_-p),null==u||u.splice(p+1,_-p));var h=Fu(l,t.readonly,u);return h===ht?_t:l.length?Bl(h,s):h;function y(e,t,r){1&t&&(d=l.length),4&t&&p<0&&(p=l.length),6&t&&(_=l.length),s.push(e),l.push(t),u&&r?u.push(r):u=void 0}}function Ou(t,r,n){void 0===n&&(n=0);var i=t.target,a=zl(t)-n;return r>i.fixedLength?(e=>{var t=_f(e);return t&&Du(t)})(t)||wu(e.emptyArray):wu(Vl(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function Mu(t){return Hu(e.append(e.arrayOf(t.target.fixedLength,(e=>np(""+e))),sd(t.target.readonly?It:Pt)))}function Ru(t,r){var n=e.findIndex(t.elementFlags,(e=>!(e&r)));return n>=0?n:t.elementFlags.length}function Lu(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(e=>!(e&r)))-1}function Bu(e){return e.id}function ju(t,r){return e.binarySearch(t,r,Bu,e.compareValues)>=0}function Uu(t,r){var n=e.binarySearch(t,r,Bu,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function Vu(t,r,n){var i=n.flags;if(1048576&i)return zu(t,r|((e=>!!(1048576&e.flags&&(e.aliasSymbol||e.origin)))(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,465829888&i&&(r|=33554432),n===Fe&&(r|=8388608),!W&&98304&i)131072&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Bu,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function zu(e,t,r){for(var n=0,i=r;n<i.length;n++)t=Vu(e,t,i[n]);return t}function Ku(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(1048576&a.flags){var o=a.origin;a.aliasSymbol||o&&!(1048576&o.flags)?e.pushIfUnique(t,a):o&&1048576&o.flags&&Ku(t,o.types)}}}function Wu(e,t){var r=oa(e);return r.types=t,r}function Hu(t,r,n,i,a){if(void 0===r&&(r=1),0===t.length)return et;if(1===t.length)return t[0];var o=[],s=zu(o,0,t);if(0!==r){if(3&s)return 1&s?8388608&s?Fe:Ne:65536&s||ju(o,Re)?Re:Le;if(Z&&32768&s){var l=e.binarySearch(o,Ve,Bu,e.compareValues);l>=0&&ju(o,Be)&&e.orderedRemoveItemAt(o,l)}if((402664320&s||16384&s&&32768&s)&&((t,r,n)=>{for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||rp(a)&&ju(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}})(o,s,!!(2&r)),128&s&&134217728&s&&(t=>{var r=e.filter(t,yd);if(r.length)for(var n=t.length,i=()=>{n--;var i=t[n];128&i.flags&&e.some(r,(e=>um(i,e)))&&e.orderedRemoveItemAt(t,n)};n>0;)i()})(o),2===r&&!(o=((t,r)=>{var n=Pl(t),i=Ee.get(n);if(i)return i;for(var a=r&&e.some(t,(e=>!!(524288&e.flags)&&!lc(e)&&p_(uc(e)))),o=t.length,s=o,l=0;s>0;){var u=t[--s];if(a||469499904&u.flags)for(var d=61603840&u.flags?e.find(fc(u),(e=>tf(jo(e)))):void 0,p=d&&tp(jo(d)),_=0,f=t;_<f.length;_++){var m=f[_];if(u!==m){if(1e5===l&&l/(o-s)*o>1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((e=>e.id))}),void wn(c,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,d&&61603840&m.flags){var g=Ya(m,d.escapedName);if(g&&tf(g)&&tp(g)!==p)continue}if(y_(u,m,yn)&&(!(1&e.getObjectFlags(zo(u)))||!(1&e.getObjectFlags(zo(m)))||Yp(u,m))){e.orderedRemoveItemAt(t,s);break}}}}return Ee.set(n,t),t})(o,!!(524288&s))))return Pe;if(0===o.length)return 65536&s?4194304&s?ze:Ke:32768&s?4194304&s?Be:je:et}if(!a&&1048576&s){var u=[];Ku(u,t);for(var d=[],p=t=>{e.some(u,(e=>ju(e.types,t)))||d.push(t)},_=0,f=o;_<f.length;_++)p(f[_]);if(!n&&1===u.length&&0===d.length)return u[0];if(e.reduceLeft(u,((e,t)=>e+t.types.length),0)+d.length===o.length){for(var m=0,g=u;m<g.length;m++)Uu(d,g[m]);a=Wu(1048576,d)}}return $u(o,(36323363&s?0:65536)|(2097152&s?33554432:0),n,i,a)}function Ju(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function $u(e,t,r,n,i){if(0===e.length)return et;if(1===e.length)return e[0];var a=(i?1048576&i.flags?"|".concat(Pl(i.types)):2097152&i.flags?"&".concat(Pl(i.types)):"#".concat(i.type.id,"|").concat(Pl(e)):Pl(e))+Ml(r,n),o=pe.get(a);return o||((o=aa(1048576)).objectFlags=t|Ll(e,98304),o.types=e,o.origin=i,o.aliasSymbol=r,o.aliasTypeArguments=n,2===e.length&&512&e[0].flags&&512&e[1].flags&&(o.flags|=16,o.intrinsicName="boolean"),pe.set(a,o)),o}function Gu(e,t,r){var n=r.flags;return 2097152&n?qu(e,t,r.types):(f_(r)?16777216&t||(t|=16777216,e.set(r.id.toString(),r)):(3&n?r===Fe&&(t|=8388608):!W&&98304&n||(Z&&r===Ve&&(t|=262144,r=Be),e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r))),t|=205258751&n),t)}function qu(e,t,r){for(var n=0,i=r;n<i.length;n++)t=Gu(e,t,tp(i[n]));return t}function Xu(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!ju(i.types,t)){var a=128&t.flags?We:256&t.flags?He:2048&t.flags?Je:8192&t.flags?Qe:void 0;if(!a||!ju(i.types,a))return!1}}return!0}function Yu(t,r){return e.every(t,(t=>!!(1048576&t.flags)&&e.some(t.types,(e=>!!(e.flags&r)))))}function Qu(e,t){for(var r=0;r<e.length;r++)e[r]=ag(e[r],(e=>!(e.flags&t)))}function Zu(t,r,n){var i=new e.Map,a=qu(i,0,t),o=e.arrayFrom(i.values());if(131072&a)return e.contains(o,tt)?tt:et;if(W&&98304&a&&84410368&a||67108864&a&&402783228&a||402653316&a&&67238776&a||296&a&&469891796&a||2112&a&&469889980&a||12288&a&&469879804&a||49152&a&&469842940&a)return et;if(134217728&a&&128&a&&(t=>{for(var r=t.length,n=e.filter(t,(e=>!!(128&e.flags)));r>0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a<o.length;a++){if(qp(o[a],i)){e.orderedRemoveItemAt(t,r);break}if(yd(i))return!0}}return!1})(o))return et;if(1&a)return 8388608&a?Fe:Ne;if(!W&&98304&a)return 32768&a?Be:ze;if((4&a&&128&a||8&a&&256&a||64&a&&2048&a||4096&a&&8192&a)&&((t,r)=>{for(var n=t.length;n>0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}})(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,f_)),262144&a&&(o[o.indexOf(Be)]=Ve),0===o.length)return Re;if(1===o.length)return o[0];var s=Pl(o)+Ml(r,n),c=_e.get(s);if(!c){if(1048576&a)if((t=>{var r,n=e.findIndex(t,(t=>!!(65536&e.getObjectFlags(t))));if(n<0)return!1;for(var i=n+1;i<t.length;){var a=t[i];65536&e.getObjectFlags(a)?((r||(r=[t[n]])).push(a),e.orderedRemoveItemAt(t,i)):i++}if(!r)return!1;for(var o=[],s=[],c=0,l=r;c<l.length;c++)for(var u=0,d=l[c].types;u<d.length;u++)Uu(o,a=d[u])&&Xu(r,a)&&Uu(s,a);return t[n]=$u(s,65536),!0})(o))c=Zu(o,r,n);else if(Yu(o,32768)){var l=Z&&e.some(o,(e=>ju(e.types,Ve)))?Ve:Be;Qu(o,32768),c=Hu([Zu(o),l],1,r,n)}else if(Yu(o,65536))Qu(o,65536),c=Hu([Zu(o),ze],1,r,n);else{if(!td(o))return Pe;var u=(e=>{for(var t=ed(e),r=[],n=0;n<t;n++){for(var i=e.slice(),a=n,o=e.length-1;o>=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var l=Zu(i);131072&l.flags||r.push(l)}return r})(o);c=Hu(u,1,r,n,e.some(u,(e=>!!(2097152&e.flags)))?Wu(2097152,o):void 0)}else c=((e,t,r)=>{var n=aa(2097152);return n.objectFlags=Ll(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n})(o,r,n);_e.set(s,c)}return c}function ed(t){return e.reduceLeft(t,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function td(t){var r=ed(t);return!(r>=1e5&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((e=>e.id)),size:r}),wn(c,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function rd(e,t){var r=aa(4194304);return r.type=e,r.stringsOnly=t,r}function nd(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=rd(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=rd(e,!1))}function id(t){return e.isPrivateIdentifier(t)?et:e.isIdentifier(t)?np(e.unescapeLeadingUnderscores(t.escapedText)):tp(e.isComputedPropertyName(t)?kh(t):ix(t))}function ad(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=Hn(Ps(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?np("default"):a&&id(a)||(e.isKnownSymbol(t)?void 0:np(e.symbolName(t)))}if(i&&i.flags&r)return i}return et}function od(t,r){return!!(t.flags&r||2097152&t.flags&&e.some(t.types,(e=>od(e,r))))}function sd(t,r,n){return void 0===r&&(r=Y),1048576&(t=Pc(t)).flags?Zu(e.map(t.types,(e=>sd(e,r,n)))):2097152&t.flags?Hu(e.map(t.types,(e=>sd(e,r,n)))):58982400&t.flags||df(t)||lc(t)&&(a=Zs(i=t),!function t(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===a:137363456&r.flags?e.every(r.types,t):8388608&r.flags?t(r.objectType)&&t(r.indexType):33554432&r.flags?t(r.substitute):!!(268435456&r.flags)&&t(r.type))}(tc(i)||a))?nd(t,r):32&e.getObjectFlags(t)?((e,t,r)=>{var n=Zs(e),i=ec(e),a=tc(e.target||e);if(!a&&!r)return i;var o=[];if(ic(e)){if(xd(i))return nd(e,t);Qs(kc(ac(e)),8576,t,c)}else rg(Xs(i),c);xd(i)&&rg(i,c);var s=r?ag(Hu(o),(e=>!(5&e.flags))):Hu(o);return 1048576&s.flags&&1048576&i.flags&&Pl(s.types)===Pl(i.types)?i:s;function c(t){var r=a?Rp(a,Tp(e.mapper,n,t)):t;o.push(r===We?ot:r)}})(t,r,n):t===Fe?Fe:2&t.flags?et:131073&t.flags?ct:((t,r,n)=>{var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?(e=>{var t=oa(4194304);return t.type=e,t})(t):void 0,a=e.map(fc(t),(e=>ad(e,r))),o=e.map(Wc(t),(e=>e!==kr&&od(e.keyType,r)?e.keyType===We&&8&r?ot:e.keyType:et));return Hu(e.concatenate(a,o),1,void 0,void 0,i)})(t,(n?128:402653316)|(r?0:12584),r===Y&&!n);var i,a}function cd(e){if(Y)return e;var t=(dr||(dr=lu("Extract",2,!0)||Te),dr===Te?void 0:dr);return t?Wl(t,[e,We]):We}function ld(t,r){var n=e.findIndex(r,(e=>!!(1179648&e.flags)));if(n>=0)return td(r)?cg(r[n],(i=>ld(t,e.replaceElement(r,n,i)))):Pe;if(e.contains(r,Fe))return Fe;var i=[],a=[],o=t[0];if(!function e(t,r){for(var n=0;n<r.length;n++){var s=r[n];if(101248&s.flags)o+=ud(s)||"",o+=t[n+1];else if(134217728&s.flags){if(o+=s.texts[0],!e(s.texts,s.types))return!1;o+=t[n+1]}else{if(!xd(s)&&!hd(s))return!1;i.push(s),a.push(o),o=t[n+1]}}return!0}(t,r))return We;if(0===i.length)return np(o);if(a.push(o),e.every(a,(e=>""===e))&&e.every(i,(e=>!!(4&e.flags))))return We;var s="".concat(Pl(i),"|").concat(e.map(a,(e=>e.length)).join(","),"|").concat(a.join("")),c=ve.get(s);return c||ve.set(s,c=((e,t)=>{var r=aa(134217728);return r.texts=e,r.types=t,r})(a,i)),c}function ud(t){return 128&t.flags?t.value:256&t.flags?""+t.value:2048&t.flags?e.pseudoBigIntToString(t.value):98816&t.flags?t.intrinsicName:void 0}function dd(e,t){return 1179648&t.flags?cg(t,(t=>dd(e,t))):xd(t)?((e,t)=>{var r="".concat(P(e),",").concat(Bu(t)),n=be.get(r);return n||be.set(r,n=((e,t)=>{var r=aa(268435456);return r.symbol=e,r.type=t,r})(e,t)),n})(e,t):128&t.flags?np(((e,t)=>{switch(A.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t})(e,t.value)):t}function pd(t){if(G)return!1;if(8192&e.getObjectFlags(t))return!0;if(1048576&t.flags)return e.every(t.types,pd);if(2097152&t.flags)return e.some(t.types,pd);if(465829888&t.flags){var r=Dc(t);return r!==t&&pd(r)}return!1}function _d(t,r){return Ss(t)?As(t):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function fd(t,r){if(8208&r.flags){var n=e.findAncestor(t.parent,(t=>!e.isAccessExpression(t)))||t.parent;return e.isCallLikeExpression(n)?e.isCallOrNewExpression(n)&&e.isIdentifier(t)&&Mm(n,t):e.every(r.declarations,(t=>!e.isFunctionLike(t)||!!(134217728&e.getCombinedNodeFlags(t))))}return!0}function md(t,r,n,i,a,o){var s,c=a&&206===a.kind?a:void 0,l=a&&e.isPrivateIdentifier(a)?void 0:_d(n,a);if(void 0!==l){if(256&o)return sh(r,l)||Ne;var u=Lc(r,l);if(u){if(64&o&&a&&u.declarations&&134217728&Qh(u)&&fd(a,u)&&Mn(null!==(s=null==c?void 0:c.argumentExpression)&&void 0!==s?s:e.isIndexedAccessTypeNode(a)?a.indexType:a,u.declarations,l),c){if(Py(u,c,Iy(c.expression,r.symbol)),Eb(c,u,e.getAssignmentTargetKind(c)))return void wn(c.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,wa(u));if(8&o&&(Jn(a).resolvedSymbol=u),hy(c,u))return we}var d=jo(u);return c&&1!==e.getAssignmentTargetKind(c)?wg(c,d):d}if(ig(r,uf)&&Ch(l)&&+l>=0){if(a&&ig(r,(e=>!e.target.hasRestElement))&&!(16&o)){var p=gd(a);uf(r)?wn(p,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Pa(r),zl(r),e.unescapeLeadingUnderscores(l)):wn(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Pa(r))}return b(Hc(r,He)),cg(r,(e=>{var t=_f(e)||Be;return 1&o?Hu([t,Be]):t}))}}if(!(98304&n.flags)&&Cb(n,402665900)){if(131073&r.flags)return r;var _=Gc(r,n)||Hc(r,We);if(_)return 2&o&&_.keyType!==He?void(c&&wn(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Pa(n),Pa(t))):a&&_.keyType===We&&!Cb(n,12)?(wn(p=gd(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Pa(n)),1&o?Hu([_.type,Be]):_.type):(b(_),1&o?Hu([_.type,Be]):_.type);if(131072&n.flags)return et;if(pd(r))return Ne;if(c&&!Ab(r)){if(gm(r)){if(G&&384&n.flags)return _n.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Pa(r))),Be;if(12&n.flags){var f=e.map(r.properties,(e=>jo(e)));return Hu(e.append(f,Be))}}if(r.symbol===ae&&void 0!==l&&ae.exports.has(l)&&418&ae.exports.get(l).flags)wn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Pa(r));else if(G&&!j.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&Dy(l,r)){var m=Pa(r);wn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,m,m+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(Jc(r,He))wn(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var g=void 0;if(void 0!==l&&(g=Ay(l,r)))void 0!==g&&wn(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,Pa(r),g);else{var h=((t,r,n)=>{var i=e.isAssignmentTarget(r)?"set":"get";if((e=>{var r=pc(t,e);if(r){var i=Gy(jo(r));return!!i&&Qv(i)>=1&&Xp(n,Gv(i,0))}return!1})(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(r.expression);return void 0===a?a=i:a+="."+i,a}})(r,c,n);if(void 0!==h)wn(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Pa(r),h);else{var y=void 0;if(1024&n.flags)y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Pa(n)+"]",Pa(r));else if(8192&n.flags){var v=Fi(n.symbol,c);y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+v+"]",Pa(r))}else 128&n.flags||256&n.flags?y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Pa(r)):12&n.flags&&(y=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Pa(n),Pa(r)));y=e.chainDiagnosticMessages(y,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Pa(i),Pa(r)),_n.add(e.createDiagnosticForNodeFromMessageChain(c,y))}}}return}}return pd(r)?Ne:(a&&(p=gd(a),384&n.flags?wn(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,Pa(r)):12&n.flags?wn(p,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Pa(r),Pa(n)):wn(p,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Pa(n))),Qa(n)?n:void 0);function b(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&wn(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Pa(r))}}function gd(e){return 206===e.kind?e.argumentExpression:193===e.kind?e.indexType:161===e.kind?e.expression:e}function hd(e){return!!(77&e.flags)}function yd(t){return!!(134217728&t.flags)&&e.every(t.types,hd)}function vd(e){return!!Ed(e)}function bd(e){return!!(8388608&Ed(e))}function xd(e){return!!(16777216&Ed(e))}function Ed(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|e.reduceLeft(t.types,((e,t)=>e|Ed(t)),0)),25165824&t.objectFlags):33554432&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|Ed(t.substitute)|Ed(t.baseType)),25165824&t.objectFlags):(58982400&t.flags||lc(t)||df(t)?8388608:0)|(465829888&t.flags&&!yd(t)?16777216:0)}function Sd(e){return!!(262144&e.flags&&e.isThisType)}function Dd(t,r){return 8388608&t.flags?((t,r)=>{var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===bt?t:t[n];t[n]=bt;var i=Dd(t.objectType,r),a=Dd(t.indexType,r),o=((t,r,n)=>{if(1048576&r.flags){var i=e.map(r.types,(e=>Dd(Ad(t,e),n)));return n?Zu(i):Hu(i)}})(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=Td(i,a,r);if(s)return t[n]=s}if(df(i)&&296&a.flags){var c=ff(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}return lc(i)?t[n]=cg(kd(i,t.indexType),(e=>Dd(e,r))):t[n]=t})(t,r):16777216&t.flags?((e,t)=>{var r=e.checkType,n=e.extendsType,i=Bd(e),a=jd(e);if(131072&a.flags&&Id(i)===Id(r)){if(1&r.flags||Xp(jp(r),jp(n)))return Dd(i,t);if(Cd(r,n))return et}else if(131072&i.flags&&Id(a)===Id(r)){if(!(1&r.flags)&&Xp(jp(r),jp(n)))return et;if(1&r.flags||Cd(r,n))return Dd(a,t)}return e})(t,r):t}function Td(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(e=>Dd(Ad(e,r),n)));return 2097152&t.flags||n?Zu(i):Hu(i)}}function Cd(e,t){return!!(131072&Hu([Hs(e,t),et]).flags)}function kd(e,t){var r=hp([Zs(e)],[t]),n=Sp(e.mapper,r);return Rp(rc(e),n)}function Ad(e,t,r,n,i,a){return void 0===r&&(r=0),wd(e,t,r,n,i,a)||(n?Pe:Re)}function Nd(e,t){return ig(e,(e=>{if(384&e.flags){var r=As(e);if(Ch(r)){var n=+r;return n>=0&&n<t}}return!1}))}function wd(e,t,r,n,i,a){if(void 0===r&&(r=0),e===Fe||t===Fe)return Fe;if(!m_(e)||98304&t.flags||!Cb(t,12)||(t=We),j.noUncheckedIndexedAccess&&32&r&&(r|=1),xd(t)||(n&&193!==n.kind?df(e)&&!Nd(t,e.target.fixedLength):bd(e)&&(!uf(e)||!Nd(t,e.target.fixedLength)))){if(3&e.flags)return e;var o=1&r,s=e.id+","+t.id+","+o+Ml(i,a),c=ye.get(s);return c||ye.set(s,c=((e,t,r,n,i)=>{var a=aa(8388608);return a.objectType=e,a.indexType=t,a.accessFlags=r,a.aliasSymbol=n,a.aliasTypeArguments=i,a})(e,t,o,i,a)),c}var l=Ac(e);if(1048576&t.flags&&!(16&t.flags)){for(var u=[],d=!1,p=0,_=t.types;p<_.length;p++){var f=md(e,l,_[p],t,n,r|(d?128:0));if(f)u.push(f);else{if(!n)return;d=!0}}if(d)return;return 4&r?Zu(u,i,a):Hu(u,1,i,a)}return md(e,l,t,t,n,72|r)}function Fd(e){var t=Jn(e);if(!t.resolvedType){var r=dp(e.objectType),n=dp(e.indexType),i=Hd(e),a=Ad(r,n,0,e,i,Jd(i));t.resolvedType=8388608&a.flags&&a.objectType===r&&a.indexType===n?Zl(a,e):a}return t.resolvedType}function Pd(e){var t=Jn(e);if(!t.resolvedType){var r=ca(32,e.symbol);r.declaration=e,r.aliasSymbol=Hd(e),r.aliasTypeArguments=Jd(r.aliasSymbol),t.resolvedType=r,ec(r)}return t.resolvedType}function Id(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Ad(Id(e.objectType),Id(e.indexType)):e}function Od(e){return!e.isDistributive&&Md(e.node.checkType)&&Md(e.node.extendsType)}function Md(t){return e.isTupleTypeNode(t)&&1===e.length(t.elements)&&!e.isOptionalTypeNode(t.elements[0])&&!e.isRestTypeNode(t.elements[0])}function Rd(e,t){return Od(e)&&uf(t)?Vl(t)[0]:t}function Ld(t,r,n,i){for(var a,o,s=0;;){if(1e3===s){wn(c,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),a=Pe;break}var l=Od(t),u=Rp(Rd(t,Id(t.checkType)),r),d=vd(u),p=Rp(Rd(t,t.extendsType),r);if(u===Fe||p===Fe)return Fe;var _=void 0;if(t.inferTypeParameters){var f=Hf(t.inferTypeParameters,void 0,0);d||_m(f.inferences,u,p,1536),_=r?Sp(f.mapper,r):f.mapper}var m=_?Rp(Rd(t,t.extendsType),_):p;if(!d&&!vd(m)){if(!(3&m.flags)&&(1&u.flags&&!l||!Xp(Bp(u),Bp(m)))){1&u.flags&&!l&&(o||(o=[])).push(Rp(dp(t.node.trueType),_||r));var g=dp(t.node.falseType);if(16777216&g.flags){var h=g.root;if(h.node.parent===t.node&&(!h.isDistributive||h.checkType===t.checkType)){t=h;continue}if(b(g,r))continue}a=Rp(g,r);break}if(3&m.flags||Xp(jp(u),jp(m))){var y=dp(t.node.trueType),v=_||r;if(b(y,v))continue;a=Rp(y,v);break}}(a=aa(16777216)).root=t,a.checkType=Rp(t.checkType,r),a.extendsType=Rp(t.extendsType,r),a.mapper=r,a.combinedMapper=_,a.aliasSymbol=n||t.aliasSymbol,a.aliasTypeArguments=n?i:fp(t.aliasTypeArguments,r);break}return o?Hu(e.append(o,a)):a;function b(a,o){if(16777216&a.flags&&o){var c=a.root;if(c.outerTypeParameters){var l=Sp(a.mapper,o),u=e.map(c.outerTypeParameters,(e=>yp(e,l))),d=hp(c.outerTypeParameters,u),p=c.isDistributive?yp(c.checkType,d):void 0;if(!(p&&p!==c.checkType&&1179648&p.flags))return t=c,r=d,n=void 0,i=void 0,c.aliasSymbol&&s++,!0}}return!1}}function Bd(e){return e.resolvedTrueType||(e.resolvedTrueType=Rp(dp(e.root.node.trueType),e.mapper))}function jd(e){return e.resolvedFalseType||(e.resolvedFalseType=Rp(dp(e.root.node.falseType),e.mapper))}function Ud(t){var r;return t.locals&&t.locals.forEach((t=>{262144&t.flags&&(r=e.append(r,_s(t)))})),r}function Vd(t){return e.isIdentifier(t)?[t]:e.append(Vd(t.left),t.right)}function zd(t){var r=Jn(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return wn(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=Te,r.resolvedType=Pe;if(!e.isLiteralImportTypeNode(t))return wn(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=Te,r.resolvedType=Pe;var n=t.isTypeOf?111551:4194304&t.flags?900095:788968,i=Oi(t,t.argument.literal);if(!i)return r.resolvedSymbol=Te,r.resolvedType=Pe;var a=Bi(i,!1);if(e.nodeIsMissing(t.qualifier))a.flags&n?r.resolvedType=Kd(t,r,a,n):(wn(t,111551===n?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,t.argument.literal.text),r.resolvedSymbol=Te,r.resolvedType=Pe);else{for(var o=Vd(t.qualifier),s=a,c=void 0;c=o.shift();){var l=o.length?1920:n,u=qi(Si(s)),d=t.isTypeOf?Lc(jo(u),c.escapedText):Gn(Hi(u),c.escapedText,l);if(!d)return wn(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,Fi(s),e.declarationNameToString(c)),r.resolvedType=Pe;Jn(c).resolvedSymbol=d,Jn(c.parent).resolvedSymbol=d,s=d}r.resolvedType=Kd(t,r,s,n)}}return r.resolvedType}function Kd(e,t,r,n){var i=Si(r);return t.resolvedSymbol=i,111551===n?jo(r):ql(e,i)}function Wd(t){var r=Jn(t);if(!r.resolvedType){var n=Hd(t);if(0!==Fs(t.symbol).size||n){var i=ca(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=Jd(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=Du(i)),r.resolvedType=i}else r.resolvedType=gt}return r.resolvedType}function Hd(t){for(var r=t.parent;e.isParenthesizedTypeNode(r)||e.isJSDocTypeExpression(r)||e.isTypeOperatorNode(r)&&144===r.operator;)r=r.parent;return e.isTypeAlias(r)?Xi(r):void 0}function Jd(e){return e?$o(e):void 0}function $d(e){return!!(524288&e.flags)&&!lc(e)}function Gd(e){return __(e)||!!(474058748&e.flags)}function qd(t,r){if(!(1048576&t.flags))return t;if(e.every(t.types,Gd))return e.find(t.types,__)||_t;var n=e.find(t.types,(e=>!Gd(e)));return n?e.find(t.types,(e=>e!==n&&!Gd(e)))?t:(t=>{for(var n=e.createSymbolTable(),i=0,a=fc(t);i<a.length;i++){var o=a[i];if(24&e.getDeclarationModifierFlagsFromSymbol(o));else if(Yd(o)){var s=65536&o.flags&&!(32768&o.flags),c=Rn(16777220,o.escapedName,Ys(o)|(r?8:0));c.type=s?Be:po(jo(o),!0),c.declarations=o.declarations,c.nameType=Hn(o).nameType,c.syntheticOrigin=o,n.set(o.escapedName,c)}}var l=fa(t.symbol,n,e.emptyArray,e.emptyArray,Wc(t));return l.objectFlags|=262272,l})(n):t}function Xd(t,r,n,i,a){if(1&t.flags||1&r.flags)return Ne;if(2&t.flags||2&r.flags)return Re;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&(t=qd(t,a)).flags)return td([t,r])?cg(t,(e=>Xd(e,r,n,i,a))):Pe;if(1048576&(r=qd(r,a)).flags)return td([t,r])?cg(r,(e=>Xd(t,e,n,i,a))):Pe;if(473960444&r.flags)return t;if(bd(t)||bd(r)){if(__(t))return r;if(2097152&t.flags){var o=t.types,s=o[o.length-1];if($d(s)&&$d(r))return Zu(e.concatenate(o.slice(0,o.length-1),[Xd(s,r,n,i,a)]))}return Zu([t,r])}for(var c=e.createSymbolTable(),l=new e.Set,u=t===_t?Wc(r):Ws([t,r]),d=0,p=fc(r);d<p.length;d++){var _=p[d];24&e.getDeclarationModifierFlagsFromSymbol(_)?l.add(_.escapedName):Yd(_)&&c.set(_.escapedName,Qd(_,a))}for(var f=0,m=fc(t);f<m.length;f++){var g=m[f];if(!l.has(g.escapedName)&&Yd(g))if(c.has(g.escapedName)){var h=jo(_=c.get(g.escapedName));if(16777216&_.flags){var y=e.concatenate(g.declarations,_.declarations),v=Rn(4|16777216&g.flags,g.escapedName);v.type=Hu([jo(g),Nf(h)]),v.leftSpread=g,v.rightSpread=_,v.declarations=y,v.nameType=Hn(g).nameType,c.set(g.escapedName,v)}}else c.set(g.escapedName,Qd(g,a))}var b=fa(n,c,e.emptyArray,e.emptyArray,e.sameMap(u,(e=>((e,t)=>e.isReadonly!==t?Tl(e.keyType,e.type,t,e.declaration):e)(e,a))));return b.objectFlags|=4456576|i,b}function Yd(t){var r;return!(e.some(t.declarations,e.isPrivateIdentifierClassElementDeclaration)||106496&t.flags&&(null===(r=t.declarations)||void 0===r?void 0:r.some((t=>e.isClassLike(t.parent)))))}function Qd(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===xb(e))return e;var n=Rn(4|16777216&e.flags,e.escapedName,Ys(e)|(t?8:0));return n.type=r?Be:jo(e),n.declarations=e.declarations,n.nameType=Hn(e).nameType,n.syntheticOrigin=e,n}function Zd(e,t,r,n){var i=aa(e);return i.symbol=r,i.value=t,i.regularType=n||i,i}function ep(e){if(2944&e.flags){if(!e.freshType){var t=Zd(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function tp(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=cg(e,tp)):e}function rp(e){return!!(2944&e.flags)&&e.freshType===e}function np(e){var t;return fe.get(e)||(fe.set(e,t=Zd(128,e)),t)}function ip(e){var t;return me.get(e)||(me.set(e,t=Zd(256,e)),t)}function ap(t){var r,n=e.pseudoBigIntToString(t);return ge.get(n)||(ge.set(n,r=Zd(2048,t)),r)}function op(e,t,r){var n,i=t+("string"==typeof e?"@":"#")+e,a=1024|("string"==typeof e?128:256);return he.get(i)||(he.set(i,n=Zd(a,e,r)),n)}function sp(t){if(e.isValidESSymbolDeclaration(t)){var r=Xi(t),n=Hn(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=(e=>{var t=aa(8192);return t.symbol=e,t.escapedName="__@".concat(t.symbol.escapedName,"@").concat(P(t.symbol)),t})(r))}return Qe}function cp(t){var r=Jn(t);return r.resolvedType||(r.resolvedType=(t=>{var r=e.getThisContainer(t,!1),n=r&&r.parent;if(n&&(e.isClassLike(n)||257===n.kind)&&!e.isStatic(r)&&(!e.isConstructorDeclaration(r)||e.isNodeDescendantOf(t,r.body)))return is(Xi(n)).thisType;if(n&&e.isObjectLiteralExpression(n)&&e.isBinaryExpression(n.parent)&&6===e.getAssignmentDeclarationKind(n.parent))return is(Xi(n.parent.left).parent).thisType;var i=4194304&t.flags?e.getHostSignatureFromJSDoc(t):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&3===e.getAssignmentDeclarationKind(i.parent)?is(Xi(i.parent.left).parent).thisType:Av(r)&&e.isNodeDescendantOf(t,r.body)?is(Xi(r)).thisType:(wn(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Pe)})(t)),r.resolvedType}function lp(e){return dp(up(e.type)||e.type)}function up(e){switch(e.kind){case 190:return up(e.type);case 183:if(1===e.elements.length&&(185===(e=e.elements[0]).kind||196===e.kind&&e.dotDotDotToken))return up(e.type);break;case 182:return e.elementType}}function dp(e){return Zl(pp(e),e)}function pp(t){switch(t.kind){case 130:case 310:case 311:return Ne;case 154:return Re;case 149:return We;case 146:return He;case 157:return Je;case 133:return Ye;case 150:return Qe;case 114:return Ze;case 152:return Be;case 104:return ze;case 143:return et;case 147:return 131072&t.flags&&!G?Ne:at;case 138:return Me;case 191:case 108:return cp(t);case 195:return(e=>{if(104===e.literal.kind)return ze;var t=Jn(e);return t.resolvedType||(t.resolvedType=tp(ix(e.literal))),t.resolvedType})(t);case 177:return nu(t);case 176:return t.assertsModifier?Ze:Ye;case 227:return nu(t);case 180:return au(t);case 182:case 183:return(t=>{var r=Jn(t);if(!r.resolvedType){var n=(t=>{var r=(t=>e.isTypeOperatorNode(t)&&144===t.operator)(t.parent);return up(t)?r?It:Pt:Fu(e.map(t.elements,Tu),r,e.some(t.elements,(e=>196!==e.kind))?void 0:t.elements)})(t);if(n===ht)r.resolvedType=_t;else if(183===t.kind&&e.some(t.elements,(e=>!!(8&Tu(e))))||!ku(t)){var i=182===t.kind?[dp(t.elementType)]:e.map(t.elements,dp);r.resolvedType=Pu(n,i)}else r.resolvedType=183===t.kind&&0===t.elements.length?n:Ul(n,t,void 0)}return r.resolvedType})(t);case 184:return(e=>po(dp(e.type),!0))(t);case 186:return(t=>{var r=Jn(t);if(!r.resolvedType){var n=Hd(t);r.resolvedType=Hu(e.map(t.types,dp),1,n,Jd(n))}return r.resolvedType})(t);case 187:return(t=>{var r=Jn(t);if(!r.resolvedType){var n=Hd(t);r.resolvedType=Zu(e.map(t.types,dp),n,Jd(n))}return r.resolvedType})(t);case 312:return(e=>{var t=dp(e.type);return W?bf(t,65536):t})(t);case 314:return po(dp(t.type));case 196:return(e=>{var t=Jn(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?lp(e):po(dp(e.type),!0,!!e.questionToken))})(t);case 190:case 313:case 307:return dp(t.type);case 185:return lp(t);case 316:return(t=>{var r=dp(t.type),n=t.parent,i=t.parent.parent;if(e.isJSDocTypeExpression(t.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i),o=e.isJSDocCallbackTag(i.parent.parent);if(a||o){var s=o?e.lastOrUndefined(i.parent.parent.typeExpression.parameters):e.lastOrUndefined(a.parameters),c=e.getParameterSymbolFromJSDoc(i);if(!s||c&&s.symbol===c&&e.isRestParameter(s))return Du(r)}}return e.isParameter(n)&&e.isJSDocFunctionType(n.parent)?Du(r):po(r)})(t);case 178:case 179:case 181:case 320:case 315:case 321:return Wd(t);case 192:return(t=>{var r=Jn(t);if(!r.resolvedType)switch(t.operator){case 140:r.resolvedType=sd(dp(t.type));break;case 153:r.resolvedType=150===t.type.kind?sp(e.walkUpParenthesizedTypes(t.parent)):Pe;break;case 144:r.resolvedType=dp(t.type);break;default:throw e.Debug.assertNever(t.operator)}return r.resolvedType})(t);case 193:return Fd(t);case 194:return Pd(t);case 188:return(t=>{var r=Jn(t);if(!r.resolvedType){var n=dp(t.checkType),i=Hd(t),a=Jd(i),o=Ho(t,!0),s=a?o:e.filter(o,(e=>Np(e,t))),c={node:t,checkType:n,extendsType:dp(t.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:Ud(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=Ld(c,void 0),s&&(c.instantiations=new e.Map,c.instantiations.set(Pl(s),r.resolvedType))}return r.resolvedType})(t);case 189:return(e=>{var t=Jn(e);return t.resolvedType||(t.resolvedType=ps(Xi(e.typeParameter))),t.resolvedType})(t);case 197:return(t=>{var r=Jn(t);return r.resolvedType||(r.resolvedType=ld(Il([t.head.text],e.map(t.templateSpans,(e=>e.literal.text)),!0),e.map(t.templateSpans,(e=>dp(e.type))))),r.resolvedType})(t);case 199:return zd(t);case 79:case 160:case 205:var r=OS(t);return r?_s(r):Pe;default:return Pe}}function _p(e,t,r){if(e&&e.length)for(var n=0;n<e.length;n++){var i=e[n],a=r(i,t);if(i!==a){var o=0===n?[]:e.slice(0,n);for(o.push(a),n++;n<e.length;n++)o.push(r(e[n],t));return o}}return e}function fp(e,t){return _p(e,t,Rp)}function mp(e,t){return _p(e,t,kp)}function gp(e,t){return _p(e,t,Up)}function hp(e,t){return 1===e.length?vp(e[0],t?t[0]:Ne):((e,t)=>({kind:1,sources:e,targets:t}))(e,t)}function yp(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:for(var r=t.sources,n=t.targets,i=0;i<r.length;i++)if(e===r[i])return n?n[i]:Ne;return e;case 2:return t.func(e);case 3:case 4:var a=yp(e,t.mapper1);return a!==e&&3===t.kind?Rp(a,t.mapper2):yp(a,t.mapper2)}}function vp(e,t){return{kind:0,source:e,target:t}}function bp(e){return{kind:2,func:e}}function xp(e,t,r){return{kind:e,mapper1:t,mapper2:r}}function Ep(e){return hp(e,void 0)}function Sp(e,t){return e?xp(3,e,t):t}function Dp(e,t,r){return r?xp(4,vp(e,t),r):vp(e,t)}function Tp(e,t,r){return e?xp(4,e,vp(t,r)):vp(t,r)}function Cp(e){var t=la(e.symbol);return t.target=e,t}function kp(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,Cp),r=Sp(hp(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++)o[a].mapper=r}var s=Ms(t.declaration,i,t.thisParameter&&Ap(t.thisParameter,r),_p(t.parameters,r,Ap),void 0,void 0,t.minArgumentCount,39&t.flags);return s.target=t,s.mapper=r,s}function Ap(t,r){var n=Hn(t);if(n.type&&!Qf(n.type))return t;1&e.getCheckFlags(t)&&(t=n.target,r=Sp(n.mapper,r));var i=Rn(t.flags,t.escapedName,1|53256&e.getCheckFlags(t));return i.declarations=t.declarations,i.parent=t.parent,i.target=t,i.mapper=r,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),n.nameType&&(i.nameType=n.nameType),i}function Np(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){for(var n=t.symbol.declarations[0].parent,i=r;i!==n;i=i.parent)if(!i||234===i.kind||188===i.kind&&e.forEachChild(i.extendsType,a))return!0;return a(r)}return!0;function a(r){switch(r.kind){case 191:return!!t.isThisType;case 79:return!t.isThisType&&e.isPartOfTypeNode(r)&&(e=>!(177===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||199===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier))(r)&&pp(r)===t;case 180:return!0;case 168:case 167:return!r.type&&!!r.body||e.some(r.typeParameters,a)||e.some(r.parameters,a)||!!r.type&&a(r.type)}return!!e.forEachChild(r,a)}}function wp(e){var t=ec(e);if(4194304&t.flags){var r=Id(t.type);if(262144&r.flags)return r}}function Fp(t,r,n,i){var a=wp(t);if(a){var o=Rp(a,r);if(a!==o)return lg(Pc(o),(n=>{if(61603843&n.flags&&n!==Fe&&!Za(n)){if(!t.declaration.nameType){var i=void 0;if(W_(n)||1&n.flags&&$a(a,4)<0&&(i=gc(a))&&ig(i,e.or(W_,uf)))return((e,t,r)=>{var n=Ip(t,He,!0,r);return Za(n)?Pe:Du(n,Pp(H_(e),oc(t)))})(n,t,Dp(a,n,r));if(df(n))return((t,r,n,i)=>{var a=t.target.elementFlags,o=e.map(Vl(t),((e,t)=>{var o=8&a[t]?e:4&a[t]?Du(e):wu([e],[a[t]]);return Fp(r,Dp(n,o,i))})),s=Pp(t.target.readonly,oc(r));return wu(o,e.map(o,(e=>8)),s)})(n,t,a,r);if(uf(n))return((t,r,n)=>{var i=t.target.elementFlags,a=e.map(Vl(t),((e,t)=>Ip(r,np(""+t),!!(2&i[t]),n))),o=oc(r),s=4&o?e.map(i,(e=>1&e?2:e)):8&o?e.map(i,(e=>2&e?1:e)):i,c=Pp(t.target.readonly,o);return e.contains(a,Pe)?Pe:wu(a,s,c,t.target.labeledElementDeclarations)})(n,t,Dp(a,n,r))}return Op(t,Dp(a,n,r))}return n}),n,i)}return Rp(ec(t),r)===Fe?Fe:Op(t,r,n,i)}function Pp(e,t){return!!(1&t)||!(2&t)&&e}function Ip(e,t,r,n){var i=Tp(n,Zs(e),t),a=Rp(rc(e.target||e),i),o=oc(e);return W&&4&o&&!Tb(a,49152)?xf(a,!0):W&&8&o&&r?jm(a,524288):a}function Op(e,t,r,n){var i=ca(64|e.objectFlags,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;var a=Zs(e),o=Cp(a);i.typeParameter=o,t=Sp(vp(a,o),t),o.mapper=t}return i.target=e,i.mapper=t,i.aliasSymbol=r||e.aliasSymbol,i.aliasTypeArguments=r?n:fp(e.aliasTypeArguments,t),i}function Mp(t,r,n,i){var a=t.root;if(a.outerTypeParameters){var o=e.map(a.outerTypeParameters,(e=>yp(e,r))),s=Pl(o)+Ml(n,i),c=a.instantiations.get(s);if(!c){var l=hp(a.outerTypeParameters,o),u=a.checkType,d=a.isDistributive?yp(u,l):void 0;c=d&&u!==d&&1179648&d.flags?lg(d,(e=>Ld(a,Dp(u,e,l))),n,i):Ld(a,l,n,i),a.instantiations.set(s,c)}return c}return t}function Rp(e,t){return e&&t?Lp(e,t,void 0,void 0):e}function Lp(t,r,n,i){if(!Qf(t))return t;if(100===E||v>=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:E,instantiationCount:v}),wn(c,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Pe;y++,v++,E++;var a=((t,r,n,i)=>{var a=t.flags;if(262144&a)return yp(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=fp(s,r);return c!==s?Pu(t.target,c):t}return 1024&o?((t,r)=>{var n=Rp(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=Rp(t.constraintType,r);return 4194304&i.flags&&tm(Rp(t.source,r),n,i)||t})(t,r):((t,r,n,i)=>{var a=4&t.objectFlags?t.node:t.symbol.declarations[0],o=Jn(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var l=Ho(a,!0);if(Av(a)){var u=Xc(a);l=e.addRange(l,u)}c=l||e.emptyArray;var d=4&t.objectFlags?[a]:t.symbol.declarations;c=(4&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(t=>e.some(d,(e=>Np(t,e))))):c,o.outerTypeParameters=c}if(c.length){var p=Sp(t.mapper,r),_=e.map(c,(e=>yp(e,p))),f=n||t.aliasSymbol,m=n?i:fp(t.aliasTypeArguments,r),g=Pl(_)+Ml(f,m);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(Pl(c)+Ml(s.aliasSymbol,s.aliasTypeArguments),s));var h=s.instantiations.get(g);if(!h){var y=hp(c,_);h=4&s.objectFlags?Ul(t.target,t.node,y,f,m):32&s.objectFlags?Fp(s,y,f,m):Op(s,y,f,m),s.instantiations.set(g,h)}return h}return t})(t,r,n,i)}return t}if(3145728&a){var l=1048576&t.flags?t.origin:void 0,u=l&&3145728&l.flags?l.types:t.types,d=fp(u,r);if(d===u&&n===t.aliasSymbol)return t;var p=n||t.aliasSymbol,_=n?i:fp(t.aliasTypeArguments,r);return 2097152&a||l&&2097152&l.flags?Zu(d,p,_):Hu(d,1,p,_)}if(4194304&a)return sd(Rp(t.type,r));if(134217728&a)return ld(t.texts,fp(t.types,r));if(268435456&a)return dd(t.symbol,Rp(t.type,r));if(8388608&a)return p=n||t.aliasSymbol,_=n?i:fp(t.aliasTypeArguments,r),Ad(Rp(t.objectType,r),Rp(t.indexType,r),t.accessFlags,void 0,p,_);if(16777216&a)return Mp(t,Sp(t.mapper,r),n,i);if(33554432&a){var f=Rp(t.baseType,r);if(8650752&f.flags)return Xl(f,Rp(t.substitute,r));var m=Rp(t.substitute,r);return 3&m.flags||Xp(jp(f),jp(m))?f:m}return t})(t,r,n,i);return E--,a}function Bp(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Rp(e,pt))}function jp(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=Rp(e,dt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function Up(e,t){return Tl(e.keyType,Rp(e.type,t),e.isReadonly,e.declaration)}function Vp(t){switch(e.Debug.assert(168!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 212:case 213:case 168:case 255:return zp(t);case 204:return e.some(t.properties,Vp);case 203:return e.some(t.elements,Vp);case 221:return Vp(t.whenTrue)||Vp(t.whenFalse);case 220:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(Vp(t.left)||Vp(t.right));case 294:return Vp(t.initializer);case 211:return Vp(t.expression);case 285:return e.some(t.properties,Vp)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,Vp);case 284:var r=t.initializer;return!!r&&Vp(r);case 287:var n=t.expression;return!!n&&Vp(n)}return!1}function zp(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!lo(t))&&(e.hasContextSensitiveParameters(t)||(t=>!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&234!==t.body.kind&&Vp(t.body))(t))}function Kp(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&zp(t)}function Wp(t){if(524288&t.flags){var r=uc(t);if(r.constructSignatures.length||r.callSignatures.length){var n=ca(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n.indexInfos=e.emptyArray,n}}else if(2097152&t.flags)return Zu(e.map(t.types,Wp));return t}function Hp(e,t){return y_(e,t,xn)}function Jp(e,t){return y_(e,t,xn)?-1:0}function $p(e,t){return y_(e,t,vn)?-1:0}function Gp(e,t){return y_(e,t,hn)?-1:0}function qp(e,t){return y_(e,t,hn)}function Xp(e,t){return y_(e,t,vn)}function Yp(t,r){return 1048576&t.flags?e.every(t.types,(e=>Yp(e,r))):1048576&r.flags?e.some(r.types,(e=>Yp(t,e))):58982400&t.flags?Yp(xc(t)||Re,r):r===At?!!(67633152&t.flags):r===Nt?!!(524288&t.flags)&&Lm(t):Ko(t,zo(r))||W_(r)&&!H_(r)&&Yp(t,It)}function Qp(e,t){return y_(e,t,bn)}function Zp(e,t){return Qp(e,t)||Qp(t,e)}function e_(e,t,r,n,i,a){return x_(e,t,vn,r,n,i,a)}function t_(e,t,r,n,i,a){return r_(e,t,vn,r,n,i,a,void 0)}function r_(e,t,r,n,i,a,o,s){return!!y_(e,t,r)||(!n||!i_(i,e,t,r,a,o,s))&&x_(e,t,r,n,a,o,s)}function n_(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,n_))}function i_(t,r,n,i,a,o,s){if(!t||n_(n))return!1;if(!x_(r,n,i,void 0)&&((t,r,n,i,a,o,s)=>{for(var c=jc(r,0),l=jc(r,1),u=0,d=[l,c];u<d.length;u++){var p=d[u];if(e.some(p,(e=>{var t=_l(e);return!(131073&t.flags)&&x_(t,n,i,void 0)}))){var _=s||{};e_(r,n,t,a,o,_);var f=_.errors[_.errors.length-1];return e.addRelatedInfo(f,e.createDiagnosticForNode(t,p===l?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1})(t,r,n,i,a,o,s))return!0;switch(t.kind){case 287:case 211:return i_(t.expression,r,n,i,a,o,s);case 220:switch(t.operatorToken.kind){case 63:case 27:return i_(t.right,r,n,i,a,o,s)}break;case 204:return function(t,r,n,i,a,o){return!(131068&n.flags)&&s_(function(t){var r,n,i,a;return Rl(this,(o=>{switch(o.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,o.label=1;case 1:if(!(r<n.length))return[3,8];if(i=n[r],e.isSpreadAssignment(i))return[3,7];if(!(a=ad(Xi(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 172:case 171:case 168:case 295:return[3,2];case 294:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:a}];case 3:return o.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:a,errorMessage:e.isComputedNonLiteralName(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return o.sent(),[3,7];case 6:e.Debug.assertNever(i),o.label=7;case 7:return r++,[3,1];case 8:return[2]}}))}(t),r,n,i,a,o)}(t,r,n,i,o,s);case 203:return((e,t,r,n,i,a)=>{if(131068&r.flags)return!1;if(Q_(t))return s_(l_(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=Sh(e,1,!0);return e.contextualType=o,!!Q_(s)&&s_(l_(e,r),s,r,n,i,a)}finally{e.contextualType=o}})(t,r,n,i,o,s);case 285:return function(t,r,n,i,a,o){var s,c=s_(function(t){var r,n,i;return Rl(this,(a=>{switch(a.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,a.label=1;case 1:return r<n.length?(i=n[r],e.isJsxSpreadAttribute(i)||Ph(e.idText(i.name))?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:np(e.idText(i.name))}]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}(t),r,n,i,a,o);if(e.isJsxOpeningElement(t.parent)&&e.isJsxElement(t.parent.parent)){var l=t.parent.parent,u=zh(Uh(t)),d=void 0===u?"children":e.unescapeLeadingUnderscores(u),p=np(d),_=Ad(n,p),f=e.getSemanticJsxChildren(l.children);if(!e.length(f))return c;var m=e.length(f)>1,g=ag(_,Z_),h=ag(_,(e=>!Z_(e)));if(m){if(g!==et){var y=wu(Mh(l,0));c=s_(function(t,r){var n,i,a,o,s;return Rl(this,(c=>{switch(c.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,c.label=1;case 1:return i<t.children.length?(a=t.children[i],o=ip(i-n),(s=c_(a,o,r))?[4,s]:[3,3]):[3,5];case 2:return c.sent(),[3,4];case 3:n++,c.label=4;case 4:return i++,[3,1];case 5:return[2]}}))}(l,x),y,g,i,a,o)||c}else if(!y_(Ad(r,p),_,i)){c=!0;var v=wn(l.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,d,Pa(_));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(v)}}else if(h!==et){var b=c_(f[0],p,x);b&&(c=s_(function(){return Rl(this,(e=>{switch(e.label){case 0:return[4,b];case 1:return e.sent(),[2]}}))}(),r,n,i,a,o)||c)}else y_(Ad(r,p),_,i)||(c=!0,v=wn(l.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,d,Pa(_)),o&&o.skipLogging&&(o.errors||(o.errors=[])).push(v))}return c;function x(){if(!s){var r=e.getTextOfNode(t.parent.tagName),i=zh(Uh(t)),a=void 0===i?"children":e.unescapeLeadingUnderscores(i),o=Ad(n,np(a)),c=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;s=Ol(Ol({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,r,a,Pa(o))})}return s}}(t,r,n,i,o,s);case 213:return((t,r,n,i,a,o)=>{if(e.isBlock(t.body))return!1;if(e.some(t.parameters,e.hasType))return!1;var s=Gy(r);if(!s)return!1;var c=jc(n,0);if(!e.length(c))return!1;var l=t.body,u=_l(s),d=Hu(e.map(c,_l));if(!x_(u,d,i,void 0)){var p=l&&i_(l,u,d,i,void 0,a,o);if(p)return p;var _=o||{};if(x_(u,d,i,l,void 0,a,_),_.errors)return n.symbol&&e.length(n.symbol.declarations)&&e.addRelatedInfo(_.errors[_.errors.length-1],e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&e.getFunctionFlags(t))&&!Ya(u,"then")&&x_(sb(u),d,i,void 0)&&e.addRelatedInfo(_.errors[_.errors.length-1],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1})(t,r,n,i,o,s)}return!1}function a_(e,t,r){var n=wd(t,r);if(n)return n;if(1048576&t.flags){var i=T_(e,t);if(i)return wd(i,r)}}function o_(e,t){e.contextualType=t;try{return Jb(e,1,t)}finally{e.contextualType=void 0}}function s_(t,r,n,i,a,o){for(var s=!1,c=t.next();!c.done;c=t.next()){var l=c.value,u=l.errorNode,d=l.innerExpression,p=l.nameType,_=l.errorMessage,f=a_(r,n,p);if(f&&!(8388608&f.flags)){var m=wd(r,p);if(m){var g=_d(p,void 0);if(!x_(m,f,i,void 0)&&(s=!0,!d||!i_(d,m,f,i,void 0,a,o))){var h=o||{},y=d?o_(d,m):m;if(Z&&D_(y,f)){var v=e.createDiagnosticForNode(u,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Pa(y),Pa(f));_n.add(v),h.errors=[v]}else{var b=!!(g&&16777216&(Lc(n,g)||Te).flags),x=!!(g&&16777216&(Lc(r,g)||Te).flags);f=kf(f,b),m=kf(m,b&&x),x_(y,f,i,u,_,a,h)&&y!==m&&x_(m,f,i,u,_,a,h)}if(h.errors){var E=h.errors[h.errors.length-1],S=Ss(p)?As(p):void 0,D=void 0!==S?Lc(n,S):void 0,T=!1;if(!D){var C=Gc(n,p);C&&C.declaration&&!e.getSourceFileOfNode(C.declaration).hasNoDefaultLib&&(T=!0,e.addRelatedInfo(E,e.createDiagnosticForNode(C.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!T&&(D&&e.length(D.declarations)||n.symbol&&e.length(n.symbol.declarations))){var k=D&&e.length(D.declarations)?D.declarations[0]:n.symbol.declarations[0];e.getSourceFileOfNode(k).hasNoDefaultLib||e.addRelatedInfo(E,e.createDiagnosticForNode(k,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!S||8192&p.flags?Pa(p):e.unescapeLeadingUnderscores(S),Pa(n)))}}}}}}return s}function c_(t,r,n){switch(t.kind){case 287:return{errorNode:t,innerExpression:t.expression,nameType:r};case 11:if(t.containsOnlyTriviaWhiteSpaces)break;return{errorNode:t,innerExpression:void 0,nameType:r,errorMessage:n()};case 277:case 278:case 281:return{errorNode:t,innerExpression:t,nameType:r};default:return e.Debug.assertNever(t,"Found invalid jsx child")}}function l_(t,r){var n,i,a,o;return Rl(this,(s=>{switch(s.label){case 0:if(!(n=e.length(t.elements)))return[2];i=0,s.label=1;case 1:return i<n?Q_(r)&&!Lc(r,""+i)?[3,3]:(a=t.elements[i],e.isOmittedExpression(a)?[3,3]:(o=ip(i),[4,{errorNode:a,innerExpression:a,nameType:o}])):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}function u_(e,t,r,n,i){return x_(e,t,bn,r,n,i)}function d_(t,r,n,i,a,o,s,c){if(t===r)return-1;if(!(l=r).typeParameters&&(!l.thisParameter||Qa(zv(l.thisParameter)))&&1===l.parameters.length&&L(l)&&(zv(l.parameters[0])===jt||Qa(zv(l.parameters[0])))&&Qa(_l(l)))return-1;var l,u,d=Yv(r);if(!Zv(r)&&(8&n?Zv(t)||Yv(t)>d:Qv(t)>d))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Yy(t,r=(u=r).typeParameters?u.canonicalSignatureCache||(u.canonicalSignatureCache=(t=>hl(t,e.map(t.typeParameters,(e=>e.target&&!gc(e.target)?e.target:e)),e.isInJSFile(t.declaration)))(u)):u,void 0,s));var p=Yv(t),_=tb(t),f=tb(r);if((_||f)&&Rp(_||f,c),_&&f&&p!==d)return 0;var m=r.declaration?r.declaration.kind:0,g=!(3&n)&&H&&168!==m&&167!==m&&170!==m,h=-1,y=ul(t);if(y&&y!==Ze){var v=ul(r);if(v){if(!(T=!g&&s(y,v,!1)||s(v,y,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;h&=T}}for(var b=_||f?Math.min(p,d):Math.max(p,d),x=_||f?b-1:-1,E=0;E<b;E++){var S=E===x?Xv(t,E):qv(t,E),D=E===x?Xv(r,E):qv(r,E);if(S&&D){var T,C=3&n?void 0:Gy(Ef(S)),k=3&n?void 0:Gy(Ef(D));if((T=C&&k&&!dl(C)&&!dl(k)&&(98304&hf(S))==(98304&hf(D))?d_(k,C,8&n|(g?2:1),i,a,o,s,c):!(3&n)&&!g&&s(S,D,!1)||s(D,S,i))&&8&n&&E>=Qv(t)&&E<Qv(r)&&s(S,D,!1)&&(T=0),!T)return i&&a(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Wv(t,E)),e.unescapeLeadingUnderscores(Wv(r,E))),0;h&=T}}if(!(4&n)){var A=ml(r)?Ne:r.declaration&&Av(r.declaration)?is(qi(r.declaration.symbol)):_l(r);if(A===Ze)return h;var N=ml(t)?Ne:t.declaration&&Av(t.declaration)?is(qi(t.declaration.symbol)):_l(t),w=dl(r);if(w){var F=dl(t);if(F)h&=((t,r,n,i,a)=>{if(t.kind!==r.kind)return n&&(i(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ba(t),Ba(r))),0;if((1===t.kind||3===t.kind)&&t.parameterIndex!==r.parameterIndex)return n&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,r.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ba(t),Ba(r))),0;var o=t.type===r.type?-1:t.type&&r.type?a(t.type,r.type,n):0;return 0===o&&n&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ba(t),Ba(r)),o})(F,w,i,a,s);else if(e.isIdentifierTypePredicate(w))return i&&a(e.Diagnostics.Signature_0_must_be_a_type_predicate,Fa(t)),0}else!(h&=1&n&&s(A,N,!1)||s(N,A,i))&&i&&o&&o(N,A)}return h}function p_(e){return e!==yt&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function __(t){return 524288&t.flags?!lc(t)&&p_(uc(t)):!!(67108864&t.flags)||(1048576&t.flags?e.some(t.types,__):!!(2097152&t.flags)&&e.every(t.types,__))}function f_(t){return!!(16&e.getObjectFlags(t)&&(t.members&&p_(t)||t.symbol&&2048&t.symbol.flags&&0===Fs(t.symbol).size))}function m_(t){return 524288&t.flags&&!lc(t)&&0===fc(t).length&&1===Wc(t).length&&!!Hc(t,We)||3145728&t.flags&&e.every(t.types,m_)||!1}function g_(t,r,n){if(t===r)return!0;var i=P(t)+","+P(r),a=En.get(i);if(void 0!==a&&(4&a||!(2&a)||!n))return!!(1&a);if(!(t.escapedName===r.escapedName&&256&t.flags&&256&r.flags))return En.set(i,6),!1;for(var o=jo(r),s=0,c=fc(jo(t));s<c.length;s++){var l=c[s];if(8&l.flags){var u=Lc(o,l.escapedName);if(!(u&&8&u.flags))return n?(n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(l),Pa(_s(r),void 0,64)),En.set(i,6)):En.set(i,2),!1}}return En.set(i,1),!0}function h_(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===Fe)return!0;if(131072&a)return!1;if(402653316&i&&4&a)return!0;if(128&i&&1024&i&&128&a&&!(1024&a)&&e.value===t.value)return!0;if(296&i&&8&a)return!0;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===t.value)return!0;if(2112&i&&64&a)return!0;if(528&i&&16&a)return!0;if(12288&i&&4096&a)return!0;if(32&i&&32&a&&g_(e.symbol,t.symbol,n))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&g_(e.symbol,t.symbol,n))return!0;if(2944&i&&2944&a&&e.value===t.value&&g_(Yi(e.symbol),Yi(t.symbol),n))return!0}if(32768&i&&(!W||49152&a))return!0;if(65536&i&&(!W||65536&a))return!0;if(524288&i&&67108864&a)return!0;if(r===vn||r===bn){if(1&i)return!0;if(264&i&&!(1024&i)&&(32&a||r===vn&&256&a&&1024&a))return!0}return!1}function y_(e,t,r){if(rp(e)&&(e=e.regularType),rp(t)&&(t=t.regularType),e===t)return!0;if(r!==xn){if(r===bn&&!(131072&t.flags)&&h_(t,e,r)||h_(e,t,r))return!0}else{if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){var n=r.get(O_(e,t,0,r,!1));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&x_(e,t,r,void 0)}function v_(t,r){return 2048&e.getObjectFlags(t)&&Ph(r.escapedName)}function b_(t,r){for(;;){var n=rp(t)?t.regularType:4&e.getObjectFlags(t)&&t.node?Bl(t.target,Vl(t)):3145728&t.flags?Pc(t):33554432&t.flags?r?t.baseType:t.substitute:25165824&t.flags?Dd(t,r):t;if((n=q_(n)||n)===t)break;t=n}return t}function x_(t,r,n,i,a,s,l){var u,d,p,_,f,m,g=0,h=0,y=0,v=0,b=!1,x=0,E=[],S=!1;e.Debug.assert(n!==xn||!i,"no error reporting in identity checking");var D=U(t,r,3,!!i,a);if(E.length&&O(),b){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:h,targetDepth:y});var T=wn(i||c,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Pa(t),Pa(r));l&&(l.errors||(l.errors=[])).push(T)}else if(u){if(s){var C=s();C&&(e.concatenateDiagnosticMessageChains(C,u),u=C)}var A=void 0;if(a&&i&&!D&&t.symbol){var N=Hn(t.symbol);if(N.originatingImport&&!e.isImportCall(N.originatingImport)&&x_(jo(N.target),r,n,void 0)){var w=e.createDiagnosticForNode(N.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);A=e.append(A,w)}}T=e.createDiagnosticForNodeFromMessageChain(i,u,A),d&&e.addRelatedInfo.apply(void 0,Il([T],d,!1)),l&&(l.errors||(l.errors=[])).push(T),l&&l.skipLogging||_n.add(T)}return i&&l&&l.skipLogging&&0===D&&e.Debug.assert(!!l.errors,"missed opportunity to interact with error."),0!==D;function F(e){u=e.errorInfo,m=e.lastSkippedInfo,E=e.incompatibleStack,x=e.overrideNextErrorInfo,d=e.relatedInfo}function P(){return{errorInfo:u,lastSkippedInfo:m,incompatibleStack:E.slice(),overrideNextErrorInfo:x,relatedInfo:d?d.slice():void 0}}function I(e,t,r,n,i){x++,m=void 0,E.push([e,t,r,n,i])}function O(){var t=E;E=[];var r=m;if(m=void 0,1===t.length)return M.apply(void 0,t[0]),void(r&&R.apply(void 0,Il([void 0],r,!1)));for(var n="",i=[];t.length;){var a=t.pop(),o=a[0],s=a.slice(1);switch(o.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===n.indexOf("new ")&&(n="(".concat(n,")"));var c=""+s[0];n=0===n.length?"".concat(c):e.isIdentifierText(c,e.getEmitScriptTarget(j))?"".concat(n,".").concat(c):"["===c[0]&&"]"===c[c.length-1]?"".concat(n).concat(c):"".concat(n,"[").concat(c,"]");break;case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){var l=o;o.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?l=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(l=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),i.unshift([l,s[0],s[1]])}else{var u=o.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",d=o.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||o.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";n="".concat(u).concat(n,"(").concat(d,")")}break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:i.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,s[0],s[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:i.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,s[0],s[1],s[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: ".concat(o.code))}}n?M(")"===n[n.length-1]?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,n):i.shift();for(var p=0,_=i;p<_.length;p++){var f=_[p],g=(o=f[0],s=f.slice(1),o.elidedInCompatabilityPyramid);o.elidedInCompatabilityPyramid=!1,M.apply(void 0,Il([o],s,!1)),o.elidedInCompatabilityPyramid=g}r&&R.apply(void 0,Il([void 0],r,!1))}function M(t,r,n,a,o){e.Debug.assert(!!i),E.length&&O(),t.elidedInCompatabilityPyramid||(u=e.chainDiagnosticMessages(u,t,r,n,a,o))}function R(t,r,i){E.length&&O();var a=Ia(r,i),o=a[0],s=a[1],c=r,l=o;if(nf(r)&&!E_(i)&&(c=af(r),e.Debug.assert(!Xp(c,i),"generalized source shouldn't be assignable"),l=Oa(c)),262144&i.flags){var d=xc(i),p=void 0;d&&(Xp(c,d)||(p=Xp(r,d)))?M(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,p?o:l,s,Pa(d)):(u=void 0,M(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,s,l))}if(t)t===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Z&&S_(r,i).length&&(t=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===bn)t=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(o===s)t=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Z&&S_(r,i).length)t=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&r.flags&&1048576&i.flags){var _=((t,r)=>{var n=r.types.filter((e=>!!(128&e.flags)));return e.getSpellingSuggestion(t.value,n,(e=>e.value))})(r,i);if(_)return void M(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,l,s,Pa(_))}t=e.Diagnostics.Type_0_is_not_assignable_to_type_1}M(t,l,s)}function L(t,r,n){return uf(t)?t.target.readonly&&J_(r)?(n&&M(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Pa(t),Pa(r)),!1):uf(r)||W_(r):H_(t)&&J_(r)?(n&&M(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Pa(t),Pa(r)),!1):!uf(r)||W_(t)}function B(e,t,r){return U(e,t,3,r)}function U(t,r,a,o,s,c){if(void 0===a&&(a=3),void 0===o&&(o=!1),void 0===c&&(c=0),524288&t.flags&&131068&r.flags)return h_(t,r,n,o?M:void 0)?-1:(C(t,r,0,!!(2048&e.getObjectFlags(t))),0);var l=b_(t,!1),d=b_(r,!0);if(l===d)return-1;if(n===xn)return((e,t,r)=>{if(e.flags!==t.flags)return 0;if(67358815&e.flags)return-1;if(V(e,t),3145728&e.flags){var n=z(e,t);return n&&(n&=z(t,e)),n}return J(e,t,!1,0,r)})(l,d,a);if(262144&l.flags&&mc(l)===d)return-1;if(1048576&d.flags&&524288&l.flags&&d.types.length<=3&&Tb(d,98304)){var p=dg(d,-98305);if(1179648&p.flags||(d=b_(p,!0)),l===p)return-1}if(n===bn&&!(131072&d.flags)&&h_(d,l,n)||h_(l,d,n,o?M:void 0))return-1;var _=!!(2048&e.getObjectFlags(l)),f=!(2&c)&&gm(l)&&16384&e.getObjectFlags(l);if(f&&((t,r,a)=>{var o;if(!Yh(r)||!G&&8192&e.getObjectFlags(r))return!1;var s=!!(2048&e.getObjectFlags(t));if((n===vn||n===bn)&&(tg(At,r)||!s&&__(r)))return!1;var c,l=r;1048576&r.flags&&(l=tT(t,r,U)||(e=>{if(Tb(e,67108864)){var t=ag(e,(e=>!(131068&e.flags)));if(!(131072&t.flags))return t}return e})(r),c=1048576&l.flags?l.types:[l]);for(var u=r=>{if(((e,t)=>e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration)(r,t.symbol)&&!v_(t,r)){if(!Xh(l,r.escapedName,s)){if(a){var n=ag(l,Yh);if(!i)return{value:e.Debug.fail()};if(e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i)||e.isJsxOpeningLikeElement(i.parent)){r.valueDeclaration&&e.isJsxAttribute(r.valueDeclaration)&&e.getSourceFileOfNode(i)===e.getSourceFileOfNode(r.valueDeclaration.name)&&(i=r.valueDeclaration.name);var u=wa(r),d=ky(u,n);(_=d?wa(d):void 0)?M(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,Pa(n),_):M(e.Diagnostics.Property_0_does_not_exist_on_type_1,u,Pa(n))}else{var p=(null===(o=t.symbol)||void 0===o?void 0:o.declarations)&&e.firstOrUndefined(t.symbol.declarations),_=void 0;if(r.valueDeclaration&&e.findAncestor(r.valueDeclaration,(e=>e===p))&&e.getSourceFileOfNode(p)===e.getSourceFileOfNode(i)){var f=r.valueDeclaration;e.Debug.assertNode(f,e.isObjectLiteralElementLike),i=f;var m=f.name;e.isIdentifier(m)&&(_=Ay(m,n))}void 0!==_?M(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,wa(r),Pa(n),_):M(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,wa(r),Pa(n))}}return{value:!0}}if(c&&!U(jo(r),((t,r)=>Hu(e.reduceLeft(t,((t,n)=>{var i,a=3145728&(n=kc(n)).flags?Fc(n,r):pc(n,r),o=a&&jo(a)||(null===(i=qc(n,r))||void 0===i?void 0:i.type)||Be;return e.append(t,o)}),void 0)||e.emptyArray))(c,r.escapedName),3,a))return a&&I(e.Diagnostics.Types_of_property_0_are_incompatible,wa(r)),{value:!0}}},d=0,p=fc(t);d<p.length;d++){var _=u(p[d]);if("object"==typeof _)return _.value}return!1})(l,d,o))return o&&R(s,l,r.aliasSymbol?r:d),0;var g=n!==bn&&!(2&c)&&2752508&l.flags&&l!==At&&2621440&d.flags&&k_(d)&&(fc(l).length>0||VS(l));if(g&&!((e,t,r)=>{for(var n=0,i=fc(e);n<i.length;n++)if(Xh(t,i[n].escapedName,r))return!0;return!1})(l,d,_)){if(o){var h=Pa(t.aliasSymbol?t:l),y=Pa(r.aliasSymbol?r:d),v=jc(l,0),b=jc(l,1);v.length>0&&U(_l(v[0]),d,1,!1)||b.length>0&&U(_l(b[0]),d,1,!1)?M(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,h,y):M(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,h,y)}return 0}V(l,d);var E=0,D=P();if((1048576&l.flags||1048576&d.flags)&&ug(l)*ug(d)<4?E=$(l,d,o,8|c):(3145728&l.flags||3145728&d.flags)&&(E=J(l,d,o,8|c,a)),E||1048576&l.flags||!(469499904&l.flags||469499904&d.flags)||(E=J(l,d,o,c,a))&&F(D),!E&&2359296&l.flags){var T=((t,r)=>{for(var n,i=!1,a=0,o=t;a<o.length;a++)if(465829888&(u=o[a]).flags){for(var s=mc(u);s&&21233664&s.flags;)s=mc(s);s&&(n=e.append(n,s),r&&(n=e.append(n,u)))}else 469892092&u.flags&&(i=!0);if(n&&(r||i)){if(i)for(var c=0,l=t;c<l.length;c++){var u;469892092&(u=l[c]).flags&&(n=e.append(n,u))}return Zu(n)}})(2097152&l.flags?l.types:[l],!!(1048576&d.flags));T&&(2097152&l.flags||1048576&d.flags)&&ig(T,(e=>e!==l))&&(E=U(T,d,1,!1,void 0,c))&&F(D)}return E&&!S&&(2097152&d.flags&&(f||g)||$d(d)&&!W_(d)&&!uf(d)&&2097152&l.flags&&3670016&kc(l).flags&&!e.some(l.types,(t=>!!(524288&e.getObjectFlags(t)))))&&(S=!0,E&=J(l,d,o,4,a),S=!1),C(l,d,E,_),E;function C(n,a,c,l){if(!c&&o){var d=!!q_(t),p=!!q_(r);n=t.aliasSymbol||d?t:n,a=r.aliasSymbol||p?r:a;var _=x>0;if(_&&x--,524288&n.flags&&524288&a.flags){var f=u;L(n,a,o),u!==f&&(_=!!u)}if(524288&n.flags&&131068&a.flags)!((t,r)=>{var n=Ma(t.symbol)?Pa(t,t.symbol.valueDeclaration):Pa(t),i=Ma(r.symbol)?Pa(r,r.symbol.valueDeclaration):Pa(r);(Ot===t&&We===r||Mt===t&&He===r||Rt===t&&Ye===r||mu(!1)===t&&Qe===r)&&M(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)})(n,a);else if(n.symbol&&524288&n.flags&&At===n)M(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(l&&2097152&a.flags){var g=a.types,h=Lh(k.IntrinsicAttributes,i),y=Lh(k.IntrinsicClassAttributes,i);if(!Za(h)&&!Za(y)&&(e.contains(g,h)||e.contains(g,y)))return c}else u=Rc(u,r);if(!s&&_)return m=[n,a],c;R(s,n,a)}}}function V(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,a=r;if(n.objectFlags&a.objectFlags&65536)return;var o=n.types.length,s=a.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function z(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=K(i[n],t,!1);if(!a)return 0;r&=a}return r}function K(e,t,r){var n=t.types;if(1048576&t.flags){if(ju(n,e))return-1;var i=Im(t,e);if(i&&(s=U(e,i,2,!1)))return s}for(var a=0,o=n;a<o.length;a++){var s;if(s=U(e,o[a],2,!1))return s}return r&&U(e,T_(e,t,U)||n[n.length-1],2,!0),0}function H(e,t,r,n){var i=e.types;if(1048576&e.flags&&ju(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=U(i[o],t,1,r&&o===a-1,void 0,n);if(s)return s}return 0}function J(t,r,i,a,o){if(b)return 0;var s=a|(S?16:0),c=O_(t,r,s,n,!1),l=n.get(c);if(void 0!==l&&(!(i&&2&l)||4&l)){if(br){var u=24&l;8&u&&Rp(t,bp(q)),16&u&&Rp(t,bp(X))}return 1&l?-1:0}if(p){for(var d=c.startsWith("*")?O_(t,r,s,n,!0):void 0,m=0;m<g;m++)if(c===p[m]||d&&d===p[m])return 3;if(100===h||100===y)return b=!0,0}else p=[],_=[],f=[];var x=g;p[g]=c,g++;var E,D=v;1&o&&(_[h]=t,h++,1&v||!B_(t,_,h)||(v|=1)),2&o&&(f[y]=r,y++,2&v||!B_(r,f,y)||(v|=2));var T=0;br&&(E=br,br=e=>(T|=e?16:8,E(e))),3===v&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:t.id,sourceIdStack:_.map((e=>e.id)),targetId:r.id,targetIdStack:f.map((e=>e.id)),depth:h,targetDepth:y}));var C=3!==v?$(t,r,i,a):3;if(br&&(br=E),1&o&&h--,2&o&&y--,v=D,C){if(-1===C||0===h&&0===y){if(-1===C||3===C)for(m=x;m<g;m++)n.set(p[m],1|T);g=x}}else n.set(c,2|(i?4:0)|T),g=x;return C}function $(t,r,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:t.id,targetId:r.id});var o=((t,r,i,a)=>{if(4&a)return ee(t,r,i,void 0,0);if(8&a){if(1048576&t.flags)return n===bn?H(t,r,i&&!(131068&t.flags),-9&a):((e,t,r,n)=>{for(var i=-1,a=e.types,o=((e,t)=>1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?dg(t,-32769):t)(e,t),s=0;s<a.length;s++){var c=a[s];if(1048576&o.flags&&a.length>=o.types.length&&a.length%o.types.length==0){var l=U(c,o.types[s%o.types.length],3,!1,void 0,n);if(l){i&=l;continue}}var u=U(c,t,1,r,void 0,n);if(!u)return 0;i&=u}return i})(t,r,i&&!(131068&t.flags),-9&a);if(1048576&r.flags)return K(Pf(t),r,i&&!(131068&t.flags)&&!(131068&r.flags));if(2097152&r.flags)return((e,t,r,n)=>{for(var i=-1,a=0,o=t.types;a<o.length;a++){var s=U(e,o[a],2,r,void 0,2);if(!s)return 0;i&=s}return i})(Pf(t),r,i);if(n===bn&&131068&r.flags){var o=e.sameMap(t.types,Ec);if(o!==t.types&&!(2097152&(t=Zu(o)).flags))return U(t,r,1,!1)}return H(t,r,!1,1)}var s,c,l=t.flags&r.flags;if(n===xn&&!(524288&l)){if(4194304&l)return U(t.type,r.type,3,!1);var d=0;return 8388608&l&&(d=U(t.objectType,r.objectType,3,!1))&&(d&=U(t.indexType,r.indexType,3,!1))||16777216&l&&t.root.isDistributive===r.root.isDistributive&&(d=U(t.checkType,r.checkType,3,!1))&&(d&=U(t.extendsType,r.extendsType,3,!1))&&(d&=U(Bd(t),Bd(r),3,!1))&&(d&=U(jd(t),jd(r),3,!1))?d:33554432&l?U(t.substitute,r.substitute,3,!1):0}var p,m,g=!1,v=P();if(17301504&t.flags&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!t.aliasTypeArgumentsContainsMarker&&!r.aliasTypeArgumentsContainsMarker){if((ue=N_(t.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(de=ge(t.aliasTypeArguments,r.aliasTypeArguments,ue,a)))return de}if(pf(t)&&!t.target.readonly&&(s=U(Vl(t)[0],r,1))||pf(r)&&(r.target.readonly||J_(xc(t)||t))&&(s=U(t,Vl(r)[0],2)))return s;if(262144&r.flags){if(32&e.getObjectFlags(t)&&!t.declaration.nameType&&U(sd(r),ec(t),3)&&!(4&oc(t))){var b=rc(t),x=Ad(r,Zs(t));if(s=U(b,x,3,i))return s}}else if(4194304&r.flags){var E=r.type;if(4194304&t.flags&&(s=U(E,t.type,3,!1)))return s;if(uf(E)){if(s=U(t,Mu(E),2,i))return s}else if(Z=hc(E)){if(-1===U(t,sd(Z,r.stringsOnly),2,i))return-1}else if(lc(E)){var S=tc(E),D=ec(E),T=void 0;if(S&&ic(E)){var C=kc(ac(E)),k=[];Qs(C,8576,!1,(e=>{k.push(Rp(S,Tp(E.mapper,Zs(E),e)))})),T=Hu(Il(Il([],k,!0),[S],!1))}else T=S||D;if(-1===U(t,T,2,i))return-1}}else if(8388608&r.flags){if(8388608&t.flags){if((s=U(t.objectType,r.objectType,3,i))&&(s&=U(t.indexType,r.indexType,3,i)),s)return F(v),s;i&&(c=u)}if(n===vn||n===bn){var A=r.objectType,N=r.indexType,w=xc(A)||A,I=xc(N)||N;if(!bd(w)&&!xd(I)&&(Z=wd(w,I,4|(w!==A?2:0)))){if(i&&c&&F(v),s=U(t,Z,2,i))return s;i&&c&&u&&(u=me([c])<=me([u])?c:u)}}i&&(c=void 0)}else if(lc(r)&&n!==xn){var O=!!r.declaration.nameType,M=(b=rc(r),oc(r));if(!(8&M)){if(!O&&8388608&b.flags&&b.objectType===t&&b.indexType===Zs(r))return-1;if(!lc(t)){T=O?tc(r):ec(r);var R=sd(t,void 0,!0),L=4&M,j=L?Hs(T,R):void 0;if(L?!(131072&j.flags):U(T,R,3)){var V=rc(r),z=Zs(r),J=dg(V,-98305);if(!O&&8388608&J.flags&&J.indexType===z){if(s=U(t,J.objectType,2,i))return s}else if(x=Ad(t,O?j||T:j?Zu([j,z]):z),s=U(x,V,3,i))return s}c=u,F(v)}}}else if(16777216&r.flags){if(B_(r,f,y,10))return F(v),3;var $=r;if(!($.root.inferTypeParameters||(p=$.root).isDistributive&&(Np(p.checkType,p.node.trueType)||Np(p.checkType,p.node.falseType)))){var G=!Xp(Bp($.checkType),Bp($.extendsType)),Y=!G&&Xp(jp($.checkType),jp($.extendsType));if((s=G?-1:U(t,Bd($),2,!1))&&(s&=Y?-1:U(t,jd($),2,!1)))return F(v),s}}else if(134217728&r.flags){if(134217728&t.flags){if(n===bn)return((e,t)=>{var r=e.texts[0],n=t.texts[0],i=e.texts[e.texts.length-1],a=t.texts[t.texts.length-1],o=Math.min(r.length,n.length),s=Math.min(i.length,a.length);return r.slice(0,o)!==n.slice(0,o)||i.slice(i.length-s)!==a.slice(a.length-s)})(t,r)?0:-1;Rp(t,bp(X))}if(um(t,r))return-1}if(8650752&t.flags){if(!(8388608&t.flags&&8388608&r.flags))if(!(Z=mc(t))||262144&t.flags&&1&Z.flags){if(s=U(_t,dg(r,-67108865),3))return F(v),s}else{if(s=U(Z,r,1,!1,void 0,a))return F(v),s;if(s=U(Is(Z,t),r,1,i&&!(r.flags&t.flags&262144),void 0,a))return F(v),s}}else if(4194304&t.flags){if(s=U(ct,r,1,i))return F(v),s}else if(134217728&t.flags&&!(524288&r.flags)){if(!(134217728&r.flags)&&(Z=xc(t))&&Z!==t&&(s=U(Z,r,1,i)))return F(v),s}else if(268435456&t.flags){var Z;if(268435456&r.flags&&t.symbol===r.symbol){if(s=U(t.type,r.type,3,i))return F(v),s}else if((Z=xc(t))&&(s=U(Z,r,1,i)))return F(v),s}else if(16777216&t.flags){if(B_(t,_,h,10))return F(v),3;if(16777216&r.flags){var re=t.root.inferTypeParameters,ne=t.extendsType,ie=void 0;if(re){var ae=Hf(re,void 0,0,B);_m(ae.inferences,r.extendsType,ne,1536),ne=Rp(ne,ae.mapper),ie=ae.mapper}if(Hp(ne,r.extendsType)&&(U(t.checkType,r.checkType,3)||U(r.checkType,t.checkType,3))&&((s=U(Rp(Bd(t),ie),Bd(r),3,i))&&(s&=U(jd(t),jd(r),3,i)),s))return F(v),s}else{var se=vc(t);if(se&&(s=U(se,r,1,i)))return F(v),s}var ce=yc(t);if(ce&&(s=U(ce,r,1,i)))return F(v),s}else{if(n!==hn&&n!==yn&&(m=r,32&e.getObjectFlags(m)&&4&oc(m))&&__(t))return-1;if(lc(r))return lc(t)&&(s=((e,t,r)=>{var i;if((n===bn||(n===xn?oc(e)===oc(t):cc(e)<=cc(t)))&&(i=U(ec(t),Rp(ec(e),bp(cc(e)<0?q:X)),3,r))){var a=hp([Zs(e)],[Zs(t)]);if(Rp(tc(e),a)===Rp(tc(t),a))return i&U(Rp(rc(e),a),rc(t),3,r)}return 0})(t,r,i))?(F(v),s):0;var le=!!(131068&t.flags);if(n!==xn)t=kc(t);else if(lc(t))return 0;if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target&&!uf(t)&&!(4096&e.getObjectFlags(t)||4096&e.getObjectFlags(r))){var ue,de;if((ue=F_(t.target))===e.emptyArray)return 1;if(void 0!==(de=ge(Vl(t),Vl(r),ue,a)))return de}else{if(H_(r)?W_(t)||uf(t):W_(r)&&uf(t)&&!t.target.readonly)return n!==xn?U(Jc(t,He)||Ne,Jc(r,He)||Ne,3,i):0;if((n===hn||n===yn)&&__(r)&&16384&e.getObjectFlags(r)&&!__(t))return 0}if(2621440&t.flags&&524288&r.flags){var pe=i&&u===v.errorInfo&&!le;if((s=ee(t,r,pe,void 0,a))&&(s&=te(t,r,0,pe))&&(s&=te(t,r,1,pe))&&(s&=oe(t,r,le,pe,a)),g&&s)u=c||u||v.errorInfo;else if(s)return s}if(2621440&t.flags&&1048576&r.flags){var _e=dg(r,36175872);if(1048576&_e.flags){var fe=((t,r)=>{var i=wm(fc(t),r);if(!i)return 0;for(var a=1,o=0,s=i;o<s.length;o++)if((a*=sg(Uo(d=s[o])))>25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:a}),0;for(var c=new Array(i.length),l=new e.Set,u=0;u<i.length;u++){var d,p=Uo(d=i[u]);c[u]=1048576&p.flags?p.types:[p],l.add(d.escapedName)}for(var _=e.cartesianProduct(c),f=[],m=a=>{var o=!1;e:for(var s=0,c=r.types;s<c.length;s++){for(var l=c[s],u=e=>{var o=i[e],s=Lc(l,o.escapedName);return s?o===s?"continue":Q(t,r,o,s,(t=>a[e]),!1,0,W||n===bn)?void 0:"continue-outer":"continue-outer"},d=0;d<i.length;d++)switch(u(d)){case"continue-outer":continue e}e.pushIfUnique(f,l,e.equateValues),o=!0}if(!o)return{value:0}},g=0,h=_;g<h.length;g++){var y=m(h[g]);if("object"==typeof y)return y.value}for(var v=-1,b=0,x=f;b<x.length;b++){var E=x[b];if((v&=ee(t,E,!1,l,0))&&(v&=te(t,E,0,!1))&&(!(v&=te(t,E,1,!1))||uf(t)&&uf(E)||(v&=oe(t,E,!1,!1,0))),!v)return v}return v})(t,_e);if(fe)return fe}}}return 0;function me(t){return t?e.reduceLeft(t,((e,t)=>e+1+me(t.next)),0):0}function ge(t,r,a,o){if(s=((t,r,i,a,o)=>{if(void 0===t&&(t=e.emptyArray),void 0===r&&(r=e.emptyArray),void 0===i&&(i=e.emptyArray),t.length!==r.length&&n===xn)return 0;for(var s=t.length<=r.length?t.length:r.length,c=-1,l=0;l<s;l++){var u=l<i.length?i[l]:1,d=7&u;if(4!==d){var p=t[l],_=r[l],f=-1;if(8&u?f=n===xn?U(p,_,3,!1):Jp(p,_):1===d?f=U(p,_,3,a,void 0,o):2===d?f=U(_,p,3,a,void 0,o):3===d?(f=U(_,p,3,!1))||(f=U(p,_,3,a,void 0,o)):(f=U(p,_,3,a,void 0,o))&&(f&=U(_,p,3,a,void 0,o)),!f)return 0;c&=f}}return c})(t,r,a,i,o))return s;if(e.some(a,(e=>!!(24&e))))return c=void 0,void F(v);var l=r&&((e,t)=>{for(var r=0;r<t.length;r++)if(1==(7&t[r])&&16384&e[r].flags)return!0;return!1})(r,a);if(g=!l,a!==e.emptyArray&&!l){if(g&&(!i||!e.some(a,(e=>0==(7&e)))))return 0;c=u,F(v)}}})(t,r,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function q(e){return!br||e!==Et&&e!==St&&e!==xr||br(!1),e}function X(e){return!br||e!==Et&&e!==St&&e!==xr||br(!0),e}function Y(e,t){if(!t||0===e.length)return e;for(var r,n=0;n<e.length;n++)t.has(e[n].escapedName)?r||(r=e.slice(0,n)):r&&r.push(e[n]);return r||e}function Q(t,r,n,i,a,o,s,c){var l=e.getDeclarationModifierFlagsFromSymbol(n),u=e.getDeclarationModifierFlagsFromSymbol(i);if(8&l||8&u){if(n.valueDeclaration!==i.valueDeclaration)return o&&(8&l&&8&u?M(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,wa(i)):M(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,wa(i),Pa(8&l?t:r),Pa(8&l?r:t))),0}else if(16&u){if(!((t,r)=>!M_(r,(r=>{return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=R_(r),!M_(n,(e=>{var t=R_(e);return!!t&&Ko(t,i)})));var n,i})))(n,i))return o&&M(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,wa(i),Pa(R_(n)||t),Pa(R_(i)||r)),0}else if(16&l)return o&&M(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,wa(i),Pa(t),Pa(r)),0;var d=((t,r,n,i,a)=>{var o=W&&!!(48&e.getCheckFlags(r)),s=po(Uo(r),!1,o);return U(n(t),s,3,i,void 0,a)})(n,i,a,o,s);return d?c||!(16777216&n.flags)||16777216&i.flags?d:(o&&M(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,wa(i),Pa(t),Pa(r)),0):(o&&I(e.Diagnostics.Types_of_property_0_are_incompatible,wa(i)),0)}function ee(t,r,i,s,c){if(n===xn)return((e,t,r)=>{if(!(524288&e.flags&&524288&t.flags))return 0;var n=Y(dc(e),r),i=Y(dc(t),r);if(n.length!==i.length)return 0;for(var a=-1,o=0,s=n;o<s.length;o++){var c=s[o],l=pc(t,c.escapedName);if(!l)return 0;var u=V_(c,l,U);if(!u)return 0;a&=u}return a})(t,r,s);var l=-1;if(uf(r)){if(W_(t)||uf(t)){if(!r.target.readonly&&(H_(t)||uf(t)&&t.target.readonly))return 0;var p=zl(t),_=zl(r),f=uf(t)?4&t.target.combinedFlags:4,m=4&r.target.combinedFlags,g=uf(t)?t.target.minLength:0,h=r.target.minLength;if(!f&&p<h)return i&&M(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,p,h),0;if(!m&&_<g)return i&&M(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,g,_),0;if(!m&&(f||_<p))return i&&(g<h?M(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,h):M(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,_)),0;for(var y=Vl(t),v=Vl(r),b=Math.min(uf(t)?Ru(t.target,11):0,Ru(r.target,11)),E=Math.min(uf(t)?Lu(t.target,11):0,m?Lu(r.target,11):0),S=!!s,D=0;D<_;D++){var T=D<_-E?D:D+p-_,C=uf(t)&&(D<b||D>=_-E)?t.target.elementFlags[T]:4,k=r.target.elementFlags[D];if(8&k&&!(8&C))return i&&M(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,D),0;if(8&C&&!(12&k))return i&&M(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,T,D),0;if(1&k&&!(1&C))return i&&M(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,D),0;if(!(S&&((12&C||12&k)&&(S=!1),S&&(null==s?void 0:s.has(""+D))))){var A=uf(t)?D<b||D>=_-E?kf(y[T],!!(C&k&2)):ff(t,b,E)||et:y[0],N=v[D];if(!(H=U(A,8&C&&4&k?Du(N):kf(N,!!(2&k)),3,i,void 0,c)))return i&&(_>1||p>1)&&(D<b||D>=_-E||p-b-E==1?I(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,T,D):I(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,b,p-E-1,D)),0;l&=H}}return l}if(12&r.target.combinedFlags)return 0}var w=!(n!==hn&&n!==yn||gm(t)||Y_(t)||uf(t)),F=am(t,r,w,!1);if(F)return i&&((t,r,n,i)=>{var s=!1;if(n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var c=n.valueDeclaration.name.escapedText,l=e.getSymbolNameForPrivateIdentifier(t.symbol,c);if(l&&Lc(t,l)){var p=e.factory.getDeclarationName(t.symbol.valueDeclaration),_=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void M(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,ri(c),ri(""===p.escapedText?o:p),ri(""===_.escapedText?o:_))}}var f,m=e.arrayFrom(im(t,r,i,!1));if((!a||a.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&a.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===m.length){var g=wa(n);M.apply(void 0,Il([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,g],Ia(t,r),!1)),e.length(n.declarations)&&(f=e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,g),e.Debug.assert(!!u),d?d.push(f):d=[f]),s&&u&&x++}else L(t,r,!1)&&(m.length>5?M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Pa(t),Pa(r),e.map(m.slice(0,4),(e=>wa(e))).join(", "),m.length-4):M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Pa(t),Pa(r),e.map(m,(e=>wa(e))).join(", ")),s&&u&&x++)})(t,r,F,w),0;if(gm(r))for(var P=0,O=Y(fc(t),s);P<O.length;P++)if(!(pc(r,(z=O[P]).escapedName)||32768&(A=jo(z)).flags))return i&&M(e.Diagnostics.Property_0_does_not_exist_on_type_1,wa(z),Pa(r)),0;for(var R=fc(r),B=uf(t)&&uf(r),j=0,V=Y(R,s);j<V.length;j++){var z,K=V[j],W=K.escapedName;if(!(4194304&K.flags)&&(!B||Ch(W)||"length"===W)&&(z=Lc(t,W))&&z!==K){var H;if(!(H=Q(t,r,z,K,Uo,i,c,n===bn)))return 0;l&=H}}return l}function te(t,r,i,a){var o,s;if(n===xn)return((e,t,r)=>{var n=jc(e,r),i=jc(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=z_(n[o],i[o],!1,!1,!1,U);if(!s)return 0;a&=s}return a})(t,r,i);if(r===yt||t===yt)return-1;var c=t.symbol&&Av(t.symbol.valueDeclaration),l=r.symbol&&Av(r.symbol.valueDeclaration),u=jc(t,c&&1===i?0:i),d=jc(r,l&&1===i?0:i);if(1===i&&u.length&&d.length){var p=!!(4&u[0].flags),_=!!(4&d[0].flags);if(p&&!_)return a&&M(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!((t,r,n)=>{if(!t.declaration||!r.declaration)return!0;var i=e.getSelectedEffectiveModifierFlags(t.declaration,24),a=e.getSelectedEffectiveModifierFlags(r.declaration,24);return 8===a||16===a&&8!==i||16!==a&&!i||(n&&M(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,ja(i),ja(a)),!1)})(u[0],d[0],a))return 0}var f=-1,m=P(),g=1===i?ne:re,h=e.getObjectFlags(t),y=e.getObjectFlags(r);if(64&h&&64&y&&t.symbol===r.symbol)for(var v=0;v<d.length;v++){if(!(w=ie(u[v],d[v],!0,a,g(u[v],d[v]))))return 0;f&=w}else if(1===u.length&&1===d.length){var b=n===bn||!!j.noStrictGenericChecks,x=e.first(u),E=e.first(d);if(!(f=ie(x,E,b,a,g(x,E)))&&a&&1===i&&h&y&&(170===(null===(o=E.declaration)||void 0===o?void 0:o.kind)||170===(null===(s=x.declaration)||void 0===s?void 0:s.kind))){var S=e=>Fa(e,void 0,262144,i);return M(e.Diagnostics.Type_0_is_not_assignable_to_type_1,S(x),S(E)),M(e.Diagnostics.Types_of_construct_signatures_are_incompatible),f}}else e:for(var D=0,T=d;D<T.length;D++){for(var C=T[D],k=a,A=0,N=u;A<N.length;A++){var w,I=N[A];if(w=ie(I,C,!0,k,g(I,C))){f&=w,F(m);continue e}k=!1}return k&&M(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Pa(t),Fa(C,void 0,void 0,i)),0}return f}function re(t,r){return 0===t.parameters.length&&0===r.parameters.length?(t,r)=>I(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Pa(t),Pa(r)):(t,r)=>I(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Pa(t),Pa(r))}function ne(t,r){return 0===t.parameters.length&&0===r.parameters.length?(t,r)=>I(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Pa(t),Pa(r)):(t,r)=>I(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Pa(t),Pa(r))}function ie(e,t,r,i,a){return d_(r?bl(e):e,r?bl(t):t,n===yn?8:0,i,M,a,B,bp(X))}function ae(t,r,n){var i=U(t.type,r.type,3,n);return!i&&n&&(t.keyType===r.keyType?M(e.Diagnostics._0_index_signatures_are_incompatible,Pa(t.keyType)):M(e.Diagnostics._0_and_1_index_signatures_are_incompatible,Pa(t.keyType),Pa(r.keyType))),i}function oe(t,r,i,a,o){if(n===xn)return((e,t)=>{var r=Wc(e),n=Wc(t);if(r.length!==n.length)return 0;for(var i=0,a=n;i<a.length;i++){var o=a[i],s=Hc(e,o.keyType);if(!s||!U(s.type,o.type,3)||s.isReadonly!==o.isReadonly)return 0}return-1})(t,r);for(var s=Wc(r),c=e.some(s,(e=>e.keyType===We)),l=-1,u=0,d=s;u<d.length;u++){var p=d[u],_=!i&&c&&1&p.type.flags?-1:lc(t)&&c?U(rc(t),p.type,3,a):se(t,p,a,o);if(!_)return 0;l&=_}return l}function se(t,r,n,i){var a=Gc(t,r.keyType);return a?ae(a,r,n):1&i||!wf(t)?(n&&M(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,Pa(r.keyType),Pa(t)),0):((t,r,n)=>{for(var i=-1,a=r.keyType,o=0,s=2097152&t.flags?_c(t):dc(t);o<s.length;o++){var c=s[o];if(!v_(t,c)&&zc(ad(c,8576),a)){var l=Uo(c);if(!(_=U(Z||32768&l.flags||a===He||!(16777216&c.flags)?l:jm(l,524288),r.type,3,n)))return n&&M(e.Diagnostics.Property_0_is_incompatible_with_index_signature,wa(c)),0;i&=_}}for(var u=0,d=Wc(t);u<d.length;u++){var p=d[u];if(zc(p.keyType,a)){var _;if(!(_=ae(p,r,n)))return 0;i&=_}}return i})(t,r,n)}}function E_(t){if(16&t.flags)return!1;if(3145728&t.flags)return!!e.forEach(t.types,E_);if(465829888&t.flags){var r=mc(t);if(r&&r!==t)return E_(r)}return tf(t)||!!(134217728&t.flags)}function S_(t,r){return uf(t)&&uf(r)?e.emptyArray:fc(r).filter((e=>D_(Ya(t,e.escapedName),jo(e))))}function D_(e,t){return!!e&&!!t&&Tb(e,32768)&&!!Af(t)}function T_(t,r,n){return void 0===n&&(n=$p),tT(t,r,n,!0)||((t,r)=>{var n=e.getObjectFlags(t);if(20&n&&1048576&r.flags)return e.find(r.types,(r=>{if(524288&r.flags){var i=n&e.getObjectFlags(r);if(4&i)return t.target===r.target;if(16&i)return!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol}return!1}))})(t,r)||((t,r)=>{if(128&e.getObjectFlags(t)&&ng(r,G_))return e.find(r.types,(e=>!G_(e)))})(t,r)||((t,r)=>{var n=0;if(jc(t,n).length>0||jc(t,n=1).length>0)return e.find(r.types,(e=>jc(e,n).length>0))})(t,r)||((t,r)=>{for(var n,i=0,a=0,o=r.types;a<o.length;a++){var s=o[a],c=Zu([sd(t),sd(s)]);if(4194304&c.flags)n=s,i=1/0;else if(1048576&c.flags){var l=e.length(e.filter(c.types,tf));l>=i&&(n=s,i=l)}else tf(c)&&1>=i&&(n=s,i=1)}return n})(t,r)}function C_(t,r,n,i,a){for(var o=t.types.map((e=>{})),s=0,c=r;s<c.length;s++){var l=c[s],u=l[0],d=l[1],p=wc(t,d);if(!(a&&p&&16&e.getCheckFlags(p)))for(var _=0,f=0,m=t.types;f<m.length;f++){var g=Ya(m[f],d);g&&n(u(),g)?o[_]=void 0===o[_]||o[_]:o[_]=!1,_++}}var h=o.indexOf(!0);if(-1===h)return i;for(var y=o.indexOf(!0,h+1);-1!==y;){if(!Hp(t.types[h],t.types[y]))return i;y=o.indexOf(!0,y+1)}return t.types[h]}function k_(t){if(524288&t.flags){var r=uc(t);return 0===r.callSignatures.length&&0===r.constructSignatures.length&&0===r.indexInfos.length&&r.properties.length>0&&e.every(r.properties,(e=>!!(16777216&e.flags)))}return!!(2097152&t.flags)&&e.every(t.types,k_)}function A_(t,r,n){var i=Bl(t,e.map(t.typeParameters,(e=>e===r?n:e)));return i.objectFlags|=4096,i}function N_(e){var t=Hn(e);return w_(t.typeParameters,t,((r,n,i)=>{var a=Wl(e,fp(t.typeParameters,vp(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function w_(t,r,n){var i,a,o;void 0===t&&(t=e.emptyArray);var s=r.variances;if(!s){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:t.length,id:null!==(o=null!==(i=r.id)&&void 0!==i?i:null===(a=r.declaredType)||void 0===a?void 0:a.id)&&void 0!==o?o:-1}),r.variances=e.emptyArray,s=[];for(var c=e=>{var t=!1,i=!1,a=br;br=e=>e?i=!0:t=!0;var o=n(r,e,Et),c=n(r,e,St),l=(Xp(c,o)?1:0)|(Xp(o,c)?2:0);3===l&&Xp(n(r,e,xr),o)&&(l=4),br=a,(t||i)&&(t&&(l|=8),i&&(l|=16)),s.push(l)},l=0,u=t;l<u.length;l++)c(u[l]);r.variances=s,null===e.tracing||void 0===e.tracing||e.tracing.pop()}return s}function F_(e){return e===Pt||e===It||8&e.objectFlags?T:w_(e.typeParameters,e,A_)}function P_(e){return 262144&e.flags&&!gc(e)}function I_(t){return(t=>!!(4&e.getObjectFlags(t))&&!t.node)(t)&&e.some(Vl(t),(e=>!!(262144&e.flags)||I_(e)))}function O_(e,t,r,n,i){if(n===xn&&e.id>t.id){var a=e;e=t,t=a}var o=r?":"+r:"";return I_(e)&&I_(t)?((e,t,r,n)=>{var i=[],a="",o=c(e,0),s=c(t,0);return"".concat(a).concat(o,",").concat(s).concat(r);function c(e,t){void 0===t&&(t=0);for(var r=""+e.target.id,o=0,s=Vl(e);o<s.length;o++){var l=s[o];if(262144&l.flags){if(n||P_(l)){var u=i.indexOf(l);u<0&&(u=i.length,i.push(l)),r+="="+u;continue}a="*"}else if(t<4&&I_(l)){r+="<"+c(l,t+1)+">";continue}r+="-"+l.id}return r}})(e,t,o,i):"".concat(e.id,",").concat(t.id).concat(o)}function M_(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=Lc(i[n],t.escapedName),o=a&&M_(a,r);if(o)return o}}function R_(e){return e.parent&&32&e.parent.flags?_s(Yi(e)):void 0}function L_(e){var t=R_(e),r=t&&ts(t)[0];return r&&Ya(r,e.escapedName)}function B_(e,t,r,n){if(void 0===n&&(n=3),r>=n)for(var i=j_(e),a=0,o=0,s=0;s<r;s++){var c=t[s];if(j_(c)===i){if(c.id>=o&&++a>=n)return!0;o=c.id}}return!1}function j_(t){if(524288&t.flags&&!hm(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(uf(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function U_(e,t){return 0!==V_(e,t,Jp)}function V_(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(eS(t)!==eS(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return xb(t)!==xb(r)?0:n(jo(t),jo(r))}function z_(t,r,n,i,a,o){if(t===r)return-1;if(!((e,t,r)=>{var n=Yv(e),i=Yv(t),a=Qv(e),o=Qv(t),s=Zv(e),c=Zv(t);return n===i&&a===o&&s===c||!!(r&&a<=o)})(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var s=hp(t.typeParameters,r.typeParameters),c=0;c<r.typeParameters.length;c++)if(!((m=t.typeParameters[c])===(_=r.typeParameters[c])||o(Rp(wl(m),s)||Re,wl(_)||Re)&&o(Rp(Cc(m),s)||Re,Cc(_)||Re)))return 0;t=kp(t,s,!0)}var l=-1;if(!i){var u=ul(t);if(u){var d=ul(r);if(d){if(!(f=o(u,d)))return 0;l&=f}}}var p=Yv(r);for(c=0;c<p;c++){var _,f,m=Gv(t,c);if(!(f=o(_=Gv(r,c),m)))return 0;l&=f}if(!a){var g=dl(t),h=dl(r);l&=g||h?((e,t,r)=>e&&t&&Ju(e,t)?e.type===t.type?-1:e.type&&t.type?r(e.type,t.type):0:0)(g,h,o):o(_l(t),_l(r))}return l}function K_(t){return 1===t.length?t[0]:(e=>{for(var t,r=0,n=e;r<n.length;r++){var i=n[r],a=af(i);if(t||(t=a),a===i||a!==t)return!1}return!0})(t)?Hu(t):e.reduceLeft(t,((e,t)=>qp(e,t)?t:e))}function W_(t){return!!(4&e.getObjectFlags(t))&&(t.target===Pt||t.target===It)}function H_(t){return!!(4&e.getObjectFlags(t))&&t.target===It}function J_(e){return W_(e)&&!H_(e)||uf(e)&&!e.target.readonly}function $_(e){return W_(e)?Vl(e)[0]:void 0}function G_(e){return W_(e)||!(98304&e.flags)&&Xp(e,Vt)}function q_(t){if(4&e.getObjectFlags(t)&&3&e.getObjectFlags(t.target)){if(33554432&e.getObjectFlags(t))return 67108864&e.getObjectFlags(t)?t.cachedEquivalentBaseType:void 0;t.objectFlags|=33554432;var r=t.target;if(1&e.getObjectFlags(r)){var n=Xo(r);if(n&&79!==n.expression.kind&&205!==n.expression.kind)return}var i=ts(r);if(1===i.length&&!Fs(t.symbol).size){var a=e.length(r.typeParameters)?Rp(i[0],hp(r.typeParameters,Vl(t).slice(0,r.typeParameters.length))):i[0];return e.length(Vl(t))>e.length(r.typeParameters)&&(a=Is(a,e.last(Vl(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function X_(e){return W?e===nt:e===je}function Y_(e){var t=$_(e);return!!t&&X_(t)}function Q_(e){return uf(e)||!!Lc(e,"0")}function Z_(e){return G_(e)||Q_(e)}function ef(e){return!(240512&e.flags)}function tf(e){return!!(109440&e.flags)}function rf(t){return 2097152&t.flags?e.some(t.types,tf):!!(109440&t.flags)}function nf(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,tf):tf(t))}function af(e){return 1024&e.flags?ls(e):128&e.flags?We:256&e.flags?He:2048&e.flags?Je:512&e.flags?Ye:1048576&e.flags?cg(e,af):e}function of(e){return 1024&e.flags&&rp(e)?ls(e):128&e.flags&&rp(e)?We:256&e.flags&&rp(e)?He:2048&e.flags&&rp(e)?Je:512&e.flags&&rp(e)?Ye:1048576&e.flags?cg(e,of):e}function sf(e){return 8192&e.flags?Qe:1048576&e.flags?cg(e,sf):e}function cf(e,t){return Wb(e,t)||(e=sf(of(e))),e}function lf(e,t,r,n){return e&&tf(e)&&(e=cf(e,t?UE(r,t,n):void 0)),e}function uf(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function df(e){return uf(e)&&!!(8&e.target.combinedFlags)}function pf(e){return df(e)&&1===e.target.elementFlags.length}function _f(e){return ff(e,e.target.fixedLength)}function ff(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=zl(e)-r;if(t<i){for(var a=Vl(e),o=[],s=t;s<i;s++){var c=a[s];o.push(8&e.target.elementFlags[s]?Ad(c,He):c)}return n?Zu(o):Hu(o)}}function mf(e){return"0"===e.value.base10Value}function gf(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=hf(n[r]);return t}function hf(e){return 1048576&e.flags?gf(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?mf(e)?2048:0:512&e.flags?e===$e||e===Ge?512:0:117724&e.flags}function yf(e){return 117632&hf(e)?ag(e,(e=>!(117632&hf(e)))):e}function vf(e){return 4&e.flags?Kr:8&e.flags?Wr:64&e.flags?Hr:e===Ge||e===$e||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&mf(e)?e:et}function bf(e,t){var r=t&~e.flags&98304;return 0===r?e:Hu(32768===r?[e,Be]:65536===r?[e,ze]:[e,Be,ze])}function xf(t,r){return void 0===r&&(r=!1),e.Debug.assert(W),32768&t.flags?t:Hu([t,r?Ve:Be])}function Ef(e){return W?(e=>{var t=jm(e,2097152);return zt||(zt=uu("NonNullable",524288,void 0)||Te),zt!==Te?Wl(zt,[t]):t})(e):e}function Sf(e){return W?Hu([e,Ue]):e}function Df(e){return W?og(e,Ue):e}function Tf(t,r,n){return n?e.isOutermostOptionalChain(r)?xf(t):Sf(t):t}function Cf(t,r){return e.isExpressionOfOptionalChainRoot(r)?Ef(t):e.isOptionalChain(r)?Df(t):t}function kf(e,t){return Z&&t?og(e,Ve):e}function Af(e){return Z&&(e===Ve||1048576&e.flags&&ju(e.types,Ve))}function Nf(e){return Z?og(e,Ve):jm(e,524288)}function wf(t){return 2097152&t.flags?e.every(t.types,wf):!(!t.symbol||0==(7040&t.symbol.flags)||VS(t))||!!(1024&e.getObjectFlags(t)&&wf(t.source))}function Ff(t,r){var n=Rn(t.flags,t.escapedName,8&e.getCheckFlags(t));n.declarations=t.declarations,n.parent=t.parent,n.type=r,n.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration);var i=Hn(t).nameType;return i&&(n.nameType=i),n}function Pf(t){if(!(gm(t)&&16384&e.getObjectFlags(t)))return t;var r=t.regularType;if(r)return r;var n=t,i=((t,r)=>{for(var n=e.createSymbolTable(),i=0,a=dc(t);i<a.length;i++){var o=a[i],s=jo(o),c=r(s);n.set(o.escapedName,c===s?o:Ff(o,c))}return n})(t,Pf),a=fa(n.symbol,i,n.callSignatures,n.constructSignatures,n.indexInfos);return a.flags=n.flags,a.objectFlags|=-16385&n.objectFlags,t.regularType=a,a}function If(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function Of(e){if(!e.siblings){for(var t=[],r=0,n=Of(e.parent);r<n.length;r++){var i=n[r];if(gm(i)){var a=pc(i,e.propertyName);a&&rg(jo(a),(e=>{t.push(e)}))}}e.siblings=t}return e.siblings}function Mf(t){if(!t.resolvedProperties){for(var r=new e.Map,n=0,i=Of(t);n<i.length;n++){var a=i[n];if(gm(a)&&!(4194304&e.getObjectFlags(a)))for(var o=0,s=fc(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function Rf(e,t){if(!(4&e.flags))return e;var r=jo(e),n=jf(r,t&&If(t,e.escapedName,void 0));return n===r?e:Ff(e,n)}function Lf(e){var t=De.get(e.escapedName);if(t)return t;var r=Ff(e,Ve);return r.flags|=16777216,De.set(e.escapedName,r),r}function Bf(e){return jf(e,void 0)}function jf(t,r){if(393216&e.getObjectFlags(t)){if(void 0===r&&t.widened)return t.widened;var n=void 0;if(98305&t.flags)n=Ne;else if(gm(t))n=((t,r)=>{for(var n=e.createSymbolTable(),i=0,a=dc(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,Rf(o,r))}if(r)for(var s=0,c=Mf(r);s<c.length;s++)o=c[s],n.has(o.escapedName)||n.set(o.escapedName,Lf(o));var l=fa(t.symbol,n,e.emptyArray,e.emptyArray,e.sameMap(Wc(t),(e=>Tl(e.keyType,Bf(e.type),e.isReadonly))));return l.objectFlags|=532480&e.getObjectFlags(t),l})(t,r);else if(1048576&t.flags){var i=r||If(void 0,void 0,t.types),a=e.sameMap(t.types,(e=>98304&e.flags?e:jf(e,i)));n=Hu(a,e.some(a,__)?2:1)}else 2097152&t.flags?n=Zu(e.sameMap(t.types,Bf)):(W_(t)||uf(t))&&(n=Bl(t.target,e.sameMap(Vl(t),Bf)));return n&&void 0===r&&(t.widened=n),n||t}return t}function Uf(t){var r=!1;if(131072&e.getObjectFlags(t)){if(1048576&t.flags)if(e.some(t.types,__))r=!0;else for(var n=0,i=t.types;n<i.length;n++)Uf(u=i[n])&&(r=!0);if(W_(t)||uf(t))for(var a=0,o=Vl(t);a<o.length;a++)Uf(u=o[a])&&(r=!0);if(gm(t))for(var s=0,c=dc(t);s<c.length;s++){var l=c[s],u=jo(l);131072&e.getObjectFlags(u)&&(Uf(u)||wn(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,wa(l),Pa(Bf(u))),r=!0)}}return r}function Vf(t,r,n){var i=Pa(Bf(r));if(!e.isInJSFile(t)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),j)){var a;switch(t.kind){case 220:case 166:case 165:a=G?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 163:var o=t;if(e.isIdentifier(o.name)&&(e.isCallSignatureDeclaration(o.parent)||e.isMethodSignature(o.parent)||e.isFunctionTypeNode(o.parent))&&o.parent.parameters.indexOf(o)>-1&&(Yn(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o),c=e.declarationNameToString(o.name)+(o.dotDotDotToken?"[]":"");return void Pn(G,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,c)}a=t.dotDotDotToken?G?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:G?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 202:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!G)return;break;case 315:return void wn(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 255:case 168:case 167:case 171:case 172:case 212:case 213:if(G&&!t.name)return void wn(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=G?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 194:return void(G&&wn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=G?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Pn(G,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function zf(t,n,i){!(r&&G&&131072&e.getObjectFlags(n))||i&&bh(t)||Uf(n)||Vf(t,n,i)}function Kf(e,t,r){var n=Yv(e),i=Yv(t),a=eb(e),o=eb(t),s=o?i-1:i,c=a?s:Math.min(n,s),l=ul(e);if(l){var u=ul(t);u&&r(l,u)}for(var d=0;d<c;d++)r(Gv(e,d),Gv(t,d));o&&r(Xv(e,c),o)}function Wf(e,t,r){var n=dl(e),i=dl(t);n&&i&&Ju(n,i)&&n.type&&i.type?r(n.type,i.type):r(_l(e),_l(t))}function Hf(e,t,r,n){return Jf(e.map(qf),t,r,n||$p)}function Jf(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:bp((e=>$f(i,e,!0))),nonFixingMapper:bp((e=>$f(i,e,!1)))};return i}function $f(e,t,r){for(var n=e.inferences,i=0;i<n.length;i++){var a=n[i];if(t===a.typeParameter)return r&&!a.isFixed&&(Gf(n),a.isFixed=!0),ym(e,i)}return t}function Gf(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function qf(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Xf(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function Yf(e){return e&&e.mapper}function Qf(t){var r=e.getObjectFlags(t);if(1048576&r)return!!(2097152&r);var n=!!(465829888&t.flags||524288&t.flags&&!Zf(t)&&(4&r&&(t.node||e.forEach(Vl(t),Qf))||16&r&&t.symbol&&14384&t.symbol.flags&&t.symbol.declarations||8389664&r)||3145728&t.flags&&!(1024&t.flags)&&!Zf(t)&&e.some(t.types,Qf));return 3899393&t.flags&&(t.objectFlags|=1048576|(n?2097152:0)),n}function Zf(t){if(t.aliasSymbol&&!t.aliasTypeArguments){var r=e.getDeclarationOfKind(t.aliasSymbol,258);return!(!r||!e.findAncestor(r.parent,(e=>303===e.kind||260!==e.kind&&"quit")))}return!1}function em(t,r){return!!(t===r||3145728&t.flags&&e.some(t.types,(e=>em(e,r)))||16777216&t.flags&&(Bd(t)===r||jd(t)===r))}function tm(t,r,n){if(!Rr){var i=t.id+","+r.id+","+n.id;if(Mr.has(i))return Mr.get(i);Rr=!0;var a=((t,r,n)=>{if(Hc(t,We)||0!==fc(t).length&&rm(t)){if(W_(t))return Du(nm(Vl(t)[0],r,n),H_(t));if(uf(t))return wu(e.map(Vl(t),(e=>nm(e,r,n))),4&oc(r)?e.sameMap(t.target.elementFlags,(e=>2&e?1:e)):t.target.elementFlags,t.target.readonly,t.target.labeledElementDeclarations);var i=ca(1040,void 0);return i.source=t,i.mappedType=r,i.constraintType=n,i}})(t,r,n);return Rr=!1,Mr.set(i,a),a}}function rm(t){return!(524288&e.getObjectFlags(t))||gm(t)&&e.some(fc(t),(e=>rm(jo(e))))||uf(t)&&e.some(Vl(t),rm)}function nm(e,t,r){var n=Ad(r.type,Zs(t)),i=rc(t),a=qf(n);return _m([a],e,i),om(a)||Re}function im(t,r,n,i){var a,o,s,c,l,u,d;return Rl(this,(p=>{switch(p.label){case 0:a=fc(r),o=0,s=a,p.label=1;case 1:return o<s.length?xs(c=s[o])||!n&&(16777216&c.flags||48&e.getCheckFlags(c))?[3,5]:(l=Lc(t,c.escapedName))?[3,3]:[4,c]:[3,6];case 2:return p.sent(),[3,5];case 3:return i&&109440&(u=jo(c)).flags?1&(d=jo(l)).flags||tp(d)===tp(u)?[3,5]:[4,c]:[3,5];case 4:p.sent(),p.label=5;case 5:return o++,[3,1];case 6:return[2]}}))}function am(e,t,r,n){var i=im(e,t,r,n).next();if(!i.done)return i.value}function om(e){return e.candidates?Hu(e.candidates,2):e.contraCandidates?Zu(e.contraCandidates):void 0}function sm(e){return!!Jn(e).skipDirectInference}function cm(t){return!(!t.symbol||!e.some(t.symbol.declarations,sm))}function lm(t,r){return 128&t.flags?pm([t.value],e.emptyArray,r):134217728&t.flags?e.arraysEqual(t.texts,r.texts)?e.map(t.types,dm):pm(t.texts,t.types,r):void 0}function um(t,r){var n=lm(t,r);return!!n&&e.every(n,((t,n)=>((t,r)=>{if(t===r||5&r.flags)return!0;if(128&t.flags){var n=t.value;return!!(8&r.flags&&""!==n&&isFinite(+n)||64&r.flags&&""!==n&&(t=>{var r=e.createScanner(99,!1),n=!0;r.setOnError((()=>n=!1)),r.setText(t+"n");var i=r.scan();40===i&&(i=r.scan());var a=r.getTokenFlags();return n&&9===i&&r.getTextPos()===t.length+1&&!(512&a)})(n)||98816&r.flags&&n===r.intrinsicName)}if(134217728&t.flags){var i=t.texts;return 2===i.length&&""===i[0]&&""===i[1]&&Xp(t.types[0],r)}return Xp(t,r)})(t,r.types[n])))}function dm(e){return 402653317&e.flags?e:ld(["",""],[e])}function pm(e,t,r){var n=e.length-1,i=e[0],a=e[n],o=r.texts,s=o.length-1,c=o[0],l=o[s];if(!(0===n&&i.length<c.length+l.length)&&i.startsWith(c)&&a.endsWith(l)){for(var u=a.slice(0,a.length-l.length),d=[],p=0,_=c.length,f=1;f<s;f++){var m=o[f];if(m.length>0){for(var g=p,h=_;!((h=y(g).indexOf(m,h))>=0);){if(++g===e.length)return;h=0}v(g,h),_+=m.length}else if(_<y(p).length)v(p,_+1);else{if(!(p<n))return;v(p+1,0)}}return v(n,y(n).length),d}function y(t){return t<n?e[t]:u}function v(r,n){var i=r===p?np(y(r).slice(_,n)):ld(Il(Il([e[p].slice(_)],e.slice(p+1,r),!0),[y(r).slice(0,n)],!1),t.slice(p,r));d.push(i),p=r,_=n}}function _m(t,r,n,i,a){void 0===i&&(i=0),void 0===a&&(a=!1);var o,s,c,l,u=!1,d=2048,p=!0,_=0;function f(r,s){if(Qf(s)){if(r===Fe){var c=o;return o=r,f(s,s),void(o=c)}if(r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===s.aliasSymbol)y(r.aliasTypeArguments,s.aliasTypeArguments,N_(r.aliasSymbol));else if(r===s&&3145728&r.flags)for(var l=0,_=r.types;l<_.length;l++){var v=_[l];f(v,v)}else{if(1048576&s.flags){var E=h(1048576&r.flags?r.types:[r],s.types,fm),T=h(E[0],E[1],mm),C=T[0];if(0===(A=T[1]).length)return;if(s=Hu(A),0===C.length)return void m(r,s,1);r=Hu(C)}else if(2097152&s.flags&&e.some(s.types,(e=>!!b(e)||lc(e)&&!!b(wp(e)||et)))){if(!(1048576&r.flags)){var k=h(2097152&r.flags?r.types:[r],s.types,Hp),A=(C=k[0],k[1]);if(0===C.length||0===A.length)return;r=Zu(C),s=Zu(A)}}else 41943040&s.flags&&(s=Id(s));if(8650752&s.flags){if(524288&e.getObjectFlags(r)||r===Oe||r===tt||128&i&&(r===we||r===Ut)||cm(r))return;var N=b(s);if(N){if(!N.isFixed){if((void 0===N.priority||i<N.priority)&&(N.candidates=void 0,N.contraCandidates=void 0,N.topLevel=!0,N.priority=i),i===N.priority){var w=o||r;a&&!u?e.contains(N.contraCandidates,w)||(N.contraCandidates=e.append(N.contraCandidates,w),Gf(t)):e.contains(N.candidates,w)||(N.candidates=e.append(N.candidates,w),Gf(t))}!(128&i)&&262144&s.flags&&N.topLevel&&!em(n,s)&&(N.topLevel=!1,Gf(t))}return void(d=Math.min(d,i))}var F=Dd(s,!1);if(F!==s)g(r,F,f);else if(8388608&s.flags){var P=Dd(s.indexType,!1);if(465829888&P.flags){var I=Td(Dd(s.objectType,!1),P,!1);I&&I!==s&&g(r,I,f)}}}if(!(4&e.getObjectFlags(r)&&4&e.getObjectFlags(s)&&(r.target===s.target||W_(r)&&W_(s)))||r.node&&s.node)if(4194304&r.flags&&4194304&s.flags)a=!a,f(r.type,s.type),a=!a;else if((nf(r)||4&r.flags)&&4194304&s.flags){var O=(t=>{var r=e.createSymbolTable();rg(t,(t=>{if(128&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=Rn(4,n);i.type=Ne,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),r.set(n,i)}}));var n=4&t.flags?[Tl(We,_t,!1)]:e.emptyArray;return fa(void 0,r,e.emptyArray,e.emptyArray,n)})(r);a=!a,m(O,s.type,256),a=!a}else if(8388608&r.flags&&8388608&s.flags)f(r.objectType,s.objectType),f(r.indexType,s.indexType);else if(268435456&r.flags&&268435456&s.flags)r.symbol===s.symbol&&f(r.type,s.type);else if(33554432&r.flags){f(r.baseType,s);var M=i;i|=4,f(r.substitute,s),i=M}else if(16777216&s.flags)g(r,s,S);else if(3145728&s.flags)x(r,s.types,s.flags);else if(1048576&r.flags)for(var R=0,L=r.types;R<L.length;R++)f(L[R],s);else if(134217728&s.flags)!((t,r)=>{var n=lm(t,r),i=r.types;if(n||e.every(r.texts,(e=>0===e.length)))for(var a=0;a<i.length;a++)f(n?n[a]:et,i[a])})(r,s);else{if(r=Pc(r),!(512&i&&467927040&r.flags)){var B=kc(r);if(B!==r&&p&&!(2621440&B.flags))return p=!1,f(B,s);r=B}2621440&r.flags&&g(r,s,D)}else y(Vl(r),Vl(s),F_(r.target))}}}function m(e,t,r){var n=i;i|=r,f(e,t),i=n}function g(t,r,n){var i=t.id+","+r.id,a=s&&s.get(i);if(void 0===a){(s||(s=new e.Map)).set(i,-1);var o=d;d=2048;var u=_,p=j_(t),f=j_(r);e.contains(c,p)&&(_|=1),e.contains(l,f)&&(_|=2),3!==_?((c||(c=[])).push(p),(l||(l=[])).push(f),n(t,r),l.pop(),c.pop()):d=-1,_=u,s.set(i,d),d=Math.min(d,o)}else d=Math.min(d,a)}function h(t,r,n){for(var i,a,o=0,s=r;o<s.length;o++)for(var c=s[o],l=0,u=t;l<u.length;l++){var d=u[l];n(d,c)&&(f(d,c),i=e.appendIfUnique(i,d),a=e.appendIfUnique(a,c))}return[i?e.filter(t,(t=>!e.contains(i,t))):t,a?e.filter(r,(t=>!e.contains(a,t))):r]}function y(e,t,r){for(var n=e.length<t.length?e.length:t.length,i=0;i<n;i++)i<r.length&&2==(7&r[i])?v(e[i],t[i]):f(e[i],t[i])}function v(e,t){H||1024&i?(a=!a,f(e,t),a=!a):f(e,t)}function b(e){if(8650752&e.flags)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e===i.typeParameter)return i}}function x(t,r,n){var a=0;if(1048576&n){for(var o=void 0,s=1048576&t.flags?t.types:[t],c=new Array(s.length),l=!1,u=0,p=r;u<p.length;u++)if(b(D=p[u]))o=D,a++;else for(var _=0;_<s.length;_++){var g=d;d=2048,f(s[_],D),d===i&&(c[_]=!0),l=l||-1===d,d=Math.min(d,g)}if(0===a){var h=(t=>{for(var r,n=0,i=t;n<i.length;n++){var a=i[n],o=2097152&a.flags&&e.find(a.types,(e=>!!b(e)));if(!o||r&&o!==r)return;r=o}return r})(r);return void(h&&m(t,h,1))}if(1===a&&!l){var y=e.flatMap(s,((e,t)=>c[t]?void 0:e));if(y.length)return void f(Hu(y),o)}}else for(var v=0,x=r;v<x.length;v++)b(D=x[v])?a++:f(t,D);if(2097152&n?1===a:a>0)for(var E=0,S=r;E<S.length;E++){var D;b(D=S[E])&&m(t,D,1)}}function E(t,r,n){if(1048576&n.flags){for(var i=!1,a=0,o=n.types;a<o.length;a++)i=E(t,r,o[a])||i;return i}if(4194304&n.flags){var s=b(n.type);if(s&&!s.isFixed&&!cm(t)){var c=tm(t,r,n);c&&m(c,s.typeParameter,524288&e.getObjectFlags(t)?16:8)}return!0}if(262144&n.flags){m(sd(t),n,32);var l=mc(n);if(l&&E(t,r,l))return!0;var u=e.map(fc(t),jo),d=e.map(Wc(t),(e=>e!==kr?e.type:et));return f(Hu(e.concatenate(u,d)),rc(r)),!0}return!1}function S(e,t){if(16777216&e.flags)f(e.checkType,t.checkType),f(e.extendsType,t.extendsType),f(Bd(e),Bd(t)),f(jd(e),jd(t));else{var r=i;i|=a?64:0,x(e,[Bd(t),jd(t)],t.flags),i=r}}function D(t,r){if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&(t.target===r.target||W_(t)&&W_(r)))y(Vl(t),Vl(r),F_(t.target));else{if(lc(t)&&lc(r)){f(ec(t),ec(r)),f(rc(t),rc(r));var n=tc(t),i=tc(r);n&&i&&f(n,i)}var a,o;if(32&e.getObjectFlags(r)&&!r.declaration.nameType&&E(t,r,ec(r)))return;if(!((e,t)=>uf(e)&&uf(t)?((e,t)=>!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength<e.target.fixedLength))(e,t):!!am(e,t,!1,!0)&&!!am(t,e,!1,!1))(t,r)){if(W_(t)||uf(t)){if(uf(r)){var s=zl(t),c=zl(r),l=Vl(r),u=r.target.elementFlags;if(uf(t)&&(o=r,zl(a=t)===zl(o)&&e.every(a.target.elementFlags,((e,t)=>(12&e)==(12&o.target.elementFlags[t]))))){for(var d=0;d<c;d++)f(Vl(t)[d],l[d]);return}var p=uf(t)?Math.min(t.target.fixedLength,r.target.fixedLength):0,_=Math.min(uf(t)?Lu(t.target,3):0,r.target.hasRestElement?Lu(r.target,3):0);for(d=0;d<p;d++)f(Vl(t)[d],l[d]);if(!uf(t)||s-p-_==1&&4&t.target.elementFlags[p]){var g=Vl(t)[p];for(d=p;d<c-_;d++)f(8&u[d]?Du(g):g,l[d])}else{var h=c-p-_;if(2===h&&u[p]&u[p+1]&8&&uf(t)){var v=b(l[p]);v&&void 0!==v.impliedArity&&(f(Ou(t,p,_+s-v.impliedArity),l[p]),f(Ou(t,p+v.impliedArity,_),l[p+1]))}else if(1===h&&8&u[p]){var x=2&r.target.elementFlags[c-1];m(uf(t)?Ou(t,p,_):Du(Vl(t)[0]),l[p],x?2:0)}else 1===h&&4&u[p]&&(g=uf(t)?ff(t,p,_):Vl(t)[0])&&f(g,l[p])}for(d=0;d<_;d++)f(Vl(t)[s-d-1],l[c-d-1]);return}if(W_(r))return void k(t,r)}!((e,t)=>{for(var r=0,n=dc(t);r<n.length;r++){var i=n[r],a=Lc(e,i.escapedName);a&&f(jo(a),jo(i))}})(t,r),T(t,r,0),T(t,r,1),k(t,r)}}}function T(t,r,n){for(var i=jc(t,n),a=jc(r,n),o=i.length,s=a.length,c=o<s?o:s,l=!!(524288&e.getObjectFlags(t)),u=0;u<c;u++)C(xl(i[o-c+u]),bl(a[s-c+u]),l)}function C(e,t,r){if(!r){var n=u,i=t.declaration?t.declaration.kind:0;u=u||168===i||167===i||170===i,Kf(e,t,v),u=n}Wf(e,t,f)}function k(t,r){var n=e.getObjectFlags(t)&e.getObjectFlags(r)&32?8:0,i=Wc(r);if(wf(t))for(var a=0,o=i;a<o.length;a++){for(var s=o[a],c=[],l=0,u=fc(t);l<u.length;l++){var d=u[l];if(zc(ad(d,8576),s.keyType)){var p=jo(d);c.push(16777216&d.flags?Nf(p):p)}}for(var _=0,f=Wc(t);_<f.length;_++){var g=f[_];zc(g.keyType,s.keyType)&&c.push(g.type)}c.length&&m(Hu(c),s.type,n)}for(var h=0,y=i;h<y.length;h++){var v=Gc(t,(s=y[h]).keyType);v&&m(v.type,s.type,n)}}f(r,n)}function fm(e,t){return Z&&t===Ve?e===t:Hp(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function mm(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function gm(t){return!!(128&e.getObjectFlags(t))}function hm(t){return!!(32896&e.getObjectFlags(t))}function ym(t,r){var n,i,a=t.inferences[r];if(!a.inferredType){var o=void 0,s=t.signature;if(s){var c=a.candidates?((t,r)=>{var n,i=(t=>{if(t.length>1){var r=e.filter(t,hm);if(r.length){var n=Hu(r,2);return e.concatenate(e.filter(t,(e=>!hm(e))),[n])}}return t})(t.candidates),a=!!(n=gc(t.typeParameter))&&Tb(16777216&n.flags?yc(n):n,406978556),o=!a&&t.topLevel&&(t.isFixed||!em(_l(r),t.typeParameter)),s=a?e.sameMap(i,tp):o?e.sameMap(i,of):i;return Bf(416&t.priority?Hu(s,2):(t=>{if(!W)return K_(t);var r=e.filter(t,(e=>!(98304&e.flags)));return r.length?bf(K_(r),98304&gf(t)):Hu(t,2)})(s))})(a,s):void 0;if(a.contraCandidates)o=!c||131072&c.flags||!e.some(a.contraCandidates,(e=>qp(c,e)))?(t=>{return 416&t.priority?Zu(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,((e,t)=>qp(t,e)?t:e)));var r})(a):c;else if(c)o=c;else if(1&t.flags)o=tt;else{var l=Cc(a.typeParameter);l&&(o=Rp(l,(n=((t,r)=>bp((n=>e.findIndex(t.inferences,(e=>e.typeParameter===n))>=r?Re:n)))(t,r),i=t.nonFixingMapper,n?xp(4,n,i):i)))}}else o=om(a);a.inferredType=o||vm(!!(2&t.flags));var u=gc(a.typeParameter);if(u){var d=Rp(u,t.nonFixingMapper);o&&t.compareTypes(o,Is(d,o))||(a.inferredType=o=d)}}return a.inferredType}function vm(e){return e?Ne:Re}function bm(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(ym(e,r));return t}function xm(t){switch(t.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return j.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return j.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return j.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;default:return 295===t.parent.kind?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function Em(t){var r=Jn(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&Yn(t,t.escapedText,1160127,xm(t),t,!e.isWriteOnlyAccess(t),!1)||Te),r.resolvedSymbol}function Sm(t){return!!e.findAncestor(t,(e=>180===e.kind||79!==e.kind&&160!==e.kind&&"quit"))}function Dm(t,r,n,i){switch(t.kind){case 79:if(!e.isThisInTypeQuery(t)){var a=Em(t);return a!==Te?"".concat(i?F(i):"-1","|").concat(Bu(r),"|").concat(Bu(n),"|").concat(P(a)):void 0}case 108:return"0|".concat(i?F(i):"-1","|").concat(Bu(r),"|").concat(Bu(n));case 229:case 211:return Dm(t.expression,r,n,i);case 160:var o=Dm(t.left,r,n,i);return o&&o+"."+t.right.escapedText;case 205:case 206:var s=Cm(t);if(void 0!==s){var c=Dm(t.expression,r,n,i);return c&&c+"."+s}}}function Tm(t,r){switch(r.kind){case 211:case 229:return Tm(t,r.expression);case 220:return e.isAssignmentExpression(r)&&Tm(t,r.left)||e.isBinaryExpression(r)&&27===r.operatorToken.kind&&Tm(t,r.right)}switch(t.kind){case 230:return 230===r.kind&&t.keywordToken===r.keywordToken&&t.name.escapedText===r.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(t)?108===r.kind:79===r.kind&&Em(t)===Em(r)||(253===r.kind||202===r.kind)&&ra(Em(t))===Xi(r);case 108:return 108===r.kind;case 106:return 106===r.kind;case 229:case 211:return Tm(t.expression,r);case 205:case 206:return e.isAccessExpression(r)&&Cm(t)===Cm(r)&&Tm(t.expression,r.expression);case 160:return e.isAccessExpression(r)&&t.right.escapedText===Cm(r)&&Tm(t.left,r.expression);case 220:return e.isBinaryExpression(t)&&27===t.operatorToken.kind&&Tm(t.right,r)}return!1}function Cm(t){var r;return 205===t.kind?t.name.escapedText:206===t.kind&&e.isStringOrNumericLiteralLike(t.argumentExpression)?e.escapeLeadingUnderscores(t.argumentExpression.text):202===t.kind&&(r=oo(t))?e.escapeLeadingUnderscores(r):void 0}function km(t,r){for(;e.isAccessExpression(t);)if(Tm(t=t.expression,r))return!0;return!1}function Am(t,r){for(;e.isOptionalChain(t);)if(Tm(t=t.expression,r))return!0;return!1}function Nm(t,r){if(t&&1048576&t.flags){var n=wc(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=192==(192&n.checkFlags)&&!vd(jo(n))),!!n.isDiscriminantProperty}return!1}function wm(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(Nm(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}function Fm(t){var r=t.types;if(!(r.length<10||65536&e.getObjectFlags(t)||e.countWhere(r,(e=>!!(59506688&e.flags)))<10)){if(void 0===t.keyPropertyName){var n=e.forEach(r,(t=>59506688&t.flags?e.forEach(fc(t),(e=>tf(jo(e))?e.escapedName:void 0)):void 0)),i=n&&((t,r)=>{for(var n=new e.Map,i=0,a=e=>{if(61603840&e.flags){var t=Ya(e,r);if(t){if(!nf(t))return{value:void 0};var a=!1;rg(t,(t=>{var r=Bu(tp(t)),i=n.get(r);i?i!==Re&&(n.set(r,Re),a=!0):n.set(r,e)})),a||i++}}},o=0,s=t;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return i>=10&&2*i>=t.length?n:void 0})(r,n);t.keyPropertyName=i?n:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function Pm(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(Bu(tp(t)));return n!==Re?n:void 0}function Im(e,t){var r=Fm(e),n=r&&Ya(t,r);return n&&Pm(e,n)}function Om(e,t){return Tm(e,t)||km(e,t)}function Mm(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(Om(t,n[r]))return!0;return!(205!==e.expression.kind||!Om(t,e.expression.expression))}function Rm(e){return(!e.id||e.id<0)&&(e.id=u,u++),e.id}function Lm(e){var t=uc(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&qp(e,Nt))}function Bm(t,r){void 0===r&&(r=!1);var n=t.flags;if(4&n)return W?16317953:16776705;if(128&n){var i=""===t.value;return W?i?12123649:7929345:i?12582401:16776705}if(40&n)return W?16317698:16776450;if(256&n){var a=0===t.value;return W?a?12123394:7929090:a?12582146:16776450}return 64&n?W?16317188:16775940:2048&n?(a=mf(t),W?a?12122884:7928580:a?12581636:16775940):16&n?W?16316168:16774920:528&n?W?t===$e||t===Ge?12121864:7927560:t===$e||t===Ge?12580616:16774920:524288&n&&!r?16&e.getObjectFlags(t)&&__(t)?W?16318463:16777215:Lm(t)?W?7880640:16728e3:W?7888800:16736160:49152&n?9830144:65536&n?9363232:12288&n?W?7925520:16772880:67108864&n?W?7888800:16736160:131072&n?0:465829888&n?yd(t)?W?7929345:16776705:Bm(xc(t)||Re,r):1048576&n?e.reduceLeft(t.types,((e,t)=>e|Bm(t,r)),0):2097152&n?(r||(r=Tb(t,131068)),e.reduceLeft(t.types,((e,t)=>e&Bm(t,r)),16777215)):16777215}function jm(e,t){return ag(e,(e=>0!=(Bm(e)&t)))}function Um(e,t){return t?Hu([no(e),tx(t)]):e}function Vm(e,t){var r,n=id(t);if(!Ss(n))return Pe;var i=As(n);return Ya(e,i)||Km(null===(r=qc(e,i))||void 0===r?void 0:r.type)||Pe}function zm(e,t){return ig(e,Q_)&&((e,t)=>Ya(e,""+t)||(ig(e,uf)?cg(e,(e=>_f(e)||Be)):void 0))(e,t)||Km(yE(65,e,Be,void 0))||Pe}function Km(e){return e&&j.noUncheckedIndexedAccess?Hu([e,Be]):e}function Wm(e){return Du(yE(65,e,Be,void 0)||Pe)}function Hm(e){return 220===e.parent.kind&&e.parent.left===e||243===e.parent.kind&&e.parent.initializer===e}function Jm(e){return Vm($m(e.parent),e.name)}function $m(e){var t=e.parent;switch(t.kind){case 242:return We;case 243:return hE(t)||Pe;case 220:return(e=>203===e.parent.kind&&Hm(e.parent)||294===e.parent.kind&&Hm(e.parent.parent)?Um($m(e),e.right):tx(e.right))(t);case 214:return Be;case 203:return((e,t)=>zm($m(e),e.elements.indexOf(t)))(t,e);case 224:return(e=>Wm($m(e.parent)))(t);case 294:return Jm(t);case 295:return(e=>Um(Jm(e),e.objectAssignmentInitializer))(t)}return Pe}function Gm(e){return Jn(e).resolvedType||tx(e)}function qm(e){return 253===e.kind?(e=>e.initializer?Gm(e.initializer):242===e.parent.parent.kind?We:243===e.parent.parent.kind&&hE(e.parent.parent)||Pe)(e):(e=>{var t=e.parent,r=qm(t.parent);return Um(200===t.kind?Vm(r,e.propertyName||e.name):e.dotDotDotToken?Wm(r):zm(r,t.elements.indexOf(e)),e.initializer)})(e)}function Xm(e){switch(e.kind){case 211:return Xm(e.expression);case 220:switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return Xm(e.left);case 27:return Xm(e.right)}}return e}function Ym(e){var t=e.parent;return 211===t.kind||220===t.kind&&63===t.operatorToken.kind&&t.left===e||220===t.kind&&27===t.operatorToken.kind&&t.right===e?Ym(t):e}function Qm(e){return 288===e.kind?tp(tx(e.expression)):et}function Zm(e){var t=Jn(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var i=n[r];t.switchTypes.push(Qm(i))}}return t.switchTypes}function eg(t,r){for(var n=[],i=0,a=t.caseBlock.clauses;i<a.length;i++){var o=a[i];if(288===o.kind){if(e.isStringLiteralLike(o.expression)){n.push(o.expression.text);continue}return e.emptyArray}r&&n.push(void 0)}return n}function tg(e,t){return e===t||1048576&t.flags&&((e,t)=>{if(1048576&e.flags){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!ju(t.types,i))return!1}return!0}return!!(1024&e.flags&&ls(e)===t)||ju(t.types,e)})(e,t)}function rg(t,r){return 1048576&t.flags?e.forEach(t.types,r):r(t)}function ng(t,r){return 1048576&t.flags?e.some(t.types,r):r(t)}function ig(t,r){return 1048576&t.flags?e.every(t.types,r):r(t)}function ag(t,r){if(1048576&t.flags){var n=t.types,i=e.filter(n,r);if(i===n)return t;var a=t.origin,o=void 0;if(a&&1048576&a.flags){var s=a.types,c=e.filter(s,(e=>!!(1048576&e.flags)||r(e)));if(s.length-c.length==n.length-i.length){if(1===c.length)return c[0];o=Wu(1048576,c)}}return $u(i,t.objectFlags,void 0,void 0,o)}return 131072&t.flags||r(t)?t:et}function og(e,t){return ag(e,(e=>e!==t))}function sg(e){return 1048576&e.flags?e.types.length:1}function cg(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=e.origin,a=!1,o=0,s=i&&1048576&i.flags?i.types:e.types;o<s.length;o++){var c=s[o],l=1048576&c.flags?cg(c,t,r):t(c);a||(a=c!==l),l&&(n?n.push(l):n=[l])}return a?n&&Hu(n,r?0:1):e}function lg(t,r,n,i){return 1048576&t.flags&&n?Hu(e.map(t.types,r),1,n,i):cg(t,r)}function ug(e){return 1048576&e.flags?e.types.length:1}function dg(e,t){return ag(e,(e=>0!=(e.flags&t)))}function pg(e,t){return Tb(e,134217804)&&Tb(t,402655616)?cg(e,(e=>4&e.flags?dg(t,402653316):yd(e)&&!Tb(t,402653188)?dg(t,128):8&e.flags?dg(t,264):64&e.flags?dg(t,2112):e)):e}function _g(e){return 0===e.flags}function fg(e){return 0===e.flags?e.type:e}function mg(e,t){return t?{flags:0,type:131072&e.flags?tt:e}:e}function gg(e){return Se[e.id]||(Se[e.id]=(e=>{var t=ca(256);return t.elementType=e,t})(e))}function hg(e,t){var r=Pf(af(nx(t)));return tg(r,e.elementType)?e:gg(Hu([e.elementType,r]))}function yg(t){return 256&e.getObjectFlags(t)?(r=t).finalArrayType||(r.finalArrayType=131072&(n=r.elementType).flags?Ut:Du(1048576&n.flags?Hu(n.types,2):n)):t;var r,n}function vg(t){return 256&e.getObjectFlags(t)?t.elementType:et}function bg(t){var r=Ym(t),n=r.parent,i=e.isPropertyAccessExpression(n)&&("length"===n.name.escapedText||207===n.parent.kind&&e.isIdentifier(n.name)&&e.isPushOrUnshiftIdentifier(n.name)),a=206===n.kind&&n.expression===r&&220===n.parent.kind&&63===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&Cb(tx(n.argumentExpression),296);return i||a}function xg(t,r){if(8752&t.flags)return jo(t);if(7&t.flags){if(262144&e.getCheckFlags(t)){var n=t.syntheticOrigin;if(n&&xg(n))return jo(t)}var i=t.valueDeclaration;if(i){if(s=i,(e.isVariableDeclaration(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isParameter(s))&&(e.getEffectiveTypeAnnotationNode(s)||e.isInJSFile(s)&&e.hasInitializer(s)&&s.initializer&&e.isFunctionExpressionOrArrowFunction(s.initializer)&&e.getEffectiveReturnTypeNode(s.initializer)))return jo(t);if(e.isVariableDeclaration(i)&&243===i.parent.parent.kind){var a=i.parent.parent,o=Eg(a.expression,void 0);if(o)return yE(a.awaitModifier?15:13,o,Be,void 0)}r&&e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics._0_needs_an_explicit_type_annotation,wa(t)))}}var s}function Eg(t,r){if(!(16777216&t.flags))switch(t.kind){case 79:var n=ra(Em(t));return xg(2097152&n.flags?Di(n):n,r);case 108:return(t=>{var r=e.getThisContainer(t,!1);if(e.isFunctionLike(r)){var n=al(r);if(n.thisParameter)return xg(n.thisParameter)}if(e.isClassLike(r.parent)){var i=Xi(r.parent);return e.isStatic(r)?jo(i):_s(i).thisType}})(t);case 106:return Gg(t);case 205:var i=Eg(t.expression,r);if(i){var a=t.name,o=void 0;if(e.isPrivateIdentifier(a)){if(!i.symbol)return;o=Lc(i,e.getSymbolNameForPrivateIdentifier(i.symbol,a.escapedText))}else o=Lc(i,a.escapedText);return o&&xg(o,r)}return;case 211:return Eg(t.expression,r)}}function Sg(t){var r=Jn(t),n=r.effectsSignature;if(void 0===n){var i=void 0;237===t.parent.kind?i=Eg(t.expression,void 0):106!==t.expression.kind&&(i=e.isOptionalChain(t)?ly(Cf(ix(t.expression),t.expression),t.expression):ny(t.expression));var a=jc(i&&kc(i)||Re,0),o=1!==a.length||a[0].typeParameters?e.some(a,Dg)?kv(t):void 0:a[0];n=r.effectsSignature=o&&Dg(o)?o:Dr}return n===Dr?void 0:n}function Dg(e){return!!(dl(e)||e.declaration&&131072&(fl(e.declaration)||Re).flags)}function Tg(e){var t=kg(e,!1);return mr=e,gr=t,t}function Cg(t){var r=e.skipParentheses(t,!0);return 95===r.kind||220===r.kind&&(55===r.operatorToken.kind&&(Cg(r.left)||Cg(r.right))||56===r.operatorToken.kind&&Cg(r.left)&&Cg(r.right))}function kg(t,r){for(;;){if(t===mr)return gr;var n=t.flags;if(4096&n){if(!r){var i=Rm(t),a=on[i];return void 0!==a?a:on[i]=kg(t,!0)}r=!1}if(368&n)t=t.antecedent;else if(512&n){var o=Sg(t.node);if(o){var s=dl(o);if(s&&3===s.kind&&!s.type){var c=t.node.arguments[s.parameterIndex];if(c&&Cg(c))return!1}if(131072&_l(o).flags)return!1}t=t.antecedent}else{if(4&n)return e.some(t.antecedents,(e=>kg(e,!1)));if(8&n){var l=t.antecedents;if(void 0===l||0===l.length)return!1;t=l[0]}else{if(!(128&n)){if(1024&n){mr=void 0;var u=t.target,d=u.antecedents;u.antecedents=t.antecedents;var p=kg(t.antecedent,!1);return u.antecedents=d,p}return!(1&n)}if(t.clauseStart===t.clauseEnd&&fb(t.switchStatement))return!1;t=t.antecedent}}}}function Ag(t,r){for(;;){var n=t.flags;if(4096&n){if(!r){var i=Rm(t),a=sn[i];return void 0!==a?a:sn[i]=Ag(t,!0)}r=!1}if(496&n)t=t.antecedent;else if(512&n){if(106===t.node.expression.kind)return!0;t=t.antecedent}else{if(4&n)return e.every(t.antecedents,(e=>Ag(e,!1)));if(!(8&n)){if(1024&n){var o=t.target,s=o.antecedents;o.antecedents=t.antecedents;var c=Ag(t.antecedent,!1);return o.antecedents=s,c}return!!(1&n)}t=t.antecedents[0]}}}function Ng(t){switch(t.kind){case 79:var r=Em(t);return Og(r)||e.isParameterOrCatchClauseVariable(r)&&!Pg(r);case 205:case 206:return Ng(t.expression)&&xb(Jn(t).resolvedSymbol||Te)}return!1}function wg(t,r,n,i){var a;void 0===n&&(n=r);var o=!1,s=0;if(Vr)return Pe;if(!t.flowNode)return r;zr++;var c=Ur,l=fg(p(t.flowNode));Ur=c;var u=256&e.getObjectFlags(l)&&bg(t)?Ut:yg(l);return u===it||t.parent&&229===t.parent.kind&&!(131072&u.flags)&&131072&jm(u,2097152).flags?r:u===Le?Re:u;function d(){return o?a:(o=!0,a=Dm(t,r,n,i))}function p(a){if(2e3===s)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:a.id}),Vr=!0,o=t,l=e.findAncestor(o,e.isFunctionOrModuleBlock),u=e.getSourceFileOfNode(o),d=e.getSpanOfTokenAtPosition(u,l.statements.pos),_n.add(e.createFileDiagnostic(u,d.start,d.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),Pe;var o,l,u,d,_;for(s++;;){var m=a.flags;if(4096&m){for(var b=c;b<Ur;b++)if(nn[b]===a)return s--,an[b];_=a}var x=void 0;if(16&m){if(!(x=f(a))){a=a.antecedent;continue}}else if(512&m){if(!(x=g(a))){a=a.antecedent;continue}}else if(96&m)x=y(a);else if(128&m)x=v(a);else if(12&m){if(1===a.antecedents.length){a=a.antecedents[0];continue}x=4&m?E(a):D(a)}else if(256&m){if(!(x=h(a))){a=a.antecedent;continue}}else if(1024&m){var S=a.target,T=S.antecedents;S.antecedents=a.antecedents,x=p(a.antecedent),S.antecedents=T}else if(2&m){var C=a.node;if(C&&C!==i&&205!==t.kind&&206!==t.kind&&108!==t.kind){a=C.flowNode;continue}x=n}else x=sE(r);return _&&(nn[Ur]=_,an[Ur]=x,Ur++),s--,x}}function _(e){var r=e.node;return Lg(253===r.kind||202===r.kind?qm(r):$m(r),t)}function f(n){var i=n.node;if(Tm(t,i)){if(!Tg(n))return it;if(2===e.getAssignmentTargetKind(i)){var a=p(n.antecedent);return mg(af(fg(a)),_g(a))}if(r===we||r===Ut){if((e=>253===e.kind&&e.initializer&&uo(e.initializer)||202!==e.kind&&220===e.parent.kind&&uo(e.parent.right))(i))return gg(et);var o=of(_(n));return Xp(o,r)?o:jt}return 1048576&r.flags?((e,t)=>{if(e!==t){if(131072&t.flags)return t;var r=ag(e,(e=>((e,t)=>{if(!(1048576&e.flags))return Xp(e,t);for(var r=0,n=e.types;r<n.length;r++)if(Xp(n[r],t))return!0;return!1})(t,e)));if(512&t.flags&&rp(t)&&(r=cg(r,ep)),Xp(t,r))return r}return e})(r,_(n)):r}if(km(t,i)){if(!Tg(n))return it;if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(212===s.kind||213===s.kind))return p(n.antecedent)}return r}if(e.isVariableDeclaration(i)&&242===i.parent.parent.kind&&Tm(t,i.parent.parent.expression))return ay(fg(p(n.antecedent)))}function m(t,r){var n=e.skipParentheses(r,!0);if(95===n.kind)return it;if(220===n.kind){if(55===n.operatorToken.kind)return m(m(t,n.left),n.right);if(56===n.operatorToken.kind)return Hu([m(t,n.left),m(t,n.right)])}return z(t,n,!0)}function g(e){var t=Sg(e.node);if(t){var r=dl(t);if(r&&(2===r.kind||3===r.kind)){var n=p(e.antecedent),i=yg(fg(n)),a=r.type?V(i,r,e.node,!0):3===r.kind&&r.parameterIndex>=0&&r.parameterIndex<e.node.arguments.length?m(i,e.node.arguments[r.parameterIndex]):i;return a===i?n:mg(a,_g(n))}if(131072&_l(t).flags)return it}}function h(n){if(r===we||r===Ut){var i=n.node,a=207===i.kind?i.expression.expression:i.left.expression;if(Tm(t,Xm(a))){var o=p(n.antecedent),s=fg(o);if(256&e.getObjectFlags(s)){var c=s;if(207===i.kind)for(var l=0,u=i.arguments;l<u.length;l++)c=hg(c,u[l]);else Cb(nx(i.left.argumentExpression),296)&&(c=hg(c,i.right));return c===s?o:mg(c,_g(o))}return o}}}function y(e){var t=p(e.antecedent),r=fg(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),i=yg(r),a=z(i,e.node,n);return a===i?t:mg(a,_g(t))}function v(r){var n=r.switchStatement.expression,i=p(r.antecedent),a=fg(i);if(Tm(t,n))a=M(a,r.switchStatement,r.clauseStart,r.clauseEnd);else if(215===n.kind&&Tm(t,n.expression))a=((t,r,n,i)=>{var a=eg(r,!0);if(!a.length)return t;var o,s,c=e.findIndex(a,(e=>void 0===e)),l=n===i||c>=n&&c<i;if(c>-1){var u=a.filter((e=>void 0!==e)),d=c<n?n-1:n,p=c<i?i-1:i;o=u.slice(d,p),s=_b(d,p,u,l)}else o=a.slice(n,i),s=_b(n,i,a,l);if(l)return ag(t,(e=>(Bm(e)&s)===s));var _=jm(Hu(o.map((e=>R(t,e)||t))),s);return jm(cg(t,L(_)),s)})(a,r.switchStatement,r.clauseStart,r.clauseEnd);else{W&&(Am(n,t)?a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(e=>!(163840&e.flags))):215===n.kind&&Am(n.expression,t)&&(a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));var o=C(n,a);o&&(a=((t,r,n,i,a)=>{if(i<a&&1048576&t.flags&&Fm(t)===Cm(r)){var o=Zm(n).slice(i,a),s=Hu(e.map(o,(e=>Pm(t,e)||Re)));if(s!==Re)return s}return k(t,r,(e=>M(e,n,i,a)))})(a,o,r.switchStatement,r.clauseStart,r.clauseEnd))}return mg(a,_g(i))}function E(t){for(var i,a=[],o=!1,s=!1,c=0,l=t.antecedents;c<l.length;c++){var u=l[c];if(!i&&128&u.flags&&u.clauseStart===u.clauseEnd)i=u;else{if((_=fg(d=p(u)))===r&&r===n)return _;e.pushIfUnique(a,_),tg(_,r)||(o=!0),_g(d)&&(s=!0)}}if(i){var d,_=fg(d=p(i));if(!e.contains(a,_)&&!fb(i.switchStatement)){if(_===r&&r===n)return _;a.push(_),tg(_,r)||(o=!0),_g(d)&&(s=!0)}}return mg(T(a,o?2:1),s)}function D(t){var n=Rm(t),i=Zr[n]||(Zr[n]=new e.Map),a=d();if(!a)return r;var o=i.get(a);if(o)return o;for(var s=Br;s<jr;s++)if(en[s]===t&&tn[s]===a&&rn[s].length)return mg(T(rn[s],1),!0);for(var c,l=[],u=!1,_=0,f=t.antecedents;_<f.length;_++){var m=f[_],g=void 0;if(c){en[jr]=t,tn[jr]=a,rn[jr]=l,jr++;var h=hr;hr=void 0,g=p(m),hr=h,jr--;var y=i.get(a);if(y)return y}else g=c=p(m);var v=fg(g);if(e.pushIfUnique(l,v),tg(v,r)||(u=!0),v===r)break}var b=T(l,u?2:1);return _g(c)?mg(b,!0):(i.set(a,b),b)}function T(t,n){if((t=>{for(var r=!1,n=0,i=t;n<i.length;n++){var a=i[n];if(!(131072&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;r=!0}}return r})(t))return gg(Hu(e.map(t,vg)));var i=Hu(e.sameMap(t,yg),n);return i!==r&&i.flags&r.flags&1048576&&e.arraysEqual(i.types,r.types)?r:i}function C(n,i){var a,o,s=1048576&r.flags?r:i;return 1048576&s.flags&&(a=(t=>{if(e.isAccessExpression(t))return t;if(e.isIdentifier(t)){var r=Em(t);if(Og(r)){var n=r.valueDeclaration;if(e.isVariableDeclaration(n)&&!n.type&&n.initializer&&e.isAccessExpression(n.initializer))return n.initializer;if(e.isBindingElement(n)&&!n.initializer){var i=n.parent.parent;if(e.isVariableDeclaration(i)&&!i.type&&i.initializer&&(e.isIdentifier(i.initializer)||e.isAccessExpression(i.initializer)))return n}}}})(n))&&(o=Cm(a))&&Tm(t,e.isAccessExpression(a)?a.expression:a.parent.parent.initializer)&&Nm(s,o)?a:void 0}function k(t,r,n){var i=Cm(r);if(void 0===i)return t;var a=W&&e.isOptionalChain(r)&&Tb(t,98304),o=Ya(a?jm(t,2097152):t,i);if(!o)return t;var s=n(o=a?xf(o):o);return ag(t,(e=>{var t=((e,t)=>{var r;return Ya(e,t)||(null===(r=qc(e,t))||void 0===r?void 0:r.type)||Re})(e,i);return!(131072&s.flags)&&Qp(s,t)}))}function A(e,t,r,n,i){if((36===r||37===r)&&1048576&e.flags){var a=Fm(e);if(a&&a===Cm(t)){var o=Pm(e,tx(n));if(o)return r===(i?36:37)?o:tf(Ya(o,a)||Re)?og(e,o):e}}return k(e,t,(e=>P(e,r,n,i)))}function N(e,r,n){if(Tm(t,r))return 2&e.flags&&n?Le:jm(e,n?4194304:8388608);W&&n&&Am(r,t)&&(e=jm(e,2097152));var i=C(r,e);return i?k(e,i,(e=>jm(e,n?4194304:8388608))):e}function w(n,i,a){switch(i.operatorToken.kind){case 63:case 75:case 76:case 77:return N(z(n,i.right,a),i.left,a);case 34:case 35:case 36:case 37:var o=i.operatorToken.kind,s=Xm(i.left),c=Xm(i.right);if(215===s.kind&&e.isStringLiteralLike(c))return I(n,s,o,c,a);if(215===c.kind&&e.isStringLiteralLike(s))return I(n,c,o,s,a);if(Tm(t,s))return P(n,o,c,a);if(Tm(t,c))return P(n,o,s,a);W&&(Am(s,t)?n=F(n,o,c,a):Am(c,t)&&(n=F(n,o,s,a)));var l=C(s,n);if(l)return A(n,l,o,c,a);var u=C(c,n);if(u)return A(n,u,o,s,a);if(B(s))return j(n,o,c,a);if(B(c))return j(n,o,s,a);break;case 102:return((r,n,i)=>{var a=Xm(n.left);if(!Tm(t,a))return i&&W&&Am(a,t)?jm(r,2097152):r;var o,s=tx(n.right);if(!Yp(s,Nt))return r;var c=Lc(s,"prototype");if(c){var l=jo(c);Qa(l)||(o=l)}if(Qa(r)&&(o===At||o===Nt))return r;if(!o){var u=jc(s,1);o=u.length?Hu(e.map(u,(e=>_l(bl(e))))):_t}return!i&&1048576&s.flags&&!e.find(s.types,(e=>!qo(e)))?r:U(r,o,i,Yp)})(n,i,a);case 101:if(e.isPrivateIdentifier(i.left))return((r,n,i)=>{var a=Xm(n.right);if(!Tm(t,a))return r;e.Debug.assertNode(n.left,e.isPrivateIdentifier);var o=my(n.left);if(void 0===o)return r;var s=o.parent;return U(r,e.hasStaticModifier(e.Debug.checkDefined(o.valueDeclaration,"should always have a declaration"))?jo(s):_s(s),i,Yp)})(n,i,a);var d=Xm(i.right),p=MS(i.left);if(128&p.flags){var _=e.escapeLeadingUnderscores(p.value);if(Af(n)&&e.isAccessExpression(t)&&Tm(t.expression,d)&&Cm(t)===_)return jm(n,a?524288:65536);if(Tm(t,d))return((t,n,i)=>1048576&t.flags||524288&t.flags&&r!==t||Sd(t)||2097152&t.flags&&e.every(t.types,(e=>e.symbol!==ae))?ag(t,(e=>((e,t,r)=>{var n=Lc(e,t);return n?!!(16777216&n.flags)||r:!!qc(e,t)||!r})(e,n,i))):t)(n,_,a)}break;case 27:return z(n,i.right,a);case 55:return a?z(z(n,i.left,!0),i.right,!0):Hu([z(n,i.left,!1),z(n,i.right,!1)]);case 56:return a?Hu([z(n,i.left,!0),z(n,i.right,!0)]):z(z(n,i.left,!1),i.right,!1)}return n}function F(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,o=tx(r);return i!==n&&ig(o,(e=>!!(e.flags&a)))||i===n&&ig(o,(e=>!(e.flags&(3|a))))?jm(e,2097152):e}function P(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=tx(r);if(n&&2&e.flags&&(34===t||35===t)&&65536&i.flags)return Hu([ze,Be]);if(2&e.flags&&n&&(36===t||37===t))return 67239932&i.flags?i:524288&i.flags?at:e;if(98304&i.flags){if(!W)return e;var a=34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288;return 2&e.flags&&3145728&a?Le:jm(e,a)}return n?pg(ag(e,34===t?e=>{return Zp(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:e=>Zp(e,i)),i):tf(i)?ag(e,(e=>!(rf(e)&&Zp(e,i)))):e}function I(e,r,n,i,a){35!==n&&37!==n||(a=!a);var o=Xm(r.expression);if(!Tm(t,o))return W&&Am(o,t)&&a===("undefined"!==i.text)?jm(e,2097152):e;if(1&e.flags&&"function"===i.text)return e;if(a&&2&e.flags&&"object"===i.text)return e===Le?at:Hu([at,ze]);var s=a?b.get(i.text)||128:x.get(i.text)||32768,c=R(e,i.text);return jm(a&&c?cg(e,L(c)):e,s)}function O(t,r,n,i,a){return n!==i&&e.every(Zm(r).slice(n,i),a)?jm(t,2097152):t}function M(t,r,n,i){var a=Zm(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,et);if(2&t.flags&&!s){for(var c=void 0,l=0;l<o.length;l+=1){var u=o[l];if(67239932&u.flags)void 0!==c&&c.push(u);else{if(!(524288&u.flags))return t;void 0===c&&(c=o.slice(0,l)),c.push(at)}}return Hu(void 0===c?o:c)}var d=Hu(o),p=131072&d.flags?et:pg(ag(t,(e=>Zp(d,e))),d);if(!s)return p;var _=ag(t,(t=>!(rf(t)&&e.contains(a,tp((t=>2097152&t.flags&&e.find(t.types,tf)||t)(t))))));return 131072&p.flags?_:Hu([p,_])}function R(e,t){switch(t){case"function":return 1&e.flags?e:Nt;case"object":return 2&e.flags?Hu([at,ze]):e;default:return mn.get(t)}}function L(e){return t=>{if(qp(t,e))return t;if(qp(e,t))return e;if(465829888&t.flags){var r=xc(t)||Ne;if(qp(e,r))return Zu([t,e])}return t}}function B(r){return(e.isPropertyAccessExpression(r)&&"constructor"===e.idText(r.name)||e.isElementAccessExpression(r)&&e.isStringLiteralLike(r.argumentExpression)&&"constructor"===r.argumentExpression.text)&&Tm(t,r.expression)}function j(t,r,n,i){if(i?34!==r&&36!==r:35!==r&&37!==r)return t;var a=tx(n);if(!lD(a)&&!qo(a))return t;var o=Lc(a,"prototype");if(!o)return t;var s=jo(o),c=Qa(s)?void 0:s;return c&&c!==At&&c!==Nt?Qa(t)?c:ag(t,(t=>{return n=c,524288&(r=t).flags&&1&e.getObjectFlags(r)||524288&n.flags&&1&e.getObjectFlags(n)?r.symbol===n.symbol:qp(r,n);var r,n})):t}function U(e,t,r,n){if(!r)return ag(e,(e=>!n(e,t)));if(1048576&e.flags){var i=ag(e,(e=>n(e,t)));if(!(131072&i.flags))return i}return qp(t,e)?t:Xp(e,t)?e:Xp(t,e)?t:Zu([e,t])}function V(r,n,i,a){if(n.type&&(!Qa(r)||n.type!==At&&n.type!==Nt)){var o=((t,r)=>{if(1===t.kind||3===t.kind)return r.arguments[t.parameterIndex];var n=e.skipParentheses(r.expression);return e.isAccessExpression(n)?e.skipParentheses(n.expression):void 0})(n,i);if(o){if(Tm(t,o))return U(r,n.type,a,qp);W&&a&&Am(o,t)&&!(65536&Bm(n.type))&&(r=jm(r,2097152));var s=C(o,r);if(s)return k(r,s,(e=>U(e,n.type,a,qp)))}}return r}function z(r,n,i){if(e.isExpressionOfOptionalChainRoot(n)||e.isBinaryExpression(n.parent)&&60===n.parent.operatorToken.kind&&n.parent.left===n)return((e,r,n)=>{if(Tm(t,r))return jm(e,n?2097152:262144);var i=C(r,e);return i?k(e,i,(e=>jm(e,n?2097152:262144))):e})(r,n,i);switch(n.kind){case 79:if(!Tm(t,n)&&S<5){var a=Em(n);if(Og(a)){var o=a.valueDeclaration;if(o&&e.isVariableDeclaration(o)&&!o.type&&o.initializer&&Ng(t)){S++;var s=z(r,o.initializer,i);return S--,s}}}case 108:case 106:case 205:case 206:return N(r,n,i);case 207:return((r,n,i)=>{if(Mm(n,t)){var a=i||!e.isCallChain(n)?Sg(n):void 0,o=a&&dl(a);if(o&&(0===o.kind||1===o.kind))return V(r,o,n,i)}if(Af(r)&&e.isAccessExpression(t)&&e.isPropertyAccessExpression(n.expression)){var s=n.expression;if(Tm(t.expression,Xm(s.expression))&&e.isIdentifier(s.name)&&"hasOwnProperty"===s.name.escapedText&&1===n.arguments.length){var c=n.arguments[0];if(e.isStringLiteralLike(c)&&Cm(t)===e.escapeLeadingUnderscores(c.text))return jm(r,i?524288:65536)}}return r})(r,n,i);case 211:case 229:return z(r,n.expression,i);case 220:return w(r,n,i);case 218:if(53===n.operator)return z(r,n.operand,!i)}return r}}function Fg(t){return e.findAncestor(t.parent,(t=>e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||261===t.kind||303===t.kind||166===t.kind))}function Pg(t){if(!t.valueDeclaration)return!1;var r,n=e.getRootDeclaration(t.valueDeclaration).parent,i=Jn(n);return 8388608&i.flags||(i.flags|=8388608,r=n,e.findAncestor(r.parent,(t=>(e.isFunctionLike(t)||e.isCatchClause(t))&&!!(8388608&Jn(t).flags)))||Ig(n)),t.isAssigned||!1}function Ig(t){if(79===t.kind){if(e.isAssignmentTarget(t)){var r=Em(t);e.isParameterOrCatchClauseVariable(r)&&(r.isAssigned=!0)}}else e.forEachChild(t,Ig)}function Og(e){return 3&e.flags&&0!=(2&Qh(e))}function Mg(e){return!!(465829888&e.flags&&1146880&Ec(e).flags)}function Rg(e){return!(!(465829888&e.flags)||Tb(Ec(e),98304))}function Lg(t,r,n){var i,a;return n&&2&n||!ng(t,Mg)||!((e,t)=>{var r=t.parent;return 205===r.kind||207===r.kind&&r.expression===t||206===r.kind&&r.expression===t&&!(ng(e,Rg)&&xd(tx(r.argumentExpression)))})(t,r)&&(i=r,!(a=(e.isIdentifier(i)||e.isPropertyAccessExpression(i)||e.isElementAccessExpression(i))&&!((e.isJsxOpeningElement(i.parent)||e.isJsxSelfClosingElement(i.parent))&&i.parent.tagName===i)&&mh(i,8))||vd(a))?t:cg(t,(e=>465829888&e.flags?Ec(e):e))}function Bg(t){return!!e.findAncestor(t,(t=>{var r=t.parent;return void 0===r?"quit":e.isExportAssignment(r)?r.expression===t&&e.isEntityNameExpression(t):!!e.isExportSpecifier(r)&&(r.name===t||r.propertyName===t)}))}function jg(t,r){if(Ei(t,111551)&&!Sm(r)&&!ki(t)){var n=Di(t);111551&n.flags&&(j.isolatedModules||e.shouldPreserveConstEnums(j)&&Bg(r)||!QS(n)?Ni(t):(e=>{var t=Hn(e);t.constEnumReferenced||(t.constEnumReferenced=!0)})(t))}}function Ug(t){return e.findAncestor(t,(t=>!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)))}function Vg(e,t){Jn(e).flags|=2,166===t.kind||170===t.kind?Jn(t.parent).flags|=4:Jn(t).flags|=4}function zg(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,zg)}function Kg(e){return Zo(_s(Xi(e)))===Ke}function Wg(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!Kg(i)&&t.flowNode&&!Ag(t.flowNode,!1)&&wn(t,n)}function Hg(t){var r=Sm(t),n=e.getThisContainer(t,!0),i=!1;switch(170===n.kind&&Wg(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),213===n.kind&&(n=e.getThisContainer(n,!1),i=!0),((t,r)=>{e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,t.pos)&&e.length(r.parent.decorators)&&wn(t,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)})(t,n),n.kind){case 260:wn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 259:wn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 170:$g(t,n)&&wn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 161:wn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!r&&i&&U<2&&Vg(t,n);var a=Jg(t,!0,n);if(q){var o=jo(ae);if(a===o&&i)wn(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=wn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(n)){var c=Jg(n);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(n,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Ne}function Jg(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!eh(t)||e.getThisParameter(n))){var a=ul(al(n))||i&&(t=>{var r=e.getJSDocType(t);if(r&&315===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return dp(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return dp(i.typeExpression)})(n);if(!a){var o=(t=>212===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:168===t.kind&&204===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:212===t.kind&&294===t.parent.kind&&204===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:212===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0)(n);if(i&&o){var s=ix(o).symbol;s&&s.members&&16&s.flags&&(a=_s(s).thisType)}else Av(n)&&(a=_s(qi(n.symbol)).thisType);a||(a=Yg(n))}if(a)return wg(t,a)}if(e.isClassLike(n.parent)){var c=Xi(n.parent);return wg(t,e.isStatic(n)?jo(c):_s(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=Xi(n);return l&&jo(l)}if(n.externalModuleIndicator)return Be;if(r)return jo(ae)}}function $g(t,r){return!!e.findAncestor(t,(t=>e.isFunctionLikeDeclaration(t)?"quit":163===t.kind&&t.parent===r))}function Gg(t){var r=207===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1;if(!r)for(;i&&213===i.kind;)i=e.getSuperContainer(i,!0),a=U<2;var o=0;if(!(t=>!(!t||(r?170!==t.kind:!e.isClassLike(t.parent)&&204!==t.parent.kind||(e.isStatic(t)?168!==t.kind&&167!==t.kind&&171!==t.kind&&172!==t.kind&&166!==t.kind&&169!==t.kind:168!==t.kind&&167!==t.kind&&171!==t.kind&&172!==t.kind&&166!==t.kind&&165!==t.kind&&170!==t.kind))))(i)){var s=e.findAncestor(t,(e=>e===i?"quit":161===e.kind));return s&&161===s.kind?wn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?wn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||204===i.parent.kind)?wn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):wn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Pe}if(r||170!==n.kind||Wg(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||r?(o=512,!r&&U>=2&&U<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(t=>{e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(Jn(t).flags|=134217728)}))):o=256,Jn(t).flags|=o,168===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?Jn(i).flags|=4096:Jn(i).flags|=2048),a&&Vg(t.parent,i),204===i.parent.kind)return U<2?(wn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Pe):Ne;var c=i.parent;if(!e.getClassExtendsHeritageElement(c))return wn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Pe;var l=_s(Xi(c)),u=l&&ts(l)[0];return u?170===i.kind&&$g(t,i)?(wn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Pe):512===o?Zo(l):Is(u,l.thisType):Pe}function qg(t){return 4&e.getObjectFlags(t)&&t.target===Bt?Vl(t)[0]:void 0}function Xg(t){return cg(t,(t=>2097152&t.flags?e.forEach(t.types,qg):qg(t)))}function Yg(t){if(213!==t.kind){if(Kp(t)){var r=xh(t);if(r){var n=r.thisParameter;if(n)return jo(n)}}var i=e.isInJSFile(t);if(q||i){var a=(e=>168!==e.kind&&171!==e.kind&&172!==e.kind||204!==e.parent.kind?212===e.kind&&294===e.parent.kind?e.parent.parent:void 0:e.parent)(t);if(a){for(var o=ph(a),s=a,c=o;c;){var l=Xg(c);if(l)return Rp(l,Yf(gh(a)));if(294!==s.parent.kind)break;c=ph(s=s.parent.parent)}return Bf(o?Ef(o):Ub(a))}var u=e.walkUpParenthesizedExpressions(t.parent);if(220===u.kind&&63===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(i&&e.isIdentifier(p)){var _=e.getSourceFileOfNode(u);if(_.commonJsModuleIndicator&&Em(p)===_.symbol)return}return Bf(Ub(p))}}}}}function Qg(t){var r=t.parent;if(Kp(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=sv(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return tv(i,a,i.length,Ne,void 0,0);var o=Jn(n),s=o.resolvedSignature;o.resolvedSignature=Sr;var c=a<i.length?of(ix(i[a])):t.initializer?void 0:je;return o.resolvedSignature=s,c}var l=xh(r);if(l){var u=r.parameters.indexOf(t)-(e.getThisParameter(r)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(r.parameters)===t?Xv(l,u):qv(l,u)}}}function Zg(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return dp(r);switch(t.kind){case 163:return Qg(t);case 202:return(t=>{var r=t.parent.parent,n=t.propertyName||t.name,i=Zg(r)||202!==r.kind&&r.initializer&&zb(r);if(i&&!e.isBindingPattern(n)&&!e.isComputedNonLiteralName(n)){if(201===r.name.kind){var a=e.indexOfNode(t.parent.elements,t);if(a<0)return;return lh(i,a)}var o=id(n);return Ss(o)?Ya(i,As(o)):void 0}})(t);case 166:if(e.isStatic(t))return(t=>{var r=e.isExpression(t.parent)&&mh(t.parent);return r?sh(r,Xi(t).escapedName):void 0})(t)}}function eh(t){for(var r=!1;t.parent&&!e.isFunctionLike(t.parent);){if(e.isParameter(t.parent)&&(r||t.parent.initializer===t))return!0;e.isBindingElement(t.parent)&&t.parent.initializer===t&&(r=!0),t=t.parent}return!1}function th(t,r){var n=!!(2&e.getFunctionFlags(r)),i=rh(r);if(i)return UE(t,i,n)||void 0}function rh(t){var r=fl(t);if(r)return r;var n=bh(t);if(n&&!ml(n))return _l(n);var i=e.getImmediatelyInvokedFunctionExpression(t);return i?mh(i):void 0}function nh(e,t){var r=sv(e).indexOf(t);return-1===r?void 0:ih(e,r)}function ih(t,r){if(e.isImportCall(t))return 0===r?We:1===r?_u(!1):Ne;var n=Jn(t).resolvedSignature===Tr?Tr:kv(t);if(e.isJsxOpeningLikeElement(t)&&0===r)return hh(n,t);var i=n.parameters.length-1;return L(n)&&r>=i?Ad(jo(n.parameters[i]),ip(r-i),256):Gv(n,r)}function ah(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=Yn(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function oh(t){if(!t.symbol)return tx(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=dp(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=Hg(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&sh(a,o)||void 0}}function sh(t,r){return cg(t,(t=>{var n,i;if(lc(t)){var a=ec(t),o=xc(a)||a,s=np(e.unescapeLeadingUnderscores(r));if(Xp(s,o))return kd(t,s)}else if(3670016&t.flags){var c=Lc(t,r);if(c)return i=c,262144&e.getCheckFlags(i)&&!i.type&&$a(i,0)>=0?void 0:jo(c);if(uf(t)){var l=_f(t);if(l&&Ch(r)&&+r>=0)return l}return null===(n=Vc(Kc(t),np(e.unescapeLeadingUnderscores(r))))||void 0===n?void 0:n.type}}),!0)}function ch(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&Zg(t);if(i)return i;var a=ph(n,r);if(a){if(ks(t))return sh(a,Xi(t).escapedName);if(t.name){var o=id(t.name);return cg(a,(e=>{var t;return null===(t=Vc(Kc(e),o))||void 0===t?void 0:t.type}),!0)}}}function lh(e,t){return e&&(sh(e,""+t)||cg(e,(e=>vE(1,e,Be,void 0,!1)),!0))}function uh(t){if(e.isJsxAttribute(t)){var r=ph(t.parent);if(!r||Qa(r))return;return sh(r,t.name.escapedText)}return mh(t.parent)}function dh(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 152:return!0;case 205:case 211:return dh(e.expression);case 287:return!e.expression||dh(e.expression)}return!1}function ph(t,r){var n=_h(e.isObjectLiteralMethod(t)?((t,r)=>{if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return ch(t,r)})(t,r):mh(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=cg(n,kc,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?((t,r)=>((t,r)=>{var n=Fm(t),i=n&&e.find(r.properties,(e=>e.symbol&&294===e.kind&&e.symbol.escapedName===n&&dh(e.initializer))),a=i&&nx(i.initializer);return a&&Pm(t,a)})(r,t)||C_(r,e.concatenate(e.map(e.filter(t.properties,(e=>!!e.symbol&&294===e.kind&&dh(e.initializer)&&Nm(r,e.symbol.escapedName))),(e=>[()=>nx(e.initializer),e.symbol.escapedName])),e.map(e.filter(fc(r),(e=>{var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&Nm(r,e.escapedName)})),(e=>[()=>Be,e.escapedName]))),Xp,r))(t,i):1048576&i.flags&&e.isJsxAttributes(t)?((t,r)=>C_(r,e.concatenate(e.map(e.filter(t.properties,(e=>!!e.symbol&&284===e.kind&&Nm(r,e.symbol.escapedName)&&(!e.initializer||dh(e.initializer)))),(e=>[e.initializer?()=>nx(e.initializer):()=>qe,e.symbol.escapedName])),e.map(e.filter(fc(r),(e=>{var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&Nm(r,e.escapedName)})),(e=>[()=>Be,e.escapedName]))),Xp,r))(t,i):i}}function _h(t,r,n){if(t&&Tb(t,465829888)){var i=gh(r);if(i&&e.some(i.inferences,Yb)){if(n&&1&n)return fh(t,i.nonFixingMapper);if(i.returnMapper)return fh(t,i.returnMapper)}}return t}function fh(t,r){return 465829888&t.flags?Rp(t,r):1048576&t.flags?Hu(e.map(t.types,(e=>fh(e,r))),0):2097152&t.flags?Zu(e.map(t.types,(e=>fh(e,r)))):t}function mh(t,r){if(16777216&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 253:case 163:case 166:case 165:case 202:return((t,r)=>{var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=Zg(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return To(n.name,!0,!1)}})(t,r);case 213:case 246:return(t=>{var r=e.getContainingFunction(t);if(r){var n=rh(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=TE(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=cg(n,wx);return o&&Hu([o,cb(o)])}return n}}})(t);case 223:return(t=>{var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=rh(r);if(i)return t.asteriskToken?i:UE(0,i,0!=(2&n))}})(n);case 217:return((e,t)=>{var r=mh(e,t);if(r){var n=wx(r);return n&&Hu([n,cb(n)])}})(n,r);case 207:case 208:return nh(n,t);case 210:case 228:return e.isConstTypeReference(n.type)?o(n):dp(n.type);case 220:return((t,r)=>{var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?(t=>{var r,n,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=(t=>{if(t.symbol)return t.symbol;if(e.isIdentifier(t))return Em(t);if(e.isPropertyAccessExpression(t)){var r=tx(t.expression);return e.isPrivateIdentifier(t.name)?((e,t)=>{var r=fy(t.escapedText,t);return r&&gy(e,r)})(r,t.name):Lc(r,t.name.escapedText)}})(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&Rp(dp(c),Hn(a).mapper)||o.initializer&&tx(t.left):0===i?tx(t.left):oh(t);case 5:if(ah(t,i))return oh(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return dp(c);if(e.isIdentifier(l.expression)){var u=l.expression,d=Yn(u,u.escapedText,111551,void 0,u.escapedText,!0);if(d){var p=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(p){var _=e.getElementOrPropertyAccessName(l);if(void 0!==_)return sh(dp(p),_)}return}}return e.isInJSFile(s)?void 0:tx(t.left)}return tx(t.left);case 1:case 6:case 3:var f=null===(r=t.left.symbol)||void 0===r?void 0:r.valueDeclaration;case 2:f||(f=null===(n=t.symbol)||void 0===n?void 0:n.valueDeclaration);var m=f&&e.getEffectiveTypeAnnotationNode(f);return m?dp(m):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}})(n):void 0;case 56:case 60:var s=mh(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?tx(i):s;case 55:case 27:return t===o?mh(n,r):void 0;default:return}})(t,r);case 294:case 295:return ch(n,r);case 296:return mh(n.parent,r);case 203:var i=n;return lh(ph(i,r),e.indexOfNode(i.elements,t));case 221:return((e,t)=>{var r=e.parent;return e===r.whenTrue||e===r.whenFalse?mh(r,t):void 0})(t,r);case 232:return e.Debug.assert(222===n.parent.kind),((e,t)=>{if(209===e.parent.kind)return nh(e.parent,t)})(n.parent,t);case 211:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?e.isJSDocTypeTag(a)&&e.isConstTypeReference(a.typeExpression.type)?o(n):dp(a.typeExpression.type):mh(n,r);case 229:return mh(n,r);case 287:return(t=>{var r=t.parent;return e.isJsxAttributeLike(r)?mh(t):e.isJsxElement(r)?((t,r)=>{var n=ph(t.openingElement.tagName),i=zh(Uh(t));if(n&&!Qa(n)&&i&&""!==i){var a=e.getSemanticJsxChildren(t.children),o=a.indexOf(r),s=sh(n,i);return s&&(1===a.length?s:cg(s,(e=>G_(e)?Ad(e,ip(o)):e),!0))}})(r,t):void 0})(n);case 284:case 286:return uh(n);case 279:case 278:return((t,r)=>e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r?t.parent.contextualType:ih(t,0))(n,r)}}function o(e){return mh(e)}}function gh(t){var r=e.findAncestor(t,(e=>!!e.inferenceContext));return r&&r.inferenceContext}function hh(t,r){return 0!==nv(r)?((e,t)=>{var r=nb(e,Re);r=yh(t,Uh(t),r);var n=Lh(k.IntrinsicAttributes,t);return Za(n)||(r=Hs(n,r)),r})(t,r):((t,r)=>{var n,i=Uh(r),a=(n=i,Vh(k.ElementAttributesPropertyNameContainer,n)),o=void 0===a?nb(t,Re):""===a?_l(t):((e,t)=>{if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n<i.length;n++){var a=_l(i[n]);if(Qa(a))return a;var o=Ya(a,t);if(!o)return;r.push(o)}return Zu(r)}var s=_l(e);return Qa(s)?s:Ya(s,t)})(t,a);if(!o)return a&&e.length(r.attributes.properties)&&wn(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(a)),Re;if(Qa(o=yh(r,i,o)))return o;var s=o,c=Lh(k.IntrinsicClassAttributes,r);if(!Za(c)){var l=$o(c.symbol),u=_l(t);s=Hs(l?Bl(c,il([u],l,nl(l),e.isInJSFile(r))):c,s)}var d=Lh(k.IntrinsicAttributes,r);return Za(d)||(s=Hs(d,s)),s})(t,r)}function yh(t,r,n){var i,a=(i=r)&&Gn(i.exports,k.LibraryManagedAttributes,788968);if(a){var o=_s(a),s=(e=>{if(Ih(e.tagName))return El(Dv(e,t=Hh(e)));var t,r=Ub(e.tagName);return 128&r.flags?(t=Wh(r,e))?El(Dv(e,t)):Pe:r})(t);if(524288&a.flags){var c=Hn(a).typeParameters;if(e.length(c)>=2)return Wl(a,il([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return Bl(o,il([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function vh(t,r){var n=jc(t,0),i=e.filter(n,(t=>!((t,r)=>{for(var n=0;n<r.parameters.length;n++){var i=r.parameters[n];if(i.initializer||i.questionToken||i.dotDotDotToken||Qc(i))break}return r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--,!Zv(t)&&Yv(t)<n})(t,r)));return 1===i.length?i[0]:(t=>e.getStrictOptionValue(j,"noImplicitAny")?e.reduceLeft(t,((t,r)=>t!==r&&t?Ks(t.typeParameters,r.typeParameters)?((t,r)=>{var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=hp(r.typeParameters,t.typeParameters));var a=t.declaration,o=((e,t,r)=>{for(var n=Yv(e),i=Yv(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Zv(e)||Zv(t),l=c&&!Zv(a),u=new Array(s+(l?1:0)),d=0;d<s;d++){var p=qv(a,d);a===t&&(p=Rp(p,r));var _=qv(o,d)||Re;o===t&&(_=Rp(_,r));var f=Hu([p,_]),m=c&&!l&&d===s-1,g=d>=Qv(a)&&d>=Qv(o),h=d>=n?void 0:Wv(e,d),y=d>=i?void 0:Wv(t,d),v=Rn(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg".concat(d));v.type=m?Du(f):f,u[d]=v}if(l){var b=Rn(1,"args");b.type=Du(Gv(o,s)),o===t&&(b.type=Rp(b.type,r)),u[s]=b}return u})(t,r,n),s=Ms(a,i,((e,t,r)=>e&&t?Ff(e,Hu([jo(e),Rp(jo(t),r)])):e||t)(t.thisParameter,r.thisParameter,n),o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return s.compositeKind=2097152,s.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(s.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?Sp(t.mapper,n):n),s})(t,r):void 0:t)):void 0)(i)}function bh(t){return e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t)?xh(t):void 0}function xh(t){e.Debug.assert(168!==t.kind||e.isObjectLiteralMethod(t));var r=ol(t);if(r)return r;var n=ph(t,1);if(n){if(!(1048576&n.flags))return vh(n,t);for(var i,a=0,o=n.types;a<o.length;a++){var s=vh(o[a],t);if(s)if(i){if(!z_(i[0],s,!1,!0,!0,Jp))return;i.push(s)}else i=[s]}return i?1===i.length?i[0]:Ls(i[0],i):void 0}}function Eh(e){return 202===e.kind&&!!e.initializer||220===e.kind&&63===e.operatorToken.kind}function Sh(t,r,n){for(var i=t.elements,a=i.length,o=[],s=[],c=ph(t),l=e.isAssignmentTarget(t),u=Hb(t),d=!1,p=0;p<a;p++){var _=i[p];if(224===_.kind){U<2&&ED(_,j.downlevelIteration?1536:1024);var f=ix(_.expression,r,n);if(G_(f))o.push(f),s.push(8);else if(l){var m=Jc(f,He)||vE(65,f,Be,void 0,!1)||Re;o.push(m),s.push(4)}else o.push(yE(33,f,Be,_.expression)),s.push(4)}else if(Z&&226===_.kind)d=!0,o.push(Ve),s.push(2);else{var g=Jb(_,r,lh(c,o.length),n);o.push(po(g,!0,d)),s.push(d?2:1)}}return l?wu(o,s):n||u||c&&ng(c,Q_)?Dh(wu(o,s,u)):Dh(Du(o.length?Hu(e.sameMap(o,((e,t)=>8&s[t]?wd(e,He)||Ne:e)),2):W?nt:je,u))}function Dh(t){if(!(4&e.getObjectFlags(t)))return t;var r=t.literalType;return r||((r=t.literalType=jl(t)).objectFlags|=294912),r}function Th(e){switch(e.kind){case 161:return(e=>Cb(kh(e),296))(e);case 79:return Ch(e.escapedText);case 8:case 10:return Ch(e.text);default:return!1}}function Ch(e){return(+e).toString()===e}function kh(t){var r=Jn(t.expression);if(!r.resolvedType){if((e.isTypeLiteralNode(t.parent.parent)||e.isClassLike(t.parent.parent)||e.isInterfaceDeclaration(t.parent.parent))&&e.isBinaryExpression(t.expression)&&101===t.expression.operatorToken.kind)return r.resolvedType=Pe;if(r.resolvedType=ix(t.expression),e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&e.isClassExpression(t.parent.parent)){var n=Ug(e.getEnclosingBlockScopeContainer(t.parent.parent));n&&(Jn(n).flags|=65536,Jn(t).flags|=524288,Jn(t.parent.parent).flags|=524288)}(98304&r.resolvedType.flags||!Cb(r.resolvedType,402665900)&&!Xp(r.resolvedType,st))&&wn(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return r.resolvedType}function Ah(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r[0];return e.isKnownSymbol(t)||n&&e.isNamedDeclaration(n)&&e.isComputedPropertyName(n.name)&&Cb(kh(n.name),4096)}function Nh(t,r,n,i){for(var a,o,s,c=[],l=r;l<n.length;l++){var u=n[l];(i===We&&!Ah(u)||i===He&&(s=null===(o=(a=u).declarations)||void 0===o?void 0:o[0],Ch(a.escapedName)||s&&e.isNamedDeclaration(s)&&Th(s.name))||i===Qe&&Ah(u))&&c.push(jo(n[l]))}return Tl(i,c.length?Hu(c,2):Be,Hb(t))}function wh(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Hn(t);if(!r.immediateTarget){var n=li(t);if(!n)return e.Debug.fail();r.immediateTarget=xi(n,!0)}return r.immediateTarget}function Fh(t){if(465829888&t.flags){var r=xc(t);if(void 0!==r)return Fh(r)}return!!(126615553&t.flags||117632&hf(t)&&Fh(yf(t))||3145728&t.flags&&e.every(t.types,Fh))}function Ph(t){return e.stringContains(t,"-")}function Ih(t){return 79===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Oh(e,t){return e.initializer?Jb(e.initializer,t):qe}function Mh(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];if(11===a.kind)a.containsOnlyTriviaWhiteSpaces||r.push(We);else{if(287===a.kind&&!a.expression)continue;r.push(Jb(a,t))}}return r}function Rh(t,r,n){for(var i=0,a=fc(t);i<a.length;i++){var o=a[i];if(!(16777216&o.flags)){var s=r.get(o.escapedName);if(s){var c=wn(s.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(s.escapedName));e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function Lh(e,t){var r=Uh(t),n=r&&Hi(r),i=n&&Gn(n,e,788968);return i?_s(i):Pe}function Bh(t){var r=Jn(t);if(!r.resolvedSymbol){var n=Lh(k.IntrinsicElements,t);if(Za(n))return G&&wn(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(k.IntrinsicElements)),r.resolvedSymbol=Te;if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=Lc(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):Jc(n,We)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(wn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+k.IntrinsicElements),r.resolvedSymbol=Te)}return r.resolvedSymbol}function jh(t){var r=t&&e.getSourceFileOfNode(t),n=r&&Jn(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(j,r),j);if(i){var a=Ri(t,i,e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,t),o=a&&a!==Te?qi(Si(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function Uh(e){var t=e&&Jn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=jh(e);if(!r||r===Te){var n=Tn(e);r=Yn(e,n,1920,void 0,n,!1)}if(r){var i=Si(Gn(Hi(Si(r)),k.JSX,1920));if(i&&i!==Te)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=Si(uu(k.JSX,1920,void 0));return a!==Te?a:void 0}function Vh(t,r){var n=r&&Gn(r.exports,t,788968),i=n&&_s(n),a=i&&fc(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&n.declarations&&wn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function zh(e){return Vh(k.ElementChildrenAttributeNameContainer,e)}function Kh(t,r){if(4&t.flags)return[Sr];if(128&t.flags){var n=Wh(t,r);return n?[Dv(r,n)]:(wn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+k.IntrinsicElements),e.emptyArray)}var i=kc(t),a=jc(i,1);return 0===a.length&&(a=jc(i,0)),0===a.length&&1048576&i.flags&&(a=zs(e.map(i.types,(e=>Kh(e,r))))),a}function Wh(t,r){var n=Lh(k.IntrinsicElements,r);if(!Za(n)){var i=t.value,a=Lc(n,e.escapeLeadingUnderscores(i));return a?jo(a):Jc(n,We)||void 0}return Ne}function Hh(t){e.Debug.assert(Ih(t.tagName));var r=Jn(t);if(!r.resolvedJsxElementAttributesType){var n=Bh(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=jo(n)||Pe:2&r.jsxFlags?r.resolvedJsxElementAttributesType=Jc(Lh(k.IntrinsicElements,t),We)||Pe:r.resolvedJsxElementAttributesType=Pe}return r.resolvedJsxElementAttributesType}function Jh(e){var t=Lh(k.ElementClass,e);if(!Za(t))return t}function $h(e){return Lh(k.Element,e)}function Gh(e){var t=$h(e);if(t)return Hu([t,ze])}function qh(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&(t=>{(t=>{if(e.isPropertyAccessExpression(t)){var r=t;do{var n=a(r.name);if(n)return n;r=r.expression}while(e.isPropertyAccessExpression(r));var i=a(r);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return XD(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),ND(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(286!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return XD(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&287===s.kind&&!s.expression)return XD(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}})(t),r=t,0===(j.jsx||0)&&wn(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===$h(r)&&G&&wn(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!jh(t)){var i=_n&&2===j.jsx?e.Diagnostics.Cannot_find_name_0:void 0,a=Tn(t),o=n?t.tagName:t,s=void 0;if(e.isJsxOpeningFragment(t)&&"null"===a||(s=Yn(o,a,111551,i,a,!0)),s&&(s.isReferenced=67108863,2097152&s.flags&&!ki(s)&&Ni(s)),e.isJsxOpeningFragment(t)){var c=Cn(e.getSourceFileOfNode(t));c&&Yn(o,c,111551,i,c,!0)}}if(n){var l=t,u=kv(l);Fv(u,t),((t,r,n)=>{if(1===t)(i=Gh(n))&&x_(r,i,vn,n.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,o);else if(0===t)(a=Jh(n))&&x_(r,a,vn,n.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,o);else{var i=Gh(n),a=Jh(n);if(!i||!a)return;x_(r,Hu([i,a]),vn,n.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,o)}function o(){var t=e.getTextOfNode(n.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,t)}})(nv(l),_l(u),l)}}function Xh(e,t,r){if(524288&e.flags){if(pc(e,t)||qc(e,t)||Ts(t)&&Hc(e,We)||r&&Ph(t))return!0}else if(3145728&e.flags&&Yh(e))for(var n=0,i=e.types;n<i.length;n++)if(Xh(i[n],t,r))return!0;return!1}function Yh(t){return!!(524288&t.flags&&!(512&e.getObjectFlags(t))||67108864&t.flags||1048576&t.flags&&e.some(t.types,Yh)||2097152&t.flags&&e.every(t.types,Yh))}function Qh(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function Zh(t){if(8192&t.flags||4&e.getCheckFlags(t))return!0;if(e.isInJSFile(t.valueDeclaration)){var r=t.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&3===e.getAssignmentDeclarationKind(r)}}function ey(e,t,r,n,i,a){return void 0===a&&(a=!0),ty(e,t,r,n,i,a?160===e.kind?e.right:199===e.kind?e:202===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function ty(t,r,n,i,a,o){var s,c,l=e.getDeclarationModifierFlagsFromSymbol(a,n);if(r){if(U<2&&ry(a))return o&&wn(o,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&l)return o&&wn(o,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,wa(a),Pa(R_(a))),!1}if(128&l&&ry(a)&&(e.isThisProperty(t)||e.isThisInitializedObjectBindingExpression(t)||e.isObjectBindingPattern(t.parent)&&e.isThisInitializedDeclaration(t.parent.parent))&&(c=e.getClassLikeDeclarationOfSymbol(Yi(a)))&&(s=t,e.findAncestor(s,(t=>!!(e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t))||!(!e.isClassLike(t)&&!e.isFunctionLikeDeclaration(t))&&"quit"))))return o&&wn(o,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,wa(a),e.getTextOfIdentifierOrLiteral(c.name)),!1;if(!(24&l))return!0;if(8&l)return!!wS(t,c=e.getClassLikeDeclarationOfSymbol(Yi(a)))||(o&&wn(o,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,wa(a),Pa(R_(a))),!1);if(r)return!0;var u=NS(t,(t=>{var r=_s(Xi(t));return((t,r,n)=>M_(r,(r=>!!(16&e.getDeclarationModifierFlagsFromSymbol(r,n))&&!Ko(t,R_(r))))?void 0:t)(r,a,n)?r:void 0}));if(!u){var d=void 0;if(32&l||!(d=(t=>{var r=e.getThisContainer(t,!1);return r&&e.isFunctionLike(r)?e.getThisParameter(r):void 0})(t))||!d.type)return o&&wn(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,wa(a),Pa(R_(a)||i)),!1;var p=dp(d.type);u=(262144&p.flags?gc(p):p).target}return!!(32&l)||(262144&i.flags&&(i=i.isThisType?gc(i):xc(i)),!(!i||!Ko(i,u))||(o&&wn(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,wa(a),Pa(u),Pa(i)),!1))}function ry(e){return!!M_(e,(e=>!(8192&e.flags)))}function ny(e){return ly(ix(e),e)}function iy(e){return!!(98304&(W?hf(e):e.flags))}function ay(e){return iy(e)?Ef(e):e}function oy(t,r){wn(t,32768&r?65536&r?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function sy(t,r){wn(t,32768&r?65536&r?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function cy(t,r,n){if(W&&2&t.flags)return wn(r,e.Diagnostics.Object_is_of_type_unknown),Pe;var i=98304&(W?hf(t):t.flags);if(i){n(r,i);var a=Ef(t);return 229376&a.flags?Pe:a}return t}function ly(e,t){return cy(e,t,oy)}function uy(t,r){var n=ly(t,r);return 16384&n.flags&&wn(r,e.Diagnostics.Object_is_possibly_undefined),n}function dy(e,t){return 32&e.flags?((e,t)=>{var r=ix(e.expression),n=Cf(r,e.expression);return Tf(yy(e,e.expression,ly(n,e.expression),e.name,t),e,n!==r)})(e,t):yy(e,e.expression,ny(e.expression),e.name,t)}function py(t,r){var n=e.isPartOfTypeQuery(t)&&e.isThisIdentifier(t.left)?ly(Hg(t.left),t.left):ny(t.left);return yy(t,t.left,n,t.right,r)}function _y(t){for(;211===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function fy(t,r){for(var n=e.getContainingClass(r);n;n=e.getContainingClass(n)){var i=n.symbol,a=e.getSymbolNameForPrivateIdentifier(i,t),o=i.members&&i.members.get(a)||i.exports&&i.exports.get(a);if(o)return o}}function my(t){if(e.isExpressionNode(t)){var r=Jn(t);return void 0===r.resolvedSymbol&&(r.resolvedSymbol=fy(t.escapedText,t)),r.resolvedSymbol}}function gy(e,t){return Lc(e,t.escapedName)}function hy(t,r){return(fo(r)||e.isThisProperty(t)&&mo(r))&&e.getThisContainer(t,!0)===go(r)}function yy(t,r,n,i,a){var s,c,l=Jn(r).resolvedSymbol,u=e.getAssignmentTargetKind(t),d=kc(0!==u||_y(t)?Bf(n):n),p=Qa(d)||d===tt;if(e.isPrivateIdentifier(i)){U<99&&(0!==u&&ED(t,1048576),1!==u&&ED(t,524288));var _=fy(i.escapedText,i);if(u&&_&&_.valueDeclaration&&e.isMethodDeclaration(_.valueDeclaration)&&XD(i,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(i)),(null==_?void 0:_.valueDeclaration)&&99===e.getEmitScriptTarget(j)&&!z){var f=e.getContainingClass(_.valueDeclaration),m=e.findAncestor(t,(t=>t===f?"quit":!(!e.isPropertyDeclaration(t.parent)||!e.hasStaticModifier(t.parent)||t.parent.initializer!==t||t.parent.parent!==f)));if(m){var g=Xi(m.parent);e.Debug.assert(g,"Initializer without declaration symbol");var h=wn(t,e.Diagnostics.Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false,e.symbolName(_));e.addRelatedInfo(h,e.createDiagnosticForNode(m.parent,e.Diagnostics.Initializer_for_property_0,e.symbolName(g)))}}if(p){if(_)return Za(d)?Pe:d;if(!e.getContainingClass(i))return XD(i,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ne}if(!(s=_?gy(n,_):void 0)&&((t,r,n)=>{var i,a=fc(t);a&&e.forEach(a,(t=>{var n=t.valueDeclaration;if(n&&e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name)&&n.name.escapedText===r.escapedText)return i=t,!0}));var s=ri(r);if(i){var c=e.Debug.checkDefined(i.valueDeclaration),l=e.Debug.checkDefined(e.getContainingClass(c));if(null==n?void 0:n.valueDeclaration){var u=n.valueDeclaration,d=e.getContainingClass(u);if(e.Debug.assert(!!d),e.findAncestor(d,(e=>l===e))){var p=wn(r,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,s,Pa(t));return e.addRelatedInfo(p,e.createDiagnosticForNode(u,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,s),e.createDiagnosticForNode(c,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,s)),!0}}return wn(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,s,ri(l.name||o)),!0}return!1})(n,i,_))return Pe;s&&65536&s.flags&&!(32768&s.flags)&&1!==u&&wn(t,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(p)return e.isIdentifier(r)&&l&&jg(l,t),Za(d)?Pe:d;s=Lc(d,i.escapedText)}if(e.isIdentifier(r)&&l&&(j.isolatedModules||!s||!QS(s)||e.shouldPreserveConstEnums(j)&&Bg(t))&&jg(l,t),s){s.declarations&&134217728&Qh(s)&&fd(t,s)&&Mn(i,s.declarations,i.escapedText),((t,r,n)=>{var i,a=t.valueDeclaration;if(a&&!e.getSourceFileOfNode(r).isDeclarationFile){var o=e.idText(n);!xy(r)||(t=>e.isPropertyDeclaration(t)&&t.questionToken)(a)||e.isAccessExpression(r)&&e.isAccessExpression(r.expression)||qn(a,n)||!j.useDefineForClassFields&&(e=>{if(!(32&e.parent.flags))return!1;for(var t=jo(e.parent);;){if(!(t=t.symbol&&Ey(t)))return!1;var r=Lc(t,e.escapedName);if(r&&r.valueDeclaration)return!0}})(t)?256!==a.kind||177===r.parent.kind||8388608&a.flags||qn(a,n)||(i=wn(n,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=wn(n,e.Diagnostics.Property_0_is_used_before_its_initialization,o),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}})(s,t,i),Py(s,t,Iy(r,l)),Jn(t).resolvedSymbol=s;var y=e.isWriteAccess(t);if(ey(t,106===r.kind,y,d,s),Eb(t,s,u))return wn(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),Pe;c=hy(t,s)?we:y?(e=>{if(98304&e.flags){var t=(e=>{var t=Hn(e);return t.writeType||(t.writeType=Io(e,!0))})(e);if(t)return t}return jo(e)})(s):jo(s)}else{var v=e.isPrivateIdentifier(i)||0!==u&&bd(n)&&!Sd(n)?void 0:qc(d,i.escapedText);if(!v||!v.type){var b=vy(t,n.symbol,!0);return!b&&pd(n)?Ne:n.symbol===ae?(ae.exports.has(i.escapedText)&&418&ae.exports.get(i.escapedText).flags?wn(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),Pa(n)):G&&wn(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Pa(n)),Ne):(i.escapedText&&!ii(t)&&Sy(i,Sd(n)?d:n,b),Pe)}v.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&wn(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Pa(d)),c=j.noUncheckedIndexedAccess&&!e.isAssignmentTarget(t)?Hu([v.type,Be]):v.type,j.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(t)&&wn(i,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(i.escapedText))}return by(t,s,c,i,a)}function vy(t,r,n){var i=e.getSourceFileOfNode(t);if(i&&void 0===j.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){var a=e.forEach(null==r?void 0:r.declarations,e.getSourceFileOfNode);return!(i!==a&&a&&$n(a)||n&&r&&32&r.flags||t&&n&&e.isPropertyAccessExpression(t)&&108===t.expression.kind)}return!1}function by(t,r,n,i,a){var o=e.getAssignmentTargetKind(t);if(1===o)return kf(n,!!(r&&16777216&r.flags));if(r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags)&&!hS(r.declarations))return n;if(n===we)return yo(t,r);n=Lg(n,t,a);var s=!1;if(W&&$&&e.isAccessExpression(t)&&108===t.expression.kind){var c=r&&r.valueDeclaration;if(c&&tS(c)&&!e.isStatic(c)){var l=Fg(t);170!==l.kind||l.parent!==c.parent||8388608&c.flags||(s=!0)}}else W&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&Fg(t)===Fg(r.valueDeclaration)&&(s=!0);var u=wg(t,n,s?xf(n):n);return s&&!(32768&hf(n))&&32768&hf(u)?(wn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,wa(r)),n):o?af(u):u}function xy(t){return!!e.findAncestor(t,(t=>{switch(t.kind){case 166:return!0;case 294:case 168:case 171:case 172:case 296:case 161:case 232:case 287:case 284:case 285:case 286:case 279:case 227:case 290:return!1;case 213:case 237:return!(!e.isBlock(t.parent)||!e.isClassStaticBlockDeclaration(t.parent.parent))||"quit";default:return!e.isExpressionNode(t)&&"quit"}}))}function Ey(e){var t=ts(e);if(0!==t.length)return Zu(t)}function Sy(t,r,n){var i,a;if(!e.isPrivateIdentifier(t)&&1048576&r.flags&&!(131068&r.flags))for(var o=0,s=r.types;o<s.length;o++){var c=s[o];if(!Lc(c,t.escapedText)&&!qc(c,t.escapedText)){i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Pa(c));break}}if(Dy(t.escapedText,r)){var l=e.declarationNameToString(t),u=Pa(r);i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,u,u+"."+l)}else{var d=Dx(r);if(d&&Lc(d,t.escapedText))i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Pa(r)),a=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);else{var p=e.declarationNameToString(t),_=Pa(r),f=((t,r)=>{var n=kc(r).symbol;if(n)for(var i=e.getScriptTargetFeatures(),a=0,o=e.getOwnKeys(i);a<o.length;a++){var s=o[a],c=i[s][e.symbolName(n)];if(void 0!==c&&e.contains(c,t))return s}})(p,r);if(void 0!==f)i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,p,_,f);else{var m=Cy(t,r);if(void 0!==m){var g=e.symbolName(m),h=n?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;i=e.chainDiagnosticMessages(i,h,p,_,g),a=m.valueDeclaration&&e.createDiagnosticForNode(m.valueDeclaration,e.Diagnostics._0_is_declared_here,g)}else{var y=(t=>{return j.lib&&!j.lib.includes("dom")&&(n=t=>t.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(t.symbol.escapedName)),3145728&(r=t).flags?e.every(r.types,n):n(r))&&__(t);var r,n})(r)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;i=e.chainDiagnosticMessages(Rc(i,r),y,p,_)}}}}var v=e.createDiagnosticForNodeFromMessageChain(t,i);a&&e.addRelatedInfo(v,a),Fn(!n||i.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,v)}function Dy(t,r){var n=r.symbol&&Lc(jo(r.symbol),t);return void 0!==n&&!!n.valueDeclaration&&e.isStatic(n.valueDeclaration)}function Ty(e,t){return Fy(e,fc(t),106500)}function Cy(t,r){var n=fc(r);if("string"!=typeof t){var i=t.parent;e.isPropertyAccessExpression(i)&&(n=e.filter(n,(e=>Oy(i,r,e)))),t=e.idText(t)}return Fy(t,n,111551)}function ky(t,r){var n=e.isString(t)?t:e.idText(t),i=fc(r),a="for"===n?e.find(i,(t=>"htmlFor"===e.symbolName(t))):"class"===n?e.find(i,(t=>"className"===e.symbolName(t))):void 0;return null!=a?a:Fy(n,i,111551)}function Ay(t,r){var n=Cy(t,r);return n&&e.symbolName(n)}function Ny(t,r,n){return e.Debug.assert(void 0!==r,"outername should always be defined"),Qn(t,r,n,void 0,r,!1,!1,!0,((t,n,i)=>{var a;return e.Debug.assertEqual(r,n,"name should equal outerName"),Gn(t,n,i)||(a=t===ne?e.mapDefined(["string","number","boolean","object","bigint","symbol"],(e=>t.has(e.charAt(0).toUpperCase()+e.slice(1))?Rn(524288,e):void 0)).concat(e.arrayFrom(t.values())):e.arrayFrom(t.values()),Fy(e.unescapeLeadingUnderscores(n),a,i))}))}function wy(t,r){return r.exports&&Fy(e.idText(t),zi(r),2623475)}function Fy(t,r,n){return e.getSpellingSuggestion(t,r,(t=>{var r=e.symbolName(t);if(!e.startsWith(r,'"')){if(t.flags&n)return r;if(2097152&t.flags){var i=(e=>{if(Hn(e).target!==Ce)return Di(e)})(t);if(i&&i.flags&n)return r}}}))}function Py(t,r,n){var i=t&&106500&t.flags&&t.valueDeclaration;if(i){var a=e.hasEffectiveModifier(i,8),o=t.valueDeclaration&&e.isNamedDeclaration(t.valueDeclaration)&&e.isPrivateIdentifier(t.valueDeclaration.name);if((a||o)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags)){if(n){var s=e.findAncestor(r,e.isFunctionLikeDeclaration);if(s&&s.symbol===t)return}(1&e.getCheckFlags(t)?Hn(t).target:t).isReferenced=67108863}}}function Iy(t,r){return 108===t.kind||!!r&&e.isEntityNameExpression(t)&&r===Em(e.getFirstIdentifier(t))}function Oy(e,t,r){return Ry(e,205===e.kind&&106===e.expression.kind,!1,t,r)}function My(e,t,r,n){if(Qa(n))return!0;var i=Lc(n,r);return!!i&&Ry(e,t,!1,n,i)}function Ry(t,r,n,i,a){if(Qa(i))return!0;if(a.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(a.valueDeclaration)){var o=e.getContainingClass(a.valueDeclaration);return!e.isOptionalChain(t)&&!!e.findAncestor(t,(e=>e===o))}return ty(t,r,n,i,a)}function Ly(t){var r=t.initializer;if(254===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return Xi(n)}else if(79===r.kind)return Em(r)}function By(t,r,n){var i=0!==e.getAssignmentTargetKind(t)||_y(t)?Bf(r):r,a=t.argumentExpression,o=ix(a);if(Za(i)||i===tt)return i;if(Ab(i)&&!e.isStringLiteralLike(a))return wn(a,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Pe;var s=wd(i,(t=>{var r,n=e.skipParentheses(t);if(79===n.kind){var i=Em(n);if(3&i.flags)for(var a=t,o=t.parent;o;){if(242===o.kind&&a===o.statement&&Ly(o)===i&&1===Wc(r=tx(o.expression)).length&&Hc(r,He))return!0;a=o,o=o.parent}}return!1})(a)?He:o,e.isAssignmentTarget(t)?4|(bd(i)&&!Sd(i)?2:0):32,t)||Pe;return yx(by(t,Jn(t).resolvedSymbol,s,a,n),t)}function jy(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function Uy(t){return jy(t)&&e.forEach(t.typeArguments,yS),209===t.kind?ix(t.template):e.isJsxOpeningLikeElement(t)?ix(t.attributes):164!==t.kind&&e.forEach(t.arguments,(e=>{ix(e)})),Sr}function Vy(e){return Uy(e),Dr}function zy(e){return!!e&&(224===e.kind||231===e.kind&&e.isSpread)}function Ky(t){return e.findIndex(t,zy)}function Wy(e){return!!(16384&e.flags)}function Hy(e){return!!(49155&e.flags)}function Jy(t,r,n,i){var a;void 0===i&&(i=!1);var o=!1,s=Yv(n),c=Qv(n);if(209===t.kind)if(a=r.length,222===t.template.kind){var l=e.last(t.template.templateSpans);o=e.nodeIsMissing(l.literal)||!!l.literal.isUnterminated}else{var u=t.template;e.Debug.assert(14===u.kind),o=!!u.isUnterminated}else if(164===t.kind)a=cv(t,n);else if(e.isJsxOpeningLikeElement(t)){if(o=t.attributes.end===t.end)return!0;a=0===c?r.length:1,s=0===r.length?s:1,c=Math.min(c,1)}else{if(!t.arguments)return e.Debug.assert(208===t.kind),0===Qv(n);a=i?r.length+1:r.length,o=t.arguments.end===t.end;var d=Ky(r);if(d>=0)return d>=Qv(n)&&(Zv(n)||d<Yv(n))}if(!Zv(n)&&a>s)return!1;if(o||a>=c)return!0;for(var p=a;p<c;p++)if(131072&ag(Gv(n,p),e.isInJSFile(t)&&!W?Hy:Wy).flags)return!1;return!0}function $y(t,r){var n=e.length(t.typeParameters),i=nl(t.typeParameters);return!e.some(r)||r.length>=i&&r.length<=n}function Gy(e){return Xy(e,0,!1)}function qy(e){return Xy(e,0,!1)||Xy(e,1,!1)}function Xy(e,t,r){if(524288&e.flags){var n=uc(e);if(r||0===n.properties.length&&0===n.indexInfos.length){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function Yy(t,r,n,i){var a=Hf(t.typeParameters,t,0,i),o=eb(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return Kf(s?kp(r,s):r,t,((e,t)=>{_m(a.inferences,e,t)})),n||Wf(r,t,((e,t)=>{_m(a.inferences,e,t,128)})),hl(t,bm(a),e.isInJSFile(r.declaration))}function Qy(t){if(!t)return Ze;var r=ix(t);return e.isOptionalChainRoot(t.parent)?Ef(r):e.isOptionalChain(t.parent)?Df(r):r}function Zy(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return((e,t,r,n)=>{var i=hh(t,e),a=jb(e.attributes,i,n,r);return _m(n.inferences,a,i),bm(n)})(t,r,i,a);if(164!==t.kind){var o=mh(t,e.every(r.typeParameters,(e=>!!Cc(e)))?8:0);if(o){var s=gh(t),c=Rp(o,Yf(((t,r)=>(void 0===r&&(r=0),t&&Jf(e.map(t.inferences,Xf),t.signature,t.flags|r,t.compareTypes)))(s,1))),l=Gy(c),u=l&&l.typeParameters?El(yl(l,l.typeParameters)):c,d=_l(r);_m(a.inferences,u,d,128);var p=Hf(r.typeParameters,r,a.flags),_=Rp(o,s&&s.returnMapper);_m(p.inferences,_,d),a.returnMapper=e.some(p.inferences,Yb)?Yf((t=>{var r=e.filter(t.inferences,Yb);return r.length?Jf(e.map(r,Xf),t.signature,t.flags,t.compareTypes):void 0})(p)):void 0}}var f=tb(r),m=f?Math.min(Yv(r)-1,n.length):n.length;if(f&&262144&f.flags){var g=e.find(a.inferences,(e=>e.typeParameter===f));g&&(g.impliedArity=e.findIndex(n,zy,m)<0?n.length-m:void 0)}var h=ul(r);if(h){var y=av(t);_m(a.inferences,Qy(y),h)}for(var v=0;v<m;v++){var b=n[v];if(226!==b.kind){var x=Gv(r,v),E=jb(b,x,a,i);_m(a.inferences,E,x)}}if(f){var S=tv(n,m,n.length,f,a,i);_m(a.inferences,S,f)}return bm(a)}function ev(e){return 1048576&e.flags?cg(e,ev):1&e.flags||J_(xc(e)||e)?e:uf(e)?wu(Vl(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):wu([e],[8])}function tv(t,r,n,i,a,o){if(r>=n-1&&zy(d=t[n-1]))return ev(231===d.kind?d.type:jb(d.expression,i,a,o));for(var s=[],c=[],l=[],u=r;u<n;u++){var d;if(zy(d=t[u])){var p=231===d.kind?d.type:ix(d.expression);G_(p)?(s.push(p),c.push(8)):(s.push(yE(33,p,Be,224===d.kind?d.expression:d)),c.push(4))}else{var _=Ad(i,ip(u-r),256),f=jb(d,_,a,o),m=Tb(_,406978556);s.push(m?tp(f):of(f)),c.push(1)}231===d.kind&&d.tupleNameSource&&l.push(d.tupleNameSource)}return wu(s,c,!1,e.length(l)===e.length(s)?l:void 0)}function rv(t,r,n,i){for(var a,o=e.isInJSFile(t.declaration),s=t.typeParameters,c=il(e.map(r,dp),s,nl(s),o),l=0;l<r.length;l++){e.Debug.assert(void 0!==s[l],"Should not call checkTypeArguments with too many type arguments");var u=gc(s[l]);if(u){var d=n&&i?()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1):void 0,p=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=hp(s,c));var _=c[l];if(!e_(_,Is(Rp(u,a),_),n?r[l]:void 0,p,d))return}}return c}function nv(t){if(Ih(t.tagName))return 2;var r=kc(ix(t.tagName));return e.length(jc(r,1))?0:e.length(jc(r,0))?1:2}function iv(t,r,n,i,a,o,s){var c={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(t))return((t,r,n,i,a,o,s)=>{var c=hh(r,t),l=jb(t.attributes,c,void 0,i);return(()=>{var r;if(jh(t))return!0;var n=e.isJsxOpeningElement(t)||e.isJsxSelfClosingElement(t)&&!Ih(t.tagName)?ix(t.tagName):void 0;if(!n)return!0;var i=jc(n,0);if(!e.length(i))return!0;var o=vD(t);if(!o)return!0;var c=Pi(o,111551,!0,!1,t);if(!c)return!0;var l=jc(jo(c),0);if(!e.length(l))return!0;for(var u=!1,d=0,p=0,_=l;p<_.length;p++){var f=jc(Gv(_[p],0),0);if(e.length(f))for(var m=0,g=f;m<g.length;m++){var h=g[m];if(u=!0,Zv(h))return!0;var y=Yv(h);y>d&&(d=y)}}if(!u)return!0;for(var v=1/0,b=0,x=i;b<x.length;b++){var E=Qv(x[b]);E<v&&(v=E)}if(v<=d)return!0;if(a){var S=e.createDiagnosticForNode(t.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(t.tagName),v,e.entityNameToString(o),d),D=null===(r=OS(t.tagName))||void 0===r?void 0:r.valueDeclaration;D&&e.addRelatedInfo(S,e.createDiagnosticForNode(D,e.Diagnostics._0_is_declared_here,e.entityNameToString(t.tagName))),s&&s.skipLogging&&(s.errors||(s.errors=[])).push(S),s.skipLogging||_n.add(S)}return!1})()&&r_(l,c,n,a?t.tagName:void 0,t.attributes,void 0,o,s)})(t,n,i,a,o,s,c)?void 0:(e.Debug.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||e.emptyArray);var l=ul(n);if(l&&l!==Ze&&208!==t.kind){var u=av(t),d=Qy(u),p=o?u||t:void 0,_=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!x_(d,l,i,p,_,s,c))return e.Debug.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||e.emptyArray}for(var f=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,m=tb(n),g=m?Math.min(Yv(n)-1,r.length):r.length,h=0;h<g;h++){var y=r[h];if(226!==y.kind){var v=Gv(n,h),b=jb(y,v,void 0,a),x=4&a?Pf(b):b;if(!r_(x,v,i,o?y:void 0,y,f,s,c))return e.Debug.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),D(y,x,v),c.errors||e.emptyArray}}if(m){var E=tv(r,g,r.length,m,void 0,a),S=r.length-g;if(p=o?0===S?t:1===S?r[g]:e.setTextRangePosEnd(ov(t,E),r[g].pos,r[r.length-1].end):void 0,!x_(E,m,i,p,f,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),D(p,E,m),c.errors||e.emptyArray}return;function D(t,r,n){if(t&&o&&c.errors&&c.errors.length){if(Sx(n))return;var a=Sx(r);a&&y_(a,n,i)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await))}}}function av(t){var r=207===t.kind?t.expression:209===t.kind?t.tag:void 0;if(r){var n=e.skipOuterExpressions(r);if(e.isAccessExpression(n))return n.expression}}function ov(t,r,n,i){var a=e.parseNodeFactory.createSyntheticExpression(r,n,i);return e.setTextRange(a,t),e.setParent(a,t),a}function sv(t){if(209===t.kind){var r=t.template,n=[ov(r,sr||(sr=du("TemplateStringsArray",0,!0)||_t))];return 222===r.kind&&e.forEach(r.templateSpans,(e=>{n.push(e.expression)})),n}if(164===t.kind)return(t=>{var r=t.parent,n=t.expression;switch(r.kind){case 256:case 225:return[ov(n,jo(Xi(r)))];case 163:var i=r.parent;return[ov(n,170===r.parent.kind?jo(Xi(i)):Pe),ov(n,Ne),ov(n,He)];case 166:case 168:case 171:case 172:var a=166!==r.kind&&0!==U;return[ov(n,BS(r)),ov(n,jS(r)),ov(n,a?Su(MS(r)):Ne)]}return e.Debug.fail()})(t);if(e.isJsxOpeningLikeElement(t))return t.attributes.properties.length>0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=Ky(i);if(a>=0){for(var o=i.slice(0,a),s=t=>{var r=i[t],n=224===r.kind&&(jr?ix(r.expression):Ub(r.expression));n&&uf(n)?e.forEach(Vl(n),((e,t)=>{var i,a=n.target.elementFlags[t],s=ov(r,4&a?Du(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c<i.length;c++)s(c);return o}return i}function cv(t,r){switch(t.parent.kind){case 256:case 225:return 1;case 166:return 2;case 168:case 171:case 172:return 0===U||r.parameters.length<=2?2:3;case 163:return 3;default:return e.Debug.fail()}}function lv(t,r){var n,i,a=e.getSourceFileOfNode(t);if(e.isPropertyAccessExpression(t.expression)){var o=e.getErrorSpanForNode(a,t.expression.name);n=o.start,i=r?o.length:t.end-n}else{var s=e.getErrorSpanForNode(a,t.expression);n=s.start,i=r?s.length:t.end-n}return{start:n,length:i,sourceFile:a}}function uv(t,r,n,i,a,o){if(e.isCallExpression(t)){var s=lv(t),c=s.sourceFile,l=s.start,u=s.length;return e.createFileDiagnostic(c,l,u,r,n,i,a,o)}return e.createDiagnosticForNode(t,r,n,i,a,o)}function dv(t,r,n){var i,a=Ky(n);if(a>-1)return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=0,p=r;d<p.length;d++){var _=p[d],f=Qv(_),m=Yv(_);f<s&&(s=f,o=_),c=Math.max(c,m),f<n.length&&f>l&&(l=f),n.length<m&&m<u&&(u=m)}var g=e.some(r,Zv),h=g?s:s<c?s+"-"+c:s,y=g?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:1===h&&0===n.length&&(t=>{if(!e.isCallExpression(t)||!e.isIdentifier(t.expression))return!1;var r=Yn(t.expression,t.expression.escapedText,111551,void 0,void 0,!1),n=null==r?void 0:r.valueDeclaration;if(!(n&&e.isParameter(n)&&e.isFunctionExpressionOrArrowFunction(n.parent)&&e.isNewExpression(n.parent.parent)&&e.isIdentifier(n.parent.parent.expression)))return!1;var i=yu(!1);return!!i&&OS(n.parent.parent.expression,!0)===i})(t)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(s<n.length&&n.length<c)return uv(t,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,u);if(n.length<s){var v=uv(t,y,h,n.length),b=null===(i=null==o?void 0:o.declaration)||void 0===i?void 0:i.parameters[o.thisParameter?n.length+1:n.length];if(b){var x=e.createDiagnosticForNode(b,e.isBindingPattern(b.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(b)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,b.name?e.isBindingPattern(b.name)?void 0:e.idText(e.getFirstIdentifier(b.name)):n.length);return e.addRelatedInfo(v,x)}return v}var E=e.factory.createNodeArray(n.slice(c)),S=e.first(E).pos,D=e.last(E).end;return D===S&&D++,e.setTextRangePosEnd(E,S,D),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),E,y,h,n.length)}function pv(t,n,i,a,o,s){var c,l=209===t.kind,u=164===t.kind,d=e.isJsxOpeningLikeElement(t),p=!i&&r;u||(c=t.typeArguments,(l||d||106!==t.expression.kind)&&e.forEach(c,yS));var _=i||[];if(((t,r,n)=>{var i,a,o,s,c=0,l=-1;e.Debug.assert(!r.length);for(var u=0,d=t;u<d.length;u++){var p=d[u],_=p.declaration&&Xi(p.declaration),f=p.declaration&&p.declaration.parent;a&&_!==a?(o=c=r.length,i=f):i&&f===i?o+=1:(i=f,o=c),a=_,B(p)?(s=++l,c++):s=o,r.splice(s,0,n?Bs(p,n):p)}})(n,_,o),!_.length)return p&&_n.add(uv(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Vy(t);var f,m,g,h,y=sv(t),v=1===_.length&&!_[0].typeParameters,b=u||v||!e.some(y,Vp)?0:4,x=!!(16&a)&&207===t.kind&&t.arguments.hasTrailingComma;if(_.length>1&&(h=H(_,hn,v,x)),h||(h=H(_,vn,v,x)),h)return h;if(p)if(f)if(1===f.length||f.length>3){var E,S=f[f.length-1];f.length>3&&(E=e.chainDiagnosticMessages(E,e.Diagnostics.The_last_overload_gave_the_following_error),E=e.chainDiagnosticMessages(E,e.Diagnostics.No_overload_matches_this_call));var D=iv(t,y,S,vn,0,!0,(()=>E));if(D)for(var T=0,C=D;T<C.length;T++){var k=C[T];S.declaration&&f.length>3&&e.addRelatedInfo(k,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),W(S,k),_n.add(k)}else e.Debug.fail("No error for last overload signature")}else{for(var A=[],N=0,w=Number.MAX_VALUE,F=0,P=0,I=r=>{var n=iv(t,y,r,vn,0,!0,(()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,P+1,_.length,Fa(r))));n?(n.length<=w&&(w=n.length,F=P),N=Math.max(N,n.length),A.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),P++},O=0,M=f;O<M.length;O++)I(M[O]);var R=N>1?A[F]:e.flatten(A);e.Debug.assert(R.length>0,"No errors reported for 3 or fewer overload signatures");var j=e.chainDiagnosticMessages(e.map(R,(e=>"string"==typeof e.messageText?e:e.messageText)),e.Diagnostics.No_overload_matches_this_call),U=Il([],e.flatMap(R,(e=>e.relatedInformation)),!0),V=void 0;if(e.every(R,(e=>e.start===R[0].start&&e.length===R[0].length&&e.file===R[0].file))){var z=R[0];V={file:z.file,start:z.start,length:z.length,code:j.code,category:j.category,messageText:j,relatedInformation:U}}else V=e.createDiagnosticForNodeFromMessageChain(t,j,U);W(f[0],V),_n.add(V)}else if(m)_n.add(dv(t,[m],y));else if(g)rv(g,t.typeArguments,!0,s);else{var K=e.filter(n,(e=>$y(e,c)));0===K.length?_n.add(((t,r,n)=>{var i=n.length;if(1===r.length){var a=nl((d=r[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,a<o?a+"-"+o:a,i)}for(var s=-1/0,c=1/0,l=0,u=r;l<u.length;l++){var d,p=nl((d=u[l]).typeParameters);o=e.length(d.typeParameters),p>i?c=Math.min(c,p):o<i&&(s=Math.max(s,o))}return s!==-1/0&&c!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,s,c):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,s===-1/0?c:s,i)})(t,n,c)):u?s&&_n.add(uv(t,s)):_n.add(dv(t,K,y))}return((t,r,n,i)=>(e.Debug.assert(r.length>0),bS(t),i||1===r.length||r.some((e=>!!e.typeParameters))?((t,r,n)=>{var i=((e,t)=>{for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=Yv(a);if(Zv(a)||o>=t)return i;o>n&&(n=o,r=i)}return r})(r,void 0===oe?n.length:oe),a=r[i],o=a.typeParameters;if(!o)return a;var s=jy(t)?t.typeArguments:void 0,c=s?vl(a,((e,t,r)=>{for(var n=e.map(MS);n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(gc(t[n.length])||vm(r));return n})(s,o,e.isInJSFile(t))):((t,r,n,i)=>vl(n,Zy(t,n,i,12,Hf(r,n,e.isInJSFile(t)?2:0))))(t,o,a,n);return r[i]=c,c})(t,r,n):(t=>{var r,n=e.mapDefined(t,(e=>e.thisParameter));n.length&&(r=fv(n,n.map(zv)));for(var i=e.minAndMax(t,_v),a=i.min,o=i.max,s=[],c=r=>{var n=e.mapDefined(t,(t=>L(t)?r<t.parameters.length-1?t.parameters[r]:e.last(t.parameters):r<t.parameters.length?t.parameters[r]:void 0));e.Debug.assert(0!==n.length),s.push(fv(n,e.mapDefined(t,(e=>qv(e,r)))))},l=0;l<o;l++)c(l);var u=e.mapDefined(t,(t=>L(t)?e.last(t.parameters):void 0)),d=0;if(0!==u.length){var p=Du(Hu(e.mapDefined(t,gl),2));s.push(mv(u,p)),d|=1}return t.some(B)&&(d|=2),Ms(t[0].declaration,void 0,r,s,Zu(t.map(_l)),void 0,a,d)})(r)))(t,_,y,!!i);function W(t,r){var n,i,a=f,o=m,s=g,c=(null===(i=null===(n=t.declaration)||void 0===n?void 0:n.symbol)||void 0===i?void 0:i.declarations)||e.emptyArray,l=c.length>1?e.find(c,(t=>e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body))):void 0;if(l){var u=al(l),d=!u.typeParameters;H([u],vn,d)&&e.addRelatedInfo(r,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}f=a,m=o,g=s}function H(r,n,i,a){if(void 0===a&&(a=!1),f=void 0,m=void 0,g=void 0,i){var o=r[0];if(e.some(c)||!Jy(t,y,o,a))return;return iv(t,y,o,n,0,!1,void 0)?void(f=[o]):o}for(var s=0;s<r.length;s++)if($y(o=r[s],c)&&Jy(t,y,o,a)){var l=void 0,u=void 0;if(o.typeParameters){var d=void 0;if(e.some(c)){if(!(d=rv(o,c,!1))){g=o;continue}}else u=Hf(o.typeParameters,o,e.isInJSFile(t)?2:0),d=Zy(t,o,y,8|b,u),b|=4&u.flags?8:0;if(l=hl(o,d,e.isInJSFile(o.declaration),u&&u.inferredTypeParameters),tb(o)&&!Jy(t,y,l,a)){m=l;continue}}else l=o;if(!iv(t,y,l,n,b,!1,void 0)){if(b){if(b=0,u&&(l=hl(o,d=Zy(t,o,y,b,u),e.isInJSFile(o.declaration),u&&u.inferredTypeParameters),tb(o)&&!Jy(t,y,l,a))){m=l;continue}if(iv(t,y,l,n,b,!1,void 0)){(f||(f=[])).push(l);continue}}return r[s]=l,l}(f||(f=[])).push(l)}}}function _v(e){var t=e.parameters.length;return L(e)?t-1:t}function fv(e,t){return mv(e,Hu(t,2))}function mv(t,r){return Ff(e.first(t),r)}function gv(e){return!(!e.typeParameters||!lD(_l(e)))}function hv(e,t,r,n){return Qa(e)||Qa(t)&&!!(262144&e.flags)||!r&&!n&&!(1048576&t.flags)&&!(131072&Pc(t).flags)&&Xp(e,Nt)}function yv(t,r,n){if(t.arguments&&U<1){var i=Ky(t.arguments);i>=0&&wn(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=ny(t.expression);if(a===tt)return Cr;if(Za(a=kc(a)))return Vy(t);if(Qa(a))return t.typeArguments&&wn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Uy(t);var o=jc(a,1);if(o.length){if(!((t,r)=>{if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||170!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=_s(n.parent.symbol);if(!wS(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=MS(s);if(vv(n.parent.symbol,c))return!0}return 8&i&&wn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Pa(o)),16&i&&wn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Pa(o)),!1}return!0})(t,o[0]))return Vy(t);if(o.some((e=>4&e.flags)))return wn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Vy(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(wn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Vy(t)):pv(t,o,r,n,0)}var c=jc(a,0);if(c.length){var l=pv(t,c,r,n,0);return G||(l.declaration&&!Av(l.declaration)&&_l(l)!==Ze&&wn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),ul(l)===Ze&&wn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return xv(t.expression,a,1),Vy(t)}function vv(t,r){var n=ts(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=Js(i.types),o=0,s=0,c=i.types;s<c.length;s++){var l=c[s];if(!a[o]&&3&e.getObjectFlags(l)){if(l.symbol===t)return!0;if(vv(t,l))return!0}o++}return!1}return i.symbol===t||vv(t,i)}function bv(t,r,n){var i,a=0===n,o=Nx(r),s=o&&jc(o,n).length>0;if(1048576&r.flags){for(var c=!1,l=0,u=r.types;l<u.length;l++){var d=u[l];if(0!==jc(d,n).length){if(c=!0,i)break}else if(i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Pa(d)),i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Pa(r))),c)break}c||(i=e.chainDiagnosticMessages(void 0,a?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Pa(r))),i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Pa(r)))}else i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Pa(r));var p=a?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(t.parent)&&0===t.parent.arguments.length){var _=Jn(t).resolvedSymbol;_&&32768&_.flags&&(p=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(i,p),relatedMessage:s?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function xv(t,r,n,i){var a=bv(t,r,n),o=a.messageChain,s=a.relatedMessage,c=e.createDiagnosticForNodeFromMessageChain(t,o);if(s&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,s)),e.isCallExpression(t.parent)){var l=lv(t.parent,!0),u=l.start,d=l.length;c.start=u,c.length=d}_n.add(c),Ev(r,n,i?e.addRelatedInfo(c,i):c)}function Ev(t,r,n){if(t.symbol){var i=Hn(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=jc(jo(Hn(t.symbol).target),r);if(!a||!a.length)return;e.addRelatedInfo(n,e.createDiagnosticForNode(i,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function Sv(t){switch(t.parent.kind){case 256:case 225:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 163:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 166:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 168:case 171:case 172:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function Dv(t,r){var n=Uh(t),i=n&&Hi(n),a=i&&Gn(i,k.Element,788968),o=a&&re.symbolToEntityName(a,788968,t),s=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,re.typeToTypeNode(r,t))],o?e.factory.createTypeReferenceNode(o,void 0):e.factory.createKeywordTypeNode(130)),c=Rn(1,"props");return c.type=r,Ms(s,void 0,void 0,[c],a?_s(a):Pe,void 0,1,0)}function Tv(t,r,n){if(Ih(t.tagName)){var i=Hh(t),a=Dv(t,i);return t_(jb(t.attributes,hh(a,t),void 0,0),i,t.tagName,t.attributes),e.length(t.typeArguments)&&(e.forEach(t.typeArguments,yS),_n.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),t.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(t.typeArguments)))),a}var o=ix(t.tagName),s=kc(o);if(Za(s))return Vy(t);var c=Kh(o,t);return hv(o,s,c.length,0)?Uy(t):0===c.length?(wn(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),Vy(t)):pv(t,c,r,n,0)}function Cv(t,r,n){switch(t.kind){case 207:return((t,r,n)=>{if(106===t.expression.kind){var i=Gg(t.expression);if(Qa(i)){for(var a=0,o=t.arguments;a<o.length;a++)ix(o[a]);return Sr}if(!Za(i)){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(s)return pv(t,Qo(i,s.typeArguments,s),r,n,0)}return Uy(t)}var c,l=ix(t.expression);if(e.isCallChain(t)){var u=Cf(l,t.expression);c=u===l?0:e.isOutermostOptionalChain(t)?16:8,l=u}else c=0;if((l=cy(l,t.expression,sy))===tt)return Cr;var d=kc(l);if(Za(d))return Vy(t);var p=jc(d,0),_=jc(d,1).length;if(hv(l,d,p.length,_))return!Za(l)&&t.typeArguments&&wn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Uy(t);if(!p.length){if(_)wn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Pa(l));else{var f=void 0;if(1===t.arguments.length){var m=e.getSourceFileOfNode(t).text;e.isLineBreak(m.charCodeAt(e.skipTrivia(m,t.expression.end,!0)-1))&&(f=e.createDiagnosticForNode(t.expression,e.Diagnostics.Are_you_missing_a_semicolon))}xv(t.expression,d,0,f)}return Vy(t)}return 8&n&&!t.typeArguments&&p.some(gv)?(Xb(t,n),Tr):p.some((t=>e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)))?(wn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Pa(l)),Vy(t)):pv(t,p,r,n,c)})(t,r,n);case 208:return yv(t,r,n);case 209:return((t,r,n)=>{var i=ix(t.tag),a=kc(i);if(Za(a))return Vy(t);var o=jc(a,0),s=jc(a,1).length;if(hv(i,a,o.length,s))return Uy(t);if(!o.length){if(e.isArrayLiteralExpression(t.parent)){var c=e.createDiagnosticForNode(t.tag,e.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return _n.add(c),Vy(t)}return xv(t.tag,a,0),Vy(t)}return pv(t,o,r,n,0)})(t,r,n);case 164:return((t,r,n)=>{var i=ix(t.expression),a=kc(i);if(Za(a))return Vy(t);var o,s,c=jc(a,0),l=jc(a,1).length;if(hv(i,a,c.length,l))return Uy(t);if(o=t,(s=c).length&&e.every(s,(e=>0===e.minArgumentCount&&!L(e)&&e.parameters.length<cv(o,e)))){var u=e.getTextOfNode(t.expression,!1);return wn(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,u),Vy(t)}var d=Sv(t);if(!c.length){var p=bv(t.expression,a,0),_=e.chainDiagnosticMessages(p.messageChain,d),f=e.createDiagnosticForNodeFromMessageChain(t.expression,_);return p.relatedMessage&&e.addRelatedInfo(f,e.createDiagnosticForNode(t.expression,p.relatedMessage)),_n.add(f),Ev(a,0,f),Vy(t)}return pv(t,c,r,n,0,d)})(t,r,n);case 279:case 278:return Tv(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function kv(e,t,r){var n=Jn(e),i=n.resolvedSignature;if(i&&i!==Tr&&!t)return i;n.resolvedSignature=Tr;var a=Cv(e,t,r||0);return a!==Tr&&(n.resolvedSignature=Br===jr?a:i),a}function Av(t){var r;if(!t||!e.isInJSFile(t))return!1;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?t:e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?t.initializer:void 0;if(n){if(e.getJSDocClassTag(t))return!0;var i=Xi(n);return!!(null===(r=null==i?void 0:i.members)||void 0===r?void 0:r.size)}return!1}function Nv(t,r){var n,i;if(r){var a=Hn(r);if(!a.inferredClassSymbol||!a.inferredClassSymbol.has(P(t))){var o=e.isTransientSymbol(t)?t:jn(t);return o.exports=o.exports||e.createSymbolTable(),o.members=o.members||e.createSymbolTable(),o.flags|=32&r.flags,(null===(n=r.exports)||void 0===n?void 0:n.size)&&Kn(o.exports,r.exports),(null===(i=r.members)||void 0===i?void 0:i.size)&&Kn(o.members,r.members),(a.inferredClassSymbol||(a.inferredClassSymbol=new e.Map)).set(P(o),o),o}return a.inferredClassSymbol.get(P(t))}}function wv(t,r){if(t.parent){var n,i;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!(e.isInJSFile(t)||e.isVarConst(t.parent)&&e.isFunctionLikeDeclaration(t)))return;n=t.parent.name,i=t.parent}else if(e.isBinaryExpression(t.parent)){var a=t.parent,o=t.parent.operatorToken.kind;if(63!==o||!r&&a.right!==t){if(!(56!==o&&60!==o||(e.isVariableDeclaration(a.parent)&&a.parent.initializer===a?(n=a.parent.name,i=a.parent):e.isBinaryExpression(a.parent)&&63===a.parent.operatorToken.kind&&(r||a.parent.right===a)&&(i=n=a.parent.left),n&&e.isBindableStaticNameExpression(n)&&e.isSameEntityName(n,a.left))))return}else i=n=a.left}else r&&e.isFunctionDeclaration(t)&&(n=t.name,i=t);if(i&&n&&(r||e.getExpandoInitializer(t,e.isPrototypeAccess(n))))return Xi(i)}}function Fv(t,r){if(t.declaration&&134217728&t.declaration.flags){var n=Pv(r),i=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(r));a=n,o=t.declaration,s=i,c=Fa(t),On(o,s?e.createDiagnosticForNode(a,e.Diagnostics.The_signature_0_of_1_is_deprecated,c,s):e.createDiagnosticForNode(a,e.Diagnostics._0_is_deprecated,c))}var a,o,s,c}function Pv(t){switch((t=e.skipParentheses(t)).kind){case 207:case 164:case 208:return Pv(t.expression);case 209:return Pv(t.tag);case 279:case 278:return Pv(t.tagName);case 206:return t.argumentExpression;case 205:return t.name;case 177:var r=t;return e.isQualifiedName(r.typeName)?r.typeName.right:r;default:return t}}function Iv(t){if(!e.isCallExpression(t))return!1;var r=t.expression;if(e.isPropertyAccessExpression(r)&&"for"===r.name.escapedText&&(r=r.expression),!e.isIdentifier(r)||"Symbol"!==r.escapedText)return!1;var n=fu(!1);return!!n&&n===Yn(r,"Symbol",111551,void 0,void 0,!1)}function Ov(t,r,n){var i=e.createSymbolTable(),a=Rn(2097152,"default");return a.parent=r,a.nameType=np("default"),a.target=Si(t),i.set("default",a),fa(n,i,e.emptyArray,e.emptyArray,e.emptyArray)}function Mv(e,t,r,n){if(mi(n)&&e&&!Za(e)){var i=e;if(!i.defaultOnlyType){var a=Ov(t,r);i.defaultOnlyType=a}return i.defaultOnlyType}}function Rv(t,r,n,i){var a;if(K&&t&&!Za(t)){var o=t;if(!o.syntheticType)if(gi(null===(a=n.declarations)||void 0===a?void 0:a.find(e.isSourceFile),n,!1,i)){var s=Rn(2048,"__type"),c=Ov(r,n,s);s.type=c,o.syntheticType=Fh(t)?Xd(t,c,s,0,!1):c}else o.syntheticType=t;return o.syntheticType}return t}function Lv(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=Yn(t.expression,t.expression.escapedText,111551,void 0,void 0,!0);if(r===ce)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?255:3&r.flags?253:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(8388608&i.flags)}return!1}function Bv(e){switch(e.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 203:case 204:case 222:return!0;case 211:return Bv(e.expression);case 218:var t=e.operator,r=e.operand;return 40===t&&(8===r.kind||9===r.kind)||39===t&&8===r.kind;case 205:case 206:var n=MS(e.expression).symbol;return n&&2097152&n.flags&&(n=Di(n)),!!(n&&384&n.flags&&1===cs(n))}return!1}function jv(t,n,i,a){var o=ix(i,a);if(e.isConstTypeReference(n))return Bv(i)||wn(i,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),tp(o);yS(n),o=Pf(af(o));var s=dp(n);return r&&!Za(s)&&(Qp(s,Bf(o))||u_(o,s,t,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)),s}function Uv(t){switch(t.keywordToken){case 100:return(()=>{if(!lr){var t=Rn(0,"ImportMetaExpression"),r=pu(),n=Rn(4,"meta",8);n.parent=t,n.type=r;var i=e.createSymbolTable([n]);t.members=i,lr=fa(t,i,e.emptyArray,e.emptyArray,e.emptyArray)}return lr})();case 103:var r=Vv(t);return Za(r)?Pe:(t=>{var r=Rn(0,"NewTargetExpression"),n=Rn(4,"target",8);n.parent=r,n.type=t;var i=e.createSymbolTable([n]);return r.members=i,fa(r,i,e.emptyArray,e.emptyArray,e.emptyArray)})(r);default:e.Debug.assertNever(t.keywordToken)}}function Vv(t){var r=e.getNewTargetContainer(t);return r?170===r.kind?jo(Xi(r.parent)):jo(Xi(r)):(wn(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Pe)}function zv(t){var r=jo(t);if(W){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return xf(r)}return r}function Kv(t){return e.Debug.assert(e.isIdentifier(t.name)),t.name.escapedText}function Wv(e,t,r){var n=e.parameters.length-(L(e)?1:0);if(t<n)return e.parameters[t].escapedName;var i=e.parameters[n]||Te,a=r||jo(i);if(uf(a)){var o=a.target.labeledElementDeclarations,s=t-n;return o&&Kv(o[s])||i.escapedName+"_"+s}return i.escapedName}function Hv(t){return t.valueDeclaration&&e.isParameter(t.valueDeclaration)&&e.isIdentifier(t.valueDeclaration.name)}function Jv(t){return 196===t.kind||e.isParameter(t)&&t.name&&e.isIdentifier(t.name)}function $v(e,t){var r=e.parameters.length-(L(e)?1:0);if(t<r){var n=e.parameters[t].valueDeclaration;return n&&Jv(n)?n:void 0}var i=e.parameters[r]||Te,a=jo(i);if(uf(a)){var o=a.target.labeledElementDeclarations;return o&&o[t-r]}return i.valueDeclaration&&Jv(i.valueDeclaration)?i.valueDeclaration:void 0}function Gv(e,t){return qv(e,t)||Ne}function qv(e,t){var r=e.parameters.length-(L(e)?1:0);if(t<r)return zv(e.parameters[t]);if(L(e)){var n=jo(e.parameters[r]),i=t-r;if(!uf(n)||n.target.hasRestElement||i<n.target.fixedLength)return Ad(n,ip(i))}}function Xv(t,r){var n=Yv(t),i=Qv(t),a=eb(t);if(a&&r>=n-1)return r===n-1?a:Du(Ad(a,He));for(var o=[],s=[],c=[],l=r;l<n;l++){!a||l<n-1?(o.push(Gv(t,l)),s.push(l<i?1:2)):(o.push(a),s.push(8));var u=$v(t,l);u&&c.push(u)}return wu(o,s,!1,e.length(c)===e.length(o)?c:void 0)}function Yv(e){var t=e.parameters.length;if(L(e)){var r=jo(e.parameters[t-1]);if(uf(r))return t+r.target.fixedLength-(r.target.hasRestElement?0:1)}return t}function Qv(t,r){var n=1&r,i=2&r;if(i||void 0===t.resolvedMinArgumentCount){var a=void 0;if(L(t)){var o=jo(t.parameters[t.parameters.length-1]);if(uf(o)){var s=e.findIndex(o.target.elementFlags,(e=>!(1&e))),c=s<0?o.target.fixedLength:s;c>0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var l=a-1;l>=0&&!(131072&ag(Gv(t,l),Wy).flags);l--)a=l;t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function Zv(e){if(L(e)){var t=jo(e.parameters[e.parameters.length-1]);return!uf(t)||t.target.hasRestElement}return!1}function eb(e){if(L(e)){var t=jo(e.parameters[e.parameters.length-1]);if(!uf(t))return t;if(t.target.hasRestElement)return Ou(t,t.target.fixedLength)}}function tb(e){var t=eb(e);return!t||W_(t)||Qa(t)||0!=(131072&Pc(t).flags)?void 0:t}function rb(e){return nb(e,et)}function nb(e,t){return e.parameters.length>0?Gv(e,0):t}function ib(t,r){if(r.typeParameters){if(t.typeParameters)return;t.typeParameters=r.typeParameters}r.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=Ff(r.thisParameter,void 0)),ab(t.thisParameter,jo(r.thisParameter)));for(var n=t.parameters.length-(L(t)?1:0),i=0;i<n;i++){var a=t.parameters[i];e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||ab(a,qv(r,i))}L(t)&&(a=e.last(t.parameters),!e.isTransientSymbol(a)&&e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||ab(a,Xv(r,n)))}function ab(e,t){var r=Hn(e);if(!r.type){var n=e.valueDeclaration;r.type=t||Co(n,!0),79!==n.name.kind&&(r.type===Re&&(r.type=To(n.name)),ob(n.name))}}function ob(t){for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];e.isOmittedExpression(i)||(79===i.name.kind?Hn(Xi(i)).type=co(i):ob(i.name))}}function sb(e){var t=gu(!0);return t!==ht?Bl(t,[e=wx(Ax(e))||Re]):Re}function cb(e){var t=hu(!0);return t!==ht?Bl(t,[e=wx(Ax(e))||Re]):Re}function lb(t,r){var n=sb(r);return n===Re?(wn(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Pe):(yu(!0)||wn(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function ub(t,r){if(!t.body)return Pe;var n,i,a,o=e.getFunctionFlags(t),s=0!=(2&o),c=0!=(1&o),l=Ze;if(234!==t.body.kind)n=Ub(t.body,r&&-9&r),s&&(n=Ax(Tx(n,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(c){var u=gb(t,r);u?u.length>0&&(n=Hu(u,2)):l=et;var d=((t,r)=>{var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(t=>{var o,s=t.expression?ix(t.expression,r):je;if(e.pushIfUnique(n,pb(t,s,Ne,a)),t.asteriskToken){var c=TE(s,a?19:17,t.expression);o=c&&c.nextType}else o=mh(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}})(t,r),p=d.yieldTypes,_=d.nextTypes;i=e.some(p)?Hu(p,2):void 0,a=e.some(_)?Zu(_):void 0}else{var f=gb(t,r);if(!f)return 2&o?lb(t,et):et;if(0===f.length)return 2&o?lb(t,Ze):Ze;n=Hu(f,2)}if(n||i||a){if(i&&zf(t,i,3),n&&zf(t,n,1),a&&zf(t,a,2),n&&tf(n)||i&&tf(i)||a&&tf(a)){var m=bh(t),g=m?m===al(t)?c?void 0:n:_h(_l(m),t):void 0;c?(i=lf(i,g,0,s),n=lf(n,g,1,s),a=lf(a,g,2,s)):n=((e,t,r)=>(e&&tf(e)&&(e=cf(e,t?r?Dx(t):t:void 0)),e))(n,g,s)}i&&(i=Bf(i)),n&&(n=Bf(n)),a&&(a=Bf(a))}return c?db(i||et,n||l,a||th(2,t)||Re,s):s?sb(n||l):n||l}function db(e,t,r,n){var i=n?Ir:Or,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Re,t=i.resolveIterationType(t,void 0)||Re,r=i.resolveIterationType(r,void 0)||Re,a===ht){var o=i.getGlobalIterableIteratorType(!1),s=o!==ht?NE(o,i):void 0,c=s?s.returnType:Ne,l=s?s.nextType:Be;return Xp(t,c)&&Xp(l,r)?o!==ht?Eu(o,[e]):(i.getGlobalIterableIteratorType(!0),_t):(i.getGlobalGeneratorType(!0),_t)}return Eu(a,[e,t,r])}function pb(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?yE(i?19:17,r,n,a):r;return i?Nx(o,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function _b(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=x.get(r[a])||32768;for(a=e;a<t;a++)i&=~(x.get(r[a])||0);for(a=0;a<e;a++)i|=x.get(r[a])||32768}else{for(a=e;a<t;a++)i|=b.get(r[a])||128;for(a=0;a<e;a++)i&=~(b.get(r[a])||0)}return i}function fb(t){var r=Jn(t);return void 0!==r.isExhaustive?r.isExhaustive:r.isExhaustive=(t=>{if(215===t.expression.kind){var r=tx(t.expression.expression),n=_b(0,0,eg(t,!1),!0),i=xc(r)||r;return 3&i.flags?556800==(556800&n):!!(131072&ag(i,(e=>(Bm(e)&n)===n)).flags)}var a=tx(t.expression);if(!nf(a))return!1;var o,s,c=Zm(t);return!(!c.length||e.some(c,ef))&&(o=cg(a,tp),s=c,1048576&o.flags?!e.forEach(o.types,(t=>!e.contains(s,t))):e.contains(s,o))})(t)}function mb(e){return e.endFlowNode&&Tg(e.endFlowNode)}function gb(t,r){var n=e.getFunctionFlags(t),i=[],a=mb(t),o=!1;if(e.forEachReturnStatement(t.body,(s=>{var c=s.expression;if(c){var l=Ub(c,r&&-9&r);2&n&&(l=Ax(Tx(l,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&l.flags&&(o=!0),e.pushIfUnique(i,l)}else a=!0})),0!==i.length||a||!o&&!(e=>{switch(e.kind){case 212:case 213:return!0;case 168:return 204===e.parent.kind;default:return!1}})(t))return!(W&&i.length&&a)||Av(t)&&i.some((e=>e.symbol===t.symbol))||e.pushIfUnique(i,Be),i}function hb(t,n){if(r){var i=e.getFunctionFlags(t),a=n&&zE(n,i);if((!a||!Tb(a,16385))&&167!==t.kind&&!e.nodeIsMissing(t.body)&&234===t.body.kind&&mb(t)){var o=512&t.flags,s=e.getEffectiveReturnTypeNode(t)||t;if(a&&131072&a.flags)wn(s,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(a&&!o)wn(s,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(a&&W&&!Xp(Be,a))wn(s,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!a){if(!o)return;if(KE(t,_l(al(t))))return}wn(s,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function yb(t,r){if(e.Debug.assert(168!==t.kind||e.isObjectLiteralMethod(t)),bS(t),e.isFunctionExpression(t)&&oE(t,t.name),r&&4&r&&Vp(t)){if(!e.getEffectiveReturnTypeNode(t)&&!e.hasContextSensitiveParameters(t)){var n=xh(t);if(n&&Qf(_l(n))){var i=Jn(t);if(i.contextFreeType)return i.contextFreeType;var a=ub(t,r),o=Ms(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=fa(t.symbol,D,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=524288,i.contextFreeType=s}}return yt}return AD(t)||212!==t.kind||OD(t),((t,r)=>{var n=Jn(t);if(!(1024&n.flags)){var i=xh(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(jc(jo(Xi(t)),0));if(!a)return;if(Vp(t))if(i){var o=gh(t);r&&2&r&&((t,r,n)=>{for(var i=t.parameters.length-(L(t)?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&_m(n.inferences,dp(s),Gv(r,a))}}var c=eb(r);if(c&&262144&c.flags){ib(t,kp(r,n.nonFixingMapper));var l=Yv(r)-1;_m(n.inferences,Xv(t,l),c)}})(a,i,o),ib(a,o?kp(i,o.mapper):i)}else!(e=>{e.thisParameter&&ab(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++)ab(r[t])})(a);if(i&&!fl(t)&&!a.resolvedReturnType){var s=ub(t,r);a.resolvedReturnType||(a.resolvedReturnType=s)}cx(t)}}})(t,r),jo(Xi(t))}function vb(e,t,r,n){if(void 0===n&&(n=!1),!Xp(t,lt)){var i=n&&Sx(t);return In(e,!!i&&Xp(i,lt),r),!1}return!0}function bb(t){if(!e.isCallExpression(t))return!1;if(!e.isBindableObjectDefinePropertyCall(t))return!1;var r=Ub(t.arguments[2]);if(Ya(r,"value")){var n=Lc(r,"writable"),i=n&&jo(n);if(!i||i===$e||i===Ge)return!0;if(n&&n.valueDeclaration&&e.isPropertyAssignment(n.valueDeclaration)){var a=ix(n.valueDeclaration.initializer);if(a===$e||a===Ge)return!0}return!1}return!Lc(r,"set")}function xb(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&Qh(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags||e.some(t.declarations,bb))}function Eb(t,r,n){var i,a;if(0===n)return!1;if(xb(r)){if(4&r.flags&&e.isAccessExpression(t)&&108===t.expression.kind){var o=e.getContainingFunction(t);if(!o||170!==o.kind&&!Av(o))return!0;if(r.valueDeclaration){var s=e.isBinaryExpression(r.valueDeclaration),c=o.parent===r.valueDeclaration.parent,l=o===r.valueDeclaration.parent,u=s&&(null===(i=r.parent)||void 0===i?void 0:i.valueDeclaration)===o.parent,d=s&&(null===(a=r.parent)||void 0===a?void 0:a.valueDeclaration)===o;return!(c||l||u||d)}}return!0}if(e.isAccessExpression(t)){var p=e.skipParentheses(t.expression);if(79===p.kind){var _=Jn(p).resolvedSymbol;if(2097152&_.flags){var f=li(_);return!!f&&267===f.kind}}}return!1}function Sb(t,r,n){var i=e.skipOuterExpressions(t,7);return 79===i.kind||e.isAccessExpression(i)?!(32&i.flags&&(wn(t,n),1)):(wn(t,r),!1)}function Db(e){return Tb(e,2112)?Cb(e,3)||Tb(e,296)?lt:Je:He}function Tb(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(Tb(n[r],t))return!0;return!1}function Cb(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&Xp(e,He)||!!(2112&t)&&Xp(e,Je)||!!(402653316&t)&&Xp(e,We)||!!(528&t)&&Xp(e,Ye)||!!(16384&t)&&Xp(e,Ze)||!!(131072&t)&&Xp(e,et)||!!(65536&t)&&Xp(e,ze)||!!(32768&t)&&Xp(e,Be)||!!(4096&t)&&Xp(e,Qe)||!!(67108864&t)&&Xp(e,at))}function kb(t,r,n){return 1048576&t.flags?e.every(t.types,(e=>kb(e,r,n))):Cb(t,r,n)}function Ab(t){return!!(16&e.getObjectFlags(t))&&!!t.symbol&&Nb(t.symbol)}function Nb(e){return 0!=(128&e.flags)}function wb(t,r,n,i,a){void 0===a&&(a=!1);var o=t.properties,s=o[n];if(294===s.kind||295===s.kind){var c=s.name,l=id(c);if(Ss(l)){var u=Lc(r,As(l));u&&(Py(u,s,a),ey(s,!1,!0,r,u))}var d=io(s,Ad(r,l,32,c));return Pb(295===s.kind?s:s.initializer,d)}if(296===s.kind){if(!(n<o.length-1)){U<99&&ED(s,4);var p=[];if(i)for(var _=0,f=i;_<f.length;_++){var m=f[_];e.isSpreadAssignment(m)||p.push(m.name)}return d=to(r,p,r.symbol),CD(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Pb(s.expression,d)}wn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else wn(s,e.Diagnostics.Property_assignment_expected)}function Fb(t,r,n,i,a){var o=t.elements,s=o[n];if(226!==s.kind){if(224!==s.kind){var c=ip(n);if(G_(r)){var l=wd(r,c,32|(Eh(s)?16:0),ov(s,c))||Pe;return Pb(s,io(s,Eh(s)?jm(l,524288):l),a)}return Pb(s,i,a)}if(n<o.length-1)wn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var u=s.expression;if(220!==u.kind||63!==u.operatorToken.kind)return CD(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Pb(u,ig(r,uf)?cg(r,(e=>Ou(e,n))):Du(i),a);wn(u.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function Pb(t,r,n,i){var a;if(295===t.kind){var o=t;o.objectAssignmentInitializer&&(!W||32768&hf(ix(o.objectAssignmentInitializer))||(r=jm(r,524288)),((e,t,r,n,i)=>{var a=t.kind;if(63===a&&(204===e.kind||203===e.kind))return Pb(e,ix(r,n),n,108===r.kind);Mb(e,t,r,55===a||56===a||60===a?mE(e,n):ix(e,n),ix(r,n),void 0)})(o.name,o.equalsToken,o.objectAssignmentInitializer,n)),a=t.name}else a=t;return 220===a.kind&&63===a.operatorToken.kind&&(ee(a,n),a=a.left),204===a.kind?((e,t,r)=>{var n=e.properties;if(W&&0===n.length)return ly(t,e);for(var i=0;i<n.length;i++)wb(e,t,i,n,r);return t})(a,r,i):203===a.kind?((e,t,r)=>{var n=e.elements;U<2&&j.downlevelIteration&&ED(e,512);for(var i=yE(193,t,Be,e)||Pe,a=j.noUncheckedIndexedAccess?void 0:i,o=0;o<n.length;o++){var s=i;224===e.elements[o].kind&&(s=a=null!=a?a:yE(65,t,Be,e)||Pe),Fb(e,t,o,s,r)}return t})(a,r,n):((t,r,n)=>{var i=ix(t,n);return Sb(t,296===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,296===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&t_(r,i,t,t),e.isPrivateIdentifierPropertyAccessExpression(t)&&ED(t.parent,1048576),r})(a,r,n)}function Ib(t){switch((t=e.skipParentheses(t)).kind){case 79:case 10:case 13:case 209:case 222:case 14:case 8:case 9:case 110:case 95:case 104:case 152:case 212:case 225:case 213:case 203:case 204:case 215:case 229:case 278:case 277:return!0;case 221:return Ib(t.whenTrue)&&Ib(t.whenFalse);case 220:return!e.isAssignmentOperator(t.operatorToken.kind)&&Ib(t.left)&&Ib(t.right);case 218:case 219:switch(t.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 216:case 210:case 228:default:return!1}}function Ob(e,t){return 0!=(98304&t.flags)||Qp(e,t)}function Mb(t,n,i,a,o,s){var c,l,u=n.kind;switch(u){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(a===tt||o===tt)return tt;a=ly(a,t),o=ly(o,i);var d=void 0;if(528&a.flags&&528&o.flags&&void 0!==(d=(e=>{switch(e){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}})(n.kind)))return wn(s||n,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(n.kind),e.tokenToString(d)),He;var p,_=vb(t,a,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),f=vb(i,o,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(Cb(a,3)&&Cb(o,3)||!Tb(a,2112)&&!Tb(o,2112))p=He;else if(D(a,o)){switch(u){case 49:case 72:A();break;case 42:case 67:U<3&&wn(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}p=Je}else A(D),p=Pe;return _&&f&&C(p),p;case 39:case 64:if(a===tt||o===tt)return tt;Cb(a,402653316)||Cb(o,402653316)||(a=ly(a,t),o=ly(o,i));var m=void 0;if(Cb(a,296,!0)&&Cb(o,296,!0)?m=He:Cb(a,2112,!0)&&Cb(o,2112,!0)?m=Je:Cb(a,402653316,!0)||Cb(o,402653316,!0)?m=We:(Qa(a)||Qa(o))&&(m=Za(a)||Za(o)?Pe:Ne),m&&!T(u))return m;if(!m){var g=402655727;return A(((e,t)=>Cb(e,g)&&Cb(t,g))),Ne}return 64===u&&C(m),m;case 29:case 31:case 32:case 33:return T(u)&&(a=af(ly(a,t)),o=af(ly(o,i)),k(((e,t)=>Qp(e,t)||Qp(t,e)||Xp(e,lt)&&Xp(t,lt)))),Ye;case 34:case 35:case 36:case 37:return k(((e,t)=>Ob(e,t)||Ob(t,e))),Ye;case 102:return((t,r,n,i)=>n===tt||i===tt?tt:(!Qa(n)&&kb(n,131068)&&wn(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Qa(i)||VS(i)||qp(i,Nt)||wn(r,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ye))(t,i,a,o);case 101:return((t,r,n,i)=>{if(n===tt||i===tt)return tt;e.isPrivateIdentifier(t)?(U<99&&ED(t,2097152),!Jn(t).resolvedSymbol&&e.getContainingClass(t)&&Sy(t,i,vy(t,i.symbol,!0))):kb(n=ly(n,t),402665900)||Cb(n,407109632)||wn(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);var a=mc(i=ly(i,r));return(!kb(i,126091264)||a&&(Cb(i,3145728)&&!kb(a,126091264)||!Tb(a,126615552)))&&wn(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),Ye})(t,i,a,o);case 55:case 76:var h=4194304&Bm(a)?Hu([(l=W?a:af(o),cg(l,vf)),o]):a;return 76===u&&C(o),h;case 56:case 75:var y=8388608&Bm(a)?Hu([yf(a),o],2):a;return 75===u&&C(o),y;case 60:case 77:var v=262144&Bm(a)?Hu([Ef(a),o],2):a;return 77===u&&C(o),v;case 63:var b=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return((t,r)=>{if(2===t)for(var n=0,i=dc(r);n<i.length;n++){var a=i[n],o=jo(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=Yn(a.valueDeclaration,s,788968,void 0,s,!1);(null==c?void 0:c.declarations)&&c.declarations.some(e.isJSDocTypedefTag)&&(Vn(c,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),a),Vn(a,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),c))}}})(b,o),(r=>{var n;switch(r){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var a=Xi(t),o=e.getAssignedExpandoInitializer(i);return!!o&&e.isObjectLiteralExpression(o)&&!!(null===(n=null==a?void 0:a.exports)||void 0===n?void 0:n.size);default:return!1}})(b)?(524288&o.flags&&(2===b||6===b||__(o)||Lm(o)||1&e.getObjectFlags(o))||C(o),a):(C(o),Pf(o));case 27:if(!j.allowUnreachableCode&&Ib(t)&&(79!==(c=i).kind||"eval"!==c.escapedText)){var x=e.getSourceFileOfNode(t),E=x.text,S=e.skipTrivia(E,t.pos);x.parseDiagnostics.some((t=>t.code===e.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&e.textSpanContainsPosition(t,S)))||wn(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return o;default:return e.Debug.fail()}function D(e,t){return Cb(e,2112)&&Cb(t,2112)}function T(r){var n=Tb(a,12288)?t:Tb(o,12288)?i:void 0;return!n||(wn(n,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function C(n){if(r&&e.isAssignmentOperator(u)&&Sb(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(t)||"exports"!==e.unescapeLeadingUnderscores(t.escapedText))){var o=void 0;Z&&e.isPropertyAccessExpression(t)&&Tb(n,32768)&&D_(n,Ya(tx(t.expression),t.name.escapedText))&&(o=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target),t_(n,a,t,i,o)}}function k(e){return!e(a,o)&&(A(e),!0)}function A(t){var r,i=!1,c=s||n;if(t){var l=wx(a),u=wx(o);i=!(l===a&&u===o)&&!(!l||!u)&&t(l,u)}var d=a,p=o;!i&&t&&(d=(r=((e,t,r)=>{var n=e,i=t,a=af(e),o=af(t);return r(a,o)||(n=a,i=o),[n,i]})(a,o,t))[0],p=r[1]);var _=Ia(d,p),f=_[0],m=_[1];((t,r,i,a)=>{var o;switch(n.kind){case 36:case 34:o="false";break;case 37:case 35:o="true"}if(o)return In(t,r,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,i,a)})(c,i,f,m)||In(c,i,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(n.kind),f,m)}}function Rb(t){var r=t.parent;return e.isParenthesizedExpression(r)&&Rb(r)||e.isElementAccessExpression(r)&&r.argumentExpression===t}function Lb(t){for(var r=[t.head.text],n=[],i=0,a=t.templateSpans;i<a.length;i++){var o=a[i],s=ix(o.expression);Tb(s,12288)&&wn(o.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),r.push(o.literal.text),n.push(Xp(s,ut)?s:We)}return Hb(t)||Rb(t)||ng(mh(t)||Re,Bb)?ld(r,n):We}function Bb(e){return!!(134217856&e.flags||58982400&e.flags&&Tb(xc(e)||Re,402653316))}function jb(t,r,n,i){var a=(t=>285!==t.kind||e.isJsxSelfClosingElement(t.parent)?t:t.parent.parent)(t),o=a.contextualType,s=a.inferenceContext;try{a.contextualType=r,a.inferenceContext=n;var c=ix(t,1|i|(n?2:0));return Tb(c,2944)&&Wb(c,_h(r,t))?tp(c):c}finally{a.contextualType=o,a.inferenceContext=s}}function Ub(e,t){var r=Jn(e);if(!r.resolvedType){if(t&&0!==t)return ix(e,t);var n=Br,i=hr;Br=jr,hr=void 0,r.resolvedType=ix(e,t),hr=i,Br=n}return r.resolvedType}function Vb(t){return 210===(t=e.skipParentheses(t,!0)).kind||228===t.kind||e.isJSDocTypeAssertion(t)}function zb(t,r){var n=e.getEffectiveInitializer(t),i=rx(n)||(r?jb(n,r,void 0,0):Ub(n));return e.isParameter(t)&&201===t.name.kind&&uf(i)&&!i.target.hasRestElement&&zl(i)<t.name.elements.length?((t,r)=>{for(var n=r.elements,i=Vl(t).slice(),a=t.target.elementFlags.slice(),o=zl(t);o<n.length;o++){var s=n[o];(o<n.length-1||202!==s.kind||!s.dotDotDotToken)&&(i.push(!e.isOmittedExpression(s)&&Eh(s)?Do(s,!1,!1):Ne),a.push(2),e.isOmittedExpression(s)||Eh(s)||Vf(s,Ne))}return wu(i,a,t.target.readonly)})(i,t.name):i}function Kb(t,r){var n=2&e.getCombinedNodeFlags(t)||e.isDeclarationReadonly(t)?r:of(r);if(e.isInJSFile(t)){if(X_(n))return Vf(t,Ne),Ne;if(Y_(n))return Vf(t,jt),jt}return n}function Wb(t,r){if(r){if(3145728&r.flags){var n=r.types;return e.some(n,(e=>Wb(t,e)))}if(58982400&r.flags){var i=xc(r)||Re;return Tb(i,4)&&Tb(t,128)||Tb(i,8)&&Tb(t,256)||Tb(i,64)&&Tb(t,2048)||Tb(i,4096)&&Tb(t,8192)||Wb(t,i)}return!!(406847616&r.flags&&Tb(t,128)||256&r.flags&&Tb(t,256)||2048&r.flags&&Tb(t,2048)||512&r.flags&&Tb(t,512)||8192&r.flags&&Tb(t,8192))}return!1}function Hb(t){var r=t.parent;return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||e.isJSDocTypeAssertion(r)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(r))||(e.isParenthesizedExpression(r)||e.isArrayLiteralExpression(r)||e.isSpreadElement(r))&&Hb(r)||(e.isPropertyAssignment(r)||e.isShorthandPropertyAssignment(r)||e.isTemplateSpan(r))&&Hb(r.parent)}function Jb(e,t,r,n){var i=ix(e,t,n);return Hb(e)?tp(i):Vb(e)?i:cf(i,_h(2===arguments.length?mh(e):r,e))}function $b(e,t){return 161===e.name.kind&&kh(e.name),Jb(e.initializer,t)}function Gb(e,t){return UD(e),161===e.name.kind&&kh(e.name),qb(e,yb(e,t),t)}function qb(t,r,n){if(n&&10&n){var i=Xy(r,0,!0),a=Xy(r,1,!0),o=i||a;if(o&&o.typeParameters){var s=ph(t,2);if(s){var c=Xy(Ef(s),i?0:1,!1);if(c&&!c.typeParameters){if(8&n)return Xb(t,n),yt;var l=gh(t),u=l.signature&&_l(l.signature),d=u&&qy(u);if(d&&!d.typeParameters&&!e.every(l.inferences,Yb)){var p=((t,r)=>{for(var n,i,a=[],o=0,s=r;o<s.length;o++){var c=(_=s[o]).symbol.escapedName;if(Qb(t.inferredTypeParameters,c)||Qb(a,c)){var l=la(Rn(262144,Zb(e.concatenate(t.inferredTypeParameters,a),c)));l.target=_,n=e.append(n,_),i=e.append(i,l),a.push(l)}else a.push(_)}if(i)for(var u=hp(n,i),d=0,p=i;d<p.length;d++){var _;(_=p[d]).mapper=u}return a})(l,o.typeParameters),_=yl(o,p),f=e.map(l.inferences,(e=>qf(e.typeParameter)));if(Kf(_,c,((e,t)=>{_m(f,e,t,0,!0)})),e.some(f,Yb)&&(Wf(_,c,((e,t)=>{_m(f,e,t)})),!((e,t)=>{for(var r=0;r<e.length;r++)if(Yb(e[r])&&Yb(t[r]))return!0;return!1})(l.inferences,f)))return((e,t)=>{for(var r=0;r<e.length;r++)!Yb(e[r])&&Yb(t[r])&&(e[r]=t[r])})(l.inferences,f),l.inferredTypeParameters=e.concatenate(l.inferredTypeParameters,p),El(_)}return El(Yy(o,c,l))}}}}return r}function Xb(e,t){2&t&&(gh(e).flags|=4)}function Yb(e){return!(!e.candidates&&!e.contraCandidates)}function Qb(t,r){return e.some(t,(e=>e.symbol.escapedName===r))}function Zb(e,t){for(var r=t.length;r>1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!Qb(e,a))return a}}function ex(e){var t=Gy(e);if(t&&!t.typeParameters)return _l(t)}function tx(t){var r=rx(t);if(r)return r;if(67108864&t.flags&&hr){var n=hr[F(t)];if(n)return n}var i=zr,a=ix(t);return zr!==i&&((hr||(hr=[]))[F(t)]=a,e.setNodeFlags(t,67108864|t.flags)),a}function rx(t){var r=e.skipParentheses(t,!0);if(e.isJSDocTypeAssertion(r)){var n=e.getJSDocTypeAssertionType(r);if(!e.isConstTypeReference(n))return dp(n)}if(r=e.skipParentheses(t),!e.isCallExpression(r)||106===r.expression.kind||e.isRequireCall(r,!0)||Iv(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return dp(r.type);if(8===t.kind||10===t.kind||110===t.kind||95===t.kind)return ix(t)}else if(n=e.isCallChain(r)?(e=>{var t=ix(e.expression),r=Cf(t,e.expression),n=ex(t);return n&&Tf(n,e,r!==t)})(r):ex(ny(r.expression)))return n}function nx(e){var t=Jn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Ne;try{return t.contextFreeType=ix(e,4)}finally{e.contextualType=r}}function ix(t,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end});var o=c;c=t,v=0;var s=qb(t,((t,i,a)=>{var o=t.kind;if(n)switch(o){case 225:case 212:case 213:n.throwIfCancellationRequested()}switch(o){case 79:return((t,r)=>{var n=Em(t);if(n===Te)return Pe;if(n===se){if(xy(t))return wn(t,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Pe;var i=e.getContainingFunction(t);return U<2&&(213===i.kind?wn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(i,256)&&wn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Jn(i).flags|=8192,jo(n)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||jg(n,t);var a=ra(n),o=2097152&a.flags?Di(a):a;o.declarations&&134217728&Qh(o)&&fd(t,o)&&Mn(t,o.declarations,t.escapedText);var s=a.valueDeclaration;if(s&&32&a.flags)if(256===s.kind&&e.nodeIsDecorated(s))for(i=e.getContainingClass(t);void 0!==i;){if(i===s&&i.name!==t){Jn(s).flags|=16777216,Jn(t).flags|=33554432;break}i=e.getContainingClass(i)}else if(225===s.kind)for(i=e.getThisContainer(t,!1);303!==i.kind;){if(i.parent===s){(e.isPropertyDeclaration(i)&&e.isStatic(i)||e.isClassStaticBlockDeclaration(i))&&(Jn(s).flags|=16777216,Jn(t).flags|=33554432);break}i=e.getThisContainer(i,!1)}!((t,r)=>{if(!(U>=2||0==(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||291===r.valueDeclaration.parent.kind)){var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=((t,r)=>!!e.findAncestor(t,(t=>t===r?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t)))(t,n),a=Ug(n);if(a){if(i){var o=!0;if(e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,254))&&u.parent===n){var s=((t,r)=>e.findAncestor(t,(e=>e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement)))(t.parent,n);if(s){var c=Jn(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),s===n.initializer&&(o=!1)}}o&&(Jn(a).flags|=65536)}var u;e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,254))&&u.parent===n&&((t,r)=>{for(var n=t;211===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(218===n.parent.kind||219===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(n,(e=>e===r?"quit":e===r.statement))})(t,n)&&(Jn(r.valueDeclaration).flags|=4194304),Jn(r.valueDeclaration).flags|=524288}i&&(Jn(r.valueDeclaration).flags|=262144)}})(t,n);var c=jo(a),l=e.getAssignmentTargetKind(t);if(l){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return wn(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,wa(n)),Pe;if(xb(a))return 3&a.flags?wn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,wa(n)):wn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,wa(n)),Pe}var u=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!u)return c;s=li(n)}if(!s)return c;c=Lg(c,t,r);for(var d=163===e.getRootDeclaration(s).kind,p=Fg(s),_=Fg(t),f=_!==p,m=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&Hm(t.parent.parent),g=134217728&n.flags;_!==p&&(212===_.kind||213===_.kind||e.isObjectLiteralOrClassExpressionMethodOrAccessor(_))&&(Og(a)&&c!==Ut||d&&!Pg(a));)_=Fg(_);var h=d||u||f||m||g||e.isBindingElement(s)||c!==we&&c!==Ut&&(!W||0!=(16387&c.flags)||Sm(t)||274===t.parent.kind)||229===t.parent.kind||253===s.kind&&s.exclamationToken||8388608&s.flags,y=wg(t,c,h?d?((e,t)=>{if(Ja(t.symbol,2)){var r=W&&163===t.kind&&t.initializer&&32768&hf(e)&&!(32768&hf(ix(t.initializer)));return qa(),r?jm(e,524288):e}return Bo(t.symbol),e})(c,s):c:c===we||c===Ut?Be:xf(c),_);if(bg(t)||c!==we&&c!==Ut){if(!h&&!(32768&hf(c))&&32768&hf(y))return wn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,wa(n)),c}else if(y===we||y===Ut)return G&&(wn(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,wa(n),Pa(y)),wn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,wa(n),Pa(y))),sE(y);return l?af(y):y})(t,i);case 80:return(t=>{!(t=>{e.getContainingClass(t)?e.isExpressionNode(t)?!my(t)&&XD(t,e.Diagnostics.Cannot_find_name_0,e.idText(t)):XD(t,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression):XD(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies)})(t);var r=my(t);return r&&Py(r,void 0,!1),Ne})(t);case 108:return Hg(t);case 106:return Gg(t);case 104:return Ke;case 14:case 10:return ep(np(t.text));case 8:return ZD(t),ep(ip(+t.text));case 9:return(t=>{!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&U<7&&XD(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)})(t),ep(ap({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return qe;case 95:return $e;case 222:return Lb(t);case 13:return Lt;case 203:return Sh(t,i,a);case 204:return((t,r)=>{var n=e.isAssignmentTarget(t);!((t,r)=>{for(var n=new e.Map,i=0,a=t.properties;i<a.length;i++){var o=a[i];if(296!==o.kind){var s=o.name;if(161===s.kind&&ID(s),295===o.kind&&!r&&o.objectAssignmentInitializer)return XD(o.equalsToken,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);if(80===s.kind&&XD(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),o.modifiers)for(var c=0,l=o.modifiers;c<l.length;c++){var u=l[c];131===u.kind&&168===o.kind||XD(u,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(u))}var d=void 0;switch(o.kind){case 295:RD(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 294:MD(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&ZD(s),d=4;break;case 168:d=8;break;case 171:d=1;break;case 172:d=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}if(!r){var p=e.getPropertyNameForPropertyNameNode(s);if(void 0===p)continue;var _=n.get(p);if(_)if(12&d&&12&_)XD(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else{if(!(3&d&&3&_))return XD(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===_||d===_)return XD(s,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(p,d|_)}else n.set(p,d)}}else if(r){var f=e.skipParentheses(o.expression);if(e.isArrayLiteralExpression(f)||e.isObjectLiteralExpression(f))return XD(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}})(t,n);for(var i=W?e.createSymbolTable():void 0,a=e.createSymbolTable(),o=[],s=_t,c=ph(t),l=c&&c.pattern&&(200===c.pattern.kind||204===c.pattern.kind),u=Hb(t),d=u?8:0,p=e.isInJSFile(t)&&!e.isInJsonFile(t),_=e.getJSDocEnumTag(t),f=!c&&p&&!_,m=Q,g=!1,h=!1,y=!1,v=!1,b=0,x=t.properties;b<x.length;b++){var E=x[b];E.name&&e.isComputedPropertyName(E.name)&&kh(E.name)}for(var S=0,D=0,T=t.properties;D<T.length;D++){var C=T[D],k=Xi(C),A=C.name&&161===C.name.kind?kh(C.name):void 0;if(294===C.kind||295===C.kind||e.isObjectLiteralMethod(C)){var N=294===C.kind?$b(C,r):295===C.kind?Jb(!n&&C.objectAssignmentInitializer?C.objectAssignmentInitializer:C.name,r):Gb(C,r);if(p){var w=lo(C);w?(e_(N,w,C),N=w):_&&_.typeExpression&&e_(N,dp(_.typeExpression),C)}m|=917504&e.getObjectFlags(N);var F=A&&Ss(A)?A:void 0,P=F?Rn(4|k.flags,As(F),4096|d):Rn(4|k.flags,k.escapedName,d);if(F&&(P.nameType=F),n)(294===C.kind&&Eh(C.initializer)||295===C.kind&&C.objectAssignmentInitializer)&&(P.flags|=16777216);else if(l&&!(512&e.getObjectFlags(c))){var I=Lc(c,k.escapedName);I?P.flags|=16777216&I.flags:j.suppressExcessPropertyErrors||Hc(c,We)||wn(C.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,wa(k),Pa(c))}P.declarations=k.declarations,P.parent=k.parent,k.valueDeclaration&&(P.valueDeclaration=k.valueDeclaration),P.type=N,P.target=k,k=P,null==i||i.set(P.escapedName,P)}else{if(296===C.kind){if(U<2&&ED(C,2),o.length>0&&(s=Xd(s,L(),t.symbol,m,u),o=[],a=e.createSymbolTable(),h=!1,y=!1,v=!1),Fh(N=Pc(ix(C.expression)))){var O=qd(N,u);if(i&&Rh(O,i,C),S=o.length,Za(s))continue;s=Xd(s,O,t.symbol,m,u)}else wn(C,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Pe;continue}e.Debug.assert(171===C.kind||172===C.kind),bS(C)}!A||8576&A.flags?a.set(k.escapedName,k):Xp(A,st)&&(Xp(A,He)?y=!0:Xp(A,Qe)?v=!0:h=!0,n&&(g=!0)),o.push(k)}if(l&&296!==t.parent.kind)for(var M=0,R=fc(c);M<R.length;M++)P=R[M],a.get(P.escapedName)||Lc(s,P.escapedName)||(16777216&P.flags||wn(P.valueDeclaration||P.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(P.escapedName,P),o.push(P));return Za(s)?Pe:s!==_t?(o.length>0&&(s=Xd(s,L(),t.symbol,m,u),o=[],a=e.createSymbolTable(),h=!1,y=!1),cg(s,(e=>e===_t?L():e))):L();function L(){var r=[];h&&r.push(Nh(t,S,o,We)),y&&r.push(Nh(t,S,o,He)),v&&r.push(Nh(t,S,o,Qe));var i=fa(t.symbol,a,e.emptyArray,e.emptyArray,r);return i.objectFlags|=262272|m,f&&(i.objectFlags|=8192),g&&(i.objectFlags|=512),n&&(i.pattern=t),i}})(t,i);case 205:return dy(t,i);case 160:return py(t,i);case 206:return((e,t)=>32&e.flags?((e,t)=>{var r=ix(e.expression),n=Cf(r,e.expression);return Tf(By(e,ly(n,e.expression),t),e,n!==r)})(e,t):By(e,ny(e.expression),t))(t,i);case 207:if(100===t.expression.kind)return(t=>{if(wD(t.arguments)||(t=>{if(V===e.ModuleKind.ES2015)return XD(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext);if(t.typeArguments)return XD(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;if(V!==e.ModuleKind.ESNext&&(CD(r),r.length>1))return XD(r[1],e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext);if(0===r.length||r.length>2)return XD(t,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var n=e.find(r,e.isSpreadElement);n&&XD(n,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element)})(t),0===t.arguments.length)return lb(t,Ne);for(var r=t.arguments[0],n=Ub(r),i=t.arguments.length>1?Ub(t.arguments[1]):void 0,a=2;a<t.arguments.length;++a)Ub(t.arguments[a]);if((32768&n.flags||65536&n.flags||!Xp(n,We))&&wn(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Pa(n)),i){var o=_u(!0);o!==_t&&e_(i,bf(o,32768),t.arguments[1])}var s=Oi(t,r);if(s){var c=ji(s,r,!0,!1);if(c)return lb(t,Mv(jo(c),c,s,r)||Rv(jo(c),c,s,r))}return lb(t,Ne)})(t);case 208:return((t,r)=>{var n;ND(t,t.typeArguments)||wD(t.arguments);var i=kv(t,void 0,r);if(i===Tr)return rt;if(Fv(i,t),106===t.expression.kind)return Ze;if(208===t.kind){var a=i.declaration;if(a&&170!==a.kind&&174!==a.kind&&179!==a.kind&&!e.isJSDocConstructSignature(a)&&!Av(a))return G&&wn(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Ne}if(e.isInJSFile(t)&&Lv(t))return ll(t.arguments[0]);var o=_l(i);if(12288&o.flags&&Iv(t))return sp(e.walkUpParenthesizedExpressions(t.parent));if(207===t.kind&&!t.questionDotToken&&237===t.parent.kind&&16384&o.flags&&dl(i))if(e.isDottedName(t.expression)){if(!Sg(t)){var s=wn(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Eg(t.expression,s)}}else wn(t.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(t)){var c=wv(t,!1);if(null===(n=null==c?void 0:c.exports)||void 0===n?void 0:n.size){var l=fa(c,c.exports,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=8192,Zu([o,l])}}return o})(t,i);case 209:return(t=>{(t=>!!(t.questionDotToken||32&t.flags)&&XD(t.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain))(t)||ND(t,t.typeArguments),U<2&&ED(t,262144);var r=kv(t);return Fv(r,t),_l(r)})(t);case 211:return((t,r)=>{if(e.hasJSDocNodes(t)&&e.isJSDocTypeAssertion(t)){var n=e.getJSDocTypeAssertionType(t);return jv(n,n,t.expression,r)}return ix(t.expression,r)})(t,i);case 225:return(e=>(XE(e),bS(e),jo(Xi(e))))(t);case 212:case 213:return yb(t,i);case 215:return(e=>(ix(e.expression),gn))(t);case 210:case 228:return(t=>{if(210===t.kind){var r=e.getSourceFileOfNode(t);r&&e.fileExtensionIsOneOf(r.fileName,[".cts",".mts"])&&XD(t,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return jv(t,t.type,t.expression)})(t);case 229:return(e=>32&e.flags?(e=>{var t=ix(e.expression),r=Cf(t,e.expression);return Tf(Ef(r),e,r!==t)})(e):Ef(ix(e.expression)))(t);case 230:return(t=>((t=>{var r=t.name.escapedText;switch(t.keywordToken){case 103:if("target"!==r)return XD(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target");break;case 100:"meta"!==r&&XD(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"meta")}})(t),103===t.keywordToken?Vv(t):100===t.keywordToken?(t=>{V===e.ModuleKind.Node12||V===e.ModuleKind.NodeNext?e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.ESNext&&wn(t,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):V<e.ModuleKind.ES2020&&V!==e.ModuleKind.System&&wn(t,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext);var r=e.getSourceFileOfNode(t);return e.Debug.assert(!!(2097152&r.flags),"Containing file is missing import meta node flag."),"meta"===t.name.escapedText?pu():Pe})(t):e.Debug.assertNever(t.keywordToken)))(t);case 214:return(t=>{ix(t.expression);var r=e.skipParentheses(t.expression);if(!e.isAccessExpression(r))return wn(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Ye;e.isPropertyAccessExpression(r)&&e.isPrivateIdentifier(r.name)&&wn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var n=ra(Jn(r).resolvedSymbol);return n&&(xb(n)&&wn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),((t,r)=>{var n=jo(r);!W||131075&n.flags||(Z?16777216&r.flags:32768&hf(n))||wn(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)})(r,n)),Ye})(t);case 216:return(e=>(ix(e.expression),je))(t);case 217:return(t=>{if(r){var n=e.getContainingFunctionOrClassStaticBlock(t);if(n&&e.isClassStaticBlockDeclaration(n))wn(t,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&t.flags)){var i;if(e.isInTopLevelContext(t)){if(!$D(i=e.getSourceFileOfNode(t))){var a=void 0;if(!e.isEffectiveExternalModule(i,j)){a||(a=e.getSpanOfTokenAtPosition(i,t.pos));var o=e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);_n.add(o)}(V!==e.ModuleKind.ES2022&&V!==e.ModuleKind.ESNext&&V!==e.ModuleKind.System&&(V!==e.ModuleKind.NodeNext||e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.ESNext)||U<4)&&(a=e.getSpanOfTokenAtPosition(i,t.pos),o=e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher),_n.add(o))}}else if(!$D(i=e.getSourceFileOfNode(t))){if(a=e.getSpanOfTokenAtPosition(i,t.pos),o=e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n&&170!==n.kind&&0==(2&e.getFunctionFlags(n))){var s=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(o,s)}_n.add(o)}}eh(t)&&wn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=ix(t.expression),l=Tx(c,!0,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l!==c||Za(l)||3&c.flags||Fn(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),l})(t);case 218:return(t=>{var r=ix(t.operand);if(r===tt)return tt;switch(t.operand.kind){case 8:switch(t.operator){case 40:return ep(ip(-t.operand.text));case 39:return ep(ip(+t.operand.text))}break;case 9:if(40===t.operator)return ep(ap({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return ly(r,t.operand),Tb(r,12288)&&wn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(Tb(r,2112)&&wn(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),Pa(af(r))),He):Db(r);case 53:mE(t.operand);var n=12582912&Bm(r);return 4194304===n?$e:8388608===n?qe:Ye;case 45:case 46:return vb(t.operand,ly(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Sb(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Db(r)}return Pe})(t);case 219:return(t=>{var r=ix(t.operand);return r===tt?tt:(vb(t.operand,ly(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Sb(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Db(r))})(t);case 220:return ee(t,i);case 221:return((e,t)=>{var r=mE(e.condition);return _E(e.condition,r,e.whenTrue),Hu([ix(e.whenTrue,t),ix(e.whenFalse,t)],2)})(t,i);case 224:return((e,t)=>(U<2&&ED(e,j.downlevelIteration?1536:1024),yE(33,ix(e.expression,t),Be,e.expression)))(t,i);case 226:return je;case 223:return(t=>{r&&(8192&t.flags||GD(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),eh(t)&&wn(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var n=e.getContainingFunction(t);if(!n)return Ne;var i=e.getFunctionFlags(n);if(!(1&i))return Ne;var a=0!=(2&i);t.asteriskToken&&(a&&U<99&&ED(t,26624),!a&&U<2&&j.downlevelIteration&&ED(t,256));var o=fl(n),s=o&&VE(o,a),c=s&&s.yieldType||Ne,l=s&&s.nextType||Ne,u=a?Nx(l)||Ne:l,d=t.expression?ix(t.expression):je,p=pb(t,d,u,a);if(o&&p&&t_(p,c,t.expression||t,t.expression),t.asteriskToken)return bE(a?19:17,1,d,t.expression)||Ne;if(o)return UE(2,o,a)||Ne;var _=th(2,n);if(!_&&(_=Ne,r&&G&&!e.expressionResultIsUnused(t))){var f=mh(t);f&&!Qa(f)||wn(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return _})(t);case 231:return(e=>e.isSpread?Ad(e.type,He):e.type)(t);case 287:return((t,r)=>{if((t=>{t.expression&&e.isCommaSequence(t.expression)&&XD(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)})(t),t.expression){var n=ix(t.expression,r);return t.dotDotDotToken&&n!==Ne&&!W_(n)&&wn(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return Pe})(t,i);case 277:case 278:return((e,t)=>(bS(e),$h(e)||Ne))(t);case 281:return(t=>{qh(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(j)||!j.jsxFactory&&!r.pragmas.has("jsx")||j.jsxFragmentFactory||r.pragmas.has("jsxfrag")||wn(t,j.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Mh(t),$h(t)||Ne})(t);case 285:return((t,r)=>((t,r)=>{for(var n,i=t.attributes,a=W?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=ft,c=!1,l=!1,u=2048,d=zh(Uh(t)),p=0,_=i.properties;p<_.length;p++){var f=_[p],m=f.symbol;if(e.isJsxAttribute(f)){var g=Oh(f,r);u|=917504&e.getObjectFlags(g);var h=Rn(4|m.flags,m.escapedName);h.declarations=m.declarations,h.parent=m.parent,m.valueDeclaration&&(h.valueDeclaration=m.valueDeclaration),h.type=g,h.target=m,o.set(h.escapedName,h),null==a||a.set(h.escapedName,h),f.name.escapedText===d&&(l=!0)}else e.Debug.assert(286===f.kind),o.size>0&&(s=Xd(s,D(),i.symbol,u,!1),o=e.createSymbolTable()),Qa(g=Pc(Ub(f.expression,r)))&&(c=!0),Fh(g)?(s=Xd(s,g,i.symbol,u,!1),a&&Rh(g,a,f)):n=n?Zu([n,g]):g}c||o.size>0&&(s=Xd(s,D(),i.symbol,u,!1));var y=277===t.parent.kind?t.parent:void 0;if(y&&y.openingElement===t&&y.children.length>0){var v=Mh(y,r);if(!c&&d&&""!==d){l&&wn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var b=ph(t.attributes),x=b&&sh(b,d),E=Rn(4,d);E.type=1===v.length?v[0]:x&&ng(x,Q_)?wu(v):Du(Hu(v)),E.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(E.valueDeclaration,i),E.valueDeclaration.symbol=E;var S=e.createSymbolTable();S.set(d,E),s=Xd(s,fa(i.symbol,S,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,u,!1)}}return c?Ne:n&&s!==ft?Zu([n,s]):n||(s===ft?D():s);function D(){u|=Q;var t=fa(i.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=262272|u,t}})(t.parent,r))(t,i);case 279:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Pe})(t,i,a),i);return Ab(s)&&((t,r)=>{205===t.parent.kind&&t.parent.expression===t||206===t.parent.kind&&t.parent.expression===t||(79===t.kind||160===t.kind)&&FS(t)||180===t.parent.kind&&t.parent.exprName===t||274===t.parent.kind||wn(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),j.isolatedModules&&(e.Debug.assert(!!(128&r.symbol.flags)),8388608&r.symbol.valueDeclaration.flags&&wn(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))})(t,s),c=o,null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function ax(t){t.expression&&GD(t.expression,e.Diagnostics.Type_expected),yS(t.constraint),yS(t.default);var n=ps(Xi(t));xc(n),(e=>Tc(e)!==bt)(n)||wn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Pa(n));var i=gc(n),a=Cc(n);i&&a&&e_(a,Is(Rp(i,vp(n,a)),a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),r&&$E(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function ox(t){DD(t),cE(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(170===r.kind&&e.nodeIsPresent(r.body)||wn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),170===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&wn(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&wn(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&wn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),170!==r.kind&&174!==r.kind&&179!==r.kind||wn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),213===r.kind&&wn(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),171!==r.kind&&172!==r.kind||wn(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||Xp(Pc(jo(t.symbol)),Vt)||wn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function sx(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(79===s.kind&&s.escapedText===n)return wn(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((201===s.kind||200===s.kind)&&sx(s,r,n))return!0}}}function cx(t){175===t.kind?(t=>{DD(t)||(t=>{var r=t.parameters[0];if(1!==t.parameters.length)return XD(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(CD(t.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),r.dotDotDotToken)return XD(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(r))return XD(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return XD(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return XD(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return XD(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var n=dp(r.type);ng(n,(e=>!!(8576&e.flags)))||vd(n)?XD(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):ig(n,Al)?t.type||XD(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation):XD(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)})(t)})(t):178!==t.kind&&255!==t.kind&&179!==t.kind&&173!==t.kind&&170!==t.kind&&174!==t.kind||AD(t);var n=e.getFunctionFlags(t);if(4&n||(3==(3&n)&&U<99&&ED(t,6144),2==(3&n)&&U<4&&ED(t,64),0!=(3&n)&&U<2&&ED(t,128)),GE(e.getEffectiveTypeParameterDeclarations(t)),e.forEach(t.parameters,ox),t.type&&yS(t.type),r){!(t=>{U>=2||!e.hasRestParameter(t)||8388608&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,(t=>{t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===se.escapedName&&An("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))})(t);var i=e.getEffectiveReturnTypeNode(t);if(G&&!i)switch(t.kind){case 174:wn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 173:wn(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(i){var a=e.getFunctionFlags(t);if(1==(5&a)){var o=dp(i);if(o===Ze)wn(i,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=UE(0,o,0!=(2&a))||Ne;e_(db(s,UE(1,o,0!=(2&a))||s,UE(2,o,0!=(2&a))||Re,!!(2&a)),o,i)}}else 2==(3&a)&&((t,r)=>{var n=dp(r);if(U>=2){if(Za(n))return;var i=gu(!0);if(i!==ht&&!Vo(n,i))return void wn(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Pa(wx(n)||Ze))}else{if((t=>{Px(t&&e.getEntityNameFromTypeNode(t))})(r),Za(n))return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void wn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Pa(n));var o=Pi(a,111551,!0),s=o?jo(o):Pe;if(Za(s))return void(79===a.kind&&"Promise"===a.escapedText&&zo(n)===gu(!1)?wn(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):wn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=Xt||(Xt=du("PromiseConstructorLike",0,!0))||_t;if(c===_t)return void wn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!e_(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var l=a&&e.getFirstIdentifier(a),u=Gn(t.locals,l.escapedText,111551);if(u)return void wn(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}Tx(n,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)})(t,i)}175!==t.kind&&315!==t.kind&&Ux(t)}}function lx(t){for(var r=new e.Map,n=0,i=t.members;n<i.length;n++){var a=i[n];if(165===a.kind){var o=void 0,s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 79:o=e.idText(s);break;default:continue}r.get(o)?(wn(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),wn(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function ux(t){if(257===t.kind){var r=Xi(t);if(r.declarations&&r.declarations.length>0&&r.declarations[0]!==t)return}var n=Sl(Xi(t));if(null==n?void 0:n.declarations){for(var i=new e.Map,a=e=>{1===e.parameters.length&&e.parameters[0].type&&rg(dp(e.parameters[0].type),(t=>{var r=i.get(Bu(t));r?r.declarations.push(e):i.set(Bu(t),{type:t,declarations:[e]})}))},o=0,s=n.declarations;o<s.length;o++)a(s[o]);i.forEach((t=>{if(t.declarations.length>1)for(var r=0,n=t.declarations;r<n.length;r++)wn(n[r],e.Diagnostics.Duplicate_index_signature_for_type_0,Pa(t.type))}))}}function dx(t){DD(t)||(t=>{if(e.isComputedPropertyName(t.name)&&e.isBinaryExpression(t.name.expression)&&101===t.name.expression.operatorToken.kind)return XD(t.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(t.parent)){if(e.isStringLiteral(t.name)&&"constructor"===t.name.text)return XD(t.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(jD(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(U<2&&e.isPrivateIdentifier(t.name))return XD(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(257===t.parent.kind){if(jD(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return XD(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(t.parent)){if(jD(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return XD(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(8388608&t.flags&&zD(t),e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||8388608&t.flags||e.isStatic(t)||e.hasAbstractModifier(t))){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return XD(t.exclamationToken,r)}})(t)||ID(t.name),cE(t),px(t),e.isPrivateIdentifier(t.name)&&e.hasStaticModifier(t)&&t.initializer&&99===U&&!j.useDefineForClassFields&&wn(t.initializer,e.Diagnostics.Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag),e.hasSyntacticModifier(t,128)&&166===t.kind&&t.initializer&&wn(t,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(t.name))}function px(t){if(e.isPrivateIdentifier(t.name)&&U<99){for(var r=e.getEnclosingBlockScopeContainer(t);r;r=e.getEnclosingBlockScopeContainer(r))Jn(r).flags|=67108864;if(e.isClassExpression(t.parent)){var n=Ug(t.parent);n&&(Jn(t.name).flags|=524288,Jn(n).flags|=65536)}}}function _x(t){if(r){if(AD(t)||(t=>{if(!(8388608&t.flags)&&181!==t.parent.kind&&257!==t.parent.kind){if(U<1)return XD(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(U<2&&e.isPrivateIdentifier(t.name))return XD(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===t.body&&!e.hasSyntacticModifier(t,128))return qD(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(t.body){if(e.hasSyntacticModifier(t,128))return XD(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(181===t.parent.kind||257===t.parent.kind)return XD(t.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(t.typeParameters)return XD(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!(e=>BD(e)||e.parameters.length===(171===e.kind?0:1))(t))return XD(t.name,171===t.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(172===t.kind){if(t.type)return XD(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.Debug.checkDefined(e.getSetAccessorValueParameter(t),"Return value does not match parameter count assertion.");if(r.dotDotDotToken)return XD(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return XD(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return XD(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1})(t)||ID(t.name),Lx(t),cx(t),171===t.kind&&!(8388608&t.flags)&&e.nodeIsPresent(t.body)&&256&t.flags&&(512&t.flags||wn(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),161===t.name.kind&&kh(t.name),ks(t)){var n=Xi(t),i=e.getDeclarationOfKind(n,171),a=e.getDeclarationOfKind(n,172);if(i&&a&&!(1&aD(i))){Jn(i).flags|=1;var o=e.getEffectiveModifierFlags(i),s=e.getEffectiveModifierFlags(a);(128&o)!=(128&s)&&(wn(i.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),wn(a.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(16&o&&!(24&s)||8&o&&!(8&s))&&(wn(i.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),wn(a.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var c=Fo(i),l=Fo(a);c&&l&&e_(c,l,i,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var u=Po(Xi(t));171===t.kind&&hb(t,u)}yS(t.body),px(t)}function fx(t,r){return il(e.map(t.typeArguments,dp),r,nl(r),e.isInJSFile(t))}function mx(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=gc(r[o]);s&&(n||(i=hp(r,n=fx(t,r))),a=a&&e_(n[o],Rp(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function gx(t){var r=nu(t);if(!Za(r)){var n=Jn(t).resolvedSymbol;if(n)return 524288&n.flags&&Hn(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function hx(t){ND(t,t.typeArguments),177!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJSFile(t)||e.isInJSDoc(t)||qD(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(t.typeArguments,yS);var n=nu(t);if(!Za(n)){if(t.typeArguments&&r){var i=gx(t);i&&mx(t,i)}var a=Jn(t).resolvedSymbol;a&&(e.some(a.declarations,(e=>kS(e)&&!!(134217728&e.flags)))&&Mn(Pv(t),a.declarations,a.escapedName),32&n.flags&&8&a.flags&&wn(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Pa(n)))}}function yx(t,r){if(!(8388608&t.flags))return t;var n=t.objectType,i=t.indexType;if(Xp(i,sd(n,!1)))return 206===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&oc(n)&&wn(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Pa(n)),t;var a=kc(n);if(Hc(a,He)&&Cb(i,296))return t;if(bd(n)){var o=_d(i,r);if(o){var s=rg(a,(e=>Lc(e,o)));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return wn(r,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),Pe}}return wn(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Pa(i),Pa(n)),Pe}function vx(t){return(e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierClassElementDeclaration(t))&&!!(8388608&t.flags)}function bx(t,r){var n=e.getCombinedModifierFlags(t);return 257!==t.parent.kind&&256!==t.parent.kind&&225!==t.parent.kind&&8388608&t.flags&&(2&n||e.isModuleBlock(t.parent)&&e.isModuleDeclaration(t.parent.parent)&&e.isGlobalScopeAugmentation(t.parent.parent)||(n|=1),n|=2),n&r}function xx(t){if(r){var n,i,a,o=0,s=155,c=!1,l=!0,u=!1,d=t.declarations,p=0!=(16384&t.flags),_=!1,f=!1,m=!1,g=[];if(d)for(var h=0,y=d;h<y.length;h++){var v=y[h],b=8388608&v.flags,x=v.parent&&(257===v.parent.kind||181===v.parent.kind)||b;if(x&&(a=void 0),256!==v.kind&&225!==v.kind||b||(m=!0),255===v.kind||168===v.kind||167===v.kind||170===v.kind){g.push(v);var E=bx(v,155);o|=E,s&=E,c=c||e.hasQuestionToken(v),l=l&&e.hasQuestionToken(v);var S=e.nodeIsPresent(v.body);S&&n?p?f=!0:_=!0:(null==a?void 0:a.parent)===v.parent&&a.end!==v.pos&&R(a),S?n||(n=v):u=!0,a=v,x||(i=v)}}if(f&&e.forEach(g,(t=>{wn(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),_&&e.forEach(g,(t=>{wn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_function_implementation)})),m&&!p&&16&t.flags&&d){var D=e.filter(d,(e=>256===e.kind)).map((t=>e.createDiagnosticForNode(t,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)));e.forEach(d,(r=>{var n=256===r.kind?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:255===r.kind?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;n&&e.addRelatedInfo.apply(void 0,Il([wn(e.getNameOfDeclaration(r)||r,n,e.symbolName(t))],D,!1))}))}if(!i||i.body||e.hasSyntacticModifier(i,128)||i.questionToken||R(i),u&&(d&&(((t,r,n,i,a)=>{if(0!=(i^a)){var o=bx(M(t,r),155);e.forEach(t,(t=>{var r=bx(t,155)^o;1&r?wn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?wn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?wn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&wn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}})(d,n,0,o,s),((t,r,n,i)=>{if(n!==i){var a=e.hasQuestionToken(M(t,r));e.forEach(t,(t=>{e.hasQuestionToken(t)!==a&&wn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}})(d,n,c,l)),n))for(var T=cl(t),C=al(n),k=0,A=T;k<A.length;k++){var N=A[k];if(w=N,void 0,void 0,void 0,void 0,F=bl(C),P=bl(w),I=_l(F),(O=_l(P))!==Ze&&!y_(O,I,vn)&&!y_(I,O,vn)||0===d_(F,P,4,!1,void 0,void 0,$p,void 0)){e.addRelatedInfo(wn(N.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(n,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}var w,F,P,I,O;function M(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function R(t){if(!t.name||!e.nodeIsMissing(t.name)){var r=!1,n=e.forEachChild(t.parent,(e=>{if(r)return e;r=e===t}));if(n&&n.pos===t.end&&n.kind===t.kind){var i=n.name||n,a=n.name;if(t.name&&a&&(e.isPrivateIdentifier(t.name)&&e.isPrivateIdentifier(a)&&t.name.escapedText===a.escapedText||e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||e.isPropertyNameLiteral(t.name)&&e.isPropertyNameLiteral(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a)))return void(168!==t.kind&&167!==t.kind||e.isStatic(t)===e.isStatic(n)||wn(i,e.isStatic(t)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(n.body))return void wn(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;p?wn(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(t,128)?wn(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):wn(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function Ex(t){if(r){var n=t.localSymbol;if((n||(n=Xi(t)).exportSymbol)&&e.getDeclarationOfKind(n,t.kind)===t){for(var i=0,a=0,o=0,s=0,c=n.declarations;s<c.length;s++){var l=h(m=c[s]),u=bx(m,513);1&u?512&u?o|=l:i|=l:a|=l}var d=i&a,p=o&(i|a);if(d||p)for(var _=0,f=n.declarations;_<f.length;_++){l=h(m=f[_]);var m,g=e.getNameOfDeclaration(m);l&p?wn(g,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(g)):l&d&&wn(g,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(g))}}}function h(t){var r=t;switch(r.kind){case 257:case 258:case 343:case 336:case 337:return 2;case 260:return e.isAmbientModule(r)||0!==e.getModuleInstanceState(r)?5:4;case 256:case 259:case 297:return 3;case 303:return 7;case 270:case 220:var n=r,i=e.isExportAssignment(n)?n.expression:n.right;if(!e.isEntityNameExpression(i))return 1;r=i;case 264:case 267:case 266:var a=0,o=Di(Xi(r));return e.forEach(o.declarations,(e=>{a|=h(e)})),a;case 253:case 202:case 255:case 269:case 79:return 1;default:return e.Debug.failBadSyntaxKind(r)}}}function Sx(e,t,r,n){var i=Dx(e,t);return i&&Nx(i,t,r,n)}function Dx(t,r){if(!Qa(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(Vo(t,gu(!1)))return n.promisedTypeOfPromise=Vl(t)[0];if(!kb(t,262140)){var i=Ya(t,"then");if(!Qa(i)){var a=i?jc(i,0):e.emptyArray;if(0!==a.length){var o=jm(Hu(e.map(a,rb)),2097152);if(!Qa(o)){var s=jc(o,0);if(0!==s.length)return n.promisedTypeOfPromise=Hu(e.map(s,rb),2);r&&wn(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&wn(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}}function Tx(e,t,r,n,i){return(t?Nx(e,r,n,i):wx(e,r,n,i))||Pe}function Cx(e){if(kb(e,262140))return!1;var t=Ya(e,"then");return!!t&&jc(jm(t,2097152),0).length>0}function kx(e){var t;if(16777216&e.flags){var r=xu(!1);return!!r&&e.aliasSymbol===r&&1===(null===(t=e.aliasTypeArguments)||void 0===t?void 0:t.length)}return!1}function Ax(e){return 1048576&e.flags?cg(e,Ax):kx(e)?e.aliasTypeArguments[0]:e}function Nx(t,r,n,i){var a=wx(t,r,n,i);return a&&(t=>{if(Qa(t))return t;if(kx(t))return t;if(bd(t)){var r=xc(t);if(!r||3&r.flags||__(r)||Cx(r)){var n=xu(!0);if(n)return Wl(n,[Ax(t)])}}return e.Debug.assert(void 0===Dx(t),"type provided should not be a non-generic 'promise'-like."),t})(a)}function wx(t,r,n,i){if(Qa(t))return t;if(kx(t))return t;var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(1048576&t.flags){var o=r?e=>wx(e,r,n,i):wx;return a.awaitedTypeOfType=cg(t,o)}var s=Dx(t);if(s){if(t.id===s.id||pn.lastIndexOf(s.id)>=0)return void(r&&wn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));pn.push(t.id);var c=wx(s,r,n,i);if(pn.pop(),!c)return;return a.awaitedTypeOfType=c}if(!Cx(t))return a.awaitedTypeOfType=t;r&&(e.Debug.assertIsDefined(n),wn(r,n,i))}function Fx(t){var r=kv(t);Fv(r,t);var n=_l(r);if(!(1&n.flags)){var i,a,o=Sv(t);switch(t.parent.kind){case 256:i=Hu([jo(Xi(t.parent)),Ze]);break;case 163:i=Ze,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 166:i=Ze,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 168:case 171:case 172:i=Hu([Su(MS(t.parent)),Ze]);break;default:return e.Debug.fail()}e_(n,i,t,o,(()=>a))}}function Px(t){if(t){var r=e.getFirstIdentifier(t),n=2097152|(79===t.kind?788968:1920),i=Yn(r,r.escapedText,n,void 0,void 0,!0);i&&2097152&i.flags&&na(i)&&!QS(Di(i))&&!ki(i)&&Ni(i)}}function Ix(t){var r=Ox(t);r&&e.isEntityName(r)&&Px(r)}function Ox(e){if(e)switch(e.kind){case 187:case 186:return Mx(e.types);case 188:return Mx([e.trueType,e.falseType]);case 190:case 196:return Ox(e.type);case 177:return e.typeName}}function Mx(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];190===a.kind||196===a.kind;)a=a.type;if(143!==a.kind&&(W||(195!==a.kind||104!==a.literal.kind)&&152!==a.kind)){var o=Ox(a);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r}function Rx(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function Lx(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){j.experimentalDecorators||wn(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var r=t.decorators[0];if(ED(r,8),163===t.kind&&ED(r,32),j.emitDecoratorMetadata)switch(ED(r,16),t.kind){case 256:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++)Ix(Rx(a[i]));break;case 171:case 172:var o=171===t.kind?172:171,s=e.getDeclarationOfKind(Xi(t),o);Ix(wo(t)||s&&wo(s));break;case 168:for(var c=0,l=t.parameters;c<l.length;c++)Ix(Rx(l[c]));Ix(e.getEffectiveReturnTypeNode(t));break;case 166:Ix(e.getEffectiveTypeAnnotationNode(t));break;case 163:Ix(Rx(t));for(var u=0,d=t.parent.parameters;u<d.length;u++)Ix(Rx(d[u]))}e.forEach(t.decorators,Fx)}}function Bx(e){switch(e.kind){case 79:return e;case 205:return e.name;default:return}}function jx(t){var n;Lx(t),cx(t);var i=e.getFunctionFlags(t);if(t.name&&161===t.name.kind&&kh(t.name),ks(t)){var a=Xi(t),o=t.localSymbol||a,s=null===(n=o.declarations)||void 0===n?void 0:n.find((e=>e.kind===t.kind&&!(131072&e.flags)));t===s&&xx(o),a.parent&&xx(a)}var c=167===t.kind?void 0:t.body;if(yS(c),hb(t,fl(t)),r&&!e.getEffectiveReturnTypeNode(t)&&(e.nodeIsMissing(c)&&!vx(t)&&Vf(t,Ne),1&i&&e.nodeIsPresent(c)&&_l(al(t))),e.isInJSFile(t)){var l=e.getJSDocTypeTag(t);l&&l.typeExpression&&!vh(dp(l.typeExpression),t)&&wn(l.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function Ux(t){if(r){var n=e.getSourceFileOfNode(t),i=Lr.get(n.path);i||(i=[],Lr.set(n.path,i)),i.push(t)}}function Vx(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 256:case 225:Wx(a,r),Jx(a,r);break;case 303:case 260:case 234:case 262:case 241:case 242:case 243:Yx(a,r);break;case 170:case 212:case 255:case 213:case 168:case 171:case 172:a.body&&Yx(a,r),Jx(a,r);break;case 167:case 173:case 174:case 178:case 179:case 258:case 257:Jx(a,r);break;case 189:Hx(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function zx(t,r,n){var i=e.getNameOfDeclaration(t)||t,a=kS(t)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;n(t,0,e.createDiagnosticForNode(i,a,r))}function Kx(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function Wx(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 168:case 166:case 171:case 172:if(172===a.kind&&32768&a.symbol.flags)break;var o=Xi(a);o.isReferenced||!(e.hasEffectiveModifier(a,8)||e.isNamedDeclaration(a)&&e.isPrivateIdentifier(a.name))||8388608&a.flags||r(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,wa(o)));break;case 170:for(var s=0,c=a.parameters;s<c.length;s++){var l=c[s];!l.symbol.isReferenced&&e.hasSyntacticModifier(l,8)&&r(l,0,e.createDiagnosticForNode(l.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(l.symbol)))}break;case 175:case 233:case 169:break;default:e.Debug.fail("Unexpected class member")}}}function Hx(t,r){var n=t.typeParameter;$x(n)&&r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}function Jx(t,r){var n=Xi(t).declarations;if(n&&e.last(n)===t)for(var i=e.getEffectiveTypeParameterDeclarations(t),a=new e.Set,o=0,s=i;o<s.length;o++){var c=s[o];if($x(c)){var l=e.idText(c.name),u=c.parent;if(189!==u.kind&&u.typeParameters.every($x)){if(e.tryAddToSet(a,u)){var d=e.getSourceFileOfNode(u),p=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(d,u.typeParameters),_=1===u.typeParameters.length,f=_?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,m=_?l:void 0;r(c,1,e.createFileDiagnostic(d,p.pos,p.end-p.pos,f,m))}}else r(c,1,e.createDiagnosticForNode(c,e.Diagnostics._0_is_declared_but_its_value_is_never_read,l))}}}function $x(e){return!(262144&qi(e.symbol).isReferenced||Kx(e.name))}function Gx(e,t,r,n){var i=String(n(t)),a=e.get(i);a?a[1].push(r):e.set(i,[t,[r]])}function qx(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function Xx(t){return e.isBindingElement(t)?e.isObjectBindingPattern(t.parent)?!(!t.propertyName||!Kx(t.name)):Kx(t.name):e.isAmbientModule(t)||(e.isVariableDeclaration(t)&&e.isForInOrOfStatement(t.parent.parent)||Zx(t))&&Kx(t.name)}function Yx(t,r){var n=new e.Map,i=new e.Map,a=new e.Map;t.locals.forEach((t=>{var o;if(!(262144&t.flags?!(3&t.flags)||3&t.isReferenced:t.isReferenced||t.exportSymbol)&&t.declarations)for(var s=0,c=t.declarations;s<c.length;s++){var l=c[s];if(!Xx(l))if(Zx(l))Gx(n,266===(o=l).kind?o:267===o.kind?o.parent:o.parent.parent,l,F);else if(e.isBindingElement(l)&&e.isObjectBindingPattern(l.parent))l!==e.last(l.parent.elements)&&e.last(l.parent.elements).dotDotDotToken||Gx(i,l.parent,l,F);else if(e.isVariableDeclaration(l))Gx(a,l.parent,l,F);else{var u=t.valueDeclaration&&qx(t.valueDeclaration),d=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);u&&d?e.isParameterPropertyDeclaration(u,u.parent)||e.parameterIsThisKeyword(u)||Kx(d)||(e.isBindingElement(l)&&e.isArrayBindingPattern(l.parent)?Gx(i,l.parent,l,F):r(u,1,e.createDiagnosticForNode(d,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t)))):zx(l,e.symbolName(t),r)}}})),n.forEach((t=>{var n=t[0],i=t[1],a=n.parent;if((n.name?1:0)+(n.namedBindings?267===n.namedBindings.kind?1:n.namedBindings.elements.length:0)===i.length)r(a,0,1===i.length?e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(i).name)):e.createDiagnosticForNode(a,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var o=0,s=i;o<s.length;o++){var c=s[o];zx(c,e.idText(c.name),r)}})),i.forEach((t=>{var n=t[0],i=t[1],o=qx(n.parent)?1:0;if(n.elements.length===i.length)1===i.length&&253===n.parent.kind&&254===n.parent.parent.kind?Gx(a,n.parent.parent,n.parent,F):r(n,o,1===i.length?e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Qx(e.first(i).name)):e.createDiagnosticForNode(n,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,c=i;s<c.length;s++){var l=c[s];r(l,o,e.createDiagnosticForNode(l,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Qx(l.name)))}})),a.forEach((t=>{var n=t[0],i=t[1];if(n.declarations.length===i.length)r(n,0,1===i.length?e.createDiagnosticForNode(e.first(i).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Qx(e.first(i).name)):e.createDiagnosticForNode(236===n.parent.kind?n.parent:n,e.Diagnostics.All_variables_are_unused));else for(var a=0,o=i;a<o.length;a++){var s=o[a];r(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Qx(s.name)))}}))}function Qx(t){switch(t.kind){case 79:return e.idText(t);case 201:case 200:return Qx(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function Zx(e){return 266===e.kind||269===e.kind||267===e.kind}function eE(t){if(234===t.kind&&QD(t),e.isFunctionOrModuleBlock(t)){var r=Vr;e.forEach(t.statements,yS),Vr=r}else e.forEach(t.statements,yS);t.locals&&Ux(t)}function tE(t,r,n){if((null==r?void 0:r.escapedText)!==n)return!1;if(166===t.kind||165===t.kind||168===t.kind||167===t.kind||171===t.kind||172===t.kind||294===t.kind)return!1;if(8388608&t.flags)return!1;if((e.isImportClause(t)||e.isImportEqualsDeclaration(t)||e.isImportSpecifier(t))&&e.isTypeOnlyImportOrExportDeclaration(t))return!1;var i=e.getRootDeclaration(t);return!e.isParameter(i)||!e.nodeIsMissing(i.parent.body)}function rE(t){e.findAncestor(t,(r=>!!(4&aD(r))&&(79!==t.kind?wn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):wn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)))}function nE(t){e.findAncestor(t,(r=>!!(8&aD(r))&&(79!==t.kind?wn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):wn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)))}function iE(t){67108864&aD(e.getEnclosingBlockScopeContainer(t))&&(e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name)&&"string"==typeof t.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),An("noEmit",t,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,t.name.escapedText))}function aE(t){var r=!1;if(e.isClassExpression(t)){for(var n=0,i=t.members;n<i.length;n++)if(134217728&aD(i[n])){r=!0;break}}else if(e.isFunctionExpression(t))134217728&aD(t)&&(r=!0);else{var a=e.getEnclosingBlockScopeContainer(t);a&&134217728&aD(a)&&(r=!0)}r&&(e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name),"The target of a Reflect collision check should be an identifier"),An("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(t.name),"Reflect"))}function oE(t,r){r&&(((t,r)=>{if((!(V>=e.ModuleKind.ES2015)||V>=e.ModuleKind.Node12&&e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&r&&(tE(t,r,"require")||tE(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Xa(t);303===n.kind&&e.isExternalOrCommonJsModule(n)&&An("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}})(t,r),((t,r)=>{if(r&&!(U>=4)&&tE(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Xa(t);303===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&An("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}})(t,r),((e,t)=>{U<=8&&(tE(e,t,"WeakMap")||tE(e,t,"WeakSet"))&&un.push(e)})(t,r),((e,t)=>{t&&U>=2&&U<=8&&tE(e,t,"Reflect")&&dn.push(e)})(t,r),e.isClassLike(t)?($E(r,e.Diagnostics.Class_name_cannot_be_0),8388608&t.flags||(t=>{U>=1&&"Object"===t.escapedText&&(V<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&wn(t,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[V])})(r)):e.isEnumDeclaration(t)&&$E(r,e.Diagnostics.Enum_name_cannot_be_0))}function sE(e){return e===we?Ne:e===Ut?jt:e}function cE(t){var r;if(Lx(t),e.isBindingElement(t)||yS(t.type),t.name){if(161===t.name.kind&&(kh(t.name),t.initializer&&Ub(t.initializer)),e.isBindingElement(t)){e.isObjectBindingPattern(t.parent)&&t.dotDotDotToken&&U<5&&ED(t,4),t.propertyName&&161===t.propertyName.kind&&kh(t.propertyName);var n=t.parent.parent,i=eo(n),a=t.propertyName||t.name;if(i&&!e.isBindingPattern(a)){var o=id(a);if(Ss(o)){var s=Lc(i,As(o));s&&(Py(s,void 0,!1),ey(t,!!n.initializer&&106===n.initializer.kind,!1,i,s))}}}if(e.isBindingPattern(t.name)&&(201===t.name.kind&&U<2&&j.downlevelIteration&&ED(t,512),e.forEach(t.name.elements,yS)),t.initializer&&e.isParameterDeclaration(t)&&e.nodeIsMissing(e.getContainingFunction(t).body))wn(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){var c=t.initializer&&242!==t.parent.parent.kind,l=0===t.name.elements.length;if(c||l){var u=Co(t);if(c){var d=Ub(t.initializer);W&&l?uy(d,t):t_(d,Co(t),t,t.initializer)}l&&(e.isArrayBindingPattern(t.name)?yE(65,u,Be,t):W&&uy(u,t))}}else{var p=Xi(t);if(2097152&p.flags&&e.isRequireVariableDeclaration(t))lS(t);else{var _=sE(jo(p));if(t===p.valueDeclaration){var f=e.getEffectiveInitializer(t);f&&(e.isInJSFile(t)&&e.isObjectLiteralExpression(f)&&(0===f.properties.length||e.isPrototypeAccess(t.name))&&(null===(r=p.exports)||void 0===r?void 0:r.size)||242===t.parent.parent.kind||t_(Ub(f),_,t,f,void 0)),p.declarations&&p.declarations.length>1&&e.some(p.declarations,(r=>r!==t&&e.isVariableLike(r)&&!uE(r,t)))&&wn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var m=sE(Co(t));Za(_)||Za(m)||Hp(_,m)||67108864&p.flags||lE(p.valueDeclaration,_,t,m),t.initializer&&t_(Ub(t.initializer),m,t,t.initializer,void 0),p.valueDeclaration&&!uE(t,p.valueDeclaration)&&wn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}166!==t.kind&&165!==t.kind&&(Ex(t),253!==t.kind&&202!==t.kind||(t=>{if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(253!==t.kind||t.initializer)){var r=Xi(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=Yn(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&Qh(n)){var i=e.getAncestor(n.valueDeclaration,254),a=236===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(234===a.kind&&e.isFunctionLike(a.parent)||261===a.kind||260===a.kind||303===a.kind)){var o=wa(n);wn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}})(t),oE(t,t.name))}}}}function lE(t,r,n,i){var a=e.getNameOfDeclaration(n),o=166===n.kind||165===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=wn(a,o,s,Pa(r),Pa(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function uE(t,r){return 163===t.kind&&253===r.kind||253===t.kind&&163===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function dE(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end}),(t=>{if(242!==t.parent.parent.kind&&243!==t.parent.parent.kind)if(8388608&t.flags)zD(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return XD(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return XD(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(236!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return XD(t.exclamationToken,r)}!(V<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)||V===e.ModuleKind.System||8388608&t.parent.parent.flags||!e.hasSyntacticModifier(t.parent.parent,1)||KD(t.name),(e.isLet(t)||e.isVarConst(t))&&WD(t.name)})(t),cE(t),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function pE(t){DD(t)||HD(t.declarationList)||(t=>{if(!JD(t.parent)){if(e.isLet(t.declarationList))return XD(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isVarConst(t.declarationList)&&XD(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}})(t),e.forEach(t.declarationList.declarations,yS)}function _E(t,r,n){if(W&&!hf(r)){var i=e.isBinaryExpression(t)?t.right:t;if(!e.isPropertyAccessExpression(i)||!Vb(i.expression)){var a=e.isIdentifier(i)?i:e.isPropertyAccessExpression(i)?i.name:e.isBinaryExpression(i)&&e.isIdentifier(i.right)?i.right:void 0,o=jc(r,0),s=!!Sx(r);if(0!==o.length||s){var c=a&&OS(a);(c||s)&&(c&&e.isBinaryExpression(t.parent)&&((t,r)=>{for(;e.isBinaryExpression(t)&&55===t.operatorToken.kind;){if(e.forEachChild(t.right,(function t(n){if(e.isIdentifier(n)){var i=OS(n);if(i&&i===r)return!0}return e.forEachChild(n,t)})))return!0;t=t.parent}return!1})(t.parent,c)||c&&n&&((t,r,n,i)=>!!e.forEachChild(r,(function r(a){if(e.isIdentifier(a)){var o=OS(a);if(o&&o===i){if(e.isIdentifier(t))return!0;for(var s=n.parent,c=a.parent;s&&c;){if(e.isIdentifier(s)&&e.isIdentifier(c)||108===s.kind&&108===c.kind)return OS(s)===OS(c);if(e.isPropertyAccessExpression(s)&&e.isPropertyAccessExpression(c)){if(OS(s.name)!==OS(c.name))return!1;c=c.expression,s=s.expression}else{if(!e.isCallExpression(s)||!e.isCallExpression(c))return!1;c=c.expression,s=s.expression}}}}return e.forEachChild(a,r)})))(t,n,a,c)||(s?In(i,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,Oa(r)):wn(i,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead)))}}}}function fE(t,r){return 16384&t.flags&&wn(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),t}function mE(e,t){return fE(ix(e,t),e)}function gE(e){var t=e.initializer;t.declarations.length>=1&&dE(t.declarations[0])}function hE(e){return yE(e.awaitModifier?15:13,ny(e.expression),Be,e.expression)}function yE(e,t,r,n){return Qa(t)?t:vE(e,t,r,n,!0)||Ne}function vE(t,r,n,i,a){var o=0!=(2&t);if(r!==et){var s=U>=2,c=!s&&j.downlevelIteration,l=j.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var u=TE(r,t,s?i:void 0);if(a&&u){var d=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;d&&e_(n,u.nextType,i,d)}if(u||s)return l?Km(u&&u.yieldType):u&&u.yieldType}var p=r,_=!1,f=!1;if(4&t){if(1048576&p.flags){var m=r.types,g=e.filter(m,(e=>!(402653316&e.flags)));g!==m&&(p=Hu(g,2))}else 402653316&p.flags&&(p=et);if((f=p!==r)&&(U<1&&i&&(wn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),131072&p.flags))return l?Km(We):We}if(!G_(p)){if(i&&!_){var h=((n,i)=>{var a;return i?n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:bE(t,0,r,void 0)?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:(e=>{switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1})(null===(a=r.symbol)||void 0===a?void 0:a.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]})(!!(4&t)&&!f,c),y=h[0];In(i,h[1]&&!!Sx(p),y,Pa(p))}return f?l?Km(We):We:void 0}var v=Jc(p,He);return f&&v?402653316&v.flags&&!j.noUncheckedIndexedAccess?We:Hu(l?[v,We,Be]:[v,We],2):128&t?Km(v):v}PE(i,r,o)}function bE(e,t,r,n){if(!Qa(r)){var i=TE(r,e,n);return i&&i[R(t)]}}function xE(e,t,r){if(void 0===e&&(e=et),void 0===t&&(t=et),void 0===r&&(r=Re),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=Pl([e,t,r]),i=Ar.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},Ar.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function EE(t){for(var r,n,i,a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s&&s!==Nr){if(s===wr)return wr;r=e.append(r,s.yieldType),n=e.append(n,s.returnType),i=e.append(i,s.nextType)}}return r||n||i?xE(r&&Hu(r),n&&Hu(n),i&&Zu(i)):Nr}function SE(e,t){return e[t]}function DE(e,t,r){return e[t]=r}function TE(t,r,n){if(Qa(t))return wr;if(!(1048576&t.flags)){var i=kE(t,r,n);return i===Nr?void(n&&PE(n,t,!!(2&r))):i}var a,o=2&r?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=SE(t,o);if(s)return s===Nr?void 0:s;for(var c=0,l=t.types;c<l.length;c++){var u=kE(l[c],r,n);if(u===Nr)return n&&PE(n,t,!!(2&r)),void DE(t,o,Nr);a=e.append(a,u)}var d=a?EE(a):Nr;return DE(t,o,d),d===Nr?void 0:d}function CE(e,t){if(e===Nr)return Nr;if(e===wr)return wr;var r=e.yieldType,n=e.returnType,i=e.nextType;return t&&xu(!0),xE(Nx(r,t)||Ne,Nx(n,t)||Ne,i)}function kE(e,t,r){if(Qa(e))return wr;var n;if(2&t&&(n=AE(e,Ir)||wE(e,Ir)))return 8&t?CE(n,r):n;if(1&t&&(n=AE(e,Or)||wE(e,Or))){if(!(2&t))return n;if(n!==Nr)return DE(e,"iterationTypesOfAsyncIterable",CE(n,r))}return 2&t&&(n=FE(e,Ir,r))!==Nr?n:1&t&&(n=FE(e,Or,r))!==Nr?2&t?DE(e,"iterationTypesOfAsyncIterable",n?CE(n,r):Nr):n:Nr}function AE(e,t){return SE(e,t.iterableCacheKey)}function NE(e,t){var r=AE(e,t)||FE(e,t,void 0);return r===Nr?Pr:r}function wE(e,t){var r;if(Vo(e,r=t.getGlobalIterableType(!1))||Vo(e,r=t.getGlobalIterableIteratorType(!1))){var n=Vl(e)[0],i=NE(r,t),a=i.returnType,o=i.nextType;return DE(e,t.iterableCacheKey,xE(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(a,void 0)||a,o))}if(Vo(e,t.getGlobalGeneratorType(!1))){var s=Vl(e);return n=s[0],a=s[1],o=s[2],DE(e,t.iterableCacheKey,xE(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(a,void 0)||a,o))}}function FE(t,r,n){var i,a,o,s,c=Lc(t,(a=r.iteratorSymbolName,(s=(o=fu(!1))&&Ya(jo(o),e.escapeLeadingUnderscores(a)))&&Ss(s)?As(s):"__@".concat(a))),l=!c||16777216&c.flags?void 0:jo(c);if(Qa(l))return DE(t,r.iterableCacheKey,wr);var u=l?jc(l,0):void 0;if(!e.some(u))return DE(t,r.iterableCacheKey,Nr);var d=null!==(i=IE(Zu(e.map(u,_l)),r,n))&&void 0!==i?i:Nr;return DE(t,r.iterableCacheKey,d)}function PE(t,r,n){var i=n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;In(t,!!Sx(r),i,Pa(r))}function IE(e,t,r){if(Qa(e))return wr;var n=OE(e,t)||((e,t)=>{var r=t.getGlobalIterableIteratorType(!1);if(Vo(e,r)){var n=Vl(e)[0],i=OE(r,t)||jE(r,t,void 0),a=i===Nr?Pr:i,o=a.returnType,s=a.nextType;return DE(e,t.iteratorCacheKey,xE(n,o,s))}if(Vo(e,t.getGlobalIteratorType(!1))||Vo(e,t.getGlobalGeneratorType(!1))){var c=Vl(e);return n=c[0],o=c[1],s=c[2],DE(e,t.iteratorCacheKey,xE(n,o,s))}})(e,t)||jE(e,t,r);return n===Nr?void 0:n}function OE(e,t){return SE(e,t.iteratorCacheKey)}function ME(e,t){var r=Ya(e,"done")||$e;return Xp(0===t?$e:qe,r)}function RE(e){return ME(e,0)}function LE(e){return ME(e,1)}function BE(t,r,n,i){var a,o,s,c,l=Lc(t,n);if(l||"next"===n){var u=!l||"next"===n&&16777216&l.flags?void 0:"next"===n?jo(l):jm(jo(l),2097152);if(Qa(u))return"next"===n?wr:Fr;var d,p,_,f,m,g=u?jc(u,0):e.emptyArray;if(0===g.length)return i&&wn(i,"next"===n?r.mustHaveANextMethodDiagnostic:r.mustBeAMethodDiagnostic,n),"next"===n?wr:void 0;if((null==u?void 0:u.symbol)&&1===g.length){var h=r.getGlobalGeneratorType(!1),y=r.getGlobalIteratorType(!1),v=(null===(o=null===(a=h.symbol)||void 0===a?void 0:a.members)||void 0===o?void 0:o.get(n))===u.symbol,b=!v&&(null===(c=null===(s=y.symbol)||void 0===s?void 0:s.members)||void 0===c?void 0:c.get(n))===u.symbol;if(v||b){var x=v?h:y,E=u.mapper;return xE(yp(x.typeParameters[0],E),yp(x.typeParameters[1],E),"next"===n?yp(x.typeParameters[2],E):void 0)}}for(var S=0,D=g;S<D.length;S++){var T=D[S];"throw"!==n&&e.some(T.parameters)&&(d=e.append(d,Gv(T,0))),p=e.append(p,_l(T))}if("throw"!==n){var C=d?Hu(d):Re;if("next"===n)f=C;else if("return"===n){var k=r.resolveIterationType(C,i)||Ne;_=e.append(_,k)}}var A=p?Zu(p):et,N=(e=>{if(Qa(e))return wr;var t=SE(e,"iterationTypesOfIteratorResult");if(t)return t;if(Vo(e,tr||(tr=du("IteratorYieldResult",1,!1))||ht))return DE(e,"iterationTypesOfIteratorResult",xE(Vl(e)[0],void 0,void 0));if(Vo(e,rr||(rr=du("IteratorReturnResult",1,!1))||ht))return DE(e,"iterationTypesOfIteratorResult",xE(void 0,Vl(e)[0],void 0));var r=ag(e,RE),n=r!==et?Ya(r,"value"):void 0,i=ag(e,LE),a=i!==et?Ya(i,"value"):void 0;return DE(e,"iterationTypesOfIteratorResult",n||a?xE(n,a||Ze,void 0):Nr)})(r.resolveIterationType(A,i)||Ne);return N===Nr?(i&&wn(i,r.mustHaveAValueDiagnostic,n),m=Ne,_=e.append(_,Ne)):(m=N.yieldType,_=e.append(_,N.returnType)),xE(m,Hu(_),f)}}function jE(e,t,r){var n=EE([BE(e,t,"next",r),BE(e,t,"return",r),BE(e,t,"throw",r)]);return DE(e,t.iteratorCacheKey,n)}function UE(e,t,r){if(!Qa(t)){var n=VE(t,r);return n&&n[R(e)]}}function VE(e,t){if(Qa(e))return wr;var r=t?Ir:Or;return TE(e,t?2:1,void 0)||IE(e,r,void 0)}function zE(e,t){var r=!!(2&t);return 1&t?UE(1,e,r)||Pe:r?wx(e)||Pe:e}function KE(t,r){var n=zE(r,e.getFunctionFlags(t));return!!n&&Tb(n,16387)}function WE(t,r,n){var i=Wc(t);if(0!==i.length){for(var a=0,o=dc(t);a<o.length;a++){var s=o[a];n&&4194304&s.flags||HE(t,s,ad(s,8576,!0),Uo(s))}var c=r.valueDeclaration;if(c&&e.isClassLike(c))for(var l=0,u=c.members;l<u.length;l++){var d=u[l];if(!e.isStatic(d)&&!ks(d)){var p=Xi(d);HE(t,p,tx(d.name.expression),Uo(p))}}if(i.length>1)for(var _=0,f=i;_<f.length;_++)JE(t,f[_])}}function HE(t,r,n,i){var a=r.valueDeclaration,o=e.getNameOfDeclaration(a);if(!o||!e.isPrivateIdentifier(o))for(var s=$c(t,n),c=2&e.getObjectFlags(t)?e.getDeclarationOfKind(t.symbol,257):void 0,l=a&&220===a.kind||o&&161===o.kind||Yi(r)===t.symbol?a:void 0,u=n=>{var a=n.declaration&&Yi(Xi(n.declaration))===t.symbol?n.declaration:void 0,o=l||a||(c&&!e.some(ts(t),(e=>!!pc(e,r.escapedName)&&!!Jc(e,n.keyType)))?c:void 0);o&&!Xp(i,n.type)&&wn(o,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,wa(r),Pa(i),Pa(n.keyType),Pa(n.type))},d=0,p=s;d<p.length;d++)u(p[d])}function JE(t,r){for(var n=r.declaration,i=$c(t,r.keyType),a=2&e.getObjectFlags(t)?e.getDeclarationOfKind(t.symbol,257):void 0,o=n&&Yi(Xi(n))===t.symbol?n:void 0,s=n=>{if(n===r)return"continue";var i=n.declaration&&Yi(Xi(n.declaration))===t.symbol?n.declaration:void 0,s=o||i||(a&&!e.some(ts(t),(e=>!!Hc(e,r.keyType)&&!!Jc(e,n.keyType)))?a:void 0);s&&!Xp(r.type,n.type)&&wn(s,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,Pa(r.keyType),Pa(r.type),Pa(n.keyType),Pa(n.type))},c=0,l=i;c<l.length;c++)s(l[c])}function $E(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":wn(e,t,e.escapedText)}}function GE(t){if(t)for(var n=!1,i=0;i<t.length;i++){var a=t[i];if(ax(a),r){a.default?(n=!0,s=a.default,c=t,l=i,function t(r){if(177===r.kind){var n=nu(r);if(262144&n.flags)for(var i=l;i<c.length;i++)n.symbol===Xi(c[i])&&wn(r,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(r,t)}(s)):n&&wn(a,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<i;o++)t[o].symbol===a.symbol&&wn(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}var s,c,l}function qE(t){if(!t.declarations||1!==t.declarations.length){var r=Hn(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=(t=>e.filter(t.declarations,(e=>256===e.kind||257===e.kind)))(t);if(!n||n.length<=1)return;if(!((t,r)=>{for(var n=e.length(r),i=nl(r),a=0,o=t;a<o.length;a++){var s=o[a],c=e.getEffectiveTypeParameterDeclarations(s),l=c.length;if(l<i||l>n)return!1;for(var u=0;u<l;u++){var d=c[u],p=r[u];if(d.name.escapedText!==p.symbol.escapedName)return!1;var _=e.getEffectiveConstraintOfTypeParameter(d),f=_&&dp(_),m=gc(p);if(f&&m&&!Hp(f,m))return!1;var g=d.default&&dp(d.default),h=Cc(p);if(g&&h&&!Hp(g,h))return!1}}return!0})(n,_s(t).localTypeParameters))for(var i=wa(t),a=0,o=n;a<o.length;a++)wn(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}function XE(t){!(t=>{var r=e.getSourceFileOfNode(t);(t=>{var r=!1,n=!1;if(!DD(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(94===o.token){if(r)return GD(o,e.Diagnostics.extends_clause_already_seen);if(n)return GD(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return GD(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(117===o.token),n)return GD(o,e.Diagnostics.implements_clause_already_seen);n=!0}FD(o)}})(t)||kD(t.typeParameters,r)})(t),Lx(t),oE(t,t.name),GE(e.getEffectiveTypeParameterDeclarations(t)),Ex(t);var n=Xi(t),i=_s(n),a=Is(i),o=jo(n);qE(n),xx(n),(t=>{for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a<o.length;a++){var s=o[a];if(170===s.kind)for(var c=0,l=s.parameters;c<l.length;c++){var u=l[c];e.isParameterPropertyDeclaration(u,s)&&!e.isBindingPattern(u.name)&&h(r,u.name,u.name.escapedText,3)}else{var d=e.isStatic(s),p=s.name;if(!p)continue;var _=e.isPrivateIdentifier(p),f=_&&d?16:0,m=_?i:d?n:r,g=p&&e.getPropertyNameForPropertyNameNode(p);if(g)switch(s.kind){case 171:h(m,p,g,1|f);break;case 172:h(m,p,g,2|f);break;case 166:h(m,p,g,3|f);break;case 168:h(m,p,g,8|f)}}}function h(t,r,n,i){var a=t.get(n);if(a)if((16&a)!=(16&i))wn(r,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(r));else{var o=!!(8&a),s=!!(8&i);o||s?o!==s&&wn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i&-17?wn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t.set(n,a|i)}else t.set(n,i)}})(t),8388608&t.flags||(t=>{for(var r=0,n=t.members;r<n.length;r++){var i=n[r],a=i.name;if(e.isStatic(i)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":wn(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,Ka(Xi(t)))}}}})(t);var s=e.getEffectiveBaseTypeNode(t);if(s){e.forEach(s.typeArguments,yS),U<2&&ED(s.parent,1);var c=e.getClassExtendsHeritageElement(t);c&&c!==s&&ix(c.expression);var l=ts(i);if(l.length&&r){var u=l[0],d=Zo(i),p=kc(d);if(((t,r)=>{var n=jc(t,1);if(n.length){var i=n[0].declaration;i&&e.hasEffectiveModifier(i,8)&&(wS(r,e.getClassLikeDeclarationOfSymbol(t.symbol))||wn(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Fi(t.symbol)))}})(p,s),yS(s.expression),e.some(s.typeArguments)){e.forEach(s.typeArguments,yS);for(var _=0,f=Yo(p,s.typeArguments,s);_<f.length&&mx(s,f[_].typeParameters);_++);}if(e_(a,x=Is(u,i.thisType),void 0)?e_(o,Wp(p),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):ZE(t,a,x,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&d.flags&&(Go(o)?jc(d,1).some((e=>4&e.flags))&&!e.hasSyntacticModifier(t,128)&&wn(t.name||t,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):wn(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(p.symbol&&32&p.symbol.flags||8650752&d.flags)){var m=Qo(p,s.typeArguments,s);e.forEach(m,(e=>!Av(e.declaration)&&!Hp(_l(e),u)))&&wn(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!((t,r)=>{var n,i;e:for(var a=0,o=fc(r);a<o.length;a++){var s=o[a],c=eS(s);if(!(4194304&c.flags)){var l=pc(t,c.escapedName);if(l){var u=eS(l),d=e.getDeclarationModifierFlagsFromSymbol(c);if(e.Debug.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===c){var p=e.getClassLikeDeclarationOfSymbol(t.symbol);if(128&d&&(!p||!e.hasSyntacticModifier(p,128))){for(var _=0,f=ts(t);_<f.length;_++){var m=f[_];if(m!==r){var g=pc(m,c.escapedName),h=g&&eS(g);if(h&&h!==c)continue e}}225===p.kind?wn(p,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,wa(s),Pa(r)):wn(p,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Pa(t),wa(s),Pa(r))}}else{var y=e.getDeclarationModifierFlagsFromSymbol(u);if(8&d||8&y)continue;var v=void 0,b=98308&c.flags,x=98308&u.flags;if(b&&x){if(128&d&&!(c.valueDeclaration&&e.isPropertyDeclaration(c.valueDeclaration)&&c.valueDeclaration.initializer)||c.valueDeclaration&&257===c.valueDeclaration.parent.kind||u.valueDeclaration&&e.isBinaryExpression(u.valueDeclaration))continue;var E=4!==b&&4===x;if(E||4===b&&4!==x){var S=E?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;wn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,S,wa(c),Pa(r),Pa(t))}else if(z){var D=null===(n=u.declarations)||void 0===n?void 0:n.find((e=>166===e.kind&&!e.initializer));if(D&&!(33554432&u.flags)&&!(128&d)&&!(128&y)&&!(null===(i=u.declarations)||void 0===i?void 0:i.some((e=>!!(8388608&e.flags))))){var T=ia(e.getClassLikeDeclarationOfSymbol(t.symbol)),C=D.name;if(D.exclamationToken||!T||!e.isIdentifier(C)||!W||!rS(C,t,T)){var k=e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;wn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,k,wa(c),Pa(r))}}}continue}if(Zh(c)){if(Zh(u)||4&u.flags)continue;e.Debug.assert(!!(98304&u.flags)),v=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else v=98304&c.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;wn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,v,Pa(r),wa(c),Pa(t))}}}}})(i,u)}}!((t,r,n,i)=>{for(var a=e.getEffectiveBaseTypeNode(t)&&ts(r),o=(null==a?void 0:a.length)?Is(e.first(a),r.thisType):void 0,s=Zo(r),c=a=>{if(e.hasAmbientModifier(a))return"continue";e.isConstructorDeclaration(a)&&e.forEach(a.parameters,(c=>{e.isParameterPropertyDeclaration(c,a)&&YE(t,i,s,o,r,n,c,!0)})),YE(t,i,s,o,r,n,a,!1)},l=0,u=t.members;l<u.length;l++)c(u[l])})(t,i,a,o);var g=e.getEffectiveImplementsTypeNodes(t);if(g)for(var h=0,y=g;h<y.length;h++){var v=y[h];if(e.isEntityNameExpression(v.expression)&&!e.isOptionalChain(v.expression)||wn(v.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),hx(v),r){var b=Pc(dp(v));if(!Za(b))if(ns(b)){var x,E=b.symbol&&32&b.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1;e_(a,x=Is(b,i.thisType),void 0)||ZE(t,a,x,E)}else wn(v,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}r&&(WE(i,n),WE(o,n,!0),ux(t),(t=>{if(W&&$&&!(8388608&t.flags))for(var r=ia(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(!(2&e.getEffectiveModifierFlags(a))&&!e.isStatic(a)&&tS(a)){var o=a.name;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)){var s=jo(Xi(a));3&s.flags||32768&hf(s)||r&&rS(o,s,r)||wn(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}})(t))}function YE(t,r,n,i,a,o,s,c,l){void 0===l&&(l=!0);var u=s.name&&OS(s.name)||OS(s);return u?QE(t,r,n,i,a,o,e.hasOverrideModifier(s),e.hasAbstractModifier(s),e.isStatic(s),c,e.symbolName(u),l?s:void 0):0}function QE(t,r,n,i,a,o,s,c,l,u,d,p){var _=e.isInJSFile(t),f=!!(8388608&t.flags);if(i&&(s||j.noImplicitOverride)){var m=e.escapeLeadingUnderscores(d),g=l?n:i,h=Lc(l?r:o,m),y=Lc(g,m),v=Pa(i);if(h&&!y&&s){if(p){var b=Ty(d,g);b?wn(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,v,wa(b)):wn(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,v)}return 2}if(h&&(null==y?void 0:y.declarations)&&j.noImplicitOverride&&!f){var x=e.some(y.declarations,e.hasAbstractModifier);if(s)return 0;if(!x)return p&&wn(p,u?_?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,v),1;if(c&&x)return p&&wn(p,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,v),1}}else if(s){if(p){var E=Pa(a);wn(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,E)}return 2}return 0}function ZE(t,r,n,i){for(var a=!1,o=t=>{if(e.isStatic(t))return"continue";var i=t.name&&OS(t.name)||OS(t);if(i){var o=Lc(r,i.escapedName),s=Lc(n,i.escapedName);o&&s&&(e_(jo(o),jo(s),t.name||t,void 0,(()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,wa(i),Pa(r),Pa(n))))||(a=!0))}},s=0,c=t.members;s<c.length;s++)o(c[s]);a||e_(r,n,t.name||t,i)}function eS(t){return 1&e.getCheckFlags(t)?t.target:t}function tS(t){return 166===t.kind&&!e.hasAbstractModifier(t)&&!t.exclamationToken&&!t.initializer}function rS(t,r,n){var i=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);return e.setParent(i.expression,i),e.setParent(i,n),i.flowNode=n.returnFlowNode,!(32768&hf(wg(i,r,xf(r))))}function nS(e){var t=Jn(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,i=e.members;n<i.length;n++){var a=i[n],o=iS(a,r);Jn(a).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function iS(t,r){if(e.isComputedNonLiteralName(t.name))wn(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);Ch(n)&&!e.isInfinityOrNaNString(n)&&wn(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return t.initializer?(t=>{var r=cs(Xi(t.parent)),n=e.isEnumConst(t.parent),i=t.initializer,a=1!==r||ss(t)?function r(n){switch(n.kind){case 218:var i=r(n.operand);if("number"==typeof i)switch(n.operator){case 39:return i;case 40:return-i;case 54:return~i}break;case 220:var a=r(n.left),o=r(n.right);if("number"==typeof a&&"number"==typeof o)switch(n.operatorToken.kind){case 51:return a|o;case 50:return a&o;case 48:return a>>o;case 49:return a>>>o;case 47:return a<<o;case 52:return a^o;case 41:return a*o;case 43:return a/o;case 39:return a+o;case 40:return a-o;case 44:return a%o;case 42:return Math.pow(a,o)}else if("string"==typeof a&&"string"==typeof o&&39===n.operatorToken.kind)return a+o;break;case 10:case 14:return n.text;case 8:return ZD(n),+n.text;case 211:return r(n.expression);case 79:var c=n;return e.isInfinityOrNaNString(c.escapedText)?+c.escapedText:e.nodeIsMissing(n)?0:s(n,Xi(t.parent),c.escapedText);case 206:case 205:var l=n;if(aS(l)){var u,d=tx(l.expression);if(d.symbol&&384&d.symbol.flags)return u=205===l.kind?l.name.escapedText:e.escapeLeadingUnderscores(e.cast(l.argumentExpression,e.isLiteralExpression).text),s(n,d.symbol,u)}}}(i):void 0;if(void 0!==a)n&&"number"==typeof a&&!isFinite(a)&&wn(i,isNaN(a)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===r)return wn(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(n)wn(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(8388608&t.parent.flags)wn(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var o=ix(i);Cb(o,296)?e_(o,_s(Xi(t.parent)),i,void 0):wn(i,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,Pa(o))}}return a;function s(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return o&&qn(o,t)?oD(o):(wn(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);wn(r,e.Diagnostics.Property_0_is_used_before_being_assigned,wa(a))}}})(t):8388608&t.parent.flags&&!e.isEnumConst(t.parent)&&0===cs(Xi(t.parent))?void 0:void 0!==r?r:void wn(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function aS(t){return 79===t.kind||205===t.kind&&aS(t.expression)||206===t.kind&&aS(t.expression)&&e.isStringLiteralLike(t.argumentExpression)}function oS(t){e.isPrivateIdentifier(t.name)&&wn(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function sS(t,r){var n;switch(t.kind){case 236:for(var i=0,a=t.declarationList.declarations;i<a.length;i++)sS(a[i],r);break;case 270:case 271:GD(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 264:case 265:GD(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 202:case 253:var o=t.name;if(e.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++)sS(c[s],r);break}case 256:case 259:case 255:case 257:case 260:case 258:if(r)return;var l=Xi(t);if(l){var u=!(33554432&l.flags);u||(u=!!(null===(n=l.parent)||void 0===n?void 0:n.declarations)&&e.isExternalModuleAugmentation(l.parent.declarations[0]))}}}function cS(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return wn(r,e.Diagnostics.String_literal_expected),!1;var n=261===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 303===t.parent.kind||n?!(n&&e.isExternalModuleNameRelative(r.text)&&!Ua(t)&&(wn(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),1)):(wn(r,271===t.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function lS(t){var r,n=Xi(t),i=Di(n);if(i!==Te){var a=(1160127&(n=qi(n.exportSymbol||n)).flags?111551:0)|(788968&n.flags?788968:0)|(1920&n.flags?1920:0);if(i.flags&a&&wn(t,274===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,wa(n)),j.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(t)&&!(8388608&t.flags)){var o=ki(n),s=!(111551&i.flags);if(s||o)switch(t.kind){case 266:case 269:case 264:j.preserveValueImports&&(e.Debug.assertIsDefined(t.name,"An ImportClause with a symbol should have a name"),Zn(wn(t,s?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,c=e.idText(269===t.kind&&t.propertyName||t.name)),s?void 0:o,c));break;case 274:var c;if(e.getSourceFileOfNode(o)!==e.getSourceFileOfNode(t))return void Zn(wn(t,s?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,c=e.idText(t.propertyName||t.name)),s?void 0:o,c)}}e.isImportSpecifier(t)&&(null===(r=i.declarations)||void 0===r?void 0:r.every((t=>!!(134217728&e.getCombinedNodeFlags(t)))))&&Mn(t.name,i.declarations,n.escapedName)}}function uS(t){oE(t,t.name),lS(t),269===t.kind&&"default"===e.idText(t.propertyName||t.name)&&e.getESModuleInterop(j)&&V!==e.ModuleKind.System&&(V<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&ED(t,131072)}function dS(t){var r;if(t.assertClause){if(V!==e.ModuleKind.ESNext)return XD(t.assertClause,e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext);if(e.isImportDeclaration(t)?null===(r=t.importClause)||void 0===r?void 0:r.isTypeOnly:t.isTypeOnly)return XD(t.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports)}}function pS(e,t){var r=303===e.parent.kind||261===e.parent.kind||260===e.parent.kind;return r||GD(e,t),!r}function _S(t){return e.isImportDeclaration(t)&&t.importClause&&!t.importClause.isTypeOnly&&(r=t.importClause,e.forEachImportClauseDeclaration(r,(e=>!!Xi(e).isReferenced)))&&!ZS(t.importClause,!0)&&!(t=>e.forEachImportClauseDeclaration(t,(e=>!!Hn(Xi(e)).constEnumReferenced)))(t.importClause);var r}function fS(t){return e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&!t.isTypeOnly&&Xi(t).isReferenced&&!ZS(t,!1)&&!Hn(Xi(t)).constEnumReferenced}function mS(t){if(lS(t),e.getEmitDeclarations(j)&&Ha(t.propertyName||t.name,!0),t.parent.parent.moduleSpecifier)e.getESModuleInterop(j)&&V!==e.ModuleKind.System&&(V<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&"default"===e.idText(t.propertyName||t.name)&&ED(t,131072);else{var r=t.propertyName||t.name,n=Yn(r,r.escapedText,2998271,void 0,void 0,!0);if(n&&(n===ie||n===ae||n.declarations&&$n(Xa(n.declarations[0]))))wn(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r));else{Ai(t);var i=n&&(2097152&n.flags?Di(n):n);(!i||i===Te||111551&i.flags)&&Ub(t.propertyName||t.name)}}}function gS(t){var r=Xi(t),n=Hn(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&(t=>e.forEachEntry(t.exports,((e,t)=>"export="!==t)))(r)){var a=li(i)||i.valueDeclaration;!a||Ua(a)||e.isInJSFile(a)||wn(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=Ji(r);o&&o.forEach(((t,r)=>{var n=t.declarations,i=t.flags;if("__export"!==r&&!(1984&i)){var a=e.countWhere(n,C);if(!(524288&i&&a<=2)&&a>1&&!hS(n))for(var o=0,s=n;o<s.length;o++){var c=s[o];O(c)&&_n.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}})),n.exportsChecked=!0}}function hS(t){return t&&t.length>1&&t.every((t=>e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))))}function yS(t){if(t){var i=c;c=t,v=0,(t=>{e.isInJSFile(t)&&e.forEach(t.jsDoc,(t=>{var r=t.tags;return e.forEach(r,yS)}));var i=t.kind;if(n)switch(i){case 260:case 256:case 257:case 255:n.throwIfCancellationRequested()}switch(i>=236&&i<=252&&t.flowNode&&!Tg(t.flowNode)&&Pn(!1===j.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected),i){case 162:return ax(t);case 163:return ox(t);case 166:return dx(t);case 165:return(t=>(e.isPrivateIdentifier(t.name)&&wn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),dx(t)))(t);case 179:case 178:case 173:case 174:case 175:return cx(t);case 168:case 167:return(t=>{UD(t)||ID(t.name),jx(t),e.hasSyntacticModifier(t,128)&&168===t.kind&&t.body&&wn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&wn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),px(t)})(t);case 169:return(t=>{DD(t),e.forEachChild(t,yS)})(t);case 170:return(t=>{cx(t),(t=>{var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return qD(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}})(t)||(t=>{var r=e.getEffectiveReturnTypeNode(t);r&&XD(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)})(t),yS(t.body);var n=Xi(t);if(t===e.getDeclarationOfKind(n,t.kind)&&xx(n),!e.nodeIsMissing(t.body)&&r){var i=t.parent;if(e.getClassExtendsHeritageElement(i)){Vg(t.parent,i);var a=Kg(i),o=zg(t.body);if(o){if(a&&wn(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==e.getEmitScriptTarget(j)||!z)&&(e.some(t.parent.members,(t=>!!e.isPrivateIdentifierClassElementDeclaration(t)||166===t.kind&&!e.isStatic(t)&&!!t.initializer))||e.some(t.parameters,(t=>e.hasSyntacticModifier(t,16476))))){for(var s=void 0,c=0,l=t.body.statements;c<l.length;c++){var u=l[c];if(237===u.kind&&e.isSuperCall(u.expression)){s=u;break}if(!e.isPrologueDirective(u))break}s||wn(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else a||wn(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}})(t);case 171:case 172:return _x(t);case 177:return hx(t);case 176:return(t=>{var r=(e=>{switch(e.parent.kind){case 213:case 173:case 255:case 212:case 178:case 168:case 167:var t=e.parent;if(e===t.type)return t}})(t);if(r){var n=al(r),i=dl(n);if(i){yS(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)cp(a);else if(i.parameterIndex>=0)L(n)&&i.parameterIndex===n.parameters.length-1?wn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&e_(i.type,jo(n.parameters[i.parameterIndex]),t.type,void 0,(()=>e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)));else if(a){for(var o=!1,s=0,c=r.parameters;s<c.length;s++){var l=c[s].name;if(e.isBindingPattern(l)&&sx(l,a,i.parameterName)){o=!0;break}}o||wn(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}}else wn(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)})(t);case 180:return(e=>{au(e)})(t);case 181:return(t=>{if(e.forEach(t.members,yS),r){var n=Wd(t);WE(n,n.symbol),ux(t),lx(t)}})(t);case 182:return(e=>{yS(e.elementType)})(t);case 183:return(t=>{for(var r=t.elements,n=!1,i=!1,a=e.some(r,e.isNamedTupleMember),o=0,s=r;o<s.length;o++){var c=s[o];if(196!==c.kind&&a){XD(c,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var l=Tu(c);if(8&l){var u=dp(c.type);if(!G_(u)){wn(c,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(W_(u)||uf(u)&&4&u.target.combinedFlags)&&(i=!0)}else if(4&l){if(i){XD(c,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}i=!0}else if(2&l){if(i){XD(c,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}n=!0}else if(n){XD(c,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(t.elements,yS),dp(t)})(t);case 186:case 187:return(t=>{e.forEach(t.types,yS),dp(t)})(t);case 190:case 184:case 185:return yS(t.type);case 191:return(e=>{cp(e)})(t);case 192:return(t=>{!(t=>{if(153===t.operator){if(150!==t.type.kind)return XD(t.type,e.Diagnostics._0_expected,e.tokenToString(150));var r=e.walkUpParenthesizedTypes(t.parent);switch(e.isInJSFile(r)&&e.isJSDocTypeExpression(r)&&(r=r.parent,e.isJSDocTypeTag(r)&&(r=r.parent.parent)),r.kind){case 253:var n=r;if(79!==n.name.kind)return XD(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(n))return XD(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return XD(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 166:if(!e.isStatic(r)||!e.hasEffectiveReadonlyModifier(r))return XD(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 165:if(!e.hasSyntacticModifier(r,64))return XD(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:XD(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else 144===t.operator&&182!==t.type.kind&&183!==t.type.kind&&GD(t,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(150))})(t),yS(t.type)})(t);case 188:return(t=>{e.forEachChild(t,yS)})(t);case 189:return(t=>{e.findAncestor(t,(e=>e.parent&&188===e.parent.kind&&e.parent.extendsType===e))||XD(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),yS(t.typeParameter),Ux(t)})(t);case 197:return(e=>{for(var t=0,r=e.templateSpans;t<r.length;t++){var n=r[t];yS(n.type),e_(dp(n.type),ut,n.type)}dp(e)})(t);case 199:return(e=>{yS(e.argument),dp(e)})(t);case 196:return(t=>{t.dotDotDotToken&&t.questionToken&&XD(t,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),184===t.type.kind&&XD(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),185===t.type.kind&&XD(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),yS(t.type),dp(t)})(t);case 326:return(t=>{var r=e.getEffectiveJSDocHost(t);if(r&&(e.isClassDeclaration(r)||e.isClassExpression(r))){var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0),n.length>1&&wn(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Bx(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=Bx(a.expression);o&&i.escapedText!==o.escapedText&&wn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else wn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))})(t);case 327:return(t=>{var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||wn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))})(t);case 343:case 336:case 337:return(t=>{t.typeExpression||wn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&$E(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),yS(t.typeExpression),GE(e.getEffectiveTypeParameterDeclarations(t))})(t);case 342:return(e=>{yS(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)yS(r[t])})(t);case 341:return(e=>{yS(e.typeExpression)})(t);case 338:return(t=>{if(yS(t.typeExpression),!e.getParameterSymbolFromJSDoc(t)){var r=e.getHostSignatureFromJSDoc(t);if(r){var n=e.getJSDocTags(r).filter(e.isJSDocParameterTag).indexOf(t);if(n>-1&&n<r.parameters.length&&e.isBindingPattern(r.parameters[n].name))return;sl(r)?e.findLast(e.getJSDocTags(r),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!W_(dp(t.typeExpression.type))&&wn(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(160===t.name.kind?t.name.right:t.name)):e.isQualifiedName(t.name)?wn(t.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(t.name),e.entityNameToString(t.name.left)):wn(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(t.name))}}})(t);case 345:return(e=>{yS(e.typeExpression)})(t);case 315:!(t=>{!r||t.type||e.isJSDocConstructSignature(t)||Vf(t,Ne),cx(t)})(t);case 313:case 312:case 310:case 311:case 320:return vS(t),void e.forEachChild(t,yS);case 316:return void(t=>{vS(t),yS(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))e.last(r.parent.parameters)!==r&&wn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);else{e.isJSDocTypeExpression(r)||wn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=t.parent.parent;if(e.isJSDocParameterTag(n)){var i=e.getParameterSymbolFromJSDoc(n);if(i){var a=e.getHostSignatureFromJSDoc(n);a&&e.last(a.parameters).symbol===i||wn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else wn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}})(t);case 307:return yS(t.type);case 331:case 333:case 332:return(t=>{var r=e.getJSDocHost(t);r&&e.isPrivateIdentifierClassElementDeclaration(r)&&wn(t,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)})(t);case 193:return(e=>{yS(e.objectType),yS(e.indexType),yx(Fd(e),e)})(t);case 194:return(t=>{!(t=>{var r;(null===(r=t.members)||void 0===r?void 0:r.length)&&XD(t.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)})(t),yS(t.typeParameter),yS(t.nameType),yS(t.type),t.type||Vf(t,Ne);var r=Pd(t),n=tc(r);n?e_(n,ct,t.nameType):e_(ec(r),ct,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))})(t);case 255:return(e=>{r&&(jx(e),OD(e),oE(e,e.name))})(t);case 234:case 261:return eE(t);case 236:return pE(t);case 237:return(e=>{QD(e),ix(e.expression)})(t);case 238:return(t=>{QD(t);var r=mE(t.expression);_E(t.expression,r,t.thenStatement),yS(t.thenStatement),235===t.thenStatement.kind&&wn(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),yS(t.elseStatement)})(t);case 239:return(e=>{QD(e),yS(e.statement),mE(e.expression)})(t);case 240:return(e=>{QD(e),mE(e.expression),yS(e.statement)})(t);case 241:return(t=>{QD(t)||t.initializer&&254===t.initializer.kind&&HD(t.initializer),t.initializer&&(254===t.initializer.kind?e.forEach(t.initializer.declarations,dE):ix(t.initializer)),t.condition&&mE(t.condition),t.incrementor&&ix(t.incrementor),yS(t.statement),t.locals&&Ux(t)})(t);case 242:return(t=>{LD(t);var r,n=ay(ix(t.expression));if(254===t.initializer.kind){var i=t.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&wn(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),gE(t)}else{var a=t.initializer,o=ix(a);203===a.kind||204===a.kind?wn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Xp(131072&(r=cd(sd(n))).flags?We:r,o)?Sb(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):wn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}n!==et&&Cb(n,126091264)||wn(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Pa(n)),yS(t.statement),t.locals&&Ux(t)})(t);case 243:return(t=>{LD(t);var r=e.getContainingFunctionOrClassStaticBlock(t);if(t.awaitModifier?r&&e.isClassStaticBlockDeclaration(r)?XD(t.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&e.getFunctionFlags(r))&&U<99&&ED(t,16384):j.downlevelIteration&&U<2&&ED(t,256),254===t.initializer.kind)gE(t);else{var n=t.initializer,i=hE(t);if(203===n.kind||204===n.kind)Pb(n,i||Pe);else{var a=ix(n);Sb(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),i&&t_(i,a,n,t.expression)}}yS(t.statement),t.locals&&Ux(t)})(t);case 244:case 245:return(t=>{QD(t)||(t=>{for(var r=t;r;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(r))return XD(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 249:if(t.label&&r.label.escapedText===t.label.escapedText)return!(244!==t.kind||e.isIterationStatement(r.statement,!0))&&XD(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 248:if(245===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}t.label?XD(t,245===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):XD(t,245===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)})(t)})(t);case 246:return(t=>{var r;if(!QD(t)){var n=e.getContainingFunctionOrClassStaticBlock(t);if(n&&e.isClassStaticBlockDeclaration(n))GD(t,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);else if(n){var i=_l(al(n)),a=e.getFunctionFlags(n);if(W||t.expression||131072&i.flags){var o=t.expression?Ub(t.expression):Be;if(172===n.kind)t.expression&&wn(t,e.Diagnostics.Setters_cannot_return_a_value);else if(170===n.kind)t.expression&&!t_(o,i,t,t.expression)&&wn(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(fl(n)){var s=null!==(r=zE(i,a))&&void 0!==r?r:i,c=2&a?Tx(o,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o;s&&t_(c,s,t,t.expression)}}else 170!==n.kind&&j.noImplicitReturns&&!KE(n,i)&&wn(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else GD(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}})(t);case 247:return(t=>{QD(t)||32768&t.flags&&GD(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ix(t.expression);var r=e.getSourceFileOfNode(t);if(!$D(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;qD(r,n,t.statement.pos-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}})(t);case 248:return(t=>{var n;QD(t);var i=!1,a=ix(t.expression),o=nf(a);e.forEach(t.caseBlock.clauses,(t=>{if(289!==t.kind||i||(void 0===n?n=t:(XD(t,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),i=!0)),r&&288===t.kind){var s=ix(t.expression),c=nf(s),l=a;c&&o||(s=c?af(s):s,l=af(a)),Ob(l,s)||u_(s,l,t.expression,void 0)}e.forEach(t.statements,yS),j.noFallthroughCasesInSwitch&&t.fallthroughFlowNode&&Tg(t.fallthroughFlowNode)&&wn(t,e.Diagnostics.Fallthrough_case_in_switch)})),t.caseBlock.locals&&Ux(t.caseBlock)})(t);case 249:return(t=>{QD(t)||e.findAncestor(t.parent,(r=>e.isFunctionLike(r)?"quit":249===r.kind&&r.label.escapedText===t.label.escapedText&&(XD(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0))),yS(t.statement)})(t);case 250:return(t=>{QD(t)||e.isIdentifier(t.expression)&&!t.expression.escapedText&&((t,r,n,i,a)=>{var o=e.getSourceFileOfNode(t);if(!$D(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);_n.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,void 0,void 0,void 0))}})(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&ix(t.expression)})(t);case 251:return(t=>{QD(t),eE(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration){var n=r.variableDeclaration,i=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(n));if(i){var a=_o(n,!1);!a||3&a.flags||GD(i,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(n.initializer)GD(n.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var o=r.block.locals;o&&e.forEachKey(r.locals,(t=>{var r=o.get(t);(null==r?void 0:r.valueDeclaration)&&0!=(2&r.flags)&&XD(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)}))}}eE(r.block)}t.finallyBlock&&eE(t.finallyBlock)})(t);case 253:return dE(t);case 202:return(t=>((t=>{if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return XD(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(CD(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),t.propertyName)return XD(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}t.dotDotDotToken&&t.initializer&&qD(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)})(t),cE(t)))(t);case 256:return(t=>{e.some(t.decorators)&&e.some(t.members,(t=>e.hasStaticModifier(t)&&e.isPrivateIdentifierClassElementDeclaration(t)))&&XD(t.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),t.name||e.hasSyntacticModifier(t,512)||GD(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),XE(t),e.forEach(t.members,yS),Ux(t)})(t);case 257:return(t=>{if(DD(t)||(t=>{var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n<i.length;n++){var a=i[n];if(94!==a.token)return e.Debug.assert(117===a.token),GD(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return GD(a,e.Diagnostics.extends_clause_already_seen);r=!0,FD(a)}})(t),GE(t.typeParameters),r){$E(t.name,e.Diagnostics.Interface_name_cannot_be_0),Ex(t);var n=Xi(t);if(qE(n),t===e.getDeclarationOfKind(n,257)){var i=_s(n),a=Is(i);if(((t,r)=>{var n=ts(t);if(n.length<2)return!0;var i=new e.Map;e.forEach(Es(t).declaredProperties,(e=>{i.set(e.escapedName,{prop:e,containingType:t})}));for(var a=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],l=0,u=fc(Is(c,t.thisType));l<u.length;l++){var d=u[l],p=i.get(d.escapedName);if(p){if(p.containingType!==t&&!U_(p.prop,d)){a=!1;var _=Pa(p.containingType),f=Pa(c),m=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,wa(d),_,f);m=e.chainDiagnosticMessages(m,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Pa(t),_,f),_n.add(e.createDiagnosticForNodeFromMessageChain(r,m))}}else i.set(d.escapedName,{prop:d,containingType:c})}return a})(i,t.name)){for(var o=0,s=ts(i);o<s.length;o++)e_(a,Is(s[o],i.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);WE(i,n)}}lx(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),(t=>{e.isEntityNameExpression(t.expression)&&!e.isOptionalChain(t.expression)||wn(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),hx(t)})),e.forEach(t.members,yS),r&&(ux(t),Ux(t))})(t);case 258:return(t=>{DD(t),$E(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Ex(t),GE(t.typeParameters),138===t.type.kind?A.has(t.name.escapedText)&&1===e.length(t.typeParameters)||wn(t.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(yS(t.type),Ux(t))})(t);case 259:return(t=>{if(r){DD(t),oE(t,t.name),Ex(t),t.members.forEach(oS),nS(t);var n=Xi(t);if(t===e.getDeclarationOfKind(n,t.kind)){if(n.declarations&&n.declarations.length>1){var i=e.isEnumConst(t);e.forEach(n.declarations,(t=>{e.isEnumDeclaration(t)&&e.isEnumConst(t)!==i&&wn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(n.declarations,(t=>{if(259!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?wn(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)}))}}})(t);case 260:return(t=>{if(r){var n=e.isGlobalScopeAugmentation(t),i=8388608&t.flags;n&&!i&&wn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(t);if(pS(t,a?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;DD(t)||i||10!==t.name.kind||XD(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&oE(t,t.name),Ex(t);var o=Xi(t);if(512&o.flags&&!i&&o.declarations&&o.declarations.length>1&&I(t,e.shouldPreserveConstEnums(j))){var s=(t=>{var r=t.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if((256===a.kind||255===a.kind&&e.nodeIsPresent(a.body))&&!(8388608&a.flags))return a}})(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?wn(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos<s.pos&&wn(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var c=e.getDeclarationOfKind(o,256);c&&(d=t,p=c,_=e.getEnclosingBlockScopeContainer(d),f=e.getEnclosingBlockScopeContainer(p),$n(_)?$n(f):!$n(f)&&_===f)&&(Jn(t).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(t)){if((n||33554432&Xi(t).flags)&&t.body)for(var l=0,u=t.body.statements;l<u.length;l++)sS(u[l],n)}else $n(t.parent)?n?wn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name))&&wn(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):wn(t.name,n?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var d,p,_,f;t.body&&(yS(t.body),e.isGlobalScopeAugmentation(t)||Ux(t))})(t);case 265:return(t=>{if(!pS(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)){if(!DD(t)&&e.hasEffectiveModifiers(t)&&GD(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),cS(t)){var r=t.importClause;r&&!(t=>{var r;return t.isTypeOnly&&t.name&&t.namedBindings?XD(t,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!(!t.isTypeOnly||268!==(null===(r=t.namedBindings)||void 0===r?void 0:r.kind))&&eT(t.namedBindings)})(r)&&(r.name&&uS(r),r.namedBindings&&(267===r.namedBindings.kind?(uS(r.namedBindings),V!==e.ModuleKind.System&&(V<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(j)&&ED(t,65536)):Oi(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,uS)))}dS(t)}})(t);case 264:return(t=>{if(!pS(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(DD(t),e.isInternalModuleImportEqualsDeclaration(t)||cS(t)))if(uS(t),e.hasSyntacticModifier(t,1)&&Ai(t),276!==t.moduleReference.kind){var r=Di(Xi(t));if(r!==Te){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&Pi(n,112575).flags||wn(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&$E(t.name,e.Diagnostics.Import_name_cannot_be_0)}t.isTypeOnly&&XD(t,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(V>=e.ModuleKind.ES2015&&void 0===e.getSourceFileOfNode(t).impliedNodeFormat)||t.isTypeOnly||8388608&t.flags||XD(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)})(t);case 271:return(t=>{if(!pS(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)){if(!DD(t)&&e.hasEffectiveModifiers(t)&&GD(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===U&&ED(t,4194304),(t=>{var r;t.isTypeOnly&&(272===(null===(r=t.exportClause)||void 0===r?void 0:r.kind)?eT(t.exportClause):XD(t,e.Diagnostics.Only_named_exports_may_use_export_type))})(t),!t.moduleSpecifier||cS(t))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,mS);var r=261===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&261===t.parent.kind&&!t.moduleSpecifier&&8388608&t.flags;303===t.parent.kind||r||n||wn(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=Oi(t,t.moduleSpecifier);i&&Vi(i)?wn(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,wa(i)):t.exportClause&&lS(t.exportClause),V!==e.ModuleKind.System&&(V<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&(t.exportClause?e.getESModuleInterop(j)&&ED(t,65536):ED(t,32768))}dS(t)}})(t);case 270:return(t=>{if(!pS(t,t.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)){var r=303===t.parent.kind?t.parent:t.parent.parent;if(260!==r.kind||e.isAmbientModule(r)){!DD(t)&&e.hasEffectiveModifiers(t)&&GD(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var n=e.getEffectiveTypeAnnotationNode(t);if(n&&e_(Ub(t.expression),dp(n),t.expression),79===t.expression.kind){var i=t.expression,a=Pi(i,67108863,!0,!0,t);if(a){jg(a,i);var o=2097152&a.flags?Di(a):a;(o===Te||111551&o.flags)&&Ub(t.expression)}else Ub(t.expression);e.getEmitDeclarations(j)&&Ha(t.expression,!0)}else Ub(t.expression);gS(r),8388608&t.flags&&!e.isEntityNameExpression(t.expression)&&XD(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||8388608&t.flags||(V>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.CommonJS?XD(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):V===e.ModuleKind.System&&XD(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?wn(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):wn(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}})(t);case 235:case 252:return void QD(t);case 275:!(e=>{Lx(e)})(t)}})(t),c=i}}function vS(t){e.isInJSFile(t)||XD(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function bS(t){var r=Jn(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||new e.Map;var n=F(t);r.deferredNodes.set(n,t)}}function xS(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end});var r=c;switch(c=t,v=0,t.kind){case 207:case 208:case 209:case 164:case 279:Uy(t);break;case 212:case 213:case 168:case 167:!(t=>{e.Debug.assert(168!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=fl(t);if(hb(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||_l(al(t)),234===t.body.kind)yS(t.body);else{var i=ix(t.body),a=n&&zE(n,r);a&&t_(2==(3&r)?Tx(i,!1,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}})(t);break;case 171:case 172:_x(t);break;case 225:!(t=>{e.forEach(t.members,yS),Ux(t)})(t);break;case 278:!(e=>{qh(e)})(t);break;case 277:!(e=>{qh(e.openingElement),Ih(e.closingElement.tagName)?Bh(e.closingElement):ix(e.closingElement.tagName),Mh(e)})(t)}c=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function ES(r){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),(r=>{var n=Jn(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,j,t))return;!(t=>{8388608&t.flags&&(t=>{for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if((e.isDeclaration(i)||236===i.kind)&&YD(i))return!0}})(t)})(r),e.clear(cn),e.clear(ln),e.clear(un),e.clear(dn),e.forEach(r.statements,yS),yS(r.endOfFileToken),(e=>{var t=Jn(e);t.deferredNodes&&t.deferredNodes.forEach(xS)})(r),e.isExternalOrCommonJsModule(r)&&Ux(r),r.isDeclarationFile||!j.noUnusedLocals&&!j.noUnusedParameters||Vx(DS(r),((t,r,n)=>{!e.containsParseError(t)&&SS(r,!!(8388608&t.flags))&&_n.add(n)})),2===j.importsNotUsedAsValues&&!r.isDeclarationFile&&e.isExternalModule(r)&&(t=>{for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];(_S(i)||fS(i))&&wn(i,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}})(r),e.isExternalOrCommonJsModule(r)&&gS(r),cn.length&&(e.forEach(cn,rE),e.clear(cn)),ln.length&&(e.forEach(ln,nE),e.clear(ln)),un.length&&(e.forEach(un,iE),e.clear(un)),dn.length&&(e.forEach(dn,aE),e.clear(dn)),n.flags|=1}})(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function SS(t,r){if(r)return!1;switch(t){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return e.Debug.assertNever(t)}}function DS(t){return Lr.get(t.path)||e.emptyArray}function TS(r,i){try{return n=i,(r=>{if(CS(),r){var n=_n.getGlobalDiagnostics(),i=n.length;ES(r);var a=_n.getDiagnostics(r.fileName),o=_n.getGlobalDiagnostics();if(o!==n){var s=e.relativeComplement(n,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),ES),_n.getDiagnostics()})(r)}finally{n=void 0}}function CS(){if(!r)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function kS(e){switch(e.kind){case 162:case 256:case 257:case 258:case 259:case 343:case 336:case 337:return!0;case 266:return e.isTypeOnly;case 269:case 274:return e.parent.parent.isTypeOnly;default:return!1}}function AS(e){for(;160===e.parent.kind;)e=e.parent;return 177===e.parent.kind}function NS(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function wS(e,t){return!!NS(e,(e=>e===t))}function FS(e){return void 0!==(e=>{for(;160===e.parent.kind;)e=e.parent;return 264===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:270===e.parent.kind&&e.parent.expression===e?e.parent:void 0})(e)}function PS(t){if(e.isDeclarationName(t))return Xi(t.parent);if(e.isInJSFile(t)&&205===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)&&!e.isJSDocMemberName(t)){var r=(t=>{switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return Xi(t.parent);case 4:case 2:case 5:return Xi(t.parent.parent)}})(t);if(r)return r}if(270===t.parent.kind&&e.isEntityNameExpression(t)){var n=Pi(t,2998271,!0);if(n&&n!==Te)return n}else if(e.isEntityName(t)&&FS(t)){var i=e.getAncestor(t,264);return e.Debug.assert(void 0!==i),wi(t,!0)}if(e.isEntityName(t)){var a=(t=>{for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&199===r.kind&&r.qualifier===t)return r})(t);if(a){dp(a);var o=Jn(t).resolvedSymbol;return o===Te?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(t);)t=t.parent;if((e=>{for(;205===e.parent.kind;)e=e.parent;return 227===e.parent.kind})(t)){var s=0;227===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?Pi(t,s):void 0;if(c)return c}if(338===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(162===t.parent.kind&&342===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var l=e.getTypeParameterFromJsDoc(t.parent);return l&&l.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;var u=e.findAncestor(t,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));if(s=u?901119:111551,79===t.kind){if(e.isJSXTagName(t)&&Ih(t))return(f=Bh(t.parent))===Te?void 0:f;var d=Pi(t,s,!1,!u,e.getHostSignatureFromJSDoc(t));if(!d&&u){var p=e.findAncestor(t,e.or(e.isClassLike,e.isInterfaceDeclaration));if(p)return IS(t,Xi(p))}return d}if(e.isPrivateIdentifier(t))return my(t);if(205===t.kind||160===t.kind){var _=Jn(t);return _.resolvedSymbol?_.resolvedSymbol:(205===t.kind?dy(t,0):py(t,0),!_.resolvedSymbol&&u&&e.isQualifiedName(t)?IS(t):_.resolvedSymbol)}if(e.isJSDocMemberName(t))return IS(t)}else if(AS(t)){var f;return(f=Pi(t,s=177===t.parent.kind?788968:1920,!1,!0))&&f!==Te?f:$l(t)}return 176===t.parent.kind?Pi(t,1):void 0}function IS(t,r){if(e.isEntityName(t)){var n=901119,i=Pi(t,n,!1,!0,e.getHostSignatureFromJSDoc(t));if(!i&&e.isIdentifier(t)&&r&&(i=qi(Gn(Hi(r),t.escapedText,n))),i)return i}var a=e.isIdentifier(t)?r:IS(t.left),o=e.isIdentifier(t)?t.escapedText:t.right.escapedText;if(a){var s=111551&a.flags&&Lc(jo(a),"prototype");return Lc(s?jo(s):_s(a),o)}}function OS(t,r){if(303===t.kind)return e.isExternalModule(t)?qi(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(16777216&t.flags)){if(M(t)){var a=Xi(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?wh(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return Xi(n.parent);if(79===t.kind){if(FS(t))return PS(t);if(202===n.kind&&200===i.kind&&t===n.propertyName){if(o=Lc(MS(i),t.escapedText))return o}else if(e.isMetaProperty(n)){var o;if(o=Lc(MS(n),t.escapedText))return o;if(103===n.keywordToken)return Vv(n).symbol}}switch(t.kind){case 79:case 80:case 205:case 160:return PS(t);case 108:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=al(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return ix(t).symbol;case 191:return cp(t).symbol;case 106:return ix(t).symbol;case 134:var l=t.parent;return l&&170===l.kind?l.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(265===t.parent.kind||271===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return Oi(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return Xi(n);case 8:var u=e.isElementAccessExpression(n)?n.argumentExpression===t?tx(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?dp(i.objectType):void 0;return u&&Lc(u,e.escapeLeadingUnderscores(t.text));case 88:case 98:case 38:case 84:return Xi(t.parent);case 199:return e.isLiteralImportTypeNode(t)?OS(t.argument.literal,r):void 0;case 93:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(t.parent)?Uv(t.parent).symbol:void 0;case 230:return ix(t).symbol;default:return}}}function MS(t){if(e.isSourceFile(t)&&!e.isExternalModule(t))return Pe;if(16777216&t.flags)return Pe;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&is(Xi(i.class));if(e.isPartOfTypeNode(t)){var o=dp(t);return a?Is(o,a.thisType):o}if(e.isExpressionNode(t))return LS(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(ts(a));return s?Is(s,a.thisType):Pe}if(kS(t))return _s(n=Xi(t));if(79===(r=t).kind&&kS(r.parent)&&e.getNameOfDeclaration(r.parent)===r)return(n=OS(t))?_s(n):Pe;if(e.isDeclaration(t))return jo(n=Xi(t));if(M(t))return(n=OS(t))?jo(n):Pe;if(e.isBindingPattern(t))return _o(t.parent,!0)||Pe;if(FS(t)&&(n=OS(t))){var c=_s(n);return Za(c)?jo(n):c}return e.isMetaProperty(t.parent)&&t.parent.keywordToken===t.kind?Uv(t.parent):Pe}function RS(t){if(e.Debug.assert(204===t.kind||203===t.kind),243===t.parent.kind)return Pb(t,hE(t.parent)||Pe);if(220===t.parent.kind)return Pb(t,tx(t.parent.right)||Pe);if(294===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return wb(r,RS(r)||Pe,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=RS(n)||Pe,a=yE(65,i,Be,t.parent)||Pe;return Fb(n,i,n.elements.indexOf(t),a)}function LS(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),tp(tx(t))}function BS(t){var r=Xi(t.parent);return e.isStatic(t)?jo(r):_s(r)}function jS(t){var r=t.name;switch(r.kind){case 79:return np(e.idText(r));case 8:case 10:return np(r.text);case 161:var n=kh(r);return Cb(n,12288)?n:We;default:return e.Debug.fail("Unsupported property name.")}}function US(t){t=kc(t);var r=e.createSymbolTable(fc(t)),n=jc(t,0).length?wt:jc(t,1).length?Ft:void 0;return n&&e.forEach(fc(n),(e=>{r.has(e.escapedName)||r.set(e.escapedName,e)})),da(r)}function VS(t){return e.typeHasCallOrConstructSignatures(t,le)}function zS(t){if(e.isGeneratedIdentifier(t))return!1;var r=e.getParseTreeNode(t,e.isIdentifier);if(!r)return!1;var n=r.parent;return!(!n||(e.isPropertyAccessExpression(n)||e.isPropertyAssignment(n))&&n.name===r||mD(r)!==se)}function KS(t){var r=Oi(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=Vi(r),i=Hn(r=Bi(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(Ji(r),(e=>(e=Si(e))&&!!(111551&e.flags)))),i.exportsSomeValue}function WS(t,r){var n,i=e.getParseTreeNode(t,e.isIdentifier);if(i){var a=mD(i,(t=>e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name)(i));if(a){if(1048576&a.flags){var o=qi(a.exportSymbol);if(!r&&944&o.flags&&!(3&o.flags))return;a=o}var s=Yi(a);if(s){if(512&s.flags&&303===(null===(n=s.valueDeclaration)||void 0===n?void 0:n.kind)){var c=s.valueDeclaration;return c!==e.getSourceFileOfNode(i)?void 0:c}return e.findAncestor(i.parent,(t=>e.isModuleOrEnumDeclaration(t)&&Xi(t)===s))}}}}function HS(t){if(t.generatedImportReference)return t.generatedImportReference;var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=mD(r);if(Ei(n,111551)&&!ki(n))return li(n)}}function JS(t){if(418&t.flags&&t.valueDeclaration&&!e.isSourceFile(t.valueDeclaration)){var r=Hn(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||(t=>t.valueDeclaration&&e.isBindingElement(t.valueDeclaration)&&291===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind)(t)){var i=Jn(t.valueDeclaration);if(Yn(n.parent,t.escapedName,111551,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=234===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function $S(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=mD(r);if(n&&JS(n))return n.valueDeclaration}}}function GS(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=Xi(r);if(n)return JS(n)}return!1}function qS(t){switch(t.kind){case 264:return YS(Xi(t));case 266:case 267:case 269:case 274:var r=Xi(t);return!!r&&YS(r)&&!ki(r);case 271:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,qS));case 270:return!t.expression||79!==t.expression.kind||YS(Xi(t))}return!1}function XS(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||303!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&YS(Xi(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function YS(t){if(!t)return!1;var r=Di(t);return r===Te||!!(111551&r.flags)&&(e.shouldPreserveConstEnums(j)||!QS(r))}function QS(e){return Nb(e)||!!e.constEnumOnlyModule}function ZS(t,r){if(ui(t)){var n=Xi(t),i=n&&Hn(n);if(null==i?void 0:i.referenced)return!0;var a=Hn(n).target;if(a&&1&e.getEffectiveModifierFlags(t)&&111551&a.flags&&(e.shouldPreserveConstEnums(j)||!QS(a)))return!0}return!!r&&!!e.forEachChild(t,(e=>ZS(e,r)))}function eD(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=cl(Xi(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function tD(t){return!(!W||el(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function rD(t){return W&&el(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function nD(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=Xi(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(Hi(n),(t=>111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)))}function iD(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=Xi(r);return n&&fc(jo(n))||e.emptyArray}function aD(e){var t,r=e.id||0;return r<0||r>=Qr.length?0:(null===(t=Qr[r])||void 0===t?void 0:t.flags)||0}function oD(e){return nS(e.parent),Jn(e).enumMemberValue}function sD(e){switch(e.kind){case 297:case 205:case 206:return!0}return!1}function cD(t){if(297===t.kind)return oD(t);var r=Jn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return oD(n)}}function lD(e){return!!(524288&e.flags)&&jc(e,0).length>0}function uD(t,r){var n,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=Pi(e.getFirstIdentifier(a),111551,!0,!0,r);o=!!(null===(n=null==s?void 0:s.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=Pi(a,111551,!0,!0,r),l=c&&2097152&c.flags?Di(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=Pi(a,788968,!0,!1,r);if(l&&l===u){var d=yu(!1);if(d&&l===d)return e.TypeReferenceSerializationKind.Promise;var p=jo(l);if(p&&qo(p))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var _=_s(u);return Za(_)?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&_.flags?e.TypeReferenceSerializationKind.ObjectType:Cb(_,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Cb(_,528)?e.TypeReferenceSerializationKind.BooleanType:Cb(_,296)?e.TypeReferenceSerializationKind.NumberLikeType:Cb(_,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Cb(_,402653316)?e.TypeReferenceSerializationKind.StringLikeType:uf(_)?e.TypeReferenceSerializationKind.ArrayLikeType:Cb(_,12288)?e.TypeReferenceSerializationKind.ESSymbolType:lD(_)?e.TypeReferenceSerializationKind.TypeWithCallSignature:W_(_)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function dD(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(130);var s=Xi(o),c=!s||133120&s.flags?Pe:of(jo(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=xf(c)),re.typeToTypeNode(c,r,1024|n,i)}function pD(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(130);var o=al(a);return re.typeToTypeNode(_l(o),r,1024|n,i)}function _D(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(130);var o=Bf(LS(a));return re.typeToTypeNode(o,r,1024|n,i)}function fD(t){return ne.has(e.escapeLeadingUnderscores(t))}function mD(t,r){var n=Jn(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Xa(a))}return Yn(i,t.escapedText,3257279,void 0,void 0,!0)}function gD(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=mD(r);if(n)return ra(n).valueDeclaration}}}function hD(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&rp(jo(Xi(t)))}function yD(t,r){return((t,r,n)=>{var i=1024&t.flags?re.symbolToExpression(t.symbol,111551,r,void 0,n):t===qe?e.factory.createTrue():t===$e&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)})(jo(Xi(t)),t,r)}function vD(t){return t?(Tn(t),e.getSourceFileOfNode(t).localJsxFactory||vr):vr}function bD(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,U),r.localJsxFragmentFactory}}if(j.jsxFragmentFactory)return e.parseIsolatedEntityName(j.jsxFragmentFactory,U)}function xD(t){var r=260===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=Mi(r,r,void 0);if(n)return e.getDeclarationOfKind(n,303)}function ED(t,r){if((i&r)!==r&&j.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,j)&&!(8388608&t.flags)){var a=(d=t,s||(s=Ri(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,d)||Te),s);if(a!==Te)for(var o=r&~i,c=1;c<=4194304;c<<=1)if(o&c){var l=SD(c),u=Gn(a.exports,e.escapeLeadingUnderscores(l),111551);u?524288&c?e.some(cl(u),(e=>Yv(e)>3))||wn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,4):1048576&c?e.some(cl(u),(e=>Yv(e)>4))||wn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,5):1024&c&&(e.some(cl(u),(e=>Yv(e)>2))||wn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,3)):wn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l)}i|=r}}var d}function SD(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function DD(t){return(t=>{if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 168!==t.kind||e.nodeIsPresent(t.body)?GD(t,e.Diagnostics.Decorators_are_not_valid_here):GD(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(171===t.kind||172===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return GD(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1})(t)||(t=>{var r,n,i,a,o,s=(t=>!!t.modifiers&&((t=>{switch(t.kind){case 171:case 172:case 170:case 166:case 165:case 168:case 167:case 175:case 260:case 265:case 264:case 271:case 270:case 212:case 213:case 163:return!1;default:if(261===t.parent.kind||303===t.parent.kind)return!1;switch(t.kind){case 255:return TD(t,131);case 256:case 179:return TD(t,126);case 257:case 236:case 258:case 169:return!0;case 259:return TD(t,85);default:e.Debug.fail()}}})(t)?GD(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0))(t);if(void 0!==s)return s;for(var c=0,l=0,u=t.modifiers;l<u.length;l++){var d=u[l];if(144!==d.kind){if(165===t.kind||167===t.kind)return XD(d,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(d.kind));if(175===t.kind&&(124!==d.kind||!e.isClassLike(t.parent)))return XD(d,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(d.kind))}switch(d.kind){case 85:if(259!==t.kind)return XD(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 158:if(16384&c)return XD(d,e.Diagnostics._0_modifier_already_seen,"override");if(2&c)return XD(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(256&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");c|=16384,o=d;break;case 123:case 122:case 121:var p=ja(e.modifierToFlag(d.kind));if(28&c)return XD(d,e.Diagnostics.Accessibility_modifier_already_seen);if(16384&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"override");if(32&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"static");if(64&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"readonly");if(256&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"async");if(261===t.parent.kind||303===t.parent.kind)return XD(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,p);if(128&c)return 121===d.kind?XD(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,p,"abstract"):XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,p,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(t))return XD(d,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);c|=e.modifierToFlag(d.kind);break;case 124:if(32&c)return XD(d,e.Diagnostics._0_modifier_already_seen,"static");if(64&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(261===t.parent.kind||303===t.parent.kind)return XD(d,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(163===t.kind)return XD(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&c)return XD(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");c|=32,r=d;break;case 144:if(64&c)return XD(d,e.Diagnostics._0_modifier_already_seen,"readonly");if(166!==t.kind&&165!==t.kind&&175!==t.kind&&163!==t.kind)return XD(d,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);c|=64,a=d;break;case 93:if(1&c)return XD(d,e.Diagnostics._0_modifier_already_seen,"export");if(2&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(t.parent))return XD(d,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(163===t.kind)return XD(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");c|=1;break;case 88:var _=303===t.parent.kind?t.parent:t.parent.parent;if(260===_.kind&&!e.isAmbientModule(_))return XD(d,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(1&c))return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");c|=512;break;case 135:if(2&c)return XD(d,e.Diagnostics._0_modifier_already_seen,"declare");if(256&c)return XD(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&c)return XD(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(t.parent)&&!e.isPropertyDeclaration(t))return XD(d,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(163===t.kind)return XD(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(8388608&t.parent.flags&&261===t.parent.kind)return XD(d,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(t))return XD(d,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");c|=2,n=d;break;case 126:if(128&c)return XD(d,e.Diagnostics._0_modifier_already_seen,"abstract");if(256!==t.kind&&179!==t.kind){if(168!==t.kind&&166!==t.kind&&171!==t.kind&&172!==t.kind)return XD(d,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(256!==t.parent.kind||!e.hasSyntacticModifier(t.parent,128))return XD(d,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&c)return XD(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&c)return XD(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(256&c&&i)return XD(i,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&c)return XD(d,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(t)&&80===t.name.kind)return XD(d,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");c|=128;break;case 131:if(256&c)return XD(d,e.Diagnostics._0_modifier_already_seen,"async");if(2&c||8388608&t.parent.flags)return XD(d,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(163===t.kind)return XD(d,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(128&c)return XD(d,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");c|=256,i=d}}return 170===t.kind?32&c?XD(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&c?XD(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):16384&c?XD(o,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):256&c?XD(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&c)&&XD(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):(265===t.kind||264===t.kind)&&2&c?XD(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):163===t.kind&&16476&c&&e.isBindingPattern(t.name)?XD(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):163===t.kind&&16476&c&&t.dotDotDotToken?XD(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(256&c)&&((t,r)=>{switch(t.kind){case 168:case 255:case 212:case 213:return!1}return XD(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")})(t,i)})(t)}function TD(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function CD(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&qD(t[0],t.end-",".length,",".length,r)}function kD(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return qD(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function AD(t){var r=e.getSourceFileOfNode(t);return DD(t)||kD(t.typeParameters,r)||(t=>{for(var r=!1,n=t.length,i=0;i<n;i++){var a=t[i];if(a.dotDotDotToken){if(i!==n-1)return XD(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(8388608&a.flags||CD(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.questionToken)return XD(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return XD(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(el(a)){if(r=!0,a.questionToken&&a.initializer)return XD(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return XD(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}})(t.parameters)||((t,r)=>{if(!e.isArrowFunction(t))return!1;t.typeParameters&&!(e.length(t.typeParameters)>1||t.typeParameters.hasTrailingComma||t.typeParameters[0].constraint)&&r&&e.fileExtensionIsOneOf(r.fileName,[".mts",".cts"])&&XD(t.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var n=t.equalsGreaterThanToken;return e.getLineAndCharacterOfPosition(r,n.pos).line!==e.getLineAndCharacterOfPosition(r,n.end).line&&XD(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)})(t,r)||e.isFunctionLikeDeclaration(t)&&(t=>{if(U>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(a=t.parameters,e.filter(a,(t=>!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t))));if(e.length(n)){e.forEach(n,(t=>{e.addRelatedInfo(wn(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))}));var i=n.map(((t,r)=>0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)));return e.addRelatedInfo.apply(void 0,Il([wn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],i,!1)),!0}}}var a;return!1})(t)}function ND(t,r){return CD(r)||((t,r)=>{if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return qD(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1})(t,r)}function wD(t){return(t=>{if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(226===i.kind)return qD(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1})(t)}function FD(t){var r=t.types;if(CD(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return qD(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,PD)}function PD(e){return ND(e,e.typeArguments)}function ID(t){if(161!==t.kind)return!1;var r=t;return 220===r.expression.kind&&27===r.expression.operatorToken.kind&&XD(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function OD(t){if(t.asteriskToken){if(e.Debug.assert(255===t.kind||212===t.kind||168===t.kind),8388608&t.flags)return XD(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return XD(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function MD(e,t){return!!e&&XD(e,t)}function RD(e,t){return!!e&&XD(e,t)}function LD(t){if(QD(t))return!0;if(243===t.kind&&t.awaitModifier&&!(32768&t.flags)){var r=e.getSourceFileOfNode(t);if(e.isInTopLevelContext(t))$D(r)||(e.isEffectiveExternalModule(r,j)||_n.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),(V!==e.ModuleKind.ES2022&&V!==e.ModuleKind.ESNext&&V!==e.ModuleKind.System&&(V!==e.ModuleKind.NodeNext||e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.ESNext)||U<4)&&_n.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)));else if(!$D(r)){var n=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(t);if(i&&170!==i.kind){e.Debug.assert(0==(2&e.getFunctionFlags(i)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(n,a)}return _n.add(n),!0}return!1}if(e.isForOfStatement(t)&&!(32768&t.flags)&&e.isIdentifier(t.initializer)&&"async"===t.initializer.escapedText)return XD(t.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(254===t.initializer.kind){var o=t.initializer;if(!HD(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1)return n=242===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement,GD(o.declarations[1],n);var c=s[0];if(c.initializer)return n=242===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer,XD(c.name,n);if(c.type)return XD(c,n=242===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function BD(t){if(t.parameters.length===(171===t.kind?1:2))return e.getThisParameter(t)}function jD(t,r){if((t=>e.isDynamicName(t)&&!Ds(t))(t))return XD(t,r)}function UD(t){if(AD(t))return!0;if(168===t.kind){if(204===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||131!==e.first(t.modifiers).kind))return GD(t,e.Diagnostics.Modifiers_cannot_appear_here);if(MD(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(RD(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return qD(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(OD(t))return!0}if(e.isClassLike(t.parent)){if(U<2&&e.isPrivateIdentifier(t.name))return XD(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(8388608&t.flags)return jD(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(168===t.kind&&!t.body)return jD(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(257===t.parent.kind)return jD(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(181===t.parent.kind)return jD(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function VD(t){return e.isStringOrNumericLiteralLike(t)||218===t.kind&&40===t.operator&&8===t.operand.kind}function zD(t){var r,n=t.initializer;if(n){var i=!(VD(n)||(t=>{if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&VD(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&Ub(t).flags)})(n)||110===n.kind||95===n.kind||(r=n,9===r.kind||218===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return XD(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return XD(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return XD(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function KD(t){if(79===t.kind){if("__esModule"===e.idText(t))return a=t,o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!$D(e.getSourceFileOfNode(a))&&(An("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];if(!e.isOmittedExpression(i))return KD(i.name)}var a,o;return!1}function WD(t){if(79===t.kind){if(119===t.originalKeywordKind)return XD(t,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];e.isOmittedExpression(i)||WD(i.name)}return!1}function HD(t){var r=t.declarations;return!!CD(t.declarations)||!t.declarations.length&&qD(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function JD(e){switch(e.kind){case 238:case 239:case 240:case 247:case 241:case 242:case 243:return!1;case 249:return JD(e.parent)}return!0}function $D(e){return e.parseDiagnostics.length>0}function GD(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!$D(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return _n.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function qD(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!$D(c)&&(_n.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function XD(t,r,n,i,a){return!$D(e.getSourceFileOfNode(t))&&(_n.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function YD(t){return 257!==t.kind&&258!==t.kind&&265!==t.kind&&264!==t.kind&&271!==t.kind&&270!==t.kind&&263!==t.kind&&!e.hasSyntacticModifier(t,515)&&GD(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function QD(t){if(8388608&t.flags){if(!Jn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return Jn(t).hasReportedStatementInAmbientContext=GD(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(234===t.parent.kind||261===t.parent.kind||303===t.parent.kind){var r=Jn(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=GD(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ZD(t){if(32&t.numericLiteralFlags){var r=void 0;if(U>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,195)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,297)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return XD(n?t.parent:t,r,i)}}return(t=>{if(!(16&t.numericLiteralFlags||t.text.length<=15||-1!==t.text.indexOf("."))){var r=+e.getTextOfNode(t);r<=Math.pow(2,53)-1&&r+1>r||Fn(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}})(t),!1}function eT(t){return!!e.forEach(t.elements,(t=>{if(t.isTypeOnly)return GD(t,269===t.kind?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function tT(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=Im(r,t);if(a)return a;var o=fc(t);if(o){var s=wm(o,r);if(s)return C_(r,e.map(s,(e=>[()=>jo(e),e.escapedName])),n,void 0,i)}}}},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(k||(k={})),e.signatureHasRestParameter=L,e.signatureHasLiteralTypes=B}(Fl),(e=>{function t(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,n),a):void 0}function r(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s,c=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var l=-1,u=-1;(i>0||a<c)&&(o=[],s=t.hasTrailingComma&&i+a===c);for(var d=0;d<a;d++){var p=t[d+i],_=void 0!==p?r(p):void 0;if((void 0!==o||void 0===_||_!==p)&&(void 0===o&&(o=t.slice(0,d),s=t.hasTrailingComma,l=t.pos,u=t.end),_))if(e.isArray(_))for(var f=0,m=_;f<m.length;f++){var g=m[f];e.Debug.assertNode(g,n),o.push(g)}else e.Debug.assertNode(_,n),o.push(_)}if(o){var h=e.factory.createNodeArray(o,s);return e.setTextRangePosEnd(h,l,u),h}return t}function n(t,n,i,a,o,s){return void 0===s&&(s=r),i.startLexicalEnvironment(),t=s(t,n,e.isStatement,a),o&&(t=i.factory.ensureUseStrict(t)),e.factory.mergeLexicalEnvironment(t,i.endLexicalEnvironment())}function i(t,n,i,o){var s;return void 0===o&&(o=r),i.startLexicalEnvironment(),t&&(i.setLexicalEnvironmentFlags(1,!0),s=o(t,n,e.isParameterDeclaration),2&i.getLexicalEnvironmentFlags()&&e.getEmitScriptTarget(i.getCompilerOptions())>=2&&(s=((t,r)=>{for(var n,i=0;i<t.length;i++){var o=t[i],s=a(o,r);(n||s!==o)&&(n||(n=t.slice(0,i)),n[i]=s)}return n?e.setTextRange(r.factory.createNodeArray(n,t.hasTrailingComma),t):t})(s,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),s}function a(t,r){return t.dotDotDotToken?t:e.isBindingPattern(t.name)?((e,t)=>{var r=t.factory;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)})(t,r):t.initializer?((t,r,n,i)=>{var a=i.factory;return i.addInitializationStatement(a.createIfStatement(a.createTypeCheck(a.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(a.createBlock([a.createExpressionStatement(e.setEmitFlags(e.setTextRange(a.createAssignment(e.setEmitFlags(a.cloneNode(r),48),e.setEmitFlags(n,1584|e.getEmitFlags(n))),t),1536))]),t),1953))),a.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,void 0)})(t,t.name,t.initializer,r):t}function o(r,n,i,a){void 0===a&&(a=t),i.resumeLexicalEnvironment();var o=a(r,n,e.isConciseBody),s=i.endLexicalEnvironment();if(e.some(s)){if(!o)return i.factory.createBlock(s);var c=i.factory.converters.convertToFunctionBlock(o),l=e.factory.mergeLexicalEnvironment(c.statements,s);return i.factory.updateBlock(c,l)}return o}function s(r,n,i){i.startBlockScope();var a=t(r,n,e.isStatement,i.factory.liftToBlock),o=i.endBlockScope();return e.some(o)?e.isBlock(a)?(o.push.apply(o,a.statements),i.factory.updateBlock(a,o)):(o.push(a),i.factory.createBlock(o)):a}function c(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=r,e.visitLexicalEnvironment=n,e.visitParameterList=i,e.visitFunctionBody=o,e.visitIterationBody=s,e.visitEachChild=(a,c,l,u,d,p)=>{if(void 0===u&&(u=r),void 0===p&&(p=t),void 0!==a){var _=a.kind;if(_>0&&_<=159||191===_)return a;var f=l.factory;switch(_){case 79:return e.Debug.type(a),f.updateIdentifier(a,u(a.typeArguments,c,e.isTypeNodeOrTypeParameterDeclaration));case 160:return e.Debug.type(a),f.updateQualifiedName(a,p(a.left,c,e.isEntityName),p(a.right,c,e.isIdentifier));case 161:return e.Debug.type(a),f.updateComputedPropertyName(a,p(a.expression,c,e.isExpression));case 162:return e.Debug.type(a),f.updateTypeParameterDeclaration(a,p(a.name,c,e.isIdentifier),p(a.constraint,c,e.isTypeNode),p(a.default,c,e.isTypeNode));case 163:return e.Debug.type(a),f.updateParameterDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.dotDotDotToken,d,e.isDotDotDotToken),p(a.name,c,e.isBindingName),p(a.questionToken,d,e.isQuestionToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 164:return e.Debug.type(a),f.updateDecorator(a,p(a.expression,c,e.isExpression));case 165:return e.Debug.type(a),f.updatePropertySignature(a,u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isToken),p(a.type,c,e.isTypeNode));case 166:return e.Debug.type(a),f.updatePropertyDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken||a.exclamationToken,d,e.isQuestionOrExclamationToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 167:return e.Debug.type(a),f.updateMethodSignature(a,u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 168:return e.Debug.type(a),f.updateMethodDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 170:return e.Debug.type(a),f.updateConstructorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),i(a.parameters,c,l,u),o(a.body,c,l,p));case 171:return e.Debug.type(a),f.updateGetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 172:return e.Debug.type(a),f.updateSetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),o(a.body,c,l,p));case 169:return e.Debug.type(a),l.startLexicalEnvironment(),l.suspendLexicalEnvironment(),f.updateClassStaticBlockDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),o(a.body,c,l,p));case 173:return e.Debug.type(a),f.updateCallSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 174:return e.Debug.type(a),f.updateConstructSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 175:return e.Debug.type(a),f.updateIndexSignature(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 176:return e.Debug.type(a),f.updateTypePredicateNode(a,p(a.assertsModifier,c,e.isAssertsKeyword),p(a.parameterName,c,e.isIdentifierOrThisTypeNode),p(a.type,c,e.isTypeNode));case 177:return e.Debug.type(a),f.updateTypeReferenceNode(a,p(a.typeName,c,e.isEntityName),u(a.typeArguments,c,e.isTypeNode));case 178:return e.Debug.type(a),f.updateFunctionTypeNode(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 179:return e.Debug.type(a),f.updateConstructorTypeNode(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 180:return e.Debug.type(a),f.updateTypeQueryNode(a,p(a.exprName,c,e.isEntityName));case 181:return e.Debug.type(a),f.updateTypeLiteralNode(a,u(a.members,c,e.isTypeElement));case 182:return e.Debug.type(a),f.updateArrayTypeNode(a,p(a.elementType,c,e.isTypeNode));case 183:return e.Debug.type(a),f.updateTupleTypeNode(a,u(a.elements,c,e.isTypeNode));case 184:return e.Debug.type(a),f.updateOptionalTypeNode(a,p(a.type,c,e.isTypeNode));case 185:return e.Debug.type(a),f.updateRestTypeNode(a,p(a.type,c,e.isTypeNode));case 186:return e.Debug.type(a),f.updateUnionTypeNode(a,u(a.types,c,e.isTypeNode));case 187:return e.Debug.type(a),f.updateIntersectionTypeNode(a,u(a.types,c,e.isTypeNode));case 188:return e.Debug.type(a),f.updateConditionalTypeNode(a,p(a.checkType,c,e.isTypeNode),p(a.extendsType,c,e.isTypeNode),p(a.trueType,c,e.isTypeNode),p(a.falseType,c,e.isTypeNode));case 189:return e.Debug.type(a),f.updateInferTypeNode(a,p(a.typeParameter,c,e.isTypeParameterDeclaration));case 199:return e.Debug.type(a),f.updateImportTypeNode(a,p(a.argument,c,e.isTypeNode),p(a.qualifier,c,e.isEntityName),r(a.typeArguments,c,e.isTypeNode),a.isTypeOf);case 196:return e.Debug.type(a),f.updateNamedTupleMember(a,t(a.dotDotDotToken,c,e.isDotDotDotToken),t(a.name,c,e.isIdentifier),t(a.questionToken,c,e.isQuestionToken),t(a.type,c,e.isTypeNode));case 190:return e.Debug.type(a),f.updateParenthesizedType(a,p(a.type,c,e.isTypeNode));case 192:return e.Debug.type(a),f.updateTypeOperatorNode(a,p(a.type,c,e.isTypeNode));case 193:return e.Debug.type(a),f.updateIndexedAccessTypeNode(a,p(a.objectType,c,e.isTypeNode),p(a.indexType,c,e.isTypeNode));case 194:return e.Debug.type(a),f.updateMappedTypeNode(a,p(a.readonlyToken,d,e.isReadonlyKeywordOrPlusOrMinusToken),p(a.typeParameter,c,e.isTypeParameterDeclaration),p(a.nameType,c,e.isTypeNode),p(a.questionToken,d,e.isQuestionOrPlusOrMinusToken),p(a.type,c,e.isTypeNode),u(a.members,c,e.isTypeElement));case 195:return e.Debug.type(a),f.updateLiteralTypeNode(a,p(a.literal,c,e.isExpression));case 197:return e.Debug.type(a),f.updateTemplateLiteralType(a,p(a.head,c,e.isTemplateHead),u(a.templateSpans,c,e.isTemplateLiteralTypeSpan));case 198:return e.Debug.type(a),f.updateTemplateLiteralTypeSpan(a,p(a.type,c,e.isTypeNode),p(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 200:return e.Debug.type(a),f.updateObjectBindingPattern(a,u(a.elements,c,e.isBindingElement));case 201:return e.Debug.type(a),f.updateArrayBindingPattern(a,u(a.elements,c,e.isArrayBindingElement));case 202:return e.Debug.type(a),f.updateBindingElement(a,p(a.dotDotDotToken,d,e.isDotDotDotToken),p(a.propertyName,c,e.isPropertyName),p(a.name,c,e.isBindingName),p(a.initializer,c,e.isExpression));case 203:return e.Debug.type(a),f.updateArrayLiteralExpression(a,u(a.elements,c,e.isExpression));case 204:return e.Debug.type(a),f.updateObjectLiteralExpression(a,u(a.properties,c,e.isObjectLiteralElementLike));case 205:return 32&a.flags?(e.Debug.type(a),f.updatePropertyAccessChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),p(a.name,c,e.isMemberName))):(e.Debug.type(a),f.updatePropertyAccessExpression(a,p(a.expression,c,e.isExpression),p(a.name,c,e.isMemberName)));case 206:return 32&a.flags?(e.Debug.type(a),f.updateElementAccessChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),p(a.argumentExpression,c,e.isExpression))):(e.Debug.type(a),f.updateElementAccessExpression(a,p(a.expression,c,e.isExpression),p(a.argumentExpression,c,e.isExpression)));case 207:return 32&a.flags?(e.Debug.type(a),f.updateCallChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression))):(e.Debug.type(a),f.updateCallExpression(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression)));case 208:return e.Debug.type(a),f.updateNewExpression(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression));case 209:return e.Debug.type(a),f.updateTaggedTemplateExpression(a,p(a.tag,c,e.isExpression),r(a.typeArguments,c,e.isTypeNode),p(a.template,c,e.isTemplateLiteral));case 210:return e.Debug.type(a),f.updateTypeAssertion(a,p(a.type,c,e.isTypeNode),p(a.expression,c,e.isExpression));case 211:return e.Debug.type(a),f.updateParenthesizedExpression(a,p(a.expression,c,e.isExpression));case 212:return e.Debug.type(a),f.updateFunctionExpression(a,u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 213:return e.Debug.type(a),f.updateArrowFunction(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),p(a.equalsGreaterThanToken,d,e.isEqualsGreaterThanToken),o(a.body,c,l,p));case 214:return e.Debug.type(a),f.updateDeleteExpression(a,p(a.expression,c,e.isExpression));case 215:return e.Debug.type(a),f.updateTypeOfExpression(a,p(a.expression,c,e.isExpression));case 216:return e.Debug.type(a),f.updateVoidExpression(a,p(a.expression,c,e.isExpression));case 217:return e.Debug.type(a),f.updateAwaitExpression(a,p(a.expression,c,e.isExpression));case 218:return e.Debug.type(a),f.updatePrefixUnaryExpression(a,p(a.operand,c,e.isExpression));case 219:return e.Debug.type(a),f.updatePostfixUnaryExpression(a,p(a.operand,c,e.isExpression));case 220:return e.Debug.type(a),f.updateBinaryExpression(a,p(a.left,c,e.isExpression),p(a.operatorToken,d,e.isBinaryOperatorToken),p(a.right,c,e.isExpression));case 221:return e.Debug.type(a),f.updateConditionalExpression(a,p(a.condition,c,e.isExpression),p(a.questionToken,d,e.isQuestionToken),p(a.whenTrue,c,e.isExpression),p(a.colonToken,d,e.isColonToken),p(a.whenFalse,c,e.isExpression));case 222:return e.Debug.type(a),f.updateTemplateExpression(a,p(a.head,c,e.isTemplateHead),u(a.templateSpans,c,e.isTemplateSpan));case 223:return e.Debug.type(a),f.updateYieldExpression(a,p(a.asteriskToken,d,e.isAsteriskToken),p(a.expression,c,e.isExpression));case 224:return e.Debug.type(a),f.updateSpreadElement(a,p(a.expression,c,e.isExpression));case 225:return e.Debug.type(a),f.updateClassExpression(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 227:return e.Debug.type(a),f.updateExpressionWithTypeArguments(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode));case 228:return e.Debug.type(a),f.updateAsExpression(a,p(a.expression,c,e.isExpression),p(a.type,c,e.isTypeNode));case 229:return 32&a.flags?(e.Debug.type(a),f.updateNonNullChain(a,p(a.expression,c,e.isExpression))):(e.Debug.type(a),f.updateNonNullExpression(a,p(a.expression,c,e.isExpression)));case 230:return e.Debug.type(a),f.updateMetaProperty(a,p(a.name,c,e.isIdentifier));case 232:return e.Debug.type(a),f.updateTemplateSpan(a,p(a.expression,c,e.isExpression),p(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 234:return e.Debug.type(a),f.updateBlock(a,u(a.statements,c,e.isStatement));case 236:return e.Debug.type(a),f.updateVariableStatement(a,u(a.modifiers,c,e.isModifier),p(a.declarationList,c,e.isVariableDeclarationList));case 237:return e.Debug.type(a),f.updateExpressionStatement(a,p(a.expression,c,e.isExpression));case 238:return e.Debug.type(a),f.updateIfStatement(a,p(a.expression,c,e.isExpression),p(a.thenStatement,c,e.isStatement,f.liftToBlock),p(a.elseStatement,c,e.isStatement,f.liftToBlock));case 239:return e.Debug.type(a),f.updateDoStatement(a,s(a.statement,c,l),p(a.expression,c,e.isExpression));case 240:return e.Debug.type(a),f.updateWhileStatement(a,p(a.expression,c,e.isExpression),s(a.statement,c,l));case 241:return e.Debug.type(a),f.updateForStatement(a,p(a.initializer,c,e.isForInitializer),p(a.condition,c,e.isExpression),p(a.incrementor,c,e.isExpression),s(a.statement,c,l));case 242:return e.Debug.type(a),f.updateForInStatement(a,p(a.initializer,c,e.isForInitializer),p(a.expression,c,e.isExpression),s(a.statement,c,l));case 243:return e.Debug.type(a),f.updateForOfStatement(a,p(a.awaitModifier,d,e.isAwaitKeyword),p(a.initializer,c,e.isForInitializer),p(a.expression,c,e.isExpression),s(a.statement,c,l));case 244:return e.Debug.type(a),f.updateContinueStatement(a,p(a.label,c,e.isIdentifier));case 245:return e.Debug.type(a),f.updateBreakStatement(a,p(a.label,c,e.isIdentifier));case 246:return e.Debug.type(a),f.updateReturnStatement(a,p(a.expression,c,e.isExpression));case 247:return e.Debug.type(a),f.updateWithStatement(a,p(a.expression,c,e.isExpression),p(a.statement,c,e.isStatement,f.liftToBlock));case 248:return e.Debug.type(a),f.updateSwitchStatement(a,p(a.expression,c,e.isExpression),p(a.caseBlock,c,e.isCaseBlock));case 249:return e.Debug.type(a),f.updateLabeledStatement(a,p(a.label,c,e.isIdentifier),p(a.statement,c,e.isStatement,f.liftToBlock));case 250:return e.Debug.type(a),f.updateThrowStatement(a,p(a.expression,c,e.isExpression));case 251:return e.Debug.type(a),f.updateTryStatement(a,p(a.tryBlock,c,e.isBlock),p(a.catchClause,c,e.isCatchClause),p(a.finallyBlock,c,e.isBlock));case 253:return e.Debug.type(a),f.updateVariableDeclaration(a,p(a.name,c,e.isBindingName),p(a.exclamationToken,d,e.isExclamationToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 254:return e.Debug.type(a),f.updateVariableDeclarationList(a,u(a.declarations,c,e.isVariableDeclaration));case 255:return e.Debug.type(a),f.updateFunctionDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 256:return e.Debug.type(a),f.updateClassDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 257:return e.Debug.type(a),f.updateInterfaceDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isTypeElement));case 258:return e.Debug.type(a),f.updateTypeAliasDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),p(a.type,c,e.isTypeNode));case 259:return e.Debug.type(a),f.updateEnumDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.members,c,e.isEnumMember));case 260:return e.Debug.type(a),f.updateModuleDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isModuleName),p(a.body,c,e.isModuleBody));case 261:return e.Debug.type(a),f.updateModuleBlock(a,u(a.statements,c,e.isStatement));case 262:return e.Debug.type(a),f.updateCaseBlock(a,u(a.clauses,c,e.isCaseOrDefaultClause));case 263:return e.Debug.type(a),f.updateNamespaceExportDeclaration(a,p(a.name,c,e.isIdentifier));case 264:return e.Debug.type(a),f.updateImportEqualsDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),a.isTypeOnly,p(a.name,c,e.isIdentifier),p(a.moduleReference,c,e.isModuleReference));case 265:return e.Debug.type(a),f.updateImportDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.importClause,c,e.isImportClause),p(a.moduleSpecifier,c,e.isExpression),p(a.assertClause,c,e.isAssertClause));case 292:return e.Debug.type(a),f.updateAssertClause(a,u(a.elements,c,e.isAssertEntry),a.multiLine);case 293:return e.Debug.type(a),f.updateAssertEntry(a,p(a.name,c,e.isAssertionKey),p(a.value,c,e.isStringLiteral));case 266:return e.Debug.type(a),f.updateImportClause(a,a.isTypeOnly,p(a.name,c,e.isIdentifier),p(a.namedBindings,c,e.isNamedImportBindings));case 267:return e.Debug.type(a),f.updateNamespaceImport(a,p(a.name,c,e.isIdentifier));case 273:return e.Debug.type(a),f.updateNamespaceExport(a,p(a.name,c,e.isIdentifier));case 268:return e.Debug.type(a),f.updateNamedImports(a,u(a.elements,c,e.isImportSpecifier));case 269:return e.Debug.type(a),f.updateImportSpecifier(a,a.isTypeOnly,p(a.propertyName,c,e.isIdentifier),p(a.name,c,e.isIdentifier));case 270:return e.Debug.type(a),f.updateExportAssignment(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.expression,c,e.isExpression));case 271:return e.Debug.type(a),f.updateExportDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),a.isTypeOnly,p(a.exportClause,c,e.isNamedExportBindings),p(a.moduleSpecifier,c,e.isExpression),p(a.assertClause,c,e.isAssertClause));case 272:return e.Debug.type(a),f.updateNamedExports(a,u(a.elements,c,e.isExportSpecifier));case 274:return e.Debug.type(a),f.updateExportSpecifier(a,a.isTypeOnly,p(a.propertyName,c,e.isIdentifier),p(a.name,c,e.isIdentifier));case 276:return e.Debug.type(a),f.updateExternalModuleReference(a,p(a.expression,c,e.isExpression));case 277:return e.Debug.type(a),f.updateJsxElement(a,p(a.openingElement,c,e.isJsxOpeningElement),u(a.children,c,e.isJsxChild),p(a.closingElement,c,e.isJsxClosingElement));case 278:return e.Debug.type(a),f.updateJsxSelfClosingElement(a,p(a.tagName,c,e.isJsxTagNameExpression),u(a.typeArguments,c,e.isTypeNode),p(a.attributes,c,e.isJsxAttributes));case 279:return e.Debug.type(a),f.updateJsxOpeningElement(a,p(a.tagName,c,e.isJsxTagNameExpression),u(a.typeArguments,c,e.isTypeNode),p(a.attributes,c,e.isJsxAttributes));case 280:return e.Debug.type(a),f.updateJsxClosingElement(a,p(a.tagName,c,e.isJsxTagNameExpression));case 281:return e.Debug.type(a),f.updateJsxFragment(a,p(a.openingFragment,c,e.isJsxOpeningFragment),u(a.children,c,e.isJsxChild),p(a.closingFragment,c,e.isJsxClosingFragment));case 284:return e.Debug.type(a),f.updateJsxAttribute(a,p(a.name,c,e.isIdentifier),p(a.initializer,c,e.isStringLiteralOrJsxExpression));case 285:return e.Debug.type(a),f.updateJsxAttributes(a,u(a.properties,c,e.isJsxAttributeLike));case 286:return e.Debug.type(a),f.updateJsxSpreadAttribute(a,p(a.expression,c,e.isExpression));case 287:return e.Debug.type(a),f.updateJsxExpression(a,p(a.expression,c,e.isExpression));case 288:return e.Debug.type(a),f.updateCaseClause(a,p(a.expression,c,e.isExpression),u(a.statements,c,e.isStatement));case 289:return e.Debug.type(a),f.updateDefaultClause(a,u(a.statements,c,e.isStatement));case 290:return e.Debug.type(a),f.updateHeritageClause(a,u(a.types,c,e.isExpressionWithTypeArguments));case 291:return e.Debug.type(a),f.updateCatchClause(a,p(a.variableDeclaration,c,e.isVariableDeclaration),p(a.block,c,e.isBlock));case 294:return e.Debug.type(a),f.updatePropertyAssignment(a,p(a.name,c,e.isPropertyName),p(a.initializer,c,e.isExpression));case 295:return e.Debug.type(a),f.updateShorthandPropertyAssignment(a,p(a.name,c,e.isIdentifier),p(a.objectAssignmentInitializer,c,e.isExpression));case 296:return e.Debug.type(a),f.updateSpreadAssignment(a,p(a.expression,c,e.isExpression));case 297:return e.Debug.type(a),f.updateEnumMember(a,p(a.name,c,e.isPropertyName),p(a.initializer,c,e.isExpression));case 303:return e.Debug.type(a),f.updateSourceFile(a,n(a.statements,c,l));case 348:return e.Debug.type(a),f.updatePartiallyEmittedExpression(a,p(a.expression,c,e.isExpression));case 349:return e.Debug.type(a),f.updateCommaListExpression(a,u(a.elements,c,e.isExpression));default:return a}}}})(Fl),(e=>{e.createSourceMapGenerator=(t,r,n,i,o)=>{var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=l.enter,d=l.exit,p=[],_=[],f=new e.Map,m=[],g=[],h="",y=0,v=0,b=0,x=0,E=0,S=0,D=!1,T=0,C=0,k=0,A=0,N=0,w=0,F=!1,P=!1,I=!1;return{getSources:()=>p,addSource:O,setSourceContent:M,addName:R,addMapping:L,appendSourceMap(t,r,n,i,o,s){e.Debug.assert(t>=T,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),u();for(var c,l=[],p=a(n.mappings),_=p.next();!_.done;_=p.next()){var f=_.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine<o.line||o.line===f.generatedLine&&f.generatedCharacter<o.character)){var m=void 0,g=void 0,h=void 0,y=void 0;if(void 0!==f.sourceIndex){if(void 0===(m=l[f.sourceIndex])){var v=n.sources[f.sourceIndex],b=n.sourceRoot?e.combinePaths(n.sourceRoot,v):v,x=e.combinePaths(e.getDirectoryPath(i),b);l[f.sourceIndex]=m=O(x),n.sourcesContent&&"string"==typeof n.sourcesContent[f.sourceIndex]&&M(m,n.sourcesContent[f.sourceIndex])}g=f.sourceLine,h=f.sourceCharacter,n.names&&void 0!==f.nameIndex&&(c||(c=[]),void 0===(y=c[f.nameIndex])&&(c[f.nameIndex]=y=R(n.names[f.nameIndex])))}var E=f.generatedLine-(o?o.line:0),S=E+t,D=o&&o.line===f.generatedLine?f.generatedCharacter-o.character:f.generatedCharacter;L(S,0===E?D+r:D,m,g,h,y)}}d()},toJSON:V,toString:()=>JSON.stringify(V())};function O(r){u();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,!0),a=f.get(n);return void 0===a&&(a=_.length,_.push(n),p.push(r),f.set(n,a)),d(),a}function M(e,t){if(u(),null!==t){for(s||(s=[]);s.length<e;)s.push(null);s[e]=t}d()}function R(t){u(),c||(c=new e.Map);var r=c.get(t);return void 0===r&&(r=m.length,m.push(t),c.set(t,r)),d(),r}function L(t,r,n,i,a,o){e.Debug.assert(t>=T,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),u(),(((e,t)=>!F||T!==e||C!==t)(t,r)||((e,t,r)=>void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(A>t||A===t&&N>r))(n,i,a))&&(j(),T=t,C=r,P=!1,I=!1,F=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,A=i,N=a,P=!0,void 0!==o&&(w=o,I=!0)),d()}function B(e){g.push(e),g.length>=1024&&U()}function j(){if(F&&(!D||y!==T||v!==C||b!==k||x!==A||E!==N||S!==w)){if(u(),y<T){do{B(59),y++}while(y<T);v=0}else e.Debug.assertEqual(y,T,"generatedLine cannot backtrack"),D&&B(44);z(C-v),v=C,P&&(z(k-b),b=k,z(A-x),x=A,z(N-E),E=N,I&&(z(w-S),S=w)),D=!0,d()}}function U(){g.length>0&&(h+=String.fromCharCode.apply(void 0,g),g.length=0)}function V(){return j(),U(),{version:3,file:r,sourceRoot:n,sources:_,names:m,mappings:h,sourcesContent:s}}function z(t){t<0?t=1+(-t<<1):t<<=1;do{var r=31&t;(t>>=5)>0&&(r|=32),B((n=r)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:e.Debug.fail("".concat(n,": not a base64 value")))}while(t>0);var n}};var t=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return n},get error(){return t},get state(){return u(!0,!0)},next(){for(;!r&&n<e.length;){var t=e.charCodeAt(n);if(59!==t){if(44!==t){var p=!1,h=!1;if(a+=g(),f())return d();if(a<0)return _("Invalid generatedCharacter found");if(!m()){if(p=!0,o+=g(),f())return d();if(o<0)return _("Invalid sourceIndex found");if(m())return _("Unsupported Format: No entries after sourceIndex");if(s+=g(),f())return d();if(s<0)return _("Invalid sourceLine found");if(m())return _("Unsupported Format: No entries after sourceLine");if(c+=g(),f())return d();if(c<0)return _("Invalid sourceCharacter found");if(!m()){if(h=!0,l+=g(),f())return d();if(l<0)return _("Invalid nameIndex found");if(!m())return _("Unsupported Error Format: Entries after nameIndex")}}return{value:u(p,h),done:r}}n++}else i++,a=0,n++}return d()}};function u(e,t){return{generatedLine:i,generatedCharacter:a,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?l:void 0}}function d(){return r=!0,{value:void 0,done:!0}}function p(e){void 0===t&&(t=e)}function _(e){return p(e),d()}function f(){return void 0!==t}function m(){return n===e.length||44===e.charCodeAt(n)||59===e.charCodeAt(n)}function g(){for(var t,r=!0,i=0,a=0;r;n++){if(n>=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return p("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<<i,i+=5}return 0==(1&a)?a>>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function u(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=(e,t)=>({getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}),e.tryGetSourceMappingURL=n=>{for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=e=>{try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=(e,t)=>e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex,e.isSourceMapping=o,e.createDocumentPositionMapper=(t,r,n)=>{var i,_,f,m=e.getDirectoryPath(n),g=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,m):m,h=e.getNormalizedAbsolutePath(r.file,m),y=t.getSourceFileLike(h),v=r.sources.map((t=>e.getNormalizedAbsolutePath(t,g))),b=new e.Map(v.map(((e,r)=>[t.getCanonicalFileName(e),r])));return{getSourcePosition(t){var r=(()=>{if(void 0===_){for(var t=[],r=0,n=E();r<n.length;r++){var i=n[r];t.push(i)}_=e.sortAndDeduplicate(t,u,c)}return _})();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];return void 0!==i&&s(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=(t=>{if(void 0===f){for(var r=[],n=0,i=E();n<i.length;n++){var a=i[n];if(s(a)){var o=r[a.sourceIndex];o||(r[a.sourceIndex]=o=[]),o.push(a)}}f=r.map((t=>e.sortAndDeduplicate(t,l,c)))}return f[t]})(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==n?r:{fileName:h,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==y?e.getPositionOfLineAndCharacter(y,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function E(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: ".concat(n.error)),i=e.emptyArray):i=o}return i}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(Fl),(e=>{function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function r(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function n(t){if(e.getNamespaceDeclarationNode(t))return!0;var n=t.importClause&&t.importClause.namedBindings;if(!n)return!1;if(!e.isNamedImports(n))return!1;for(var i=0,a=0,o=n.elements;a<o.length;a++)r(o[a])&&i++;return i>0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&(t=>!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r))(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(n=a(s,r,n))}else if(!e.isGeneratedIdentifier(t.name)){var c=e.idText(t.name);r.get(c)||(r.set(c,!0),n=e.append(n,t.name))}return n}function o(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}function s(t){return e.isStringLiteralLike(t)||8===t.kind||e.isKeyword(t.kind)||e.isIdentifier(t)}function c(t){return r=t,e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)||e.isClassStaticBlockDeclaration(t);var r}e.getOriginalNodeId=t,e.chainBundle=(t,r)=>n=>303===n.kind?r(n):(n=>t.factory.createBundle(e.map(n.sourceFiles,r),n.prepends))(n),e.getExportNeedsImportStarHelper=t=>!!e.getNamespaceDeclarationNode(t),e.getImportNeedsImportStarHelper=n,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=(r,s,c,l)=>{for(var u,d,p=[],_=e.createMultiMap(),f=[],m=new e.Map,g=!1,h=!1,y=!1,v=!1,b=0,x=s.statements;b<x.length;b++){var E=x[b];switch(E.kind){case 265:p.push(E),!y&&n(E)&&(y=!0),!v&&i(E)&&(v=!0);break;case 264:276===E.moduleReference.kind&&p.push(E);break;case 271:if(E.moduleSpecifier)if(E.exportClause)if(p.push(E),e.isNamedExports(E.exportClause))A(E);else{var S=E.exportClause.name;m.get(e.idText(S))||(o(f,t(E),S),m.set(e.idText(S),!0),u=e.append(u,S)),y=!0}else p.push(E),h=!0;else A(E);break;case 270:E.isExportEquals&&!d&&(d=E);break;case 236:if(e.hasSyntacticModifier(E,1))for(var D=0,T=E.declarationList.declarations;D<T.length;D++){var C=T[D];u=a(C,m,u)}break;case 255:e.hasSyntacticModifier(E,1)&&(e.hasSyntacticModifier(E,512)?g||(o(f,t(E),r.factory.getDeclarationName(E)),g=!0):(S=E.name,m.get(e.idText(S))||(o(f,t(E),S),m.set(e.idText(S),!0),u=e.append(u,S))));break;case 256:e.hasSyntacticModifier(E,1)&&(e.hasSyntacticModifier(E,512)?g||(o(f,t(E),r.factory.getDeclarationName(E)),g=!0):(S=E.name)&&!m.get(e.idText(S))&&(o(f,t(E),S),m.set(e.idText(S),!0),u=e.append(u,S)))}}var k=e.createExternalHelpersImportDeclarationIfNeeded(r.factory,r.getEmitHelperFactory(),s,l,h,y,v);return k&&p.unshift(k),{externalImports:p,exportSpecifiers:_,exportEquals:d,hasExportStarsToExportValues:h,exportedBindings:f,exportedNames:u,externalHelpersImportDeclaration:k};function A(r){for(var n=0,i=e.cast(r.exportClause,e.isNamedExports).elements;n<i.length;n++){var a=i[n];if(!m.get(e.idText(a.name))){var s=a.propertyName||a.name;r.moduleSpecifier||_.add(e.idText(s),a);var l=c.getReferencedImportDeclaration(s)||c.getReferencedValueDeclaration(s);l&&o(f,t(l),a.name),m.set(e.idText(a.name),!0),u=e.append(u,a.name)}}}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=t=>!e.isIdentifier(t)&&s(t),e.isCompoundAssignment=e=>e>=64&&e<=78,e.getNonAssignmentOperatorForCompoundAssignment=e=>{switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.addPrologueDirectivesAndInitialSuperCall=(t,r,n,i)=>{if(r.body){var a=r.body.statements,o=t.copyPrologue(a,n,!1,i);if(o===a.length)return o;var s=e.findIndex(a,(t=>e.isExpressionStatement(t)&&e.isSuperCall(t.expression)),o);if(s>-1){for(var c=o;c<=s;c++)n.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0},e.getProperties=(t,r,n)=>e.filter(t.members,(t=>((t,r,n)=>e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n)(t,r,n))),e.getStaticPropertiesAndClassStaticBlock=t=>e.filter(t.members,c),e.isInitializedProperty=e=>166===e.kind&&void 0!==e.initializer,e.isNonStaticMethodOrAccessorWithPrivateName=t=>!e.isStatic(t)&&e.isMethodOrAccessor(t)&&e.isPrivateIdentifier(t.name)})(Fl),(e=>{function t(r,n){var i=e.getTargetOfBindingOrAssignmentElement(r);return e.isBindingOrAssignmentPattern(i)?((r,n)=>{for(var i=0,a=e.getElementsOfBindingOrAssignmentPattern(r);i<a.length;i++)if(t(a[i],n))return!0;return!1})(i,n):!!e.isIdentifier(i)&&i.escapedText===n}function r(t){var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&e.isComputedPropertyName(n)&&!e.isLiteralExpression(n.expression))return!0;var i,a=e.getTargetOfBindingOrAssignmentElement(t);return!!a&&e.isBindingOrAssignmentPattern(a)&&(i=a,!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(i),r))}function n(t,r,s,c,l){var u=e.getTargetOfBindingOrAssignmentElement(r);if(!l){var d=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(r),t.visitor,e.isExpression);d?s?(s=((e,t,r,n)=>(t=o(e,t,!0,n),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)))(t,s,d,c),!e.isSimpleInlineableExpression(d)&&e.isBindingOrAssignmentPattern(u)&&(s=o(t,s,!0,c))):s=d:s||(s=t.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(u)?((t,r,i,s,c)=>{var l,u,d=e.getElementsOfBindingOrAssignmentPattern(i),p=d.length;1!==p&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==p,c));for(var _=0;_<p;_++){var f=d[_];if(e.getRestIndicatorOfBindingOrAssignmentElement(f))_===p-1&&(l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0),g=t.context.getEmitHelperFactory().createRestHelper(s,d,u,i),n(t,f,g,f));else{var m=e.getPropertyNameOfBindingOrAssignmentElement(f);if(!(t.level>=1)||49152&f.transformFlags||49152&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(m)){l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0);var g=a(t,s,m);e.isComputedPropertyName(m)&&(u=e.append(u,g.argumentExpression)),n(t,f,g,f)}else l=e.append(l,e.visitNode(f,t.visitor))}}l&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i)})(t,r,u,s,c):e.isArrayBindingOrAssignmentPattern(u)?((t,r,a,s,c)=>{var l,u,d=e.getElementsOfBindingOrAssignmentPattern(a),p=d.length;t.level<1&&t.downlevelIteration?s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,p>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[p-1])?void 0:p),c),!1,c):(1!==p&&(t.level<1||0===p)||e.every(d,e.isOmittedExpression))&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==p,c));for(var _=0;_<p;_++){var f=d[_];if(t.level>=1)if(32768&f.transformFlags||t.hasTransformedPriorElement&&!i(f)){t.hasTransformedPriorElement=!0;var m=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),u=e.append(u,[m,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(m))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f))_===p-1&&(g=t.context.factory.createArraySliceCall(s,_),n(t,f,g,f));else{var g=t.context.factory.createElementAccessExpression(s,_);n(t,f,g,f)}}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),s,c,a),u)for(var h=0,y=u;h<y.length;h++){var v=y[h],b=v[0];n(t,f=v[1],b,f)}})(t,r,u,s,c):t.emitBindingOrAssignment(u,s,c,r)}function i(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(!r||e.isOmittedExpression(r))return!0;var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&!e.isPropertyNameLiteral(n))return!1;var a=e.getInitializerOfBindingOrAssignmentElement(t);return!(a&&!e.isSimpleInlineableExpression(a))&&(e.isBindingOrAssignmentPattern(r)?e.every(e.getElementsOfBindingOrAssignmentPattern(r),i):e.isIdentifier(r))}function a(t,r,n){if(e.isComputedPropertyName(n)){var i=o(t,e.visitNode(n.expression,t.visitor),!1,n);return t.context.factory.createElementAccessExpression(r,i)}if(e.isStringOrNumericLiteralLike(n))return i=e.factory.cloneNode(n),t.context.factory.createElementAccessExpression(r,i);var a=t.context.factory.createIdentifier(e.idText(n));return t.context.factory.createPropertyAccessExpression(r,a)}function o(t,r,n,i){if(e.isIdentifier(r)&&n)return r;var a=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(t.context.factory.createAssignment(a,r),i))):t.emitBindingOrAssignment(a,r,i,void 0),a}function s(e){return e}var c;(c=e.FlattenLevel||(e.FlattenLevel={}))[c.All=0]="All",c[c.ObjectRest=1]="ObjectRest",e.flattenDestructuringAssignment=(i,a,c,l,u,d)=>{var p,_,f=i;if(e.isDestructuringAssignment(i))for(p=i.right;e.isEmptyArrayLiteral(i.left)||e.isEmptyObjectLiteral(i.left);){if(!e.isDestructuringAssignment(p))return e.visitNode(p,a,e.isExpression);f=i=p,p=i.right}var m={context:c,level:l,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:g,emitBindingOrAssignment(t,r,n,i){e.Debug.assertNode(t,d?e.isIdentifier:e.isExpression);var o=d?d(t,r,n):e.setTextRange(c.factory.createAssignment(e.visitNode(t,a,e.isExpression),r),n);o.original=i,g(o)},createArrayBindingOrAssignmentPattern:t=>((t,r)=>t.createArrayLiteralExpression(e.map(r,t.converters.convertToArrayAssignmentElement)))(c.factory,t),createObjectBindingOrAssignmentPattern:t=>((t,r)=>t.createObjectLiteralExpression(e.map(r,t.converters.convertToObjectAssignmentElement)))(c.factory,t),createArrayBindingOrAssignmentElement:s,visitor:a};if(p&&(p=e.visitNode(p,a,e.isExpression),e.isIdentifier(p)&&t(i,p.escapedText)||r(i)?p=o(m,p,!1,f):u?p=o(m,p,!0,f):e.nodeIsSynthesized(i)&&(f=p)),n(m,i,p,f,e.isDestructuringAssignment(i)),p&&u){if(!e.some(_))return p;_.push(p)}return c.factory.inlineExpressions(_)||c.factory.createOmittedExpression();function g(t){_=e.append(_,t)}},e.flattenDestructuringBinding=(i,a,s,c,l,u,d)=>{var p;void 0===u&&(u=!1);var _=[],f=[],m={context:s,level:c,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:u,emitExpression(t){p=e.append(p,t)},emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:t=>((t,r)=>(e.Debug.assertEachNode(r,e.isArrayBindingElement),t.createArrayBindingPattern(r)))(s.factory,t),createObjectBindingOrAssignmentPattern:t=>((t,r)=>(e.Debug.assertEachNode(r,e.isBindingElement),t.createObjectBindingPattern(r)))(s.factory,t),createArrayBindingOrAssignmentElement:e=>((e,t)=>e.createBindingElement(void 0,void 0,t))(s.factory,e),visitor:a};if(e.isVariableDeclaration(i)){var g=e.getInitializerOfBindingOrAssignmentElement(i);g&&(e.isIdentifier(g)&&t(i,g.escapedText)||r(i))&&(g=o(m,e.visitNode(g,m.visitor),!1,g),i=s.factory.updateVariableDeclaration(i,i.name,void 0,void 0,g))}if(n(m,i,l,i,d),p){var h=s.factory.createTempVariable(void 0);if(u){var y=s.factory.inlineExpressions(p);p=void 0,A(h,y,void 0,void 0)}else{s.hoistVariableDeclaration(h);var v=e.last(_);v.pendingExpressions=e.append(v.pendingExpressions,s.factory.createAssignment(h,v.value)),e.addRange(v.pendingExpressions,p),v.value=h}}for(var b=0,x=_;b<x.length;b++){var E=x[b],S=E.pendingExpressions,D=E.name,T=(y=E.value,E.location),C=E.original,k=s.factory.createVariableDeclaration(D,void 0,void 0,S?s.factory.inlineExpressions(e.append(S,y)):y);k.original=C,e.setTextRange(k,T),f.push(k)}return f;function A(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),p&&(r=s.factory.inlineExpressions(e.append(p,r)),p=void 0),_.push({pendingExpressions:p,name:t,value:r,location:n,original:i})}}})(Fl),(e=>{var t;function r(t){return t.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(t.text)}function n(t,r){var n=t.rawText;if(void 0===n){e.Debug.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),n=e.getSourceTextOfNodeFromSourceFile(r,t);var i=14===t.kind||17===t.kind;n=n.substring(1,n.length-(i?1:2))}return n=n.replace(/\r\n?/g,"\n"),e.setTextRange(e.factory.createStringLiteral(n),t)}!(e=>{e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All"})(t=e.ProcessLevel||(e.ProcessLevel={})),e.processTaggedTemplateExpression=(i,a,o,s,c,l)=>{var u=e.visitNode(a.tag,o,e.isExpression),d=[void 0],p=[],_=[],f=a.template;if(l===t.LiftRestriction&&!e.hasInvalidEscape(f))return e.visitEachChild(a,o,i);if(e.isNoSubstitutionTemplateLiteral(f))p.push(r(f)),_.push(n(f,s));else{p.push(r(f.head)),_.push(n(f.head,s));for(var m=0,g=f.templateSpans;m<g.length;m++){var h=g[m];p.push(r(h.literal)),_.push(n(h.literal,s)),d.push(e.visitNode(h.expression,o,e.isExpression))}}var y=i.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(p),e.factory.createArrayLiteralExpression(_));if(e.isExternalModule(s)){var v=e.factory.createUniqueName("templateObject");c(v),d[0]=e.factory.createLogicalOr(v,e.factory.createAssignment(v,y))}else d[0]=y;return e.factory.createCallExpression(u,void 0,d)}})(Fl),(e=>{var t,r;!(e=>{e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(t||(t={})),(e=>{e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"})(r||(r={})),e.transformTypeScript=t=>{var r,n,i,a,o,s,c,l,u,d,p=t.factory,_=t.getEmitHelperFactory,f=t.startLexicalEnvironment,m=t.resumeLexicalEnvironment,g=t.endLexicalEnvironment,h=t.hoistVariableDeclaration,y=t.getEmitResolver(),v=t.getCompilerOptions(),b=e.getStrictOptionValue(v,"strictNullChecks"),x=e.getEmitScriptTarget(v),E=e.getEmitModuleKind(v),S=t.onEmitNode,D=t.onSubstituteNode;return t.onEmitNode=(t,n,i)=>{var a=d,o=r;e.isSourceFile(n)&&(r=n),2&l&&(t=>260===e.getOriginalNode(t).kind)(n)&&(d|=2),8&l&&(t=>259===e.getOriginalNode(t).kind)(n)&&(d|=8),S(t,n,i),d=a,r=o},t.onSubstituteNode=(t,r)=>(r=D(t,r),1===t?(t=>{switch(t.kind){case 79:return(t=>(t=>{if(1&l&&33554432&y.getNodeCheckFlags(t)){var r=y.getReferencedValueDeclaration(t);if(r){var n=u[r.id];if(n){var i=p.cloneNode(n);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}})(t)||Fe(t)||t)(t);case 205:case 206:return(t=>(t=>{var r=(t=>{if(!v.isolatedModules)return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?y.getConstantValue(t):void 0})(t);if(void 0!==r){e.setConstantValue(t,r);var n="string"==typeof r?p.createStringLiteral(r):p.createNumericLiteral(r);if(!v.removeComments){var i=e.getOriginalNode(t,e.isAccessExpression),a=e.isPropertyAccessExpression(i)?e.declarationNameToString(i.name):e.getTextOfNode(i.argumentExpression);e.addSyntheticTrailingComment(n,3," ".concat(a," "))}return n}return t})(t))(t)}return t})(r):e.isShorthandPropertyAssignment(r)?(t=>{if(2&l){var r=t.name,n=Fe(r);if(n){if(t.objectAssignmentInitializer){var i=p.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(p.createPropertyAssignment(r,i),t)}return e.setTextRange(p.createPropertyAssignment(r,n),t)}}return t})(r):r),t.enableSubstitution(205),t.enableSubstitution(206),t=>304===t.kind?(t=>p.createBundle(t.sourceFiles.map(T),e.mapDefined(t.prepends,(t=>306===t.kind?e.createUnparsedSourceFile(t,"js"):t))))(t):T(t);function T(n){if(n.isDeclarationFile)return n;r=n;var i=C(n,L);return e.addEmitHelpers(i,t.readEmitHelpers()),r=void 0,i}function C(t,r){var n=a,i=o,l=s,u=c;!(t=>{switch(t.kind){case 303:case 262:case 261:case 234:a=t,o=void 0,s=void 0;break;case 256:case 255:if(e.hasSyntacticModifier(t,2))break;t.name?pe(t):e.Debug.assert(256===t.kind||e.hasSyntacticModifier(t,512)),e.isClassDeclaration(t)&&(o=t)}})(t);var d=r(t);return a!==n&&(s=l),a=n,o=i,c=u,d}function k(e){return C(e,A)}function A(e){return 1&e.transformFlags?R(e):e}function N(e){return C(e,w)}function w(r){switch(r.kind){case 265:case 264:case 270:case 271:return(r=>{if(e.getParseTreeNode(r)!==r)return 1&r.transformFlags?e.visitEachChild(r,k,t):r;switch(r.kind){case 265:return(t=>{if(!t.importClause)return t;if(!t.importClause.isTypeOnly){var r=e.visitNode(t.importClause,he,e.isImportClause);return r||1===v.importsNotUsedAsValues||2===v.importsNotUsedAsValues?p.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier,t.assertClause):void 0}})(r);case 264:return xe(r);case 270:return(r=>y.isValueAliasDeclaration(r)?e.visitEachChild(r,k,t):void 0)(r);case 271:return(t=>{if(!t.isTypeOnly){if(!t.exportClause||e.isNamespaceExport(t.exportClause))return t;var r=!!t.moduleSpecifier&&(1===v.importsNotUsedAsValues||2===v.importsNotUsedAsValues),n=e.visitNode(t.exportClause,(t=>((t,r)=>e.isNamespaceExport(t)?(t=>p.updateNamespaceExport(t,e.visitNode(t.name,k,e.isIdentifier)))(t):((t,r)=>{var n=e.visitNodes(t.elements,be,e.isExportSpecifier);return r||e.some(n)?p.updateNamedExports(t,n):void 0})(t,r))(t,r)),e.isNamedExportBindings);return n?p.updateExportDeclaration(t,void 0,void 0,t.isTypeOnly,n,t.moduleSpecifier,t.assertClause):void 0}})(r);default:e.Debug.fail("Unhandled ellided statement")}})(r);default:return A(r)}}function F(e){return C(e,P)}function P(t){if(271!==t.kind&&265!==t.kind&&266!==t.kind&&(264!==t.kind||276!==t.moduleReference.kind))return 1&t.transformFlags||e.hasSyntacticModifier(t,1)?R(t):t}function I(e){return C(e,O)}function O(t){switch(t.kind){case 170:return oe(t);case 166:return ae(t);case 175:case 171:case 172:case 168:case 169:return A(t);case 233:return t;default:return e.Debug.failBadSyntaxKind(t)}}function M(t){if(!(18654&e.modifierToFlag(t.kind)||n&&93===t.kind))return t}function R(o){if(e.isStatement(o)&&e.hasSyntacticModifier(o,2))return p.createNotEmittedStatement(o);switch(o.kind){case 93:case 88:return n?void 0:o;case 123:case 121:case 122:case 126:case 158:case 85:case 135:case 144:case 182:case 183:case 184:case 185:case 181:case 176:case 162:case 130:case 154:case 133:case 149:case 146:case 143:case 114:case 150:case 179:case 178:case 180:case 177:case 186:case 187:case 188:case 190:case 191:case 192:case 193:case 194:case 195:case 175:case 164:return;case 258:return p.createNotEmittedStatement(o);case 166:return ae(o);case 263:return;case 170:return oe(o);case 257:return p.createNotEmittedStatement(o);case 256:return(i=>{if(!(j(i)||n&&e.hasSyntacticModifier(i,1)))return e.visitEachChild(i,k,t);var a=((t,r)=>{var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);return i&&104!==e.skipOuterExpressions(i.expression).kind&&(n|=64),e.classOrConstructorParameterIsDecorated(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),Ee(t)?n|=8:(t=>Se(t)&&e.hasSyntacticModifier(t,512))(t)?n|=32:De(t)&&(n|=16),x<=1&&7&n&&(n|=128),n})(i,e.getProperties(i,!0,!0));128&a&&t.startLexicalEnvironment();var o=i.name||(5&a?p.getGeneratedNameForNode(i):void 0),s=2&a?((r,n)=>{var i=e.moveRangePastDecorators(r),a=(r=>{if(16777216&y.getNodeCheckFlags(r)){0==(1&l)&&(l|=1,t.enableSubstitution(79),u=[]);var n=p.createUniqueName(r.name&&!e.isGeneratedIdentifier(r.name)?e.idText(r.name):"default");return u[e.getOriginalNodeId(r)]=n,h(n),n}})(r),o=x<=2?p.getInternalName(r,!1,!0):p.getLocalName(r,!1,!0),s=e.visitNodes(r.heritageClauses,k,e.isHeritageClause),c=U(r),d=p.createClassExpression(void 0,void 0,n,void 0,s,c);e.setOriginalNode(d,r),e.setTextRange(d,i);var _=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(o,void 0,void 0,a?p.createAssignment(a,d):d)],1));return e.setOriginalNode(_,r),e.setTextRange(_,i),e.setCommentRange(_,r),_})(i,o):((t,r,n)=>{var i=128&n?void 0:e.visitNodes(t.modifiers,M,e.isModifier),a=p.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,k,e.isHeritageClause),U(t)),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a})(i,o,a),c=[s];if(W(c,i,!1),W(c,i,!0),((t,r)=>{var n=(t=>{var r=K(t,t,(t=>{var r=t.decorators,n=z(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}})(t));if(r){var n=u&&u[e.getOriginalNodeId(t)],i=x<=2?p.getInternalName(t,!1,!0):p.getLocalName(t,!1,!0),a=_().createDecorateHelper(r,i),o=p.createAssignment(i,n?p.createAssignment(n,a):a);return e.setEmitFlags(o,1536),e.setSourceMapRange(o,e.moveRangePastDecorators(t)),o}})(r);n&&t.push(e.setOriginalNode(p.createExpressionStatement(n),r))})(c,i),128&a){var d=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),f=p.getInternalName(i),m=p.createPartiallyEmittedExpression(f);e.setTextRangeEnd(m,d.end),e.setEmitFlags(m,1536);var g=p.createReturnStatement(m);e.setTextRangePos(g,d.pos),e.setEmitFlags(g,1920),c.push(g),e.insertStatementsAfterStandardPrologue(c,t.endLexicalEnvironment());var v=p.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(v,33554432);var b=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(i,!1,!1),void 0,void 0,v)]));e.setOriginalNode(b,i),e.setCommentRange(b,i),e.setSourceMapRange(b,e.moveRangePastDecorators(i)),e.startOnNewLine(b),c=[b]}return 8&a?Ce(c,i):(128&a||2&a)&&(32&a?c.push(p.createExportDefault(p.getLocalName(i,!1,!0))):16&a&&c.push(p.createExternalModuleExport(p.getLocalName(i,!1,!0)))),c.length>1&&(c.push(p.createEndOfDeclarationMarker(i)),e.setEmitFlags(s,4194304|e.getEmitFlags(s))),e.singleOrMany(c)})(o);case 225:return(r=>{if(!j(r))return e.visitEachChild(r,k,t);var n=p.createClassExpression(void 0,void 0,r.name,void 0,e.visitNodes(r.heritageClauses,k,e.isHeritageClause),U(r));return e.setOriginalNode(n,r),e.setTextRange(n,r),n})(o);case 290:return(r=>{if(117!==r.token)return e.visitEachChild(r,k,t)})(o);case 227:return(t=>p.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,k,e.isLeftHandSideExpression),void 0))(o);case 168:return(r=>{if(ie(r)){var n=p.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,ne(r),void 0,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}})(o);case 171:return(r=>{if(ce(r)){var n=p.updateGetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),ne(r),e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||p.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}})(o);case 172:return(r=>{if(ce(r)){var n=p.updateSetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),ne(r),e.visitParameterList(r.parameters,k,t),e.visitFunctionBody(r.body,k,t)||p.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}})(o);case 255:return(r=>{if(!ie(r))return p.createNotEmittedStatement(r);var n=p.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||p.createBlock([]));if(Ee(r)){var i=[n];return Ce(i,r),i}return n})(o);case 212:return(r=>ie(r)?p.updateFunctionExpression(r,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||p.createBlock([])):p.createOmittedExpression())(o);case 213:return(r=>p.updateArrowFunction(r,e.visitNodes(r.modifiers,M,e.isModifier),void 0,e.visitParameterList(r.parameters,k,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,k,t)))(o);case 163:return(t=>{if(!e.parameterIsThisKeyword(t)){var r=p.updateParameterDeclaration(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression));return r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32)),r}})(o);case 211:return(n=>{var i=e.skipOuterExpressions(n.expression,-7);if(e.isAssertionExpression(i)){var a=e.visitNode(n.expression,k,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,r))?p.updateParenthesizedExpression(n,a):p.createPartiallyEmittedExpression(a,n)}return e.visitEachChild(n,k,t)})(o);case 210:case 228:return(t=>{var r=e.visitNode(t.expression,k,e.isExpression);return p.createPartiallyEmittedExpression(r,t)})(o);case 207:return(t=>p.updateCallExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression)))(o);case 208:return(t=>p.updateNewExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression)))(o);case 209:return(t=>p.updateTaggedTemplateExpression(t,e.visitNode(t.tag,k,e.isExpression),void 0,e.visitNode(t.template,k,e.isExpression)))(o);case 229:return(t=>{var r=e.visitNode(t.expression,k,e.isLeftHandSideExpression);return p.createPartiallyEmittedExpression(r,t)})(o);case 259:return(t=>{if(!(t=>!e.isEnumConst(t)||e.shouldPreserveConstEnums(v))(t))return p.createNotEmittedStatement(t);var n=[],o=2,s=fe(n,t);s&&(E===e.ModuleKind.System&&a===r||(o|=512));var c=Ne(t),l=we(t),u=e.hasSyntacticModifier(t,1)?p.getExternalModuleOrNamespaceExportName(i,t,!1,!0):p.getLocalName(t,!1,!0),d=p.createLogicalOr(u,p.createAssignment(u,p.createObjectLiteralExpression()));if(de(t)){var _=p.getLocalName(t,!1,!0);d=p.createAssignment(_,d)}var m=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,((t,r)=>{var n=i;i=r;var a=[];f();var o=e.map(t.members,ue);return e.insertStatementsAfterStandardPrologue(a,g()),e.addRange(a,o),i=n,p.createBlock(e.setTextRange(p.createNodeArray(a),t.members),!0)})(t,l)),void 0,[d]));return e.setOriginalNode(m,t),s&&(e.setSyntheticLeadingComments(m,void 0),e.setSyntheticTrailingComments(m,void 0)),e.setTextRange(m,t),e.addEmitFlags(m,o),n.push(m),n.push(p.createEndOfDeclarationMarker(t)),n})(o);case 236:return(r=>{if(Ee(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(p.createExpressionStatement(p.inlineExpressions(e.map(n,le))),r)}return e.visitEachChild(r,k,t)})(o);case 253:return(t=>p.updateVariableDeclaration(t,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression)))(o);case 260:return me(o);case 264:return xe(o);case 278:return(t=>p.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes)))(o);case 279:return(t=>p.updateJsxOpeningElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes)))(o);default:return e.visitEachChild(o,k,t)}}function L(r){var n=e.getStrictOptionValue(v,"alwaysStrict")&&!(e.isExternalModule(r)&&E>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return p.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,N,t,0,n))}function B(e){return!!(4096&e.transformFlags)}function j(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,B)||e.some(t.members,B)}function U(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(t=>e.isParameterPropertyDeclaration(t,n)));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];e.isIdentifier(s.name)&&r.push(e.setOriginalNode(p.createPropertyDeclaration(void 0,void 0,s.name,void 0,void 0,void 0),s))}return e.addRange(r,e.visitNodes(t.members,I,e.isClassElement)),e.setTextRange(p.createNodeArray(r),t.members)}function V(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.isStatic(t)}function z(t){var r;if(t)for(var n=t.parameters,i=n.length>0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s<o;s++){var c=n[s+a];(r||c.decorators)&&(r||(r=new Array(o)),r[s]=c.decorators)}return r}function K(t,r,n){if(n){var i=[];return e.addRange(i,e.map(n.decorators,J)),e.addRange(i,e.flatMap(n.parameters,$)),((t,r,n)=>{!((t,r,n)=>{v.emitDecoratorMetadata&&((e=>{var t=e.kind;return 168===t||171===t||172===t||166===t})(t)&&n.push(_().createMetadataHelper("design:type",G(t))),(t=>{switch(t.kind){case 256:case 225:return void 0!==e.getFirstConstructorWithBody(t);case 168:case 171:case 172:return!0}return!1})(t)&&n.push(_().createMetadataHelper("design:paramtypes",((t,r)=>{var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=((t,r)=>{if(r&&171===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters})(n,r),o=a.length,s=0;s<o;s++){var c=a[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.escapedText||(c.dotDotDotToken?i.push(q(e.getRestParameterElementType(c.type))):i.push(G(c)))}return p.createArrayLiteralExpression(i)})(t,r))),(e=>168===e.kind)(t)&&n.push(_().createMetadataHelper("design:returntype",(t=>e.isFunctionLike(t)&&t.type?q(t.type):e.isAsyncFunction(t)?p.createIdentifier("Promise"):p.createVoidZero())(t))))})(t,r,n)})(t,r,i),i}}function W(t,r,n){e.addRange(t,e.map(((t,r)=>{for(var n,i=0,a=((t,r)=>e.filter(t.members,r?e=>V(e,!0,t):e=>V(e,!1,t)))(t,r);i<a.length;i++){var o=H(t,a[i]);o&&(n?n.push(o):n=[o])}return n})(r,n),Te))}function H(t,r){var n=K(r,t,((t,r)=>{switch(r.kind){case 171:case 172:return((t,r)=>{if(r.body){var n=e.getAllAccessorDeclarations(t.members,r),i=n.firstAccessor,a=n.secondAccessor,o=n.setAccessor,s=i.decorators?i:a&&a.decorators?a:void 0;if(s&&r===s){var c=s.decorators,l=z(o);if(c||l)return{decorators:c,parameters:l}}}})(t,r);case 168:return(e=>{if(e.body){var t=e.decorators,r=z(e);if(t||r)return{decorators:t,parameters:r}}})(r);case 166:return(e=>{var t=e.decorators;if(t)return{decorators:t}})(r);default:return}})(t,r));if(n){var i=((t,r)=>e.isStatic(r)?p.getDeclarationName(t):(e=>p.createPropertyAccessExpression(p.getDeclarationName(e),"prototype"))(t))(t,r),a=re(r,!0),o=x>0?166===r.kind?p.createVoidZero():p.createNull():void 0,s=_().createDecorateHelper(n,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(r)),e.setEmitFlags(s,1536),s}}function J(t){return e.visitNode(t.expression,k,e.isExpression)}function $(t,r){var n;if(t){n=[];for(var i=0,a=t;i<a.length;i++){var o=a[i],s=_().createParamHelper(J(o),r);e.setTextRange(s,o.expression),e.setEmitFlags(s,1536),n.push(s)}}return n}function G(t){switch(t.kind){case 166:case 163:return q(t.type);case 172:case 171:return q((t=>{var r=y.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)})(t));case 256:case 225:case 168:return p.createIdentifier("Function");default:return p.createVoidZero()}}function q(t){if(void 0===t)return p.createIdentifier("Object");switch(t.kind){case 114:case 152:case 143:return p.createVoidZero();case 190:return q(t.type);case 178:case 179:return p.createIdentifier("Function");case 182:case 183:return p.createIdentifier("Array");case 176:case 133:return p.createIdentifier("Boolean");case 149:return p.createIdentifier("String");case 147:return p.createIdentifier("Object");case 195:switch(t.literal.kind){case 10:case 14:return p.createIdentifier("String");case 218:case 8:return p.createIdentifier("Number");case 9:return te();case 110:case 95:return p.createIdentifier("Boolean");case 104:return p.createVoidZero();default:return e.Debug.failBadSyntaxKind(t.literal)}case 146:return p.createIdentifier("Number");case 157:return te();case 150:return x<2?ee():p.createIdentifier("Symbol");case 177:return(t=>{var r=y.getTypeReferenceSerializationKind(t.typeName,o||a);switch(r){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(t,(t=>t.parent&&e.isConditionalTypeNode(t.parent)&&(t.parent.trueType===t||t.parent.falseType===t))))return p.createIdentifier("Object");var n=Q(t.typeName),i=p.createTempVariable(h);return p.createConditionalExpression(p.createTypeCheck(p.createAssignment(i,n),"function"),void 0,i,void 0,p.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return Z(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return p.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return te();case e.TypeReferenceSerializationKind.BooleanType:return p.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return p.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return p.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return p.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return x<2?ee():p.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return p.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return p.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return p.createIdentifier("Object");default:return e.Debug.assertNever(r)}})(t);case 187:case 186:return X(t.types);case 188:return X([t.trueType,t.falseType]);case 192:if(144===t.operator)return q(t.type);break;case 180:case 193:case 194:case 181:case 130:case 154:case 191:case 199:break;case 310:case 311:case 315:case 316:case 317:break;case 312:case 313:case 314:return q(t.type);default:return e.Debug.failBadSyntaxKind(t)}return p.createIdentifier("Object")}function X(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];190===a.kind;)a=a.type;if(143!==a.kind&&(b||(195!==a.kind||104!==a.literal.kind)&&152!==a.kind)){var o=q(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return p.createIdentifier("Object")}else r=o}}return r||p.createVoidZero()}function Y(e,t){return p.createLogicalAnd(p.createStrictInequality(p.createTypeOfExpression(e),p.createStringLiteral("undefined")),t)}function Q(e){if(79===e.kind){var t=Z(e);return Y(t,t)}if(79===e.left.kind)return Y(Z(e.left),Z(e));var r=Q(e.left),n=p.createTempVariable(h);return p.createLogicalAnd(p.createLogicalAnd(r.left,p.createStrictInequality(p.createAssignment(n,r.right),p.createVoidZero())),p.createPropertyAccessExpression(n,e.right))}function Z(t){switch(t.kind){case 79:var r=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(t),t),t.parent);return r.original=void 0,e.setParent(r,e.getParseTreeNode(a)),r;case 160:return(e=>p.createPropertyAccessExpression(Z(e.left),e.right))(t)}}function ee(){return p.createConditionalExpression(p.createTypeCheck(p.createIdentifier("Symbol"),"function"),void 0,p.createIdentifier("Symbol"),void 0,p.createIdentifier("Object"))}function te(){return x<99?p.createConditionalExpression(p.createTypeCheck(p.createIdentifier("BigInt"),"function"),void 0,p.createIdentifier("BigInt"),void 0,p.createIdentifier("Object")):p.createIdentifier("BigInt")}function re(t,r){var n=t.name;return e.isPrivateIdentifier(n)?p.createIdentifier(""):e.isComputedPropertyName(n)?r&&!e.isSimpleInlineableExpression(n.expression)?p.getGeneratedNameForNode(n):n.expression:e.isIdentifier(n)?p.createStringLiteral(e.idText(n)):p.cloneNode(n)}function ne(t){var r=t.name;if(e.isComputedPropertyName(r)&&(!e.hasStaticModifier(t)&&c||e.some(t.decorators))){var n=e.visitNode(r.expression,k,e.isExpression),i=e.skipPartiallyEmittedExpressions(n);if(!e.isSimpleInlineableExpression(i)){var a=p.getGeneratedNameForNode(r);return h(a),p.updateComputedPropertyName(r,p.createAssignment(a,n))}}return e.visitNode(r,k,e.isPropertyName)}function ie(t){return!e.nodeIsMissing(t.body)}function ae(t){if(!(8388608&t.flags||e.hasSyntacticModifier(t,128))){var r=p.updatePropertyDeclaration(t,void 0,e.visitNodes(t.modifiers,k,e.isModifier),ne(t),void 0,void 0,e.visitNode(t.initializer,k));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}function oe(r){if(ie(r))return p.updateConstructorDeclaration(r,void 0,void 0,e.visitParameterList(r.parameters,k,t),((r,n)=>{var i=n&&e.filter(n.parameters,(t=>e.isParameterPropertyDeclaration(t,n)));if(!e.some(i))return e.visitFunctionBody(r,k,t);var a,o=[];m(),a=e.addPrologueDirectivesAndInitialSuperCall(p,n,o,k),e.addRange(o,e.map(i,se)),e.addRange(o,e.visitNodes(r.statements,k,e.isStatement,a)),o=p.mergeLexicalEnvironment(o,g());var s=p.createBlock(e.setTextRange(p.createNodeArray(o),r.statements),!0);return e.setTextRange(s,r),e.setOriginalNode(s,r),s})(r.body,r))}function se(t){var r=t.name;if(e.isIdentifier(r)){var n=e.setParent(e.setTextRange(p.cloneNode(r),r),r.parent);e.setEmitFlags(n,1584);var i=e.setParent(e.setTextRange(p.cloneNode(r),r),r.parent);return e.setEmitFlags(i,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(p.createExpressionStatement(p.createAssignment(e.setTextRange(p.createPropertyAccessExpression(p.createThis(),n),t.name),i)),t),e.moveRangePos(t,-1))))}}function ce(t){return!(e.nodeIsMissing(t.body)&&e.hasSyntacticModifier(t,128))}function le(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,k,t,0,!1,ke):e.setTextRange(p.createAssignment(Ae(n),e.visitNode(r.initializer,k,e.isExpression)),r)}function ue(r){var n=re(r,!1),a=(r=>{var n=y.getConstantValue(r);return void 0!==n?"string"==typeof n?p.createStringLiteral(n):p.createNumericLiteral(n):(0==(8&l)&&(l|=8,t.enableSubstitution(79)),r.initializer?e.visitNode(r.initializer,k,e.isExpression):p.createVoidZero())})(r),o=p.createAssignment(p.createElementAccessExpression(i,n),a),s=10===a.kind?o:p.createAssignment(p.createElementAccessExpression(i,o),n);return e.setTextRange(p.createExpressionStatement(e.setTextRange(s,r)),r)}function de(t){return Ee(t)||Se(t)&&E!==e.ModuleKind.ES2015&&E!==e.ModuleKind.ES2020&&E!==e.ModuleKind.ES2022&&E!==e.ModuleKind.ESNext&&E!==e.ModuleKind.System}function pe(t){s||(s=new e.Map);var r=_e(t);s.has(r)||s.set(r,t)}function _e(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function fe(t,r){var n=p.createVariableStatement(e.visitNodes(r.modifiers,M,e.isModifier),p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(r,!1,!0))],303===a.kind?0:1));if(e.setOriginalNode(n,r),pe(r),(e=>{if(s){var t=_e(e);return s.get(t)===e}return!0})(r))return 259===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.addEmitFlags(n,4195328),t.push(n),!0;var i=p.createMergeDeclarationMarker(n);return e.setEmitFlags(i,4195840),t.push(i),!1}function me(o){if(!(t=>{var r=e.getParseTreeNode(t,e.isModuleDeclaration);return!r||e.isInstantiatedModule(r,e.shouldPreserveConstEnums(v))})(o))return p.createNotEmittedStatement(o);e.Debug.assertNode(o.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&l)&&(l|=2,t.enableSubstitution(79),t.enableSubstitution(295),t.enableEmitNotification(260));var c=[],u=2,d=fe(c,o);d&&(E===e.ModuleKind.System&&a===r||(u|=512));var _=Ne(o),m=we(o),h=e.hasSyntacticModifier(o,1)?p.getExternalModuleOrNamespaceExportName(i,o,!1,!0):p.getLocalName(o,!1,!0),y=p.createLogicalOr(h,p.createAssignment(h,p.createObjectLiteralExpression()));if(de(o)){var b=p.getLocalName(o,!1,!0);y=p.createAssignment(b,y)}var x=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,_)],void 0,((t,r)=>{var a=i,o=n,c=s;i=r,n=t,s=void 0;var l,u,d=[];if(f(),t.body)if(261===t.body.kind)C(t.body,(t=>e.addRange(d,e.visitNodes(t.statements,F,e.isStatement)))),l=t.body.statements,u=t.body;else{var _=me(t.body);_&&(e.isArray(_)?e.addRange(d,_):d.push(_));var m=ge(t).body;l=e.moveRangePos(m.statements,-1)}e.insertStatementsAfterStandardPrologue(d,g()),i=a,n=o,s=c;var h=p.createBlock(e.setTextRange(p.createNodeArray(d),l),!0);return e.setTextRange(h,u),t.body&&261===t.body.kind||e.setEmitFlags(h,1536|e.getEmitFlags(h)),h})(o,m)),void 0,[y]));return e.setOriginalNode(x,o),d&&(e.setSyntheticLeadingComments(x,void 0),e.setSyntheticTrailingComments(x,void 0)),e.setTextRange(x,o),e.addEmitFlags(x,u),c.push(x),c.push(p.createEndOfDeclarationMarker(o)),c}function ge(e){if(260===e.body.kind)return ge(e.body)||e.body}function he(t){e.Debug.assert(!t.isTypeOnly);var r=Pe(t)?t.name:void 0,n=e.visitNode(t.namedBindings,ye,e.isNamedImportBindings);return r||n?p.updateImportClause(t,!1,r,n):void 0}function ye(t){if(267===t.kind)return Pe(t)?t:void 0;var r=v.preserveValueImports&&(1===v.importsNotUsedAsValues||2===v.importsNotUsedAsValues),n=e.visitNodes(t.elements,ve,e.isImportSpecifier);return r||e.some(n)?p.updateNamedImports(t,n):void 0}function ve(e){return!e.isTypeOnly&&Pe(e)?e:void 0}function be(e){return!e.isTypeOnly&&y.isValueAliasDeclaration(e)?e:void 0}function xe(n){if(!n.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(n)){var a=Pe(n);return a||1!==v.importsNotUsedAsValues?a?e.visitEachChild(n,k,t):void 0:e.setOriginalNode(e.setTextRange(p.createImportDeclaration(void 0,void 0,void 0,n.moduleReference.expression,void 0),n),n)}if((t=>Pe(t)||!e.isExternalModule(r)&&y.isTopLevelValueImportEqualsWithEntityName(t))(n)){var o,s,c,l=e.createExpressionFromEntityName(p,n.moduleReference);return e.setEmitFlags(l,3584),De(n)||!Ee(n)?e.setOriginalNode(e.setTextRange(p.createVariableStatement(e.visitNodes(n.modifiers,M,e.isModifier),p.createVariableDeclarationList([e.setOriginalNode(p.createVariableDeclaration(n.name,void 0,void 0,l),n)])),n),n):e.setOriginalNode((o=n.name,s=l,c=n,e.setTextRange(p.createExpressionStatement(p.createAssignment(p.getNamespaceMemberName(i,o,!1,!0),s)),c)),n)}}}function Ee(t){return void 0!==n&&e.hasSyntacticModifier(t,1)}function Se(t){return void 0===n&&e.hasSyntacticModifier(t,1)}function De(t){return Se(t)&&!e.hasSyntacticModifier(t,512)}function Te(e){return p.createExpressionStatement(e)}function Ce(t,r){var n=p.createAssignment(p.getExternalModuleOrNamespaceExportName(i,r,!1,!0),p.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var a=p.createExpressionStatement(n);e.setSourceMapRange(a,e.createRange(-1,r.end)),t.push(a)}function ke(t,r,n){return e.setTextRange(p.createAssignment(Ae(t),r),n)}function Ae(e){return p.getNamespaceMemberName(i,e,!1,!0)}function Ne(t){var r=p.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function we(e){return p.getGeneratedNameForNode(e)}function Fe(t){if(l&d&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=y.getReferencedExportContainer(t,!1);if(r&&303!==r.kind&&(2&d&&260===r.kind||8&d&&259===r.kind))return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(r),t),t)}}function Pe(e){return v.preserveValueImports?y.isValueAliasDeclaration(e):y.isReferencedAliasDeclaration(e)}}})(Fl),(e=>{var t,r,n;!(e=>{e[e.ClassAliases=1]="ClassAliases",e[e.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(t||(t={})),(n=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={})).Field="f",n.Method="m",n.Accessor="a",(e=>{e[e.None=0]="None",e[e.ClassWasDecorated=1]="ClassWasDecorated",e[e.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",e[e.NeedsClassSuperReference=4]="NeedsClassSuperReference",e[e.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(r||(r={})),e.transformClassFields=t=>{var r=t.factory,n=t.hoistVariableDeclaration,i=t.endLexicalEnvironment,a=t.startLexicalEnvironment,o=t.resumeLexicalEnvironment,s=t.addBlockScopedVariable,c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=e.getUseDefineForClassFields(l),p=u<99,_=(u<=8||!d)&&u>=2,f=u<=8||!d,m=t.onSubstituteNode;t.onSubstituteNode=(t,n)=>(n=m(t,n),1===t?(t=>{switch(t.kind){case 79:return(t=>(t=>{if(1&g&&33554432&c.getNodeCheckFlags(t)){var n=c.getReferencedValueDeclaration(t);if(n){var i=h[n.id];if(i){var a=r.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}})(t)||t)(t);case 108:return(t=>{if(2&g&&x){var n=x.facts,i=x.classConstructor;if(1&n)return r.createParenthesizedExpression(r.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(r.cloneNode(i),t),t)}return t})(t)}return t})(n):n);var g,h,y,v,b=t.onEmitNode;t.onEmitNode=(t,r,n)=>{var i=e.getOriginalNode(r);if(i.id){var a=T.get(i.id);if(a){var o=x,s=E;return x=a,E=a,b(t,r,n),x=o,void(E=s)}}switch(r.kind){case 212:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 255:case 170:return o=x,s=E,x=void 0,E=void 0,b(t,r,n),x=o,void(E=s);case 171:case 172:case 168:case 166:return o=x,s=E,E=x,x=void 0,b(t,r,n),x=o,void(E=s);case 161:return o=x,s=E,x=E,E=void 0,b(t,r,n),x=o,void(E=s)}b(t,r,n)};var x,E,S,D=[],T=new e.Map;return e.chainBundle(t,(r=>{var n=t.getCompilerOptions();if(r.isDeclarationFile||d&&99===e.getEmitScriptTarget(n))return r;var i=e.visitEachChild(r,A,t);return e.addEmitHelpers(i,t.readEmitHelpers()),i}));function C(i,a){if(8388608&i.transformFlags)switch(i.kind){case 225:case 256:return(i=>{if(!e.forEach(i.members,B))return e.visitEachChild(i,A,t);var a=y;if(y=void 0,D.push(x),x=void 0,p){var o=e.getNameOfDeclaration(i);o&&e.isIdentifier(o)&&(G().className=e.idText(o));var l=j(i);e.some(l)&&(G().weakSetName=Y("instances",l[0].name))}var u=e.isClassDeclaration(i)?(t=>{var i=U(t);i&&($().facts=i),8&i&&H();var a,o=e.getStaticPropertiesAndClassStaticBlock(t);if(2&i){var s=r.createTempVariable(n,!0);$().classConstructor=r.cloneNode(s),a=r.createAssignment(s,r.getInternalName(t))}var c=e.getEffectiveBaseTypeNode(t),l=!(!c||104===e.skipOuterExpressions(c.expression).kind),u=[r.updateClassDeclaration(t,void 0,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,N,e.isHeritageClause),V(t,l))];return a&&q().unshift(a),e.some(y)&&u.push(r.createExpressionStatement(r.inlineExpressions(y))),e.some(o)&&K(u,o,r.getInternalName(t)),u})(i):(i=>{var a=U(i);a&&($().facts=a),8&a&&H();var o,l=!!(1&a),u=e.getStaticPropertiesAndClassStaticBlock(i),d=e.getEffectiveBaseTypeNode(i),_=!(!d||104===e.skipOuterExpressions(d.expression).kind),f=16777216&c.getNodeCheckFlags(i);function m(){var e=c.getNodeCheckFlags(i),t=16777216&e,a=524288&e;return r.createTempVariable(a?s:n,!!t)}2&a&&(o=m(),$().classConstructor=r.cloneNode(o));var b=r.updateClassExpression(i,e.visitNodes(i.decorators,A,e.isDecorator),i.modifiers,i.name,void 0,e.visitNodes(i.heritageClauses,N,e.isHeritageClause),V(i,_));if(e.some(u,(t=>e.isClassStaticBlockDeclaration(t)||!!t.initializer||p&&e.isPrivateIdentifier(t.name)))||e.some(y)){if(l)return e.Debug.assertIsDefined(v,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),v&&y&&e.some(y)&&v.push(r.createExpressionStatement(r.inlineExpressions(y))),v&&e.some(u)&&K(v,u,r.getInternalName(i)),o?r.inlineExpressions([r.createAssignment(o,b),o]):b;var x=[];if(o||(o=m()),f){0==(1&g)&&(g|=1,t.enableSubstitution(79),h=[]);var E=r.cloneNode(o);E.autoGenerateFlags&=-9,h[e.getOriginalNodeId(i)]=E}return e.setEmitFlags(b,65536|e.getEmitFlags(b)),x.push(e.startOnNewLine(r.createAssignment(o,b))),e.addRange(x,e.map(y,e.startOnNewLine)),e.addRange(x,((t,r)=>{for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=e.isClassStaticBlockDeclaration(o)?R(o):W(o,r);s&&(e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),n.push(s))}return n})(u,o)),x.push(e.startOnNewLine(o)),r.inlineExpressions(x)}return b})(i);return x=D.pop(),y=a,u})(i);case 166:return P(i);case 236:return(r=>{var n=v;v=[];var i=e.visitEachChild(r,A,t),a=e.some(v)?Il([i],v,!0):i;return v=n,a})(i);case 80:return(t=>p?e.isStatement(t.parent)?t:e.setOriginalNode(r.createIdentifier(""),t):t)(i);case 169:return(r=>{if(!p)return e.visitEachChild(r,F,t)})(i)}if(8388608&i.transformFlags||33554432&i.transformFlags&&_&&S&&x)switch(i.kind){case 218:case 219:return((i,a)=>{if(45===i.operator||46===i.operator)if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.operand)){var o;if(o=Z(i.operand.name)){var s=M(e.visitNode(i.operand.expression,A,e.isExpression)),c=s.readExpression,l=s.initializeExpression,u=I(o,c),d=e.isPrefixUnaryExpression(i)||a?void 0:r.createTempVariable(n);return u=L(o,l||c,u=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,u,n,d),63),e.setOriginalNode(u,i),e.setTextRange(u,i),d&&(u=r.createComma(u,d),e.setTextRange(u,i)),u}}else if(_&&e.isSuperProperty(i.operand)&&S&&x){var f=x.classConstructor,m=x.superClassReference;if(1&x.facts){var g=J(i.operand);return e.isPrefixUnaryExpression(i)?r.updatePrefixUnaryExpression(i,g):r.updatePostfixUnaryExpression(i,g)}if(f&&m){var h=void 0,y=void 0;if(e.isPropertyAccessExpression(i.operand)?e.isIdentifier(i.operand.name)&&(y=h=r.createStringLiteralFromNode(i.operand.name)):e.isSimpleInlineableExpression(i.operand.argumentExpression)?y=h=i.operand.argumentExpression:(y=r.createTempVariable(n),h=r.createAssignment(y,e.visitNode(i.operand.argumentExpression,A,e.isExpression))),h&&y)return u=r.createReflectGetCall(m,y,f),e.setTextRange(u,i.operand),d=a?void 0:r.createTempVariable(n),u=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,u,n,d),u=r.createReflectSetCall(m,h,u,f),e.setOriginalNode(u,i),e.setTextRange(u,i),d&&(u=r.createComma(u,d),e.setTextRange(u,i)),u}}return e.visitEachChild(i,A,t)})(i,a);case 220:return((i,a)=>{if(e.isDestructuringAssignment(i)){var o=y;y=void 0,i=r.updateBinaryExpression(i,e.visitNode(i.left,w),i.operatorToken,e.visitNode(i.right,A));var s=e.some(y)?r.inlineExpressions(e.compact(Il(Il([],y,!0),[i],!1))):i;return y=o,s}if(e.isAssignmentExpression(i))if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.left)){var c=Z(i.left.name);if(c)return e.setTextRange(e.setOriginalNode(L(c,i.left.expression,i.right,i.operatorToken.kind),i),i)}else if(_&&e.isSuperProperty(i.left)&&S&&x){var l=x.classConstructor,u=x.superClassReference;if(1&x.facts)return r.updateBinaryExpression(i,J(i.left),i.operatorToken,e.visitNode(i.right,A,e.isExpression));if(l&&u){var d=e.isElementAccessExpression(i.left)?e.visitNode(i.left.argumentExpression,A,e.isExpression):e.isIdentifier(i.left.name)?r.createStringLiteralFromNode(i.left.name):void 0;if(d){var f=e.visitNode(i.right,A,e.isExpression);if(e.isCompoundAssignment(i.operatorToken.kind)){var m=d;e.isSimpleInlineableExpression(d)||(m=r.createTempVariable(n),d=r.createAssignment(m,d));var g=r.createReflectGetCall(u,m,l);e.setOriginalNode(g,i.left),e.setTextRange(g,i.left),f=r.createBinaryExpression(g,e.getNonAssignmentOperatorForCompoundAssignment(i.operatorToken.kind),f),e.setTextRange(f,i)}var h=a?void 0:r.createTempVariable(n);return h&&(f=r.createAssignment(h,f),e.setTextRange(h,i)),f=r.createReflectSetCall(u,d,f,l),e.setOriginalNode(f,i),e.setTextRange(f,i),h&&(f=r.createComma(f,h),e.setTextRange(f,i)),f}}}return 101===i.operatorToken.kind&&e.isPrivateIdentifier(i.left)?(r=>{if(!p)return r;var n=r.left;e.Debug.assertNode(n,e.isPrivateIdentifier),e.Debug.assert(101===r.operatorToken.kind);var i=Z(n);if(i){var a=e.visitNode(r.right,A,e.isExpression);return e.setOriginalNode(t.getEmitHelperFactory().createClassPrivateFieldInHelper(i.brandCheckIdentifier,a),r)}return e.visitEachChild(r,A,t)})(i):e.visitEachChild(i,A,t)})(i,a);case 207:return(i=>{if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.expression)){var a=r.createCallBinding(i.expression,n,u),o=a.thisArg,s=a.target;return e.isCallChain(i)?r.updateCallChain(i,r.createPropertyAccessChain(e.visitNode(s,A),i.questionDotToken,"call"),void 0,void 0,Il([e.visitNode(o,A,e.isExpression)],e.visitNodes(i.arguments,A,e.isExpression),!0)):r.updateCallExpression(i,r.createPropertyAccessExpression(e.visitNode(s,A),"call"),void 0,Il([e.visitNode(o,A,e.isExpression)],e.visitNodes(i.arguments,A,e.isExpression),!0))}if(_&&e.isSuperProperty(i.expression)&&S&&(null==x?void 0:x.classConstructor)){var c=r.createFunctionCallCall(e.visitNode(i.expression,A,e.isExpression),x.classConstructor,e.visitNodes(i.arguments,A,e.isExpression));return e.setOriginalNode(c,i),e.setTextRange(c,i),c}return e.visitEachChild(i,A,t)})(i);case 209:return(i=>{if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.tag)){var a=r.createCallBinding(i.tag,n,u),o=a.thisArg,s=a.target;return r.updateTaggedTemplateExpression(i,r.createCallExpression(r.createPropertyAccessExpression(e.visitNode(s,A),"bind"),void 0,[e.visitNode(o,A,e.isExpression)]),void 0,e.visitNode(i.template,A,e.isTemplateLiteral))}if(_&&e.isSuperProperty(i.tag)&&S&&(null==x?void 0:x.classConstructor)){var c=r.createFunctionBindCall(e.visitNode(i.tag,A,e.isExpression),x.classConstructor,[]);return e.setOriginalNode(c,i),e.setTextRange(c,i),r.updateTaggedTemplateExpression(i,c,void 0,e.visitNode(i.template,A,e.isTemplateLiteral))}return e.visitEachChild(i,A,t)})(i);case 205:return(n=>{if(p&&e.isPrivateIdentifier(n.name)){var i=Z(n.name);if(i)return e.setTextRange(e.setOriginalNode(I(i,n.expression),n),n)}if(_&&e.isSuperProperty(n)&&e.isIdentifier(n.name)&&S&&x){var a=x.classConstructor,o=x.superClassReference;if(1&x.facts)return J(n);if(a&&o){var s=r.createReflectGetCall(o,r.createStringLiteralFromNode(n.name),a);return e.setOriginalNode(s,n.expression),e.setTextRange(s,n.expression),s}}return e.visitEachChild(n,A,t)})(i);case 206:return(n=>{if(_&&e.isSuperProperty(n)&&S&&x){var i=x.classConstructor,a=x.superClassReference;if(1&x.facts)return J(n);if(i&&a){var o=r.createReflectGetCall(a,e.visitNode(n.argumentExpression,A,e.isExpression),i);return e.setOriginalNode(o,n.expression),e.setTextRange(o,n.expression),o}}return e.visitEachChild(n,A,t)})(i);case 237:return(t=>r.updateExpressionStatement(t,e.visitNode(t.expression,k,e.isExpression)))(i);case 241:return(n=>r.updateForStatement(n,e.visitNode(n.initializer,k,e.isForInitializer),e.visitNode(n.condition,A,e.isExpression),e.visitNode(n.incrementor,k,e.isExpression),e.visitIterationBody(n.statement,A,t)))(i);case 255:case 212:case 170:case 168:case 171:case 172:var o=S;S=void 0;var l=e.visitEachChild(i,A,t);return S=o,l}return e.visitEachChild(i,A,t)}function k(e){return C(e,!0)}function A(e){return C(e,!1)}function N(i){switch(i.kind){case 290:return e.visitEachChild(i,N,t);case 227:return(i=>{if(4&((null==x?void 0:x.facts)||0)){var a=r.createTempVariable(n,!0);return $().superClassReference=a,r.updateExpressionWithTypeArguments(i,r.createAssignment(a,e.visitNode(i.expression,A,e.isExpression)),void 0)}return e.visitEachChild(i,A,t)})(i)}return A(i)}function w(t){switch(t.kind){case 204:case 203:return(t=>e.isArrayLiteralExpression(t)?r.updateArrayLiteralExpression(t,e.visitNodes(t.elements,te,e.isExpression)):r.updateObjectLiteralExpression(t,e.visitNodes(t.properties,re,e.isObjectLiteralElementLike)))(t);default:return A(t)}}function F(n){switch(n.kind){case 170:return;case 171:case 172:case 168:return(n=>{if(e.Debug.assert(!e.some(n.decorators)),!p||!e.isPrivateIdentifier(n.name))return e.visitEachChild(n,F,t);var i=Z(n.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return n;var a=(t=>{e.Debug.assert(e.isPrivateIdentifier(t.name));var r=Z(t.name);if(e.Debug.assert(r,"Undeclared private name for property declaration."),"m"===r.kind)return r.methodName;if("a"===r.kind){if(e.isGetAccessor(t))return r.getterName;if(e.isSetAccessor(t))return r.setterName}})(n);a&&q().push(r.createAssignment(a,r.createFunctionExpression(e.filter(n.modifiers,(t=>!e.isStaticModifier(t))),n.asteriskToken,a,void 0,e.visitParameterList(n.parameters,F,t),void 0,e.visitFunctionBody(n.body,F,t))))})(n);case 166:return P(n);case 161:return(n=>{var i=e.visitEachChild(n,A,t);if(e.some(y)){var a=y;a.push(i.expression),y=[],i=r.updateComputedPropertyName(i,r.inlineExpressions(a))}return i})(n);case 233:return n;default:return A(n)}}function P(t){if(e.Debug.assert(!e.some(t.decorators)),e.isPrivateIdentifier(t.name)){if(!p)return r.updatePropertyDeclaration(t,void 0,e.visitNodes(t.modifiers,A,e.isModifier),t.name,void 0,void 0,void 0);var i=Z(t.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return t}var a=((t,i)=>{if(e.isComputedPropertyName(t)){var a=e.visitNode(t.expression,A,e.isExpression),o=e.skipPartiallyEmittedExpressions(a),l=e.isSimpleInlineableExpression(o);if((!e.isAssignmentExpression(o)||!e.isGeneratedIdentifier(o.left))&&!l&&i){var u=r.getGeneratedNameForNode(t);return 524288&c.getNodeCheckFlags(t)?s(u):n(u),r.createAssignment(u,a)}return l||e.isIdentifier(o)?void 0:a}})(t.name,!!t.initializer||d);a&&!e.isSimpleInlineableExpression(a)&&q().push(a)}function I(t,r){return O(t,e.visitNode(r,A,e.isExpression))}function O(r,n){switch(e.setCommentRange(n,e.moveRangePos(n,-1)),r.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.getterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.methodName);case"f":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function M(t){var i=e.nodeIsSynthesized(t)?t:r.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:i,initializeExpression:void 0};var a=r.createTempVariable(n);return{readExpression:a,initializeExpression:r.createAssignment(a,i)}}function R(t){if(p){x&&T.set(e.getOriginalNodeId(t),x),a();var n=S;S=t;var o=e.visitNodes(t.body.statements,A,e.isStatement);o=r.mergeLexicalEnvironment(o,i()),S=n;var s=r.createImmediatelyInvokedArrowFunction(o);return e.setOriginalNode(s,t),e.setTextRange(s,t),e.addEmitFlags(s,2),s}}function L(n,i,a,o){if(i=e.visitNode(i,A,e.isExpression),a=e.visitNode(a,A,e.isExpression),e.isCompoundAssignment(o)){var s=M(i),c=s.readExpression;i=s.initializeExpression||c,a=r.createBinaryExpression(O(n,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.setterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,void 0);case"f":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function B(t){return e.isPropertyDeclaration(t)||e.isClassStaticBlockDeclaration(t)||p&&t.name&&e.isPrivateIdentifier(t.name)}function j(t){return e.filter(t.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function U(t){var r=0,n=e.getOriginalNode(t);e.isClassDeclaration(n)&&e.classOrConstructorParameterIsDecorated(n)&&(r|=1);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.isStatic(o)&&(o.name&&e.isPrivateIdentifier(o.name)&&p&&(r|=2),(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&(f&&8192&o.transformFlags&&(1&(r|=8)||(r|=2)),_&&33554432&o.transformFlags&&(1&r||(r|=6))))}return r}function V(n,a){if(p){for(var s=0,c=n.members;s<c.length;s++){var l=c[s];e.isPrivateIdentifierClassElementDeclaration(l)&&X(l)}e.some(j(n))&&(u=G().weakSetName,e.Debug.assert(u,"weakSetName should be set in private identifier environment"),q().push(r.createAssignment(u,r.createNewExpression(r.createIdentifier("WeakSet"),void 0,[]))))}var u,_=[],f=((n,a)=>{var s=e.visitNode(e.getFirstConstructorWithBody(n),A,e.isConstructorDeclaration),c=n.members.filter(z);if(!e.some(c))return s;var l=e.visitParameterList(s?s.parameters:void 0,A,t),u=((n,a,s)=>{var c=e.getProperties(n,!1,!1);d||(c=e.filter(c,(t=>!!t.initializer||e.isPrivateIdentifier(t.name))));var l=j(n),u=e.some(c)||e.some(l);if(!a&&!u)return e.visitFunctionBody(void 0,A,t);o();var _=0,f=[];if(!a&&s&&f.push(r.createExpressionStatement(r.createCallExpression(r.createSuper(),void 0,[r.createSpreadElement(r.createIdentifier("arguments"))]))),a&&(_=e.addPrologueDirectivesAndInitialSuperCall(r,a,f,A)),null==a?void 0:a.body){var m=e.findIndex(a.body.statements,(t=>!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a)),_);-1===m&&(m=a.body.statements.length),m>_&&(d||e.addRange(f,e.visitNodes(a.body.statements,A,e.isStatement,_,m-_)),_=m)}var g=r.createThis();return((t,n,i)=>{if(p&&e.some(n)){var a=G().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(r.createExpressionStatement(((t,r)=>e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t]))(i,a)))}})(f,l,g),K(f,c,g),a&&e.addRange(f,e.visitNodes(a.body.statements,A,e.isStatement,_)),f=r.mergeLexicalEnvironment(f,i()),e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(f),a?a.body.statements:n.members),!0),a?a.body:void 0)})(n,s,a);return u?e.startOnNewLine(e.setOriginalNode(e.setTextRange(r.createConstructorDeclaration(void 0,void 0,null!=l?l:[],u),s||n),s)):void 0})(n,a);return f&&_.push(f),e.addRange(_,e.visitNodes(n.members,F,e.isClassElement)),e.setTextRange(r.createNodeArray(_),n.members)}function z(t){return!e.isStatic(t)&&!e.hasSyntacticModifier(e.getOriginalNode(t),128)&&(d?u<99:e.isInitializedProperty(t)||p&&e.isPrivateIdentifierClassElementDeclaration(t))}function K(t,n,i){for(var a=0,o=n;a<o.length;a++){var s=o[a],c=e.isClassStaticBlockDeclaration(s)?R(s):W(s,i);if(c){var l=r.createExpressionStatement(c);e.setSourceMapRange(l,e.moveRangePastModifiers(s)),e.setCommentRange(l,s),e.setOriginalNode(l,s),t.push(l)}}}function W(t,n){var i=S,a=((t,n)=>{var i,a=!d,o=e.isComputedPropertyName(t.name)&&!e.isSimpleInlineableExpression(t.name.expression)?r.updateComputedPropertyName(t.name,r.getGeneratedNameForNode(t.name)):t.name;if(e.hasStaticModifier(t)&&(S=t),p&&e.isPrivateIdentifier(o)){var s=Z(o);if(s)return"f"===s.kind?s.isStatic?((t,r)=>e.factory.createAssignment(t,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",r||e.factory.createVoidZero())])))(s.variableName,e.visitNode(t.initializer,A,e.isExpression)):((t,r,n)=>e.factory.createCallExpression(e.factory.createPropertyAccessExpression(n,"set"),void 0,[t,r||e.factory.createVoidZero()]))(n,e.visitNode(t.initializer,A,e.isExpression),s.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!e.isPrivateIdentifier(o)&&!e.hasStaticModifier(t)||t.initializer){var c=e.getOriginalNode(t);if(!e.hasSyntacticModifier(c,128)){var l=t.initializer||a?null!==(i=e.visitNode(t.initializer,A,e.isExpression))&&void 0!==i?i:r.createVoidZero():e.isParameterPropertyDeclaration(c,c.parent)&&e.isIdentifier(o)?o:r.createVoidZero();if(a||e.isPrivateIdentifier(o)){var u=e.createMemberAccessForPropertyName(r,n,o,o);return r.createAssignment(u,l)}var _=e.isComputedPropertyName(o)?o.expression:e.isIdentifier(o)?r.createStringLiteral(e.unescapeLeadingUnderscores(o.escapedText)):o,f=r.createPropertyDescriptor({value:l,configurable:!0,writable:!0,enumerable:!0});return r.createObjectDefinePropertyCall(n,_,f)}}})(t,n);return a&&e.hasStaticModifier(t)&&(null==x?void 0:x.facts)&&(e.setOriginalNode(a,t),e.addEmitFlags(a,2),T.set(e.getOriginalNodeId(a),x)),S=i,a}function H(){0==(2&g)&&(g|=2,t.enableSubstitution(108),t.enableEmitNotification(255),t.enableEmitNotification(212),t.enableEmitNotification(170),t.enableEmitNotification(171),t.enableEmitNotification(172),t.enableEmitNotification(168),t.enableEmitNotification(166),t.enableEmitNotification(161))}function J(t){return e.isPropertyAccessExpression(t)?r.updatePropertyAccessExpression(t,r.createVoidZero(),t.name):r.updateElementAccessExpression(t,r.createVoidZero(),e.visitNode(t.argumentExpression,A,e.isExpression))}function $(){return x||(x={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function G(){var t=$();return t.privateIdentifierEnvironment||(t.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),t.privateIdentifierEnvironment}function q(){return y||(y=[])}function X(t){var n,i=e.getTextOfPropertyName(t.name),a=$().classConstructor,o=G(),s=o.weakSetName,c=[],l=t.name.escapedText,u=o.identifiers.get(l),d=!(e=>"#constructor"===e.escapedText)(t.name)&&void 0===u;if(e.hasStaticModifier(t))if(e.Debug.assert(a,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(t)){var p=Q(i,t);o.identifiers.set(l,{kind:"f",variableName:p,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isMethodDeclaration(t)){var _=Q(i,t);o.identifiers.set(l,{kind:"m",methodName:_,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isGetAccessorDeclaration(t)){var f=Q(i+"_get",t);"a"===(null==u?void 0:u.kind)&&u.isStatic&&!u.getterName?u.getterName=f:o.identifiers.set(l,{kind:"a",getterName:f,setterName:void 0,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isSetAccessorDeclaration(t)){var m=Q(i+"_set",t);"a"===(null==u?void 0:u.kind)&&u.isStatic&&!u.setterName?u.setterName=m:o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:m,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else e.Debug.assertNever(t,"Unknown class element type.");else if(e.isPropertyDeclaration(t)){var g=Q(i,t);o.identifiers.set(l,{kind:"f",brandCheckIdentifier:g,isStatic:!1,variableName:void 0,isValid:d}),c.push(r.createAssignment(g,r.createNewExpression(r.createIdentifier("WeakMap"),void 0,[])))}else e.isMethodDeclaration(t)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),o.identifiers.set(l,{kind:"m",methodName:Q(i,t),brandCheckIdentifier:s,isStatic:!1,isValid:d})):e.isAccessor(t)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),e.isGetAccessor(t)?(f=Q(i+"_get",t),"a"!==(null==u?void 0:u.kind)||u.isStatic||u.getterName?o.identifiers.set(l,{kind:"a",getterName:f,setterName:void 0,brandCheckIdentifier:s,isStatic:!1,isValid:d}):u.getterName=f):(m=Q(i+"_set",t),"a"!==(null==u?void 0:u.kind)||u.isStatic||u.setterName?o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:m,brandCheckIdentifier:s,isStatic:!1,isValid:d}):u.setterName=m)):e.Debug.assertNever(t,"Unknown class element type.");(n=q()).push.apply(n,c)}function Y(e,t){var i=G().className,a=i?"_".concat(i):"",o=r.createUniqueName("".concat(a,"_").concat(e),16);return 524288&c.getNodeCheckFlags(t)?s(o):n(o),o}function Q(e,t){return Y(e.substring(1),t.name)}function Z(e){var t;if((null==x?void 0:x.privateIdentifierEnvironment)&&(n=x.privateIdentifierEnvironment.identifiers.get(e.escapedText)))return n;for(var r=D.length-1;r>=0;--r){var n,i=D[r];if(i&&(n=null===(t=i.privateIdentifierEnvironment)||void 0===t?void 0:t.identifiers.get(e.escapedText)))return n}}function ee(i){var a=r.getGeneratedNameForNode(i),o=Z(i.name);if(!o)return e.visitEachChild(i,A,t);var s=i.expression;return(e.isThisProperty(i)||e.isSuperProperty(i)||!e.isSimpleCopiableExpression(i.expression))&&(s=r.createTempVariable(n,!0),q().push(r.createBinaryExpression(s,63,e.visitNode(i.expression,A,e.isExpression)))),r.createAssignmentTargetWrapper(a,L(o,s,a,63))}function te(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n))i=ee(n);else if(_&&e.isSuperProperty(n)&&S&&x){var a=x.classConstructor,o=x.superClassReference;if(1&x.facts)i=J(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,A,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,A,e.isExpression)):e.isSpreadElement(t)?r.updateSpreadElement(t,i):i}return e.visitNode(t,w)}function re(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(n)if(e.isPrivateIdentifierPropertyAccessExpression(n))i=ee(n);else if(_&&e.isSuperProperty(n)&&S&&x){var a=x.classConstructor,o=x.superClassReference;if(1&x.facts)i=J(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,A,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,A,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,A)):i:e.visitNode(t.initializer,w,e.isExpression))}if(e.isSpreadAssignment(t))return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,w,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,A)}}})(Fl),(e=>{var t,r;function n(t,r,n,i){var a=0!=(4096&r.getNodeCheckFlags(n)),o=[];return i.forEach(((r,n)=>{var i=e.unescapeLeadingUnderscores(n),s=[];s.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4)))),a&&s.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v"))))),o.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(s)))})),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(o,!0)]))],2))}!(e=>{e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(t||(t={})),(e=>{e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"})(r||(r={})),e.transformES2017=t=>{var r,i,a,o,s=t.factory,c=t.getEmitHelperFactory,l=t.resumeLexicalEnvironment,u=t.endLexicalEnvironment,d=t.hoistVariableDeclaration,p=t.getEmitResolver(),_=t.getCompilerOptions(),f=e.getEmitScriptTarget(_),m=0,g=[],h=0,y=t.onEmitNode,v=t.onSubstituteNode;return t.onEmitNode=(t,n,i)=>{if(1&r&&(e=>{var t=e.kind;return 256===t||170===t||168===t||171===t||172===t})(n)){var a=6144&p.getNodeCheckFlags(n);if(a!==m){var o=m;return m=a,y(t,n,i),void(m=o)}}else if(r&&g[e.getNodeId(n)])return o=m,m=0,y(t,n,i),void(m=o);y(t,n,i)},t.onSubstituteNode=(t,r)=>(r=v(t,r),1===t&&m?(t=>{switch(t.kind){case 205:return j(t);case 206:return U(t);case 207:return(t=>{var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?j(r):U(r);return s.createCallExpression(s.createPropertyAccessExpression(n,"call"),void 0,Il([s.createThis()],t.arguments,!0))}return t})(t)}return t})(r):r),e.chainBundle(t,(r=>{if(r.isDeclarationFile)return r;b(1,!1),b(2,!e.isEffectiveStrictModeSourceFile(r,_));var n=e.visitEachChild(r,T,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function b(e,t){h=t?h|e:h&~e}function x(e){return 0!=(h&e)}function E(){return x(2)}function S(e,t,r){var n=e&~h;if(n){b(n,!0);var i=t(r);return b(n,!1),i}return t(r)}function D(r){return e.visitEachChild(r,T,t)}function T(r){if(0==(128&r.transformFlags))return r;switch(r.kind){case 131:return;case 217:return(r=>x(1)?e.setOriginalNode(e.setTextRange(s.createYieldExpression(void 0,e.visitNode(r.expression,T,e.isExpression)),r),r):e.visitEachChild(r,T,t))(r);case 168:return S(3,k,r);case 255:return S(3,A,r);case 212:return S(3,N,r);case 213:return S(1,w,r);case 205:return a&&e.isPropertyAccessExpression(r)&&106===r.expression.kind&&a.add(r.name.escapedText),e.visitEachChild(r,T,t);case 206:return a&&106===r.expression.kind&&(o=!0),e.visitEachChild(r,T,t);case 171:case 172:case 170:case 256:case 225:return S(3,D,r);default:return e.visitEachChild(r,T,t)}}function C(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 236:return(r=>{if(P(r.declarationList)){var n=I(r.declarationList,!1);return n?s.createExpressionStatement(n):void 0}return e.visitEachChild(r,T,t)})(r);case 241:return(r=>{var n=r.initializer;return s.updateForStatement(r,P(n)?I(n,!1):e.visitNode(r.initializer,T,e.isForInitializer),e.visitNode(r.condition,T,e.isExpression),e.visitNode(r.incrementor,T,e.isExpression),e.visitIterationBody(r.statement,C,t))})(r);case 242:return(r=>s.updateForInStatement(r,P(r.initializer)?I(r.initializer,!0):e.visitNode(r.initializer,T,e.isForInitializer),e.visitNode(r.expression,T,e.isExpression),e.visitIterationBody(r.statement,C,t)))(r);case 243:return(r=>s.updateForOfStatement(r,e.visitNode(r.awaitModifier,T,e.isToken),P(r.initializer)?I(r.initializer,!0):e.visitNode(r.initializer,T,e.isForInitializer),e.visitNode(r.expression,T,e.isExpression),e.visitIterationBody(r.statement,C,t)))(r);case 291:return(r=>{var n,a=new e.Set;if(F(r.variableDeclaration,a),a.forEach(((t,r)=>{i.has(r)&&(n||(n=new e.Set(i)),n.delete(r))})),n){var o=i;i=n;var s=e.visitEachChild(r,C,t);return i=o,s}return e.visitEachChild(r,C,t)})(r);case 234:case 248:case 262:case 288:case 289:case 251:case 239:case 240:case 238:case 247:case 249:return e.visitEachChild(r,C,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return T(r)}function k(r){return s.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?L(r):e.visitFunctionBody(r.body,T,t))}function A(r){return s.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?L(r):e.visitFunctionBody(r.body,T,t))}function N(r){return s.updateFunctionExpression(r,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?L(r):e.visitFunctionBody(r.body,T,t))}function w(r){return s.updateArrowFunction(r,e.visitNodes(r.modifiers,T,e.isModifier),void 0,e.visitParameterList(r.parameters,T,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?L(r):e.visitFunctionBody(r.body,T,t))}function F(t,r){var n=t.name;if(e.isIdentifier(n))r.add(n.escapedText);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||F(o,r)}}function P(t){return!!t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&t.declarations.some(R)}function I(t,r){!(t=>{e.forEach(t.declarations,O)})(t);var n=e.getInitializedVariables(t);return 0===n.length?r?e.visitNode(s.converters.convertToAssignmentElementTarget(t.declarations[0].name),T,e.isExpression):void 0:s.inlineExpressions(e.map(n,M))}function O(t){var r=t.name;if(e.isIdentifier(r))d(r);else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||O(a)}}function M(t){var r=e.setSourceMapRange(s.createAssignment(s.converters.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,T,e.isExpression)}function R(t){var r=t.name;if(e.isIdentifier(r))return i.has(r.escapedText);for(var n=0,a=r.elements;n<a.length;n++){var o=a[n];if(!e.isOmittedExpression(o)&&R(o))return!0}return!1}function L(d){l();var _=e.getOriginalNode(d,e.isFunctionLike).type,m=f<2?(t=>{var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=p.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}})(_):void 0,h=213===d.kind,y=0!=(8192&p.getNodeCheckFlags(d)),v=i;i=new e.Set;for(var b=0,x=d.parameters;b<x.length;b++)F(x[b],i);var S,D=a,C=o;if(h||(a=new e.Set,o=!1),h){var k=c().createAwaiterHelper(E(),y,m,B(d.body)),A=u();e.some(A)?(O=s.converters.convertToFunctionBlock(k),S=s.updateBlock(O,e.setTextRange(s.createNodeArray(e.concatenate(A,O.statements)),O.statements))):S=k}else{var N=[],w=s.copyPrologue(d.body.statements,N,!1,T);N.push(s.createReturnStatement(c().createAwaiterHelper(E(),y,m,B(d.body,w)))),e.insertStatementsAfterStandardPrologue(N,u());var P=f>=2&&6144&p.getNodeCheckFlags(d);if(P&&(0==(1&r)&&(r|=1,t.enableSubstitution(207),t.enableSubstitution(205),t.enableSubstitution(206),t.enableEmitNotification(256),t.enableEmitNotification(168),t.enableEmitNotification(171),t.enableEmitNotification(172),t.enableEmitNotification(170),t.enableEmitNotification(236)),a.size)){var I=n(s,p,d,a);g[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(N,[I])}var O=s.createBlock(N,!0);e.setTextRange(O,d.body),P&&o&&(4096&p.getNodeCheckFlags(d)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(d)&&e.addEmitHelper(O,e.asyncSuperHelper)),S=O}return i=v,h||(a=D,o=C),S}function B(t,r){return e.isBlock(t)?s.updateBlock(t,e.visitNodes(t.statements,C,e.isStatement,r)):s.converters.convertToFunctionBlock(e.visitNode(t,C,e.isConciseBody))}function j(t){return 106===t.expression.kind?e.setTextRange(s.createPropertyAccessExpression(s.createUniqueName("_super",48),t.name),t):t}function U(t){return 106===t.expression.kind?(r=t.argumentExpression,n=t,4096&m?e.setTextRange(s.createPropertyAccessExpression(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=n})(Fl),(e=>{var t,r;!(e=>{e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(t||(t={})),(e=>{e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"})(r||(r={})),e.transformES2018=t=>{var r=t.factory,n=t.getEmitHelperFactory,i=t.resumeLexicalEnvironment,a=t.endLexicalEnvironment,o=t.hoistVariableDeclaration,s=t.getEmitResolver(),c=t.getCompilerOptions(),l=e.getEmitScriptTarget(c),u=t.onEmitNode;t.onEmitNode=(t,r,n)=>{if(1&p&&(e=>{var t=e.kind;return 256===t||170===t||168===t||171===t||172===t})(r)){var i=6144&s.getNodeCheckFlags(r);if(i!==v){var a=v;return v=i,u(t,r,n),void(v=a)}}else if(p&&x[e.getNodeId(r)])return a=v,v=0,u(t,r,n),void(v=a);u(t,r,n)};var d=t.onSubstituteNode;t.onSubstituteNode=(t,n)=>(n=d(t,n),1===t&&v?(t=>{switch(t.kind){case 205:return H(t);case 206:return J(t);case 207:return(t=>{var n=t.expression;if(e.isSuperProperty(n)){var i=e.isPropertyAccessExpression(n)?H(n):J(n);return r.createCallExpression(r.createPropertyAccessExpression(i,"call"),void 0,Il([r.createThis()],t.arguments,!0))}return t})(t)}return t})(n):n);var p,_,f,m,g,h,y=!1,v=0,b=0,x=[];return e.chainBundle(t,(n=>{if(n.isDeclarationFile)return n;f=n;var i=(n=>{var i=E(2,e.isEffectiveStrictModeSourceFile(n,c)?0:1);y=!1;var a=e.visitEachChild(n,T,t),o=e.concatenate(a.statements,m&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(m))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return S(i),s})(n);return e.addEmitHelpers(i,t.readEmitHelpers()),f=void 0,m=void 0,i}));function E(e,t){var r=b;return b=3&(b&~e|t),r}function S(e){b=e}function D(t){m=e.append(m,r.createVariableDeclaration(t))}function T(e){return w(e,!1)}function C(e){return w(e,!0)}function k(e){if(131!==e.kind)return e}function A(e,t,r,n){if(((e,t)=>b!==(b&~e|t))(r,n)){var i=E(r,n),a=e(t);return S(i),a}return e(t)}function N(r){return e.visitEachChild(r,T,t)}function w(i,a){if(0==(64&i.transformFlags))return i;switch(i.kind){case 217:return(i=>2&_&&1&_?e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,T,e.isExpression))),i),i):e.visitEachChild(i,T,t))(i);case 223:return(i=>{if(2&_&&1&_){if(i.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(i.expression),T,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(r.updateYieldExpression(i,i.asteriskToken,e.setTextRange(n().createAsyncDelegatorHelper(e.setTextRange(n().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,O(i.expression?e.visitNode(i.expression,T,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,T,t)})(i);case 246:return(n=>2&_&&1&_?r.updateReturnStatement(n,O(n.expression?e.visitNode(n.expression,T,e.isExpression):r.createVoidZero())):e.visitEachChild(n,T,t))(i);case 249:return(n=>{if(2&_){var i=e.unwrapInnermostStatementOfLabel(n);return 243===i.kind&&i.awaitModifier?I(i,n):r.restoreEnclosingLabel(e.visitNode(i,T,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,T,t)})(i);case 204:return(i=>{if(32768&i.transformFlags){var a=(t=>{for(var n,i=[],a=0,o=t;a<o.length;a++){var s=o[a];if(296===s.kind){n&&(i.push(r.createObjectLiteralExpression(n)),n=void 0);var c=s.expression;i.push(e.visitNode(c,T,e.isExpression))}else n=e.append(n,294===s.kind?r.createPropertyAssignment(s.name,e.visitNode(s.initializer,T,e.isExpression)):e.visitNode(s,T,e.isObjectLiteralElementLike))}return n&&i.push(r.createObjectLiteralExpression(n)),i})(i.properties);a.length&&204!==a[0].kind&&a.unshift(r.createObjectLiteralExpression());var o=a[0];if(a.length>1){for(var s=1;s<a.length;s++)o=n().createAssignHelper([o,a[s]]);return o}return n().createAssignHelper(a)}return e.visitEachChild(i,T,t)})(i);case 220:return((n,i)=>e.isDestructuringAssignment(n)&&32768&n.left.transformFlags?e.flattenDestructuringAssignment(n,T,t,1,!i):27===n.operatorToken.kind?r.updateBinaryExpression(n,e.visitNode(n.left,C,e.isExpression),n.operatorToken,e.visitNode(n.right,i?C:T,e.isExpression)):e.visitEachChild(n,T,t))(i,a);case 349:return((n,i)=>{if(i)return e.visitEachChild(n,C,t);for(var a,o=0;o<n.elements.length;o++){var s=n.elements[o],c=e.visitNode(s,o<n.elements.length-1?C:T,e.isExpression);(a||c!==s)&&(a||(a=n.elements.slice(0,o)),a.push(c))}var l=a?e.setTextRange(r.createNodeArray(a),n.elements):n.elements;return r.updateCommaListExpression(n,l)})(i,a);case 291:return(n=>{if(n.variableDeclaration&&e.isBindingPattern(n.variableDeclaration.name)&&32768&n.variableDeclaration.name.transformFlags){var i=r.getGeneratedNameForNode(n.variableDeclaration.name),a=r.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,void 0,i),o=e.flattenDestructuringBinding(a,T,t,1),s=e.visitNode(n.block,T,e.isBlock);return e.some(o)&&(s=r.updateBlock(s,Il([r.createVariableStatement(void 0,o)],s.statements,!0))),r.updateCatchClause(n,r.updateVariableDeclaration(n.variableDeclaration,i,void 0,void 0,void 0),s)}return e.visitEachChild(n,T,t)})(i);case 236:return(r=>{if(e.hasSyntacticModifier(r,1)){var n=y;y=!0;var i=e.visitEachChild(r,T,t);return y=n,i}return e.visitEachChild(r,T,t)})(i);case 253:return(e=>{if(y){var t=y;y=!1;var r=F(e,!0);return y=t,r}return F(e,!1)})(i);case 239:case 240:case 242:return A(N,i,0,2);case 243:return I(i,void 0);case 241:return A(P,i,0,2);case 216:return(r=>e.visitEachChild(r,C,t))(i);case 170:return A(M,i,2,1);case 168:return A(B,i,2,1);case 171:return A(R,i,2,1);case 172:return A(L,i,2,1);case 255:return A(j,i,2,1);case 212:return A(V,i,2,1);case 213:return A(U,i,2,0);case 163:return(n=>32768&n.transformFlags?r.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,r.getGeneratedNameForNode(n),void 0,void 0,e.visitNode(n.initializer,T,e.isExpression)):e.visitEachChild(n,T,t))(i);case 237:return(r=>e.visitEachChild(r,C,t))(i);case 211:return((r,n)=>e.visitEachChild(r,n?C:T,t))(i,a);case 209:return(r=>e.processTaggedTemplateExpression(t,r,T,f,D,e.ProcessLevel.LiftRestriction))(i);case 205:return g&&e.isPropertyAccessExpression(i)&&106===i.expression.kind&&g.add(i.name.escapedText),e.visitEachChild(i,T,t);case 206:return g&&106===i.expression.kind&&(h=!0),e.visitEachChild(i,T,t);case 256:case 225:return A(N,i,2,1);default:return e.visitEachChild(i,T,t)}}function F(r,n){return e.isBindingPattern(r.name)&&32768&r.name.transformFlags?e.flattenDestructuringBinding(r,T,t,1,void 0,n):e.visitEachChild(r,T,t)}function P(n){return r.updateForStatement(n,e.visitNode(n.initializer,C,e.isForInitializer),e.visitNode(n.condition,T,e.isExpression),e.visitNode(n.incrementor,C,e.isExpression),e.visitIterationBody(n.statement,T,t))}function I(i,a){var s=E(0,2);32768&i.initializer.transformFlags&&(i=(t=>{var n=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(n)||e.isAssignmentPattern(n)){var i=void 0,a=void 0,o=r.createTempVariable(void 0),s=[e.createForOfBindingStatement(r,n,o)];return e.isBlock(t.statement)?(e.addRange(s,t.statement.statements),i=t.statement,a=t.statement.statements):t.statement&&(e.append(s,t.statement),i=t.statement,a=t.statement),r.updateForOfStatement(t,t.awaitModifier,e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(o),t.initializer)],1),t.initializer),t.expression,e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(s),a),!0),i))}return t})(i));var c=i.awaitModifier?((i,a,s)=>{var c=e.visitNode(i.expression,T,e.isExpression),l=e.isIdentifier(c)?r.getGeneratedNameForNode(c):r.createTempVariable(void 0),u=e.isIdentifier(c)?r.getGeneratedNameForNode(l):r.createTempVariable(void 0),d=r.createUniqueName("e"),p=r.getGeneratedNameForNode(d),_=r.createTempVariable(void 0),f=e.setTextRange(n().createAsyncValuesHelper(c),i.expression),m=r.createCallExpression(r.createPropertyAccessExpression(l,"next"),void 0,[]),g=r.createPropertyAccessExpression(u,"done"),h=r.createPropertyAccessExpression(u,"value"),y=r.createFunctionCallCall(_,l,[]);o(d),o(_);var v=2&s?r.inlineExpressions([r.createAssignment(d,r.createVoidZero()),f]):f,b=e.setEmitFlags(e.setTextRange(r.createForStatement(e.setEmitFlags(e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(l,void 0,void 0,v),i.expression),r.createVariableDeclaration(u)]),i.expression),2097152),r.createComma(r.createAssignment(u,O(m)),r.createLogicalNot(g)),void 0,((n,i)=>{var a,o,s=e.createForOfBindingStatement(r,n.initializer,i),c=[e.visitNode(s,T,e.isStatement)],l=e.visitIterationBody(n.statement,T,t);return e.isBlock(l)?(e.addRange(c,l.statements),a=l,o=l.statements):c.push(l),e.setEmitFlags(e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(c),o),!0),a),432)})(i,h)),i),256);return r.createTryStatement(r.createBlock([r.restoreEnclosingLabel(b,a)]),r.createCatchClause(r.createVariableDeclaration(p),e.setEmitFlags(r.createBlock([r.createExpressionStatement(r.createAssignment(d,r.createObjectLiteralExpression([r.createPropertyAssignment("error",p)])))]),1)),r.createBlock([r.createTryStatement(r.createBlock([e.setEmitFlags(r.createIfStatement(r.createLogicalAnd(r.createLogicalAnd(u,r.createLogicalNot(g)),r.createAssignment(_,r.createPropertyAccessExpression(l,"return"))),r.createExpressionStatement(O(y))),1)]),void 0,e.setEmitFlags(r.createBlock([e.setEmitFlags(r.createIfStatement(d,r.createThrowStatement(r.createPropertyAccessExpression(d,"error"))),1)]),1))]))})(i,a,s):r.restoreEnclosingLabel(e.visitEachChild(i,T,t),a);return S(s),c}function O(e){return 1&_?r.createYieldExpression(void 0,n().createAwaitHelper(e)):r.createAwaitExpression(e)}function M(n){var i=_;_=0;var a=r.updateConstructorDeclaration(n,void 0,n.modifiers,e.visitParameterList(n.parameters,T,t),K(n));return _=i,a}function R(n){var i=_;_=0;var a=r.updateGetAccessorDeclaration(n,void 0,n.modifiers,e.visitNode(n.name,T,e.isPropertyName),e.visitParameterList(n.parameters,T,t),void 0,K(n));return _=i,a}function L(n){var i=_;_=0;var a=r.updateSetAccessorDeclaration(n,void 0,n.modifiers,e.visitNode(n.name,T,e.isPropertyName),e.visitParameterList(n.parameters,T,t),K(n));return _=i,a}function B(n){var i=_;_=e.getFunctionFlags(n);var a=r.updateMethodDeclaration(n,void 0,1&_?e.visitNodes(n.modifiers,k,e.isModifier):n.modifiers,2&_?void 0:n.asteriskToken,e.visitNode(n.name,T,e.isPropertyName),e.visitNode(void 0,T,e.isToken),void 0,e.visitParameterList(n.parameters,T,t),void 0,2&_&&1&_?z(n):K(n));return _=i,a}function j(n){var i=_;_=e.getFunctionFlags(n);var a=r.updateFunctionDeclaration(n,void 0,1&_?e.visitNodes(n.modifiers,k,e.isModifier):n.modifiers,2&_?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,T,t),void 0,2&_&&1&_?z(n):K(n));return _=i,a}function U(n){var i=_;_=e.getFunctionFlags(n);var a=r.updateArrowFunction(n,n.modifiers,void 0,e.visitParameterList(n.parameters,T,t),void 0,n.equalsGreaterThanToken,K(n));return _=i,a}function V(n){var i=_;_=e.getFunctionFlags(n);var a=r.updateFunctionExpression(n,1&_?e.visitNodes(n.modifiers,k,e.isModifier):n.modifiers,2&_?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,T,t),void 0,2&_&&1&_?z(n):K(n));return _=i,a}function z(o){i();var c=[],u=r.copyPrologue(o.body.statements,c,!1,T);W(c,o);var d=g,_=h;g=new e.Set,h=!1;var f=r.createReturnStatement(n().createAsyncGeneratorHelper(r.createFunctionExpression(void 0,r.createToken(41),o.name&&r.getGeneratedNameForNode(o.name),void 0,[],void 0,r.updateBlock(o.body,e.visitLexicalEnvironment(o.body.statements,T,t,u))),!!(1&b))),m=l>=2&&6144&s.getNodeCheckFlags(o);if(m){0==(1&p)&&(p|=1,t.enableSubstitution(207),t.enableSubstitution(205),t.enableSubstitution(206),t.enableEmitNotification(256),t.enableEmitNotification(168),t.enableEmitNotification(171),t.enableEmitNotification(172),t.enableEmitNotification(170),t.enableEmitNotification(236));var y=e.createSuperAccessVariableStatement(r,s,o,g);x[e.getNodeId(y)]=!0,e.insertStatementsAfterStandardPrologue(c,[y])}c.push(f),e.insertStatementsAfterStandardPrologue(c,a());var v=r.updateBlock(o.body,c);return m&&h&&(4096&s.getNodeCheckFlags(o)?e.addEmitHelper(v,e.advancedAsyncSuperHelper):2048&s.getNodeCheckFlags(o)&&e.addEmitHelper(v,e.asyncSuperHelper)),g=d,h=_,v}function K(t){var n;i();var o=0,s=[],c=null!==(n=e.visitNode(t.body,T,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(o=r.copyPrologue(c.statements,s,!1,T)),e.addRange(s,W(void 0,t));var l=a();if(o>0||e.some(s)||e.some(l)){var u=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(o)),r.updateBlock(u,e.setTextRange(r.createNodeArray(s),u.statements))}return c}function W(n,i){for(var a=0,o=i.parameters;a<o.length;a++){var s=o[a];if(32768&s.transformFlags){var c=r.getGeneratedNameForNode(s),l=e.flattenDestructuringBinding(s,T,t,1,c,!1,!0);if(e.some(l)){var u=r.createVariableStatement(void 0,r.createVariableDeclarationList(l));e.setEmitFlags(u,1048576),n=e.append(n,u)}}}return n}function H(t){return 106===t.expression.kind?e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",48),t.name),t):t}function J(t){return 106===t.expression.kind?(n=t.argumentExpression,i=t,4096&v?e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),"value"),i):e.setTextRange(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),i)):t;var n,i}}})(Fl),(e=>{e.transformES2019=t=>{var r=t.factory;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,n,t)));function n(i){if(0==(32&i.transformFlags))return i;switch(i.kind){case 291:return(i=>i.variableDeclaration?e.visitEachChild(i,n,t):r.updateCatchClause(i,r.createVariableDeclaration(r.createTempVariable(void 0)),e.visitNode(i.block,n,e.isBlock)))(i);default:return e.visitEachChild(i,n,t)}}}})(Fl),(e=>{e.transformES2020=t=>{var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,i,t)));function i(a){if(0==(16&a.transformFlags))return a;switch(a.kind){case 207:var u=o(a,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u;case 205:case 206:return e.isOptionalChain(a)?(u=c(a,!1,!1),e.Debug.assertNotNode(u,e.isSyntheticReference),u):e.visitEachChild(a,i,t);case 220:return 60===a.operatorToken.kind?(t=>{var a=e.visitNode(t.left,i,e.isExpression),o=a;return e.isSimpleCopiableExpression(a)||(o=r.createTempVariable(n),a=r.createAssignment(o,a)),e.setTextRange(r.createConditionalExpression(l(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression)),t)})(a):e.visitEachChild(a,i,t);case 214:return(t=>e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(s(t.expression,!1,!0),t):r.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression)))(a);default:return e.visitEachChild(a,i,t)}}function a(t,n,i){var a=s(t.expression,n,i);return e.isSyntheticReference(a)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(t,a.expression),a.thisArg):r.updateParenthesizedExpression(t,a)}function o(n,o){if(e.isOptionalChain(n))return c(n,o,!1);if(e.isParenthesizedExpression(n.expression)&&e.isOptionalChain(e.skipParentheses(n.expression))){var s=a(n.expression,!0,!1),l=e.visitNodes(n.arguments,i,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(r.createFunctionCallCall(s.expression,s.thisArg,l),n):r.updateCallExpression(n,s,void 0,l)}return e.visitEachChild(n,i,t)}function s(t,s,l){switch(t.kind){case 211:return a(t,s,l);case 205:case 206:return((t,a,o)=>{if(e.isOptionalChain(t))return c(t,a,o);var s,l=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(l)?s=l:(s=r.createTempVariable(n),l=r.createAssignment(s,l))),l=205===t.kind?r.updatePropertyAccessExpression(t,l,e.visitNode(t.name,i,e.isIdentifier)):r.updateElementAccessExpression(t,l,e.visitNode(t.argumentExpression,i,e.isExpression)),s?r.createSyntheticReferenceExpression(l,s):l})(t,s,l);case 207:return o(t,s);default:return e.visitNode(t,i,e.isExpression)}}function c(t,a,o){var c=(t=>{e.Debug.assertNotNode(t,e.isNonNullChain);for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),r.unshift(t);return{expression:t.expression,chain:r}})(t),u=c.expression,d=c.chain,p=s(u,e.isCallChain(d[0]),!1),_=e.isSyntheticReference(p)?p.thisArg:void 0,f=e.isSyntheticReference(p)?p.expression:p,m=f;e.isSimpleCopiableExpression(f)||(m=r.createTempVariable(n),f=r.createAssignment(m,f));for(var g,h=m,y=0;y<d.length;y++){var v=d[y];switch(v.kind){case 205:case 206:y===d.length-1&&a&&(e.isSimpleCopiableExpression(h)?g=h:(g=r.createTempVariable(n),h=r.createAssignment(g,h))),h=205===v.kind?r.createPropertyAccessExpression(h,e.visitNode(v.name,i,e.isIdentifier)):r.createElementAccessExpression(h,e.visitNode(v.argumentExpression,i,e.isExpression));break;case 207:h=0===y&&_?r.createFunctionCallCall(h,106===_.kind?r.createThis():_,e.visitNodes(v.arguments,i,e.isExpression)):r.createCallExpression(h,void 0,e.visitNodes(v.arguments,i,e.isExpression))}e.setOriginalNode(h,v)}var b=o?r.createConditionalExpression(l(f,m,!0),void 0,r.createTrue(),void 0,r.createDeleteExpression(h)):r.createConditionalExpression(l(f,m,!0),void 0,r.createVoidZero(),void 0,h);return e.setTextRange(b,t),g?r.createSyntheticReferenceExpression(b,g):b}function l(e,t,n){return r.createBinaryExpression(r.createBinaryExpression(e,r.createToken(n?36:37),r.createNull()),r.createToken(n?56:55),r.createBinaryExpression(t,r.createToken(n?36:37),r.createVoidZero()))}}})(Fl),(e=>{e.transformES2021=t=>{var r=t.hoistVariableDeclaration,n=t.factory;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,i,t)));function i(a){if(0==(8&a.transformFlags))return a;switch(a.kind){case 220:var o=a;if(e.isLogicalOrCoalescingAssignmentExpression(o))return(t=>{var a=t.operatorToken,o=e.getNonAssignmentOperatorForCompoundAssignment(a.kind),s=e.skipParentheses(e.visitNode(t.left,i,e.isLeftHandSideExpression)),c=s,l=e.skipParentheses(e.visitNode(t.right,i,e.isExpression));if(e.isAccessExpression(s)){var u=e.isSimpleCopiableExpression(s.expression),d=u?s.expression:n.createTempVariable(r),p=u?s.expression:n.createAssignment(d,s.expression);if(e.isPropertyAccessExpression(s))c=n.createPropertyAccessExpression(d,s.name),s=n.createPropertyAccessExpression(p,s.name);else{var _=e.isSimpleCopiableExpression(s.argumentExpression),f=_?s.argumentExpression:n.createTempVariable(r);c=n.createElementAccessExpression(d,f),s=n.createElementAccessExpression(p,_?s.argumentExpression:n.createAssignment(f,s.argumentExpression))}}return n.createBinaryExpression(s,o,n.createParenthesizedExpression(n.createAssignment(c,l)))})(o);default:return e.visitEachChild(a,i,t)}}}})(Fl),(e=>{e.transformESNext=t=>{return e.chainBundle(t,(n=>n.isDeclarationFile?n:e.visitEachChild(n,r,t)));function r(n){return 0==(4&n.transformFlags)?n:e.visitEachChild(n,r,t)}}})(Fl),(e=>{e.transformJsx=r=>{var n,i,a=r.factory,o=r.getEmitHelperFactory,s=r.getCompilerOptions();return e.chainBundle(r,(t=>{if(t.isDeclarationFile)return t;n=t,(i={}).importSpecifier=e.getJSXImplicitImportBase(s,t);var o=e.visitEachChild(t,u,r);e.addEmitHelpers(o,r.readEmitHelpers());var c=o.statements;if(i.filenameDeclaration&&(c=e.insertStatementAfterCustomPrologue(c.slice(),a.createVariableStatement(void 0,a.createVariableDeclarationList([i.filenameDeclaration],2)))),i.utilizedImplicitRuntimeImports)for(var l=0,d=e.arrayFrom(i.utilizedImplicitRuntimeImports.entries());l<d.length;l++){var p=d[l],_=p[0],f=p[1];if(e.isExternalModule(t)){var m=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamedImports(e.arrayFrom(f.values()))),a.createStringLiteral(_),void 0);e.setParentRecursive(m,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),m)}else if(e.isExternalOrCommonJsModule(t)){var g=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.createObjectBindingPattern(e.map(e.arrayFrom(f.values()),(e=>a.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,a.createCallExpression(a.createIdentifier("require"),void 0,[a.createStringLiteral(_)]))],2));e.setParentRecursive(g,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),g)}}return c!==o.statements&&(o=a.updateSourceFile(o,c)),i=void 0,o}));function c(){if(i.filenameDeclaration)return i.filenameDeclaration.name;var e=a.createVariableDeclaration(a.createUniqueName("_jsxFileName",48),void 0,void 0,a.createStringLiteral(n.fileName));return i.filenameDeclaration=e,i.filenameDeclaration.name}function l(t){var r,n,o="createElement"===t?i.importSpecifier:e.getJSXRuntimeImport(i.importSpecifier,s),c=null===(n=null===(r=i.utilizedImplicitRuntimeImports)||void 0===r?void 0:r.get(o))||void 0===n?void 0:n.get(t);if(c)return c.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=e.createMap());var l=i.utilizedImplicitRuntimeImports.get(o);l||(l=e.createMap(),i.utilizedImplicitRuntimeImports.set(o,l));var u=a.createUniqueName("_".concat(t),112),d=a.createImportSpecifier(!1,a.createIdentifier(t),u);return u.generatedImportReference=d,l.set(t,d),u}function u(t){return 2&t.transformFlags?(t=>{switch(t.kind){case 277:return _(t,!1);case 278:return f(t,!1);case 281:return m(t,!1);case 287:return N(t);default:return e.visitEachChild(t,u,r)}})(t):t}function d(t){switch(t.kind){case 11:return(t=>{var r=(t=>{for(var r,n=0,i=-1,a=0;a<t.length;a++){var o=t.charCodeAt(a);e.isLineBreak(o)?(-1!==n&&-1!==i&&(r=C(r,t.substr(n,i-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===n&&(n=a))}return-1!==n?C(r,t.substr(n)):r})(t.text);return void 0===r?void 0:a.createStringLiteral(r)})(t);case 287:return N(t);case 277:return _(t,!0);case 278:return f(t,!0);case 281:return m(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function p(t){return void 0===i.importSpecifier||(t=>{for(var r=!1,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(e.isJsxSpreadAttribute(a))r=!0;else if(r&&e.isJsxAttribute(a)&&"key"===a.name.escapedText)return!0}return!1})(t)}function _(e,t){return(p(e.openingElement)?v:h)(e.openingElement,e.children,t,e)}function f(e,t){return(p(e)?v:h)(e,void 0,t,e)}function m(e,t){return(void 0===i.importSpecifier?x:b)(e.openingFragment,e.children,t,e)}function g(t){var r=e.getSemanticJsxChildren(t);if(1===e.length(r)&&!r[0].dotDotDotToken){var n=d(r[0]);return n&&a.createPropertyAssignment("children",n)}var i=e.mapDefined(t,d);return e.length(i)?a.createPropertyAssignment("children",a.createArrayLiteralExpression(i)):void 0}function h(t,r,n,i){var o=A(t),s=r&&r.length?g(r):void 0,c=e.find(t.attributes.properties,(t=>!!t.name&&e.isIdentifier(t.name)&&"key"===t.name.escapedText)),l=c?e.filter(t.attributes.properties,(e=>e!==c)):t.attributes.properties;return y(o,e.length(l)?E(l,s):a.createObjectLiteralExpression(s?[s]:e.emptyArray),c,r||e.emptyArray,n,i)}function y(t,r,i,o,u,d){var p,_=e.getSemanticJsxChildren(o),f=e.length(_)>1||!!(null===(p=_[0])||void 0===p?void 0:p.dotDotDotToken),m=[t,r,i?T(i.initializer):a.createVoidZero()];if(5===s.jsx){var g=e.getOriginalNode(n);if(g&&e.isSourceFile(g)){m.push(f?a.createTrue():a.createFalse());var h=e.getLineAndCharacterOfPosition(g,d.pos);m.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(h.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(h.character+1))])),m.push(a.createThis())}}var y=e.setTextRange(a.createCallExpression((e=>l((e=>5===s.jsx?"jsxDEV":e?"jsxs":"jsx")(e)))(f),void 0,m),d);return u&&e.startOnNewLine(y),y}function v(t,o,c,u){var p=A(t),_=t.attributes.properties,f=e.length(_)?E(_):a.createNull(),m=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),g=e.createExpressionForJsxElement(a,m,p,f,e.mapDefined(o,d),u);return c&&e.startOnNewLine(g),g}function b(e,t,r,n){var i;if(t&&t.length){var o=(e=>{var t=g(e);return t&&a.createObjectLiteralExpression([t])})(t);o&&(i=o)}return y(l("Fragment"),i||a.createObjectLiteralExpression([]),void 0,t,r,n)}function x(t,i,o,c){var l=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,d),t,c);return o&&e.startOnNewLine(l),l}function E(t,r){var n=e.getEmitScriptTarget(s);return n&&n>=5?a.createObjectLiteralExpression(((t,r)=>{var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,((t,r)=>e.map(t,(t=>{return r?(n=t,a.createSpreadAssignment(e.visitNode(n.expression,u,e.isExpression))):D(t);var n})))));return r&&n.push(r),n})(t,r)):((t,r)=>{var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,((t,r)=>r?e.map(t,S):a.createObjectLiteralExpression(e.map(t,D)))));return e.isJsxSpreadAttribute(t[0])&&n.unshift(a.createObjectLiteralExpression()),r&&n.push(a.createObjectLiteralExpression([r])),e.singleOrUndefined(n)||o().createAssignHelper(n)})(t,r)}function S(t){return e.visitNode(t.expression,u,e.isExpression)}function D(t){var r=(t=>{var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)})(t),n=T(t.initializer);return a.createPropertyAssignment(r,n)}function T(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral(((s=k(o=t.text))===o?void 0:s)||t.text,r);return e.setTextRange(i,t)}return 287===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,u,e.isExpression):e.Debug.failBadSyntaxKind(t);var o,s}function C(e,t){var r=k(t);return void 0===e?r:e+" "+r}function k(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((r,n,i,a,o,s,c)=>{if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=t.get(c);return l?e.utf16EncodeAsString(l):r}))}function A(t){if(277===t.kind)return A(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function N(t){var r=e.visitNode(t.expression,u,e.isExpression);return t.dotDotDotToken?a.createSpreadElement(r):r}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))})(Fl),(e=>{e.transformES2016=t=>{var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(r=>r.isDeclarationFile?r:e.visitEachChild(r,i,t)));function i(a){if(0==(256&a.transformFlags))return a;switch(a.kind){case 220:return(a=>{switch(a.operatorToken.kind){case 67:return(t=>{var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var l=r.createTempVariable(n),u=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),e.setTextRange(r.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(l,u),s)}else e.isPropertyAccessExpression(s)?(l=r.createTempVariable(n),a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(l,s.name),s)):(a=s,o=s);return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)})(a);case 42:return(t=>{var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)})(a);default:return e.visitEachChild(a,i,t)}})(a);default:return e.visitEachChild(a,i,t)}}}})(Fl),(e=>{var t,r,n,i,a,o;function s(e,t){return{kind:e,expression:t}}!(e=>{e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"})(t||(t={})),(e=>{e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"})(r||(r={})),(e=>{e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"})(n||(n={})),(e=>{e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"})(i||(i={})),(e=>{e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(a||(a={})),(e=>{e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"})(o||(o={})),e.transformES2015=t=>{var r,n,i,a,o,c,l=t.factory,u=t.getEmitHelperFactory,d=t.startLexicalEnvironment,p=t.resumeLexicalEnvironment,_=t.endLexicalEnvironment,f=t.hoistVariableDeclaration,m=t.getCompilerOptions(),g=t.getEmitResolver(),h=t.onSubstituteNode,y=t.onEmitNode;function v(t){a=e.append(a,l.createVariableDeclaration(t))}return t.onEmitNode=(t,r,n)=>{if(1&c&&e.isFunctionLike(r)){var i=b(32670,8&e.getEmitFlags(r)?81:65);return y(t,r,n),void x(i,0,0)}y(t,r,n)},t.onSubstituteNode=(t,r)=>(r=h(t,r),1===t?(t=>{switch(t.kind){case 79:return(t=>{if(2&c&&!e.isInternalName(t)){var r=g.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!((t,r)=>{var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1})(r,t)))return e.setTextRange(l.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t})(t);case 108:return(t=>1&c&&16&i?e.setTextRange(l.createUniqueName("_this",48),t):t)(t)}return t})(r):e.isIdentifier(r)?(t=>{if(2&c&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&(e=>{switch(e.parent.kind){case 202:case 256:case 259:case 253:return e.parent.name===e&&g.isDeclarationWithCollidingName(e.parent)}return!1})(r))return e.setTextRange(l.getGeneratedNameForNode(r),t)}return t})(r):r),e.chainBundle(t,(o=>{if(o.isDeclarationFile)return o;r=o,n=o.text;var s=(t=>{var r=b(8064,64),n=[],i=[];d();var o=l.copyPrologue(t.statements,n,!1,D);return e.addRange(i,e.visitNodes(t.statements,D,e.isStatement,o)),a&&i.push(l.createVariableStatement(void 0,l.createVariableDeclarationList(a))),l.mergeLexicalEnvironment(n,_()),U(n,t),x(r,0,0),l.updateSourceFile(t,e.setTextRange(l.createNodeArray(e.concatenate(n,i)),t.statements))})(o);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,a=void 0,i=0,s}));function b(e,t){var r=i;return i=32767&(i&~e|t),r}function x(e,t,r){i=-32768&(i&~t|r)|e}function E(e){return 0!=(8192&i)&&246===e.kind&&!e.expression}function S(t){return 0!=(512&t.transformFlags)||void 0!==o||8192&i&&(t=>2097152&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t)))(t)||e.isIterationStatement(t,!1)&&pe(t)||0!=(33554432&e.getEmitFlags(t))}function D(e){return S(e)?A(e,!1):e}function T(e){return S(e)?A(e,!0):e}function C(t){if(S(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=b(32670,16449),i=A(t,!1);return x(n,98304,0),i}return A(t,!1)}return t}function k(e){return 106===e.kind?Fe(!0):D(e)}function A(n,a){switch(n.kind){case 124:return;case 256:return(t=>{var r=l.createVariableDeclaration(l.getLocalName(t,!0),void 0,void 0,F(t));e.setOriginalNode(r,t);var n=[],i=l.createVariableStatement(void 0,l.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,512)?l.createExportDefault(l.getLocalName(t)):l.createExternalModuleExport(l.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(l.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)})(n);case 225:return(e=>F(e))(n);case 163:return(t=>t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,void 0,l.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t)(n);case 255:return(r=>{var n=o;o=void 0;var a=b(32670,65),s=e.visitParameterList(r.parameters,D,t),c=G(r),u=32768&i?l.getLocalName(r):r.name;return x(a,98304,0),o=n,l.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,D,e.isModifier),r.asteriskToken,u,void 0,s,void 0,c)})(n);case 213:return(r=>{8192&r.transformFlags&&!(16384&i)&&(i|=65536);var n=o;o=void 0;var a=b(15232,66),s=l.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,D,t),void 0,G(r));return e.setTextRange(s,r),e.setOriginalNode(s,r),e.setEmitFlags(s,8),x(a,0,0),o=n,s})(n);case 212:return(r=>{var n=262144&e.getEmitFlags(r)?b(32662,69):b(32670,65),a=o;o=void 0;var s=e.visitParameterList(r.parameters,D,t),c=G(r),u=32768&i?l.getLocalName(r):r.name;return x(n,98304,0),o=a,l.updateFunctionExpression(r,void 0,r.asteriskToken,u,void 0,s,void 0,c)})(n);case 253:return Y(n);case 79:return w(n);case 254:return(r=>{if(3&r.flags||262144&r.transformFlags){3&r.flags&&Pe();var n=e.flatMap(r.declarations,1&r.flags?X:Y),i=l.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),262144&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,(t=>{for(var r=-1,n=-1,i=0,a=t;i<a.length;i++){var o=a[i];r=-1===r?o.pos:-1===o.pos?r:Math.min(r,o.pos),n=Math.max(n,o.end)}return e.createRange(r,n)})(n)),i}return e.visitEachChild(r,D,t)})(n);case 248:return(r=>{if(void 0!==o){var n=o.allowedNonLabeledJumps;o.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,D,t);return o.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,D,t)})(n);case 262:return(r=>{var n=b(7104,0),i=e.visitEachChild(r,D,t);return x(n,0,0),i})(n);case 234:return((r,n)=>{var a=256&i?b(7104,512):b(6976,128),o=e.visitEachChild(r,D,t);return x(a,0,0),o})(n);case 245:case 244:return(r=>{if(o){var n=245===r.kind?2:4;if(!(r.label&&o.labels&&o.labels.get(e.idText(r.label))||!r.label&&o.allowedNonLabeledJumps&n)){var i=void 0,a=r.label;a?245===r.kind?(i="break-".concat(a.escapedText),ve(o,!0,e.idText(a),i)):(i="continue-".concat(a.escapedText),ve(o,!1,e.idText(a),i)):245===r.kind?(o.nonLocalJumps|=2,i="break"):(o.nonLocalJumps|=4,i="continue");var s=l.createStringLiteral(i);if(o.loopOutParameters.length){for(var c=o.loopOutParameters,u=void 0,d=0;d<c.length;d++){var p=he(c[d],1);u=0===d?p:l.createBinaryExpression(u,27,p)}s=l.createBinaryExpression(u,27,s)}return l.createReturnStatement(s)}}return e.visitEachChild(r,D,t)})(n);case 249:return(t=>{o&&!o.labels&&(o.labels=new e.Map);var r=e.unwrapInnermostStatementOfLabel(t,o&&Q);return e.isIterationStatement(r,!1)?((e,t)=>{switch(e.kind){case 239:case 240:return te(e,t);case 241:return re(e,t);case 242:return ne(e,t);case 243:return ie(e,t)}})(r,t):l.restoreEnclosingLabel(e.visitNode(r,D,e.isStatement,l.liftToBlock),t,o&&Z)})(n);case 239:case 240:return te(n,void 0);case 241:return re(n,void 0);case 242:return ne(n,void 0);case 243:return ie(n,void 0);case 237:return(r=>e.visitEachChild(r,T,t))(n);case 204:return(r=>{for(var n=r.properties,a=-1,o=!1,s=0;s<n.length;s++){var c=n[s];if(524288&c.transformFlags&&4&i||(o=161===e.Debug.checkDefined(c.name).kind)){a=s;break}}if(a<0)return e.visitEachChild(r,D,t);var u=l.createTempVariable(f),d=[],p=l.createAssignment(u,e.setEmitFlags(l.createObjectLiteralExpression(e.visitNodes(n,D,e.isObjectLiteralElementLike,0,a),r.multiLine),o?65536:0));return r.multiLine&&e.startOnNewLine(p),d.push(p),((t,r,n,i)=>{for(var a=r.properties,o=a.length,s=i;s<o;s++){var c=a[s];switch(c.kind){case 171:case 172:var l=e.getAllAccessorDeclarations(r.properties,c);c===l.firstAccessor&&t.push(J(n,l,r,!!r.multiLine));break;case 168:t.push(De(c,n,r,r.multiLine));break;case 294:t.push(Ee(c,n,r.multiLine));break;case 295:t.push(Se(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}})(d,r,u,a),d.push(r.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(l.cloneNode(u),u),u.parent)):u),l.inlineExpressions(d)})(n);case 291:return(r=>{var n,i,a,o,s=b(7104,0);if(e.Debug.assert(!!r.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(r.variableDeclaration.name)){var c=l.createTempVariable(void 0),u=l.createVariableDeclaration(c);e.setTextRange(u,r.variableDeclaration);var d=e.flattenDestructuringBinding(r.variableDeclaration,D,t,0,c),p=l.createVariableDeclarationList(d);e.setTextRange(p,r.variableDeclaration);var _=l.createVariableStatement(void 0,p);n=l.updateCatchClause(r,u,(i=r.block,a=_,o=e.visitNodes(i.statements,D,e.isStatement),l.updateBlock(i,Il([a],o,!0))))}else n=e.visitEachChild(r,D,t);return x(s,0,0),n})(n);case 295:return(t=>e.setTextRange(l.createPropertyAssignment(t.name,w(l.cloneNode(t.name))),t))(n);case 161:return(r=>e.visitEachChild(r,D,t))(n);case 203:return(r=>e.some(r.elements,e.isSpreadElement)?Ce(r.elements,!1,!!r.multiLine,!!r.elements.hasTrailingComma):e.visitEachChild(r,D,t))(n);case 207:return(t=>{if(33554432&e.getEmitFlags(t))return(t=>{var r=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock),n=t=>e.isVariableStatement(t)&&!!e.first(t.declarationList.declarations).initializer,i=o;o=void 0;var a=e.visitNodes(r.statements,C,e.isStatement);o=i;var s=e.filter(a,n),c=e.filter(a,(e=>!n(e))),u=e.cast(e.first(s),e.isVariableStatement).declarationList.declarations[0],d=e.skipOuterExpressions(u.initializer),p=e.tryCast(d,e.isAssignmentExpression);!p&&e.isBinaryExpression(d)&&27===d.operatorToken.kind&&(p=e.tryCast(d.left,e.isAssignmentExpression));var _=e.cast(p?e.skipOuterExpressions(p.right):d,e.isCallExpression),f=e.cast(e.skipOuterExpressions(_.expression),e.isFunctionExpression),m=f.body.statements,g=0,h=-1,y=[];if(p){var v=e.tryCast(m[g],e.isExpressionStatement);v&&(y.push(v),g++),y.push(m[g]),g++,y.push(l.createExpressionStatement(l.createAssignment(p.left,e.cast(u.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(m,h));)h--;return e.addRange(y,m,g,h),h<-1&&e.addRange(y,m,h+1),e.addRange(y,c),e.addRange(y,s,1),l.restoreOuterExpressions(t.expression,l.restoreOuterExpressions(u.initializer,l.restoreOuterExpressions(p&&p.right,l.updateCallExpression(_,l.restoreOuterExpressions(_.expression,l.updateFunctionExpression(f,void 0,void 0,void 0,void 0,f.parameters,void 0,l.updateBlock(f.body,y))),void 0,_.arguments))))})(t);var r=e.skipOuterExpressions(t.expression);return 106===r.kind||e.isSuperProperty(r)||e.some(t.arguments,e.isSpreadElement)?Te(t,!0):l.updateCallExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,D,e.isExpression))})(n);case 208:return(r=>{if(e.some(r.arguments,e.isSpreadElement)){var n=l.createCallBinding(l.createPropertyAccessExpression(r.expression,"bind"),f),i=n.target,a=n.thisArg;return l.createNewExpression(l.createFunctionApplyCall(e.visitNode(i,D,e.isExpression),a,Ce(l.createNodeArray(Il([l.createVoidZero()],r.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(r,D,t)})(n);case 211:return((r,n)=>e.visitEachChild(r,n?T:D,t))(n,a);case 220:return q(n,a);case 349:return((r,n)=>{if(n)return e.visitEachChild(r,T,t);for(var i,a=0;a<r.elements.length;a++){var o=r.elements[a],s=e.visitNode(o,a<r.elements.length-1?T:D,e.isExpression);(i||s!==o)&&(i||(i=r.elements.slice(0,a)),i.push(s))}var c=i?e.setTextRange(l.createNodeArray(i),r.elements):r.elements;return l.updateCommaListExpression(r,c)})(n,a);case 14:case 15:case 16:case 17:return(t=>e.setTextRange(l.createStringLiteral(t.text),t))(n);case 10:return(t=>t.hasExtendedUnicodeEscape?e.setTextRange(l.createStringLiteral(t.text),t):t)(n);case 8:return(t=>384&t.numericLiteralFlags?e.setTextRange(l.createNumericLiteral(t.text),t):t)(n);case 209:return(n=>e.processTaggedTemplateExpression(t,n,D,r,v,e.ProcessLevel.All))(n);case 222:return(t=>{for(var r=l.createStringLiteral(t.head.text),n=0,i=t.templateSpans;n<i.length;n++){var a=i[n],o=[e.visitNode(a.expression,D,e.isExpression)];a.literal.text.length>0&&o.push(l.createStringLiteral(a.literal.text)),r=l.createCallExpression(l.createPropertyAccessExpression(r,"concat"),void 0,o)}return e.setTextRange(r,t)})(n);case 223:return(r=>e.visitEachChild(r,D,t))(n);case 224:return(t=>e.visitNode(t.expression,D,e.isExpression))(n);case 106:return Fe(!1);case 108:return(e=>(2&i&&!(16384&i)&&(i|=65536),o?2&i?(o.containsLexicalThis=!0,e):o.thisName||(o.thisName=l.createUniqueName("this")):e))(n);case 230:return(e=>103===e.keywordToken&&"target"===e.name.escapedText?(i|=32768,l.createUniqueName("_newTarget",48)):e)(n);case 168:return(t=>{e.Debug.assert(!e.isComputedPropertyName(t.name));var r=$(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(l.createPropertyAssignment(t.name,r),t)})(n);case 171:case 172:return(r=>{e.Debug.assert(!e.isComputedPropertyName(r.name));var n=o;o=void 0;var i,a=b(32670,65),s=e.visitParameterList(r.parameters,D,t),c=G(r);return i=171===r.kind?l.updateGetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,s,r.type,c):l.updateSetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,s,c),x(a,98304,0),o=n,i})(n);case 236:return(r=>{var n,i=b(0,e.hasSyntacticModifier(r,1)?32:0);if(o&&0==(3&r.declarationList.flags)&&!(t=>1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer)))(r)){for(var a=void 0,s=0,c=r.declarationList.declarations;s<c.length;s++){var u=c[s];if(fe(o,u),u.initializer){var d=void 0;e.isBindingPattern(u.name)?d=e.flattenDestructuringAssignment(u,D,t,0):(d=l.createBinaryExpression(u.name,63,e.visitNode(u.initializer,D,e.isExpression)),e.setTextRange(d,u)),a=e.append(a,d)}}n=a?e.setTextRange(l.createExpressionStatement(l.inlineExpressions(a)),r):void 0}else n=e.visitEachChild(r,D,t);return x(i,0,0),n})(n);case 246:return(r=>o?(o.nonLocalJumps|=8,E(r)&&(r=N(r)),l.createReturnStatement(l.createObjectLiteralExpression([l.createPropertyAssignment(l.createIdentifier("value"),r.expression?e.visitNode(r.expression,D,e.isExpression):l.createVoidZero())]))):E(r)?N(r):e.visitEachChild(r,D,t))(n);case 216:return(r=>e.visitEachChild(r,T,t))(n);default:return e.visitEachChild(n,D,t)}}function N(t){return e.setOriginalNode(l.createReturnStatement(l.createUniqueName("_this",48)),t)}function w(e){return o&&g.isArgumentsLocalBinding(e)?o.argumentsName||(o.argumentsName=l.createUniqueName("arguments")):e}function F(a){a.name&&Pe();var s=e.getClassExtendsHeritageElement(a),c=l.createFunctionExpression(void 0,void 0,void 0,void 0,s?[l.createParameterDeclaration(void 0,void 0,void 0,l.createUniqueName("_super",48))]:[],void 0,((a,s)=>{var c=[],f=l.getInternalName(a),m=e.isIdentifierANonContextualKeyword(f)?l.getGeneratedNameForNode(f):f;d(),((t,r,n)=>{n&&t.push(e.setTextRange(l.createExpressionStatement(u().createExtendsHelper(l.getInternalName(r))),n))})(c,a,s),((r,n,a,s)=>{var c=o;o=void 0;var u=b(32662,73),d=e.getFirstConstructorWithBody(n),f=((t,r)=>{if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||237!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||207!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||106!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||224!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText})(d,void 0!==s),m=l.createFunctionDeclaration(void 0,void 0,void 0,a,void 0,((r,n)=>e.visitParameterList(r&&!n?r.parameters:void 0,D,t)||[])(d,f),void 0,((t,r,n,a)=>{var o=!!n&&104!==e.skipOuterExpressions(n.expression).kind;if(!t)return((t,r)=>{var n=[];p(),l.mergeLexicalEnvironment(n,_()),r&&n.push(l.createReturnStatement(O()));var i=l.createNodeArray(n);e.setTextRange(i,t.members);var a=l.createBlock(i,!0);return e.setTextRange(a,t),e.setEmitFlags(a,1536),a})(r,o);var s=[],c=[];p();var u,d=0;if(a||(d=l.copyStandardPrologue(t.body.statements,s,!1)),R(c,t),j(c,t,a),a||(d=l.copyCustomPrologue(t.body.statements,c,d,D)),a)u=O();else if(o&&d<t.body.statements.length){var f=t.body.statements[d];e.isExpressionStatement(f)&&e.isSuperCall(f.expression)&&(u=(e=>Te(e,!1))(f.expression))}if(u&&(i|=8192,d++),e.addRange(c,e.visitNodes(t.body.statements,D,e.isStatement,d)),l.mergeLexicalEnvironment(s,_()),z(s,t,!1),o)if(!u||d!==t.body.statements.length||8192&t.body.transformFlags)V(c,t,u||I()),P(t.body)||c.push(l.createReturnStatement(l.createUniqueName("_this",48)));else{var m=e.cast(e.cast(u,e.isBinaryExpression).left,e.isCallExpression),g=l.createReturnStatement(u);e.setCommentRange(g,e.getCommentRange(m)),e.setEmitFlags(m,1536),c.push(g)}else U(s,t);var h=l.createBlock(e.setTextRange(l.createNodeArray(e.concatenate(s,c)),t.body.statements),!0);return e.setTextRange(h,t.body),h})(d,n,s,f));e.setTextRange(m,d||n),s&&e.setEmitFlags(m,8),r.push(m),x(u,98304,0),o=c})(c,a,m,s),((t,n)=>{for(var i=0,a=n.members;i<a.length;i++){var o=a[i];switch(o.kind){case 233:t.push(K(o));break;case 168:t.push(W(Ie(n,o),o,n));break;case 171:case 172:var s=e.getAllAccessorDeclarations(n.members,o);o===s.firstAccessor&&t.push(H(Ie(n,o),s,n));break;case 170:case 169:break;default:e.Debug.failBadSyntaxKind(o,r&&r.fileName)}}})(c,a);var g=e.createTokenRange(e.skipTrivia(n,a.members.end),19),h=l.createPartiallyEmittedExpression(m);e.setTextRangeEnd(h,g.end),e.setEmitFlags(h,1536);var y=l.createReturnStatement(h);e.setTextRangePos(y,g.pos),e.setEmitFlags(y,1920),c.push(y),e.insertStatementsAfterStandardPrologue(c,_());var v=l.createBlock(e.setTextRange(l.createNodeArray(c),a.members),!0);return e.setEmitFlags(v,1536),v})(a,s));e.setEmitFlags(c,65536&e.getEmitFlags(a)|524288);var f=l.createPartiallyEmittedExpression(c);e.setTextRangeEnd(f,a.end),e.setEmitFlags(f,1536);var m=l.createPartiallyEmittedExpression(f);e.setTextRangeEnd(m,e.skipTrivia(n,a.pos)),e.setEmitFlags(m,1536);var g=l.createParenthesizedExpression(l.createCallExpression(m,void 0,s?[e.visitNode(s.expression,D,e.isExpression)]:[]));return e.addSyntheticLeadingComment(g,3,"* @class "),g}function P(t){if(246===t.kind)return!0;if(238===t.kind){var r=t;if(r.elseStatement)return P(r.thenStatement)&&P(r.elseStatement)}else if(234===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&P(n))return!0}return!1}function I(){return e.setEmitFlags(l.createThis(),4)}function O(){return l.createLogicalOr(l.createLogicalAnd(l.createStrictInequality(l.createUniqueName("_super",48),l.createNull()),l.createFunctionApplyCall(l.createUniqueName("_super",48),I(),l.createIdentifier("arguments"))),I())}function M(t){return void 0!==t.initializer||e.isBindingPattern(t.name)}function R(t,r){if(!e.some(r.parameters,M))return!1;for(var n=!1,i=0,a=r.parameters;i<a.length;i++){var o=a[i],s=o.name,c=o.initializer;o.dotDotDotToken||(e.isBindingPattern(s)?n=L(t,o,s,c)||n:c&&(B(t,o,s,c),n=!0))}return n}function L(r,n,i,a){return i.elements.length>0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(n,D,t,0,l.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(l.createExpressionStatement(l.createAssignment(l.getGeneratedNameForNode(n),e.visitNode(a,D,e.isExpression))),1048576)),!0)}function B(t,r,n,i){i=e.visitNode(i,D,e.isExpression);var a=l.createIfStatement(l.createTypeCheck(l.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(l.createBlock([l.createExpressionStatement(e.setEmitFlags(e.setTextRange(l.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(l.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function j(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!((e,t)=>!(!e||!e.dotDotDotToken||t))(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(l.cloneNode(o.name),o.name),o.name.parent):l.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?l.cloneNode(o.name):s,u=n.parameters.length-1,d=l.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(s,void 0,void 0,l.createArrayLiteralExpression([]))])),o),1048576));var p=l.createForStatement(e.setTextRange(l.createVariableDeclarationList([l.createVariableDeclaration(d,void 0,void 0,l.createNumericLiteral(u))]),o),e.setTextRange(l.createLessThan(d,l.createPropertyAccessExpression(l.createIdentifier("arguments"),"length")),o),e.setTextRange(l.createPostfixIncrement(d),o),l.createBlock([e.startOnNewLine(e.setTextRange(l.createExpressionStatement(l.createAssignment(l.createElementAccessExpression(c,0===u?d:l.createSubtract(d,l.createNumericLiteral(u))),l.createElementAccessExpression(l.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),a.push(p),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(o,D,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function U(e,t){return!!(65536&i&&213!==t.kind)&&(V(e,t,l.createThis()),!0)}function V(r,n,i){0==(1&c)&&(c|=1,t.enableSubstitution(108),t.enableEmitNotification(170),t.enableEmitNotification(168),t.enableEmitNotification(171),t.enableEmitNotification(172),t.enableEmitNotification(213),t.enableEmitNotification(212),t.enableEmitNotification(255));var a=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_this",48),void 0,void 0,i)]));e.setEmitFlags(a,1050112),e.setSourceMapRange(a,n),e.insertStatementAfterCustomPrologue(r,a)}function z(t,r,n){if(32768&i){var a=void 0;switch(r.kind){case 213:return t;case 168:case 171:case 172:a=l.createVoidZero();break;case 170:a=l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor");break;case 255:case 212:a=l.createConditionalExpression(l.createLogicalAnd(e.setEmitFlags(l.createThis(),4),l.createBinaryExpression(e.setEmitFlags(l.createThis(),4),102,l.getLocalName(r))),void 0,l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor"),void 0,l.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_newTarget",48),void 0,void 0,a)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function K(t){return e.setTextRange(l.createEmptyStatement(),t)}function W(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=$(n,n,void 0,i),u=e.visitNode(n.name,D,e.isPropertyName);if(!e.isPrivateIdentifier(u)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var d=e.isComputedPropertyName(u)?u.expression:e.isIdentifier(u)?l.createStringLiteral(e.unescapeLeadingUnderscores(u.escapedText)):u;a=l.createObjectDefinePropertyCall(r,d,l.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(l,r,u,n.name);a=l.createAssignment(p,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var _=e.setTextRange(l.createExpressionStatement(a),n);return e.setOriginalNode(_,n),e.setCommentRange(_,o),e.setEmitFlags(_,48),_}function H(t,r,n){var i=l.createExpressionStatement(J(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function J(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(l.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var u=e.visitNode(a.name,D,e.isPropertyName);if(e.isPrivateIdentifier(u))return e.Debug.failBadSyntaxKind(u,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(l,u);e.setEmitFlags(d,1552),e.setSourceMapRange(d,a.name);var p=[];if(o){var _=$(o,void 0,void 0,n);e.setSourceMapRange(_,e.getSourceMapRange(o)),e.setEmitFlags(_,512);var f=l.createPropertyAssignment("get",_);e.setCommentRange(f,e.getCommentRange(o)),p.push(f)}if(s){var m=$(s,void 0,void 0,n);e.setSourceMapRange(m,e.getSourceMapRange(s)),e.setEmitFlags(m,512);var g=l.createPropertyAssignment("set",m);e.setCommentRange(g,e.getCommentRange(s)),p.push(g)}p.push(l.createPropertyAssignment("enumerable",o||s?l.createFalse():l.createTrue()),l.createPropertyAssignment("configurable",l.createTrue()));var h=l.createCallExpression(l.createPropertyAccessExpression(l.createIdentifier("Object"),"defineProperty"),void 0,[c,d,l.createObjectLiteralExpression(p,!0)]);return i&&e.startOnNewLine(h),h}function $(r,n,a,s){var c=o;o=void 0;var u=s&&e.isClassLike(s)&&!e.isStatic(r)?b(32670,73):b(32670,65),d=e.visitParameterList(r.parameters,D,t),p=G(r);return 32768&i&&!a&&(255===r.kind||212===r.kind)&&(a=l.getGeneratedNameForNode(r)),x(u,98304,0),o=c,e.setOriginalNode(e.setTextRange(l.createFunctionExpression(void 0,r.asteriskToken,a,void 0,d,void 0,p),n),r)}function G(t){var n,i,a,o=!1,s=!1,c=[],u=[],d=t.body;if(p(),e.isBlock(d)&&(a=l.copyStandardPrologue(d.statements,c,!1),a=l.copyCustomPrologue(d.statements,u,a,D,e.isHoistedFunction),a=l.copyCustomPrologue(d.statements,u,a,D,e.isHoistedVariableStatement)),o=R(u,t)||o,o=j(u,t,!1)||o,e.isBlock(d))a=l.copyCustomPrologue(d.statements,u,a,D),n=d.statements,e.addRange(u,e.visitNodes(d.statements,D,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(213===t.kind),n=e.moveRangeEnd(d,-1);var f=t.equalsGreaterThanToken;e.nodeIsSynthesized(f)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(f,d,r)?s=!0:o=!0);var m=e.visitNode(d,D,e.isExpression),g=l.createReturnStatement(m);e.setTextRange(g,d),e.moveSyntheticComments(g,d),e.setEmitFlags(g,1440),u.push(g),i=d}if(l.mergeLexicalEnvironment(c,_()),z(c,t,!1),U(c,t),e.some(c)&&(o=!0),u.unshift.apply(u,c),e.isBlock(d)&&e.arrayIsEqualTo(u,d.statements))return d;var h=l.createBlock(e.setTextRange(l.createNodeArray(u),n),o);return e.setTextRange(h,t.body),!o&&s&&e.setEmitFlags(h,1),i&&e.setTokenSourceMapRange(h,19,i),e.setOriginalNode(h,t.body),h}function q(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,D,t,0,!n):27===r.operatorToken.kind?l.updateBinaryExpression(r,e.visitNode(r.left,T,e.isExpression),r.operatorToken,e.visitNode(r.right,n?T:D,e.isExpression)):e.visitEachChild(r,D,t)}function X(r){var n=r.name;return e.isBindingPattern(n)?Y(r):!r.initializer&&(e=>{var t=g.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&i)||r&&n&&0!=(512&i))&&0==(4096&i)&&(!g.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&i))})(r)?l.updateVariableDeclaration(r,r.name,void 0,void 0,l.createVoidZero()):e.visitEachChild(r,D,t)}function Y(r){var n,i=b(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,D,t,0,void 0,0!=(32&i)):e.visitEachChild(r,D,t),x(i,0,0),n}function Q(t){o.labels.set(e.idText(t.label),!0)}function Z(t){o.labels.set(e.idText(t.label),!1)}function ee(r,n,a,s,c){var u=b(r,n),p=((r,n,a,s)=>{if(!pe(r)){var c=void 0;o&&(c=o.allowedNonLabeledJumps,o.allowedNonLabeledJumps=6);var u=s?s(r,n,void 0,a):l.restoreEnclosingLabel(e.isForStatement(r)?(t=>l.updateForStatement(t,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.condition,D,e.isExpression),e.visitNode(t.incrementor,T,e.isExpression),e.visitNode(t.statement,D,e.isStatement,l.liftToBlock)))(r):e.visitEachChild(r,D,t),n,o&&Z);return o&&(o.allowedNonLabeledJumps=c),u}var p=(t=>{var r;switch(t.kind){case 241:case 242:case 243:var n=t.initializer;n&&254===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var s=ue(t),c=0,l=r.declarations;c<l.length;c++)xe(t,l[c],i,a,s);var u={loopParameters:i,loopOutParameters:a};return o&&(o.argumentsName&&(u.argumentsName=o.argumentsName),o.thisName&&(u.thisName=o.thisName),o.hoistedLocalVariables&&(u.hoistedLocalVariables=o.hoistedLocalVariables)),u})(r),f=[],m=o;o=p;var g,h,y,v,b,x=ue(r)?((t,r)=>{var n=l.createUniqueName("_loop_init"),a=0!=(524288&t.initializer.transformFlags),o=0;r.containsLexicalThis&&(o|=8),a&&4&i&&(o|=262144);var s=[];return s.push(l.createVariableStatement(void 0,t.initializer)),ye(r.loopOutParameters,2,1,s),{functionName:n,containsYield:a,functionDeclaration:l.createVariableStatement(void 0,e.setEmitFlags(l.createVariableDeclarationList([l.createVariableDeclaration(n,void 0,void 0,e.setEmitFlags(l.createFunctionExpression(void 0,a?l.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(l.createBlock(s,!0),D,e.isBlock)),o))]),2097152)),part:l.createVariableDeclarationList(e.map(r.loopOutParameters,ge))}})(r,p):void 0,E=_e(r)?((t,r,n)=>{var a=l.createUniqueName("_loop");d();var o=e.visitNode(t.statement,D,e.isStatement,l.liftToBlock),s=_(),c=[];(de(t)||(t=>e.isForStatement(t)&&!!t.incrementor&&le(t.incrementor))(t))&&(r.conditionVariable=l.createUniqueName("inc"),t.incrementor?c.push(l.createIfStatement(r.conditionVariable,l.createExpressionStatement(e.visitNode(t.incrementor,D,e.isExpression)),l.createExpressionStatement(l.createAssignment(r.conditionVariable,l.createTrue())))):c.push(l.createIfStatement(l.createLogicalNot(r.conditionVariable),l.createExpressionStatement(l.createAssignment(r.conditionVariable,l.createTrue())))),de(t)&&c.push(l.createIfStatement(l.createPrefixUnaryExpression(53,e.visitNode(t.condition,D,e.isExpression)),e.visitNode(l.createBreakStatement(),D,e.isStatement)))),e.isBlock(o)?e.addRange(c,o.statements):c.push(o),ye(r.loopOutParameters,1,1,c),e.insertStatementsAfterStandardPrologue(c,s);var u=l.createBlock(c,!0);e.isBlock(o)&&e.setOriginalNode(u,o);var p=0!=(524288&t.statement.transformFlags),f=524288;return r.containsLexicalThis&&(f|=8),p&&0!=(4&i)&&(f|=262144),{functionName:a,containsYield:p,functionDeclaration:l.createVariableStatement(void 0,e.setEmitFlags(l.createVariableDeclarationList([l.createVariableDeclaration(a,void 0,void 0,e.setEmitFlags(l.createFunctionExpression(void 0,p?l.createToken(41):void 0,void 0,void 0,r.loopParameters,void 0,u),f))]),2097152)),part:((t,r,n,i)=>{var a=[],o=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),s=l.createCallExpression(t,void 0,e.map(r.loopParameters,(e=>e.name))),c=i?l.createYieldExpression(l.createToken(41),e.setEmitFlags(s,8388608)):s;if(o)a.push(l.createExpressionStatement(c)),ye(r.loopOutParameters,1,0,a);else{var u=l.createUniqueName("state"),d=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(u,void 0,void 0,c)]));if(a.push(d),ye(r.loopOutParameters,1,0,a),8&r.nonLocalJumps){var p=void 0;n?(n.nonLocalJumps|=8,p=l.createReturnStatement(u)):p=l.createReturnStatement(l.createPropertyAccessExpression(u,"value")),a.push(l.createIfStatement(l.createTypeCheck(u,"object"),p))}if(2&r.nonLocalJumps&&a.push(l.createIfStatement(l.createStrictEquality(u,l.createStringLiteral("break")),l.createBreakStatement())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var _=[];be(r.labeledNonLocalBreaks,!0,u,n,_),be(r.labeledNonLocalContinues,!1,u,n,_),a.push(l.createSwitchStatement(u,l.createCaseBlock(_)))}}return a})(a,r,n,p)}})(r,p,m):void 0;if(o=m,x&&f.push(x.functionDeclaration),E&&f.push(E.functionDeclaration),((e,t,r)=>{var n;if(t.argumentsName&&(r?r.argumentsName=t.argumentsName:(n||(n=[])).push(l.createVariableDeclaration(t.argumentsName,void 0,void 0,l.createIdentifier("arguments")))),t.thisName&&(r?r.thisName=t.thisName:(n||(n=[])).push(l.createVariableDeclaration(t.thisName,void 0,void 0,l.createIdentifier("this")))),t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{n||(n=[]);for(var i=0,a=t.hoistedLocalVariables;i<a.length;i++){var o=a[i];n.push(l.createVariableDeclaration(o))}}if(t.loopOutParameters.length){n||(n=[]);for(var s=0,c=t.loopOutParameters;s<c.length;s++){var u=c[s];n.push(l.createVariableDeclaration(u.outParamName))}}t.conditionVariable&&(n||(n=[]),n.push(l.createVariableDeclaration(t.conditionVariable,void 0,void 0,l.createFalse()))),n&&e.push(l.createVariableStatement(void 0,l.createVariableDeclarationList(n)))})(f,p,m),x&&f.push((h=x.functionName,y=x.containsYield,v=l.createCallExpression(h,void 0,[]),b=y?l.createYieldExpression(l.createToken(41),e.setEmitFlags(v,8388608)):v,l.createExpressionStatement(b))),E)if(s)g=s(r,n,E.part,a);else{var S=me(r,x,l.createBlock(E.part,!0));g=l.restoreEnclosingLabel(S,n,o&&Z)}else{var C=me(r,x,e.visitNode(r.statement,D,e.isStatement,l.liftToBlock));g=l.restoreEnclosingLabel(C,n,o&&Z)}return f.push(g),f})(a,s,u,c);return x(u,0,0),p}function te(e,t){return ee(0,1280,e,t)}function re(e,t){return ee(5056,3328,e,t)}function ne(e,t){return ee(3008,5376,e,t)}function ie(e,t){return ee(3008,5376,e,t,m.downlevelIteration?ce:se)}function ae(r,n,i){var a=[],o=r.initializer;if(e.isVariableDeclarationList(o)){3&r.initializer.flags&&Pe();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,D,t,0,n),u=e.setTextRange(l.createVariableDeclarationList(c),r.initializer);e.setOriginalNode(u,r.initializer),e.setSourceMapRange(u,e.createRange(c[0].pos,e.last(c).end)),a.push(l.createVariableStatement(void 0,u))}else a.push(e.setTextRange(l.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(l.createVariableDeclarationList([l.createVariableDeclaration(s?s.name:l.createTempVariable(void 0),void 0,void 0,n)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var d=l.createAssignment(o,n);e.isDestructuringAssignment(d)?a.push(l.createExpressionStatement(q(d,!0))):(e.setTextRangeEnd(d,o.end),a.push(e.setTextRange(l.createExpressionStatement(e.visitNode(d,D,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return oe(e.addRange(a,i));var p=e.visitNode(r.statement,D,e.isStatement,l.liftToBlock);return e.isBlock(p)?l.updateBlock(p,e.setTextRange(l.createNodeArray(e.concatenate(a,p.statements)),p.statements)):(a.push(p),oe(a))}function oe(t){return e.setEmitFlags(l.createBlock(l.createNodeArray(t),!0),432)}function se(t,r,n){var i=e.visitNode(t.expression,D,e.isExpression),a=l.createLoopVariable(),s=e.isIdentifier(i)?l.getGeneratedNameForNode(i):l.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var c=e.setTextRange(l.createForStatement(e.setEmitFlags(e.setTextRange(l.createVariableDeclarationList([e.setTextRange(l.createVariableDeclaration(a,void 0,void 0,l.createNumericLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(l.createVariableDeclaration(s,void 0,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(l.createLessThan(a,l.createPropertyAccessExpression(s,"length")),t.expression),e.setTextRange(l.createPostfixIncrement(a),t.expression),ae(t,l.createElementAccessExpression(s,a),n)),t);return e.setEmitFlags(c,256),e.setTextRange(c,t),l.restoreEnclosingLabel(c,r,o&&Z)}function ce(t,r,n,i){var a=e.visitNode(t.expression,D,e.isExpression),s=e.isIdentifier(a)?l.getGeneratedNameForNode(a):l.createTempVariable(void 0),c=e.isIdentifier(a)?l.getGeneratedNameForNode(s):l.createTempVariable(void 0),d=l.createUniqueName("e"),p=l.getGeneratedNameForNode(d),_=l.createTempVariable(void 0),m=e.setTextRange(u().createValuesHelper(a),t.expression),g=l.createCallExpression(l.createPropertyAccessExpression(s,"next"),void 0,[]);f(d),f(_);var h=1024&i?l.inlineExpressions([l.createAssignment(d,l.createVoidZero()),m]):m,y=e.setEmitFlags(e.setTextRange(l.createForStatement(e.setEmitFlags(e.setTextRange(l.createVariableDeclarationList([e.setTextRange(l.createVariableDeclaration(s,void 0,void 0,h),t.expression),l.createVariableDeclaration(c,void 0,void 0,g)]),t.expression),2097152),l.createLogicalNot(l.createPropertyAccessExpression(c,"done")),l.createAssignment(c,g),ae(t,l.createPropertyAccessExpression(c,"value"),n)),t),256);return l.createTryStatement(l.createBlock([l.restoreEnclosingLabel(y,r,o&&Z)]),l.createCatchClause(l.createVariableDeclaration(p),e.setEmitFlags(l.createBlock([l.createExpressionStatement(l.createAssignment(d,l.createObjectLiteralExpression([l.createPropertyAssignment("error",p)])))]),1)),l.createBlock([l.createTryStatement(l.createBlock([e.setEmitFlags(l.createIfStatement(l.createLogicalAnd(l.createLogicalAnd(c,l.createLogicalNot(l.createPropertyAccessExpression(c,"done"))),l.createAssignment(_,l.createPropertyAccessExpression(s,"return"))),l.createExpressionStatement(l.createFunctionCallCall(_,s,[]))),1)]),void 0,e.setEmitFlags(l.createBlock([e.setEmitFlags(l.createIfStatement(d,l.createThrowStatement(l.createPropertyAccessExpression(d,"error"))),1)]),1))]))}function le(e){return 0!=(131072&g.getNodeCheckFlags(e))}function ue(t){return e.isForStatement(t)&&!!t.initializer&&le(t.initializer)}function de(t){return e.isForStatement(t)&&!!t.condition&&le(t.condition)}function pe(e){return _e(e)||ue(e)}function _e(e){return 0!=(65536&g.getNodeCheckFlags(e))}function fe(t,r){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function r(n){if(79===n.kind)t.hoistedLocalVariables.push(n);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||r(o.name)}}(r.name)}function me(t,r,n){switch(t.kind){case 241:return((t,r,n)=>{var i=t.condition&&le(t.condition),a=i||t.incrementor&&le(t.incrementor);return l.updateForStatement(t,e.visitNode(r?r.part:t.initializer,T,e.isForInitializer),e.visitNode(i?void 0:t.condition,D,e.isExpression),e.visitNode(a?void 0:t.incrementor,T,e.isExpression),n)})(t,r,n);case 242:return((t,r)=>l.updateForInStatement(t,e.visitNode(t.initializer,D,e.isForInitializer),e.visitNode(t.expression,D,e.isExpression),r))(t,n);case 243:return((t,r)=>l.updateForOfStatement(t,void 0,e.visitNode(t.initializer,D,e.isForInitializer),e.visitNode(t.expression,D,e.isExpression),r))(t,n);case 239:return((t,r)=>l.updateDoStatement(t,r,e.visitNode(t.expression,D,e.isExpression)))(t,n);case 240:return((t,r)=>l.updateWhileStatement(t,e.visitNode(t.expression,D,e.isExpression),r))(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function ge(e){return l.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function he(e,t){var r=0===t?e.outParamName:e.originalName,n=0===t?e.originalName:e.outParamName;return l.createBinaryExpression(n,63,r)}function ye(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&t&&n.push(l.createExpressionStatement(he(o,r)))}}function ve(t,r,n,i){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=new e.Map),t.labeledNonLocalBreaks.set(n,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=new e.Map),t.labeledNonLocalContinues.set(n,i))}function be(e,t,r,n,i){e&&e.forEach(((e,a)=>{var o=[];if(!n||n.labels&&n.labels.get(a)){var s=l.createIdentifier(a);o.push(t?l.createBreakStatement(s):l.createContinueStatement(s))}else ve(n,t,a,e),o.push(l.createReturnStatement(r));i.push(l.createCaseClause(l.createStringLiteral(e),o))}))}function xe(t,r,n,i,a){var o=r.name;if(e.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];e.isOmittedExpression(u)||xe(t,u,n,i,a)}else{n.push(l.createParameterDeclaration(void 0,void 0,void 0,o));var d=g.getNodeCheckFlags(r);if(4194304&d||a){var p=l.createUniqueName("out_"+e.idText(o)),_=0;4194304&d&&(_|=1),e.isForStatement(t)&&t.initializer&&g.isBindingCapturedByNode(t.initializer,r)&&(_|=2),i.push({flags:_,originalName:o,outParamName:p})}}}function Ee(t,r,n){var i=l.createAssignment(e.createMemberAccessForPropertyName(l,r,e.visitNode(t.name,D,e.isPropertyName)),e.visitNode(t.initializer,D,e.isExpression));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function Se(t,r,n){var i=l.createAssignment(e.createMemberAccessForPropertyName(l,r,e.visitNode(t.name,D,e.isPropertyName)),l.cloneNode(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function De(t,r,n,i){var a=l.createAssignment(e.createMemberAccessForPropertyName(l,r,e.visitNode(t.name,D,e.isPropertyName)),$(t,t,void 0,n));return e.setTextRange(a,t),i&&e.startOnNewLine(a),a}function Te(r,n){if(16384&r.transformFlags||106===r.expression.kind||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=l.createCallBinding(r.expression,f),a=i.target,o=i.thisArg;106===r.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=16384&r.transformFlags?l.createFunctionApplyCall(e.visitNode(a,k,e.isExpression),106===r.expression.kind?o:e.visitNode(o,D,e.isExpression),Ce(r.arguments,!0,!1,!1)):e.setTextRange(l.createFunctionCallCall(e.visitNode(a,k,e.isExpression),106===r.expression.kind?o:e.visitNode(o,D,e.isExpression),e.visitNodes(r.arguments,D,e.isExpression)),r),106===r.expression.kind){var c=l.createLogicalOr(s,I());s=n?l.createAssignment(l.createUniqueName("_this",48),c):c}return e.setOriginalNode(s,r)}return e.visitEachChild(r,D,t)}function Ce(t,r,n,i){var a=t.length,o=e.flatten(e.spanMap(t,ke,((e,t,r,o)=>t(e,n,i&&o===a))));if(1===o.length){var s=o[0];if(r&&!m.downlevelIteration||e.isPackedArrayLiteral(s.expression)||e.isCallToHelper(s.expression,"___spreadArray"))return s.expression}for(var c=u(),d=0!==o[0].kind,p=d?l.createArrayLiteralExpression():o[0].expression,_=d?0:1;_<o.length;_++){var f=o[_];p=c.createSpreadArrayHelper(p,f.expression,1===f.kind&&!r)}return p}function ke(t){return e.isSpreadElement(t)?Ae:we}function Ae(t){return e.map(t,Ne)}function Ne(t){var r=e.visitNode(t.expression,D,e.isExpression),n=e.isCallToHelper(r,"___read"),i=n||e.isPackedArrayLiteral(r)?2:1;return!m.downlevelIteration||1!==i||e.isArrayLiteralExpression(r)||n||(r=u().createReadHelper(r,void 0),i=2),s(i,r)}function we(t,r,n){return s(0,l.createArrayLiteralExpression(e.visitNodes(l.createNodeArray(t,n),D,e.isExpression),r))}function Fe(e){return 8&i&&!e?l.createPropertyAccessExpression(l.createUniqueName("_super",48),"prototype"):l.createUniqueName("_super",48)}function Pe(){0==(2&c)&&(c|=2,t.enableSubstitution(79))}function Ie(t,r){return e.isStatic(r)?l.getInternalName(t):l.createPropertyAccessExpression(l.getInternalName(t),"prototype")}}})(Fl),(e=>{e.transformES5=t=>{var r,n,i=t.factory,a=t.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(r=t.onEmitNode,t.onEmitNode=(t,i,a)=>{switch(i.kind){case 279:case 280:case 278:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(279),t.enableEmitNotification(280),t.enableEmitNotification(278),n=[]);var o=t.onSubstituteNode;return t.onSubstituteNode=(t,r)=>r.id&&n&&n[r.id]?o(t,r):(r=o(t,r),e.isPropertyAccessExpression(r)?(t=>{if(e.isPrivateIdentifier(t.name))return t;var r=s(t.name);return r?e.setTextRange(i.createElementAccessExpression(t.expression,r),t):t})(r):e.isPropertyAssignment(r)?(t=>{var r=e.isIdentifier(t.name)&&s(t.name);return r?i.updatePropertyAssignment(t,r,t.initializer):t})(r):r),t.enableSubstitution(205),t.enableSubstitution(294),e.chainBundle(t,(e=>e));function s(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(void 0!==r&&r>=81&&r<=116)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}})(Fl),(e=>{var t,r,n,i,a;!(e=>{e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"})(t||(t={})),(e=>{e[e.Open=0]="Open",e[e.Close=1]="Close"})(r||(r={})),(e=>{e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"})(n||(n={})),(e=>{e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"})(i||(i={})),(e=>{e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"})(a||(a={})),e.transformGenerators=t=>{var r,n,i,a,o,s,c,l,u,d,p=t.factory,_=t.getEmitHelperFactory,f=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,g=t.hoistFunctionDeclaration,h=t.hoistVariableDeclaration,y=t.getCompilerOptions(),v=e.getEmitScriptTarget(y),b=t.getEmitResolver(),x=t.onSubstituteNode;t.onSubstituteNode=(t,i)=>(i=x(t,i),1===t?(t=>e.isIdentifier(t)?(t=>{if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=b.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(p.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t})(t):t)(i):i);var E,S,D,T,C,k,A,N,w,F,P,I,O=1,M=0,R=0;return e.chainBundle(t,(r=>{if(r.isDeclarationFile||0==(1024&r.transformFlags))return r;var n=e.visitEachChild(r,L,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function L(r){var n=r.transformFlags;return a?(r=>{switch(r.kind){case 239:case 240:return(r=>a?(ae(),r=e.visitEachChild(r,L,t),se(),r):e.visitEachChild(r,L,t))(r);case 248:return(r=>(a&&te({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,L,t),a&&ce(),r))(r);case 249:return(r=>(a&&te({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,L,t),a&&le(),r))(r);default:return B(r)}})(r):i?B(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?(t=>{switch(t.kind){case 255:return j(t);case 212:return U(t);default:return e.Debug.failBadSyntaxKind(t)}})(r):1024&n?e.visitEachChild(r,L,t):r}function B(r){switch(r.kind){case 255:return j(r);case 212:return U(r);case 171:case 172:return(r=>{var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o,r})(r);case 236:return(t=>{if(524288&t.transformFlags)$(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var i=n[r];h(i.name)}var a=e.getInitializedVariables(t.declarationList);if(0!==a.length)return e.setSourceMapRange(p.createExpressionStatement(p.inlineExpressions(e.map(a,G))),t)}})(r);case 241:return(r=>{a&&ae();var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];h(s.name)}var c=e.getInitializedVariables(n);r=p.updateForStatement(r,c.length>0?p.inlineExpressions(e.map(c,G)):void 0,e.visitNode(r.condition,L,e.isExpression),e.visitNode(r.incrementor,L,e.isExpression),e.visitIterationBody(r.statement,L,t))}else r=e.visitEachChild(r,L,t);return a&&se(),r})(r);case 242:return(r=>{a&&ae();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];h(s.name)}r=p.updateForInStatement(r,n.declarations[0].name,e.visitNode(r.expression,L,e.isExpression),e.visitNode(r.statement,L,e.isStatement,p.liftToBlock))}else r=e.visitEachChild(r,L,t);return a&&se(),r})(r);case 245:return(r=>{if(a){var n=fe(r.label&&e.idText(r.label));if(n>0)return ye(n,r)}return e.visitEachChild(r,L,t)})(r);case 244:return(r=>{if(a){var n=me(r.label&&e.idText(r.label));if(n>0)return ye(n,r)}return e.visitEachChild(r,L,t)})(r);case 246:return(t=>{return r=e.visitNode(t.expression,L,e.isExpression),n=t,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(r?[he(2),r]:[he(2)])),n);var r,n})(r);default:return 524288&r.transformFlags?(r=>{switch(r.kind){case 220:return(r=>{var n=e.getExpressionAssociativity(r);switch(n){case 0:return(r=>q(r.right)?e.isLogicalOperator(r.operatorToken.kind)?(t=>{var r=Z(),n=Q();return xe(n,e.visitNode(t.left,L,e.isExpression),t.left),55===t.operatorToken.kind?De(r,n,t.left):Se(r,n,t.left),xe(n,e.visitNode(t.right,L,e.isExpression),t.right),ee(r),n})(r):27===r.operatorToken.kind?z(r):p.updateBinaryExpression(r,Y(e.visitNode(r.left,L,e.isExpression)),r.operatorToken,e.visitNode(r.right,L,e.isExpression)):e.visitEachChild(r,L,t))(r);case 1:return(r=>{var n=r.left,i=r.right;if(q(i)){var a=void 0;switch(n.kind){case 205:a=p.updatePropertyAccessExpression(n,Y(e.visitNode(n.expression,L,e.isLeftHandSideExpression)),n.name);break;case 206:a=p.updateElementAccessExpression(n,Y(e.visitNode(n.expression,L,e.isLeftHandSideExpression)),Y(e.visitNode(n.argumentExpression,L,e.isExpression)));break;default:a=e.visitNode(n,L,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(p.createAssignment(a,e.setTextRange(p.createBinaryExpression(Y(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,L,e.isExpression)),r)),r):p.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,L,e.isExpression))}return e.visitEachChild(r,L,t)})(r);default:return e.Debug.assertNever(n)}})(r);case 349:return(t=>{for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];e.isBinaryExpression(a)&&27===a.operatorToken.kind?r.push(z(a)):(q(a)&&r.length>0&&(Te(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,L,e.isExpression)))}return p.inlineExpressions(r)})(r);case 221:return(r=>{if(q(r.whenTrue)||q(r.whenFalse)){var n=Z(),i=Z(),a=Q();return De(n,e.visitNode(r.condition,L,e.isExpression),r.condition),xe(a,e.visitNode(r.whenTrue,L,e.isExpression),r.whenTrue),Ee(i),ee(n),xe(a,e.visitNode(r.whenFalse,L,e.isExpression),r.whenFalse),ee(i),a}return e.visitEachChild(r,L,t)})(r);case 223:return(t=>{var r,n=Z(),i=e.visitNode(t.expression,L,e.isExpression);return t.asteriskToken?((e,t)=>{Te(7,[e],t)})(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(_().createValuesHelper(i),t):i,t):((e,t)=>{Te(6,[e],t)})(i,t),ee(n),r=t,e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(T,"sent"),void 0,[]),r)})(r);case 203:return(e=>K(e.elements,void 0,void 0,e.multiLine))(r);case 204:return(t=>{var r=t.properties,n=t.multiLine,i=X(r),a=Q();xe(a,p.createObjectLiteralExpression(e.visitNodes(r,L,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,((r,i)=>{q(i)&&r.length>0&&(be(p.createExpressionStatement(p.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(p,t,i,a),s=e.visitNode(o,L,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}),[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(a),a),a.parent)):a),p.inlineExpressions(o)})(r);case 206:return(r=>q(r.argumentExpression)?p.updateElementAccessExpression(r,Y(e.visitNode(r.expression,L,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,L,e.isExpression)):e.visitEachChild(r,L,t))(r);case 207:return(r=>{if(!e.isImportCall(r)&&e.forEach(r.arguments,q)){var n=p.createCallBinding(r.expression,h,v,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall(Y(e.visitNode(i,L,e.isLeftHandSideExpression)),a,K(r.arguments)),r),r)}return e.visitEachChild(r,L,t)})(r);case 208:return(r=>{if(e.forEach(r.arguments,q)){var n=p.createCallBinding(p.createPropertyAccessExpression(r.expression,"bind"),h),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall(Y(e.visitNode(i,L,e.isExpression)),a,K(r.arguments,p.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,L,t)})(r);default:return e.visitEachChild(r,L,t)}})(r):2098176&r.transformFlags?e.visitEachChild(r,L,t):r}}function j(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,L,t),void 0,V(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o}return i?void g(r):r}function U(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,L,t),void 0,V(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o}return r}function V(t){var r=[],n=i,_=a,g=o,h=s,y=c,v=l,b=u,x=d,C=O,k=E,A=S,N=D,w=T;i=!0,a=!1,o=void 0,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,O=1,E=void 0,S=void 0,D=void 0,T=p.createTempVariable(void 0),f();var F=p.copyPrologue(t.statements,r,!1,L);W(t.statements,F);var P=Ce();return e.insertStatementsAfterStandardPrologue(r,m()),r.push(p.createReturnStatement(P)),i=n,a=_,o=g,s=h,c=y,l=v,u=b,d=x,O=C,E=k,S=A,D=N,T=w,e.setTextRange(p.createBlock(r,t.multiLine),t)}function z(t){var r=[];return n(t.left),n(t.right),p.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(q(t)&&r.length>0&&(Te(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,L,e.isExpression)))}}function K(t,r,n,i){var a,o=X(t);if(o>0){a=Q();var s=e.visitNodes(t,L,e.isExpression,0,o);xe(a,p.createArrayLiteralExpression(r?Il([r],s,!0):s)),r=void 0}var c=e.reduceLeft(t,((t,n)=>{if(q(n)&&t.length>0){var o=void 0!==a;a||(a=Q()),xe(a,o?p.createArrayConcatCall(a,[p.createArrayLiteralExpression(t,i)]):p.createArrayLiteralExpression(r?Il([r],t,!0):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,L,e.isExpression)),t}),[],o);return a?p.createArrayConcatCall(a,[p.createArrayLiteralExpression(c,i)]):e.setTextRange(p.createArrayLiteralExpression(r?Il([r],c,!0):c,i),n)}function W(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)J(e[n])}function H(t){e.isBlock(t)?W(t.statements):J(t)}function J(i){var o=a;a||(a=q(i)),(i=>{switch(i.kind){case 234:return(t=>{q(t)?W(t.statements):be(e.visitNode(t,L,e.isStatement))})(i);case 237:return(t=>{be(e.visitNode(t,L,e.isStatement))})(i);case 238:return(t=>{if(q(t))if(q(t.thenStatement)||q(t.elseStatement)){var r=Z(),n=t.elseStatement?Z():void 0;De(t.elseStatement?n:r,e.visitNode(t.expression,L,e.isExpression),t.expression),H(t.thenStatement),t.elseStatement&&(Ee(r),ee(n),H(t.elseStatement)),ee(r)}else be(e.visitNode(t,L,e.isStatement));else be(e.visitNode(t,L,e.isStatement))})(i);case 239:return(t=>{if(q(t)){var r=Z(),n=Z();oe(r),ee(n),H(t.statement),ee(r),Se(n,e.visitNode(t.expression,L,e.isExpression)),se()}else be(e.visitNode(t,L,e.isStatement))})(i);case 240:return(t=>{if(q(t)){var r=Z(),n=oe(r);ee(r),De(n,e.visitNode(t.expression,L,e.isExpression)),H(t.statement),Ee(r),se()}else be(e.visitNode(t,L,e.isStatement))})(i);case 241:return(t=>{if(q(t)){var r=Z(),n=Z(),i=oe(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?$(a):be(e.setTextRange(p.createExpressionStatement(e.visitNode(a,L,e.isExpression)),a))}ee(r),t.condition&&De(i,e.visitNode(t.condition,L,e.isExpression)),H(t.statement),ee(n),t.incrementor&&be(e.setTextRange(p.createExpressionStatement(e.visitNode(t.incrementor,L,e.isExpression)),t.incrementor)),Ee(r),se()}else be(e.visitNode(t,L,e.isStatement))})(i);case 242:return(t=>{if(q(t)){var r=Q(),n=Q(),i=p.createLoopVariable(),a=t.initializer;h(i),xe(r,p.createArrayLiteralExpression()),be(p.createForInStatement(n,e.visitNode(t.expression,L,e.isExpression),p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(r,"push"),void 0,[n])))),xe(i,p.createNumericLiteral(0));var o=Z(),s=Z(),c=oe(s);ee(o),De(c,p.createLessThan(i,p.createPropertyAccessExpression(r,"length")));var l=void 0;if(e.isVariableDeclarationList(a)){for(var u=0,d=a.declarations;u<d.length;u++){var _=d[u];h(_.name)}l=p.cloneNode(a.declarations[0].name)}else l=e.visitNode(a,L,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(l));xe(l,p.createElementAccessExpression(r,i)),H(t.statement),ee(s),be(p.createExpressionStatement(p.createPostfixIncrement(i))),Ee(o),se()}else be(e.visitNode(t,L,e.isStatement))})(i);case 244:return(t=>{var r=me(t.label?e.idText(t.label):void 0);r>0?Ee(r,t):be(t)})(i);case 245:return(t=>{var r=fe(t.label?e.idText(t.label):void 0);r>0?Ee(r,t):be(t)})(i);case 246:return(t=>{Te(8,[e.visitNode(t.expression,L,e.isExpression)],t)})(i);case 247:return(t=>{var r,n,i;q(t)?(r=Y(e.visitNode(t.expression,L,e.isExpression)),n=Z(),i=Z(),ee(n),te({kind:1,expression:r,startLabel:n,endLabel:i}),H(t.statement),e.Debug.assert(1===ie()),ee(re().endLabel)):be(e.visitNode(t,L,e.isStatement))})(i);case 248:return(t=>{if(q(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(te({kind:2,isScript:!1,breakLabel:f=Z()}),f),a=Y(e.visitNode(t.expression,L,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var l=r.clauses[c];o.push(Z()),289===l.kind&&-1===s&&(s=c)}for(var u=0,d=[];u<n;){var _=0;for(c=u;c<n;c++)if(288===(l=r.clauses[c]).kind){if(q(l.expression)&&d.length>0)break;d.push(p.createCaseClause(e.visitNode(l.expression,L,e.isExpression),[ye(o[c],l.expression)]))}else _++;d.length&&(be(p.createSwitchStatement(a,p.createCaseBlock(d))),u+=d.length,d=[]),_>0&&(u+=_,_=0)}for(Ee(s>=0?o[s]:i),c=0;c<n;c++)ee(o[c]),W(r.clauses[c].statements);ce()}else be(e.visitNode(t,L,e.isStatement));var f})(i);case 249:return(t=>{q(t)?(te({kind:4,isScript:!1,labelText:e.idText(t.label),breakLabel:Z()}),H(t.statement),le()):be(e.visitNode(t,L,e.isStatement))})(i);case 250:return(t=>{var r;Te(9,[e.visitNode(null!==(r=t.expression)&&void 0!==r?r:p.createVoidZero(),L,e.isExpression)],t)})(i);case 251:return(i=>{var a,o;q(i)?(a=Z(),o=Z(),ee(a),te({kind:0,state:0,startLabel:a,endLabel:o}),ve(),H(i.tryBlock),i.catchClause&&((i=>{var a;if(e.Debug.assert(0===ie()),e.isGeneratedIdentifier(i.name))a=i.name,h(i.name);else{var o=e.idText(i.name);a=Q(o),r||(r=new e.Map,n=[],t.enableSubstitution(79)),r.set(o,!0),n[e.getOriginalNodeId(i)]=a}var s=ne();e.Debug.assert(s.state<1),Ee(s.endLabel);var c=Z();ee(c),s.state=1,s.catchVariable=a,s.catchLabel=c,xe(a,p.createCallExpression(p.createPropertyAccessExpression(T,"sent"),void 0,[])),ve()})(i.catchClause.variableDeclaration),H(i.catchClause.block)),i.finallyBlock&&((()=>{e.Debug.assert(0===ie());var t=ne();e.Debug.assert(t.state<2),Ee(t.endLabel);var r=Z();ee(r),t.state=2,t.finallyLabel=r})(),H(i.finallyBlock)),(()=>{e.Debug.assert(0===ie());var t=re();t.state<2?Ee(t.endLabel):Te(10),ee(t.endLabel),ve(),t.state=3})()):be(e.visitEachChild(i,L,t))})(i);default:be(e.visitNode(i,L,e.isStatement))}})(i),a=o}function $(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=p.cloneNode(i.name);e.setCommentRange(a,i.name),h(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,l=[];c<s;){for(var u=c;u<s&&!(q((i=o[u]).initializer)&&l.length>0);u++)l.push(G(i));l.length&&(be(p.createExpressionStatement(p.inlineExpressions(l))),c+=l.length,l=[])}}function G(t){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(t.name),t.name),e.visitNode(t.initializer,L,e.isExpression)),t)}function q(e){return!!e&&0!=(524288&e.transformFlags)}function X(e){for(var t=e.length,r=0;r<t;r++)if(q(e[r]))return r;return-1}function Y(t){if(e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t))return t;var r=p.createTempVariable(h);return xe(r,t,t),r}function Q(e){var t=e?p.createUniqueName(e):p.createTempVariable(void 0);return h(t),t}function Z(){u||(u=[]);var e=O;return O++,u[e]=-1,e}function ee(t){e.Debug.assert(void 0!==u,"No labels were defined."),u[t]=E?E.length:0}function te(e){o||(o=[],c=[],s=[],l=[]);var t=c.length;return c[t]=0,s[t]=E?E.length:0,o[t]=e,l.push(e),t}function re(){var t=ne();if(void 0===t)return e.Debug.fail("beginBlock was never called.");var r=c.length;return c[r]=1,s[r]=E?E.length:0,o[r]=t,l.pop(),t}function ne(){return e.lastOrUndefined(l)}function ie(){var e=ne();return e&&e.kind}function ae(){te({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function oe(e){var t=Z();return te({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function se(){e.Debug.assert(3===ie());var t=re(),r=t.breakLabel;t.isScript||ee(r)}function ce(){e.Debug.assert(2===ie());var t=re(),r=t.breakLabel;t.isScript||ee(r)}function le(){e.Debug.assert(4===ie());var t=re();t.isScript||ee(t.breakLabel)}function ue(e){return 2===e.kind||3===e.kind}function de(e){return 4===e.kind}function pe(e){return 3===e.kind}function _e(e,t){for(var r=t;r>=0;r--){var n=l[r];if(!de(n))break;if(n.labelText===e)return!0}return!1}function fe(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(de(r=l[t])&&r.labelText===e)return r.breakLabel;if(ue(r)&&_e(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(ue(r=l[t]))return r.breakLabel}return 0}function me(e){if(l)if(e){for(var t=l.length-1;t>=0;t--)if(pe(r=l[t])&&_e(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(pe(r=l[t]))return r.continueLabel}return 0}function ge(e){if(void 0!==e&&e>0){void 0===d&&(d=[]);var t=p.createNumericLiteral(-1);return void 0===d[e]?d[e]=[t]:d[e].push(t),t}return p.createOmittedExpression()}function he(t){var r=p.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,3,(e=>{switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}})(t)),r}function ye(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(3),ge(t)])),r)}function ve(){Te(0)}function be(e){e?Te(1,[e]):ve()}function xe(e,t,r){Te(2,[e,t],r)}function Ee(e,t){Te(3,[e],t)}function Se(e,t,r){Te(4,[e,t],r)}function De(e,t,r){Te(5,[e,t],r)}function Te(e,t,r){void 0===E&&(E=[],S=[],D=[]),void 0===u&&ee(Z());var n=E.length;E[n]=e,S[n]=t,D[n]=r}function Ce(){M=0,R=0,C=void 0,k=!1,A=!1,N=void 0,w=void 0,F=void 0,P=void 0,I=void 0;var t=(()=>{if(E){for(var t=0;t<E.length;t++)we(t);ke(E.length)}else ke(0);if(N){var r=p.createPropertyAccessExpression(T,"label"),n=p.createSwitchStatement(r,p.createCaseBlock(N));return[e.startOnNewLine(n)]}return w||[]})();return _().createGeneratorHelper(e.setEmitFlags(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,T)],void 0,p.createBlock(t,t.length>0)),524288))}function ke(e){(e=>{if(!A)return!0;if(!u||!d)return!1;for(var t=0;t<u.length;t++)if(u[t]===e&&d[t])return!0;return!1})(e)&&(Ne(e),I=void 0,Pe(void 0,void 0)),w&&N&&Ae(!1),(()=>{if(void 0!==d&&void 0!==C)for(var e=0;e<C.length;e++){var t=C[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=d[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++)s[o].text=String(e)}}})()}function Ae(e){if(N||(N=[]),w){if(I)for(var t=I.length-1;t>=0;t--){var r=I[t];w=[p.createWithStatement(r.expression,p.createBlock(w))]}if(P){var n=P.startLabel,i=P.catchLabel,a=P.finallyLabel,o=P.endLabel;w.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(T,"trys"),"push"),void 0,[p.createArrayLiteralExpression([ge(n),ge(i),ge(a),ge(o)])]))),P=void 0}e&&w.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(T,"label"),p.createNumericLiteral(R+1))))}N.push(p.createCaseClause(p.createNumericLiteral(R),w||[])),w=void 0}function Ne(e){if(u)for(var t=0;t<u.length;t++)u[t]===e&&(w&&(Ae(!k),k=!1,A=!1,R++),void 0===C&&(C=[]),void 0===C[R]?C[R]=[t]:C[R].push(t))}function we(t){if(Ne(t),(e=>{if(o)for(;M<c.length&&s[M]<=e;M++){var t=o[M],r=c[M];switch(t.kind){case 0:0===r?(F||(F=[]),w||(w=[]),F.push(P),P=t):1===r&&(P=F.pop());break;case 1:0===r?(I||(I=[]),I.push(t)):1===r&&I.pop()}}})(t),!k){k=!1,A=!1;var r=E[t];if(0!==r){if(10===r)return k=!0,void Fe(p.createReturnStatement(p.createArrayLiteralExpression([he(7)])));var n=S[t];if(1===r)return Fe(n[0]);var i,a,l,u=D[t];switch(r){case 2:return i=n[0],a=n[1],l=u,void Fe(e.setTextRange(p.createExpressionStatement(p.createAssignment(i,a)),l));case 3:return((t,r)=>{k=!0,Fe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(3),ge(t)])),r),384))})(n[0],u);case 4:return((t,r,n)=>{Fe(e.setEmitFlags(p.createIfStatement(r,e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(3),ge(t)])),n),384)),1))})(n[0],n[1],u);case 5:return((t,r,n)=>{Fe(e.setEmitFlags(p.createIfStatement(p.createLogicalNot(r),e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(3),ge(t)])),n),384)),1))})(n[0],n[1],u);case 6:return((t,r)=>{k=!0,Fe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[he(4),t]:[he(4)])),r),384))})(n[0],u);case 7:return((t,r)=>{k=!0,Fe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(5),t])),r),384))})(n[0],u);case 8:return Pe(n[0],u);case 9:return((t,r)=>{k=!0,A=!0,Fe(e.setTextRange(p.createThrowStatement(t),r))})(n[0],u)}}}}function Fe(e){e&&(w?w.push(e):w=[e])}function Pe(t,r){k=!0,A=!0,Fe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[he(2),t]:[he(2)])),r),384))}}})(Fl),(e=>{e.transformModule=r=>{var n=r.factory,i=r.getEmitHelperFactory,a=r.startLexicalEnvironment,o=r.endLexicalEnvironment,s=r.hoistVariableDeclaration,c=r.getCompilerOptions(),l=r.getEmitResolver(),u=r.getEmitHost(),d=e.getEmitScriptTarget(c),p=e.getEmitModuleKind(c),_=r.onSubstituteNode,f=r.onEmitNode;r.onSubstituteNode=(t,r)=>(r=_(t,r)).id&&b[r.id]?r:1===t?(t=>{switch(t.kind){case 79:return Y(t);case 207:return(t=>{if(e.isIdentifier(t.expression)){var r=Y(t.expression);if(b[e.getNodeId(r)]=!0,!e.isIdentifier(r))return e.addEmitFlags(n.updateCallExpression(t,r,void 0,t.arguments),536870912)}return t})(t);case 209:return(t=>{if(e.isIdentifier(t.tag)){var r=Y(t.tag);if(b[e.getNodeId(r)]=!0,!e.isIdentifier(r))return e.addEmitFlags(n.updateTaggedTemplateExpression(t,r,void 0,t.template),536870912)}return t})(t);case 220:return(t=>{if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=Q(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];b[e.getNodeId(n)]=!0,n=q(o,n,t)}return n}}return t})(t)}return t})(r):e.isShorthandPropertyAssignment(r)?(t=>{var r=t.name,i=Y(r);if(i!==r){if(t.objectAssignmentInitializer){var a=n.createAssignment(i,t.objectAssignmentInitializer);return e.setTextRange(n.createPropertyAssignment(r,a),t)}return e.setTextRange(n.createPropertyAssignment(r,i),t)}return t})(r):r,r.onEmitNode=(t,r,n)=>{303===r.kind?(m=r,g=y[e.getOriginalNodeId(m)],f(t,r,n),m=void 0,g=void 0):f(t,r,n)},r.enableSubstitution(207),r.enableSubstitution(209),r.enableSubstitution(79),r.enableSubstitution(220),r.enableSubstitution(295),r.enableEmitNotification(303);var m,g,h,y=[],v=[],b=[];return e.chainBundle(r,(t=>{if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,c)||4194304&t.transformFlags||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(c)&&e.outFile(c)))return t;m=t,g=e.collectExternalModuleInfo(r,t,l,c),y[e.getOriginalNodeId(t)]=g;var n=(t=>{switch(t){case e.ModuleKind.AMD:return S;case e.ModuleKind.UMD:return D;default:return E}})(p)(t);return m=void 0,g=void 0,h=!1,n}));function x(){return!(g.exportEquals||!e.isExternalModule(m))}function E(t){a();var i=[],s=e.getStrictOptionValue(c,"alwaysStrict")||!c.noImplicitUseStrict&&e.isExternalModule(m),l=n.copyPrologue(t.statements,i,s&&!e.isJsonSourceFile(t),N);if(x()&&e.append(i,G()),e.length(g.exportedNames))for(var u=0;u<g.exportedNames.length;u+=50)e.append(i,n.createExpressionStatement(e.reduceLeft(g.exportedNames.slice(u,u+50),((t,r)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)),n.createVoidZero())));e.append(i,e.visitNode(g.externalHelpersImportDeclaration,N,e.isStatement)),e.addRange(i,e.visitNodes(t.statements,N,e.isStatement,l)),A(i,!1),e.insertStatementsAfterStandardPrologue(i,o());var d=n.updateSourceFile(t,e.setTextRange(n.createNodeArray(i),t.statements));return e.addEmitHelpers(d,r.readEmitHelpers()),d}function S(t){var i=n.createIdentifier("define"),a=e.tryGetModuleNameFromFile(n,t,u,c),o=e.isJsonSourceFile(t)&&t,s=T(t,!0),l=s.aliasedModuleNames,d=s.unaliasedModuleNames,p=s.importAliasNames,_=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(i,void 0,Il(Il([],a?[a]:[],!0),[n.createArrayLiteralExpression(o?e.emptyArray:Il(Il([n.createStringLiteral("require"),n.createStringLiteral("exports")],l,!0),d,!0)),o?o.statements.length?o.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,Il([n.createParameterDeclaration(void 0,void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,void 0,"exports")],p,!0),void 0,k(t))],!1)))]),t.statements));return e.addEmitHelpers(_,r.readEmitHelpers()),_}function D(t){var i=T(t,!1),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames,l=e.tryGetModuleNameFromFile(n,t,u,c),d=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),e.setEmitFlags(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,Il(Il([],l?[l]:[],!0),[n.createArrayLiteralExpression(Il(Il([n.createStringLiteral("require"),n.createStringLiteral("exports")],a,!0),o,!0)),n.createIdentifier("factory")],!1)))])))],!0),void 0)),p=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(d,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,Il([n.createParameterDeclaration(void 0,void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,void 0,"exports")],s,!0),void 0,k(t))]))]),t.statements));return e.addEmitHelpers(p,r.readEmitHelpers()),p}function T(t,r){for(var i=[],a=[],o=[],s=0,d=t.amdDependencies;s<d.length;s++){var p=d[s];p.name?(i.push(n.createStringLiteral(p.path)),o.push(n.createParameterDeclaration(void 0,void 0,void 0,p.name))):a.push(n.createStringLiteral(p.path))}for(var _=0,f=g.externalImports;_<f.length;_++){var h=f[_],y=e.getExternalModuleNameLiteral(n,h,m,u,l,c),v=e.getLocalNameForExternalImport(n,h,m);y&&(r&&v?(e.setEmitFlags(v,4),i.push(y),o.push(n.createParameterDeclaration(void 0,void 0,void 0,v))):a.push(y))}return{aliasedModuleNames:i,unaliasedModuleNames:a,importAliasNames:o}}function C(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(n,t,m,u,l,c)){var r=e.getLocalNameForExternalImport(n,t,m),i=R(t,r);if(i!==r)return n.createExpressionStatement(n.createAssignment(r,i))}}function k(r){a();var i=[],s=n.copyPrologue(r.statements,i,!c.noImplicitUseStrict,N);x()&&e.append(i,G()),e.length(g.exportedNames)&&e.append(i,n.createExpressionStatement(e.reduceLeft(g.exportedNames,((t,r)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)),n.createVoidZero()))),e.append(i,e.visitNode(g.externalHelpersImportDeclaration,N,e.isStatement)),p===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(g.externalImports,C)),e.addRange(i,e.visitNodes(r.statements,N,e.isStatement,s)),A(i,!0),e.insertStatementsAfterStandardPrologue(i,o());var l=n.createBlock(i,!0);return h&&e.addEmitHelper(l,t),l}function A(t,r){if(g.exportEquals){var i=e.visitNode(g.exportEquals.expression,F);if(i)if(r){var a=n.createReturnStatement(i);e.setTextRange(a,g.exportEquals),e.setEmitFlags(a,1920),t.push(a)}else a=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),i)),e.setTextRange(a,g.exportEquals),e.setEmitFlags(a,1536),t.push(a)}}function N(t){switch(t.kind){case 265:return(t=>{var r,i=e.getNamespaceDeclarationNode(t);if(p!==e.ModuleKind.AMD){if(!t.importClause)return e.setOriginalNode(e.setTextRange(n.createExpressionStatement(L(t)),t),t);var a=[];i&&!e.isDefaultImport(t)?a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,R(t,L(t)))):(a.push(n.createVariableDeclaration(n.getGeneratedNameForNode(t),void 0,void 0,R(t,L(t)))),i&&e.isDefaultImport(t)&&a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)))),r=e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList(a,d>=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(r=e.append(r,n.createVariableStatement(void 0,n.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)),t),t)],d>=2?2:0))));if(U(t)){var o=e.getOriginalNodeId(t);v[o]=V(v[o],t)}else r=V(r,t);return e.singleOrMany(r)})(t);case 264:return(t=>{var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(q(t.name,L(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(t.name),void 0,void 0,L(t))],d>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(q(n.getExportName(t),n.getLocalName(t))),t),t))),U(t)){var i=e.getOriginalNodeId(t);v[i]=z(v[i],t)}else r=z(r,t);return e.singleOrMany(r)})(t);case 271:return(t=>{if(t.moduleSpecifier){var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var a=[];p!==e.ModuleKind.AMD&&a.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,L(t))])),t),t));for(var o=0,s=t.exportClause.elements;o<s.length;o++){var l=s[o];if(0===d)a.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(i().createCreateBindingHelper(r,n.createStringLiteralFromNode(l.propertyName||l.name),l.propertyName?n.createStringLiteralFromNode(l.name):void 0)),l),l));else{var u=!(!e.getESModuleInterop(c)||67108864&e.getEmitFlags(t)||"default"!==e.idText(l.propertyName||l.name)),_=n.createPropertyAccessExpression(u?i().createImportDefaultHelper(r):r,l.propertyName||l.name);a.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(q(n.getExportName(l),_,void 0,!0)),l),l))}}return e.singleOrMany(a)}return t.exportClause?((a=[]).push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(q(n.cloneNode(t.exportClause.name),((t,r)=>!e.getESModuleInterop(c)||67108864&e.getEmitFlags(t)?r:e.getExportNeedsImportStarHelper(t)?i().createImportStarHelper(r):r)(t,p!==e.ModuleKind.AMD?L(t):e.isExportNamespaceAsDefaultDeclaration(t)?r:n.createIdentifier(e.idText(t.exportClause.name))))),t),t)),e.singleOrMany(a)):e.setOriginalNode(e.setTextRange(n.createExpressionStatement(i().createExportStarHelper(p!==e.ModuleKind.AMD?L(t):r)),t),t)}})(t);case 270:return(t=>{if(!t.isExportEquals){var r,i=t.original;if(i&&U(i)){var a=e.getOriginalNodeId(t);v[a]=$(v[a],n.createIdentifier("default"),e.visitNode(t.expression,F),t,!0)}else r=$(r,n.createIdentifier("default"),e.visitNode(t.expression,F),t,!0);return e.singleOrMany(r)}})(t);case 236:return(t=>{var i,a,o;if(e.hasSyntacticModifier(t,1)){for(var s=void 0,c=!1,l=0,u=t.declarationList.declarations;l<u.length;l++){var d=u[l];if(e.isIdentifier(d.name)&&e.isLocalName(d.name))s||(s=e.visitNodes(t.modifiers,X,e.isModifier)),a=e.append(a,d);else if(d.initializer)if(!e.isBindingPattern(d.name)&&(e.isArrowFunction(d.initializer)||e.isFunctionExpression(d.initializer)||e.isClassExpression(d.initializer))){var p=n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),d.name),d.name),n.createIdentifier(e.getTextOfIdentifierOrLiteral(d.name))),_=n.createVariableDeclaration(d.name,d.exclamationToken,d.type,e.visitNode(d.initializer,F));a=e.append(a,_),o=e.append(o,p),c=!0}else o=e.append(o,j(d))}if(a&&(i=e.append(i,n.updateVariableStatement(t,s,n.updateVariableDeclarationList(t.declarationList,a)))),o){var f=e.setOriginalNode(e.setTextRange(n.createExpressionStatement(n.inlineExpressions(o)),t),t);c&&e.removeAllComments(f),i=e.append(i,f)}}else i=e.append(i,e.visitEachChild(t,F,r));if(U(t)){var m=e.getOriginalNodeId(t);v[m]=K(v[m],t)}else i=K(i,t);return e.singleOrMany(i)})(t);case 255:return(t=>{var i;if(i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,X,e.isModifier),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,F),void 0,e.visitEachChild(t.body,F,r)),t),t)):e.append(i,e.visitEachChild(t,F,r)),U(t)){var a=e.getOriginalNodeId(t);v[a]=H(v[a],t)}else i=H(i,t);return e.singleOrMany(i)})(t);case 256:return(t=>{var i;if(i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createClassDeclaration(void 0,e.visitNodes(t.modifiers,X,e.isModifier),n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,F),e.visitNodes(t.members,F)),t),t)):e.append(i,e.visitEachChild(t,F,r)),U(t)){var a=e.getOriginalNodeId(t);v[a]=H(v[a],t)}else i=H(i,t);return e.singleOrMany(i)})(t);case 350:return(t=>{if(U(t)&&236===t.original.kind){var r=e.getOriginalNodeId(t);v[r]=K(v[r],t.original)}return t})(t);case 351:return(t=>{var r=e.getOriginalNodeId(t),n=v[r];return n?(delete v[r],e.append(n,t)):t})(t);default:return F(t)}}function w(t,i){if(!(71305216&t.transformFlags))return t;switch(t.kind){case 241:return(t=>n.updateForStatement(t,e.visitNode(t.initializer,P,e.isForInitializer),e.visitNode(t.condition,F,e.isExpression),e.visitNode(t.incrementor,P,e.isExpression),e.visitIterationBody(t.statement,F,r)))(t);case 237:return(t=>n.updateExpressionStatement(t,e.visitNode(t.expression,P,e.isExpression)))(t);case 211:return((t,r)=>n.updateParenthesizedExpression(t,e.visitNode(t.expression,r?P:F,e.isExpression)))(t,i);case 348:return((t,r)=>n.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,r?P:F,e.isExpression)))(t,i);case 207:if(e.isImportCall(t)&&void 0===m.impliedNodeFormat)return(t=>{var r=e.getExternalModuleNameLiteral(n,t,m,u,l,c),i=e.visitNode(e.firstOrUndefined(t.arguments),F),a=!r||i&&e.isStringLiteral(i)&&i.text===r.text?i:r,o=!!(8192&t.transformFlags);switch(c.module){case e.ModuleKind.AMD:return O(a,o);case e.ModuleKind.UMD:return((t,r)=>{if(h=!0,e.isSimpleCopiableExpression(t)){var i=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?n.createStringLiteralFromNode(t):e.setEmitFlags(e.setTextRange(n.cloneNode(t),t),1536);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,M(t,r),void 0,O(i,r))}var a=n.createTempVariable(s);return n.createComma(n.createAssignment(a,t),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,M(a,r),void 0,O(a,r)))})(null!=a?a:n.createVoidZero(),o);case e.ModuleKind.CommonJS:default:return M(a,o)}})(t);break;case 220:if(e.isDestructuringAssignment(t))return((t,n)=>I(t.left)?e.flattenDestructuringAssignment(t,F,r,0,!n,B):e.visitEachChild(t,F,r))(t,i);break;case 218:case 219:return((t,i)=>{if((45===t.operator||46===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var a=Q(t.operand);if(a){var o=void 0,c=e.visitNode(t.operand,F,e.isExpression);e.isPrefixUnaryExpression(t)?c=n.updatePrefixUnaryExpression(t,c):(c=n.updatePostfixUnaryExpression(t,c),i||(o=n.createTempVariable(s),c=n.createAssignment(o,c),e.setTextRange(c,t)),c=n.createComma(c,n.cloneNode(t.operand)),e.setTextRange(c,t));for(var l=0,u=a;l<u.length;l++){var d=u[l];b[e.getNodeId(c)]=!0,c=q(d,c),e.setTextRange(c,t)}return o&&(b[e.getNodeId(c)]=!0,c=n.createComma(c,o),e.setTextRange(c,t)),c}}return e.visitEachChild(t,F,r)})(t,i)}return e.visitEachChild(t,F,r)}function F(e){return w(e,!1)}function P(e){return w(e,!0)}function I(t){if(e.isObjectLiteralExpression(t))for(var r=0,n=t.properties;r<n.length;r++)switch((o=n[r]).kind){case 294:if(I(o.initializer))return!0;break;case 295:if(I(o.name))return!0;break;case 296:if(I(o.expression))return!0;break;case 168:case 171:case 172:return!1;default:e.Debug.assertNever(o,"Unhandled object member kind")}else if(e.isArrayLiteralExpression(t))for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(e.isSpreadElement(o)){if(I(o.expression))return!0}else if(I(o))return!0}else if(e.isIdentifier(t))return e.length(Q(t))>(e.isExportName(t)?1:0);return!1}function O(t,r){var a,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),l=[n.createParameterDeclaration(void 0,void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,void 0,s)],u=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);d>=2?a=n.createArrowFunction(void 0,void 0,l,void 0,void 0,u):(a=n.createFunctionExpression(void 0,void 0,void 0,void 0,l,void 0,u),r&&e.setEmitFlags(a,8));var p=n.createNewExpression(n.createIdentifier("Promise"),void 0,[a]);return e.getESModuleInterop(c)?n.createCallExpression(n.createPropertyAccessExpression(p,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):p}function M(t,r){var a,o=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),s=n.createCallExpression(n.createIdentifier("require"),void 0,t?[t]:[]);return e.getESModuleInterop(c)&&(s=i().createImportStarHelper(s)),d>=2?a=n.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(a=n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(s)])),r&&e.setEmitFlags(a,8)),n.createCallExpression(n.createPropertyAccessExpression(o,"then"),void 0,[a])}function R(t,r){return!e.getESModuleInterop(c)||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?i().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?i().createImportDefaultHelper(r):r}function L(t){var r=e.getExternalModuleNameLiteral(n,t,m,u,l,c),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function B(t,r,i){var a=Q(t);if(a){for(var o=e.isExportName(t)?r:n.createAssignment(t,r),s=0,c=a;s<c.length;s++){var l=c[s];e.setEmitFlags(o,4),o=q(l,o,i)}return o}return n.createAssignment(t,r)}function j(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,F),void 0,r,0,!1,B):n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),t.name),t.name),t.initializer?e.visitNode(t.initializer,F):n.createVoidZero())}function U(t){return 0!=(4194304&e.getEmitFlags(t))}function V(e,t){if(g.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=J(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 267:e=J(e,n);break;case 268:for(var i=0,a=n.elements;i<a.length;i++)e=J(e,a[i],!0)}return e}function z(e,t){return g.exportEquals?e:J(e,t)}function K(e,t){if(g.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++)e=W(e,n[r]);return e}function W(t,r){if(g.exportEquals)return t;if(e.isBindingPattern(r.name))for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(t=W(t,a))}else e.isGeneratedIdentifier(r.name)||(t=J(t,r));return t}function H(t,r){return g.exportEquals||(e.hasSyntacticModifier(r,1)&&(t=$(t,e.hasSyntacticModifier(r,512)?n.createIdentifier("default"):n.getDeclarationName(r),n.getLocalName(r),r)),r.name&&(t=J(t,r))),t}function J(t,r,i){var a=n.getDeclarationName(r),o=g.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];t=$(t,l.name,a,l.name,void 0,i)}return t}function $(t,r,i,a,o,s){return e.append(t,((t,r,i,a,o)=>{var s=e.setTextRange(n.createExpressionStatement(q(t,r,void 0,o)),i);return e.startOnNewLine(s),a||e.setEmitFlags(s,1536),s})(r,i,a,o,s))}function G(){var t;return t=0===d?n.createExpressionStatement(q(n.createIdentifier("__esModule"),n.createTrue())):n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),e.setEmitFlags(t,1048576),t}function q(t,r,i,a){return e.setTextRange(a&&0!==d?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(t),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(r)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),r),i)}function X(e){switch(e.kind){case 93:case 88:return}return e}function Y(t){var r,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(m);return a?n.createPropertyAccessExpression(a,t):t}if((!e.isGeneratedIdentifier(t)||64&t.autoGenerateFlags)&&!e.isLocalName(t)){var o=l.getReferencedExportContainer(t,e.isExportName(t));if(o&&303===o.kind)return e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),t);var s=l.getReferencedImportDeclaration(t);if(s){if(e.isImportClause(s))return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode(s.parent),n.createIdentifier("default")),t);if(e.isImportSpecifier(s)){var c=s.propertyName||s.name;return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode((null===(i=null===(r=s.parent)||void 0===r?void 0:r.parent)||void 0===i?void 0:i.parent)||s),n.cloneNode(c)),t)}}}return t}function Q(t){if(!e.isGeneratedIdentifier(t)){var r=l.getReferencedImportDeclaration(t)||l.getReferencedValueDeclaration(t);if(r)return g&&g.exportedBindings[e.getOriginalNodeId(r)]}}};var t={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}})(Fl),(e=>{e.transformSystemModule=t=>{var r=t.factory,n=t.startLexicalEnvironment,i=t.endLexicalEnvironment,a=t.hoistVariableDeclaration,o=t.getCompilerOptions(),s=t.getEmitResolver(),c=t.getEmitHost(),l=t.onSubstituteNode,u=t.onEmitNode;t.onSubstituteNode=(t,n)=>(e=>h&&e.id&&h[e.id])(n=l(t,n))?n:1===t?(t=>{switch(t.kind){case 79:return(t=>{var n,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(d);return a?r.createPropertyAccessExpression(a,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var o=s.getReferencedImportDeclaration(t);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default")),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name)),t)}}return t})(t);case 220:return(t=>{if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=X(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++)n=V(a[i],Y(n));return n}}return t})(t);case 230:return(t=>e.isImportMeta(t)?r.createPropertyAccessExpression(f,r.createIdentifier("meta")):t)(t)}return t})(n):4===t?(t=>{switch(t.kind){case 295:return(t=>{var n,i,a=t.name;if(!e.isGeneratedIdentifier(a)&&!e.isLocalName(a)){var o=s.getReferencedImportDeclaration(a);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default"))),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name))),t)}}return t})(t)}return t})(n):n,t.onEmitNode=(t,r,n)=>{if(303===r.kind){var i=e.getOriginalNodeId(r);d=r,p=y[i],_=b[i],h=x[i],f=E[i],h&&delete x[i],u(t,r,n),d=void 0,p=void 0,_=void 0,f=void 0,h=void 0}else u(t,r,n)},t.enableSubstitution(79),t.enableSubstitution(295),t.enableSubstitution(220),t.enableSubstitution(230),t.enableEmitNotification(303);var d,p,_,f,m,g,h,y=[],v=[],b=[],x=[],E=[];return e.chainBundle(t,(a=>{if(a.isDeclarationFile||!(e.isEffectiveExternalModule(a,o)||4194304&a.transformFlags))return a;var l=e.getOriginalNodeId(a);d=a,g=a,p=y[l]=e.collectExternalModuleInfo(t,a,s,o),_=r.createUniqueName("exports"),b[l]=_,f=E[l]=r.createUniqueName("context");var u=(t=>{for(var n=new e.Map,i=[],a=0,l=t;a<l.length;a++){var u=l[a],p=e.getExternalModuleNameLiteral(r,u,d,c,s,o);if(p){var _=p.text,f=n.get(_);void 0!==f?i[f].externalImports.push(u):(n.set(_,i.length),i.push({name:p,externalImports:[u]}))}}return i})(p.externalImports),v=((t,a)=>{var s=[];n();var c=e.getStrictOptionValue(o,"alwaysStrict")||!o.noImplicitUseStrict&&e.isExternalModule(d),l=r.copyPrologue(t.statements,s,c,T);s.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration("__moduleName",void 0,void 0,r.createLogicalAnd(f,r.createPropertyAccessExpression(f,"id")))]))),e.visitNode(p.externalHelpersImportDeclaration,T,e.isStatement);var u=e.visitNodes(t.statements,T,e.isStatement,l);e.addRange(s,m),e.insertStatementsAfterStandardPrologue(s,i());var _=(e=>{if(p.hasExportStarsToExportValues){if(!p.exportedNames&&0===p.exportSpecifiers.size){for(var t=!1,n=0,i=p.externalImports;n<i.length;n++){var a=i[n];if(271===a.kind&&a.exportClause){t=!0;break}}if(!t){var o=S(void 0);return e.push(o),o.name}}var s=[];if(p.exportedNames)for(var c=0,l=p.exportedNames;c<l.length;c++){var u=l[c];"default"!==u.escapedText&&s.push(r.createPropertyAssignment(r.createStringLiteralFromNode(u),r.createTrue()))}var d=r.createUniqueName("exportedNames");e.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(d,void 0,void 0,r.createObjectLiteralExpression(s,!0))])));var _=S(d);return e.push(_),_.name}})(s),g=1048576&t.transformFlags?r.createModifiersFromModifierFlags(256):void 0,h=r.createObjectLiteralExpression([r.createPropertyAssignment("setters",D(_,a)),r.createPropertyAssignment("execute",r.createFunctionExpression(g,void 0,void 0,void 0,[],void 0,r.createBlock(u,!0)))],!0);return s.push(r.createReturnStatement(h)),r.createBlock(s,!0)})(a,u),C=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,_),r.createParameterDeclaration(void 0,void 0,void 0,f)],void 0,v),k=e.tryGetModuleNameFromFile(r,a,c,o),A=r.createArrayLiteralExpression(e.map(u,(e=>e.name))),N=e.setEmitFlags(r.updateSourceFile(a,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("System"),"register"),void 0,k?[k,A,C]:[A,C]))]),a.statements)),1024);return e.outFile(o)||e.moveEmitHelpers(N,v,(e=>!e.scoped)),h&&(x[l]=h,h=void 0),d=void 0,p=void 0,_=void 0,f=void 0,m=void 0,g=void 0,N}));function S(t){var n=r.createUniqueName("exportStar"),i=r.createIdentifier("m"),a=r.createIdentifier("n"),o=r.createIdentifier("exports"),s=r.createStrictInequality(a,r.createStringLiteral("default"));return t&&(s=r.createLogicalAnd(s,r.createLogicalNot(r.createCallExpression(r.createPropertyAccessExpression(t,"hasOwnProperty"),void 0,[a])))),r.createFunctionDeclaration(void 0,void 0,void 0,n,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,i)],void 0,r.createBlock([r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(o,void 0,void 0,r.createObjectLiteralExpression([]))])),r.createForInStatement(r.createVariableDeclarationList([r.createVariableDeclaration(a)]),i,r.createBlock([e.setEmitFlags(r.createIfStatement(s,r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(o,a),r.createElementAccessExpression(i,a)))),1)])),r.createExpressionStatement(r.createCallExpression(_,void 0,[o]))],!0))}function D(t,n){for(var i=[],a=0,o=n;a<o.length;a++){for(var s=o[a],c=e.forEach(s.externalImports,(t=>e.getLocalNameForExternalImport(r,t,d))),l=c?r.getGeneratedNameForNode(c):r.createUniqueName(""),u=[],p=0,f=s.externalImports;p<f.length;p++){var m=f[p],g=e.getLocalNameForExternalImport(r,m,d);switch(m.kind){case 265:if(!m.importClause)break;case 264:e.Debug.assert(void 0!==g),u.push(r.createExpressionStatement(r.createAssignment(g,l)));break;case 271:if(e.Debug.assert(void 0!==g),m.exportClause)if(e.isNamedExports(m.exportClause)){for(var h=[],y=0,v=m.exportClause.elements;y<v.length;y++){var b=v[y];h.push(r.createPropertyAssignment(r.createStringLiteral(e.idText(b.name)),r.createElementAccessExpression(l,r.createStringLiteral(e.idText(b.propertyName||b.name)))))}u.push(r.createExpressionStatement(r.createCallExpression(_,void 0,[r.createObjectLiteralExpression(h,!0)])))}else u.push(r.createExpressionStatement(r.createCallExpression(_,void 0,[r.createStringLiteral(e.idText(m.exportClause.name)),l])));else u.push(r.createExpressionStatement(r.createCallExpression(t,void 0,[l])))}}i.push(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,l)],void 0,r.createBlock(u,!0)))}return r.createArrayLiteralExpression(i,!0)}function T(t){switch(t.kind){case 265:return(t=>{var n;if(t.importClause&&a(e.getLocalNameForExternalImport(r,t,d)),P(t)){var i=e.getOriginalNodeId(t);v[i]=I(v[i],t)}else n=I(n,t);return e.singleOrMany(n)})(t);case 264:return(t=>{var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),a(e.getLocalNameForExternalImport(r,t,d)),P(t)){var i=e.getOriginalNodeId(t);v[i]=O(v[i],t)}else n=O(n,t);return e.singleOrMany(n)})(t);case 271:return(t=>{e.Debug.assertIsDefined(t)})(t);case 270:return(t=>{if(!t.isExportEquals){var n=e.visitNode(t.expression,J,e.isExpression),i=t.original;if(!i||!P(i))return U(r.createIdentifier("default"),n,!0);var a=e.getOriginalNodeId(t);v[a]=j(v[a],r.createIdentifier("default"),n,!0)}})(t);default:return z(t)}}function C(t){if(e.isBindingPattern(t.name))for(var n=0,i=t.name.elements;n<i.length;n++){var o=i[n];e.isOmittedExpression(o)||C(o)}else a(r.cloneNode(t.name))}function k(t){return 0==(2097152&e.getEmitFlags(t))&&(303===g.kind||0==(3&e.getOriginalNode(t).flags))}function A(r,n){var i=n?N:w;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,J,t,0,!1,i):r.initializer?i(r.name,e.visitNode(r.initializer,J,e.isExpression)):r.name}function N(e,t,r){return F(e,t,r,!0)}function w(e,t,r){return F(e,t,r,!1)}function F(t,n,i,o){return a(r.cloneNode(t)),o?V(t,Y(e.setTextRange(r.createAssignment(t,n),i))):Y(e.setTextRange(r.createAssignment(t,n),i))}function P(t){return 0!=(4194304&e.getEmitFlags(t))}function I(e,t){if(p.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=B(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 267:e=B(e,n);break;case 268:for(var i=0,a=n.elements;i<a.length;i++)e=B(e,a[i])}return e}function O(e,t){return p.exportEquals?e:B(e,t)}function M(e,t,r){if(p.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=R(e,a,r))}return e}function R(t,n,i){if(p.exportEquals)return t;if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(t=R(t,s,i))}else if(!e.isGeneratedIdentifier(n.name)){var c=void 0;i&&(t=j(t,n.name,r.getLocalName(n)),c=e.idText(n.name)),t=B(t,n,c)}return t}function L(t,n){if(p.exportEquals)return t;var i;if(e.hasSyntacticModifier(n,1)){var a=e.hasSyntacticModifier(n,512)?r.createStringLiteral("default"):n.name;t=j(t,a,r.getLocalName(n)),i=e.getTextOfIdentifierOrLiteral(a)}return n.name&&(t=B(t,n,i)),t}function B(t,n,i){if(p.exportEquals)return t;var a=r.getDeclarationName(n),o=p.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];l.name.escapedText!==i&&(t=j(t,l.name,a))}return t}function j(t,r,n,i){return e.append(t,U(r,n,i))}function U(t,n,i){var a=r.createExpressionStatement(V(t,n));return e.startOnNewLine(a),i||e.setEmitFlags(a,1536),a}function V(t,n){var i=e.isIdentifier(t)?r.createStringLiteralFromNode(t):t;return e.setEmitFlags(n,1536|e.getEmitFlags(n)),e.setCommentRange(r.createCallExpression(_,void 0,[i,n]),n)}function z(n){switch(n.kind){case 236:return(t=>{if(!k(t.declarationList))return e.visitNode(t,J,e.isStatement);for(var n,i,a=e.hasSyntacticModifier(t,1),o=P(t),s=0,c=t.declarationList.declarations;s<c.length;s++){var l=c[s];l.initializer?n=e.append(n,A(l,a&&!o)):C(l)}if(n&&(i=e.append(i,e.setTextRange(r.createExpressionStatement(r.inlineExpressions(n)),t))),o){var u=e.getOriginalNodeId(t);v[u]=M(v[u],t,a)}else i=M(i,t,!1);return e.singleOrMany(i)})(n);case 255:return(n=>{if(m=e.hasSyntacticModifier(n,1)?e.append(m,r.updateFunctionDeclaration(n,n.decorators,e.visitNodes(n.modifiers,q,e.isModifier),n.asteriskToken,r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,J,e.isParameterDeclaration),void 0,e.visitNode(n.body,J,e.isBlock))):e.append(m,e.visitEachChild(n,J,t)),P(n)){var i=e.getOriginalNodeId(n);v[i]=L(v[i],n)}else m=L(m,n)})(n);case 256:return(t=>{var n,i=r.getLocalName(t);if(a(i),n=e.append(n,e.setTextRange(r.createExpressionStatement(r.createAssignment(i,e.setTextRange(r.createClassExpression(e.visitNodes(t.decorators,J,e.isDecorator),void 0,t.name,void 0,e.visitNodes(t.heritageClauses,J,e.isHeritageClause),e.visitNodes(t.members,J,e.isClassElement)),t))),t)),P(t)){var o=e.getOriginalNodeId(t);v[o]=L(v[o],t)}else n=L(n,t);return e.singleOrMany(n)})(n);case 241:return K(n,!0);case 242:return(n=>{var i=g;return g=n,n=r.updateForInStatement(n,W(n.initializer),e.visitNode(n.expression,J,e.isExpression),e.visitIterationBody(n.statement,z,t)),g=i,n})(n);case 243:return(n=>{var i=g;return g=n,n=r.updateForOfStatement(n,n.awaitModifier,W(n.initializer),e.visitNode(n.expression,J,e.isExpression),e.visitIterationBody(n.statement,z,t)),g=i,n})(n);case 239:return(n=>r.updateDoStatement(n,e.visitIterationBody(n.statement,z,t),e.visitNode(n.expression,J,e.isExpression)))(n);case 240:return(n=>r.updateWhileStatement(n,e.visitNode(n.expression,J,e.isExpression),e.visitIterationBody(n.statement,z,t)))(n);case 249:return(t=>r.updateLabeledStatement(t,t.label,e.visitNode(t.statement,z,e.isStatement,r.liftToBlock)))(n);case 247:return(t=>r.updateWithStatement(t,e.visitNode(t.expression,J,e.isExpression),e.visitNode(t.statement,z,e.isStatement,r.liftToBlock)))(n);case 248:return(t=>r.updateSwitchStatement(t,e.visitNode(t.expression,J,e.isExpression),e.visitNode(t.caseBlock,z,e.isCaseBlock)))(n);case 262:return(t=>{var n=g;return g=t,t=r.updateCaseBlock(t,e.visitNodes(t.clauses,z,e.isCaseOrDefaultClause)),g=n,t})(n);case 288:return(t=>r.updateCaseClause(t,e.visitNode(t.expression,J,e.isExpression),e.visitNodes(t.statements,z,e.isStatement)))(n);case 289:case 251:return(r=>e.visitEachChild(r,z,t))(n);case 291:return(t=>{var n=g;return g=t,t=r.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,z,e.isBlock)),g=n,t})(n);case 234:return(r=>{var n=g;return g=r,r=e.visitEachChild(r,z,t),g=n,r})(n);case 350:return(t=>{if(P(t)&&236===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasSyntacticModifier(t.original,1);v[r]=M(v[r],t.original,n)}return t})(n);case 351:return(t=>{var r=e.getOriginalNodeId(t),n=v[r];if(n)return delete v[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(B(n,i),t):t})(n);default:return J(n)}}function K(n,i){var a=g;return g=n,n=r.updateForStatement(n,e.visitNode(n.initializer,i?W:$,e.isForInitializer),e.visitNode(n.condition,J,e.isExpression),e.visitNode(n.incrementor,$,e.isExpression),e.visitIterationBody(n.statement,i?z:J,t)),g=a,n}function W(t){if((t=>e.isVariableDeclarationList(t)&&k(t))(t)){for(var n=void 0,i=0,a=t.declarations;i<a.length;i++){var o=a[i];n=e.append(n,A(o,!1)),o.initializer||C(o)}return n?r.inlineExpressions(n):r.createOmittedExpression()}return e.visitNode(t,$,e.isExpression)}function H(n,i){if(!(71305216&n.transformFlags))return n;switch(n.kind){case 241:return K(n,!1);case 237:return(t=>r.updateExpressionStatement(t,e.visitNode(t.expression,$,e.isExpression)))(n);case 211:return((t,n)=>r.updateParenthesizedExpression(t,e.visitNode(t.expression,n?$:J,e.isExpression)))(n,i);case 348:return((t,n)=>r.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,n?$:J,e.isExpression)))(n,i);case 220:if(e.isDestructuringAssignment(n))return((r,n)=>G(r.left)?e.flattenDestructuringAssignment(r,J,t,0,!n):e.visitEachChild(r,J,t))(n,i);break;case 207:if(e.isImportCall(n))return(t=>{var n=e.getExternalModuleNameLiteral(r,t,d,c,s,o),i=e.visitNode(e.firstOrUndefined(t.arguments),J),a=!n||i&&e.isStringLiteral(i)&&i.text===n.text?i:n;return r.createCallExpression(r.createPropertyAccessExpression(f,r.createIdentifier("import")),void 0,a?[a]:[])})(n);break;case 218:case 219:return((n,i)=>{if((45===n.operator||46===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var o=X(n.operand);if(o){var s=void 0,c=e.visitNode(n.operand,J,e.isExpression);e.isPrefixUnaryExpression(n)?c=r.updatePrefixUnaryExpression(n,c):(c=r.updatePostfixUnaryExpression(n,c),i||(s=r.createTempVariable(a),c=r.createAssignment(s,c),e.setTextRange(c,n)),c=r.createComma(c,r.cloneNode(n.operand)),e.setTextRange(c,n));for(var l=0,u=o;l<u.length;l++)c=V(u[l],Y(c));return s&&(c=r.createComma(c,s),e.setTextRange(c,n)),c}}return e.visitEachChild(n,J,t)})(n,i)}return e.visitEachChild(n,J,t)}function J(e){return H(e,!1)}function $(e){return H(e,!0)}function G(t){if(e.isAssignmentExpression(t,!0))return G(t.left);if(e.isSpreadElement(t))return G(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,G);if(e.isArrayLiteralExpression(t))return e.some(t.elements,G);if(e.isShorthandPropertyAssignment(t))return G(t.name);if(e.isPropertyAssignment(t))return G(t.initializer);if(e.isIdentifier(t)){var r=s.getReferencedExportContainer(t);return void 0!==r&&303===r.kind}return!1}function q(e){switch(e.kind){case 93:case 88:return}return e}function X(t){var n;if(!e.isGeneratedIdentifier(t)){var i=s.getReferencedImportDeclaration(t)||s.getReferencedValueDeclaration(t);if(i){var a=s.getReferencedExportContainer(t,!1);a&&303===a.kind&&(n=e.append(n,r.getDeclarationName(i))),n=e.addRange(n,p&&p.exportedBindings[e.getOriginalNodeId(i)])}}return n}function Y(t){return void 0===h&&(h=[]),h[e.getNodeId(t)]=!0,t}}})(Fl),(e=>{e.transformECMAScriptModule=t=>{var r,n,i,a=t.factory,o=t.getEmitHelperFactory,s=t.getEmitHost(),c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=t.onEmitNode,p=t.onSubstituteNode;return t.onEmitNode=(t,n,i)=>{e.isSourceFile(n)?((e.isExternalModule(n)||l.isolatedModules)&&l.importHelpers&&(r=new e.Map),d(t,n,i),r=void 0):d(t,n,i)},t.onSubstituteNode=(t,n)=>(n=p(t,n),r&&e.isIdentifier(n)&&4096&e.getEmitFlags(n)?(t=>{var n=e.idText(t),i=r.get(n);return i||r.set(n,i=a.createUniqueName(n,48)),i})(n):n),t.enableEmitNotification(303),t.enableSubstitution(79),e.chainBundle(t,(r=>{if(r.isDeclarationFile)return r;if(e.isExternalModule(r)||l.isolatedModules){n=r,i=void 0;var s=(r=>{var n=e.createExternalHelpersImportDeclarationIfNeeded(a,o(),r,l);if(n){var i=[],s=a.copyPrologue(r.statements,i);return e.append(i,n),e.addRange(i,e.visitNodes(r.statements,_,e.isStatement,s)),a.updateSourceFile(r,e.setTextRange(a.createNodeArray(i),r.statements))}return e.visitEachChild(r,_,t)})(r);return n=void 0,i&&(s=a.updateSourceFile(s,e.setTextRange(a.createNodeArray(e.insertStatementsAfterCustomPrologue(s.statements.slice(),i)),s.statements))),!e.isExternalModule(r)||e.some(s.statements,e.isExternalModuleIndicator)?s:a.updateSourceFile(s,e.setTextRange(a.createNodeArray(Il(Il([],s.statements,!0),[e.createEmptyExports(a)],!1)),s.statements))}return r}));function _(t){switch(t.kind){case 264:return e.getEmitScriptTarget(l)>=e.ModuleKind.ES2020?(t=>{var r;return e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),r=((t,r)=>(e.hasSyntacticModifier(r,1)&&(t=e.append(t,a.createExportDeclaration(void 0,void 0,r.isTypeOnly,a.createNamedExports([a.createExportSpecifier(!1,void 0,e.idText(r.name))])))),t))(r=e.append(r,e.setOriginalNode(e.setTextRange(a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.cloneNode(t.name),void 0,void 0,f(t))],u>=2?2:0)),t),t)),t),e.singleOrMany(r)})(t):void 0;case 270:return(e=>e.isExportEquals?void 0:e)(t);case 271:return(t=>{if(void 0!==l.module&&l.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,n=a.getGeneratedNameForNode(r),i=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamespaceImport(n)),t.moduleSpecifier,t.assertClause);e.setOriginalNode(i,t.exportClause);var o=e.isExportNamespaceAsDefaultDeclaration(t)?a.createExportDefault(n):a.createExportDeclaration(void 0,void 0,!1,a.createNamedExports([a.createExportSpecifier(!1,n,r)]));return e.setOriginalNode(o,t),[i,o]})(t)}return t}function f(t){var r=e.getExternalModuleNameLiteral(a,t,e.Debug.checkDefined(n),s,c,l),o=[];if(r&&o.push(r),!i){var d=a.createUniqueName("_createRequire",48),p=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamedImports([a.createImportSpecifier(!1,a.createIdentifier("createRequire"),d)])),a.createStringLiteral("module")),_=a.createUniqueName("__require",48),f=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(_,void 0,void 0,a.createCallExpression(a.cloneNode(d),void 0,[a.createPropertyAccessExpression(a.createMetaProperty(100,a.createIdentifier("meta")),a.createIdentifier("url"))]))],u>=2?2:0));i=[p,f]}var m=i[1].declarationList.declarations[0].name;return e.Debug.assertNode(m,e.isIdentifier),a.createCallExpression(a.cloneNode(m),void 0,o)}}})(Fl),(e=>{e.transformNodeModule=t=>{var r=t.onSubstituteNode,n=t.onEmitNode,i=e.transformECMAScriptModule(t),a=t.onSubstituteNode,o=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=n;var s,c=e.transformModule(t),l=t.onSubstituteNode,u=t.onEmitNode;return t.onSubstituteNode=(t,n)=>e.isSourceFile(n)?(s=n,r(t,n)):s?s.impliedNodeFormat===e.ModuleKind.ESNext?a(t,n):l(t,n):r(t,n),t.onEmitNode=(t,r,i)=>(e.isSourceFile(r)&&(s=r),s?s.impliedNodeFormat===e.ModuleKind.ESNext?o(t,r,i):u(t,r,i):n(t,r,i)),t.enableSubstitution(303),t.enableEmitNotification(303),r=>303===r.kind?d(r):(r=>t.factory.createBundle(e.map(r.sourceFiles,d),r.prepends))(r);function d(t){if(t.isDeclarationFile)return t;s=t;var r=(t.impliedNodeFormat===e.ModuleKind.ESNext?i:c)(t);return s=void 0,e.Debug.assert(e.isSourceFile(r)),r}}})(Fl),(e=>{function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?r=>({diagnosticMessage:172===t.kind?e.isStatic(t)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,errorNode:t.name,typeName:t.name}):e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?r=>{var n;switch(t.kind){case 174:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 173:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 168:case 167:n=e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:256===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 255:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:r=>{var n=(r=>{switch(t.parent.kind){case 170:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 174:case 179:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 173:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 168:case 167:return e.isStatic(t.parent)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:256===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 255:case 178:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 172:case 171:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.SyntaxKind[t.parent.kind]))}})(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?()=>{var r;switch(t.parent.kind){case 256:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 257:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 194:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 179:case 174:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 173:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:case 167:r=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:256===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 178:case 255:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 258:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?()=>({diagnosticMessage:e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&117===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}):e.isImportEqualsDeclaration(t)?()=>({diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}):e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?r=>({diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}):e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.SyntaxKind[t.kind]));function r(r){var n=(r=>253===t.kind||202===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:166===t.kind||205===t.kind||165===t.kind||163===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:256===t.parent.kind||163===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0)(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=t=>e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t),e.createGetSymbolAccessibilityDiagnosticForNodeName=r=>e.isSetAccessor(r)||e.isGetAccessor(r)?t=>{var n=(t=>e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:256===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1)(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?t=>{var n=(t=>e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:256===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1)(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r),e.createGetSymbolAccessibilityDiagnosticForNode=t})(Fl),(e=>{function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function r(r,n){var i=e.getParseTreeNode(r);if(i&&163===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var l=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(l,(e=>t(e,n)))}e.getDeclarationDiagnostics=(t,r,n)=>{var a=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,a,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[i],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function i(t){var i,s,c,l,u,d,p,_,f,m,g,h,y=()=>e.Debug.fail("Diagnostic emitted without context"),v=y,b=!0,x=!1,E=!1,S=!1,D=!1,T=t.factory,C=t.getEmitHost(),k={trackSymbol(e,t,r){if(262144&e.flags)return!1;var n=I(A.isSymbolAccessible(e,t,r,!0));return P(A.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,O(),"this"))},reportInaccessibleUniqueSymbolError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,O(),"unique symbol"))},reportCyclicStructureError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,O()))},reportPrivateInBaseOfClassExpression(r){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError(r){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,O(),r))},reportTruncationError(){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:C,trackReferencedAmbientModule(t,r){var n=A.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return P(n);var i=e.getSourceFileOfNode(t);m.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode(e){x||(d||(d=[])).push(e)},reportNonlocalAugmentation(r,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((t=>e.getSourceFileOfNode(t)===r)),s=e.filter(i.declarations,(t=>e.getSourceFileOfNode(t)!==r));if(s)for(var c=0,l=s;c<l.length;c++){var u=l[c];t.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(u,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(o,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}},reportNonSerializableProperty(r){(p||_)&&t.addDiagnostic(e.createDiagnosticForNode(p||_,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,r))}},A=t.getEmitResolver(),N=t.getCompilerOptions(),w=N.noResolve,F=N.stripInternal;return r=>{if(303===r.kind&&r.isDeclarationFile)return r;if(304===r.kind){x=!0,m=new e.Map,g=new e.Map;var n=!1,a=T.createBundle(e.map(r.sourceFiles,(r=>{if(!r.isDeclarationFile){if(n=n||r.hasNoDefaultLib,f=r,i=r,c=void 0,u=!1,l=new e.Map,v=y,S=!1,D=!1,R(r,m),L(r,g),e.isExternalOrCommonJsModule(r)||e.isJsonSourceFile(r)){E=!1,b=!1;var a=e.isSourceFileJS(r)?T.createNodeArray(M(r,!0)):e.visitNodes(r.statements,ee);return T.updateSourceFile(r,[T.createModuleDeclaration([],[T.createModifier(135)],T.createStringLiteral(e.getResolvedExternalModuleName(t.getEmitHost(),r)),T.createModuleBlock(e.setTextRange(T.createNodeArray(Q(a)),r.statements)))],!0,[],[],!1,[])}b=!0;var o=e.isSourceFileJS(r)?T.createNodeArray(M(r)):e.visitNodes(r.statements,ee);return T.updateSourceFile(r,Q(o),!0,[],[],!1,[])}})),e.mapDefined(r.prepends,(t=>{if(306===t.kind){var r=e.createUnparsedSourceFile(t,"dts",F);return n=n||!!r.hasNoDefaultLib,R(r,m),P(r.typeReferenceDirectives),L(r,g),r}return t})));a.syntheticFileReferences=[],a.syntheticTypeReferences=B(),a.syntheticLibReferences=O(),a.hasNoDefaultLib=n;var o=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,C,!0).declarationFilePath)),p=U(a.syntheticFileReferences,o);return m.forEach(p),a}b=!0,S=!1,D=!1,i=r,f=r,v=y,x=!1,E=!1,u=!1,c=void 0,l=new e.Map,s=void 0,m=R(f,new e.Map),g=L(f,new e.Map);var _,k=[],A=U(k,e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,C,!0).declarationFilePath)));if(e.isSourceFileJS(f))_=T.createNodeArray(M(r)),m.forEach(A),h=e.filter(_,e.isAnyImportSyntax);else{var w=e.visitNodes(r.statements,ee);_=e.setTextRange(T.createNodeArray(Q(w)),r.statements),m.forEach(A),h=e.filter(_,e.isAnyImportSyntax),e.isExternalModule(r)&&(!E||S&&!D)&&(_=e.setTextRange(T.createNodeArray(Il(Il([],_,!0),[e.createEmptyExports(T)],!1)),_))}var I=T.updateSourceFile(r,_,!0,k,B(),r.hasNoDefaultLib,O());return I.exportedModulesFromDeclarationEmit=d,I;function O(){return e.map(e.arrayFrom(g.keys()),(e=>({fileName:e,pos:-1,end:-1})))}function B(){return s?e.mapDefined(e.arrayFrom(s.keys()),j):[]}function j(t){if(h)for(var r=0,n=h;r<n.length;r++){var i=n[r];if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference)){var a=i.moduleReference.expression;if(e.isStringLiteralLike(a)&&a.text===t)return}else if(e.isImportDeclaration(i)&&e.isStringLiteral(i.moduleSpecifier)&&i.moduleSpecifier.text===t)return}return{fileName:t,pos:-1,end:-1}}function U(t,n){return i=>{var a;if(i.isDeclarationFile)a=i.fileName;else{if(x&&e.contains(r.sourceFiles,i))return;var o=e.getOutputPathsFor(i,C,!0);a=o.declarationFilePath||o.jsFilePath||i.fileName}if(a){var s=e.moduleSpecifiers.getModuleSpecifier(N,f,e.toPath(n,C.getCurrentDirectory(),C.getCanonicalFileName),e.toPath(a,C.getCurrentDirectory(),C.getCanonicalFileName),C);if(!e.pathIsRelative(s))return void P([s]);var c=e.getRelativePathToDirectoryOrUrl(n,a,C.getCurrentDirectory(),C.getCanonicalFileName,!1);if(e.startsWith(c,"./")&&e.hasExtension(c)&&(c=c.substring(2)),e.startsWith(c,"node_modules/")||e.pathContainsNodeModules(c))return;t.push({pos:-1,end:-1,fileName:c})}}}};function P(t){if(t){s=s||new e.Set;for(var r=0,n=t;r<n.length;r++){var i=n[r];s.add(i)}}}function I(r){if(0===r.accessibility){if(r&&r.aliasesToMakeVisible)if(c)for(var n=0,i=r.aliasesToMakeVisible;n<i.length;n++){var a=i[n];e.pushIfUnique(c,a)}else c=r.aliasesToMakeVisible}else{var o=v(r);if(o)return o.typeName?t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),r.errorSymbolName,r.errorModuleName)):t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,r.errorSymbolName,r.errorModuleName)),!0}return!1}function O(){return p?e.declarationNameToString(p):_&&e.getNameOfDeclaration(_)?e.declarationNameToString(e.getNameOfDeclaration(_)):_&&e.isExportAssignment(_)?_.isExportEquals?"export=":"default":"(Missing)"}function M(t,r){var i=v;v=r=>r.errorNode&&e.canProduceDiagnostics(r.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(r.errorNode)(r):{diagnosticMessage:r.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:r.errorNode||t};var a=A.getDeclarationStatementsForSourceFile(t,n,k,r);return v=i,a}function R(t,r){return w||!e.isUnparsedSource(t)&&e.isSourceFileJS(t)||e.forEach(t.referencedFiles,(n=>{var i=C.getSourceFileFromReference(t,n);i&&r.set(e.getOriginalNodeId(i),i)})),r}function L(t,r){return e.forEach(t.libReferenceDirectives,(t=>{C.getLibFileFromReference(t)&&r.set(e.toFileNameLowerCase(t.fileName),!0)})),r}function B(t){return 79===t.kind?t:201===t.kind?T.updateArrayBindingPattern(t,e.visitNodes(t.elements,r)):T.updateObjectBindingPattern(t,e.visitNodes(t.elements,r));function r(e){return 226===e.kind?e:T.updateBindingElement(e,e.dotDotDotToken,e.propertyName,B(e.name),U(e)?e.initializer:void 0)}}function j(t,r,n){var i;u||(i=v,v=e.createGetSymbolAccessibilityDiagnosticForNode(t));var o=T.updateParameterDeclaration(t,void 0,((t,r,n)=>e.factory.createModifiersFromModifierFlags(a(t,r,void 0)))(t,r),t.dotDotDotToken,B(t.name),A.isOptionalParameter(t)?t.questionToken||T.createToken(57):void 0,z(t,n||t.type,!0),V(t));return u||(v=i),o}function U(t){return(t=>{switch(t.kind){case 166:case 165:return!e.hasEffectiveModifier(t,8);case 163:case 253:return!0}return!1})(t)&&A.isLiteralConstDeclaration(e.getParseTreeNode(t))}function V(t){if(U(t))return A.createLiteralConstValue(e.getParseTreeNode(t),k)}function z(t,r,a){if((a||!e.hasEffectiveModifier(t,8))&&!U(t)){var o,s=163===t.kind&&(A.isRequiredInitializedParameter(t)||A.isOptionalUninitializedParameterProperty(t));return r&&!s?e.visitNode(r,Z):e.getParseTreeNode(t)?172===t.kind?T.createKeywordTypeNode(130):(p=t.name,u||(o=v,v=e.createGetSymbolAccessibilityDiagnosticForNode(t)),253===t.kind||202===t.kind?c(A.createTypeOfDeclaration(t,i,n,k)):163===t.kind||166===t.kind||165===t.kind?t.initializer?c(A.createTypeOfDeclaration(t,i,n,k,s)||A.createTypeOfExpression(t.initializer,i,n,k)):c(A.createTypeOfDeclaration(t,i,n,k,s)):c(A.createReturnTypeOfSignatureDeclaration(t,i,n,k))):r?e.visitNode(r,Z):T.createKeywordTypeNode(130)}function c(e){return p=void 0,u||(v=o),e||T.createKeywordTypeNode(130)}}function K(t){switch((t=e.getParseTreeNode(t)).kind){case 255:case 260:case 257:case 256:case 258:case 259:return!A.isDeclarationVisible(t);case 253:return!W(t);case 264:case 265:case 271:case 270:return!1;case 169:return!0}return!1}function W(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.some(t.name.elements,W):A.isDeclarationVisible(t))}function H(t,r,n){if(!e.hasEffectiveModifier(t,8)){var i=e.map(r,(e=>j(e,n)));if(i)return T.createNodeArray(i,r.hasTrailingComma)}}function J(t,r){var n;if(!r){var i=e.getThisParameter(t);i&&(n=[j(i)])}if(e.isSetAccessorDeclaration(t)){var a=void 0;if(!r){var o=e.getSetAccessorValueParameter(t);o&&(a=j(o,void 0,se(t,A.getAllAccessorDeclarations(t))))}a||(a=T.createParameterDeclaration(void 0,void 0,void 0,"value")),n=e.append(n,a)}return T.createNodeArray(n||e.emptyArray)}function $(t,r){return e.hasEffectiveModifier(t,8)?void 0:e.visitNodes(r,Z)}function G(t){return e.isSourceFile(t)||e.isTypeAliasDeclaration(t)||e.isModuleDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionLike(t)||e.isIndexSignatureDeclaration(t)||e.isMappedTypeNode(t)}function q(e,t){I(A.isEntityNameVisible(e,t)),P(A.getTypeReferenceDirectivesForEntityName(e))}function X(t,r){return e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)&&(t.jsDoc=r.jsDoc),e.setCommentRange(t,e.getCommentRange(r))}function Y(r,n){if(n){if(E=E||260!==r.kind&&199!==r.kind,e.isStringLiteralLike(n))if(x){var i=e.getExternalModuleNameFromDeclaration(t.getEmitHost(),A,r);if(i)return T.createStringLiteral(i)}else{var a=A.getSymbolOfExternalModuleSpecifier(n);a&&(d||(d=[])).push(a)}return n}}function Q(t){for(;e.length(c);){var r=c.shift();if(!e.isLateVisibilityPaintedStatement(r))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.SyntaxKind?e.SyntaxKind[r.kind]:r.kind));var n=b;b=r.parent&&e.isSourceFile(r.parent)&&!(e.isExternalModule(r.parent)&&x);var i=re(r);b=n,l.set(e.getOriginalNodeId(r),i)}return e.visitNodes(t,(t=>{if(e.isLateVisibilityPaintedStatement(t)){var r=e.getOriginalNodeId(t);if(l.has(r)){var n=l.get(r);return l.delete(r),n&&((e.isArray(n)?e.some(n,e.needsScopeMarker):e.needsScopeMarker(n))&&(S=!0),e.isSourceFile(t.parent)&&(e.isArray(n)?e.some(n,e.isExternalModuleIndicator):e.isExternalModuleIndicator(n))&&(E=!0)),n}}return t}))}function Z(r){if(!ie(r)){if(e.isDeclaration(r)){if(K(r))return;if(e.hasDynamicName(r)&&!A.isLateBound(e.getParseTreeNode(r)))return}if(!(e.isFunctionLike(r)&&A.isImplementationOfOverload(r)||e.isSemicolonClassElement(r))){var n;G(r)&&(n=i,i=r);var a=v,o=e.canProduceDiagnostics(r),s=u,c=(181===r.kind||194===r.kind)&&258!==r.parent.kind;if((e.isMethodDeclaration(r)||e.isMethodSignature(r))&&e.hasEffectiveModifier(r,8)){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations[0]!==r)return;return b(T.createPropertyDeclaration(void 0,oe(r),r.name,void 0,void 0,void 0))}if(o&&!u&&(v=e.createGetSymbolAccessibilityDiagnosticForNode(r)),e.isTypeQueryNode(r)&&q(r.exprName,i),c&&(u=!0),(e=>{switch(e.kind){case 174:case 170:case 168:case 171:case 172:case 166:case 165:case 167:case 173:case 175:case 253:case 162:case 227:case 177:case 188:case 178:case 179:case 199:return!0}return!1})(r))switch(r.kind){case 227:(e.isEntityName(r.expression)||e.isEntityNameExpression(r.expression))&&q(r.expression,i);var l=e.visitEachChild(r,Z,t);return b(T.updateExpressionWithTypeArguments(l,l.expression,l.typeArguments));case 177:return q(r.typeName,i),l=e.visitEachChild(r,Z,t),b(T.updateTypeReferenceNode(l,l.typeName,l.typeArguments));case 174:return b(T.updateConstructSignature(r,$(r,r.typeParameters),H(r,r.parameters),z(r,r.type)));case 170:return b(T.createConstructorDeclaration(void 0,oe(r),H(r,r.parameters,0),void 0));case 168:return e.isPrivateIdentifier(r.name)?b(void 0):b(T.createMethodDeclaration(void 0,oe(r),void 0,r.name,r.questionToken,$(r,r.typeParameters),H(r,r.parameters),z(r,r.type),void 0));case 171:if(e.isPrivateIdentifier(r.name))return b(void 0);var d=se(r,A.getAllAccessorDeclarations(r));return b(T.updateGetAccessorDeclaration(r,void 0,oe(r),r.name,J(r,e.hasEffectiveModifier(r,8)),z(r,d),void 0));case 172:return e.isPrivateIdentifier(r.name)?b(void 0):b(T.updateSetAccessorDeclaration(r,void 0,oe(r),r.name,J(r,e.hasEffectiveModifier(r,8)),void 0));case 166:return e.isPrivateIdentifier(r.name)?b(void 0):b(T.updatePropertyDeclaration(r,void 0,oe(r),r.name,r.questionToken,z(r,r.type),V(r)));case 165:return e.isPrivateIdentifier(r.name)?b(void 0):b(T.updatePropertySignature(r,oe(r),r.name,r.questionToken,z(r,r.type)));case 167:return e.isPrivateIdentifier(r.name)?b(void 0):b(T.updateMethodSignature(r,oe(r),r.name,r.questionToken,$(r,r.typeParameters),H(r,r.parameters),z(r,r.type)));case 173:return b(T.updateCallSignature(r,$(r,r.typeParameters),H(r,r.parameters),z(r,r.type)));case 175:return b(T.updateIndexSignature(r,void 0,oe(r),H(r,r.parameters),e.visitNode(r.type,Z)||T.createKeywordTypeNode(130)));case 253:return e.isBindingPattern(r.name)?ne(r.name):(c=!0,u=!0,b(T.updateVariableDeclaration(r,r.name,void 0,z(r,r.type),V(r))));case 162:return(t=>168===t.parent.kind&&e.hasEffectiveModifier(t.parent,8))(r)&&(r.default||r.constraint)?b(T.updateTypeParameterDeclaration(r,r.name,void 0,void 0)):b(e.visitEachChild(r,Z,t));case 188:var _=e.visitNode(r.checkType,Z),m=e.visitNode(r.extendsType,Z),g=i;i=r.trueType;var h=e.visitNode(r.trueType,Z);i=g;var y=e.visitNode(r.falseType,Z);return b(T.updateConditionalTypeNode(r,_,m,h,y));case 178:return b(T.updateFunctionTypeNode(r,e.visitNodes(r.typeParameters,Z),H(r,r.parameters),e.visitNode(r.type,Z)));case 179:return b(T.updateConstructorTypeNode(r,oe(r),e.visitNodes(r.typeParameters,Z),H(r,r.parameters),e.visitNode(r.type,Z)));case 199:return e.isLiteralImportTypeNode(r)?b(T.updateImportTypeNode(r,T.updateLiteralTypeNode(r.argument,Y(r,r.argument.literal)),r.qualifier,e.visitNodes(r.typeArguments,Z,e.isTypeNode),r.isTypeOf)):b(r);default:e.Debug.assertNever(r,"Attempted to process unhandled node kind: ".concat(e.SyntaxKind[r.kind]))}return e.isTupleTypeNode(r)&&e.getLineAndCharacterOfPosition(f,r.pos).line===e.getLineAndCharacterOfPosition(f,r.end).line&&e.setEmitFlags(r,1),b(e.visitEachChild(r,Z,t))}}function b(t){return t&&o&&e.hasDynamicName(r)&&(t=>{var r;u||(r=v,v=e.createGetSymbolAccessibilityDiagnosticForNodeName(t)),p=t.name,e.Debug.assert(A.isLateBound(e.getParseTreeNode(t))),q(t.name.expression,i),u||(v=r),p=void 0})(r),G(r)&&(i=n),o&&!u&&(v=a),c&&(u=s),t===r?t:t&&e.setOriginalNode(X(t,r),r)}}function ee(t){if((e=>{switch(e.kind){case 255:case 260:case 264:case 257:case 256:case 258:case 259:case 236:case 265:case 271:case 270:return!0}return!1})(t)&&!ie(t)){switch(t.kind){case 271:return e.isSourceFile(t.parent)&&(E=!0),D=!0,T.updateExportDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.exportClause,Y(t,t.moduleSpecifier),void 0);case 270:if(e.isSourceFile(t.parent)&&(E=!0),D=!0,79===t.expression.kind)return t;var r=T.createUniqueName("_default",16);v=()=>({diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}),_=t;var i=T.createVariableDeclaration(r,void 0,A.createTypeOfExpression(t.expression,t,n,k),void 0);return _=void 0,[T.createVariableStatement(b?[T.createModifier(135)]:[],T.createVariableDeclarationList([i],2)),T.updateExportAssignment(t,t.decorators,t.modifiers,r)]}var a=re(t);return l.set(e.getOriginalNodeId(t),a),t}}function te(t){if(e.isImportEqualsDeclaration(t)||e.hasEffectiveModifier(t,512)||!e.canHaveModifiers(t))return t;var r=T.createModifiersFromModifierFlags(27646&e.getEffectiveModifierFlags(t));return T.updateModifiers(t,r)}function re(t){if(!ie(t)){switch(t.kind){case 264:return(t=>{if(A.isDeclarationVisible(t)){if(276===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return T.updateImportEqualsDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.name,T.updateExternalModuleReference(t.moduleReference,Y(t,r)))}var n=v;return v=e.createGetSymbolAccessibilityDiagnosticForNode(t),q(t.moduleReference,i),v=n,t}})(t);case 265:return(t=>{if(!t.importClause)return T.updateImportDeclaration(t,void 0,t.modifiers,t.importClause,Y(t,t.moduleSpecifier),void 0);var r=t.importClause&&t.importClause.name&&A.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&T.updateImportDeclaration(t,void 0,t.modifiers,T.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,void 0),Y(t,t.moduleSpecifier),void 0);if(267===t.importClause.namedBindings.kind){var n=A.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||n?T.updateImportDeclaration(t,void 0,t.modifiers,T.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),Y(t,t.moduleSpecifier),void 0):void 0}var i=e.mapDefined(t.importClause.namedBindings.elements,(e=>A.isDeclarationVisible(e)?e:void 0));return i&&i.length||r?T.updateImportDeclaration(t,void 0,t.modifiers,T.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,i&&i.length?T.updateNamedImports(t.importClause.namedBindings,i):void 0),Y(t,t.moduleSpecifier),void 0):A.isImportRequiredByAugmentation(t)?T.updateImportDeclaration(t,void 0,t.modifiers,void 0,Y(t,t.moduleSpecifier),void 0):void 0})(t)}if(!(e.isDeclaration(t)&&K(t)||e.isFunctionLike(t)&&A.isImplementationOfOverload(t))){var r;G(t)&&(r=i,i=t);var a=e.canProduceDiagnostics(t),o=v;a&&(v=e.createGetSymbolAccessibilityDiagnosticForNode(t));var s=b;switch(t.kind){case 258:return fe(T.updateTypeAliasDeclaration(t,void 0,oe(t),t.name,e.visitNodes(t.typeParameters,Z,e.isTypeParameterDeclaration),e.visitNode(t.type,Z,e.isTypeNode)));case 257:return fe(T.updateInterfaceDeclaration(t,void 0,oe(t),t.name,$(t,t.typeParameters),ce(t.heritageClauses),e.visitNodes(t.members,Z)));case 255:var c=fe(T.updateFunctionDeclaration(t,void 0,oe(t),void 0,t.name,$(t,t.typeParameters),H(t,t.parameters),z(t,t.type),void 0));if(c&&A.isExpandoFunctionDeclaration(t)&&(t=>{var r;if(t.body)return!0;var n=null===(r=t.symbol.declarations)||void 0===r?void 0:r.filter((t=>e.isFunctionDeclaration(t)&&!t.body));return!n||n.indexOf(t)===n.length-1})(t)){var u=A.getPropertiesOfContainerFunction(t),d=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,c.name||T.createIdentifier("_default"),T.createModuleBlock([]),16);e.setParent(d,i),d.locals=e.createSymbolTable(u),d.symbol=u[0].parent;var f=[],m=e.mapDefined(u,(t=>{if(t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)){v=e.createGetSymbolAccessibilityDiagnosticForNode(t.valueDeclaration);var r=A.createTypeOfDeclaration(t.valueDeclaration,d,n,k);v=o;var i=e.unescapeLeadingUnderscores(t.escapedName),a=e.isStringANonContextualKeyword(i),s=a?T.getGeneratedNameForNode(t.valueDeclaration):T.createIdentifier(i);a&&f.push([s,i]);var c=T.createVariableDeclaration(s,void 0,r,void 0);return T.createVariableStatement(a?void 0:[T.createToken(93)],T.createVariableDeclarationList([c]))}}));f.length?m.push(T.createExportDeclaration(void 0,void 0,!1,T.createNamedExports(e.map(f,(e=>{var t=e[0],r=e[1];return T.createExportSpecifier(!1,t,r)}))))):m=e.mapDefined(m,(e=>T.updateModifiers(e,0)));var g=T.createModuleDeclaration(void 0,oe(t),t.name,T.createModuleBlock(m),16);if(!e.hasEffectiveModifier(c,512))return[c,g];var h=T.createModifiersFromModifierFlags(-514&e.getEffectiveModifierFlags(c)|2),y=T.updateFunctionDeclaration(c,void 0,h,void 0,c.name,c.typeParameters,c.parameters,c.type,void 0),x=T.updateModuleDeclaration(g,void 0,h,g.name,g.body),C=T.createExportAssignment(void 0,void 0,!1,g.name);return e.isSourceFile(t.parent)&&(E=!0),D=!0,[y,x,C]}return c;case 260:b=!1;var N=t.body;if(N&&261===N.kind){var w=S,F=D;D=!1,S=!1;var P=Q(e.visitNodes(N.statements,ee));8388608&t.flags&&(S=!1),e.isGlobalScopeAugmentation(t)||(_e=P,e.some(_e,ae))||D||(P=S?T.createNodeArray(Il(Il([],P,!0),[e.createEmptyExports(T)],!1)):e.visitNodes(P,te));var I=T.updateModuleBlock(N,P);b=s,S=w,D=F;var O=oe(t);return fe(T.updateModuleDeclaration(t,void 0,O,e.isExternalModuleAugmentation(t)?Y(t,t.name):t.name,I))}b=s,O=oe(t),b=!1,e.visitNode(N,ee);var M=e.getOriginalNodeId(N);return I=l.get(M),l.delete(M),fe(T.updateModuleDeclaration(t,void 0,O,t.name,I));case 256:p=t.name,_=t,h=T.createNodeArray(oe(t));var R=$(t,t.typeParameters),L=e.getFirstConstructorWithBody(t),B=void 0;if(L){var j=v;B=e.compact(e.flatMap(L.parameters,(t=>{if(e.hasSyntacticModifier(t,16476)&&!ie(t))return v=e.createGetSymbolAccessibilityDiagnosticForNode(t),79===t.name.kind?X(T.createPropertyDeclaration(void 0,oe(t),t.name,t.questionToken,z(t,t.type),V(t)),t):function r(n){for(var i,a=0,o=n.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(i=e.concatenate(i,r(s.name))),(i=i||[]).push(T.createPropertyDeclaration(void 0,oe(t),s.name,void 0,z(s,void 0),void 0)))}return i}(t.name)}))),v=j}var U=e.some(t.members,(t=>!!t.name&&e.isPrivateIdentifier(t.name)))?[T.createPropertyDeclaration(void 0,void 0,T.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,J=e.concatenate(e.concatenate(U,B),e.visitNodes(t.members,Z)),re=T.createNodeArray(J),ne=e.getEffectiveBaseTypeNode(t);if(ne&&!e.isEntityNameExpression(ne.expression)&&104!==ne.expression.kind){var se=t.name?e.unescapeLeadingUnderscores(t.name.escapedText):"default",le=T.createUniqueName("".concat(se,"_base"),16);v=()=>({diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:ne,typeName:t.name});var ue=T.createVariableDeclaration(le,void 0,A.createTypeOfExpression(ne.expression,t,n,k),void 0),de=T.createVariableStatement(b?[T.createModifier(135)]:[],T.createVariableDeclarationList([ue],2)),pe=T.createNodeArray(e.map(t.heritageClauses,(t=>{if(94===t.token){var r=v;v=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=T.updateHeritageClause(t,e.map(t.types,(t=>T.updateExpressionWithTypeArguments(t,le,e.visitNodes(t.typeArguments,Z)))));return v=r,n}return T.updateHeritageClause(t,e.visitNodes(T.createNodeArray(e.filter(t.types,(t=>e.isEntityNameExpression(t.expression)||104===t.expression.kind))),Z))})));return[de,fe(T.updateClassDeclaration(t,void 0,h,t.name,R,pe,re))]}return pe=ce(t.heritageClauses),fe(T.updateClassDeclaration(t,void 0,h,t.name,R,pe,re));case 236:return fe((t=>{if(e.forEach(t.declarationList.declarations,W)){var r=e.visitNodes(t.declarationList.declarations,Z);if(e.length(r))return T.updateVariableStatement(t,T.createNodeArray(oe(t)),T.updateVariableDeclarationList(t.declarationList,r))}})(t));case 259:return fe(T.updateEnumDeclaration(t,void 0,T.createNodeArray(oe(t)),t.name,T.createNodeArray(e.mapDefined(t.members,(e=>{if(!ie(e)){var t=A.getConstantValue(e);return X(T.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?T.createStringLiteral(t):T.createNumericLiteral(t):void 0),e)}})))))}return e.Debug.assertNever(t,"Unhandled top-level node in declaration emit: ".concat(e.SyntaxKind[t.kind]))}}var _e;function fe(n){return G(t)&&(i=r),a&&(v=o),260===t.kind&&(b=s),n===t?n:(_=void 0,p=void 0,n&&e.setOriginalNode(X(n,t),t))}}function ne(t){return e.flatten(e.mapDefined(t.elements,(t=>(t=>{if(226!==t.kind&&t.name){if(!W(t))return;return e.isBindingPattern(t.name)?ne(t.name):T.createVariableDeclaration(t.name,void 0,z(t,void 0),void 0)}})(t))))}function ie(e){return!!F&&!!e&&r(e,f)}function ae(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function oe(t){var r=e.getEffectiveModifierFlags(t),n=(t=>{var r=11003,n=b&&!(e=>257===e.kind)(t)?2:0,i=303===t.parent.kind;return(!i||x&&i&&e.isExternalModule(t.parent))&&(r^=2,n=0),a(t,r,n)})(t);return r===n?t.modifiers:T.createModifiersFromModifierFlags(n)}function se(t,r){var n=o(t);return n||t===r.firstAccessor||(n=o(r.firstAccessor),v=e.createGetSymbolAccessibilityDiagnosticForNode(r.firstAccessor)),!n&&r.secondAccessor&&t!==r.secondAccessor&&(n=o(r.secondAccessor),v=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor)),n}function ce(t){return T.createNodeArray(e.filter(e.map(t,(t=>T.updateHeritageClause(t,e.visitNodes(T.createNodeArray(e.filter(t.types,(r=>e.isEntityNameExpression(r.expression)||94===t.token&&104===r.expression.kind))),Z)))),(e=>e.types&&!!e.types.length)))}}function a(t,r,n){void 0===r&&(r=27643),void 0===n&&(n=0);var i=e.getEffectiveModifierFlags(t)&r|n;return 512&i&&!(1&i)&&(i^=1),512&i&&2&i&&(i^=2),i}function o(e){if(e)return 171===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=i})(Fl),(e=>{var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),s=[];return e.addRange(s,r&&e.map(r.before,o)),s.push(e.transformTypeScript),s.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&s.push(e.transformJsx),i<99&&s.push(e.transformESNext),i<8&&s.push(e.transformES2021),i<7&&s.push(e.transformES2020),i<6&&s.push(e.transformES2019),i<5&&s.push(e.transformES2018),i<4&&s.push(e.transformES2017),i<3&&s.push(e.transformES2016),i<2&&(s.push(e.transformES2015),s.push(e.transformGenerators)),s.push((t=>{switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}})(a)),i<1&&s.push(e.transformES5),e.addRange(s,r&&e.map(r.after,o)),s}function i(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,s)),r}function a(t,r){return n=>{var i=t(n);return"function"==typeof i?r(n,i):(t=>r=>e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r))(i)}}function o(t){return a(t,e.chainBundle)}function s(e){return a(e,((e,t)=>t))}function c(e,t){return t}function l(e,t,r){r(e,t)}!(e=>{e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"})(t||(t={})),(e=>{e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"})(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=(e,t,r)=>({scriptTransformers:n(e,t,r),declarationTransformers:i(t)}),e.noEmitSubstitution=c,e.noEmitNotification=l,e.transformNodes=(t,r,n,i,a,o,s)=>{for(var u,d,p,_,f,m=new Array(353),g=0,h=[],y=[],v=[],b=[],x=0,E=!1,S=[],D=0,T=c,C=l,k=0,A=[],N={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>t,getEmitHost:()=>r,getEmitHelperFactory:e.memoize((()=>e.createEmitHelperFactory(N))),startLexicalEnvironment(){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!E,"Lexical environment is suspended."),h[x]=u,y[x]=d,v[x]=p,b[x]=g,x++,u=void 0,d=void 0,p=void 0,g=0},suspendLexicalEnvironment(){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!E,"Lexical environment is already suspended."),E=!0},resumeLexicalEnvironment(){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(E,"Lexical environment is not suspended."),E=!1},endLexicalEnvironment(){var t;if(e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!E,"Lexical environment is suspended."),u||d||p){if(d&&(t=Il([],d,!0)),u){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(u));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}p&&(t=Il(t?Il([],t,!0):[],p,!0))}return x--,u=h[x],d=y[x],p=v[x],g=b[x],0===x&&(h=[],y=[],v=[],b=[]),t},setLexicalEnvironmentFlags(e,t){g=t?g|e:g&~e},getLexicalEnvironmentFlags:()=>g,hoistVariableDeclaration(t){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(n.createVariableDeclaration(t),64);u?u.push(r):u=[r],1&g&&(g|=2)},hoistFunctionDeclaration(t){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),d?d.push(t):d=[t]},addInitializationStatement(t){e.Debug.assert(k>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(k<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},startBlockScope(){e.Debug.assert(k>0,"Cannot start a block scope during initialization."),e.Debug.assert(k<2,"Cannot start a block scope after transformation has completed."),S[D]=_,D++,_=void 0},endBlockScope(){e.Debug.assert(k>0,"Cannot end a block scope during initialization."),e.Debug.assert(k<2,"Cannot end a block scope after transformation has completed.");var t=e.some(_)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(_.map((e=>n.createVariableDeclaration(e))),1))]:void 0;return D--,_=S[D],0===D&&(S=[]),t},addBlockScopedVariable(t){e.Debug.assert(D>0,"Cannot add a block scoped variable outside of an iteration body."),(_||(_=[])).push(t)},requestEmitHelper:function t(r){if(e.Debug.assert(k>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n<i.length;n++)t(i[n]);f=e.append(f,r)},readEmitHelpers(){e.Debug.assert(k>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed.");var t=f;return f=void 0,t},enableSubstitution(t){e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=1},enableEmitNotification(t){e.Debug.assert(k<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=2},isSubstitutionEnabled:j,isEmitNotificationEnabled:U,get onSubstituteNode(){return T},set onSubstituteNode(t){e.Debug.assert(k<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),T=t},get onEmitNode(){return C},set onEmitNode(t){e.Debug.assert(k<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),C=t},addDiagnostic(e){A.push(e)}},w=0,F=a;w<F.length;w++){var P=F[w];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(P)))}e.performance.mark("beforeTransform");var I=o.map((e=>e(N))),O=e=>{for(var t=0,r=I;t<r.length;t++)e=(0,r[t])(e);return e};k=1;for(var M=[],R=0,L=a;R<L.length;R++)P=L[R],null===e.tracing||void 0===e.tracing||e.tracing.push("emit","transformNodes",303===P.kind?{path:P.path}:{kind:P.kind,pos:P.pos,end:P.end}),M.push((s?O:B)(P)),null===e.tracing||void 0===e.tracing||e.tracing.pop();return k=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:M,substituteNode:(t,r)=>(e.Debug.assert(k<3,"Cannot substitute a node after the result is disposed."),r&&j(r)&&T(t,r)||r),emitNodeWithNotification(t,r,n){e.Debug.assert(k<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(U(r)?C(t,r,n):n(t,r))},isEmitNotificationEnabled:U,dispose(){if(k<3){for(var t=0,r=a;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}u=void 0,h=void 0,d=void 0,y=void 0,T=void 0,C=void 0,f=void 0,k=3}},diagnostics:A};function B(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:O(t)}function j(t){return 0!=(1&m[t.kind])&&0==(4&e.getEmitFlags(t))}function U(t){return 0!=(2&m[t.kind])||0!=(2&e.getEmitFlags(t))}},e.nullTransformationContext={factory:e.factory,getCompilerOptions:()=>({}),getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:c,onEmitNode:l,addDiagnostic:e.noop}})(Fl),(e=>{var t,r,n=(()=>{var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e})();function i(t,r,n,i,o,c){void 0===i&&(i=!1);var l=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),u=t.getCompilerOptions();if(e.outFile(u)){var d=t.getPrependNodes();if(l.length||d.length){var p=e.factory.createBundle(l,d);if(m=r(s(p,t,i),p))return m}}else{if(!o)for(var _=0,f=l;_<f.length;_++){var m,g=f[_];if(m=r(s(g,t,i),g))return m}if(c){var h=a(u);if(h)return r({buildInfoPath:h},void 0)}}}function a(t){var r=t.configFilePath;if(e.isIncrementalCompilation(t)){if(t.tsBuildInfoFile)return t.tsBuildInfoFile;var n,i=e.outFile(t);if(i)n=e.removeFileExtension(i);else{if(!r)return;var a=e.removeFileExtension(r);n=t.outDir?t.rootDir?e.resolvePath(t.outDir,e.getRelativePathFromDirectory(t.rootDir,a,!0)):e.combinePaths(t.outDir,e.getBaseFileName(a)):a}return n+".tsbuildinfo"}}function o(t,r){var n=e.outFile(t),i=t.emitDeclarationOnly?void 0:n,o=i&&c(i,t),s=r||e.getEmitDeclarations(t)?e.removeFileExtension(n)+".d.ts":void 0;return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:s&&e.getAreDeclarationMapsEnabled(t)?s+".map":void 0,buildInfoPath:a(t)}}function s(t,r,n){var i=r.getCompilerOptions();if(304===t.kind)return o(i,n);var a=e.getOwnEmitOutputFilePath(t.fileName,r,l(t.fileName,i)),s=e.isJsonSourceFile(t),u=s&&0===e.comparePaths(t.fileName,a,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames()),d=i.emitDeclarationOnly||u?void 0:a,p=!d||e.isJsonSourceFile(t)?void 0:c(d,i),_=n||e.getEmitDeclarations(i)&&!s?e.getDeclarationEmitOutputFilePath(t.fileName,r):void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:_,declarationMapPath:_&&e.getAreDeclarationMapsEnabled(i)?_+".map":void 0,buildInfoPath:void 0}}function c(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function l(t,r){return e.fileExtensionIs(t,".json")?".json":1===r.jsx&&e.fileExtensionIsOneOf(t,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(t,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(t,[".cts",".cjs"])?".cjs":".js"}function u(t,r,n,i,a){return i?e.resolvePath(i,e.getRelativePathFromDirectory(a?a():h(r,n),t,n)):t}function d(t,r,n,i){return e.changeExtension(u(t,r,n,r.options.declarationDir||r.options.outDir,i),e.getDeclarationEmitExtensionForPath(t))}function p(t,r,n,i){if(!r.options.emitDeclarationOnly){var a=e.fileExtensionIs(t,".json"),o=e.changeExtension(u(t,r,n,r.options.outDir,i),l(t,r.options));return a&&0===e.comparePaths(t,o,e.Debug.checkDefined(r.options.configFilePath),n)?void 0:o}}function _(){var t;return{addOutput(e){e&&(t||(t=[])).push(e)},getOutputs:()=>t||e.emptyArray}}function f(e,t){var r=o(e.options,!1),n=r.jsFilePath,i=r.sourceMapFilePath,a=r.declarationFilePath,s=r.declarationMapPath,c=r.buildInfoPath;t(n),t(i),t(a),t(s),t(c)}function m(t,r,n,i,a){if(!e.fileExtensionIs(r,".d.ts")){var o=p(r,t,n,a);if(i(o),!e.fileExtensionIs(r,".json")&&(o&&t.options.sourceMap&&i("".concat(o,".map")),e.getEmitDeclarations(t.options))){var s=d(r,t,n,a);i(s),t.options.declarationMap&&i("".concat(s,".map"))}}}function g(t,r,n,i,a){var o;return t.rootDir?(o=e.getNormalizedAbsolutePath(t.rootDir,n),null==a||a(t.rootDir)):t.composite&&t.configFilePath?(o=e.getDirectoryPath(e.normalizeSlashes(t.configFilePath)),null==a||a(o)):o=e.computeCommonSourceDirectoryOfFilenames(r(),n,i),o&&o[o.length-1]!==e.directorySeparator&&(o+=e.directorySeparator),o}function h(t,r){var n=t.options,i=t.fileNames;return g(n,(()=>e.filter(i,(t=>!(n.noEmitForJsFiles&&e.fileExtensionIsOneOf(t,e.supportedJSExtensionsFlat)||e.fileExtensionIs(t,".d.ts"))))),e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(n.configFilePath))),e.createGetCanonicalFileName(!r))}function y(t,r,n,a,o,s,c){var l,u,d=a.scriptTransformers,p=a.declarationTransformers,_=r.getCompilerOptions(),f=_.sourceMap||_.inlineSourceMap||e.getAreDeclarationMapsEnabled(_)?[]:void 0,m=_.listEmittedFiles?[]:void 0,g=e.createDiagnosticCollection(),h=e.getNewLineCharacter(_,(()=>r.getNewLine())),y=e.createTextWriter(h),b=e.performance.createTimer("printTime","beforePrint","afterPrint"),E=b.enter,S=b.exit,D=!1;return E(),i(r,((i,a)=>{var s,f=i.jsFilePath,h=i.sourceMapFilePath,y=i.declarationFilePath,b=i.declarationMapPath,E=i.buildInfoPath;function S(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,t,r.getCanonicalFileName))}E&&a&&e.isBundle(a)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(E,r.getCurrentDirectory())),l={commonSourceDirectory:S(r.getCommonSourceDirectory()),sourceFiles:a.sourceFiles.map((t=>S(e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()))))}),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:f}),((n,i,a,s)=>{if(n&&!o&&i)if(i&&r.isEmitBlocked(i)||_.noEmit)D=!0;else{var c=e.transformNodes(t,r,e.factory,_,[n],d,!1),u=x({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:_.noEmitHelpers,module:_.module,target:_.target,sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,inlineSources:_.inlineSources,extendedDiagnostics:_.extendedDiagnostics,writeBundleFileInfo:!!l,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:c.emitNodeWithNotification,isEmitNotificationEnabled:c.isEmitNotificationEnabled,substituteNode:c.substituteNode});e.Debug.assert(1===c.transformed.length,"Should only see one output from the transform"),C(i,a,c.transformed[0],u,_),c.dispose(),l&&(l.js=u.bundleFileInfo)}})(a,f,h,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:y}),((n,i,a,s)=>{if(n)if(i){var d=e.isSourceFile(n)?[n]:n.sourceFiles,f=c?d:e.filter(d,e.isSourceFileNotJson),m=e.outFile(_)?[e.factory.createBundle(f,e.isSourceFile(n)?void 0:n.prepends)]:f;o&&!e.getEmitDeclarations(_)&&f.forEach(T);var h=e.transformNodes(t,r,e.factory,_,m,p,!1);if(e.length(h.diagnostics))for(var y=0,v=h.diagnostics;y<v.length;y++){var b=v[y];g.add(b)}var E=x({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:!0,module:_.module,target:_.target,sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,extendedDiagnostics:_.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!l,recordInternalSection:!!l,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:h.emitNodeWithNotification,isEmitNotificationEnabled:h.isEmitNotificationEnabled,substituteNode:h.substituteNode}),S=!!h.diagnostics&&!!h.diagnostics.length||!!r.isEmitBlocked(i)||!!_.noEmit;if(D=D||S,(!S||c)&&(e.Debug.assert(1===h.transformed.length,"Should only see one output from the decl transform"),C(i,a,h.transformed[0],E,{sourceMap:!c&&_.declarationMap,sourceRoot:_.sourceRoot,mapRoot:_.mapRoot,extendedDiagnostics:_.extendedDiagnostics}),c&&303===h.transformed[0].kind)){var k=h.transformed[0];u=k.exportedModulesFromDeclarationEmit}h.dispose(),l&&(l.dts=E.bundleFileInfo)}else(o||_.emitDeclarationOnly)&&(D=!0)})(a,y,b,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:E}),((t,i)=>{if(i&&!n&&!D){var a=r.getProgramBuildInfo();if(r.isEmitBlocked(i))D=!0;else{var o=e.version;e.writeFile(r,g,i,v({bundle:t,program:a,version:o}),!1)}}})(l,E),null===e.tracing||void 0===e.tracing||e.tracing.pop(),!D&&m&&(o||(f&&m.push(f),h&&m.push(h),E&&m.push(E)),y&&m.push(y),b&&m.push(b))}),e.getSourceFilesToEmit(r,n,c),c,s,!n),S(),{emitSkipped:D,diagnostics:g.getDiagnostics(),emittedFiles:m,sourceMaps:f,exportedModulesFromDeclarationEmit:u};function T(r){e.isExportAssignment(r)?79===r.expression.kind&&t.collectLinkedAliases(r.expression,!0):e.isExportSpecifier(r)?t.collectLinkedAliases(r.propertyName||r.name,!0):e.forEachChild(r,T)}function C(t,n,i,a,o){var s,c=304===i.kind?i:void 0,l=303===i.kind?i:void 0,u=c?c.sourceFiles:[l];if(((t,r)=>(t.sourceMap||t.inlineSourceMap)&&(303!==r.kind||!e.fileExtensionIs(r.fileName,".json")))(o,i)&&(s=e.createSourceMapGenerator(r,e.getBaseFileName(e.normalizeSlashes(t)),(t=>{var r=e.normalizeSlashes(t.sourceRoot||"");return r?e.ensureTrailingDirectorySeparator(r):r})(o),((t,n,i)=>{if(t.sourceRoot)return r.getCommonSourceDirectory();if(t.mapRoot){var a=e.normalizeSlashes(t.mapRoot);return i&&(a=e.getDirectoryPath(e.getSourceFilePathInNewDir(i.fileName,r,a))),0===e.getRootLength(a)&&(a=e.combinePaths(r.getCommonSourceDirectory(),a)),a}return e.getDirectoryPath(e.normalizePath(n))})(o,t,l),o)),c?a.writeBundle(c,y,s):a.writeFile(l,y,s),s){f&&f.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()});var d=((t,n,i,a,o)=>{if(t.inlineSourceMap){var s=n.toString(),c=e.base64encode(e.sys,s);return"data:application/json;base64,".concat(c)}var l=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(a)));if(t.mapRoot){var u=e.normalizeSlashes(t.mapRoot);return o&&(u=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,r,u))),0===e.getRootLength(u)?(u=e.combinePaths(r.getCommonSourceDirectory(),u),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(u,l),r.getCurrentDirectory(),r.getCanonicalFileName,!0))):encodeURI(e.combinePaths(u,l))}return encodeURI(l)})(o,s,t,n,l);if(d&&(y.isAtStartOfLine()||y.rawWrite(h),y.writeComment("//# ".concat("sourceMappingURL","=").concat(d))),n){var p=s.toString();e.writeFile(r,g,n,p,!1,u)}}else y.writeLine();e.writeFile(r,g,t,y.getText(),!!_.emitBOM,u),y.clear()}}function v(e){return JSON.stringify(e)}function b(e){return JSON.parse(e)}function x(t,r){void 0===t&&(t={}),void 0===r&&(r={});var i,a,o,s,c,l,u,d,p,_,f,m,g,h,y,v,b,x,E,S=r.hasGlobalName,D=r.onEmitNode,T=void 0===D?e.noEmitNotification:D,C=r.isEmitNotificationEnabled,k=r.substituteNode,A=void 0===k?e.noEmitSubstitution:k,N=r.onBeforeEmitNode,w=r.onAfterEmitNode,F=r.onBeforeEmitNodeArray,P=r.onAfterEmitNodeArray,I=r.onBeforeEmitToken,O=r.onAfterEmitToken,M=!!t.extendedDiagnostics,R=e.getNewLineCharacter(t),L=e.getEmitModuleKind(t),B=new e.Map,j=t.preserveSourceNewlines,U=e=>{_.write(e)},V=t.writeBundleFileInfo?{sections:[]}:void 0,z=V?e.Debug.checkDefined(t.relativeToBuildInfo):void 0,K=t.recordInternalSection,W=0,H="text",J=!0,$=-1,G=-1,q=-1,X=-1,Y=-1,Q=!1,Z=!!t.removeComments,ee=e.performance.createTimerIf(M,"commentTime","beforeComment","afterComment"),te=ee.enter,re=ee.exit,ne=e.factory.parenthesizer,ie=(()=>{return e.createBinaryExpressionTrampoline(((e,t)=>{if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=j,t.containerPosStack[t.stackIndex]=q,t.containerEndStack[t.stackIndex]=X,t.declarationListContainerEndStack[t.stackIndex]=Y;var r=t.shouldEmitCommentsStack[t.stackIndex]=we(e),n=t.shouldEmitSourceMapsStack[t.stackIndex]=Fe(e);null==N||N(e),r&&Ar(e),n&&qr(e),ke(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),((e,r,n)=>t(e,n,"left")),((e,t,r)=>{var n=27!==e.kind,i=lr(r,r.left,e),a=lr(r,e,r.right);er(i,n),jr(e.pos),Xt(e,101===e.kind?jt:Ut),Vr(e.end,!0),er(a,!0)}),((e,r,n)=>t(e,n,"right")),((e,t)=>{if(tr(lr(e,e.left,e.operatorToken),lr(e,e.operatorToken,e.right)),t.stackIndex>0){var r=t.preserveSourceNewlinesStack[t.stackIndex],n=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],a=t.declarationListContainerEndStack[t.stackIndex],o=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Ae(r),s&&Xr(e),o&&Nr(e,n,i,a),null==w||w(e),t.stackIndex--}}),void 0);function t(t,r,n){var i="left"===n?ne.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):ne.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind),a=Pe(0,1,t);if(a===Le&&(e.Debug.assertIsDefined(x),a=Ie(1,1,t=i(e.cast(x,e.isExpression))),x=void 0),(a===kr||a===Gr||a===Me)&&e.isBinaryExpression(t))return t;E=i,a(1,t)}})();return xe(),{printNode(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 303:return oe(r);case 304:return ae(r);case 305:return i=r,a=ge(),o=_,be(a,void 0),ye(4,i,void 0),xe(),_=o,he()}var i,a,o;return se(t,r,n,ge()),he()},printList:(e,t,r)=>(ce(e,t,r,ge()),he()),printFile:oe,printBundle:ae,writeNode:se,writeList:ce,writeFile:me,writeBundle:fe,bundleFileInfo:V};function ae(e){return fe(e,ge(),void 0),he()}function oe(e){return me(e,ge(),void 0),he()}function se(e,t,r,n){var i=_;be(n,void 0),ye(e,t,r),xe(),_=i}function ce(e,t,r,n){var i=_;be(n,void 0),r&&ve(r),Pt(void 0,t,e),xe(),_=i}function le(){return _.getTextPosWithWriteLine?_.getTextPosWithWriteLine():_.getTextPos()}function ue(t,r,n){var i=e.lastOrUndefined(V.sections);i&&i.kind===n?i.end=r:V.sections.push({pos:t,end:r,kind:n})}function de(t){if(K&&V&&i&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,i)&&"internal"!==H){var r=H;return _e(_.getTextPos()),W=le(),H="internal",r}}function pe(e){e&&(_e(_.getTextPos()),W=le(),H=e)}function _e(e){return W<e&&(ue(W,e,H),!0)}function fe(r,n,i){var a;m=!1;var o=_;be(n,i),yt(r),ht(r),Be(r),(t=>{_t(!!t.hasNoDefaultLib,t.syntheticFileReferences||[],t.syntheticTypeReferences||[],t.syntheticLibReferences||[]);for(var r=0,n=t.prepends;r<n.length;r++){var i=n[r];if(e.isUnparsedSource(i)&&i.syntheticReferences)for(var a=0,o=i.syntheticReferences;a<o.length;a++)Se(o[a]),Jt()}})(r);for(var s=0,c=r.prepends;s<c.length;s++){var l=c[s];Jt();var u=_.getTextPos(),d=V&&V.sections;if(d&&(V.sections=[]),ye(4,l,void 0),V){var p=V.sections;V.sections=d,l.oldFileOfCurrentEmit?(a=V.sections).push.apply(a,p):(p.forEach((t=>e.Debug.assert(e.isBundleFileTextLike(t)))),V.sections.push({pos:u,end:_.getTextPos(),kind:"prepend",data:z(l.fileName),texts:p}))}}W=le();for(var f=0,g=r.sourceFiles;f<g.length;f++){var h=g[f];ye(0,h,h)}if(V&&r.sourceFiles.length&&_e(_.getTextPos())){var y=(t=>{for(var r,n=new e.Set,i=0;i<t.sourceFiles.length;i++){for(var a=t.sourceFiles[i],o=void 0,s=0,c=0,l=a.statements;c<l.length;c++){var u=l[c];if(!e.isPrologueDirective(u))break;n.has(u.expression.text)||(n.add(u.expression.text),(o||(o=[])).push({pos:u.pos,end:u.end,expression:{pos:u.expression.pos,end:u.expression.end,text:u.expression.text}}),s=s<u.end?u.end:s)}o&&(r||(r=[])).push({file:i,text:a.text.substring(0,s),directives:o})}return r})(r);y&&(V.sources||(V.sources={}),V.sources.prologues=y);var v=(r=>{var n;if(L!==e.ModuleKind.None&&!t.noEmitHelpers){for(var i=new e.Map,a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a],c=void 0!==e.getExternalHelpersModuleName(s),l=je(s);if(l)for(var u=0,d=l;u<d.length;u++){var p=d[u];p.scoped||c||i.get(p.name)||(i.set(p.name,!0),(n||(n=[])).push(p.name))}}return n}})(r);v&&(V.sources||(V.sources={}),V.sources.helpers=v)}xe(),_=o}function me(e,t,r){m=!0;var n=_;be(t,r),yt(e),ht(e),ye(0,e,e),xe(),_=n}function ge(){return f||(f=e.createTextWriter(R))}function he(){var e=f.getText();return f.clear(),e}function ye(e,t,r){r&&ve(r),Ne(e,t,void 0)}function ve(e){i=e,v=void 0,b=void 0,e&&en(e)}function be(r,n){r&&t.omitTrailingSemicolon&&(r=e.getTrailingSemicolonDeferringWriter(r)),g=n,J=!(_=r)||!g}function xe(){a=[],o=[],s=new e.Set,c=[],l=0,u=[],i=void 0,v=void 0,b=void 0,be(void 0,void 0)}function Ee(){return v||(v=e.getLineStarts(i))}function Se(e,t){if(void 0!==e){var r=de(e);Ne(4,e,t),pe(r)}}function De(e){void 0!==e&&Ne(2,e,void 0)}function Te(e,t){void 0!==e&&Ne(1,e,t)}function Ce(t){Ne(e.isStringLiteral(t)?6:4,t)}function ke(t){j&&134217728&e.getEmitFlags(t)&&(j=!1)}function Ae(e){j=e}function Ne(e,t,r){E=r,Pe(0,e,t)(e,t),E=void 0}function we(t){return!Z&&!e.isSourceFile(t)}function Fe(t){return!(J||e.isSourceFile(t)||e.isInJsonFile(t)||e.isUnparsedSource(t)||e.isUnparsedPrepend(t))}function Pe(t,r,n){switch(t){case 0:if(T!==e.noEmitNotification&&(!C||C(n)))return Oe;case 1:if(A!==e.noEmitSubstitution&&(x=A(r,n)||n)!==n)return E&&(x=E(x)),Le;case 2:if(we(n))return kr;case 3:if(Fe(n))return Gr;case 4:return Me;default:return e.Debug.assertNever(t)}}function Ie(e,t,r){return Pe(e+1,t,r)}function Oe(e,t){var r=Ie(0,e,t);T(e,t,r)}function Me(e,t){if(null==N||N(t),j){var r=j;ke(t),Re(e,t),Ae(r)}else Re(e,t);null==w||w(t),E=void 0}function Re(t,r,n){if(void 0===n&&(n=!0),n){var a=e.getSnippetElement(r);if(a)return((e,t,r)=>{switch(r.kind){case 1:!((e,t,r)=>{Ht("${".concat(r.order,":")),Re(e,t,!1),Ht("}")})(e,t,r);break;case 0:!(e=>{Ht("$".concat(e.order))})(r)}})(t,r,a)}if(0===t)return pt(e.cast(r,e.isSourceFile));if(2===t)return ze(e.cast(r,e.isIdentifier));if(6===t)return Ue(e.cast(r,e.isStringLiteral),!0);if(3===t)return(e=>{Se(e.name),Kt(),jt("in"),Kt(),Se(e.constraint)})(e.cast(r,e.isTypeParameterDeclaration));if(5===t)return e.Debug.assertNode(r,e.isEmptyStatement),Je(!0);if(4===t){switch(r.kind){case 15:case 16:case 17:return Ue(r,!1);case 79:return ze(r);case 80:return Ke(r);case 160:return(e=>{(e=>{79===e.kind?Te(e):Se(e)})(e.left),Lt("."),Se(e.right)})(r);case 161:return(e=>{Lt("["),Te(e.expression,ne.parenthesizeExpressionOfComputedPropertyName),Lt("]")})(r);case 162:return(e=>{Se(e.name),e.constraint&&(Kt(),jt("extends"),Kt(),Se(e.constraint)),e.default&&(Kt(),Ut("="),Kt(),Se(e.default))})(r);case 163:return(e=>{Ct(e,e.decorators),bt(e,e.modifiers),Se(e.dotDotDotToken),vt(e.name,Vt),Se(e.questionToken),e.parent&&315===e.parent.kind&&!e.name?Se(e.type):xt(e.type),Et(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e,ne.parenthesizeExpressionForDisallowedComma)})(r);case 164:return d=r,Lt("@"),void Te(d.expression,ne.parenthesizeLeftSideOfAccess);case 165:return(e=>{Ct(e,e.decorators),bt(e,e.modifiers),vt(e.name,Wt),Se(e.questionToken),xt(e.type),Bt()})(r);case 166:return(e=>{Ct(e,e.decorators),bt(e,e.modifiers),Se(e.name),Se(e.questionToken),Se(e.exclamationToken),xt(e.type),Et(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Bt()})(r);case 167:return(e=>{fr(e),Ct(e,e.decorators),bt(e,e.modifiers),Se(e.name),Se(e.questionToken),At(e,e.typeParameters),Nt(e,e.parameters),xt(e.type),Bt(),mr(e)})(r);case 168:return(e=>{Ct(e,e.decorators),bt(e,e.modifiers),Se(e.asteriskToken),Se(e.name),Se(e.questionToken),Ye(e,Qe)})(r);case 169:return(e=>{Ct(e,e.decorators),bt(e,e.modifiers),jt("static"),Ze(e.body)})(r);case 170:return(e=>{bt(e,e.modifiers),jt("constructor"),Ye(e,Qe)})(r);case 171:case 172:return(e=>{Ct(e,e.decorators),bt(e,e.modifiers),jt(171===e.kind?"get":"set"),Kt(),Se(e.name),Ye(e,Qe)})(r);case 173:return(e=>{fr(e),Ct(e,e.decorators),bt(e,e.modifiers),At(e,e.typeParameters),Nt(e,e.parameters),xt(e.type),Bt(),mr(e)})(r);case 174:return(e=>{fr(e),Ct(e,e.decorators),bt(e,e.modifiers),jt("new"),Kt(),At(e,e.typeParameters),Nt(e,e.parameters),xt(e.type),Bt(),mr(e)})(r);case 175:return(e=>{Ct(e,e.decorators),bt(e,e.modifiers),Pt(e,e.parameters,8848),xt(e.type),Bt()})(r);case 176:return(e=>{e.assertsModifier&&(Se(e.assertsModifier),Kt()),Se(e.parameterName),e.type&&(Kt(),jt("is"),Kt(),Se(e.type))})(r);case 177:return(e=>{Se(e.typeName),kt(e,e.typeArguments)})(r);case 178:return(e=>{fr(e),At(e,e.typeParameters),wt(e,e.parameters),Kt(),Lt("=>"),Kt(),Se(e.type),mr(e)})(r);case 179:return(e=>{fr(e),bt(e,e.modifiers),jt("new"),Kt(),At(e,e.typeParameters),Nt(e,e.parameters),Kt(),Lt("=>"),Kt(),Se(e.type),mr(e)})(r);case 180:return(e=>{jt("typeof"),Kt(),Se(e.exprName)})(r);case 181:return(t=>{Lt("{");var r=1&e.getEmitFlags(t)?768:32897;Pt(t,t.members,524288|r),Lt("}")})(r);case 182:return(e=>{Se(e.elementType,ne.parenthesizeElementTypeOfArrayType),Lt("["),Lt("]")})(r);case 183:return(t=>{qe(22,t.pos,Lt,t);var r=1&e.getEmitFlags(t)?528:657;Pt(t,t.elements,524288|r),qe(23,t.elements.end,Lt,t)})(r);case 184:return(e=>{Se(e.type,ne.parenthesizeElementTypeOfArrayType),Lt("?")})(r);case 186:return(e=>{Pt(e,e.types,516,ne.parenthesizeMemberOfElementType)})(r);case 187:return(e=>{Pt(e,e.types,520,ne.parenthesizeMemberOfElementType)})(r);case 188:return(e=>{Se(e.checkType,ne.parenthesizeMemberOfConditionalType),Kt(),jt("extends"),Kt(),Se(e.extendsType,ne.parenthesizeMemberOfConditionalType),Kt(),Lt("?"),Kt(),Se(e.trueType),Kt(),Lt(":"),Kt(),Se(e.falseType)})(r);case 189:return(e=>{jt("infer"),Kt(),Se(e.typeParameter)})(r);case 190:return(e=>{Lt("("),Se(e.type),Lt(")")})(r);case 227:return(e=>{Te(e.expression,ne.parenthesizeLeftSideOfAccess),kt(e,e.typeArguments)})(r);case 191:return void jt("this");case 192:return(e=>{Yt(e.operator,jt),Kt(),Se(e.type,ne.parenthesizeMemberOfElementType)})(r);case 193:return(e=>{Se(e.objectType,ne.parenthesizeMemberOfElementType),Lt("["),Se(e.indexType),Lt("]")})(r);case 194:return(t=>{var r=e.getEmitFlags(t);Lt("{"),1&r?Kt():(Jt(),$t()),t.readonlyToken&&(Se(t.readonlyToken),144!==t.readonlyToken.kind&&jt("readonly"),Kt()),Lt("["),Ne(3,t.typeParameter),t.nameType&&(Kt(),jt("as"),Kt(),Se(t.nameType)),Lt("]"),t.questionToken&&(Se(t.questionToken),57!==t.questionToken.kind&&Lt("?")),Lt(":"),Kt(),Se(t.type),Bt(),1&r?Kt():(Jt(),Gt()),Lt("}")})(r);case 195:return(e=>{Te(e.literal)})(r);case 196:return(e=>{Se(e.dotDotDotToken),Se(e.name),Se(e.questionToken),qe(58,e.name.end,Lt,e),Kt(),Se(e.type)})(r);case 197:return(e=>{Se(e.head),Pt(e,e.templateSpans,262144)})(r);case 198:return(e=>{Se(e.type),Se(e.literal)})(r);case 199:return(e=>{e.isTypeOf&&(jt("typeof"),Kt()),jt("import"),Lt("("),Se(e.argument),Lt(")"),e.qualifier&&(Lt("."),Se(e.qualifier)),kt(e,e.typeArguments)})(r);case 200:return(e=>{Lt("{"),Pt(e,e.elements,525136),Lt("}")})(r);case 201:return(e=>{Lt("["),Pt(e,e.elements,524880),Lt("]")})(r);case 202:return(e=>{Se(e.dotDotDotToken),e.propertyName&&(Se(e.propertyName),Lt(":"),Kt()),Se(e.name),Et(e.initializer,e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)})(r);case 232:return(e=>{Te(e.expression),Se(e.literal)})(r);case 233:return void Bt();case 234:return(e=>{He(e,!e.multiLine&&ur(e))})(r);case 236:return(e=>{bt(e,e.modifiers),Se(e.declarationList),Bt()})(r);case 235:return Je(!1);case 237:return(t=>{Te(t.expression,ne.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(i)||e.nodeIsSynthesized(t.expression))&&Bt()})(r);case 238:return(e=>{var t=qe(99,e.pos,jt,e);Kt(),qe(20,t,Lt,e),Te(e.expression),qe(21,e.expression.end,Lt,e),Tt(e,e.thenStatement),e.elseStatement&&(Qt(e,e.thenStatement,e.elseStatement),qe(91,e.thenStatement.end,jt,e),238===e.elseStatement.kind?(Kt(),Se(e.elseStatement)):Tt(e,e.elseStatement))})(r);case 239:return(t=>{qe(90,t.pos,jt,t),Tt(t,t.statement),e.isBlock(t.statement)&&!j?Kt():Qt(t,t.statement,t.expression),$e(t,t.statement.end),Bt()})(r);case 240:return(e=>{$e(e,e.pos),Tt(e,e.statement)})(r);case 241:return(e=>{var t=qe(97,e.pos,jt,e);Kt();var r=qe(20,t,Lt,e);Ge(e.initializer),r=qe(26,e.initializer?e.initializer.end:r,Lt,e),Dt(e.condition),r=qe(26,e.condition?e.condition.end:r,Lt,e),Dt(e.incrementor),qe(21,e.incrementor?e.incrementor.end:r,Lt,e),Tt(e,e.statement)})(r);case 242:return(e=>{var t=qe(97,e.pos,jt,e);Kt(),qe(20,t,Lt,e),Ge(e.initializer),Kt(),qe(101,e.initializer.end,jt,e),Kt(),Te(e.expression),qe(21,e.expression.end,Lt,e),Tt(e,e.statement)})(r);case 243:return(e=>{var t=qe(97,e.pos,jt,e);Kt(),(e=>{e&&(Se(e),Kt())})(e.awaitModifier),qe(20,t,Lt,e),Ge(e.initializer),Kt(),qe(159,e.initializer.end,jt,e),Kt(),Te(e.expression),qe(21,e.expression.end,Lt,e),Tt(e,e.statement)})(r);case 244:return(e=>{qe(86,e.pos,jt,e),St(e.label),Bt()})(r);case 245:return(e=>{qe(81,e.pos,jt,e),St(e.label),Bt()})(r);case 246:return(e=>{qe(105,e.pos,jt,e),Dt(e.expression),Bt()})(r);case 247:return(e=>{var t=qe(116,e.pos,jt,e);Kt(),qe(20,t,Lt,e),Te(e.expression),qe(21,e.expression.end,Lt,e),Tt(e,e.statement)})(r);case 248:return(e=>{var t=qe(107,e.pos,jt,e);Kt(),qe(20,t,Lt,e),Te(e.expression),qe(21,e.expression.end,Lt,e),Kt(),Se(e.caseBlock)})(r);case 249:return(e=>{Se(e.label),qe(58,e.label.end,Lt,e),Kt(),Se(e.statement)})(r);case 250:return(e=>{qe(109,e.pos,jt,e),Dt(e.expression),Bt()})(r);case 251:return(e=>{qe(111,e.pos,jt,e),Kt(),Se(e.tryBlock),e.catchClause&&(Qt(e,e.tryBlock,e.catchClause),Se(e.catchClause)),e.finallyBlock&&(Qt(e,e.catchClause||e.tryBlock,e.finallyBlock),qe(96,(e.catchClause||e.tryBlock).end,jt,e),Kt(),Se(e.finallyBlock))})(r);case 252:return(e=>{qt(87,e.pos,jt),Bt()})(r);case 253:return(e=>{Se(e.name),Se(e.exclamationToken),xt(e.type),Et(e.initializer,e.type?e.type.end:e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)})(r);case 254:return(t=>{jt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Kt(),Pt(t,t.declarations,528)})(r);case 255:return(e=>{Xe(e)})(r);case 256:return(e=>{rt(e)})(r);case 257:return(e=>{Ct(e,e.decorators),bt(e,e.modifiers),jt("interface"),Kt(),Se(e.name),At(e,e.typeParameters),Pt(e,e.heritageClauses,512),Kt(),Lt("{"),Pt(e,e.members,129),Lt("}")})(r);case 258:return(e=>{Ct(e,e.decorators),bt(e,e.modifiers),jt("type"),Kt(),Se(e.name),At(e,e.typeParameters),Kt(),Lt("="),Kt(),Se(e.type),Bt()})(r);case 259:return(e=>{bt(e,e.modifiers),jt("enum"),Kt(),Se(e.name),Kt(),Lt("{"),Pt(e,e.members,145),Lt("}")})(r);case 260:return(t=>{bt(t,t.modifiers),1024&~t.flags&&(jt(16&t.flags?"namespace":"module"),Kt()),Se(t.name);var r=t.body;if(!r)return Bt();for(;r&&e.isModuleDeclaration(r);)Lt("."),Se(r.name),r=r.body;Kt(),Se(r)})(r);case 261:return(t=>{fr(t),e.forEach(t.statements,hr),He(t,ur(t)),mr(t)})(r);case 262:return(e=>{qe(18,e.pos,Lt,e),Pt(e,e.clauses,129),qe(19,e.clauses.end,Lt,e,!0)})(r);case 263:return(e=>{var t=qe(93,e.pos,jt,e);Kt(),t=qe(127,t,jt,e),Kt(),t=qe(142,t,jt,e),Kt(),Se(e.name),Bt()})(r);case 264:return(e=>{bt(e,e.modifiers),qe(100,e.modifiers?e.modifiers.end:e.pos,jt,e),Kt(),e.isTypeOnly&&(qe(151,e.pos,jt,e),Kt()),Se(e.name),Kt(),qe(63,e.name.end,Lt,e),Kt(),(e=>{79===e.kind?Te(e):Se(e)})(e.moduleReference),Bt()})(r);case 265:return(e=>{bt(e,e.modifiers),qe(100,e.modifiers?e.modifiers.end:e.pos,jt,e),Kt(),e.importClause&&(Se(e.importClause),Kt(),qe(155,e.importClause.end,jt,e),Kt()),Te(e.moduleSpecifier),e.assertClause&&St(e.assertClause),Bt()})(r);case 266:return(e=>{e.isTypeOnly&&(qe(151,e.pos,jt,e),Kt()),Se(e.name),e.name&&e.namedBindings&&(qe(27,e.name.end,Lt,e),Kt()),Se(e.namedBindings)})(r);case 267:return(e=>{var t=qe(41,e.pos,Lt,e);Kt(),qe(127,t,jt,e),Kt(),Se(e.name)})(r);case 273:return(e=>{var t=qe(41,e.pos,Lt,e);Kt(),qe(127,t,jt,e),Kt(),Se(e.name)})(r);case 268:return(e=>{nt(e)})(r);case 269:return(e=>{it(e)})(r);case 270:return(e=>{var t=qe(93,e.pos,jt,e);Kt(),e.isExportEquals?qe(63,t,Ut,e):qe(88,t,jt,e),Kt(),Te(e.expression,e.isExportEquals?ne.getParenthesizeRightSideOfBinaryForOperator(63):ne.parenthesizeExpressionOfExportDefault),Bt()})(r);case 271:return(e=>{var t=qe(93,e.pos,jt,e);Kt(),e.isTypeOnly&&(t=qe(151,t,jt,e),Kt()),e.exportClause?Se(e.exportClause):t=qe(41,t,Lt,e),e.moduleSpecifier&&(Kt(),qe(155,e.exportClause?e.exportClause.end:t,jt,e),Kt(),Te(e.moduleSpecifier)),e.assertClause&&St(e.assertClause),Bt()})(r);case 272:return(e=>{nt(e)})(r);case 274:return(e=>{it(e)})(r);case 292:return(e=>{qe(129,e.pos,jt,e),Kt(),Pt(e,e.elements,526226)})(r);case 293:return(t=>{Se(t.name),Lt(":"),Kt();var r=t.value;0==(512&e.getEmitFlags(r))&&Vr(e.getCommentRange(r).pos),Se(r)})(r);case 275:return;case 276:return(e=>{jt("require"),Lt("("),Te(e.expression),Lt(")")})(r);case 11:return(e=>{_.writeLiteral(e.text)})(r);case 279:case 282:return(t=>{if(Lt("<"),e.isJsxOpeningElement(t)){var r=or(t.tagName,t);at(t.tagName),kt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Kt(),Se(t.attributes),sr(t.attributes,t),tr(r)}Lt(">")})(r);case 280:case 283:return(t=>{Lt("</"),e.isJsxClosingElement(t)&&at(t.tagName),Lt(">")})(r);case 284:return(e=>{Se(e.name),((e,t,r,n)=>{r&&(t("="),n(r))})(0,Lt,e.initializer,Ce)})(r);case 285:return(e=>{Pt(e,e.properties,262656)})(r);case 286:return(e=>{Lt("{..."),Te(e.expression),Lt("}")})(r);case 287:return(t=>{var r,n;if(t.expression||!Z&&!e.nodeIsSynthesized(t)&&((t=>{var r=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",t+1,(()=>r=!0)),r})(n=t.pos)||(t=>{var r=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",t+1,(()=>r=!0)),r})(n))){var a=i&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(i,t.pos).line!==e.getLineAndCharacterOfPosition(i,t.end).line;a&&_.increaseIndent();var o=qe(18,t.pos,Lt,t);Se(t.dotDotDotToken),Te(t.expression),qe(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||o,Lt,t),a&&_.decreaseIndent()}})(r);case 288:return(e=>{qe(82,e.pos,jt,e),Kt(),Te(e.expression,ne.parenthesizeExpressionForDisallowedComma),ot(e,e.statements,e.expression.end)})(r);case 289:return(e=>{var t=qe(88,e.pos,jt,e);ot(e,e.statements,t)})(r);case 290:return(e=>{Kt(),Yt(e.token,jt),Kt(),Pt(e,e.types,528)})(r);case 291:return(e=>{var t=qe(83,e.pos,jt,e);Kt(),e.variableDeclaration&&(qe(20,t,Lt,e),Se(e.variableDeclaration),qe(21,e.variableDeclaration.end,Lt,e),Kt()),Se(e.block)})(r);case 294:return(t=>{Se(t.name),Lt(":"),Kt();var r=t.initializer;0==(512&e.getEmitFlags(r))&&Vr(e.getCommentRange(r).pos),Te(r,ne.parenthesizeExpressionForDisallowedComma)})(r);case 295:return(e=>{Se(e.name),e.objectAssignmentInitializer&&(Kt(),Lt("="),Kt(),Te(e.objectAssignmentInitializer,ne.parenthesizeExpressionForDisallowedComma))})(r);case 296:return(e=>{e.expression&&(qe(25,e.pos,Lt,e),Te(e.expression,ne.parenthesizeExpressionForDisallowedComma))})(r);case 297:return(e=>{Se(e.name),Et(e.initializer,e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)})(r);case 298:return Ve(r);case 305:case 299:return(e=>{for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];Jt(),Se(n)}})(r);case 300:case 301:return l=r,u=le(),Ve(l),void(V&&ue(u,_.getTextPos(),300===l.kind?"text":"internal"));case 302:return(t=>{var r=le();if(Ve(t),V){var n=e.clone(t.section);n.pos=r,n.end=_.getTextPos(),V.sections.push(n)}})(r);case 303:return pt(r);case 304:return e.Debug.fail("Bundles should be printed using printBundle");case 306:return e.Debug.fail("InputFiles should not be printed");case 307:return dt(r);case 308:return(e=>{Kt(),Lt("{"),Se(e.name),Lt("}")})(r);case 310:return Lt("*");case 311:return Lt("?");case 312:return(e=>{Lt("?"),Se(e.type)})(r);case 313:return(e=>{Lt("!"),Se(e.type)})(r);case 314:return(e=>{Se(e.type),Lt("=")})(r);case 315:return(e=>{jt("function"),Nt(e,e.parameters),Lt(":"),Se(e.type)})(r);case 185:case 316:return(e=>{Lt("..."),Se(e.type)})(r);case 317:return;case 318:return(t=>{if(U("/**"),t.comment){var r=e.getTextOfJSDocComment(t.comment);if(r)for(var n=0,i=r.split(/\r\n?|\n/g);n<i.length;n++){var a=i[n];Jt(),Kt(),Lt("*"),Kt(),U(a)}}t.tags&&(1!==t.tags.length||341!==t.tags[0].kind||t.comment?Pt(t,t.tags,33):(Kt(),Se(t.tags[0]))),Kt(),U("*/")})(r);case 320:return st(r);case 321:return ct(r);case 325:case 330:return lt((c=r).tagName),void ut(c.comment);case 326:case 327:return(e=>{lt(e.tagName),Kt(),Lt("{"),Se(e.class),Lt("}"),ut(e.comment)})(r);case 328:case 329:return;case 331:case 332:case 333:case 334:case 335:return;case 336:return(e=>{lt(e.tagName),e.name&&(Kt(),Se(e.name)),ut(e.comment),ct(e.typeExpression)})(r);case 338:case 345:return lt((s=r).tagName),dt(s.typeExpression),Kt(),s.isBracketed&&Lt("["),Se(s.name),s.isBracketed&&Lt("]"),void ut(s.comment);case 337:case 339:case 340:case 341:return(e=>{lt(e.tagName),dt(e.typeExpression),ut(e.comment)})(r);case 342:return(e=>{lt(e.tagName),dt(e.constraint),Kt(),Pt(e,e.typeParameters,528),ut(e.comment)})(r);case 343:return(e=>{lt(e.tagName),e.typeExpression&&(307===e.typeExpression.kind?dt(e.typeExpression):(Kt(),Lt("{"),U("Object"),e.typeExpression.isArrayType&&(Lt("["),Lt("]")),Lt("}"))),e.fullName&&(Kt(),Se(e.fullName)),ut(e.comment),e.typeExpression&&320===e.typeExpression.kind&&st(e.typeExpression)})(r);case 344:return(e=>{lt(e.tagName),Se(e.name),ut(e.comment)})(r);case 347:case 351:case 350:return}if(e.isExpression(r)&&(t=1,A!==e.noEmitSubstitution)){var o=A(t,r)||r;o!==r&&(r=o,E&&(r=E(r)))}}var s,c,l,u,d;if(1===t)switch(r.kind){case 8:case 9:return(e=>{Ue(e,!1)})(r);case 10:case 13:case 14:return Ue(r,!1);case 79:return ze(r);case 80:return Ke(r);case 203:return(e=>{It(e,e.elements,8914|(e.multiLine?65536:0),ne.parenthesizeExpressionForDisallowedComma)})(r);case 204:return(t=>{e.forEach(t.properties,yr);var r=65536&e.getEmitFlags(t);r&&$t();var n=t.multiLine?65536:0,a=i.languageVersion>=1&&!e.isJsonSourceFile(i)?64:0;Pt(t,t.properties,526226|a|n),r&&Gt()})(r);case 205:return(t=>{Te(t.expression,ne.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=lr(t,t.expression,r),i=lr(t,r,t.name);er(n,!1),28===r.kind||!(t=>{if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=_r(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}})(t.expression)||_.hasTrailingComment()||_.hasTrailingWhitespace()||Lt("."),t.questionDotToken?Se(r):qe(r.kind,t.expression.end,Lt,t),er(i,!1),Se(t.name),tr(n,i)})(r);case 206:return(e=>{Te(e.expression,ne.parenthesizeLeftSideOfAccess),Se(e.questionDotToken),qe(22,e.expression.end,Lt,e),Te(e.argumentExpression),qe(23,e.argumentExpression.end,Lt,e)})(r);case 207:return(t=>{var r=536870912&e.getEmitFlags(t);r&&(Lt("("),Mt("0"),Lt(","),Kt()),Te(t.expression,ne.parenthesizeLeftSideOfAccess),r&&Lt(")"),Se(t.questionDotToken),kt(t,t.typeArguments),It(t,t.arguments,2576,ne.parenthesizeExpressionForDisallowedComma)})(r);case 208:return(e=>{qe(103,e.pos,jt,e),Kt(),Te(e.expression,ne.parenthesizeExpressionOfNew),kt(e,e.typeArguments),It(e,e.arguments,18960,ne.parenthesizeExpressionForDisallowedComma)})(r);case 209:return(t=>{var r=536870912&e.getEmitFlags(t);r&&(Lt("("),Mt("0"),Lt(","),Kt()),Te(t.tag,ne.parenthesizeLeftSideOfAccess),r&&Lt(")"),kt(t,t.typeArguments),Kt(),Te(t.template)})(r);case 210:return(e=>{Lt("<"),Se(e.type),Lt(">"),Te(e.expression,ne.parenthesizeOperandOfPrefixUnary)})(r);case 211:return(e=>{var t=qe(20,e.pos,Lt,e),r=or(e.expression,e);Te(e.expression,void 0),sr(e.expression,e),tr(r),qe(21,e.expression?e.expression.end:t,Lt,e)})(r);case 212:return(e=>{vr(e.name),Xe(e)})(r);case 213:return(e=>{Ct(e,e.decorators),bt(e,e.modifiers),Ye(e,We)})(r);case 214:return(e=>{qe(89,e.pos,jt,e),Kt(),Te(e.expression,ne.parenthesizeOperandOfPrefixUnary)})(r);case 215:return(e=>{qe(112,e.pos,jt,e),Kt(),Te(e.expression,ne.parenthesizeOperandOfPrefixUnary)})(r);case 216:return(e=>{qe(114,e.pos,jt,e),Kt(),Te(e.expression,ne.parenthesizeOperandOfPrefixUnary)})(r);case 217:return(e=>{qe(132,e.pos,jt,e),Kt(),Te(e.expression,ne.parenthesizeOperandOfPrefixUnary)})(r);case 218:return(e=>{Yt(e.operator,Ut),(e=>{var t=e.operand;return 218===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))})(e)&&Kt(),Te(e.operand,ne.parenthesizeOperandOfPrefixUnary)})(r);case 219:return(e=>{Te(e.operand,ne.parenthesizeOperandOfPostfixUnary),Yt(e.operator,Ut)})(r);case 220:return ie(r);case 221:return(e=>{var t=lr(e,e.condition,e.questionToken),r=lr(e,e.questionToken,e.whenTrue),n=lr(e,e.whenTrue,e.colonToken),i=lr(e,e.colonToken,e.whenFalse);Te(e.condition,ne.parenthesizeConditionOfConditionalExpression),er(t,!0),Se(e.questionToken),er(r,!0),Te(e.whenTrue,ne.parenthesizeBranchOfConditionalExpression),tr(t,r),er(n,!0),Se(e.colonToken),er(i,!0),Te(e.whenFalse,ne.parenthesizeBranchOfConditionalExpression),tr(n,i)})(r);case 222:return(e=>{Se(e.head),Pt(e,e.templateSpans,262144)})(r);case 223:return(e=>{qe(125,e.pos,jt,e),Se(e.asteriskToken),Dt(e.expression,ne.parenthesizeExpressionForDisallowedComma)})(r);case 224:return(e=>{qe(25,e.pos,Lt,e),Te(e.expression,ne.parenthesizeExpressionForDisallowedComma)})(r);case 225:return(e=>{vr(e.name),rt(e)})(r);case 226:return;case 228:return(e=>{Te(e.expression,void 0),e.type&&(Kt(),jt("as"),Kt(),Se(e.type))})(r);case 229:return(e=>{Te(e.expression,ne.parenthesizeLeftSideOfAccess),Ut("!")})(r);case 230:return(e=>{qt(e.keywordToken,e.pos,Lt),Lt("."),Se(e.name)})(r);case 231:return e.Debug.fail("SyntheticExpression should never be printed.");case 277:return(e=>{Se(e.openingElement),Pt(e,e.children,262144),Se(e.closingElement)})(r);case 278:return(e=>{Lt("<"),at(e.tagName),kt(e,e.typeArguments),Kt(),Se(e.attributes),Lt("/>")})(r);case 281:return(e=>{Se(e.openingFragment),Pt(e,e.children,262144),Se(e.closingFragment)})(r);case 346:return e.Debug.fail("SyntaxList should not be printed");case 347:return;case 348:return(e=>{Te(e.expression)})(r);case 349:return(e=>{It(e,e.elements,528,void 0)})(r);case 350:case 351:return;case 352:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?Xt(r,jt):e.isTokenKind(r.kind)?Xt(r,Lt):void e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(r.kind),"."))}function Le(t,r){var n=Ie(1,t,r);e.Debug.assertIsDefined(x),r=x,x=void 0,n(t,r)}function Be(r){var n=!1,a=304===r.kind?r:void 0;if(!a||L!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c<s;c++){var l=a?c<o?a.prepends[c]:a.sourceFiles[c-o]:r,u=e.isSourceFile(l)?l:e.isUnparsedSource(l)?void 0:i,d=t.noEmitHelpers||!!u&&e.hasRecordedExternalHelpers(u),p=(e.isSourceFile(l)||e.isUnparsedSource(l))&&!m,f=e.isUnparsedSource(l)?l.helpers:je(l);if(f)for(var g=0,h=f;g<h.length;g++){var y=h[g];if(y.scoped){if(a)continue}else{if(d)continue;if(p){if(B.get(y.name))continue;B.set(y.name,!0)}}var v=le();"string"==typeof y.text?Zt(y.text):Zt(y.text(Cr)),V&&V.sections.push({pos:v,end:_.getTextPos(),kind:"emitHelpers",data:y.name}),n=!0}}return n}}function je(t){var r=e.getEmitHelpers(t);return r&&e.stableSort(r,e.compareEmitHelpers)}function Ue(r,n){var i,a=_r(r,t.neverAsciiEscape,n);!t.sourceMap&&!t.inlineSourceMap||10!==r.kind&&!e.isTemplateLiteralKind(r.kind)?(i=a,_.writeStringLiteral(i)):Mt(a)}function Ve(e){_.rawWrite(e.parent.text.substring(e.pos,e.end))}function ze(e){(e.symbol?Rt:U)(pr(e,!1),e.symbol),Pt(e,e.typeArguments,53776)}function Ke(e){(e.symbol?Rt:U)(pr(e,!1),e.symbol)}function We(e){At(e,e.typeParameters),wt(e,e.parameters),xt(e.type),Kt(),Se(e.equalsGreaterThanToken)}function He(t,r){qe(18,t.pos,Lt,t);var n=r||1&e.getEmitFlags(t)?768:129;Pt(t,t.statements,n),qe(19,t.statements.end,Lt,t,!!(1&n))}function Je(e){e?Lt(";"):Bt()}function $e(e,t){var r=qe(115,t,jt,e);Kt(),qe(20,r,Lt,e),Te(e.expression),qe(21,e.expression.end,Lt,e)}function Ge(e){void 0!==e&&(254===e.kind?Se(e):Te(e))}function qe(t,r,n,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,l=r;if(c&&i&&(r=e.skipTrivia(i.text,r)),c&&a.pos!==l){var u=o&&i&&!e.positionsAreOnSameLine(l,r,i);u&&$t(),jr(l),u&&Gt()}if(r=Yt(t,n,r),c&&a.end!==r){var d=287===a.kind;Vr(r,!d,d)}return r}function Xe(e){Ct(e,e.decorators),bt(e,e.modifiers),jt("function"),Se(e.asteriskToken),Kt(),De(e.name),Ye(e,Qe)}function Ye(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&$t(),fr(t),e.forEach(t.parameters,hr),hr(t.body),r(t),Ze(n),mr(t),i&&Gt()}else r(t),Kt(),Te(n,ne.parenthesizeConciseBodyOfArrowFunction);else r(t),Bt()}function Qe(e){At(e,e.typeParameters),Nt(e,e.parameters),xt(e.type)}function Ze(t){null==N||N(t),Kt(),Lt("{"),$t();var r=(t=>{if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,i))return!1;if(rr(t,t.statements,2)||ir(t,t.statements,2))return!1;for(var r,n=0,a=t.statements;n<a.length;n++){var o=a[n];if(nr(r,o,2)>0)return!1;r=o}return!0})(t)?et:tt;Ir?Ir(t,t.statements,r):r(t),Gt(),qt(19,t.statements.end,Lt,t),null==w||w(t)}function et(e){tt(e,!0)}function tt(e,t){var r=mt(e.statements),n=_.getTextPos();Be(e),0===r&&n===_.getTextPos()&&t?(Gt(),Pt(e,e.statements,768),$t()):Pt(e,e.statements,1,void 0,r)}function rt(t){e.forEach(t.members,yr),Ct(t,t.decorators),bt(t,t.modifiers),jt("class"),t.name&&(Kt(),De(t.name));var r=65536&e.getEmitFlags(t);r&&$t(),At(t,t.typeParameters),Pt(t,t.heritageClauses,0),Kt(),Lt("{"),Pt(t,t.members,129),Lt("}"),r&&Gt()}function nt(e){Lt("{"),Pt(e,e.elements,525136),Lt("}")}function it(e){e.isTypeOnly&&(jt("type"),Kt()),e.propertyName&&(Se(e.propertyName),Kt(),qe(127,e.propertyName.end,jt,e),Kt()),Se(e.name)}function at(e){79===e.kind?Te(e):Se(e)}function ot(t,r,n){var a=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(qt(58,n,Lt,t),Kt(),a&=-130):qe(58,n,Lt,t),Pt(t,r,a)}function st(t){Pt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function ct(t){t.typeParameters&&Pt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&Pt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(Jt(),Kt(),Lt("*"),Kt(),Se(t.type))}function lt(e){Lt("@"),Se(e)}function ut(t){var r=e.getTextOfJSDocComment(t);r&&(Kt(),U(r))}function dt(e){e&&(Kt(),Lt("{"),Se(e.type),Lt("}"))}function pt(t){Jt();var r=t.statements;!Ir||0!==r.length&&e.isPrologueDirective(r[0])&&!e.nodeIsSynthesized(r[0])?ft(t):Ir(t,r,ft)}function _t(e,t,r,n){if(e){var a=_.getTextPos();zt('/// <reference no-default-lib="true"/>'),V&&V.sections.push({pos:a,end:_.getTextPos(),kind:"no-default-lib"}),Jt()}if(i&&i.moduleName&&(zt('/// <amd-module name="'.concat(i.moduleName,'" />')),Jt()),i&&i.amdDependencies)for(var o=0,s=i.amdDependencies;o<s.length;o++){var c=s[o];c.name?zt('/// <amd-dependency name="'.concat(c.name,'" path="').concat(c.path,'" />')):zt('/// <amd-dependency path="'.concat(c.path,'" />')),Jt()}for(var l=0,u=t;l<u.length;l++){var d=u[l];a=_.getTextPos(),zt('/// <reference path="'.concat(d.fileName,'" />')),V&&V.sections.push({pos:a,end:_.getTextPos(),kind:"reference",data:d.fileName}),Jt()}for(var p=0,f=r;p<f.length;p++)d=f[p],a=_.getTextPos(),zt('/// <reference types="'.concat(d.fileName,'" />')),V&&V.sections.push({pos:a,end:_.getTextPos(),kind:"type",data:d.fileName}),Jt();for(var m=0,g=n;m<g.length;m++)d=g[m],a=_.getTextPos(),zt('/// <reference lib="'.concat(d.fileName,'" />')),V&&V.sections.push({pos:a,end:_.getTextPos(),kind:"lib",data:d.fileName}),Jt()}function ft(t){var r=t.statements;fr(t),e.forEach(t.statements,hr),Be(t);var n=e.findIndex(r,(t=>!e.isPrologueDirective(t)));!(e=>{e.isDeclarationFile&&_t(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)})(t),Pt(t,r,1,void 0,-1===n?r.length:n),mr(t)}function mt(t,r,n,i){for(var a=!!r,o=0;o<t.length;o++){var s=t[o];if(!e.isPrologueDirective(s))return o;if(!n||!n.has(s.expression.text)){a&&(a=!1,ve(r)),Jt();var c=_.getTextPos();Se(s),i&&V&&V.sections.push({pos:c,end:_.getTextPos(),kind:"prologue",data:s.expression.text}),n&&n.add(s.expression.text)}}return t.length}function gt(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!t.has(i.data)){Jt();var a=_.getTextPos();Se(i),V&&V.sections.push({pos:a,end:_.getTextPos(),kind:"prologue",data:i.data}),t&&t.add(i.data)}}}function ht(t){if(e.isSourceFile(t))mt(t.statements,t);else{for(var r=new e.Set,n=0,i=t.prepends;n<i.length;n++)gt(i[n].prologues,r);for(var a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a];mt(s.statements,s,r,!0)}ve(void 0)}}function yt(t){if(e.isSourceFile(t)||e.isUnparsedSource(t)){var r=e.getShebang(t.text);if(r)return zt(r),Jt(),!0}else{for(var n=0,i=t.prepends;n<i.length;n++){var a=i[n];if(e.Debug.assertNode(a,e.isUnparsedSource),yt(a))return!0}for(var o=0,s=t.sourceFiles;o<s.length;o++)if(yt(s[o]))return!0}}function vt(e,t){if(e){var r=U;U=t,Se(e),U=r}}function bt(e,t){t&&t.length&&(Pt(e,t,262656),Kt())}function xt(e){e&&(Lt(":"),Kt(),Se(e))}function Et(e,t,r,n){e&&(Kt(),qe(63,t,Ut,r),Kt(),Te(e,n))}function St(e){e&&(Kt(),Se(e))}function Dt(e,t){e&&(Kt(),Te(e,t))}function Tt(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(Kt(),Se(r)):(Jt(),$t(),e.isEmptyStatement(r)?Ne(5,r):Se(r),Gt())}function Ct(e,t){Pt(e,t,2146305)}function kt(e,t){Pt(e,t,53776,ne.parenthesizeMemberOfElementType)}function At(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return kt(t,t.typeArguments);Pt(t,r,53776)}function Nt(e,t){Pt(e,t,2576)}function wt(t,r){((t,r)=>{var n=e.singleOrUndefined(r);return n&&n.pos===t.pos&&e.isArrowFunction(t)&&!t.type&&!e.some(t.decorators)&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&e.isIdentifier(n.name)})(t,r)?Pt(t,r,528):Nt(t,r)}function Ft(e){switch(60&e){case 0:break;case 16:Lt(",");break;case 4:Kt(),Lt("|");break;case 32:Kt(),Lt("*"),Kt();break;case 8:Kt(),Lt("&")}}function Pt(e,t,r,n,i,a){Ot(Se,e,t,r,n,i,a)}function It(e,t,r,n,i,a){Ot(Te,e,t,r,n,i,a)}function Ot(t,r,a,o,s,c,l){if(void 0===c&&(c=0),void 0===l&&(l=a?a.length-c:0),!(void 0===a&&16384&o)){var u=void 0===a||c>=a.length||0===l;if(u&&32768&o)return F&&F(a),void(P&&P(a));if(15360&o&&(Lt((e=>n[15360&e][0])(o)),u&&a&&Vr(a.pos,!0)),F&&F(a),u)1&o&&(!j||r&&!e.rangeIsOnSingleLine(r,i))?Jt():256&o&&!(524288&o)&&Kt();else{e.Debug.type(a);var d=0==(262144&o),_=d,f=rr(r,a,o);f?(Jt(f),_=!1):256&o&&Kt(),128&o&&$t();for(var m=void 0,g=void 0,h=!1,y=0;y<l;y++){var v=a[c+y];if(32&o)Jt(),Ft(o);else if(m){60&o&&m.end!==(r?r.end:-1)&&jr(m.end),Ft(o),pe(g);var b=nr(m,v,o);b>0?(0==(131&o)&&($t(),h=!0),Jt(b),_=!1):m&&512&o&&Kt()}g=de(v),_?Vr&&Vr(e.getCommentRange(v).pos):_=d,p=v.pos,1===t.length?t(v):t(v,s),h&&(Gt(),h=!1),m=v}var x=m?e.getEmitFlags(m):0,E=Z||!!(1024&x),S=(null==a?void 0:a.hasTrailingComma)&&64&o&&16&o;S&&(m&&!E?qe(27,m.end,Lt,m):Lt(",")),m&&(r?r.end:-1)!==m.end&&60&o&&!E&&jr(S&&(null==a?void 0:a.end)?a.end:m.end),128&o&&Gt(),pe(g);var D=ir(r,a,o);D?Jt(D):2097408&o&&Kt()}P&&P(a),15360&o&&(u&&a&&jr(a.end),Lt((e=>n[15360&e][1])(o)))}}function Mt(e){_.writeLiteral(e)}function Rt(e,t){_.writeSymbol(e,t)}function Lt(e){_.writePunctuation(e)}function Bt(){_.writeTrailingSemicolon(";")}function jt(e){_.writeKeyword(e)}function Ut(e){_.writeOperator(e)}function Vt(e){_.writeParameter(e)}function zt(e){_.writeComment(e)}function Kt(){_.writeSpace(" ")}function Wt(e){_.writeProperty(e)}function Ht(e){_.nonEscapingWrite?_.nonEscapingWrite(e):_.write(e)}function Jt(e){void 0===e&&(e=1);for(var t=0;t<e;t++)_.writeLine(t>0)}function $t(){_.increaseIndent()}function Gt(){_.decreaseIndent()}function qt(t,r,n,i){return J?Yt(t,n,r):((t,r,n,i,a)=>{if(J||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],l=c&&c.source||h;return i=Yr(l,c?c.pos:i),0==(128&s)&&i>=0&&Zr(l,i),i=a(r,n,i),c&&(i=c.end),0==(256&s)&&i>=0&&Zr(l,i),i})(i,t,n,r,Yt)}function Xt(t,r){I&&I(t),r(e.tokenToString(t.kind)),O&&O(t)}function Yt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function Qt(t,r,n){if(1&e.getEmitFlags(t))Kt();else if(j){var i=lr(t,r,n);i?Jt(i):Kt()}else Jt()}function Zt(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i<a.length;i++){var o=a[i],s=n?o.slice(n):o;s.length&&(Jt(),U(s))}}function er(e,t){e?($t(),Jt(e)):t&&Kt()}function tr(e,t){e&&Gt(),t&&Gt()}function rr(t,r,n){if(2&n||j){if(65536&n)return 1;var a=r[0];if(void 0===a)return!t||e.rangeIsOnSingleLine(t,i)?0:1;if(a.pos===p)return 0;if(11===a.kind)return 0;if(t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||e.getOriginalNode(a.parent)===e.getOriginalNode(t)))return j?ar((r=>e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(a.pos,t.pos,i,r))):e.rangeStartPositionsAreOnSameLine(t,a,i)?0:1;if(cr(a,n))return 1}return 1&n?1:0}function nr(t,r,n){if(2&n||j){if(void 0===t||void 0===r)return 0;if(11===r.kind)return 0;if(!e.nodeIsSynthesized(t)&&!e.nodeIsSynthesized(r))return j&&((t,r)=>{if(r.pos<t.end)return!1;t=e.getOriginalNode(t),r=e.getOriginalNode(r);var n=t.parent;if(!n||n!==r.parent)return!1;var i=e.getContainingNodeArray(t),a=null==i?void 0:i.indexOf(t);return void 0!==a&&a>-1&&i.indexOf(r)===a+1})(t,r)?ar((n=>e.getLinesBetweenRangeEndAndRangeStart(t,r,i,n))):!j&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,i)?0:1:65536&n?1:0;if(cr(t,n)||cr(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&n?1:0}function ir(t,r,n){if(2&n||j){if(65536&n)return 1;var a=e.lastOrUndefined(r);if(void 0===a)return!t||e.rangeIsOnSingleLine(t,i)?0:1;if(t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||a.parent===t)){if(j){var o=e.isNodeArray(r)&&!e.positionIsSynthesized(r.end)?r.end:a.end;return ar((r=>e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,i,r)))}return e.rangeEndPositionsAreOnSameLine(t,a,i)?0:1}if(cr(a,n))return 1}return 1&n&&!(131072&n)?1:0}function ar(t){e.Debug.assert(!!j);var r=t(!0);return 0===r?t(!1):r}function or(e,t){var r=j&&rr(t,[e],0);return r&&er(r,!1),!!r}function sr(e,t){var r=j&&ir(t,[e],0);r&&Jt(r)}function cr(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function lr(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=dr(t),r=dr(r),n=dr(n),e.getStartsOnNewLine(n)?1:e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:j?ar((t=>e.getLinesBetweenRangeEndAndRangeStart(r,n,i,t))):e.rangeEndIsOnSameLineAsRangeStart(r,n,i)?0:1)}function ur(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,i)}function dr(t){for(;211===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function pr(t,r){return e.isGeneratedIdentifier(t)?br(t):(e.isIdentifier(t)||e.isPrivateIdentifier(t))&&(e.nodeIsSynthesized(t)||!t.parent||!i||t.parent&&i&&e.getSourceFileOfNode(t)!==e.getOriginalNode(i))?e.idText(t):10===t.kind&&t.textSourceNode?pr(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(i,t,r):t.text}function _r(r,n,a){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:pr(o);return a?'"'.concat(e.escapeJsxAttributeString(s),'"'):n||16777216&e.getEmitFlags(r)?'"'.concat(e.escapeString(s),'"'):'"'.concat(e.escapeNonAsciiString(s),'"')}return _r(o,n,a)}var c=(n?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,i,c)}function fr(t){t&&524288&e.getEmitFlags(t)||(c.push(l),l=0,u.push(d))}function mr(t){t&&524288&e.getEmitFlags(t)||(l=c.pop(),d=u.pop())}function gr(t){d&&d!==e.lastOrUndefined(u)||(d=new e.Set),d.add(t)}function hr(t){if(t)switch(t.kind){case 234:e.forEach(t.statements,hr);break;case 249:case 247:case 239:case 240:hr(t.statement);break;case 238:hr(t.thenStatement),hr(t.elseStatement);break;case 241:case 243:case 242:hr(t.initializer),hr(t.statement);break;case 248:hr(t.caseBlock);break;case 262:e.forEach(t.clauses,hr);break;case 288:case 289:e.forEach(t.statements,hr);break;case 251:hr(t.tryBlock),hr(t.catchClause),hr(t.finallyBlock);break;case 291:hr(t.variableDeclaration),hr(t.block);break;case 236:hr(t.declarationList);break;case 254:e.forEach(t.declarations,hr);break;case 253:case 163:case 202:case 256:vr(t.name);break;case 255:vr(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,hr),hr(t.body));break;case 200:case 201:e.forEach(t.elements,hr);break;case 265:hr(t.importClause);break;case 266:vr(t.name),hr(t.namedBindings);break;case 267:case 273:vr(t.name);break;case 268:e.forEach(t.elements,hr);break;case 269:vr(t.propertyName||t.name)}}function yr(e){if(e)switch(e.kind){case 294:case 295:case 166:case 168:case 171:case 172:vr(e.name)}}function vr(t){t&&(e.isGeneratedIdentifier(t)?br(t):e.isBindingPattern(t)&&hr(t))}function br(t){if(4==(7&t.autoGenerateFlags))return xr((t=>{for(var r=t.autoGenerateId,n=t,i=n.original;i&&(n=i,!(e.isIdentifier(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n})(t),t.autoGenerateFlags);var r=t.autoGenerateId;return o[r]||(o[r]=(t=>{switch(7&t.autoGenerateFlags){case 1:return Dr(0,!!(8&t.autoGenerateFlags));case 2:return Dr(268435456,!!(8&t.autoGenerateFlags));case 3:return Tr(e.idText(t),32&t.autoGenerateFlags?Sr:Er,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")})(t))}function xr(t,r){var n=e.getNodeId(t);return a[n]||(a[n]=((t,r)=>{switch(t.kind){case 79:return Tr(pr(t),Er,!!(16&r),!!(8&r));case 260:case 259:return(t=>{var r=pr(t.name);return((t,r)=>{for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0})(r,t)?r:Tr(r)})(t);case 265:case 271:return(t=>{var r=e.getExternalModuleName(t);return Tr(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")})(t);case 255:case 256:case 270:return Tr("default");case 225:return Tr("class");case 168:case 171:case 172:return(t=>e.isIdentifier(t.name)?xr(t.name):Dr(0))(t);case 161:return Dr(0,!0);default:return Dr(0)}})(t,r))}function Er(e){return Sr(e)&&!s.has(e)&&!(d&&d.has(e))}function Sr(t){return!i||e.isFileLevelUniqueName(i,t,S)}function Dr(e,t){if(e&&!(l&e)&&Er(r=268435456===e?"_i":"_n"))return l|=e,t&&gr(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n&&Er(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&gr(r),r}}function Tr(e,t,r,n){if(void 0===t&&(t=Er),r&&t(e))return n?gr(e):s.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?gr(a):s.add(a),a;i++}}function Cr(e){return Tr(e,Sr,!0)}function kr(e,t){var r=Ie(2,e,t),n=q,i=X,a=Y;Ar(t),r(e,t),Nr(t,n,i,a)}function Ar(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!((t,r,n,i)=>{te(),Q=!1;var a=n<0||0!=(512&r)||11===t.kind,o=i<0||0!=(1024&r)||11===t.kind;(n>0||i>0)&&n!==i&&(a||Or(n,347!==t.kind),(!a||n>=0&&0!=(512&r))&&(q=n),(!o||i>=0&&0!=(1024&r))&&(X=i,254===t.kind&&(Y=i))),e.forEach(e.getSyntheticLeadingComments(t),wr),re()})(t,r,n.pos,n.end),2048&r&&(Z=!0)}function Nr(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(Z=!1),((t,r,n,i,a,o,s)=>{te();var c=i<0||0!=(1024&r)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),Fr),(n>0||i>0)&&n!==i&&(q=a,X=o,Y=s,c||347===t.kind||(e=>{Hr(e,Ur)})(i)),re()})(t,a,o.pos,o.end,r,n,i)}function wr(e){(e.hasLeadingNewline||2===e.kind)&&_.writeLine(),Pr(e),e.hasTrailingNewLine||2===e.kind?_.writeLine():_.writeSpace(" ")}function Fr(e){_.isAtStartOfLine()||_.writeSpace(" "),Pr(e),e.hasTrailingNewLine&&_.writeLine()}function Pr(t){var r=(e=>3===e.kind?"/*".concat(e.text,"*/"):"//".concat(e.text))(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,_,0,r.length,R)}function Ir(t,r,n){te();var a,o,s=r.pos,c=r.end,l=e.getEmitFlags(t),u=Z||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=r,(o=e.emitDetachedComments(i.text,Ee(),_,Jr,a,R,Z))&&(b?b.push(o):b=[o])),re(),2048&l&&!Z?(Z=!0,n(t),Z=!1):n(t),te(),u||(Or(r.end,!0),Q&&!_.isAtStartOfLine()&&_.writeLine()),re()}function Or(e,t){Q=!1,t?0===e&&(null==i?void 0:i.isDeclarationFile)?Wr(e,Rr):Wr(e,Br):0===e&&Wr(e,Mr)}function Mr(e,t,r,n,i){$r(e,t)&&Br(e,t,r,n,i)}function Rr(e,t,r,n,i){$r(e,t)||Br(e,t,r,n,i)}function Lr(r,n){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}function Br(t,r,n,a,o){Lr(i.text,t)&&(Q||(e.emitNewLineBeforeLeadingCommentOfPosition(Ee(),_,o,t),Q=!0),Qr(t),e.writeCommentRange(i.text,Ee(),_,t,r,R),Qr(r),a?_.writeLine():3===n&&_.writeSpace(" "))}function jr(e){Z||-1===e||Or(e,!0)}function Ur(t,r,n,a){Lr(i.text,t)&&(_.isAtStartOfLine()||_.writeSpace(" "),Qr(t),e.writeCommentRange(i.text,Ee(),_,t,r,R),Qr(r),a&&_.writeLine())}function Vr(e,t,r){Z||(te(),Hr(e,t?Ur:r?zr:Kr),re())}function zr(t,r,n){Qr(t),e.writeCommentRange(i.text,Ee(),_,t,r,R),Qr(r),2===n&&_.writeLine()}function Kr(t,r,n,a){Qr(t),e.writeCommentRange(i.text,Ee(),_,t,r,R),Qr(r),a?_.writeLine():_.writeSpace(" ")}function Wr(t,r){!i||-1!==q&&t===q||((t=>void 0!==b&&e.last(b).nodePos===t)(t)?(t=>{var r=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0,e.forEachLeadingCommentRange(i.text,r,t,r)})(r):e.forEachLeadingCommentRange(i.text,t,r,t))}function Hr(t,r){i&&(-1===X||t!==X&&t!==Y)&&e.forEachTrailingCommentRange(i.text,t,r)}function Jr(t,r,n,a,o,s){Lr(i.text,a)&&(Qr(a),e.writeCommentRange(t,r,n,a,o,s),Qr(o))}function $r(t,r){return e.isRecognizedTripleSlashComment(i.text,t,r)}function Gr(e,t){var r=Ie(3,e,t);qr(t),r(e,t),Xr(t)}function qr(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=(t=>(void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0))(t.parent);i&&g&&g.appendSourceMap(_.getLine(),_.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=n.source||h;347!==t.kind&&0==(16&r)&&n.pos>=0&&Zr(n.source||h,Yr(a,n.pos)),64&r&&(J=!0)}}function Xr(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&r&&(J=!1),347!==t.kind&&0==(32&r)&&n.end>=0&&Zr(n.source||h,n.end))}function Yr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Qr(t){if(!(J||e.positionIsSynthesized(t)||tn(h))){var r=e.getLineAndCharacterOfPosition(h,t),n=r.line,i=r.character;g.addMapping(_.getLine(),_.getColumn(),$,n,i,void 0)}}function Zr(e,t){if(e!==h){var r=h,n=$;en(e),Qr(t),((e,t)=>{h=e,$=t})(r,n)}else Qr(t)}function en(e){J||(h=e,e!==y?tn(e)||($=g.addSource(e.fileName),t.inlineSources&&g.setSourceContent($,e.text),y=e,G=$):$=G)}function tn(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=t=>e.fileExtensionIs(t,".tsbuildinfo"),e.forEachEmittedFile=i,e.getTsBuildInfoEmitOutputFilePath=a,e.getOutputPathsForBundle=o,e.getOutputPathsFor=s,e.getOutputExtension=l,e.getOutputDeclarationFileName=d,e.getCommonSourceDirectory=g,e.getCommonSourceDirectoryOfConfig=h,e.getAllProjectOutputs=(t,r)=>{var n=_(),i=n.addOutput,o=n.getOutputs;if(e.outFile(t.options))f(t,i);else{for(var s=e.memoize((()=>h(t,r))),c=0,l=t.fileNames;c<l.length;c++){var u=l[c];m(t,u,r,i,s)}i(a(t.options))}return o()},e.getOutputFileNames=(t,r,n)=>{r=e.normalizePath(r),e.Debug.assert(e.contains(t.fileNames,r),"Expected fileName to be present in command line");var i=_(),a=i.addOutput,o=i.getOutputs;return e.outFile(t.options)?f(t,a):m(t,r,n,a),o()},e.getFirstProjectOutput=(t,r)=>{if(e.outFile(t.options)){var n=o(t.options,!1).jsFilePath;return e.Debug.checkDefined(n,"project ".concat(t.options.configFilePath," expected to have at least one output"))}for(var i=e.memoize((()=>h(t,r))),s=0,c=t.fileNames;s<c.length;s++){var l=c[s];if(!e.fileExtensionIs(l,".d.ts")){if(n=p(l,t,r,i))return n;if(!e.fileExtensionIs(l,".json")&&e.getEmitDeclarations(t.options))return d(l,t,r,i)}}return a(t.options)||e.Debug.fail("project ".concat(t.options.configFilePath," expected to have at least one output"))},e.emitFiles=y,e.getBuildInfoText=v,e.getBuildInfo=b,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:e=>!1,collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented},e.emitUsingBuildInfo=(t,r,n,i)=>{var a=o(t.options,!1),s=a.buildInfoPath,c=a.jsFilePath,l=a.sourceMapFilePath,u=a.declarationFilePath,d=a.declarationMapPath,p=r.readFile(e.Debug.checkDefined(s));if(!p)return s;var _=r.readFile(e.Debug.checkDefined(c));if(!_)return c;var f=l&&r.readFile(l);if(l&&!f||t.options.inlineSourceMap)return l||"inline sourcemap decoding";var m=u&&r.readFile(u);if(u&&!m)return u;var g=d&&r.readFile(d);if(d&&!g||t.options.inlineSourceMap)return d||"inline sourcemap decoding";var h=b(p);if(!h.bundle||!h.bundle.js||m&&!h.bundle.dts)return s;var x=e.getDirectoryPath(e.getNormalizedAbsolutePath(s,r.getCurrentDirectory())),E=e.createInputFiles(_,m,l,f,d,g,c,u,s,h,!0),S=[],D=e.createPrependNodes(t.projectReferences,n,(e=>r.readFile(e))),T=((t,r,n)=>{var i,a=e.Debug.checkDefined(t.js),o=(null===(i=a.sources)||void 0===i?void 0:i.prologues)&&e.arrayToMap(a.sources.prologues,(e=>e.file));return t.sourceFiles.map(((t,i)=>{var a,s,c=null==o?void 0:o.get(i),l=null==c?void 0:c.directives.map((t=>{var r=e.setTextRange(e.factory.createStringLiteral(t.expression.text),t.expression),n=e.setTextRange(e.factory.createExpressionStatement(r),t);return e.setParent(r,n),n})),u=e.factory.createToken(1),d=e.factory.createSourceFile(null!=l?l:[],u,0);return d.fileName=e.getRelativePathFromDirectory(n.getCurrentDirectory(),e.getNormalizedAbsolutePath(t,r),!n.useCaseSensitiveFileNames()),d.text=null!==(a=null==c?void 0:c.text)&&void 0!==a?a:"",e.setTextRangePosWidth(d,0,null!==(s=null==c?void 0:c.text.length)&&void 0!==s?s:0),e.setEachParent(d.statements,d),e.setTextRangePosWidth(u,d.end,0),e.setParent(u,d),d}))})(h.bundle,x,r),C={getPrependNodes:e.memoize((()=>Il(Il([],D,!0),[E],!1))),getCanonicalFileName:r.getCanonicalFileName,getCommonSourceDirectory:()=>e.getNormalizedAbsolutePath(h.bundle.commonSourceDirectory,x),getCompilerOptions:()=>t.options,getCurrentDirectory:()=>r.getCurrentDirectory(),getNewLine:()=>r.getNewLine(),getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:()=>T,getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile(t,r,n){switch(t){case c:if(_===r)return;break;case l:if(f===r)return;break;case s:var i=b(r);i.program=h.program;var a=h.bundle,o=a.js,p=a.dts,y=a.sourceFiles;return i.bundle.js.sources=o.sources,p&&(i.bundle.dts.sources=p.sources),i.bundle.sourceFiles=y,void S.push({name:t,text:v(i),writeByteOrderMark:n});case u:if(m===r)return;break;case d:if(g===r)return;break;default:e.Debug.fail("Unexpected path: ".concat(t))}S.push({name:t,text:r,writeByteOrderMark:n})},isEmitBlocked:e.returnFalse,readFile:e=>r.readFile(e),fileExists:e=>r.fileExists(e),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames(),getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return y(e.notImplementedResolver,C,void 0,e.getTransformers(t.options,i)),S},(e=>{e[e.Notification=0]="Notification",e[e.Substitution=1]="Substitution",e[e.Comments=2]="Comments",e[e.SourceMaps=3]="SourceMaps",e[e.Emit=4]="Emit"})(t||(t={})),e.createPrinter=x,(e=>{e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"})(r||(r={}))})(Fl),(e=>{var t,r;function n(e){e.watcher.close()}e.createCachedDirectoryStructureHost=(t,r,n)=>{if(t.getDirectories&&t.readDirectory){var i=new e.Map,a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists(e){var r=c(o(e));return r&&p(r.files,l(e))||t.fileExists(e)},readFile:(e,r)=>t.readFile(e,r),directoryExists:t.directoryExists&&(r=>{var n=o(r);return i.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)}),getDirectories(e){var r=u(e,o(e));return r?r.directories.slice():t.getDirectories(e)},readDirectory(i,a,s,c,d){var p,_=o(i),m=u(i,_);return void 0!==m?e.matchFiles(i,a,s,c,n,r,d,(t=>{var r=o(t);if(r===_)return m||g(t,r);var n=u(t,r);return void 0!==n?n||g(t,r):e.emptyFileSystemEntries}),f):t.readDirectory(i,a,s,c,d);function g(r,n){if(p&&n===_)return p;var i={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),l)||e.emptyArray,directories:t.getDirectories(r)||e.emptyArray};return n===_&&(p=i),i}},createDirectory:t.createDirectory&&(e=>{var r=c(o(e)),n=l(e);r&&_(r.directories,n,!0),t.createDirectory(e)}),writeFile:t.writeFile&&((e,r,n)=>{var i=c(o(e));return i&&m(i,l(e),!0),t.writeFile(e,r,n)}),addOrDeleteFileOrDirectory(e,r){if(void 0===s(r)){var n=c(r);if(n){if(t.directoryExists){var i=l(e),a={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};return a.directoryExists||p(n.directories,i)?g():m(n,i,a.fileExists),a}g()}}else g()},addOrDeleteFile(t,r,n){if(n!==e.FileWatcherEventKind.Changed){var i=c(r);i&&m(i,l(t),n===e.FileWatcherEventKind.Created)}},clearCache:g,realpath:t.realpath&&f}}function o(t){return e.toPath(t,r,a)}function s(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function c(t){return s(e.getDirectoryPath(t))}function l(t){return e.getBaseFileName(e.normalizePath(t))}function u(r,n){var a=s(n=e.ensureTrailingDirectorySeparator(n));if(a)return a;try{return((r,n)=>{var a;if(!t.realpath||e.ensureTrailingDirectorySeparator(o(t.realpath(r)))===n){var s={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),l)||[],directories:t.getDirectories(r)||[]};return i.set(e.ensureTrailingDirectorySeparator(n),s),s}if(null===(a=t.directoryExists)||void 0===a?void 0:a.call(t,r))return i.set(n,!1),!1})(r,n)}catch(t){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(n)))}}function d(e,t){return a(e)===a(t)}function p(t,r){return e.some(t,(e=>d(e,r)))}function _(t,r,n){if(p(t,r)){if(!n)return e.filterMutate(t,(e=>!d(e,r)))}else if(n)return t.push(r)}function f(e){return t.realpath?t.realpath(e):e}function m(e,t,r){_(e.files,t,r)}function g(){i.clear()}},(r=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}))[r.None=0]="None",r[r.Partial=1]="Partial",r[r.Full=2]="Full",e.updateSharedExtendedConfigFileWatcher=(t,r,n,i,a)=>{var o,s=e.arrayToMap((null===(o=null==r?void 0:r.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);n.forEach(((e,r)=>{s.has(r)||(e.projects.delete(t),e.close())})),s.forEach(((r,a)=>{var o=n.get(a);o?o.projects.add(t):n.set(a,{projects:new e.Set([t]),watcher:i(r,a),close(){var e=n.get(a);e&&0===e.projects.size&&(e.watcher.close(),n.delete(a))}})}))},e.clearSharedExtendedConfigFileWatcher=(e,t)=>{t.forEach((t=>{t.projects.delete(e)&&t.close()}))},e.cleanExtendedConfigCache=function e(t,r,n){t.delete(r)&&t.forEach(((i,a)=>{var o;(null===(o=i.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some((e=>n(e)===r)))&&e(t,a,n)}))},e.updatePackageJsonWatch=(t,r,n)=>{var i=new e.Map(t);e.mutateMap(r,i,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=(t,r,n)=>{var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=(t,r,i)=>{function a(e,t){return{watcher:i(e,t),flags:t}}e.mutateMap(t,r,{createNewValue:a,onDeleteValue:n,onExistingValue(e,r,n){e.flags!==r&&(e.watcher.close(),t.set(n,a(n,r)))}})},e.isIgnoredFileFromWildCardWatching=t=>{var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.program,c=t.extraFileExtensions,l=t.currentDirectory,u=t.useCaseSensitiveFileNames,d=t.writeLog,p=t.toPath,_=e.removeIgnoredPath(i);if(!_)return d("Project: ".concat(a," Detected ignored path: ").concat(n)),!0;if((i=_)===r)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,o,c))return d("Project: ".concat(a," Detected file add/remove of non supported extension: ").concat(n)),!0;if(e.isExcludedFile(n,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),u,l))return d("Project: ".concat(a," Detected excluded file: ").concat(n)),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.fileExtensionIs(i,".d.ts")){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensionsFlat))return!1;var f=e.removeFileExtension(i),m=e.isArray(s)?void 0:(e=>!!e.getState)(s)?s.getProgramOrUndefined():s,g=m||e.isArray(s)?void 0:s;return!(!h(f+".ts")&&!h(f+".tsx")||(d("Project: ".concat(a," Detected output file: ").concat(n)),0));function h(t){return m?!!m.getSourceFileByPath(t):g?g.getState().fileInfos.has(t):!!e.find(s,(e=>p(e)===t))}},e.isEmittedFileOfProgram=(e,t)=>!!e&&e.isEmittedFile(t),(e=>{e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"})(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=(r,n,i,a)=>{e.setSysLog(n===t.Verbose?i:e.noop);var o={watchFile:(e,t,n,i)=>r.watchFile(e,t,n,i),watchDirectory:(e,t,n,i)=>r.watchDirectory(e,t,0!=(1&n),i)},s=n!==t.None?{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")}:void 0,c=n===t.Verbose?{watchFile(e,t,r,n,o,c){i("FileWatcher:: Added:: ".concat(p(e,r,n,o,c,a)));var l=s.watchFile(e,t,r,n,o,c);return{close(){i("FileWatcher:: Close:: ".concat(p(e,r,n,o,c,a))),l.close()}}},watchDirectory(t,r,n,o,c,l){var u="DirectoryWatcher:: Added:: ".concat(p(t,n,o,c,l,a));i(u);var d=e.timestamp(),_=s.watchDirectory(t,r,n,o,c,l),f=e.timestamp()-d;return i("Elapsed:: ".concat(f,"ms ").concat(u)),{close(){var r="DirectoryWatcher:: Close:: ".concat(p(t,n,o,c,l,a));i(r);var s=e.timestamp();_.close();var u=e.timestamp()-s;i("Elapsed:: ".concat(u,"ms ").concat(r))}}}}:s||o,l=n===t.Verbose?(e,t,r,n,o)=>(i("ExcludeWatcher:: Added:: ".concat(p(e,t,r,n,o,a))),{close:()=>i("ExcludeWatcher:: Close:: ".concat(p(e,t,r,n,o,a)))}):e.returnNoopFileWatcher;return{watchFile:u("watchFile"),watchDirectory:u("watchDirectory")};function u(t){return(n,i,a,o,s,u)=>{var d;return e.matchesExclude(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames:r.useCaseSensitiveFileNames(),(null===(d=r.getCurrentDirectory)||void 0===d?void 0:d.call(r))||"")?l(n,a,o,s,u):c[t].call(void 0,n,i,a,o,s,u)}}function d(t){return(r,n,s,c,l,u)=>o[t].call(void 0,r,(function(){for(var o=[],d=0;d<arguments.length;d++)o[d]=arguments[d];var _="".concat("watchFile"===t?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(o[0]," ").concat(void 0!==o[1]?o[1]:"",":: ").concat(p(r,s,c,l,u,a));i(_);var f=e.timestamp();n.call.apply(n,Il([void 0],o,!1));var m=e.timestamp()-f;i("Elapsed:: ".concat(m,"ms ").concat(_))}),s,c,l,u)}function p(e,t,r,n,i,a){return"WatchInfo: ".concat(e," ").concat(t," ").concat(JSON.stringify(r)," ").concat(a?a(n,i):void 0===i?n:"".concat(n," ").concat(i))}},e.getFallbackOptions=t=>{var r=null==t?void 0:t.fallbackPolling;return{watchFile:void 0!==r?r:e.WatchFileKind.PriorityPollingInterval}},e.closeFileWatcherOf=n})(Fl),function(e){function t(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function r(e,t){return n(e,t)}function n(t,r,n){void 0===n&&(n=e.sys);var i,a=new e.Map,o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=e.maybeBind(n,n.createHash)||e.generateDjb2Hash;function c(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var l=e.getNewLineCharacter(t,(()=>n.newLine)),u=n.realpath&&(e=>n.realpath(e)),d={getSourceFile(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=d.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:c,getDefaultLibFileName:t=>e.combinePaths(c(),e.getDefaultLibFileName(t)),writeFile(r,o,c,l){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,o,c,((r,a,o)=>((r,a,o)=>{if(e.isWatchSet(t)&&n.getModifiedTime){i||(i=new e.Map);var c=s(a),l=n.getModifiedTime(r);if(l){var u=i.get(r);if(u&&u.byteOrderMark===o&&u.hash===c&&u.mtime.getTime()===l.getTime())return}n.writeFile(r,a,o);var d=n.getModifiedTime(r)||e.missingFileModifiedTime;i.set(r,{hash:c,byteOrderMark:o,mtime:d})}else n.writeFile(r,a,o)})(r,a,o)),(e=>(d.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!a.has(t)||!!(d.directoryExists||n.directoryExists)(t)&&(a.set(t,!0),!0);var t})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){l&&l(e.message)}},getCurrentDirectory:e.memoize((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>l,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+l),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:u,readDirectory:(e,t,r,i,a)=>n.readDirectory(e,t,r,i,a),createDirectory:e=>n.createDirectory(e),createHash:e.maybeBind(n,n.createHash)};return d}function i(t,r){var n="".concat(e.diagnosticCategoryName(t)," TS").concat(t.code,": ").concat(p(t.messageText,r.getNewLine())).concat(r.getNewLine());if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName,c=e.convertToRelativePath(s,r.getCurrentDirectory(),(e=>r.getCanonicalFileName(e)));return"".concat(c,"(").concat(a+1,",").concat(o+1,"): ")+n}return n}var a;e.findConfigFile=(t,r,n)=>(void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,(t=>{var i=e.combinePaths(t,n);return r(i)?i:void 0}))),e.resolveTripleslashReference=t,e.computeCommonSourceDirectoryOfFilenames=(t,r,n)=>{var i;return e.forEach(t,(t=>{var a=e.getNormalizedPathComponents(t,r);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;s<o;s++)if(n(i[s])!==n(a[s])){if(0===s)return!0;i.length=s;break}a.length<i.length&&(i.length=a.length)}else i=a}))?"":i?e.getPathFromPathComponents(i):r},e.createCompilerHost=r,e.createCompilerHostWorker=n,e.changeCompilerHostLikeToUseCache=(t,r,n)=>{var i=t.readFile,a=t.fileExists,o=t.directoryExists,s=t.createDirectory,c=t.writeFile,l=new e.Map,u=new e.Map,d=new e.Map,p=new e.Map,_=(e,r)=>{var n=i.call(t,r);return l.set(e,void 0!==n&&n),n};t.readFile=n=>{var a=r(n),o=l.get(a);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(n,".json")||e.isBuildInfoFile(n)?_(a,n):i.call(t,n)};var f=n?(t,i,a,o)=>{var s=r(t),c=p.get(s);if(c)return c;var l=n(t,i,a,o);return l&&(e.isDeclarationFileName(t)||e.fileExtensionIs(t,".json"))&&p.set(s,l),l}:void 0;return t.fileExists=e=>{var n=r(e),i=u.get(n);if(void 0!==i)return i;var o=a.call(t,e);return u.set(n,!!o),o},c&&(t.writeFile=(e,n,i,a,o)=>{var s=r(e);u.delete(s);var d=l.get(s);if(void 0!==d&&d!==n)l.delete(s),p.delete(s);else if(f){var _=p.get(s);_&&_.text!==n&&p.delete(s)}c.call(t,e,n,i,a,o)}),o&&s&&(t.directoryExists=e=>{var n=r(e),i=d.get(n);if(void 0!==i)return i;var a=o.call(t,e);return d.set(n,!!a),a},t.createDirectory=e=>{var n=r(e);d.delete(n),s.call(t,e)}),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,getSourceFileWithCache:f,readFileWithCache(e){var t=r(e),n=l.get(t);return void 0!==n?!1!==n?n:void 0:_(t,e)}}},e.getPreEmitDiagnostics=(t,r,n)=>{var i;return i=e.addRange(i,t.getConfigFileParsingDiagnostics()),i=e.addRange(i,t.getOptionsDiagnostics(n)),i=e.addRange(i,t.getSyntacticDiagnostics(r,n)),i=e.addRange(i,t.getGlobalDiagnostics(n)),i=e.addRange(i,t.getSemanticDiagnostics(r,n)),e.getEmitDeclarations(t.getCompilerOptions())&&(i=e.addRange(i,t.getDeclarationDiagnostics(r,n))),e.sortAndDeduplicateDiagnostics(i||e.emptyArray)},e.formatDiagnostics=(e,t)=>{for(var r="",n=0,a=e;n<a.length;n++)r+=i(a[n],t);return r},e.formatDiagnostic=i,(e=>{e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan=""})(a=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var o="",s="";function c(t){switch(t){case e.DiagnosticCategory.Error:return a.Red;case e.DiagnosticCategory.Warning:return a.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return a.Blue}}function l(e,t){return t+e+s}function u(t,r,n,i,a,c){var u=e.getLineAndCharacterOfPosition(t,r),d=u.line,p=u.character,_=e.getLineAndCharacterOfPosition(t,r+n),f=_.line,m=_.character,g=e.getLineAndCharacterOfPosition(t,t.text.length).line,h=f-d>=4,y=(f+1+"").length;h&&(y=Math.max("...".length,y));for(var v="",b=d;b<=f;b++){v+=c.getNewLine(),h&&d+1<b&&b<f-1&&(v+=i+l(e.padLeft("...",y),o)+" "+c.getNewLine(),b=f-1);var x=e.getPositionOfLineAndCharacter(t,b,0),E=b<g?e.getPositionOfLineAndCharacter(t,b+1,0):t.text.length,S=t.text.slice(x,E);if(S=(S=e.trimStringEnd(S)).replace(/\t/g," "),v+=i+l(e.padLeft(b+1+"",y),o)+" ",v+=S+c.getNewLine(),v+=i+l(e.padLeft("",y),o)+" ",v+=a,b===d){var D=b===f?m:void 0;v+=S.slice(0,p).replace(/\S/g," "),v+=S.slice(p,D).replace(/./g,"~")}else v+=b===f?S.slice(0,m).replace(/./g,"~"):S.replace(/./g,"~");v+=s}return v}function d(t,r,n,i){void 0===i&&(i=l);var o=e.getLineAndCharacterOfPosition(t,r),s=o.line,c=o.character,u="";return u+=i(n?e.convertToRelativePath(t.fileName,n.getCurrentDirectory(),(e=>n.getCanonicalFileName(e))):t.fileName,a.Cyan),u+=":",u+=i("".concat(s+1),a.Yellow),(u+=":")+i("".concat(c+1),a.Yellow)}function p(t,r,n){if(void 0===n&&(n=0),e.isString(t))return t;if(void 0===t)return"";var i="";if(n){i+=r;for(var a=0;a<n;a++)i+=" "}if(i+=t.messageText,n++,t.next)for(var o=0,s=t.next;o<s.length;o++)i+=p(s[o],r,n);return i}function _(t,r,n,i){if(0===t.length)return[];for(var a=[],o=new e.Map,s=0,c=t;s<c.length;s++){var l=c[s],u=void 0;o.has(l)?u=o.get(l):o.set(l,u=i(l,r,n)),a.push(u)}return a}function f(e,t){if(void 0!==e.impliedNodeFormat)return m(e,N(e,t))}function m(t,r){var n;if(void 0!==t.impliedNodeFormat){if(t.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(r.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var i=null===(n=e.walkUpParenthesizedExpressions(r.parent))||void 0===n?void 0:n.parent;return i&&e.isImportEqualsDeclaration(i)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}function g(t,r,n,i,a){if(0===t.length)return[];for(var o=[],s=new e.Map,c=0,l=0,u=t;l<u.length;l++){var d=u[l],p=void 0,_=f(r,c);c++;var m=void 0!==_?"".concat(_,"|").concat(d):d;s.has(m)?p=s.get(m):s.set(m,p=a(d,_,n,i)),o.push(p)}return o}function h(t,r,n,i){var a;return function t(r,o,s){if(i){var c=i(r,s);if(c)return c}return e.forEach(o,((r,i)=>{if(!r||!(null==a?void 0:a.has(r.sourceFile.path))){var o=n(r,s,i);return o||!r?o:((a||(a=new e.Set)).add(r.sourceFile.path),t(r.commandLine.projectReferences,r.references,r))}}))}(t,r,void 0)}function y(t){switch(null==t?void 0:t.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}function v(e){return void 0!==e.pos}function b(t,r){var n,i,a,o,s,c,l,u,d,p,_=e.Debug.checkDefined(t(r.file)),m=r.kind,g=r.index;switch(m){case e.FileIncludeKind.Import:var h=N(_,g);if(p=null===(s=null===(o=_.resolvedModules)||void 0===o?void 0:o.get(h.text,f(_,g)))||void 0===s?void 0:s.packageId,-1===h.pos)return{file:_,packageId:p,text:h.text};u=e.skipTrivia(_.text,h.pos),d=h.end;break;case e.FileIncludeKind.ReferenceFile:u=(n=_.referencedFiles[g]).pos,d=n.end;break;case e.FileIncludeKind.TypeReferenceDirective:u=(i=_.typeReferenceDirectives[g]).pos,d=i.end,p=null===(l=null===(c=_.resolvedTypeReferenceDirectiveNames)||void 0===c?void 0:c.get(e.toFileNameLowerCase(_.typeReferenceDirectives[g].fileName),_.impliedNodeFormat))||void 0===l?void 0:l.packageId;break;case e.FileIncludeKind.LibReferenceDirective:u=(a=_.libReferenceDirectives[g]).pos,d=a.end;break;default:return e.Debug.assertNever(m)}return{file:_,pos:u,end:d,packageId:p}}function x(t,r,n,i){switch(e.getEmitModuleResolutionKind(i)){case e.ModuleResolutionKind.Node12:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(t,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(t,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(t,[".d.ts",".ts",".tsx",".js",".jsx"])?"module"===(null==(a=e.getPackageScopeForPath(t,r,n,i))?void 0:a.packageJsonContent.type)?e.ModuleKind.ESNext:e.ModuleKind.CommonJS:void 0;default:return}var a}function E(t,r,n,i){var a=t.getCompilerOptions();if(a.noEmit)return t.getSemanticDiagnostics(r,i),r||e.outFile(a)?e.emitSkippedWithNoDiagnostics:t.emitBuildInfo(n,i);if(a.noEmitOnError){var o=Il(Il(Il(Il([],t.getOptionsDiagnostics(i),!0),t.getSyntacticDiagnostics(r,i),!0),t.getGlobalDiagnostics(i),!0),t.getSemanticDiagnostics(r,i),!0);if(0===o.length&&e.getEmitDeclarations(t.getCompilerOptions())&&(o=t.getDeclarationDiagnostics(void 0,i)),o.length){var s;if(!r&&!e.outFile(a)){var c=t.emitBuildInfo(n,i);c.diagnostics&&(o=Il(Il([],o,!0),c.diagnostics,!0)),s=c.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:s,emitSkipped:!0}}}}function S(t,r){return e.filter(t,(e=>!e.skippedOn||!r[e.skippedOn]))}function D(t,r){return void 0===r&&(r=t),{fileExists:e=>r.fileExists(e),readDirectory:(t,n,i,a,o)=>(e.Debug.assertIsDefined(r.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),r.readDirectory(t,n,i,a,o)),readFile:e=>r.readFile(e),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:t.trace?e=>t.trace(e):void 0}}function T(t,r,n){if(!t)return e.emptyArray;for(var i,a=0;a<t.length;a++){var o=t[a],s=r(o,a);if(o.prepend&&s&&s.options){if(!e.outFile(s.options))continue;var c=e.getOutputPathsForBundle(s.options,!0),l=c.jsFilePath,u=c.sourceMapFilePath,d=c.declarationFilePath,p=c.declarationMapPath,_=c.buildInfoPath,f=e.createInputFiles(n,l,u,d,p,_);(i||(i=[])).push(f)}}return i||e.emptyArray}function C(t,r){var n=r||t;return e.resolveConfigFileProjectName(n.path)}function k(t,r){switch(r.extension){case".ts":case".d.ts":return;case".tsx":return n();case".jsx":return n()||i();case".js":return i();case".json":return t.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return e.getAllowJSCompilerOption(t)||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function A(e){for(var t=e.imports,r=e.moduleAugmentations,n=t.map((e=>e.text)),i=0,a=r;i<a.length;i++){var o=a[i];10===o.kind&&n.push(o.text)}return n}function N(t,r){var n=t.imports,i=t.moduleAugmentations;if(r<n.length)return n[r];for(var a=n.length,o=0,s=i;o<s.length;o++){var c=s[o];if(10===c.kind){if(r===a)return c;a++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.formatColorAndReset=l,e.formatLocation=d,e.formatDiagnosticsWithColorAndContext=(t,r)=>{for(var n="",i=0,o=t;i<o.length;i++){var s=o[i];if(s.file&&(n+=d(g=s.file,h=s.start,r),n+=" - "),n+=l(e.diagnosticCategoryName(s),c(s.category)),n+=l(" TS".concat(s.code,": "),a.Grey),n+=p(s.messageText,r.getNewLine()),s.file&&(n+=r.getNewLine(),n+=u(s.file,s.start,s.length,"",c(s.category),r)),s.relatedInformation){n+=r.getNewLine();for(var _=0,f=s.relatedInformation;_<f.length;_++){var m=f[_],g=m.file,h=m.start,y=m.length,v=m.messageText;g&&(n+=r.getNewLine(),n+=" "+d(g,h,r),n+=u(g,h,y," ",a.Cyan,r)),n+=r.getNewLine(),n+=" "+p(v,r.getNewLine())}}n+=r.getNewLine()}return n},e.flattenDiagnosticMessageText=p,e.loadWithLocalCache=_,e.getModeForResolutionAtIndex=f,e.getModeForUsageLocation=m,e.loadWithModeAwareCache=g,e.forEachResolvedProjectReference=(e,t)=>h(void 0,e,((e,r)=>e&&t(e,r))),e.inferredTypesContainingFile="__inferred type names__.ts",e.isReferencedFile=y,e.isReferenceFileLocation=v,e.getReferencedFileLocation=b,e.isProgramUptoDate=(t,r,n,i,a,o,s,c,l)=>{if(!t||(null==s?void 0:s()))return!1;if(!e.arrayIsEqualTo(t.getRootFileNames(),r))return!1;var u;if(!e.arrayIsEqualTo(t.getProjectReferences(),l,((r,n,i)=>e.projectReferenceIsEqualTo(r,n)&&p(t.getResolvedProjectReferences()[i],r))))return!1;if(t.getSourceFiles().some((e=>!(e=>e.version===i(e.resolvedPath,e.fileName))(e)||o(e.path))))return!1;if(t.getMissingFilePaths().some(a))return!1;var d=t.getCompilerOptions();return!(!e.compareDataObjects(d,n)||d.configFile&&n.configFile&&d.configFile.text!==n.configFile.text);function p(t,r){if(t){if(e.contains(u,t))return!0;var n=C(r),i=c(n);return!!i&&t.commandLine.options.configFile===i.options.configFile&&!!e.arrayIsEqualTo(t.commandLine.fileNames,i.fileNames)&&((u||(u=[])).push(t),!e.forEach(t.references,((e,r)=>!p(e,t.commandLine.projectReferences[r]))))}var a=C(r);return!c(a)}},e.getConfigFileParsingDiagnostics=e=>e.options.configFile?Il(Il([],e.options.configFile.parseDiagnostics,!0),e.errors,!0):e.errors,e.getImpliedNodeFormatForFile=x,e.createProgram=function(n,i,a,o,s){var c,l,u,d,p,m,N,w,F,P,I,O,M,R=e.isArray(n)?((e,t,r,n,i)=>({rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}))(n,i,a,o,s):n,L=R.rootNames,B=R.options,j=R.configFileParsingDiagnostics,U=R.projectReferences,V=R.oldProgram,z=new e.Map,K=e.createMultiMap(),W={},H={},J=new e.Map,$="number"==typeof B.maxNodeModuleJsDepth?B.maxNodeModuleJsDepth:0,G=0,q=new e.Map,X=new e.Map;null===e.tracing||void 0===e.tracing||e.tracing.push("program","createProgram",{configFilePath:B.configFilePath,rootDir:B.rootDir},!0),e.performance.mark("beforeProgram");var Y,Q,Z,ee,te,re=R.host||r(B),ne=D(re),ie=B.noLib,ae=e.memoize((()=>re.getDefaultLibFileName(B))),oe=re.getDefaultLibLocation?re.getDefaultLibLocation():e.getDirectoryPath(ae()),se=e.createDiagnosticCollection(),ce=re.getCurrentDirectory(),le=e.getSupportedExtensions(B),ue=e.getSupportedExtensionsWithJsonIfResolveJsonModule(B,le),de=new e.Map,pe=re.hasInvalidatedResolution||e.returnFalse;if(re.resolveModuleNames)ee=(t,r,n,i,a)=>re.resolveModuleNames(e.Debug.checkEachDefined(t),n,i,a,B,r).map((t=>{if(!t||void 0!==t.extension)return t;var r=e.clone(t);return r.extension=e.extensionFromPath(t.resolvedFileName),r})),Q=null===(c=re.getModuleResolutionCache)||void 0===c?void 0:c.call(re);else{Q=e.createModuleResolutionCache(ce,Wt,B);var _e=(t,r,n,i)=>e.resolveModuleName(t,n,B,re,Q,i,r).resolvedModule;ee=(t,r,n,i,a)=>g(e.Debug.checkEachDefined(t),r,n,a,_e)}if(re.resolveTypeReferenceDirectives)te=(t,r,n)=>re.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(t),r,n,B);else{Z=e.createTypeReferenceDirectiveResolutionCache(ce,Wt,void 0,null==Q?void 0:Q.getPackageJsonInfoCache());var fe=(t,r,n)=>e.resolveTypeReferenceDirective(t,r,B,re,n,Z).resolvedTypeReferenceDirective;te=(t,r,n)=>_(e.Debug.checkEachDefined(t),r,n,fe)}var me,ge,he,ye,ve,be=new e.Map,xe=new e.Map,Ee=e.createMultiMap(),Se=!1,De=new e.Map,Te=re.useCaseSensitiveFileNames()?new e.Map:void 0,Ce=!!(null===(l=re.useSourceOfProjectReferenceRedirect)||void 0===l?void 0:l.call(re))&&!B.disableSourceOfProjectReferenceRedirect,ke=(t=>{var r,n,i=t.compilerHost.fileExists,a=t.compilerHost.directoryExists,o=t.compilerHost.getDirectories,s=t.compilerHost.realpath;return t.useSourceOfProjectReferenceRedirect?(t.compilerHost.fileExists=c,a&&(n=t.compilerHost.directoryExists=n=>a.call(t.compilerHost,n)?((r=>{var n;if(t.getResolvedProjectReferences()&&!e.containsIgnoredPath(r)&&s&&e.stringContains(r,e.nodeModulesPathPart)){var i=t.getSymlinkCache(),a=e.ensureTrailingDirectorySeparator(t.toPath(r));if(!(null===(n=i.getSymlinkedDirectories())||void 0===n?void 0:n.has(a))){var o,c=e.normalizePath(s.call(t.compilerHost,r));c!==r&&(o=e.ensureTrailingDirectorySeparator(t.toPath(c)))!==a?i.setSymlinkedDirectory(r,{real:e.ensureTrailingDirectorySeparator(c),realPath:o}):i.setSymlinkedDirectory(a,!1)}}})(n),!0):!!t.getResolvedProjectReferences()&&(r||(r=new e.Set,t.forEachResolvedProjectReference((n=>{var i=e.outFile(n.commandLine.options);if(i)r.add(e.getDirectoryPath(t.toPath(i)));else{var a=n.commandLine.options.declarationDir||n.commandLine.options.outDir;a&&r.add(t.toPath(a))}}))),l(n,!1))),o&&(t.compilerHost.getDirectories=e=>!t.getResolvedProjectReferences()||a&&a.call(t.compilerHost,e)?o.call(t.compilerHost,e):[]),s&&(t.compilerHost.realpath=e=>{var r;return(null===(r=t.getSymlinkCache().getSymlinkedFiles())||void 0===r?void 0:r.get(t.toPath(e)))||s.call(t.compilerHost,e)}),{onProgramCreateComplete(){t.compilerHost.fileExists=i,t.compilerHost.directoryExists=a,t.compilerHost.getDirectories=o},fileExists:c,directoryExists:n}):{onProgramCreateComplete:e.noop,fileExists:c};function c(r){return!!i.call(t.compilerHost,r)||!!t.getResolvedProjectReferences()&&!!e.isDeclarationFileName(r)&&l(r,!0)}function l(n,a){var o,s=a?r=>(r=>{var n=t.getSourceOfProjectReferenceRedirect(t.toPath(r));return void 0!==n?!e.isString(n)||i.call(t.compilerHost,n):void 0})(r):n=>(n=>{var i=t.toPath(n),a="".concat(i).concat(e.directorySeparator);return e.forEachKey(r,(t=>i===t||e.startsWith(t,a)||e.startsWith(i,"".concat(t,"/"))))})(n),c=s(n);if(void 0!==c)return c;var l=t.getSymlinkCache(),u=l.getSymlinkedDirectories();if(!u)return!1;var d=t.toPath(n);return!!e.stringContains(d,e.nodeModulesPathPart)&&(!(!a||!(null===(o=l.getSymlinkedFiles())||void 0===o?void 0:o.has(d)))||e.firstDefinedIterator(u.entries(),(r=>{var i=r[0],o=r[1];if(o&&e.startsWith(d,i)){var c=s(d.replace(i,o.realPath));if(a&&c){var u=e.getNormalizedAbsolutePath(n,t.compilerHost.getCurrentDirectory());l.setSymlinkedFile(d,"".concat(o.real).concat(u.replace(new RegExp(i,"i"),"")))}return c}}))||!1)}})({compilerHost:re,getSymlinkCache:lr,useSourceOfProjectReferenceRedirect:Ce,toPath:qe,getResolvedProjectReferences:Ze,getSourceOfProjectReferenceRedirect:Rt,forEachResolvedProjectReference:Mt}),Ae=ke.onProgramCreateComplete,Ne=ke.fileExists,we=ke.directoryExists,Fe=re.readFile.bind(re);null===e.tracing||void 0===e.tracing||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!V});var Pe,Ie=((t,r)=>!!t&&e.optionsHaveChanges(t.getCompilerOptions(),r,e.sourceFileAffectingCompilerOptions))(V,B);if(null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),Pe=(()=>{var t;if(!V)return 0;var r=V.getCompilerOptions();if(e.changesAffectModuleResolution(r,B))return 0;var n=V.getRootFileNames();if(!e.arrayIsEqualTo(n,L))return 0;if(h(V.getProjectReferences(),V.getResolvedProjectReferences(),((t,r,n)=>{var i=Jt((r?r.commandLine.projectReferences:U)[n]);return t?!i||i.sourceFile!==t.sourceFile||!e.arrayIsEqualTo(t.commandLine.fileNames,i.commandLine.fileNames):void 0!==i}),((t,r)=>{var n=r?Bt(r.sourceFile.path).commandLine.projectReferences:U;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)})))return 0;U&&(ge=U.map(Jt));var i=[],a=[];if(Pe=2,V.getMissingFilePaths().some((e=>re.fileExists(e))))return 0;var o,s=V.getSourceFiles();!(e=>{e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"})(o||(o={}));for(var c=new e.Map,l=0,u=s;l<u.length;l++){var d=u[l];if(!(R=re.getSourceFileByPath?re.getSourceFileByPath(d.fileName,d.resolvedPath,e.getEmitScriptTarget(B),void 0,Ie):re.getSourceFile(d.fileName,e.getEmitScriptTarget(B),void 0,Ie)))return 0;e.Debug.assert(!R.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var p=void 0;if(d.redirectInfo){if(R!==d.redirectInfo.unredirected)return 0;p=!1,R=d}else if(V.redirectTargetsMap.has(d.path)){if(R!==d)return 0;p=!1}else p=R!==d;R.path=d.path,R.originalFileName=d.originalFileName,R.resolvedPath=d.resolvedPath,R.fileName=d.fileName;var _=V.sourceFileToPackageName.get(d.path);if(void 0!==_){var f=c.get(_),m=p?1:0;if(void 0!==f&&1===m||1===f)return 0;c.set(_,m)}p?(e.arrayIsEqualTo(d.libReferenceDirectives,R.libReferenceDirectives,bt)||(Pe=1),d.hasNoDefaultLib!==R.hasNoDefaultLib&&(Pe=1),e.arrayIsEqualTo(d.referencedFiles,R.referencedFiles,bt)||(Pe=1),St(R),e.arrayIsEqualTo(d.imports,R.imports,xt)||(Pe=1),e.arrayIsEqualTo(d.moduleAugmentations,R.moduleAugmentations,xt)||(Pe=1),(3145728&d.flags)!=(3145728&R.flags)&&(Pe=1),e.arrayIsEqualTo(d.typeReferenceDirectives,R.typeReferenceDirectives,bt)||(Pe=1),a.push({oldFile:d,newFile:R})):pe(d.path)&&(Pe=1,a.push({oldFile:d,newFile:R})),i.push(R)}if(2!==Pe)return Pe;for(var g=a.map((e=>e.oldFile)),y=0,v=s;y<v.length;y++){var b=v[y];if(!e.contains(g,b))for(var x=0,E=b.ambientModuleNames;x<E.length;x++){var S=E[x];z.set(S,b.fileName)}}for(var D=0,T=a;D<T.length;D++){var C=T[D],k=(d=C.oldFile,A(R=C.newFile)),w=Ye(k,R);e.hasChangesInResolutions(k,w,d.resolvedModules,d,e.moduleResolutionIsEqualTo)?(Pe=1,R.resolvedModules=e.zipToModeAwareCache(R,k,w)):R.resolvedModules=d.resolvedModules;var F=e.map(R.typeReferenceDirectives,(t=>e.toFileNameLowerCase(t.fileName))),P=He(F,R);e.hasChangesInResolutions(F,P,d.resolvedTypeReferenceDirectiveNames,d,e.typeDirectiveIsEqualTo)?(Pe=1,R.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(R,F,P)):R.resolvedTypeReferenceDirectiveNames=d.resolvedTypeReferenceDirectiveNames}if(2!==Pe)return Pe;if(e.changesAffectingProgramStructure(r,B)||(null===(t=re.hasChangedAutomaticTypeDirectiveNames)||void 0===t?void 0:t.call(re)))return 1;me=V.getMissingFilePaths(),e.Debug.assert(i.length===V.getSourceFiles().length);for(var I=0,O=i;I<O.length;I++){var R=O[I];De.set(R.path,R)}return V.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?De.set(t,De.get(e.path)):V.isSourceFileFromExternalLibrary(e)&&X.set(e.path,!0):De.set(t,e)})),N=i,K=V.getFileIncludeReasons(),M=V.getFileProcessingDiagnostics(),J=V.getResolvedTypeReferenceDirectives(),xe=V.sourceFileToPackageName,Ee=V.redirectTargetsMap,Se=V.usesUriStyleNodeCoreModules,2})(),null===e.tracing||void 0===e.tracing||e.tracing.pop(),2!==Pe){p=[],m=[],U&&(ge||(ge=U.map(Jt)),L.length&&(null==ge||ge.forEach(((t,r)=>{if(t){var n=e.outFile(t.commandLine.options);if(Ce){if(n||e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var i=0,a=t.commandLine.fileNames;i<a.length;i++)Ct(l=a[i],{kind:e.FileIncludeKind.SourceFromProjectReference,index:r})}else if(n)Ct(e.changeExtension(n,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r});else if(e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var o=e.memoize((()=>e.getCommonSourceDirectoryOfConfig(t.commandLine,!re.useCaseSensitiveFileNames()))),s=0,c=t.commandLine.fileNames;s<c.length;s++){var l=c[s];e.fileExtensionIs(l,".d.ts")||e.fileExtensionIs(l,".json")||Ct(e.getOutputDeclarationFileName(l,t.commandLine,!re.useCaseSensitiveFileNames(),o),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r})}}})))),null===e.tracing||void 0===e.tracing||e.tracing.push("program","processRootFiles",{count:L.length}),e.forEach(L,((t,r)=>vt(t,!1,!1,{kind:e.FileIncludeKind.RootFile,index:r}))),null===e.tracing||void 0===e.tracing||e.tracing.pop();var Oe=L.length?e.getAutomaticTypeDirectiveNames(B,re):e.emptyArray;if(Oe.length){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferences",{count:Oe.length});for(var Me=B.configFilePath?e.getDirectoryPath(B.configFilePath):re.getCurrentDirectory(),Re=He(Oe,e.combinePaths(Me,e.inferredTypesContainingFile)),Le=0;Le<Oe.length;Le++)Vt(Oe[Le],Re[Le],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Oe[Le],packageId:null===(u=Re[Le])||void 0===u?void 0:u.packageId});null===e.tracing||void 0===e.tracing||e.tracing.pop()}if(L.length&&!ie){var Be=ae();!B.lib&&Be?vt(Be,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(B.lib,((t,r)=>{vt(zt(t),!0,!1,{kind:e.FileIncludeKind.LibFile,index:r})}))}me=e.arrayFrom(e.mapDefinedIterator(De.entries(),(e=>{var t=e[0];return void 0===e[1]?t:void 0}))),N=e.stableSort(p,((t,r)=>e.compareValues(Ge(t),Ge(r)))).concat(m),p=void 0,m=void 0}if(e.Debug.assert(!!me),V&&re.onReleaseOldSourceFile){for(var je=0,Ue=V.getSourceFiles();je<Ue.length;je++){var Ve=Ue[je],ze=ot(Ve.resolvedPath);(Ie||!ze||Ve.resolvedPath===Ve.path&&ze.resolvedPath!==Ve.path)&&re.onReleaseOldSourceFile(Ve,V.getCompilerOptions(),!!ot(Ve.path))}re.getParsedCommandLine||V.forEachResolvedProjectReference((e=>{Bt(e.sourceFile.path)||re.onReleaseOldSourceFile(e.sourceFile,V.getCompilerOptions(),!1)}))}V&&re.onReleaseParsedCommandLine&&h(V.getProjectReferences(),V.getResolvedProjectReferences(),((e,t,r)=>{var n=C((null==t?void 0:t.commandLine.projectReferences[r])||V.getProjectReferences()[r]);(null==he?void 0:he.has(qe(n)))||re.onReleaseParsedCommandLine(n,e,V.getCompilerOptions())})),Z=void 0,V=void 0;var Ke={getRootFileNames:()=>L,getSourceFile:at,getSourceFileByPath:ot,getSourceFiles:()=>N,getMissingFilePaths:()=>me,getModuleResolutionCache:()=>Q,getFilesByNameMap:()=>De,getCompilerOptions:()=>B,getSyntacticDiagnostics:(e,t)=>st(e,lt,t),getOptionsDiagnostics:()=>e.sortAndDeduplicateDiagnostics(e.concatenate(se.getGlobalDiagnostics(),(()=>{if(!B.configFile)return e.emptyArray;var t=se.getDiagnostics(B.configFile.fileName);return Mt((r=>{t=e.concatenate(t,se.getDiagnostics(r.sourceFile.fileName))})),t})())),getGlobalDiagnostics:()=>L.length?e.sortAndDeduplicateDiagnostics(rt().getGlobalDiagnostics().slice()):e.emptyArray,getSemanticDiagnostics:(e,t)=>st(e,dt,t),getCachedSemanticDiagnostics(e){var t;return e?null===(t=W.perFile)||void 0===t?void 0:t.get(e.path):W.allDiagnostics},getSuggestionDiagnostics:(e,t)=>ut((()=>rt().getSuggestionDiagnostics(e,t))),getDeclarationDiagnostics(t,r){var n=Ke.getCompilerOptions();return!t||e.outFile(n)?mt(t,r):st(t,yt,r)},getBindAndCheckDiagnostics:(e,t)=>pt(e,t),getProgramDiagnostics:ct,getTypeChecker:nt,getClassifiableNames(){var t;if(!O){nt(),O=new e.Set;for(var r=0,n=N;r<n.length;r++)null===(t=n[r].classifiableNames)||void 0===t||t.forEach((e=>O.add(e)))}return O},getDiagnosticsProducingTypeChecker:rt,getCommonSourceDirectory:Xe,emit(t,r,n,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emit",{path:null==t?void 0:t.path},!0);var s=ut((()=>((t,r,n,i,a,o,s)=>{if(!s){var c=E(t,r,n,i);if(c)return c}var l=rt().getEmitResolver(e.outFile(B)?void 0:r,i);e.performance.mark("beforeEmit");var u=e.emitFiles(l,Qe(n),r,e.getTransformers(B,o,a),a,!1,s);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),u})(Ke,t,r,n,i,a,o)));return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s},getCurrentDirectory:()=>ce,getNodeCount:()=>rt().getNodeCount(),getIdentifierCount:()=>rt().getIdentifierCount(),getSymbolCount:()=>rt().getSymbolCount(),getTypeCount:()=>rt().getTypeCount(),getInstantiationCount:()=>rt().getInstantiationCount(),getRelationCacheSizes:()=>rt().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>M,getResolvedTypeReferenceDirectives:()=>J,isSourceFileFromExternalLibrary:tt,isSourceFileDefaultLibrary(t){if(t.hasNoDefaultLib)return!0;if(!B.noLib)return!1;var r=re.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return B.lib?e.some(B.lib,(e=>r(t.fileName,zt(e)))):r(t.fileName,ae())},dropDiagnosticsProducingTypeChecker(){P=void 0},getSourceFileFromReference:(e,r)=>Dt(t(r.fileName,e.fileName),at),getLibFileFromReference(t){var r=e.toFileNameLowerCase(t.fileName),n=e.libMap.get(r);if(n)return at(zt(n))},sourceFileToPackageName:xe,redirectTargetsMap:Ee,usesUriStyleNodeCoreModules:Se,isEmittedFile(t){if(B.noEmit)return!1;var r=qe(t);if(ot(r))return!1;var n=e.outFile(B);if(n)return cr(r,n)||cr(r,e.removeFileExtension(n)+".d.ts");if(B.declarationDir&&e.containsPath(B.declarationDir,r,ce,!re.useCaseSensitiveFileNames()))return!0;if(B.outDir)return e.containsPath(B.outDir,r,ce,!re.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensionsFlat)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!ot(i+".ts")||!!ot(i+".tsx")}return!1},getConfigFileParsingDiagnostics:()=>j||e.emptyArray,getResolvedModuleWithFailedLookupLocationsFromCache:(t,r,n)=>Q&&e.resolveModuleNameFromCache(t,r,Q,n),getProjectReferences:()=>U,getResolvedProjectReferences:Ze,getProjectReferenceRedirect:Ft,getResolvedProjectReferenceToRedirect:Ot,getResolvedProjectReferenceByPath:Bt,forEachResolvedProjectReference:Mt,isSourceOfProjectReferenceRedirect:Lt,emitBuildInfo(t){e.Debug.assert(!e.outFile(B)),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,Qe(t),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),r},fileExists:Ne,readFile:Fe,directoryExists:we,getSymlinkCache:lr,realpath:null===(d=re.realpath)||void 0===d?void 0:d.bind(re),useCaseSensitiveFileNames:()=>re.useCaseSensitiveFileNames(),getFileIncludeReasons:()=>K,structureIsReused:Pe};return Ae(),null==M||M.forEach((t=>{switch(t.kind){case 1:return se.add($t(t.file&&ot(t.file),t.fileProcessingReason,t.diagnostic,t.args||e.emptyArray));case 0:var r=b(ot,t.reason),n=r.file,i=r.pos,a=r.end;return se.add(e.createFileDiagnostic.apply(void 0,Il([n,e.Debug.checkDefined(i),e.Debug.checkDefined(a)-i,t.diagnostic],t.args||e.emptyArray,!1)));default:e.Debug.assertNever(t)}})),(()=>{e.stringContains(e.version,"-dev")||(e.getEmitModuleKind(B)===e.ModuleKind.Node12?rr("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","node12"):e.getEmitModuleKind(B)===e.ModuleKind.NodeNext?rr("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","nodenext"):e.getEmitModuleResolutionKind(B)===e.ModuleResolutionKind.Node12?rr("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","node12"):e.getEmitModuleResolutionKind(B)===e.ModuleResolutionKind.NodeNext&&rr("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","nodenext")),B.strictPropertyInitialization&&!e.getStrictOptionValue(B,"strictNullChecks")&&tr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),B.exactOptionalPropertyTypes&&!e.getStrictOptionValue(B,"strictNullChecks")&&tr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),B.isolatedModules&&(B.out&&tr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),B.outFile&&tr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),B.inlineSourceMap&&(B.sourceMap&&tr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),B.mapRoot&&tr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),B.composite&&(!1===B.declaration&&tr(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===B.incremental&&tr(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var t,r=e.outFile(B);if(B.tsBuildInfoFile?e.isIncrementalCompilation(B)||tr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!B.incremental||r||B.configFilePath||se.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),t=B.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(B),h(U,ge,((r,n,i)=>{var a=(n?n.commandLine.projectReferences:U)[i],o=n&&n.sourceFile;if(r){var s=r.commandLine.options;if(s.composite&&!s.noEmit||(n?n.commandLine.fileNames:L).length&&(s.composite||nr(o,i,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path),s.noEmit&&nr(o,i,e.Diagnostics.Referenced_project_0_may_not_disable_emit,a.path)),a.prepend){var c=e.outFile(s);c?re.fileExists(c)||nr(o,i,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):nr(o,i,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!n&&t&&t===e.getTsBuildInfoEmitOutputFilePath(s)&&(nr(o,i,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,t,a.path),de.set(qe(t),!0))}else nr(o,i,e.Diagnostics.File_0_not_found,a.path)})),B.composite)for(var n=new e.Set(L.map(qe)),i=0,a=N;i<a.length;i++){var o=a[i];e.sourceFileMayBeEmitted(o,Ke)&&!n.has(o.path)&&qt(o,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[o.fileName,B.configFilePath||""])}if(B.paths)for(var s in B.paths)if(e.hasProperty(B.paths,s))if(e.hasZeroOrOneAsteriskCharacter(s)||Yt(!0,s,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,s),e.isArray(B.paths[s])){var c=B.paths[s].length;0===c&&Yt(!1,s,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,s);for(var l=0;l<c;l++){var u=B.paths[s][l],d=typeof u;"string"===d?(e.hasZeroOrOneAsteriskCharacter(u)||Xt(s,l,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,u,s),B.baseUrl||e.pathIsRelative(u)||e.pathIsAbsolute(u)||Xt(s,l,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Xt(s,l,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,u,s,d)}}else Yt(!1,s,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,s);B.sourceMap||B.inlineSourceMap||(B.inlineSources&&tr(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),B.sourceRoot&&tr(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),B.out&&B.outFile&&tr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!B.mapRoot||B.sourceMap||B.declarationMap||tr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),B.declarationDir&&(e.getEmitDeclarations(B)||tr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),r&&tr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",B.out?"out":"outFile")),B.declarationMap&&!e.getEmitDeclarations(B)&&tr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),B.lib&&B.noLib&&tr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),B.noImplicitUseStrict&&e.getStrictOptionValue(B,"alwaysStrict")&&tr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var p=e.getEmitScriptTarget(B),_=e.find(N,(t=>e.isExternalModule(t)&&!t.isDeclarationFile));if(B.isolatedModules){B.module===e.ModuleKind.None&&p<2&&tr(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===B.preserveConstEnums&&tr(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var f=e.find(N,(t=>!e.isExternalModule(t)&&!e.isSourceFileJS(t)&&!t.isDeclarationFile&&6!==t.scriptKind));if(f){var m=e.getErrorSpanForNode(f,f);se.add(e.createFileDiagnostic(f,m.start,m.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(f.fileName)))}}else _&&p<2&&B.module===e.ModuleKind.None&&(m=e.getErrorSpanForNode(_,_.externalModuleIndicator),se.add(e.createFileDiagnostic(_,m.start,m.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)));if(r&&!B.emitDeclarationOnly&&(B.module&&B.module!==e.ModuleKind.AMD&&B.module!==e.ModuleKind.System?tr(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,B.out?"out":"outFile","module"):void 0===B.module&&_&&(m=e.getErrorSpanForNode(_,_.externalModuleIndicator),se.add(e.createFileDiagnostic(_,m.start,m.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,B.out?"out":"outFile")))),B.resolveJsonModule&&(e.getEmitModuleResolutionKind(B)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(B)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(B)!==e.ModuleResolutionKind.NodeNext?tr(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(B)||tr(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),B.outDir||B.rootDir||B.sourceRoot||B.mapRoot){var g=Xe();B.outDir&&""===g&&N.some((t=>e.getRootLength(t.fileName)>1))&&tr(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(B.useDefineForClassFields&&0===p&&tr(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),B.checkJs&&!e.getAllowJSCompilerOption(B)&&se.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),B.emitDeclarationOnly&&(e.getEmitDeclarations(B)||tr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),B.noEmit&&tr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),B.emitDecoratorMetadata&&!B.experimentalDecorators&&tr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),B.jsxFactory?(B.reactNamespace&&tr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==B.jsx&&5!==B.jsx||tr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+B.jsx)),e.parseIsolatedEntityName(B.jsxFactory,p)||rr("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,B.jsxFactory)):B.reactNamespace&&!e.isIdentifierText(B.reactNamespace,p)&&rr("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,B.reactNamespace),B.jsxFragmentFactory&&(B.jsxFactory||tr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==B.jsx&&5!==B.jsx||tr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+B.jsx)),e.parseIsolatedEntityName(B.jsxFragmentFactory,p)||rr("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,B.jsxFragmentFactory)),B.reactNamespace&&(4!==B.jsx&&5!==B.jsx||tr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+B.jsx))),B.jsxImportSource&&2===B.jsx&&tr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+B.jsx)),B.preserveValueImports&&e.getEmitModuleKind(B)<e.ModuleKind.ES2015&&rr("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!B.noEmit&&!B.suppressOutputPathCheck){var y=Qe(),v=new e.Set;e.forEachEmittedFile(y,(e=>{B.emitDeclarationOnly||b(e.jsFilePath,v),b(e.declarationFilePath,v)}))}function b(t,r){if(t){var n=qe(t);if(De.has(n)){var i=void 0;B.configFilePath||(i=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),sr(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=re.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?sr(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.add(a)}}})(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),Ke;function We(t,r,n){if(!t.length)return e.emptyArray;var i=e.getNormalizedAbsolutePath(r.originalFileName,ce),a=Je(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:i}),e.performance.mark("beforeResolveModule");var o=ee(t,r,i,n,a);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function He(t,r){if(!t.length)return[];var n=e.isString(r)?r:e.getNormalizedAbsolutePath(r.originalFileName,ce),i=e.isString(r)?void 0:Je(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:n}),e.performance.mark("beforeResolveTypeReference");var a=te(t,n,i);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),a}function Je(t){var r=Ot(t.originalFileName);if(r||!e.fileExtensionIsOneOf(t.originalFileName,[".d.ts",".d.cts",".d.mts"]))return r;var n=$e(t.path);if(n)return n;if(re.realpath&&B.preserveSymlinks&&e.stringContains(t.originalFileName,e.nodeModulesPathPart)){var i=qe(re.realpath(t.originalFileName));return i===t.path?void 0:$e(i)}}function $e(t){var r=Rt(t);return e.isString(r)?Ot(r):r?Mt((r=>{var n=e.outFile(r.commandLine.options);if(n)return qe(n)===t?r:void 0})):void 0}function Ge(t){if(e.containsPath(oe,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function qe(t){return e.toPath(t,ce,Wt)}function Xe(){if(void 0===F){var t=e.filter(N,(t=>e.sourceFileMayBeEmitted(t,Ke)));F=e.getCommonSourceDirectory(B,(()=>e.mapDefined(t,(e=>e.isDeclarationFile?void 0:e.fileName))),ce,Wt,(r=>((t,r)=>{for(var n=!0,i=re.getCanonicalFileName(e.getNormalizedAbsolutePath(r,ce)),a=0,o=t;a<o.length;a++){var s=o[a];s.isDeclarationFile||0!==re.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,ce)).indexOf(i)&&(qt(s,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[s.fileName,r]),n=!1)}return n})(t,r)))}return F}function Ye(t,r){if(0===Pe&&!r.ambientModuleNames.length)return We(t,r,void 0);var n,i,a,o=V&&V.getSourceFile(r.fileName);if(o!==r&&r.resolvedModules){for(var s=[],c=0,l=0,u=t;l<u.length;l++){var d=u[l],p=r.resolvedModules.get(d,f(r,c));c++,s.push(p)}return s}var _={};for(c=0;c<t.length;c++){if(d=t[c],r===o&&!pe(o.path)){var m=e.getResolvedModule(o,d,f(o,c));if(m){e.isTraceEnabled(B,re)&&e.trace(re,m.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,d,e.getNormalizedAbsolutePath(r.originalFileName,ce),m.resolvedFileName,m.packageId&&e.packageIdToString(m.packageId)),(i||(i=new Array(t.length)))[c]=m,(a||(a=[])).push(d);continue}}var g=!1;e.contains(r.ambientModuleNames,d)?(g=!0,e.isTraceEnabled(B,re)&&e.trace(re,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,d,e.getNormalizedAbsolutePath(r.originalFileName,ce))):g=v(d,c),g?(i||(i=new Array(t.length)))[c]=_:(n||(n=[])).push(d)}var h=n&&n.length?We(n,r,a):e.emptyArray;if(!i)return e.Debug.assert(h.length===t.length),h;var y=0;for(c=0;c<i.length;c++)i[c]?i[c]===_&&(i[c]=void 0):(i[c]=h[y],y++);return e.Debug.assert(y===h.length),i;function v(t,r){if(r>=e.length(null==o?void 0:o.imports)+e.length(null==o?void 0:o.moduleAugmentations))return!1;var n=e.getResolvedModule(o,t,o&&f(o,r)),i=n&&V.getSourceFile(n.resolvedFileName);if(n&&i)return!1;var a=z.get(t);return!!a&&(e.isTraceEnabled(B,re)&&e.trace(re,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,a),!0)}}function Qe(t){return{getPrependNodes:et,getCanonicalFileName:Wt,getCommonSourceDirectory:Ke.getCommonSourceDirectory,getCompilerOptions:Ke.getCompilerOptions,getCurrentDirectory:()=>ce,getNewLine:()=>re.getNewLine(),getSourceFile:Ke.getSourceFile,getSourceFileByPath:Ke.getSourceFileByPath,getSourceFiles:Ke.getSourceFiles,getLibFileFromReference:Ke.getLibFileFromReference,isSourceFileFromExternalLibrary:tt,getResolvedProjectReferenceToRedirect:Ot,getProjectReferenceRedirect:Ft,isSourceOfProjectReferenceRedirect:Lt,getSymlinkCache:lr,writeFile:t||((e,t,r,n,i)=>re.writeFile(e,t,r,n,i)),isEmitBlocked:it,readFile:e=>re.readFile(e),fileExists(t){var r=qe(t);return!!ot(r)||!e.contains(me,r)&&re.fileExists(t)},useCaseSensitiveFileNames:()=>re.useCaseSensitiveFileNames(),getProgramBuildInfo:()=>Ke.getProgramBuildInfo&&Ke.getProgramBuildInfo(),getSourceFileFromReference:(e,t)=>Ke.getSourceFileFromReference(e,t),redirectTargetsMap:Ee,getFileIncludeReasons:Ke.getFileIncludeReasons}}function Ze(){return ge}function et(){return T(U,((e,t)=>{var r;return null===(r=ge[t])||void 0===r?void 0:r.commandLine}),(e=>{var t=qe(e),r=ot(t);return r?r.text:De.has(t)?void 0:re.readFile(t)}))}function tt(e){return!!X.get(e.path)}function rt(){return P||(P=e.createTypeChecker(Ke,!0))}function nt(){return I||(I=e.createTypeChecker(Ke,!1))}function it(e){return de.has(qe(e))}function at(e){return ot(qe(e))}function ot(e){return De.get(e)||void 0}function st(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(Ke.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),r(e,n)))))}function ct(t){var r;if(e.skipTypeChecking(t,B,Ke))return e.emptyArray;var n=se.getDiagnostics(t.fileName);return(null===(r=t.commentDirectives)||void 0===r?void 0:r.length)?ft(t,t.commentDirectives,n).diagnostics:n}function lt(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=(t=>ut((()=>{var r=[];return n(t,t),e.forEachChildRecursively(t,n,((t,n)=>{switch(n.decorators!==t||B.experimentalDecorators||r.push(a(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),n.kind){case 256:case 225:case 168:case 170:case 171:case 172:case 212:case 255:case 213:if(t===n.typeParameters)return r.push(i(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 236:if(t===n.modifiers)return((t,n)=>{for(var i=0,o=t;i<o.length;i++){var s=o[i];switch(s.kind){case 85:if(n)continue;case 123:case 121:case 122:case 144:case 135:case 126:case 158:r.push(a(s,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(s.kind)))}}})(n.modifiers,236===n.kind),"skip";break;case 166:if(t===n.modifiers){for(var o=0,s=t;o<s.length;o++){var c=s[o];124!==c.kind&&r.push(a(c,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(c.kind)))}return"skip"}break;case 163:if(t===n.modifiers)return r.push(i(t,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 207:case 208:case 227:case 278:case 279:case 209:if(t===n.typeArguments)return r.push(i(t,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),r;function n(t,n){switch(n.kind){case 163:case 166:case 168:if(n.questionToken===t)return r.push(a(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 167:case 170:case 171:case 172:case 212:case 255:case 213:case 253:if(n.type===t)return r.push(a(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(t.kind){case 266:if(t.isTypeOnly)return r.push(a(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 271:if(t.isTypeOnly)return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 264:return r.push(a(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 270:if(t.isExportEquals)return r.push(a(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 290:if(117===t.token)return r.push(a(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 257:var i=e.tokenToString(118);return e.Debug.assertIsDefined(i),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 260:var o=16&t.flags?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(o),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 258:return r.push(a(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 259:var s=e.Debug.checkDefined(e.tokenToString(92));return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,s)),"skip";case 229:return r.push(a(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 228:return r.push(a(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 210:e.Debug.fail()}}function i(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function a(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}})))(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function ut(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(I=void 0,P=void 0),t}}function dt(t,r){return e.concatenate(S(pt(t,r),B),ct(t))}function pt(e,t){return ht(e,t,W,_t)}function _t(t,r){return ut((()=>{if(e.skipTypeChecking(t,B,Ke))return e.emptyArray;var n=rt();e.Debug.assert(!!t.bindDiagnostics);var i=e.isCheckJsEnabledForFile(t,B),a=!(t.checkJsDirective&&!1===t.checkJsDirective.enabled)&&(3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||i||7===t.scriptKind),o=a?t.bindDiagnostics:e.emptyArray,s=a?n.getDiagnostics(t,r):e.emptyArray;return function(t,r){for(var n,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o=e.flatten(i);if(!r||!(null===(n=t.commentDirectives)||void 0===n?void 0:n.length))return o;for(var s=ft(t,t.commentDirectives,o),c=s.diagnostics,l=s.directives,u=0,d=l.getUnusedExpectations();u<d.length;u++){var p=d[u];c.push(e.createDiagnosticForRange(t,p.range,e.Diagnostics.Unused_ts_expect_error_directive))}return c}(t,a,o,s,i?t.jsDocDiagnostics:void 0)}))}function ft(t,r,n){var i=e.createCommentDirectivesMap(t,r);return{diagnostics:n.filter((t=>-1===((t,r)=>{var n=t.file,i=t.start;if(!n)return-1;for(var a=e.getLineStarts(n),o=e.computeLineAndCharacterOfPosition(a,i).line-1;o>=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1})(t,i))),directives:i}}function mt(e,t){return ht(e,t,H,gt)}function gt(t,r){return ut((()=>{var n=rt().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Qe(e.noop),n,t)||e.emptyArray}))}function ht(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function yt(e,t){return e.isDeclarationFile?[]:mt(e,t)}function vt(t,r,n,i){Tt(e.normalizePath(t),r,n,void 0,i)}function bt(e,t){return e.fileName===t.fileName}function xt(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function Et(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,void 0,n,void 0);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function St(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((B.isolatedModules||o)&&!t.isDeclarationFile){B.importHelpers&&(r=[Et(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(B,t),B);s&&(r||(r=[])).push(Et(s,t))}for(var c=0,l=t.statements;c<l.length;c++)u(l[c],!1);return(1048576&t.flags||a)&&(t=>{for(var n=/import|require/g;null!==n.exec(t.text);){var i=d(t,n.lastIndex);a&&e.isRequireCall(i,!0)||e.isImportCall(i)&&i.arguments.length>=1&&e.isStringLiteralLike(i.arguments[0])?(e.setParentRecursive(i,!1),r=e.append(r,i.arguments[0])):e.isLiteralImportTypeNode(i)&&(e.setParentRecursive(i,!1),r=e.append(r,i.argument.literal))}})(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function u(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(e.setParentRecursive(a,!1),r=e.append(r,c),Se||0!==G||t.isDeclarationFile||(Se=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){a.name.parent=a;var l=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(l))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(l);var d=a.body;if(d)for(var p=0,_=d.statements;p<_.length;p++)u(_[p],!0)}}}function d(t,r){for(var n=t,i=e=>{if(e.pos<=r&&(r<e.end||r===e.end&&1===e.kind))return e};;){var o=a&&e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,i)||e.forEachChild(n,i);if(!o)return n;n=o}}}function Dt(t,r,n,i){if(e.hasExtension(t)){var a=re.getCanonicalFileName(t);if(!B.allowNonTsExtensions&&!e.forEach(e.flatten(ue),(t=>e.fileExtensionIs(a,t))))return void(n&&(e.hasJSFileExtension(a)?n(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,t):n(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+e.flatten(le).join("', '")+"'")));var o=r(t);if(n)if(o)y(i)&&a===re.getCanonicalFileName(ot(i.file).fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var s=Ft(t);s?n(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,s,t):n(e.Diagnostics.File_0_not_found,t)}return o}var c=B.allowNonTsExtensions&&r(t);if(c)return c;if(!n||!B.allowNonTsExtensions){var l=e.forEach(le[0],(e=>r(t+e)));return n&&!l&&n(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+e.flatten(le).join("', '")+"'"),l}n(e.Diagnostics.File_0_not_found,t)}function Tt(e,t,r,n,i){Dt(e,(e=>At(e,t,r,i,n)),(function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Gt(void 0,i,e,t)}),i)}function Ct(e,t){return Tt(e,!1,!1,void 0,t)}function kt(t,r,n){!y(n)&&e.some(K.get(r.path),y)?Gt(r,n,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[r.fileName,t]):Gt(r,n,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[t,r.fileName])}function At(t,r,n,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("program","findSourceFile",{fileName:t,isDefaultLib:r||void 0,fileIncludeKind:e.FileIncludeKind[i.kind]});var o=function(t,r,n,i,a){var o=qe(t);if(Ce){var s=Rt(o);if(!s&&re.realpath&&B.preserveSymlinks&&e.isDeclarationFileName(t)&&e.stringContains(t,e.nodeModulesPathPart)){var c=qe(re.realpath(t));c!==o&&(s=Rt(c))}if(s){var l=e.isString(s)?At(s,r,n,i,a):void 0;return l&&wt(l,o,void 0),l}}var u,d=t;if(De.has(o)){var _=De.get(o);if(Nt(_||void 0,i),_&&B.forceConsistentCasingInFileNames){var f=_.fileName;qe(f)!==qe(t)&&(t=Ft(t)||t),e.getNormalizedAbsolutePathWithoutRoot(f,ce)!==e.getNormalizedAbsolutePathWithoutRoot(t,ce)&&kt(t,_,i)}return _&&X.get(_.path)&&0===G?(X.set(_.path,!1),B.noResolve||(jt(_,r),Ut(_)),B.noLib||Kt(_),q.set(_.path,!1),Ht(_)):_&&q.get(_.path)&&G<$&&(q.set(_.path,!1),Ht(_)),_||void 0}if(y(i)&&!Ce){var g=Pt(t);if(g){if(e.outFile(g.commandLine.options))return;var h=It(g,t);t=h,u=qe(h)}}var v=re.getSourceFile(t,e.getEmitScriptTarget(B),(r=>Gt(void 0,i,e.Diagnostics.Cannot_read_file_0_Colon_1,[t,r])),Ie);if(a){var b=e.packageIdToString(a),E=be.get(b);if(E){var S=function(e,t,r,n,i,a){var o=Object.create(e);return o.fileName=r,o.path=n,o.resolvedPath=i,o.originalFileName=a,o.redirectInfo={redirectTarget:e,unredirected:t},X.set(n,G>0),Object.defineProperties(o,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(E,v,t,o,qe(t),d);return Ee.add(E.path,t),wt(S,o,u),Nt(S,i),xe.set(o,a.name),m.push(S),S}v&&(be.set(b,v),xe.set(o,a.name))}if(wt(v,o,u),v){if(X.set(o,G>0),v.fileName=t,v.path=o,v.resolvedPath=qe(t),v.originalFileName=d,v.impliedNodeFormat=x(v.resolvedPath,null==Q?void 0:Q.getPackageJsonInfoCache(),re,B),Nt(v,i),re.useCaseSensitiveFileNames()){var D=e.toFileNameLowerCase(o),T=Te.get(D);T?kt(t,T,i):Te.set(D,v)}ie=ie||v.hasNoDefaultLib&&!n,B.noResolve||(jt(v,r),Ut(v)),B.noLib||Kt(v),Ht(v),r?p.push(v):m.push(v)}return v}(t,r,n,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Nt(e,t){e&&K.add(e.path,t)}function wt(e,t,r){r?(De.set(r,e),De.set(t,e||!1)):De.set(t,e)}function Ft(e){var t=Pt(e);return t&&It(t,e)}function Pt(t){if(ge&&ge.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return Ot(t)}function It(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!re.useCaseSensitiveFileNames())}function Ot(t){void 0===ye&&(ye=new e.Map,Mt((e=>{qe(B.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>ye.set(qe(t),e.sourceFile.path)))})));var r=ye.get(qe(t));return r&&Bt(r)}function Mt(t){return e.forEachResolvedProjectReference(ge,t)}function Rt(t){if(e.isDeclarationFileName(t))return void 0===ve&&(ve=new e.Map,Mt((t=>{var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");ve.set(qe(n),!0)}else{var i=e.memoize((()=>e.getCommonSourceDirectoryOfConfig(t.commandLine,!re.useCaseSensitiveFileNames())));e.forEach(t.commandLine.fileNames,(r=>{if(!e.fileExtensionIs(r,".d.ts")&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!re.useCaseSensitiveFileNames(),i);ve.set(qe(n),r)}}))}}))),ve.get(t)}function Lt(e){return Ce&&!!Ot(e)}function Bt(e){if(he)return he.get(e)||void 0}function jt(r,n){e.forEach(r.referencedFiles,((i,a)=>{Tt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function Ut(t){var r=e.map(t.typeReferenceDirectives,(t=>e.toFileNameLowerCase(t.fileName)));if(r)for(var n=He(r,t),i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i],o=n[i],s=e.toFileNameLowerCase(a.fileName);e.setResolvedTypeReferenceDirective(t,s,o),Vt(s,o,{kind:e.FileIncludeKind.TypeReferenceDirective,file:t.path,index:i})}}function Vt(t,r,n){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferenceDirective",{directive:t,hasResolved:!!Ye,refKind:n.kind,refPath:y(n)?n.file:void 0}),((t,r,n)=>{var i=J.get(t);if(!i||!i.primary){var a=!0;if(r){if(r.isExternalLibraryImport&&G++,r.primary)Tt(r.resolvedFileName,!1,!1,r.packageId,n);else if(i){if(r.resolvedFileName!==i.resolvedFileName){var o=re.readFile(r.resolvedFileName),s=at(i.resolvedFileName);o!==s.text&&Gt(s,n,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[t,r.resolvedFileName,i.resolvedFileName])}a=!1}else Tt(r.resolvedFileName,!1,!1,r.packageId,n);r.isExternalLibraryImport&&G--}else Gt(void 0,n,e.Diagnostics.Cannot_find_type_definition_file_for_0,[t]);a&&J.set(t,r)}})(t,r,n),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function zt(t){for(var r=t.split("."),n=r[1],i=2;r[i]&&"d"!==r[i];)n+=(2===i?"/":"-")+r[i],i++;var a=e.combinePaths(ce,"__lib_node_modules_lookup_".concat(t,"__.ts")),o=e.resolveModuleName("@typescript/lib-"+n,a,{moduleResolution:e.ModuleResolutionKind.NodeJs},re,Q);return(null==o?void 0:o.resolvedModule)?o.resolvedModule.resolvedFileName:e.combinePaths(oe,t)}function Kt(t){e.forEach(t.libReferenceDirectives,((r,n)=>{var i=e.toFileNameLowerCase(r.fileName),a=e.libMap.get(i);if(a)vt(zt(a),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n});else{var o=e.removeSuffix(e.removePrefix(i,"lib."),".d.ts"),s=e.getSpellingSuggestion(o,e.libs,e.identity),c=s?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(M||(M=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n},diagnostic:c,args:[i,s]})}}))}function Wt(e){return re.getCanonicalFileName(e)}function Ht(t){var r;if(St(t),t.imports.length||t.moduleAugmentations.length){var n=A(t),i=Ye(n,t);e.Debug.assert(i.length===n.length);for(var a=(Ce?null===(r=Je(t))||void 0===r?void 0:r.commandLine.options:void 0)||B,o=0;o<n.length;o++){var s=i[o];if(e.setResolvedModule(t,n[o],s,f(t,o)),s){var c=s.isExternalLibraryImport,l=!e.resolutionExtensionIsTSOrJson(s.extension),u=c&&l,d=s.resolvedFileName;c&&G++;var p=u&&G>$,_=d&&!k(a,s)&&!a.noResolve&&o<t.imports.length&&!p&&!(l&&!e.getAllowJSCompilerOption(a))&&(e.isInJSFile(t.imports[o])||!(4194304&t.imports[o].flags));p?q.set(t.path,!0):_&&At(d,!1,!1,{kind:e.FileIncludeKind.Import,file:t.path,index:o},s.packageId),c&&G--}}}else t.resolvedModules=void 0}function Jt(t){he||(he=new e.Map);var r,n,i=C(t),a=qe(i),o=he.get(a);if(void 0!==o)return o||void 0;if(re.getParsedCommandLine){if(!(r=re.getParsedCommandLine(i)))return wt(void 0,a,void 0),void he.set(a,!1);n=e.Debug.checkDefined(r.options.configFile),e.Debug.assert(!n.path||n.path===a),wt(n,a,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(i),re.getCurrentDirectory());if(wt(n=re.getSourceFile(i,100),a,void 0),void 0===n)return void he.set(a,!1);r=e.parseJsonSourceFileConfigFileContent(n,ne,s,void 0,i)}n.fileName=i,n.path=a,n.resolvedPath=a,n.originalFileName=i;var c={commandLine:r,sourceFile:n};return he.set(a,c),r.projectReferences&&(c.references=r.projectReferences.map(Jt)),c}function $t(t,r,n,i){var a,o,s,c=y(r)?r:void 0;t&&(null===(a=K.get(t.path))||void 0===a||a.forEach(_)),r&&_(r),c&&1===(null==o?void 0:o.length)&&(o=void 0);var l=c&&b(ot,c),u=o&&e.chainDiagnosticMessages(o,e.Diagnostics.The_file_is_in_the_program_because_Colon),d=t&&e.explainIfFileIsRedirect(t),p=e.chainDiagnosticMessages.apply(void 0,Il([d?u?Il([u],d,!0):d:u,n],i||e.emptyArray,!1));return l&&v(l)?e.createFileDiagnosticFromMessageChain(l.file,l.pos,l.end-l.pos,p,s):e.createCompilerDiagnosticFromMessageChain(p,s);function _(t){(o||(o=[])).push(e.fileIncludeReasonToDiagnostics(Ke,t)),!c&&y(t)?c=t:c!==t&&(s=e.append(s,(t=>{if(y(t)){var r,n=b(ot,t);switch(t.kind){case e.FileIncludeKind.Import:r=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:r=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:r=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:r=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(t)}return v(n)?e.createFileDiagnostic(n.file,n.pos,n.end-n.pos,r):void 0}if(B.configFile){var i,a,o,s;switch(t.kind){case e.FileIncludeKind.RootFile:if(!B.configFile.configFileSpecs)return;var c=e.getNormalizedAbsolutePath(L[t.index],ce),l=e.getMatchedFileSpec(Ke,c);if(l){i=e.getTsConfigPropArrayElementValue(B.configFile,"files",l),a=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var u=e.getMatchedIncludeSpec(Ke,c);if(!u)return;i=e.getTsConfigPropArrayElementValue(B.configFile,"include",u),a=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var d=e.Debug.checkDefined(null==ge?void 0:ge[t.index]),p=h(U,ge,((e,t,r)=>e===d?{sourceFile:(null==t?void 0:t.sourceFile)||B.configFile,index:r}:void 0));if(!p)return;var _=p.sourceFile,f=p.index,m=e.firstDefined(e.getTsConfigPropArray(_,"references"),(t=>e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0));return m&&m.elements.length>f?e.createDiagnosticForNodeInSourceFile(_,m.elements[f],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!B.types)return;i=er("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=er("lib",B.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var g=e.forEachEntry(e.targetOptionDeclaration.type,((t,r)=>t===e.getEmitScriptTarget(B)?r:void 0));i=g?(o=g,(s=Qt("target"))&&e.firstDefined(s,(t=>e.isStringLiteral(t.initializer)&&t.initializer.text===o?t.initializer:void 0))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(B.configFile,i,a)}})(t))),t===r&&(r=void 0)}}function Gt(e,t,r,n){(M||(M=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function qt(e,t,r){se.add($t(e,void 0,t,r))}function Xt(t,r,n,i,a,o){for(var s=!0,c=0,l=Zt();c<l.length;c++){var u=l[c];if(e.isObjectLiteralExpression(u.initializer))for(var d=0,p=e.getPropertyAssignment(u.initializer,t);d<p.length;d++){var _=p[d].initializer;e.isArrayLiteralExpression(_)&&_.elements.length>r&&(se.add(e.createDiagnosticForNodeInSourceFile(B.configFile,_.elements[r],n,i,a,o)),s=!1)}}s&&se.add(e.createCompilerDiagnostic(n,i,a,o))}function Yt(t,r,n,i){for(var a=!0,o=0,s=Zt();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&or(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&se.add(e.createCompilerDiagnostic(n,i))}function Qt(t){var r=ar();return r&&e.getPropertyAssignment(r,t)}function Zt(){return Qt("paths")||e.emptyArray}function er(t,r){var n=ar();return n&&e.getPropertyArrayElementValue(n,t,r)}function tr(e,t,r,n){ir(!0,t,r,e,t,r,n)}function rr(e,t,r,n){ir(!1,e,void 0,t,r,n)}function nr(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||B.configFile,"references"),(t=>e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0));o&&o.elements.length>r?se.add(e.createDiagnosticForNodeInSourceFile(t||B.configFile,o.elements[r],n,i,a)):se.add(e.createCompilerDiagnostic(n,i,a))}function ir(t,r,n,i,a,o,s){var c=ar();(!c||!or(c,t,r,n,i,a,o,s))&&se.add(e.createCompilerDiagnostic(i,a,o,s))}function ar(){if(void 0===Y){Y=!1;var t=e.getTsConfigObjectLiteralExpression(B.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r<n.length;r++){var i=n[r];if(e.isObjectLiteralExpression(i.initializer)){Y=i.initializer;break}}}return Y||void 0}function or(t,r,n,i,a,o,s,c){for(var l=e.getPropertyAssignment(t,n,i),u=0,d=l;u<d.length;u++){var p=d[u];se.add(e.createDiagnosticForNodeInSourceFile(B.configFile,r?p.name:p.initializer,a,o,s,c))}return!!l.length}function sr(e,t){de.set(qe(e),!0),se.add(t)}function cr(t,r){return 0===e.comparePaths(t,r,ce,!re.useCaseSensitiveFileNames())}function lr(){return re.getSymlinkCache?re.getSymlinkCache():(w||(w=e.createSymlinkCache(ce,Wt)),N&&J&&!w.hasProcessedResolutions()&&w.setSymlinksFromResolutions(N,J),w)}},e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},e.handleNoEmitOptions=E,e.filterSemanticDiagnostics=S,e.parseConfigHostFromCompilerHostLike=D,e.createPrependNodes=T,e.resolveProjectReferencePath=C,e.getResolutionDiagnostic=k,e.getModuleNameStringLiteralAt=N}(Fl),(e=>{function t(e,t,r,n,i,a){var o=[],s=e.emit(t,((e,t,r)=>{o.push({name:e,writeByteOrderMark:r,text:t})}),n,r,i,a),c=s.emitSkipped,l=s.diagnostics,u=s.exportedModulesFromDeclarationEmit;return{outputFiles:o,emitSkipped:c,diagnostics:l,exportedModulesFromDeclarationEmit:u}}e.getFileEmitOutput=t,(r=>{var n=0;function i(){return function t(r,i,o){var s=0,c={id:n++,version:()=>s,clone:()=>t(new e.Map(r),new e.Map(i),o&&new e.Set(o)),forEach:e=>r.forEach(e),getKeys:e=>i.get(e),getValues:e=>r.get(e),hasKey:e=>r.has(e),keys:()=>r.keys(),deletedKeys:()=>o,deleteKey(t){(o||(o=new e.Set)).add(t);var n=r.get(t);return!!n&&(n.forEach((e=>a(i,e,t))),r.delete(t),s++,!0)},set(t,n){var l=!!(null==o?void 0:o.delete(t)),u=r.get(t);return r.set(t,n),null==u||u.forEach((e=>{n.has(e)||(l=!0,a(i,e,t))})),n.forEach((r=>{(null==u?void 0:u.has(r))||(l=!0,((t,r,n)=>{var i=t.get(r);i||(i=new e.Set,t.set(r,i)),i.add(n)})(i,r,t))})),l&&s++,c}};return c}(new e.Map,new e.Map,void 0)}function a(e,t,r,n){void 0===n&&(n=!0);var i=e.get(t);return!!(null==i?void 0:i.delete(r))&&(n&&!i.size&&e.delete(t),!0)}function o(t){return e.mapDefined(t.declarations,(t=>{var r;return null===(r=e.getSourceFileOfNode(t))||void 0===r?void 0:r.resolvedPath}))}function s(e,t){var r=e.getSymbolAtLocation(t);return r&&o(r)}function c(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function l(t,r,n){var i;if(r.imports&&r.imports.length>0)for(var a=t.getTypeChecker(),o=0,l=r.imports;o<l.length;o++){var u=s(a,l[o]);null==u||u.forEach(S)}var d=e.getDirectoryPath(r.resolvedPath);if(r.referencedFiles&&r.referencedFiles.length>0)for(var p=0,_=r.referencedFiles;p<_.length;p++){var f=_[p];S(c(t,f.fileName,d,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((e=>{if(e){var r=e.resolvedFileName;S(c(t,r,d,n))}})),r.moduleAugmentations.length){a=t.getTypeChecker();for(var m=0,g=r.moduleAugmentations;m<g.length;m++){var h=g[m];if(e.isStringLiteral(h)){var y=a.getSymbolAtLocation(h);y&&E(y)}}}for(var v=0,b=t.getTypeChecker().getAmbientModules();v<b.length;v++){var x=b[v];x.declarations&&x.declarations.length>1&&E(x)}return i;function E(t){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n],o=e.getSourceFileOfNode(a);o&&o!==r&&S(o.resolvedPath)}}function S(t){(i||(i=new e.Set)).add(t)}}function u(e,t){return t&&!t.referencedMap==!e}function d(e,t){t.forEach(((t,r)=>p(e,t,r)))}function p(e,t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.add(r)}function _(r,n,i,a,s,c,l,u){if(void 0===u&&(u=r.useFileVersionAsSignature),e.Debug.assert(!!i),e.Debug.assert(!l||!!r.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),r.hasCalledUpdateShapeSignature.has(i.resolvedPath)||a.has(i.resolvedPath))return!1;var d=r.fileInfos.get(i.resolvedPath);if(!d)return e.Debug.fail();var p,_=d.signature;if(!i.isDeclarationFile&&!u){var f=t(n,i,!0,s,void 0,!0),m=e.firstOrUndefined(f.outputFiles);m&&(e.Debug.assert(e.fileExtensionIsOneOf(m.name,[".d.ts",".d.mts",".d.cts"]),"File extension for signature expected to be dts",(()=>"Found: ".concat(e.getAnyExtensionFromPath(m.name)," for ").concat(m.name,":: All output files: ").concat(JSON.stringify(f.outputFiles.map((e=>e.name)))))),p=(c||e.generateDjb2Hash)(m.text),l&&p!==_&&((t,r,n)=>{var i;r?(r.forEach((t=>{var r;(null==(r=o(t))?void 0:r.length)&&(i||(i=new e.Set),r.forEach((e=>i.add(e))))})),i?n.set(t.resolvedPath,i):n.deleteKey(t.resolvedPath)):n.deleteKey(t.resolvedPath)})(i,f.exportedModulesFromDeclarationEmit,l))}if(void 0===p&&(p=i.version,l&&p!==_)){var g=r.referencedMap?r.referencedMap.getValues(i.resolvedPath):void 0;g?l.set(i.resolvedPath,g):l.deleteKey(i.resolvedPath)}return a.set(i.resolvedPath,p),p!==_}function f(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map((e=>e.fileName))}return t.allFileNames}function m(t,r){var n=t.referencedMap.getKeys(r);return n?e.arrayFrom(n.keys()):[]}function g(t){return(t=>e.some(t.moduleAugmentations,(t=>e.isGlobalScopeAugmentation(t.parent))))(t)||!e.isExternalOrCommonJsModule(t)&&!e.isJsonSourceFile(t)&&!(t=>{for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(!e.isModuleWithStringLiteralName(i))return!1}return!0})(t)}function h(t,r,n){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;n&&c(n);for(var a=0,o=r.getSourceFiles();a<o.length;a++){var s=o[a];s!==n&&c(s)}return t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,t.allFilesExcludingDefaultLibraryFile;function c(e){r.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}function y(t,r,n){var i=r.getCompilerOptions();return i&&e.outFile(i)?[n]:h(t,r,n)}function v(t,r,n,i,a,o,s){if(g(n))return h(t,r,n);var c=r.getCompilerOptions();if(c&&(c.isolatedModules||e.outFile(c)))return[n];var l=new e.Map;l.set(n.resolvedPath,n);for(var u=m(t,n.resolvedPath);u.length>0;){var d=u.pop();if(!l.has(d)){var p=r.getSourceFileByPath(d);l.set(d,p),p&&_(t,r,p,i,a,o,s)&&u.push.apply(u,m(t,p.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(e=>e)))}r.createManyToManyPathMap=i,r.canReuseOldState=u,r.create=(t,r,n,a)=>{var o=new e.Map,s=t.getCompilerOptions().module!==e.ModuleKind.None?i():void 0,c=s?i():void 0,d=new e.Set,p=u(s,n);t.getTypeChecker();for(var _=0,f=t.getSourceFiles();_<f.length;_++){var m=f[_],h=e.Debug.checkDefined(m.version,"Program intended to be used with Builder should have source files with versions set"),y=p?n.fileInfos.get(m.resolvedPath):void 0;if(s){var v=l(t,m,r);if(v&&s.set(m.resolvedPath,v),p){var b=n.exportedModulesMap.getValues(m.resolvedPath);b&&c.set(m.resolvedPath,b)}}o.set(m.resolvedPath,{version:h,signature:y&&y.signature,affectsGlobalScope:g(m)||void 0,impliedFormat:m.impliedNodeFormat})}return{fileInfos:o,referencedMap:s,exportedModulesMap:c,hasCalledUpdateShapeSignature:d,useFileVersionAsSignature:!a&&!p}},r.releaseCache=e=>{e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},r.clone=t=>{var r,n;return{fileInfos:new e.Map(t.fileInfos),referencedMap:null===(r=t.referencedMap)||void 0===r?void 0:r.clone(),exportedModulesMap:null===(n=t.exportedModulesMap)||void 0===n?void 0:n.clone(),hasCalledUpdateShapeSignature:new e.Set(t.hasCalledUpdateShapeSignature),useFileVersionAsSignature:t.useFileVersionAsSignature}},r.getFilesAffectedBy=(t,r,n,i,a,o,s)=>{var c=o||new e.Map,l=r.getSourceFileByPath(n);if(!l)return e.emptyArray;if(!_(t,r,l,c,i,a,s))return[l];var u=(t.referencedMap?v:y)(t,r,l,c,i,a,s);return o||d(t,c),u},r.updateSignaturesFromCache=d,r.updateSignatureOfFile=p,r.updateShapeSignature=_,r.updateExportedFilesMapFromCache=(t,r)=>{var n;if(r){e.Debug.assert(!!t.exportedModulesMap);var i=r.id,a=r.version();if(t.previousCache){if(t.previousCache.id===i&&t.previousCache.version===a)return;t.previousCache.id=i,t.previousCache.version=a}else t.previousCache={id:i,version:a};null===(n=r.deletedKeys())||void 0===n||n.forEach((e=>t.exportedModulesMap.deleteKey(e))),r.forEach(((e,r)=>t.exportedModulesMap.set(r,e)))}},r.getAllDependencies=(t,r,n)=>{var i=r.getCompilerOptions();if(e.outFile(i))return f(t,r);if(!t.referencedMap||g(n))return f(t,r);for(var a=new e.Set,o=[n.resolvedPath];o.length;){var s=o.pop();if(!a.has(s)){a.add(s);var c=t.referencedMap.getValues(s);if(c)for(var l=c.keys(),u=l.next();!u.done;u=l.next())o.push(u.value)}}return e.arrayFrom(e.mapDefinedIterator(a.keys(),(e=>{var t,n;return null!==(n=null===(t=r.getSourceFileByPath(e))||void 0===t?void 0:t.fileName)&&void 0!==n?n:e})))},r.getReferencedByPaths=m,r.getAllFilesExcludingDefaultLibraryFile=h})(e.BuilderState||(e.BuilderState={}))})(Fl),(e=>{var t,r;function n(e,t,r){var n=e.file;return Ol(Ol({},e),{file:n?t.getSourceFileByPath(r(n)):void 0})}function i(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.resolvedPath))}function a(t,r,n){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,s=t.affectedFilesIndex;s<i.length;){var c=i[s];if(!a.has(c.resolvedPath))return t.affectedFilesIndex=s,o(t,c,r,n),c;s++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(t,t.currentAffectedFilesSignatures),t.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(t,t.currentAffectedFilesExportedModulesMap),t.affectedFiles=void 0}var l=t.changedFilesSet.keys().next();if(l.done)return;var u=e.Debug.checkDefined(t.program),d=u.getCompilerOptions();if(e.outFile(d))return e.Debug.assert(!t.semanticDiagnosticsPerFile),u;t.currentAffectedFilesSignatures||(t.currentAffectedFilesSignatures=new e.Map),t.exportedModulesMap&&(t.currentAffectedFilesExportedModulesMap||(t.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),t.affectedFiles=e.BuilderState.getFilesAffectedBy(t,u,l.value,r,n,t.currentAffectedFilesSignatures,t.currentAffectedFilesExportedModulesMap),t.currentChangedFilePath=l.value,t.affectedFilesIndex=0,t.seenAffectedFiles||(t.seenAffectedFiles=new e.Set)}}function o(t,r,n,i){var a;if(s(t,r.resolvedPath),t.allFilesExcludingDefaultLibraryFile!==t.affectedFiles)e.Debug.assert(t.hasCalledUpdateShapeSignature.has(r.resolvedPath)||(null===(a=t.currentAffectedFilesSignatures)||void 0===a?void 0:a.has(r.resolvedPath)),"Signature not updated for affected file: ".concat(r.fileName)),t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||((t,r,n)=>{var i,a;if(t.exportedModulesMap&&t.changedFilesSet.has(r.resolvedPath)&&c(t,r.resolvedPath)){if(t.compilerOptions.isolatedModules){var o=new e.Map;o.set(r.resolvedPath,!0);for(var s=e.BuilderState.getReferencedByPaths(t,r.resolvedPath);s.length>0;){var u=s.pop();if(!o.has(u)&&(o.set(u,!0),n(t,u),c(t,u))){var d=e.Debug.checkDefined(t.program).getSourceFileByPath(u);s.push.apply(s,e.BuilderState.getReferencedByPaths(t,d.resolvedPath))}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var p=new e.Set;null===(i=t.currentAffectedFilesExportedModulesMap.getKeys(r.resolvedPath))||void 0===i||i.forEach((e=>l(t,e,p,n))),null===(a=t.exportedModulesMap.getKeys(r.resolvedPath))||void 0===a||a.forEach((e=>{var r;return!t.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))&&l(t,e,p,n)}))}})(t,r,((t,r)=>((t,r,n,i)=>{if(s(t,r),!t.changedFilesSet.has(r)){var a=e.Debug.checkDefined(t.program),o=a.getSourceFileByPath(r);o&&(e.BuilderState.updateShapeSignature(t,a,o,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(t.compilerOptions)&&v(t,r,0))}})(t,r,n,i)));else{if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var o=e.Debug.checkDefined(t.program),u=o.getCompilerOptions();e.forEach(o.getSourceFiles(),(r=>o.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,u,o)&&s(t,r.resolvedPath)))}e.BuilderState.updateShapeSignature(t,e.Debug.checkDefined(t.program),r,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap)}}function s(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function c(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function l(e,t,r,n){var i;null===(i=e.referencedMap.getKeys(t))||void 0===i||i.forEach((t=>u(e,t,r,n)))}function u(t,r,n,i){var a,o,s;e.tryAddToSet(n,r)&&(i(t,r),e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),null===(a=t.currentAffectedFilesExportedModulesMap.getKeys(r))||void 0===a||a.forEach((e=>u(t,e,n,i))),null===(o=t.exportedModulesMap.getKeys(r))||void 0===o||o.forEach((e=>{var r;return!t.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))&&u(t,e,n,i)})),null===(s=t.referencedMap.getKeys(r))||void 0===s||s.forEach((e=>!n.has(e)&&i(t,e))))}function d(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?(t.affectedFilesPendingEmitIndex++,t.buildInfoEmitPending=!0):t.affectedFilesIndex++)}function p(e,t,r){return d(e,r),{result:t,affected:r}}function _(e,t,r,n,i,a){return d(e,r,n,i,a),{result:t,affected:r}}function f(t,r,n){return e.concatenate(((t,r,n)=>{var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnostics(o,t.compilerOptions)})(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function m(t,r){for(var n,i=e.getOptionsNameMap().optionsNameMap,a=0,o=e.getOwnKeys(t).sort(e.compareStringsCaseSensitive);a<o.length;a++){var s=o[a],c=s.toLowerCase(),l=i.get(c);((null==l?void 0:l.affectsEmit)||(null==l?void 0:l.affectsSemanticDiagnostics)||"strict"===c||"skiplibcheck"===c||"skipdefaultlibcheck"===c)&&((n||(n={}))[s]=g(l,t[s],r))}return n}function g(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function h(t,r){return e.Debug.assert(!!t.length),t.map((e=>{var t=y(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((e=>y(e,r))):[]:void 0,t}))}function y(e,t){var r=e.file;return Ol(Ol({},e),{file:r?t(r.resolvedPath):void 0})}function v(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function b(t){return e.isString(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(t.signature)?t:{version:t.version,signature:!1===t.signature?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function x(t,r){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:n,getProgramOrUndefined:()=>t().program,releaseProgram:()=>t().program=void 0,getCompilerOptions:()=>t().compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>r,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,a)=>n().emit(e,t,r,i,a),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:e.notImplemented,getCurrentDirectory:()=>n().getCurrentDirectory(),close:e.noop};function n(){return e.Debug.checkDefined(t().program)}}(r=e.BuilderFileEmit||(e.BuilderFileEmit={}))[r.DtsOnly=0]="DtsOnly",r[r.Full=1]="Full",(e=>{e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=(t,r,n,i,a,o)=>{var s,c,l;return void 0===t?(e.Debug.assert(void 0===r),s=n,l=i,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(t)?(l=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,l=n,a=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=(r,o)=>{var s=o.newProgram,c=o.host,l=o.oldProgram,u=o.configFileParsingDiagnostics,g=l&&l.getState();if(g&&s===g.program&&u===s.getConfigFileParsingDiagnostics())return s=void 0,g=void 0,l;var y,b=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),E=e.maybeBind(c,c.createHash),S=((t,r,i,a)=>{var o=e.BuilderState.create(t,r,i,a);o.program=t;var s=t.getCompilerOptions();o.compilerOptions=s,e.outFile(s)||(o.semanticDiagnosticsPerFile=new e.Map),o.changedFilesSet=new e.Set;var c=e.BuilderState.canReuseOldState(o.referencedMap,i),l=c?i.compilerOptions:void 0,u=c&&i.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(s,l);if(c){if(!i.currentChangedFilePath){var d=i.currentAffectedFilesSignatures;e.Debug.assert(!(i.affectedFiles||d&&d.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var p=i.changedFilesSet;u&&e.Debug.assert(!p||!e.forEachKey(p,(e=>i.semanticDiagnosticsPerFile.has(e))),"Semantic diagnostics shouldnt be available for changed files"),null==p||p.forEach((e=>o.changedFilesSet.add(e))),!e.outFile(s)&&i.affectedFilesPendingEmit&&(o.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),o.affectedFilesPendingEmitKind=i.affectedFilesPendingEmitKind&&new e.Map(i.affectedFilesPendingEmitKind),o.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,o.seenAffectedFiles=new e.Set)}var _=o.referencedMap,f=c?i.referencedMap:void 0,m=u&&!s.skipLibCheck==!l.skipLibCheck,g=m&&!s.skipDefaultLibCheck==!l.skipDefaultLibCheck;return o.fileInfos.forEach(((a,s)=>{var l,d,p,h;if(!c||!(l=i.fileInfos.get(s))||l.version!==a.version||(p=d=_&&_.getValues(s))!==(h=f&&f.getValues(s))&&(void 0===p||void 0===h||p.size!==h.size||e.forEachKey(p,(e=>!h.has(e))))||d&&e.forEachKey(d,(e=>!o.fileInfos.has(e)&&i.fileInfos.has(e))))o.changedFilesSet.add(s);else if(u){var y=t.getSourceFileByPath(s);if(y.isDeclarationFile&&!m)return;if(y.hasNoDefaultLib&&!g)return;var v=i.semanticDiagnosticsPerFile.get(s);v&&(o.semanticDiagnosticsPerFile.set(s,i.hasReusableDiagnostic?((t,r,i)=>{if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map((e=>{var t=n(e,r,o);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var i=e.relatedInformation;return t.relatedInformation=i?i.length?i.map((e=>n(e,r,o))):[]:void 0,t}));function o(t){return e.toPath(t,a,i)}})(v,t,r):v),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new e.Set),o.semanticDiagnosticsFromOldState.add(s))}})),c&&e.forEachEntry(i.fileInfos,((e,t)=>e.affectsGlobalScope&&!o.fileInfos.has(t)))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(o,t,void 0).forEach((e=>o.changedFilesSet.add(e.resolvedPath))):l&&!e.outFile(s)&&e.compilerOptionsAffectEmit(s,l)&&(t.getSourceFiles().forEach((e=>v(o,e.resolvedPath,1))),e.Debug.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new e.Set),c&&e.forEachEntry(i.fileInfos,((e,t)=>{o.fileInfos.has(t)&&o.fileInfos.get(t).impliedFormat!==e.impliedFormat&&o.changedFilesSet.add(t)})),o.buildInfoEmitPending=!!o.changedFilesSet.size,o})(s,b,g,c.disableUseFileVersionAsSignature);s.getProgramBuildInfo=()=>((t,r)=>{if(!e.outFile(t.compilerOptions)){var n,i,a,o,s,c,l=e.Debug.checkDefined(t.program).getCurrentDirectory(),u=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),l)),d=[],p=new e.Map,_=e.arrayFrom(t.fileInfos.entries(),(r=>{var n=r[0],i=r[1],a=T(n);e.Debug.assert(d[a-1]===D(n));var o=t.currentAffectedFilesSignatures&&t.currentAffectedFilesSignatures.get(n),s=null!=o?o:i.signature;return i.version===s?i.affectsGlobalScope?{version:i.version,signature:void 0,affectsGlobalScope:!0,impliedFormat:i.impliedFormat}:i.version:void 0!==s?void 0===o?i:{version:i.version,signature:o,affectsGlobalScope:i.affectsGlobalScope,impliedFormat:i.impliedFormat}:{version:i.version,signature:!1,affectsGlobalScope:i.affectsGlobalScope,impliedFormat:i.impliedFormat}}));if(t.referencedMap&&(a=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((e=>[T(e),C(t.referencedMap.getValues(e))]))),t.exportedModulesMap&&(o=e.mapDefined(e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(e=>{var r;if(t.currentAffectedFilesExportedModulesMap){if(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))return;var n=t.currentAffectedFilesExportedModulesMap.getValues(e);if(n)return[T(e),C(n)]}return[T(e),C(t.exportedModulesMap.getValues(e))]}))),t.semanticDiagnosticsPerFile)for(var f=0,g=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);f<g.length;f++){var y=g[f],v=t.semanticDiagnosticsPerFile.get(y);(s||(s=[])).push(v.length?[T(y),t.hasReusableDiagnostic?v:h(v,D)]:T(y))}if(t.affectedFilesPendingEmit)for(var b=new e.Set,x=0,E=t.affectedFilesPendingEmit.slice(t.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);x<E.length;x++){var S=E[x];e.tryAddToSet(b,S)&&(c||(c=[])).push([T(S),t.affectedFilesPendingEmitKind.get(S)])}return{fileNames:d,fileInfos:_,options:m(t.compilerOptions,(t=>D(e.getNormalizedAbsolutePath(t,l)))),fileIdsList:n,referencedMap:a,exportedModulesMap:o,semanticDiagnosticsPerFile:s,affectedFilesPendingEmit:c}}function D(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(u,t,r))}function T(e){var t=p.get(e);return void 0===t&&(d.push(D(e)),p.set(e,t=d.length)),t}function C(t){var r=e.arrayFrom(t.keys(),T).sort(e.compareValues),a=r.join(),o=null==i?void 0:i.get(a);return void 0===o&&((n||(n=[])).push(r),(i||(i=new e.Map)).set(a,o=n.length)),o}})(S,b),s=void 0,l=void 0,g=void 0;var D=()=>S,T=x(D,u);return T.getState=D,T.backupState=()=>{e.Debug.assert(void 0===y),y=(t=>{var r,n=e.BuilderState.clone(t);return n.semanticDiagnosticsPerFile=t.semanticDiagnosticsPerFile&&new e.Map(t.semanticDiagnosticsPerFile),n.changedFilesSet=new e.Set(t.changedFilesSet),n.affectedFiles=t.affectedFiles,n.affectedFilesIndex=t.affectedFilesIndex,n.currentChangedFilePath=t.currentChangedFilePath,n.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures&&new e.Map(t.currentAffectedFilesSignatures),n.currentAffectedFilesExportedModulesMap=null===(r=t.currentAffectedFilesExportedModulesMap)||void 0===r?void 0:r.clone(),n.seenAffectedFiles=t.seenAffectedFiles&&new e.Set(t.seenAffectedFiles),n.cleanedDiagnosticsOfLibFiles=t.cleanedDiagnosticsOfLibFiles,n.semanticDiagnosticsFromOldState=t.semanticDiagnosticsFromOldState&&new e.Set(t.semanticDiagnosticsFromOldState),n.program=t.program,n.compilerOptions=t.compilerOptions,n.affectedFilesPendingEmit=t.affectedFilesPendingEmit&&t.affectedFilesPendingEmit.slice(),n.affectedFilesPendingEmitKind=t.affectedFilesPendingEmitKind&&new e.Map(t.affectedFilesPendingEmitKind),n.affectedFilesPendingEmitIndex=t.affectedFilesPendingEmitIndex,n.seenEmittedFiles=t.seenEmittedFiles&&new e.Map(t.seenEmittedFiles),n.programEmitComplete=t.programEmitComplete,n})(S)},T.restoreState=()=>{S=e.Debug.checkDefined(y),y=void 0},T.getAllDependencies=t=>e.BuilderState.getAllDependencies(S,e.Debug.checkDefined(S.program),t),T.getSemanticDiagnostics=(t,r)=>{i(S,t);var n,a=e.Debug.checkDefined(S.program).getCompilerOptions();if(e.outFile(a))return e.Debug.assert(!S.semanticDiagnosticsPerFile),e.Debug.checkDefined(S.program).getSemanticDiagnostics(t,r);if(t)return f(S,t,r);for(;k(r););for(var o=0,s=e.Debug.checkDefined(S.program).getSourceFiles();o<s.length;o++){var c=s[o];n=e.addRange(n,f(S,c,r))}return n||e.emptyArray},T.emit=(n,a,o,s,l)=>{var u,d,p,_=!1;r===t.EmitAndSemanticDiagnosticsBuilderProgram||n||e.outFile(S.compilerOptions)||S.compilerOptions.noEmit||!S.compilerOptions.noEmitOnError||(_=!0,u=S.affectedFilesPendingEmit&&S.affectedFilesPendingEmit.slice(),d=S.affectedFilesPendingEmitKind&&new e.Map(S.affectedFilesPendingEmitKind),p=S.affectedFilesPendingEmitIndex),r===t.EmitAndSemanticDiagnosticsBuilderProgram&&i(S,n);var f=e.handleNoEmitOptions(T,n,a,o);if(f)return f;if(_&&(S.affectedFilesPendingEmit=u,S.affectedFilesPendingEmitKind=d,S.affectedFilesPendingEmitIndex=p),!n&&r===t.EmitAndSemanticDiagnosticsBuilderProgram){for(var m=[],g=!1,h=void 0,y=[],v=void 0;v=C(a,o,s,l);)g=g||v.result.emitSkipped,h=e.addRange(h,v.result.diagnostics),y=e.addRange(y,v.result.emittedFiles),m=e.addRange(m,v.result.sourceMaps);return{emitSkipped:g,diagnostics:h||e.emptyArray,emittedFiles:y,sourceMaps:m}}return e.Debug.checkDefined(S.program).emit(n,a||e.maybeBind(c,c.writeFile),o,s,l)},T.releaseProgram=()=>{!(t=>{e.BuilderState.releaseCache(t),t.program=void 0})(S),y=void 0},r===t.SemanticDiagnosticsBuilderProgram?T.getSemanticDiagnosticsOfNextAffectedFile=k:r===t.EmitAndSemanticDiagnosticsBuilderProgram?(T.getSemanticDiagnosticsOfNextAffectedFile=k,T.emitNextAffectedFile=C,T.emitBuildInfo=(t,r)=>{if(S.buildInfoEmitPending){var n=e.Debug.checkDefined(S.program).emitBuildInfo(t||e.maybeBind(c,c.writeFile),r);return S.buildInfoEmitPending=!1,n}return e.emitSkippedWithNoDiagnostics}):e.notImplemented(),T;function C(t,r,n,i){var o=a(S,r,E),s=1,l=!1;if(!o)if(e.outFile(S.compilerOptions)){var u=e.Debug.checkDefined(S.program);if(S.programEmitComplete)return;o=u}else{var d=(t=>{var r=t.affectedFilesPendingEmit;if(r){for(var n=t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map),i=t.affectedFilesPendingEmitIndex;i<r.length;i++){var a=e.Debug.checkDefined(t.program).getSourceFileByPath(r[i]);if(a){var o=n.get(a.resolvedPath),s=e.Debug.checkDefined(e.Debug.checkDefined(t.affectedFilesPendingEmitKind).get(a.resolvedPath));if(void 0===o||o<s)return t.affectedFilesPendingEmitIndex=i,{affectedFile:a,emitKind:s}}}t.affectedFilesPendingEmit=void 0,t.affectedFilesPendingEmitKind=void 0,t.affectedFilesPendingEmitIndex=void 0}})(S);if(!d){if(!S.buildInfoEmitPending)return;var p=e.Debug.checkDefined(S.program);return _(S,p.emitBuildInfo(t||e.maybeBind(c,c.writeFile),r),p,1,!1,!0)}o=d.affectedFile,s=d.emitKind,l=!0}return _(S,e.Debug.checkDefined(S.program).emit(o===S.program?void 0:o,t||e.maybeBind(c,c.writeFile),r,n||0===s,i),o,s,l)}function k(e,n){for(;;){var i=a(S,e,E);if(!i)return;if(i===S.program)return p(S,S.program.getSemanticDiagnostics(void 0,e),i);if((r===t.EmitAndSemanticDiagnosticsBuilderProgram||S.compilerOptions.noEmit||S.compilerOptions.noEmitOnError)&&v(S,i.resolvedPath,1),!n||!n(i))return p(S,f(S,i,e),i);d(S,i)}}},e.toBuilderStateFileInfo=b,e.createBuildProgramUsingProgramBuildInfo=(t,r,n)=>{var i,a=e.getDirectoryPath(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory())),o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),s=t.fileNames.map((t=>e.toPath(t,a,o))),c=null===(i=t.fileIdsList)||void 0===i?void 0:i.map((t=>new e.Set(t.map(d)))),l=new e.Map;t.fileInfos.forEach(((e,t)=>l.set(d(t+1),b(e))));var u={fileInfos:l,compilerOptions:t.options?e.convertToOptionsWithAbsolutePaths(t.options,(t=>e.getNormalizedAbsolutePath(t,a))):{},referencedMap:p(t.referencedMap),exportedModulesMap:p(t.exportedModulesMap),semanticDiagnosticsPerFile:t.semanticDiagnosticsPerFile&&e.arrayToMap(t.semanticDiagnosticsPerFile,(t=>d(e.isNumber(t)?t:t[0])),(t=>e.isNumber(t)?e.emptyArray:t[1])),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(t.affectedFilesPendingEmit,(e=>d(e[0]))),affectedFilesPendingEmitKind:t.affectedFilesPendingEmit&&e.arrayToMap(t.affectedFilesPendingEmit,(e=>d(e[0])),(e=>e[1])),affectedFilesPendingEmitIndex:t.affectedFilesPendingEmit&&0};return{getState:()=>u,backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:()=>u.compilerOptions,getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function d(e){return s[e-1]}function p(t){if(t){var r=e.BuilderState.createManyToManyPathMap();return t.forEach((e=>{var t=e[0],n=e[1];return r.set(d(t),c[n-1])})),r}}},e.createRedirectedBuilderProgram=x})(Fl),(e=>{e.createSemanticDiagnosticsBuilderProgram=(t,r,n,i,a,o)=>e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o)),e.createEmitAndSemanticDiagnosticsBuilderProgram=(t,r,n,i,a,o)=>e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o)),e.createAbstractBuilder=(t,r,n,i,a,o)=>{var s=e.getBuilderCreationParameters(t,r,n,i,a,o),c=s.newProgram,l=s.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram((()=>({program:c,compilerOptions:c.getCompilerOptions()})),l)}})(Fl),(e=>{function t(t){return e.endsWith(t,"/node_modules/.staging")?e.removeSuffix(t,"/.staging"):e.some(e.ignoredPaths,(r=>e.stringContains(t,r)))?void 0:t}function r(t){var r=e.getRootLength(t);if(t.length===r)return!1;var n=t.indexOf(e.directorySeparator,r);if(-1===n)return!1;var i=t.substring(r,n+1),a=r>1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}function n(e){var t,r;return!(!(null===(t=e.resolvedModule)||void 0===t?void 0:t.originalPath)&&!(null===(r=e.resolvedTypeReferenceDirective)||void 0===r?void 0:r.originalPath))}e.removeIgnoredPath=t,e.canWatchDirectory=r,e.createResolutionCache=(i,a,o)=>{var s,c,l,u,d,p,_=e.createMultiMap(),f=[],m=e.createMultiMap(),g=!1,h=e.memoize((()=>i.getCurrentDirectory())),y=i.getCachedDirectoryStructureHost(),v=new e.Map,b=e.createCacheWithRedirects(),x=e.createCacheWithRedirects(),E=e.createModuleResolutionCache(h(),i.getCanonicalFileName,void 0,b,x),S=new e.Map,D=e.createCacheWithRedirects(),T=e.createTypeReferenceDirectiveResolutionCache(h(),i.getCanonicalFileName,void 0,E.getPackageJsonInfoCache(),D),C=[".ts",".tsx",".js",".jsx",".json"],k=new e.Map,A=new e.Map,N=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,h())),w=N&&i.toPath(N),F=void 0!==w?w.split(e.directorySeparator).length:0,P=new e.Map;return{getModuleResolutionCache:()=>E,startRecordingFilesWithChangedResolutions(){s=[]},finishRecordingFilesWithChangedResolutions(){var e=s;return s=void 0,e},startCachingPerDirectoryResolution:L,finishCachingPerDirectoryResolution(){l=void 0,L(),A.forEach(((e,t)=>{0===e.refCount&&(A.delete(t),e.watcher.close())})),g=!1},resolveModuleNames:(t,r,n,i,a)=>U({names:t,containingFile:r,redirectedReference:i,cache:v,perDirectoryCacheWithRedirects:b,loader:B,getResolutionWithResolvedFileName:I,shouldRetryResolution:t=>!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension),reusedNames:n,logChanges:o,containingSourceFile:a}),getResolvedModuleWithFailedLookupLocationsFromCache(e,t,r){var n=v.get(i.toPath(t));return n?n.get(e,r):void 0},resolveTypeReferenceDirectives:(e,t,r)=>U({names:e,containingFile:t,redirectedReference:r,cache:S,perDirectoryCacheWithRedirects:D,loader:j,getResolutionWithResolvedFileName:O,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective}),removeResolutionsFromProjectReferenceRedirects(t){if(e.fileExtensionIs(t,".json")){var r=i.getCurrentProgram();if(r){var n=r.getResolvedProjectReferenceByPath(t);n&&n.commandLine.fileNames.forEach((e=>Z(i.toPath(e))))}}},removeResolutionsOfFile:Z,hasChangedAutomaticTypeDirectiveNames:()=>g,invalidateResolutionOfFile(t){Z(t);var r=g;ee(m.get(t),e.returnTrue)&&g&&!r&&i.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:re,setFilesWithInvalidatedNonRelativeUnresolvedImports(t){e.Debug.assert(l===t||void 0===l),l=t},createHasInvalidatedResolution(t){if(re(),t)return c=void 0,e.returnTrue;var r=c;return c=void 0,e=>!!r&&r.has(e)||R(e)},isFileWithInvalidatedNonRelativeUnresolvedImports:R,updateTypeRootsWatch(){var t=i.getCompilationSettings();if(t.types)ie();else{var r=e.getEffectiveTypeRoots(t,{directoryExists:oe,getCurrentDirectory:h});r?e.mutateMap(P,e.arrayToMap(r,(e=>i.toPath(e))),{createNewValue:ae,onDeleteValue:e.closeFileWatcher}):ie()}},closeTypeRootsWatch:ie,clear(){e.clearMap(A,e.closeFileWatcherOf),k.clear(),_.clear(),ie(),v.clear(),S.clear(),m.clear(),f.length=0,u=void 0,d=void 0,p=void 0,L(),g=!1}};function I(e){return e.resolvedModule}function O(e){return e.resolvedTypeReferenceDirective}function M(t,r){return!(void 0===t||r.length<=t.length)&&e.startsWith(r,t)&&r[t.length]===e.directorySeparator}function R(e){if(!l)return!1;var t=l.get(e);return!!t&&!!t.length}function L(){E.clear(),T.clear(),_.forEach($),_.clear()}function B(t,r,n,a,o){var s,c=e.resolveModuleName(t,r,n,a,E,o);if(!i.getGlobalCache)return c;var l=i.getGlobalCache();if(!(void 0===l||e.isExternalModuleNameRelative(t)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var u=e.loadModuleFromGlobalCache(e.Debug.checkDefined(i.globalCacheResolutionModuleName)(t),i.projectName,n,a,l,E),d=u.resolvedModule,p=u.failedLookupLocations;if(d)return c.resolvedModule=d,(s=c.failedLookupLocations).push.apply(s,p),c}return c}function j(t,r,n,i,a){return e.resolveTypeReferenceDirective(t,r,n,i,a,T)}function U(t){var r,a,o,c=t.names,l=t.containingFile,u=t.redirectedReference,d=t.cache,p=t.perDirectoryCacheWithRedirects,_=t.loader,f=t.getResolutionWithResolvedFileName,m=t.shouldRetryResolution,g=t.reusedNames,h=t.logChanges,y=t.containingSourceFile,v=i.toPath(l),b=d.get(v)||d.set(v,e.createModeAwareCache()).get(v),x=e.getDirectoryPath(v),E=p.getOrCreateMapOfCacheRedirects(u),S=E.get(x);S||(S=e.createModeAwareCache(),E.set(x,S));for(var D=[],T=i.getCompilationSettings(),C=h&&R(v),k=i.getCurrentProgram(),A=k&&k.getResolvedProjectReferenceToRedirect(l),N=A?!u||u.sourceFile.path!==A.sourceFile.path:!!u,w=e.createModeAwareCache(),F=0,P=0,I=c;P<I.length;P++){var O=I[P],M=y?e.getModeForResolutionAtIndex(y,F):void 0;F++;var L=b.get(O,M);if(!w.has(O,M)&&N||!L||L.isInvalidated||C&&!e.isExternalModuleNameRelative(O)&&m(L)){var j=L,U=S.get(O,M);if(U){L=U;var V=(null===(r=i.getCompilerHost)||void 0===r?void 0:r.call(i))||i;if(e.isTraceEnabled(T,V)){var z=f(L);e.trace(V,_===B?(null==z?void 0:z.resolvedFileName)?z.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:(null==z?void 0:z.resolvedFileName)?z.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,O,l,e.getDirectoryPath(l),null==z?void 0:z.resolvedFileName,(null==z?void 0:z.packagetId)&&e.packageIdToString(z.packagetId))}}else L=_(O,l,T,(null===(a=i.getCompilerHost)||void 0===a?void 0:a.call(i))||i,u,y),S.set(O,M,L),i.onDiscoveredSymlink&&n(L)&&i.onDiscoveredSymlink();b.set(O,M,L),H(O,L,v,f),j&&q(j,v,f),h&&s&&!K(j,L)&&(s.push(v),h=!1)}else V=(null===(o=i.getCompilerHost)||void 0===o?void 0:o.call(i))||i,e.isTraceEnabled(T,V)&&!w.has(O,M)&&(z=f(L),e.trace(V,_===B?(null==z?void 0:z.resolvedFileName)?z.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==z?void 0:z.resolvedFileName)?z.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,O,l,null==z?void 0:z.resolvedFileName,(null==z?void 0:z.packagetId)&&e.packageIdToString(z.packagetId)));e.Debug.assert(void 0!==L&&!L.isInvalidated),w.set(O,M,!0),D.push(f(L))}return b.forEach(((t,r,n)=>{w.has(r,n)||e.contains(g,r)||(q(t,v,f),b.delete(r,n))})),D;function K(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=f(e),n=f(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function V(t){return e.endsWith(t,"/node_modules/@types")}function z(t,r){if(M(w,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,h());var n=r.split(e.directorySeparator),i=t.split(e.directorySeparator);return e.Debug.assert(i.length===n.length,"FailedLookup: ".concat(t," failedLookupLocationPath: ").concat(r)),n.length>F+1?{dir:i.slice(0,F+1).join(e.directorySeparator),dirPath:n.slice(0,F+1).join(e.directorySeparator)}:{dir:N,dirPath:w,nonRecursive:!1}}return K(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,h())),e.getDirectoryPath(r))}function K(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==w)for(;!M(n,w);){var s=e.getDirectoryPath(n);if(s===n)break;o=!1,i=n,a=t,n=s,t=e.getDirectoryPath(t)}return r(n)?{dir:a||t,dirPath:i||n,nonRecursive:o}:void 0}function W(t){return e.fileExtensionIsOneOf(t,C)}function H(t,r,n,a){if(r.refCount)r.refCount++,e.Debug.assertDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?J(r):_.add(t,r);var o=a(r);o&&o.resolvedFileName&&m.add(i.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(n)}function J(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations;if(r.length){f.push(t);for(var n=!1,a=0,o=r;a<o.length;a++){var s=o[a],c=i.toPath(s),l=z(s,c);if(l){var u=l.dir,d=l.dirPath,p=l.nonRecursive;if(!W(c)){var _=k.get(c)||0;k.set(c,_+1)}d===w?(e.Debug.assert(!p),n=!0):G(u,d,p)}}n&&G(N,w,!0)}}function $(e,t){var r=i.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)||e.forEach(J)}function G(t,r,n){var i=A.get(r);i?(e.Debug.assert(!!n==!!i.nonRecursive),i.refCount++):A.set(r,{watcher:Y(t,r,n),refCount:1,nonRecursive:n})}function q(t,r,n){if(e.unorderedRemoveItem(e.Debug.assertDefined(t.files),r),t.refCount--,!t.refCount){var a=n(t);if(a&&a.resolvedFileName&&m.remove(i.toPath(a.resolvedFileName),t),e.unorderedRemoveItem(f,t)){for(var o=!1,s=0,c=t.failedLookupLocations;s<c.length;s++){var l=c[s],u=i.toPath(l),d=z(l,u);if(d){var p=d.dirPath,_=k.get(u);_&&(1===_?k.delete(u):(e.Debug.assert(_>1),k.set(u,_-1))),p===w?o=!0:X(p)}}o&&X(w)}}}function X(e){A.get(e).refCount--}function Y(e,t,r){return i.watchDirectoryOfFailedLookupLocation(e,(e=>{var r=i.toPath(e);y&&y.addOrDeleteFileOrDirectory(e,r),te(r,t===r)}),r?0:1)}function Q(e,t,r){var n=e.get(t);n&&(n.forEach((e=>q(e,t,r))),e.delete(t))}function Z(e){Q(v,e,I),Q(S,e,O)}function ee(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i<a.length;i++){var o=a[i];if(!o.isInvalidated&&r(o)){o.isInvalidated=n=!0;for(var s=0,l=e.Debug.assertDefined(o.files);s<l.length;s++){var u=l[s];(c||(c=new e.Set)).add(u),g=g||e.endsWith(u,e.inferredTypesContainingFile)}}}return n}function te(r,n){if(n)(p||(p=[])).push(r);else{var a=t(r);if(!a)return!1;if(r=a,i.fileIsOpen(r))return!1;var o=e.getDirectoryPath(r);if(V(r)||e.isNodeModulesDirectory(r)||V(o)||e.isNodeModulesDirectory(o))(u||(u=[])).push(r),(d||(d=new e.Set)).add(r);else{if(!W(r)&&!k.has(r))return!1;if(e.isEmittedFileOfProgram(i.getCurrentProgram(),r))return!1;(u||(u=[])).push(r);var s=e.parseNodeModuleFromPath(r);s&&(d||(d=new e.Set)).add(s)}}i.scheduleInvalidateResolutionsOfFailedLookupLocations()}function re(){if(!u&&!d&&!p)return!1;var e=ee(f,ne);return u=void 0,d=void 0,p=void 0,e}function ne(t){return t.failedLookupLocations.some((t=>{var r=i.toPath(t);return e.contains(u,r)||e.firstDefinedIterator((null==d?void 0:d.keys())||e.emptyIterator,(t=>!!e.startsWith(r,t)||void 0))||(null==p?void 0:p.some((e=>M(e,r))))}))}function ie(){e.clearMap(P,e.closeFileWatcher)}function ae(e,t){return i.watchTypeRootsDirectory(t,(r=>{var n=i.toPath(r);y&&y.addOrDeleteFileOrDirectory(r,n),g=!0,i.onChangedAutomaticTypeDirectiveNames();var a=((e,t)=>{if(M(w,t))return w;var r=K(e,t);return r&&A.has(r.dirPath)?r.dirPath:void 0})(t,e);a&&te(n,a===n)}),1)}function oe(t){var n=e.getDirectoryPath(e.getDirectoryPath(t)),a=i.toPath(n);return a===w||r(a)}}})(Fl),(e=>{!(t=>{var r,n,i;function a(t,r,n,i){var a=r.importModuleSpecifierPreference,s=r.importModuleSpecifierEnding;return{relativePreference:"relative"===a?0:"non-relative"===a?1:"project-relative"===a?3:2,ending:(()=>{switch(s){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return(t=>{var r=t.imports;return e.firstDefined(r,(t=>{var r=t.text;return e.pathIsRelative(r)?e.hasJSFileExtension(r):void 0}))||!1})(i)||o(n,i.path,t)?2:e.getEmitModuleResolutionKind(n)!==e.ModuleResolutionKind.NodeJs?1:0}})()}}function o(t,r,n){return(e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext)&&e.getImpliedNodeFormatForFile(r,void 0,(t=>{var r;return{fileExists:t.fileExists,readFile:e.Debug.checkDefined(t.readFile),directoryExists:t.directoryExists,getCurrentDirectory:t.getCurrentDirectory,realpath:t.realpath,useCaseSensitiveFileNames:null===(r=t.useCaseSensitiveFileNames)||void 0===r?void 0:r.call(t)}})(n),t)!==e.ModuleKind.CommonJS}function s(t,r,n,i,a,o){var s=u(r,i),c=g(r,n,i,o);return e.firstDefined(c,(e=>b(e,s,i,t)))||d(n,s,t,i,a)}function c(t,r,n,i){var a,o=e.getSourceFileOfModule(t);if(!o)return e.emptyArray;var s=null===(a=n.getModuleSpecifierCache)||void 0===a?void 0:a.call(n),c=null==s?void 0:s.get(r.path,o.path,i);return[null==c?void 0:c.moduleSpecifiers,o,null==c?void 0:c.modulePaths,s]}function l(t,r,n,i,o,s){var l=!1,p=((t,r)=>{var n,i=null===(n=t.declarations)||void 0===n?void 0:n.find((t=>e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))));if(i)return i.name.text;var a=e.mapDefined(t.declarations,(t=>{var n,i,a,o;if(e.isModuleDeclaration(t)){var s=(e=>{for(;4&e.flags;)e=e.parent;return e})(t);if((null===(n=null==s?void 0:s.parent)||void 0===n?void 0:n.parent)&&e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)&&e.isSourceFile(s.parent.parent.parent)){var c=null===(o=null===(a=null===(i=s.parent.parent.symbol.exports)||void 0===i?void 0:i.get("export="))||void 0===a?void 0:a.valueDeclaration)||void 0===o?void 0:o.expression;if(c){var l=r.getSymbolAtLocation(c);if(l&&(2097152&(null==l?void 0:l.flags)?r.getAliasedSymbol(l):l)===t.symbol)return s.parent.parent}}}}))[0];return a?a.name.text:void 0})(t,r);if(p)return{moduleSpecifiers:[p],computedWithoutCache:l};var _=c(t,i,o,s),f=_[0],m=_[1],g=_[2],y=_[3];if(f)return{moduleSpecifiers:f,computedWithoutCache:l};if(!m)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:l};l=!0,g||(g=h(i.path,m.originalFileName,o));var v=((t,r,n,i,o)=>{var s=u(n.path,i),c=a(i,o,r,n),l=e.forEach(t,(t=>e.forEach(i.getFileIncludeReasons().get(e.toPath(t.path,i.getCurrentDirectory(),s.getCanonicalFileName)),(t=>{if(t.kind===e.FileIncludeKind.Import&&t.file===n.path){var r=e.getModuleNameStringLiteralAt(n,t.index).text;return 1===c.relativePreference&&e.pathIsRelative(r)?void 0:r}}))));if(l)return[l];for(var p,_,f,m=e.some(t,(e=>e.isInNodeModules)),g=0,h=t;g<h.length;g++){var y=h[g],v=b(y,s,i,r);if(p=e.append(p,v),v&&y.isRedirect)return p;if(!v&&!y.isRedirect){var x=d(y.path,s,r,i,c);e.pathIsBareSpecifier(x)?_=e.append(_,x):m&&!y.isInNodeModules||(f=e.append(f,x))}}return(null==_?void 0:_.length)?_:(null==p?void 0:p.length)?p:e.Debug.checkDefined(f)})(g,n,i,o,s);return null==y||y.set(i.path,m.path,s,g,v),{moduleSpecifiers:v,computedWithoutCache:l}}function u(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),importingSourceFileName:t,sourceDirectory:e.getDirectoryPath(t)}}function d(t,r,n,i,a){var o=a.ending,s=a.relativePreference,c=n.baseUrl,l=n.paths,u=n.rootDirs,d=r.sourceDirectory,_=r.getCanonicalFileName,m=u&&((t,r,n,i,a,o)=>{var s=x(r,t,i);if(void 0!==s){var c=x(n,t,i),l=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,i)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?E(l,a,o):e.removeFileExtension(l)}})(u,t,d,_,o,n)||E(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(d,t,_)),o,n);if(!c&&!l||0===s)return m;var g=T(t,e.getNormalizedAbsolutePath(e.getPathsBasePath(n,i)||c,i.getCurrentDirectory()),_);if(!g)return m;var h=E(g,o,n),v=l&&y(e.removeFileExtension(g),h,l),b=void 0===v&&void 0!==c?h:v;if(!b)return m;if(1===s)return b;if(3===s){var S=n.configFilePath?e.toPath(e.getDirectoryPath(n.configFilePath),i.getCurrentDirectory(),r.getCanonicalFileName):r.getCanonicalFileName(i.getCurrentDirectory()),D=e.toPath(t,S,_),k=e.startsWith(d,S),A=e.startsWith(D,S);if(k&&!A||!k&&A)return b;var N=f(i,e.getDirectoryPath(D));return f(i,d)!==N?b:m}return 2!==s&&e.Debug.assertNever(s),C(b)||p(m)<p(b)?m:b}function p(t){for(var r=0,n=e.startsWith(t,"./")?2:0;n<t.length;n++)47===t.charCodeAt(n)&&r++;return r}function _(t,r){return e.compareBooleans(r.isRedirect,t.isRedirect)||e.compareNumberOfDirectorySeparators(t.path,r.path)}function f(t,r){return t.getNearestAncestorDirectoryWithPackageJson?t.getNearestAncestorDirectoryWithPackageJson(r):!!e.forEachAncestorDirectory(r,(r=>!!t.fileExists(e.combinePaths(r,"package.json"))||void 0))}function m(t,r,n,i,a){var o,s=e.hostGetCanonicalFileName(n),c=n.getCurrentDirectory(),l=n.isSourceOfProjectReferenceRedirect(r)?n.getProjectReferenceRedirect(r):void 0,u=e.toPath(r,c,s),d=n.redirectTargetsMap.get(u)||e.emptyArray,p=Il(Il(Il([],l?[l]:e.emptyArray,!0),[r],!1),d,!0).map((t=>e.getNormalizedAbsolutePath(t,c))),_=!e.every(p,e.containsIgnoredPath);if(!i){var f=e.forEach(p,(t=>!(_&&e.containsIgnoredPath(t))&&a(t,l===t)));if(f)return f}var m=null===(o=n.getSymlinkCache)||void 0===o?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),g=e.getNormalizedAbsolutePath(r,c);return m&&e.forEachAncestorDirectory(e.getDirectoryPath(g),(r=>{var n=m.get(e.ensureTrailingDirectorySeparator(e.toPath(r,c,s)));if(n)return!e.startsWithDirectory(t,r,s)&&e.forEach(p,(t=>{if(e.startsWithDirectory(t,r,s))for(var i=e.getRelativePathFromDirectory(r,t,s),o=0,c=n;o<c.length;o++){var u=c[o],d=e.resolvePath(u,i),p=a(d,t===l);if(_=!0,p)return p}}))}))||(i?e.forEach(p,(t=>_&&e.containsIgnoredPath(t)?void 0:a(t,t===l))):void 0)}function g(t,r,n,i,a){var o;void 0===a&&(a=e.toPath(r,n.getCurrentDirectory(),e.hostGetCanonicalFileName(n)));var s=null===(o=n.getModuleSpecifierCache)||void 0===o?void 0:o.call(n);if(s){var c=s.get(t,a,i);if(null==c?void 0:c.modulePaths)return c.modulePaths}var l=h(t,r,n);return s&&s.setModulePaths(t,a,i,l),l}function h(t,r,n){var i=e.hostGetCanonicalFileName(n),a=new e.Map,o=!1;m(t,r,n,!0,((t,r)=>{var n=e.pathContainsNodeModules(t);a.set(t,{path:i(t),isRedirect:r,isInNodeModules:n}),o=o||n}));for(var s,c=[],l=t=>{var r,n=e.ensureTrailingDirectorySeparator(t);a.forEach(((t,i)=>{var o=t.path,s=t.isRedirect,c=t.isInNodeModules;e.startsWith(o,n)&&((r||(r=[])).push({path:i,isRedirect:s,isInNodeModules:c}),a.delete(i))})),r&&(r.length>1&&r.sort(_),c.push.apply(c,r));var i=e.getDirectoryPath(t);if(i===t)return s=t,"break";s=t=i},u=e.getDirectoryPath(t);0!==a.size;){var d=l(u);if(u=s,"break"===d)break}if(a.size){var p=e.arrayFrom(a.values());p.length>1&&p.sort(_),c.push.apply(c,p)}return c}function y(t,r,n){for(var i in n)for(var a=0,o=n[i];a<o.length;a++){var s=o[a],c=e.removeFileExtension(e.normalizePath(s)),l=c.indexOf("*");if(-1!==l){var u=c.substr(0,l),d=c.substr(l+1);if(r.length>=u.length+d.length&&e.startsWith(r,u)&&e.endsWith(r,d)||!d&&r===e.removeTrailingDirectorySeparator(u)){var p=r.substr(u.length,r.length-d.length-u.length);return i.replace("*",p)}}else if(c===r||c===t)return i}}function v(t,r,n,i,a,o,s){if(void 0===s&&(s=0),"string"==typeof a){var c=e.getNormalizedAbsolutePath(e.combinePaths(n,a),void 0),l=e.hasTSFileExtension(r)?e.removeFileExtension(r)+D(r,t):void 0;switch(s){case 0:if(0===e.comparePaths(r,c)||l&&0===e.comparePaths(l,c))return{moduleFileToTry:i};break;case 1:if(e.containsPath(c,r)){var u=e.getRelativePathFromDirectory(c,r,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(i,a),u),void 0)}}break;case 2:var d=c.indexOf("*"),p=c.slice(0,d),_=c.slice(d+1);if(e.startsWith(r,p)&&e.endsWith(r,_)){var f=r.slice(p.length,r.length-_.length);return{moduleFileToTry:i.replace("*",f)}}if(l&&e.startsWith(l,p)&&e.endsWith(l,_))return f=l.slice(p.length,l.length-_.length),{moduleFileToTry:i.replace("*",f)}}}else{if(Array.isArray(a))return e.forEach(a,(e=>v(t,r,n,i,e,o)));if("object"==typeof a&&null!==a){if(e.allKeysStartWithDot(a))return e.forEach(e.getOwnKeys(a),(s=>{var c=e.getNormalizedAbsolutePath(e.combinePaths(i,s),void 0),l=e.endsWith(s,"/")?1:e.stringContains(s,"*")?2:0;return v(t,r,n,c,a[s],o,l)}));for(var m=0,g=e.getOwnKeys(a);m<g.length;m++){var h=g[m];if("default"===h||o.indexOf(h)>=0||e.isApplicableVersionedTypesKey(o,h)){var y=a[h],b=v(t,r,n,i,y,o);if(b)return b}}}}}function b(t,r,n,i,a){var o=t.path,s=t.isRedirect,c=r.getCanonicalFileName,l=r.sourceDirectory;if(n.fileExists&&n.readFile){var u=(t=>{var r,n=0,i=0,a=0;!(e=>{e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"})(r||(r={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=t.indexOf("/",o+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0})(o);if(u){var d=o,p=!1;if(!a)for(var _=u.packageRootIndex,f=void 0;;){var m=A(_),g=m.moduleFileToTry,h=m.packageRootPath,b=m.blockedByExports,x=m.verbatimFromExports;if(e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.Classic){if(b)return;if(x)return g}if(h){d=h,p=!0;break}if(f||(f=g),-1===(_=o.indexOf(e.directorySeparator,_+1))){d=N(f);break}}if(!s||p){var S=n.getGlobalTypingsCacheLocation&&n.getGlobalTypingsCacheLocation(),T=c(d.substring(0,u.topLevelNodeModulesIndex));if(e.startsWith(l,T)||S&&e.startsWith(c(S),T)){var C=d.substring(u.topLevelPackageNameIndex+1),k=e.getPackageNameFromTypesPackageName(C);return e.getEmitModuleResolutionKind(i)===e.ModuleResolutionKind.Classic&&k===C?void 0:k}}}}function A(t){var r=o.substring(0,t),a=e.combinePaths(r,"package.json"),s=o;if(n.fileExists(a)){var l=JSON.parse(n.readFile(a));if(e.getEmitModuleResolutionKind(i)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(i)===e.ModuleResolutionKind.NodeNext){var u=l.exports&&"string"==typeof l.name?v(i,o,r,l.name,l.exports,["node","types"]):void 0;if(u){var d=e.hasTSFileExtension(u.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(u.moduleFileToTry)+D(u.moduleFileToTry,i)}:u;return Ol(Ol({},d),{verbatimFromExports:!0})}if(l.exports)return{moduleFileToTry:o,blockedByExports:!0}}var p=l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(p){var _=o.slice(r.length+1),f=y(e.removeFileExtension(_),E(_,0,i),p.paths);void 0!==f&&(s=e.combinePaths(r,f))}var m=l.typings||l.types||l.main;if(e.isString(m)){var g=e.toPath(m,r,c);if(e.removeFileExtension(g)===e.removeFileExtension(c(s)))return{packageRootPath:r,moduleFileToTry:s}}}return{moduleFileToTry:s}}function N(t){var r=e.removeFileExtension(t);return"/index"!==c(r.substring(u.fileNameIndex))||((t,r)=>{if(t.fileExists)for(var n=0,i=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));n<i.length;n++){var a=r+i[n];if(t.fileExists(a))return a}})(n,r.substring(0,u.fileNameIndex))?r:r.substring(0,u.fileNameIndex)}}function x(t,r,n){return e.firstDefined(r,(e=>{var r=T(t,e,n);return C(r)?void 0:r}))}function E(t,r,n){if(e.fileExtensionIsOneOf(t,[".json",".mjs",".cjs"]))return t;var i=e.removeFileExtension(t);if(e.fileExtensionIsOneOf(t,[".d.mts",".mts",".d.cts",".cts"]))return i+S(t,n);switch(r){case 0:return e.removeSuffix(i,"/index");case 1:return i;case 2:return i+S(t,n);default:return e.Debug.assertNever(r)}}function S(t,r){var n;return null!==(n=D(t,r))&&void 0!==n?n:e.Debug.fail("Extension ".concat(e.extensionFromPath(t)," is unsupported:: FileName:: ").concat(t))}function D(t,r){var n=e.tryGetExtensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===r.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function T(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function C(t){return e.startsWith(t,"..")}!(e=>{e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative"})(r||(r={})),(e=>{e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"})(n||(n={})),t.updateModuleSpecifier=(t,r,n,i,a)=>{var c=s(t,r,n,i,((t,r,n,i)=>({relativePreference:e.isExternalModuleNameRelative(r)?0:1,ending:e.hasJSFileExtension(r)||o(t,n,i)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs||e.endsWith(r,"index")?1:0}))(t,a,r,i),{});if(c!==a)return c},t.getModuleSpecifier=(e,t,r,n,i)=>s(e,r,n,i,a(i,{},e,t),{}),t.getNodeModulesPackageName=(t,r,n,i,a)=>{var o=u(r,i),s=g(r,n,i,a);return e.firstDefined(s,(e=>b(e,o,i,t,!0)))},t.tryGetModuleSpecifiersFromCache=(e,t,r,n)=>c(e,t,r,n)[0],t.getModuleSpecifiers=(e,t,r,n,i,a)=>l(e,t,r,n,i,a).moduleSpecifiers,t.getModuleSpecifiersWithCacheInfo=l,t.countPathComponents=p,t.forEachFileNameOfModule=m,(e=>{e[e.Exact=0]="Exact",e[e.Directory=1]="Directory",e[e.Pattern=2]="Pattern"})(i||(i={})),t.tryGetJSExtensionForFile=D})(e.moduleSpecifiers||(e.moduleSpecifiers={}))})(Fl),(e=>{var t=e.sys?{getCurrentDirectory:()=>e.sys.getCurrentDirectory(),getNewLine:()=>e.sys.newLine,getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function r(r,n){var i=r===e.sys&&t?t:{getCurrentDirectory:()=>r.getCurrentDirectory(),getNewLine:()=>r.newLine,getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n)return t=>r.write(e.formatDiagnostic(t,i));var a=new Array(1);return t=>{a[0]=t,r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function n(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!e.contains(e.screenStartingMessageCodes,r.code)||(t.clearScreen(),0))}function i(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function a(t,r){return r?(r,a,o)=>{n(t,r,o);var s="[".concat(e.formatColorAndReset(i(t),e.ForegroundColorEscapeSequences.Grey),"] ");s+="".concat(e.flattenDiagnosticMessageText(r.messageText,t.newLine)).concat(a+a),t.write(s)}:(r,a,o)=>{var s="";n(t,r,o)||(s+=a),s+="".concat(i(t)," - "),s+="".concat(e.flattenDiagnosticMessageText(r.messageText,t.newLine)).concat(((t,r)=>e.contains(e.screenStartingMessageCodes,t.code)?r+r:r)(r,a)),t.write(s)}}function o(t){return e.countWhere(t,(t=>t.category===e.DiagnosticCategory.Error))}function s(t){return 1===t?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function c(t,r){if(0===t)return"";var n=e.createCompilerDiagnostic(1===t?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,t);return"".concat(r).concat(e.flattenDiagnosticMessageText(n.messageText,r)).concat(r).concat(r)}function l(e){return!!e.getState}function u(t,r){var n=t.getCompilerOptions();n.explainFiles?d(l(t)?t.getProgram():t,r):(n.listFiles||n.listFilesOnly)&&e.forEach(t.getSourceFiles(),(e=>{r(e.fileName)}))}function d(t,r){for(var n,i,a=t.getFileIncludeReasons(),o=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),s=r=>e.convertToRelativePath(r,t.getCurrentDirectory(),o),c=0,l=t.getSourceFiles();c<l.length;c++){var u=l[c];r("".concat(g(u,s))),null===(n=a.get(u.path))||void 0===n||n.forEach((e=>r(" ".concat(m(t,e,s).messageText)))),null===(i=p(u,s))||void 0===i||i.forEach((e=>r(" ".concat(e.messageText))))}}function p(t,r){var n;return t.path!==t.resolvedPath&&(n||(n=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,g(t.originalFileName,r))),t.redirectInfo&&(n||(n=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,g(t.redirectInfo.redirectTarget,r))),n}function _(t,r){var n,i=t.getCompilerOptions().configFile;if(null===(n=null==i?void 0:i.configFileSpecs)||void 0===n?void 0:n.validatedFilesSpec){var a=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),o=a(r),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(i.fileName,t.getCurrentDirectory()));return e.find(i.configFileSpecs.validatedFilesSpec,(t=>a(e.getNormalizedAbsolutePath(t,s))===o))}}function f(t,r){var n,i,a=t.getCompilerOptions().configFile;if(null===(n=null==a?void 0:a.configFileSpecs)||void 0===n?void 0:n.validatedIncludeSpecs){var o=e.fileExtensionIs(r,".json"),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(a.fileName,t.getCurrentDirectory())),c=t.useCaseSensitiveFileNames();return e.find(null===(i=null==a?void 0:a.configFileSpecs)||void 0===i?void 0:i.validatedIncludeSpecs,(t=>{if(o&&!e.endsWith(t,".json"))return!1;var n=e.getPatternFromSpec(t,s,"files");return!!n&&e.getRegexFromPattern("(".concat(n,")$"),c).test(r)}))}}function m(t,r,n){var i,a,o=t.getCompilerOptions();if(e.isReferencedFile(r)){var s=e.getReferencedFileLocation((e=>t.getSourceFileByPath(e)),r),c=e.isReferenceFileLocation(s)?s.file.text.substring(s.pos,s.end):'"'.concat(s.text,'"'),l=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(s)||r.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),r.kind){case e.FileIncludeKind.Import:l=e.isReferenceFileLocation(s)?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:s.text===e.externalHelpersModuleNameText?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!s.packageId),l=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:l=s.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!s.packageId),l=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(r)}return e.chainDiagnosticMessages(void 0,l,c,g(s.file,n),s.packageId&&e.packageIdToString(s.packageId))}switch(r.kind){case e.FileIncludeKind.RootFile:if(!(null===(i=o.configFile)||void 0===i?void 0:i.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var u=e.getNormalizedAbsolutePath(t.getRootFileNames()[r.index],t.getCurrentDirectory());if(_(t,u))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var d=f(t,u);return d?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,d,g(o.configFile,n)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var p=r.kind===e.FileIncludeKind.OutputFromProjectReference,m=e.Debug.checkDefined(null===(a=t.getResolvedProjectReferences())||void 0===a?void 0:a[r.index]);return e.chainDiagnosticMessages(void 0,e.outFile(o)?p?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:p?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,g(m.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,o.types?r.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:r.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,r.typeReference,r.packageId&&e.packageIdToString(r.packageId));case e.FileIncludeKind.LibFile:if(void 0!==r.index)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,o.lib[r.index]);var h=e.forEachEntry(e.targetOptionDeclaration.type,((t,r)=>t===e.getEmitScriptTarget(o)?r:void 0));return e.chainDiagnosticMessages(void 0,h?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,h);default:e.Debug.assertNever(r)}}function g(t,r){var n=e.isString(t)?t:t.fileName;return r?r(n):n}function h(t,r,n,i,a,s,c,l){var d=!!t.getCompilerOptions().listFilesOnly,p=t.getConfigFileParsingDiagnostics().slice(),_=p.length;e.addRange(p,t.getSyntacticDiagnostics(void 0,s)),p.length===_&&(e.addRange(p,t.getOptionsDiagnostics(s)),d||(e.addRange(p,t.getGlobalDiagnostics(s)),p.length===_&&e.addRange(p,t.getSemanticDiagnostics(void 0,s))));var f=d?{emitSkipped:!0,diagnostics:e.emptyArray}:t.emit(void 0,a,s,c,l),m=f.emittedFiles,g=f.diagnostics;e.addRange(p,g);var h=e.sortAndDeduplicateDiagnostics(p);if(h.forEach(r),n){var y=t.getCurrentDirectory();e.forEach(m,(t=>{var r=e.getNormalizedAbsolutePath(t,y);n("TSFILE: ".concat(r))})),u(t,n)}return i&&i(o(h)),{emitResult:f,diagnostics:h}}function y(t,r,n,i,a,o,s,c){var l=h(t,r,n,i,a,o,s,c),u=l.emitResult,d=l.diagnostics;return u.emitSkipped&&d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function v(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||a(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function b(t,r){var n=e.memoize((()=>e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:e.memoize((()=>t.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:t=>e.combinePaths(n(),e.getDefaultLibFileName(t)),fileExists:e=>t.fileExists(e),readFile:(e,r)=>t.readFile(e,r),directoryExists:e=>t.directoryExists(e),getDirectories:e=>t.getDirectories(e),readDirectory:(e,r,n,i,a)=>t.readDirectory(e,r,n,i,a),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:e=>t.write(e+t.newLine),createDirectory:e=>t.createDirectory(e),writeFile:(e,r,n)=>t.writeFile(e,r,n),createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature}}function x(t,r,n,i){void 0===t&&(t=e.sys);var a=e=>t.write(e+t.newLine),o=b(t,r);return e.copyProperties(o,v(t,i)),o.afterProgramCreate=r=>{var i=r.getCompilerOptions(),c=e.getNewLineCharacter(i,(()=>t.newLine));h(r,n,a,(t=>o.onWatchStatusChange(e.createCompilerDiagnostic(s(t),t),c,i,t)))},o}function E(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=i,e.createWatchStatusReporter=a,e.parseConfigFileWithSystem=(t,r,n,i,a,o)=>{var s=a;s.onUnRecoverableConfigFileDiagnostic=e=>E(a,o,e);var c=e.getParsedCommandLineOfConfigFile(t,r,s,n,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=o,e.getWatchErrorSummaryDiagnosticMessage=s,e.getErrorSummaryText=c,e.isBuilderProgram=l,e.listFiles=u,e.explainFiles=d,e.explainIfFileIsRedirect=p,e.getMatchedFileSpec=_,e.getMatchedIncludeSpec=f,e.fileIncludeReasonToDiagnostics=m,e.emitFilesAndReportErrors=h,e.emitFilesAndReportErrorsAndGetExitStatus=y,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=()=>e.noopFileWatcher,e.createWatchHost=v,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file"},e.createWatchFactory=(t,r)=>{var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?e=>t.trace(e):e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=(t,r,n)=>{void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((()=>t.getNewLine()));return{getSourceFile(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=t.readFile(n,r().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:e=>t.getDefaultLibFileName(e),writeFile(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,((e,r,n)=>t.writeFile(e,r,n)),(e=>t.createDirectory(e)),(e=>t.directoryExists(e))),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((()=>t.getCurrentDirectory())),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:()=>e.getNewLineCharacter(r(),a),fileExists:e=>t.fileExists(e),readFile:e=>t.readFile(e),trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||(()=>""),createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature}},e.setGetSourceFileAsHashVersioned=(t,r)=>{var n=t.getSourceFile,i=e.maybeBind(r,r.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var a=n.call.apply(n,Il([t],e,!1));return a&&(a.version=i(a.text)),a}},e.createProgramHost=b,e.createWatchCompilerHostOfConfigFile=e=>{var t=e.configFileName,n=e.optionsToExtend,i=e.watchOptionsToExtend,a=e.extraFileExtensions,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=c||r(o),d=x(o,s,u,l);return d.onUnRecoverableConfigFileDiagnostic=e=>E(o,u,e),d.configFileName=t,d.optionsToExtend=n,d.watchOptionsToExtend=i,d.extraFileExtensions=a,d},e.createWatchCompilerHostOfFilesAndCompilerOptions=e=>{var t=e.rootFiles,n=e.options,i=e.watchOptions,a=e.projectReferences,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=x(o,s,c||r(o),l);return u.rootFiles=t,u.options=n,u.watchOptions=i,u.projectReferences=a,u},e.performIncrementalCompilation=t=>{var n=t.system||e.sys,i=t.host||(t.host=e.createIncrementalCompilerHost(t.options,n)),a=e.createIncrementalProgram(t),o=y(a,t.reportDiagnostic||r(n),(e=>i.trace&&i.trace(e)),t.reportErrorSummary||t.options.pretty?e=>n.write(c(e,n.newLine)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}})(Fl),(e=>{function t(t,r){if(!e.outFile(t)){var n=e.getTsBuildInfoEmitOutputFilePath(t);if(n){var i=r.readFile(n);if(i){var a=e.getBuildInfo(i);if(a.version===e.version&&a.program)return e.createBuildProgramUsingProgramBuildInfo(a.program,n,r)}}}}function r(t,r){void 0===r&&(r=e.sys);var n=e.createCompilerHostWorker(t,void 0,r);return n.createHash=e.maybeBind(r,r.createHash),n.disableUseFileVersionAsSignature=r.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(n,r),e.changeCompilerHostLikeToUseCache(n,(t=>e.toPath(t,n.getCurrentDirectory(),n.getCanonicalFileName))),n}e.readBuilderProgram=t,e.createIncrementalCompilerHost=r,e.createIncrementalProgram=n=>{var i=n.rootNames,a=n.options,o=n.configFileParsingDiagnostics,s=n.projectReferences,c=n.host,l=n.createProgram;return c=c||r(a),(l=l||e.createEmitAndSemanticDiagnosticsBuilderProgram)(i,a,c,t(a,c),o,s)},e.createWatchCompilerHost=(t,r,n,i,a,o,s,c)=>e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:t,options:r,watchOptions:c,projectReferences:s,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}):e.createWatchCompilerHostOfConfigFile({configFileName:t,optionsToExtend:r,watchOptionsToExtend:s,extraFileExtensions:c,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}),e.createWatchProgram=r=>{var n,i,a,o,s,c,l,u,d,p,_,f,m=r.extendedConfigCache,g=!1,h=new e.Map,y=!1,v=r.useCaseSensitiveFileNames(),b=r.getCurrentDirectory(),x=r.configFileName,E=r.optionsToExtend,S=void 0===E?{}:E,D=r.watchOptionsToExtend,T=r.extraFileExtensions,C=r.createProgram,k=r.rootFiles,A=r.options,N=r.watchOptions,w=r.projectReferences,F=!1,P=!1,I=void 0===x?void 0:e.createCachedDirectoryStructureHost(r,b,v),O=I||r,M=e.parseConfigHostFromCompilerHostLike(r,O),R=Y();x&&r.configFileParsingResult&&(pe(r.configFileParsingResult),R=Y()),ie(e.Diagnostics.Starting_compilation_in_watch_mode),x&&!r.configFileParsingResult&&(R=e.getNewLineCharacter(S,(()=>r.getNewLine())),e.Debug.assert(!k),de(),R=Y());var L,B=e.createWatchFactory(r,A),j=B.watchFile,U=B.watchDirectory,V=B.writeLog,z=e.createGetCanonicalFileName(v);V("Current directory: ".concat(b," CaseSensitiveFileNames: ").concat(v)),x&&(L=j(x,(()=>{e.Debug.assert(!!x),i=e.ConfigFileProgramReloadLevel.Full,ce()}),e.PollingInterval.High,N,e.WatchType.ConfigFile));var K=e.createCompilerHostFromProgramHost(r,(()=>A),O);e.setGetSourceFileAsHashVersioned(K,r);var W=K.getSourceFile;K.getSourceFile=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return te.apply(void 0,Il([e,Q(e)],t,!1))},K.getSourceFileByPath=te,K.getNewLine=()=>R,K.fileExists=ee,K.onReleaseOldSourceFile=(e,t,r)=>{var n=h.get(e.resolvedPath);void 0!==n&&(Z(n)?(p||(p=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),h.delete(e.resolvedPath),r||H.removeResolutionsOfFile(e.path)))},K.onReleaseParsedCommandLine=t=>{var r,n=Q(t),i=null==u?void 0:u.get(n);i&&(u.delete(n),i.watchedDirectories&&e.clearMap(i.watchedDirectories,e.closeFileWatcherOf),null===(r=i.watcher)||void 0===r||r.close(),e.clearSharedExtendedConfigFileWatcher(n,d))},K.toPath=Q,K.getCompilationSettings=()=>A,K.useSourceOfProjectReferenceRedirect=e.maybeBind(r,r.useSourceOfProjectReferenceRedirect),K.watchDirectoryOfFailedLookupLocation=(t,r,n)=>U(t,r,n,N,e.WatchType.FailedLookupLocations),K.watchTypeRootsDirectory=(t,r,n)=>U(t,r,n,N,e.WatchType.TypeRoots),K.getCachedDirectoryStructureHost=()=>I,K.scheduleInvalidateResolutionsOfFailedLookupLocations=()=>{if(!r.setTimeout||!r.clearTimeout)return H.invalidateResolutionsOfFailedLookupLocations();var e=oe();V("Scheduling invalidateFailedLookup".concat(e?", Cancelled earlier one":"")),l=r.setTimeout(se,250)},K.onInvalidatedResolution=ce,K.onChangedAutomaticTypeDirectiveNames=ce,K.fileIsOpen=e.returnFalse,K.getCurrentProgram=q,K.writeLog=V,K.getParsedCommandLine=_e;var H=e.createResolutionCache(K,x?e.getDirectoryPath(e.getNormalizedAbsolutePath(x,b)):b,!1);K.resolveModuleNames=r.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveModuleNames.apply(r,e)}:(e,t,r,n,i,a)=>H.resolveModuleNames(e,t,r,n,a),K.resolveTypeReferenceDirectives=r.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveTypeReferenceDirectives.apply(r,e)}:(e,t,r)=>H.resolveTypeReferenceDirectives(e,t,r);var J=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;return n=t(A,K),X(),xe(),x&&Se(Q(x),A,N,e.WatchType.ExtendedConfigFile),x?{getCurrentProgram:G,getProgram:ue,close:$}:{getCurrentProgram:G,getProgram:ue,updateRootFileNames(t){e.Debug.assert(!x,"Cannot update root file names with config file watch mode"),k=t,ce()},close:$};function $(){oe(),H.clear(),e.clearMap(h,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),L&&(L.close(),L=void 0),null==m||m.clear(),m=void 0,d&&(e.clearMap(d,e.closeFileWatcherOf),d=void 0),s&&(e.clearMap(s,e.closeFileWatcherOf),s=void 0),a&&(e.clearMap(a,e.closeFileWatcher),a=void 0),u&&(e.clearMap(u,(t=>{var r;null===(r=t.watcher)||void 0===r||r.close(),t.watcher=void 0,t.watchedDirectories&&e.clearMap(t.watchedDirectories,e.closeFileWatcherOf),t.watchedDirectories=void 0})),u=void 0),o&&(e.clearMap(o,e.closeFileWatcher),o=void 0)}function G(){return n}function q(){return n&&n.getProgramOrUndefined()}function X(){V("Synchronizing program"),oe();var t=G();y&&(R=Y(),t&&(g||e.changesAffectModuleResolution(t.getCompilerOptions(),A))&&H.clear());var i=H.createHasInvalidatedResolution(J||g);return e.isProgramUptoDate(q(),k,A,ne,ee,i,ae,_e,w)?P&&(n=C(void 0,void 0,K,n,f,w),P=!1):(t=>{V("CreatingProgramWith::"),V(" roots: ".concat(JSON.stringify(k))),V(" options: ".concat(JSON.stringify(A))),w&&V(" projectReferences: ".concat(JSON.stringify(w)));var r=y||!q();y=!1,P=!1,H.startCachingPerDirectoryResolution(),K.hasInvalidatedResolution=t,K.hasChangedAutomaticTypeDirectiveNames=ae,n=C(k,A,K,n,f,w);var i=e.map(H.getModuleResolutionCache().getPackageJsonInfoCache().entries(),(e=>{var t=e[0],r=e[1];return[K.realpath?Q(K.realpath(t)):t,r]}));if(H.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(n.getProgram(),a||(a=new e.Map),he),e.updatePackageJsonWatch(i,o||(o=new e.Map),ye),r&&H.updateTypeRootsWatch(),p){for(var s=0,c=p;s<c.length;s++){var l=c[s];a.has(l)||h.delete(l)}p=void 0}})(i),g=!1,r.afterProgramCreate&&t!==n&&r.afterProgramCreate(n),n}function Y(){return e.getNewLineCharacter(A||S,(()=>r.getNewLine()))}function Q(t){return e.toPath(t,b,z)}function Z(e){return"boolean"==typeof e}function ee(e){var t=Q(e);return!Z(h.get(t))&&O.fileExists(e)}function te(t,r,n,i,a){var o=h.get(r);if(!Z(o)){if(void 0===o||a||(e=>"boolean"==typeof e.version)(o)){var s=W(t,n,i);if(o)s?(o.sourceFile=s,o.version=s.version,o.fileWatcher||(o.fileWatcher=fe(r,t,me,e.PollingInterval.Low,N,e.WatchType.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),h.set(r,!1));else if(s){var c=fe(r,t,me,e.PollingInterval.Low,N,e.WatchType.SourceFile);h.set(r,{sourceFile:s,version:s.version,fileWatcher:c})}else h.set(r,!1);return s&&(s.impliedNodeFormat=e.getImpliedNodeFormatForFile(r,H.getModuleResolutionCache().getPackageJsonInfoCache(),K,K.getCompilationSettings())),s}return o.sourceFile}}function re(e){var t=h.get(e);void 0!==t&&(Z(t)?h.set(e,{version:!1}):t.version=!1)}function ne(e){var t=h.get(e);return t&&t.version?t.version:void 0}function ie(t){r.onWatchStatusChange&&r.onWatchStatusChange(e.createCompilerDiagnostic(t),R,A||S)}function ae(){return H.hasChangedAutomaticTypeDirectiveNames()}function oe(){return!!l&&(r.clearTimeout(l),l=void 0,!0)}function se(){l=void 0,H.invalidateResolutionsOfFailedLookupLocations()&&ce()}function ce(){r.setTimeout&&r.clearTimeout&&(c&&r.clearTimeout(c),V("Scheduling update"),c=r.setTimeout(le,250))}function le(){c=void 0,ie(e.Diagnostics.File_change_detected_Starting_incremental_compilation),ue()}function ue(){switch(i){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),V("Reloading new file names and options"),k=e.getFileNamesFromConfigSpecs(A.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(x),b),A,M,T),e.updateErrorForNoInputFiles(k,e.getNormalizedAbsolutePath(x,b),A.configFile.configFileSpecs,f,F)&&(P=!0),X();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),V("Reloading config file: ".concat(x)),i=e.ConfigFileProgramReloadLevel.None,I&&I.clearCache(),de(),y=!0,X(),xe(),Se(Q(x),A,N,e.WatchType.ExtendedConfigFile);break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),X()}return e.perfLogger.logStopUpdateProgram("Done"),G()}function de(){pe(e.getParsedCommandLineOfConfigFile(x,S,M,m||(m=new e.Map),D,T))}function pe(t){k=t.fileNames,A=t.options,N=t.watchOptions,w=t.projectReferences,_=t.wildcardDirectories,f=e.getConfigFileParsingDiagnostics(t).slice(),F=e.canJsonReportNoInputFiles(t.raw),P=!0}function _e(t){var n=Q(t),i=null==u?void 0:u.get(n);if(i){if(!i.reloadLevel)return i.parsedCommandLine;if(i.parsedCommandLine&&i.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!r.getParsedCommandLine){V("Reloading new file names and options");var a=e.getFileNamesFromConfigSpecs(i.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),b),A,M);return i.parsedCommandLine=Ol(Ol({},i.parsedCommandLine),{fileNames:a}),i.reloadLevel=void 0,i.parsedCommandLine}}V("Loading config file: ".concat(t));var o=r.getParsedCommandLine?r.getParsedCommandLine(t):(t=>{var r=M.onUnRecoverableConfigFileDiagnostic;M.onUnRecoverableConfigFileDiagnostic=e.noop;var n=e.getParsedCommandLineOfConfigFile(t,void 0,M,m||(m=new e.Map),D);return M.onUnRecoverableConfigFileDiagnostic=r,n})(t);return i?(i.parsedCommandLine=o,i.reloadLevel=void 0):(u||(u=new e.Map)).set(n,i={parsedCommandLine:o}),((t,r,n)=>{var i,a,o,s,c;n.watcher||(n.watcher=j(t,((n,i)=>{ge(t,r,i);var a=null==u?void 0:u.get(r);a&&(a.reloadLevel=e.ConfigFileProgramReloadLevel.Full),H.removeResolutionsFromProjectReferenceRedirects(r),ce()}),e.PollingInterval.High,(null===(i=n.parsedCommandLine)||void 0===i?void 0:i.watchOptions)||N,e.WatchType.ConfigFileOfReferencedProject)),(null===(a=n.parsedCommandLine)||void 0===a?void 0:a.wildcardDirectories)?e.updateWatchingWildcardDirectories(n.watchedDirectories||(n.watchedDirectories=new e.Map),new e.Map(e.getEntries(null===(o=n.parsedCommandLine)||void 0===o?void 0:o.wildcardDirectories)),((i,a)=>{var o;return U(i,(n=>{var a=Q(n);I&&I.addOrDeleteFileOrDirectory(n,a),re(a);var o=null==u?void 0:u.get(r);(null==o?void 0:o.parsedCommandLine)&&(e.isIgnoredFileFromWildCardWatching({watchedDirPath:Q(i),fileOrDirectory:n,fileOrDirectoryPath:a,configFileName:t,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:b,useCaseSensitiveFileNames:v,writeLog:V,toPath:Q})||o.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(o.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,ce()))}),a,(null===(o=n.parsedCommandLine)||void 0===o?void 0:o.watchOptions)||N,e.WatchType.WildcardDirectoryOfReferencedProject)})):n.watchedDirectories&&(e.clearMap(n.watchedDirectories,e.closeFileWatcherOf),n.watchedDirectories=void 0),Se(r,null===(s=n.parsedCommandLine)||void 0===s?void 0:s.options,(null===(c=n.parsedCommandLine)||void 0===c?void 0:c.watchOptions)||N,e.WatchType.ExtendedConfigOfReferencedProject)})(t,n,i),o}function fe(e,t,r,n,i,a){return j(t,((t,n)=>r(t,n,e)),n,i,a)}function me(t,r,n){ge(t,n,r),r===e.FileWatcherEventKind.Deleted&&h.has(n)&&H.invalidateResolutionOfFile(n),re(n),ce()}function ge(e,t,r){I&&I.addOrDeleteFile(e,t,r)}function he(t){return(null==u?void 0:u.has(t))?e.noopFileWatcher:fe(t,t,be,e.PollingInterval.Medium,N,e.WatchType.MissingFile)}function ye(t){return h.has(t)?e.noopFileWatcher:fe(t,t,ve,e.PollingInterval.High,N,e.WatchType.PackageJson)}function ve(t,r,n){ge(t,n,r),i=e.ConfigFileProgramReloadLevel.Full,g=!0,ce()}function be(t,r,n){ge(t,n,r),r===e.FileWatcherEventKind.Created&&a.has(n)&&(a.get(n).close(),a.delete(n),re(n),ce())}function xe(){_?e.updateWatchingWildcardDirectories(s||(s=new e.Map),new e.Map(e.getEntries(_)),Ee):s&&e.clearMap(s,e.closeFileWatcherOf)}function Ee(t,r){return U(t,(r=>{e.Debug.assert(!!x);var n=Q(r);I&&I.addOrDeleteFileOrDirectory(r,n),re(n),e.isIgnoredFileFromWildCardWatching({watchedDirPath:Q(t),fileOrDirectory:r,fileOrDirectoryPath:n,configFileName:x,extraFileExtensions:T,options:A,program:G()||k,currentDirectory:b,useCaseSensitiveFileNames:v,writeLog:V,toPath:Q})||i!==e.ConfigFileProgramReloadLevel.Full&&(i=e.ConfigFileProgramReloadLevel.Partial,ce())}),r,N,e.WatchType.WildcardDirectory)}function Se(t,r,n,a){e.updateSharedExtendedConfigFileWatcher(t,r,d||(d=new e.Map),((t,r)=>j(t,((n,a)=>{var o;ge(t,r,a),m&&e.cleanExtendedConfigCache(m,r,Q);var s=null===(o=d.get(r))||void 0===o?void 0:o.projects;(null==s?void 0:s.size)&&s.forEach((t=>{if(Q(x)===t)i=e.ConfigFileProgramReloadLevel.Full;else{var r=null==u?void 0:u.get(t);r&&(r.reloadLevel=e.ConfigFileProgramReloadLevel.Full),H.removeResolutionsFromProjectReferenceRedirects(t)}ce()}))}),e.PollingInterval.High,n,a)),Q)}}})(Fl),(e=>{var t;(t=e.UpToDateStatusType||(e.UpToDateStatusType={}))[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",t[t.OutputMissing=4]="OutputMissing",t[t.OutOfDateWithSelf=5]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",t[t.UpstreamOutOfDate=7]="UpstreamOutOfDate",t[t.UpstreamBlocked=8]="UpstreamBlocked",t[t.ComputingUpstream=9]="ComputingUpstream",t[t.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",t[t.ContainerOnly=11]="ContainerOnly",e.resolveConfigFileProjectName=t=>e.fileExtensionIs(t,".json")?t:e.combinePaths(t,"tsconfig.json")})(Fl),(e=>{var t,r,n,i=new Date(-864e13),a=new Date(864e13);function o(t,r){return((t,r,n)=>{var i,a=t.get(r);return a||(i=new e.Map,t.set(r,i)),a||i})(t,r)}function s(e,t){return t>e?t:e}function c(t){return e.fileExtensionIs(t,".d.ts")}function l(e){return!!e&&!!e.buildOrder}function u(e){return l(e)?e.buildOrder:e}function d(t,r){return n=>{var i=r?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(t)," - ");i+="".concat(e.flattenDiagnosticMessageText(n.messageText,t.newLine)).concat(t.newLine+t.newLine),t.write(i)}}function p(t,r,n,i){var a=e.createProgramHost(t,r);return a.getModifiedTime=t.getModifiedTime?e=>t.getModifiedTime(e):e.returnUndefined,a.setModifiedTime=t.setModifiedTime?(e,r)=>t.setModifiedTime(e,r):e.noop,a.deleteFile=t.deleteFile?e=>t.deleteFile(e):e.noop,a.reportDiagnostic=n||e.createDiagnosticReporter(t),a.reportSolutionBuilderStatus=i||d(t),a.now=e.maybeBind(t,t.now),a}function _(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function f(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=_(e,t);return r.set(t,i),i}function m(e){return!!e.options}function g(e,t){var r=e.configFileCache.get(t);return r&&m(r)?r:void 0}function h(t,r,n){var i,a=t.configFileCache,o=a.get(n);if(o)return m(o)?o:void 0;var s,c=t.parseConfigFileHost,l=t.baseCompilerOptions,u=t.baseWatchOptions,d=t.extendedConfigCache,p=t.host;return p.getParsedCommandLine?(s=p.getParsedCommandLine(r))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,r)):(c.onUnRecoverableConfigFileDiagnostic=e=>i=e,s=e.getParsedCommandLineOfConfigFile(r,l,c,d,u),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function y(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function v(t,r){for(var n,i,a=new e.Map,o=new e.Map,s=[],c=0,l=r;c<l.length;c++)u(l[c]);return i?{buildOrder:n||e.emptyArray,circularDiagnostics:i}:n||e.emptyArray;function u(r,c){var l=f(t,r);if(!o.has(l))if(a.has(l))c||(i||(i=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join("\r\n")));else{a.set(l,!0),s.push(r);var d=h(t,r,l);if(d&&d.projectReferences)for(var p=0,_=d.projectReferences;p<_.length;p++){var m=_[p];u(y(t,m.path),c||m.circular)}s.pop(),o.set(l,!0),(n||(n=[])).push(r)}}}function b(t){return t.buildOrder||(t=>{var r=v(t,t.rootNames.map((e=>y(t,e))));t.resolvedConfigFilePaths.clear();var n=new e.Map(u(r).map((e=>[f(t,e),!0]))),i={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(t.configFileCache,n,i),e.mutateMapSkippingNewValues(t.projectStatus,n,i),e.mutateMapSkippingNewValues(t.buildInfoChecked,n,i),e.mutateMapSkippingNewValues(t.builderPrograms,n,i),e.mutateMapSkippingNewValues(t.diagnostics,n,i),e.mutateMapSkippingNewValues(t.projectPendingBuild,n,i),e.mutateMapSkippingNewValues(t.projectErrorsReported,n,i),t.watch&&(e.mutateMapSkippingNewValues(t.allWatchedConfigFiles,n,{onDeleteValue:e.closeFileWatcher}),t.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),e.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories,n,{onDeleteValue:t=>t.forEach(e.closeFileWatcherOf)}),e.mutateMapSkippingNewValues(t.allWatchedInputFiles,n,{onDeleteValue:t=>t.forEach(e.closeFileWatcher)}),e.mutateMapSkippingNewValues(t.allWatchedPackageJsonFiles,n,{onDeleteValue:t=>t.forEach(e.closeFileWatcher)})),t.buildOrder=r})(t)}function x(t,r,n){var i=r&&y(t,r),a=b(t);if(l(a))return a;if(i){var o=f(t,i);if(-1===e.findIndex(a,(e=>f(t,e)===o)))return}var s=i?v(t,[i]):a;return e.Debug.assert(!l(s)),e.Debug.assert(!n||void 0!==i),e.Debug.assert(!n||s[s.length-1]===i),n?s.slice(0,s.length-1):s}function E(t){t.cache&&S(t);var r=t.compilerHost,n=t.host,i=t.readFileWithCache,a=r.getSourceFile,o=e.changeCompilerHostLikeToUseCache(n,(e=>_(t,e)),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.call.apply(a,Il([r],e,!1))})),s=o.originalReadFile,c=o.originalFileExists,l=o.originalDirectoryExists,u=o.originalCreateDirectory,d=o.originalWriteFile,p=o.getSourceFileWithCache,f=o.readFileWithCache;t.readFileWithCache=f,r.getSourceFile=p,t.cache={originalReadFile:s,originalFileExists:c,originalDirectoryExists:l,originalCreateDirectory:u,originalWriteFile:d,originalReadFileWithCache:i,originalGetSourceFile:a}}function S(e){if(e.cache){var t=e.cache,r=e.host,n=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache,o=e.typeReferenceDirectiveResolutionCache;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,n.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==a||a.clear(),null==o||o.clear(),e.cache=void 0}}function D(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function T(e,t,r){var n=e.projectPendingBuild,i=n.get(t);(void 0===i||i<r)&&n.set(t,r)}function C(t,r){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&ee(t,e.Diagnostics.Starting_compilation_in_watch_mode),E(t),u(b(t)).forEach((r=>t.projectPendingBuild.set(f(t,r),e.ConfigFileProgramReloadLevel.None))),r&&r.throwIfCancellationRequested())}function k(t,r){return t.projectPendingBuild.delete(r),t.currentInvalidatedProject=void 0,t.diagnostics.has(r)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function A(e,t,n,i,a){var o=!0;return{kind:r.UpdateOutputFileStamps,project:t,projectPath:n,buildOrder:a,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.currentDirectory,updateOutputFileStatmps(){B(e,i,n),o=!1},done:()=>(o&&B(e,i,n),k(e,n))}}function N(o,l,u,d,p,m,g){var v,b,x,E=o===r.Build?n.CreateProgram:n.EmitBundle;return o===r.Build?{kind:o,project:u,projectPath:d,buildOrder:g,getCompilerOptions:()=>m.options,getCurrentDirectory:()=>l.currentDirectory,getBuilderProgram:()=>D(e.identity),getProgram:()=>D((e=>e.getProgramOrUndefined())),getSourceFile:e=>D((t=>t.getSourceFile(e))),getSourceFiles:()=>T((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>T((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>T((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>T((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>T((r=>r.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>T((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>T((r=>r.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>D((r=>r.getSemanticDiagnosticsOfNextAffectedFile&&r.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(e,t,r,i,a)=>e||i?D((n=>{var o,s;return n.emit(e,t,r,i,a||(null===(s=(o=l.host).getCustomTransformers)||void 0===s?void 0:s.call(o,u)))})):(V(n.SemanticDiagnostics,r),E===n.EmitBuildInfo?R(t,r):E===n.Emit?M(t,r,a):void 0),done:S}:{kind:o,project:u,projectPath:d,buildOrder:g,getCompilerOptions:()=>m.options,getCurrentDirectory:()=>l.currentDirectory,emit:(e,t)=>E!==n.EmitBundle?x:U(e,t),done:S};function S(e,t,r){return V(n.Done,e,t,r),k(l,d)}function D(e){return V(n.CreateProgram),v&&e(v)}function T(t){return D(t)||e.emptyArray}function C(){var r,i;if(e.Debug.assert(void 0===v),l.options.dry)return Z(l,e.Diagnostics.A_non_dry_build_would_build_project_0,u),b=t.Success,void(E=n.QueueReferencingProjects);if(l.options.verbose&&Z(l,e.Diagnostics.Building_project_0,u),0===m.fileNames.length)return re(l,d,e.getConfigFileParsingDiagnostics(m)),b=t.None,void(E=n.QueueReferencingProjects);var a=l.host,o=l.compilerHost;l.projectCompilerOptions=m.options,null===(r=l.moduleResolutionCache)||void 0===r||r.update(m.options),null===(i=l.typeReferenceDirectiveResolutionCache)||void 0===i||i.update(m.options),v=a.createProgram(m.fileNames,m.options,o,((t,r,n)=>{var i=t.options,a=t.builderPrograms,o=t.compilerHost;if(!i.force)return a.get(r)||e.readBuilderProgram(n.options,o)})(l,d,m),e.getConfigFileParsingDiagnostics(m),m.projectReferences),l.watch&&(l.lastCachedPackageJsonLookups.set(d,l.moduleResolutionCache&&e.map(l.moduleResolutionCache.getPackageJsonInfoCache().entries(),(e=>{var t=e[0],r=e[1];return[l.host.realpath&&r?_(l,l.host.realpath(t)):t,r]}))),l.builderPrograms.set(d,v)),E++}function A(e,t,r){var n;e.length?(n=O(l,d,v,m,e,t,r),b=n.buildResult,E=n.step):E++}function w(r){e.Debug.assertIsDefined(v),A(Il(Il(Il(Il([],v.getConfigFileParsingDiagnostics(),!0),v.getOptionsDiagnostics(r),!0),v.getGlobalDiagnostics(r),!0),v.getSyntacticDiagnostics(void 0,r),!0),t.SyntaxErrors,"Syntactic")}function F(r){A(e.Debug.checkDefined(v).getSemanticDiagnostics(void 0,r),t.TypeErrors,"Semantic")}function M(r,a,o){var p,f,g,h;e.Debug.assertIsDefined(v),e.Debug.assert(E===n.Emit),v.backupState();var y=[],x=e.emitFilesAndReportErrors(v,(e=>(h||(h=[])).push(e)),void 0,void 0,((e,t,r)=>y.push({name:e,text:t,writeByteOrderMark:r})),a,!1,o||(null===(g=(f=l.host).getCustomTransformers)||void 0===g?void 0:g.call(f,u))).emitResult;if(h)return v.restoreState(),p=O(l,d,v,m,h,t.DeclarationEmitErrors,"Declaration file"),b=p.buildResult,E=p.step,{emitSkipped:!0,diagnostics:x.diagnostics};var S=l.host,D=l.compilerHost,T=t.DeclarationOutputUnchanged,C=i,k=!1,A=e.createDiagnosticCollection(),N=new e.Map;return y.forEach((n=>{var i,a=n.name,o=n.text,u=n.writeByteOrderMark;!k&&c(a)&&(S.fileExists(a)&&l.readFileWithCache(a)===o?i=S.getModifiedTime(a):(T&=~t.DeclarationOutputUnchanged,k=!0)),N.set(_(l,a),a),e.writeFile(r?{writeFile:r}:D,A,a,o,u),void 0!==i&&(C=s(i,C))})),B(A,N,C,k,y.length?y[0].name:e.getFirstProjectOutput(m,!S.useCaseSensitiveFileNames()),T),x}function R(r,i){e.Debug.assertIsDefined(v),e.Debug.assert(E===n.EmitBuildInfo);var a=v.emitBuildInfo(r,i);return a.diagnostics.length&&(te(l,a.diagnostics),l.diagnostics.set(d,Il(Il([],l.diagnostics.get(d),!0),a.diagnostics,!0)),b=t.EmitErrors&b),a.emittedFiles&&l.write&&a.emittedFiles.forEach((e=>P(l,m,e))),I(l,v,m),E=n.QueueReferencingProjects,a}function B(r,i,o,s,c,u){var p,_=r.getDiagnostics();if(_.length)return p=O(l,d,v,m,_,t.EmitErrors,"Emit"),b=p.buildResult,E=p.step,_;l.write&&i.forEach((e=>P(l,m,e)));var f=L(l,m,o,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,i);return l.diagnostics.delete(d),l.projectStatus.set(d,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?a:f,oldestOutputFileName:c}),I(l,v,m),E=n.QueueReferencingProjects,b=u,_}function U(a,s){var c,v;if(e.Debug.assert(o===r.UpdateBundle),l.options.dry)return Z(l,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,u),b=t.Success,void(E=n.QueueReferencingProjects);l.options.verbose&&Z(l,e.Diagnostics.Updating_output_of_project_0,u);var S=l.compilerHost;l.projectCompilerOptions=m.options;var D=e.emitUsingBuildInfo(m,S,(e=>{var t=y(l,e.path);return h(l,t,f(l,t))}),s||(null===(v=(c=l.host).getCustomTransformers)||void 0===v?void 0:v.call(c,u)));if(e.isString(D))return Z(l,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,u,Q(l,D)),E=n.BuildInvalidatedProjectOfBundle,x=N(r.Build,l,u,d,p,m,g);e.Debug.assert(!!D.length);var T=e.createDiagnosticCollection(),C=new e.Map;return D.forEach((t=>{var r=t.name,n=t.text,i=t.writeByteOrderMark;C.set(_(l,r),r),e.writeFile(a?{writeFile:a}:S,T,r,n,i)})),{emitSkipped:!1,diagnostics:B(T,C,i,!1,D[0].name,t.DeclarationOutputUnchanged)}}function V(t,r,i,a){for(;E<=t&&E<n.Done;){var o=E;switch(E){case n.CreateProgram:C();break;case n.SyntaxDiagnostics:w(r);break;case n.SemanticDiagnostics:F(r);break;case n.Emit:M(i,r,a);break;case n.EmitBuildInfo:R(i,r);break;case n.EmitBundle:U(i,a);break;case n.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(x).done(r,i,a),E=n.Done;break;case n.QueueReferencingProjects:j(l,u,d,p,m,g,e.Debug.checkDefined(b)),E++;break;case n.Done:default:e.assertType(E)}e.Debug.assert(E>o)}}}function w(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force&&0!==n.fileNames.length&&!e.getConfigFileParsingDiagnostics(n).length&&e.isIncrementalCompilation(n.options))}function F(t,n,i){if(t.projectPendingBuild.size&&!l(n)){if(t.currentInvalidatedProject)return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,n)?t.currentInvalidatedProject:void 0;for(var a=t.options,o=t.projectPendingBuild,s=0;s<n.length;s++){var c=n[s],u=f(t,c),d=t.projectPendingBuild.get(u);if(void 0!==d){i&&(i=!1,ae(t,n));var p=h(t,c,u);if(p){d===e.ConfigFileProgramReloadLevel.Full?(J(t,c,u,p),$(t,u,p),G(t,c,u,p),q(t,c,u,p),X(t,c,u,p)):d===e.ConfigFileProgramReloadLevel.Partial&&(p.fileNames=e.getFileNamesFromConfigSpecs(p.options.configFile.configFileSpecs,e.getDirectoryPath(c),p.options,t.parseConfigFileHost),e.updateErrorForNoInputFiles(p.fileNames,c,p.options.configFile.configFileSpecs,p.errors,e.canJsonReportNoInputFiles(p.raw)),q(t,c,u,p),X(t,c,u,p));var _=R(t,p,u);if(oe(t,c,_),!a.force){if(_.type===e.UpToDateStatusType.UpToDate){re(t,u,e.getConfigFileParsingDiagnostics(p)),o.delete(u),a.dry&&Z(t,e.Diagnostics.Project_0_is_up_to_date,c);continue}if(_.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return re(t,u,e.getConfigFileParsingDiagnostics(p)),A(t,c,u,p,n)}if(_.type!==e.UpToDateStatusType.UpstreamBlocked){if(_.type!==e.UpToDateStatusType.ContainerOnly)return N(w(t,_,p)?r.Build:r.UpdateBundle,t,c,u,s,p,n);re(t,u,e.getConfigFileParsingDiagnostics(p)),o.delete(u)}else re(t,u,e.getConfigFileParsingDiagnostics(p)),o.delete(u),a.verbose&&Z(t,_.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,_.upstreamProjectName)}else ne(t,u),o.delete(u)}}}}function P(e,t,r){var n=e.write;n&&t.options.listEmittedFiles&&n("TSFILE: ".concat(r))}function I(t,r,n){r?(r&&t.write&&e.listFiles(r,t.write),t.host.afterProgramEmitAndDiagnostics&&t.host.afterProgramEmitAndDiagnostics(r),r.releaseProgram()):t.host.afterEmitBundle&&t.host.afterEmitBundle(n),t.projectCompilerOptions=t.baseCompilerOptions}function O(r,i,a,o,s,c,l){var u=!(c&t.SyntaxErrors)&&a&&!e.outFile(a.getCompilerOptions());return re(r,i,s),r.projectStatus.set(i,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(l," errors")}),u?{buildResult:c,step:n.EmitBuildInfo}:(I(r,a,o),{buildResult:c,step:n.QueueReferencingProjects})}function M(t,r,n,i){if(n<e.getModifiedTime(t.host,r))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:i,newerInputFileName:r}}function R(t,r,n){if(void 0===r)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var o=t.projectStatus.get(n);if(void 0!==o)return o;var l=((t,r,n)=>{for(var o=!!t.options.force,l=void 0,u=i,d=t.host,p=0,_=r.fileNames;p<_.length;p++){var m=_[p];if(!d.fileExists(m))return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(m," does not exist")};if(!o){var g=e.getModifiedTime(d,m);g>u&&(l=m,u=g)}}if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};var y,v=e.getAllProjectOutputs(r,!d.useCaseSensitiveFileNames()),b="(none)",x=a,E="(none)",S=i,D=i,T=!1;if(!o)for(var C=0,k=v;C<k.length;C++){var A=k[C];if(!d.fileExists(A)){y=A;break}var N=e.getModifiedTime(d,A);if(N<x&&(x=N,b=A),N<u){T=!0;break}N>S&&(S=N,E=A),c(A)&&(D=s(D,e.getModifiedTime(d,A)))}var w,F=!1,P=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var I=0,O=r.projectReferences;I<O.length;I++){var L=O[I];P=P||!!L.prepend;var B=e.resolveProjectReferencePath(L),j=f(t,B),U=R(t,h(t,B,j),j);if(U.type!==e.UpToDateStatusType.ComputingUpstream&&U.type!==e.UpToDateStatusType.ContainerOnly){if(U.type===e.UpToDateStatusType.Unbuildable||U.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:L.path,upstreamProjectBlocked:U.type===e.UpToDateStatusType.UpstreamBlocked};if(U.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:L.path};if(!o&&!y){if(U.newestInputFileTime&&U.newestInputFileTime<=x)continue;if(U.newestDeclarationFileContentChangedTime&&U.newestDeclarationFileContentChangedTime<=x){F=!0,w=L.path;continue}return e.Debug.assert(void 0!==b,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:b,newerProjectName:L.path}}}}}if(void 0!==y)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:y};if(T)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:b,newerInputFileName:l};var V=M(t,r.options.configFilePath,x,b);if(V)return V;var z=e.forEach(r.options.configFile.extendedSourceFiles||e.emptyArray,(e=>M(t,e,x,b)));if(z)return z;var K=e.forEach(t.lastCachedPackageJsonLookups.get(n)||e.emptyArray,(e=>{var r=e[0];return M(t,r,x,b)}));if(K)return K;if(!o&&!t.buildInfoChecked.has(n)){t.buildInfoChecked.set(n,!0);var W=e.getTsBuildInfoEmitOutputFilePath(r.options);if(W){var H=t.readFileWithCache(W),J=H&&e.getBuildInfo(H);if(J&&(J.bundle||J.program)&&J.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:J.version}}}return P&&F?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:b,newerProjectName:w}:{type:F?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:D,newestInputFileTime:u,newestOutputFileTime:S,newestInputFileName:l,newestOutputFileName:E,oldestOutputFileName:b}})(t,r,n);return t.projectStatus.set(n,l),l}function L(t,r,n,i,a){if(r.options.noEmit)return n;var o=t.host,l=e.getAllProjectOutputs(r,!o.useCaseSensitiveFileNames());if(!a||l.length!==a.size)for(var u=!!t.options.verbose,d=o.now?o.now():new Date,p=0,f=l;p<f.length;p++){var m=f[p];a&&a.has(_(t,m))||(u&&(u=!1,Z(t,i,r.options.configFilePath)),c(m)&&(n=s(n,e.getModifiedTime(o,m))),o.setModifiedTime(m,d))}return n}function B(t,r,n){if(t.options.dry)return Z(t,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,r.options.configFilePath);var a=L(t,r,i,e.Diagnostics.Updating_output_timestamps_of_project_0);t.projectStatus.set(n,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:a,oldestOutputFileName:e.getFirstProjectOutput(r,!t.host.useCaseSensitiveFileNames())})}function j(r,n,i,a,o,s,c){if(!(c&t.AnyErrors)&&o.options.composite)for(var l=a+1;l<s.length;l++){var u=s[l],d=f(r,u);if(!r.projectPendingBuild.has(d)){var p=h(r,u,d);if(p&&p.projectReferences)for(var _=0,m=p.projectReferences;_<m.length;_++){var g=m[_];if(f(r,y(r,g.path))===i){var v=r.projectStatus.get(d);if(v)switch(v.type){case e.UpToDateStatusType.UpToDate:if(c&t.DeclarationOutputUnchanged){g.prepend?r.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:v.oldestOutputFileName,newerProjectName:n}):v.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:c&t.DeclarationOutputUnchanged||r.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:v.type===e.UpToDateStatusType.OutOfDateWithPrepend?v.outOfDateOutputFileName:v.oldestOutputFileName,newerProjectName:n});break;case e.UpToDateStatusType.UpstreamBlocked:f(r,y(r,v.upstreamProjectName))===i&&D(r,d)}T(r,d,e.ConfigFileProgramReloadLevel.None);break}}}}}function U(t,r,n,i,a,o){var s=x(t,r,o);if(!s)return e.ExitStatus.InvalidProject_OutputsSkipped;C(t,n);for(var c=!0,d=0;;){var p=F(t,s,c);if(!p)break;c=!1,p.done(n,i,null==a?void 0:a(p.project)),t.diagnostics.has(p.projectPath)||d++}return S(t),ie(t,s),((e,t)=>{if(e.watchAllProjectsPending){e.watchAllProjectsPending=!1;for(var r=0,n=u(t);r<n.length;r++){var i=n[r],a=f(e,i),o=h(e,i,a);J(e,i,a,o),$(e,a,o),o&&(G(e,i,a,o),q(e,i,a,o),X(e,i,a,o))}}})(t,s),l(s)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:s.some((e=>t.diagnostics.has(f(t,e))))?d?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function V(t,r,n){var i=x(t,r,n);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;if(l(i))return te(t,i.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var a=t.options,o=t.host,s=a.dry?[]:void 0,c=0,u=i;c<u.length;c++){var d=u[c],p=f(t,d),m=h(t,d,p);if(void 0!==m){var g=e.getAllProjectOutputs(m,!o.useCaseSensitiveFileNames());if(g.length)for(var y=new e.Set(m.fileNames.map((e=>_(t,e)))),v=0,b=g;v<b.length;v++){var E=b[v];y.has(_(t,E))||o.fileExists(E)&&(s?s.push(E):(o.deleteFile(E),z(t,p,e.ConfigFileProgramReloadLevel.None)))}}else ne(t,p)}return s&&Z(t,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,s.map((e=>"\r\n * ".concat(e))).join("")),e.ExitStatus.Success}function z(t,r,n){t.host.getParsedCommandLine&&n===e.ConfigFileProgramReloadLevel.Partial&&(n=e.ConfigFileProgramReloadLevel.Full),n===e.ConfigFileProgramReloadLevel.Full&&(t.configFileCache.delete(r),t.buildOrder=void 0),t.needsSummary=!0,D(t,r),T(t,r,n),E(t)}function K(e,t,r){e.reportFileChangeDetected=!0,z(e,t,r),W(e)}function W(e){var t=e.hostWithWatch;t.setTimeout&&t.clearTimeout&&(e.timerToBuildInvalidatedProject&&t.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=t.setTimeout(H,250,e))}function H(t){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),ee(t,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var r=b(t),n=F(t,r,!1);n&&(n.done(),t.projectPendingBuild.size)?t.watch&&!t.timerToBuildInvalidatedProject&&W(t):(S(t),ie(t,r))}function J(t,r,n,i){t.watch&&!t.allWatchedConfigFiles.has(n)&&t.allWatchedConfigFiles.set(n,t.watchFile(r,(()=>{K(t,n,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.ConfigFile,r))}function $(t,r,n){e.updateSharedExtendedConfigFileWatcher(r,null==n?void 0:n.options,t.allWatchedExtendedConfigFiles,((r,i)=>t.watchFile(r,(()=>{var r;return null===(r=t.allWatchedExtendedConfigFiles.get(i))||void 0===r?void 0:r.projects.forEach((r=>K(t,r,e.ConfigFileProgramReloadLevel.Full)))}),e.PollingInterval.High,null==n?void 0:n.watchOptions,e.WatchType.ExtendedConfigFile)),(e=>_(t,e)))}function G(t,r,n,i){t.watch&&e.updateWatchingWildcardDirectories(o(t.allWatchedWildcardDirectories,n),new e.Map(e.getEntries(i.wildcardDirectories)),((a,o)=>t.watchDirectory(a,(o=>{var s;e.isIgnoredFileFromWildCardWatching({watchedDirPath:_(t,a),fileOrDirectory:o,fileOrDirectoryPath:_(t,o),configFileName:r,currentDirectory:t.currentDirectory,options:i.options,program:t.builderPrograms.get(n)||(null===(s=g(t,n))||void 0===s?void 0:s.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:e=>t.writeLog(e),toPath:e=>_(t,e)})||K(t,n,e.ConfigFileProgramReloadLevel.Partial)}),o,null==i?void 0:i.watchOptions,e.WatchType.WildcardDirectory,r)))}function q(t,r,n,i){t.watch&&e.mutateMap(o(t.allWatchedInputFiles,n),e.arrayToMap(i.fileNames,(e=>_(t,e))),{createNewValue:(a,o)=>t.watchFile(o,(()=>K(t,n,e.ConfigFileProgramReloadLevel.None)),e.PollingInterval.Low,null==i?void 0:i.watchOptions,e.WatchType.SourceFile,r),onDeleteValue:e.closeFileWatcher})}function X(t,r,n,i){t.watch&&t.lastCachedPackageJsonLookups&&e.mutateMap(o(t.allWatchedPackageJsonFiles,n),new e.Map(t.lastCachedPackageJsonLookups.get(n)),{createNewValue:(a,o)=>t.watchFile(a,(()=>K(t,n,e.ConfigFileProgramReloadLevel.Full)),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.PackageJson,r),onDeleteValue:e.closeFileWatcher})}function Y(t,r,n,i,a){var o=((t,r,n,i,a)=>{var o,s,c=r,l=r,u=c.getCurrentDirectory(),d=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),p=(o=i,s={},e.commonOptionsWithBuild.forEach((t=>{e.hasProperty(o,t.name)&&(s[t.name]=o[t.name])})),s),_=e.createCompilerHostFromProgramHost(c,(()=>D.projectCompilerOptions));e.setGetSourceFileAsHashVersioned(_,c),_.getParsedCommandLine=e=>h(D,e,f(D,e)),_.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),_.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var m=_.resolveModuleNames?void 0:e.createModuleResolutionCache(u,d),g=_.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(u,d,void 0,null==m?void 0:m.getPackageJsonInfoCache());if(!_.resolveModuleNames){var y=(t,r,n,i)=>e.resolveModuleName(t,n,D.projectCompilerOptions,_,m,i,r).resolvedModule;_.resolveModuleNames=(t,r,n,i,a,o)=>e.loadWithModeAwareCache(e.Debug.checkEachDefined(t),e.Debug.checkDefined(o),r,i,y),_.getModuleResolutionCache=()=>m}if(!_.resolveTypeReferenceDirectives){var v=(t,r,n)=>e.resolveTypeReferenceDirective(t,r,D.projectCompilerOptions,_,n,D.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective;_.resolveTypeReferenceDirectives=(t,r,n)=>e.loadWithLocalCache(e.Debug.checkEachDefined(t),r,n,v)}var b=e.createWatchFactory(l,i),x=b.watchFile,E=b.watchDirectory,S=b.writeLog,D={host:c,hostWithWatch:l,currentDirectory:u,getCanonicalFileName:d,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),write:e.maybeBind(c,c.trace),options:i,baseCompilerOptions:p,rootNames:n,baseWatchOptions:a,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:_,moduleResolutionCache:m,typeReferenceDirectiveResolutionCache:g,buildOrder:void 0,readFileWithCache:e=>c.readFile(e),projectCompilerOptions:p,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,currentInvalidatedProject:void 0,watch:t,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:x,watchDirectory:E,writeLog:S};return D})(t,r,n,i,a);return{build:(e,t,r,n)=>U(o,e,t,r,n),clean:e=>V(o,e),buildReferences:(e,t,r,n)=>U(o,e,t,r,n,!0),cleanReferences:e=>V(o,e,!0),getNextInvalidatedProject:e=>(C(o,e),F(o,b(o),!1)),getBuildOrder:()=>b(o),getUpToDateStatusOfProject(e){var t=y(o,e),r=f(o,t);return R(o,h(o,t,r),r)},invalidateProject:(t,r)=>z(o,t,r||e.ConfigFileProgramReloadLevel.None),buildNextInvalidatedProject:()=>H(o),getAllParsedConfigs:()=>e.arrayFrom(e.mapDefinedIterator(o.configFileCache.values(),(e=>m(e)?e:void 0))),close:()=>(t=>{e.clearMap(t.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(t.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(t.allWatchedWildcardDirectories,(t=>e.clearMap(t,e.closeFileWatcherOf))),e.clearMap(t.allWatchedInputFiles,(t=>e.clearMap(t,e.closeFileWatcher))),e.clearMap(t.allWatchedPackageJsonFiles,(t=>e.clearMap(t,e.closeFileWatcher)))})(o)}}function Q(t,r){return e.convertToRelativePath(r,t.currentDirectory,(e=>t.getCanonicalFileName(e)))}function Z(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,Il([r],n,!1)))}function ee(t,r){for(var n,i,a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];null===(i=(n=t.hostWithWatch).onWatchStatusChange)||void 0===i||i.call(n,e.createCompilerDiagnostic.apply(void 0,Il([r],a,!1)),t.host.getNewLine(),t.baseCompilerOptions)}function te(e,t){var r=e.host;t.forEach((e=>r.reportDiagnostic(e)))}function re(e,t,r){te(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function ne(e,t){re(e,t,[e.configFileCache.get(t)])}function ie(t,r){if(t.needsSummary){t.needsSummary=!1;var n=t.watch||!!t.host.reportErrorSummary,i=t.diagnostics,a=0;l(r)?(ae(t,r.buildOrder),te(t,r.circularDiagnostics),n&&(a+=e.getErrorCountForSummary(r.circularDiagnostics))):(r.forEach((r=>{var n=f(t,r);t.projectErrorsReported.has(n)||te(t,i.get(n)||e.emptyArray)})),n&&i.forEach((t=>a+=e.getErrorCountForSummary(t)))),t.watch?ee(t,e.getWatchErrorSummaryDiagnosticMessage(a),a):t.host.reportErrorSummary&&t.host.reportErrorSummary(a)}}function ae(t,r){t.options.verbose&&Z(t,e.Diagnostics.Projects_in_this_build_Colon_0,r.map((e=>"\r\n * "+Q(t,e))).join(""))}function oe(t,r,n){t.options.verbose&&((t,r,n)=>{if(t.options.force&&(n.type===e.UpToDateStatusType.UpToDate||n.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return Z(t,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,Q(t,r));switch(n.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Q(t,r),Q(t,n.outOfDateOutputFileName),Q(t,n.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Q(t,r),Q(t,n.outOfDateOutputFileName),Q(t,n.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Q(t,r),Q(t,n.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(void 0!==n.newestInputFileTime)return Z(t,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Q(t,r),Q(t,n.newestInputFileName||""),Q(t,n.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Q(t,r),Q(t,n.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Z(t,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Q(t,r));case e.UpToDateStatusType.UpstreamOutOfDate:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Q(t,r),Q(t,n.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Z(t,n.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Q(t,r),Q(t,n.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Z(t,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Q(t,r),n.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Z(t,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Q(t,r),n.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(n)}})(t,r,n)}!(e=>{e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"})(t||(t={})),e.isCircularBuildOrder=l,e.getBuildOrderFromAnyBuildOrder=u,e.createBuilderStatusReporter=d,e.createSolutionBuilderHost=(t,r,n,i,a)=>{void 0===t&&(t=e.sys);var o=p(t,r,n,i);return o.reportErrorSummary=a,o},e.createSolutionBuilderWithWatchHost=(t,r,n,i,a)=>{void 0===t&&(t=e.sys);var o=p(t,r,n,i),s=e.createWatchHost(t,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=(e,t,r)=>Y(!1,e,t,r),e.createSolutionBuilderWithWatch=(e,t,r,n)=>Y(!0,e,t,r,n),(e=>{e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(r=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={})),(e=>{e[e.CreateProgram=0]="CreateProgram",e[e.SyntaxDiagnostics=1]="SyntaxDiagnostics",e[e.SemanticDiagnostics=2]="SemanticDiagnostics",e[e.Emit=3]="Emit",e[e.EmitBundle=4]="EmitBundle",e[e.EmitBuildInfo=5]="EmitBuildInfo",e[e.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=7]="QueueReferencingProjects",e[e.Done=8]="Done"})(n||(n={}))})(Fl),(e=>{var t,r;(t=e.server||(e.server={})).ActionSet="action::set",t.ActionInvalidate="action::invalidate",t.ActionPackageInstalled="action::packageInstalled",t.EventTypesRegistry="event::typesRegistry",t.EventBeginInstallTypes="event::beginInstallTypes",t.EventEndInstallTypes="event::endInstallTypes",t.EventInitializationFailed="event::initializationFailed",(r=t.Arguments||(t.Arguments={})).GlobalCacheLocation="--globalTypingsCacheLocation",r.LogFile="--logFile",r.EnableTelemetry="--enableTelemetry",r.TypingSafeListLocation="--typingSafeListLocation",r.TypesMapLocation="--typesMapLocation",r.NpmLocation="--npmLocation",r.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",t.hasArgument=t=>e.sys.args.indexOf(t)>=0,t.findArgument=t=>{var r=e.sys.args.indexOf(t);return r>=0&&r<e.sys.args.length-1?e.sys.args[r+1]:void 0},t.nowString=()=>{var t=new Date;return"".concat(e.padLeft(t.getHours().toString(),2,"0"),":").concat(e.padLeft(t.getMinutes().toString(),2,"0"),":").concat(e.padLeft(t.getSeconds().toString(),2,"0"),".").concat(e.padLeft(t.getMilliseconds().toString(),3,"0"))}})(Fl),(e=>{!(t=>{function r(t,r){return new e.Version(e.getProperty(r,"ts".concat(e.versionMajorMinor))||e.getProperty(r,"latest")).compareTo(t.version)<=0}t.isTypingUpToDate=r;var n,i=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];function a(e){return t.nodeCoreModules.has(e)?"node":e}function o(e,t){if(!e)return 1;if(e.length>214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=o(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=o(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function s(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot be empty");case 2:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' should be less than ").concat(214," characters");case 3:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '.'");case 4:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '_'");case 5:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.prefixedNodeCoreModuleList=i.map((e=>"node:".concat(e))),t.nodeCoreModuleList=Il(Il([],i,!0),t.prefixedNodeCoreModuleList,!0),t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=a,t.loadSafeList=(t,r)=>{var n=e.readConfigFile(r,(e=>t.readFile(e)));return new e.Map(e.getEntries(n.config))},t.loadTypesMap=(t,r)=>{var n=e.readConfigFile(r,(e=>t.readFile(e)));if(n.config)return new e.Map(e.getEntries(n.config.simpleMap))},t.discoverTypings=(t,n,i,o,s,c,l,u,d)=>{if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var p=new e.Map;i=e.mapDefined(i,(t=>{var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r}));var _=[];l.include&&S(l.include,"Explicitly included types");var f=l.exclude||[],m=new e.Set(i.map(e.getDirectoryPath));m.add(o),m.forEach((t=>{D(e.combinePaths(t,"package.json"),_),D(e.combinePaths(t,"bower.json"),_),T(e.combinePaths(t,"bower_components"),_),T(e.combinePaths(t,"node_modules"),_)})),l.disableFilenameBasedTypeAcquisition||(t=>{var r=e.mapDefined(t,(t=>{if(e.hasJSFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}}));r.length&&S(r,"Inferred typings from file names"),e.some(t,(t=>e.fileExtensionIs(t,".jsx")))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),E("react"))})(i),u&&S(e.deduplicate(u.map(a),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach(((e,t)=>{var n=d.get(t);p.has(t)&&void 0===p.get(t)&&void 0!==n&&r(e,n)&&p.set(t,e.typingLocation)}));for(var g=0,h=f;g<h.length;g++){var y=h[g];p.delete(y)&&n&&n("Typing for ".concat(y," is in exclude list, will be ignored."))}var v=[],b=[];p.forEach(((e,t)=>{void 0!==e?b.push(e):v.push(t)}));var x={cachedTypingPaths:b,newTypingNames:v,filesToWatch:_};return n&&n("Result: ".concat(JSON.stringify(x))),x;function E(e){p.has(e)||p.set(e,void 0)}function S(t,r){n&&n("".concat(r,": ").concat(JSON.stringify(t))),e.forEach(t,E)}function D(r,n){if(t.fileExists(r)){n.push(r);var i=e.readConfigFile(r,(e=>t.readFile(e))).config;S(e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys),"Typing names in '".concat(r,"' dependencies"))}}function T(r,i){if(i.push(r),t.directoryExists(r)){var a=t.readDirectory(r,[".json"],void 0,void 0,2);n&&n("Searching for typing names in ".concat(r,"; all files: ").concat(JSON.stringify(a)));for(var o=[],s=0,c=a;s<c.length;s++){var l=c[s],u=e.normalizePath(l),d=e.getBaseFileName(u);if("package.json"===d||"bower.json"===d){var _=e.readConfigFile(u,(e=>t.readFile(e))).config;if(("package.json"!==d||!_._requiredBy||0!==e.filter(_._requiredBy,(e=>"#"===e[0]||"/"===e)).length)&&_.name){var f=_.types||_.typings;if(f){var m=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(u));n&&n(" Package '".concat(_.name,"' provides its own types.")),p.set(_.name,m)}else o.push(_.name)}}}S(o," Found package names")}}},(n=t.NameValidationResult||(t.NameValidationResult={}))[n.Ok=0]="Ok",n[n.EmptyName=1]="EmptyName",n[n.NameTooLong=2]="NameTooLong",n[n.NameStartsWithDot=3]="NameStartsWithDot",n[n.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",n[n.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t.validatePackageName=e=>o(e,!0),t.renderPackageNameValidationFailure=(e,t)=>"object"==typeof e?s(t,e.result,e.name,e.isScopeName):s(t,e,t,!1)})(e.JsTyping||(e.JsTyping={}))})(Fl),function(e){var t,r,n,i,a,o,s,c,l,u,d,p,_,f,m,g,h,y,v,b;function x(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:r.Ignore,trimTrailingWhitespace:!0}}v=e.ScriptSnapshot||(e.ScriptSnapshot={}),b=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=()=>{},e}(),v.fromString=e=>new b(e),(y=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[y.Dependencies=1]="Dependencies",y[y.DevDependencies=2]="DevDependencies",y[y.PeerDependencies=4]="PeerDependencies",y[y.OptionalDependencies=8]="OptionalDependencies",y[y.All=15]="All",(h=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[h.Off=0]="Off",h[h.On=1]="On",h[h.Auto=2]="Auto",(g=e.LanguageServiceMode||(e.LanguageServiceMode={}))[g.Semantic=0]="Semantic",g[g.PartialSemantic=1]="PartialSemantic",g[g.Syntactic=2]="Syntactic",e.emptyOptions={},(m=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",m.TwentyTwenty="2020",(f=e.CompletionTriggerKind||(e.CompletionTriggerKind={}))[f.Invoked=1]="Invoked",f[f.TriggerCharacter=2]="TriggerCharacter",f[f.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(_=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",_.Parameter="Parameter",_.Enum="Enum",(p=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",p.definition="definition",p.reference="reference",p.writtenReference="writtenReference",(e=>{e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"})(t=e.IndentStyle||(e.IndentStyle={})),(e=>{e.Ignore="ignore",e.Insert="insert",e.Remove="remove"})(r=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=x,e.testFormatSettings=x("\n"),(d=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[d.aliasName=0]="aliasName",d[d.className=1]="className",d[d.enumName=2]="enumName",d[d.fieldName=3]="fieldName",d[d.interfaceName=4]="interfaceName",d[d.keyword=5]="keyword",d[d.lineBreak=6]="lineBreak",d[d.numericLiteral=7]="numericLiteral",d[d.stringLiteral=8]="stringLiteral",d[d.localName=9]="localName",d[d.methodName=10]="methodName",d[d.moduleName=11]="moduleName",d[d.operator=12]="operator",d[d.parameterName=13]="parameterName",d[d.propertyName=14]="propertyName",d[d.punctuation=15]="punctuation",d[d.space=16]="space",d[d.text=17]="text",d[d.typeParameterName=18]="typeParameterName",d[d.enumMemberName=19]="enumMemberName",d[d.functionName=20]="functionName",d[d.regularExpressionLiteral=21]="regularExpressionLiteral",d[d.link=22]="link",d[d.linkName=23]="linkName",d[d.linkText=24]="linkText",(u=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",u.Region="region",u.Code="code",u.Imports="imports",(l=e.OutputFileType||(e.OutputFileType={}))[l.JavaScript=0]="JavaScript",l[l.SourceMap=1]="SourceMap",l[l.Declaration=2]="Declaration",(c=e.EndOfLineState||(e.EndOfLineState={}))[c.None=0]="None",c[c.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",c[c.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",c[c.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",c[c.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",c[c.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",c[c.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(s=e.TokenClass||(e.TokenClass={}))[s.Punctuation=0]="Punctuation",s[s.Keyword=1]="Keyword",s[s.Operator=2]="Operator",s[s.Comment=3]="Comment",s[s.Whitespace=4]="Whitespace",s[s.Identifier=5]="Identifier",s[s.NumberLiteral=6]="NumberLiteral",s[s.BigIntLiteral=7]="BigIntLiteral",s[s.StringLiteral=8]="StringLiteral",s[s.RegExpLiteral=9]="RegExpLiteral",(o=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",o.warning="warning",o.keyword="keyword",o.scriptElement="script",o.moduleElement="module",o.classElement="class",o.localClassElement="local class",o.interfaceElement="interface",o.typeElement="type",o.enumElement="enum",o.enumMemberElement="enum member",o.variableElement="var",o.localVariableElement="local var",o.functionElement="function",o.localFunctionElement="local function",o.memberFunctionElement="method",o.memberGetAccessorElement="getter",o.memberSetAccessorElement="setter",o.memberVariableElement="property",o.constructorImplementationElement="constructor",o.callSignatureElement="call",o.indexSignatureElement="index",o.constructSignatureElement="construct",o.parameterElement="parameter",o.typeParameterElement="type parameter",o.primitiveType="primitive type",o.label="label",o.alias="alias",o.constElement="const",o.letElement="let",o.directory="directory",o.externalModuleName="external module name",o.jsxAttribute="JSX attribute",o.string="string",o.link="link",o.linkName="link name",o.linkText="link text",(a=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",a.publicMemberModifier="public",a.privateMemberModifier="private",a.protectedMemberModifier="protected",a.exportedModifier="export",a.ambientModifier="declare",a.staticModifier="static",a.abstractModifier="abstract",a.optionalModifier="optional",a.deprecatedModifier="deprecated",a.dtsModifier=".d.ts",a.tsModifier=".ts",a.tsxModifier=".tsx",a.jsModifier=".js",a.jsxModifier=".jsx",a.jsonModifier=".json",a.dmtsModifier=".d.mts",a.mtsModifier=".mts",a.mjsModifier=".mjs",a.dctsModifier=".d.cts",a.ctsModifier=".cts",a.cjsModifier=".cjs",(i=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",i.identifier="identifier",i.keyword="keyword",i.numericLiteral="number",i.bigintLiteral="bigint",i.operator="operator",i.stringLiteral="string",i.whiteSpace="whitespace",i.text="text",i.punctuation="punctuation",i.className="class name",i.enumName="enum name",i.interfaceName="interface name",i.moduleName="module name",i.typeParameterName="type parameter name",i.typeAliasName="type alias name",i.parameterName="parameter name",i.docCommentTagName="doc comment tag name",i.jsxOpenTagName="jsx open tag name",i.jsxCloseTagName="jsx close tag name",i.jsxSelfClosingTagName="jsx self closing tag name",i.jsxAttribute="jsx attribute",i.jsxText="jsx text",i.jsxAttributeStringLiteralValue="jsx attribute string literal value",(n=e.ClassificationType||(e.ClassificationType={}))[n.comment=1]="comment",n[n.identifier=2]="identifier",n[n.keyword=3]="keyword",n[n.numericLiteral=4]="numericLiteral",n[n.operator=5]="operator",n[n.stringLiteral=6]="stringLiteral",n[n.regularExpressionLiteral=7]="regularExpressionLiteral",n[n.whiteSpace=8]="whiteSpace",n[n.text=9]="text",n[n.punctuation=10]="punctuation",n[n.className=11]="className",n[n.enumName=12]="enumName",n[n.interfaceName=13]="interfaceName",n[n.moduleName=14]="moduleName",n[n.typeParameterName=15]="typeParameterName",n[n.typeAliasName=16]="typeAliasName",n[n.parameterName=17]="parameterName",n[n.docCommentTagName=18]="docCommentTagName",n[n.jsxOpenTagName=19]="jsxOpenTagName",n[n.jsxCloseTagName=20]="jsxCloseTagName",n[n.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",n[n.jsxAttribute=22]="jsxAttribute",n[n.jsxText=23]="jsxText",n[n.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",n[n.bigintLiteral=25]="bigintLiteral"}(Fl),(e=>{function t(t){switch(t.kind){case 253:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 163:case 202:case 166:case 165:case 294:case 295:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 291:case 284:return 1;case 162:case 257:case 258:case 181:return 2;case 343:return void 0===t.name?3:2;case 297:case 256:return 3;case 260:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 259:case 268:case 269:case 264:case 265:case 270:case 271:return 7;case 303:return 5}return 7}function r(t){for(;160===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e){return e.expression}function i(e){return e.tag}function a(e){return e.tagName}function o(t,r,n,i,a){var o=i?c(t):s(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function s(e){return d(e)?e.parent:e}function c(e){return d(e)||p(e)?e.parent:e}function l(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function u(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function d(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function p(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}var _;e.scanner=e.createScanner(99,!0),(_=e.SemanticMeaning||(e.SemanticMeaning={}))[_.None=0]="None",_[_.Value=1]="Value",_[_.Type=2]="Type",_[_.Namespace=4]="Namespace",_[_.All=7]="All",e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=n=>{var i=(n=F(n)).parent;if(303===n.kind)return 1;if(e.isExportAssignment(i)||e.isExportSpecifier(i)||e.isExternalModuleReference(i)||e.isImportSpecifier(i)||e.isImportClause(i)||e.isImportEqualsDeclaration(i)&&n===i.name){for(var a=i;a;){if(e.isImportEqualsDeclaration(a)||e.isImportClause(a)||e.isExportDeclaration(a))return a.isTypeOnly?2:7;a=a.parent}return 7}return r(n)?(t=>{var r=160===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&264===r.parent.kind?7:4})(n):e.isDeclarationName(n)?t(i):e.isEntityName(n)&&e.findAncestor(n,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:(t=>{switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 108:return!e.isExpressionNode(t);case 191:return!0}switch(t.parent.kind){case 177:return!0;case 199:return!t.parent.isTypeOf;case 227:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1})(n)?2:(e=>(e=>{var t=e,r=!0;if(160===t.parent.kind){for(;t.parent&&160===t.parent.kind;)t=t.parent;r=t.right===e}return 177===t.parent.kind&&!r})(e)||(e=>{var t=e,r=!0;if(205===t.parent.kind){for(;t.parent&&205===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&227===t.parent.kind&&290===t.parent.parent.kind){var n=t.parent.parent.parent;return 256===n.kind&&117===t.parent.parent.token||257===n.kind&&94===t.parent.parent.token}return!1})(e))(n)?4:e.isTypeParameterDeclaration(i)?(e.Debug.assert(e.isJSDocTemplateTag(i.parent)),2):e.isLiteralTypeNode(i)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isCallExpression,n,r,i)),e.isNewExpressionTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isNewExpression,n,r,i)),e.isCallOrNewExpressionTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isCallOrNewExpression,n,r,i)),e.isTaggedTemplateTag=(t,r,n)=>(void 0===r&&(r=!1),void 0===n&&(n=!1),o(t,e.isTaggedTemplateExpression,i,r,n)),e.isDecoratorTarget=(t,r,i)=>(void 0===r&&(r=!1),void 0===i&&(i=!1),o(t,e.isDecorator,n,r,i)),e.isJsxOpeningLikeElementTagName=(t,r,n)=>(void 0===r&&(r=!1),void 0===n&&(n=!1),o(t,e.isJsxOpeningLikeElement,a,r,n)),e.climbPastPropertyAccess=s,e.climbPastPropertyOrElementAccess=c,e.getTargetLabel=(e,t)=>{for(;e;){if(249===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=(t,r)=>!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r,e.isJumpStatementTarget=l,e.isLabelOfLabeledStatement=u,e.isLabelName=e=>u(e)||l(e),e.isTagName=t=>{var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=t=>{var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=d,e.isArgumentExpressionOfElementAccess=p,e.isNameOfModuleDeclaration=t=>{var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=t=>{var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=t=>{switch(t.parent.kind){case 166:case 165:case 294:case 297:case 168:case 167:case 171:case 172:case 260:return e.getNameOfDeclaration(t.parent)===t;case 206:return t.parent.argumentExpression===t;case 161:return!0;case 195:return 193===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=t=>e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t,e.getContainerNode=t=>{for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 303:case 168:case 167:case 255:case 212:case 171:case 172:case 256:case 257:case 259:case 260:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 303:return e.isExternalModule(r)?"module":"script";case 260:return"module";case 256:case 225:return"class";case 257:return"interface";case 258:case 336:case 343:return"type";case 259:return"enum";case 253:return c(r);case 202:return c(e.getRootDeclaration(r));case 213:case 255:case 212:return"function";case 171:return"getter";case 172:return"setter";case 168:case 167:return"method";case 294:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 166:case 165:case 295:case 296:return"property";case 175:return"index";case 174:return"construct";case 173:return"call";case 170:case 169:return"constructor";case 162:return"type parameter";case 297:return"enum member";case 163:return e.hasSyntacticModifier(r,16476)?"property":"parameter";case 264:case 269:case 274:case 267:case 273:return"alias";case 220:var i=e.getAssignmentDeclarationKind(r),a=r.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=t(a);return""===o?"const":o;case 3:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(a)?"method":"property";case 6:return"local class";default:return e.assertType(i),""}case 79:return e.isImportClause(r.parent)?"alias":"";case 270:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=t=>{switch(t.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(t)&&163===t.parent.kind;default:return!1}};var f,m=/^\/\/\/\s*</;function g(e,t){return y(e.pos,e.end,t)}function h(e,t){return e.pos<t&&t<e.end}function y(e,t,r){return e<=r.pos&&t>=r.end}function v(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function b(t,r){if(void 0===t||e.nodeIsMissing(t))return!1;switch(t.kind){case 256:case 257:case 259:case 204:case 200:case 181:case 234:case 261:case 262:case 268:case 272:return x(t,19,r);case 291:return b(t.block,r);case 208:if(!t.arguments)return!0;case 207:case 211:case 190:return x(t,21,r);case 178:case 179:return b(t.type,r);case 170:case 171:case 172:case 255:case 212:case 168:case 167:case 174:case 173:case 213:return t.body?b(t.body,r):t.type?b(t.type,r):E(t,21,r);case 260:return!!t.body&&b(t.body,r);case 238:return t.elseStatement?b(t.elseStatement,r):b(t.thenStatement,r);case 237:return b(t.expression,r)||E(t,26,r);case 203:case 201:case 206:case 161:case 183:return x(t,23,r);case 175:return t.type?b(t.type,r):E(t,23,r);case 288:case 289:return!1;case 241:case 242:case 243:case 240:return b(t.statement,r);case 239:return E(t,115,r)?x(t,21,r):b(t.statement,r);case 180:return b(t.exprName,r);case 215:case 214:case 216:case 223:case 224:return b(t.expression,r);case 209:return b(t.template,r);case 222:return b(e.lastOrUndefined(t.templateSpans),r);case 232:return e.nodeIsPresent(t.literal);case 271:case 265:return e.nodeIsPresent(t.moduleSpecifier);case 218:return b(t.operand,r);case 220:return b(t.right,r);case 221:return b(t.whenFalse,r);default:return!0}}function x(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.last(i);if(a.kind===r)return!0;if(26===a.kind&&1!==i.length)return i[i.length-2].kind===r}return!1}function E(e,t,r){return!!S(e,t,r)}function S(t,r,n){return e.find(t.getChildren(n),(e=>e.kind===r))}function D(t){var r=e.find(t.parent.getChildren(),(r=>e.isSyntaxList(r)&&g(r,t)));return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function T(e){return 88===e.kind}function C(e){return 84===e.kind}function k(e){return 98===e.kind}function A(t,r){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(e.isNamedImports(t.importClause.namedBindings)){var n=e.singleOrUndefined(t.importClause.namedBindings.elements);if(!n)return;return n.name}if(e.isNamespaceImport(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!r)return t.moduleSpecifier}function N(t,r){if(t.exportClause){if(e.isNamedExports(t.exportClause)){if(!e.singleOrUndefined(t.exportClause.elements))return;return t.exportClause.elements[0].name}if(e.isNamespaceExport(t.exportClause))return t.exportClause.name}if(!r)return t.moduleSpecifier}function w(t,r){var n=t.parent;if((e.isModifier(t)&&(r||88!==t.kind)?e.contains(n.modifiers,t):84===t.kind?e.isClassDeclaration(n)||e.isClassExpression(t):98===t.kind?e.isFunctionDeclaration(n)||e.isFunctionExpression(t):118===t.kind?e.isInterfaceDeclaration(n):92===t.kind?e.isEnumDeclaration(n):151===t.kind?e.isTypeAliasDeclaration(n):142===t.kind||141===t.kind?e.isModuleDeclaration(n):100===t.kind?e.isImportEqualsDeclaration(n):136===t.kind?e.isGetAccessorDeclaration(n):148===t.kind&&e.isSetAccessorDeclaration(n))&&(a=((t,r)=>{if(!r)switch(t.kind){case 256:case 225:return(t=>{if(e.isNamedDeclaration(t))return t.name;if(e.isClassDeclaration(t)){var r=t.modifiers&&e.find(t.modifiers,T);if(r)return r}if(e.isClassExpression(t)){var n=e.find(t.getChildren(),C);if(n)return n}})(t);case 255:case 212:return(t=>{if(e.isNamedDeclaration(t))return t.name;if(e.isFunctionDeclaration(t)){var r=e.find(t.modifiers,T);if(r)return r}if(e.isFunctionExpression(t)){var n=e.find(t.getChildren(),k);if(n)return n}})(t)}if(e.isNamedDeclaration(t))return t.name})(n,r)))return a;if((113===t.kind||85===t.kind||119===t.kind)&&e.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(e.isIdentifier(i.name))return i.name}if(151===t.kind){if(e.isImportClause(n)&&n.isTypeOnly&&(a=A(n.parent,r)))return a;if(e.isExportDeclaration(n)&&n.isTypeOnly&&(a=N(n,r)))return a}if(127===t.kind){if(e.isImportSpecifier(n)&&n.propertyName||e.isExportSpecifier(n)&&n.propertyName||e.isNamespaceImport(n)||e.isNamespaceExport(n))return n.name;if(e.isExportDeclaration(n)&&n.exportClause&&e.isNamespaceExport(n.exportClause))return n.exportClause.name}if(100===t.kind&&e.isImportDeclaration(n)&&(a=A(n,r)))return a;if(93===t.kind){var a;if(e.isExportDeclaration(n)&&(a=N(n,r)))return a;if(e.isExportAssignment(n))return e.skipOuterExpressions(n.expression)}if(145===t.kind&&e.isExternalModuleReference(n))return n.expression;if(155===t.kind&&(e.isImportDeclaration(n)||e.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((94===t.kind||117===t.kind)&&e.isHeritageClause(n)&&n.token===t.kind&&(a=(e=>{if(1===e.types.length)return e.types[0].expression})(n)))return a;if(94===t.kind){if(e.isTypeParameterDeclaration(n)&&n.constraint&&e.isTypeReferenceNode(n.constraint))return n.constraint.typeName;if(e.isConditionalTypeNode(n)&&e.isTypeReferenceNode(n.extendsType))return n.extendsType.typeName}if(137===t.kind&&e.isInferTypeNode(n))return n.typeParameter.name;if(101===t.kind&&e.isTypeParameterDeclaration(n)&&e.isMappedTypeNode(n.parent))return n.name;if(140===t.kind&&e.isTypeOperatorNode(n)&&140===n.operator&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(144===t.kind&&e.isTypeOperatorNode(n)&&144===n.operator&&e.isArrayTypeNode(n.type)&&e.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!r){if((103===t.kind&&e.isNewExpression(n)||114===t.kind&&e.isVoidExpression(n)||112===t.kind&&e.isTypeOfExpression(n)||132===t.kind&&e.isAwaitExpression(n)||125===t.kind&&e.isYieldExpression(n)||89===t.kind&&e.isDeleteExpression(n))&&n.expression)return e.skipOuterExpressions(n.expression);if((101===t.kind||102===t.kind)&&e.isBinaryExpression(n)&&n.operatorToken===t)return e.skipOuterExpressions(n.right);if(127===t.kind&&e.isAsExpression(n)&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(101===t.kind&&e.isForInStatement(n)||159===t.kind&&e.isForOfStatement(n))return e.skipOuterExpressions(n.expression)}return t}function F(e){return w(e,!1)}function P(e,t,r){return O(e,t,!1,r,!1)}function I(e,t){return O(e,t,!0,void 0,!1)}function O(t,r,n,i,a){var o,s=t,c=()=>{var a=s.getChildren(t),c=e.binarySearchKey(a,r,((e,t)=>t),((e,o)=>{var s=n?a[e].getFullStart():a[e].getStart(t,!0);return s>r?1:u(a[e])?a[e-1]&&u(a[e-1])?1:0:i&&s===r&&a[e-1]&&a[e-1].getEnd()===r&&u(a[e-1])?1:-1}));return o?{value:o}:c>=0&&a[c]?(s=a[c],"continue-outer"):{value:s}};e:for(;;){var l=c();if("object"==typeof l)return l.value;switch(l){case"continue-outer":continue e}}function u(e){if((n?e.getFullStart():e.getStart(t,!0))>r)return!1;var s=e.getEnd();if(r<s||r===s&&(1===e.kind||a))return!0;if(i&&s===r){var c=R(r,t,e);if(c&&i(c))return o=c,!0}return!1}}function M(t,r,n){return function r(i){return e.isToken(i)&&i.pos===t.end?i:e.firstDefined(i.getChildren(n),(e=>(e.pos<=t.pos&&e.end>t.end||e.pos===t.end)&&J(e,n)?r(e):void 0))}(r)}function R(t,r,n,i){var a=function a(o){if(L(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,((e,t)=>t),((e,r)=>t<s[e].end?!s[e-1]||t>=s[e-1].end?0:1:-1));if(c>=0&&s[c]){var l=s[c];if(t<l.end){if(l.getStart(r,!i)>=t||!J(l,r)||U(l)){var u=j(s,c,r);return u&&B(u,r)}return a(l)}}e.Debug.assert(void 0!==n||303===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=j(s,s.length,r);return d&&B(d,r)}(n||r);return e.Debug.assert(!(a&&U(a))),a}function L(t){return e.isToken(t)&&!U(t)}function B(e,t){if(L(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=j(r,r.length,t);return n&&B(n,t)}function j(t,r,n){for(var i=r-1;i>=0;i--)if(U(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(J(t[i],n))return t[i]}function U(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function V(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)<s){var c=R(s+1,n);if(c&&c.kind===r)return c}for(var l=t.kind,u=0;;){var d=R(t.getFullStart(),n);if(!d)return;if((t=d).kind===r){if(0===u)return t;u--}else t.kind===l&&u++}}}function z(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function K(t,r,n){var i=n.getTypeAtLocation(t);return e.isOptionalChain(t.parent)&&(i=z(i,e.isOptionalChainRoot(t.parent),!0)),(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter((e=>!!e.typeParameters&&e.typeParameters.length>=r))}function W(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=R(n.getFullStart(),r))&&28===n.kind&&(n=R(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=V(n,18,r)))return;break;case 21:if(!(n=V(n,20,r)))return;break;case 23:if(!(n=V(n,22,r)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=R(n.getFullStart(),r)}}function H(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function J(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function $(e,t,r){var n=H(e,t,void 0);return!!n&&r===m.test(e.text.substring(n.pos,n.end))}function G(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function q(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function X(e,t){return{span:e,newText:t}}function Y(e){return 151===e.kind}function Q(t,r){return{fileExists:e=>t.fileExists(e),getCurrentDirectory:()=>r.getCurrentDirectory(),readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:e=>t.getProjectReferenceRedirect(e),isSourceOfProjectReferenceRedirect:e=>t.isSourceOfProjectReferenceRedirect(e),getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons()}}function Z(e,t){return Ol(Ol({},Q(e,t)),{getCommonSourceDirectory:()=>e.getCommonSourceDirectory()})}function ee(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?te(n,i):n,void 0)}function te(t,r){return e.factory.createStringLiteral(t,0===r)}function re(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ne(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(t=>e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)));return n?re(n,t):1}function ie(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(t=>{var r=e.getNameOfDeclaration(t);return r&&79===r.kind?r.escapedText:void 0}))}function ae(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function oe(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function se(t){var r=t.declarations?e.firstOrUndefined(t.declarations):void 0;return!!e.findAncestor(r,(t=>!!e.isParameter(t)||!(e.isBindingElement(t)||e.isObjectBindingPattern(t)||e.isArrayBindingPattern(t))&&"quit"))}e.getLineStartPositionForPosition=(t,r)=>e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line],e.rangeContainsRange=g,e.rangeContainsRangeExclusive=(e,t)=>h(e,t.pos)&&h(e,t.end),e.rangeContainsPosition=(e,t)=>e.pos<=t&&t<=e.end,e.rangeContainsPositionExclusive=h,e.startEndContainsRange=y,e.rangeContainsStartEnd=(e,t,r)=>e.pos<=t&&e.end>=r,e.rangeOverlapsWithStartEnd=(e,t,r)=>v(e.pos,e.end,t,r),e.nodeOverlapsWithStartEnd=(e,t,r,n)=>v(e.getStart(t),e.end,r,n),e.startEndOverlapsWithStartEnd=v,e.positionBelongsToNode=(t,r,n)=>(e.Debug.assert(t.pos<=r),r<t.end||!b(t,n)),e.findListItemInfo=t=>{var r=D(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOfNode(n,t),list:r}}},e.hasChildOfKind=E,e.findChildOfKind=S,e.findContainingList=D,e.getContextualTypeFromParentOrAncestorTypeNode=(t,r)=>{var n=Me(t,r);if(n)return n;var i=(t=>{var r;return e.findAncestor(t,(t=>(e.isTypeNode(t)&&(r=t),!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)))),r})(t);return i&&r.getTypeAtLocation(i)},e.getAdjustedReferenceLocation=F,e.getAdjustedRenameLocation=e=>w(e,!0),e.getTouchingPropertyName=(t,r)=>P(t,r,(t=>e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)||e.isPrivateIdentifier(t))),e.getTouchingToken=P,e.getTokenAtPosition=I,e.findFirstNonJsxWhitespaceToken=(e,t)=>{for(var r=I(e,t);U(r);){var n=M(r,r.parent,e);if(!n)return;r=n}return r},e.findTokenOnLeftOfPosition=(t,r)=>{var n=I(t,r);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:R(r,t)},e.findNextToken=M,e.findPrecedingToken=R,e.isInString=(t,r,n)=>{if(void 0===n&&(n=R(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(i<r&&r<a)return!0;if(r===a)return!!n.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=(e,t)=>{var r=I(e,t);return!!r&&(11===r.kind||29===r.kind&&11===r.parent.kind||29===r.kind&&287===r.parent.kind||!(!r||19!==r.kind||287!==r.parent.kind)||29===r.kind&&280===r.parent.kind)},e.isInTemplateString=(t,r)=>{var n=I(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)},e.isInJSXText=(t,r)=>{var n=I(t,r);return!!e.isJsxText(n)||!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent))},e.isInsideJsxElement=(e,t)=>(r=>{for(;r;)if(r.kind>=278&&r.kind<=287||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(277!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1})(I(e,t)),e.findPrecedingMatchingToken=V,e.removeOptionality=z,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=W(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==K(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=K,e.getPossibleTypeArgumentsInfo=W,e.isInComment=H,e.hasDocComment=(t,r)=>{var n=I(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=(t,r)=>{void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&n.push("static"),128&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),8388608&t.flags&&n.push("declare"),270===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=t=>177===t.kind||207===t.kind?t.typeArguments:e.isFunctionLike(t)||256===t.kind||257===t.kind?t.typeParameters:void 0,e.isComment=e=>2===e||3===e,e.isStringOrRegularExpressionOrTemplateLiteral=t=>!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t)),e.isPunctuation=e=>18<=e&&e<=78,e.isInsideTemplateLiteral=(t,r,n)=>e.isTemplateLiteralKind(t.kind)&&t.getStart(n)<r&&r<t.end||!!t.isUnterminated&&r===t.end,e.isAccessibilityModifier=e=>{switch(e){case 123:case 121:case 122:return!0}return!1},e.cloneCompilerOptions=t=>{var r=e.clone(t);return e.setConfigFileInOptions(r,t&&t.configFile),r},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(203===t.kind||204===t.kind){if(220===t.parent.kind&&t.parent.left===t&&63===t.parent.operatorToken.kind)return!0;if(243===t.parent.kind&&t.parent.initializer===t)return!0;if(e(294===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.isInReferenceComment=(e,t)=>$(e,t,!0),e.isInNonReferenceComment=(e,t)=>$(e,t,!1),e.getReplacementSpanForContextToken=e=>{if(e)switch(e.kind){case 10:case 14:return q(e);default:return G(e)}},e.createTextSpanFromNode=G,e.createTextSpanFromStringLiteralLikeContent=q,e.createTextRangeFromNode=(t,r)=>e.createRange(t.getStart(r),t.end),e.createTextSpanFromRange=t=>e.createTextSpanFromBounds(t.pos,t.end),e.createTextRangeFromSpan=t=>e.createRange(t.start,t.start+t.length),e.createTextChangeFromStartLength=(t,r,n)=>X(e.createTextSpan(t,r),n),e.createTextChange=X,e.typeKeywords=[130,128,157,133,95,137,140,143,104,146,147,144,149,150,110,114,152,153,154],e.isTypeKeyword=t=>e.contains(e.typeKeywords,t),e.isTypeKeywordToken=Y,e.isTypeKeywordTokenOrIdentifier=t=>Y(t)||e.isIdentifier(t)&&"type"===t.text,e.isExternalModuleSymbol=e=>!!(1536&e.flags)&&34===e.name.charCodeAt(0),e.nodeSeenTracker=()=>{var t=[];return r=>{var n=e.getNodeId(r);return!t[n]&&(t[n]=!0)}},e.getSnapshotText=e=>e.getText(0,e.getLength()),e.repeatString=(e,t)=>{for(var r="",n=0;n<t;n++)r+=e;return r},e.skipConstraint=e=>e.isTypeParameter()&&e.getConstraint()||e,e.getNameFromPropertyName=t=>161===t.kind?e.isStringOrNumericLiteralLike(t.expression)?t.expression.text:void 0:e.isPrivateIdentifier(t)?e.idText(t):e.getTextOfIdentifierOrLiteral(t),e.programContainsModules=e=>e.getSourceFiles().some((t=>!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator))),e.programContainsEsModules=e=>e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)),e.compilerOptionsIndicateEsModules=t=>!!t.module||e.getEmitScriptTarget(t)>=2||!!t.noEmit,e.createModuleSpecifierResolutionHost=Q,e.getModuleSpecifierResolverHost=Z,e.makeImportIfNecessary=(e,t,r,n)=>e||t&&t.length?ee(e,t,r,n):void 0,e.makeImport=ee,e.makeStringLiteral=te,(f=e.QuotePreference||(e.QuotePreference={}))[f.Single=0]="Single",f[f.Double=1]="Double",e.quotePreferenceFromString=re,e.getQuotePreference=ne,e.getQuoteFromPreference=t=>{switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=t=>{var r=ie(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ie,e.isModuleSpecifierLike=t=>e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t),e.isObjectBindingElementWithoutPropertyName=t=>e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName,e.getPropertySymbolFromBindingElement=(e,t)=>{var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=(t,r,n)=>{if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!ae(n,t.parent,r))return t;t=t.parent}},e.findModifier=(t,r)=>t.modifiers&&e.find(t.modifiers,(e=>e.kind===r)),e.insertImports=(t,r,n,i)=>{var a=236===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;c<l.length;c++){var u=l[c],d=e.OrganizeImports.getImportDeclarationInsertionIndex(o,u);if(0===d){var p=o[0]===r.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(r,o[0],u,!1,p)}else{var _=o[d-1];t.insertNodeAfter(r,_,u)}}else{var f=e.lastOrUndefined(o);f?t.insertNodesAfter(r,f,s):t.insertNodesAtTopOfFile(r,s,i)}else t.insertNodesAtTopOfFile(r,s,i)},e.getTypeKeywordOfTypeOnlyImport=(t,r)=>(e.Debug.assert(t.isTypeOnly),e.cast(t.getChildAt(0,r),Y)),e.textSpansEqual=oe,e.documentSpansEqual=(e,t)=>e.fileName===t.fileName&&oe(e.textSpan,t.textSpan),e.forEachUnique=(e,t)=>{if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}},e.isTextWhiteSpaceLike=(t,r,n)=>{for(var i=r;i<n;i++)if(!e.isWhiteSpaceLike(t.charCodeAt(i)))return!1;return!0},e.isFirstDeclarationOfSymbolParameter=se;var ce=(()=>{var t,r,n,i,a=10*e.defaultMaximumTruncationLength;l();var o=t=>c(t,e.SymbolDisplayPartKind.text);return{displayParts(){var r=t.length&&t[t.length-1].text;return i>a&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(ue(" ",e.SymbolDisplayPartKind.space)),t.push(ue("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:t=>c(t,e.SymbolDisplayPartKind.keyword),writeOperator:t=>c(t,e.SymbolDisplayPartKind.operator),writePunctuation:t=>c(t,e.SymbolDisplayPartKind.punctuation),writeTrailingSemicolon:t=>c(t,e.SymbolDisplayPartKind.punctuation),writeSpace:t=>c(t,e.SymbolDisplayPartKind.space),writeStringLiteral:t=>c(t,e.SymbolDisplayPartKind.stringLiteral),writeParameter:t=>c(t,e.SymbolDisplayPartKind.parameterName),writeProperty:t=>c(t,e.SymbolDisplayPartKind.propertyName),writeLiteral:t=>c(t,e.SymbolDisplayPartKind.stringLiteral),writeSymbol(e,r){i>a||(s(),i+=e.length,t.push(le(e,r)))},writeLine(){i>a||(i+=1,t.push(ge()),r=!0)},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:e.notImplemented,getIndent:()=>n,increaseIndent(){n++},decreaseIndent(){n--},clear:l,trackSymbol:()=>!1,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(ue(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(ue(e,r)))}function l(){t=[],r=!0,n=0,i=0}})();function le(t,r){return ue(t,(t=>{var r=t.flags;return 3&r?se(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r||32768&r||65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r||2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text})(r))}function ue(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function de(t){return ue(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function pe(t){return ue(t,e.SymbolDisplayPartKind.text)}function _e(t){return ue(t,e.SymbolDisplayPartKind.linkText)}function fe(t,r){return{text:t,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:G(r)}}}function me(t){return ue(t,e.SymbolDisplayPartKind.link)}function ge(){return ue("\n",e.SymbolDisplayPartKind.lineBreak)}function he(e){try{return e(ce),ce.displayParts()}finally{ce.clear()}}function ye(e){return 0!=(33554432&e.flags)}function ve(e){return 0!=(2097152&e.flags)}function be(e,t){void 0===t&&(t=!0);var r=e&&Ee(e);return r&&!t&&Te(r),r}function xe(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=Ee(t,n),i&&!r&&Te(i),i}function Ee(t,r){var n=r?e=>xe(e,!0,r):be,i=r?e=>e&&De(e,!0,r):e=>e&&Se(e),a=e.visitEachChild(t,n,e.nullTransformationContext,i,n);if(a===t){var o=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(o,t)}return a.parent=void 0,a}function Se(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((e=>be(e,r))),t.hasTrailingComma)}function De(t,r,n){return e.factory.createNodeArray(t.map((e=>xe(e,r,n))),t.hasTrailingComma)}function Te(e){Ce(e),ke(e)}function Ce(e){Ae(e,512,Ne)}function ke(t){Ae(t,1024,e.getLastChild)}function Ae(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&Ae(i,r,n)}function Ne(e){return e.forEachChild((e=>e))}function we(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Ie(r,n,i,a,e.addSyntheticLeadingComment))}function Fe(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Ie(r,n,i,a,e.addSyntheticTrailingComment))}function Pe(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Ie(r,n,i,a,e.addSyntheticLeadingComment))}function Ie(e,t,r,n,i){return(a,o,s,c)=>{3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function Oe(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function Me(e,t){var r=e.parent;switch(r.kind){case 208:return t.getContextualType(r);case 220:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Re(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 288:return r.expression===e?Le(r,t):void 0;default:return t.getContextualType(e)}}function Re(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Le(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Be(e){return 173===e||174===e||175===e||165===e||167===e}function je(e){return 255===e||170===e||168===e||171===e||172===e}function Ue(e){return 260===e}function Ve(e){return 236===e||237===e||239===e||244===e||245===e||246===e||250===e||252===e||166===e||258===e||265===e||264===e||271===e||263===e||270===e}function ze(e,t){return We(e,e.fileExists,t)}function Ke(e){try{return e()}catch(e){return}}function We(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return Ke((()=>t&&t.apply(e,r)))}function He(t,r){if(!r.fileExists)return[];var n=[];return e.forEachAncestorDirectory(e.getDirectoryPath(t),(t=>{var i=e.combinePaths(t,"package.json");if(r.fileExists(i)){var a=Je(i,r);a&&n.push(a)}})),n}function Je(t,r){if(r.readFile){var n=(e=>{try{return JSON.parse(e)}catch(e){return}})(r.readFile(t)||""),i={};if(n)for(var a=0,o=["dependencies","devDependencies","optionalDependencies","peerDependencies"];a<o.length;a++){var s=o[a],c=n[s];if(c){var l=new e.Map;for(var u in c)l.set(u,c[u]);i[s]=l}}var d=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return Ol(Ol({},i),{parseable:!!n,fileName:t,get:p,has:(e,t)=>!!p(e,t)})}function p(e,t){void 0===t&&(t=15);for(var r=0,n=d;r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(o&&t&a){var s=o.get(e);if(void 0!==s)return s}}}}function $e(t){return e.some(t.imports,(t=>{var r=t.text;return e.JsTyping.nodeCoreModules.has(r)}))}function Ge(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function qe(t){var r=t.getSourceFile();return!(!r.externalModuleIndicator&&!r.commonJsModuleIndicator)&&(e.isInJSFile(t)||!e.findAncestor(t,e.isGlobalScopeAugmentation))}e.symbolPart=le,e.displayPart=ue,e.spacePart=()=>ue(" ",e.SymbolDisplayPartKind.space),e.keywordPart=de,e.punctuationPart=t=>ue(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation),e.operatorPart=t=>ue(e.tokenToString(t),e.SymbolDisplayPartKind.operator),e.parameterNamePart=t=>ue(t,e.SymbolDisplayPartKind.parameterName),e.propertyNamePart=t=>ue(t,e.SymbolDisplayPartKind.propertyName),e.textOrKeywordPart=t=>{var r=e.stringToToken(t);return void 0===r?pe(t):de(r)},e.textPart=pe,e.typeAliasNamePart=t=>ue(t,e.SymbolDisplayPartKind.aliasName),e.typeParameterNamePart=t=>ue(t,e.SymbolDisplayPartKind.typeParameterName),e.linkTextPart=_e,e.linkNamePart=fe,e.linkPart=me,e.buildLinkParts=(t,r)=>{var n,i=e.isJSDocLink(t)?"link":e.isJSDocLinkCode(t)?"linkcode":"linkplain",a=[me("{@".concat(i," "))];if(t.name){var o=null==r?void 0:r.getSymbolAtLocation(t.name),s=(e=>{if(0===e.indexOf("()"))return 2;if("<"!==e[0])return 0;for(var t=0,r=0;r<e.length;)if("<"===e[r]&&t++,">"===e[r]&&t--,r++,!t)return r;return 0})(t.text),c=e.getTextOfNode(t.name)+t.text.slice(0,s),l=t.text.slice(s),u=(null==o?void 0:o.valueDeclaration)||(null===(n=null==o?void 0:o.declarations)||void 0===n?void 0:n[0]);u?(a.push(fe(c,u)),l&&a.push(_e(l))):a.push(_e(c+(s?"":" ")+l))}else t.text&&a.push(_e(t.text));return a.push(me("}")),a},e.getNewLineOrDefaultFromHost=(e,t)=>{var r;return(null==t?void 0:t.newLineCharacter)||(null===(r=e.getNewLine)||void 0===r?void 0:r.call(e))||"\r\n"},e.lineBreakPart=ge,e.mapToDisplayParts=he,e.typeToDisplayParts=(e,t,r,n)=>(void 0===n&&(n=0),he((i=>{e.writeType(t,r,17408|n,i)}))),e.symbolToDisplayParts=(e,t,r,n,i)=>(void 0===i&&(i=0),he((a=>{e.writeSymbol(t,r,n,8|i,a)}))),e.signatureToDisplayParts=(e,t,r,n)=>(void 0===n&&(n=0),n|=25632,he((i=>{e.writeSignature(t,r,n,void 0,i)}))),e.isImportOrExportSpecifierName=t=>!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t,e.getScriptKind=(t,r)=>e.ensureScriptKind(t,r.getScriptKind&&r.getScriptKind(t)),e.getSymbolTarget=(t,r)=>{for(var n=t;ve(n)||ye(n)&&n.target;)n=ye(n)&&n.target?n.target:e.skipAlias(n,r);return n},e.getUniqueSymbolId=(t,r)=>e.getSymbolId(e.skipAlias(t,r)),e.getFirstNonSpaceCharacterPosition=(t,r)=>{for(;e.isWhiteSpaceLike(t.charCodeAt(r));)r+=1;return r},e.getPrecedingNonSpaceCharacterPosition=(t,r)=>{for(;r>-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=be,e.getSynthesizedDeepCloneWithReplacements=xe,e.getSynthesizedDeepClones=Se,e.getSynthesizedDeepClonesWithReplacements=De,e.suppressLeadingAndTrailingTrivia=Te,e.suppressLeadingTrivia=Ce,e.suppressTrailingTrivia=ke,e.copyComments=(e,t)=>{var r=e.getSourceFile();((e,t)=>{for(var r=e.getFullStart(),n=e.getStart(),i=r;i<n;i++)if(10===t.charCodeAt(i))return!0;return!1})(e,r.text)?we(e,t,r):Pe(e,t,r),Fe(e,t,r)},e.getUniqueName=(t,r)=>{for(var n=t,i=1;!e.isFileLevelUniqueName(r,n);i++)n="".concat(t,"_").concat(i);return n},e.getRenameLocation=(t,r,n,i)=>{for(var a=0,o=-1,s=0,c=t;s<c.length;s++){var l=c[s],u=l.fileName,d=l.textChanges;e.Debug.assert(u===r);for(var p=0,_=d;p<_.length;p++){var f=_[p],m=f.span,g=f.newText,h=Oe(g,n);if(-1!==h&&(o=m.start+a+h,!i))return o;a+=g.length-m.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o},e.copyLeadingComments=we,e.copyTrailingComments=Fe,e.copyTrailingAsLeadingComments=Pe,e.needsParentheses=t=>e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression),e.getContextualTypeFromParent=Me,e.quote=(t,r,n)=>{var i=ne(t,r),a=JSON.stringify(n);return 0===i?"'".concat(e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):a},e.isEqualityOperatorKind=Re,e.isStringLiteralOrTemplate=e=>{switch(e.kind){case 10:case 14:case 222:case 209:return!0;default:return!1}},e.hasIndexSignature=e=>!!e.getStringIndexType()||!!e.getNumberIndexType(),e.getSwitchedType=Le,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=(e,t,r,n)=>{var i=r.getTypeChecker(),a=!0,o=()=>a=!1,s=i.typeToTypeNode(e,t,1,{trackSymbol:(e,t,r)=>!(a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility),reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:Z(r,n)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Be,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=je,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Ue,e.syntaxRequiresTrailingSemicolonOrASI=Ve,e.syntaxMayBeASICandidate=e.or(Be,je,Ue,Ve),e.positionIsASICandidate=(t,r,n)=>{var i=e.findAncestor(r,(r=>r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)));return!!i&&((t,r)=>{var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Be(t.kind)){if(n&&27===n.kind)return!1}else if(Ue(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(je(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Ve(t.kind))return!1;if(239===t.kind)return!0;var a=M(t,e.findAncestor(t,(e=>!e.parent)),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line})(i,n)},e.probablyUsesSemicolons=t=>{var r=0,n=0;return e.forEachChild(t,(function i(a){if(Ve(a.kind)){var o=a.getLastToken(t);o&&26===o.kind?r++:n++}return r+n>=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2},e.tryGetDirectories=(e,t)=>We(e,e.getDirectories,t)||[],e.tryReadDirectory=(t,r,n,i,a)=>We(t,t.readDirectory,r,n,i,a)||e.emptyArray,e.tryFileExists=ze,e.tryDirectoryExists=(t,r)=>Ke((()=>e.directoryProbablyExists(r,t)))||!1,e.tryAndIgnoreErrors=Ke,e.tryIOAndConsumeErrors=We,e.findPackageJsons=(t,r,n)=>{var i=[];return e.forEachAncestorDirectory(t,(t=>{if(t===n)return!0;var a=e.combinePaths(t,"package.json");ze(r,a)&&i.push(a)})),i},e.findPackageJson=(t,r)=>{var n;return e.forEachAncestorDirectory(t,(t=>"node_modules"===t||!!(n=e.findConfigFile(t,(e=>ze(r,e)),"package.json"))||void 0)),n},e.getPackageJsonsVisibleToFile=He,e.createPackageJsonInfo=Je,e.createPackageJsonImportFilter=(t,r,n)=>{var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||He(t.fileName,n)).filter((e=>e.parseable));return{allowsImportingAmbientModule(t,r){if(!a.length||!t.valueDeclaration)return!0;var n=c(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());return!!s(i)||o(n)||o(i)},allowsImportingSourceFile(e,t){if(!a.length)return!0;var r=c(e.fileName,t);return!r||o(r)},allowsImportingSpecifier:t=>!(a.length&&!s(t))||!(!e.pathIsRelative(t)&&!e.isRootedDiskPath(t))||o(t)};function o(t){for(var r=l(t),n=0,i=a;n<i.length;n++){var o=i[n];if(o.has(r)||o.has(e.getTypesPackageName(r)))return!0}return!1}function s(r){return!!(e.isSourceFileJS(t)&&e.JsTyping.nodeCoreModules.has(r)&&(void 0===i&&(i=$e(t)),i))}function c(i,a){if(e.stringContains(i,"node_modules")){var o=e.moduleSpecifiers.getNodeModulesPackageName(n.getCompilationSettings(),t.path,i,a,r);if(o)return e.pathIsRelative(o)||e.isRootedDiskPath(o)?void 0:l(o)}}function l(t){var r=e.getPathComponents(e.getPackageNameFromTypesPackageName(t)).slice(1);return e.startsWith(r[0],"@")?"".concat(r[0],"/").concat(r[1]):r[0]}},e.consumesNodeCoreModules=$e,e.isInsideNodeModules=t=>e.contains(e.getPathComponents(t),"node_modules"),e.isDiagnosticWithLocation=Ge,e.findDiagnosticForNode=(t,r)=>{var n=G(t),i=e.binarySearchKey(r,n,e.identity,e.compareTextSpans);if(i>=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,Ge)}},e.getDiagnosticsWithinSpan=(t,r)=>{var n,i=e.binarySearchKey(r,t.start,(e=>e.start),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],Ge);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=t=>{var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.getFixableErrorSpanExpression=(t,r)=>{var n=I(t,r.start);return e.findAncestor(n,(n=>n.getStart(t)<r.start||n.getEnd()>e.textSpanEnd(r)?"quit":e.isExpression(n)&&oe(r,G(n,t))))},e.mapOneOrMany=(t,r,n)=>(void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0),e.firstOrOnly=t=>e.isArray(t)?e.first(t):t,e.getNameForExportedSymbol=(t,r)=>33554432&t.flags||"export="!==t.escapedName&&"default"!==t.escapedName?t.name:e.firstDefined(t.declarations,(t=>{var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier((t=>{var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(t.flags),". ")+"Declarations: ".concat(null===(r=t.declarations)||void 0===r?void 0:r.map((t=>{var r=e.Debug.formatSyntaxKind(t.kind),n=e.isInJSFile(t),i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: ".concat(e.Debug.formatSyntaxKind(i.kind),")"):"")})).join(", "),"."))})(t),r),e.stringContainsAt=(e,t,r)=>{var n=t.length;if(n+r>e.length)return!1;for(var i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+r))return!1;return!0},e.startsWithUnderscore=e=>95===e.charCodeAt(0),e.isGlobalDeclaration=e=>!qe(e),e.isNonGlobalDeclaration=qe,e.isDeprecatedDeclaration=t=>!!(8192&e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)),e.shouldUseUriStyleNodeCoreModules=(t,r)=>{var n=e.firstDefined(t.imports,(t=>{if(e.JsTyping.nodeCoreModules.has(t.text))return e.startsWith(t.text,"node:")}));return null!=n?n:r.usesUriStyleNodeCoreModules},e.getNewLineKind=e=>"\n"===e?1:0,e.diagnosticToString=t=>e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)})(Fl),(e=>{function t(t){var r,n=1,i=e.createMultiMap(),a=new e.Map,o={isUsableByFile:e=>e===r,isEmpty:()=>!i.size,clear(){i.clear(),a.clear(),r=void 0},add(t,s,c,l,u,d,p,_,f){t!==r&&(o.clear(),r=t);var m=1===d&&e.getLocalSymbolForExportDefault(s)||s,g=0===d||e.isExternalModuleSymbol(m)?e.unescapeLeadingUnderscores(c):e.getNameForExportedSymbol(m,_),h=e.stripQuotes(l.name),y=n++,v=e.skipAlias(s,f),b=33554432&s.flags?void 0:s,x=33554432&l.flags?void 0:l;b&&x||a.set(y,[s,l]),i.add(((t,r,n,i)=>{var a=n||"";return"".concat(t,"|").concat(e.getSymbolId(e.skipAlias(r,i)),"|").concat(a)})(g,s,e.isExternalModuleNameRelative(h)?void 0:h,f),{id:y,symbolTableKey:c,symbolName:g,moduleName:h,moduleFile:u,moduleFileName:null==u?void 0:u.fileName,exportKind:d,targetFlags:v.flags,isFromPackageJson:p,symbol:b,moduleSymbol:x})},get(e,t){if(e===r){var n=i.get(t);return null==n?void 0:n.map(s)}},forEach(e,t){e===r&&i.forEach(((e,r)=>{var n=(e=>{var t=e.substring(0,e.indexOf("|")),r=e.substring(e.lastIndexOf("|")+1);return{symbolName:t,ambientModuleName:""===r?void 0:r}})(r),i=n.symbolName,a=n.ambientModuleName;t(e.map(s),i,!!a,r)}))},releaseSymbols(){a.clear()},onFileChanged:(t,n,i)=>!(c(t)&&c(n)||(r&&r!==n.path||i&&e.consumesNodeCoreModules(t)!==e.consumesNodeCoreModules(n)||!e.arrayIsEqualTo(t.moduleAugmentations,n.moduleAugmentations)||!((t,r)=>{if(!e.arrayIsEqualTo(t.ambientModuleNames,r.ambientModuleNames))return!1;for(var n=-1,i=-1,a=a=>{var o=t=>e.isNonGlobalAmbientModule(t)&&t.name.text===a;if(n=e.findIndex(t.statements,o,n+1),i=e.findIndex(r.statements,o,i+1),t.statements[n]!==r.statements[i])return{value:!1}},o=0,s=r.ambientModuleNames;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return!0})(t,n)?(o.clear(),0):(r=n.path,1)))};return e.Debug.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>i}),o;function s(r){if(r.symbol&&r.moduleSymbol)return r;var n=r.id,i=r.exportKind,o=r.targetFlags,s=r.isFromPackageJson,c=r.moduleFileName,l=a.get(n)||e.emptyArray,u=l[0],d=l[1];if(u&&d)return{symbol:u,moduleSymbol:d,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s};var p=(s?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),_=r.moduleSymbol||d||e.Debug.checkDefined(r.moduleFile?p.getMergedSymbol(r.moduleFile.symbol):p.tryFindAmbientModule(r.moduleName)),f=r.symbol||u||e.Debug.checkDefined(2===i?p.resolveExternalModuleSymbol(_):p.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(r.symbolTableKey),_),"Could not find symbol '".concat(r.symbolName,"' by key '").concat(r.symbolTableKey,"' in module ").concat(_.name));return a.set(n,[f,_]),{symbol:f,moduleSymbol:_,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s}}function c(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function r(t,r,i,a){var o,s;n(t.getTypeChecker(),t.getSourceFiles(),((e,r)=>a(e,r,t,!1)));var c=i&&(null===(o=r.getPackageJsonAutoImportProvider)||void 0===o?void 0:o.call(r));if(c){var l=e.timestamp();n(c.getTypeChecker(),c.getSourceFiles(),((e,t)=>a(e,t,c,!0))),null===(s=r.log)||void 0===s||s.call(r,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-l))}}function n(t,r,n){for(var i=0,a=t.getAmbientModules();i<a.length;i++){var o=a[i];e.stringContains(o.name,"*")||n(o,void 0)}for(var s=0,c=r;s<c.length;s++){var l=c[s];e.isExternalOrCommonJsModule(l)&&n(t.getMergedSymbol(l.symbol),l)}}function i(e,t,r){var n=((e,t)=>{var r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};var n=t.tryGetMemberInModuleExports("default",e);return n?{symbol:n,exportKind:1}:void 0})(e,t);if(n){var i=n.symbol,a=n.exportKind,s=o(i,t,r);return s&&Ol({symbol:i,exportKind:a},s)}}function a(t,r){return!(r.isUndefinedSymbol(t)||r.isUnknownSymbol(t)||e.isKnownSymbol(t)||e.isPrivateIdentifierSymbol(t))}function o(t,r,n){var i=e.getLocalSymbolForExportDefault(t);if(i)return{symbolForMeaning:i,name:i.name};var a,s=(a=t).declarations&&e.firstDefined(a.declarations,(t=>{var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:e.isExportSpecifier(t)?(e.Debug.assert("default"===t.name.text,"Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text):void 0}));if(void 0!==s)return{symbolForMeaning:t,name:s};if(2097152&t.flags){var c=r.getImmediateAliasedSymbol(t);if(c&&c.parent)return o(c,r,n)}return"default"!==t.escapedName&&"export="!==t.escapedName?{symbolForMeaning:t,name:t.getName()}:{symbolForMeaning:t,name:e.getNameForExportedSymbol(t,n.target)}}var s,c;(c=e.ImportKind||(e.ImportKind={}))[c.Named=0]="Named",c[c.Default=1]="Default",c[c.Namespace=2]="Namespace",c[c.CommonJS=3]="CommonJS",(s=e.ExportKind||(e.ExportKind={}))[s.Named=0]="Named",s[s.Default=1]="Default",s[s.ExportEquals=2]="ExportEquals",s[s.UMD=3]="UMD",e.createCacheableExportInfoMap=t,e.isImportableFile=(t,r,n,i,a,o,s)=>{var c;if(r===n)return!1;var l=null==s?void 0:s.get(r.path,n.path,i);if(void 0!==(null==l?void 0:l.isAutoImportable))return l.isAutoImportable;var u=e.hostGetCanonicalFileName(o),d=null===(c=o.getGlobalTypingsCacheLocation)||void 0===c?void 0:c.call(o),p=!!e.moduleSpecifiers.forEachFileNameOfModule(r.fileName,n.fileName,o,!1,(i=>{var a=t.getSourceFile(i);return(a===n||!a)&&((t,r,n,i)=>{var a=e.forEachAncestorDirectory(r,(t=>"node_modules"===e.getBaseFileName(t)?t:void 0)),o=a&&e.getDirectoryPath(n(a));return void 0===o||e.startsWith(n(t),o)||!!i&&e.startsWith(n(i),o)})(r.fileName,i,u,d)}));if(a){var _=p&&a.allowsImportingSourceFile(n,o);return null==s||s.setIsAutoImportable(r.path,n.path,i,_),_}return p},e.forEachExternalModuleToImportFrom=r,e.getExportInfoMap=(n,o,s,c)=>{var l,u,d,p,_,f=e.timestamp();null===(l=o.getPackageJsonAutoImportProvider)||void 0===l||l.call(o);var m=(null===(u=o.getCachedExportInfoMap)||void 0===u?void 0:u.call(o))||t({getCurrentProgram:()=>s,getPackageJsonAutoImportProvider(){var e;return null===(e=o.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(o)}});if(m.isUsableByFile(n.path))return null===(d=o.log)||void 0===d||d.call(o,"getExportInfoMap: cache hit"),m;null===(p=o.log)||void 0===p||p.call(o,"getExportInfoMap: cache miss or empty; calculating new results");var g=s.getCompilerOptions(),h=e.getEmitScriptTarget(g),y=0;return r(s,o,!0,((t,r,o,s)=>{++y%100==0&&(null==c||c.throwIfCancellationRequested());var l=new e.Map,u=o.getTypeChecker(),d=i(t,u,g);d&&a(d.symbol,u)&&m.add(n.path,d.symbol,1===d.exportKind?"default":"export=",t,r,d.exportKind,s,h,u),u.forEachExportAndPropertyOfModule(t,((i,o)=>{i!==(null==d?void 0:d.symbol)&&a(i,u)&&e.addToSeen(l,o)&&m.add(n.path,i,o,t,r,0,s,h,u)}))})),null===(_=o.log)||void 0===_||_.call(o,"getExportInfoMap: done in ".concat(e.timestamp()-f," ms")),m},e.getDefaultLikeExportInfo=i})(Fl),(e=>{e.createClassifier=()=>{var o=e.createScanner(99,!1);function s(i,s,c){var l=0,u=0,d=[],p=(t=>{switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}})(s),_=p.prefix,f=p.pushTemplate;i=_+i;var m=_.length;f&&d.push(15),o.setText(i);var g=0,h=[],y=0;do{l=o.scan(),e.isTrivia(l)||(x(),u=l);var v=o.getTextPos();if(n(o.getTokenPos(),v,m,a(l),h),v>=i.length){var b=r(o,l,e.lastOrUndefined(d));void 0!==b&&(g=b)}}while(1!==l);function x(){switch(l){case 43:case 68:t[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&y++;break;case 31:y>0&&y--;break;case 130:case 149:case 146:case 133:case 150:y>0&&!c&&(l=79);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var r=e.lastOrUndefined(d);15===r?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!((t,r)=>{if(!e.isAccessibilityModifier(t))return!0;switch(r){case 136:case 148:case 134:case 124:return!0;default:return!1}})(u,l))&&(l=79)}}return{endOfLineState:g,spans:h}}return{getClassificationsForLine:(t,r,n)=>((t,r)=>{for(var n=[],a=t.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],l=a[s+1],u=a[s+2];if(o>=0){var d=c-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace})}n.push({length:l,classification:i(u)}),o=c+l}var p=r.length-o;return p>0&&n.push({length:p,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}})(s(t,r,n),t),getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],(e=>e),(()=>!0));function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if((e=>{switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}})(t)||(e=>{switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}})(t))return 5;if(t>=18&&t<=78)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 260:case 256:case 257:case 255:case 225:case 212:case 213:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function l(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var d=t.getSymbolAtLocation(u),p=d&&c(d,e.getMeaningFromLocation(u),t);p&&((t,r,n)=>{var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of ".concat(i)),s.push(t),s.push(i),s.push(n)})(u.getStart(n),u.getEnd(),p)}u.forEachChild(l)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&(t=>e.some(t.declarations,(t=>e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t))))(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i<r.length;i+=3)n.push({textSpan:e.createTextSpan(r[i],r[i+1]),classificationType:l(r[i+2])});return n}function d(t,r,n){var i=n.start,a=n.length,s=e.createScanner(99,!1,r.languageVariant,r.text),c=e.createScanner(99,!1,r.languageVariant,r.text),l=[];return y(r),{spans:l,endOfLineState:0};function u(e,t,r){l.push(e),l.push(t),l.push(r)}function d(t,n,i,a){if(3===n){var o=e.parseIsolatedJSDocComment(r.text,i,a);if(o&&o.jsDoc)return e.setParent(o.jsDoc,t),void(e=>{var t,r,n,i,a,o,s,c=e.pos;if(e.tags)for(var l=0,d=e.tags;l<d.length;l++){var f=d[l];f.pos!==c&&p(c,f.pos-c),u(f.pos,1,10),u(f.tagName.pos,f.tagName.end-f.tagName.pos,18),c=f.tagName.end;var m=f.tagName.end;switch(f.kind){case 338:var g=f;b(g),m=g.isNameFirst&&(null===(t=g.typeExpression)||void 0===t?void 0:t.end)||g.name.end;break;case 345:var h=f;m=h.isNameFirst&&(null===(r=h.typeExpression)||void 0===r?void 0:r.end)||h.name.end;break;case 342:_(f),c=f.end,m=f.typeParameters.end;break;case 343:var v=f;m=307===(null===(n=v.typeExpression)||void 0===n?void 0:n.kind)&&(null===(i=v.fullName)||void 0===i?void 0:i.end)||(null===(a=v.typeExpression)||void 0===a?void 0:a.end)||m;break;case 336:m=f.typeExpression.end;break;case 341:y(f.typeExpression),c=f.end,m=f.typeExpression.end;break;case 340:case 337:m=f.typeExpression.end;break;case 339:y(f.typeExpression),c=f.end,m=(null===(o=f.typeExpression)||void 0===o?void 0:o.end)||m;break;case 344:m=(null===(s=f.name)||void 0===s?void 0:s.end)||m;break;case 326:case 327:m=f.class.end}"object"==typeof f.comment?p(f.comment.pos,f.comment.end-f.comment.pos):"string"==typeof f.comment&&p(m,f.end-m)}return void(c!==e.end&&p(c,e.end-c));function b(e){e.isNameFirst&&(p(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end),e.typeExpression&&(p(c,e.typeExpression.pos-c),y(e.typeExpression),c=e.typeExpression.end),e.isNameFirst||(p(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end)}})(o.jsDoc)}else if(2===n&&((t,n)=>{var i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,a=r.text.substr(t,n),o=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;p(s,o[1].length),u(s+=o[1].length,o[2].length,10),u(s+=o[2].length,o[3].length,21),s+=o[3].length;for(var c=o[4],l=s;;){var d=i.exec(c);if(!d)break;var _=s+d.index+d[1].length;_>l&&(p(l,_-l),l=_),u(l,d[2].length,22),l+=d[2].length,d[3].length&&(p(l,d[3].length),l+=d[3].length),u(l,d[4].length,5),l+=d[4].length,d[5].length&&(p(l,d[5].length),l+=d[5].length),u(l,d[6].length,24),l+=d[6].length}(s+=o[4].length)>l&&p(l,s-l),o[5]&&(u(s,o[5].length,10),s+=o[5].length);var f=t+n;return s<f&&p(s,f-s),!0})(i,a))return;p(i,a)}function p(e,t){u(e,t,1)}function _(e){for(var t=0,r=e.getChildren();t<r.length;t++)y(r[t])}function f(t,r,n){var i;for(i=r;i<n&&!e.isLineBreak(t.charCodeAt(i));i++);for(u(r,i-r,1),c.setTextPos(i);c.getTextPos()<n;)m()}function m(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos(),n=h(t);n&&u(e,r-e,n)}function g(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var n=(e=>{switch(e.parent&&e.parent.kind){case 279:if(e.parent.tagName===e)return 19;break;case 280:if(e.parent.tagName===e)return 20;break;case 278:if(e.parent.tagName===e)return 21;break;case 284:if(e.parent.name===e)return 22}})(t);if(!e.isToken(t)&&11!==t.kind&&void 0===n)return!1;var i=11===t.kind?t.pos:(t=>{for(s.setTextPos(t.pos);;){var n=s.getTextPos();if(!e.couldStartTrivia(r.text,n))return n;var i=s.scan(),a=s.getTextPos(),o=a-n;if(!e.isTrivia(i))return n;switch(i){case 4:case 5:continue;case 2:case 3:d(t,i,n,o),s.setTextPos(a);continue;case 7:var c=r.text,l=c.charCodeAt(n);if(60===l||62===l){u(n,o,1);continue}e.Debug.assert(124===l||61===l),f(c,n,a);break;case 6:break;default:e.Debug.assertNever(i)}}})(t),a=t.end-i;if(e.Debug.assert(a>=0),a>0){var o=n||h(t.kind,t);o&&u(i,a,o)}return!0}function h(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(63===t&&(253===n.kind||166===n.kind||163===n.kind||284===n.kind))return 5;if(220===n.kind||218===n.kind||219===n.kind||221===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&284===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(r)switch(r.parent.kind){case 256:return r.parent.name===r?11:void 0;case 162:return r.parent.name===r?15:void 0;case 257:return r.parent.name===r?13:void 0;case 259:return r.parent.name===r?12:void 0;case 260:return r.parent.name===r?14:void 0;case 163:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function y(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s<c.length;s++){var l=c[s];g(l)||y(l)}}}}e.getSemanticClassifications=(e,t,r,n,i)=>u(s(e,t,r,n,i)),e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=(e,t,r)=>u(d(e,t,r)),e.getEncodedSyntacticClassifications=d})(Fl),(e=>{var t;(t=>{function r(e,t,r,i){return{spans:n(e,r,i,t),endOfLineState:0}}function n(t,r,n,o){var s=[];return t&&r&&((t,r,n,o,s)=>{var c=t.getTypeChecker(),u=!1;!function d(p){switch(p.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 213:s.throwIfCancellationRequested()}if(p&&e.textSpanIntersectsWith(n,p.pos,p.getFullWidth())&&0!==p.getFullWidth()){var _=u;if((e.isJsxElement(p)||e.isJsxSelfClosingElement(p))&&(u=!0),e.isJsxExpression(p)&&(u=!1),e.isIdentifier(p)&&!u&&!(t=>{var r=t.parent;return r&&(e.isImportClause(r)||e.isImportSpecifier(r)||e.isNamespaceImport(r))})(p)&&!e.isInfinityOrNaNString(p.escapedText)){var f=c.getSymbolAtLocation(p);if(f){2097152&f.flags&&(f=c.getAliasedSymbol(f));var m=((t,r)=>{var n=t.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&r)return 2}else if(262144&n)return 4;var a=t.valueDeclaration||t.declarations&&t.declarations[0];return a&&e.isBindingElement(a)&&(a=i(a)),a&&l.get(a.kind)})(f,e.getMeaningFromLocation(p));if(void 0!==m){var g=0;p.parent&&(e.isBindingElement(p.parent)||l.get(p.parent.kind)===m)&&p.parent.name===p&&(g=1),6===m&&a(p)&&(m=9),m=((t,r,n)=>{if(7===n||9===n||6===n){var i=t.getTypeAtLocation(r);if(i){var o=e=>e(i)||i.isUnion()&&i.types.some(e);if(6!==n&&o((e=>e.getConstructSignatures().length>0)))return 0;if(o((e=>e.getCallSignatures().length>0))&&!o((e=>e.getProperties().length>0))||(t=>{for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t})(r))return 9===n?11:10}}return n})(c,p,m);var h=f.valueDeclaration;if(h){var y=e.getCombinedModifierFlags(h),v=e.getCombinedNodeFlags(h);32&y&&(g|=2),256&y&&(g|=4),0!==m&&2!==m&&(64&y||2&v||8&f.getFlags())&&(g|=8),7!==m&&10!==m||!((t,r)=>(e.isBindingElement(t)&&(t=i(t)),e.isVariableDeclaration(t)?(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r:!!e.isFunctionDeclaration(t)&&!e.isSourceFile(t.parent)&&t.getSourceFile()===r))(h,r)||(g|=32),t.isSourceFileDefaultLibrary(h.getSourceFile())&&(g|=16)}else f.declarations&&f.declarations.some((e=>t.isSourceFileDefaultLibrary(e.getSourceFile())))&&(g|=16);o(p,m,g)}}}e.forEachChild(p,d),u=_}}(r)})(t,r,n,((e,t,n)=>{s.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),o),s}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}var o,s,c;(c=t.TokenEncodingConsts||(t.TokenEncodingConsts={}))[c.typeOffset=8]="typeOffset",c[c.modifierMask=255]="modifierMask",(s=t.TokenType||(t.TokenType={}))[s.class=0]="class",s[s.enum=1]="enum",s[s.interface=2]="interface",s[s.namespace=3]="namespace",s[s.typeParameter=4]="typeParameter",s[s.type=5]="type",s[s.parameter=6]="parameter",s[s.variable=7]="variable",s[s.enumMember=8]="enumMember",s[s.property=9]="property",s[s.function=10]="function",s[s.member=11]="member",(o=t.TokenModifier||(t.TokenModifier={}))[o.declaration=0]="declaration",o[o.static=1]="static",o[o.async=2]="async",o[o.readonly=3]="readonly",o[o.defaultLibrary=4]="defaultLibrary",o[o.local=5]="local",t.getSemanticClassifications=(t,n,i,a)=>{var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;l<s.length;l+=3)c.push({textSpan:e.createTextSpan(s[l],s[l+1]),classificationType:s[l+2]});return c},t.getEncodedSemanticClassifications=r;var l=new e.Map([[253,7],[163,6],[166,9],[260,3],[259,1],[297,8],[256,0],[168,11],[255,10],[212,10],[167,11],[171,9],[172,9],[165,9],[257,2],[258,5],[162,4],[294,9],[295,9]])})((t=e.classifier||(e.classifier={})).v2020||(t.v2020={}))})(Fl),(e=>{var t;(r=>{function n(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((e=>{var r=e.name,n=e.kind,a=e.span;return{name:r,kind:n,kindModifiers:i(e.extension),sortText:t.SortText.LocationPriority,replacementSpan:a}}))}}function i(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(t)}}var a,o;function s(r,n,i,a,o,s,d){var p,_,m=c(n.parent);switch(m.kind){case 195:var g=c(m.parent);switch(g.kind){case 177:var h=g,y=e.findAncestor(m,(e=>e.parent===h));return y?{kind:2,types:u(a.getTypeArgumentConstraint(y)),isNewIdentifier:!1}:void 0;case 193:var v=g,b=v.indexType,x=v.objectType;if(!e.rangeContainsPosition(b,i))return;return l(a.getTypeFromTypeNode(x));case 199:return{kind:0,paths:f(r,n,o,s,a,d)};case 186:if(!e.isTypeReferenceNode(g.parent))return;var E=(p=g,_=m,e.mapDefined(p.types,(t=>t!==_&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:void 0)));return{kind:2,types:u(a.getTypeArgumentConstraint(g)).filter((t=>!e.contains(E,t.value))),isNewIdentifier:!1};default:return}case 294:return e.isObjectLiteralExpression(m.parent)&&m.name===n?((r,n)=>{var i=r.getContextualType(n);if(i){var a=r.getContextualType(n,4);return{kind:1,symbols:t.getPropertiesForObjectExpression(i,a,n,r),hasIndexSignature:e.hasIndexSignature(i)}}})(a,m.parent):k();case 206:var S=m,D=S.expression,T=S.argumentExpression;return n===e.skipParentheses(T)?l(a.getTypeAtLocation(D)):void 0;case 207:case 208:if(!(t=>e.isCallExpression(t.parent)&&e.firstOrUndefined(t.parent.arguments)===t&&e.isIdentifier(t.parent.expression)&&"require"===t.parent.expression.escapedText)(n)&&!e.isImportCall(m)){var C=e.SignatureHelp.getArgumentInfoForCompletions(n,i,r);return C?((t,r)=>{var n=!1,i=new e.Map,a=[];return r.getResolvedSignature(t.invocation,a,t.argumentCount),{kind:2,types:e.flatMap(a,(a=>{if(e.signatureHasRestParameter(a)||!(t.argumentCount>a.parameters.length)){var o=r.getParameterType(a,t.argumentIndex);return n=n||!!(4&o.flags),u(o,i)}})),isNewIdentifier:n}})(C,a):k()}case 265:case 271:case 276:return{kind:0,paths:f(r,n,o,s,a,d)};default:return k()}function k(){return{kind:2,types:u(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function c(t){switch(t.kind){case 190:return e.walkUpParenthesizedTypes(t);case 211:return e.walkUpParenthesizedExpressions(t);default:return t}}function l(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(t=>!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration)))),hasIndexSignature:e.hasIndexSignature(t)}}function u(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(e=>u(e,r))):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function d(e,t,r){return{name:e,kind:t,extension:r}}function p(e){return d(e,"directory",void 0)}function _(t,r,n){var i=((t,r)=>{var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)})(t,r),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((t=>{var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function f(t,r,n,i,a,o){return _(r.text,r.getStart(t)+1,((t,r,n,i,a,o)=>{var s,c=e.normalizeSlashes(r.text),l=t.path,u=e.getDirectoryPath(l);return(e=>{if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1})(c)||!n.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?((t,r,n,i,a,o)=>{var s=m(n,o);return n.rootDirs?((t,r,n,i,a,o,s)=>{var c=((t,r,n,i)=>{t=t.map((t=>e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))));var a=e.firstDefined(t,(t=>e.containsPath(t,n,r,i)?n.substr(t.length):void 0));return e.deduplicate(Il(Il([],t.map((t=>e.combinePaths(t,a))),!0),[n],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)})(t,a.project||o.getCurrentDirectory(),n,!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()));return e.flatMap(c,(e=>h(r,e,i,o,s)))})(n.rootDirs,t,r,s,n,i,a):h(t,r,s,i,a)})(c,u,n,i,l,(s=e.isStringLiteralLike(r)?e.getModeForUsageLocation(t,r):void 0,"js"===o.importModuleSpecifierEnding||s===e.ModuleKind.ESNext?2:0)):((t,r,n,i,a)=>{var o=n.baseUrl,s=n.paths,c=[],l=m(n);if(o){var u=n.project||i.getCurrentDirectory(),p=e.normalizePath(e.combinePaths(u,o));h(t,p,l,i,void 0,c),s&&y(c,t,p,l.extensions,s,i)}for(var _=v(t),f=0,g=((t,r,n)=>{var i=n.getAmbientModules().map((t=>e.stripQuotes(t.name))).filter((r=>e.startsWith(r,t)));if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map((t=>e.removePrefix(t,a)))}return i})(t,_,a);f<g.length;f++){var b=g[f];c.push(d(b,"external module name",void 0))}if(x(i,n,r,_,l,c),e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs){var E=!1;if(void 0===_)for(var D=e=>{c.some((t=>t.name===e))||(E=!0,c.push(d(e,"external module name",void 0)))},T=0,C=((t,r)=>{if(!t.readFile||!t.fileExists)return e.emptyArray;for(var n=[],i=0,a=e.findPackageJsons(r,t);i<a.length;i++)for(var o=a[i],s=e.readJson(o,t),c=0,l=S;c<l.length;c++){var u=s[l[c]];if(u)for(var d in u)u.hasOwnProperty(d)&&!e.startsWith(d,"@types/")&&n.push(d)}return n})(i,r);T<C.length;T++)D(C[T]);E||e.forEachAncestorDirectory(r,(r=>{var n=e.combinePaths(r,"node_modules");e.tryDirectoryExists(i,n)&&h(t,n,l,i,void 0,c)}))}return c})(c,u,n,i,a)})(t,r,n,i,a,o))}function m(t,r){return void 0===r&&(r=0),{extensions:e.flatten(g(t)),includeExtensionsOption:r}}function g(t){var r=e.getSupportedExtensions(t);return e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs?e.getSupportedExtensionsWithJsonIfResolveJsonModule(t,r):r}function h(t,r,n,i,a,o){var s=n.extensions,c=n.includeExtensionsOption;void 0===o&&(o=[]),void 0===t&&(t=""),t=e.normalizeSlashes(t),e.hasTrailingDirectorySeparator(t)||(t=e.getDirectoryPath(t)),""===t&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var l=e.resolvePath(r,t),u=e.hasTrailingDirectorySeparator(l)?l:e.getDirectoryPath(l),_=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(i,u))return o;var f=e.tryReadDirectory(i,u,s,void 0,["./*"]);if(f){for(var m=new e.Map,g=0,h=f;g<h.length;g++){var v=h[g];if(v=e.normalizePath(v),!a||0!==e.comparePaths(v,a,r,_)){var b=void 0,x=e.moduleSpecifiers.tryGetJSExtensionForFile(v,i.getCompilationSettings());0!==c||e.fileExtensionIsOneOf(v,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(e.fileExtensionIsOneOf(v,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||2===c)&&x?(b=e.changeExtension(e.getBaseFileName(v),x),m.set(b,x)):(b=e.getBaseFileName(v),m.set(b,e.tryGetExtensionFromPath(v))):(b=e.removeFileExtension(e.getBaseFileName(v)),m.set(b,e.tryGetExtensionFromPath(v)))}}m.forEach(((e,t)=>{o.push(d(t,"script",e))}))}var E=e.tryGetDirectories(i,u);if(E)for(var S=0,D=E;S<D.length;S++){var T=D[S],C=e.getBaseFileName(e.normalizePath(T));"@types"!==C&&o.push(p(C))}var k=e.findPackageJson(u,i);if(k){var A=e.readJson(k,i).typesVersions;if("object"==typeof A){var N=e.getPackageJsonTypesVersionsPaths(A),w=N&&N.paths,F=l.slice(e.ensureTrailingDirectorySeparator(u).length);w&&y(o,F,u,s,w,i)}}return o}function y(t,r,n,i,a,o){for(var s in a)if(e.hasProperty(a,s)){var c=a[s];if(c)for(var l=(e,r,n)=>{t.some((t=>t.name===e))||t.push(d(e,r,n))},u=0,p=b(s,c,r,n,i,o);u<p.length;u++){var _=p[u];l(_.name,_.kind,_.extension)}}}function v(t){return D(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function b(t,r,n,i,a,o){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:l(t);var s=t.slice(0,t.length-1),c=e.tryRemovePrefix(n,s);return void 0===c?l(s):e.flatMap(r,(t=>((t,r,n,i,a)=>{if(a.readDirectory){var o=e.tryParsePattern(n);if(void 0!==o&&!e.isString(o)){var s=e.resolvePath(o.prefix),c=e.hasTrailingDirectorySeparator(o.prefix)?s:e.getDirectoryPath(s),l=e.hasTrailingDirectorySeparator(o.prefix)?"":e.getBaseFileName(s),u=D(t),_=u?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,f=u?e.combinePaths(c,l+_):c,m=e.normalizePath(o.suffix),g=e.normalizePath(e.combinePaths(r,f)),h=u?g:e.ensureTrailingDirectorySeparator(g)+l,y=m?"**/*":"./*",v=e.mapDefined(e.tryReadDirectory(a,g,i,void 0,[y]),(t=>{var r=e.tryGetExtensionFromPath(t),n=x(t);return void 0===n?void 0:d(e.removeFileExtension(n),"script",r)})),b=e.mapDefined(e.tryGetDirectories(a,g).map((t=>e.combinePaths(g,t))),(e=>{var t=x(e);return void 0===t?void 0:p(t)}));return Il(Il([],v,!0),b,!0)}}function x(t){var r,n,i,a=(r=e.normalizePath(t),n=h,i=m,e.startsWith(r,n)&&e.endsWith(r,i)?r.slice(n.length,r.length-i.length):void 0);return void 0===a?void 0:(t=>t[0]===e.directorySeparator?t.slice(1):t)(a)}})(c,i,t,a,o)));function l(t){return e.startsWith(t,n)?[p(t)]:e.emptyArray}}function x(t,r,n,i,a,o){void 0===o&&(o=[]);for(var s=new e.Map,c=0,l=e.tryAndIgnoreErrors((()=>e.getEffectiveTypeRoots(r,t)))||e.emptyArray;c<l.length;c++)f(l[c]);for(var u=0,p=e.findPackageJsons(n,t);u<p.length;u++){var _=p[u];f(e.combinePaths(e.getDirectoryPath(_),"node_modules/@types"))}return o;function f(n){if(e.tryDirectoryExists(t,n))for(var c=0,l=e.tryGetDirectories(t,n);c<l.length;c++){var u=l[c],p=e.unmangleScopedPackageName(u);if(!r.types||e.contains(r.types,p))if(void 0===i)s.has(p)||(o.push(d(p,"external module name",void 0)),s.set(p,!0));else{var _=e.combinePaths(n,u),f=e.tryRemoveDirectoryPrefix(i,p,e.hostGetCanonicalFileName(t));void 0!==f&&h(f,_,a,t,void 0,o)}}}}r.getStringLiteralCompletions=(r,i,a,o,c,l,u,d)=>{if(e.isInReferenceComment(r,i))return(p=((t,r,n,i)=>{var a=e.getTokenAtPosition(t,r),o=e.getLeadingCommentRanges(t.text,a.pos),s=o&&e.find(o,(e=>r>=e.pos&&r<=e.end));if(s){var c=t.text.slice(s.pos,r),l=E.exec(c);if(l){var u=l[1],d=l[2],p=l[3],f=e.getDirectoryPath(t.path),g="path"===d?h(p,f,m(n,1),i,t.path):"types"===d?x(i,n,f,v(p),m(n)):e.Debug.fail();return _(p,s.pos+u.length,g)}}})(r,i,o,c))&&n(p);if(e.isInString(r,i,a)){if(!a||!e.isStringLiteralLike(a))return;var p;return((r,i,a,o,s,c,l,u)=>{if(void 0!==r){var d=e.createTextSpanFromStringLiteralLikeContent(i);switch(r.kind){case 0:return n(r.paths);case 1:var p=[];return t.getCompletionEntriesFromSymbols(r.symbols,p,i,i,a,a,o,s,99,c,4,u,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:d,entries:p};case 2:return p=r.types.map((r=>({name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(i)}))),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:d,entries:p};default:return e.Debug.assertNever(r)}}})(p=s(r,a,i,l.getTypeChecker(),o,c,d),a,r,c,l,u,o,d)}},r.getStringLiteralCompletionDetails=(r,n,a,o,c,l,u,d,p)=>{if(o&&e.isStringLiteralLike(o)){var _=s(n,o,a,c,l,u,p);return _&&((r,n,a,o,s,c)=>{switch(a.kind){case 0:return(l=e.find(a.paths,(e=>e.name===r)))&&t.createCompletionDetails(r,i(l.extension),l.kind,[e.textPart(r)]);case 1:var l;return(l=e.find(a.symbols,(e=>e.name===r)))&&t.createCompletionDetailsForSymbol(l,s,o,n,c);case 2:return e.find(a.types,(e=>e.value===r))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(a)}})(r,o,_,n,c,d)}},(e=>{e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"})(a||(a={})),(e=>{e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(o||(o={}));var E=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,S=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function D(t){return e.stringContains(t,e.directorySeparator)}})((t=e.Completions||(e.Completions={})).StringCompletions||(t.StringCompletions={}))})(Fl),(e=>{!(t=>{var r,n,i,a,o,s,c,l;function u(e){return!!(e&&4&e.kind)}function d(e){return!(!e||32!==e.kind)}function p(e){return(u(e)||d(e))&&!!e.isFromPackageJson}function _(r,n,i,a,o,s,c){var l,u,d,p=e.timestamp(),_=!1,f=0,m=0,g=0,h=0,y=c({tryResolve(r,c){if(c){var l=e.codefix.getModuleSpecifierForBestExportInfo(r,a,i,n,o);return l&&f++,l}var u=s||o.allowIncompleteCompletions&&m<t.moduleSpecifierResolutionLimit,d=!u&&o.allowIncompleteCompletions&&h<t.moduleSpecifierResolutionCacheAttemptLimit,p=u||d?e.codefix.getModuleSpecifierForBestExportInfo(r,a,i,n,o,d):void 0;return(!u&&!d||d&&!p)&&(_=!0),m+=(null==p?void 0:p.computedWithoutCacheCount)||0,g+=r.length-m,d&&h++,p},resolutionLimitExceeded:()=>_}),v=h?" (".concat((g/h*100).toFixed(1),"% hit rate)"):"";return null===(l=n.log)||void 0===l||l.call(n,"".concat(r,": resolved ").concat(m," module specifiers, plus ").concat(f," ambient and ").concat(g," from cache").concat(v)),null===(u=n.log)||void 0===u||u.call(n,"".concat(r,": response is ").concat(_?"incomplete":"complete")),null===(d=n.log)||void 0===d||d.call(n,"".concat(r,": ").concat(e.timestamp()-p)),y}function f(e){return!!(null==e?void 0:e.moduleSpecifier)}function m(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function g(e,t,r){return{kind:4,keywordCompletions:z(e,t),isNewIdentifierLocation:r}}function h(t){return 79===(null==t?void 0:t.kind)?e.createTextSpanFromNode(t):void 0}function y(t,r){return e.isSourceFileJS(t)&&!e.isCheckJsEnabledForFile(t,r)}function v(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function b(t,r,n){return"object"==typeof n?e.pseudoBigIntToString(n)+"n":e.isString(n)?e.quote(t,r,n):JSON.stringify(n)}function x(e,t,n){return{name:b(e,t,n),kind:"string",kindModifiers:"",sortText:r.LocationPriority}}function E(t,r,n,a,o,s,c,l,_,f,m,g,h,y,v,b,x,E,D){var C,w,F,P,I,O,M,R=e.getReplacementSpanForContextToken(n),L=N(m),B=l.getTypeChecker(),j=m&&(e=>!!(16&e.kind))(m),U=m&&(e=>!!(2&e.kind))(m)||f;if(m&&(e=>!!(1&e.kind))(m))F=f?"this".concat(j?"?.":"","[").concat(k(s,E,_),"]"):"this".concat(j?"?.":".").concat(_);else if((U||j)&&h){F=U?"[".concat(f?k(s,E,_):_,"]"):_,(j||h.questionDotToken)&&(F="?.".concat(F));var V=e.findChildOfKind(h,24,s)||e.findChildOfKind(h,28,s);if(!V)return;var z=e.startsWith(_,h.name.text)?h.name.end:V.end;R=e.createTextSpanFromBounds(V.getStart(s),z)}if(y&&(void 0===F&&(F=_),F="{".concat(F,"}"),"boolean"!=typeof y&&(R=e.createTextSpanFromNode(y,s))),m&&(e=>!!(8&e.kind))(m)&&h){void 0===F&&(F=_);var K=e.findPrecedingToken(h.pos,s),W="";K&&e.positionIsASICandidate(K.end,K.parent,s)&&(W=";"),W+="(await ".concat(h.expression.getText(),")"),F=f?"".concat(W).concat(F):"".concat(W).concat(j?"?.":".").concat(F),R=e.createTextSpanFromBounds(h.getStart(s),h.end)}if(d(m)&&(O=[e.textPart(m.moduleSpecifier)],v&&(F=(C=((t,r,n,i,a,o,s)=>{var c,l,u,d=r.getSourceFile(),p=e.createTextSpanFromNode(e.findAncestor(r,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration))||r,d),_=e.quote(d,s,i.moduleSpecifier),f=i.isDefaultExport?1:"export="===i.exportName?2:0,m=s.includeCompletionsWithSnippetText?"$1":"",g=e.codefix.getImportKind(d,f,o,!0),h=(null===(l=null===(c=e.tryCast(r,e.isImportDeclaration))||void 0===c?void 0:c.importClause)||void 0===l?void 0:l.isTypeOnly)||(null===(u=e.tryCast(r,e.isImportEqualsDeclaration))||void 0===u?void 0:u.isTypeOnly),y=te(r,n),v=h?" ".concat(e.tokenToString(151)," "):" ",b=y?"".concat(e.tokenToString(151)," "):"",x=a?";":"";switch(g){case 3:return{replacementSpan:p,insertText:"import".concat(v).concat(e.escapeSnippetText(t)).concat(m," = require(").concat(_,")").concat(x)};case 1:return{replacementSpan:p,insertText:"import".concat(v).concat(e.escapeSnippetText(t)).concat(m," from ").concat(_).concat(x)};case 2:return{replacementSpan:p,insertText:"import".concat(v,"* as ").concat(e.escapeSnippetText(t)," from ").concat(_).concat(x)};case 0:return{replacementSpan:p,insertText:"import".concat(v,"{ ").concat(b).concat(e.escapeSnippetText(t)).concat(m," } from ").concat(_).concat(x)}}})(_,v,a,m,b,x,E)).insertText,R=C.replacementSpan,I=!!E.includeCompletionsWithSnippetText||void 0)),E.includeCompletionsWithClassMemberSnippets&&E.includeCompletionsWithInsertText&&3===D&&((t,r)=>!e.isInJSFile(r)&&!!(106500&t.flags)&&(e.isClassLike(r)||r.parent&&r.parent.parent&&e.isClassElement(r.parent)&&r===r.parent.name&&e.isClassLike(r.parent.parent)||r.parent&&e.isSyntaxList(r)&&e.isClassLike(r.parent)))(t,o)){var H=void 0;F=(w=S(c,l,x,E,_,t,o,a)).insertText,I=w.isSnippet,(null==(H=w.importAdder)?void 0:H.hasFixes())&&(M=!0,L=i.ClassMemberSnippet)}var J=e.SymbolDisplay.getSymbolKind(B,t,o);if("JSX attribute"===J&&(29!==o.kind||o.pos!==o.parent.pos)&&E.includeCompletionsWithSnippetText&&E.jsxAttributeCompletionStyle&&"none"!==E.jsxAttributeCompletionStyle){var $="braces"===E.jsxAttributeCompletionStyle,G=B.getTypeOfSymbolAtLocation(t,o);"auto"!==E.jsxAttributeCompletionStyle||528&G.flags||1048576&G.flags&&e.find(G.types,(e=>!!(528&e.flags)))||(402653316&G.flags||1048576&G.flags&&e.every(G.types,(e=>!!(402686084&e.flags)))?(F="".concat(e.escapeSnippetText(_),"=").concat(e.quote(s,E,"$1")),I=!0):$=!0),$&&(F="".concat(e.escapeSnippetText(_),"={$1}"),I=!0)}if(void 0===F||E.includeCompletionsWithInsertText)return(u(m)||d(m))&&(P=T(m),M=!v),{name:_,kind:J,kindModifiers:e.SymbolDisplay.getSymbolModifiers(B,t),sortText:r,source:L,hasAction:!!M||void 0,isRecommended:A(t,g,B)||void 0,insertText:F,replacementSpan:R,sourceDisplay:O,isSnippet:I,isPackageJsonImport:p(m)||void 0,isImportStatementCompletion:!!v||void 0,data:P}}function S(t,r,n,i,a,o,s,c){var l,u=e.findAncestor(s,e.isClassLike);if(!u)return{insertText:a};var d,p=a,_=r.getTypeChecker(),f=s.getSourceFile(),m=(t=>{var r=e.createPrinter(t),n=e.createTextWriter(e.getNewLineCharacter(t)),i=Ol(Ol({},n),{write:t=>n.write(e.escapeSnippetText(t)),nonEscapingWrite:n.write,writeLiteral:t=>n.writeLiteral(e.escapeSnippetText(t)),writeStringLiteral:t=>n.writeStringLiteral(e.escapeSnippetText(t)),writeSymbol:(t,r)=>n.writeSymbol(e.escapeSnippetText(t),r),writeParameter:t=>n.writeParameter(e.escapeSnippetText(t)),writeComment:t=>n.writeComment(e.escapeSnippetText(t)),writeProperty:t=>n.writeProperty(e.escapeSnippetText(t))});return{printSnippetList:(e,t,n)=>(i.clear(),r.writeList(e,t,n,i),i.getText())}})({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(n,e.maybeBind(t,t.getNewLine)))}),g=e.codefix.createImportAdder(f,r,i,t);if(i.includeCompletionsWithSnippetText){l=!0;var h=e.factory.createExpressionStatement(e.factory.createIdentifier(""));e.setSnippetElement(h,{kind:0,order:0}),d=e.factory.createBlock([h],!0)}else d=e.factory.createBlock([],!0);var y=0,v=c&&126===D(c),b=[];return e.codefix.addNewNodeForMemberSymbol(o,u,f,{program:r,host:t},i,g,(t=>{var r=0;v&&(r|=128),e.isClassElement(t)&&1===_.getMemberOverrideModifierStatus(u,t)&&(r|=16384);var n=0;b.length||(c&&(n=(t=>{var r,n=0;return(r=D(t))&&(n|=e.modifierToFlag(r)),e.isPropertyDeclaration(t.parent)&&(n|=e.modifiersToFlags(t.parent.modifiers)),n})(c)),y=t.modifierFlagsCache|r|n),t=e.factory.updateModifiers(t,y&~n),b.push(t)}),d,2,v),b.length&&(p=m.printSnippetList(131073,e.factory.createNodeArray(b),f)),{insertText:p,isSnippet:l,importAdder:g}}function D(t){return e.isModifier(t)?t.kind:e.isIdentifier(t)&&t.originalKeywordKind&&e.isModifierKind(t.originalKeywordKind)?t.originalKeywordKind:void 0}function T(t){var r=t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),n=!!t.isFromPackageJson||void 0;return d(t)?{exportName:t.exportName,moduleSpecifier:t.moduleSpecifier,ambientModuleName:r,fileName:t.fileName,isPackageJsonImport:n}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),isPackageJsonImport:!!t.isFromPackageJson||void 0}}function C(e,t,r){var n="default"===e.exportName,i=!!e.isPackageJsonImport;return f(e)?{kind:32,exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}}function k(t,r,n){return/^\d+$/.test(n)?n:e.quote(t,r,n)}function A(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function N(t){return u(t)?e.stripQuotes(t.moduleSymbol.name):d(t)?t.moduleSpecifier:1===(null==t?void 0:t.kind)?i.ThisProperty:void 0}function w(t,r,n,i,a,o,s,c,l,u,d,p,_,f,m,g,h,y,v,b,x){for(var S,D,T=e.timestamp(),C=(D=a,e.findAncestor(D,(t=>e.isFunctionBlock(t)||(t=>t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t)(t)||e.isBindingPattern(t)?"quit":e.isVariableDeclaration(t)))),k=e.probablyUsesSemicolons(o),A=c.getTypeChecker(),N=new e.Map,w=0;w<t.length;w++){var F=t[w],P=null==b?void 0:b[w],I=j(F,l,P,d,!!g);if(I&&!N.get(I.name)&&(1!==d||!x||U(F,x))){var O=I.name,M=I.needsConvertPropertyAccess,R=null!==(S=null==x?void 0:x[e.getSymbolId(F)])&&void 0!==S?S:11,L=E(F,(ae(F,A)?8+R:R).toString(),n,i,a,o,s,c,O,M,P,v,m,h,y,k,_,p,d);if(L){var B=!(P||void 0===F.parent&&!e.some(F.declarations,(e=>e.getSourceFile()===a.getSourceFile())));N.set(O,B),r.push(L)}}}return u("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-T)),{has:e=>N.has(e),add:e=>N.set(e,!0)};function U(t,r){if(!e.isSourceFile(a)){if(e.isExportAssignment(a.parent))return!0;if(C&&t.valueDeclaration===C)return!1;var n=e.skipAlias(t,A);if(o.externalModuleIndicator&&!_.allowUmdGlobalAccess&&15===r[e.getSymbolId(t)]&&(16===r[e.getSymbolId(n)]||11===r[e.getSymbolId(n)]))return!1;if(t=n,e.isInRightSideOfInternalImportEqualsDeclaration(a))return!!(1920&t.flags);if(f)return ie(t,A)}return!!(111551&e.getCombinedLocalAndExportSymbolFlags(t))}}function F(t,r,n,a,o,s,c){if(o.data){var l=B(o.name,o.data,t,s);if(l){var u=L(a,n),d=u.contextToken,p=u.previousToken;return{type:"symbol",symbol:l.symbol,location:e.getTouchingPropertyName(n,a),previousToken:p,contextToken:d,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:l.origin}}}var _=t.getCompilerOptions(),f=R(t,r,n,y(n,_),a,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s);if(!f)return{type:"none"};if(0!==f.kind)return{type:"request",request:f};var m=f.symbols,g=f.literals,h=f.location,v=f.completionKind,x=f.symbolToOriginInfoMap,E=f.contextToken,S=f.previousToken,D=f.isJsxInitializer,T=f.isTypeOnlyLocation,C=e.find(g,(e=>b(n,c,e)===o.name));return void 0!==C?{type:"literal",literal:C}:e.firstDefined(m,((t,r)=>{var n=x[r],a=j(t,e.getEmitScriptTarget(_),n,v,f.isJsxIdentifierExpected);return a&&a.name===o.name&&(o.source===i.ClassMemberSnippet&&106500&t.flags||N(n)===o.source)?{type:"symbol",symbol:t,location:h,origin:n,contextToken:E,previousToken:S,isJsxInitializer:D,isTypeOnlyLocation:T}:void 0}))||{type:"none"}}function P(t,r,n){return O(t,"",r,[e.displayPart(t,n)])}function I(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,(r=>e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7))),l=c.displayParts,u=c.documentation,d=c.symbolKind,p=c.tags;return O(t.name,e.SymbolDisplay.getSymbolModifiers(r,t),d,l,u,p,o,s)}function O(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s,sourceDisplay:s}}function M(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,!1);return i?e.first(i):t.parent&&((e=>{var t;return!!(null===(t=e.declarations)||void 0===t?void 0:t.some((e=>303===e.kind)))})(t.parent)?t:M(t.parent,r,n))}function R(t,n,i,a,o,s,c,l,u){var d=t.getTypeChecker(),p=e.timestamp(),f=e.getTokenAtPosition(i,o);n("getCompletionData: Get current token: "+(e.timestamp()-p)),p=e.timestamp();var m=e.isInComment(i,o,f);n("getCompletionData: Is inside comment: "+(e.timestamp()-p));var h=!1,y=!1;if(m){if(e.hasDocComment(i,o)){if(64===i.text.charCodeAt(o-1))return{kind:1};var v=e.getLineStartPositionForPosition(o,i);if(!/[^\*|\s(/)]/.test(i.text.substring(v,o)))return{kind:2}}var b=((t,r)=>{var n=e.findAncestor(t,e.isJSDoc);return n&&n.tags&&(e.rangeContainsPosition(n,r)?e.findLast(n.tags,(e=>e.pos<r)):void 0)})(f,o);if(b){if(b.tagName.pos<=o&&o<=b.tagName.end)return{kind:1};if((e=>{switch(e.kind){case 338:case 345:case 339:case 341:case 343:return!0;default:return!1}})(b)&&b.typeExpression&&307===b.typeExpression.kind&&((f=e.getTokenAtPosition(i,o))&&(e.isDeclarationName(f)||345===f.parent.kind&&f.parent.name===f)||(h=Ae(b.typeExpression))),!h&&e.isJSDocParameterTag(b)&&(e.nodeIsMissing(b.name)||b.name.pos<=o&&o<=b.name.end))return{kind:3,tag:b}}if(!h)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}p=e.timestamp();var x=!h&&e.isSourceFileJS(i),E=L(o,i),S=E.previousToken,D=E.contextToken;n("getCompletionData: Get previous token: "+(e.timestamp()-p));var T,C,k,A=f,N=!1,w=!1,F=!1,P=!1,I=!1,O=!1,R=e.getTouchingPropertyName(i,o),B=0,j=!1;if(D){var U=ee(D);if(j=U.isNewIdentifierLocation,U.keywordCompletion){if(U.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(k=U.keywordCompletion,{name:e.tokenToString(k),kind:"keyword",kindModifiers:"",sortText:r.GlobalsOrKeywords})],isNewIdentifierLocation:j};B=(t=>{switch(t){case 151:return 8;default:e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}})(U.keywordCompletion)}if(U.replacementNode&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(C=U.replacementNode),!C&&(t=>{var r=e.timestamp(),a=(t=>(e.isRegularExpressionLiteral(t)||e.isStringTextContainingNode(t))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(t)),o)||o===t.end&&(!!t.isUnterminated||e.isRegularExpressionLiteral(t))))(t)||(t=>{var r=t.parent,n=r.kind;switch(t.kind){case 27:return 253===n||(t=>254===t.parent.kind&&!e.isPossiblyTypeArgumentPosition(t,i,d))(t)||236===n||259===n||De(n)||257===n||201===n||258===n||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:return 201===n;case 58:return 202===n;case 22:return 201===n;case 20:return 291===n||De(n);case 18:return 259===n;case 29:return 256===n||225===n||257===n||258===n||e.isFunctionLikeKind(n);case 124:return 166===n&&!e.isClassLike(r.parent);case 25:return 163===n||!!r.parent&&201===r.parent.kind;case 123:case 121:case 122:return 163===n&&!e.isConstructorDeclaration(r.parent);case 127:return 269===n||274===n||267===n;case 136:case 148:return!Q(t);case 79:if(269===n&&t===r.name&&"type"===t.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 151:return 269!==n;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(H($(t))&&Q(t))return!1;if(Ee(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier($(t))||Ae(t)))return!1;switch($(t)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return e.isPropertyDeclaration(t.parent)}if(e.findAncestor(t.parent,e.isClassLike)&&t===S&&Se(t,o))return!1;var a=e.getAncestor(t.parent,166);if(a&&t!==S&&e.isClassLike(S.parent.parent)&&o<=S.end){if(Se(t,S.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(a)||e.hasType(a)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==S||o>S.end))})(t)||(e=>{if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1})(t)||(e=>{if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(279===e.parent.kind)return 279!==R.parent.kind;if(280===e.parent.kind||278===e.parent.kind)return!!e.parent.parent&&277===e.parent.parent.kind}return!1})(t)||e.isBigIntLiteral(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a})(D))return n("Returning an empty list because completion was requested in an invalid position."),B?g(B,x,xe()):void 0;var V=D.parent;if(24===D.kind||28===D.kind)switch(N=24===D.kind,w=28===D.kind,V.kind){case 205:A=(T=V).expression;var z=e.getLeftmostAccessExpression(T);if(e.nodeIsMissing(z)||(e.isCallExpression(A)||e.isFunctionLike(A))&&A.end===D.pos&&A.getChildCount(i)&&21!==e.last(A.getChildren(i)).kind)return;break;case 160:A=V.left;break;case 260:A=V.name;break;case 199:A=V;break;case 230:A=V.getFirstToken(i),e.Debug.assert(100===A.kind||103===A.kind);break;default:return}else if(!C&&1===i.languageVariant){if(V&&205===V.kind&&(D=V,V=V.parent),f.parent===R)switch(f.kind){case 31:277!==f.parent.kind&&279!==f.parent.kind||(R=f);break;case 43:278===f.parent.kind&&(R=f)}switch(V.kind){case 280:43===D.kind&&(P=!0,R=D);break;case 220:if(!Z(V))break;case 278:case 277:case 279:O=!0,29===D.kind&&(F=!0,R=D);break;case 287:case 286:19===S.kind&&31===f.kind&&(O=!0);break;case 284:if(V.initializer===S&&S.end<o){O=!0;break}switch(S.kind){case 63:I=!0;break;case 79:O=!0,V!==S.parent&&!V.initializer&&e.findChildOfKind(V,63,i)&&(I=S)}}}}var K=e.timestamp(),J=5,q=!1,re=!1,ne=[],ae=[],se=[],ce=new e.Map,le=h||!!C&&e.isTypeOnlyImportOrExportDeclaration(R.parent)||!(t=>t&&(112===t.kind&&(180===t.parent.kind||e.isTypeOfExpression(t.parent))||128===t.kind&&176===t.parent.kind))(D)&&(e.isPossiblyTypeArgumentPosition(D,i,d)||e.isPartOfTypeNode(R)||(t=>{if(t){var r=t.parent.kind;switch(t.kind){case 58:return 166===r||165===r||163===r||253===r||e.isFunctionLikeKind(r);case 63:return 258===r;case 127:return 228===r;case 29:return 177===r||210===r;case 94:return 162===r}}return!1})(D)),ue=e.memoizeOne((r=>e.createModuleSpecifierResolutionHost(r?l.getPackageJsonAutoImportProvider():t,l)));if(N||w)!(()=>{J=2;var t=e.isLiteralImportTypeNode(A),r=h||t&&!A.isTypeOf||e.isPartOfTypeNode(A.parent)||e.isPossiblyTypeArgumentPosition(D,i,d),n=e.isInRightSideOfInternalImportEqualsDeclaration(A);if(e.isEntityName(A)||t||e.isPropertyAccessExpression(A)){var a=e.isModuleDeclaration(A.parent);a&&(j=!0);var o=d.getSymbolAtLocation(A);if(o&&1920&(o=e.skipAlias(o,d)).flags){var c=d.getExportsOfModule(o);e.Debug.assertEachIsDefined(c,"getExportsOfModule() should all be defined");for(var l=e=>d.isValidPropertyAccess(t?A:A.parent,e.name),u=e=>ie(e,d),p=a?e=>{var t;return!!(1920&e.flags)&&!(null===(t=e.declarations)||void 0===t?void 0:t.every((e=>e.parent===A.parent)))}:n?e=>u(e)||l(e):r?u:l,_=0,f=c;_<f.length;_++){var m=f[_];p(m)&&ne.push(m)}if(!r&&o.declarations&&o.declarations.some((e=>303!==e.kind&&260!==e.kind&&259!==e.kind))){var g=!1;(y=d.getTypeOfSymbolAtLocation(o,A).getNonOptionalType()).isNullableType()&&((v=N&&!w&&!1!==s.includeAutomaticOptionalChainCompletions)||w)&&(y=y.getNonNullableType(),v&&(g=!0)),ge(y,!!(32768&A.flags),g)}return}}if(!r){var y,v,b=e.getThisContainer(A,!1);!e.isSourceFile(b)&&b.parent&&d.getTypeAtLocation(b),g=!1,(y=d.getTypeAtLocation(A).getNonOptionalType()).isNullableType()&&((v=N&&!w&&!1!==s.includeAutomaticOptionalChainCompletions)||w)&&(y=y.getNonNullableType(),v&&(g=!0)),ge(y,!!(32768&A.flags),g)}})();else if(F)ne=d.getJsxIntrinsicTagNamesAt(R),e.Debug.assertEachIsDefined(ne,"getJsxIntrinsicTagNames() should all be defined"),ve(),J=1,B=0;else if(P){var de=D.parent.parent.openingElement.tagName,pe=d.getSymbolAtLocation(de);pe&&(ne=[pe]),J=1,B=0}else if(!ve())return B?g(B,x,j):void 0;n("getCompletionData: Semantic work: "+(e.timestamp()-K));var _e=S&&((t,r,n,i)=>{var a=t.parent;switch(t.kind){case 79:return e.getContextualTypeFromParent(t,i);case 63:switch(a.kind){case 253:return i.getContextualType(a.initializer);case 220:return i.getTypeAtLocation(a.left);case 284:return i.getContextualTypeForJsxAttribute(a);default:return}case 103:return i.getContextualType(a);case 82:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return!e.isJsxExpression(a)||e.isJsxElement(a.parent)||e.isJsxFragment(a.parent)?void 0:i.getContextualTypeForJsxAttribute(a.parent);default:var o=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===t.kind?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}})(S,o,i,d),fe=e.mapDefined(_e&&(_e.isUnion()?_e.types:[_e]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)),me=S&&_e&&((t,r,n)=>e.firstDefined(r&&(r.isUnion()?r.types:[r]),(r=>{var i=r&&r.symbol;return i&&424&i.flags&&!e.isAbstractConstructorSymbol(i)?M(i,t,n):void 0})))(S,_e,d);return{kind:0,symbols:ne,completionKind:J,isInSnippetScope:y,propertyAccessToConvert:T,isNewIdentifierLocation:j,location:R,keywordFilters:B,literals:fe,symbolToOriginInfoMap:ae,recommendedCompletion:me,previousToken:S,contextToken:D,isJsxInitializer:I,insideJsDocTagTypeExpression:h,symbolToSortTextIdMap:se,isTypeOnlyLocation:le,isJsxIdentifierExpected:O,importCompletionNode:C,hasUnresolvedAutoImports:re};function ge(t,r,n){j=!!t.getStringIndexType(),w&&e.some(t.getCallSignatures())&&(j=!0);var i=199===A.kind?A:A.parent;if(a)ne.push.apply(ne,e.filter(X(t,d),(e=>d.isValidPropertyAccessForCompletions(i,t,e))));else for(var o=0,c=t.getApparentProperties();o<c.length;o++){var l=c[o];d.isValidPropertyAccessForCompletions(i,t,l)&&he(l,!1,n)}if(r&&s.includeCompletionsWithInsertText){var u=d.getPromisedTypeOfPromise(t);if(u)for(var p=0,_=u.getApparentProperties();p<_.length;p++)l=_[p],d.isValidPropertyAccessForCompletions(i,u,l)&&he(l,!0,n)}}function he(r,n,a){var o,c=e.firstDefined(r.declarations,(t=>e.tryCast(e.getNameOfDeclaration(t),e.isComputedPropertyName)));if(c){var u=ye(c.expression),p=u&&d.getSymbolAtLocation(u),_=p&&M(p,D,d);if(_&&e.addToSeen(ce,e.getSymbolId(_))){var f=ne.length;ne.push(_);var m=_.parent;if(m&&e.isExternalModuleSymbol(m)&&d.tryGetMemberInModuleExportsAndProperties(_.name,m)===_){var g=e.isExternalModuleNameRelative(e.stripQuotes(m.name))?null===(o=e.getSourceFileOfModule(m))||void 0===o?void 0:o.fileName:void 0,h=(e.codefix.getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:g,isFromPackageJson:!1,moduleSymbol:m,symbol:_,targetFlags:e.skipAlias(_,d).flags}],i,t,l,s)||{}).moduleSpecifier;if(h){var y={kind:x(6),moduleSymbol:m,isDefaultExport:!1,symbolName:_.name,exportName:_.name,fileName:g,moduleSpecifier:h};ae[f]=y}}else ae[f]={kind:x(2)}}else s.includeCompletionsWithInsertText&&(b(r),v(r),ne.push(r))}else b(r),v(r),ne.push(r);function v(t){(t=>!!(t.valueDeclaration&&32&e.getEffectiveModifierFlags(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent)))(t)&&(se[e.getSymbolId(t)]=10)}function b(t){s.includeCompletionsWithInsertText&&(n&&e.addToSeen(ce,e.getSymbolId(t))?ae[ne.length]={kind:x(8)}:a&&(ae[ne.length]={kind:16}))}function x(e){return a?16|e:e}}function ye(t){return e.isIdentifier(t)?t:e.isPropertyAccessExpression(t)?ye(t.expression):void 0}function ve(){return 1===((()=>{var t=(t=>{if(t){var r=t.parent;switch(t.kind){case 18:if(e.isTypeLiteralNode(r))return r;break;case 26:case 27:case 79:if(165===r.kind&&e.isTypeLiteralNode(r.parent))return r.parent}}})(D);if(!t)return 0;var r=(e.isIntersectionTypeNode(t.parent)?t.parent:void 0)||t,n=Y(r,d);if(!n)return 0;var i=d.getTypeFromTypeNode(r),a=X(n,d),o=X(i,d),s=new e.Set;return o.forEach((e=>s.add(e.escapedName))),ne=e.concatenate(ne,e.filter(a,(e=>!s.has(e.escapedName)))),J=0,j=!0,1})()||(()=>{var t,r,n=(t=>{if(t){var r=t.parent;switch(t.kind){case 18:case 27:if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r;break;case 41:return e.isMethodDeclaration(r)?e.tryCast(r.parent,e.isObjectLiteralExpression):void 0;case 79:return"async"===t.text&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:void 0}}})(D);if(!n)return 0;if(J=0,204===n.kind){var i=((t,r)=>r.getContextualType(t)||(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&t===t.parent.left?r.getTypeAtLocation(t.parent):void 0))(n,d);if(void 0===i)return 16777216&n.flags?2:(q=!0,0);var a=d.getContextualType(n,4),o=(a||i).getStringIndexType(),s=(a||i).getNumberIndexType();if(j=!!o||!!s,t=G(i,a,n,d),r=n.properties,0===t.length&&!s)return q=!0,0}else{e.Debug.assert(200===n.kind),j=!1;var c=e.getRootDeclaration(n.parent);if(!e.isVariableLike(c))return e.Debug.fail("Root declaration is not variable-like.");var l=e.hasInitializer(c)||e.hasType(c)||243===c.parent.parent.kind;if(l||163!==c.kind||(e.isExpression(c.parent)?l=!!d.getContextualType(c.parent):168!==c.parent.kind&&172!==c.parent.kind||(l=e.isExpression(c.parent.parent)&&!!d.getContextualType(c.parent.parent))),l){var u=d.getTypeAtLocation(n);if(!u)return 2;t=d.getPropertiesOfType(u).filter((e=>d.isPropertyAccessible(n,!1,!1,u,e))),r=n.elements}}return t&&t.length>0&&(ne=e.concatenate(ne,((t,r)=>{if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if((294===s.kind||295===s.kind||202===s.kind||168===s.kind||171===s.kind||172===s.kind||296===s.kind)&&!Ae(s)){var c=void 0;if(e.isSpreadAssignment(s))Te(s,n);else if(e.isBindingElement(s)&&s.propertyName)79===s.propertyName.kind&&(c=s.propertyName.escapedText);else{var l=e.getNameOfDeclaration(s);c=l&&e.isPropertyNameLiteral(l)?e.getEscapedTextOfIdentifierOrLiteral(l):void 0}void 0!==c&&i.add(c)}}var u=t.filter((e=>!i.has(e.escapedName)));return ke(n,u),u})(t,e.Debug.checkDefined(r)))),Ce(),1})()||(C?(j=!0,be(),1):0)||(()=>{if(!D)return 0;var t=18===D.kind||27===D.kind?e.tryCast(D.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(D)?e.tryCast(D.parent.parent,e.isNamedImportsOrExports):void 0;if(!t)return 0;e.isTypeKeywordTokenOrIdentifier(D)||(B=8);var r=(268===t.kind?t.parent.parent:t.parent).moduleSpecifier;if(!r)return j=!0,268===t.kind?2:0;var n=d.getSymbolAtLocation(r);if(!n)return j=!0,2;J=3,j=!1;var i=d.getExportsAndPropertiesOfModule(n),a=new e.Set(t.elements.filter((e=>!Ae(e))).map((e=>(e.propertyName||e.name).escapedText))),o=i.filter((e=>"default"!==e.escapedName&&!a.has(e.escapedName)));return ne=e.concatenate(ne,o),o.length||(B=0),1})()||(()=>{var t,r=!D||18!==D.kind&&27!==D.kind?void 0:e.tryCast(D.parent,e.isNamedExports);if(!r)return 0;var n=e.findAncestor(r,e.or(e.isSourceFile,e.isModuleDeclaration));return J=5,j=!1,null===(t=n.locals)||void 0===t||t.forEach(((t,r)=>{var i,a;ne.push(t),(null===(a=null===(i=n.symbol)||void 0===i?void 0:i.exports)||void 0===a?void 0:a.has(r))&&(se[e.getSymbolId(t)]=12)})),1})()||((t=>{if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:void 0;default:if(Ee(t))return r.parent}}})(D)?(J=5,j=!0,B=4,1):0)||(()=>{var t=((t,r,n,i)=>{switch(n.kind){case 346:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var a=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(a&&!e.findChildOfKind(a,19,t))return a;break;case 79:if(e.isPropertyDeclaration(n.parent)&&n.parent.initializer===n)return;if(Q(n))return e.findAncestor(n,e.isObjectTypeDeclaration)}if(r){if(134===n.kind||e.isIdentifier(r)&&e.isPropertyDeclaration(r.parent)&&e.isClassLike(n))return e.findAncestor(r,e.isClassLike);switch(r.kind){case 63:return;case 26:case 19:return Q(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!Q(r))return e.getLineAndCharacterOfPosition(t,r.getEnd()).line!==e.getLineAndCharacterOfPosition(t,i).line&&e.isObjectTypeDeclaration(n)?n:void 0;var o=e.isClassLike(r.parent.parent)?H:W;return o(r.kind)||41===r.kind||e.isIdentifier(r)&&o(e.stringToToken(r.text))?r.parent.parent:void 0}}})(i,D,R,o);if(!t)return 0;if(J=3,j=!0,B=41===D.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=26===D.kind?D.parent.parent:D.parent,n=e.isClassElement(r)?e.getEffectiveModifierFlags(r):0;if(79===D.kind&&!Ae(D))switch(D.getText()){case"private":n|=8;break;case"static":n|=32;break;case"override":n|=16384}if(e.isClassStaticBlockDeclaration(r)&&(n|=32),!(8&n)){var a=e.isClassLike(t)&&16384&n?e.singleElementArray(e.getEffectiveBaseTypeNode(t)):e.getAllSuperTypeNodes(t),s=e.flatMap(a,(e=>{var r=d.getTypeAtLocation(e);return 32&n?(null==r?void 0:r.symbol)&&d.getPropertiesOfType(d.getTypeOfSymbolAtLocation(r.symbol,t)):r&&d.getPropertiesOfType(r)}));ne=e.concatenate(ne,((t,r,n)=>{for(var i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if(!(166!==s.kind&&168!==s.kind&&171!==s.kind&&172!==s.kind||Ae(s)||e.hasEffectiveModifier(s,8)||e.isStatic(s)!==!!(32&n))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.add(c)}}return t.filter((t=>!(i.has(t.escapedName)||!t.declarations||8&e.getDeclarationModifierFlagsFromSymbol(t)||t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))))})(s,t.members,n))}return 1})()||(()=>{var t=(t=>{if(t){var r=t.parent;switch(t.kind){case 31:case 30:case 43:case 79:case 205:case 285:case 284:case 286:if(r&&(278===r.kind||279===r.kind)){if(31===t.kind){var n=e.findPrecedingToken(t.pos,i,void 0);if(!r.typeArguments||n&&43===n.kind)break}return r}if(284===r.kind)return r.parent.parent;break;case 10:if(r&&(284===r.kind||286===r.kind))return r.parent.parent;break;case 19:if(r&&287===r.kind&&r.parent&&284===r.parent.kind)return r.parent.parent.parent;if(r&&286===r.kind)return r.parent.parent}}})(D),r=t&&d.getContextualType(t.attributes);if(!r)return 0;var n=t&&d.getContextualType(t.attributes,4);return ne=e.concatenate(ne,((t,r)=>{for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];Ae(s)||(284===s.kind?n.add(s.name.escapedText):e.isJsxSpreadAttribute(s)&&Te(s,i))}var c=t.filter((e=>!n.has(e.escapedName)));return ke(i,c),c})(G(r,n,t.attributes,d),t.attributes.properties)),Ce(),J=3,j=!1,1})()||((()=>{B=(t=>{if(t){var r,n=e.findAncestor(t.parent,(t=>e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||r!==t.body)||(r=t,!1)));return n&&n}})(D)?5:1,J=1,j=xe(),S!==D&&e.Debug.assert(!!S,"Expected 'contextToken' to be defined when different from 'previousToken'.");var t=S!==D?S.getStart():o,r=((t,r,n)=>{for(var i=t;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i})(D,t,i)||i;y=(t=>{switch(t.kind){case 303:case 222:case 287:case 234:return!0;default:return e.isStatement(t)}})(r);var n=2887656|(le?0:111551);ne=e.concatenate(ne,d.getSymbolsInScope(r,n)),e.Debug.assertEachIsDefined(ne,"getSymbolsInScope() should all be defined");for(var a=0,c=ne;a<c.length;a++){var l=c[a];d.isArgumentsSymbol(l)||e.some(l.declarations,(e=>e.getSourceFile()===i))||(se[e.getSymbolId(l)]=15)}if(s.includeCompletionsWithInsertText&&303!==r.kind){var u=d.tryGetThisTypeAt(r,!1);if(u&&!((e,t,r)=>{var n=r.resolveName("self",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;var i=r.resolveName("global",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;var a=r.resolveName("globalThis",void 0,111551,!1);return!(!a||r.getTypeOfSymbolAtLocation(a,t)!==e)})(u,i,d))for(var p=0,_=X(u,d);p<_.length;p++)l=_[p],ae[ne.length]={kind:1},ne.push(l),se[e.getSymbolId(l)]=14}be(),le&&(B=D&&e.isAssertionExpression(D.parent)?6:7)})(),1))}function be(){var r,n;if((C||!q&&s.includeCompletionsForModuleExports&&(i.externalModuleIndicator||i.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(t.getCompilerOptions())||e.programContainsModules(t)))&&(e.Debug.assert(!(null==c?void 0:c.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),!c||c.source)){var a=S===D&&C&&te(C,D)?"":S&&e.isIdentifier(S)?S.text.toLowerCase():"",o=null===(r=l.getModuleSpecifierCache)||void 0===r?void 0:r.call(l),d=e.getExportInfoMap(i,l,t,u),p=null===(n=l.getPackageJsonAutoImportProvider)||void 0===n?void 0:n.call(l),f=c?void 0:e.createPackageJsonImportFilter(i,s,l);_("collectAutoImports",l,t,i,s,!!C,(t=>{d.forEach(i.path,((r,n,i,o)=>{if(e.isIdentifierText(n,e.getEmitScriptTarget(l.getCompilationSettings()))&&(c||!e.isStringANonContextualKeyword(n))&&(le||C||111551&r[0].targetFlags)&&(!le||790504&r[0].targetFlags)&&(c&&e.some(r,(t=>c.source===e.stripQuotes(t.moduleSymbol.name)))||!c&&oe(n,a))){var s=e.find(r,m);if(!s)return;var u=t.tryResolve(r,i)||{},d=u.exportInfo,p=void 0===d?s:d,_=u.moduleSpecifier,f=1===p.exportKind;g=f&&e.getLocalSymbolForExportDefault(p.symbol)||p.symbol,h={kind:_?32:4,moduleSpecifier:_,symbolName:n,exportMapKey:o,exportName:2===p.exportKind?"export=":p.symbol.name,fileName:p.moduleFileName,isDefaultExport:f,moduleSymbol:p.moduleSymbol,isFromPackageJson:p.isFromPackageJson},y=e.getSymbolId(g),15!==se[y]&&(ae[ne.length]=h,se[y]=C?11:16,ne.push(g))}var g,h,y})),re=t.resolutionLimitExceeded()}))}function m(r){var n=e.tryCast(r.moduleSymbol.valueDeclaration,e.isSourceFile);if(!n){var a=e.stripQuotes(r.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(a)||e.startsWith(a,"node:")===e.shouldUseUriStyleNodeCoreModules(i,t))&&(!f||f.allowsImportingAmbientModule(r.moduleSymbol,ue(r.isFromPackageJson)))}return e.isImportableFile(r.isFromPackageJson?p:t,i,n,s,f,ue(r.isFromPackageJson),o)}}function xe(){if(D){var e=D.parent.kind,t=$(D);switch(t){case 27:return 207===e||170===e||208===e||203===e||220===e||178===e||204===e;case 20:return 207===e||170===e||208===e||211===e||190===e;case 22:return 203===e||175===e||161===e;case 141:case 142:case 100:return!0;case 24:return 260===e;case 18:return 256===e||204===e;case 63:return 253===e||220===e;case 15:return 222===e;case 16:return 232===e;case 131:return 168===e||295===e;case 41:return 168===e}if(H(t))return!0}return!1}function Ee(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function Se(t,r){return 63!==t.kind&&(26===t.kind||!e.positionsAreOnSameLine(t.end,r,i))}function De(t){return e.isFunctionLikeKind(t)&&170!==t}function Te(e,t){var r=e.expression,n=d.getSymbolAtLocation(r),i=n&&d.getTypeOfSymbolAtLocation(n,r),a=i&&i.properties;a&&a.forEach((e=>{t.add(e.name)}))}function Ce(){ne.forEach((t=>{var r;if(16777216&t.flags){var n=e.getSymbolId(t);se[n]=null!==(r=se[n])&&void 0!==r?r:12}}))}function ke(t,r){if(0!==t.size)for(var n=0,i=r;n<i.length;n++){var a=i[n];t.has(a.name)&&(se[e.getSymbolId(a)]=13)}}function Ae(e){return e.getStart(i)<=o&&o<=e.getEnd()}}function L(t,r){var n=e.findPrecedingToken(t,r);return n&&t<=n.end&&(e.isMemberName(n)||e.isKeyword(n.kind))?{contextToken:e.findPrecedingToken(n.getFullStart(),r,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function B(t,r,n,i){var a=r.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,o=a.getTypeChecker(),s=r.ambientModuleName?o.tryFindAmbientModule(r.ambientModuleName):r.fileName?o.getMergedSymbol(e.Debug.checkDefined(a.getSourceFile(r.fileName)).symbol):void 0;if(s){var c="export="===r.exportName?o.resolveExternalModuleSymbol(s):o.tryGetMemberInModuleExportsAndProperties(r.exportName,s);if(c)return{symbol:c="default"===r.exportName&&e.getLocalSymbolForExportDefault(c)||c,origin:C(r,t,s)}}}function j(t,r,n,i,a){var o=(e=>u(e)||d(e))(n)?n.symbolName:t.name;if(!(void 0===o||1536&t.flags&&e.isSingleOrDoubleQuote(o.charCodeAt(0))||e.isKnownSymbol(t))){var s={name:o,needsConvertPropertyAccess:!1};if(e.isIdentifierText(o,r,a?1:0)||t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))return s;switch(i){case 3:return;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return s;default:e.Debug.assertNever(i)}}}t.moduleSpecifierResolutionLimit=100,t.moduleSpecifierResolutionCacheAttemptLimit=1e3,(e=>{e.LocalDeclarationPriority="10",e.LocationPriority="11",e.OptionalMember="12",e.MemberDeclaredBySpreadAssignment="13",e.SuggestedClassMembers="14",e.GlobalsOrKeywords="15",e.AutoImportSuggestions="16",e.JavascriptIdentifiers="17",e.DeprecatedLocalDeclarationPriority="18",e.DeprecatedLocationPriority="19",e.DeprecatedOptionalMember="20",e.DeprecatedMemberDeclaredBySpreadAssignment="21",e.DeprecatedSuggestedClassMembers="22",e.DeprecatedGlobalsOrKeywords="23",e.DeprecatedAutoImportSuggestions="24"})(r=t.SortText||(t.SortText={})),(e=>{e[e.LocalDeclarationPriority=10]="LocalDeclarationPriority",e[e.LocationPriority=11]="LocationPriority",e[e.OptionalMember=12]="OptionalMember",e[e.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",e[e.SuggestedClassMembers=14]="SuggestedClassMembers",e[e.GlobalsOrKeywords=15]="GlobalsOrKeywords",e[e.AutoImportSuggestions=16]="AutoImportSuggestions",e[e._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",e[e._DeprecatedStart=18]="_DeprecatedStart",e[e._First=10]="_First",e[e.DeprecatedOffset=8]="DeprecatedOffset"})(n||(n={})),(e=>{e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/"})(i=t.CompletionSource||(t.CompletionSource={})),(e=>{e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport"})(a||(a={})),(e=>{e[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeAssertionKeywords=6]="TypeAssertionKeywords",e[e.TypeKeywords=7]="TypeKeywords",e[e.TypeKeyword=8]="TypeKeyword",e[e.Last=7]="Last"})(o||(o={})),(e=>{e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"})(s||(s={})),t.getCompletionsAtPosition=(n,i,a,o,s,c,l,u,d)=>{var p,g=L(s,o).previousToken;if(!l||e.isInString(o,s,g)||((t,r,n,i)=>{switch(r){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&e.isStringLiteralOrTemplate(n)&&i===n.getStart(t)+1;case"#":return!!n&&e.isPrivateIdentifier(n)&&!!e.getContainingClass(n);case"<":return!!n&&29===n.kind&&(!e.isBinaryExpression(n.parent)||Z(n.parent));case"/":return!!n&&(e.isStringLiteralLike(n)?!!e.tryGetImportFromModuleSpecifier(n):43===n.kind&&e.isJsxClosingElement(n.parent));case" ":return!!n&&e.isImportKeyword(n)&&303===n.parent.kind;default:return e.Debug.assertNever(r)}})(o,l,g,s)){if(" "===l)return c.includeCompletionsForImportStatements&&c.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var b=i.getCompilerOptions(),E=c.allowIncompleteCompletions?null===(p=n.getIncompleteCompletionsCache)||void 0===p?void 0:p.call(n):void 0;if(E&&3===u&&g&&e.isIdentifier(g)){var S=((t,r,n,i,a,o,s)=>{var c=t.get();if(c){var l=n.text.toLowerCase(),u=e.getExportInfoMap(r,a,i,s),d=_("continuePreviousIncompleteResponse",a,i,r,o,!1,(t=>{var n=e.mapDefined(c.entries,(n=>{if(!n.hasAction||!n.source||!n.data||f(n.data))return n;if(oe(n.name,l)){var o=e.Debug.checkDefined(B(n.name,n.data,i,a)).origin,s=u.get(r.path,n.data.exportMapKey),c=s&&t.tryResolve(s,!e.isExternalModuleNameRelative(e.stripQuotes(o.moduleSymbol.name)));if(!c)return n;var d=Ol(Ol({},o),{kind:32,moduleSpecifier:c.moduleSpecifier});return n.data=T(d),n.source=N(d),n.sourceDisplay=[e.textPart(d.moduleSpecifier)],n}}));return t.resolutionLimitExceeded()||(c.isIncomplete=void 0),n}));return c.entries=d,c}})(E,o,g,i,n,c,d);if(S)return S}else null==E||E.clear();var D=t.StringCompletions.getStringLiteralCompletions(o,s,g,b,n,i,a,c);if(D)return D;if(g&&e.isBreakOrContinueStatement(g.parent)&&(81===g.kind||86===g.kind||79===g.kind))return(t=>{var n=(t=>{for(var n=[],i=new e.Map,a=t;a&&!e.isFunctionLike(a);){if(e.isLabeledStatement(a)){var o=a.label.text;i.has(o)||(i.set(o,!0),n.push({name:o,kindModifiers:"",kind:"label",sortText:r.LocationPriority}))}a=a.parent}return n})(t);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}})(g.parent);var C,k=R(i,a,o,y(o,b),s,c,void 0,n,d);if(k)switch(k.kind){case 0:var A=((t,n,i,a,o,s,c)=>{var l=s.symbols,u=s.contextToken,d=s.completionKind,p=s.isInSnippetScope,_=s.isNewIdentifierLocation,f=s.location,m=s.propertyAccessToConvert,g=s.keywordFilters,b=s.literals,E=s.symbolToOriginInfoMap,S=s.recommendedCompletion,D=s.isJsxInitializer,T=s.isTypeOnlyLocation,C=s.isJsxIdentifierExpected,k=s.importCompletionNode,A=s.insideJsDocTagTypeExpression,N=s.symbolToSortTextIdMap,F=s.hasUnresolvedAutoImports;if(1===e.getLanguageVariant(t.scriptKind)){var P=((t,n)=>{var i=e.findAncestor(t,(e=>{switch(e.kind){case 280:return!0;case 43:case 31:case 79:case 205:return!1;default:return"quit"}}));if(i){var a=!!e.findChildOfKind(i,31,n),o=i.parent.openingElement.tagName.getText(n)+(a?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:r.LocationPriority}]}}})(f,t);if(P)return P}var I=[];if(y(t,a)){var O=w(l,I,void 0,u,f,t,n,i,e.getEmitScriptTarget(a),o,d,c,a,T,m,C,D,k,S,E,N);!((t,n,i,a,o)=>{e.getNameTable(t).forEach(((t,s)=>{if(t!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:r.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))})(t,f.pos,O,e.getEmitScriptTarget(a),I)}else{if(!(_||l&&0!==l.length||0!==g))return;w(l,I,void 0,u,f,t,n,i,e.getEmitScriptTarget(a),o,d,c,a,T,m,C,D,k,S,E,N)}if(0!==g)for(var M=new e.Set(I.map((e=>e.name))),R=0,L=z(g,!A&&e.isSourceFileJS(t));R<L.length;R++){var B=L[R];M.has(B.name)||I.push(B)}for(var j=0,U=b;j<U.length;j++){var V=U[j];I.push(x(t,c,V))}return{isGlobalCompletion:p,isIncomplete:!(!c.allowIncompleteCompletions||!F)||void 0,isMemberCompletion:v(d),isNewIdentifierLocation:_,optionalReplacementSpan:h(f),entries:I}})(o,n,i,b,a,k,c);return(null==A?void 0:A.isIncomplete)&&(null==E||E.set(A)),A;case 1:return m(e.JsDoc.getJSDocTagNameCompletions());case 2:return m(e.JsDoc.getJSDocTagCompletions());case 3:return m(e.JsDoc.getJSDocParameterNameCompletions(k.tag));case 4:return C=k.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:k.isNewIdentifierLocation,entries:C.slice()};default:return e.Debug.assertNever(k)}}},t.getCompletionEntriesFromSymbols=w,t.getCompletionEntryDetails=(r,n,a,o,s,c,l,p,_)=>{var f=r.getTypeChecker(),m=r.getCompilerOptions(),g=s.name,h=s.source,y=s.data,v=e.findPrecedingToken(o,a);if(e.isInString(a,o,v))return t.StringCompletions.getStringLiteralCompletionDetails(g,a,o,v,f,m,c,_,p);var x=F(r,n,a,o,s,c,p);switch(x.type){case"request":var E=x.request;switch(E.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(g);case 2:return e.JsDoc.getJSDocTagCompletionDetails(g);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(g);case 4:return e.some(E.keywordCompletions,(e=>e.name===g))?P(g,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(E)}case"symbol":var D=x.symbol,T=x.location,C=x.contextToken,k=x.origin,A=x.previousToken,N=((t,r,n,a,o,s,c,l,p,_,f,m,g,h,y)=>{if(null==h?void 0:h.moduleSpecifier){var v=L(_,p),b=v.contextToken,x=v.previousToken;if(x&&ee(b||x).replacementNode)return{codeActions:void 0,sourceDisplay:[e.textPart(h.moduleSpecifier)]}}if(y===i.ClassMemberSnippet){var E=S(c,s,l,g,t,o,r,n).importAdder;if(E)return{sourceDisplay:void 0,codeActions:[{changes:e.textChanges.ChangeTracker.with({host:c,formatContext:m,preferences:g},E.writeFixes),description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,t])}]}}if(!a||!u(a)&&!d(a))return{codeActions:void 0,sourceDisplay:void 0};var D=a.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),T=a.moduleSymbol,C=D.getMergedSymbol(e.skipAlias(o.exportSymbol||o,D)),k=e.codefix.getImportCompletionAction(C,T,p,e.getNameForExportedSymbol(o,e.getEmitScriptTarget(l)),c,s,m,f&&e.isIdentifier(f)?f.getStart(p):_,g),A=k.moduleSpecifier,N=k.codeAction;return e.Debug.assert(!(null==h?void 0:h.moduleSpecifier)||A===h.moduleSpecifier),{sourceDisplay:[e.textPart(A)],codeActions:[N]}})(g,T,C,k,D,r,c,m,a,o,A,l,p,y,h);return I(D,f,a,T,_,N.codeActions,N.sourceDisplay);case"literal":var w=x.literal;return P(b(a,p,w),"string","string"==typeof w?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return V().some((e=>e.name===g))?P(g,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(x)}},t.createCompletionDetailsForSymbol=I,t.createCompletionDetails=O,t.getCompletionEntrySymbol=(e,t,r,n,i,a,o)=>{var s=F(e,t,r,n,i,a,o);return"symbol"===s.type?s.symbol:void 0},(e=>{e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName",e[e.Keywords=4]="Keywords"})(c||(c={})),(l=t.CompletionKind||(t.CompletionKind={}))[l.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",l[l.Global=1]="Global",l[l.PropertyAccess=2]="PropertyAccess",l[l.MemberLike=3]="MemberLike",l[l.String=4]="String",l[l.None=5]="None";var U=[],V=e.memoize((()=>{for(var t=[],n=81;n<=159;n++)t.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:r.GlobalsOrKeywords});return t}));function z(t,r){if(!r)return K(t);var n=t+7+1;return U[n]||(U[n]=K(t).filter((t=>!(e=>{switch(e){case 126:case 130:case 157:case 133:case 135:case 92:case 156:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 146:case 147:case 158:case 121:case 122:case 123:case 144:case 149:case 150:case 151:case 153:case 154:return!0;default:return!1}})(e.stringToToken(t.name)))))}function K(t){return U[t]||(U[t]=V().filter((r=>{var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return J(n)||135===n||141===n||151===n||142===n||126===n||e.isTypeKeyword(n)&&152!==n;case 5:return J(n);case 2:return H(n);case 3:return W(n);case 4:return e.isParameterPropertyModifier(n);case 6:return e.isTypeKeyword(n)||85===n;case 7:return e.isTypeKeyword(n);case 8:return 151===n;default:return e.Debug.assertNever(t)}})))}function W(e){return 144===e}function H(t){switch(t){case 126:case 134:case 136:case 148:case 131:case 135:case 158:return!0;default:return e.isClassMemberModifier(t)}}function J(t){return 131===t||132===t||127===t||!e.isContextualKeyword(t)&&!H(t)}function $(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function G(t,r,n,i){var a=r&&r!==t,o=!a||3&r.flags?t:i.getUnionType([t,r]),s=((t,r,n)=>t.isUnion()?n.getAllPossiblePropertiesOfTypes(e.filter(t.types,(t=>!(131068&t.flags||n.isArrayLikeType(t)||n.isTypeInvalidDueToUnionDiscriminant(t,r)||e.typeHasCallOrConstructSignatures(t,n)||t.isClass()&&q(t.getApparentProperties()))))):t.getApparentProperties())(o,n,i);return o.isClass()&&q(s)?[]:a?e.filter(s,(t=>e.some(t.declarations,(e=>e.parent!==n)))):s}function q(t){return e.some(t,(t=>!!(24&e.getDeclarationModifierFlagsFromSymbol(t))))}function X(t,r){return t.isUnion()?e.Debug.checkEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function Y(t,r){if(t){if(e.isTypeNode(t)&&e.isTypeReferenceType(t.parent))return r.getTypeArgumentConstraint(t);var n=Y(t.parent,r);if(n)switch(t.kind){case 165:return r.getTypeOfPropertyOfContextualType(n,t.symbol.escapedName);case 187:case 181:case 186:return n}}}function Q(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function Z(t){var r=t.left;return e.nodeIsMissing(r)}function ee(t){var r,n=!1,i=(()=>{var i=t.parent;if(e.isImportEqualsDeclaration(i))return r=151===t.kind?void 0:151,ne(i.moduleReference)?i:void 0;if(te(i,t)&&re(i.parent))return i;if(!e.isNamedImports(i)&&!e.isNamespaceImport(i))return e.isImportKeyword(t)&&e.isSourceFile(i)?(r=151,t):e.isImportKeyword(t)&&e.isImportDeclaration(i)?(r=151,ne(i.moduleSpecifier)?i:void 0):void 0;if(i.parent.isTypeOnly||18!==t.kind&&100!==t.kind&&27!==t.kind||(r=151),re(i)){if(19!==t.kind&&79!==t.kind)return i.parent.parent;n=!0,r=155}})();return{isKeywordOnlyCompletion:n,keywordCompletion:r,isNewIdentifierLocation:!(!i&&151!==r),replacementNode:i&&e.rangeIsOnSingleLine(i,i.getSourceFile())?i:void 0}}function te(t,r){return e.isImportSpecifier(t)&&(t.isTypeOnly||r===t.name&&e.isTypeKeywordTokenOrIdentifier(r))}function re(t){return ne(t.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(t)||t.elements.length<2)&&!t.parent.name}function ne(t){var r;return!!e.nodeIsMissing(t)||!(null===(r=e.tryCast(e.isExternalModuleReference(t)?t.expression:t,e.isStringLiteralLike))||void 0===r?void 0:r.text)}function ie(t,r,n){void 0===n&&(n=new e.Map);var i=e.skipAlias(t.exportSymbol||t,r);return!!(788968&i.flags)||r.isUnknownSymbol(i)||!!(1536&i.flags)&&e.addToSeen(n,e.getSymbolId(i))&&r.getExportsOfModule(i).some((e=>ie(e,r,n)))}function ae(t,r){var n=e.skipAlias(t,r).declarations;return!!e.length(n)&&e.every(n,e.isDeprecatedDeclaration)}function oe(e,t){if(0===t.length)return!0;for(var r,n=!1,i=0,a=e.length,o=0;o<a;o++){var s=e.charCodeAt(o),c=t.charCodeAt(i);if((s===c||s===(97<=(l=c)&&l<=122?l-32:l))&&(n||(n=void 0===r||97<=r&&r<=122&&65<=s&&s<=90||95===r&&95!==s),n&&i++,i===t.length))return!0;r=s}var l;return!1}t.getPropertiesForObjectExpression=G})(e.Completions||(e.Completions={}))})(Fl),(e=>{!(t=>{function r(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function n(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?n(t.catchClause):t.tryBlock&&n(t.tryBlock),t.finallyBlock&&n(t.finallyBlock)):e.isFunctionLike(t)?void 0:a(t,n)}function i(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:a(t,i)}function a(t,r){var n=[];return t.forEachChild((t=>{var i=r(t);void 0!==i&&n.push.apply(n,e.toArray(i))})),n}function o(e,t){var r=s(t);return!!r&&r===e}function s(t){return e.findAncestor(t,(r=>{switch(r.kind){case 248:if(244===t.kind)return!1;case 241:case 242:case 243:case 240:case 239:return!t.label||((t,r)=>!!e.findAncestor(t.parent,(t=>e.isLabeledStatement(t)?t.label.escapedText===r:"quit")))(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}}))}function c(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return!(!r||!e.contains(n,r.kind)||(t.push(r),0))}function l(t){var r=[];if(c(r,t.getFirstToken(),97,115,90)&&239===t.kind)for(var n=t.getChildren(),a=n.length-1;a>=0&&!c(r,n[a],115);a--);return e.forEach(i(t.statement),(e=>{o(t,e)&&c(r,e.getFirstToken(),81,86)})),r}function u(e){var t=s(e);if(t)switch(t.kind){case 241:case 242:case 243:case 239:case 240:return l(t);case 248:return d(t)}}function d(t){var r=[];return c(r,t.getFirstToken(),107),e.forEach(t.caseBlock.clauses,(n=>{c(r,n.getFirstToken(),82,88),e.forEach(i(n),(e=>{o(t,e)&&c(r,e.getFirstToken(),81)}))})),r}function p(t,r){var n=[];return c(n,t.getFirstToken(),111),t.catchClause&&c(n,t.catchClause.getFirstToken(),83),t.finallyBlock&&c(n,e.findChildOfKind(t,96,r),96),n}function _(t,r){var i=(t=>{for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||303===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}})(t);if(i){var a=[];return e.forEach(n(i),(t=>{a.push(e.findChildOfKind(t,109,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(t=>{a.push(e.findChildOfKind(t,105,r))})),a}}function f(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),(t=>{a.push(e.findChildOfKind(t,105,r))})),e.forEach(n(i.body),(t=>{a.push(e.findChildOfKind(t,109,r))})),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((e=>{c(n,e,131)})),e.forEachChild(r,(t=>{g(t,(t=>{e.isAwaitExpression(t)&&c(n,t.getFirstToken(),132)}))})),n}}function g(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,(e=>g(e,r)))}t.getDocumentHighlights=(t,n,i,a,o)=>{var s=e.getTouchingPropertyName(i,a);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var h=s.parent.parent,y=[h.openingElement,h.closingElement].map((e=>r(e.tagName,i)));return[{fileName:i.fileName,highlightSpans:y}]}return((t,r,n,i,a)=>{var o=new e.Set(a.map((e=>e.fileName))),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(e=>e.fileName),(e=>e.span)),l=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(t=>{var r=t[0],i=t[1];if(!o.has(r)){if(!n.redirectTargetsMap.has(e.toPath(r,n.getCurrentDirectory(),l)))return;var s=n.getSourceFile(r);r=e.find(a,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===s)).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}})(a,s,t,n,o)||((t,n)=>{var i=((t,n)=>{switch(t.kind){case 99:case 91:return e.isIfStatement(t.parent)?((t,n)=>{for(var i=((t,r)=>{for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);c(n,i[0],99);for(var a=i.length-1;a>=0&&!c(n,i[a],91);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n})(t,n),a=[],o=0;o<i.length;o++){if(91===i[o].kind&&o<i.length-1){for(var s=i[o],l=i[o+1],u=!0,d=l.getStart(n)-1;d>=s.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){u=!1;break}if(u){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),l.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a})(t.parent,n):void 0;case 105:return s(t.parent,e.isReturnStatement,f);case 109:return s(t.parent,e.isThrowStatement,_);case 111:case 83:case 96:return s(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,p);case 107:return s(t.parent,e.isSwitchStatement,d);case 82:case 88:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?s(t.parent.parent.parent,e.isSwitchStatement,d):void 0;case 81:case 86:return s(t.parent,e.isBreakOrContinueStatement,u);case 97:case 115:case 90:return s(t.parent,(t=>e.isIterationStatement(t,!0)),l);case 134:return o(e.isConstructorDeclaration,[134]);case 136:case 148:return o(e.isAccessor,[136,148]);case 132:return s(t.parent,e.isAwaitExpression,m);case 131:return h(m(t));case 125:return h((t=>{var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,(t=>{g(t,(t=>{e.isYieldExpression(t)&&c(n,t.getFirstToken(),125)}))})),n}})(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?h((i=t.kind,a=t.parent,e.mapDefined(((t,r)=>{var n=t.parent;switch(n.kind){case 261:case 303:case 234:case 288:case 289:return 128&r&&e.isClassDeclaration(t)?Il(Il([],t.members,!0),[t],!1):n.statements;case 170:case 168:case 255:return Il(Il([],n.parameters,!0),e.isClassLike(n.parent)?n.parent.members:[],!0);case 256:case 225:case 257:case 181:var i=n.members;if(92&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return Il(Il([],i,!0),a.parameters,!0)}else if(128&r)return Il(Il([],i,!0),[n],!1);return i;case 204:return;default:e.Debug.assertNever(n,"Invalid container kind.")}})(a,e.modifierToFlag(i)),(t=>e.findModifier(t,i))))):void 0}var i,a;function o(r,i){return s(t.parent,r,(t=>e.mapDefined(t.symbol.declarations,(t=>r(t)?e.find(t.getChildren(n),(t=>e.contains(i,t.kind))):void 0))))}function s(e,t,r){return t(e)?h(r(e,n)):void 0}function h(e){return e&&e.map((e=>r(e,n)))}})(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]})(s,i)}})(e.DocumentHighlights||(e.DocumentHighlights={}))})(Fl),(e=>{function t(e){return!!e.sourceFile}function r(r,i,a){void 0===i&&(i="");var o=new e.Map,s=e.createGetCanonicalFileName(!!r);function c(e,t,r,n,i,a,o){return d(e,t,r,n,i,a,!0,o)}function l(e,t,r,n,i,a,o){return d(e,t,r,n,i,a,!1,o)}function u(r,n){var i=t(r)?r:r.get(e.Debug.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===n||!i||i.sourceFile.scriptKind===n,"Script kind should match provided ScriptKind:".concat(n," and sourceFile.scriptKind: ").concat(null==i?void 0:i.sourceFile.scriptKind,", !entry: ").concat(!i)),i}function d(r,n,i,s,c,l,d,p){var _=6===(p=e.ensureScriptKind(r,p))?100:e.getEmitScriptTarget(i),f=e.getOrUpdate(o,s,(()=>new e.Map)),m=f.get(n),g=m&&u(m,p);if(!g&&a&&(h=a.getDocument(s,n))&&(e.Debug.assert(d),g={sourceFile:h,languageServiceRefCount:0},y()),g)g.sourceFile.version!==l&&(g.sourceFile=e.updateLanguageServiceSourceFile(g.sourceFile,c,l,c.getChangeRange(g.sourceFile.scriptSnapshot)),a&&a.setDocument(s,n,g.sourceFile)),d&&g.languageServiceRefCount++;else{var h=e.createLanguageServiceSourceFile(r,c,_,l,!1,p);a&&a.setDocument(s,n,h),g={sourceFile:h,languageServiceRefCount:1},y()}return e.Debug.assert(0!==g.languageServiceRefCount),g.sourceFile;function y(){if(m)if(t(m)){var r=new e.Map;r.set(m.sourceFile.scriptKind,m),r.set(p,g),f.set(n,r)}else m.set(p,g);else f.set(n,g)}}function p(r,n,i){var a=e.Debug.checkDefined(o.get(n)),s=a.get(r),c=u(s,i);c.languageServiceRefCount--,e.Debug.assert(c.languageServiceRefCount>=0),0===c.languageServiceRefCount&&(t(s)?a.delete(r):(s.delete(i),1===s.size&&a.set(r,e.firstDefinedIterator(s.values(),e.identity))))}return{acquireDocument:(t,r,a,o,l)=>c(t,e.toPath(t,i,s),r,n(r),a,o,l),acquireDocumentWithKey:c,updateDocument:(t,r,a,o,c)=>l(t,e.toPath(t,i,s),r,n(r),a,o,c),updateDocumentWithKey:l,releaseDocument:(t,r,a)=>p(e.toPath(t,i,s),n(r),a),releaseDocumentWithKey:p,getLanguageServiceRefCounts:(t,r)=>e.arrayFrom(o.entries(),(e=>{var n=e[0],i=e[1].get(t),a=i&&u(i,r);return[n,a&&a.languageServiceRefCount]})),reportStats(){var r=e.arrayFrom(o.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{var r=o.get(e),n=[];return r.forEach(((e,r)=>{t(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,t)=>n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(r,void 0,2)},getKeyForCompilationSettings:n}}function n(t){return e.sourceFileAffectingCompilerOptions.map((r=>e.getCompilerOptionValue(t,r))).join("|")}e.createDocumentRegistry=(e,t)=>r(e,t),e.createDocumentRegistryInternal=r})(Fl),(e=>{!(t=>{function r(t,r){return e.forEach(303===t.kind?t.statements:t.body.statements,(t=>r(t)||s(t)&&e.forEach(t.body&&t.body.statements,r)))}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i<a.length;i++){var o=a[i];n(e.importFromModuleSpecifier(o),o)}else r(t,(t=>{switch(t.kind){case 271:case 265:(r=t).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&n(r,r.moduleSpecifier);break;case 264:var r;c(r=t)&&n(r,r.moduleReference.expression)}}))}function i(t,r,n){var i=t.parent;if(i){var a=n.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:void 0}}function a(e,t){return t.getMergedSymbol(o(e).symbol)}function o(t){if(207===t.kind)return t.getSourceFile();var r=t.parent;return 303===r.kind?r:(e.Debug.assert(261===r.kind),e.cast(r.parent,s))}function s(e){return 260===e.kind&&10===e.name.kind}function c(e){return 276===e.moduleReference.kind&&10===e.moduleReference.expression.kind}var l,u;t.createImportTracker=(t,i,l,u)=>{var d=((t,r,i)=>{for(var a=new e.Map,o=0,s=t;o<s.length;o++){var c=s[o];i&&i.throwIfCancellationRequested(),n(c,((t,n)=>{var i=r.getSymbolAtLocation(n);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}}))}return a})(t,l,u);return(n,p,_)=>{var f=((t,n,i,c,l,u)=>{var d=c.exportingModuleSymbol,p=c.exportKind,_=e.nodeSeenTracker(),f=e.nodeSeenTracker(),m=[],g=!!d.globalExports,h=g?void 0:[];return function t(r){var n,i=x(r);if(i)for(var c=0,d=i;c<d.length;c++){var f=d[c];if(_(f))switch(u&&u.throwIfCancellationRequested(),f.kind){case 207:if(e.isImportCall(f)){n=f,b(e.findAncestor(n,s)||n.getSourceFile(),!!y(n,!0));break}if(!g){var h=f.parent;if(2===p&&253===h.kind){var E=h.name;if(79===E.kind){m.push(E);break}}}break;case 79:break;case 264:v(f,f.name,e.hasSyntacticModifier(f,1),!1);break;case 265:m.push(f);var S=f.importClause&&f.importClause.namedBindings;S&&267===S.kind?v(f,S.name,!1,!0):!g&&e.isDefaultImport(f)&&b(o(f));break;case 271:f.exportClause?273===f.exportClause.kind?b(o(f),!0):m.push(f):t(a(f,l));break;case 199:f.isTypeOf&&!f.qualifier&&y(f)&&b(f.getSourceFile(),!0),m.push(f);break;default:e.Debug.failBadSyntaxKind(f,"Unexpected import kind.")}}}(d),{directImports:m,indirectUsers:(()=>{if(g)return t;if(d.declarations)for(var r=0,i=d.declarations;r<i.length;r++){var a=i[r];e.isExternalModuleAugmentation(a)&&n.has(a.getSourceFile().fileName)&&b(a)}return h.map(e.getSourceFileOfNode)})()};function y(t,r){return void 0===r&&(r=!1),e.findAncestor(t,(t=>r&&s(t)?"quit":e.some(t.modifiers,(e=>93===e.kind))))}function v(t,n,i,a){if(2===p)a||m.push(t);else if(!g){var s=o(t);e.Debug.assert(303===s.kind||260===s.kind),i||((t,n,i)=>{var a=i.getSymbolAtLocation(n);return!!r(t,(t=>{if(e.isExportDeclaration(t)){var r=t.exportClause;return!t.moduleSpecifier&&r&&e.isNamedExports(r)&&r.elements.some((e=>i.getExportSpecifierLocalTargetSymbol(e)===a))}}))})(s,n,l)?b(s,!0):b(s)}}function b(t,r){if(void 0===r&&(r=!1),e.Debug.assert(!g),f(t)&&(h.push(t),r)){var n=l.getMergedSymbol(t.symbol);if(n){e.Debug.assert(!!(1536&n.flags));var i=x(n);if(i)for(var a=0,s=i;a<s.length;a++){var c=s[a];e.isImportTypeNode(c)||b(o(c),!0)}}}}function x(t){return i.get(e.getSymbolId(t).toString())}})(t,i,d,p,l,u),m=f.directImports,g=f.indirectUsers;return Ol({indirectUsers:g},((t,r,n,i,a)=>{var o=[],s=[];function l(e,t){o.push([e,t])}if(t)for(var u=0,d=t;u<d.length;u++)p(d[u]);return{importSearches:o,singleReferences:s};function p(t){if(264!==t.kind)if(79!==t.kind)if(199!==t.kind){if(10===t.moduleSpecifier.kind)if(271!==t.kind){var o=t.importClause||{name:void 0,namedBindings:void 0},u=o.name,d=o.namedBindings;if(d)switch(d.kind){case 267:_(d.name);break;case 268:0!==n&&1!==n||f(d);break;default:e.Debug.assertNever(d)}!u||1!==n&&2!==n||a&&u.escapedText!==e.symbolEscapedNameNoDefault(r)||l(u,i.getSymbolAtLocation(u))}else t.exportClause&&e.isNamedExports(t.exportClause)&&f(t.exportClause)}else if(t.qualifier){var p=e.getFirstIdentifier(t.qualifier);p.escapedText===e.symbolName(r)&&s.push(p)}else 2===n&&s.push(t.argument.literal);else _(t);else c(t)&&_(t.name)}function _(e){2!==n||a&&!m(e.escapedText)||l(e,i.getSymbolAtLocation(e))}function f(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var o=n[t],c=o.name,u=o.propertyName;m((u||c).escapedText)&&(u?(s.push(u),a&&c.escapedText!==r.escapedName||l(c,i.getSymbolAtLocation(c))):l(c,274===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(c)))}}function m(e){return e===r.escapedName||0!==n&&"default"===e}})(m,n,p.exportKind,l,_))}},(u=t.ExportKind||(t.ExportKind={}))[u.Named=0]="Named",u[u.Default=1]="Default",u[u.ExportEquals=2]="ExportEquals",(l=t.ImportExport||(t.ImportExport={}))[l.Import=0]="Import",l[l.Export=1]="Export",t.findModuleReferences=(e,t,r)=>{for(var i=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],l=r.valueDeclaration;if(303===(null==l?void 0:l.kind)){for(var u=0,d=c.referencedFiles;u<d.length;u++){var p=d[u];e.getSourceFileFromReference(c,p)===l&&i.push({kind:"reference",referencingFile:c,ref:p})}for(var _=0,f=c.typeReferenceDirectives;_<f.length;_++){p=f[_];var m=e.getResolvedTypeReferenceDirectives().get(p.fileName);void 0!==m&&m.resolvedFileName===l.fileName&&i.push({kind:"reference",referencingFile:c,ref:p})}}n(c,((e,t)=>{a.getSymbolAtLocation(t)===r&&i.push({kind:"import",literal:t})}))}return i},t.getImportOrExportSymbol=(t,r,n,a)=>{return a?o():o()||(()=>{if((t=>{var r=t.parent;switch(r.kind){case 264:return r.name===t&&c(r);case 269:return!r.propertyName;case 266:case 267:return e.Debug.assert(r.name===t),!0;case 202:return e.isInJSFile(t)&&e.isRequireVariableDeclaration(r);default:return!1}})(t)){var i=n.getImmediateAliasedSymbol(r);if(i){"export="===(i=((t,r)=>{if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(a);if(e.isPropertyAccessExpression(a)&&e.isModuleExportsAccessExpression(a.expression)&&!e.isPrivateIdentifier(a.name))return r.getSymbolAtLocation(a);if(e.isShorthandPropertyAssignment(a)&&e.isBinaryExpression(a.parent.parent)&&2===e.getAssignmentDeclarationKind(a.parent.parent))return r.getExportSpecifierLocalTargetSymbol(a.name)}return t})(i,n)).escapedName&&(i=((t,r)=>{if(2097152&t.flags)return e.Debug.checkDefined(r.getImmediateAliasedSymbol(t));var n=e.Debug.checkDefined(t.valueDeclaration);return e.isExportAssignment(n)?e.Debug.checkDefined(n.expression.symbol):e.isBinaryExpression(n)?e.Debug.checkDefined(n.right.symbol):e.isSourceFile(n)?e.Debug.checkDefined(n.symbol):e.Debug.fail()})(i,n));var a=e.symbolEscapedNameNoDefault(i);return void 0===a||"default"===a||a===r.escapedName?{kind:0,symbol:i}:void 0}}})();function o(){var i,o=t.parent,c=o.parent;if(r.exportSymbol)return 205===o.kind?(null===(i=r.declarations)||void 0===i?void 0:i.some((e=>e===o)))&&e.isBinaryExpression(c)?p(c,!1):void 0:s(r.exportSymbol,l(o));var u=((t,r)=>{var n=e.isVariableDeclaration(t)?t:e.isBindingElement(t)?e.walkUpBindingElementsAndPatterns(t):void 0;return n?t.name!==r||e.isCatchClause(n.parent)?void 0:e.isVariableStatement(n.parent.parent)?n.parent.parent:void 0:t})(o,t);if(u&&e.hasSyntacticModifier(u,1)){if(e.isImportEqualsDeclaration(u)&&u.moduleReference===t){if(a)return;return{kind:0,symbol:n.getSymbolAtLocation(u.name)}}return s(r,l(u))}if(e.isNamespaceExport(o))return s(r,0);if(e.isExportAssignment(o))return d(o);if(e.isExportAssignment(c))return d(c);if(e.isBinaryExpression(o))return p(o,!0);if(e.isBinaryExpression(c))return p(c,!0);if(e.isJSDocTypedefTag(o))return s(r,0);function d(e){if(e.symbol.parent){var t=e.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:t}}}}function p(t,i){var a;switch(e.getAssignmentDeclarationKind(t)){case 1:a=0;break;case 2:a=2;break;default:return}var o=i?n.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(t.left,e.isAccessExpression))):r;return o&&s(o,a)}}function s(e,t){var r=i(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function l(t){return e.hasSyntacticModifier(t,512)?1:0}},t.getExportInfo=i})(e.FindAllReferences||(e.FindAllReferences={}))})(Fl),function(e){!function(t){var r,n,i,a;function o(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:c(e)}}function s(e){return e&&void 0===e.kind}function c(t){if(e.isDeclaration(t))return l(t);if(t.parent){if(!e.isDeclaration(t.parent)&&!e.isExportAssignment(t.parent)){if(e.isInJSFile(t)){var r=e.isBinaryExpression(t.parent)?t.parent:e.isAccessExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(r&&0!==e.getAssignmentDeclarationKind(r))return l(r)}if(e.isJsxOpeningElement(t.parent)||e.isJsxClosingElement(t.parent))return t.parent.parent;if(e.isJsxSelfClosingElement(t.parent)||e.isLabeledStatement(t.parent)||e.isBreakOrContinueStatement(t.parent))return t.parent;if(e.isStringLiteralLike(t)){var n=e.tryGetImportFromModuleSpecifier(t);if(n){var i=e.findAncestor(n,(t=>e.isDeclaration(t)||e.isStatement(t)||e.isJSDocTag(t)));return e.isDeclaration(i)?l(i):i}}var a=e.findAncestor(t,e.isComputedPropertyName);return a?l(a.parent):void 0}return t.parent.name===t||e.isConstructorDeclaration(t.parent)||e.isExportAssignment(t.parent)||(e.isImportOrExportSpecifier(t.parent)||e.isBindingElement(t.parent))&&t.parent.propertyName===t||88===t.kind&&e.hasSyntacticModifier(t.parent,513)?l(t.parent):void 0}}function l(t){if(t)switch(t.kind){case 253:return e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?e.isVariableStatement(t.parent.parent)?t.parent.parent:e.isForInOrOfStatement(t.parent.parent)?l(t.parent.parent):t.parent:t;case 202:return l(t.parent.parent);case 269:return t.parent.parent.parent;case 274:case 267:return t.parent.parent;case 266:case 273:return t.parent;case 220:return e.isExpressionStatement(t.parent)?t.parent:t;case 243:case 242:return{start:t.initializer,end:t.expression};case 294:case 295:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)?l(e.findAncestor(t.parent,(t=>e.isBinaryExpression(t)||e.isForInOrOfStatement(t)))):t;default:return t}}function u(e,t,r){if(r){var n=s(r)?y(r.start,t,r.end):y(r,t);return n.start!==e.start||n.length!==e.length?{contextSpan:n}:void 0}}function d(t,n,i,a,s){if(303!==a.kind){var c=t.getTypeChecker();if(295===a.parent.kind){var l=[];return r.getReferenceEntriesForShorthandPropertyAssignment(a,c,(e=>l.push(o(e)))),l}if(106===a.kind||e.isSuperProperty(a.parent)){var u=c.getSymbolAtLocation(a);return u.valueDeclaration&&[o(u.valueDeclaration)]}return p(s,a,t,i,n,{implementations:!0,use:1})}}function p(t,n,i,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=new e.Set(a.map((e=>e.fileName)))),_(r.getReferencedSymbolsForNode(t,n,i,a,o,s,c))}function _(t){return t&&e.flatMap(t,(e=>e.references))}function f(t){var r=t.getSourceFile();return{sourceFile:r,textSpan:y(e.isComputedPropertyName(t)?t.expression:t,r)}}function m(t,n,i){var a=r.getIntersectingMeaningFromDeclarations(i,t),o=t.declarations&&e.firstOrUndefined(t.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,t,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function g(e,t){var r=h(e);if(0===e.kind)return Ol(Ol({},r),{isWriteAccess:!1,isDefinition:!1});var n=e.kind,i=e.node;return Ol(Ol({},r),{isWriteAccess:b(i),isDefinition:x(i,t),isInString:2===n||void 0})}function h(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=y(e.node,t);return Ol({textSpan:r,fileName:t.fileName},u(r,t,e.context))}function y(t,r,n){var i=t.getStart(r),a=(n||t).getEnd();return e.isStringLiteralLike(t)&&(e.Debug.assert(void 0===n),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function v(e){return 0===e.kind?e.textSpan:y(e.node,e.node.getSourceFile())}function b(t){var r=e.getDeclarationFromName(t);return!!r&&(t=>{if(8388608&t.flags)return!0;switch(t.kind){case 220:case 202:case 256:case 225:case 88:case 259:case 297:case 274:case 266:case 264:case 269:case 257:case 336:case 343:case 284:case 260:case 263:case 267:case 273:case 163:case 295:case 258:case 162:return!0;case 294:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 255:case 212:case 170:case 168:case 171:case 172:return!!t.body;case 253:case 166:return!!t.initializer||e.isCatchClause(t.parent);case 167:case 165:case 345:case 338:return!1;default:return e.Debug.failBadSyntaxKind(t)}})(r)||88===t.kind||e.isWriteAccess(t)}function x(t,r){var n;if(!r)return!1;var i=e.getDeclarationFromName(t)||(88===t.kind?t.parent:e.isLiteralComputedPropertyDeclarationName(t)||134===t.kind&&e.isConstructorDeclaration(t.parent)?t.parent.parent:void 0),a=i&&e.isBinaryExpression(i)?i.left:void 0;return!(!i||!(null===(n=r.declarations)||void 0===n?void 0:n.some((e=>e===i||e===a))))}(a=t.DefinitionKind||(t.DefinitionKind={}))[a.Symbol=0]="Symbol",a[a.Label=1]="Label",a[a.Keyword=2]="Keyword",a[a.This=3]="This",a[a.String=4]="String",a[a.TripleSlashReference=5]="TripleSlashReference",(i=t.EntryKind||(t.EntryKind={}))[i.Span=0]="Span",i[i.Node=1]="Node",i[i.StringLiteral=2]="StringLiteral",i[i.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",i[i.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t.nodeEntry=o,t.isContextWithStartAndEndNode=s,t.getContextNode=l,t.toContextSpan=u,(n=t.FindReferencesUse||(t.FindReferencesUse={}))[n.Other=0]="Other",n[n.References=1]="References",n[n.Rename=2]="Rename",t.findReferencedSymbols=(t,n,i,a,o)=>{var s=e.getTouchingPropertyName(a,o),c=r.getReferencedSymbolsForNode(o,s,t,i,n,{use:1}),d=t.getTypeChecker(),p=d.getSymbolAtLocation(s);return c&&c.length?e.mapDefined(c,(t=>{var r=t.definition,i=t.references;return r&&{definition:d.runWithCancellationToken(n,(t=>((t,r,n)=>{var i=(()=>{switch(t.type){case 0:var i=m(p=t.symbol,r,n),a=i.displayParts,o=i.kind,s=a.map((e=>e.text)).join(""),c=p.declarations&&e.firstOrUndefined(p.declarations),u=c?e.getNameOfDeclaration(c)||c:n;return Ol(Ol({},f(u)),{name:s,kind:o,displayParts:a,context:l(c)});case 1:return u=t.node,Ol(Ol({},f(u)),{name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]});case 2:u=t.node;var d=e.tokenToString(u.kind);return Ol(Ol({},f(u)),{name:d,kind:"keyword",displayParts:[{text:d,kind:"keyword"}]});case 3:u=t.node;var p,_=(p=r.getSymbolAtLocation(u))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,p,u.getSourceFile(),e.getContainerNode(u),u).displayParts||[e.textPart("this")];return Ol(Ol({},f(u)),{name:"this",kind:"var",displayParts:_});case 4:return u=t.node,Ol(Ol({},f(u)),{name:u.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(u),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(t.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}})(),a=i.sourceFile,o=i.textSpan,s=i.name,c=i.kind,d=i.displayParts,p=i.context;return Ol({containerKind:"",containerName:"",fileName:a.fileName,kind:c,name:s,textSpan:o,displayParts:d},u(o,a,p))})(r,t,s))),references:i.map((e=>g(e,p)))}})):void 0},t.getImplementationsAtPosition=(t,r,n,i,a)=>{var o,s=e.getTouchingPropertyName(i,a),c=d(t,r,n,s,a);if(205===s.parent.kind||202===s.parent.kind||206===s.parent.kind||106===s.kind)o=c&&Il([],c,!0);else for(var l=c&&Il([],c,!0),u=new e.Map;l&&l.length;){var p=l.shift();if(e.addToSeen(u,e.getNodeId(p.node))){o=e.append(o,p);var _=d(t,r,n,p.node,p.node.pos);_&&l.push.apply(l,_)}}var f=t.getTypeChecker();return e.map(o,(t=>((t,r)=>{var n=h(t);if(0!==t.kind){var i=t.node;return Ol(Ol({},n),((t,r)=>{var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?m(n,r,t):204===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:225===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}})(i,r))}return Ol(Ol({},n),{kind:"",displayParts:[]})})(t,f)))},t.findReferenceOrRenameEntries=(t,n,i,a,o,s,c)=>e.map(_(r.getReferencedSymbolsForNode(o,a,t,i,n,s)),(e=>c(e,a,t.getTypeChecker()))),t.getReferenceEntriesForNode=p,t.toRenameLocation=(t,r,n,i)=>Ol(Ol({},h(t)),i&&((t,r,n)=>{if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=i.parent,s=r.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},u={suffixText:": "+s};if(3===a)return l;if(4===a)return u;if(c){var d=o.parent;return e.isObjectLiteralExpression(d)&&e.isBinaryExpression(d.parent)&&e.isModuleExportsAccessExpression(d.parent.left)?l:u}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var p=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(p.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions})(t,r,n)),t.toReferenceEntry=g,t.toHighlightSpan=e=>{var t=h(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=b(e.node),n=Ol({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:n}},t.getTextSpanOfEntry=v,function(r){function n(t,r,n){for(var i,a=0,o=r.get(t.path)||e.emptyArray;a<o.length;a++){var s=o[a];if(e.isReferencedFile(s)){var c=n.getSourceFileByPath(s.file),l=e.getReferencedFileLocation(n.getSourceFileByPath,s);e.isReferenceFileLocation(l)&&(i=e.append(i,{kind:0,fileName:c.fileName,textSpan:e.createTextSpanFromRange(l)}))}}return i}function i(t,r,n){if(t.parent&&e.isNamespaceExportDeclaration(t.parent)){var i=n.getAliasedSymbol(r),a=n.getMergedSymbol(i);if(i!==a)return a}}function a(t,r,n,i,a,o){var c=1536&t.flags&&t.declarations&&e.find(t.declarations,e.isSourceFile);if(c){var u=t.exports.get("export="),p=l(r,t,!!u,n,o);if(!u||!o.has(c.fileName))return p;var _=r.getTypeChecker();return s(r,p,d(t=e.skipAlias(u,_),void 0,n,o,_,i,a))}}function s(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s&&s.length)if(r)for(var l=n=>{if(!n.definition||0!==n.definition.type)return r.push(n),"continue";var i=n.definition.symbol,a=e.findIndex(r,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===i));if(-1===a)return r.push(n),"continue";var o=r[a];r[a]={definition:o.definition,references:o.references.concat(n.references).sort(((r,n)=>{var i=c(t,r),a=c(t,n);if(i!==a)return e.compareValues(i,a);var o=v(r),s=v(n);return o.start!==s.start?e.compareValues(o.start,s.start):e.compareValues(o.length,s.length)}))}},u=0,d=s;u<d.length;u++){var p=d[u];l(p)}else r=s}return r}function c(e,t){var r=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(r)}function l(r,n,i,a,s){e.Debug.assert(!!n.valueDeclaration);var c=e.mapDefined(t.findModuleReferences(r,a,n),(t=>{if("import"===t.kind){var r=t.literal.parent;if(e.isLiteralTypeNode(r)){var n=e.cast(r.parent,e.isImportTypeNode);if(i&&!n.qualifier)return}return o(t.literal)}return{kind:0,fileName:t.referencingFile.fileName,textSpan:e.createTextSpanFromRange(t.ref)}}));if(n.declarations)for(var l=0,u=n.declarations;l<u.length;l++)switch((f=u[l]).kind){case 303:break;case 260:s.has(f.getSourceFile().fileName)&&c.push(o(f.name));break;default:e.Debug.assert(!!(33554432&n.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}var d=n.exports.get("export=");if(null==d?void 0:d.declarations)for(var p=0,_=d.declarations;p<_.length;p++){var f,m=(f=_[p]).getSourceFile();if(s.has(m.fileName)){var g=e.isBinaryExpression(f)&&e.isPropertyAccessExpression(f.left)?f.left.expression:e.isExportAssignment(f)?e.Debug.checkDefined(e.findChildOfKind(f,93,m)):e.getNameOfDeclaration(f)||f;c.push(o(g))}}return c.length?[{definition:{type:0,symbol:n},references:c}]:e.emptyArray}function u(t){return 144===t.kind&&e.isTypeOperatorNode(t.parent)&&144===t.parent.operator}function d(t,r,n,i,a,o,s){var c=r&&((t,r,n,i)=>{var a=r.parent;return e.isExportSpecifier(a)&&i?N(r,t,a,n):e.firstDefined(t.declarations,(i=>{if(!i.parent){if(33554432&t.flags)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(r.kind),": ").concat(e.Debug.formatSymbol(t)))}return e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(i.parent.parent),t.name):void 0}))})(t,r,a,!z(s))||t,l=r?j(r,c):7,u=[],d=new f(n,i,r?(t=>{switch(t.kind){case 170:case 134:return 1;case 79:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}})(r):0,a,o,l,s,u),_=z(s)&&c.declarations?e.find(c.declarations,e.isExportSpecifier):void 0;if(_)A(_.name,c,_,d.createSearch(r,t,void 0),d,!0,!0);else if(r&&88===r.kind&&"default"===c.escapedName&&c.parent)w(r,c,d),m(r,c,{exportingModuleSymbol:c.parent,exportKind:1},d);else{var g=d.createSearch(r,c,void 0,{allSearchSymbols:r?R(c,r,a,2===s.use,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});p(c,d,g)}return u}function p(t,r,n){var i=(t=>{var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(212===a.kind||225===a.kind))return a;if(r){if(8196&n){var o=e.find(r,(t=>e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierClassElementDeclaration(t)));return o?e.getAncestor(o,256):void 0}if(!r.some(e.isObjectBindingElementWithoutPropertyName)){var s,c=i&&!(262144&t.flags);if(!c||e.isExternalModuleSymbol(i)&&!i.globalExports){for(var l=0,u=r;l<u.length;l++){var d=u[l],p=e.getContainerNode(d);if(s&&s!==p)return;if(!p||303===p.kind&&!e.isExternalOrCommonJsModule(p))return;if(s=p,e.isFunctionExpression(s))for(var _=void 0;_=e.getNextJSDocCommentLocation(s);)s=_}return c?s.getSourceFile():s}}}})(t);if(i)T(i,i.getSourceFile(),n,r,!(e.isSourceFile(i)&&!e.contains(r.sourceFiles,i)));else for(var a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a];r.cancellationToken.throwIfCancellationRequested(),y(s,n,r)}}var _;r.getReferencedSymbolsForNode=(t,r,c,p,_,f,m)=>{var g,h;if(void 0===f&&(f={}),void 0===m&&(m=new e.Set(p.map((e=>e.fileName)))),1===f.use?r=e.getAdjustedReferenceLocation(r):2===f.use&&(r=e.getAdjustedRenameLocation(r)),e.isSourceFile(r)){var y=e.GoToDefinition.getReferenceAtPosition(r,t,c);if(!(null==y?void 0:y.file))return;var v=c.getTypeChecker().getMergedSymbol(y.file.symbol);if(v)return l(c,v,!1,p,m);if(!(A=c.getFileIncludeReasons()))return;return[{definition:{type:5,reference:y.reference,file:r},references:n(y.file,A,c)||e.emptyArray}]}if(!f.implementations){var b=((t,r,n)=>{if(e.isTypeKeyword(t.kind)){if(114===t.kind&&e.isVoidExpression(t.parent))return;if(144===t.kind&&!u(t))return;return((t,r,n,i)=>{var a=e.flatMap(t,(t=>(n.throwIfCancellationRequested(),e.mapDefined(x(t,e.tokenToString(r),t),(e=>{if(e.kind===r&&(!i||i(e)))return o(e)})))));return a.length?[{definition:{type:2,node:a[0].node},references:a}]:void 0})(r,t.kind,n,144===t.kind?u:void 0)}if(e.isStaticModifier(t)&&e.isClassStaticBlockDeclaration(t.parent))return[{definition:{type:2,node:t},references:[o(t)]}];if(e.isJumpStatementTarget(t)){var i=e.getTargetLabel(t.parent,t.text);return i&&S(i.parent,i)}return e.isLabelOfLabeledStatement(t)?S(t.parent,t):e.isThis(t)?((t,r,n)=>{var i=e.getThisContainer(t,!1),a=32;switch(i.kind){case 168:case 167:if(e.isObjectLiteralMethod(i)){a&=e.getSyntacticModifierFlags(i),i=i.parent;break}case 166:case 165:case 170:case 171:case 172:a&=e.getSyntacticModifierFlags(i),i=i.parent;break;case 303:if(e.isExternalModule(i)||M(t))return;case 255:case 212:break;default:return}var s=e.flatMap(303===i.kind?r:[i.getSourceFile()],(t=>(n.throwIfCancellationRequested(),x(t,"this",e.isSourceFile(i)?t:i).filter((t=>{if(!e.isThis(t))return!1;var r=e.getThisContainer(t,!1);switch(i.kind){case 212:case 255:return i.symbol===r.symbol;case 168:case 167:return e.isObjectLiteralMethod(i)&&i.symbol===r.symbol;case 225:case 256:case 204:return r.parent&&i.symbol===r.parent.symbol&&e.isStatic(r)===!!a;case 303:return 303===r.kind&&!e.isExternalModule(r)&&!M(t)}}))))).map((e=>o(e)));return[{definition:{type:3,node:e.firstDefined(s,(t=>e.isParameter(t.node.parent)?t.node:void 0))||t},references:s}]})(t,r,n):106===t.kind?(t=>{var r=e.getSuperContainer(t,!1);if(r){var n=32;switch(r.kind){case 166:case 165:case 168:case 167:case 170:case 171:case 172:n&=e.getSyntacticModifierFlags(r),r=r.parent;break;default:return}var i=r.getSourceFile(),a=e.mapDefined(x(i,"super",r),(t=>{if(106===t.kind){var i=e.getSuperContainer(t,!1);return i&&e.isStatic(i)===!!n&&i.parent.symbol===r.symbol?o(t):void 0}}));return[{definition:{type:0,symbol:r.symbol},references:a}]}})(t):void 0})(r,p,_);if(b)return b}var E=c.getTypeChecker(),D=E.getSymbolAtLocation(e.isConstructorDeclaration(r)&&r.parent.name||r);if(D){if("export="===D.escapedName)return l(c,D.parent,!1,p,m);var T=a(D,c,p,_,f,m);if(T&&!(33554432&D.flags))return T;var C=i(r,D,E),k=C&&a(C,c,p,_,f,m);return s(c,T,d(D,r,p,m,E,_,f),k)}if(!f.implementations&&e.isStringLiteralLike(r)){if(e.isModuleSpecifierLike(r)){var A=c.getFileIncludeReasons(),N=null===(h=null===(g=r.getSourceFile().resolvedModules)||void 0===g?void 0:g.get(r.text,e.getModeForUsageLocation(r.getSourceFile(),r)))||void 0===h?void 0:h.resolvedFileName,w=N?c.getSourceFile(N):void 0;if(w)return[{definition:{type:4,node:r},references:n(w,A,c)||e.emptyArray}]}return((t,r,n,i)=>{var a=e.getContextualTypeFromParentOrAncestorTypeNode(t,n),s=e.flatMap(r,(r=>(i.throwIfCancellationRequested(),e.mapDefined(x(r,t.text),(r=>{if(e.isStringLiteralLike(r)&&r.text===t.text){if(!a)return o(r,2);var i=e.getContextualTypeFromParentOrAncestorTypeNode(r,n);if(a!==n.getStringType()&&a===i)return o(r,2)}})))));return[{definition:{type:4,node:t},references:s}]})(r,p,E,_)}},r.getReferencesForFileName=(t,r,i,a)=>{var o,s;void 0===a&&(a=new e.Set(i.map((e=>e.fileName))));var c=null===(o=r.getSourceFile(t))||void 0===o?void 0:o.symbol;if(c)return(null===(s=l(r,c,!1,i,a)[0])||void 0===s?void 0:s.references)||e.emptyArray;var u=r.getFileIncludeReasons(),d=r.getSourceFile(t);return d&&u&&n(d,u,r)||e.emptyArray},(e=>{e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"})(_||(_={}));var f=function(){function r(t,r,n,i,a,o,s,c){this.sourceFiles=t,this.sourceFilesSet=r,this.specialSearchKind=n,this.checker=i,this.cancellationToken=a,this.searchMeaning=o,this.options=s,this.result=c,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,r){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,r,2===this.options.use)},r.prototype.createSearch=function(t,r,n,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(r)||(t=>{if(33555968&t.flags){var r=t.declarations&&e.find(t.declarations,(t=>!e.isSourceFile(t)&&!e.isModuleDeclaration(t)));return r&&r.symbol}})(r)||r)):a,s=i.allSearchSymbols,c=void 0===s?[r]:s;return{symbol:r,comingFrom:n,text:o,escapedText:e.escapeLeadingUnderscores(o),parents:this.options.implementations&&t?((t,r,n)=>{var i=e.isRightSideOfPropertyAccess(t)?t.parent:void 0,a=i&&n.getTypeAtLocation(i.expression),o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===r.parent?void 0:[a]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o})(t,r,this.checker):void 0,allSearchSymbols:c,includes:t=>e.contains(c,t)}},r.prototype.referenceAdder=function(t){var r=e.getSymbolId(t),n=this.symbolIdToReferences[r];return n||(n=this.symbolIdToReferences[r]=[],this.result.push({definition:{type:0,symbol:t},references:n})),(e,t)=>n.push(o(e,t))},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbols=function(t,r){for(var n=e.getNodeId(t),i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new e.Set),a=!1,o=0,s=r;o<s.length;o++){var c=s[o];a=e.tryAddToSet(i,e.getSymbolId(c))||a}return a},r}();function m(e,t,r,n){var i=n.getImportSearches(t,r),a=i.importSearches,o=i.singleReferences,s=i.indirectUsers;if(o.length)for(var c=n.referenceAdder(t),l=0,u=o;l<u.length;l++){var d=u[l];g(d,n)&&c(d)}for(var p=0,_=a;p<_.length;p++){var f=_[p],m=f[0],h=f[1];D(m.getSourceFile(),n.createSearch(m,h,1),n)}if(s.length){var v=void 0;switch(r.exportKind){case 0:v=n.createSearch(e,t,1);break;case 1:v=2===n.options.use?void 0:n.createSearch(e,t,1,{text:"default"})}if(v)for(var b=0,x=s;b<x.length;b++)y(x[b],v,n)}}function g(t,r){return!(!C(t,r)||2===r.options.use&&(!e.isIdentifier(t)||e.isImportOrExportSpecifier(t.parent)&&"default"===t.escapedText))}function h(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();D(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function y(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&D(t,r,n)}function b(t,r,n,i,a){void 0===a&&(a=n);var o=e.isParameterPropertyDeclaration(t.parent,t.parent.parent)?e.first(r.getSymbolsOfParameterPropertyDeclaration(t.parent,t.text)):r.getSymbolAtLocation(t);if(o)for(var s=0,c=x(n,o.name,a);s<c.length;s++){var l=c[s];if(e.isIdentifier(l)&&l!==t&&l.escapedText===t.escapedText){var u=r.getSymbolAtLocation(l);if(u===o||r.getShorthandAssignmentValueSymbol(l.parent)===o||e.isExportSpecifier(l.parent)&&N(l,u,l.parent,r)===o){var d=i(l);if(d)return d}}}}function x(t,r,n){return void 0===n&&(n=t),E(t,r,n).map((r=>e.getTouchingPropertyName(t,r)))}function E(t,r,n){void 0===n&&(n=t);var i=[];if(!r||!r.length)return i;for(var a=t.text,o=a.length,s=r.length,c=a.indexOf(r,n.pos);c>=0&&!(c>n.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function S(t,r){var n=t.getSourceFile(),i=r.text,a=e.mapDefined(x(n,i,t),(t=>t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?o(t):void 0));return[{definition:{type:1,node:r},references:a}]}function D(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),T(e,e,t,r,n)}function T(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=E(t,r.text,e);a<o.length;a++)k(t,o[a],r,n,i)}function C(t,r){return!!(e.getMeaningFromLocation(t)&r.searchMeaning)}function k(r,n,i,a,o){var s=e.getTouchingPropertyName(r,n);if(((t,r)=>{switch(t.kind){case 80:if(e.isJSDocMemberName(t.parent))return!0;case 79:return t.text.length===r.length;case 14:case 10:var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t)||e.isCallExpression(t.parent)&&e.isBindableObjectDefinePropertyCall(t.parent)&&t.parent.arguments[1]===t)&&n.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 88:return"default".length===r.length;default:return!1}})(s,i.text)){if(C(s,a)){var c=a.checker.getSymbolAtLocation(s);if(c){var l=s.parent;if(!e.isImportSpecifier(l)||l.propertyName!==s){if(e.isExportSpecifier(l))return e.Debug.assert(79===s.kind),void A(s,c,l,i,a,o);var u=((t,r,n,i)=>{var a=i.checker;return L(r,n,a,!1,2!==i.options.use||!!i.options.providePrefixAndSuffixTextForRename,((n,i,a,o)=>(a&&B(r)!==B(a)&&(a=void 0),t.includes(a||i||n)?{symbol:!i||6&e.getCheckFlags(n)?n:i,kind:o}:void 0)),(e=>!(t.parents&&!t.parents.some((t=>O(e.parent,t,i.inheritsFromCache,a))))))})(i,c,s,a);if(u){switch(a.specialSearchKind){case 0:o&&w(s,u,a);break;case 1:!((t,r,n,i)=>{e.isNewExpressionTarget(t)&&w(t,n.symbol,i);var a,o=()=>i.referenceAdder(n.symbol);if(e.isClassLike(t.parent))e.Debug.assert(88===t.kind||t.parent.name===t),((t,r,n)=>{var i=F(t);if(i&&i.declarations)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.findChildOfKind(s,134,r);e.Debug.assert(170===s.kind&&!!c),n(c)}t.exports&&t.exports.forEach((t=>{var r=t.valueDeclaration;if(r&&168===r.kind){var i=r.body;i&&V(i,108,(t=>{e.isNewExpressionTarget(t)&&n(t)}))}}))})(n.symbol,r,o());else{var s=(a=t,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(a).parent));s&&(((t,r)=>{var n=F(t.symbol);if(n&&n.declarations)for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(170===o.kind);var s=o.body;s&&V(s,106,(t=>{e.isCallExpressionTarget(t)&&r(t)}))}})(s,o()),((e,t)=>{if(!(e=>!!F(e.symbol))(e)){var r=e.symbol,n=t.createSearch(void 0,r,void 0);p(r,t,n)}})(s,i))}})(s,r,i,a);break;case 2:!((t,r,n)=>{w(t,r.symbol,n);var i=t.parent;if(2!==n.options.use&&e.isClassLike(i)){e.Debug.assert(i.name===t);for(var a=n.referenceAdder(r.symbol),o=0,s=i.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.isStatic(c)&&c.body&&c.body.forEachChild((function t(r){108===r.kind?a(r):e.isFunctionLike(r)||e.isClassLike(r)||r.forEachChild(t)}))}}})(s,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}e.isInJSFile(s)&&202===s.parent.kind&&e.isRequireVariableDeclaration(s.parent)&&!(c=s.parent.symbol)||((e,r,n,i)=>{var a=t.getImportOrExportSymbol(e,r,i.checker,1===n.comingFrom);if(a){var o=a.symbol;0===a.kind?z(i.options)||h(o,i):m(e,o,a.exportInfo,i)}})(s,c,i,a)}else!((t,r,n)=>{var i=t.flags,a=t.valueDeclaration,o=n.checker.getShorthandAssignmentValueSymbol(a),s=a&&e.getNameOfDeclaration(a);33554432&i||!s||!r.includes(o)||w(s,o,n)})(c,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(r,n)||a.options.findInComments&&e.isInNonReferenceComment(r,n))&&a.addStringOrCommentReference(r.fileName,e.createTextSpan(n,i.text.length))}function A(r,n,i,a,o,s,c){e.Debug.assert(!c||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var l=i.parent,u=i.propertyName,d=i.name,p=l.parent,_=N(r,n,i,o.checker);if(c||a.includes(_)){if(u?r===u?(p.moduleSpecifier||b(),s&&2!==o.options.use&&o.markSeenReExportRHS(d)&&w(d,e.Debug.checkDefined(i.symbol),o)):o.markSeenReExportRHS(r)&&b():2===o.options.use&&"default"===d.escapedText||b(),!z(o.options)||c){var f=88===r.originalKeywordKind||88===i.name.originalKeywordKind?1:0,g=e.Debug.checkDefined(i.symbol),y=t.getExportInfo(g,f,o.checker);y&&m(r,g,y,o)}if(1!==a.comingFrom&&p.moduleSpecifier&&!u&&!z(o.options)){var v=o.checker.getExportSpecifierLocalTargetSymbol(i);v&&h(v,o)}}function b(){s&&w(r,_,o)}}function N(t,r,n,i){return((t,r)=>{var n=r.parent,i=r.propertyName,a=r.name;return e.Debug.assert(i===t||a===t),i?i===t:!n.parent.moduleSpecifier})(t,n)&&i.getExportSpecifierLocalTargetSymbol(n)||r}function w(t,r,n){var i="kind"in r?r:{kind:void 0,symbol:r},a=i.kind,o=i.symbol,s=n.referenceAdder(o);n.options.implementations?((t,r,n)=>{var i;if(!e.isDeclarationName(t)||(8388608&(i=t.parent).flags?e.isInterfaceDeclaration(i)||e.isTypeAliasDeclaration(i):!(e.isVariableLike(i)?e.hasInitializer(i):e.isFunctionLikeDeclaration(i)?i.body:e.isClassLike(i)||e.isModuleOrEnumDeclaration(i)))){if(79===t.kind){295===t.parent.kind&&U(t,n.checker,r);var a=P(t);if(a)r(a);else{var o=e.findAncestor(t,(t=>!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent))),s=o.parent;if(e.hasType(s)&&s.type===o&&n.markSeenContainingTypeReference(s))if(e.hasInitializer(s))l(s.initializer);else if(e.isFunctionLike(s)&&s.body){var c=s.body;234===c.kind?e.forEachReturnStatement(c,(e=>{e.expression&&l(e.expression)})):l(c)}else e.isAssertionExpression(s)&&l(s.expression)}}}else r(t);function l(e){I(e)&&r(e)}})(t,s,n):s(t,a)}function F(e){return e.members&&e.members.get("__constructor")}function P(t){return e.isIdentifier(t)||e.isPropertyAccessExpression(t)?P(t.parent):e.isExpressionWithTypeArguments(t)?e.tryCast(t.parent.parent,e.isClassLike):void 0}function I(e){switch(e.kind){case 211:return I(e.expression);case 213:case 212:case 204:case 225:case 203:return!0;default:return!1}}function O(t,r,n,i){if(t===r)return!0;var a=e.getSymbolId(t)+","+e.getSymbolId(r),o=n.get(a);if(void 0!==o)return o;n.set(a,!1);var s=!!t.declarations&&t.declarations.some((t=>e.getAllSuperTypeNodes(t).some((e=>{var t=i.getTypeAtLocation(e);return!!t&&!!t.symbol&&O(t.symbol,r,n,i)}))));return n.set(a,s),s}function M(e){return 79===e.kind&&163===e.parent.kind&&e.parent.name===e}function R(e,t,r,n,i,a){var o=[];return L(e,t,r,n,!(n&&i),((t,r,n)=>{n&&B(e)!==B(n)&&(n=void 0),o.push(n||r||t)}),(()=>!a)),o}function L(t,r,n,a,o,s,c){var l=e.getContainingObjectLiteralElement(r);if(l){var u=n.getShorthandAssignmentValueSymbol(r.parent);if(u&&a)return s(u,void 0,void 0,3);var d=n.getContextualType(l.parent),p=d&&e.firstDefined(e.getPropertySymbolsFromContextualType(l,n,d,!0),(e=>D(e,4)));if(p)return p;var _=((t,r)=>e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?r.getPropertySymbolOfDestructuringAssignment(t):void 0)(r,n),f=_&&s(_,void 0,void 0,4);if(f)return f;var m=u&&s(u,void 0,void 0,3);if(m)return m}var g=i(r,t,n);if(g){var h=s(g,void 0,void 0,1);if(h)return h}var y=D(t);if(y)return y;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration,t.valueDeclaration.parent)){var v=n.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);return e.Debug.assert(2===v.length&&!!(1&v[0].flags)&&!!(4&v[1].flags)),D(1&t.flags?v[1]:v[0])}var b=e.getDeclarationOfKind(t,274);if(!a||b&&!b.propertyName){var x=b&&n.getExportSpecifierLocalTargetSymbol(b);if(x){var E=s(x,void 0,void 0,1);if(E)return E}}if(!a){var S=void 0;return(S=o?e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(n,r.parent):void 0:T(t,n))&&D(S,4)}if(e.Debug.assert(a),o)return(S=T(t,n))&&D(S,4);function D(t,r){return e.firstDefined(n.getRootSymbols(t),(i=>s(t,i,void 0,r)||(i.parent&&96&i.parent.flags&&c(i)?((t,r,n,i)=>{var a=new e.Map;return function t(o){if(96&o.flags&&e.addToSeen(a,e.getSymbolId(o)))return e.firstDefined(o.declarations,(a=>e.firstDefined(e.getAllSuperTypeNodes(a),(a=>{var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return o&&s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))}))))}(t)})(i.parent,i.name,n,(e=>s(t,i,e,r))):void 0)))}function T(t,r){var n=e.getDeclarationOfKind(t,202);if(n&&e.isObjectBindingElementWithoutPropertyName(n))return e.getPropertySymbolFromBindingElement(r,n)}}function B(t){return!!t.valueDeclaration&&!!(32&e.getEffectiveModifierFlags(t.valueDeclaration))}function j(t,r){var n=e.getMeaningFromLocation(t),i=r.declarations;if(i){var a=void 0;do{a=n;for(var o=0,s=i;o<s.length;o++){var c=s[o],l=e.getMeaningFromDeclaration(c);l&n&&(n|=l)}}while(n!==a)}return n}function U(t,r,n){var i=r.getSymbolAtLocation(t),a=r.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a)for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&n(c)}}function V(t,r,n){e.forEachChild(t,(e=>{e.kind===r&&n(e),V(e,r,n)}))}function z(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}r.eachExportReference=(r,n,i,a,o,s,c,l)=>{for(var u=t.createImportTracker(r,new e.Set(r.map((e=>e.fileName))),n,i)(a,{exportKind:c?1:0,exportingModuleSymbol:o},!1),d=u.importSearches,p=u.indirectUsers,_=0,f=d;_<f.length;_++)l(f[_][0]);for(var m=0,g=p;m<g.length;m++)for(var h=0,y=x(g[m],c?"default":s);h<y.length;h++){var v=y[h],b=n.getSymbolAtLocation(v),E=e.some(null==b?void 0:b.declarations,(t=>!!e.tryCast(t,e.isExportAssignment)));!e.isIdentifier(v)||e.isImportOrExportSpecifier(v.parent)||b!==a&&!E||l(v)}},r.isSymbolReferencedInFile=(e,t,r,n)=>(void 0===n&&(n=r),b(e,t,r,(()=>!0),n)||!1),r.eachSymbolReferenceInFile=b,r.someSignatureUsage=(t,r,n,i)=>{if(!t.name||!e.isIdentifier(t.name))return!1;for(var a=e.Debug.checkDefined(n.getSymbolAtLocation(t.name)),o=0,s=r;o<s.length;o++)for(var c=0,l=x(s[o],a.name);c<l.length;c++){var u=l[c];if(e.isIdentifier(u)&&u!==t.name&&u.escapedText===t.name.escapedText){var d=e.climbPastPropertyAccess(u),p=e.isCallExpression(d.parent)&&d.parent.expression===d?d.parent:void 0,_=n.getSymbolAtLocation(u);if(_&&n.getRootSymbols(_).some((e=>e===a))&&i(u,p))return!0}}return!1},r.getIntersectingMeaningFromDeclarations=j,r.getReferenceEntriesForShorthandPropertyAssignment=U}(r=t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(Fl),(e=>{!(t=>{function r(t){return(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t))&&e.isVariableDeclaration(t.parent)&&t===t.parent.initializer&&e.isIdentifier(t.parent.name)&&!!(2&e.getCombinedNodeFlags(t.parent))}function n(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)||e.isFunctionDeclaration(t)||e.isFunctionExpression(t)||e.isClassDeclaration(t)||e.isClassExpression(t)||e.isClassStaticBlockDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)}function i(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)&&e.isIdentifier(t.name)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isClassStaticBlockDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)||(t=>(e.isFunctionExpression(t)||e.isClassExpression(t))&&e.isNamedDeclaration(t))(t)||r(t)}function a(t){return e.isSourceFile(t)?t:e.isNamedDeclaration(t)?t.name:r(t)?t.parent.name:e.Debug.checkDefined(t.modifiers&&e.find(t.modifiers,o))}function o(e){return 88===e.kind}function s(e,t){var r=a(t);return r&&e.getSymbolAtLocation(r)}function c(t,r){if(r.body)return r;if(e.isConstructorDeclaration(r))return e.getFirstConstructorWithBody(r.parent);if(e.isFunctionDeclaration(r)||e.isMethodDeclaration(r)){var n=s(t,r);return n&&n.valueDeclaration&&e.isFunctionLikeDeclaration(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return r}function l(t,r){var n,a=s(t,r);if(a&&a.declarations){var o=e.indicesOf(a.declarations),c=e.map(a.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));o.sort(((t,r)=>e.compareStringsCaseSensitive(c[t].file,c[r].file)||c[t].pos-c[r].pos));for(var l=void 0,u=0,d=e.map(o,(e=>a.declarations[e]));u<d.length;u++){var p=d[u];i(p)&&(l&&l.parent===p.parent&&l.end===p.pos||(n=e.append(n,p)),l=p)}}return n}function u(t,r){var n,i,a;return e.isClassStaticBlockDeclaration(r)?r:e.isFunctionLikeDeclaration(r)?null!==(i=null!==(n=c(t,r))&&void 0!==n?n:l(t,r))&&void 0!==i?i:r:null!==(a=l(t,r))&&void 0!==a?a:r}function d(t,a){for(var o=t.getTypeChecker(),s=!1;;){if(i(a))return u(o,a);var c;if(n(a))return(c=e.findAncestor(a,i))&&u(o,c);if(e.isDeclarationName(a))return i(a.parent)?u(o,a.parent):n(a.parent)?(c=e.findAncestor(a.parent,i))&&u(o,c):e.isVariableDeclaration(a.parent)&&a.parent.initializer&&r(a.parent.initializer)?a.parent.initializer:void 0;if(e.isConstructorDeclaration(a))return i(a.parent)?a.parent:void 0;if(124!==a.kind||!e.isClassStaticBlockDeclaration(a.parent)){if(e.isVariableDeclaration(a)&&a.initializer&&r(a.initializer))return a.initializer;if(!s){var l=o.getSymbolAtLocation(a);if(l&&(2097152&l.flags&&(l=o.getAliasedSymbol(l)),l.valueDeclaration)){s=!0,a=l.valueDeclaration;continue}}return}a=a.parent}}function p(t,n){var i=n.getSourceFile(),a=((t,n)=>{if(e.isSourceFile(n))return{text:n.fileName,pos:0,end:0};if((e.isFunctionDeclaration(n)||e.isClassDeclaration(n))&&!e.isNamedDeclaration(n)){var i=n.modifiers&&e.find(n.modifiers,o);if(i)return{text:"default",pos:i.getStart(),end:i.getEnd()}}if(e.isClassStaticBlockDeclaration(n)){var a=n.getSourceFile(),s=e.skipTrivia(a.text,e.moveRangePastModifiers(n).pos),c=s+6,l=(d=(u=t.getTypeChecker()).getSymbolAtLocation(n.parent))?"".concat(u.symbolToString(d,n.parent)," "):"";return{text:"".concat(l,"static {}"),pos:s,end:c}}var u,d,p=r(n)?n.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(n),"Expected call hierarchy item to have a name"),_=e.isIdentifier(p)?e.idText(p):e.isStringOrNumericLiteralLike(p)?p.text:e.isComputedPropertyName(p)&&e.isStringOrNumericLiteralLike(p.expression)?p.expression.text:void 0;if(void 0===_&&(d=(u=t.getTypeChecker()).getSymbolAtLocation(p))&&(_=u.symbolToString(d,n)),void 0===_){var f=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});_=e.usingSingleLineStringWriter((e=>f.writeNode(4,n,n.getSourceFile(),e)))}return{text:_,pos:p.getStart(),end:p.getEnd()}})(t,n),s=(t=>{var n,i;if(r(t))return e.isModuleBlock(t.parent.parent.parent.parent)&&e.isIdentifier(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 171:case 172:case 168:return 204===t.parent.kind?null===(n=e.getAssignedName(t.parent))||void 0===n?void 0:n.getText():null===(i=e.getNameOfDeclaration(t.parent))||void 0===i?void 0:i.getText();case 255:case 256:case 260:if(e.isModuleBlock(t.parent)&&e.isIdentifier(t.parent.parent.name))return t.parent.parent.name.getText()}})(n),c=e.getNodeKind(n),l=e.getNodeModifiers(n),u=e.createTextSpanFromBounds(e.skipTrivia(i.text,n.getFullStart(),!1,!0),n.getEnd()),d=e.createTextSpanFromBounds(a.pos,a.end);return{file:i.fileName,kind:c,kindModifiers:l,name:a.text,containerName:s,span:u,selectionSpan:d}}function _(e){return void 0!==e}function f(t){if(1===t.kind){var r=t.node;if(e.isCallOrNewExpressionTarget(r,!0,!0)||e.isTaggedTemplateTag(r,!0,!0)||e.isDecoratorTarget(r,!0,!0)||e.isJsxOpeningLikeElementTagName(r,!0,!0)||e.isRightSideOfPropertyAccess(r)||e.isArgumentExpressionOfElementAccess(r)){var n=r.getSourceFile();return{declaration:e.findAncestor(r,i)||n,range:e.createTextRangeFromNode(r,n)}}}}function m(t){return e.getNodeId(t.declaration)}t.resolveCallHierarchyDeclaration=d,t.createCallHierarchyItem=p,t.getIncomingCalls=(t,r,n)=>{if(e.isSourceFile(r)||e.isModuleDeclaration(r)||e.isClassStaticBlockDeclaration(r))return[];var i=a(r),o=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(t,n,t.getSourceFiles(),i,0,{use:1},f),_);return o?e.group(o,m,(r=>((t,r)=>({from:p(t,r[0].declaration),fromSpans:e.map(r,(t=>e.createTextSpanFromRange(t.range)))}))(t,r))):[]},t.getOutgoingCalls=(t,r)=>8388608&r.flags||e.isMethodSignature(r)?[]:e.group(((t,r)=>{var n=[],a=((t,r)=>{function n(n){var i=e.isTaggedTemplateExpression(n)?n.tag:e.isJsxOpeningLikeElement(n)?n.tagName:e.isAccessExpression(n)||e.isClassStaticBlockDeclaration(n)?n:n.expression,a=d(t,i);if(a){var o=e.createTextRangeFromNode(i,n.getSourceFile());if(e.isArray(a))for(var s=0,c=a;s<c.length;s++){var l=c[s];r.push({declaration:l,range:o})}else r.push({declaration:a,range:o})}}return function t(r){if(r&&!(8388608&r.flags))if(i(r)){if(e.isClassLike(r))for(var a=0,o=r.members;a<o.length;a++){var s=o[a];s.name&&e.isComputedPropertyName(s.name)&&t(s.name.expression)}}else{switch(r.kind){case 79:case 264:case 265:case 271:case 257:case 258:return;case 169:return void n(r);case 210:case 228:return void t(r.expression);case 253:case 163:return t(r.name),void t(r.initializer);case 207:case 208:return n(r),t(r.expression),void e.forEach(r.arguments,t);case 209:return n(r),t(r.tag),void t(r.template);case 279:case 278:return n(r),t(r.tagName),void t(r.attributes);case 164:return n(r),void t(r.expression);case 205:case 206:n(r),e.forEachChild(r,t)}e.isPartOfTypeNode(r)||e.forEachChild(r,t)}}})(t,n);switch(r.kind){case 303:!((t,r)=>{e.forEach(t.statements,r)})(r,a);break;case 260:!((t,r)=>{!e.hasSyntacticModifier(t,2)&&t.body&&e.isModuleBlock(t.body)&&e.forEach(t.body.statements,r)})(r,a);break;case 255:case 212:case 213:case 168:case 171:case 172:!((t,r,n)=>{var i=c(t,r);i&&(e.forEach(i.parameters,n),n(i.body))})(t.getTypeChecker(),r,a);break;case 256:case 225:!((t,r)=>{e.forEach(t.decorators,r);var n=e.getClassExtendsHeritageElement(t);n&&r(n.expression);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.forEach(o.decorators,r),e.isPropertyDeclaration(o)?r(o.initializer):e.isConstructorDeclaration(o)&&o.body?(e.forEach(o.parameters,r),r(o.body)):e.isClassStaticBlockDeclaration(o)&&r(o)}})(r,a);break;case 169:!((e,t)=>{t(e.body)})(r,a);break;default:e.Debug.assertNever(r)}return n})(t,r),m,(r=>((t,r)=>({to:p(t,r[0].declaration),fromSpans:e.map(r,(t=>e.createTextSpanFromRange(t.range)))}))(t,r)))})(e.CallHierarchy||(e.CallHierarchy={}))})(Fl),(e=>{function t(t,n,i,a){var o=i(t);return t=>{var s=a&&a.tryGetSourcePosition({fileName:t,pos:0}),c=(t=>{if(i(t)===o)return n;var r=e.tryRemoveDirectoryPrefix(t,o,i);return void 0===r?void 0:n+"/"+r})(s?s.fileName:t);return s?void 0===c?void 0:((t,n,i,a)=>{var o=e.getRelativePathFromFile(t,n,a);return r(e.getDirectoryPath(i),o)})(s.fileName,c,t,i):c}}function r(t,r){return e.ensurePathIsNonModuleName(((t,r)=>e.normalizePath(e.combinePaths(t,r)))(t,r))}function n(t,r,n,i){if(r){if(r.resolvedModule){var a=s(r.resolvedModule.resolvedFileName);if(a)return a}return e.forEach(r.failedLookupLocations,(t=>{var r=n(t);return r&&e.find(i,(e=>e.fileName===r))?o(t):void 0}))||e.pathIsRelative(t.text)&&e.forEach(r.failedLookupLocations,o)||r.resolvedModule&&{newFileName:r.resolvedModule.resolvedFileName,updated:!1}}function o(t){return e.endsWith(t,"/package.json")?void 0:s(t)}function s(e){var t=n(e);return t&&{newFileName:t,updated:!0}}}function i(t,r){return e.createRange(t.getStart(r)+1,t.end-1)}function a(t,r){if(e.isObjectLiteralExpression(t))for(var n=0,i=t.properties;n<i.length;n++){var a=i[n];e.isPropertyAssignment(a)&&e.isStringLiteral(a.name)&&r(a,a.name.text)}}e.getEditsForFileRename=(o,s,c,l,u,d,p)=>{var _=e.hostUsesCaseSensitiveFileNames(l),f=e.createGetCanonicalFileName(_),m=t(s,c,f,p),g=t(c,s,f,p);return e.textChanges.ChangeTracker.with({host:l,formatContext:u,preferences:d},(t=>{!((t,n,o,s,c,l,u)=>{var d=t.getCompilerOptions().configFile;if(d){var p=e.getDirectoryPath(d.fileName),_=e.getTsConfigObjectLiteralExpression(d);_&&a(_,((t,r)=>{switch(r){case"files":case"include":case"exclude":if(f(t)||"include"!==r||!e.isArrayLiteralExpression(t.initializer))return;var i=e.mapDefined(t.initializer.elements,(t=>e.isStringLiteral(t)?t.text:void 0));if(0===i.length)return;var o=e.getFileMatcherPatterns(p,[],i,u,l);return void(e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(s)&&!e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(c)&&n.insertNodeAfter(d,e.last(t.initializer.elements),e.factory.createStringLiteral(g(c))));case"compilerOptions":return void a(t.initializer,((t,r)=>{var n=e.getOptionFromName(r);n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?f(t):"paths"===r&&a(t.initializer,(t=>{if(e.isArrayLiteralExpression(t.initializer))for(var r=0,n=t.initializer.elements;r<n.length;r++)m(n[r])}))}))}}))}function f(t){for(var r=!1,n=0,i=e.isArrayLiteralExpression(t.initializer)?t.initializer.elements:[t.initializer];n<i.length;n++)r=m(i[n])||r;return r}function m(t){if(!e.isStringLiteral(t))return!1;var a=r(p,t.text),s=o(a);return void 0!==s&&(n.replaceRangeWithText(d,i(t,d),g(s)),!0)}function g(t){return e.getRelativePathFromDirectory(p,t,!u)}})(o,t,m,s,c,l.getCurrentDirectory(),_),((t,a,o,s,c,l)=>{for(var u=t.getSourceFiles(),d=d=>{var p=o(d.fileName),_=null!=p?p:d.fileName,f=e.getDirectoryPath(_),m=s(d.fileName),g=m||d.fileName,h=e.getDirectoryPath(g),y=void 0!==p||void 0!==m;!((t,r,n,a)=>{for(var o=0,s=t.referencedFiles||e.emptyArray;o<s.length;o++){var c=s[o];void 0!==(d=n(c.fileName))&&d!==t.text.slice(c.pos,c.end)&&r.replaceRangeWithText(t,c,d)}for(var l=0,u=t.imports;l<u.length;l++){var d,p=u[l];void 0!==(d=a(p))&&d!==p.text&&r.replaceRangeWithText(t,i(p,t),d)}})(d,a,(t=>{if(e.pathIsRelative(t)){var n=r(h,t),i=o(n);return void 0===i?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(f,i,l))}}),(r=>{var i=t.getTypeChecker().getSymbolAtLocation(r);if(!(null==i?void 0:i.declarations)||!i.declarations.some((t=>e.isAmbientModule(t)))){var a=void 0!==m?n(r,e.resolveModuleName(r.text,g,t.getCompilerOptions(),c),o,u):((t,r,i,a,o,s)=>{if(t){var c=e.find(t.declarations,e.isSourceFile).fileName,l=s(c);return void 0===l?{newFileName:c,updated:!1}:{newFileName:l,updated:!0}}var u=e.getModeForUsageLocation(i,r);return n(r,o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName,u):a.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName,u),s,a.getSourceFiles())})(i,r,d,t,c,o);return void 0!==a&&(a.updated||y&&e.pathIsRelative(r.text))?e.moduleSpecifiers.updateModuleSpecifier(t.getCompilerOptions(),l(_),a.newFileName,e.createModuleSpecifierResolutionHost(t,c),r.text):void 0}}))},p=0,_=u;p<_.length;p++)d(_[p])})(o,t,m,g,l,f)}))},e.getPathUpdater=t})(Fl),(e=>{!(t=>{function r(t,r,a){var u,p,_,f=i(r,a,t),m=f&&[(u=f.reference.fileName,p=f.fileName,_=f.unverified,{fileName:p,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:u,containerName:void 0,containerKind:void 0,unverified:_})]||e.emptyArray;if(null==f?void 0:f.file)return m;var g=e.getTouchingPropertyName(r,a);if(g!==r){var h=g.parent,y=t.getTypeChecker();if(158===g.kind||e.isJSDocOverrideTag(g)&&e.rangeContainsPosition(g.tagName,a))return((t,r)=>{var n=e.findAncestor(r,e.isClassElement);if(n&&n.name){var i=e.findAncestor(n,e.isClassLike);if(i){var a=e.getEffectiveBaseTypeNode(i),o=a?t.getTypeAtLocation(a):void 0;if(o){var c=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(n.name)),l=e.hasStaticModifier(n)?t.getPropertyOfType(t.getTypeOfSymbolAtLocation(o.symbol,i),c):t.getPropertyOfType(o,c);if(l)return s(t,l,r)}}}})(y,g)||e.emptyArray;if(e.isJumpStatementTarget(g)){var v=e.getTargetLabel(g.parent,g.text);return v?[l(y,v,"label",g.text,void 0)]:void 0}if(e.isStaticModifier(g)&&e.isClassStaticBlockDeclaration(g.parent)){var b=g.parent.parent,x=o(b,y),E=e.filter(b.members,e.isClassStaticBlockDeclaration),S=x?y.symbolToString(x,b):"",D=g.getSourceFile();return e.map(E,(t=>{var r=e.moveRangePastModifiers(t).pos;return r=e.skipTrivia(D.text,r),l(y,t,"constructor","static {}",S,{start:r,length:"static".length})}))}var T=o(g,y);if(!T)return e.concatenate(m,((t,r)=>e.mapDefined(r.getIndexInfosAtLocation(t),(e=>e.declaration&&d(r,e.declaration))))(g,y));var C=((t,r)=>{var n=(t=>{var r=e.findAncestor(t,(t=>!e.isRightSideOfPropertyAccess(t))),n=null==r?void 0:r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:void 0})(r),i=n&&t.getResolvedSignature(n);return e.tryCast(i&&i.declaration,(t=>e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)))})(y,g);if(C&&(!e.isJsxOpeningLikeElement(g.parent)||!(e=>{switch(e.kind){case 170:case 179:case 174:return!0;default:return!1}})(C))){var k=d(y,C);if(y.getRootSymbols(T).some((t=>((t,r)=>t===r.symbol||t===r.symbol.parent||e.isAssignmentExpression(r.parent)||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol)(t,C))))return[k];var A=s(y,T,g,C)||e.emptyArray;return 106===g.kind?Il([k],A,!0):Il(Il([],A,!0),[k],!1)}if(295===g.parent.kind){var N=y.getShorthandAssignmentValueSymbol(T.valueDeclaration),w=(null==N?void 0:N.declarations)?N.declarations.map((e=>c(e,y,N,g))):e.emptyArray;return e.concatenate(w,n(y,g)||e.emptyArray)}if(e.isPropertyName(g)&&e.isBindingElement(h)&&e.isObjectBindingPattern(h.parent)&&g===(h.propertyName||h.name)){var F=e.getNameFromPropertyName(g),P=y.getTypeAtLocation(h.parent);return void 0===F?e.emptyArray:e.flatMap(P.isUnion()?P.types:[P],(e=>{var t=e.getProperty(F);return t&&s(y,t,g)}))}return e.concatenate(m,n(y,g)||s(y,T,g))}}function n(t,r){var n=e.getContainingObjectLiteralElement(r);if(n){var i=n&&t.getContextualType(n.parent);if(i)return e.flatMap(e.getPropertySymbolsFromContextualType(n,t,i,!1),(e=>s(t,e,r)))}}function i(t,r,n){var i,a,o=p(t.referencedFiles,r);if(o)return(l=n.getSourceFileFromReference(t,o))&&{reference:o,fileName:l.fileName,file:l,unverified:!1};var s=p(t.typeReferenceDirectives,r);if(s){var c=n.getResolvedTypeReferenceDirectives().get(s.fileName);return(l=c&&n.getSourceFile(c.resolvedFileName))&&{reference:s,fileName:l.fileName,file:l,unverified:!1}}var l,u=p(t.libReferenceDirectives,r);if(u)return(l=n.getLibFileFromReference(u))&&{reference:u,fileName:l.fileName,file:l,unverified:!1};if(null===(i=t.resolvedModules)||void 0===i?void 0:i.size()){var d=e.getTokenAtPosition(t,r);if(e.isModuleSpecifierLike(d)&&e.isExternalModuleNameRelative(d.text)&&t.resolvedModules.has(d.text,e.getModeForUsageLocation(t,d))){var _=null===(a=t.resolvedModules.get(d.text,e.getModeForUsageLocation(t,d)))||void 0===a?void 0:a.resolvedFileName,f=_||e.resolvePath(e.getDirectoryPath(t.fileName),d.text);return{file:n.getSourceFile(f),fileName:f,reference:{pos:d.getStart(),end:d.getEnd(),fileName:d.text},unverified:!_}}}}function a(t,r,n){return e.flatMap(!t.isUnion()||32&t.flags?[t]:t.types,(e=>e.symbol&&s(r,e.symbol,n)))}function o(t,r){var n=r.getSymbolAtLocation(t);if((null==n?void 0:n.declarations)&&2097152&n.flags&&((t,r)=>{if(79!==t.kind)return!1;if(t.parent===r)return!0;switch(r.kind){case 266:case 264:return!0;case 269:return 268===r.parent.kind;case 202:case 253:return e.isInJSFile(r)&&e.isRequireVariableDeclaration(r);default:return!1}})(t,n.declarations[0])){var i=r.getAliasedSymbol(n);if(i.declarations)return i}return n}function s(t,r,n,i){var a=e.filter(r.declarations,(t=>t!==i&&(!e.isAssignmentDeclaration(t)||t===r.valueDeclaration)))||void 0;return(()=>{if(32&r.flags&&!(19&r.flags)&&(e.isNewExpressionTarget(n)||134===n.kind))return o((e.find(a,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)})()||(e.isCallOrNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?o(a,!1):void 0)||e.map(a,(e=>c(e,t,r,n)));function o(i,a){if(i){var o=i.filter(a?e.isConstructorDeclaration:e.isFunctionLike),s=o.filter((e=>!!e.body));return o.length?0!==s.length?s.map((e=>c(e,t,r,n))):[c(e.last(o),t,r,n)]:void 0}}}function c(t,r,n,i){var a=r.symbolToString(n),o=e.SymbolDisplay.getSymbolKind(r,n,i),s=n.parent?r.symbolToString(n.parent,i):"";return l(r,t,o,a,s)}function l(t,r,n,i,a,o){var s=r.getSourceFile();if(!o){var c=e.getNameOfDeclaration(r)||r;o=e.createTextSpanFromNode(c,s)}return Ol(Ol({fileName:s.fileName,textSpan:o,kind:n,name:i,containerKind:void 0,containerName:a},e.FindAllReferences.toContextSpan(o,s,e.FindAllReferences.getContextNode(r))),{isLocal:!u(t,r)})}function u(t,r){if(t.isDeclarationVisible(r))return!0;if(!r.parent)return!1;if(e.hasInitializer(r.parent)&&r.parent.initializer===r)return u(t,r.parent);switch(r.kind){case 166:case 171:case 172:case 168:if(e.hasEffectiveModifier(r,8))return!1;case 170:case 294:case 295:case 204:case 225:case 213:case 212:return u(t,r.parent);default:return!1}}function d(e,t){return c(t,e,t.symbol,t)}function p(t,r){return e.find(t,(t=>e.textRangeContainsPositionInclusive(t,r)))}t.getDefinitionAtPosition=r,t.getReferenceAtPosition=i,t.getTypeDefinitionAtPosition=(t,r,n)=>{var i=e.getTouchingPropertyName(r,n);if(i!==r){var o=t.getSymbolAtLocation(i);if(o){var s=t.getTypeOfSymbolAtLocation(o,i),c=((t,r,n)=>{if(r.symbol===t||t.valueDeclaration&&r.symbol&&e.isVariableDeclaration(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){var i=r.getCallSignatures();if(1===i.length)return n.getReturnTypeOfSignature(e.first(i))}})(o,s,t),l=c&&a(c,t,i);return l&&0!==l.length?l:a(s,t,i)}}},t.getDefinitionAndBoundSpan=(t,n,i)=>{var a=r(t,n,i);if(a&&0!==a.length){var o=p(n.referencedFiles,i)||p(n.typeReferenceDirectives,i)||p(n.libReferenceDirectives,i);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(n,i);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},t.findReferenceInPosition=p})(e.GoToDefinition||(e.GoToDefinition={}))})(Fl),(e=>{!(t=>{var r,n,i=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function a(t,r){return e.arraysEqual(t,r,((e,t)=>e.kind===t.kind&&e.text===t.text))}function o(t,r){return"string"==typeof t?[e.textPart(t)]:e.flatMap(t,(t=>319===t.kind?[e.textPart(t.text)]:e.buildLinkParts(t,r)))}function s(t,r){var n=t.comment,i=t.kind,a=(t=>{switch(t){case 338:return e.parameterNamePart;case 345:return e.propertyNamePart;case 342:return e.typeParameterNamePart;case 343:case 336:return e.typeAliasNamePart;default:return e.textPart}})(i);switch(i){case 327:case 326:return c(t.class);case 342:return l(t.typeParameters.map((e=>e.getText())).join(", "));case 341:return c(t.typeExpression);case 343:case 336:case 345:case 338:case 344:var s=t.name;return s?c(s):void 0===n?void 0:o(n,r);default:return void 0===n?void 0:o(n,r)}function c(e){return l(e.getText())}function l(t){return n?t.match(/^https?$/)?Il([e.textPart(t)],o(n,r),!0):Il([a(t),e.spacePart()],o(n,r),!0):[e.textPart(t)]}}function c(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function l(t,r){switch(t.kind){case 255:case 212:case 168:case 170:case 167:case 213:var n=t;return{commentOwner:t,parameters:n.parameters,hasReturn:u(n,r)};case 294:return l(t.initializer,r);case 256:case 257:case 165:case 259:case 297:case 258:return{commentOwner:t};case 236:var i=t.declarationList.declarations,a=1===i.length&&i[0].initializer?(t=>{for(;211===t.kind;)t=t.expression;switch(t.kind){case 212:case 213:return t;case 225:return e.find(t.members,e.isConstructorDeclaration)}})(i[0].initializer):void 0;return a?{commentOwner:t,parameters:a.parameters,hasReturn:u(a,r)}:{commentOwner:t};case 303:return"quit";case 260:return 260===t.parent.kind?void 0:{commentOwner:t};case 237:return l(t.expression,r);case 220:var o=t;return 0===e.getAssignmentDeclarationKind(o)?"quit":e.isFunctionLike(o.right)?{commentOwner:t,parameters:o.right.parameters,hasReturn:u(o.right,r)}:{commentOwner:t};case 166:var s=t.initializer;if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s)))return{commentOwner:t,parameters:s.parameters,hasReturn:u(s,r)}}}function u(t,r){return!!(null==r?void 0:r.generateReturnInDocTemplate)&&(e.isArrowFunction(t)&&e.isExpression(t.body)||e.isFunctionLikeDeclaration(t)&&t.body&&e.isBlock(t.body)&&!!e.forEachReturnStatement(t.body,(e=>e)))}t.getJsDocCommentsFromDeclarations=(t,r)=>{var n=[];return e.forEachUnique(t,(t=>{for(var i=0,s=(t=>{switch(t.kind){case 338:case 345:return[t];case 336:case 343:return[t,t.parent];default:return e.getJSDocCommentsAndTags(t)}})(t);i<s.length;i++){var c=s[i];if(!(void 0===c.comment||e.isJSDoc(c)&&343!==t.kind&&336!==t.kind&&c.tags&&c.tags.some((e=>343===e.kind||336===e.kind))&&!c.tags.some((e=>338===e.kind||339===e.kind)))){var l=o(c.comment,r);e.contains(n,l,a)||n.push(l)}}})),e.flatten(e.intersperse(n,[e.lineBreakPart()]))},t.getJsDocTagsFromDeclarations=(t,r)=>{var n=[];return e.forEachUnique(t,(t=>{var i=e.getJSDocTags(t);if(!i.some((e=>343===e.kind||336===e.kind))||i.some((e=>338===e.kind||339===e.kind)))for(var a=0,o=i;a<o.length;a++){var c=o[a];n.push({name:c.tagName.text,text:s(c,r)})}})),n},t.getJSDocTagNameCompletions=()=>r||(r=e.map(i,(t=>({name:t,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority})))),t.getJSDocTagNameCompletionDetails=c,t.getJSDocTagCompletions=()=>n||(n=e.map(i,(t=>({name:"@".concat(t),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority})))),t.getJSDocTagCompletionDetails=c,t.getJSDocParameterNameCompletions=t=>{if(!e.isIdentifier(t.name))return e.emptyArray;var r=t.name.text,n=t.parent,i=n.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,(i=>{if(e.isIdentifier(i.name)){var a=i.name.text;if(!n.tags.some((r=>r!==t&&e.isJSDocParameterTag(r)&&e.isIdentifier(r.name)&&r.name.escapedText===a))&&(void 0===r||e.startsWith(a,r)))return{name:a,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}})):[]},t.getJSDocParameterNameCompletionDetails=t=>({name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}),t.getDocCommentTemplateAtPosition=(t,r,n,i)=>{var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isJSDoc);if(!o||void 0===o.comment&&!e.length(o.tags)){var s=a.getStart(r);if(o||!(s<n)){var c=((t,r)=>e.forEachAncestor(t,(e=>l(e,r))))(a,i);if(c){var u=c.commentOwner,d=c.parameters,p=c.hasReturn;if(!(u.getStart(r)<n)){var _=((t,r)=>{for(var n=t.text,i=e.getLineStartPositionForPosition(r,t),a=i;a<=r&&e.isWhiteSpaceSingleLine(n.charCodeAt(a));a++);return n.slice(i,a)})(r,n),f=e.hasJSFileExtension(r.fileName),m=(d?((e,t,r,n)=>e.map(((e,i)=>{var a=e.name,o=e.dotDotDotToken,s=79===a.kind?a.text:"param"+i,c=t?o?"{...any} ":"{any} ":"";return"".concat(r," * @param ").concat(c).concat(s).concat(n)})).join(""))(d||[],f,_,t):"")+(p?((e,t)=>"".concat(e," * @returns").concat(t))(_,t):"");if(m){var g="/**"+t+_+" * ";return{newText:g+t+m+_+" */"+(s===n?t+_:""),caretOffset:g.length}}return{newText:"/** */",caretOffset:3}}}}}}})(e.JsDoc||(e.JsDoc={}))})(Fl),(e=>{!(t=>{function r(e,t){switch(e.kind){case 266:case 269:case 264:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}function n(t,r){var n=e.getNameOfDeclaration(t);return!!n&&(a(n,r)||161===n.kind&&i(n.expression,r))}function i(t,r){return a(t,r)||e.isPropertyAccessExpression(t)&&(r.push(t.name.text),!0)&&i(t.expression,r)}function a(t,r){return e.isPropertyNameLiteral(t)&&(r.push(e.getTextOfIdentifierOrLiteral(t)),!0)}function o(t){var r=[],a=e.getNameOfDeclaration(t);if(a&&161===a.kind&&!i(a.expression,r))return e.emptyArray;r.shift();for(var o=e.getContainerNode(t);o;){if(!n(o,r))return e.emptyArray;o=e.getContainerNode(o)}return r.reverse()}function s(t,r){return e.compareValues(t.matchKind,r.matchKind)||e.compareStringsCaseSensitiveUI(t.name,r.name)}function c(t){var r=t.declaration,n=e.getContainerNode(r),i=n&&e.getNameOfDeclaration(n);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(r),containerName:i?i.text:"",containerKind:i?e.getNodeKind(n):""}}t.getNavigateToItems=(t,n,i,a,l,u)=>{var d=e.createPatternMatcher(a);if(!d)return e.emptyArray;for(var p=[],_=e=>{if(i.throwIfCancellationRequested(),u&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach(((t,i)=>{!((e,t,n,i,a,s)=>{var c=e.getMatchForLastSegmentOfPattern(t);if(c)for(var l=0,u=n;l<u.length;l++){var d=u[l];if(r(d,i))if(e.patternContainsDots){var p=e.getFullMatch(o(d),t);p&&s.push({name:t,fileName:a,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:d})}else s.push({name:t,fileName:a,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:d})}})(d,i,t,n,e.fileName,p)}))},f=0,m=t;f<m.length;f++)_(m[f]);return p.sort(s),(void 0===l?p:p.slice(0,l)).map(c)}})(e.NavigateTo||(e.NavigateTo={}))})(Fl),(e=>{!(t=>{var r,n,i,a,o,s=/\s+/g,c=[],l=[],u=[];function d(){i=void 0,n=void 0,c=[],a=void 0,u=[]}function p(e){return G(e.getText(i))}function _(e){return e.node.kind}function f(e,t){e.children?e.children.push(t):e.children=[t]}function m(t){e.Debug.assert(!c.length);var r={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};a=r;for(var n=0,i=t.statements;n<i.length;n++)C(i[n]);return E(),e.Debug.assert(!a&&!c.length),r}function g(e,t){f(a,h(e,t))}function h(t,r){return{node:t,name:r||(e.isDeclaration(t)||e.isExpression(t)?e.getNameOfDeclaration(t):void 0),additionalNodes:void 0,parent:a,children:void 0,indent:a.indent+1}}function y(t){o||(o=new e.Map),o.set(t,!0)}function v(e){for(var t=0;t<e;t++)E()}function b(t,r){for(var n=[];!e.isPropertyNameLiteral(r);){var i=e.getNameOrArgument(r),a=e.getElementOrPropertyAccessName(r);r=r.expression,"prototype"===a||e.isPrivateIdentifier(i)||n.push(i)}n.push(r);for(var o=n.length-1;o>0;o--)x(t,i=n[o]);return[n.length-1,n[0]]}function x(e,t){var r=h(e,t);f(a,r),c.push(a),l.push(o),o=void 0,a=r}function E(){a.children&&(k(a.children,a),I(a.children)),a=c.pop(),o=l.pop()}function S(e,t,r){x(e,r),C(t),E()}function D(t){t.initializer&&(e=>{switch(e.kind){case 213:case 212:case 225:return!0;default:return!1}})(t.initializer)?(x(t),e.forEachChild(t.initializer,C),E()):S(t,t.initializer)}function T(t){return!e.hasDynamicName(t)||220!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function C(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 170:var i=t;S(i,i.body);for(var a=0,s=i.parameters;a<s.length;a++){var c=s[a];e.isParameterPropertyDeclaration(c,i)&&g(c)}break;case 168:case 171:case 172:case 167:T(t)&&S(t,t.body);break;case 166:T(t)&&D(t);break;case 165:T(t)&&g(t);break;case 266:var l=t;l.name&&g(l.name);var u=l.namedBindings;if(u)if(267===u.kind)g(u);else for(var d=0,p=u.elements;d<p.length;d++)g(p[d]);break;case 295:S(t,t.name);break;case 296:var _=t.expression;e.isIdentifier(_)?g(t,_):g(t);break;case 202:case 294:case 253:var f=t;e.isBindingPattern(f.name)?C(f.name):D(f);break;case 255:var m=t.name;m&&e.isIdentifier(m)&&y(m.text),S(t,t.body);break;case 213:case 212:S(t,t.body);break;case 259:x(t);for(var h=0,k=t.members;h<k.length;h++)K(w=k[h])||g(w);E();break;case 256:case 225:case 257:x(t);for(var A=0,N=t.members;A<N.length;A++){var w;C(w=N[A])}E();break;case 260:S(t,z(t).body);break;case 270:var F=t.expression;(f=e.isObjectLiteralExpression(F)||e.isCallExpression(F)?F:e.isArrowFunction(F)||e.isFunctionExpression(F)?F.body:void 0)?(x(t),C(f),E()):g(t);break;case 274:case 264:case 175:case 173:case 174:case 258:g(t);break;case 207:case 220:var P=e.getAssignmentDeclarationKind(t);switch(P){case 1:case 2:return void S(t,t.right);case 6:case 3:var I=(U=t).left,O=3===P?I.expression:I,M=0,R=void 0;return e.isIdentifier(O.expression)?(y(O.expression.text),R=O.expression):(M=(r=b(U,O.expression))[0],R=r[1]),6===P?e.isObjectLiteralExpression(U.right)&&U.right.properties.length>0&&(x(U,R),e.forEachChild(U.right,C),E()):e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?S(t,U.right,R):(x(U,R),S(t,U.right,I.name),E()),void v(M);case 7:case 9:var L=t,B=(R=7===P?L.arguments[0]:L.arguments[0].expression,L.arguments[1]),j=b(t,R);return M=j[0],x(t,j[1]),x(t,e.setTextRange(e.factory.createIdentifier(B.text),B)),C(t.arguments[2]),E(),E(),void v(M);case 5:var U,V=(I=(U=t).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&o&&o.has(V.text))return void(e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?S(t,U.right,V):e.isBindableStaticAccessExpression(I)&&(x(U,V),S(U.left,U.right,e.getNameOrArgument(I)),E()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(P)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(t=>{e.forEach(t.tags,(t=>{e.isJSDocTypeAlias(t)&&g(t)}))})),e.forEachChild(t,C)}}function k(t,r){var n=new e.Map;e.filterMutate(t,((t,i)=>{var a=t.name||e.getNameOfDeclaration(t.node),o=a&&p(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,l=s;c<l.length;c++){var u;if(N(u=l[c],t,i,r))return!1}return s.push(t),!0}return!N(u=s,t,i,r)&&(n.set(o,[u,t]),!0)}))}t.getNavigationBarItems=(t,r)=>{n=r,i=t;try{return e.map((a=m(t),o=[],function e(t){if((e=>{if(e.children)return!0;switch(_(e)){case 256:case 225:case 259:case 257:case 260:case 303:case 258:case 343:case 336:return!0;case 213:case 255:case 212:return(e=>{if(!e.node.body)return!1;switch(_(e.parent)){case 261:case 303:case 168:case 170:return!0;default:return!1}})(e);default:return!1}})(t)&&(o.push(t),t.children))for(var r=0,n=t.children;r<n.length;r++)e(n[r])}(a),o),B)}finally{d()}var a,o},t.getNavigationTree=(e,t)=>{n=t,i=e;try{return L(m(e))}finally{d()}};var A=((r={})[5]=!0,r[3]=!0,r[7]=!0,r[9]=!0,r[0]=!1,r[1]=!1,r[2]=!1,r[8]=!1,r[6]=!0,r[4]=!1,r);function N(t,r,n,i){return!!((t,r,n,i)=>{function a(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isVariableDeclaration(t)}var o=e.isBinaryExpression(r.node)||e.isCallExpression(r.node)?e.getAssignmentDeclarationKind(r.node):0,s=e.isBinaryExpression(t.node)||e.isCallExpression(t.node)?e.getAssignmentDeclarationKind(t.node):0;if(A[o]&&A[s]||a(t.node)&&A[o]||a(r.node)&&A[s]||e.isClassDeclaration(t.node)&&w(t.node)&&A[o]||e.isClassDeclaration(r.node)&&A[s]||e.isClassDeclaration(t.node)&&w(t.node)&&a(r.node)||e.isClassDeclaration(r.node)&&a(t.node)&&w(t.node)){var c=t.additionalNodes&&e.lastOrUndefined(t.additionalNodes)||t.node;if(!e.isClassDeclaration(t.node)&&!e.isClassDeclaration(r.node)||a(t.node)||a(r.node)){var l=a(t.node)?t.node:a(r.node)?r.node:void 0;if(void 0!==l){var u=h(e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),l));u.indent=t.indent+1,u.children=t.node===l?t.children:r.children,t.children=t.node===l?e.concatenate([u],r.children||[r]):e.concatenate(t.children||[Ol({},t)],[u])}else(t.children||r.children)&&(t.children=e.concatenate(t.children||[Ol({},t)],r.children||[r]),t.children&&(k(t.children,t),I(t.children)));c=t.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=e.concatenate(t.children,r.children),t.children&&k(t.children,t);var d=r.node;return i.children[n-1].node.end===c.end?e.setTextRange(c,{pos:c.pos,end:d.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),r.node))),!0}return 0!==o})(t,r,n,i)||!!((t,r,n)=>{if(t.kind!==r.kind||t.parent!==r.parent&&(!F(t,n)||!F(r,n)))return!1;switch(t.kind){case 166:case 168:case 171:case 172:return e.isStatic(t)===e.isStatic(r);case 260:return P(t,r)&&V(t)===V(r);default:return!0}})(t.node,r.node,i)&&(((t,r)=>{var n;t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&(n=t.additionalNodes).push.apply(n,r.additionalNodes),t.children=e.concatenate(t.children,r.children),t.children&&(k(t.children,t),I(t.children))})(t,r),!0)}function w(e){return!!(8&e.flags)}function F(t,r){var n=e.isModuleBlock(t.parent)?t.parent.parent:t.parent;return n===r.node||e.contains(r.additionalNodes,n)}function P(e,t){return e.body.kind===t.body.kind&&(260!==e.body.kind||P(e.body,t.body))}function I(e){e.sort(O)}function O(t,r){return e.compareStringsCaseSensitiveUI(M(t.node),M(r.node))||e.compareValues(_(t),_(r))}function M(t){if(260===t.kind)return U(t);var r=e.getNameOfDeclaration(t);if(r&&e.isPropertyName(r)){var n=e.getPropertyNameForPropertyNameNode(r);return n&&e.unescapeLeadingUnderscores(n)}switch(t.kind){case 212:case 213:case 225:return J(t);default:return}}function R(t,r){if(260===t.kind)return G(U(t));if(r){var n=e.isIdentifier(r)?r.text:e.isElementAccessExpression(r)?"[".concat(p(r.argumentExpression),"]"):p(r);if(n.length>0)return G(n)}switch(t.kind){case 303:var i=t;return e.isExternalModule(i)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName)))),'"'):"<global>";case 270:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 213:case 255:case 212:case 256:case 225:return 512&e.getSyntacticModifierFlags(t)?"default":J(t);case 170:return"constructor";case 174:return"new()";case 173:return"()";case 175:return"[]";default:return"<unknown>"}}function L(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:H(t.node),spans:j(t),nameSpan:t.name&&W(t.name),childItems:e.map(t.children,L)}}function B(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:H(t.node),spans:j(t),childItems:e.map(t.children,(t=>({text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:j(t),childItems:u,indent:0,bolded:!1,grayed:!1})))||u,indent:t.indent,bolded:!1,grayed:!1}}function j(e){var t=[W(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(W(i))}return t}function U(t){return e.isAmbientModule(t)?e.getTextOfNode(t.name):V(t)}function V(t){for(var r=[e.getTextOfIdentifierOrLiteral(t.name)];t.body&&260===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function z(t){return t.body&&e.isModuleDeclaration(t.body)?z(t.body):t}function K(e){return!e.name||161===e.name.kind}function W(t){return 303===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,i)}function H(t){return t.parent&&253===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function J(t){var r=t.parent;if(t.name&&e.getFullWidth(t.name)>0)return G(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return G(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&63===r.operatorToken.kind)return p(r.left).replace(s,"");if(e.isPropertyAssignment(r))return p(r.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"<class>";if(e.isCallExpression(r)){var n=$(r.expression);if(void 0!==n){if((n=G(n)).length>150)return"".concat(n," callback");var a=G(e.mapDefined(r.arguments,(t=>e.isStringLiteralLike(t)?t.getText(i):void 0)).join(", "));return"".concat(n,"(").concat(a,") callback")}}return"<function>"}function $(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=$(t.expression),n=t.name.text;return void 0===r?n:"".concat(r,".").concat(n)}}function G(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(e.NavigationBar||(e.NavigationBar={}))})(Fl),(e=>{!(t=>{function r(t,r){var n=e.isStringLiteral(r)&&r.text;return e.isString(n)&&e.some(t.moduleAugmentations,(t=>e.isStringLiteral(t)&&t.text===n))}function n(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function i(t){var r;if(0===t.length)return t;var n=(t=>{for(var r,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s.importClause){var c=s.importClause.isTypeOnly?n:i,l=s.importClause,u=l.name,d=l.namedBindings;u&&c.defaultImports.push(s),d&&(e.isNamespaceImport(d)?c.namespaceImports.push(s):c.namedImports.push(s))}else r=r||s}return{importWithoutClause:r,typeOnlyImports:n,regularImports:i}})(t),i=n.importWithoutClause,a=n.typeOnlyImports,c=n.regularImports,l=[];i&&l.push(i);for(var d=0,p=[c,a];d<p.length;d++){var _=p[d],f=_===a,m=_.defaultImports,g=_.namespaceImports,h=_.namedImports;if(f||1!==m.length||1!==g.length||0!==h.length){for(var y=0,v=e.stableSort(g,((e,t)=>u(e.importClause.namedBindings.name,t.importClause.namedBindings.name)));y<v.length;y++){var b=v[y];l.push(o(b,void 0,b.importClause.namedBindings))}if(0!==m.length||0!==h.length){var x=void 0,E=[];if(1===m.length)x=m[0].importClause.name;else for(var S=0,D=m;S<D.length;S++)A=D[S],E.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),A.importClause.name));E.push.apply(E,e.flatMap(h,(e=>e.importClause.namedBindings.elements)));var T=s(E),C=m.length>0?m[0]:h[0],k=0===T.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===h.length?e.factory.createNamedImports(T):e.factory.updateNamedImports(h[0].importClause.namedBindings,T);f&&x&&k?(l.push(o(C,x,void 0)),l.push(o(null!==(r=h[0])&&void 0!==r?r:C,void 0,k))):l.push(o(C,x,k))}}else{var A=m[0];l.push(o(A,A.importClause.name,g[0].importClause.namedBindings))}}return l}function a(t){if(0===t.length)return t;var r=(e=>{for(var t,r=[],n=[],i=0,a=e;i<a.length;i++){var o=a[i];void 0===o.exportClause?t=t||o:o.isTypeOnly?n.push(o):r.push(o)}return{exportWithoutClause:t,namedExports:r,typeOnlyExports:n}})(t),n=r.exportWithoutClause,i=r.namedExports,a=r.typeOnlyExports,o=[];n&&o.push(n);for(var c=0,l=[i,a];c<l.length;c++){var u=l[c];if(0!==u.length){var d=[];d.push.apply(d,e.flatMap(u,(t=>t.exportClause&&e.isNamedExports(t.exportClause)?t.exportClause.elements:e.emptyArray)));var p=s(d),_=u[0];o.push(e.factory.updateExportDeclaration(_,_.decorators,_.modifiers,_.isTypeOnly,_.exportClause&&(e.isNamedExports(_.exportClause)?e.factory.updateNamedExports(_.exportClause,p):e.factory.updateNamespaceExport(_.exportClause,_.exportClause.name)),_.moduleSpecifier,_.assertClause))}}return o}function o(t,r,n){return e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),t.moduleSpecifier,t.assertClause)}function s(t){return e.stableSort(t,c)}function c(t,r){return e.compareBooleans(t.isTypeOnly,r.isTypeOnly)||u(t.propertyName||t.name,r.propertyName||r.name)||u(t.name,r.name)}function l(t,r){var i=void 0===t?void 0:n(t),a=void 0===r?void 0:n(r);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseInsensitive(i,a)}function u(t,r){return e.compareStringsCaseInsensitive(t.text,r.text)}function d(t){var r;switch(t.kind){case 264:return null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression;case 265:return t.moduleSpecifier;case 236:return t.declarationList.declarations[0].initializer.arguments[0]}}function p(t,r){return l(d(t),d(r))||((t,r)=>e.compareValues(_(t),_(r)))(t,r)}function _(e){var t;switch(e.kind){case 265:return e.importClause?e.importClause.isTypeOnly?1:267===(null===(t=e.importClause.namedBindings)||void 0===t?void 0:t.kind)?2:e.importClause.name?3:4:0;case 264:return 5;case 236:return 6}}t.organizeImports=(t,s,c,u,d,_)=>{var f=e.textChanges.ChangeTracker.fromContext({host:c,formatContext:s,preferences:d}),m=n=>e.stableSort(i(((t,n,i,a)=>{if(a)return t;for(var s=i.getTypeChecker(),c=s.getJsxNamespace(n),l=s.getJsxFragmentFactory(n),u=!!(2&n.transformFlags),d=[],p=0,_=t;p<_.length;p++){var f=_[p],m=f.importClause,g=f.moduleSpecifier;if(m){var h=m.name,y=m.namedBindings;if(h&&!b(h)&&(h=void 0),y)if(e.isNamespaceImport(y))b(y.name)||(y=void 0);else{var v=y.elements.filter((e=>b(e.name)));v.length<y.elements.length&&(y=v.length?e.factory.updateNamedImports(y,v):void 0)}h||y?d.push(o(f,h,y)):r(n,g)&&(n.isDeclarationFile?d.push(e.factory.createImportDeclaration(f.decorators,f.modifiers,void 0,g,void 0)):d.push(f))}else d.push(f)}return d;function b(t){return u&&(t.text===c||l&&t.text===l)||e.FindAllReferences.Core.isSymbolReferencedInFile(t,s,n)}})(n,t,u,_)),((e,t)=>p(e,t)));v(t.statements.filter(e.isImportDeclaration),m),v(t.statements.filter(e.isExportDeclaration),a);for(var g=0,h=t.statements.filter(e.isAmbientModule);g<h.length;g++){var y=h[g];y.body&&(v(y.body.statements.filter(e.isImportDeclaration),m),v(y.body.statements.filter(e.isExportDeclaration),a))}return f.getChanges();function v(r,i){if(0!==e.length(r)){e.suppressLeadingTrivia(r[0]);var a=e.group(r,(e=>n(e.moduleSpecifier))),o=e.stableSort(a,((e,t)=>l(e[0].moduleSpecifier,t[0].moduleSpecifier))),u=e.flatMap(o,(e=>n(e[0].moduleSpecifier)?i(e):e));if(0===u.length)f.deleteNodes(t,r,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var d={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(c,s.options)};f.replaceNodeWithNodes(t,r[0],u,d);var p=f.nodeHasTrailingComment(t,r[0],d);f.deleteNodes(t,r.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},p)}}}},t.coalesceImports=i,t.coalesceExports=a,t.compareImportOrExportSpecifiers=c,t.compareModuleSpecifiers=l,t.importsAreSorted=t=>e.arrayIsSorted(t,p),t.importSpecifiersAreSorted=t=>e.arrayIsSorted(t,c),t.getImportDeclarationInsertionIndex=(t,r)=>{var n=e.binarySearch(t,r,e.identity,p);return n<0?~n:n},t.getImportSpecifierInsertionIndex=(t,r)=>{var n=e.binarySearch(t,r,e.identity,c);return n<0?~n:n},t.compareImportsOrRequireStatements=p})(e.OrganizeImports||(e.OrganizeImports={}))})(Fl),(e=>{!(t=>{t.collectElements=(t,r)=>{var l=[];return((t,r,n)=>{for(var l=40,u=0,d=Il(Il([],t.statements,!0),[t.endOfFileToken],!1),p=d.length;u<p;){for(;u<p&&!e.isAnyImportSyntax(d[u]);)m(d[u]),u++;if(u===p)break;for(var _=u;u<p&&e.isAnyImportSyntax(d[u]);)a(d[u],t,r,n),u++;var f=u-1;f!==_&&n.push(o(e.findChildOfKind(d[_],100,t).getStart(t),d[f].getEnd(),"imports"))}function m(u){var d;if(0!==l){r.throwIfCancellationRequested(),(e.isDeclaration(u)||e.isVariableStatement(u)||e.isReturnStatement(u)||1===u.kind)&&a(u,t,r,n),e.isFunctionLike(u)&&e.isBinaryExpression(u.parent)&&e.isPropertyAccessExpression(u.parent.left)&&a(u.parent.left,t,r,n),(e.isBlock(u)||e.isModuleBlock(u))&&i(u.statements.end,t,r,n),(e.isClassLike(u)||e.isInterfaceDeclaration(u))&&i(u.members.end,t,r,n);var p=((t,r)=>{switch(t.kind){case 234:if(e.isFunctionLike(t.parent))return((t,r,n)=>{var i=((t,r,n)=>{if(e.isNodeArrayMultiLine(t.parameters,n)){var i=e.findChildOfKind(t,20,n);if(i)return i}return e.findChildOfKind(r,18,n)})(t,r,n),a=e.findChildOfKind(r,19,n);return i&&a&&s(i,a,t,n,213!==t.kind)})(t.parent,t,r);switch(t.parent.kind){case 239:case 242:case 243:case 241:case 238:case 240:case 247:case 291:return u(t.parent);case 251:var n=t.parent;if(n.tryBlock===t)return u(t.parent);if(n.finallyBlock===t){var i=e.findChildOfKind(n,96,r);if(i)return u(i)}default:return c(e.createTextSpanFromNode(t,r),"code")}case 261:return u(t.parent);case 256:case 225:case 257:case 259:case 262:case 181:case 200:return u(t);case 183:return u(t,!1,!e.isTupleTypeNode(t.parent),22);case 288:case 289:return(a=t.statements).length?c(e.createTextSpanFromRange(a),"code"):void 0;case 204:return l(t);case 203:return l(t,22);case 277:return(t=>{var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd()),i=t.openingElement.tagName.getText(r);return c(n,"code",n,!1,"<"+i+">...</"+i+">")})(t);case 281:return(t=>{var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return c(n,"code",n,!1,"<>...</>")})(t);case 278:case 279:return(e=>{if(0!==e.properties.length)return o(e.getStart(r),e.getEnd(),"code")})(t.attributes);case 222:case 14:return(e=>{if(14!==e.kind||0!==e.text.length)return o(e.getStart(r),e.getEnd(),"code")})(t);case 201:return u(t,!1,!e.isBindingElement(t.parent),22);case 213:return(t=>{if(!e.isBlock(t.body)&&!e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),r))return c(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))})(t);case 207:return(t=>{if(t.arguments.length){var n=e.findChildOfKind(t,20,r),i=e.findChildOfKind(t,21,r);if(n&&i&&!e.positionsAreOnSameLine(n.pos,i.pos,r))return s(n,i,t,r,!1,!0)}})(t)}var a;function l(t,r){return void 0===r&&(r=18),u(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function u(n,i,a,o,c){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===c&&(c=18===o?19:23);var l=e.findChildOfKind(t,o,r),u=e.findChildOfKind(t,c,r);return l&&u&&s(l,u,n,r,i,a)}})(u,t);p&&n.push(p),l--,e.isCallExpression(u)?(l++,m(u.expression),l--,u.arguments.forEach(m),null===(d=u.typeArguments)||void 0===d||d.forEach(m)):e.isIfStatement(u)&&u.elseStatement&&e.isIfStatement(u.elseStatement)?(m(u.expression),m(u.thenStatement),l++,m(u.elseStatement),l--):u.forEachChild(m),l++}}})(t,r,l),((t,r)=>{for(var i=[],a=0,o=t.getLineStarts();a<o.length;a++){var s=o[a],l=t.getLineEndOfPosition(s),u=n(t.text.substring(s,l));if(u&&!e.isInComment(t,s))if(u[1]){var d=i.pop();d&&(d.textSpan.length=l-d.textSpan.start,d.hintSpan.length=l-d.textSpan.start,r.push(d))}else{var p=e.createTextSpanFromBounds(t.text.indexOf("//",s),l);i.push(c(p,"region",p,!1,u[2]||"#region"))}}})(t,l),l.sort(((e,t)=>e.textSpan.start-t.textSpan.start))};var r=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function n(t){return t=e.trimStringStart(t),e.startsWith(t,"//")?(t=e.trimString(t.slice(2)),r.exec(t)):null}function i(t,r,i,a){var s=e.getLeadingCommentRanges(r.text,t);if(s){for(var c=-1,l=-1,u=0,d=r.getFullText(),p=0,_=s;p<_.length;p++){var f=_[p],m=f.kind,g=f.pos,h=f.end;switch(i.throwIfCancellationRequested(),m){case 2:if(n(d.slice(g,h))){y(),u=0;break}0===u&&(c=g),l=h,u++;break;case 3:y(),a.push(o(g,h,"comment")),u=0;break;default:e.Debug.assertNever(m)}}y()}function y(){u>1&&a.push(o(c,l,"comment"))}}function a(t,r,n,a){e.isJsxText(t)||i(t.pos,r,n,a)}function o(t,r,n){return c(e.createTextSpanFromBounds(t,r),n)}function s(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),c(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function c(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}})(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(Fl),(e=>{var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=h(e)),r}function i(i,a,o){var s=((e,t)=>{for(var r=e.length-t.length,n=r=>{if(D(t,((t,n)=>p(e.charCodeAt(n+r))===t)))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1})(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var d=0,_=n(i,o);d<_.length;d++){var f=_[d];if(c(i,f,a.text,!0))return r(t.substring,c(i,f,a.text,!1))}if(a.text.length<i.length&&u(i.charCodeAt(s)))return r(t.substring,!1)}else{if(i.indexOf(a.text)>0)return r(t.substring,!0);if(a.characterSpans.length>0){var m=n(i,o),g=!!l(i,m,a,!1)||!l(i,m,a,!0)&&void 0;if(void 0!==g)return r(t.camelCase,g)}}}function a(e,t,r){if(D(t.totalTextChunk.text,(e=>32!==e&&42!==e))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s<c.length;s++)a=o(a,i(e,c[s],r));return a}function o(t,r){return e.min(t,r,s)}function s(t,r){return void 0===t?1:void 0===r?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function c(e,t,r,n,i){return void 0===i&&(i={start:0,length:r.length}),i.length<=t.length&&S(0,i.length,(a=>((e,t,r)=>r?p(e)===p(t):e===t)(r.charCodeAt(i.start+a),e.charCodeAt(t.start+a),n)))}function l(t,r,n,i){for(var a=n.characterSpans,o=0,s=0;;){if(s===a.length)return!0;if(o===r.length)return!1;for(var l=r[o],d=!1;s<a.length;s++){var p=a[s];if(d&&(!u(n.text.charCodeAt(a[s-1].start))||!u(n.text.charCodeAt(a[s].start))))break;if(!c(t,l,n.text,i,p))break;d=!0,l=e.createTextSpan(l.start+p.length,l.length-p.length)}o++}}function u(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function d(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function p(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function _(e){return e>=48&&e<=57}function f(e){for(var t=[],r=0,n=0,i=0;i<e.length;i++)u(a=e.charCodeAt(i))||d(a)||_(a)||95===a||36===a?(0===n&&(r=i),n++):n>0&&(t.push(m(e.substr(r,n))),n=0);var a;return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:g(e)}}function g(e){return y(e,!1)}function h(e){return y(e,!0)}function y(t,r){for(var n=[],i=0,a=1;a<t.length;a++){var o=_(t.charCodeAt(a-1)),s=_(t.charCodeAt(a)),c=E(t,r,a),l=r&&x(t,a,i);(v(t.charCodeAt(a-1))||v(t.charCodeAt(a))||o!==s||c||l)&&(b(t,i,a)||n.push(e.createTextSpan(i,a-i)),i=a)}return b(t,i,t.length)||n.push(e.createTextSpan(i,t.length-i)),n}function v(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function b(e,t,r){return D(e,(e=>v(e)&&95!==e),t,r)}function x(e,t,r){return t!==r&&t+1<e.length&&u(e.charCodeAt(t))&&d(e.charCodeAt(t+1))&&D(e,u,r,t)}function E(e,t,r){var n=u(e.charCodeAt(r-1));return u(e.charCodeAt(r))&&(!t||!n)}function S(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function D(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),S(r,n,(r=>t(e.charCodeAt(r),r)))}!(e=>{e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"})(t=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=t=>{var r=new e.Map,n=t.trim().split(".").map((e=>{return{totalTextChunk:m(t=e.trim()),subWordTextChunks:f(t)};var t}));if(!n.some((e=>!e.subWordTextChunks.length)))return{getFullMatch:(t,i)=>((t,r,n,i)=>{var s;if(a(r,e.last(n),i)&&!(n.length-1>t.length)){for(var c=n.length-2,l=t.length-1;c>=0;c-=1,l-=1)s=o(s,a(t[l],n[c],i));return s}})(t,i,n,r),getMatchForLastSegmentOfPattern:t=>a(t,e.last(n),r),patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=g,e.breakIntoWordSpans=h})(Fl),(e=>{e.preProcessFile=(t,r,n)=>{void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function d(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function _(){c.push(p()),f()}function f(){0===l&&(u=!0)}function m(){if(24===a)return!1;var t=e.scanner.getToken();if(100===t){if(20===(t=d())){if(10===(t=d())||14===t)return _(),!0}else{if(10===t)return _(),!0;if(151===t&&e.scanner.lookAhead((()=>{var t=e.scanner.scan();return 155!==t&&(41===t||18===t||79===t||e.isKeyword(t))}))&&(t=d()),79===t||e.isKeyword(t))if(155===(t=d())){if(10===(t=d()))return _(),!0}else if(63===t){if(h(!0))return!0}else{if(27!==t)return!0;t=d()}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&155===(t=d())&&10===(t=d())&&_()}else 41===t&&127===(t=d())&&(79===(t=d())||e.isKeyword(t))&&155===(t=d())&&10===(t=d())&&_()}return!0}return!1}function g(){var t=e.scanner.getToken();if(93===t){if(f(),151===(t=d())&&e.scanner.lookAhead((()=>{var t=e.scanner.scan();return 41===t||18===t}))&&(t=d()),18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&155===(t=d())&&10===(t=d())&&_()}else if(41===t)155===(t=d())&&10===(t=d())&&_();else if(100===t&&(151===(t=d())&&e.scanner.lookAhead((()=>{var t=e.scanner.scan();return 79===t||e.isKeyword(t)}))&&(t=d()),(79===t||e.isKeyword(t))&&63===(t=d())&&h(!0)))return!0;return!0}return!1}function h(t,r){void 0===r&&(r=!1);var n=t?d():e.scanner.getToken();return 145===n&&(20===(n=d())&&(10===(n=d())||r&&14===n)&&_(),!0)}function y(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=d()))return!0;if(10===(t=d())||14===t){if(27!==(t=d()))return!0;t=d()}if(22!==t)return!0;for(t=d();23!==t&&1!==t;)10!==t&&14!==t||_(),t=d();return!0}return!1}if(r&&(()=>{for(e.scanner.setText(t),d();1!==e.scanner.getToken();)135===e.scanner.getToken()&&(141===d()&&10===d()&&(i||(i=[]),i.push({ref:p(),depth:l})),1)||m()||g()||n&&(h(!1,!0)||y())||d();e.scanner.setText(void 0)})(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),u){if(i)for(var v=0,b=i;v<b.length;v++){var x=b[v];c.push(x.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var E=void 0;if(i)for(var S=0,D=i;S<D.length;S++)0===(x=D[S]).depth?(E||(E=[]),E.push(x.ref.fileName)):c.push(x.ref);return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:E}}})(Fl),(e=>{!(t=>{function r(e,t,r,n,a,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:n,triggerSpan:i(a,o)}}function n(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t)}}function i(t,r){var n=t.getStart(r),i=t.getWidth(r);return e.isStringLiteralLike(t)&&(n+=1,i-=2),e.createTextSpan(n,i)}function a(t){switch(t.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}t.getRenameInfo=(t,i,o,s)=>{var c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(i,o));if(a(c)){var l=((t,i,a,o,s)=>{var c=i.getSymbolAtLocation(t);if(c){var l=c.declarations;if(l&&0!==l.length){if(l.some((t=>((t,r)=>{var n=r.getSourceFile();return t.isSourceFileDefaultLibrary(n)&&e.fileExtensionIs(n.fileName,".d.ts")})(o,t))))return n(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(t)&&88===t.originalKeywordKind&&c.parent&&1536&c.parent.flags)){if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t))return s&&s.allowRenameOfImportPath?((t,r,i)=>{if(!e.isExternalModuleNameRelative(t.text))return n(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var a=i.declarations&&e.find(i.declarations,e.isSourceFile);if(a){var o=e.endsWith(t.text,"/index")||e.endsWith(t.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(a.fileName),"/index"),s=void 0===o?a.fileName:o,c=void 0===o?"module":"directory",l=t.text.lastIndexOf("/")+1;return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:e.createTextSpan(t.getStart(r)+1+l,t.text.length-l)}}})(t,a,c):void 0;var u=e.SymbolDisplay.getSymbolKind(i,c,t),d=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteralLike(t)&&161===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0;return r(d||i.symbolToString(c),d||i.getFullyQualifiedName(c),u,e.SymbolDisplay.getSymbolModifiers(i,c),t,a)}}}else if(e.isStringLiteralLike(t)){var p=e.getContextualTypeFromParentOrAncestorTypeNode(t,i);if(p&&(128&p.flags||1048576&p.flags&&e.every(p.types,(e=>!!(128&e.flags)))))return r(t.text,t.text,"string","",t,a)}else if(e.isLabelName(t)){var _=e.getTextOfNode(t);return r(_,_,"label","",t,a)}})(c,t.getTypeChecker(),i,t,s);if(l)return l}return n(e.Diagnostics.You_cannot_rename_this_element)},t.nodeIsEligibleForRename=a})(e.Rename||(e.Rename={}))})(Fl),(e=>{!(t=>{function r(t,r,n){return e.Debug.assert(n.pos<=r),r<n.end||n.getEnd()===r&&e.getTouchingPropertyName(t,r).pos<n.end}t.getSmartSelectionRange=(t,n)=>{var a,o,s,u={textSpan:e.createTextSpanFromBounds(n.getFullStart(),n.getEnd())},d=n;e:for(;;){var p=i(d);if(!p.length)break;for(var _=0;_<p.length;_++){var f=p[_-1],m=p[_],g=p[_+1];if(e.getTokenPosOfNode(m,n,!0)>t)break e;var h=e.singleOrUndefined(e.getTrailingCommentRanges(n.text,m.end));if(h&&2===h.kind&&E(h.pos,h.end),r(n,t,m)){if(e.isBlock(m)||e.isTemplateSpan(m)||e.isTemplateHead(m)||e.isTemplateTail(m)||f&&e.isTemplateHead(f)||e.isVariableDeclarationList(m)&&e.isVariableStatement(d)||e.isSyntaxList(m)&&e.isVariableDeclarationList(d)||e.isVariableDeclaration(m)&&e.isSyntaxList(d)&&1===p.length||e.isJSDocTypeExpression(m)||e.isJSDocSignature(m)||e.isJSDocTypeLiteral(m)){d=m;break}e.isTemplateSpan(d)&&g&&e.isTemplateMiddleOrTemplateTail(g)&&x(m.getFullStart()-"${".length,g.getStart()+"}".length);var y=e.isSyntaxList(m)&&(18===(s=(o=f)&&o.kind)||22===s||20===s||279===s)&&c(g)&&!e.positionsAreOnSameLine(f.getStart(),g.getStart(),n),v=y?f.getEnd():m.getStart(),b=y?g.getStart():l(n,m);e.hasJSDocNodes(m)&&(null===(a=m.jsDoc)||void 0===a?void 0:a.length)&&x(e.first(m.jsDoc).getStart(),b),x(v,b),(e.isStringLiteral(m)||e.isTemplateLiteral(m))&&x(v+1,b-1),d=m;break}if(_===p.length-1)break e}}return u;function x(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!u||!e.textSpansEqual(i,u.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(u=Ol({textSpan:i},u&&{parent:u}))}}function E(e,t){x(e,t);for(var r=e;47===n.text.charCodeAt(r);)r++;x(r,t)}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){if(e.isSourceFile(t))return a(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var r=t.getChildren(),i=r[0],c=r.slice(1),l=e.Debug.checkDefined(c.pop());e.Debug.assertEqual(i.kind,18),e.Debug.assertEqual(l.kind,19);var u=a(c,(e=>e===t.readonlyToken||144===e.kind||e===t.questionToken||57===e.kind));return[i,s(o(a(u,(e=>{var t=e.kind;return 22===t||162===t||23===t})),(e=>58===e.kind))),l]}if(e.isPropertySignature(t))return o(c=a(t.getChildren(),(r=>r===t.name||e.contains(t.modifiers,r))),(e=>58===e.kind));if(e.isParameter(t)){var d=a(t.getChildren(),(e=>e===t.dotDotDotToken||e===t.name));return o(a(d,(e=>e===d[0]||e===t.questionToken)),(e=>63===e.kind))}return e.isBindingElement(t)?o(t.getChildren(),(e=>63===e.kind)):t.getChildren()}function a(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=a[i];t(o)?(r=r||[]).push(o):(r&&(n.push(s(r)),r=void 0),n.push(o))}return r&&n.push(s(r)),n}function o(t,r,n){if(void 0===n&&(n=!0),t.length<2)return t;var i=e.findIndex(t,r);if(-1===i)return t;var a=t.slice(0,i),o=t[i],c=e.last(t),l=n&&26===c.kind,u=t.slice(i+1,l?t.length-1:void 0),d=e.compact([a.length?s(a):void 0,o,u.length?s(u):void 0]);return l?d.concat(c):d}function s(t){return e.Debug.assertGreaterThanOrEqual(t.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(t),t[0].pos,e.last(t).end)}function c(e){var t=e&&e.kind;return 19===t||23===t||21===t||280===t}function l(e,t){switch(t.kind){case 338:case 336:case 345:case 343:case 340:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}})(e.SmartSelectionRange||(e.SmartSelectionRange={}))})(Fl),(e=>{!(t=>{var r,n;function i(t,r,n){for(var i=t.getFullStart(),a=t.parent;a;){var o=e.findPrecedingToken(i,r,a,!0);if(o)return e.rangeContainsRange(n,o);a=a.parent}return e.Debug.fail("Could not find preceding token")}function a(t,r){var n=((t,r)=>{if(29===t.kind||20===t.kind)return{list:p(t.parent,t,r),argumentIndex:0};var n=e.findContainingList(t);return n&&{list:n,argumentIndex:l(n,t)}})(t,r);if(n){var i=n.list,a=n.argumentIndex,o=(t=>{var r=t.getChildren(),n=e.countWhere(r,(e=>27!==e.kind));return r.length>0&&27===e.last(r).kind&&n++,n})(i);return 0!==a&&e.Debug.assertLessThan(a,o),{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:((t,r)=>{var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)})(i,r)}}}function o(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var o=i,s=a(t,n);if(!s)return;var c=s.list,l=s.argumentIndex,d=s.argumentCount,p=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:o},argumentsSpan:p,argumentIndex:l,argumentCount:d}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?u(i,0,n):void 0;if(e.isTemplateHead(t)&&209===i.parent.kind){var _=i,f=_.parent;return e.Debug.assert(222===_.kind),u(f,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var m=i;if(f=i.parent.parent,e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return u(f,l=((t,r,n,i)=>(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r)?e.isInsideTemplateLiteral(r,n,i)?0:t+2:t+1))(m.parent.templateSpans.indexOf(m),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var g=i.attributes.pos,h=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(g,h-g),argumentIndex:0,argumentCount:1}}var y=e.getPossibleTypeArgumentsInfo(t,n);if(y){var v=y.called,b=y.nTypeArguments;return{isTypeParameterList:!0,invocation:o={kind:1,called:v},argumentsSpan:p=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function s(t){return e.isBinaryExpression(t.parent)?s(t.parent):t}function c(t){return e.isBinaryExpression(t.left)?c(t.left)+1:2}function l(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;27!==a.kind&&r++}return r}function u(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:d(t,n),argumentIndex:r,argumentCount:i}}function d(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();return 222===n.kind&&0===e.last(n.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1)),e.createTextSpan(i,a-i)}function p(t,r,n){var i=t.getChildren(n),a=i.indexOf(r);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function _(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function f(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!(e=>{e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"})(r||(r={})),t.getSignatureHelpItems=(t,r,n,l,u)=>{var d=t.getTypeChecker(),p=e.findTokenOnLeftOfPosition(r,n);if(p){var m=!!l&&"characterTyped"===l.kind;if(!m||!e.isInString(r,n,p)&&!e.isInComment(r,n)){var y=!!l&&"invoked"===l.kind,v=((t,r,n,i,l)=>{for(var u=t=>{e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(()=>"Child: ".concat(e.Debug.formatSyntaxKind(t.kind),", parent: ").concat(e.Debug.formatSyntaxKind(t.parent.kind))));var l=((t,r,n,i)=>((t,r,n,i)=>{var o=((t,r,n)=>{if(20===t.kind||27===t.kind){var i=t.parent;switch(i.kind){case 211:case 168:case 212:case 213:var o=a(t,r);if(!o)return;var l=o.argumentIndex,u=o.argumentCount,d=o.argumentsSpan,p=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return p&&{contextualType:p,argumentIndex:l,argumentCount:u,argumentsSpan:d};case 220:var _=s(i),f=n.getContextualType(_),m=20===t.kind?0:c(i)-1,g=c(_);return f&&{contextualType:f,argumentIndex:m,argumentCount:g,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}})(t,n,i);if(o){var l,u=o.contextualType,d=o.argumentIndex,p=o.argumentCount,_=o.argumentsSpan,f=u.getNonNullableType(),m=f.getCallSignatures();return 1!==m.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(m),node:t,symbol:(l=f.symbol,"__type"===l.name&&e.firstDefined(l.declarations,(t=>e.isFunctionTypeNode(t)?t.parent.symbol:void 0))||l)},argumentsSpan:_,argumentIndex:d,argumentCount:p}}})(t,0,n,i)||o(t,r,n))(t,r,n,i);if(l)return{value:l}},d=t;!e.isSourceFile(d)&&(l||!e.isBlock(d));d=d.parent){var p=u(d);if("object"==typeof p)return p.value}})(p,n,r,d,y);if(v){u.throwIfCancellationRequested();var b=((t,r,n,a,o)=>{var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!((t,r,n)=>{if(!e.isCallOrNewExpression(r))return!1;var a=r.getChildren(n);switch(t.kind){case 20:return e.contains(a,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(a,o);case 29:return i(t,n,r.expression);default:return!1}})(a,s.node,n))return;var l=[],u=r.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(o&&!i(a,n,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,r)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=r.getSymbolAtLocation(d);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}})(v,d,r,p,m);return u.throwIfCancellationRequested(),b?d.runWithCancellationToken(u,(e=>0===b.kind?g(b.candidates,b.resolvedSignature,v,r,e):((e,t,r,n)=>{var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[h(e,c,n,f(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0})(b.symbol,v,r,e))):e.isSourceFileJS(r)?((t,r,n)=>{if(2!==t.invocation.kind){var i=_(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(r=>e.firstDefined(r.getNamedDeclarations().get(a),(e=>{var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(e=>g(a,a[0],t,r,e,!0)))}))))}})(v,t,u):void 0}}}},(e=>{e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"})(n||(n={})),t.getArgumentInfoForCompletions=(e,t,r)=>{var n=o(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var m=70246400;function g(t,r,n,i,a,o){var s,c=n.isTypeParameterList,l=n.argumentCount,u=n.argumentsSpan,d=n.invocation,p=n.argumentIndex,m=f(d),g=2===d.kind?d.symbol:a.getSymbolAtLocation(_(d))||o&&(null===(s=r.declaration)||void 0===s?void 0:s.symbol),h=g?e.symbolToDisplayParts(a,g,o?i:void 0,void 0):e.emptyArray,x=e.map(t,(t=>((t,r,n,i,a,o)=>{var s=(n?v:b)(t,i,a,o);return e.map(s,(n=>{var o=n.isVariadic,s=n.parameters,c=n.prefix,l=n.suffix,u=Il(Il([],r,!0),c,!0),d=Il(Il([],l,!0),((t,r,n)=>e.mapToDisplayParts((e=>{e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)})))(t,a,i),!0),p=t.getDocumentationComment(i),_=t.getJsDocTags();return{isVariadic:o,prefixDisplayParts:u,suffixDisplayParts:d,separatorDisplayParts:y,parameters:s,documentation:p,tags:_}}))})(t,h,c,a,m,i)));0!==p&&e.Debug.assertLessThan(p,l);for(var E=0,S=0,D=0;D<x.length;D++){var T=x[D];if(t[D]===r&&(E=S,T.length>1))for(var C=0,k=0,A=T;k<A.length;k++){var N=A[k];if(N.isVariadic||N.parameters.length>=l){E=S+C;break}C++}S+=T.length}e.Debug.assert(-1!==E);var w={items:e.flatMapToMutable(x,e.identity),applicableSpan:u,selectedItemIndex:E,argumentIndex:p,argumentCount:l},F=w.items[E];if(F.isVariadic){var P=e.findIndex(F.parameters,(e=>!!e.isRest));-1<P&&P<F.parameters.length-1?w.argumentIndex=F.parameters.length:w.argumentIndex=Math.min(w.argumentIndex,F.parameters.length-1)}return w}function h(t,r,n,i,a){var o=e.symbolToDisplayParts(n,t),s=e.createPrinter({removeComments:!0}),c=r.map((e=>x(e,n,i,a,s))),l=t.getDocumentationComment(n),u=t.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:Il(Il([],o,!0),[e.punctuationPart(29)],!1),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:y,parameters:c,documentation:l,tags:u}}var y=[e.punctuationPart(27),e.spacePart()];function v(t,r,n,i){var a=(t.target||t).typeParameters,o=e.createPrinter({removeComments:!0}),s=(a||e.emptyArray).map((e=>x(e,r,n,i,o))),c=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,m)]:[];return r.getExpandedParameters(t).map((t=>{var a=e.factory.createNodeArray(Il(Il([],c,!0),e.map(t,(e=>r.symbolToParameterDeclaration(e,n,m))),!0)),l=e.mapToDisplayParts((e=>{o.writeList(2576,a,i,e)}));return{isVariadic:!1,parameters:s,prefix:[e.punctuationPart(29)],suffix:Il([e.punctuationPart(31)],l,!0)}}))}function b(t,r,n,i){var a=e.createPrinter({removeComments:!0}),o=e.mapToDisplayParts((o=>{if(t.typeParameters&&t.typeParameters.length){var s=e.factory.createNodeArray(t.typeParameters.map((e=>r.typeParameterToDeclaration(e,n,m))));a.writeList(53776,s,i,o)}})),s=r.getExpandedParameters(t),c=r.hasEffectiveRestParameter(t)?1===s.length?e=>!0:e=>!!(e.length&&32768&e[e.length-1].checkFlags):e=>!1;return s.map((t=>({isVariadic:c(t),parameters:t.map((t=>((t,r,n,i,a)=>{var o=e.mapToDisplayParts((e=>{var o=r.symbolToParameterDeclaration(t,n,m);a.writeNode(4,o,i,e)})),s=r.isOptionalParameter(t.valueDeclaration),c=!!(32768&t.checkFlags);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s,isRest:c}})(t,r,n,i,a))),prefix:Il(Il([],o,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]})))}function x(t,r,n,i,a){var o=e.mapToDisplayParts((e=>{var o=r.typeParameterToDeclaration(t,n,m);a.writeNode(4,o,i,e)}));return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1,isRest:!1}}})(e.SignatureHelp||(e.SignatureHelp={}))})(Fl),(e=>{!(t=>{function r(e){return"literals"===e.includeInlayParameterNameHints}t.provideInlayHints=t=>{var n=t.file,i=t.program,a=t.span,o=t.cancellationToken,s=t.preferences,c=n.text,l=i.getCompilerOptions(),u=i.getTypeChecker(),d=[];return function t(i){if(i&&0!==i.getFullWidth()){switch(i.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 168:case 213:o.throwIfCancellationRequested()}if(e.textSpanIntersectsWith(a,i.pos,i.getFullWidth())&&!e.isTypeNode(i))return s.includeInlayVariableTypeHints&&e.isVariableDeclaration(i)||s.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(i)?(t=>{if(t.initializer&&!e.isBindingPattern(t.name)&&!e.getEffectiveTypeAnnotationNode(t)){var r=u.getTypeAtLocation(t);if(!f(r)){var n=b(r);n&&_(n,t.name.end)}}})(i):s.includeInlayEnumMemberValueHints&&e.isEnumMember(i)?(e=>{if(!e.initializer){var t,r,n=u.getConstantValue(e);void 0!==n&&(t=n.toString(),r=e.end,d.push({text:"= ".concat(v(t,30)),position:r,kind:"Enum",whitespaceBefore:!0}))}})(i):(e=>"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints)(s)&&(e.isCallExpression(i)||e.isNewExpression(i))?(t=>{var n=t.arguments;if(n&&n.length){var i=[],a=u.getResolvedSignatureForSignatureHelp(t,i);if(a&&i.length)for(var o=0;o<n.length;++o){var c=n[o],l=e.skipParentheses(c);if(!r(s)||h(l)){var d=u.getParameterIdentifierNameAtPosition(a,o);if(d){var _=d[0],f=d[1];if(!s.includeInlayParameterNameHintsWhenArgumentMatchesName&&m(l,_)&&!f)continue;var y=e.unescapeLeadingUnderscores(_);if(g(l,y))continue;p(y,c.getStart(),f)}}}}})(i):(s.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(i)&&e.hasContextSensitiveParameters(i)&&(t=>{var r=u.getSignatureFromDeclaration(t);if(r)for(var n=0;n<t.parameters.length&&n<r.parameters.length;++n){var i=t.parameters[n];if(!e.getEffectiveTypeAnnotationNode(i)){var a=y(r.parameters[n]);a&&_(a,i.name.end)}}})(i),s.includeInlayFunctionLikeReturnTypeHints&&(t=>e.isArrowFunction(t)||e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isMethodDeclaration(t)||e.isGetAccessorDeclaration(t))(i)&&(t=>{if((!e.isArrowFunction(t)||e.findChildOfKind(t,20,n))&&!e.getEffectiveReturnTypeNode(t)&&t.body){var r=u.getSignatureFromDeclaration(t);if(r){var i=u.getReturnTypeOfSignature(r);if(!f(i)){var a=b(i);a&&_(a,(t=>{var r=e.findChildOfKind(t,21,n);return r?r.end:t.parameters.end})(t))}}}})(i)),e.forEachChild(i,t)}}(n),d;function p(e,t,r){d.push({text:"".concat(r?"...":"").concat(v(e,30),":"),position:t,kind:"Parameter",whitespaceAfter:!0})}function _(e,t){d.push({text:": ".concat(v(e,30)),position:t,kind:"Type",whitespaceBefore:!0})}function f(e){return e.symbol&&1536&e.symbol.flags}function m(t,r){return e.isIdentifier(t)?t.text===r:!!e.isPropertyAccessExpression(t)&&t.name.text===r}function g(t,r){if(!e.isIdentifierText(r,l.target,e.getLanguageVariant(n.scriptKind)))return!1;var i=e.getLeadingCommentRanges(c,t.pos);if(!(null==i?void 0:i.length))return!1;var a=(e=>new RegExp("^\\s?/\\*\\*?\\s?".concat(e,"\\s?\\*\\/\\s?$")))(r);return e.some(i,(e=>a.test(c.substring(e.pos,e.end))))}function h(t){switch(t.kind){case 218:var r=t.operand;return e.isLiteralExpression(r)||e.isIdentifier(r)&&e.isInfinityOrNaNString(r.escapedText);case 110:case 95:case 104:case 14:case 222:return!0;case 79:var n=t.escapedText;return(e=>"undefined"===e)(n)||e.isInfinityOrNaNString(n)}return e.isLiteralExpression(t)}function y(t){var r=t.valueDeclaration;if(r&&e.isParameter(r)){var n=u.getTypeOfSymbolAtLocation(t,r);if(!f(n))return b(n)}}function v(e,t){return e.length>t?e.substr(0,t-"...".length)+"...":e}function b(t){var r=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((i=>{var a=u.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}}})(e.InlayHints||(e.InlayHints={}))})(Fl),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(e.isDeclarationFileName(r.fileName)&&c(r.fileName)){var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0}},tryGetGeneratedPosition(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=t.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var l=o.getCompilerOptions(),u=e.outFile(l),d=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0!==d){var p=s(d,i.fileName).getGeneratedPosition(i);return p===i?void 0:p}}}}},toLineColumnOffset:(e,t)=>l(e).getLineAndCharacterOfPosition(t),clearCache(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),u=a.get(c);if(u)return u;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var d=l(n);s=d&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:e=>t.log(e)},n,e.getLineInfo(d.text,e.getLineStarts(d)),(e=>!t.fileExists||t.fileExists(e)?t.readFile(e):void 0))}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function l(r){return t.getSourceFileLike?t.getSourceFileLike(r):c(r)||function(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:void 0,getLineAndCharacterOfPosition(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}(r)}},e.getDocumentPositionMapper=(n,i,a,o)=>{var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var l=c[1];return r(n,e.base64decode(e.sys,l),i)}s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),p=0,_=u;p<_.length;p++){var f=_[p],m=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(i)),g=o(m,d);if(e.isString(g))return r(n,g,m);if(void 0!==g)return g||void 0}}}(Fl),(e=>{var t=new e.Map;function r(t){return e.isPropertyAccessExpression(t)?r(t.expression):t}function n(t){switch(t.kind){case 265:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&267===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 264:return t.name;default:return}}function i(e,t){var r=t.getSignatureFromDeclaration(e),n=r?t.getReturnTypeOfSignature(r):void 0;return!!n&&!!t.getPromisedTypeOfPromise(n)}function a(t,r){return e.isReturnStatement(t)&&!!t.expression&&o(t.expression,r)}function o(t,r){if(!s(t)||!c(t)||!t.arguments.every((e=>l(e,r))))return!1;for(var n=t.expression.expression;s(n)||e.isPropertyAccessExpression(n);)if(e.isCallExpression(n)){if(!c(n)||!n.arguments.every((e=>l(e,r))))return!1;n=n.expression.expression}else n=n.expression;return!0}function s(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")||e.hasPropertyAccessExpressionWithName(t,"catch")||e.hasPropertyAccessExpressionWithName(t,"finally"))}function c(t){var r=t.expression.name.text,n="then"===r?2:"catch"===r||"finally"===r?1:0;return!(t.arguments.length>n)&&(t.arguments.length<n||1===n||e.some(t.arguments,(t=>104===t.kind||e.isIdentifier(t)&&"undefined"===t.text)))}function l(r,n){switch(r.kind){case 255:case 212:if(1&e.getFunctionFlags(r))return!1;case 213:t.set(u(r),!0);case 104:return!0;case 79:case 205:var i=n.getSymbolAtLocation(r);return!!i&&(n.isUndefinedSymbol(i)||e.some(e.skipAlias(i,n).declarations,(t=>e.isFunctionLike(t)||e.hasInitializer(t)&&!!t.initializer&&e.isFunctionLike(t.initializer))));default:return!1}}function u(e){return"".concat(e.pos.toString(),":").concat(e.end.toString())}function d(e){switch(e.kind){case 255:case 168:case 212:case 213:return!0;default:return!1}}e.computeSuggestionDiagnostics=(o,s,c)=>{s.getSemanticDiagnostics(o,c);var l,p=[],_=s.getTypeChecker();o.impliedNodeFormat!==e.ModuleKind.CommonJS&&!e.fileExtensionIsOneOf(o.fileName,[".cts",".cjs"])&&o.commonJsModuleIndicator&&(e.programContainsEsModules(s)||e.compilerOptionsIndicateEsModules(s.getCompilerOptions()))&&(t=>t.statements.some((t=>{switch(t.kind){case 236:return t.declarationList.declarations.some((t=>!!t.initializer&&e.isRequireCall(r(t.initializer),!0)));case 237:var n=t.expression;if(!e.isBinaryExpression(n))return e.isRequireCall(n,!0);var i=e.getAssignmentDeclarationKind(n);return 1===i||2===i;default:return!1}})))(o)&&p.push(e.createDiagnosticForNode((l=o.commonJsModuleIndicator,e.isBinaryExpression(l)?l.left:l),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var f=e.isSourceFileJS(o);if(t.clear(),function r(n){if(f)((t,r)=>{var n,i,a,o;if(212===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(n=t.symbol.members)||void 0===n?void 0:n.size))return!0;var s=r.getSymbolOfExpando(t,!1);return!(!s||!(null===(i=s.exports)||void 0===i?void 0:i.size)&&!(null===(a=s.members)||void 0===a?void 0:a.size))}return 255===t.kind&&!!(null===(o=t.symbol.members)||void 0===o?void 0:o.size)})(n,_)&&p.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(n)&&n.parent===o&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var s=n.declarationList.declarations[0].initializer;s&&e.isRequireCall(s,!0)&&p.push(e.createDiagnosticForNode(s,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(n)&&p.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}d(n)&&((r,n,o)=>{((t,r)=>!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&((t,r)=>!!e.forEachReturnStatement(t,(e=>a(e,r))))(t.body,r)&&i(t,r))(r,n)&&!t.has(u(r))&&o.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))})(n,_,p),n.forEachChild(r)}(o),e.getAllowSyntheticDefaultImports(s.getCompilerOptions()))for(var m=0,g=o.imports;m<g.length;m++){var h=g[m],y=n(e.importFromModuleSpecifier(h));if(y){var v=e.getResolvedModule(o,h.text,e.getModeForUsageLocation(o,h)),b=v&&s.getSourceFile(v.resolvedFileName);b&&b.externalModuleIndicator&&e.isExportAssignment(b.externalModuleIndicator)&&b.externalModuleIndicator.isExportEquals&&p.push(e.createDiagnosticForNode(y,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(p,o.bindSuggestionDiagnostics),e.addRange(p,s.getSuggestionDiagnostics(o,c)),p.sort(((e,t)=>e.start-t.start))},e.returnsPromise=i,e.isReturnStatementWithFixablePromiseHandler=a,e.isFixablePromiseHandler=o,e.canBeConvertedToAsync=d})(Fl),(e=>{!(t=>{var r=70246400;function n(t,r,n){var a=i(t,r,n);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(r);return 32&o?e.getDeclarationOfKind(r,225)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function i(t,r,n){var i=t.getRootSymbols(r);if(1===i.length&&8192&e.first(i).flags&&0!==t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(108===n.kind&&e.isExpression(n))return"parameter";var a=e.getCombinedLocalAndExportSymbolFlags(r);if(3&a)return e.isFirstDeclarationOfSymbolParameter(r)?"parameter":r.valueDeclaration&&e.isVarConst(r.valueDeclaration)?"const":e.forEach(r.declarations,e.isLet)?"let":o(r)?"local var":"var";if(16&a)return o(r)?"local function":"function";if(32768&a)return"getter";if(65536&a)return"setter";if(8192&a)return"method";if(16384&a)return"constructor";if(4&a){if(33554432&a&&6&r.checkFlags)return e.forEach(t.getRootSymbols(r),(e=>{if(98311&e.getFlags())return"property"}))||(t.getTypeOfSymbolAtLocation(r,n).getCallSignatures().length?"method":"property");switch(n.parent&&n.parent.kind){case 279:case 277:case 278:return 79===n.kind?"property":"JSX attribute";case 284:return"JSX attribute";default:return"property"}}return""}function a(t){if(t.declarations&&t.declarations.length){var r=t.declarations,n=r[0],i=r.slice(1),a=e.length(i)&&e.isDeprecatedDeclaration(n)&&e.some(i,(t=>!e.isDeprecatedDeclaration(t)))?8192:0,o=e.getNodeModifiers(n,a);if(o)return o.split(",")}return[]}function o(t){return!t.parent&&e.forEach(t.declarations,(t=>{if(212===t.kind)return!0;if(253!==t.kind&&255!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(303===r.kind||261===r.kind)return!1;return!0}))}t.getSymbolKind=n,t.getSymbolModifiers=(t,r)=>{if(!r)return"";var n=new e.Set(a(r));if(2097152&r.flags){var i=t.getAliasedSymbol(r);i!==r&&e.forEach(a(i),(e=>{n.add(e)}))}return 16777216&r.flags&&n.add("optional"),n.size>0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,l,u,d){var p;void 0===u&&(u=e.getMeaningFromLocation(l));var _,f,m,g,h=[],y=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(o),x=1&u?i(a,o,l):"",E=!1,S=108===l.kind&&e.isInExpressionContext(l),D=!1;if(108===l.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==x||32&b||2097152&b){"getter"!==x&&"setter"!==x||(x="property");var T=void 0;if(_=S?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&205===l.parent.kind){var C=l.parent.name;(C===l||C&&0===C.getFullWidth())&&(l=l.parent)}var k=void 0;if(e.isCallOrNewExpression(l)?k=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(k=l.parent),k){T=a.getResolvedSignature(k);var A=208===k.kind||e.isCallExpression(k)&&106===k.expression.kind,N=A?_.getConstructSignatures():_.getCallSignatures();if(!T||e.contains(N,T.target)||e.contains(N,T)||(T=N.length?N[0]:void 0),T){switch(A&&32&b?(x="constructor",Y(_.symbol,x)):2097152&b?(Q(x="alias"),h.push(e.spacePart()),A&&(4&T.flags&&(h.push(e.keywordPart(126)),h.push(e.spacePart())),h.push(e.keywordPart(103)),h.push(e.spacePart())),X(o)):Y(o,x),x){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(e.punctuationPart(58)),h.push(e.spacePart()),16&e.getObjectFlags(_)||!_.symbol||(e.addRange(h,e.symbolToDisplayParts(a,_.symbol,c,void 0,5)),h.push(e.lineBreakPart())),A&&(4&T.flags&&(h.push(e.keywordPart(126)),h.push(e.spacePart())),h.push(e.keywordPart(103)),h.push(e.spacePart())),Z(T,N,262144);break;default:Z(T,N)}E=!0,D=N.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||134===l.kind&&170===l.parent.kind){var w=l.parent;o.declarations&&e.find(o.declarations,(e=>e===(134===l.kind?w.parent:w)))&&(N=170===w.kind?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures(),T=a.isImplementationOfOverload(w)?N[0]:a.getSignatureFromDeclaration(w),170===w.kind?(x="constructor",Y(_.symbol,x)):Y(173!==w.kind||2048&_.symbol.flags||4096&_.symbol.flags?o:_.symbol,x),T&&Z(T,N),E=!0,D=N.length>1)}}if(32&b&&!E&&!S&&(G(),e.getDeclarationOfKind(o,225)?Q("local class"):h.push(e.keywordPart(84)),h.push(e.spacePart()),X(o),ee(o,s)),64&b&&2&u&&($(),h.push(e.keywordPart(118)),h.push(e.spacePart()),X(o),ee(o,s)),524288&b&&2&u&&($(),h.push(e.keywordPart(151)),h.push(e.spacePart()),X(o),ee(o,s),h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),e.addRange(h,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(o),c,8388608))),384&b&&($(),e.some(o.declarations,(t=>e.isEnumDeclaration(t)&&e.isEnumConst(t)))&&(h.push(e.keywordPart(85)),h.push(e.spacePart())),h.push(e.keywordPart(92)),h.push(e.spacePart()),X(o)),1536&b&&!S){$();var F=(W=e.getDeclarationOfKind(o,260))&&W.name&&79===W.name.kind;h.push(e.keywordPart(F?142:141)),h.push(e.spacePart()),X(o)}if(262144&b&&2&u)if($(),h.push(e.punctuationPart(20)),h.push(e.textPart("type parameter")),h.push(e.punctuationPart(21)),h.push(e.spacePart()),X(o),o.parent)q(),X(o.parent,c),ee(o.parent,c);else{var P=e.getDeclarationOfKind(o,162);if(void 0===P)return e.Debug.fail();(W=P.parent)&&(e.isFunctionLikeKind(W.kind)?(q(),T=a.getSignatureFromDeclaration(W),174===W.kind?(h.push(e.keywordPart(103)),h.push(e.spacePart())):173!==W.kind&&W.name&&X(W.symbol),e.addRange(h,e.signatureToDisplayParts(a,T,s,32))):258===W.kind&&(q(),h.push(e.keywordPart(151)),h.push(e.spacePart()),X(W.symbol),ee(W.symbol,s)))}if(8&b&&(x="enum member",Y(o,"enum member"),297===(null==(W=null===(p=o.declarations)||void 0===p?void 0:p[0])?void 0:W.kind))){var I=a.getConstantValue(W);void 0!==I&&(h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),h.push(e.displayPart(e.getTextOfConstantValue(I),"number"==typeof I?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if($(),!E){var O=a.getAliasedSymbol(o);if(O!==o&&O.declarations&&O.declarations.length>0){var M=O.declarations[0],R=e.getNameOfDeclaration(M);if(R){var L=e.isModuleWithStringLiteralName(M)&&e.hasSyntacticModifier(M,2),B="default"!==o.name&&!L,j=t(a,O,e.getSourceFileOfNode(M),M,R,u,B?o:O);h.push.apply(h,j.displayParts),h.push(e.lineBreakPart()),m=j.documentation,g=j.tags}else m=O.getContextualDocumentationComment(M,a),g=O.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 263:h.push(e.keywordPart(93)),h.push(e.spacePart()),h.push(e.keywordPart(142));break;case 270:h.push(e.keywordPart(93)),h.push(e.spacePart()),h.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 274:h.push(e.keywordPart(93));break;default:h.push(e.keywordPart(100))}h.push(e.spacePart()),X(o),e.forEach(o.declarations,(t=>{if(264===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),h.push(e.keywordPart(145)),h.push(e.punctuationPart(20)),h.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),h.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),X(n,c))}return!0}}))}if(!E)if(""!==x){if(_)if(S?($(),h.push(e.keywordPart(108))):Y(o,x),"property"===x||"JSX attribute"===x||3&b||"local var"===x||S){if(h.push(e.punctuationPart(58)),h.push(e.spacePart()),_.symbol&&262144&_.symbol.flags){var U=e.mapToDisplayParts((t=>{var n=a.typeParameterToDeclaration(_,c,r);J().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(h,U)}else e.addRange(h,e.typeToDisplayParts(a,_,c));if(o.target&&o.target.tupleLabelDeclaration){var V=o.target.tupleLabelDeclaration;e.Debug.assertNode(V.name,e.isIdentifier),h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.textPart(e.idText(V.name))),h.push(e.punctuationPart(21))}}else(16&b||8192&b||16384&b||131072&b||98304&b||"method"===x)&&(N=_.getNonNullableType().getCallSignatures()).length&&(Z(N[0],N),D=N.length>1)}else x=n(a,o,l);if(0!==y.length||D||(y=o.getContextualDocumentationComment(c,a)),0===y.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(e=>303===e.kind)))for(var z=0,K=o.declarations;z<K.length;z++){var W;if((W=K[z]).parent&&220===W.parent.kind){var H=a.getSymbolAtLocation(W.parent.right);if(H&&(y=H.getDocumentationComment(a),v=H.getJsDocTags(a),y.length>0))break}}return 0!==v.length||D||(v=o.getJsDocTags(a)),0===y.length&&m&&(y=m),0===v.length&&g&&(v=g),{displayParts:h,documentation:y,symbolKind:x,tags:0===v.length?void 0:v};function J(){return f||(f=e.createPrinter({removeComments:!0})),f}function $(){h.length&&h.push(e.lineBreakPart()),G()}function G(){d&&(Q("alias"),h.push(e.spacePart()))}function q(){h.push(e.spacePart()),h.push(e.keywordPart(101)),h.push(e.spacePart())}function X(t,r){d&&t===o&&(t=d);var n=e.symbolToDisplayParts(a,t,r||s,void 0,7);e.addRange(h,n),16777216&o.flags&&h.push(e.punctuationPart(57))}function Y(t,r){$(),r&&(Q(r),t&&!e.some(t.declarations,(t=>e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name))&&(h.push(e.spacePart()),X(t)))}function Q(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void h.push(e.textOrKeywordPart(t));default:return h.push(e.punctuationPart(20)),h.push(e.textOrKeywordPart(t)),void h.push(e.punctuationPart(21))}}function Z(t,r,n){void 0===n&&(n=0),e.addRange(h,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.operatorPart(39)),h.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),h.push(e.spacePart()),h.push(e.textPart(2===r.length?"overload":"overloads")),h.push(e.punctuationPart(21))),y=t.getDocumentationComment(a),v=t.getJsDocTags(),r.length>1&&0===y.length&&0===v.length&&(y=r[0].getDocumentationComment(a),v=r[0].getJsDocTags())}function ee(t,n){var i=e.mapToDisplayParts((i=>{var o=a.symbolToTypeParameterDeclarations(t,n,r);J().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(h,i)}}})(e.SymbolDisplay||(e.SymbolDisplay={}))})(Fl),(e=>{function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c<l.length;c++){var u=l[c];a[u.name]=u.transpileOptionValue}a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0;var d=r.fileName||(r.compilerOptions&&r.compilerOptions.jsx?"module.tsx":"module.ts"),p=e.createSourceFile(d,t,e.getEmitScriptTarget(a));r.moduleName&&(p.moduleName=r.moduleName),r.renamedDependencies&&(p.renamedDependencies=new e.Map(e.getEntries(r.renamedDependencies)));var _,f,m=e.getNewLineCharacter(a),g={getSourceFile:t=>t===e.normalizePath(d)?p:void 0,writeFile(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(f,void 0,"Unexpected multiple source map outputs, file:",t),f=r):(e.Debug.assertEqual(_,void 0,"Unexpected multiple outputs, file:",t),_=r)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>m,fileExists:e=>e===d,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},h=e.createProgram([d],a,g);return r.reportDiagnostics&&(e.addRange(i,h.getSyntacticDiagnostics(p)),e.addRange(i,h.getOptionsDiagnostics())),h.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===_?e.Debug.fail("Output generation failed"):{outputText:_,diagnostics:i,sourceMapText:f}}var r;function n(t,n){r=r||e.filter(e.optionDeclarations,(t=>"object"==typeof t.type&&!e.forEachEntry(t.type,(e=>"number"!=typeof e)))),t=e.cloneCompilerOptions(t);for(var i=r=>{if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,(e=>e===i))||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a<o.length;a++)i(o[a]);return t}e.transpileModule=t,e.transpile=(r,n,i,a,o)=>{var s=t(r,{compilerOptions:n,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=n})(Fl),function(e){!function(t){var r;(r=t.FormattingRequestKind||(t.FormattingRequestKind={}))[r.FormatDocument=0]="FormatDocument",r[r.FormatSelection=1]="FormatSelection",r[r.FormatOnEnter=2]="FormatOnEnter",r[r.FormatOnSemicolon=3]="FormatOnSemicolon",r[r.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",r[r.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var n=function(){function t(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}return t.prototype.updateContext=function(t,r,n,i,a){this.currentTokenSpan=e.Debug.checkDefined(t),this.currentTokenParent=e.Debug.checkDefined(r),this.nextTokenSpan=e.Debug.checkDefined(n),this.nextTokenParent=e.Debug.checkDefined(i),this.contextNode=e.Debug.checkDefined(a),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},t.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},t.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},t.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},t.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},t.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},t.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},t.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,18,this.sourceFile),n=e.findChildOfKind(t,19,this.sourceFile);return!(!r||!n)&&this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line},t}();t.FormattingContext=n}(e.formatting||(e.formatting={}))}(Fl),(e=>{var t,r,n,i;t=e.formatting||(e.formatting={}),n=e.createScanner(99,!1,0),i=e.createScanner(99,!1,1),(e=>{e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText",e[e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(r||(r={})),t.getFormattingScanner=(r,a,o,s,c)=>{var l=1===a?i:n;l.setText(r),l.setTextPos(o);var u,d,p,_,f,m=!0,g=c({advance(){f=void 0,l.getStartPos()!==o?m=!!d&&4===e.last(d).kind:l.scan(),u=void 0,d=void 0;for(var t=l.getStartPos();t<s;){var r=l.getToken();if(!e.isTrivia(r))break;l.scan();var n={pos:t,end:l.getStartPos(),kind:r};t=l.getStartPos(),u=e.append(u,n)}p=l.getStartPos()},readTokenInfo(r){e.Debug.assert(h());var n,i=(e=>{switch(e.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1})(r)?1:13===r.kind?2:(e=>16===e.kind||17===e.kind)(r)?3:(t=>{if(t.parent)switch(t.parent.kind){case 284:case 279:case 280:case 278:return e.isKeyword(t.kind)||79===t.kind}return!1})(r)?4:(n=r,e.isJsxText(n)?5:(t=>t.parent&&e.isJsxAttribute(t.parent)&&t.parent.initializer===t)(r)?6:0);if(f&&i===_)return v(f,r);l.getStartPos()!==p&&(e.Debug.assert(void 0!==f),l.setTextPos(p),l.scan());var a=((t,r)=>{var n,i=l.getToken();switch(_=0,r){case 1:if(31===i){_=1;var a=l.reScanGreaterToken();return e.Debug.assert(t.kind===a),a}break;case 2:if(43===(n=i)||68===n)return _=2,a=l.reScanSlashToken(),e.Debug.assert(t.kind===a),a;break;case 3:if(19===i)return _=3,l.reScanTemplateToken(!1);break;case 4:return _=4,l.scanJsxIdentifier();case 5:return _=5,l.reScanJsxToken(!1);case 6:return _=6,l.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(r)}return i})(r,i),o=t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);for(d&&(d=void 0);l.getStartPos()<s&&(a=l.scan(),e.isTrivia(a));){var c=t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);if(d||(d=[]),d.push(c),4===a){l.scan();break}}return v(f={leadingTrivia:u,trailingTrivia:d,token:o},r)},readEOFTokenRange:()=>(e.Debug.assert(y()),t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),1)),isOnToken:h,isOnEOF:y,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>m,skipToEndOf(e){l.setTextPos(e.end),p=l.getStartPos(),_=void 0,f=void 0,m=!1,u=void 0,d=void 0},skipToStartOf(e){l.setTextPos(e.pos),p=l.getStartPos(),_=void 0,f=void 0,m=!1,u=void 0,d=void 0}});return f=void 0,l.setText(void 0),g;function h(){var t=f?f.token.kind:l.getToken();return(f?f.token.pos:l.getStartPos())<s&&1!==t&&!e.isTrivia(t)}function y(){return 1===(f?f.token.kind:l.getToken())}function v(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}}})(Fl),(e=>{var t,r,n;(t=e.formatting||(e.formatting={})).anyContext=e.emptyArray,(n=t.RuleAction||(t.RuleAction={}))[n.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",n[n.StopProcessingTokenActions=2]="StopProcessingTokenActions",n[n.InsertSpace=4]="InsertSpace",n[n.InsertNewLine=8]="InsertNewLine",n[n.DeleteSpace=16]="DeleteSpace",n[n.DeleteToken=32]="DeleteToken",n[n.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",n[n.StopAction=3]="StopAction",n[n.ModifySpaceAction=28]="ModifySpaceAction",n[n.ModifyTokenAction=96]="ModifyTokenAction",(r=t.RuleFlags||(t.RuleFlags={}))[r.None=0]="None",r[r.CanDeleteNewLines=1]="CanDeleteNewLines"})(Fl),(e=>{!(t=>{function r(e,t,r,n,a,o){return void 0===o&&(o=0),{leftTokenRange:i(t),rightTokenRange:i(r),rule:{debugName:e,context:n,action:a,flags:o}}}function n(e){return{tokens:e,isSpecific:!0}}function i(t){return"number"==typeof t?n([t]):e.isArray(t)?n(t):t}function a(t,r,i){void 0===i&&(i=[]);for(var a=[],o=t;o<=r;o++)e.contains(i,o)||a.push(o);return n(a)}function o(e,t){return r=>r.options&&r.options[e]===t}function s(e){return t=>t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}function c(e){return t=>t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}function l(e){return t=>!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}function u(e){return t=>!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}function d(e){return t=>!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}function p(e){return 241===e.contextNode.kind}function _(e){return!p(e)}function f(e){switch(e.contextNode.kind){case 220:return 27!==e.contextNode.operatorToken.kind;case 221:case 188:case 228:case 274:case 269:case 176:case 186:case 187:return!0;case 202:case 258:case 264:case 270:case 253:case 163:case 297:case 166:case 165:return 63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 242:case 162:return 101===e.currentTokenSpan.kind||101===e.nextTokenSpan.kind||63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 243:return 159===e.currentTokenSpan.kind||159===e.nextTokenSpan.kind}return!1}function m(e){return!f(e)}function g(e){return!h(e)}function h(t){var r=t.contextNode.kind;return 166===r||165===r||163===r||253===r||e.isFunctionLikeKind(r)}function y(e){return 221===e.contextNode.kind||188===e.contextNode.kind}function v(e){return e.TokensAreOnSameLine()||D(e)}function b(e){return 200===e.contextNode.kind||194===e.contextNode.kind||(e=>S(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine()))(e)}function x(e){return D(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function E(e){return S(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function S(e){return T(e.contextNode)}function D(e){return T(e.nextTokenParent)}function T(e){if(w(e))return!0;switch(e.kind){case 234:case 262:case 204:case 261:return!0}return!1}function C(e){switch(e.contextNode.kind){case 255:case 168:case 167:case 171:case 172:case 173:case 212:case 170:case 213:case 257:return!0}return!1}function k(e){return!C(e)}function A(e){return 255===e.contextNode.kind||212===e.contextNode.kind}function N(e){return w(e.contextNode)}function w(e){switch(e.kind){case 256:case 225:case 257:case 259:case 181:case 260:case 271:case 272:case 265:case 268:return!0}return!1}function F(e){switch(e.currentTokenParent.kind){case 256:case 260:case 259:case 291:case 261:case 248:return!0;case 234:var t=e.currentTokenParent.parent;if(!t||213!==t.kind&&212!==t.kind)return!0}return!1}function P(e){switch(e.contextNode.kind){case 238:case 248:case 241:case 242:case 243:case 240:case 251:case 239:case 247:case 291:return!0;default:return!1}}function I(e){return 204===e.contextNode.kind}function O(e){return(e=>207===e.contextNode.kind)(e)||(e=>208===e.contextNode.kind)(e)}function M(e){return 27!==e.currentTokenSpan.kind}function R(e){return 23!==e.nextTokenSpan.kind}function L(e){return 21!==e.nextTokenSpan.kind}function B(e){return 213===e.contextNode.kind}function j(e){return 199===e.contextNode.kind}function U(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function V(e){return 11!==e.contextNode.kind}function z(e){return 277!==e.contextNode.kind&&281!==e.contextNode.kind}function K(e){return 287===e.contextNode.kind||286===e.contextNode.kind}function W(e){return 284===e.nextTokenParent.kind}function H(e){return 284===e.contextNode.kind}function J(e){return 278===e.contextNode.kind}function $(e){return!C(e)&&!D(e)}function G(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&q(e.currentTokenParent)&&!q(e.nextTokenParent)}function q(t){for(;e.isExpressionNode(t);)t=t.parent;return 164===t.kind}function X(e){return 254===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Y(e){return 2!==e.formattingRequestKind}function Q(e){return 260===e.contextNode.kind}function Z(e){return 181===e.contextNode.kind}function ee(e){return 174===e.contextNode.kind}function te(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 177:case 210:case 258:case 256:case 225:case 257:case 255:case 212:case 213:case 168:case 167:case 173:case 174:case 207:case 208:case 227:return!0;default:return!1}}function re(e){return te(e.currentTokenSpan,e.currentTokenParent)||te(e.nextTokenSpan,e.nextTokenParent)}function ne(e){return 210===e.contextNode.kind}function ie(e){return 114===e.currentTokenSpan.kind&&216===e.currentTokenParent.kind}function ae(e){return 223===e.contextNode.kind&&void 0!==e.contextNode.expression}function oe(e){return 229===e.contextNode.kind}function se(e){return!(e=>{switch(e.contextNode.kind){case 238:case 241:case 242:case 243:case 239:case 240:return!0;default:return!1}})(e)}function ce(t){var r=t.nextTokenSpan.kind,n=t.nextTokenSpan.pos;if(e.isTrivia(r)){var i=t.nextTokenParent===t.currentTokenParent?e.findNextToken(t.currentTokenParent,e.findAncestor(t.currentTokenParent,(e=>!e.parent)),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!i)return!0;r=i.kind,n=i.getStart(t.sourceFile)}return t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line===t.sourceFile.getLineAndCharacterOfPosition(n).line?19===r||1===r:233!==r&&26!==r&&(257===t.contextNode.kind||258===t.contextNode.kind?!e.isPropertySignature(t.currentTokenParent)||!!t.currentTokenParent.type||20!==r:e.isPropertyDeclaration(t.currentTokenParent)?!t.currentTokenParent.initializer:241!==t.currentTokenParent.kind&&235!==t.currentTokenParent.kind&&233!==t.currentTokenParent.kind&&22!==r&&20!==r&&39!==r&&40!==r&&43!==r&&13!==r&&27!==r&&222!==r&&15!==r&&14!==r&&24!==r)}function le(t){return e.positionIsASICandidate(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}t.getAllRules=()=>{for(var i=[],S=0;S<=159;S++)1!==S&&i.push(S);function T(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:i.filter((t=>!e.some((e=>e===t)))),isSpecific:!1}}var w={tokens:i,isSpecific:!1},q=n(Il(Il([],i,!0),[3],!1)),te=n(Il(Il([],i,!0),[1],!1)),ue=a(81,159),de=a(29,78),pe=[101,102,159,127,139],_e=Il([79],e.typeKeywords,!0),fe=q,me=n([79,3,84,93,100]),ge=n([21,3,90,111,96,91]),he=[r("IgnoreBeforeComment",w,[2,3],t.anyContext,1),r("IgnoreAfterLineComment",2,w,t.anyContext,1),r("NotSpaceBeforeColon",w,58,[U,m,g],16),r("SpaceAfterColon",58,w,[U,m],4),r("NoSpaceBeforeQuestionMark",w,57,[U,m,g],16),r("SpaceAfterQuestionMarkInConditionalOperator",57,w,[U,y],4),r("NoSpaceAfterQuestionMark",57,w,[U],16),r("NoSpaceBeforeDot",w,[24,28],[U],16),r("NoSpaceAfterDot",[24,28],w,[U],16),r("NoSpaceBetweenImportParenInImportType",100,20,[U,j],16),r("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,79,20,22,18,108,103],[U,m],16),r("NoSpaceAfterUnaryPreincrementOperator",45,[79,20,108,103],[U],16),r("NoSpaceAfterUnaryPredecrementOperator",46,[79,20,108,103],[U],16),r("NoSpaceBeforeUnaryPostincrementOperator",[79,21,23,103],45,[U,se],16),r("NoSpaceBeforeUnaryPostdecrementOperator",[79,21,23,103],46,[U,se],16),r("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[U,f],4),r("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[U,f],4),r("SpaceAfterAddWhenFollowedByPreincrement",39,45,[U,f],4),r("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[U,f],4),r("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[U,f],4),r("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[U,f],4),r("NoSpaceAfterCloseBrace",19,[27,26],[U],16),r("NewLineBeforeCloseBraceInBlockContext",q,19,[E],8),r("SpaceAfterCloseBrace",19,T(21),[U,F],4),r("SpaceBetweenCloseBraceAndElse",19,91,[U],4),r("SpaceBetweenCloseBraceAndWhile",19,115,[U],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[U,I],16),r("SpaceAfterConditionalClosingParen",21,22,[P],4),r("NoSpaceBetweenFunctionKeywordAndStar",98,41,[A],16),r("SpaceAfterStarInGeneratorDeclaration",41,79,[A],4),r("SpaceAfterFunctionInFuncDecl",98,w,[C],4),r("NewLineAfterOpenBraceInBlockContext",18,w,[E],8),r("SpaceAfterGetSetInMember",[136,148],79,[C],4),r("NoSpaceBetweenYieldKeywordAndStar",125,41,[U,ae],16),r("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],w,[U,ae],4),r("NoSpaceBetweenReturnAndSemicolon",105,26,[U],16),r("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],w,[U],4),r("SpaceAfterLetConstInVariableDeclaration",[119,85],w,[U,X],4),r("NoSpaceBeforeOpenParenInFuncCall",w,20,[U,O,M],16),r("SpaceBeforeBinaryKeywordOperator",w,pe,[U,f],4),r("SpaceAfterBinaryKeywordOperator",pe,w,[U,f],4),r("SpaceAfterVoidOperator",114,w,[U,ie],4),r("SpaceBetweenAsyncAndOpenParen",131,20,[B,U],4),r("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[U],4),r("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[U],16),r("SpaceBeforeJsxAttribute",w,79,[W,U],4),r("SpaceBeforeSlashInJsxOpeningElement",w,43,[J,U],4),r("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[J,U],16),r("NoSpaceBeforeEqualInJsxAttribute",w,63,[H,U],16),r("NoSpaceAfterEqualInJsxAttribute",63,w,[H,U],16),r("NoSpaceAfterModuleImport",[141,145],20,[U],16),r("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,144,148,124,151,155,140,137],w,[U],4),r("SpaceBeforeCertainTypeScriptKeywords",w,[94,117,155],[U],4),r("SpaceAfterModuleName",10,18,[Q],4),r("SpaceBeforeArrow",w,38,[U],4),r("SpaceAfterArrow",38,w,[U],4),r("NoSpaceAfterEllipsis",25,79,[U],16),r("NoSpaceAfterOptionalParameters",57,[21,27],[U,m],16),r("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[U,Z],16),r("NoSpaceBeforeOpenAngularBracket",_e,29,[U,re],16),r("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[U,re],16),r("NoSpaceAfterOpenAngularBracket",29,w,[U,re],16),r("NoSpaceBeforeCloseAngularBracket",w,31,[U,re],16),r("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[U,re,k],16),r("SpaceBeforeAt",[21,79],59,[U],4),r("NoSpaceAfterAt",59,w,[U],16),r("SpaceAfterDecorator",w,[126,79,93,88,84,124,123,121,122,136,148,22,41],[G],4),r("NoSpaceBeforeNonNullAssertionOperator",w,53,[U,oe],16),r("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[U,ee],16),r("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[U],4)],ye=[r("SpaceAfterConstructor",134,20,[s("insertSpaceAfterConstructor"),U],4),r("NoSpaceAfterConstructor",134,20,[l("insertSpaceAfterConstructor"),U],16),r("SpaceAfterComma",27,w,[s("insertSpaceAfterCommaDelimiter"),U,z,R,L],4),r("NoSpaceAfterComma",27,w,[l("insertSpaceAfterCommaDelimiter"),U,z],16),r("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[s("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),C],4),r("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[l("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),C],16),r("SpaceAfterKeywordInControl",ue,20,[s("insertSpaceAfterKeywordsInControlFlowStatements"),P],4),r("NoSpaceAfterKeywordInControl",ue,20,[l("insertSpaceAfterKeywordsInControlFlowStatements"),P],16),r("SpaceAfterOpenParen",20,w,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),U],4),r("SpaceBeforeCloseParen",w,21,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),U],4),r("SpaceBetweenOpenParens",20,20,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),U],4),r("NoSpaceBetweenParens",20,21,[U],16),r("NoSpaceAfterOpenParen",20,w,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),U],16),r("NoSpaceBeforeCloseParen",w,21,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),U],16),r("SpaceAfterOpenBracket",22,w,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),U],4),r("SpaceBeforeCloseBracket",w,23,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),U],4),r("NoSpaceBetweenBrackets",22,23,[U],16),r("NoSpaceAfterOpenBracket",22,w,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),U],16),r("NoSpaceBeforeCloseBracket",w,23,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),U],16),r("SpaceAfterOpenBrace",18,w,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),b],4),r("SpaceBeforeCloseBrace",w,19,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),b],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[U,I],16),r("NoSpaceAfterOpenBrace",18,w,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),U],16),r("NoSpaceBeforeCloseBrace",w,19,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),U],16),r("SpaceBetweenEmptyBraceBrackets",18,19,[s("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[c("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),U],16),r("SpaceAfterTemplateHeadAndMiddle",[15,16],w,[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],4,1),r("SpaceBeforeTemplateMiddleAndTail",w,[16,17],[s("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),U],4),r("NoSpaceAfterTemplateHeadAndMiddle",[15,16],w,[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],16,1),r("NoSpaceBeforeTemplateMiddleAndTail",w,[16,17],[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),U],16),r("SpaceAfterOpenBraceInJsxExpression",18,w,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),U,K],4),r("SpaceBeforeCloseBraceInJsxExpression",w,19,[s("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),U,K],4),r("NoSpaceAfterOpenBraceInJsxExpression",18,w,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),U,K],16),r("NoSpaceBeforeCloseBraceInJsxExpression",w,19,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),U,K],16),r("SpaceAfterSemicolonInFor",26,w,[s("insertSpaceAfterSemicolonInForStatements"),U,p],4),r("NoSpaceAfterSemicolonInFor",26,w,[l("insertSpaceAfterSemicolonInForStatements"),U,p],16),r("SpaceBeforeBinaryOperator",w,de,[s("insertSpaceBeforeAndAfterBinaryOperators"),U,f],4),r("SpaceAfterBinaryOperator",de,w,[s("insertSpaceBeforeAndAfterBinaryOperators"),U,f],4),r("NoSpaceBeforeBinaryOperator",w,de,[l("insertSpaceBeforeAndAfterBinaryOperators"),U,f],16),r("NoSpaceAfterBinaryOperator",de,w,[l("insertSpaceBeforeAndAfterBinaryOperators"),U,f],16),r("SpaceBeforeOpenParenInFuncDecl",w,20,[s("insertSpaceBeforeFunctionParenthesis"),U,C],4),r("NoSpaceBeforeOpenParenInFuncDecl",w,20,[l("insertSpaceBeforeFunctionParenthesis"),U,C],16),r("NewLineBeforeOpenBraceInControl",ge,18,[s("placeOpenBraceOnNewLineForControlBlocks"),P,x],8,1),r("NewLineBeforeOpenBraceInFunction",fe,18,[s("placeOpenBraceOnNewLineForFunctions"),C,x],8,1),r("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",me,18,[s("placeOpenBraceOnNewLineForFunctions"),N,x],8,1),r("SpaceAfterTypeAssertion",31,w,[s("insertSpaceAfterTypeAssertion"),U,ne],4),r("NoSpaceAfterTypeAssertion",31,w,[l("insertSpaceAfterTypeAssertion"),U,ne],16),r("SpaceBeforeTypeAnnotation",w,[57,58],[s("insertSpaceBeforeTypeAnnotation"),U,h],4),r("NoSpaceBeforeTypeAnnotation",w,[57,58],[l("insertSpaceBeforeTypeAnnotation"),U,h],16),r("NoOptionalSemicolon",26,te,[o("semicolons",e.SemicolonPreference.Remove),ce],32),r("OptionalSemicolon",w,te,[o("semicolons",e.SemicolonPreference.Insert),le],64)],ve=[r("NoSpaceBeforeSemicolon",w,26,[U],16),r("SpaceBeforeOpenBraceInControl",ge,18,[u("placeOpenBraceOnNewLineForControlBlocks"),P,Y,v],4,1),r("SpaceBeforeOpenBraceInFunction",fe,18,[u("placeOpenBraceOnNewLineForFunctions"),C,D,Y,v],4,1),r("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",me,18,[u("placeOpenBraceOnNewLineForFunctions"),N,Y,v],4,1),r("NoSpaceBeforeComma",w,27,[U],16),r("NoSpaceBeforeOpenBracket",T(131,82),22,[U],16),r("NoSpaceAfterCloseBracket",23,w,[U,$],16),r("SpaceAfterSemicolon",26,w,[U],4),r("SpaceBetweenForAndAwaitKeyword",97,132,[U],4),r("SpaceBetweenStatements",[21,90,91,82],w,[U,z,_],4),r("SpaceAfterTryCatchFinally",[111,83,96],18,[U],4)];return Il(Il(Il([],he,!0),ye,!0),ve,!0)}})(e.formatting||(e.formatting={}))})(Fl),(e=>{!(t=>{var r;function n(e){var t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function i(t,r){return e.Debug.assert(t<=159&&r<=159,"Must compute formatting context from tokens"),t*o+r}t.getFormatContext=(a,c)=>{return{options:a,getRules:(void 0===r&&(l=t.getAllRules(),u=(e=>{for(var t=new Array(o*o),r=new Array(t.length),n=0,a=e;n<a.length;n++)for(var c=a[n],l=c.leftTokenRange.isSpecific&&c.rightTokenRange.isSpecific,u=0,d=c.leftTokenRange.tokens;u<d.length;u++)for(var p=d[u],_=0,f=c.rightTokenRange.tokens;_<f.length;_++){var m=i(p,f[_]),g=t[m];void 0===g&&(g=t[m]=[]),s(g,c.rule,l,r,m)}return t})(l),r=t=>{var r=u[i(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(r){for(var a=[],o=0,s=0,c=r;s<c.length;s++){var l=c[s],d=~n(o);l.action&d&&e.every(l.context,(e=>e(t)))&&(a.push(l),o|=l.action)}if(a.length)return a}}),r),host:c};var l,u};var a,o=160;function s(r,n,i,o,s){var c,l,u,d=3&n.action?i?a.StopRulesSpecific:a.StopRulesAny:n.context!==t.anyContext?i?a.ContextRulesSpecific:a.ContextRulesAny:i?a.NoContextRulesSpecific:a.NoContextRulesAny,p=o[s]||0;r.splice(((e,t)=>{for(var r=0,n=0;n<=t;n+=5)r+=31&e,e>>=5;return r})(p,d),0,n),o[s]=(u=1+((c=p)>>(l=d)&31),e.Debug.assert((31&u)===u,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<<l)|u<<l)}!(e=>{e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=5]="StopRulesAny",e[e.ContextRulesSpecific=10]="ContextRulesSpecific",e[e.ContextRulesAny=15]="ContextRulesAny",e[e.NoContextRulesSpecific=20]="NoContextRulesSpecific",e[e.NoContextRulesAny=25]="NoContextRulesAny"})(a||(a={}))})(e.formatting||(e.formatting={}))})(Fl),(e=>{!(t=>{var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!l(t.parent,t);)t=t.parent;return t}function l(t,r){switch(t.kind){case 256:case 257:return e.rangeContainsRange(t.members,r);case 260:var n=t.body;return!!n&&261===n.kind&&e.rangeContainsRange(n.statements,r);case 303:case 234:case 261:return e.rangeContainsRange(t.statements,r);case 291:return e.rangeContainsRange(t.block.statements,r)}return!1}function u(t,r,n,i){return t?d({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function d(r,n,i,a){var o=((t,r)=>function n(i){var a=e.forEachChild(i,(n=>e.startEndContainsRange(n.getStart(r),n.end,t)&&n));if(a){var o=n(a);if(o)return o}return i}(r))(r,n);return t.getFormattingScanner(n.text,n.languageVariant,((t,r,n)=>{var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos})(o,r,n),r.end,(s=>p(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),((e,r,n)=>{for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0})(o,i.options,n),s,i,a,((t,r)=>{if(!t.length)return a;var n=t.filter((t=>e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return a;var i=0;return t=>{for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}})(n.parseDiagnostics,r),n)))}function p(r,n,i,a,o,s,c,l,u){var d,p,f,m,g=s.options,h=s.getRules,y=s.host,v=new t.FormattingContext(u,c,g),b=-1,x=[];if(o.advance(),o.isOnToken()){var E=u.getLineAndCharacterOfPosition(n.getStart(u)).line,S=E;n.decorators&&(S=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,u)).line),function n(i,a,s,c,_,h){if(e.rangeOverlapsWithStartEnd(r,i.getStart(u),i.getEnd())){var y=C(i,s,_,h),v=a;for(e.forEachChild(i,(e=>{S(e,-1,i,y,s,c,!1)}),(r=>{!((r,n,a,s)=>{e.Debug.assert(e.isNodeArray(r));var c=((e,t)=>{switch(e.kind){case 170:case 255:case 212:case 168:case 167:case 213:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 207:case 208:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 177:if(e.typeArguments===t)return 29;break;case 181:return 18}return 0})(n,r),l=s,d=a;if(0!==c)for(;o.isOnToken()&&!((h=o.readTokenInfo(n)).token.end>r.pos);)if(h.token.kind===c){d=u.getLineAndCharacterOfPosition(h.token.pos).line,D(h,n,s,n);var p=void 0;if(-1!==b)p=b;else{var _=e.getLineStartPositionForPosition(h.token.pos,u);p=t.SmartIndenter.findFirstNonWhitespaceColumn(_,h.token.pos,u,g)}l=C(n,a,p,g.indentSize)}else D(h,n,s,n);for(var f=-1,m=0;m<r.length;m++)f=S(r[m],f,i,l,d,d,!0,0===m);var h,y=(e=>{switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0})(c);0!==y&&o.isOnToken()&&(27===(h=o.readTokenInfo(n)).token.kind&&e.isCallLikeExpression(n)&&d!==u.getLineAndCharacterOfPosition(h.token.pos).line&&(o.advance(),h=o.isOnToken()?o.readTokenInfo(n):void 0),h&&h.token.kind===y&&e.rangeContainsRange(n,h.token)&&D(h,n,l,n,!0))})(r,i,s,y)}));o.isOnToken();){var x=o.readTokenInfo(i);if(x.token.end>i.end)break;D(x,i,y,i)}if(!i.parent&&o.isOnEOF()){var E=o.readEOFTokenRange();E.end<=i.end&&d&&w(E,u.getLineAndCharacterOfPosition(E.pos).line,i,d,f,p,a,y)}}function S(a,s,c,l,d,p,_,f){var h=a.getStart(u),y=u.getLineAndCharacterOfPosition(h).line,x=y;a.decorators&&(x=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,u)).line);var E=-1;if(_&&e.rangeContainsRange(r,c)&&-1!==(E=((r,n,i,a,o)=>{if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,u),l=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,u,g);if(s!==i||r===l){var d=t.SmartIndenter.getBaseIndentation(g);return d>l?d:l}}return-1})(h,a.end,d,r,s))&&(s=E),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.end<r.pos&&o.skipToEndOf(a),s;if(0===a.getFullWidth())return s;for(;o.isOnToken();){if((S=o.readTokenInfo(i)).token.end>h){S.token.pos>h&&o.skipToStartOf(a);break}D(S,i,l,i)}if(!o.isOnToken())return s;if(e.isToken(a)){var S=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(S.token.end===a.end,"Token end is child end"),D(S,i,l,a),s}var T=164===a.kind?y:p,C=((e,r,n,i,a,o)=>{var s=t.SmartIndenter.shouldIndentChildNode(g,e)?g.indentSize:0;return o===r?{indentation:r===m?b:a.getIndentation(),delta:Math.min(g.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===m?{indentation:b,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,u)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,u)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}})(a,y,E,i,l,T);return n(a,v,y,x,C.indentation,C.delta),v=i,f&&203===c.kind&&-1===s&&(s=C.indentation),s}function D(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),p=!1;t.leadingTrivia&&A(t.leadingTrivia,n,v,i);var _=0,f=e.rangeContainsRange(r,t.token),g=u.getLineAndCharacterOfPosition(t.token.pos);if(f){var h=l(t.token),y=d;if(_=N(t.token,g,n,v,i),!h)if(0===_){var x=y&&u.getLineAndCharacterOfPosition(y.end).line;p=c&&g.line!==x}else p=1===_}if(t.trailingTrivia&&A(t.trailingTrivia,n,v,i),p){var E=f&&!l(t.token)?i.getIndentationForToken(g.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var D=i.getIndentationForComment(t.token.kind,E,a);S=k(t.leadingTrivia,D,S,(e=>F(e.pos,D,!1)))}-1!==E&&S&&(F(t.token.pos,E,1===_),m=g.line,b=E)}o.advance(),v=n}}(n,n,E,S,i,a)}if(!o.isOnToken()){var D=t.SmartIndenter.nodeWillIndentChild(g,n,void 0,u,!1)?i+g.indentSize:i,T=o.getCurrentLeadingTrivia();T&&(k(T,D,!1,(e=>N(e,u.getLineAndCharacterOfPosition(e.pos),n,n,void 0))),!1!==g.trimTrailingWhitespace&&(t=>{for(var n=d?d.end:r.pos,i=0,a=t;i<a.length;i++){var o=a[i];e.isComment(o.kind)&&(n<o.pos&&M(n,o.pos-1,d),n=o.end+1)}n<r.end&&M(n,r.end,d)})(T))}return x;function C(r,n,i,a){return{getIndentationForComment(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:(t,a,s,c)=>!c&&((t,i,a)=>{switch(i){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(a.kind){case 279:case 280:case 278:case 227:return!1}break;case 22:case 23:if(194!==a.kind)return!1}return n!==t&&!(r.decorators&&i===(t=>{if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 256:return 84;case 257:return 118;case 255:return 98;case 259:return 259;case 171:return 136;case 172:return 148;case 168:if(t.asteriskToken)return 41;case 166:case 163:var r=e.getNameOfDeclaration(t);if(r)return r.kind}})(r))})(t,a,s)?i+o(s):i,getIndentation:()=>i,getDelta:o,recomputeIndentation(e,n){t.SmartIndenter.shouldIndentChildNode(g,n,r,u)&&(i+=e?g.indentSize:-g.indentSize,a=t.SmartIndenter.shouldIndentChildNode(g,r)?g.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(g,r,e,u,!0)?a:0}}function k(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o],l=e.rangeContainsRange(r,c);switch(c.kind){case 3:l&&P(c,n,!i),i=!1;break;case 2:i&&l&&a(c),i=!1;break;case 4:i=!0}}return i}function A(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];e.isComment(c.kind)&&e.rangeContainsRange(r,c)&&N(c,u.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function N(e,t,n,i,a){var o=0;return l(e)||(d?o=w(e,t.line,n,d,f,p,i,a):I(u.getLineAndCharacterOfPosition(r.pos).line,t.line)),d=e,p=n,f=t.line,o}function w(t,r,n,i,a,o,s,c){v.updateContext(i,o,t,n,s);var l=h(v),d=!1!==v.options.trimTrailingWhitespace,p=0;return l?e.forEachRight(l,(o=>{switch(p=((t,r,n,i,a)=>{var o,s=a!==n;switch(t.action){case 1:return 0;case 16:if(r.end!==i.pos)return R(r.end,i.pos-r.end),s?2:0;break;case 32:R(r.pos,r.end-r.pos);break;case 8:if(1!==t.flags&&n!==a)return 0;if(1!=a-n)return L(r.end,i.pos-r.end,e.getNewLineOrDefaultFromHost(y,g)),s?0:1;break;case 4:if(1!==t.flags&&n!==a)return 0;if(1!=i.pos-r.end||32!==u.text.charCodeAt(r.end))return L(r.end,i.pos-r.end," "),s?2:0;break;case 64:o=r.end,x.push(e.createTextChangeFromStartLength(o,0,";"))}return 0})(o,i,a,t,r)){case 2:n.getStart(u)===t.pos&&c.recomputeIndentation(!1,s);break;case 1:n.getStart(u)===t.pos&&c.recomputeIndentation(!0,s);break;default:e.Debug.assert(0===p)}d=d&&!(16&o.action)&&1!==o.flags})):d=d&&1!==t.kind,r!==a&&d&&I(a,r,i),p}function F(t,r,n){var i=_(r,g);if(n)L(t,0,i);else{var a=u.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(a.line,u);(r!==((e,t)=>{for(var r=0,n=0;n<t;n++)9===u.text.charCodeAt(e+n)?r+=g.tabSize-r%g.tabSize:r++;return r})(o,a.character)||((e,t)=>e!==u.text.substr(t,e.length))(i,o))&&L(o,a.character,i)}}function P(r,n,i,a){void 0===a&&(a=!0);var o=u.getLineAndCharacterOfPosition(r.pos).line,s=u.getLineAndCharacterOfPosition(r.end).line;if(o!==s){for(var c=[],l=r.pos,d=o;d<s;d++){var p=e.getEndLinePosition(d,u);c.push({pos:l,end:p}),l=e.getStartPositionOfLine(d+1,u)}if(a&&c.push({pos:l,end:r.end}),0!==c.length){var f=e.getStartPositionOfLine(o,u),m=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,c[0].pos,u,g),h=0;i&&(h=1,o++);for(var y=n-m.column,v=h;v<c.length;v++,o++){var b=e.getStartPositionOfLine(o,u),x=0===v?m:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(c[v].pos,c[v].end,u,g),E=x.column+y;if(E>0){var S=_(E,g);L(b,x.character,S)}else R(b,x.character)}}}else i||F(r.pos,n,!1)}function I(t,r,n){for(var i=t;i<r;i++){var a=e.getStartPositionOfLine(i,u),o=e.getEndLinePosition(i,u);if(!(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o)){var s=O(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),R(s,o+1-s))}}}function O(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function M(e,t,r){I(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(t).line+1,r)}function R(t,r){r&&x.push(e.createTextChangeFromStartLength(t,r,""))}function L(t,r,n){(r||n)&&x.push(e.createTextChangeFromStartLength(t,r,n))}}function _(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var l=Math.floor(t/r.tabSize),u=t-l*r.tabSize,d=void 0;return a||(a=[]),void 0===a[l]?a[l]=d=e.repeatString("\t",l):d=a[l],u?d+e.repeatString(" ",u):d}t.createTextRangeWithKind=(t,r,n)=>{var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>e.Debug.formatSyntaxKind(n)}),i},(e=>{e[e.Unknown=-1]="Unknown"})(r||(r={})),t.formatOnEnter=(t,r,n)=>{var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,d({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=(e,t,r)=>u(c(s(e,26,t)),t,r,3),t.formatOnOpeningCurly=(t,r,n)=>{var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return d({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=(e,t,r)=>u(c(s(e,19,t)),t,r,5),t.formatDocument=(e,t)=>d({pos:0,end:e.text.length},e,t,0),t.formatSelection=(t,r,n,i)=>d({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1),t.formatNodeGivenIndentation=(e,r,n,i,a,o)=>{var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,(t=>p(s,e,i,a,t,o,1,(e=>!1),r)))},(e=>{e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"})(n||(n={})),t.getRangeOfEnclosingComment=(t,r,n,i)=>{void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&r<i.getEnd())){var o=(n=null===n?void 0:void 0===n?e.findPrecedingToken(r,t):n)&&e.getTrailingCommentRanges(t.text,n.end),s=e.getLeadingCommentRangesOfNode(i,t),c=e.concatenate(o,s);return c&&e.find(c,(n=>e.rangeContainsPositionExclusive(n,r)||r===n.end&&(2===n.kind||r===t.getFullWidth())))}},t.getIndentationString=_})(e.formatting||(e.formatting={}))})(Fl),(e=>{var t;(r=>{var n,i;function a(e){return e.baseIndentSize||0}function o(e,t,r,n,i,o,l){for(var f,m=e.parent;m;){var h=!0;if(r){var y=e.getStart(i);h=y<r.pos||y>r.end}var v=s(m,e,i),b=v.line===t.line||p(m,e,t.line,i);if(h){var x=null===(f=_(e,i))||void 0===f?void 0:f[0],S=g(e,i,l,!!x&&u(x,i).line>v.line);if(-1!==S)return S+n;if(-1!==(S=c(e,m,t,b,i,l)))return S+n}E(l,m,e,i,o)&&!b&&(n+=l.indentSize);var D=d(m,e,t.line,i);m=(e=m).parent,t=D?i.getLineAndCharacterOfPosition(e.getStart(i)):v}return n+a(l)}function s(e,t,r){var n=_(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||303!==r.kind&&i?-1:y(n,a,o)}function l(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===u(a,i).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function d(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function p(t,r,n,i){if(238===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,91,i);return e.Debug.assert(void 0!==a),u(a,i).line===n}return!1}function _(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 177:return a(n.typeArguments);case 204:return a(n.properties);case 203:return a(n.elements);case 181:return a(n.members);case 255:case 212:case 213:case 168:case 167:case 173:case 170:case 179:case 174:return a(n.typeParameters)||a(n.parameters);case 256:case 225:case 257:case 258:case 342:return a(n.typeParameters);case 208:case 207:return a(n.typeArguments)||a(n.arguments);case 254:return a(n.declarations);case 268:case 272:return a(n.elements);case 200:case 201:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(((e,t,r)=>{for(var n=e.getChildren(r),i=1;i<n.length-1;i++)if(n[i].pos===t.pos&&n[i].end===t.end)return{pos:n[i-1].end,end:n[i+1].getStart(r)};return t})(n,a,i),t,r)?a:void 0}}function m(e,t,r){return e?y(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function g(e,t,r,n){if(e.parent&&254===e.parent.kind)return-1;var i=_(e,t);if(i){var a=i.indexOf(e);if(-1!==a){var o=h(i,a,t,r);if(-1!==o)return o}return m(i,t,r)+(n?r.indentSize:0)}return-1}function h(t,r,n,i){e.Debug.assert(r>=0&&r<t.length);for(var a=u(t[r],n),o=r-1;o>=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,n,i);a=u(t[o],n)}return-1}function y(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;s<r;s++){var c=n.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=i.tabSize+o%i.tabSize:o++,a++}return{column:o,character:a}}function b(e,t,r,n){return v(e,t,r,n).column}function x(t,r,n,i,a){var o=n?n.kind:0;switch(r.kind){case 237:case 256:case 225:case 257:case 259:case 258:case 203:case 234:case 261:case 204:case 181:case 194:case 183:case 262:case 289:case 288:case 211:case 205:case 207:case 208:case 236:case 270:case 246:case 221:case 201:case 200:case 279:case 282:case 278:case 287:case 167:case 173:case 174:case 163:case 178:case 179:case 190:case 209:case 217:case 272:case 268:case 274:case 269:case 166:return!0;case 253:case 294:case 220:if(!t.indentMultiLineObjectLiteralBeginningOnBlankLine&&i&&204===o)return S(i,n);if(220===r.kind&&i&&n&&277===o)return i.getLineAndCharacterOfPosition(e.skipTrivia(i.text,r.pos)).line!==i.getLineAndCharacterOfPosition(e.skipTrivia(i.text,n.pos)).line;if(220!==r.kind)return!0;break;case 239:case 240:case 242:case 243:case 241:case 238:case 255:case 212:case 168:case 170:case 171:case 172:return 234!==o;case 213:return i&&211===o?S(i,n):234!==o;case 271:return 272!==o;case 265:return 266!==o||!!n.namedBindings&&268!==n.namedBindings.kind;case 277:return 280!==o;case 281:return 283!==o;case 187:case 186:if(181===o||183===o)return!1}return a}function E(e,t,r,n,i){return void 0===i&&(i=!1),x(e,t,r,n,!1)&&!(i&&r&&((e,t)=>{switch(e){case 246:case 250:case 244:case 245:return 234!==t.kind;default:return!1}})(r.kind,t))}function S(t,r){var n=e.skipTrivia(t.text,r.pos);return t.getLineAndCharacterOfPosition(n).line===t.getLineAndCharacterOfPosition(r.end).line}!(e=>{e[e.Unknown=-1]="Unknown"})(n||(n={})),r.getIndentation=(r,n,i,s)=>{if(void 0===s&&(s=!1),r>n.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),d=t.getRangeOfEnclosingComment(n,r,c||null);if(d&&3===d.kind)return((t,r,n,i)=>{var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),l=c.column,u=c.character;return 0===l?l:42===t.text.charCodeAt(s+u)?l-1:l})(n,r,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r<c.end)return 0;var p=n.getLineAndCharacterOfPosition(r).line;if(i.indentStyle===e.IndentStyle.Block)return((t,r,n)=>{for(var i=r;i>0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)})(n,r,i);if(27===c.kind&&220!==c.parent.kind){var _=((t,r,n)=>{var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?h(i.list.getChildren(),i.listItemIndex-1,r,n):-1})(c,n,i);if(-1!==_)return _}var y=((e,t,r)=>t&&f(e,e,t,r))(r,c.parent,n);return y&&!e.rangeContainsRange(y,c)?m(y,n,i)+i.indentSize:((t,r,n,i,s,c)=>{for(var d,p=n;p;){if(e.positionBelongsToNode(p,r,t)&&E(c,p,d,t,!0)){var _=u(p,t),f=l(n,p,i,t);return o(p,_,void 0,0!==f?s&&2===f?c.indentSize:0:i!==_.line?c.indentSize:0,t,!0,c)}var m=g(p,t,c,!0);if(-1!==m)return m;d=p,p=p.parent}return a(c)})(n,r,c,p,s,i)},r.getIndentationForNode=(e,t,r,n)=>{var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,(e=>{e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"})(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,r.childStartsOnTheSameLineWithElseInIfStatement=p,r.childIsUnindentedBranchOfConditionalExpression=(t,r,n,i)=>{if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=u(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=(t,r,n,i)=>{if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(e=>e.pos===r.pos));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=_,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=E})((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))})(Fl),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function i(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function a(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var o,s;function c(t,r){return e.skipTrivia(t,r,!1,!0)}!(e=>{e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"})(o=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),(e=>{e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"})(s=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var l,u={leadingTriviaOption:o.Exclude,trailingTriviaOption:s.Exclude};function d(e,t,r,n){return{pos:p(e,t,n),end:f(e,r,n)}}function p(t,r,n,i){var a,s;void 0===i&&(i=!1);var l=n.leadingTriviaOption;if(l===o.Exclude)return r.getStart(t);if(l===o.StartLine){var u=r.getStart(t),d=e.getLineStartPositionForPosition(u,t);return e.rangeContainsPosition(r,d)?d:u}if(l===o.JSDoc){var p=e.getJSDocCommentRanges(r,t.text);if(null==p?void 0:p.length)return e.getLineStartPositionForPosition(p[0].pos,t)}var _=r.getFullStart(),f=r.getStart(t);if(_===f)return f;var m=e.getLineStartPositionForPosition(_,t);if(e.getLineStartPositionForPosition(f,t)===m)return l===o.IncludeAll?_:f;if(i){var g=(null===(a=e.getLeadingCommentRanges(t.text,_))||void 0===a?void 0:a[0])||(null===(s=e.getTrailingCommentRanges(t.text,_))||void 0===s?void 0:s[0]);if(g)return e.skipTrivia(t.text,g.end,!0,!0)}var h=_>0?1:0,y=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,m)+h,t);return y=c(t.text,y),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,y),t)}function _(t,r,n){var i=r.end;if(n.trailingTriviaOption===s.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,r.end),c=0,l=a;c<l.length;c++){var u=l[c];if(2===u.kind||e.getLineOfLocalPosition(t,u.pos)>o)break;if(e.getLineOfLocalPosition(t,u.end)>o)return e.skipTrivia(t.text,u.end,!0,!0)}}}function f(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===s.Exclude)return a;if(o===s.ExcludeWhitespace){var c=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a));return(null===(i=null==c?void 0:c[c.length-1])||void 0===i?void 0:i.end)||a}var l=_(t,r,n);if(l)return l;var u=e.skipTrivia(t.text,a,!0);return u===a||o!==s.Include&&!e.isLineBreak(t.text.charCodeAt(u-1))?a:u}function m(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&204===e.parent.kind)}!(e=>{e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"})(l||(l={})),t.isThisTypeAnnotatable=t=>e.isFunctionExpression(t)||e.isFunctionDeclaration(t);var g,h,y=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=r=>new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext),t.with=(e,r)=>{var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n<i.length;n++){var a=i[n];this.changes.push({kind:l.Text,sourceFile:t,text:a.newText,range:e.createTextRangeFromSpan(a.span)})}},t.prototype.deleteRange=function(e,t){this.changes.push({kind:l.Remove,sourceFile:e,range:t})},t.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},t.prototype.deleteNode=function(e,t,r){void 0===r&&(r={leadingTriviaOption:o.IncludeAll}),this.deleteRange(e,d(e,t,t,r))},t.prototype.deleteNodes=function(e,t,r,n){void 0===r&&(r={leadingTriviaOption:o.IncludeAll});for(var i=0,a=t;i<a.length;i++){var s=a[i],c=p(e,s,r,n),l=f(e,s,r);this.deleteRange(e,{pos:c,end:l}),n=!!_(e,s,r)}},t.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=p(e,t,n),a=f(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=p(e,t,n),a=void 0===r?e.text.length:p(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:l.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=u),this.replaceRange(e,d(e,t,t,n),r,n)},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=u),this.replaceRange(e,d(e,t,r,i),n,i)},t.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:l.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},t.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=u),this.replaceRangeWithNodes(e,d(e,t,t,n),r,n)},t.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,d(e,t,t,u),r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=u),this.replaceRangeWithNodes(e,d(e,t,r,i),n,i)},t.prototype.nodeHasTrailingComment=(e,t,r)=>(void 0===r&&(r=u),!!_(e,t,r)),t.prototype.nextCommaToken=(t,r)=>{var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},t.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},t.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},t.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},t.prototype.insertNodeAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertNodesAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertAtTopOfFile=function(t,r,n){var i=(t=>{for(var r,n=0,i=t.statements;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))break;r=a}var o=0,s=t.text;if(r)return o=r.end,m(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,m());var l,u,d=e.getLeadingCommentRanges(s,o);if(!d)return o;for(var p=0,_=d;p<_.length;p++){var f=_[p];if(3===f.kind){if(e.isPinnedComment(s,f.pos)){l={range:f,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(s,f.pos,f.end)){l={range:f,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;if(t.getLineAndCharacterOfPosition(f.pos).line>=t.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(t.statements.length&&(void 0===u&&(u=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),u<t.getLineAndCharacterOfPosition(f.end).line+2))break;l={range:f,pinnedOrTripleSlash:!1}}return l&&(o=l.range.end,m()),o;function m(){if(o<s.length){var t=s.charCodeAt(o);e.isLineBreak(t)&&++o<s.length&&13===t&&10===s.charCodeAt(o)&&o++}}})(t),a={prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};e.isArray(r)?this.insertNodesAt(t,i,r,a):this.insertNodeAt(t,i,r,a)},t.prototype.insertFirstParameter=function(t,r,n){var i=e.firstOrUndefined(r);i?this.insertNodeBefore(t,i,n):this.insertNodeAt(t,r.pos,n)},t.prototype.insertNodeBefore=function(e,t,r,n,i){void 0===n&&(n=!1),void 0===i&&(i={}),this.insertNodeAt(e,p(e,t,i),r,this.getOptionsForInsertNodeBefore(t,r,n))},t.prototype.insertModifierAt=function(t,r,n,i){void 0===i&&(i={}),this.insertNodeAt(t,r,e.factory.createToken(n),i)},t.prototype.insertModifierBefore=function(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})},t.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=D(t,o),c=e.getTouchingToken(t,s?o:n),l=t.text.slice(a,o),u="".concat(s?"":this.newLineCharacter,"//").concat(i).concat(this.newLineCharacter).concat(l);this.insertText(t,c.getStart(t),u)},t.prototype.insertJsdocCommentBefore=function(t,r,n){var i=r.getStart(t);if(r.jsDoc)for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];this.deleteRange(t,{pos:e.getLineStartPositionForPosition(s.getStart(t),t),end:f(t,s,{})})}var c=e.getPrecedingNonSpaceCharacterPosition(t.text,i-1),l=t.text.slice(c,i);this.insertNodeAt(t,i,n,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+l})},t.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:l.Text,sourceFile:e,range:t,text:r})},t.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createRange(r),n)},t.prototype.tryInsertTypeAnnotation=function(t,r,n){var i,a;if(e.isFunctionLike(r)){if(!(a=e.findChildOfKind(r,21,t))){if(!e.isArrowFunction(r))return!1;a=e.first(r.parameters)}}else a=null!==(i=253===r.kind?r.exclamationToken:r.questionToken)&&void 0!==i?i:r.name;return this.insertNodeAt(t,a.end,n,{prefix:": "}),!0},t.prototype.tryInsertThisTypeAnnotation=function(t,r,n){var i=e.findChildOfKind(r,20,t).getStart(t)+1,a=r.parameters.length?", ":"";this.insertNodeAt(t,i,n,{prefix:"this: ",suffix:a})},t.prototype.insertTypeParameters=function(t,r,n){var i=(e.findChildOfKind(r,20,t)||e.first(r.parameters)).getStart(t);this.insertNodesAt(t,i,n,{prefix:"<",suffix:">",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var i=e.firstOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeBefore(t,i,n):this.replaceConstructorBody(t,r,Il([n],r.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,n){var i=e.find(r.body.statements,(t=>e.isExpressionStatement(t)&&e.isSuperCall(t.expression)));i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,Il(Il([],r.body.statements,!0),[n],!1))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,Il(Il([],r.body.statements,!0),[n],!1))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=p(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,b(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=b(r);a<o.length;a++){var s=o[a];if(e.rangeStartPositionsAreOnSameLine(i,s,t))return;var c=s.getStart(t),l=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(c,t),c,t,this.formatContext.options);if(void 0===n)n=l;else if(l!==n)return;i=s}return n},t.prototype.computeIndentationForNewMember=function(t,r){var n,i=r.getStart(t);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(i,t),i,t,this.formatContext.options)+(null!==(n=this.formatContext.options.indentSize)&&void 0!==n?n:4)},t.prototype.getInsertNodeAtStartInsertOptions=function(t,r,n){var i=0===b(r).length,a=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t}),o=e.isObjectLiteralExpression(r)&&(!e.isJsonSourceFile(t)||!i);return{indentation:n,prefix:(e.isObjectLiteralExpression(r)&&e.isJsonSourceFile(t)&&i&&!a?",":"")+this.newLineCharacter,suffix:o?",":""}},t.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},t.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},t.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&161===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.factory.createToken(26)),f(t,r,{})},t.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return Ol(Ol({},n),{prefix:r.end===t.end&&e.isStatement(r)?n.prefix?"\n".concat(n.prefix):"\n":n.prefix})},t.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 256:case 260:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 253:case 10:case 79:return{prefix:", "};case 294:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 163:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},t.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),213===r.kind){var i=e.findChildOfKind(r,38,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.factory.createToken(98),e.factory.createIdentifier(n)],{joiner:" "}),T(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function ".concat(n,"(")),this.replaceRange(t,i,e.factory.createToken(21))),234!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,212===r.kind?98:84,t).end;this.insertNodeAt(t,o,e.factory.createIdentifier(n),{prefix:" "})}},t.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},t.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),i){var a=e.indexOfNode(i,r);if(!(a<0)){var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&m(r,s)){var l=i[a+1],u=c(t.text,l.getFullStart()),d="".concat(e.tokenToString(s.kind)).concat(t.text.substring(s.end,u));this.insertNodesAt(t,u,[n],{suffix:d})}}else{var p=r.getStart(t),_=e.getLineStartPositionForPosition(p,t),f=void 0,g=!1;if(1===i.length)f=27;else{var h=e.findPrecedingToken(r.pos,t);f=m(r,h)?h.kind:27,g=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==_}if(((t,r)=>{for(var n=r;n<t.length;){var i=t.charCodeAt(n);if(!e.isWhiteSpaceSingleLine(i))return 47===i;n++}return!1})(t.text,r.end)&&(g=!0),g){this.replaceRange(t,e.createRange(o),e.factory.createToken(f));for(var y=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(_,p,t,this.formatContext.options),v=e.skipTrivia(t.text,o,!0,!1);v!==o&&e.isLineBreak(t.text.charCodeAt(v-1));)v--;this.replaceRange(t,e.createRange(v),n,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,e.createRange(o),n,{prefix:"".concat(e.tokenToString(f)," ")})}}}else e.Debug.fail("node is not a list element")},t.prototype.parenthesizeExpression=function(t,r){this.replaceRange(t,e.rangeOfNode(r),e.factory.createParenthesizedExpression(r))},t.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach((r=>{var n=r.node,i=r.sourceFile,a=((t,r)=>{var n=e.findChildOfKind(t,18,r),i=e.findChildOfKind(t,19,r);return[null==n?void 0:n.end,null==i?void 0:i.end]})(n,i),o=a[0],s=a[1];if(void 0!==o&&void 0!==s){var c=0===b(n).length,l=e.positionsAreOnSameLine(o,s,i);c&&l&&o!==s-1&&t.deleteRange(i,e.createRange(o,s-1)),l&&t.insertText(i,s-1,t.newLineCharacter)}}))},t.prototype.finishDeleteDeclarations=function(){for(var t=this,r=new e.Set,n=(t,n)=>{i.deletedNodes.some((r=>r.sourceFile===t&&e.rangeContainsRangeExclusive(r.node,n)))||(e.isArray(n)?i.deleteRange(t,e.rangeOfTypeParameters(t,n)):h.deleteDeclaration(i,r,t,n))},i=this,a=0,o=this.deletedNodes;a<o.length;a++){var s=o[a];n(s.sourceFile,s.node)}r.forEach((n=>{var i=n.getSourceFile(),a=e.formatting.SmartIndenter.getContainingList(n,i);if(n===e.last(a)){var o=e.findLastIndex(a,(e=>!r.has(e)),a.length-2);-1!==o&&t.deleteRange(i,{pos:a[o].end,end:v(i,a[o+1])})}}))},t.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=g.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,o=i.fileName,s=i.statements;t.push(g.newFileChanges(a,o,s,this.newLineCharacter,this.formatContext))}return t},t.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},t}();function v(t,r){return e.skipTrivia(t.text,p(t,r,{leadingTriviaOption:o.IncludeAll}),!1,!0)}function b(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function x(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n],a=i.span,o=i.newText;t="".concat(t.substring(0,a.start)).concat(o).concat(t.substring(e.textSpanEnd(a)))}return t}function E(t){var n=e.visitEachChild(t,E,e.nullTransformationContext,S,E),a=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(a,r(t),i(t)),a}function S(t,n,a,o,s){var c=e.visitNodes(t,n,a,o,s);if(!c)return c;var l=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,r(t),i(t)),l}function D(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function T(e,t,r,n){void 0===n&&(n={leadingTriviaOption:o.IncludeAll});var i=p(t,r,n),a=f(t,r,n);e.deleteRange(t,{pos:i,end:a})}function C(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:v(n,i),end:o===a.length-1?f(n,i,{}):v(n,a[o+1])})):T(t,n,i)}t.ChangeTracker=y,t.getNewFileText=(e,t,r,n)=>g.newFileChangesWorker(void 0,t,e,r,n),function(t){function r(t,r,n,a,o){var s=n.map((e=>4===e?"":i(e,t,a).text)).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return x(s,e.formatting.formatDocument(c,o))+a}function i(t,r,i){var o=(t=>{var r=0,i=e.createTextWriter(t);function o(t,n){if(n||!(t=>e.skipTrivia(t,0)===t.length)(t)){r=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}return{onBeforeEmitNode(e){e&&n(e,r)},onAfterEmitNode(e){e&&a(e,r)},onBeforeEmitNodeArray(e){e&&n(e,r)},onAfterEmitNodeArray(e){e&&a(e,r)},onBeforeEmitToken(e){e&&n(e,r)},onAfterEmitToken(e){e&&a(e,r)},write(e){i.write(e),o(e,!1)},writeComment(e){i.writeComment(e)},writeKeyword(e){i.writeKeyword(e),o(e,!1)},writeOperator(e){i.writeOperator(e),o(e,!1)},writePunctuation(e){i.writePunctuation(e),o(e,!1)},writeTrailingSemicolon(e){i.writeTrailingSemicolon(e),o(e,!1)},writeParameter(e){i.writeParameter(e),o(e,!1)},writeProperty(e){i.writeProperty(e),o(e,!1)},writeSpace(e){i.writeSpace(e),o(e,!1)},writeStringLiteral(e){i.writeStringLiteral(e),o(e,!1)},writeSymbol(e,t){i.writeSymbol(e,t),o(e,!1)},writeLine(e){i.writeLine(e)},increaseIndent(){i.increaseIndent()},decreaseIndent(){i.decreaseIndent()},getText:()=>i.getText(),rawWrite(e){i.rawWrite(e),o(e,!1)},writeLiteral(e){i.writeLiteral(e),o(e,!0)},getTextPos:()=>i.getTextPos(),getLine:()=>i.getLine(),getColumn:()=>i.getColumn(),getIndent:()=>i.getIndent(),isAtStartOfLine:()=>i.isAtStartOfLine(),hasTrailingComment:()=>i.hasTrailingComment(),hasTrailingWhitespace:()=>i.hasTrailingWhitespace(),clear(){i.clear(),r=0}}})(i),s=e.getNewLineKind(i);return e.createPrinter({newLine:s,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},o).writeNode(4,t,r,o),{text:o.getText(),node:E(t)}}t.getTextChangesFromChanges=function(t,r,n,a){return e.mapDefined(e.group(t,(e=>e.sourceFile.path)),(function(t){for(var o=t[0].sourceFile,s=e.stableSort(t,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end)),c=t=>{e.Debug.assert(s[t].range.end<=s[t+1].range.pos,"Changes overlap",(()=>"".concat(JSON.stringify(s[t].range)," and ").concat(JSON.stringify(s[t+1].range))))},u=0;u<s.length-1;u++)c(u);var d=e.mapDefined(s,(function(t){var s=e.createTextSpanFromRange(t.range),c=function(t,r,n,a,o){var s;if(t.kind===l.Remove)return"";if(t.kind===l.Text)return t.text;var c=t.options,u=void 0===c?{}:c,d=t.range.pos,p=function(t){return function(t,r,n,a,o,s,c){var l=a.indentation,u=a.prefix,d=a.delta,p=i(t,r,o),_=p.node,f=p.text;c&&c(_,f);var m=((t,r)=>{var n=t.options,i=!n.semicolons||n.semicolons===e.SemicolonPreference.Ignore,a=n.semicolons===e.SemicolonPreference.Remove||i&&!e.probablyUsesSemicolons(r);return Ol(Ol({},n),{semicolons:a?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})})(s,r),g=void 0!==l?l:e.formatting.SmartIndenter.getIndentation(n,r,m,u===o||e.getLineStartPositionForPosition(n,r)===n);void 0===d&&(d=e.formatting.SmartIndenter.shouldIndentChildNode(m,t)&&m.indentSize||0);var h={text:f,getLineAndCharacterOfPosition(t){return e.getLineAndCharacterOfPosition(this,t)}};return x(f,e.formatting.formatNodeGivenIndentation(_,h,r.languageVariant,g,d,Ol(Ol({},s),{options:m})))}(t,r,d,u,n,a,o)},_=t.kind===l.ReplaceWithMultipleNodes?t.nodes.map((t=>e.removeSuffix(p(t),n))).join((null===(s=t.options)||void 0===s?void 0:s.joiner)||n):p(t.node),f=u.preserveLeadingWhitespace||void 0!==u.indentation||e.getLineStartPositionForPosition(d,r)===d?_:_.replace(/^\s+/,"");return(u.prefix||"")+f+(!u.suffix||e.endsWith(f,u.suffix)?"":u.suffix)}(t,o,r,n,a);if(s.length!==c.length||!e.stringContainsAt(o.text,c,s.start))return e.createTextChange(s,c)}));return d.length>0?{fileName:o.fileName,textChanges:d}:void 0}))},t.newFileChanges=(t,n,i,a,o)=>{var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=i}(g||(g={})),t.applyChanges=x,t.isValidLocationToAddComment=D,(t=>{function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else T(t,r,e.getAncestor(n,265))}t.deleteDeclaration=(t,n,i,a)=>{switch(a.kind){case 163:var c=a.parent;e.isArrowFunction(c)&&1===c.parameters.length&&!e.findChildOfKind(c,20,i)?t.replaceNodeWithText(i,a,"()"):C(t,n,i,a);break;case 265:case 264:T(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?o.Exclude:e.hasJSDocNodes(a)?o.JSDoc:o.StartLine});break;case 202:var l=a.parent;201===l.kind&&a!==e.last(l.elements)?T(t,i,a):C(t,n,i,a);break;case 253:!((t,r,n,i)=>{var a=i.parent;if(291!==a.kind)if(1===a.declarations.length){var s=a.parent;switch(s.kind){case 243:case 242:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 241:T(t,n,a);break;case 236:T(t,n,s,{leadingTriviaOption:e.hasJSDocNodes(s)?o.JSDoc:o.StartLine});break;default:e.Debug.assertNever(s)}}else C(t,r,n,i);else t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n))})(t,n,i,a);break;case 162:C(t,n,i,a);break;case 269:var u=a.parent;1===u.elements.length?r(t,i,u):C(t,n,i,a);break;case 267:r(t,i,a);break;case 26:T(t,i,a,{trailingTriviaOption:s.Exclude});break;case 98:T(t,i,a,{leadingTriviaOption:o.Exclude});break;case 256:case 255:T(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?o.JSDoc:o.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?((t,r,n)=>{if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else T(t,r,n.name)}else T(t,r,n.parent)})(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?C(t,n,i,a):T(t,i,a):T(t,i,a)}}})(h||(h={})),t.deleteNode=T}(e.textChanges||(e.textChanges={}))}(Fl),(e=>{!(t=>{var r=e.createMultiMap(),n=new e.Map;function i(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function a(e,t){return{changes:e,commands:t}}function o(t,r,n){for(var i=0,a=s(t);i<a.length;i++){var o=a[i];e.contains(r,o.code)&&n(o)}}function s(t){var r=t.program,n=t.sourceFile,i=t.cancellationToken;return Il(Il(Il([],r.getSemanticDiagnostics(n,i),!0),r.getSyntacticDiagnostics(n,i),!0),e.computeSuggestionDiagnostics(n,r,i),!0)}t.createCodeFixActionWithoutFixAll=(t,r,n)=>i(t,e.diagnosticToString(n),r,void 0,void 0),t.createCodeFixAction=(t,r,n,a,o,s)=>i(t,e.diagnosticToString(n),r,a,e.diagnosticToString(o),s),t.createCodeFixActionMaybeFixAll=(t,r,n,a,o,s)=>i(t,e.diagnosticToString(n),r,a,o&&e.diagnosticToString(o),s),t.registerCodeFix=t=>{for(var i=0,a=t.errorCodes;i<a.length;i++){var o=a[i];r.add(String(o),t)}if(t.fixIds)for(var s=0,c=t.fixIds;s<c.length;s++){var l=c[s];e.Debug.assert(!n.has(l)),n.set(l,t)}},t.getSupportedErrorCodes=()=>e.arrayFrom(r.keys()),t.getFixes=t=>{var n=s(t),i=r.get(String(t.errorCode));return e.flatMap(i,(r=>e.map(r.getCodeActions(t),((t,r)=>{for(var n=t.errorCodes,i=0,a=0,o=r;a<o.length;a++){var s=o[a];if(e.contains(n,s.code)&&i++,i>1)break}var c=i<2;return e=>{var t=e.fixId,r=e.fixAllDescription,n=Ll(e,["fixId","fixAllDescription"]);return c?n:Ol(Ol({},n),{fixId:t,fixAllDescription:r})}})(r,n))))},t.getAllFixes=t=>n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t),t.createCombinedCodeActions=a,t.createFileTextChanges=(e,t)=>({fileName:e,textChanges:t}),t.codeFixAll=(t,r,n)=>{var i=[];return a(e.textChanges.ChangeTracker.with(t,(e=>o(t,r,(t=>n(e,t,i))))),0===i.length?void 0:i)},t.eachDiagnostic=o})(e.codefix||(e.codefix={}))})(Fl),(e=>{var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=(e,t)=>{r.set(e,t)},t.getApplicableRefactors=n=>e.arrayFrom(e.flatMapIterator(r.values(),(e=>{var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((e=>t.refactorKindBeginsWith(e,n.kind))))?void 0:e.getAvailableActions(n)}))),t.getEditsForRefactor=(e,t,n)=>{var i=r.get(t);return i&&i.getEditsForAction(e,n)}})(Fl),(e=>{!(t=>{var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.Debug.checkDefined(e.findAncestor(i,(t=>e.isAsExpression(t)||e.isTypeAssertionExpression(t))),"Expected to find an assertion expression"),o=e.isAsExpression(a)?e.factory.createAsExpression(a.expression,e.factory.createKeywordTypeNode(154)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(154),a.expression);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start)));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start)))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(t=>{var r=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(Fl),(e=>{!(t=>{var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a((t=>((t,r,n,i)=>{if(!i||!i.has(e.getNodeId(n))){null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}})(t,n.sourceFile,i,o)));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,(n=>n.getStart(t)<r.start||n.getEnd()>e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,l=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(r,o),((t,r)=>n=>{var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(t=>t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code))})(c,n)),u=a(r,l&&l.relatedInformation&&e.find(l.relatedInformation,(t=>t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code)));if(u)return[i(t,u,(r=>e.textChanges.ChangeTracker.with(t,r)))]},getAllCodeActions(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,((t,n)=>{var c=n.relatedInformation&&e.find(n.relatedInformation,(t=>t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code)),l=a(o,c);if(l)return i(r,l,(e=>(e(t),[])),s)}))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="addMissingAwait",n=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,i=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],a=Il([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,n],i,!0);function o(t,r,n,i,a){var o=e.getFixableErrorSpanExpression(t,n);return o&&((t,r,n,i,a)=>{var o=a.getDiagnosticsProducingTypeChecker().getDiagnostics(t,i);return e.some(o,(t=>{var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,(t=>t.code===e.Diagnostics.Did_you_forget_to_use_await.code))}))})(t,r,n,i,a)&&l(o)?o:void 0}function s(r,n,i,o,s,c){var d=r.sourceFile,p=r.program,_=r.cancellationToken,f=((t,r,n,i,o)=>{var s=((t,r)=>{if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var n=void 0,i=!0,a=0,o=[t.left,t.right];a<o.length;a++){var s=o[a],c=r.getTypeAtLocation(s);if(r.getPromisedTypeOfPromise(c)){if(!e.isIdentifier(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}})(t,o);if(s){for(var c,u=s.isCompleteFix,d=t=>{var s=o.getSymbolAtLocation(t);if(!s)return"continue";var d=e.tryCast(s.valueDeclaration,e.isVariableDeclaration),p=d&&e.tryCast(d.name,e.isIdentifier),_=e.getAncestor(d,236);if(!d||!_||d.type||!d.initializer||_.getSourceFile()!==r||e.hasSyntacticModifier(_,1)||!p||!l(d.initializer))return u=!1,"continue";var f=i.getSemanticDiagnostics(r,n);if(e.FindAllReferences.Core.eachSymbolReferenceInFile(p,o,r,(n=>t!==n&&!((t,r,n,i)=>{var o=e.isPropertyAccessExpression(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)?t.parent:t,s=e.find(r,(e=>e.start===o.getStart(n)&&e.start+e.length===o.getEnd()));return s&&e.contains(a,s.code)||1&i.getTypeAtLocation(o).flags})(n,f,r,o))))return u=!1,"continue";(c||(c=[])).push({expression:d.initializer,declarationSymbol:s})},p=0,_=s.identifiers;p<_.length;p++)d(_[p]);return c&&{initializers:c,needsSecondPassForFixAll:!u}}})(n,d,_,p,o);if(f){var m=s((t=>{e.forEach(f.initializers,(e=>{var r=e.expression;return u(t,i,d,o,r,c)})),c&&f.needsSecondPassForFixAll&&u(t,i,d,o,n,c)}));return t.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",m,1===f.initializers.length?[e.Diagnostics.Add_await_to_initializer_for_0,f.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function c(n,i,a,o,s,c){var l=s((e=>u(e,a,n.sourceFile,o,i,c)));return t.createCodeFixAction(r,l,e.Diagnostics.Add_await,r,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function l(t){return 32768&t.kind||!!e.findAncestor(t,(t=>t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(255===t.parent.kind||212===t.parent.kind||213===t.parent.kind||168===t.parent.kind)))}function u(t,r,a,o,s,c){if(e.isBinaryExpression(s))for(var l=0,u=[s.left,s.right];l<u.length;l++){var p=u[l];if(!(c&&e.isIdentifier(p)&&(m=o.getSymbolAtLocation(p))&&c.has(e.getSymbolId(m)))){var _=o.getTypeAtLocation(p),f=o.getPromisedTypeOfPromise(_)?e.factory.createAwaitExpression(p):p;t.replaceNode(a,p,f)}}else if(r===n&&e.isPropertyAccessExpression(s.parent)){if(c&&e.isIdentifier(s.parent.expression)&&(m=o.getSymbolAtLocation(s.parent.expression))&&c.has(e.getSymbolId(m)))return;t.replaceNode(a,s.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s.parent.expression))),d(t,s.parent.expression,a)}else if(e.contains(i,r)&&e.isCallOrNewExpression(s.parent)){if(c&&e.isIdentifier(s)&&(m=o.getSymbolAtLocation(s))&&c.has(e.getSymbolId(m)))return;t.replaceNode(a,s,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s))),d(t,s,a)}else{var m;if(c&&e.isVariableDeclaration(s.parent)&&e.isIdentifier(s.parent.name)&&(m=o.getSymbolAtLocation(s.parent.name))&&!e.tryAddToSet(c,e.getSymbolId(m)))return;t.replaceNode(a,s,e.factory.createAwaitExpression(s))}}function d(t,r,n){var i=e.findPrecedingToken(r.pos,n);i&&e.positionIsASICandidate(i.end,i.parent,n)&&t.insertText(n,r.getStart(n),";")}t.registerCodeFix({fixIds:[r],errorCodes:a,getCodeActions(t){var r=t.sourceFile,n=t.errorCode,i=o(r,n,t.span,t.cancellationToken,t.program);if(i){var a=t.program.getTypeChecker(),l=r=>e.textChanges.ChangeTracker.with(t,r);return e.compact([s(t,i,n,a,l),c(t,i,n,a,l)])}},getAllCodeActions(r){var n=r.sourceFile,i=r.program,l=r.cancellationToken,u=r.program.getTypeChecker(),d=new e.Set;return t.codeFixAll(r,a,((e,t)=>{var a=o(n,t.code,t,l,i);if(a){var p=t=>(t(e),[]);return s(r,a,t.code,u,p,d)||c(r,a,t.code,u,p,d)}}))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="addMissingConst",n=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function i(t,r,n,i,s){var c=e.getTokenAtPosition(r,n),l=e.findAncestor(c,(t=>e.isForInOrOfStatement(t.parent)?t.parent.initializer===t:!(e=>{switch(e.kind){case 79:case 203:case 204:case 294:case 295:return!0;default:return!1}})(t)&&"quit"));if(l)return a(t,l,r,s);var u=c.parent;if(e.isBinaryExpression(u)&&63===u.operatorToken.kind&&e.isExpressionStatement(u.parent))return a(t,c,r,s);if(e.isArrayLiteralExpression(u)){var d=i.getTypeChecker();if(!e.every(u.elements,(t=>{return r=t,n=d,!!(i=e.isIdentifier(r)?r:e.isAssignmentExpression(r,!0)&&e.isIdentifier(r.left)?r.left:void 0)&&!n.getSymbolAtLocation(i);var r,n,i})))return;return a(t,u,r,s)}var p=e.findAncestor(c,(t=>!!e.isExpressionStatement(t.parent)||!(e=>{switch(e.kind){case 79:case 220:case 27:return!0;default:return!1}})(t)&&"quit"));if(p){if(!o(p,i.getTypeChecker()))return;return a(t,p,r,s)}}function a(t,r,n,i){i&&!e.tryAddToSet(i,r)||t.insertModifierBefore(n,85,r)}function o(t,r){return!!e.isBinaryExpression(t)&&(27===t.operatorToken.kind?e.every([t.left,t.right],(e=>o(e,r))):63===t.operatorToken.kind&&e.isIdentifier(t.left)&&!r.getSymbolAtLocation(t.left))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start,n.program)));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions(r){var a=new e.Set;return t.codeFixAll(r,n,((e,t)=>i(e,t.file,t.start,r.program,a)))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="addMissingDeclareProperty",n=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;166!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,135,o)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start)));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions(r){var a=new e.Set;return t.codeFixAll(r,n,((e,t)=>i(e,t.file,t.start,a)))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start)));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start)))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createTypeReferenceNode(a.name,void 0),c=e.factory.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?e.factory.createArrayTypeNode(s):s,a.initializer);t.replaceNode(r,a,c)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start)));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start)))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="addOptionalPropertyUndefined",n=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];function i(t,r){var n;if(t){if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind)return{source:t.parent.right,target:t.parent.left};if(e.isVariableDeclaration(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(e.isCallExpression(t.parent)){var a=r.getSymbolAtLocation(t.parent.expression);if(!(null==a?void 0:a.valueDeclaration)||!e.isFunctionLikeKind(a.valueDeclaration.kind))return;if(!e.isExpression(t))return;var o=t.parent.arguments.indexOf(t);if(-1===o)return;var s=a.valueDeclaration.parameters[o].name;if(e.isIdentifier(s))return{source:t,target:s}}else if(e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)||e.isShorthandPropertyAssignment(t.parent)){var c=i(t.parent.parent,r);if(!c)return;var l=r.getPropertyOfType(r.getTypeAtLocation(c.target),t.parent.name.text),u=null===(n=null==l?void 0:l.declarations)||void 0===n?void 0:n[0];if(!u)return;return{source:e.isPropertyAssignment(t.parent)?t.parent.initializer:t.parent.name,target:u}}}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.program.getTypeChecker(),o=((t,r,n)=>{var a,o,s=i(e.getFixableErrorSpanExpression(t,r),n);if(!s)return e.emptyArray;var c=s.source,l=s.target,u=((t,r,n)=>e.isPropertyAccessExpression(r)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(r.expression)).length&&n.getTypeAtLocation(t)===n.getUndefinedType())(c,l,n)?n.getTypeAtLocation(l.expression):n.getTypeAtLocation(l);return(null===(o=null===(a=u.symbol)||void 0===a?void 0:a.declarations)||void 0===o?void 0:o.some((t=>e.getSourceFileOfNode(t).fileName.match(/\.d\.ts$/))))?e.emptyArray:n.getExactOptionalProperties(u)})(n.sourceFile,n.span,a);if(o.length){var s=e.textChanges.ChangeTracker.with(n,(t=>((t,r)=>{for(var n=0,i=r;n<i.length;n++){var a=i[n].valueDeclaration;if(a&&(e.isPropertySignature(a)||e.isPropertyDeclaration(a))&&a.type){var o=e.factory.createUnionTypeNode(Il(Il([],186===a.type.kind?a.type.types:[a.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));t.replaceNode(a.getSourceFile(),a.type,o)}}})(t,o)));return[t.createCodeFixActionWithoutFixAll(r,s,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[r]})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return(t=>e.isFunctionLikeDeclaration(t)||253===t.kind||165===t.kind||166===t.kind)(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some((t=>!!e.getJSDocType(t))))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.factory.createToken(20));for(var o=0,s=n.parameters;o<s.length;o++){var l=s[o];if(!l.type){var u=e.getJSDocType(l);u&&t.tryInsertTypeAnnotation(r,l,c(u))}}if(a&&t.insertNodeAfter(r,e.last(n.parameters),e.factory.createToken(21)),!n.type){var d=e.getJSDocReturnType(n);d&&t.tryInsertTypeAnnotation(r,n,c(d))}}else{var p=e.Debug.checkDefined(e.getJSDocType(n),"A JSDocType for this declaration should exist");e.Debug.assert(!n.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(r,n,c(p))}}function c(t){switch(t.kind){case 310:case 311:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 314:return(t=>e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("undefined",e.emptyArray)]))(t);case 313:return c(t.type);case 312:return(t=>e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("null",e.emptyArray)]))(t);case 316:return(t=>e.factory.createArrayTypeNode(e.visitNode(t.type,c)))(t);case 315:return(t=>{var r;return e.factory.createFunctionTypeNode(e.emptyArray,t.parameters.map(l),null!==(r=t.type)&&void 0!==r?r:e.factory.createKeywordTypeNode(130))})(t);case 177:return(t=>{var r=t.typeName,n=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t))return(t=>{var r=e.factory.createParameterDeclaration(void 0,void 0,void 0,146===t.typeArguments[0].kind?"n":"s",void 0,e.factory.createTypeReferenceNode(146===t.typeArguments[0].kind?"number":"string",[]),void 0),n=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[r],t.typeArguments[1])]);return e.setEmitFlags(n,1),n})(t);var i=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}r=e.factory.createIdentifier(i),n="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)])}return e.factory.createTypeReferenceNode(r,n)})(t);default:var r=e.visitEachChild(t,c,e.nullTransformationContext);return e.setEmitFlags(r,1),r}}function l(t){var r=t.parent.parameters.indexOf(t),n=316===t.type.kind&&r===t.parent.parameters.length-1,i=t.name||(n?"rest":"arg"+r),a=n?e.factory.createToken(25):t.dotDotDotToken;return e.factory.createParameterDeclaration(t.decorators,t.modifiers,a,i,t.questionToken,e.visitNode(t.type,c),t.initializer)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=i(n.sourceFile,n.span.start);if(a){var o=e.textChanges.ChangeTracker.with(n,(e=>s(e,n.sourceFile,a)));return[t.createCodeFixAction(r,o,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&s(e,t.file,r)}))}),t.parameterShouldGetTypeFromJSDoc=a})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="convertFunctionToEs6Class",n=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(t,r,n,i,s,c){var l=i.getSymbolAtLocation(e.getTokenAtPosition(r,n));if(l&&l.valueDeclaration&&19&l.flags){var u=l.valueDeclaration;if(e.isFunctionDeclaration(u))t.replaceNode(r,u,(t=>{var r=_(l);t.body&&r.unshift(e.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));var n=a(t,93);return e.factory.createClassDeclaration(void 0,n,t.name,void 0,void 0,r)})(u));else if(e.isVariableDeclaration(u)){var d=(t=>{var r=t.initializer;if(r&&e.isFunctionExpression(r)&&e.isIdentifier(t.name)){var n=_(t.symbol);r.body&&n.unshift(e.factory.createConstructorDeclaration(void 0,void 0,r.parameters,r.body));var i=a(t.parent.parent,93);return e.factory.createClassDeclaration(void 0,i,t.name,void 0,void 0,n)}})(u);if(!d)return;var p=u.parent.parent;e.isVariableDeclarationList(u.parent)&&u.parent.declarations.length>1?(t.delete(r,u),t.insertNodeAfter(r,p,d)):t.replaceNode(r,p,d)}}function _(n){var i=[];return n.members&&n.members.forEach(((e,n)=>{if("constructor"===n&&e.valueDeclaration)t.delete(r,e.valueDeclaration.parent);else{var a=l(e,void 0);a&&i.push.apply(i,a)}})),n.exports&&n.exports.forEach((t=>{if("prototype"===t.name&&t.declarations){var r=t.declarations[0];1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right)&&(n=l(r.parent.right.symbol,void 0))&&i.push.apply(i,n)}else{var n;(n=l(t,[e.factory.createToken(124)]))&&i.push.apply(i,n)}})),i;function l(n,i){var l=[];if(!(8192&n.flags||4096&n.flags))return l;var u,d,p=n.valueDeclaration,_=p.parent,f=_.right;if(u=p,d=f,!(e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(d):e.every(u.properties,(t=>!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))))))return l;var m=_.parent&&237===_.parent.kind?_.parent:_;if(t.delete(r,m),!f)return l.push(e.factory.createPropertyDeclaration([],i,n.name,void 0,void 0,void 0)),l;if(e.isAccessExpression(p)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var g=e.getQuotePreference(r,s),h=((t,r,n)=>{if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;return e.isNumericLiteral(i)?i:e.isStringLiteralLike(i)?e.isIdentifierText(i.text,e.getEmitScriptTarget(r))?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i:void 0})(p,c,g);return h?v(l,f,h):l}if(e.isObjectLiteralExpression(f))return e.flatMap(f.properties,(t=>e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)?l.concat(t):e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)?v(l,t.initializer,t.name):o(t)?l:[]));if(e.isSourceFileJS(r))return l;if(!e.isPropertyAccessExpression(p))return l;var y=e.factory.createPropertyDeclaration(void 0,i,p.name,void 0,void 0,f);return e.copyLeadingComments(_.parent,y,r),l.push(y),l;function v(t,n,o){return e.isFunctionExpression(n)?((t,n,o)=>{var s=e.concatenate(i,a(n,131)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(_,c,r),t.concat(c)})(t,n,o):((t,n,o)=>{var s,c=n.body;s=234===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(n,131)),u=e.factory.createMethodDeclaration(void 0,l,void 0,o,void 0,void 0,n.parameters,void 0,s);return e.copyLeadingComments(_,u,r),t.concat(u)})(t,n,o)}}}}function a(t,r){return e.filter(t.modifiers,(e=>e.kind===r))}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())));return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r,n="convertToAsyncFunction",i=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],a=!0;function o(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)){var c=new e.Map,l=e.isInJSFile(a),_=((t,r)=>{if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){s(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):s(i,r,"catch")||s(i,r,"finally")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):u(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n})(a,i),m=((t,r,n)=>{var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=S(r.getTypeAtLocation(o),r),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var u=o.text,p=a.get(u);if(p&&p.some((e=>e!==s))){var _=d(o,a);i.set(l,_.identifier),n.set(l,_),a.add(u,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(l,k(f)),a.add(u,s)}}}else{var m=e.firstOrUndefined(c.parameters),g=(null==m?void 0:m.valueDeclaration)&&e.isParameter(m.valueDeclaration)&&e.tryCast(m.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),h=d(g,a);n.set(l,h),a.add(g.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(t=>{if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))})(a,i,c);if(e.returnsPromise(m,i)){var g=m.body&&e.isBlock(m.body)?((t,r)=>{var n=[];return e.forEachReturnStatement(t,(t=>{e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n})(m.body,i):e.emptyArray,h={checker:i,synthNamesMap:c,setOfExpressionsToReturn:_,isInJSFile:l};if(g.length){var y=a.modifiers?a.modifiers.end:a.decorators?e.skipTrivia(r.text,a.decorators.end):a.getStart(r),v=a.modifiers?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,y,131,v);for(var b=n=>{if(e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=f(a,a,h,!1);if(p())return!0;t.replaceNodeWithNodes(r,n,o)}else if(!e.isFunctionLike(a)&&(e.forEachChild(a,i),p()))return!0})),p())return{value:void 0}},x=0,E=g;x<E.length;x++){var D=b(E[x]);if("object"==typeof D)return D.value}}}}}function s(t,r,n){if(!e.isCallExpression(t))return!1;var i=e.hasPropertyAccessExpressionWithName(t,n)&&r.getTypeAtLocation(t);return!(!i||!r.getPromisedTypeOfPromise(i))}function c(t,r){return 0!=(4&e.getObjectFlags(t))&&t.target===r}function l(t,r,n){if("finally"!==t.expression.name.escapedText){var i=n.getTypeAtLocation(t.expression.expression);if(c(i,n.getPromiseType())||c(i,n.getPromiseLikeType())){if("then"!==t.expression.name.escapedText)return e.elementAt(t.typeArguments,0);if(r===e.elementAt(t.arguments,0))return e.elementAt(t.typeArguments,0);if(r===e.elementAt(t.arguments,1))return e.elementAt(t.typeArguments,1)}}}function u(t,r){return!!e.isExpression(t)&&!!r.getPromisedTypeOfPromise(r.getTypeAtLocation(t))}function d(t,r){var n=(r.get(t.text)||e.emptyArray).length;return k(0===n?t:e.factory.createIdentifier(t.text+"_"+n))}function p(){return!a}function _(){return a=!1,e.emptyArray}function f(t,r,n,i,a){if(s(r,n.checker,"then"))return((t,r,n,i,a,o)=>{if(!r||m(i,r))return y(t,n,i,a,o);if(n&&!m(i,n))return _();var s=T(r,i),c=f(t.expression.expression,t.expression.expression,i,!0,s);if(p())return _();var l=x(r,a,o,s,t,i);return p()?_():e.concatenate(c,l)})(r,e.elementAt(r.arguments,0),e.elementAt(r.arguments,1),n,i,a);if(s(r,n.checker,"catch"))return y(r,e.elementAt(r.arguments,0),n,i,a);if(s(r,n.checker,"finally"))return((t,r,n,i,a)=>{if(!r||m(n,r))return f(t,t.expression.expression,n,i,a);var o=g(t,n,a),s=f(t,t.expression.expression,n,!0,o);if(p())return _();var c=x(r,i,void 0,void 0,t,n);if(p())return _();var l=e.factory.createBlock(s),u=e.factory.createBlock(c);return h(t,n,e.factory.createTryStatement(l,void 0,u),o,a)})(r,e.elementAt(r.arguments,0),n,i,a);if(e.isPropertyAccessExpression(r))return f(t,r.expression,n,i,a);var o=n.checker.getTypeAtLocation(r);return o&&n.checker.getPromisedTypeOfPromise(o)?(e.Debug.assertNode(e.getOriginalNode(r).parent,e.isPropertyAccessExpression),((t,r,n,i,a)=>{if(I(t,n)){var o=e.getSynthesizedDeepClone(r);return i&&(o=e.factory.createAwaitExpression(o)),[e.factory.createReturnStatement(o)]}return v(a,e.factory.createAwaitExpression(r),void 0)})(t,r,n,i,a)):_()}function m(t,r){var n=t.checker;if(104===r.kind)return!0;if(e.isIdentifier(r)&&!e.isGeneratedIdentifier(r)&&"undefined"===e.idText(r)){var i=n.getSymbolAtLocation(r);return!i||n.isUndefinedSymbol(i)}return!1}function g(t,r,n){var i;return n&&!I(t,r)&&(P(n)?(i=n,r.synthNamesMap.forEach(((t,i)=>{if(t.identifier.text===n.identifier.text){var a=(o=n,k(e.factory.createUniqueName(o.identifier.text,16)));r.synthNamesMap.set(i,a)}var o}))):i=k(e.factory.createUniqueName("result",16),n.types),F(i)),i}function h(t,r,n,i,a){var o,s=[];if(i&&!I(t,r)){o=e.getSynthesizedDeepClone(F(i));var c=i.types,l=r.checker.getUnionType(c,2),u=r.isInJSFile?void 0:r.checker.typeToTypeNode(l,void 0,void 0),d=[e.factory.createVariableDeclaration(o,void 0,u)],p=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(d,1));s.push(p)}return s.push(n),a&&o&&1===a.kind&&s.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(w(a)),void 0,void 0,o)],2))),s}function y(t,r,n,i,a){if(!r||m(n,r))return f(t,t.expression.expression,n,i,a);var o=T(r,n),s=g(t,n,a),c=f(t,t.expression.expression,n,!0,s);if(p())return _();var l=x(r,i,s,o,t,n);if(p())return _();var u=e.factory.createBlock(c),d=e.factory.createCatchClause(o&&e.getSynthesizedDeepClone(N(o)),e.factory.createBlock(l));return h(t,n,e.factory.createTryStatement(u,d,void 0),s,a)}function v(t,r,n){return!t||C(t)?[e.factory.createExpressionStatement(r)]:P(t)&&t.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(A(t)),r))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(N(t)),void 0,n,r)],2))]}function b(t,r){if(r&&t){var n=e.factory.createUniqueName("result",16);return Il(Il([],v(k(n),t,r),!0),[e.factory.createReturnStatement(n)],!1)}return[e.factory.createReturnStatement(t)]}function x(t,r,n,i,a,o){var s;switch(t.kind){case 104:break;case 205:case 79:if(!i)break;var c=e.factory.createCallExpression(e.getSynthesizedDeepClone(t),void 0,P(i)?[A(i)]:[]);if(I(a,o))return b(c,l(a,t,o.checker));var d=o.checker.getTypeAtLocation(t),p=o.checker.getSignaturesOfType(d,0);if(!p.length)return _();var f=p[0].getReturnType(),m=v(n,e.factory.createAwaitExpression(c),l(a,t,o.checker));return n&&n.types.push(o.checker.getAwaitedType(f)||f),m;case 212:case 213:var g=t.body,h=null===(s=S(o.checker.getTypeAtLocation(t),o.checker))||void 0===s?void 0:s.getReturnType();if(e.isBlock(g)){for(var y=[],x=!1,T=0,C=g.statements;T<C.length;T++){var k=C[T];if(e.isReturnStatement(k))if(x=!0,e.isReturnStatementWithFixablePromiseHandler(k,o.checker))y=y.concat(D(o,k,r,n));else{var w=h&&k.expression?E(o.checker,h,k.expression):k.expression;y.push.apply(y,b(w,l(a,t,o.checker)))}else{if(r&&e.forEachReturnStatement(k,e.returnTrue))return _();y.push(k)}}return I(a,o)?y.map((t=>e.getSynthesizedDeepClone(t))):((t,r,n,i)=>{for(var a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(e.isReturnStatement(c)){if(c.expression){var l=u(c.expression,n.checker)?e.factory.createAwaitExpression(c.expression):c.expression;void 0===r?a.push(e.factory.createExpressionStatement(l)):P(r)&&r.hasBeenDeclared?a.push(e.factory.createExpressionStatement(e.factory.createAssignment(A(r),l))):a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(N(r),void 0,void 0,l)],2)))}}else a.push(e.getSynthesizedDeepClone(c))}return i||void 0===r||a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(N(r),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),a})(y,n,o,x)}var F=e.isFixablePromiseHandler(g,o.checker)?D(o,e.factory.createReturnStatement(g),r,n):e.emptyArray;if(F.length>0)return F;if(h){if(w=E(o.checker,h,g),I(a,o))return b(w,l(a,t,o.checker));var O=v(n,w,void 0);return n&&n.types.push(o.checker.getAwaitedType(h)||h),O}return _();default:return _()}return e.emptyArray}function E(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function S(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function D(t,r,n,i){var a=[];return e.forEachChild(r,(function r(o){if(e.isCallExpression(o)){var s=f(o,o,t,n,i);if((a=a.concat(s)).length>0)return}else e.isFunctionLike(o)||e.forEachChild(o,r)})),a}function T(t,r){var n,i=[];if(e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){return e.isIdentifier(r)?a(r):((t,r,n)=>(void 0===r&&(r=e.emptyArray),void 0===n&&(n=[]),{kind:1,bindingPattern:t,elements:r,types:n}))(r,e.flatMap(r.elements,(r=>e.isOmittedExpression(r)?[]:[t(r.name)])))}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name)),n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=(e=>e.symbol?e.symbol:r.checker.getSymbolAtLocation(e))((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||k(t,i)}}function C(t){return!t||(P(t)?!t.identifier.text:e.every(t.elements,C))}function k(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function A(e){return e.hasBeenReferenced=!0,e.identifier}function N(e){return P(e)?F(e):w(e)}function w(e){for(var t=0,r=e.elements;t<r.length;t++)N(r[t]);return e.bindingPattern}function F(e){return e.hasBeenDeclared=!0,e.identifier}function P(e){return 0===e.kind}function I(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes:i,getCodeActions(r){a=!0;var i=e.textChanges.ChangeTracker.with(r,(e=>o(e,r.sourceFile,r.span.start,r.program.getTypeChecker())));return a?[t.createCodeFixAction(n,i,e.Diagnostics.Convert_to_async_function,n,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[n],getAllCodeActions:e=>t.codeFixAll(e,i,((t,r)=>o(t,r.file,r.start,e.program.getTypeChecker())))}),(e=>{e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"})(r||(r={}))})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{function r(t,r,n,i){for(var a=0,o=t.imports;a<o.length;a++){var s=o[a],c=e.getResolvedModule(t,s.text,e.getModeForUsageLocation(t,s));if(c&&c.resolvedFileName===r.fileName){var l=e.importFromModuleSpecifier(s);switch(l.kind){case 264:n.replaceNode(t,l,e.makeImport(l.name,void 0,s,i));break;case 207:e.isRequireCall(l,!1)&&n.replaceNode(t,l,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(l),"default"))}}}}function n(t,r){t.forEachChild((function n(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i.expression)&&e.isIdentifier(i.name)){var a=i.parent;r(i,e.isBinaryExpression(a)&&a.left===i&&63===a.operatorToken.kind)}i.forEachChild(n)}))}function i(t,r,n,i,l,u,d,_,f){switch(r.kind){case 236:return a(t,r,i,n,l,u,f),!1;case 237:var h=r.expression;switch(h.kind){case 207:return e.isRequireCall(h,!0)&&i.replaceNode(t,r,e.makeImport(void 0,void 0,h.arguments[0],f)),!1;case 220:return 63===h.operatorToken.kind&&((t,r,n,i,a,l)=>{var u=n.left,d=n.right;if(!e.isPropertyAccessExpression(u))return!1;if(e.isExportsOrModuleExportsOrAlias(t,u)){if(!e.isExportsOrModuleExportsOrAlias(t,d)){var _=e.isObjectLiteralExpression(d)?((t,r)=>{var n=e.mapAllOrFail(t.properties,(t=>{switch(t.kind){case 171:case 172:case 295:case 296:return;case 294:return e.isIdentifier(t.name)?((t,r,n)=>{var i=[e.factory.createToken(93)];switch(r.kind){case 212:var a=r.name;if(a&&a.text!==t)return o();case 213:return p(t,i,r,n);case 225:return((t,r,n,i)=>e.factory.createClassDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),c(n.members,i)))(t,i,r,n);default:return o()}function o(){return m(i,e.factory.createIdentifier(t),c(r,n))}})(t.name.text,t.initializer,r):void 0;case 168:return e.isIdentifier(t.name)?p(t.name.text,[e.factory.createToken(93)],t,r):void 0;default:e.Debug.assertNever(t,"Convert to ES6 got invalid prop kind ".concat(t.kind))}}));return n&&[n,!1]})(d,l):e.isRequireCall(d,!0)?((t,r)=>{var n=t.text,i=r.getSymbolAtLocation(t),a=i?i.exports:e.emptyMap;return a.has("export=")?[[s(n)],!0]:a.has("default")?a.size>1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]})(d.arguments[0],r):void 0;return _?(i.replaceNodeWithNodes(t,n.parent,_[0]),_[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),d.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&((t,r,n,i)=>{var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[m(void 0,o,r.right),g([e.factory.createExportSpecifier(!1,o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!((t,r,n)=>{var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(93),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}})(r,t,n)})(t,n,i,a);return!1})(t,n,h,i,d,_)}default:return!1}}function a(r,n,i,a,o,s,c){var u,d=n.declarationList,p=!1,g=e.map(d.declarations,(n=>{var i=n.name,u=n.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(r,u))return p=!0,h([]);if(e.isRequireCall(u,!0))return p=!0,((r,n,i,a,o,s)=>{switch(r.kind){case 200:var c=e.mapAllOrFail(r.elements,(t=>t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)));if(c)return h([e.makeImport(void 0,c,n,s)]);case 201:var u=l(t.moduleSpecifierToValidIdentifier(n.text,o),a);return h([e.makeImport(e.factory.createIdentifier(u),void 0,n,s),m(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(u))]);case 79:return((t,r,n,i,a)=>{for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,u=!1,d=0,p=i.original.get(t.text);d<p.length;d++){var _=p[d];if(n.getSymbolAtLocation(_)===s&&_!==t){var f=_.parent;if(e.isPropertyAccessExpression(f)){var m=f.name.text;if("default"===m){u=!0;var g=_.getText();(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(g))}else{e.Debug.assert(f.expression===_,"Didn't expect expression === use");var y=c.get(m);void 0===y&&(y=l(m,i),c.set(m,y)),(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(y))}}else u=!0}}var v=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(t=>{var r=t[0],n=t[1];return e.factory.createImportSpecifier(!1,r===n?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(n))})));return v||(u=!0),h([e.makeImport(u?e.getSynthesizedDeepClone(t):void 0,v,r,a)],o)})(r,n,i,a,s);default:return e.Debug.assertNever(r,"Convert to ES module got invalid name kind ".concat(r.kind))}})(i,u.arguments[0],a,o,s,c);if(e.isPropertyAccessExpression(u)&&e.isRequireCall(u.expression,!0))return p=!0,((t,r,n,i,a)=>{switch(t.kind){case 200:case 201:var o=l(r,i);return h([_(o,r,n,a),m(void 0,t,e.factory.createIdentifier(o))]);case 79:return h([_(t.text,r,n,a)]);default:return e.Debug.assertNever(t,"Convert to ES module got invalid syntax form ".concat(t.kind))}})(i,u.name.text,u.expression.arguments[0],o,c)}return h([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([n],d.flags))])}));if(p)return i.replaceNodeWithNodes(r,n,e.flatMap(g,(e=>e.newImports))),e.forEach(g,(t=>{t.useSitesToUnqualify&&e.copyEntries(t.useSitesToUnqualify,null!=u?u:u=new e.Map)})),u}function o(e){return g(void 0,e)}function s(t){return g([e.factory.createExportSpecifier(!1,void 0,"default")],t)}function c(t,r){return r&&e.some(e.arrayFrom(r.keys()),(r=>e.rangeContainsRange(t,r)))?e.isArray(t)?e.getSynthesizedDeepClonesWithReplacements(t,!0,n):e.getSynthesizedDeepCloneWithReplacements(t,!0,n):t;function n(e){if(205===e.kind){var t=r.get(e);return r.delete(e),t}}}function l(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_".concat(e);return t.additional.add(e),e}function u(t){var r=e.createMultiMap();return d(t,(e=>r.add(e.text,e))),r}function d(t,r){e.isIdentifier(t)&&(e=>{var t=e.parent;switch(t.kind){case 205:return t.name!==e;case 202:case 269:return t.propertyName!==e;default:return!0}})(t)&&r(t),t.forEachChild((e=>d(e,r)))}function p(t,r,n,i){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.factory.converters.convertToFunctionBlock(c(n.body,i)))}function _(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[f(r,t)],n,i)}function f(t,r){return e.factory.createImportSpecifier(!1,void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function m(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function g(t,r){return e.factory.createExportDeclaration(void 0,void 0,!1,t&&e.factory.createNamedExports(t),void 0===r?void 0:e.factory.createStringLiteral(r))}function h(e,t){return{newImports:e,useSitesToUnqualify:t}}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(o){var s=o.sourceFile,c=o.program,d=o.preferences,p=e.textChanges.ChangeTracker.with(o,(t=>{if(((t,r,o,s,c)=>{var d={original:u(t),additional:new e.Set},p=((t,r,i)=>{var a=new e.Map;return n(t,(t=>{var n=t.name,o=n.text,s=n.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||r.resolveName(o,t,111551,!0))&&a.set(o,l("_".concat(o),i))})),a})(t,r,d);!((t,r,i)=>{n(t,((n,a)=>{if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}}))})(t,p,o);for(var _,f=!1,m=0,g=e.filter(t.statements,e.isVariableStatement);m<g.length;m++){var h=g[m],y=a(t,h,o,r,d,s,c);y&&e.copyEntries(y,null!=_?_:_=new e.Map)}for(var v=0,b=e.filter(t.statements,(t=>!e.isVariableStatement(t)));v<b.length;v++){h=b[v];var x=i(t,h,r,o,d,s,p,_,c);f=f||x}return null==_||_.forEach(((e,r)=>{o.replaceNode(t,r,e)})),f})(s,c.getTypeChecker(),t,e.getEmitScriptTarget(c.getCompilerOptions()),e.getQuotePreference(s,d)))for(var o=0,p=c.getSourceFiles();o<p.length;o++){var _=p[o];r(_,s,t,e.getQuotePreference(_,d))}}));return[t.createCodeFixActionWithoutFixAll("convertToEsModule",p,e.Diagnostics.Convert_to_ES_module)]}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="correctQualifiedNameToIndexedAccessType",n=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function i(t,r){var n=e.findAncestor(e.getTokenAtPosition(t,r),e.isQualifiedName);return e.Debug.assert(!!n,"Expected position to be owned by a qualified name."),e.isIdentifier(n.left)?n:void 0}function a(t,r,n){var i=n.right.text,a=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(n.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(i)));t.replaceNode(r,n,a)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=i(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>a(e,n.sourceFile,o))),c="".concat(o.left.text,'["').concat(o.right.text,'"]');return[t.createCodeFixAction(r,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,c],r,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],n="convertToTypeOnlyExport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isExportSpecifier)}function a(t,n,i){if(n){var a=n.parent,o=a.parent,s=((t,n)=>{var i=t.parent;if(1===i.elements.length)return i.elements;var a=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(i),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return e.filter(i.elements,(n=>{var i;return n===t||(null===(i=e.findDiagnosticForNode(n,a))||void 0===i?void 0:i.code)===r[0]}))})(n,i);if(s.length===a.elements.length)t.insertModifierBefore(i.sourceFile,151,a);else{var c=e.factory.updateExportDeclaration(o,o.decorators,o.modifiers,!1,e.factory.updateNamedExports(a,e.filter(a.elements,(t=>!e.contains(s,t)))),o.moduleSpecifier,void 0),l=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(s),o.moduleSpecifier,void 0);t.replaceNode(i.sourceFile,o,c,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),t.insertNodeAfter(i.sourceFile,o,l)}}}t.registerCodeFix({errorCodes:r,getCodeActions(r){var o=e.textChanges.ChangeTracker.with(r,(e=>a(e,i(r.span,r.sourceFile),r)));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_export,n,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[n],getAllCodeActions(n){var o=new e.Map;return t.codeFixAll(n,r,((t,r)=>{var s=i(r,n.sourceFile);s&&e.addToSeen(o,e.getNodeId(s.parent.parent))&&a(t,s,n)}))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],n="convertToTypeOnlyImport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isImportDeclaration)}function a(t,r,n){if(null==r?void 0:r.importClause){var i=r.importClause;t.insertText(n.sourceFile,r.getStart()+"import".length," type"),i.name&&i.namedBindings&&(t.deleteNodeRangeExcludingEnd(n.sourceFile,i.name,r.importClause.namedBindings),t.insertNodeBefore(n.sourceFile,r,e.factory.updateImportDeclaration(r,void 0,void 0,e.factory.createImportClause(!0,i.name,void 0),r.moduleSpecifier,void 0)))}}t.registerCodeFix({errorCodes:r,getCodeActions(r){var o=e.textChanges.ChangeTracker.with(r,(e=>{a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_import,n,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[n],getAllCodeActions:e=>t.codeFixAll(e,r,((t,r)=>{a(t,i(r,e.sourceFile),e)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="convertLiteralTypeToMappedType",n=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=e.cast(n.parent.parent,e.isPropertySignature),a=n.getText(t);return{container:e.cast(i.parent,e.isTypeLiteralNode),typeNode:i.type,constraint:a,name:"K"===a?"P":"K"}}}function a(t,r,n){var i=n.container,a=n.typeNode,o=n.constraint,s=n.name;t.replaceNode(r,i,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(s,e.factory.createTypeReferenceNode(o)),void 0,void 0,a,void 0))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=c.name,u=c.constraint,d=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,d,[e.Diagnostics.Convert_0_to_1_in_0,u,l],r,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],n="fixClassIncorrectlyImplementsInterface";function i(t,r){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(t,r)),"There should be a containing class")}function a(t){return!(t.valueDeclaration&&8&e.getEffectiveModifierFlags(t.valueDeclaration))}function o(r,n,i,o,s,c){var l=r.program.getTypeChecker(),u=((t,r)=>{var n=e.getEffectiveBaseTypeNode(t);if(!n)return e.createSymbolTable();var i=r.getTypeAtLocation(n),o=r.getPropertiesOfType(i);return e.createSymbolTable(o.filter(a))})(o,l),d=l.getTypeAtLocation(n),p=l.getPropertiesOfType(d).filter(e.and(a,(e=>!u.has(e.escapedName)))),_=l.getTypeAtLocation(o),f=e.find(o.members,(t=>e.isConstructorDeclaration(t)));_.getNumberIndexType()||g(d,1),_.getStringIndexType()||g(d,0);var m=t.createImportAdder(i,r.program,c,r.host);function g(e,n){var a=l.getIndexInfoOfType(e,n);a&&h(i,o,l.indexInfoToIndexSignatureDeclaration(a,o,void 0,t.getNoopSymbolTrackerWithResolver(r)))}function h(e,t,r){f?s.insertNodeAfter(e,f,r):s.insertNodeAtClassStart(e,t,r)}t.createMissingMemberNodes(o,p,i,r,c,m,(e=>h(i,o,e))),m.writeFixes(s)}t.registerCodeFix({errorCodes:r,getCodeActions(r){var a=r.sourceFile,s=r.span,c=i(a,s.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(c),(i=>{var s=e.textChanges.ChangeTracker.with(r,(e=>o(r,i,a,c,e,r.preferences)));return 0===s.length?void 0:t.createCodeFixAction(n,s,[e.Diagnostics.Implement_interface_0,i.getText(a)],n,e.Diagnostics.Implement_all_unimplemented_interfaces)}))},fixIds:[n],getAllCodeActions(n){var a=new e.Map;return t.codeFixAll(n,r,((t,r)=>{var s=i(r.file,r.start);if(e.addToSeen(a,e.getNodeId(s)))for(var c=0,l=e.getEffectiveImplementsTypeNodes(s);c<l.length;c++){var u=l[c];o(n,u,r.file,s,t,n.preferences)}}))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{t.importFixName="import";var r,n,i="fixMissingImport",a=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function o(t,r,n,i,a){var o=r.getCompilerOptions(),c=[],u=[],d=new e.Map,_=new e.Map;return{addImportFromDiagnostic(e,t){var r=f(t,e.code,e.start,n);r&&r.fixes.length&&m(r)},addImportFromExportedSymbol(c,u){var d=e.Debug.checkDefined(c.parent),_=e.getNameForExportedSymbol(c,e.getEmitScriptTarget(o)),f=r.getTypeChecker(),g=f.getMergedSymbol(e.skipAlias(c,f)),h=l(t,g,d,_,a,r,i,n),y=p(t,r),v=s(t,h,d,_,r,void 0,!!u,y,a,i);v&&m({fixes:[v],symbolName:_})},writeFixes(r){for(var n,a=e.getQuotePreference(t,i),s=0,l=c;s<l.length;s++){var p=l[s];b(r,t,p)}for(var f=0,m=u;f<m.length;f++)p=m[f],x(r,t,p,a);d.forEach((n=>{var i=n.importClauseOrBindingPattern,a=n.defaultImport,s=n.namedImports;v(r,t,i,a,e.arrayFrom(s.entries(),(e=>{var t=e[0];return{addAsTypeOnly:e[1],name:t}})),o)})),_.forEach(((t,r)=>{var i=t.useRequire,o=t.defaultImport,s=t.namedImports,c=t.namespaceLikeImport,l=(i?T:D)(r.slice(2),a,o,s&&e.arrayFrom(s.entries(),(e=>{var t=e[0];return{addAsTypeOnly:e[1],name:t}})),c);n=e.combine(n,l)})),n&&e.insertImports(r,t,n,!0)},hasFixes:()=>c.length>0||u.length>0||d.size>0||_.size>0};function m(t){var r,n,i=t.fixes,a=t.symbolName,o=e.first(i);switch(o.kind){case 0:c.push(o);break;case 1:u.push(o);break;case 2:var s=o.importClauseOrBindingPattern,l=o.importKind,p=o.addAsTypeOnly,f=String(e.getNodeId(s));if((y=d.get(f))||d.set(f,y={importClauseOrBindingPattern:s,defaultImport:void 0,namedImports:new e.Map}),0===l){var m=null==y?void 0:y.namedImports.get(a);y.namedImports.set(a,v(m,p))}else e.Debug.assert(void 0===y.defaultImport||y.defaultImport.name===a,"(Add to Existing) Default import should be missing or match symbolName"),y.defaultImport={name:a,addAsTypeOnly:v(null===(r=y.defaultImport)||void 0===r?void 0:r.addAsTypeOnly,p)};break;case 3:var g=o.moduleSpecifier,h=(l=o.importKind,o.useRequire),y=((e,t,r,n)=>{var i=b(e,!0),a=b(e,!1),o=_.get(i),s=_.get(a),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:r};return 1===t&&2===n?o||(_.set(i,c),c):1===n&&(o||s)?o||s:s||(_.set(a,c),c)})(g,l,h,p=o.addAsTypeOnly);switch(e.Debug.assert(y.useRequire===h,"(Add new) Tried to add an `import` and a `require` for the same module"),l){case 1:e.Debug.assert(void 0===y.defaultImport||y.defaultImport.name===a,"(Add new) Default import should be missing or match symbolName"),y.defaultImport={name:a,addAsTypeOnly:v(null===(n=y.defaultImport)||void 0===n?void 0:n.addAsTypeOnly,p)};break;case 0:m=(y.namedImports||(y.namedImports=new e.Map)).get(a),y.namedImports.set(a,v(m,p));break;case 3:case 2:e.Debug.assert(void 0===y.namespaceLikeImport||y.namespaceLikeImport.name===a,"Namespacelike import shoudl be missing or match symbolName"),y.namespaceLikeImport={importKind:l,name:a,addAsTypeOnly:p}}break;default:e.Debug.assertNever(o,"fix wasn't never - got kind ".concat(o.kind))}function v(e,t){return Math.max(null!=e?e:0,t)}function b(e,t){return"".concat(t?1:0,"|").concat(e)}}}function s(t,r,n,i,a,o,s,c,l,d){return e.Debug.assert(r.some((e=>e.moduleSymbol===n||e.symbol.parent===n)),"Some exportInfo should match the specified moduleSymbol"),m(u(r,i,o,s,c,a,t,l,d),t,a,l,d)}function c(t,r,n,i){var a,o,s=n.getCompilerOptions(),c=u(n.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(n,i){var a=e.getDefaultLikeExportInfo(r,n,s);if(a&&e.skipAlias(a.symbol,n)===t)return{symbol:a.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i};var o=n.tryGetMemberInModuleExportsAndProperties(t.name,r);return o&&e.skipAlias(o,n)===t?{symbol:o,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i}:void 0}}function l(t,r,n,i,a,o,s,c){var l=[],u=o.getCompilerOptions(),d=e.memoizeOne((t=>e.createModuleSpecifierResolutionHost(t?a.getPackageJsonAutoImportProvider():o,a)));return e.forEachExternalModuleToImportFrom(o,a,c,((a,o,s,c)=>{var d=s.getTypeChecker();if(!o||a===n||!e.startsWith(t.fileName,e.getDirectoryPath(o.fileName))){var _=e.getDefaultLikeExportInfo(a,d,u);_&&(_.name===i||A(a,e.getEmitScriptTarget(u))===i)&&e.skipAlias(_.symbol,d)===r&&p(s,o,c)&&l.push({symbol:_.symbol,moduleSymbol:a,moduleFileName:null==o?void 0:o.fileName,exportKind:_.exportKind,targetFlags:e.skipAlias(_.symbol,d).flags,isFromPackageJson:c});for(var f=0,m=d.getExportsAndPropertiesOfModule(a);f<m.length;f++){var g=m[f];g.name===i&&d.getMergedSymbol(e.skipAlias(g,d))===r&&p(s,o,c)&&l.push({symbol:g,moduleSymbol:a,moduleFileName:null==o?void 0:o.fileName,exportKind:0,targetFlags:e.skipAlias(g,d).flags,isFromPackageJson:c})}}})),l;function p(r,n,i){var o;return!n||e.isImportableFile(r,t,n,s,void 0,d(i),null===(o=a.getModuleSpecifierCache)||void 0===o?void 0:o.call(a))}}function u(t,r,n,i,a,o,s,c,l){var u=o.getTypeChecker(),p=e.flatMap(t,(t=>((t,r,n,i)=>{var a=t.moduleSymbol,o=t.exportKind,s=t.targetFlags,c=t.symbol;if(!(111551&s)&&e.isSourceFileJS(n))return e.emptyArray;var l=h(n,o,i);return e.mapDefined(n.imports,(t=>{var n=e.importFromModuleSpecifier(t);return e.isRequireVariableDeclaration(n.parent)?r.resolveExternalModuleName(t)===a?{declaration:n.parent,importKind:l,symbol:c,targetFlags:s}:void 0:265!==n.kind&&264!==n.kind||r.getSymbolAtLocation(t)!==a?void 0:{declaration:n,importKind:l,symbol:c,targetFlags:s}}))})(t,u,s,o.getCompilerOptions()))),f=void 0===n?void 0:((t,r,n,i)=>e.firstDefined(t,(t=>{var a=t.declaration,o=(t=>{var r,n,i;switch(t.kind){case 253:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 264:return t.name.text;case 265:return null===(i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}})(a),s=e.tryGetModuleSpecifierFromDeclaration(a);if(o&&s){var c=((t,r)=>{var n;switch(t.kind){case 253:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 264:return r.getAliasedSymbol(t.symbol);case 265:var i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport);return i&&r.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}})(a,i);if(c&&c.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:o,position:n,moduleSpecifier:s}}})))(p,r,n,u),m=((t,r,n,i)=>e.firstDefined(t,(t=>{var a=t.declaration,o=t.importKind,s=t.symbol,c=t.targetFlags;if(3!==o&&2!==o&&264!==a.kind){if(253===a.kind)return 0!==o&&1!==o||200!==a.name.kind?void 0:{kind:2,importClauseOrBindingPattern:a.name,importKind:o,moduleSpecifier:a.initializer.arguments[0].text,addAsTypeOnly:4};var l=a.importClause;if(l&&e.isStringLiteralLike(a.moduleSpecifier)){var u=l.name,p=l.namedBindings;if(!l.isTypeOnly||0===o&&p){var _=d(r,!1,s,c,n,i);if(!(1===o&&(u||2===_&&p)||0===o&&267===(null==p?void 0:p.kind)))return{kind:2,importClauseOrBindingPattern:l,importKind:o,moduleSpecifier:a.moduleSpecifier.text,addAsTypeOnly:_}}}}})))(p,i,u,o.getCompilerOptions()),g=m?[m]:((t,r,n,i,a,o,s,c,l)=>{var u=e.firstDefined(r,(t=>((t,r,n,i,a)=>{var o=t.declaration,s=t.importKind,c=t.symbol,l=t.targetFlags,u=e.tryGetModuleSpecifierFromDeclaration(o);if(u)return{kind:3,moduleSpecifier:u,importKind:s,addAsTypeOnly:n?4:d(r,!0,c,l,i,a),useRequire:n}})(t,o,s,n.getTypeChecker(),n.getCompilerOptions())));return u?[u]:_(n,i,a,o,s,t,c,l).fixes})(t,p,o,s,n,i,a,c,l);return Il(Il([],f?[f]:e.emptyArray,!0),g,!0)}function d(e,t,r,n,i,a){return e?t&&2===a.importsNotUsedAsValues?2:!a.isolatedModules||!a.preserveValueImports||111551&n&&!i.getTypeOnlyAliasDeclaration(r)?1:2:4}function p(t,r){if(!e.isSourceFileJS(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;var n=r.getCompilerOptions();if(n.configFile)return e.getEmitModuleKind(n)<e.ModuleKind.ES2015;for(var i=0,a=r.getSourceFiles();i<a.length;i++){var o=a[i];if(o!==t&&e.isSourceFileJS(o)&&!r.isSourceFileFromExternalLibrary(o)){if(o.commonJsModuleIndicator&&!o.externalModuleIndicator)return!0;if(o.externalModuleIndicator&&!o.commonJsModuleIndicator)return!1}}return!0}function _(t,r,n,i,a,o,s,c,l){var u=e.isSourceFileJS(r),p=t.getCompilerOptions(),_=e.createModuleSpecifierResolutionHost(t,s),f=e.memoizeOne((e=>e?s.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())),m=l?t=>({moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(t,r,_,c),computedWithoutCache:!1}):(t,n)=>e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(t,n,p,r,_,c),g=0,y=e.flatMap(o,(e=>{var t=f(e.isFromPackageJson),o=m(e.moduleSymbol,t),s=o.computedWithoutCache,c=o.moduleSpecifiers,l=!!(111551&e.targetFlags),_=d(i,!0,e.symbol,e.targetFlags,t,p);return g+=s?1:0,null==c?void 0:c.map((t=>!l&&u&&void 0!==n?{kind:1,moduleSpecifier:t,position:n,exportInfo:e}:{kind:3,moduleSpecifier:t,importKind:h(r,e.exportKind,p),useRequire:a,addAsTypeOnly:_,exportInfo:e}))}));return{computedWithoutCacheCount:g,fixes:y}}function f(t,r,n,i){var a,o,s,c,l,d,_=e.getTokenAtPosition(t.sourceFile,n),f=r===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?((t,r)=>{var n=t.sourceFile,i=t.program,a=t.host,o=t.preferences,s=i.getTypeChecker(),c=((t,r)=>{var n=e.isIdentifier(t)?r.getSymbolAtLocation(t):void 0;if(e.isUMDExportSymbol(n))return n;var i=t.parent;return e.isJsxOpeningLikeElement(i)&&i.tagName===t||e.isJsxOpeningFragment(i)?e.tryCast(r.resolveName(r.getJsxNamespace(i),e.isJsxOpeningLikeElement(i)?t:i,111551,!1),e.isUMDExportSymbol):void 0})(r,s);if(c){var l=s.getAliasedSymbol(c),d=c.name,_=[{symbol:c,moduleSymbol:l,moduleFileName:void 0,exportKind:3,targetFlags:l.flags,isFromPackageJson:!1}],f=p(n,i);return{fixes:u(_,d,e.isIdentifier(r)?r.getStart(n):void 0,!1,f,i,n,a,o),symbolName:d}}})(t,_):e.isIdentifier(_)?((t,r,n)=>{var i=t.sourceFile,a=t.program,o=t.cancellationToken,s=t.host,c=t.preferences,l=a.getTypeChecker(),d=a.getCompilerOptions(),_=((t,r,n,i)=>{var a,o=n.parent;if((e.isJsxOpeningLikeElement(o)||e.isJsxClosingElement(o))&&o.tagName===n&&(2===(a=i.jsx)||3===a)){var s=r.getJsxNamespace(t);if(e.isIntrinsicJsxName(n.text)||!r.resolveName(s,o,111551,!0))return s}return n.text})(i,l,r,d);e.Debug.assert("default"!==_,"'default' isn't a legal identifier and couldn't occur here");var f=e.isValidTypeOnlyAliasUseSite(r),m=p(i,a),g=((t,r,n,i,a,o,s,c)=>{var l,u=e.createMultiMap(),d=e.createPackageJsonImportFilter(i,c,s),p=null===(l=s.getModuleSpecifierCache)||void 0===l?void 0:l.call(s),_=e.memoizeOne((t=>e.createModuleSpecifierResolutionHost(t?s.getPackageJsonAutoImportProvider():a,s)));function f(t,r,n,a,o,s){var l=_(s);if(r&&e.isImportableFile(o,i,r,c,d,l,p)||!r&&d.allowsImportingAmbientModule(t,l)){var f=o.getTypeChecker();u.add(e.getUniqueSymbolId(n,f).toString(),{symbol:n,moduleSymbol:t,moduleFileName:null==r?void 0:r.fileName,exportKind:a,targetFlags:e.skipAlias(n,f).flags,isFromPackageJson:s})}}return e.forEachExternalModuleToImportFrom(a,s,o,((i,a,o,s)=>{var c=o.getTypeChecker();n.throwIfCancellationRequested();var l=o.getCompilerOptions(),u=e.getDefaultLikeExportInfo(i,c,l);u&&(u.name===t||A(i,e.getEmitScriptTarget(l))===t)&&k(u.symbolForMeaning,r)&&f(i,a,u.symbol,u.exportKind,o,s);var d=c.tryGetMemberInModuleExportsAndProperties(t,i);d&&k(d,r)&&f(i,a,d,0,o,s)})),u})(_,e.getMeaningFromLocation(r),o,i,a,n,s,c);return{fixes:e.arrayFrom(e.flatMapIterator(g.entries(),(e=>u(e[1],_,r.getStart(i),f,m,a,i,s,c)))),symbolName:_}})(t,_,i):void 0;return f&&Ol(Ol({},f),{fixes:(a=f.fixes,o=t.sourceFile,s=t.program,c=t.host,l=t.preferences,d=e.createPackageJsonImportFilter(o,l,c).allowsImportingSpecifier,e.sort(a,((t,r)=>e.compareValues(t.kind,r.kind)||g(t,r,o,s,d))))})}function m(t,r,n,i,a){if(e.some(t)){if(0===t[0].kind||2===t[0].kind)return t[0];var o=e.createPackageJsonImportFilter(r,a,i).allowsImportingSpecifier;return t.reduce(((e,t)=>-1===g(t,e,r,n,o)?t:e))}}function g(t,r,n,i,a){return 0!==t.kind&&0!==r.kind?e.compareBooleans(a(r.moduleSpecifier),a(t.moduleSpecifier))||((t,r,n,i)=>e.startsWith(t,"node:")&&!e.startsWith(r,"node:")?e.shouldUseUriStyleNodeCoreModules(n,i)?-1:1:e.startsWith(r,"node:")&&!e.startsWith(t,"node:")?e.shouldUseUriStyleNodeCoreModules(n,i)?1:-1:0)(t.moduleSpecifier,r.moduleSpecifier,n,i)||e.compareNumberOfDirectorySeparators(t.moduleSpecifier,r.moduleSpecifier):0}function h(t,r,n,i){switch(r){case 0:return 0;case 1:return 1;case 2:return((t,r,n)=>{var i=e.getAllowSyntheticDefaultImports(r),a=e.isInJSFile(t);if(!a&&e.getEmitModuleKind(r)>=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||n?i?1:2:3;for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];if(e.isImportEqualsDeclaration(c)&&!e.nodeIsMissing(c.moduleReference))return 3}return i?1:3})(t,n,!!i);case 3:return((t,r,n)=>{if(e.getAllowSyntheticDefaultImports(r))return 1;var i=e.getEmitModuleKind(r);switch(i){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(t)&&(e.isExternalModule(t)||n)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return t.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(i,"Unexpected moduleKind ".concat(i))}})(t,n,!!i);default:return e.Debug.assertNever(r)}}function y(r,n,a,o,s,c){var l,u=e.textChanges.ChangeTracker.with(r,(t=>{l=((t,r,n,i,a,o)=>{switch(i.kind){case 0:return b(t,r,i),[e.Diagnostics.Change_0_to_1,n,"".concat(i.namespacePrefix,".").concat(n)];case 1:return x(t,r,i,a),[e.Diagnostics.Change_0_to_1,n,E(i.moduleSpecifier,a)+n];case 2:var s=i.importClauseOrBindingPattern,c=i.importKind,l=i.addAsTypeOnly,u=i.moduleSpecifier;v(t,r,s,1===c?{name:n,addAsTypeOnly:l}:void 0,0===c?[{name:n,addAsTypeOnly:l}]:e.emptyArray,o);var d=e.stripQuotes(u);return[1===c?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,n,d];case 3:c=i.importKind,u=i.moduleSpecifier,l=i.addAsTypeOnly;var p=i.useRequire?T:D,_=1===c?{name:n,addAsTypeOnly:l}:void 0,f=0===c?[{name:n,addAsTypeOnly:l}]:void 0,m=2===c||3===c?{importKind:c,name:n,addAsTypeOnly:l}:void 0;return e.insertImports(t,r,p(u,a,_,f,m),!0),[1===c?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,n,u];default:return e.Debug.assertNever(i,"Unexpected fix kind ".concat(i.kind))}})(t,n,a,o,s,c)}));return t.createCodeFixAction(t.importFixName,u,l,i,e.Diagnostics.Add_all_missing_imports)}function v(t,r,n,i,a,o){var s;if(200!==n.kind){var c=n.isTypeOnly&&e.some(Il([i],a,!0),(e=>4===(null==e?void 0:e.addAsTypeOnly))),l=n.namedBindings&&(null===(s=e.tryCast(n.namedBindings,e.isNamedImports))||void 0===s?void 0:s.elements),u=c&&o.preserveValueImports&&o.isolatedModules;if(i&&(e.Debug.assert(!n.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(r,n.getStart(r),e.factory.createIdentifier(i.name),{suffix:", "})),a.length){var d=e.stableSort(a.map((t=>e.factory.createImportSpecifier((!n.isTypeOnly||c)&&S(t),void 0,e.factory.createIdentifier(t.name)))),e.OrganizeImports.compareImportOrExportSpecifiers);if((null==l?void 0:l.length)&&e.OrganizeImports.importSpecifiersAreSorted(l))for(var p=0,_=d;p<_.length;p++){var f=_[p],m=u&&!f.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(l,f),g=n.namedBindings.elements[m-1];g?t.insertNodeInListAfter(r,g,f):t.insertNodeBefore(r,l[0],f,!e.positionsAreOnSameLine(l[0].getStart(),n.parent.getStart(),r))}else if(null==l?void 0:l.length)for(var h=0,y=d;h<y.length;h++)f=y[h],t.insertNodeInListAfter(r,e.last(l),f,l);else if(d.length){var v=e.factory.createNamedImports(d);n.namedBindings?t.replaceNode(r,n.namedBindings,v):t.insertNodeAfter(r,e.Debug.checkDefined(n.name,"Import clause must have either named imports or a default import"),v)}}if(c&&(t.delete(r,e.getTypeKeywordOfTypeOnlyImport(n,r)),u&&l))for(var b=0,x=l;b<x.length;b++)T=x[b],t.insertModifierBefore(r,151,T)}else{i&&C(n,i.name,"default");for(var E=0,D=a;E<D.length;E++){var T=D[E];C(n,T.name,void 0)}}function C(n,i,a){var o=e.factory.createBindingElement(void 0,a,i);n.elements.length?t.insertNodeInListAfter(r,e.last(n.elements),o):t.replaceNode(r,n,e.factory.createObjectBindingPattern([o]))}}function b(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function x(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,E(i,n))}function E(t,r){var n=e.getQuoteFromPreference(r);return"import(".concat(n).concat(t).concat(n,").")}function S(e){return 2===e.addAsTypeOnly}function D(t,r,n,i,a){var o,s=e.makeStringLiteral(t,r);if(void 0!==n||(null==i?void 0:i.length)){var c=(!n||S(n))&&e.every(i,S);o=e.combine(o,e.makeImport(n&&e.factory.createIdentifier(n.name),null==i?void 0:i.map((t=>{var r=t.addAsTypeOnly,n=t.name;return e.factory.createImportSpecifier(!c&&2===r,void 0,e.factory.createIdentifier(n))})),t,r,c))}if(a){var l=3===a.importKind?e.factory.createImportEqualsDeclaration(void 0,void 0,S(a),e.factory.createIdentifier(a.name),e.factory.createExternalModuleReference(s)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(S(a),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(a.name))),s,void 0);o=e.combine(o,l)}return e.Debug.checkDefined(o)}function T(t,r,n,i,a){var o,s=e.makeStringLiteral(t,r);if(n||(null==i?void 0:i.length)){var c=(null==i?void 0:i.map((t=>{var r=t.name;return e.factory.createBindingElement(void 0,void 0,r)})))||[];n&&c.unshift(e.factory.createBindingElement(void 0,"default",n.name));var l=C(e.factory.createObjectBindingPattern(c),s);o=e.combine(o,l)}return a&&(l=C(a.name,s),o=e.combine(o,l)),e.Debug.checkDefined(o)}function C(t,r){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration("string"==typeof t?e.factory.createIdentifier(t):t,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[r]))],2))}function k(t,r){var n=t.declarations;return e.some(n,(t=>!!(e.getMeaningFromDeclaration(t)&r)))}function A(t,r){return N(e.removeFileExtension(e.stripQuotes(t.name)),r)}function N(t,r){var n=e.getBaseFileName(e.removeSuffix(t,"/index")),i="",a=!0,o=n.charCodeAt(0);e.isIdentifierStart(o,r)?i+=String.fromCharCode(o):a=!1;for(var s=1;s<n.length;s++){var c=n.charCodeAt(s),l=e.isIdentifierPart(c,r);if(l){var u=String.fromCharCode(c);a||(u=u.toUpperCase()),i+=u}a=l}return e.isStringANonContextualKeyword(i)?"_".concat(i):i||"_"}t.registerCodeFix({errorCodes:a,getCodeActions(t){var r=t.errorCode,n=t.preferences,i=t.sourceFile,a=t.span,o=t.program,s=f(t,r,a.start,!0);if(s){var c=s.fixes,l=s.symbolName,u=e.getQuotePreference(i,n);return c.map((e=>y(t,i,l,e,u,o.getCompilerOptions())))}},fixIds:[i],getAllCodeActions(r){var n=o(r.sourceFile,r.program,!0,r.preferences,r.host);return t.eachDiagnostic(r,a,(e=>n.addImportFromDiagnostic(e,r))),t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,n.writeFixes))}}),t.createImportAdder=(e,t,r,n)=>o(e,t,!1,r,n),(e=>{e[e.UseNamespace=0]="UseNamespace",e[e.JsdocTypeImport=1]="JsdocTypeImport",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew"})(r||(r={})),(e=>{e[e.Allowed=1]="Allowed",e[e.Required=2]="Required",e[e.NotAllowed=4]="NotAllowed"})(n||(n={})),t.getImportCompletionAction=(t,r,n,i,a,o,u,d,_)=>{var f,m,g,h,v=o.getCompilerOptions(),b=e.pathIsBareSpecifier(e.stripQuotes(r.name))?[c(t,r,o,a)]:l(n,t,r,i,a,o,_,!0),x=p(n,o),E=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(n,d)),S=e.Debug.checkDefined(s(n,b,r,i,o,d,E,x,a,_));return{moduleSpecifier:S.moduleSpecifier,codeAction:(f=y({host:a,formatContext:u,preferences:_},n,i,S,e.getQuotePreference(n,_),v),m=f.description,g=f.changes,h=f.commands,{description:m,changes:g,commands:h})}},t.getModuleSpecifierForBestExportInfo=(e,t,r,n,i,a)=>{var o=_(r,t,void 0,!1,!1,e,n,i,a),s=o.fixes,c=o.computedWithoutCacheCount,l=m(s,t,r,n,i);return l&&Ol(Ol({},l),{computedWithoutCacheCount:c})},t.getImportKind=h,t.moduleSymbolToValidIdentifier=A,t.moduleSpecifierToValidIdentifier=N})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r,n="fixOverrideModifier",i="fixAddOverrideModifier",a="fixRemoveOverrideModifier",o=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code],s=((r={})[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,i,e.Diagnostics.Add_all_missing_override_modifiers],r[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]=[e.Diagnostics.Remove_override_modifier,a,e.Diagnostics.Remove_all_unnecessary_override_modifiers],r[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]=[e.Diagnostics.Add_override_modifier,i,e.Diagnostics.Add_all_missing_override_modifiers],r[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,i,e.Diagnostics.Remove_all_unnecessary_override_modifiers],r[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]=[e.Diagnostics.Remove_override_modifier,a,e.Diagnostics.Remove_all_unnecessary_override_modifiers],r);function c(t,r,n,i){switch(n){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:return((t,r,n)=>{var i=u(r,n),a=i.modifiers||e.emptyArray,o=e.find(a,e.isStaticModifier),s=e.find(a,e.isAbstractModifier),c=e.find(a,(t=>e.isAccessibilityModifier(t.kind))),l=s?s.end:o?o.end:c?c.end:i.decorators?e.skipTrivia(r.text,i.decorators.end):i.getStart(r),d=c||o||s?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,l,158,d)})(t,r.sourceFile,i);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:return((t,r,n)=>{var i=u(r,n),a=i.modifiers&&e.find(i.modifiers,(e=>158===e.kind));e.Debug.assertIsDefined(a),t.deleteModifier(r,a)})(t,r.sourceFile,i);default:e.Debug.fail("Unexpected error code: "+n)}}function l(t){switch(t.kind){case 170:case 166:case 168:case 171:case 172:return!0;case 163:return e.isParameterPropertyDeclaration(t,t.parent);default:return!1}}function u(t,r){var n=e.getTokenAtPosition(t,r),i=e.findAncestor(n,(t=>e.isClassLike(t)?"quit":l(t)));return e.Debug.assert(i&&l(i)),i}t.registerCodeFix({errorCodes:o,getCodeActions(r){var i=r.errorCode,a=r.span,o=r.sourceFile,l=s[i];if(!l)return e.emptyArray;var u=l[0],d=l[1],p=l[2];if(e.isSourceFileJS(o))return e.emptyArray;var _=e.textChanges.ChangeTracker.with(r,(e=>c(e,r,i,a.start)));return[t.createCodeFixActionMaybeFixAll(n,_,u,d,p)]},fixIds:[n,i,a],getAllCodeActions:r=>t.codeFixAll(r,o,((t,n)=>{var i=n.code,a=n.start,o=n.file,l=s[i];l&&l[1]===r.fixId&&!e.isSourceFileJS(o)&&c(t,r,i,a)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixNoPropertyAccessFromIndexSignature",n=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function i(t,r,n,i){var a=e.getQuotePreference(r,i),o=e.factory.createStringLiteral(n.name.text,0===a);t.replaceNode(r,n,e.isPropertyAccessChain(n)?e.factory.createElementAccessChain(n.expression,n.questionDotToken,o):e.factory.createElementAccessExpression(n.expression,o))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isPropertyAccessExpression)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=n.sourceFile,s=n.span,c=n.preferences,l=a(o,s.start),u=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,l,c)));return[t.createCodeFixAction(r,u,[e.Diagnostics.Use_element_access_for_0,l.name.text],r,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>i(t,r.file,a(r.file,r.start),e.preferences)))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixImplicitThis",n=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);e.Debug.assert(108===a.kind);var o=e.getThisContainer(a,!1);if((e.isFunctionDeclaration(o)||e.isFunctionExpression(o))&&!e.isSourceFile(e.getThisContainer(o,!1))){var s=e.Debug.assertDefined(e.findChildOfKind(o,98,r)),c=o.name,l=e.Debug.assertDefined(o.body);if(e.isFunctionExpression(o)){if(c&&e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,r,l))return;return t.delete(r,s),c&&t.delete(r,c),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(85)),t.insertText(r,c.end," = "),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a,o=n.sourceFile,s=n.program,c=n.span,l=e.textChanges.ChangeTracker.with(n,(e=>{a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,l,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{i(t,r.file,r.start,e.program.getTypeChecker())}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="fixIncorrectNamedTupleSyntax",n=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=n.sourceFile,a=n.span,o=((t,r)=>{var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(e=>196===e.kind))})(i,a.start),s=e.textChanges.ChangeTracker.with(n,(t=>((t,r,n)=>{if(n){for(var i=n.type,a=!1,o=!1;184===i.kind||185===i.kind||190===i.kind;)184===i.kind?a=!0:185===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);s!==n&&t.replaceNode(r,n,s)}})(t,i,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})})(Fl),(e=>{!(t=>{var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isBinaryExpression(o)&&101===o.operatorToken.kind&&o.left===a&&e.isPrivateIdentifier(a)){var u=c.getTypeAtLocation(o.right);s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(o)&&o.right===a){var d=c.getSymbolAtLocation(o.left);d&&1536&d.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,d))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var p=((t,r,n)=>{if(n&&e.isStringLiteralLike(n.moduleSpecifier)){var i=e.getResolvedModule(t,n.moduleSpecifier.text,e.getModeForUsageLocation(t,n.moduleSpecifier));return i?r.program.getSourceFile(i.resolvedFileName):void 0}})(t,n,e.findAncestor(a,e.isImportDeclaration));p&&p.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,p.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var _=e.findAncestor(a,e.isJsxOpeningLikeElement),f=c.getContextualTypeForArgumentAtIndex(_,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,f)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var m=e.findAncestor(a,e.isClassLike),g=m?e.getEffectiveBaseTypeNode(m):void 0,h=g?c.getTypeAtLocation(g):void 0;h&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),h))}else{var y=e.getMeaningFromLocation(a),v=e.getTextOfNode(a);e.Debug.assert(void 0!==v,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,v,(e=>{var t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t})(y))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var l=c.node,u=c.suggestedSymbol,d=e.getEmitScriptTarget(n.host.getCompilationSettings()),p=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,l,u,d)));return[t.createCodeFixAction("spelling",p,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:r=>t.codeFixAll(r,n,((t,n)=>{var o=i(n.file,n.start,r,n.code),s=e.getEmitScriptTarget(r.host.getCompilationSettings());o&&a(t,r.sourceFile,o.node,o.suggestedSymbol,s)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],[])}function l(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&u(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(u(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),u(t,n,c(t,l.label,l.statement.expression),i,a)))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}function u(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,256)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function d(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return l(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var u=(t=>{switch(t.kind){case 253:case 163:case 202:case 166:case 294:return t.initializer;case 284:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 295:case 165:case 297:case 345:case 338:return}})(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(t,u,t.getTypeAtLocation(a.parent),!0)}}}function p(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function _(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function m(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(e=>p(e,r.sourceFile,a,o)));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function g(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(e=>f(e,r.sourceFile,i,a)));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!(e=>{e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"})(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions(i){var o=i.program,s=i.sourceFile,c=i.span.start,l=i.errorCode,u=d(o.getTypeChecker(),s,c,l);if(u)return u.kind===r.MissingReturnStatement?e.append([m(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?((r,i,o,s)=>{var c=e.textChanges.ChangeTracker.with(r,(e=>_(e,r.sourceFile,i,o,s,!1)));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)})(i,u.declaration,u.expression,u.commentSource):void 0):[g(i,u.declaration,u.expression)]},getAllCodeActions:r=>t.codeFixAll(r,s,((t,n)=>{var s=d(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:p(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;_(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r,n="fixMissingMember",i="fixMissingProperties",a="fixMissingAttributes",o="fixMissingFunctionDeclaration",s=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];function c(t,r,n,i,a){var o=e.getTokenAtPosition(t,r),s=o.parent;if(n===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==o.kind||!e.isObjectLiteralExpression(s)||!e.isCallExpression(s.parent))return;var c=e.findIndex(s.parent.arguments,(e=>e===s));if(c<0)return;var u=e.singleOrUndefined(i.getSignaturesOfType(i.getTypeAtLocation(s.parent.expression),0));if(!(u&&u.declaration&&u.parameters[c]))return;var d=u.parameters[c].valueDeclaration;if(!(d&&e.isParameter(d)&&e.isIdentifier(d.name)))return;var p=e.arrayFrom(i.getUnmatchedProperties(i.getTypeAtLocation(s),i.getTypeAtLocation(d),!1,!1));if(!e.length(p))return;return{kind:3,token:d.name,properties:p,indentation:0,parentDeclaration:s}}if(e.isMemberName(o)){if(e.isIdentifier(o)&&e.hasInitializer(s)&&s.initializer&&e.isObjectLiteralExpression(s.initializer)){if(p=e.arrayFrom(i.getUnmatchedProperties(i.getTypeAtLocation(s.initializer),i.getTypeAtLocation(o),!1,!1)),!e.length(p))return;return{kind:3,token:o,properties:p,indentation:void 0,parentDeclaration:s.initializer}}if(e.isIdentifier(o)&&e.isJsxOpeningLikeElement(o.parent)){var _=((t,r)=>{var n=t.getContextualType(r.attributes);if(void 0===n)return e.emptyArray;var i=n.getProperties();if(!e.length(i))return e.emptyArray;for(var a=new e.Set,o=0,s=r.attributes.properties;o<s.length;o++){var c=s[o];if(e.isJsxAttribute(c)&&a.add(c.name.escapedText),e.isJsxSpreadAttribute(c))for(var l=0,u=t.getTypeAtLocation(c.expression).getProperties();l<u.length;l++){var d=u[l];a.add(d.escapedName)}}return e.filter(i,(t=>!(16777216&t.flags||48&e.getCheckFlags(t)||a.has(t.escapedName))))})(i,o.parent);if(!e.length(_))return;return{kind:4,token:o,attributes:_,parentDeclaration:o.parent}}if(e.isIdentifier(o)&&e.isCallExpression(s))return{kind:2,token:o,call:s,sourceFile:t,modifierFlags:0,parentDeclaration:t};if(e.isPropertyAccessExpression(s)){var f=e.skipConstraint(i.getTypeAtLocation(s.expression)),m=f.symbol;if(m&&m.declarations){if(e.isIdentifier(o)&&e.isCallExpression(s.parent)){var g=e.find(m.declarations,e.isModuleDeclaration),h=null==g?void 0:g.getSourceFile();if(g&&h&&!l(a,h))return{kind:2,token:o,call:s.parent,sourceFile:t,modifierFlags:1,parentDeclaration:g};var y=e.find(m.declarations,e.isSourceFile);if(t.commonJsModuleIndicator)return;if(y&&!l(a,y))return{kind:2,token:o,call:s.parent,sourceFile:y,modifierFlags:1,parentDeclaration:y}}var v=e.find(m.declarations,e.isClassLike);if(v||!e.isPrivateIdentifier(o)){var b=v||e.find(m.declarations,e.isInterfaceDeclaration);if(b&&!l(a,b.getSourceFile())){var x=(f.target||f)!==i.getDeclaredTypeOfSymbol(m);if(x&&(e.isPrivateIdentifier(o)||e.isInterfaceDeclaration(b)))return;var E=b.getSourceFile(),S=(x?32:0)|(e.startsWithUnderscore(o.text)?8:0),D=e.isSourceFileJS(E);return{kind:1,token:o,call:e.tryCast(s.parent,e.isCallExpression),modifierFlags:S,parentDeclaration:b,declSourceFile:E,isJSFile:D}}var T=e.find(m.declarations,e.isEnumDeclaration);return!T||e.isPrivateIdentifier(o)||l(a,T.getSourceFile())?void 0:{kind:0,token:o,parentDeclaration:T}}}}}}function l(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function u(t,r,n,i,a){var o=i.text;if(a){if(225===n.kind)return;var s=n.name.getText(),c=d(e.factory.createIdentifier(s),o);t.insertNodeAfter(r,n,c)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),u=f(n);u?t.insertNodeAfter(r,u,l):t.insertNodeAtClassStart(r,n,l)}else{var p=e.getFirstConstructorWithBody(n);if(!p)return;var _=d(e.factory.createThis(),o);t.insertNodeAtConstructorEnd(r,p,_)}}function d(t,r){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(t,r),x()))}function p(t,r,n){var i;if(220===n.parent.parent.kind){var a=n.parent.parent,o=n.parent===a.left?a.right:a.left,s=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(o)));i=t.typeToTypeNode(s,r,1)}else{var c=t.getContextualType(n.parent);i=c?t.typeToTypeNode(c,void 0,1):void 0}return i||e.factory.createKeywordTypeNode(130)}function _(t,r,n,i,a,o){var s=e.factory.createPropertyDeclaration(void 0,o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,i,void 0,a,void 0),c=f(n);c?t.insertNodeAfter(r,c,s):t.insertNodeAtClassStart(r,n,s)}function f(t){for(var r,n=0,i=t.members;n<i.length;n++){var a=i[n];if(!e.isPropertyDeclaration(a))break;r=a}return r}function m(r,n,i,a,o,s,c){var l=t.createImportAdder(c,r.program,r.preferences,r.host),u=t.createSignatureDeclarationFromCallExpression(168,r,l,i,a,o,s),d=e.findAncestor(i,(t=>e.isMethodDeclaration(t)||e.isConstructorDeclaration(t)));d&&d.parent===s?n.insertNodeAfter(c,d,u):n.insertNodeAtClassStart(c,s,u),l.writeFixes(n)}function g(t,r,n){var i=n.token,a=n.parentDeclaration,o=e.some(a.members,(e=>{var t=r.getTypeAtLocation(e);return!!(t&&402653316&t.flags)})),s=e.factory.createEnumMember(i,o?e.factory.createStringLiteral(i.text):void 0);t.replaceNode(a.getSourceFile(),a,e.factory.updateEnumDeclaration(a,a.decorators,a.modifiers,a.name,e.concatenate(a.members,e.singleElementArray(s))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function h(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=t.createSignatureDeclarationFromCallExpression(255,n,a,i.call,e.idText(i.token),i.modifierFlags,i.parentDeclaration);r.insertNodeAtEndOfScope(i.sourceFile,i.parentDeclaration,o)}function y(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=e.getQuotePreference(n.sourceFile,n.preferences),s=n.program.getTypeChecker(),c=i.parentDeclaration.attributes,l=e.some(c.properties,e.isJsxSpreadAttribute),u=e.map(i.attributes,(t=>{var r=t.valueDeclaration?b(n,s,a,o,s.getTypeAtLocation(t.valueDeclaration)):x();return e.factory.createJsxAttribute(e.factory.createIdentifier(t.name),e.factory.createJsxExpression(void 0,r))})),d=e.factory.createJsxAttributes(l?Il(Il([],u,!0),c.properties,!0):Il(Il([],c.properties,!0),u,!0)),p={prefix:c.pos===c.end?" ":void 0};r.replaceNode(n.sourceFile,c,d,p)}function v(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=e.getQuotePreference(n.sourceFile,n.preferences),s=n.program.getTypeChecker(),c=e.map(i.properties,(t=>{var r=t.valueDeclaration?b(n,s,a,o,s.getTypeAtLocation(t.valueDeclaration)):x();return e.factory.createPropertyAssignment(t.name,r)})),l={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:i.indentation};r.replaceNode(n.sourceFile,i.parentDeclaration,e.factory.createObjectLiteralExpression(Il(Il([],i.parentDeclaration.properties,!0),c,!0),!0),l)}function b(r,n,i,a,o){if(3&o.flags)return x();if(134217732&o.flags)return e.factory.createStringLiteral("",0===a);if(8&o.flags)return e.factory.createNumericLiteral(0);if(64&o.flags)return e.factory.createBigIntLiteral("0n");if(16&o.flags)return e.factory.createFalse();if(1056&o.flags){var s=o.symbol.exports?e.firstOrUndefined(e.arrayFrom(o.symbol.exports.values())):o.symbol,c=n.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return void 0===s||void 0===c?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(c,n.symbolToString(s))}if(256&o.flags)return e.factory.createNumericLiteral(o.value);if(2048&o.flags)return e.factory.createBigIntLiteral(o.value);if(128&o.flags)return e.factory.createStringLiteral(o.value,0===a);if(512&o.flags)return o===n.getFalseType()||o===n.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(65536&o.flags)return e.factory.createNull();if(1048576&o.flags){var l=e.firstDefined(o.types,(e=>b(r,n,i,a,e)));return null!=l?l:x()}if(n.isArrayLikeType(o))return e.factory.createArrayLiteralExpression();if((t=>524288&t.flags&&(128&e.getObjectFlags(t)||t.symbol&&e.tryCast(e.singleOrUndefined(t.symbol.declarations),e.isTypeLiteralNode)))(o)){var u=e.map(n.getPropertiesOfType(o),(t=>{var o=t.valueDeclaration?b(r,n,i,a,n.getTypeAtLocation(t.valueDeclaration)):x();return e.factory.createPropertyAssignment(t.name,o)}));return e.factory.createObjectLiteralExpression(u,!0)}if(16&e.getObjectFlags(o)){if(void 0===e.find(o.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration)))return x();var d=n.getSignaturesOfType(o,0);if(void 0===d)return x();var p=t.createSignatureDeclarationFromSignature(212,r,a,d[0],t.createStubbedBody(e.Diagnostics.Function_not_implemented.message,a),void 0,void 0,void 0,void 0,i);return null!=p?p:x()}if(1&e.getObjectFlags(o)){var _=e.getClassLikeDeclarationOfSymbol(o.symbol);if(void 0===_||e.hasAbstractModifier(_))return x();var f=e.getFirstConstructorWithBody(_);return f&&e.length(f.parameters)?x():e.factory.createNewExpression(e.factory.createIdentifier(o.symbol.name),void 0,void 0)}return x()}function x(){return e.factory.createIdentifier("undefined")}t.registerCodeFix({errorCodes:s,getCodeActions(r){var s=r.program.getTypeChecker(),l=c(r.sourceFile,r.span.start,r.errorCode,s,r.program);if(l){if(3===l.kind){var d=e.textChanges.ChangeTracker.with(r,(e=>v(e,r,l)));return[t.createCodeFixAction(i,d,e.Diagnostics.Add_missing_properties,i,e.Diagnostics.Add_all_missing_properties)]}return 4===l.kind?(d=e.textChanges.ChangeTracker.with(r,(e=>y(e,r,l))),[t.createCodeFixAction(a,d,e.Diagnostics.Add_missing_attributes,a,e.Diagnostics.Add_all_missing_attributes)]):2===l.kind?(d=e.textChanges.ChangeTracker.with(r,(e=>h(e,r,l))),[t.createCodeFixAction(o,d,[e.Diagnostics.Add_missing_function_declaration_0,l.token.text],o,e.Diagnostics.Add_all_missing_function_declarations)]):0===l.kind?(d=e.textChanges.ChangeTracker.with(r,(e=>g(e,r.program.getTypeChecker(),l))),[t.createCodeFixAction(n,d,[e.Diagnostics.Add_missing_enum_member_0,l.token.text],n,e.Diagnostics.Add_all_missing_members)]):e.concatenate(((r,i)=>{var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=i.call;if(void 0!==l&&!e.isPrivateIdentifier(c)){var u=c.text,d=t=>e.textChanges.ChangeTracker.with(r,(e=>m(r,e,l,c,t,a,o))),p=[t.createCodeFixAction(n,d(32&s),[32&s?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,u],n,e.Diagnostics.Add_all_missing_members)];return 8&s&&p.unshift(t.createCodeFixActionWithoutFixAll(n,d(8),[e.Diagnostics.Declare_private_method_0,u])),p}})(r,l),((r,i)=>i.isJSFile?e.singleElementArray(((r,i)=>{var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token;if(!e.isInterfaceDeclaration(a)){var l=e.textChanges.ChangeTracker.with(r,(e=>u(e,o,a,c,!!(32&s))));if(0!==l.length){var d=32&s?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(c)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return t.createCodeFixAction(n,l,[d,c.text],n,e.Diagnostics.Add_all_missing_members)}}})(r,i)):((r,i)=>{var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=c.text,u=32&s,d=p(r.program.getTypeChecker(),a,c),f=t=>e.textChanges.ChangeTracker.with(r,(e=>_(e,o,a,l,d,t))),m=[t.createCodeFixAction(n,f(32&s),[u?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,l],n,e.Diagnostics.Add_all_missing_members)];return u||e.isPrivateIdentifier(c)||(8&s&&m.unshift(t.createCodeFixActionWithoutFixAll(n,f(8),[e.Diagnostics.Declare_private_property_0,l])),m.push(((r,i,a,o,s)=>{var c=e.factory.createKeywordTypeNode(149),l=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,c,void 0),u=e.factory.createIndexSignature(void 0,void 0,[l],s),d=e.textChanges.ChangeTracker.with(r,(e=>e.insertNodeAtClassStart(i,a,u)));return t.createCodeFixActionWithoutFixAll(n,d,[e.Diagnostics.Add_index_signature_for_property_0,o])})(r,o,a,c.text,d))),m})(r,i))(r,l))}},fixIds:[n,o,i,a],getAllCodeActions(r){var n=r.program,l=r.fixId,d=n.getTypeChecker(),f=new e.Map,b=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(x=>{t.eachDiagnostic(r,s,(t=>{var n=c(t.file,t.start,t.code,d,r.program);if(n&&e.addToSeen(f,e.getNodeId(n.parentDeclaration)+"#"+n.token.text))if(l===o&&2===n.kind)h(x,r,n);else if(l===i&&3===n.kind)v(x,r,n);else if(l===a&&4===n.kind)y(x,r,n);else if(0===n.kind&&g(x,d,n),1===n.kind){var s=n.parentDeclaration,u=n.token,p=e.getOrUpdate(b,s,(()=>[]));p.some((e=>e.token.text===u.text))||p.push(n)}})),b.forEach(((i,a)=>{for(var o=t.getAllSupers(a,d),s=t=>{if(o.some((e=>{var r=b.get(e);return!!r&&r.some((e=>e.token.text===t.token.text))})))return"continue";var i=t.parentDeclaration,a=t.declSourceFile,s=t.modifierFlags,c=t.token,l=t.call,d=t.isJSFile;if(l&&!e.isPrivateIdentifier(c))m(r,x,l,c,32&s,i,a);else if(d&&!e.isInterfaceDeclaration(i))u(x,a,i,c,!!(32&s));else{var f=p(n.getTypeChecker(),i,c);_(x,a,i,c.text,f,32&s)}},c=0,l=i;c<l.length;c++)s(l[c])}))})))}}),(e=>{e[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface",e[e.Function=2]="Function",e[e.ObjectLiteral=3]="ObjectLiteral",e[e.JsxAttributes=4]="JsxAttributes"})(r||(r={}))})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="addMissingNewOperator",n=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function i(t,r,n){var i=e.cast(((t,r)=>{for(var n=e.getTokenAtPosition(t,r.start),i=e.textSpanEnd(r);n.end<i;)n=n.parent;return n})(r,n),e.isCallExpression),a=e.factory.createNewExpression(i.expression,i.typeArguments,i.arguments);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.sourceFile,o=n.span,s=e.textChanges.ChangeTracker.with(n,(e=>i(e,a,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_new_operator_to_call,r,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>i(t,e.sourceFile,r)))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="installTypesPackage",n=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,i=[n,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function a(e,t){return{type:"install package",file:e,packageName:t}}function o(t,r){var n=e.tryCast(e.getTokenAtPosition(t,r),e.isStringLiteral);if(n){var i=n.text,a=e.parsePackageName(i).packageName;return e.isExternalModuleNameRelative(a)?void 0:a}}function s(t,r,i){var a;return i===n?e.JsTyping.nodeCoreModules.has(t)?"@types/node":void 0:(null===(a=r.isKnownTypesPackageName)||void 0===a?void 0:a.call(r,t))?e.getTypesPackageName(t):void 0}t.registerCodeFix({errorCodes:i,getCodeActions(n){var i=n.host,c=n.sourceFile,l=o(c,n.span.start);if(void 0!==l){var u=s(l,i,n.errorCode);return void 0===u?[]:[t.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,u],r,e.Diagnostics.Install_all_missing_types_packages,a(c.fileName,u))]}},fixIds:[r],getAllCodeActions:n=>t.codeFixAll(n,i,((t,i,c)=>{var l=o(i.file,i.start);if(void 0!==l)switch(n.fixId){case r:var u=s(l,n.host,i.code);u&&c.push(a(i.file.fileName,u));break;default:e.Debug.fail("Bad fixId: ".concat(n.fixId))}}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],n="fixClassDoesntImplementInheritedAbstractMember";function i(t,r){var n=e.getTokenAtPosition(t,r);return e.cast(n.parent,e.isClassLike)}function a(r,n,i,a,s){var c=e.getEffectiveBaseTypeNode(r),l=i.program.getTypeChecker(),u=l.getTypeAtLocation(c),d=l.getPropertiesOfType(u).filter(o),p=t.createImportAdder(n,i.program,s,i.host);t.createMissingMemberNodes(r,d,n,i,s,p,(e=>a.insertNodeAtClassStart(n,r,e))),p.writeFixes(a)}function o(t){var r=e.getSyntacticModifierFlags(e.first(t.getDeclarations()));return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:r,getCodeActions(r){var o=r.sourceFile,s=r.span,c=e.textChanges.ChangeTracker.with(r,(e=>a(i(o,s.start),o,r,e,r.preferences)));return 0===c.length?void 0:[t.createCodeFixAction(n,c,e.Diagnostics.Implement_inherited_abstract_class,n,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[n],getAllCodeActions(n){var o=new e.Map;return t.codeFixAll(n,r,((t,r)=>{var s=i(r.file,r.start);e.addToSeen(o,e.getNodeId(s))&&a(s,n.sourceFile,n,t,n.preferences)}))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="classSuperMustPrecedeThisAccess",n=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function a(t,r){var n=e.getTokenAtPosition(t,r);if(108===n.kind){var i=e.getContainingFunction(n),a=o(i.body);return a&&!a.expression.arguments.some((t=>e.isPropertyAccessExpression(t)&&t.expression===n))?{constructor:i,superCall:a}:void 0}}function o(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,o)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=a(o,s.start);if(c){var l=c.constructor,u=c.superCall,d=e.textChanges.ChangeTracker.with(n,(e=>i(e,o,l,u)));return[t.createCodeFixAction(r,d,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,r,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[r],getAllCodeActions(r){var o=r.sourceFile,s=new e.Map;return t.codeFixAll(r,n,((t,r)=>{var n=a(r.file,r.start);if(n){var c=n.constructor,l=n.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(t,o,c,l)}}))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="constructorForDerivedNeedSuperCall",n=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(e.isConstructorDeclaration(n.parent),"token should be at the constructor declaration"),n.parent}function a(t,r,n){var i=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));t.insertNodeAtConstructorStart(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_super_call,r,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>a(t,e.sourceFile,i(r.file,r.start))))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="enableExperimentalDecorators",n=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"experimentalDecorators",e.factory.createTrue())}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(e=>i(e,a)));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,(t=>{var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixEnableJsxFlag",n=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"jsx",e.factory.createStringLiteral("react"))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(e=>i(e,a)));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,(t=>{var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions(r){var n=r.program.getCompilerOptions(),i=n.configFile;if(void 0!==i){var a=[],o=e.getEmitModuleKind(n);if(o>=e.ModuleKind.ES2015&&o<e.ModuleKind.ESNext){var s=e.textChanges.ChangeTracker.with(r,(r=>{t.setJsonCompilerOptionValue(r,i,"module",e.factory.createStringLiteral("esnext"))}));a.push(t.createCodeFixActionWithoutFixAll("fixModuleOption",s,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var c=e.getEmitScriptTarget(n);return(c<4||c>99)&&(s=e.textChanges.ChangeTracker.with(r,(r=>{if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}})),a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})})(Fl),(e=>{!(t=>{var r="fixPropertyAssignment",n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,o)));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,a(t.file,t.start))))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;t.deleteRange(r,{pos:a.getStart(),end:c})}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=s.extendsToken,l=s.heritageClauses,u=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c,l)));return[t.createCodeFixAction(r,u,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r.extendsToken,r.heritageClauses)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="forgottenThisPropertyAccess",n=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,i=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,n];function a(t,r,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)||e.isPrivateIdentifier(a))return{node:a,className:i===n?e.getContainingClass(a).name.text:void 0}}function o(t,r,n){var i=n.node,a=n.className;e.suppressLeadingAndTrailingTrivia(i),t.replaceNode(r,i,e.factory.createPropertyAccessExpression(a?e.factory.createIdentifier(a):e.factory.createThis(),i))}t.registerCodeFix({errorCodes:i,getCodeActions(n){var i=n.sourceFile,s=a(i,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(e=>o(e,i,s)));return[t.createCodeFixAction(r,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],r,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,i,((t,r)=>{var n=a(r.file,r.start,r.code);n&&o(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixInvalidJsxCharacters_expression",n="fixInvalidJsxCharacters_htmlEntity",i=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];t.registerCodeFix({errorCodes:i,fixIds:[r,n],getCodeActions(i){var a=i.sourceFile,s=i.preferences,c=i.span,l=e.textChanges.ChangeTracker.with(i,(e=>o(e,s,a,c.start,!1))),u=e.textChanges.ChangeTracker.with(i,(e=>o(e,s,a,c.start,!0)));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,r,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),t.createCodeFixAction(n,u,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,n,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>t.codeFixAll(e,i,((t,r)=>o(t,e.preferences,r.file,r.start,e.fixId===n)))});var a={">":"&gt;","}":"&rbrace;"};function o(t,r,n,i,o){var s=n.getText()[i];if((t=>e.hasProperty(a,t))(s)){var c=o?a[s]:"{".concat(e.quote(n,r,s),"}");t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_deleteImports",o="unusedIdentifier_infer",s=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function c(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(154))}function l(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function d(e){return 100===e.kind||79===e.kind&&(269===e.parent.kind||266===e.parent.kind)}function p(t){return 100===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function _(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function f(e,t,r){e.delete(t,236===r.parent.kind?r.parent:r)}function m(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(137===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&(e=>{switch(e.parent.kind){case 163:case 162:return!0;case 253:switch(e.parent.parent.parent.kind){case 243:case 242:return!0}}return!1})(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_".concat(i.text))),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((r=>{e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_".concat(r.name.text)))}))))}function g(t,r,n,i,a,o,s,c){!((t,r,n,i,a,o,s,c)=>{var l=t.parent;if(e.isParameter(l))!((t,r,n,i,a,o,s,c)=>{void 0===c&&(c=!1),((t,r,n,i,a,o,s)=>{var c=n.parent;switch(c.kind){case 168:case 170:var l=c.parameters.indexOf(n),u=e.isMethodDeclaration(c)?c.name:c,d=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,u,a,i,o);if(d)for(var p=0,_=d;p<_.length;p++)for(var f=0,m=_[p].references;f<m.length;f++){var g=m[f];if(1===g.kind){var h=e.isSuperKeyword(g.node)&&e.isCallExpression(g.node.parent)&&g.node.parent.arguments.length>l,v=e.isPropertyAccessExpression(g.node.parent)&&e.isSuperKeyword(g.node.parent.expression)&&e.isCallExpression(g.node.parent.parent)&&g.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(g.node.parent)||e.isMethodSignature(g.node.parent))&&g.node.parent!==n.parent&&g.node.parent.parameters.length>l;if(h||v||b)return!1}}return!0;case 255:return!c.name||!((t,r,n)=>!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(t=>e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0)))(t,r,c.name)||y(c,n,s);case 212:case 213:return y(c,n,s);case 172:return!1;default:return e.Debug.failBadSyntaxKind(c)}})(i,r,n,a,o,s,c)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach((e=>t.deleteModifier(r,e))):!n.initializer&&h(n,i,a)&&t.delete(r,n))})(r,n,l,i,a,o,s,c);else if(!(c&&e.isIdentifier(t)&&e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n))){var u=e.isImportClause(l)?t:e.isComputedPropertyName(l)?l.parent:l;e.Debug.assert(u!==n,"should not delete whole source file"),r.delete(n,u)}})(r,n,t,i,a,o,s,c),e.isIdentifier(r)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,t,(r=>{var i;e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),!c&&(i=r,(e.isBinaryExpression(i.parent)&&i.parent.left===i||(e.isPostfixUnaryExpression(i.parent)||e.isPrefixUnaryExpression(i.parent))&&i.parent.operand===i)&&e.isExpressionStatement(i.parent.parent))&&n.delete(t,r.parent.parent)}))}function h(t,r,n){var i=t.parent.parameters.indexOf(t);return!e.FindAllReferences.Core.someSignatureUsage(t.parent,n,r,((e,t)=>!t||t.arguments.length>i))}function y(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((t=>e.isIdentifier(t.name)&&!t.symbol.isReferenced)):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions(i){var s=i.errorCode,h=i.sourceFile,y=i.program,v=i.cancellationToken,b=y.getTypeChecker(),x=y.getSourceFiles(),E=e.getTokenAtPosition(h,i.span.start);if(e.isJSDocTemplateTag(E))return[l(e.textChanges.ChangeTracker.with(i,(e=>e.delete(h,E))),e.Diagnostics.Remove_template_tag)];if(29===E.kind)return[l(D=e.textChanges.ChangeTracker.with(i,(e=>u(e,h,E))),e.Diagnostics.Remove_type_parameters)];var S=p(E);if(S){var D=e.textChanges.ChangeTracker.with(i,(e=>e.delete(h,S)));return[t.createCodeFixAction(r,D,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(d(E)&&(N=e.textChanges.ChangeTracker.with(i,(e=>g(h,E,e,b,x,y,v,!1)))).length)return[t.createCodeFixAction(r,N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,E.getText(h)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(E.parent)||e.isArrayBindingPattern(E.parent)){if(e.isParameter(E.parent.parent)){var T=E.parent.elements,C=[T.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(T,(e=>e.getText(h))).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,(t=>((t,r,n)=>{e.forEach(n.elements,(e=>t.delete(r,e)))})(t,h,E.parent))),C)]}return[l(e.textChanges.ChangeTracker.with(i,(e=>e.delete(h,E.parent.parent))),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(_(h,E))return[l(e.textChanges.ChangeTracker.with(i,(e=>f(e,h,E.parent))),e.Diagnostics.Remove_variable_statement)];var k=[];if(137===E.kind){D=e.textChanges.ChangeTracker.with(i,(e=>c(e,h,E)));var A=e.cast(E.parent,e.isInferTypeNode).typeParameter.name.text;k.push(t.createCodeFixAction(r,D,[e.Diagnostics.Replace_infer_0_with_unknown,A],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var N;(N=e.textChanges.ChangeTracker.with(i,(e=>g(h,E,e,b,x,y,v,!1)))).length&&(A=e.isComputedPropertyName(E.parent)?E.parent:E,k.push(l(N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(h)])))}var w=e.textChanges.ChangeTracker.with(i,(e=>m(e,s,h,E)));return w.length&&k.push(t.createCodeFixAction(r,w,[e.Diagnostics.Prefix_0_with_an_underscore,E.getText(h)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[n,i,a,o],getAllCodeActions(r){var l=r.sourceFile,y=r.program,v=r.cancellationToken,b=y.getTypeChecker(),x=y.getSourceFiles();return t.codeFixAll(r,s,((t,s)=>{var E=e.getTokenAtPosition(l,s.start);switch(r.fixId){case n:m(t,s.code,l,E);break;case a:var S=p(E);S?t.delete(l,S):d(E)&&g(l,E,t,b,x,y,v,!0);break;case i:if(137===E.kind||d(E))break;if(e.isJSDocTemplateTag(E))t.delete(l,E);else if(29===E.kind)u(t,l,E);else if(e.isObjectBindingPattern(E.parent)){if(E.parent.parent.initializer)break;e.isParameter(E.parent.parent)&&!h(E.parent.parent,b,x)||t.delete(l,E.parent.parent)}else{if(e.isArrayBindingPattern(E.parent.parent)&&E.parent.parent.parent.initializer)break;_(l,E)?f(t,l,E.parent):g(l,E,t,b,x,y,v,!0)}break;case o:137===E.kind&&c(t,l,E);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 238:if(l.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 240:case 241:return void t.delete(r,l)}if(e.isBlock(s.parent)){var u=n+i,d=e.Debug.checkDefined(((e,t)=>{for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(!(a.pos<u))break;r=a}return r})(e.sliceAfter(s.parent.statements,s)),"Some statement should be last");t.deleteNodeRange(r,s,d)}else t.delete(r,s)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start,n.span.length,n.errorCode)));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unreachable_code,r,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start,t.length,t.code)))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixUnusedLabel",n=[e.Diagnostics.Unused_label.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.cast(i.parent,e.isLabeledStatement),o=i.getStart(r),s=a.statement.getStart(r),c=e.positionsAreOnSameLine(o,s,r)?s:e.skipTrivia(r.text,e.findChildOfKind(a,58,r).end,!0);t.deleteRange(r,{pos:o,end:c})}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span.start)));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unused_label,r,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t.start)))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixJSDocTypes_plain",n="fixJSDocTypes_nullable",i=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function a(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function o(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r),s),a=i&&i.type;return a&&{typeNode:a,type:n.getTypeFromTypeNode(a)}}function s(e){switch(e.kind){case 228:case 173:case 174:case 255:case 171:case 175:case 194:case 168:case 167:case 163:case 166:case 165:case 172:case 258:case 210:case 253:return!0;default:return!1}}t.registerCodeFix({errorCodes:i,getCodeActions(i){var s=i.sourceFile,c=i.program.getTypeChecker(),l=o(s,i.span.start,c);if(l){var u=l.typeNode,d=l.type,p=u.getText(s),_=[f(d,r,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 312===u.kind&&_.push(f(c.getNullableType(d,32768),n,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),_}function f(r,n,o){var l=e.textChanges.ChangeTracker.with(i,(e=>a(e,s,u,r,c)));return t.createCodeFixAction("jdocTypes",l,[e.Diagnostics.Change_0_to_1,p,c.typeToString(r)],n,o)}},fixIds:[r,n],getAllCodeActions(e){var r=e.fixId,s=e.program,c=e.sourceFile,l=s.getTypeChecker();return t.codeFixAll(e,i,((e,t)=>{var i=o(t.file,t.start,l);if(i){var s=i.typeNode,u=i.type,d=312===s.kind&&r===n?l.getNullableType(u,32768):u;a(e,c,s,d,l)}}))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixMissingCallParentheses",n=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function i(e,t,r){e.replaceNodeWithText(t,r,"".concat(r.text,"()"))}function a(t,r){var n=e.getTokenAtPosition(t,r);if(e.isPropertyAccessExpression(n.parent)){for(var i=n.parent;e.isPropertyAccessExpression(i.parent);)i=i.parent;return i.name}if(e.isIdentifier(n))return n}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=a(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_call_parentheses,r,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=a(t.file,t.start);r&&i(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixAwaitInSyncFunction",n=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 168:a=i.name;break;case 255:case 212:a=e.findChildOfKind(i,98,t);break;case 213:var s=i.typeParameters?29:20;a=e.findChildOfKind(i,s,t)||e.first(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:(o=i,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function a(t,r,n){var i=n.insertBefore,a=n.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&79===o.kind&&"Promise"===o.text||t.replaceNode(r,a,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([a])))}t.insertModifierBefore(r,131,i)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[r],getAllCodeActions(r){var o=new e.Map;return t.codeFixAll(r,n,((t,n)=>{var s=i(n.file,n.start);s&&e.addToSeen(o,e.getNodeId(s.insertBefore))&&a(t,r.sourceFile,s)}))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],n="fixPropertyOverrideAccessor";function i(r,n,i,a,o){var s,c;if(a===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=n,c=n+i;else if(a===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var l=o.program.getTypeChecker(),u=e.getTokenAtPosition(r,n).parent;e.Debug.assert(e.isAccessor(u),"error span of fixPropertyOverrideAccessor should only be on an accessor");var d=u.parent;e.Debug.assert(e.isClassLike(d),"erroneous accessors should only be inside classes");var p=e.singleOrUndefined(t.getAllSupers(d,l));if(!p)return[];var _=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(u.name)),f=l.getPropertyOfType(l.getTypeAtLocation(p),_);if(!f||!f.valueDeclaration)return[];s=f.valueDeclaration.pos,c=f.valueDeclaration.end,r=e.getSourceFileOfNode(f.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+a);return t.generateAccessorFromProperty(r,o.program,s,c,o,e.Diagnostics.Generate_get_and_set_accessors.message)}t.registerCodeFix({errorCodes:r,getCodeActions(r){var a=i(r.sourceFile,r.span.start,r.span.length,r.errorCode,r);if(a)return[t.createCodeFixAction(n,a,e.Diagnostics.Generate_get_and_set_accessors,n,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[n],getAllCodeActions:e=>t.codeFixAll(e,r,((t,r)=>{var n=i(r.file,r.start,r.length,r.code,e);if(n)for(var a=0,o=n;a<o.length;a++){var s=o[a];t.pushRaw(e.sourceFile,s)}}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="inferFromUsage",n=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(t,r){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(r))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function a(r,n,i,a,d,m,g,h,y){if(e.isParameterPropertyModifier(i.kind)||79===i.kind||25===i.kind||108===i.kind){var v=i.parent,b=t.createImportAdder(n,d,y,h);switch(a=(t=>{switch(t){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return t})(a)){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(v)&&g(v)||e.isPropertyDeclaration(v)||e.isPropertySignature(v))return o(r,b,n,v,d,h,m),b.writeFixes(r),v;if(e.isPropertyAccessExpression(v)){var x=p(v.name,d,m),E=e.getTypeNodeIfAccessible(x,v,d,h);if(E){var S=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(E),void 0);u(r,n,e.cast(v.parent.parent,e.isExpressionStatement),[S])}return b.writeFixes(r),v}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var D=d.getTypeChecker().getSymbolAtLocation(i);return D&&D.valueDeclaration&&e.isVariableDeclaration(D.valueDeclaration)&&g(D.valueDeclaration)?(o(r,b,n,D.valueDeclaration,d,h,m),b.writeFixes(r),D.valueDeclaration):void 0}var T=e.getContainingFunction(i);if(void 0!==T){var C;switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(T)){s(r,b,n,T,d,h,m),C=T;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(g(T)){var k=e.cast(v,e.isParameter);!((t,r,n,i,a,o,s,u)=>{if(e.isIdentifier(i.name)){var d=((t,r,n,i)=>{var a=_(t,r,n,i);return a&&f(n,a,i).parameters(t)||t.parameters.map((t=>({declaration:t,type:e.isIdentifier(t.name)?p(t.name,n,i):n.getTypeChecker().getAnyType()})))})(a,n,o,u);if(e.Debug.assert(a.parameters.length===d.length,"Parameter count and inference count should match"),e.isInJSFile(a))l(t,n,d,o,s);else{var m=e.isArrowFunction(a)&&!e.findChildOfKind(a,20,n);m&&t.insertNodeBefore(n,e.first(a.parameters),e.factory.createToken(20));for(var g=0,h=d;g<h.length;g++){var y=h[g],v=y.declaration,b=y.type;!v||v.type||v.initializer||c(t,r,n,v,b,o,s)}m&&t.insertNodeAfter(n,e.last(a.parameters),e.factory.createToken(21))}}})(r,b,n,k,T,d,h,m),C=k}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(T)&&e.isIdentifier(T.name)&&(c(r,b,n,T,p(T.name,d,m),d,h),C=T);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(T)&&(s(r,b,n,T,d,h,m),C=T);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(T)&&g(T)&&(((t,r,n,i,a,o)=>{var s=_(n,r,i,o);if(s&&s.length){var c=f(i,s,o).thisParameter(),l=e.getTypeNodeIfAccessible(c,n,i,a);l&&(e.isInJSFile(n)?((t,r,n,i)=>{u(t,r,n,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(i))])})(t,r,n,l):t.tryInsertThisTypeAnnotation(r,n,l))}})(r,n,T,d,h,m),C=T);break;default:return e.Debug.fail(String(a))}return b.writeFixes(r),C}}}function o(t,r,n,i,a,o,s){e.isIdentifier(i.name)&&c(t,r,n,i,p(i.name,a,s),a,o)}function s(t,r,n,i,a,o,s){var u=e.firstOrUndefined(i.parameters);if(u&&e.isIdentifier(i.name)&&e.isIdentifier(u.name)){var d=p(i.name,a,s);d===a.getTypeChecker().getAnyType()&&(d=p(u.name,a,s)),e.isInJSFile(i)?l(t,n,[{declaration:u,type:d}],a,o):c(t,r,n,u,d,a,o)}}function c(r,n,i,a,o,s,c){var l=e.getTypeNodeIfAccessible(o,a,s,c);if(l)if(e.isInJSFile(i)&&165!==a.kind){var d=e.isVariableDeclaration(a)?e.tryCast(a.parent.parent,e.isVariableStatement):a;if(!d)return;var p=e.factory.createJSDocTypeExpression(l);u(r,i,d,[e.isGetAccessorDeclaration(a)?e.factory.createJSDocReturnTag(void 0,p,void 0):e.factory.createJSDocTypeTag(void 0,p,void 0)])}else((r,n,i,a,o,s)=>{var c=t.tryGetAutoImportableReferenceFromTypeNode(r,s);return!(!c||!a.tryInsertTypeAnnotation(i,n,c.typeNode)||(e.forEach(c.symbols,(e=>o.addImportFromExportedSymbol(e,!0))),0))})(l,a,i,r,n,e.getEmitScriptTarget(s.getCompilerOptions()))||r.tryInsertTypeAnnotation(i,a,l)}function l(t,r,n,i,a){var o=n.length&&n[0].declaration.parent;if(o){var s=e.mapDefined(n,(t=>{var r=t.declaration;if(!r.initializer&&!e.getJSDocType(r)&&e.isIdentifier(r.name)){var n=t.type&&e.getTypeNodeIfAccessible(t.type,r,i,a);if(n){var o=e.factory.cloneNode(r.name);return e.setEmitFlags(o,3584),{name:e.factory.cloneNode(r.name),param:r,isOptional:!!t.isOptional,typeNode:n}}}}));if(s.length)if(e.isArrowFunction(o)||e.isFunctionExpression(o)){var c=e.isArrowFunction(o)&&!e.findChildOfKind(o,20,r);c&&t.insertNodeBefore(r,e.first(o.parameters),e.factory.createToken(20)),e.forEach(s,(n=>{var i=n.typeNode,a=n.param,o=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(i)),s=e.factory.createJSDocComment(void 0,[o]);t.insertNodeAt(r,a.getStart(r),s,{suffix:" "})})),c&&t.insertNodeAfter(r,e.last(o.parameters),e.factory.createToken(21))}else{var l=e.map(s,(t=>{var r=t.name,n=t.typeNode,i=t.isOptional;return e.factory.createJSDocParameterTag(void 0,r,!!i,e.factory.createJSDocTypeExpression(n),!1,void 0)}));u(t,r,o,l)}}}function u(t,r,n,i){var a,o=e.flatMap(n.jsDoc,(t=>"string"==typeof t.comment?e.factory.createJSDocText(t.comment):t.comment)),s=e.flatMapToMutable(n.jsDoc,(e=>e.tags)),c=i.filter((t=>!s||!s.some(((r,n)=>{var i=((t,r)=>{if(t.kind===r.kind)switch(t.kind){case 338:var n=t,i=r;return e.isIdentifier(n.name)&&e.isIdentifier(i.name)&&n.name.escapedText===i.name.escapedText?e.factory.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0;case 339:return e.factory.createJSDocReturnTag(void 0,r.typeExpression,t.comment)}})(r,t);return i&&(s[n]=i),!!i})))),l=e.factory.createJSDocComment(e.factory.createNodeArray(e.intersperse(o,e.factory.createJSDocText("\n"))),e.factory.createNodeArray(Il(Il([],s||e.emptyArray,!0),c,!0))),u=213===n.kind?166===(a=n).parent.kind?a.parent:a.parent.parent:n;u.jsDoc=n.jsDoc,u.jsDocCache=n.jsDocCache,t.insertJsdocCommentBefore(r,u,l)}function d(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),(t=>0!==t.kind?e.tryCast(t.node,e.isIdentifier):void 0))}function p(e,t,r){return f(t,d(e,t,r),r).single()}function _(t,r,n,i){var a;switch(t.kind){case 170:a=e.findChildOfKind(t,134,r);break;case 213:case 212:var o=t.parent;a=(e.isVariableDeclaration(o)||e.isPropertyDeclaration(o))&&e.isIdentifier(o.name)?o.name:t.name;break;case 255:case 168:case 167:a=t.name}if(a)return d(a,n,i)}function f(t,r,n){var i=t.getTypeChecker(),a={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:e=>i.createArrayType(e),Promise:e=>i.createPromiseType(e)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:()=>_(c(r)),parameters(a){if(0!==r.length&&a.parameters){for(var o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},s=0,u=r;s<u.length;s++){var p=u[s];n.throwIfCancellationRequested(),l(p,o)}var f=Il(Il([],o.constructs||[],!0),o.calls||[],!0);return a.parameters.map(((r,o)=>{for(var s=[],l=e.isRestParameter(r),u=!1,p=0,m=f;p<m.length;p++){var g=m[p];if(g.argumentTypes.length<=o)u=e.isInJSFile(a),s.push(i.getUndefinedType());else if(l)for(var h=o;h<g.argumentTypes.length;h++)s.push(i.getBaseTypeOfLiteralType(g.argumentTypes[h]));else s.push(i.getBaseTypeOfLiteralType(g.argumentTypes[o]))}if(e.isIdentifier(r.name)){var y=c(d(r.name,t,n));s.push.apply(s,l?e.mapDefined(y,i.getElementTypeOfArrayType):y)}var v=_(s);return{type:l?i.createArrayType(v):v,isOptional:u&&!l,declaration:r}}))}},thisParameter(){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},i=0,a=r;i<a.length;i++){var o=a[i];n.throwIfCancellationRequested(),l(o,t)}return _(t.candidateThisTypes||e.emptyArray)}};function s(t){for(var r=new e.Map,n=0,i=t;n<i.length;n++){var a=i[n];a.properties&&a.properties.forEach(((e,t)=>{r.has(t)||r.set(t,[]),r.get(t).push(e)}))}var o=new e.Map;return r.forEach(((e,t)=>{o.set(t,s(e))})),{isNumber:t.some((e=>e.isNumber)),isString:t.some((e=>e.isString)),isNumberOrString:t.some((e=>e.isNumberOrString)),candidateTypes:e.flatMap(t,(e=>e.candidateTypes)),properties:o,calls:e.flatMap(t,(e=>e.calls)),constructs:e.flatMap(t,(e=>e.constructs)),numberIndex:e.forEach(t,(e=>e.numberIndex)),stringIndex:e.forEach(t,(e=>e.stringIndex)),candidateThisTypes:e.flatMap(t,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function c(e){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},r=0,i=e;r<i.length;r++){var a=i[r];n.throwIfCancellationRequested(),l(a,t)}return f(t)}function l(t,r){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 237:!((t,r)=>{h(r,e.isCallExpression(t)?i.getVoidType():i.getAnyType())})(t,r);break;case 219:r.isNumber=!0;break;case 218:!((e,t)=>{switch(e.operator){case 45:case 46:case 40:case 54:t.isNumber=!0;break;case 39:t.isNumberOrString=!0}})(t.parent,r);break;case 220:!((t,r,n)=>{switch(r.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var a=i.getTypeAtLocation(r.left===t?r.right:r.left);1056&a.flags?h(n,a):n.isNumber=!0;break;case 64:case 39:var o=i.getTypeAtLocation(r.left===t?r.right:r.left);1056&o.flags?h(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:h(n,i.getTypeAtLocation(r.left===t?r.right:r.left));break;case 101:t===r.left&&(n.isString=!0);break;case 56:case 60:t!==r.left||253!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||h(n,i.getTypeAtLocation(r.right))}})(t,t.parent,r);break;case 288:case 289:!((e,t)=>{h(t,i.getTypeAtLocation(e.parent.parent.expression))})(t.parent,r);break;case 207:case 208:t.parent.expression===t?((e,t)=>{var r={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(var n=0,a=e.arguments;n<a.length;n++){var o=a[n];r.argumentTypes.push(i.getTypeAtLocation(o))}l(e,r.return_),207===e.kind?(t.calls||(t.calls=[])).push(r):(t.constructs||(t.constructs=[])).push(r)})(t.parent,r):u(t,r);break;case 205:!((t,r)=>{var n=e.escapeLeadingUnderscores(t.name.text);r.properties||(r.properties=new e.Map);var i=r.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(t,i),r.properties.set(n,i)})(t.parent,r);break;case 206:!((e,t,r)=>{if(t!==e.argumentExpression){var n=i.getTypeAtLocation(e.argumentExpression),a={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,a),296&n.flags?r.numberIndex=a:r.stringIndex=a}else r.isNumberOrString=!0})(t.parent,t,r);break;case 294:case 295:!((t,r)=>{var n=e.isVariableDeclaration(t.parent.parent)?t.parent.parent:t.parent;y(r,i.getTypeAtLocation(n))})(t.parent,r);break;case 166:!((e,t)=>{y(t,i.getTypeAtLocation(e.parent))})(t.parent,r);break;case 253:var n=t.parent,a=n.name,o=n.initializer;if(t===a){o&&h(r,i.getTypeAtLocation(o));break}default:return u(t,r)}}function u(t,r){e.isExpressionNode(t)&&h(r,i.getContextualType(t))}function p(e){return _(f(e))}function _(t){if(!t.length)return i.getAnyType();var r=i.getUnionType([i.getStringType(),i.getNumberType()]),n=((t,r)=>{for(var n=[],i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=r;s<c.length;s++){var l=c[s],u=l.high,d=l.low;u(o)&&(e.Debug.assert(!d(o),"Priority can't have both low and high"),n.push(d))}return t.filter((e=>n.every((t=>!t(e)))))})(t,[{high:e=>e===i.getStringType()||e===i.getNumberType(),low:e=>e===r},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:t=>!(114689&t.flags||16&e.getObjectFlags(t)),low:t=>!!(16&e.getObjectFlags(t))}]),a=n.filter((t=>16&e.getObjectFlags(t)));return a.length&&(n=n.filter((t=>!(16&e.getObjectFlags(t))))).push((t=>{if(1===t.length)return t[0];for(var r=[],n=[],a=[],o=[],s=!1,c=!1,l=e.createMultiMap(),u=0,d=t;u<d.length;u++){for(var p=d[u],_=0,f=i.getPropertiesOfType(p);_<f.length;_++){var m=f[_];l.add(m.name,m.valueDeclaration?i.getTypeOfSymbolAtLocation(m,m.valueDeclaration):i.getAnyType())}r.push.apply(r,i.getSignaturesOfType(p,0)),n.push.apply(n,i.getSignaturesOfType(p,1));var g=i.getIndexInfoOfType(p,0);g&&(a.push(g.type),s=s||g.isReadonly);var h=i.getIndexInfoOfType(p,1);h&&(o.push(h.type),c=c||h.isReadonly)}var y=e.mapEntries(l,((e,r)=>{var n=r.length<t.length?16777216:0,a=i.createSymbol(4|n,e);return a.type=i.getUnionType(r),[e,a]})),v=[];return a.length&&v.push(i.createIndexInfo(i.getStringType(),i.getUnionType(a),s)),o.length&&v.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(o),c)),i.createAnonymousType(t[0].symbol,y,r,n,v)})(a)),i.getWidenedType(i.getUnionType(n.map(i.getBaseTypeOfLiteralType),2))}function f(t){var r,n,s,c=[];return t.isNumber&&c.push(i.getNumberType()),t.isString&&c.push(i.getStringType()),t.isNumberOrString&&c.push(i.getUnionType([i.getStringType(),i.getNumberType()])),t.numberIndex&&c.push(i.createArrayType(p(t.numberIndex))),((null===(r=t.properties)||void 0===r?void 0:r.size)||(null===(n=t.calls)||void 0===n?void 0:n.length)||(null===(s=t.constructs)||void 0===s?void 0:s.length)||t.stringIndex)&&c.push((t=>{var r=new e.Map;t.properties&&t.properties.forEach(((e,t)=>{var n=i.createSymbol(4,t);n.type=p(e),r.set(t,n)}));var n=t.calls?[g(t.calls)]:[],a=t.constructs?[g(t.constructs)]:[],o=t.stringIndex?[i.createIndexInfo(i.getStringType(),p(t.stringIndex),!1)]:[];return i.createAnonymousType(void 0,r,n,a,o)})(t)),c.push.apply(c,(t.candidateTypes||[]).map((e=>i.getBaseTypeOfLiteralType(e)))),c.push.apply(c,(t=>{if(!t.properties||!t.properties.size)return[];var r=o.filter((r=>((t,r)=>!!r.properties&&!e.forEachEntry(r.properties,((r,n)=>{var a,o=i.getTypeOfPropertyOfType(t,n);return!(o&&(r.calls?i.getSignaturesOfType(o,0).length&&i.isTypeAssignableTo(o,(a=r.calls,i.createAnonymousType(void 0,e.createSymbolTable(),[g(a)],e.emptyArray,e.emptyArray))):i.isTypeAssignableTo(o,p(r))))})))(r,t)));return 0<r.length&&r.length<3?r.map((r=>((t,r)=>{if(!(4&e.getObjectFlags(t)&&r.properties))return t;var n=t.target,o=e.singleOrUndefined(n.typeParameters);if(!o)return t;var s=[];return r.properties.forEach(((t,r)=>{var a=i.getTypeOfPropertyOfType(n,r);e.Debug.assert(!!a,"generic should have all the properties of its reference."),s.push.apply(s,m(a,p(t),o))})),a[t.symbol.escapedName](_(s))})(r,t))):[]})(t)),c}function m(t,r,n){if(t===n)return[r];if(3145728&t.flags)return e.flatMap(t.types,(e=>m(e,r,n)));if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)){var a=i.getTypeArguments(t),o=i.getTypeArguments(r),s=[];if(a&&o)for(var c=0;c<a.length;c++)o[c]&&s.push.apply(s,m(a[c],o[c],n));return s}var l=i.getSignaturesOfType(t,0),u=i.getSignaturesOfType(r,0);return 1===l.length&&1===u.length?((t,r,n)=>{for(var a=[],o=0;o<t.parameters.length;o++){var s=t.parameters[o],c=r.parameters[o],l=t.declaration&&e.isRestParameter(t.declaration.parameters[o]);if(!c)break;var u=s.valueDeclaration?i.getTypeOfSymbolAtLocation(s,s.valueDeclaration):i.getAnyType(),d=l&&i.getElementTypeOfArrayType(u);d&&(u=d);var p=c.type||(c.valueDeclaration?i.getTypeOfSymbolAtLocation(c,c.valueDeclaration):i.getAnyType());a.push.apply(a,m(u,p,n))}var _=i.getReturnTypeOfSignature(t),f=i.getReturnTypeOfSignature(r);return a.push.apply(a,m(_,f,n)),a})(l[0],u[0],n):[]}function g(t){for(var r=[],n=Math.max.apply(Math,t.map((e=>e.argumentTypes.length))),a=n=>{var a=i.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(n)));a.type=_(t.map((e=>e.argumentTypes[n]||i.getUndefinedType()))),t.some((e=>void 0===e.argumentTypes[n]))&&(a.flags|=16777216),r.push(a)},o=0;o<n;o++)a(o);var c=p(s(t.map((e=>e.return_))));return i.createSignature(void 0,void 0,void 0,r,c,void 0,n,0)}function h(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function y(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o,s=n.sourceFile,c=n.program,l=n.span.start,u=n.errorCode,d=n.cancellationToken,p=n.host,_=n.preferences,f=e.getTokenAtPosition(s,l),m=e.textChanges.ChangeTracker.with(n,(t=>{o=a(t,s,f,u,c,d,e.returnTrue,p,_)})),g=o&&e.getNameOfDeclaration(o);return g&&0!==m.length?[t.createCodeFixAction(r,m,[i(u,f),g.getText(s)],r,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[r],getAllCodeActions(r){var i=r.sourceFile,o=r.program,s=r.cancellationToken,c=r.host,l=r.preferences,u=e.nodeSeenTracker();return t.codeFixAll(r,n,((t,r)=>{a(t,i,e.getTokenAtPosition(r.file,r.start),r.code,o,s,u,c,l)}))}}),t.addJSDocTags=u})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixReturnTypeInAsyncFunction",n=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function i(t,r,n){if(!e.isInJSFile(t)){var i=e.getTokenAtPosition(t,n),a=e.findAncestor(i,e.isFunctionLikeDeclaration),o=null==a?void 0:a.type;if(o){var s=r.getTypeFromTypeNode(o),c=r.getAwaitedType(s)||r.getVoidType(),l=r.typeToTypeNode(c,o,void 0);return l?{returnTypeNode:o,returnType:s,promisedTypeNode:l,promisedType:c}:void 0}}}function a(t,r,n,i){t.replaceNode(r,n,e.factory.createTypeReferenceNode("Promise",[i]))}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var o=n.sourceFile,s=n.program,c=n.span,l=s.getTypeChecker(),u=i(o,s.getTypeChecker(),c.start);if(u){var d=u.returnTypeNode,p=u.returnType,_=u.promisedTypeNode,f=u.promisedType,m=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,d,_)));return[t.createCodeFixAction(r,m,[e.Diagnostics.Replace_0_with_Promise_1,l.typeToString(p),l.typeToString(f)],r,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(r.file,e.program.getTypeChecker(),r.start);n&&a(t,r.file,n.returnTypeNode,n.promisedTypeNode)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="disableJsDiagnostics",n="disableJsDiagnostics",i=e.mapDefined(Object.keys(e.Diagnostics),(t=>{var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:void 0}));function a(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;i&&!e.tryAddToSet(i,a)||t.insertCommentBeforeLine(r,a,n," @ts-ignore")}t.registerCodeFix({errorCodes:i,getCodeActions(i){var o=i.sourceFile,s=i.program,c=i.span,l=i.host,u=i.formatContext;if(e.isInJSFile(o)&&e.isCheckJsEnabledForFile(o,s.getCompilerOptions())){var d=o.checkJsDirective?"":e.getNewLineOrDefaultFromHost(l,u.options),p=[t.createCodeFixActionWithoutFixAll(r,[t.createFileTextChanges(o.fileName,[e.createTextChange(o.checkJsDirective?e.createTextSpanFromBounds(o.checkJsDirective.pos,o.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(d))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(o,c.start)&&p.unshift(t.createCodeFixAction(r,e.textChanges.ChangeTracker.with(i,(e=>a(e,o,c.start))),e.Diagnostics.Ignore_this_error_message,n,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),p}},fixIds:[n],getAllCodeActions(r){var n=new e.Set;return t.codeFixAll(r,i,((t,r)=>{e.textChanges.isValidLocationToAddComment(r.file,r.start)&&a(t,r.file,r.start,n)}))}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{function r(t){return{trackSymbol:()=>!1,moduleResolverHost:e.getModuleSpecifierResolverHost(t.program,t.host)}}function n(t,n,a,c,l,u,d,_,m,g){void 0===m&&(m=3),void 0===g&&(g=!1);var h=t.getDeclarations();if(h&&h.length){var y=c.program.getTypeChecker(),v=e.getEmitScriptTarget(c.program.getCompilerOptions()),b=h[0],x=e.getSynthesizedDeepClone(e.getNameOfDeclaration(b),!1),E=(t=>4&t?e.factory.createToken(123):16&t?e.factory.createToken(122):void 0)(e.getEffectiveModifierFlags(b)),S=E?e.factory.createNodeArray([E]):void 0,D=y.getWidenedType(y.getTypeOfSymbolAtLocation(t,n)),T=!!(16777216&t.flags),C=!!(8388608&n.flags)||g,k=e.getQuotePreference(a,l);switch(b.kind){case 165:case 166:var A=0===k?268435456:void 0,N=y.typeToTypeNode(D,n,A,r(c));u&&(w=p(N,v))&&(N=w.typeNode,f(u,w.symbols)),d(e.factory.createPropertyDeclaration(void 0,S,x,T&&2&m?e.factory.createToken(57):void 0,N,void 0));break;case 171:case 172:var w,F=y.typeToTypeNode(D,n,void 0,r(c)),P=e.getAllAccessorDeclarations(h,b),I=P.secondAccessor?[P.firstAccessor,P.secondAccessor]:[P.firstAccessor];u&&(w=p(F,v))&&(F=w.typeNode,f(u,w.symbols));for(var O=0,M=I;O<M.length;O++){var R=M[O];if(e.isGetAccessorDeclaration(R))d(e.factory.createGetAccessorDeclaration(void 0,S,x,e.emptyArray,F,C?void 0:_||s(k)));else{e.Debug.assertNode(R,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var L=e.getSetAccessorValueParameter(R),B=L&&e.isIdentifier(L.name)?e.idText(L.name):void 0;d(e.factory.createSetAccessorDeclaration(void 0,S,x,o(1,[B],[F],1,!1),C?void 0:_||s(k)))}}break;case 167:case 168:var j=y.getSignaturesOfType(D,0);if(!e.some(j))break;if(1===h.length){e.Debug.assert(1===j.length,"One declaration implies one signature"),z(k,j[0],S,x,C?void 0:_||s(k));break}for(var U=0,V=j;U<V.length;U++)z(k,V[U],e.getSynthesizedDeepClones(S,!1),e.getSynthesizedDeepClone(x,!1));C||(h.length>j.length?z(k,y.getSignatureFromDeclaration(h[h.length-1]),S,x,_||s(k)):(e.Debug.assert(h.length===j.length,"Declarations and signatures should match count"),d(((t,n,i,a,c,l,u,d,p)=>{for(var _=a[0],f=a[0].minArgumentCount,m=!1,g=0,h=a;g<h.length;g++){var y=h[g];f=Math.min(y.minArgumentCount,f),e.signatureHasRestParameter(y)&&(m=!0),y.parameters.length>=_.parameters.length&&(!e.signatureHasRestParameter(y)||e.signatureHasRestParameter(_))&&(_=y)}var v=_.parameters.length-(e.signatureHasRestParameter(_)?1:0),b=_.parameters.map((e=>e.name)),x=o(v,b,void 0,f,!1);if(m){var E=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(130)),S=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),b[v]||"rest",v>=f?e.factory.createToken(57):void 0,E,void 0);x.push(S)}return((t,r,n,i,a,o,c,l)=>e.factory.createMethodDeclaration(void 0,t,void 0,r,n?e.factory.createToken(57):void 0,void 0,a,o,l||s(c)))(u,c,l,0,x,((t,n,i,a)=>{if(e.length(t)){var o=n.getUnionType(e.map(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,a,void 0,r(i))}})(a,t,n,i),d,p)})(y,c,n,j,x,T&&!!(1&m),S,k,_))))}}function z(e,t,r,a,o){var s=i(168,c,e,t,o,a,r,T&&!!(1&m),n,u);s&&d(s)}}function i(t,n,i,a,o,s,c,l,u,d){var _=n.program,m=_.getTypeChecker(),g=e.getEmitScriptTarget(_.getCompilerOptions()),h=1073742081|(0===i?268435456:0),y=m.signatureToSignatureDeclaration(a,t,u,h,r(n));if(y){var v=y.typeParameters,b=y.parameters,x=y.type;if(d){if(v){var E=e.sameMap(v,(t=>{var r,n=t.constraint,i=t.default;return n&&(r=p(n,g))&&(n=r.typeNode,f(d,r.symbols)),i&&(r=p(i,g))&&(i=r.typeNode,f(d,r.symbols)),e.factory.updateTypeParameterDeclaration(t,t.name,n,i)}));v!==E&&(v=e.setTextRange(e.factory.createNodeArray(E,v.hasTrailingComma),v))}var S=e.sameMap(b,(t=>{var r=p(t.type,g),n=t.type;return r&&(n=r.typeNode,f(d,r.symbols)),e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(b!==S&&(b=e.setTextRange(e.factory.createNodeArray(S,b.hasTrailingComma),b)),x){var D=p(x,g);D&&(x=D.typeNode,f(d,D.symbols))}}var T=l?e.factory.createToken(57):void 0,C=y.asteriskToken;return e.isFunctionExpression(y)?e.factory.updateFunctionExpression(y,c,y.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,x,null!=o?o:y.body):e.isArrowFunction(y)?e.factory.updateArrowFunction(y,c,v,b,x,y.equalsGreaterThanToken,null!=o?o:y.body):e.isMethodDeclaration(y)?e.factory.updateMethodDeclaration(y,void 0,c,C,null!=s?s:e.factory.createIdentifier(""),T,v,b,x,o):void 0}}function a(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var l=p(c,a);l&&(f(r,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function o(t,r,n,i,a){for(var o=[],s=0;s<t;s++){var c=e.factory.createParameterDeclaration(void 0,void 0,void 0,r&&r[s]||"arg".concat(s),void 0!==i&&s>=i?e.factory.createToken(57):void 0,a?void 0:n&&n[s]||e.factory.createKeywordTypeNode(130),void 0);o.push(c)}return o}function s(t){return c(e.Diagnostics.Method_not_implemented.message,t)}function c(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function l(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=d(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s<c.length;s++){var l=c[s],p=l[0],_=l[1],f=d(o,p);void 0===f?t.insertNodeAtObjectStart(r,o,u(p,_)):t.replaceNode(r,f.initializer,_)}}else t.insertNodeAtObjectStart(r,i,u("compilerOptions",e.factory.createObjectLiteralExpression(n.map((e=>u(e[0],e[1]))),!0)))}}function u(t,r){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(t),r)}function d(t,r){return e.find(t.properties,(t=>e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r))}function p(t,r){var n,i=e.visitNode(t,(function t(i){var a;if(e.isLiteralImportTypeNode(i)&&i.qualifier){var o=e.getFirstIdentifier(i.qualifier),s=e.getNameForExportedSymbol(o.symbol,r),c=s!==o.text?_(i.qualifier,e.factory.createIdentifier(s)):i.qualifier;n=e.append(n,o.symbol);var l=null===(a=i.typeArguments)||void 0===a?void 0:a.map(t);return e.factory.createTypeReferenceNode(c,l)}return e.visitEachChild(i,t,e.nullTransformationContext)}));if(n&&i)return{typeNode:i,symbols:n}}function _(t,r){return 79===t.kind?r:e.factory.createQualifiedName(_(t.left,r),t.right)}function f(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}var m;t.createMissingMemberNodes=(e,t,r,i,a,o,s)=>{for(var c=e.symbol.members,l=0,u=t;l<u.length;l++){var d=u[l];c.has(d.escapedName)||n(d,e,r,i,a,o,s,void 0)}},t.getNoopSymbolTrackerWithResolver=r,(m=t.PreserveOptionalFlags||(t.PreserveOptionalFlags={}))[m.Method=1]="Method",m[m.Property=2]="Property",m[m.All=3]="All",t.addNewNodeForMemberSymbol=n,t.createSignatureDeclarationFromSignature=i,t.createSignatureDeclarationFromCallExpression=(t,n,i,l,u,d,p)=>{var _=e.getQuotePreference(n.sourceFile,n.preferences),f=e.getEmitScriptTarget(n.program.getCompilerOptions()),m=r(n),g=n.program.getTypeChecker(),h=e.isInJSFile(p),y=l.typeArguments,v=l.arguments,b=l.parent,x=h?void 0:g.getContextualType(l),E=e.map(v,(t=>e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)?t.name.text:void 0)),S=h?[]:e.map(v,(e=>a(g,i,g.getBaseTypeOfLiteralType(g.getTypeAtLocation(e)),p,f,void 0,m))),D=d?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(d)):void 0,T=e.isYieldExpression(b)?e.factory.createToken(41):void 0,C=h||void 0===y?void 0:e.map(y,((t,r)=>e.factory.createTypeParameterDeclaration(84+y.length-1<=90?String.fromCharCode(84+r):"T".concat(r)))),k=o(v.length,E,S,void 0,h),A=h||void 0===x?void 0:g.typeToTypeNode(x,p,void 0,m);return 168===t?e.factory.createMethodDeclaration(void 0,D,T,u,void 0,C,k,A,e.isInterfaceDeclaration(p)?void 0:s(_)):e.factory.createFunctionDeclaration(void 0,D,T,u,C,k,A,c(e.Diagnostics.Function_not_implemented.message,_))},t.typeToAutoImportableTypeNode=a,t.createStubbedBody=c,t.setJsonCompilerOptionValues=l,t.setJsonCompilerOptionValue=(e,t,r,n)=>{l(e,t,[[r,n]])},t.createJsonPropertyAssignment=u,t.findJsonProperty=d,t.tryGetAutoImportableReferenceFromTypeNode=p,t.importSymbols=f})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{function r(t){return e.isParameterPropertyDeclaration(t,t.parent)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function n(t,r){return e.isIdentifier(r)?e.factory.createIdentifier(t):e.factory.createStringLiteral(t)}function i(t,r,n){var i=r?n.name:e.factory.createThis();return e.isIdentifier(t)?e.factory.createPropertyAccessExpression(i,t):e.factory.createElementAccessExpression(i,e.factory.createStringLiteralFromNode(t))}function a(t,i,a,o,c){void 0===c&&(c=!0);var l=e.getTokenAtPosition(t,a),u=a===o&&c,d=e.findAncestor(l.parent,r);if(!d||!e.nodeOverlapsWithStartEnd(d.name,t,a,o)&&!u)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!(t=>e.isIdentifier(t)||e.isStringLiteral(t))(d.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if(124!=(124|e.getEffectiveModifierFlags(d)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var p=d.name.text,_=e.startsWithUnderscore(p),f=n(_?p:e.getUniqueName("_".concat(p),t),d.name),m=n(_?e.getUniqueName(p.substring(1),t):p,d.name);return{isStatic:e.hasStaticModifier(d),isReadonly:e.hasEffectiveReadonlyModifier(d),type:s(d,i),container:163===d.kind?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:f,accessorName:m,renameAccessor:_}}function o(t,r,n,i,a){e.isParameterPropertyDeclaration(i,i.parent)?t.insertNodeAtClassStart(r,a,n):e.isPropertyAssignment(i)?t.insertNodeAfterComma(r,i,n):t.insertNodeAfter(r,i,n)}function s(t,r){var n=e.getTypeAnnotationNode(t);if(e.isPropertyDeclaration(t)&&n&&t.questionToken){var i=r.getTypeChecker(),a=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),a)){var o=e.isUnionTypeNode(n)?n.types:[n];return e.factory.createUnionTypeNode(Il(Il([],o,!0),[e.factory.createKeywordTypeNode(152)],!1))}}return n}t.generateAccessorFromProperty=(t,r,n,s,c,l)=>{var u=a(t,r,n,s);if(u&&!e.refactor.isRefactorErrorInfo(u)){var d,p,_=e.textChanges.ChangeTracker.fromContext(c),f=u.isStatic,m=u.isReadonly,g=u.fieldName,h=u.accessorName,y=u.originalName,v=u.type,b=u.container,x=u.declaration;if(e.suppressLeadingAndTrailingTrivia(g),e.suppressLeadingAndTrailingTrivia(h),e.suppressLeadingAndTrailingTrivia(x),e.suppressLeadingAndTrailingTrivia(b),e.isClassLike(b)){var E=e.getEffectiveModifierFlags(x);if(e.isSourceFileJS(t)){var S=e.createModifiers(E);d=S,p=S}else d=e.createModifiers((e=>(e&=-65,16&(e&=-9)||(e|=4),e))(E)),p=e.createModifiers((e=>8|-5&e&-17)(E))}!((t,r,n,i,a,o)=>{e.isPropertyDeclaration(n)?((t,r,n,i,a,o)=>{var s=e.factory.updatePropertyDeclaration(n,n.decorators,o,a,n.questionToken||n.exclamationToken,i,n.initializer);t.replaceNode(r,n,s)})(t,r,n,i,a,o):e.isPropertyAssignment(n)?((t,r,n,i)=>{var a=e.factory.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)})(t,r,n,a):t.replaceNode(r,n,e.factory.updateParameterDeclaration(n,n.decorators,o,n.dotDotDotToken,e.cast(a,e.isIdentifier),n.questionToken,n.type,n.initializer))})(_,t,x,v,g,p);var D=((t,r,n,a,o,s)=>e.factory.createGetAccessorDeclaration(void 0,a,r,void 0,n,e.factory.createBlock([e.factory.createReturnStatement(i(t,o,s))],!0)))(g,h,v,d,f,b);if(e.suppressLeadingAndTrailingTrivia(D),o(_,t,D,x,b),m){var T=e.getFirstConstructorWithBody(b);T&&((t,r,n,i,a)=>{n.body&&n.body.forEachChild((function n(o){e.isElementAccessExpression(o)&&108===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.argumentExpression,e.factory.createStringLiteral(i)),e.isPropertyAccessExpression(o)&&108===o.expression.kind&&o.name.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.name,e.factory.createIdentifier(i)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(n)}))})(_,t,T,g.text,y)}else{var C=((t,r,n,a,o,s)=>e.factory.createSetAccessorDeclaration(void 0,a,r,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,n)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(i(t,o,s),e.factory.createIdentifier("value")))],!0)))(g,h,v,d,f,b);e.suppressLeadingAndTrailingTrivia(C),o(_,t,C,x,b)}return _.getChanges()}},t.getAccessorConvertiblePropertyAtPosition=a,t.getAllSupers=(t,r)=>{for(var n=[];t;){var i=e.getClassExtendsHeritageElement(t),a=i&&r.getSymbolAtLocation(i.expression);if(!a)break;var o=2097152&a.flags?r.getAliasedSymbol(a):a,s=o.declarations&&e.find(o.declarations,e.isClassLike);if(!s)break;n.push(s),t=s}return n}})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="invalidImportSyntax";function n(n,i,a,o){var s=e.textChanges.ChangeTracker.with(n,(e=>e.replaceNode(i,a,o)));return t.createCodeFixActionWithoutFixAll(r,s,[e.Diagnostics.Replace_import_with_0,s[0].textChanges[0].newText])}function i(i,a){var o=i.program.getTypeChecker().getTypeAtLocation(a);if(!o.symbol||!o.symbol.originatingImport)return[];var s=[],c=o.symbol.originatingImport;if(e.isImportCall(c)||e.addRange(s,((t,r)=>{var i=e.getSourceFileOfNode(r),a=e.getNamespaceDeclarationNode(r),o=t.program.getCompilerOptions(),s=[];return s.push(n(t,i,r,e.makeImport(a.name,void 0,r.moduleSpecifier,e.getQuotePreference(i,t.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(n(t,i,r,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a.name,e.factory.createExternalModuleReference(r.moduleSpecifier)))),s})(i,c)),e.isExpression(a)&&(!e.isNamedDeclaration(a.parent)||a.parent.name!==a)){var l=i.sourceFile,u=e.textChanges.ChangeTracker.with(i,(t=>t.replaceNode(l,a,e.factory.createPropertyAccessExpression(a,"default"),{})));s.push(t.createCodeFixActionWithoutFixAll(r,u,e.Diagnostics.Use_synthetic_default_member))}return s}t.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions(t){var r=t.sourceFile,n=e.Diagnostics.This_expression_is_not_callable.code===t.errorCode?207:208,a=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(e=>e.kind===n));return a?i(t,a.expression):[]}}),t.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions(t){var r=t.sourceFile,n=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(e=>e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length));return n?i(t,n):[]}})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="strictClassInitialization",n="addMissingPropertyDefiniteAssignmentAssertions",i="addMissingPropertyUndefinedType",a="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(t,r){var n=e.getTokenAtPosition(t,r);return e.isIdentifier(n)?e.cast(n.parent,e.isPropertyDeclaration):void 0}function c(i,a){var o=e.textChanges.ChangeTracker.with(i,(e=>l(e,i.sourceFile,a)));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,a.getText()],n,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function l(t,r,n){var i=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,e.factory.createToken(53),n.type,n.initializer);t.replaceNode(r,n,i)}function u(n,a){var o=e.textChanges.ChangeTracker.with(n,(e=>d(e,n.sourceFile,a)));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_undefined_type_to_property_0,a.name.getText()],i,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function d(t,r,n){var i=e.factory.createKeywordTypeNode(152),a=n.type,o=e.isUnionTypeNode(a)?a.types.concat(i):[a,i];t.replaceNode(r,a,e.factory.createUnionTypeNode(o))}function p(t,r,n,i){var a=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function _(e,t){return f(e,e.getTypeFromTypeNode(t.type))}function f(t,r){if(512&r.flags)return r===t.getFalseType()||r===t.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(r.isStringLiteral())return e.factory.createStringLiteral(r.value);if(r.isNumberLiteral())return e.factory.createNumericLiteral(r.value);if(2048&r.flags)return e.factory.createBigIntLiteral(r.value);if(r.isUnion())return e.firstDefined(r.types,(e=>f(t,e)));if(r.isClass()){var n=e.getClassLikeDeclarationOfSymbol(r.symbol);if(!n||e.hasSyntacticModifier(n,128))return;var i=e.getFirstConstructorWithBody(n);if(i&&i.parameters.length)return;return e.factory.createNewExpression(e.factory.createIdentifier(r.symbol.name),void 0,void 0)}return t.isArrayLikeType(r)?e.factory.createArrayLiteralExpression():void 0}t.registerCodeFix({errorCodes:o,getCodeActions(n){var i=s(n.sourceFile,n.span.start);if(i){var o=[u(n,i),c(n,i)];return e.append(o,((n,i)=>{var o=_(n.program.getTypeChecker(),i);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>p(e,n.sourceFile,i,o)));return t.createCodeFixAction(r,s,[e.Diagnostics.Add_initializer_to_property_0,i.name.getText()],a,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}})(n,i)),o}},fixIds:[n,i,a],getAllCodeActions:r=>t.codeFixAll(r,o,((t,o)=>{var c=s(o.file,o.start);if(c)switch(r.fixId){case n:l(t,o.file,c);break;case i:d(t,o.file,c);break;case a:var u=_(r.program.getTypeChecker(),c);if(!u)return;p(t,o.file,c,u);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="requireInTs",n=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function i(t,r,n){var i=n.allowSyntheticDefaults,a=n.defaultImportName,o=n.namedImports,s=n.statement,c=n.required;t.replaceNode(r,s,a&&!i?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a,e.factory.createExternalModuleReference(c)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),c,void 0))}function a(t,r,n){var i=e.getTokenAtPosition(t,n).parent;if(!e.isRequireCall(i,!0))throw e.Debug.failBadSyntaxKind(i);var a=e.cast(i.parent,e.isVariableDeclaration),o=e.tryCast(a.name,e.isIdentifier),s=e.isObjectBindingPattern(a.name)?(t=>{for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];if(!e.isIdentifier(a.name)||a.initializer)return;r.push(e.factory.createImportSpecifier(!1,e.tryCast(a.propertyName,e.isIdentifier),a.name))}if(r.length)return e.factory.createNamedImports(r)})(a.name):void 0;if(o||s)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(r.getCompilerOptions()),defaultImportName:o,namedImports:s,statement:e.cast(a.parent.parent,e.isVariableStatement),required:e.first(i.arguments)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=a(n.sourceFile,n.program,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,o)));return[t.createCodeFixAction(r,s,e.Diagnostics.Convert_require_to_import,r,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=a(r.file,e.program,r.start);n&&i(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="useDefaultImport",n=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}}function a(t,r,n,i){t.replaceNode(r,n.importNode,e.makeImport(n.name,void 0,n.moduleSpecifier,e.getQuotePreference(r,i)))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span.start,c=i(o,s);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c,n.preferences)));return[t.createCodeFixAction(r,l,e.Diagnostics.Convert_to_default_import,r,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(r.file,r.start);n&&a(t,r.file,n,e.preferences)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="useBigintLiteral",n=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),e.isNumericLiteral);if(i){var a=i.getText(r)+"n";t.replaceNode(r,i,e.factory.createBigIntLiteral(a))}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span)));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t)))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(100===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(199===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>a(t,e.sourceFile,i(r.file,r.start))))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=(t=>{for(var r=[],n=t;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}})(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c)));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.cast(n.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(i.parent))return{indexSignature:i,container:e.isInterfaceDeclaration(i.parent)?i.parent:e.cast(i.parent.parent,e.isTypeAliasDeclaration)}}function a(t,r,n){var i,a,o=n.indexSignature,s=n.container,c=(e.isInterfaceDeclaration(s)?s.members:s.type.members).filter((t=>!e.isIndexSignatureDeclaration(t))),l=e.first(o.parameters),u=e.factory.createTypeParameterDeclaration(e.cast(l.name,e.isIdentifier),l.type),d=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(o)?e.factory.createModifier(144):void 0,u,void 0,o.questionToken,o.type,void 0),p=e.factory.createIntersectionTypeNode(Il(Il(Il([],e.getAllSuperTypeNodes(s),!0),[d],!1),c.length?[e.factory.createTypeLiteralNode(c)]:e.emptyArray,!0));t.replaceNode(r,s,(i=s,a=p,e.factory.createTypeAliasDeclaration(i.decorators,i.modifiers,i.name,i.typeParameters,a)))}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,c))),u=e.idText(c.container.name);return[t.createCodeFixAction(r,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],r,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>{var r=i(t.file,t.start);r&&a(e,t.file,r)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(e=>{e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})})(Fl),(e=>{!(t=>{var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),(e=>132===e.kind)),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,r);c&&103!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span)));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((e,t)=>i(e,t.file,t)))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.decorators,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier,r.assertClause)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier,r.assertClause))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions(r){var o=e.textChanges.ChangeTracker.with(r,(e=>a(e,i(r.sourceFile,r.span),r)));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>t.codeFixAll(e,r,((t,r)=>{a(t,i(e.sourceFile,r),e)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{var t,r,n;t=e.codefix||(e.codefix={}),r="fixConvertConstToLet",n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],t.registerCodeFix({errorCodes:n,getCodeActions(n){var i=n.sourceFile,a=n.span,o=n.program,s=((t,r,n)=>{var i,a=n.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,r)),o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,85,t);if(void 0!==s)return e.createRange(s.pos,s.end)}})(i,a.start,o);if(void 0!==s){var c=e.textChanges.ChangeTracker.with(n,(e=>((e,t,r)=>{e.replaceRangeWithText(t,r,"let")})(e,i,s)));return[t.createCodeFixAction(r,c,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_const_to_let)]}},fixIds:[r]})})(Fl),(e=>{!(t=>{var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=e.textChanges.ChangeTracker.with(n,(e=>a(e,o,s)));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:e=>t.codeFixAll(e,n,((t,r)=>{var n=i(r.file,r.start);n&&a(t,e.sourceFile,n)}))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="addVoidToPromise",n=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var u=(t=>{var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}})(l.parent.parent);if(e.some(u)){var d=u[0],p=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(114)]).types[0]);p&&t.insertText(r,d.pos,"("),t.insertText(r,d.end,p?") | void":" | void")}else{var _=s.getResolvedSignature(o.parent),f=null==_?void 0:_.parameters[0],m=f&&s.getTypeOfSymbolAtLocation(f,l.parent.parent);e.isInJSFile(l)?(!m||3&m.flags)&&(t.insertText(r,l.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,l.parent.parent.pos),"/** @type {Promise<void>} */(")):(!m||2&m.flags)&&t.insertText(r,l.parent.parent.expression.end,"<void>")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions(n){var a=e.textChanges.ChangeTracker.with(n,(e=>i(e,n.sourceFile,n.span,n.program)));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:r=>t.codeFixAll(r,n,((t,n)=>i(t,n.file,n,r.program,new e.Set)))})})(e.codefix||(e.codefix={}))})(Fl),(e=>{!(t=>{var r="Convert export",n={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},i={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function a(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(n,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&r?o.parent:e.getParentNodeInSpan(o,n,a);if(!s||!(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=e.isSourceFile(s.parent)?s.parent.symbol:s.parent.parent.symbol,l=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?513:0),u=!!(512&l);if(!(1&l)||!u&&c.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var d=i.getTypeChecker(),p=t=>e.isIdentifier(t)&&d.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)};switch(s.kind){case 255:case 256:case 257:case 259:case 258:case 260:if(!(m=s).name)return;return p(m.name)||{exportNode:m,exportName:m.name,wasDefault:u,exportingModuleSymbol:c};case 236:var _=s;if(!(2&_.declarationList.flags)||1!==_.declarationList.declarations.length)return;var f=e.first(_.declarationList.declarations);if(!f.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),p(f.name)||{exportNode:_,exportName:f.name,wasDefault:u,exportingModuleSymbol:c};case 270:var m;if((m=s).isExportEquals)return;return p(m.expression)||{exportNode:m,exportName:m.expression,wasDefault:u,exportingModuleSymbol:c};default:return}}function o(t,r){return e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function s(t,r){return e.factory.createExportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions(o){var s=a(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!t.isRefactorErrorInfo(s)){var c=s.wasDefault?n:i;return[{name:r,description:c.description,actions:[c]}]}return o.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[Ol(Ol({},n),{notApplicableReason:s.error}),Ol(Ol({},i),{notApplicableReason:s.error})]}]:e.emptyArray},getEditsForAction(r,c){e.Debug.assert(c===n.name||c===i.name,"Unexpected action name");var l=a(r);return e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(t=>((t,r,n,i,a)=>{((t,r,n,i)=>{var a=r.wasDefault,o=r.exportNode,c=r.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,u=s(l.text,l.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([u])))}else n.delete(t,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var d=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 255:case 256:case 257:n.insertNodeAfter(t,d,e.factory.createToken(88));break;case 236:var p=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,t)&&!p.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 259:case 258:case 260:n.deleteModifier(t,d),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(c.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(o.kind))}}})(t,n,i,r.getTypeChecker()),((t,r,n,i)=>{var a=r.wasDefault,c=r.exportName,l=r.exportingModuleSymbol,u=t.getTypeChecker(),d=e.Debug.checkDefined(u.getSymbolAtLocation(c),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,d,l,c.text,a,(t=>{var r=t.getSourceFile();a?((t,r,n,i)=>{var a=r.parent;switch(a.kind){case 205:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 269:case 274:var s=a;n.replaceNode(t,s,o(i,s.name.text));break;case 266:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref"),s=o(i,r.text);var l=c.namedBindings;if(l)if(267===l.kind){n.deleteRange(t,{pos:r.getStart(t),end:l.getStart(t)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[o(i,r.text)],c.parent.moduleSpecifier,u);n.insertNodeAfter(t,c.parent,d)}else n.delete(t,r),n.insertNodeAtEndOfList(t,l.elements,s);else n.replaceNode(t,r,e.factory.createNamedImports([s]));break;default:e.Debug.failBadSyntaxKind(a)}})(r,t,n,c.text):((t,r,n)=>{var i=r.parent;switch(i.kind){case 205:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 269:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 274:n.replaceNode(t,i,s("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind ".concat(i.kind))}})(r,t,n)}))})(r,n,i,a)})(r.file,r.program,l,t,r.cancellationToken))),renameFilename:void 0,renameLocation:void 0}}})})(e.refactor||(e.refactor={}))})(Fl),(e=>{!(t=>{var r="Convert import",n={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},i={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};function a(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};var s=i.start+i.length,c=e.findNextToken(o,o.parent,n);if(!(c&&s>c.getStart())){var l=o.importClause;return l?l.namedBindings?l.namedBindings:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function o(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function s(t,r,n){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,r,n&&n.length?e.factory.createNamedImports(n):void 0),t.moduleSpecifier,void 0)}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions(o){var s=a(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!t.isRefactorErrorInfo(s)){var c=267===s.kind?n:i;return[{name:r,description:c.description,actions:[c]}]}return o.preferences.provideRefactorNotApplicableReason?[{name:r,description:n.description,actions:[Ol(Ol({},n),{notApplicableReason:s.error})]},{name:r,description:i.description,actions:[Ol(Ol({},i),{notApplicableReason:s.error})]}]:e.emptyArray},getEditsForAction(r,c){e.Debug.assert(c===n.name||c===i.name,"Unexpected action name");var l=a(r);return e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(t=>{return n=r.file,i=r.program,a=t,c=l,u=i.getTypeChecker(),void(267===c.kind?((t,r,n,i,a)=>{var c=!1,l=[],u=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,(t=>{if(e.isPropertyAccessOrQualifiedName(t.parent)){var n=o(t.parent).text;r.resolveName(n,t,67108863,!0)&&u.set(n,!0),e.Debug.assert((t=>e.isPropertyAccessExpression(t)?t.expression:t.left)(t.parent)===t,"Parent expression should match id"),l.push(t.parent)}else c=!0}));for(var d=new e.Map,p=0,_=l;p<_.length;p++){var f=_[p],m=o(f).text,g=d.get(m);void 0===g&&d.set(m,g=u.has(m)?e.getUniqueName(m,t):m),n.replaceNode(t,f,e.factory.createIdentifier(g))}var h=[];d.forEach(((t,r)=>{h.push(e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(t)))}));var y=i.parent.parent;c&&!a?n.insertNodeAfter(t,y,s(y,void 0,h)):n.replaceNode(t,y,s(y,c?e.factory.createIdentifier(i.name.text):void 0,h))})(n,u,a,c,e.getAllowSyntheticDefaultImports(i.getCompilerOptions())):((t,r,n,i)=>{var a=i.parent.parent,o=a.moduleSpecifier,c=new e.Set;i.elements.forEach((e=>{var t=r.getSymbolAtLocation(e.name);t&&c.add(t)}));for(var l=o&&e.isStringLiteral(o)?e.codefix.moduleSpecifierToValidIdentifier(o.text,99):"module",u=i.elements.some((n=>!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,t,(t=>{var n=r.resolveName(l,t,67108863,!0);return!!n&&(!c.has(n)||e.isExportSpecifier(t.parent))}))))?e.getUniqueName(l,t):l,d=new e.Set,p=i=>{var a=(i.propertyName||i.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,(r=>{var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(u),a);e.isShorthandPropertyAssignment(r.parent)?n.replaceNode(t,r.parent,e.factory.createPropertyAssignment(r.text,o)):e.isExportSpecifier(r.parent)?d.add(i):n.replaceNode(t,r,o)}))},_=0,f=i.elements;_<f.length;_++)p(f[_]);if(n.replaceNode(t,i,e.factory.createNamespaceImport(e.factory.createIdentifier(u))),d.size){var m=e.arrayFrom(d.values()).map((t=>e.factory.createImportSpecifier(t.isTypeOnly,t.propertyName&&e.factory.createIdentifier(t.propertyName.text),e.factory.createIdentifier(t.name.text))));n.insertNodeAfter(t,i.parent.parent,s(a,void 0,m))}})(n,u,a,c));var n,i,a,c,u})),renameFilename:void 0,renameLocation:void 0}}})})(e.refactor||(e.refactor={}))})(Fl),(e=>{var t;(r=>{var n="Convert to optional chain expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),a={name:n,description:i,kind:"refactor.rewrite.expression.optionalChain"};function o(t){return e.isBinaryExpression(t)||e.isConditionalExpression(t)}function s(t){return o(t)||(t=>e.isExpressionStatement(t)||e.isReturnStatement(t)||e.isVariableStatement(t))(t)}function c(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),c=0===a.length;if(!c||r){var d=e.getTokenAtPosition(n,a.start),_=e.findTokenOnLeftOfPosition(n,a.start+a.length),f=e.createTextSpanFromBounds(d.pos,_&&_.end>=d.pos?_.getEnd():d.getEnd()),m=c?(e=>{for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}})(d):((e,t)=>{for(;e.parent;){if(s(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}})(d,f),g=m&&s(m)?(t=>{if(o(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&o(n)?n:void 0}return t.expression&&o(t.expression)?t.expression:void 0})(m):void 0;if(!g)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var h=i.getTypeChecker();return e.isConditionalExpression(g)?((t,r)=>{var n=t.condition,i=p(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&u(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=l(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}})(g,h):(t=>{if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=p(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=l(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}})(g)}}function l(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=u(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=u(t,r);return a&&n.push(a),n.length>0?n:void 0}function u(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return((t,r)=>{for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&d(t)!==d(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(d(t)!==d(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()})(t,r)?r:void 0}function d(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?d(t.name):e.isElementAccessExpression(t)?d(t.argumentExpression):void 0}function p(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?p(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function _(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=_(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(n,{kinds:[a.kind],getAvailableActions(r){var o=c(r,"invoked"===r.triggerReason);return o?t.isRefactorErrorInfo(o)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[Ol(Ol({},a),{notApplicableReason:o.error})]}]:e.emptyArray:[{name:n,description:i,actions:[a]}]:e.emptyArray},getEditsForAction(r,n){var i=c(r);return e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(t=>((t,r,n,i,a)=>{var o=i.finalExpression,s=i.occurrences,c=i.expression,l=s[s.length-1],u=_(r,o,s);u&&(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u)||e.isCallExpression(u))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,l,o,u):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(u,e.factory.createToken(60),c.whenFalse)))})(r.file,r.program.getTypeChecker(),t,i))),renameFilename:void 0,renameLocation:void 0}}})})((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))})(Fl),(e=>{var t;(r=>{var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 167:case 168:case 173:case 170:case 174:case 255:return!0}return!1}function s(t,r,n){var i=e.getTokenAtPosition(t,r),a=e.findAncestor(i,o);if(a){var s=n.getTypeChecker(),c=a.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(r=>e.getSourceFileOfNode(r)===t))&&o(l[0])){var u=l[0].kind;if(e.every(l,(e=>e.kind===u))){var d=l;if(!e.some(d,(t=>!!t.typeParameters||e.some(t.parameters,(t=>!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)))))){var p=e.mapDefined(d,(e=>s.getSignatureFromDeclaration(e)));if(e.length(p)===e.length(l)){var _=s.getReturnTypeOfSignature(p[0]);if(e.every(p,(e=>s.getReturnTypeOfSignature(e)===_)))return d}}}}}}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(t){var r=t.file,n=t.startPosition,i=t.program,a=s(r,n,i);if(a){var o=i.getTypeChecker(),c=a[a.length-1],l=c;switch(c.kind){case 167:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,u(a),c.type);break;case 168:l=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,u(a),c.type,c.body);break;case 173:l=e.factory.updateCallSignature(c,c.typeParameters,u(a),c.type);break;case 170:l=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,u(a),c.body);break;case 174:l=e.factory.updateConstructSignature(c,c.typeParameters,u(a),c.type);break;case 255:l=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,u(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l!==c)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(e=>{e.replaceNodeRange(r,a[0],a[a.length-1],l)}))}}function u(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,d)))])}function d(t){var r=e.map(t.parameters,p);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(t=>!!e.length(e.getSyntheticLeadingComments(t))))?0:1)}function p(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(130)),t),n=t.symbol&&t.symbol.getDocumentationComment(o);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n".concat(i.split("\n").map((e=>" * ".concat(e))).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:t=>s(t.file,t.startPosition,t.program)?[{name:n,description:i,actions:[a]}]:e.emptyArray})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))})(Fl),(e=>{var t;(r=>{var n,i,a,o,s="Extract Symbol",c={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},l={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function u(r){var n=r.kind,i=p(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),a=i.targetRange;if(void 0===a){if(!i.errors||0===i.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var o=[];return t.refactorKindBeginsWith(l.kind,n)&&o.push({name:s,description:l.description,actions:[Ol(Ol({},l),{notApplicableReason:A(i.errors)})]}),t.refactorKindBeginsWith(c.kind,n)&&o.push({name:s,description:c.description,actions:[Ol(Ol({},c),{notApplicableReason:A(i.errors)})]}),o}var u=((t,r)=>{var n=m(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope;return i.map(((t,r)=>{var n,i,a=(t=>e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function")(t),c=(t=>e.isClassLike(t)?"readonly field":"constant")(t),l=e.isFunctionLikeDeclaration(t)?(t=>{switch(t.kind){case 170:return"constructor";case 212:case 255:return t.name?"function '".concat(t.name.text,"'"):e.ANONYMOUS;case 213:return"arrow function";case 168:return"method '".concat(t.name.getText(),"'");case 171:return"'get ".concat(t.name.getText(),"'");case 172:return"'set ".concat(t.name.getText(),"'");default:throw e.Debug.assertNever(t,"Unexpected scope kind ".concat(t.kind))}})(t):e.isClassLike(t)?(e=>256===e.kind?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression")(t):(e=>261===e.kind?"namespace '".concat(e.parent.name.getText(),"'"):e.externalModuleIndicator?0:1)(t);return 1===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}))})(a,r);if(void 0===u)return e.emptyArray;for(var d,_,f=[],g=new e.Map,h=[],y=new e.Map,v=0,b=0,x=u;b<x.length;b++){var E=x[b],S=E.functionExtraction,D=E.constantExtraction,T=S.description;if(t.refactorKindBeginsWith(l.kind,n)&&(0===S.errors.length?g.has(T)||(g.set(T,!0),f.push({description:T,name:"function_scope_".concat(v),kind:l.kind})):d||(d={description:T,name:"function_scope_".concat(v),notApplicableReason:A(S.errors),kind:l.kind})),t.refactorKindBeginsWith(c.kind,n))if(0===D.errors.length){var C=D.description;y.has(C)||(y.set(C,!0),h.push({description:C,name:"constant_scope_".concat(v),kind:c.kind}))}else _||(_={description:T,name:"constant_scope_".concat(v),notApplicableReason:A(D.errors),kind:c.kind});v++}var k=[];return f.length?k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:f}):r.preferences.provideRefactorNotApplicableReason&&d&&k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[d]}),h.length?k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:h}):r.preferences.provideRefactorNotApplicableReason&&_&&k.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[_]}),k.length?k:e.emptyArray;function A(e){var t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function d(t,r){var n=p(t.file,e.getRefactorContextSpan(t)).targetRange,a=/^function_scope_(\d+)$/.exec(r);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),((t,r,n)=>{var a=m(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.functionErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[n].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),((t,r,n,a,o,s)=>{var c,l,u=n.usages,d=n.typeParameterUsages,p=n.substitutions,_=s.program.getTypeChecker(),f=e.getEmitScriptTarget(s.program.getCompilerOptions()),m=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),b=r.getSourceFile(),x=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",b),S=e.isInJSFile(r),D=e.factory.createIdentifier(x),T=[],C=[];u.forEach(((t,n)=>{var i;if(!S){var a=_.getTypeOfSymbolAtLocation(t.symbol,t.node);a=_.getBaseTypeOfLiteralType(a),i=e.codefix.typeToAutoImportableTypeNode(_,m,a,r,f,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,void 0,n,void 0,i);T.push(o),2===t.usage&&(l||(l=[])).push(t),C.push(e.factory.createIdentifier(n))}));var k=e.arrayFrom(d.values()).map((e=>({type:e,declaration:g(e)}))).sort(h),A=0===k.length?void 0:k.map((e=>e.declaration)),N=void 0!==A?A.map((t=>e.factory.createTypeReferenceNode(t.name,void 0))):void 0;if(e.isExpression(t)&&!S){var w=_.getContextualType(t);c=_.typeToTypeNode(w,r,1)}var F,P=((t,r,n,i,a)=>{var o,s=void 0!==n||r.length>0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(e.skipParentheses(t))]);if(s||i.size){var u=e.visitNodes(l,(function t(a){if(!c&&e.isReturnStatement(a)&&s){var l=y(r,n);return a.expression&&(o||(o="__return"),l.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===l.length?e.factory.createReturnStatement(l[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(l))}var u=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var d=i.get(e.getNodeId(a).toString()),p=d?e.getSynthesizedDeepClone(d):e.visitEachChild(a,t,e.nullTransformationContext);return c=u,p})).slice();if(s&&!a&&e.isStatement(t)){var d=y(r,n);1===d.length?u.push(e.factory.createReturnStatement(d[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0}})(t,a,l,p,!!(o.facts&i.HasReturn)),I=P.body,O=P.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(I),e.isClassLike(r)){var M=S?[]:[e.factory.createModifier(121)];o.facts&i.InStaticRegion&&M.push(e.factory.createModifier(124)),o.facts&i.IsAsyncFunction&&M.push(e.factory.createModifier(131)),F=e.factory.createMethodDeclaration(void 0,M.length?M:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,D,void 0,A,T,c,I)}else F=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(131)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,D,A,T,c,I);var R=e.textChanges.ChangeTracker.fromContext(s),L=((t,r)=>e.find((t=>{if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray})(r),(r=>r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r))))((v(o.range)?e.last(o.range):o.range).end,r);L?R.insertNodeBefore(s.file,L,F,!0):R.insertNodeAtEndOfScope(s.file,r,F),m.writeFixes(R);var B=[],j=((t,r,n)=>{var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a})(r,o,x),U=e.factory.createCallExpression(j,N,C);if(o.facts&i.IsGenerator&&(U=e.factory.createYieldExpression(e.factory.createToken(41),U)),o.facts&i.IsAsyncFunction&&(U=e.factory.createAwaitExpression(U)),E(t)&&(U=e.factory.createJsxExpression(void 0,U)),a.length&&!l)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var V=a[0];B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(V.name),void 0,e.getSynthesizedDeepClone(V.type),U)],V.parent.flags)))}else{for(var z=[],K=[],W=a[0].parent.flags,H=!1,J=0,$=a;J<$.length;J++){V=$[J],z.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(V.name)));var G=_.typeToTypeNode(_.getBaseTypeOfLiteralType(_.getTypeAtLocation(V)),r,1);K.push(e.factory.createPropertySignature(void 0,V.symbol.name,void 0,G)),H=H||void 0!==V.type,W&=V.parent.flags}var q=H?e.factory.createTypeLiteralNode(K):void 0;q&&e.setEmitFlags(q,1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(z),void 0,q,U)],W)))}else if(a.length||l){if(a.length)for(var X=0,Y=a;X<Y.length;X++){var Q=(V=Y[X]).parent.flags;2&Q&&(Q=-3&Q|1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(V.symbol.name,void 0,re(V.type))],Q)))}O&&B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(O,void 0,re(c))],1)));var Z=y(a,l);O&&Z.unshift(e.factory.createShorthandPropertyAssignment(O)),1===Z.length?(e.Debug.assert(!O,"Shouldn't have returnValueProperty here"),B.push(e.factory.createExpressionStatement(e.factory.createAssignment(Z[0].name,U))),o.facts&i.HasReturn&&B.push(e.factory.createReturnStatement())):(B.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(Z),U))),O&&B.push(e.factory.createReturnStatement(e.factory.createIdentifier(O))))}else o.facts&i.HasReturn?B.push(e.factory.createReturnStatement(U)):v(o.range)?B.push(e.factory.createExpressionStatement(U)):B.push(U);v(o.range)?R.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),B):R.replaceNodeWithNodes(s.file,o.range,B);var ee=R.getChanges(),te=(v(o.range)?e.first(o.range):o.range).getSourceFile().fileName;return{renameFilename:te,renameLocation:e.getRenameLocation(ee,te,x,!1),edits:ee};function re(t){if(void 0!==t){for(var r=e.getSynthesizedDeepClone(t),n=r;e.isParenthesizedTypeNode(n);)n=n.type;return e.isUnionTypeNode(n)&&e.find(n.types,(e=>152===e.kind))?r:e.factory.createUnionTypeNode([r,e.factory.createKeywordTypeNode(152)])}}})(c,o[n],l[n],d,t,r)})(n,t,o)}var s=/^constant_scope_(\d+)$/.exec(r);if(s)return o=+s[1],e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),((t,r,n)=>{var a=m(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.constantErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[n].length,"The extraction went missing? How?"),e.Debug.assert(0===d.length,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested(),((t,r,n,a,o)=>{var s,c=n.substitutions,l=o.program.getTypeChecker(),u=r.getSourceFile(),d=e.getUniqueName(e.isClassLike(r)?"newProperty":"newLocal",u),p=e.isInJSFile(r),_=p||!l.isContextSensitive(t)?void 0:l.typeToTypeNode(l.getContextualType(t),r,1),m=((t,r)=>r.size?function t(n){var i=r.get(e.getNodeId(n).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(n,t,e.nullTransformationContext)}(t):t)(e.skipParentheses(t),c);_=(s=((n,i)=>{if(void 0===n)return{variableType:n,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:n,initializer:i};var a=l.getTypeAtLocation(t),o=e.singleOrUndefined(l.getSignaturesOfType(a,0));if(!o)return{variableType:n,initializer:i};if(o.getTypeParameters())return{variableType:n,initializer:i};for(var s=[],c=!1,u=0,d=i.parameters;u<d.length;u++){var p=d[u];if(p.type)s.push(p);else{var _=l.getTypeAtLocation(p);_===l.getAnyType()&&(c=!0),s.push(e.factory.updateParameterDeclaration(p,p.decorators,p.modifiers,p.dotDotDotToken,p.name,p.questionToken,p.type||l.typeToTypeNode(_,r,1),p.initializer))}}if(c)return{variableType:n,initializer:i};if(n=void 0,e.isArrowFunction(i))i=e.factory.updateArrowFunction(i,t.modifiers,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),r,1),i.equalsGreaterThanToken,i.body);else{if(o&&o.thisParameter){var f=e.firstOrUndefined(s);if(!f||e.isIdentifier(f.name)&&"this"!==f.name.escapedText){var m=l.getTypeOfSymbolAtLocation(o.thisParameter,t);s.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,l.typeToTypeNode(m,r,1)))}}i=e.factory.updateFunctionExpression(i,t.modifiers,i.asteriskToken,i.name,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),r,1),i.body)}return{variableType:n,initializer:i}})(_,m)).variableType,m=s.initializer,e.suppressLeadingAndTrailingTrivia(m);var g=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!p,"Cannot extract to a JS class");var h=[];h.push(e.factory.createModifier(121)),a&i.InStaticRegion&&h.push(e.factory.createModifier(124)),h.push(e.factory.createModifier(144));var y=e.factory.createPropertyDeclaration(void 0,h,d,void 0,_,m),v=e.factory.createPropertyAccessExpression(a&i.InStaticRegion?e.factory.createIdentifier(r.name.getText()):e.factory.createThis(),e.factory.createIdentifier(d));E(t)&&(v=e.factory.createJsxExpression(void 0,v));var b=((t,r)=>{var n,i=r.members;e.Debug.assert(i.length>0,"Found no members");for(var a=!0,o=0,s=i;o<s.length;o++){var c=s[o];if(c.pos>t)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n})(t.pos,r);g.insertNodeBefore(o.file,b,y,!0),g.replaceNode(o.file,t,v)}else{var S=e.factory.createVariableDeclaration(d,void 0,_,m),D=((t,r)=>{for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}})(t,r);if(D)g.insertNodeBefore(o.file,D,S),v=e.factory.createIdentifier(d),g.replaceNode(o.file,t,v);else if(237===t.parent.kind&&r===e.findAncestor(t,f)){var T=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));g.replaceNode(o.file,t.parent,T)}else T=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2)),0===(b=((t,r)=>{var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)f(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(x(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}})(t,r)).pos?g.insertNodeAtTopOfFile(o.file,T,!1):g.insertNodeBefore(o.file,b,T,!1),237===t.parent.kind?g.delete(o.file,t.parent):(v=e.factory.createIdentifier(d),E(t)&&(v=e.factory.createJsxExpression(void 0,v)),g.replaceNode(o.file,t,v))}var C=g.getChanges(),k=t.getSourceFile().fileName;return{renameFilename:k,renameLocation:e.getRenameLocation(C,k,d,!0),edits:C}})(e.isExpression(c)?c:c.statements[0].expression,o[n],l[n],t.facts,r)})(n,t,o);e.Debug.fail("Unrecognized action name")}function p(t,r,a){void 0===a&&(a=!0);var o=r.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractEmpty)]};var s=0===o&&a,c=e.findFirstNonJsxWhitespaceToken(t,r.start),l=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),u=c&&l&&a?((e,t,r)=>{var n=e.getStart(r),i=t.getEnd();return 59===r.text.charCodeAt(i)&&i++,{start:n,length:i-n}})(c,l,t):r,d=s?(t=>e.findAncestor(t,(t=>t.parent&&b(t)&&!e.isBinaryExpression(t.parent))))(c):e.getParentNodeInSpan(c,t,u),p=s?d:e.getParentNodeInSpan(l,t,u),f=[],m=i.None;if(!d||!p)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(e.isJSDoc(d))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractJSDoc)]};if(d.parent!==p.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(d!==p){if(!x(d.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};for(var g=[],h=0,y=d.parent.statements;h<y.length;h++){var v=y[h];if(v===d||g.length){var E=T(v);if(E)return{errors:E};g.push(v)}if(v===p)break}return g.length?{targetRange:{range:g,facts:m,declarations:f}}:{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]}}if(e.isReturnStatement(d)&&!d.expression)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};var S=(t=>{if(e.isReturnStatement(t)){if(t.expression)return t.expression}else if(e.isVariableStatement(t)){for(var r=0,n=void 0,i=0,a=t.declarationList.declarations;i<a.length;i++){var o=a[i];o.initializer&&(r++,n=o.initializer)}if(1===r)return n}else if(e.isVariableDeclaration(t)&&t.initializer)return t.initializer;return t})(d),D=(t=>{if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,n.cannotExtractIdentifier)]})(S)||T(S);return D?{errors:D}:{targetRange:{range:_(S),facts:m,declarations:f}};function T(t){var a;if((e=>{e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"})(a||(a={})),e.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(e.isStatement(t)||e.isExpressionNode(t)&&b(t)))return[e.createDiagnosticForNode(t,n.statementOrExpressionExpected)];if(8388608&t.flags)return[e.createDiagnosticForNode(t,n.cannotExtractAmbientBlock)];var o,s=e.getContainingClass(t);s&&((t,r)=>{for(var n=t;n!==r;){if(166===n.kind){e.isStatic(n)&&(m|=i.InStaticRegion);break}if(163===n.kind){170===e.getContainingFunction(n).kind&&(m|=i.InStaticRegion);break}168===n.kind&&e.isStatic(n)&&(m|=i.InStaticRegion),n=n.parent}})(t,s);var c,l=4;return function t(a){if(o)return!0;if(e.isDeclaration(a)){var s=253===a.kind?a.parent.parent:a;if(e.hasSyntacticModifier(s,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;f.push(a.symbol)}switch(a.kind){case 265:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 270:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;case 106:if(207===a.parent.kind){var u=e.getContainingClass(a);if(u.pos<r.start||u.end>=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else m|=i.UsesThis;break;case 213:e.forEachChild(a,(function t(r){if(e.isThis(r))m|=i.UsesThis;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 256:case 255:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 225:case 212:case 168:case 170:case 171:case 172:return!1}var d=l;switch(a.kind){case 238:case 251:l=0;break;case 234:a.parent&&251===a.parent.kind&&a.parent.finallyBlock===a&&(l=4);break;case 289:case 288:l|=1;break;default:e.isIterationStatement(a,!1)&&(l|=3)}switch(a.kind){case 191:case 108:m|=i.UsesThis;break;case 249:var p=a.label;(c||(c=[])).push(p.escapedText),e.forEachChild(a,t),c.pop();break;case 245:case 244:(p=a.label)?e.contains(c,p.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):l&(245===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 217:m|=i.IsAsyncFunction;break;case 223:m|=i.IsGenerator;break;case 246:4&l?m|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}l=d}(t),o}}function _(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function f(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function m(t,r){var a=r.file,o=(t=>{var r=v(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(163===(r=r.parent).kind&&(r=e.findAncestor(r,(t=>e.isFunctionLikeDeclaration(t))).parent),f(r)&&(o.push(r),303===r.kind))return o})(t);return{scopes:o,readsAndWrites:((t,r,a,o,s,c)=>{var l,u,d=new e.Map,p=[],_=[],f=[],m=[],g=[],h=new e.Map,y=[],b=v(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var x=t.range,E=e.first(x).getStart(),S=e.last(x).end;u=e.createFileDiagnostic(o,E,S-E,n.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(u=e.createDiagnosticForNode(b,n.uselessConstantType));for(var D=0,T=r;D<T.length;D++){var C=T[D];p.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),_.push(new e.Map),f.push([]);var k=[];u&&k.push(u),e.isClassLike(C)&&e.isInJSFile(C)&&k.push(e.createDiagnosticForNode(C,n.cannotExtractToJSClass)),e.isArrowFunction(C)&&!e.isBlock(C.body)&&k.push(e.createDiagnosticForNode(C,n.cannotExtractToExpressionArrowFunction)),m.push(k)}var A,N=new e.Map,w=v(t.range)?e.factory.createBlock(t.range):t.range,F=v(t.range)?e.first(t.range):t.range,P=(A=F,!!e.findAncestor(A,(t=>e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length)));if(function c(l,u){if(void 0===u&&(u=1),P&&K(s.getTypeAtLocation(l)),e.isDeclaration(l)&&l.symbol&&g.push(l),e.isAssignmentExpression(l))c(l.left,2),c(l.right);else if(e.isUnaryExpressionWithWrite(l))c(l.operand,2);else if(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l))e.forEachChild(l,c);else if(e.isIdentifier(l)){if(!l.parent)return;if(e.isQualifiedName(l.parent)&&l!==l.parent.left)return;if(e.isPropertyAccessExpression(l.parent)&&l!==l.parent.expression)return;!((c,l,u)=>{var d=((c,l,u)=>{var d=W(c);if(d){var g=e.getSymbolId(d).toString(),h=N.get(g);if(h&&h>=l)return g;if(N.set(g,l),h){for(var y=0,v=p;y<v.length;y++){var b=v[y];b.usages.get(c.text)&&b.usages.set(c.text,{usage:l,symbol:d,node:c})}return g}var x=d.getDeclarations(),E=x&&e.find(x,(e=>e.getSourceFile()===o));if(E&&!e.rangeContainsStartEnd(a,E.getStart(),E.end)){if(t.facts&i.IsGenerator&&2===l){for(var S=e.createDiagnosticForNode(c,n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),D=0,T=f;D<T.length;D++)T[D].push(S);for(var C=0,k=m;C<k.length;C++)k[C].push(S)}for(var A=0;A<r.length;A++){var w=r[A];if(s.resolveName(d.name,w,d.flags,!1)!==d&&!_[A].has(g)){var F=H(d.exportSymbol||d,w,u);F?_[A].set(g,F):u?262144&d.flags||(S=e.createDiagnosticForNode(c,n.typeWillNotBeVisibleInTheNewScope),f[A].push(S),m[A].push(S)):p[A].usages.set(c.text,{usage:l,symbol:d,node:c})}}return g}}})(c,l,u);if(d)for(var g=0;g<r.length;g++){var h=_[g].get(d);h&&p[g].substitutions.set(e.getNodeId(c).toString(),h)}})(l,u,e.isPartOfTypeNode(l))}else e.forEachChild(l,c)}(w),P&&!v(t.range)&&K(s.getContextualType(t.range)),d.size>0){for(var I=new e.Map,O=0,M=F;void 0!==M&&O<r.length;M=M.parent)if(M===r[O]&&(I.forEach(((e,t)=>{p[O].typeParameterUsages.set(t,e)})),O++),e.isDeclarationWithTypeParameters(M))for(var R=0,L=e.getEffectiveTypeParameterDeclarations(M);R<L.length;R++){var B=L[R],j=s.getTypeAtLocation(B);d.has(j.id.toString())&&I.set(j.id.toString(),j)}e.Debug.assert(O===r.length,"Should have iterated all scopes")}if(g.length){var U=e.isBlockScope(r[0],r[0].parent)?r[0]:e.getEnclosingBlockScopeContainer(r[0]);e.forEachChild(U,(function r(n){if(!(n===t.range||v(t.range)&&t.range.indexOf(n)>=0)){var i=e.isIdentifier(n)?W(n):s.getSymbolAtLocation(n);if(i){var a=e.find(g,(e=>e.symbol===i));if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();h.has(o)||(y.push(a),h.set(o,!0))}else l=l||a}e.forEachChild(n,r)}}))}for(var V=r=>{var i=p[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=v(t.range)?t.range[0]:t.range;m[r].push(e.createDiagnosticForNode(a,n.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(p[r].usages.forEach((t=>{2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))})),e.Debug.assert(v(t.range)||0===y.length,"No variable declarations expected if something was extracted"),s&&!v(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[r].push(c),m[r].push(c)}else o&&r>0?(c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[r].push(c),m[r].push(c)):l&&(c=e.createDiagnosticForNode(l,n.cannotExtractExportedEntity),f[r].push(c),m[r].push(c))},z=0;z<r.length;z++)V(z);return{target:w,usagesPerScope:p,functionErrorsPerScope:f,constantErrorsPerScope:m,exposedVariableDeclarations:y};function K(e){for(var t=0,r=s.getSymbolWalker((()=>(c.throwIfCancellationRequested(),!0))).walkType(e).visitedTypes;t<r.length;t++){var n=r[t];n.isTypeParameter()&&d.set(n.id.toString(),n)}}function W(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function H(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((e=>e.parent===r)))return e.factory.createIdentifier(t.name);var a=H(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}})(t,o,((t,r)=>v(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range)(t,a),a,r.program.getTypeChecker(),r.cancellationToken)}}function g(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];(void 0===t||a.pos<t.pos)&&(t=a)}return t}function h(t,r){var n=t.type,i=t.declaration,a=r.type,o=r.declaration;return e.compareProperties(i,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(n.symbol?n.symbol.getName():"",a.symbol?a.symbol.getName():"")||e.compareValues(n.id,a.id)}function y(t,r){var n=e.map(t,(t=>e.factory.createShorthandPropertyAssignment(t.symbol.name))),i=e.map(r,(t=>e.factory.createShorthandPropertyAssignment(t.symbol.name)));return void 0===n?i:void 0===i?n:n.concat(i)}function v(t){return e.isArray(t)}function b(e){var t=e.parent;switch(t.kind){case 297:return!1}switch(e.kind){case 10:return 265!==t.kind&&269!==t.kind;case 224:case 200:case 202:return!1;case 79:return 202!==t.kind&&269!==t.kind&&274!==t.kind}return!0}function x(e){switch(e.kind){case 234:case 303:case 261:case 288:return!0;default:return!1}}function E(t){return(e.isJsxElement(t)||e.isJsxSelfClosingElement(t)||e.isJsxFragment(t))&&(e.isJsxElement(t.parent)||e.isJsxFragment(t.parent))}t.registerRefactor(s,{kinds:[c.kind,l.kind],getAvailableActions:u,getEditsForAction:d}),r.getAvailableActions=u,r.getEditsForAction=d,(t=>{function r(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractJSDoc=r("Cannot extract JSDoc."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block")})(n=r.Messages||(r.Messages={})),(e=>{e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion"})(i||(i={})),r.getRangeToExtract=p,(e=>{e[e.Module=0]="Module",e[e.Global=1]="Global"})(a||(a={})),(e=>{e[e.Read=1]="Read",e[e.Write=2]="Write"})(o||(o={}))})((t=e.refactor||(e.refactor={})).extractSymbol||(t.extractSymbol={}))})(Fl),(e=>{!(t=>{var r="Extract type",n={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},i={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},a={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=t.startPosition,a=e.isSourceFileJS(n),o=e.getTokenAtPosition(n,i),l=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),u=l.pos===l.end&&r,d=e.findAncestor(o,(t=>t.parent&&e.isTypeNode(t)&&!c(l,t.parent,n)&&(u||e.nodeOverlapsWithStartEnd(o,n,l.pos,l.end))));if(!d||!e.isTypeNode(d))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var p=t.program.getTypeChecker(),_=e.Debug.checkDefined(e.findAncestor(d,e.isStatement),"Should find a statement"),f=((t,r,n,i)=>{var a=[];return function o(s){if(e.isTypeReferenceNode(s)){if(e.isIdentifier(s.typeName)&&(null==(p=t.resolveName(s.typeName.text,s.typeName,262144,!0))?void 0:p.declarations)){var l=e.cast(e.first(p.declarations),e.isTypeParameterDeclaration);c(n,l,i)&&!c(r,l,i)&&e.pushIfUnique(a,l)}}else if(e.isInferTypeNode(s)){var u=e.findAncestor(s,(t=>e.isConditionalTypeNode(t)&&c(t.extendsType,s,i)));if(!u||!c(r,u,i))return!0}else if(e.isTypePredicateNode(s)||e.isThisTypeNode(s)){var d=e.findAncestor(s.parent,e.isFunctionLike);if(d&&d.type&&c(d.type,s,i)&&!c(r,d,i))return!0}else if(e.isTypeQueryNode(s)){var p;if(e.isIdentifier(s.exprName)){if((null==(p=t.resolveName(s.exprName.text,s.exprName,111551,!1))?void 0:p.valueDeclaration)&&c(n,p.valueDeclaration,i)&&!c(r,p.valueDeclaration,i))return!0}else if(e.isThisIdentifier(s.exprName.left)&&!c(r,s.parent,i))return!0}return i&&e.isTupleTypeNode(s)&&e.getLineAndCharacterOfPosition(i,s.pos).line===e.getLineAndCharacterOfPosition(i,s.end).line&&e.setEmitFlags(s,1),e.forEachChild(s,o)}(r)?void 0:a})(p,d,_,n);return f?{isJS:a,selection:d,firstStatement:_,typeParameters:f,typeElements:s(p,d)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function s(t,r){if(r){if(e.isIntersectionTypeNode(r)){for(var n=[],i=new e.Map,a=0,o=r.types;a<o.length;a++){var c=s(t,o[a]);if(!c||!c.every((t=>t.name&&e.addToSeen(i,e.getNameFromPropertyName(t.name)))))return;e.addRange(n,c)}return n}return e.isParenthesizedTypeNode(r)?s(t,r.type):e.isTypeLiteralNode(r)?r.members:void 0}}function c(t,r,n){return e.rangeContainsStartEnd(t,e.skipTrivia(n.text,r.pos),r.end)}t.registerRefactor(r,{kinds:[n.kind,i.kind,a.kind],getAvailableActions(s){var c=o(s,"invoked"===s.triggerReason);return c?t.isRefactorErrorInfo(c)?s.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[Ol(Ol({},a),{notApplicableReason:c.error}),Ol(Ol({},n),{notApplicableReason:c.error}),Ol(Ol({},i),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:c.isJS?[a]:e.append([n],c.typeElements&&i)}]:e.emptyArray},getEditsForAction(r,s){var c=r.file,l=o(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected to find a range to extract");var u=e.getUniqueName("NewType",c),d=e.textChanges.ChangeTracker.with(r,(t=>{switch(s){case n.name:return e.Debug.assert(!l.isJS,"Invalid actionName/JS combo"),((t,r,n,i)=>{var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createTypeAliasDeclaration(void 0,void 0,n,s.map((t=>e.factory.updateTypeParameterDeclaration(t,t.name,t.constraint,void 0))),o);t.insertNodeBefore(r,a,e.ignoreSourceNewlines(c),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((t=>e.factory.createTypeReferenceNode(t.name,void 0)))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})})(t,c,u,l);case a.name:return e.Debug.assert(l.isJS,"Invalid actionName/JS combo"),((t,r,n,i)=>{var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(o),e.factory.createIdentifier(n)),l=[];e.forEach(s,(t=>{var r=e.getEffectiveConstraintOfTypeParameter(t),n=e.factory.createTypeParameterDeclaration(t.name),i=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),r&&e.cast(r,e.isJSDocTypeExpression),[n]);l.push(i)})),t.insertNodeBefore(r,a,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(l,[c]))),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((t=>e.factory.createTypeReferenceNode(t.name,void 0)))))})(t,c,u,l);case i.name:return e.Debug.assert(!l.isJS&&!!l.typeElements,"Invalid actionName/JS combo"),((t,r,n,i)=>{var a,o=i.firstStatement,s=i.selection,c=i.typeParameters,l=i.typeElements,u=e.factory.createInterfaceDeclaration(void 0,void 0,n,c,void 0,l);e.setTextRange(u,null===(a=l[0])||void 0===a?void 0:a.parent),t.insertNodeBefore(r,o,e.ignoreSourceNewlines(u),!0),t.replaceNode(r,s,e.factory.createTypeReferenceNode(n,c.map((t=>e.factory.createTypeReferenceNode(t.name,void 0)))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})})(t,c,u,l);default:e.Debug.fail("Unexpected action name")}})),p=c.fileName;return{edits:d,renameFilename:p,renameLocation:e.getRenameLocation(d,p,u,!1)}}})})(e.refactor||(e.refactor={}))})(Fl),(e=>{var t,r,n,i;(t=e.refactor||(e.refactor={})).generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}),r="Generate 'get' and 'set' accessors",n=e.Diagnostics.Generate_get_and_set_accessors.message,i={name:r,description:n,kind:"refactor.rewrite.property.generateAccessors"},t.registerRefactor(r,{kinds:[i.kind],getEditsForAction(r,n){if(r.endPosition){var i=e.codefix.getAccessorConvertiblePropertyAtPosition(r.file,r.program,r.startPosition,r.endPosition);e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info");var a=e.codefix.generateAccessorFromProperty(r.file,r.program,r.startPosition,r.endPosition,r,n);if(a){var o=r.file.fileName,s=i.renameAccessor?i.accessorName:i.fieldName;return{renameFilename:o,renameLocation:(e.isIdentifier(s)?0:-1)+e.getRenameLocation(a,o,s.text,e.isParameter(i.declaration)),edits:a}}}},getAvailableActions(a){if(!a.endPosition)return e.emptyArray;var o=e.codefix.getAccessorConvertiblePropertyAtPosition(a.file,a.program,a.startPosition,a.endPosition,"invoked"===a.triggerReason);return o?t.isRefactorErrorInfo(o)?a.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[Ol(Ol({},i),{notApplicableReason:o.error})]}]:e.emptyArray:[{name:r,description:n,actions:[i]}]:e.emptyArray}})})(Fl),(e=>{var t;(t=e.refactor||(e.refactor={})).isRefactorErrorInfo=e=>void 0!==e.error,t.refactorKindBeginsWith=(e,t)=>!t||e.substr(0,t.length)===t})(Fl),function(e){!function(t){var r="Move to a new file",n=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),i={name:r,description:n,kind:"refactor.move.newFile"};function a(t){var r=(t=>{var r=t.file,n=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),i=r.statements,a=e.findIndex(i,(e=>e.end>n.pos));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,(e=>e.end>n.end),a);if(-1===s||!(0===s||i[s].getStart(r)<n.end))return{toMove:i.slice(a,-1===s?i.length:s),afterLast:-1===s?void 0:i[s]}}}})(t);if(void 0!==r){var n=[],i=[],a=r.toMove,s=r.afterLast;return e.getRangesWhere(a,o,((e,t)=>{for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:s})})),0===n.length?void 0:{all:n,ranges:i}}}function o(t){return!(t=>{switch(t.kind){case 265:return!0;case 264:return!e.hasSyntacticModifier(t,1);case 236:return t.declarationList.declarations.every((t=>!!t.initializer&&e.isRequireCall(t.initializer,!0)));default:return!1}})(t)&&!e.isPrologueDirective(t)}function s(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=a.first,s=a.afterLast;r.deleteNodeRangeExcludingEnd(e,o,s)}}function c(e){return 265===e.kind?e.moduleSpecifier:264===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function l(t,r){if(e.isImportDeclaration(t))e.isStringLiteral(t.moduleSpecifier)&&r(t);else if(e.isImportEqualsDeclaration(t))e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteralLike(t.moduleReference.expression)&&r(t);else if(e.isVariableStatement(t))for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];a.initializer&&e.isRequireCall(a.initializer,!0)&&r(a)}}function u(t,r,n,i,a){if(n=e.ensurePathIsNonModuleName(n),i){var o=r.map((t=>e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(t))));return e.makeImportIfNecessary(t,o,n,a)}e.Debug.assert(!t,"No default import should exist");var s=r.map((t=>e.factory.createBindingElement(void 0,void 0,t)));return s.length?d(e.factory.createObjectBindingPattern(s),void 0,p(e.factory.createStringLiteral(n))):void 0}function d(t,r,n,i){return void 0===i&&(i=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(t,void 0,r,n)],i))}function p(t){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[t])}function _(t,r,n,i){switch(r.kind){case 265:!((t,r,n,i)=>{if(r.importClause){var a=r.importClause,o=a.name,s=a.namedBindings,c=!o||i(o),l=!s||(267===s.kind?i(s.name):0!==s.elements.length&&s.elements.every((e=>i(e.name))));if(c&&l)n.delete(t,r);else if(o&&c&&n.delete(t,o),s)if(l)n.replaceNode(t,r.importClause,e.factory.updateImportClause(r.importClause,r.importClause.isTypeOnly,o,void 0));else if(268===s.kind)for(var u=0,d=s.elements;u<d.length;u++){var p=d[u];i(p.name)&&n.delete(t,p)}}})(t,r,n,i);break;case 264:i(r.name)&&n.delete(t,r);break;case 253:!((t,r,n,i)=>{var a=r.name;switch(a.kind){case 79:i(a)&&n.delete(t,a);break;case 201:break;case 200:if(a.elements.every((t=>e.isIdentifier(t.name)&&i(t.name))))n.delete(t,e.isVariableDeclarationList(r.parent)&&1===r.parent.declarations.length?r.parent.parent:r);else for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&i(c.name)&&n.delete(t,c.name)}}})(t,r,n,i);break;default:e.Debug.assertNever(r,"Unexpected import decl kind ".concat(r.kind))}}function f(t){switch(t.kind){case 264:case 269:case 266:case 267:return!0;case 253:return m(t);case 202:return e.isVariableDeclaration(t.parent.parent)&&m(t.parent.parent);default:return!1}}function m(t){return e.isSourceFile(t.parent.parent.parent)&&!!t.initializer&&e.isRequireCall(t.initializer,!0)}function g(t,r,n){switch(t.kind){case 265:var i=t.importClause;if(!i)return;var a=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&((t,r)=>{if(267===t.kind)return r(t.name)?t:void 0;var n=t.elements.filter((e=>r(e.name)));return n.length?e.factory.createNamedImports(n):void 0})(i.namedBindings,n);return a||o?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),r,void 0):void 0;case 264:return n(t.name)?t:void 0;case 253:var s=((t,r)=>{switch(t.kind){case 79:return r(t)?t:void 0;case 201:return t;case 200:var n=t.elements.filter((t=>t.propertyName||!e.isIdentifier(t.name)||r(t.name)));return n.length?e.factory.createObjectBindingPattern(n):void 0}})(t.name,n);return s?d(s,t.type,p(r),t.parent.flags):void 0;default:return e.Debug.assertNever(t,"Unexpected import kind ".concat(t.kind))}}function h(t,r,n){t.forEachChild((function t(i){if(e.isIdentifier(i)&&!e.isDeclarationName(i)){var a=r.getSymbolAtLocation(i);a&&n(a)}else i.forEachChild(t)}))}t.registerRefactor(r,{kinds:[i.kind],getAvailableActions(t){var o=a(t);return t.preferences.allowTextChangesInNewFiles&&o?[{name:r,description:n,actions:[i]}]:t.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[Ol(Ol({},i),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction(t,n){e.Debug.assert(n===r,"Wrong refactor invoked");var i=e.Debug.checkDefined(a(t));return{edits:e.textChanges.ChangeTracker.with(t,(r=>{return n=t.file,a=t.program,o=i,d=r,m=t.host,E=t.preferences,N=a.getTypeChecker(),w=((t,r,n)=>{var i=new y,a=new y,o=new y,s=(t=>{if(void 0!==t){var r=n.getJsxNamespace(t),i=n.resolveName(r,t,1920,!0);return i&&e.some(i.declarations,f)?i:void 0}})(e.find(r,(e=>!!(2&e.transformFlags))));s&&a.add(s);for(var c=0,l=r;c<l.length;c++)x(b=l[c],(t=>{i.add(e.Debug.checkDefined(e.isExpressionStatement(t)?n.getSymbolAtLocation(t.expression.left):t.symbol,"Need a symbol here"))}));for(var u=0,d=r;u<d.length;u++)h(b=d[u],n,(r=>{if(r.declarations)for(var n=0,s=r.declarations;n<s.length;n++){var c=s[n];f(c)?a.add(r):v(c)&&(l=c,(e.isVariableDeclaration(l)?l.parent.parent.parent:l.parent)===t)&&!i.has(r)&&o.add(r)}var l}));for(var p=a.clone(),_=new y,m=0,g=t.statements;m<g.length;m++){var b=g[m];e.contains(r,b)||(s&&2&b.transformFlags&&p.delete(s),h(b,n,(e=>{i.has(e)&&_.add(e),p.delete(e)})))}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:_,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:p}})(n,o.all,N),F=e.getDirectoryPath(n.fileName),P=e.extensionFromPath(n.fileName),O=(I=((t,r,n,i)=>{for(var a=t,o=1;;o++){var s=e.combinePaths(n,a+r);if(!i.fileExists(s))return a;a="".concat(t,".").concat(o)}})(w.movedSymbols.forEachEntry(e.symbolNameNoDefault)||"newFile",P,F,m))+P,d.createNewFile(n,e.combinePaths(F,O),((t,r,n,i,a,o,d)=>{var f=a.getTypeChecker(),m=e.takeWhile(t.statements,e.isPrologueDirective);if(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)return s(t,i.ranges,n),Il(Il([],m,!0),i.all,!0);var h=!!t.externalModuleIndicator,y=e.getQuotePreference(t,d),E=((t,r,n,i)=>{var a,o=[];return t.forEach((t=>{"default"===t.escapedName?a=e.factory.createIdentifier(e.symbolNameNoDefault(t)):o.push(t.name)})),u(a,o,r,n,i)})(r.oldFileImportsFromNewFile,o,h,y);E&&e.insertImports(n,t,E,!0),((t,r,n,i,a)=>{for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];e.contains(r,c)||l(c,(e=>_(t,e,n,(e=>i.has(a.getSymbolAtLocation(e))))))}})(t,i.all,n,r.unusedImportsFromOldFile,f),s(t,i.ranges,n),((t,r,n,i,a)=>{for(var o=r.getTypeChecker(),s=r=>{if(r===n)return"continue";for(var s=s=>{l(s,(l=>{if(o.getSymbolAtLocation(c(l))===n.symbol){var u=t=>{var r=e.isBindingElement(t.parent)?e.getPropertySymbolFromBindingElement(o,t.parent):e.skipAlias(o.getSymbolAtLocation(t),o);return!!r&&i.has(r)};_(r,l,t,u);var d=e.combinePaths(e.getDirectoryPath(c(l).text),a),f=g(l,e.factory.createStringLiteral(d),u);f&&t.insertNodeAfter(r,s,f);var m=(t=>{switch(t.kind){case 265:return t.importClause&&t.importClause.namedBindings&&267===t.importClause.namedBindings.kind?t.importClause.namedBindings.name:void 0;case 264:return t.name;case 253:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t,"Unexpected node kind ".concat(t.kind))}})(l);m&&((t,r,n,i,a,o,s,c)=>{var l=e.codefix.moduleSpecifierToValidIdentifier(a,99),u=!1,d=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,n,r,(t=>{e.isPropertyAccessExpression(t.parent)&&(u=u||!!n.resolveName(l,t,67108863,!0),i.has(n.getSymbolAtLocation(t.parent.name))&&d.push(t))})),d.length){for(var _=u?e.getUniqueName(l,r):l,f=0,m=d;f<m.length;f++){var g=m[f];t.replaceNode(r,g,e.factory.createIdentifier(_))}t.insertNodeAfter(r,c,((t,r,n)=>{var i=e.factory.createIdentifier(r),a=e.factory.createStringLiteral(n);switch(t.kind){case 265:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(i)),a,void 0);case 264:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,i,e.factory.createExternalModuleReference(a));case 253:return e.factory.createVariableDeclaration(i,void 0,void 0,p(a));default:return e.Debug.assertNever(t,"Unexpected node kind ".concat(t.kind))}})(c,a,o))}})(t,r,o,i,a,d,m,l)}}))},u=0,d=r.statements;u<d.length;u++)s(d[u])},u=0,d=r.getSourceFiles();u<d.length;u++)s(d[u])})(n,a,t,r.movedSymbols,o);var N=((t,r,n,i,a,o,s)=>{for(var d,p=[],_=0,f=t.statements;_<f.length;_++)l(f[_],(t=>{e.append(p,g(t,c(t),(e=>r.has(a.getSymbolAtLocation(e)))))}));var m=[],h=e.nodeSeenTracker();return n.forEach((r=>{if(r.declarations)for(var n=0,a=r.declarations;n<a.length;n++){var s=a[n];if(v(s)){var c=(u=s,e.isExpressionStatement(u)?e.tryCast(u.expression.left.name,e.isIdentifier):e.tryCast(u.name,e.isIdentifier));if(c){var l=S(s);h(l)&&D(t,l,c,i,o),e.hasSyntacticModifier(s,512)?d=c:m.push(c.text)}}}var u})),e.append(p,u(d,m,e.removeFileExtension(e.getBaseFileName(t.fileName)),o,s)),p})(t,r.oldImportsNeededByNewFile,r.newFileImportsFromOldFile,n,f,h,y),w=((t,r,n,i)=>e.flatMap(r,(r=>{if(o=r,e.Debug.assert(e.isSourceFile(o.parent),"Node parent should be a SourceFile"),(b(o)||e.isVariableStatement(o))&&!T(t,r,i)&&x(r,(t=>n.has(e.Debug.checkDefined(t.symbol))))){var a=((e,t)=>t?[C(e)]:(e=>Il([e],k(e).map(A),!0))(e))(r,i);if(a)return a}var o;return r})))(t,i.all,r.oldFileImportsFromNewFile,h);return N.length&&w.length?Il(Il(Il(Il([],m,!0),N,!0),[4],!1),w,!0):Il(Il(Il([],m,!0),N,!0),w,!0)})(n,w,d,o,a,I,E)),void((t,r,n,i,a)=>{var o=t.getCompilerOptions().configFile;if(o){var s=e.normalizePath(e.combinePaths(n,"..",i)),c=e.getRelativePathFromFile(o.fileName,s,a),l=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),u=l&&e.find(l.properties,(t=>e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&"files"===t.name.text));u&&e.isArrayLiteralExpression(u.initializer)&&r.insertNodeInListAfter(o,e.last(u.initializer.elements),e.factory.createStringLiteral(c),u.initializer.elements)}})(a,d,n.fileName,O,e.hostGetCanonicalFileName(m));var n,a,o,d,m,E,N,w,F,P,I,O})),renameFilename:void 0,renameLocation:void 0}}});var y=function(){function t(){this.map=new e.Map}return t.prototype.add=function(t){this.map.set(String(e.getSymbolId(t)),t)},t.prototype.has=function(t){return this.map.has(String(e.getSymbolId(t)))},t.prototype.delete=function(t){this.map.delete(String(e.getSymbolId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.forEachEntry=function(t){return e.forEachEntry(this.map,t)},t.prototype.clone=function(){var r=new t;return e.copyEntries(this.map,r.map),r},t}();function v(t){return b(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function b(e){switch(e.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return!0;default:return!1}}function x(t,r){switch(t.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return r(t);case 236:return e.firstDefined(t.declarationList.declarations,(e=>E(e.name,r)));case 237:var n=t.expression;return e.isBinaryExpression(n)&&1===e.getAssignmentDeclarationKind(n)?r(t):void 0}}function E(t,r){switch(t.kind){case 79:return r(e.cast(t.parent,(t=>e.isVariableDeclaration(t)||e.isBindingElement(t))));case 201:case 200:return e.firstDefined(t.elements,(t=>e.isOmittedExpression(t)?void 0:E(t.name,r)));default:return e.Debug.assertNever(t,"Unexpected name kind ".concat(t.kind))}}function S(t){switch(t.kind){case 253:return t.parent.parent;case 202:return S(e.cast(t.parent.parent,(t=>e.isVariableDeclaration(t)||e.isBindingElement(t))));default:return t}}function D(t,r,n,i,a){if(!T(t,r,a,n))if(a)e.isExpressionStatement(r)||i.insertExportModifier(t,r);else{var o=k(r);0!==o.length&&i.insertNodesAfter(t,r,o.map(A))}}function T(t,r,n,i){var a;return n?!e.isExpressionStatement(r)&&e.hasSyntacticModifier(r,1)||!(!i||!(null===(a=t.symbol.exports)||void 0===a?void 0:a.has(i.escapedText))):k(r).some((r=>t.symbol.exports.has(e.escapeLeadingUnderscores(r))))}function C(t){var r=e.concatenate([e.factory.createModifier(93)],t.modifiers);switch(t.kind){case 255:return e.factory.updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 256:return e.factory.updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 236:return e.factory.updateVariableStatement(t,r,t.declarationList);case 260:return e.factory.updateModuleDeclaration(t,t.decorators,r,t.name,t.body);case 259:return e.factory.updateEnumDeclaration(t,t.decorators,r,t.name,t.members);case 258:return e.factory.updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type);case 257:return e.factory.updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 264:return e.factory.updateImportEqualsDeclaration(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference);case 237:return e.Debug.fail();default:return e.Debug.assertNever(t,"Unexpected declaration kind ".concat(t.kind))}}function k(t){switch(t.kind){case 255:case 256:return[t.name.text];case 236:return e.mapDefined(t.declarationList.declarations,(t=>e.isIdentifier(t.name)?t.name.text:void 0));case 260:case 259:case 258:case 257:case 264:return e.emptyArray;case 237:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(t,"Unexpected decl kind ".concat(t.kind))}}function A(t){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(t)),63,e.factory.createIdentifier(t)))}}(e.refactor||(e.refactor={}))}(Fl),(e=>{var t;(r=>{var n="Add or remove braces in an arrow function",i=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,a={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},o={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};function s(r,n,i,s){void 0===i&&(i=!0);var c=e.getTokenAtPosition(r,n),l=e.getContainingFunction(c);if(!l)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(l))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(e.rangeContainsRange(l,c)&&(!e.rangeContainsRange(l.body,c)||i)){if(t.refactorKindBeginsWith(a.kind,s)&&e.isExpression(l.body))return{func:l,addBraces:!0,expression:l.body};if(t.refactorKindBeginsWith(o.kind,s)&&e.isBlock(l.body)&&1===l.body.statements.length){var u=e.first(l.body.statements);if(e.isReturnStatement(u))return{func:l,addBraces:!1,expression:u.expression,returnStatement:u}}}}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction(r,n){var i=r.file,c=r.startPosition,l=s(i,c);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u,d=l.expression,p=l.returnStatement,_=l.func;if(n===a.name){var f=e.factory.createReturnStatement(d);u=e.factory.createBlock([f],!0),e.copyLeadingComments(d,f,i,3,!0)}else if(n===o.name&&p){var m=d||e.factory.createVoidZero();u=e.needsParentheses(m)?e.factory.createParenthesizedExpression(m):m,e.copyTrailingAsLeadingComments(p,u,i,3,!1),e.copyLeadingComments(p,u,i,3,!1),e.copyTrailingComments(p,u,i,3,!1)}else e.Debug.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(e=>{e.replaceNode(i,_.body,u)}))}},getAvailableActions(r){var c=s(r.file,r.startPosition,"invoked"===r.triggerReason);return c?t.isRefactorErrorInfo(c)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[Ol(Ol({},a),{notApplicableReason:c.error}),Ol(Ol({},o),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:n,description:i,actions:[c.addBraces?a:o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))})(Fl),(e=>{var t;(r=>{var n="Convert parameters to destructured object",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),a={name:n,description:i,kind:"refactor.rewrite.parameters.toDestructured"};function o(t,r){var n=e.getContainingObjectLiteralElement(t);if(n){var i=r.getContextualTypeForObjectLiteralElement(n),a=null==i?void 0:i.getSymbol();if(a&&!(6&e.getCheckFlags(a)))return a}}function s(t){var r=t.node;return e.isImportSpecifier(r.parent)||e.isImportClause(r.parent)||e.isImportEqualsDeclaration(r.parent)||e.isNamespaceImport(r.parent)||e.isExportSpecifier(r.parent)||e.isExportAssignment(r.parent)?r:void 0}function c(t){if(e.isDeclaration(t.node.parent))return t.node}function l(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 207:case 208:var i=e.tryCast(n,e.isCallOrNewExpression);if(i&&i.expression===r)return i;break;case 205:var a=e.tryCast(n,e.isPropertyAccessExpression);if(a&&a.parent&&a.name===r){var o=e.tryCast(a.parent,e.isCallOrNewExpression);if(o&&o.expression===a)return o}break;case 206:var s=e.tryCast(n,e.isElementAccessExpression);if(s&&s.parent&&s.argumentExpression===r){var c=e.tryCast(s.parent,e.isCallOrNewExpression);if(c&&c.expression===s)return c}}}}function u(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 205:var i=e.tryCast(n,e.isPropertyAccessExpression);if(i&&i.expression===r)return i;break;case 206:var a=e.tryCast(n,e.isElementAccessExpression);if(a&&a.expression===r)return a}}}function d(t){var r=t.node;if(2===e.getMeaningFromLocation(r)||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent))return r}function p(t,r,n){var i=e.getTouchingToken(t,r),a=e.getContainingFunctionDeclaration(i);if(!(t=>{var r=e.findAncestor(t,e.isJSDocNode);if(r){var n=e.findAncestor(r,(t=>!e.isJSDocNode(t)));return!!n&&e.isFunctionLikeDeclaration(n)}return!1})(i))return!(a&&((t,r)=>{var n;if(!((t,r)=>(e=>g(e)?e.length-1:e.length)(t)>=2&&e.every(t,(t=>((t,r)=>{if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)})(t,r))))(t.parameters,r))return!1;switch(t.kind){case 255:return f(t)&&_(t,r);case 168:if(e.isObjectLiteralExpression(t.parent)){var i=o(t.name,r);return 1===(null===(n=null==i?void 0:i.declarations)||void 0===n?void 0:n.length)&&_(t,r)}return _(t,r);case 170:return e.isClassDeclaration(t.parent)?f(t.parent)&&_(t,r):m(t.parent.parent)&&_(t,r);case 212:case 213:return m(t.parent)}return!1})(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function _(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function f(t){return!!t.name||!!e.findModifier(t,88)}function m(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function g(t){return t.length>0&&e.isThis(t[0].name)}function h(t){return g(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function y(t,r){var n=h(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,((t,r)=>{var i,a,o=(i=b(n[r]),a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(o.name),e.isPropertyAssignment(o)&&e.suppressLeadingAndTrailingTrivia(o.initializer),e.copyComments(t,o),o}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(b(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function v(t,r,n){var i,a,o,s=r.getTypeChecker(),c=h(t.parameters),l=e.map(c,(t=>{var r=e.factory.createBindingElement(void 0,void 0,b(t),e.isRestParameter(t)&&m(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer),r})),u=e.factory.createObjectBindingPattern(l),d=(i=c,a=e.map(i,(t=>{var i,a,o=t.type;o||!t.initializer&&!e.isRestParameter(t)||(i=t,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,r,n));var c=e.factory.createPropertySignature(void 0,b(t),m(t)?e.factory.createToken(57):t.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(t.name,c.name),t.type&&c.type&&e.copyComments(t.type,c.type),c})),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,m)&&(o=e.factory.createObjectLiteralExpression());var p=e.factory.createParameterDeclaration(void 0,void 0,void 0,u,void 0,d,o);if(g(t.parameters)){var _=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,void 0,_.name,void 0,_.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(_.name,f.name),_.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(_.type,f.type)),e.factory.createNodeArray([f,p])}return e.factory.createNodeArray([p]);function m(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function b(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(t,r){e.Debug.assert(r===n,"Unexpected action name");var i=t.file,a=t.startPosition,_=t.program,f=t.cancellationToken,m=t.host,g=p(i,a,_.getTypeChecker());if(g&&f){var h=((t,r,n)=>{var i=(t=>{switch(t.kind){case 255:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless function declaration should be a default export")];case 168:return[t.name];case 170:var r=e.Debug.checkDefined(e.findChildOfKind(t,134,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 225===t.parent.kind?[t.parent.parent.name,r]:[r];case 213:return[t.parent.name];case 212:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind ".concat(t.kind))}})(t),a=e.isConstructorDeclaration(t)?(t=>{switch(t.parent.kind){case 256:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,88),"Nameless class declaration should be a default export")];case 225:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}})(t):[],p=e.deduplicate(Il(Il([],i,!0),a,!0),e.equateValues),_=r.getTypeChecker(),f=(r=>{for(var n={accessExpressions:[],typeUsages:[]},p={functionCalls:[],declarations:[],classReferences:n,valid:!0},f=e.map(i,m),g=e.map(a,m),h=e.isConstructorDeclaration(t),y=e.map(i,(e=>o(e,_))),v=0,b=r;v<b.length;v++){var x=b[v];if(0!==x.kind){if(e.contains(y,m(x.node))){if(k=x.node.parent,e.isMethodSignature(k)&&(e.isInterfaceDeclaration(k.parent)||e.isTypeLiteralNode(k.parent))){p.signature=x.node.parent;continue}if(S=l(x)){p.functionCalls.push(S);continue}}var E=o(x.node,_);if(E&&e.contains(y,E)&&(D=c(x))){p.declarations.push(D);continue}if(e.contains(f,m(x.node))||e.isNewExpressionTarget(x.node)){var S;if(s(x))continue;if(D=c(x)){p.declarations.push(D);continue}if(S=l(x)){p.functionCalls.push(S);continue}}if(h&&e.contains(g,m(x.node))){var D;if(s(x))continue;if(D=c(x)){p.declarations.push(D);continue}var T=u(x);if(T){n.accessExpressions.push(T);continue}if(e.isClassDeclaration(t.parent)){var C=d(x);if(C){n.typeUsages.push(C);continue}}}p.valid=!1}else p.valid=!1}var k;return p})(e.flatMap(p,(t=>e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n))));return e.every(f.declarations,(t=>e.contains(p,t)))||(f.valid=!1),f;function m(t){var r=_.getSymbolAtLocation(t);return r&&e.getSymbolTarget(r,_)}})(g,_,f);return h.valid?{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(t=>((t,r,n,i,a,o)=>{var s=o.signature,c=e.map(v(a,r,n),(t=>e.getSynthesizedDeepClone(t)));s&&_(s,e.map(v(s,r,n),(t=>e.getSynthesizedDeepClone(t)))),_(a,c);for(var l=0,u=e.sortAndDeduplicate(o.functionCalls,((t,r)=>e.compareValues(t.pos,r.pos)));l<u.length;l++){var d=u[l];if(d.arguments&&d.arguments.length){var p=e.getSynthesizedDeepClone(y(a,d.arguments),!0);i.replaceNodeRange(e.getSourceFileOfNode(d),e.first(d.arguments),e.last(d.arguments),p,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function _(r,n){i.replaceNodeRangeWithNodes(t,e.first(r.parameters),e.last(r.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}})(i,_,m,t,g,h)))}:{edits:[]}}},getAvailableActions(t){var r=t.file,o=t.startPosition;return e.isSourceFileJS(r)?e.emptyArray:p(r,o,t.program.getTypeChecker())?[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertParamsToDestructuredObject||(t.convertParamsToDestructuredObject={}))})(Fl),(e=>{var t;(r=>{var n="Convert to template string",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),a={name:n,description:i,kind:"refactor.rewrite.string"};function o(t,r){var n=e.getTokenAtPosition(t,r),i=c(n);return!l(i).isValidConcatenation&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)?i.parent.parent:n}function s(t,r){var n=c(r),i=t.file,a=((t,r)=>{var n=t.nodes,i=((t,r)=>(n,i)=>{n<t.length&&e.copyTrailingComments(t[n],i,r,3,!1)})(t.operators,r),a=((t,r,n)=>(i,a)=>{for(;i.length>0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}})(n,r,i),o=d(0,n),s=o[0],c=o[1],l=o[2],_=o[3];if(s===n.length){var f=e.factory.createNoSubstitutionTemplateLiteral(c,l);return a(_,f),f}var m=[],g=e.factory.createTemplateHead(c,l);a(_,g);for(var h,y=t=>{var r=(t=>(e.isParenthesizedExpression(t)&&(p(t),t=t.expression),t))(n[t]);i(t,r);var o=d(t+1,n),s=o[0],c=o[1],l=o[2],_=o[3],f=(t=s-1)==n.length-1;if(e.isTemplateExpression(r)){var g=e.map(r.templateSpans,((t,n)=>{p(t);var i=n===r.templateSpans.length-1,a=t.literal.text+(i?c:""),o=u(t.literal)+(i?l:"");return e.factory.createTemplateSpan(t.expression,f?e.factory.createTemplateTail(a,o):e.factory.createTemplateMiddle(a,o))}));m.push.apply(m,g)}else{var y=f?e.factory.createTemplateTail(c,l):e.factory.createTemplateMiddle(c,l);a(_,y),m.push(e.factory.createTemplateSpan(r,y))}h=t},v=s;v<n.length;v++)y(v),v=h;return e.factory.createTemplateExpression(g,m)})(l(n),i),o=e.getTrailingCommentRanges(i.text,n.end);if(o){var s=o[o.length-1],_={pos:o[0].pos,end:s.end};return e.textChanges.ChangeTracker.with(t,(e=>{e.deleteRange(i,_),e.replaceNode(i,n,a)}))}return e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(i,n,a)))}function c(t){return e.findAncestor(t.parent,(t=>{switch(t.kind){case 205:case 206:return!1;case 222:case 220:return!(e.isBinaryExpression(t.parent)&&(r=t.parent,63!==r.operatorToken.kind));default:return"quit"}var r}))||t}function l(t){var r=t=>{if(!e.isBinaryExpression(t))return{nodes:[t],operators:[],validOperators:!0,hasString:e.isStringLiteral(t)||e.isNoSubstitutionTemplateLiteral(t)};var n=r(t.left),i=n.nodes,a=n.operators,o=n.hasString,s=n.validOperators;if(!(o||e.isStringLiteral(t.right)||e.isTemplateExpression(t.right)))return{nodes:[t],operators:[],hasString:!1,validOperators:!0};var c=39===t.operatorToken.kind,l=s&&c;return i.push(t.right),a.push(t.operatorToken),{nodes:i,operators:a,hasString:!0,validOperators:l}},n=r(t),i=n.nodes,a=n.operators,o=n.validOperators,s=n.hasString;return{nodes:i,operators:a,isValidConcatenation:o&&s}}function u(t){var r=e.isTemplateHead(t)||e.isTemplateMiddle(t)?-2:-1;return e.getTextOfNode(t).slice(1,r)}function d(t,r){for(var n=[],i="",a="";t<r.length;){var o=r[t];if(!e.isStringLiteralLike(o)){if(e.isTemplateExpression(o)){i+=o.head.text,a+=u(o.head);break}break}i+=o.text,a+=e.getTextOfNode(o).slice(1,-1).replace(/\\.|[$`]/g,(e=>"\\"===e[0]?e:"\\"+e)),n.push(t),t++}return[t,i,a,n]}function p(t){var r=t.getSourceFile();e.copyTrailingComments(t,t.expression,r,3,!1),e.copyTrailingAsLeadingComments(t.expression,t.expression,r,3,!1)}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(t,r){var n=o(t.file,t.startPosition);switch(r){case i:return{edits:s(t,n)};default:return e.Debug.fail("invalid action")}},getAvailableActions(t){var r=c(o(t.file,t.startPosition)),s={name:n,description:i,actions:[]};return e.isBinaryExpression(r)&&l(r).isValidConcatenation?(s.actions.push(a),[s]):t.preferences.provideRefactorNotApplicableReason?(s.actions.push(Ol(Ol({},a),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[s]):e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertStringOrTemplateLiteral||(t.convertStringOrTemplateLiteral={}))})(Fl),(e=>{var t;(r=>{var n="Convert arrow function or function expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),a={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},o={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},s={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function c(t){var r=!1;return t.forEachChild((function t(n){e.isThis(n)?r=!0:e.isClassLike(n)||e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.forEachChild(n,t)})),r}function l(t,r,n){var i=e.getTokenAtPosition(t,r),a=n.getTypeChecker(),o=((t,r,n)=>{if((t=>e.isVariableDeclaration(t)||e.isVariableDeclarationList(t)&&1===t.declarations.length)(n)){var i=(e.isVariableDeclaration(n)?n:e.first(n.declarations)).initializer;return i&&(e.isArrowFunction(i)||e.isFunctionExpression(i)&&!d(t,r,i))?i:void 0}})(t,a,i.parent);if(o&&!c(o.body)&&!a.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};var s=e.getContainingFunction(i);if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s))&&!e.rangeContainsRange(s.body,i)&&!c(s.body)&&!a.containsArgumentsReference(s)){if(e.isFunctionExpression(s)&&d(t,a,s))return;return{selectedVariableDeclaration:!1,func:s}}}function u(t){if(e.isExpression(t)){var r=e.factory.createReturnStatement(t),n=t.getSourceFile();return e.suppressLeadingAndTrailingTrivia(r),e.copyTrailingAsLeadingComments(t,r,n,void 0,!0),e.factory.createBlock([r],!0)}return t}function d(t,r,n){return!!n.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,r,t)}t.registerRefactor(n,{kinds:[a.kind,o.kind,s.kind],getEditsForAction(t,r){var n=l(t.file,t.startPosition,t.program);if(n){var i=n.func,c=[];switch(r){case a.name:c.push.apply(c,((t,r)=>{var n=t.file,i=u(r.body),a=e.factory.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,r.typeParameters,r.parameters,r.type,i);return e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(n,r,a)))})(t,i));break;case o.name:var d=(t=>{var r=t.parent;if(e.isVariableDeclaration(r)&&e.isVariableDeclarationInVariableStatement(r)){var n=r.parent,i=n.parent;return e.isVariableDeclarationList(n)&&e.isVariableStatement(i)&&e.isIdentifier(r.name)?{variableDeclaration:r,variableDeclarationList:n,statement:i,name:r.name}:void 0}})(i);if(!d)return;c.push.apply(c,((t,r,n)=>{var i=t.file,a=u(r.body),o=n.variableDeclaration,s=n.variableDeclarationList,c=n.statement,l=n.name;e.suppressLeadingTrivia(c);var d=1&e.getCombinedModifierFlags(o)|e.getEffectiveModifierFlags(r),p=e.factory.createModifiersFromModifierFlags(d),_=e.factory.createFunctionDeclaration(r.decorators,e.length(p)?p:void 0,r.asteriskToken,l,r.typeParameters,r.parameters,r.type,a);return 1===s.declarations.length?e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(i,c,_))):e.textChanges.ChangeTracker.with(t,(e=>{e.delete(i,o),e.insertNodeAfter(i,c,_)}))})(t,i,d));break;case s.name:if(!e.isFunctionExpression(i))return;c.push.apply(c,((t,r)=>{var n,i=t.file,a=r.body.statements[0];((t,r)=>1===t.statements.length&&e.isReturnStatement(r)&&!!r.expression)(r.body,a)?(n=a.expression,e.suppressLeadingAndTrailingTrivia(n),e.copyComments(a,n)):n=r.body;var o=e.factory.createArrowFunction(r.modifiers,r.typeParameters,r.parameters,r.type,e.factory.createToken(38),n);return e.textChanges.ChangeTracker.with(t,(e=>e.replaceNode(i,r,o)))})(t,i));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:c}}},getAvailableActions(r){var c=r.file,u=r.startPosition,d=r.program,p=r.kind,_=l(c,u,d);if(!_)return e.emptyArray;var f,m=_.selectedVariableDeclaration,g=_.func,h=[],y=[];return t.refactorKindBeginsWith(o.kind,p)&&((f=m||e.isArrowFunction(g)&&e.isVariableDeclaration(g.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function))?y.push(Ol(Ol({},o),{notApplicableReason:f})):h.push(o)),t.refactorKindBeginsWith(a.kind,p)&&((f=!m&&e.isArrowFunction(g)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function))?y.push(Ol(Ol({},a),{notApplicableReason:f})):h.push(a)),t.refactorKindBeginsWith(s.kind,p)&&((f=e.isFunctionExpression(g)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function))?y.push(Ol(Ol({},s),{notApplicableReason:f})):h.push(s)),[{name:n,description:i,actions:0===h.length&&r.preferences.provideRefactorNotApplicableReason?y:h}]}})})((t=e.refactor||(e.refactor={})).convertArrowFunctionOrFunctionExpression||(t.convertArrowFunctionOrFunctionExpression={}))})(Fl),(e=>{var t;(r=>{var n="Infer function return type",i=e.Diagnostics.Infer_function_return_type.message,a={name:n,description:i,kind:"refactor.rewrite.function.returnType"};function o(r){if(!e.isInJSFile(r.file)&&t.refactorKindBeginsWith(a.kind,r.kind)){var n=e.getTokenAtPosition(r.file,r.startPosition),i=e.findAncestor(n,(t=>e.isBlock(t)||t.parent&&e.isArrowFunction(t.parent)&&(38===t.kind||t.parent.body===t)?"quit":(e=>{switch(e.kind){case 255:case 212:case 213:case 168:return!0;default:return!1}})(t)));if(!i||!i.body||i.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var o=r.program.getTypeChecker(),s=((t,r)=>{if(t.isImplementationOfOverload(r)){var n=t.getTypeAtLocation(r).getCallSignatures();if(n.length>1)return t.getUnionType(e.mapDefined(n,(e=>e.getReturnType())))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)})(o,i);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=o.typeToTypeNode(s,i,1);return c?{declaration:i,returnTypeNode:c}:void 0}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction(r){var n=o(r);if(n&&!t.isRefactorErrorInfo(n))return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(t=>{return i=r.file,a=t,o=n.declaration,s=n.returnTypeNode,c=e.findChildOfKind(o,21,i),void((u=(l=e.isArrowFunction(o)&&void 0===c)?e.first(o.parameters):c)&&(l&&(a.insertNodeBefore(i,u,e.factory.createToken(20)),a.insertNodeAfter(i,u,e.factory.createToken(21))),a.insertNodeAt(i,u.end,s,{prefix:": "})));var i,a,o,s,c,l,u}))}},getAvailableActions(r){var s=o(r);return s?t.isRefactorErrorInfo(s)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[Ol(Ol({},a),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).inferFunctionReturnType||(t.inferFunctionReturnType={}))})(Fl),function(e){function t(t,n,i,a){var l=e.isNodeKind(t)?new r(t,n,i):79===t?new s(79,n,i):80===t?new c(80,n,i):new o(t,n,i);return l.parent=a,l.flags=25358336&a.flags,l}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=((r,i)=>{if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((e=>{a.push(e)})),a;e.scanner.setText((i||r.getSourceFile()).text);var o=r.pos,s=e=>{n(a,o,e.pos,r),a.push(e),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,(e=>{n(a,o,e.pos,r),a.push(((e,r)=>{var i=t(346,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];n(i._children,a,c.pos,r),i._children.push(c),a=c.end}return n(i._children,a,e.end,r),i})(e,r)),o=e.end})),n(a,o,r.end,r),e.scanner.setText(void 0),a})(this,r))},r.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(r.length){var n=e.find(r,(e=>e.kind<307||e.kind>345));return n.kind<160?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<160?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){for(e.scanner.setTextPos(n);n<i;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=i&&(79===o&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(a.kind)," to have an Identifier in its trivia")),r.push(t(o,n,s,a))),n=s,1===o)break}}var i=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(){return this.getChildren().length},t.prototype.getChildAt=function(e){return this.getChildren()[e]},t.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},t.prototype.getFirstToken=()=>{},t.prototype.getLastToken=()=>{},t.prototype.forEachChild=()=>{},t}(),a=function(){function t(e,t){this.flags=e,this.escapedName=t}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get(){return e.symbolName(this)},enumerable:!1,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(t){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var r=this.target.tupleLabelDeclaration;this.documentationComment=p([r],t)}else this.documentationComment=p(this.declarations,t);return this.documentationComment},t.prototype.getContextualDocumentationComment=function(t,r){switch(null==t?void 0:t.kind){case 171:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=p(e.filter(this.declarations,e.isGetAccessor),r)),this.contextualGetAccessorDocumentationComment;case 172:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=p(e.filter(this.declarations,e.isSetAccessor),r)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(r)}},t.prototype.getJsDocTags=function(t){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations,t)),this.tags},t}(),o=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return Bl(t,e),t}(i),s=function(t){function r(e,r,n){var i=t.call(this,r,n)||this;return i.kind=79,i}return Bl(r,t),Object.defineProperty(r.prototype,"text",{get(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(i);s.prototype.kind=79;var c=function(t){function r(e,r,n){return t.call(this,r,n)||this}return Bl(r,t),Object.defineProperty(r.prototype,"text",{get(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(i);c.prototype.kind=80;var l=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getSymbol=function(){return this.symbol},t.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},t.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},t.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},t.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},t.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},t.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},t.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},t.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},t.prototype.isNullableType=function(){return this.checker.isNullableType(this)},t.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},t.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},t.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},t.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},t.prototype.isUnion=function(){return!!(1048576&this.flags)},t.prototype.isIntersection=function(){return!!(2097152&this.flags)},t.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},t.prototype.isLiteral=function(){return!!(384&this.flags)},t.prototype.isStringLiteral=function(){return!!(128&this.flags)},t.prototype.isNumberLiteral=function(){return!!(256&this.flags)},t.prototype.isTypeParameter=function(){return!!(262144&this.flags)},t.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},t.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},Object.defineProperty(t.prototype,"typeArguments",{get(){if(4&e.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),t}(),u=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=p(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?((t,r)=>{var n=e.JsDoc.getJsDocTagsFromDeclarations([t],r);if(0===n.length||d(t)){var i=_(r,t,(e=>{var t;return 1===(null===(t=e.declarations)||void 0===t?void 0:t.length)?e.getJsDocTags():void 0}));i&&(n=Il(Il([],i,!0),n,!0))}return n})(this.declaration,this.checker):[]),this.jsDocTags},t}();function d(t){return e.getJSDocTags(t).some((e=>"inheritDoc"===e.tagName.text))}function p(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t,r);if(r&&(0===n.length||t.some(d)))for(var i=new e.Set,a=0,o=t;a<o.length;a++){var s=o[a],c=_(r,s,(e=>{if(!i.has(e))return i.add(e),e.getDocumentationComment(r)}));c&&(n=0===n.length?c.slice():c.concat(e.lineBreakPart(),n))}return n}function _(t,r,n){var i,a=170===(null===(i=r.parent)||void 0===i?void 0:i.kind)?r.parent.parent:r.parent;if(a)return e.firstDefined(e.getAllSuperTypeNodes(a),(e=>{var i=t.getPropertyOfType(t.getTypeAtLocation(e),r.symbol.name);return i?n(i):void 0}))}var f=function(t){function r(e,r,n){var i=t.call(this,e,r,n)||this;return i.kind=303,i}return Bl(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r,n){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),t,r,this.text,n)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 255:case 212:case 168:case 167:var o=a,s=n(o);if(s){var c=(e=>{var r=t.get(e);return r||t.set(e,r=[]),r})(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 256:case 225:case 257:case 258:case 259:case 260:case 264:case 274:case 269:case 266:case 267:case 171:case 172:case 181:r(a),e.forEachChild(a,i);break;case 163:if(!e.hasSyntacticModifier(a,16476))break;case 253:case 202:var u=a;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,i);break}u.initializer&&i(u.initializer);case 297:case 166:case 165:r(a);break;case 271:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 265:var p=a.importClause;p&&(p.name&&r(p.name),p.namedBindings&&(267===p.namedBindings.kind?r(p.namedBindings):e.forEach(p.namedBindings.elements,i)));break;case 220:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}})),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),m=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function g(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!h(n)){r=!1;break}if(r)return t;var i={};for(var n in t)e.hasProperty(t,n)&&(i[h(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]);return i}function h(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=g,e.displayPartsToString=t=>t?e.map(t,(e=>e.text)).join(""):"",e.getDefaultCompilerOptions=()=>({target:1,jsx:1}),e.getSupportedCodeFixes=()=>e.codefix.getSupportedErrorCodes();var y=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var n=0,i=t.getScriptFileNames();n<i.length;n++){var a=i[n];this.createEntry(a,e.toPath(a,this.currentDirectory,r))}}return t.prototype.createEntry=function(t,r){var n,i=this.host.getScriptSnapshot(t);return n=i?{hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:i,scriptKind:e.getScriptKind(t,this.host)}:t,this.fileNameToEntry.set(r,n),n},t.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},t.prototype.getHostFileInformation=function(t){var r=this.fileNameToEntry.get(t);return e.isString(r)?void 0:r},t.prototype.getOrCreateEntryByPath=function(t,r){var n=this.getEntryByPath(r)||this.createEntry(t,r);return e.isString(n)?void 0:n},t.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach((r=>{e.isString(r)?t.push(r):t.push(r.hostFileName)})),t},t.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},t}(),v=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r=this.host.getScriptSnapshot(t);if(!r)throw new Error("Could not find file: '"+t+"'.");var n,i=e.getScriptKind(t,this.host),a=this.host.getScriptVersion(t);if(this.currentFileName!==t)n=x(t,r,99,a,!0,i);else if(this.currentFileVersion!==a){var o=r.getChangeRange(this.currentFileScriptSnapshot);n=E(this.currentSourceFile,r,a,o)}return n&&(this.currentFileVersion=a,this.currentFileName=t,this.currentFileScriptSnapshot=r,this.currentSourceFile=n),this.currentSourceFile},t}();function b(e,t,r){e.version=r,e.scriptSnapshot=t}function x(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return b(s,r,i),s}function E(t,r,n,i,a){if(i&&n!==t.version){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var l=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+l+c:s?s+l:l+c}var u=e.updateSourceFile(t,o,i,a);return b(u,r,n),u.nameTable=void 0,t!==u&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),u}return x(t.fileName,r,t.languageVersion,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=x,e.updateLanguageServiceSourceFile=E;var S={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},D=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},t}(),T=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=T;var C=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],k=Il(Il([],C,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function A(t){var r=(t=>{switch(t.kind){case 10:case 14:case 8:if(161===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||204!==t.parent.parent.kind&&285!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}})(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function N(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,(n=>(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)));return i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a))?[o]:0===s.length?e.mapDefined(n.types,(e=>e.getProperty(a))):s}e.createLanguageService=(t,r,n)=>{var i,a;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),a=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var o,s,c=new v(t),l=0,u=t.getCancellationToken?new D(t.getCancellationToken()):S,d=t.getCurrentDirectory();function p(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(t.getLocalizedDiagnosticMessages());var _=e.hostUsesCaseSensitiveFileNames(t),f=e.createGetCanonicalFileName(_),m=e.getSourceMapper({useCaseSensitiveFileNames:()=>_,getCurrentDirectory:()=>d,getProgram:x,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:p});function h(e){var t=o.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '".concat(e,"'."));throw r.ProgramFiles=o.getSourceFiles().map((e=>e.fileName)),r}return t}function b(){var n,i,c;if(e.Debug.assert(a!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var g=t.getProjectVersion();if(g){if(s===g&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;s=g}}var h=t.getTypeRootsVersion?t.getTypeRootsVersion():0;l!==h&&(p("TypeRoots version has changed; provide new program"),o=void 0,l=h);var v,b=new y(t,f),x=b.getRootFileNames(),E=t.getCompilationSettings()||{target:1,jsx:1},S=t.hasInvalidatedResolution||e.returnFalse,D=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),T=null===(i=t.getProjectReferences)||void 0===i?void 0:i.call(t),C={useCaseSensitiveFileNames:_,fileExists:F,readFile:P,readDirectory:I,trace:e.maybeBind(t,t.trace),getCurrentDirectory:()=>d,onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(o,x,E,((e,r)=>t.getScriptVersion(r)),F,S,D,w,T)){var k={getSourceFile:M,getSourceFileByPath:R,getCancellationToken:()=>u,getCanonicalFileName:f,useCaseSensitiveFileNames:()=>_,getNewLine:()=>e.getNewLineCharacter(E,(()=>e.getNewLineOrDefaultFromHost(t))),getDefaultLibFileName:e=>t.getDefaultLibFileName(e),writeFile:e.noop,getCurrentDirectory:()=>d,fileExists:F,readFile:P,getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:r=>e.directoryProbablyExists(r,t),getDirectories:e=>t.getDirectories?t.getDirectories(e):[],readDirectory:I,onReleaseOldSourceFile:O,onReleaseParsedCommandLine(e,r,n){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,r,n):r&&O(r.sourceFile,n)},hasInvalidatedResolution:S,hasChangedAutomaticTypeDirectiveNames:D,trace:C.trace,resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:w};null===(c=t.setCompilerHost)||void 0===c||c.call(t,k);var A=r.getKeyForCompilationSettings(E),N={rootNames:x,options:E,host:k,oldProgram:o,projectReferences:T};return o=e.createProgram(N),b=void 0,v=void 0,m.clearCache(),void o.getTypeChecker()}function w(r){var n=e.toPath(r,d,f),i=null==v?void 0:v.get(n);if(void 0!==i)return i||void 0;var a=t.getParsedCommandLine?t.getParsedCommandLine(r):(t=>{var r=M(t);return r?(r.path=e.toPath(t,d,f),r.resolvedPath=r.path,r.originalFileName=r.fileName,e.parseJsonSourceFileConfigFileContent(r,C,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),d),void 0,e.getNormalizedAbsolutePath(t,d))):void 0})(r);return(v||(v=new e.Map)).set(n,a||!1),a}function F(r){var n=e.toPath(r,d,f),i=b&&b.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function P(r){var n=e.toPath(r,d,f),i=b&&b.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)}function I(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)}function O(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind)}function M(t,r,n,i){return R(t,e.toPath(t,d,f),0,0,i)}function R(t,n,i,a,s){e.Debug.assert(void 0!==b,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var c=b&&b.getOrCreateEntryByPath(t,n);if(c){if(!s){var l=o&&o.getSourceFileByPath(n);if(l){if(c.scriptKind===l.scriptKind)return r.updateDocumentWithKey(t,n,E,A,c.scriptSnapshot,c.version,c.scriptKind);r.releaseDocumentWithKey(l.resolvedPath,r.getKeyForCompilationSettings(o.getCompilerOptions()),l.scriptKind)}}return r.acquireDocumentWithKey(t,n,E,A,c.scriptSnapshot,c.version,c.scriptKind)}}}function x(){if(a!==e.LanguageServiceMode.Syntactic)return b(),o;e.Debug.assert(void 0===o)}function E(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((t=>e.normalizePath(t)===i))),b();var a=e.mapDefined(n,(e=>o.getSourceFile(e))),s=h(t);return e.DocumentHighlights.getDocumentHighlights(o,u,s,r,a)}function T(t,r,n,i){b();var a=n&&2===n.use?o.getSourceFiles().filter((e=>!o.isSourceFileDefaultLibrary(e))):o.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(o,u,a,t,r,n,i)}var w=new e.Map(e.getEntries(((i={})[18]=19,i[20]=21,i[22]=23,i[31]=29,i)));function F(r){var n;return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:(n=r.file,e.toPath(n,d,f)),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function P(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function I(t,r,n){for(var i=c.getCurrentSourceFile(t),a=[],o=P(i,r),s=o.lineStarts,l=o.firstLine,u=o.lastLine,d=n||!1,p=Number.MAX_VALUE,_=new e.Map,f=new RegExp(/\S/),m=e.isInsideJsxElement(i,s[l]),g=m?"{/*":"//",h=l;h<=u;h++){var y=i.text.substring(s[h],i.getLineEndOfPosition(s[h])),v=f.exec(y);v&&(p=Math.min(p,v.index),_.set(h.toString(),v.index),y.substr(v.index,g.length)!==g&&(d=void 0===n||n))}for(h=l;h<=u;h++)if(l===u||s[h]!==r.end){var b=_.get(h.toString());void 0!==b&&(m?a.push.apply(a,O(t,{pos:s[h]+p,end:i.getLineEndOfPosition(s[h])},d,m)):d?a.push({newText:g,span:{length:0,start:s[h]+p}}):i.text.substr(s[h]+b,g.length)===g&&a.push({newText:"",span:{length:g.length,start:s[h]+b}}))}return a}function O(t,r,n,i){for(var a,o=c.getCurrentSourceFile(t),s=[],l=o.text,u=!1,d=n||!1,p=[],_=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,_),m=f?"{/*":"/*",g=f?"*/}":"*/",h=f?"\\{\\/\\*":"\\/\\*",y=f?"\\*\\/\\}":"\\*\\/";_<=r.end;){var v=l.substr(_,m.length)===m?m.length:0,b=e.isInComment(o,_+v);if(b)f&&(b.pos--,b.end++),p.push(b.pos),3===b.kind&&p.push(b.end),u=!0,_=b.end+1;else{var x=l.substring(_,r.end).search("(".concat(h,")|(").concat(y,")"));d=void 0!==n?n:d||!e.isTextWhiteSpaceLike(l,_,-1===x?r.end:_+x),_=-1===x?r.end+1:_+x+g.length}}if(d||!u){2!==(null===(a=e.isInComment(o,r.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(p,r.pos,e.compareValues),e.insertSorted(p,r.end,e.compareValues);var E=p[0];l.substr(E,m.length)!==m&&s.push({newText:m,span:{length:0,start:E}});for(var S=1;S<p.length-1;S++)l.substr(p[S]-g.length,g.length)!==g&&s.push({newText:g,span:{length:0,start:p[S]}}),l.substr(p[S],m.length)!==m&&s.push({newText:m,span:{length:0,start:p[S]}});s.length%2!=0&&s.push({newText:g,span:{length:0,start:p[p.length-1]}})}else for(var D=0,T=p;D<T.length;D++){var C=T[D],k=C-g.length>0?C-g.length:0;v=l.substr(k,g.length)===g?g.length:0,s.push({newText:"",span:{length:m.length,start:C-v}})}return s}function M(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&M(i)}function R(t){var r=t.closingFragment,n=t.parent;return!!(65536&r.flags)||e.isJsxFragment(n)&&R(n)}function L(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:x(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:u,preferences:i,triggerReason:o,kind:s}}w.forEach(((e,t)=>w.set(e.toString(),Number(t))));var B={dispose(){if(o){var n=r.getKeyForCompilationSettings(o.getCompilerOptions());e.forEach(o.getSourceFiles(),(e=>r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind))),o=void 0}t=void 0},cleanupSemanticCache(){o=void 0},getSyntacticDiagnostics:e=>(b(),o.getSyntacticDiagnostics(h(e),u).slice()),getSemanticDiagnostics(t){b();var r=h(t),n=o.getSemanticDiagnostics(r,u);if(!e.getEmitDeclarations(o.getCompilerOptions()))return n.slice();var i=o.getDeclarationDiagnostics(r,u);return Il(Il([],n,!0),i,!0)},getSuggestionDiagnostics:t=>(b(),e.computeSuggestionDiagnostics(h(t),o,u)),getCompilerOptionsDiagnostics:()=>(b(),Il(Il([],o.getOptionsDiagnostics(u),!0),o.getGlobalDiagnostics(u),!0)),getSyntacticClassifications:(t,r)=>e.getSyntacticClassifications(u,c.getCurrentSourceFile(t),r),getSemanticClassifications:(t,r,n)=>(b(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(o,u,h(t),r):e.getSemanticClassifications(o.getTypeChecker(),u,h(t),o.getClassifiableNames(),r)),getEncodedSyntacticClassifications:(t,r)=>e.getEncodedSyntacticClassifications(u,c.getCurrentSourceFile(t),r),getEncodedSemanticClassifications:(t,r,n)=>(b(),"original"===(n||"original")?e.getEncodedSemanticClassifications(o.getTypeChecker(),u,h(t),o.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(o,u,h(t),r)),getCompletionsAtPosition(r,n,i){void 0===i&&(i=e.emptyOptions);var a=Ol(Ol({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return b(),e.Completions.getCompletionsAtPosition(t,o,p,h(r),n,a,i.triggerCharacter,i.triggerKind,u)},getCompletionEntryDetails:(r,n,i,a,s,c,l)=>(void 0===c&&(c=e.emptyOptions),b(),e.Completions.getCompletionEntryDetails(o,p,h(r),n,{name:i,source:s,data:l},t,a&&e.formatting.getFormatContext(a,t),c,u)),getCompletionEntrySymbol:(r,n,i,a,s)=>(void 0===s&&(s=e.emptyOptions),b(),e.Completions.getCompletionEntrySymbol(o,p,h(r),n,{name:i,source:a},t,s)),getSignatureHelpItems(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;b();var a=h(t);return e.SignatureHelp.getSignatureHelpItems(o,a,r,i,u)},getQuickInfoAtPosition(t,r){b();var n=h(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=o.getTypeChecker(),s=(t=>e.isNewExpression(t.parent)&&t.pos===t.parent.pos?t.parent.expression:e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos?t.parent:t)(i),c=((t,r)=>{var n=A(t);if(n){var i=r.getContextualType(n.parent),a=i&&N(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)})(s,a);if(!c||a.isUnknownSymbol(c)){var l=((t,r,n)=>{switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 205:case 160:return!e.isInComment(t,n);case 108:case 191:case 106:case 196:return!0;default:return!1}})(n,s,r)?a.getTypeAtLocation(s):void 0;return l&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(s,n),displayParts:a.runWithCancellationToken(u,(t=>e.typeToDisplayParts(t,l,e.getContainerNode(s)))),documentation:l.symbol?l.symbol.getDocumentationComment(a):void 0,tags:l.symbol?l.symbol.getJsDocTags(a):void 0}}var d=a.runWithCancellationToken(u,(t=>e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,c,n,e.getContainerNode(s),s))),p=d.symbolKind,_=d.displayParts,f=d.documentation,m=d.tags;return{kind:p,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,c),textSpan:e.createTextSpanFromNode(s,n),displayParts:_,documentation:f,tags:m}}},getDefinitionAtPosition:(t,r)=>(b(),e.GoToDefinition.getDefinitionAtPosition(o,h(t),r)),getDefinitionAndBoundSpan:(t,r)=>(b(),e.GoToDefinition.getDefinitionAndBoundSpan(o,h(t),r)),getImplementationAtPosition:(t,r)=>(b(),e.FindAllReferences.getImplementationsAtPosition(o,u,o.getSourceFiles(),h(t),r)),getTypeDefinitionAtPosition:(t,r)=>(b(),e.GoToDefinition.getTypeDefinitionAtPosition(o.getTypeChecker(),h(t),r)),getReferencesAtPosition:(t,r)=>(b(),T(e.getTouchingPropertyName(h(t),r),r,{use:1},((t,r,n)=>e.FindAllReferences.toReferenceEntry(t,n.getSymbolAtLocation(r))))),findReferences:(t,r)=>(b(),e.FindAllReferences.findReferencedSymbols(o,u,o.getSourceFiles(),h(t),r)),getFileReferences(t){var r;b();var n=null===(r=o.getSourceFile(t))||void 0===r?void 0:r.symbol;return e.FindAllReferences.Core.getReferencesForFileName(t,o,o.getSourceFiles()).map((t=>e.FindAllReferences.toReferenceEntry(t,n)))},getOccurrencesAtPosition:(t,r)=>e.flatMap(E(t,r,[t]),(e=>e.highlightSpans.map((t=>Ol(Ol({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan}))))),getDocumentHighlights:E,getNameOrDottedNameSpan(t,r,n){var i=c.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 205:case 160:case 10:case 95:case 110:case 104:case 106:case 108:case 191:case 79:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(260!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition(t,r){var n=c.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems(t,r,n,i){void 0===i&&(i=!1),b();var a=n?[h(n)]:o.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,o.getTypeChecker(),u,t,r,i)},getRenameInfo:(t,r,n)=>(b(),e.Rename.getRenameInfo(o,h(t),r,n)),getSmartSelectionRange:(t,r)=>e.SmartSelectionRange.getSmartSelectionRange(r,c.getCurrentSourceFile(t)),findRenameLocations(t,r,n,i,a){b();var o=h(t),s=e.getAdjustedRenameLocation(e.getTouchingPropertyName(o,r));if(e.Rename.nodeIsEligibleForRename(s)){if(e.isIdentifier(s)&&(e.isJsxOpeningElement(s.parent)||e.isJsxClosingElement(s.parent))&&e.isIntrinsicJsxName(s.escapedText)){var c=s.parent.parent;return[c.openingElement,c.closingElement].map((t=>{var r=e.createTextSpanFromNode(t.tagName,o);return Ol({fileName:o.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,o,t.parent))}))}return T(s,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:a,use:2},((t,r,n)=>e.FindAllReferences.toRenameLocation(t,r,n,a||!1)))}},getNavigationBarItems:t=>e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(t),u),getNavigationTree:t=>e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(t),u),getOutliningSpans(t){var r=c.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,u)},getTodoComments(t,r){b();var n=h(t);u.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=(()=>{var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,(e=>"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")")).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")})(),l=void 0;l=c.exec(o);){u.throwIfCancellationRequested(),e.Debug.assert(l.length===r.length+3);var d=l[1],p=l.index+d.length;if(e.isInComment(n,p)){for(var _=void 0,f=0;f<r.length;f++)l[f+3]&&(_=r[f]);if(void 0===_)return e.Debug.fail();if(!((i=o.charCodeAt(p+_.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var m=l[2];s.push({descriptor:_,message:m,position:p})}}}return s},getBraceMatchingAtPosition(t,r){var n=c.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?w.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort(((e,t)=>e.start-t.start)):e.emptyArray},getIndentationAtPosition(t,r,n){var i=e.timestamp(),a=g(n),o=c.getCurrentSourceFile(t);p("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return p("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange(r,n,i,a){var o=c.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(g(a),t))},getFormattingEditsForDocument:(r,n)=>e.formatting.formatDocument(c.getCurrentSourceFile(r),e.formatting.getFormatContext(g(n),t)),getFormattingEditsAfterKeystroke(r,n,i,a){var o=c.getCurrentSourceFile(r),s=e.formatting.getFormatContext(g(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:(r,n,i)=>e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),c.getCurrentSourceFile(r),n,i),isValidBraceCompletionAtPosition(t,r,n){if(60===n)return!1;var i=c.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition(t,r){var n=c.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxElement(i.parent)?i.parent:void 0;if(a&&M(a))return{newText:"</".concat(a.openingElement.tagName.getText(n),">")};var o=31===i.kind&&e.isJsxOpeningFragment(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxFragment(i.parent)?i.parent:void 0;return o&&R(o)?{newText:"</>"}:void 0}},getSpanOfEnclosingComment(t,r,n){var i=c.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition(r,n,i,a,s,c){void 0===c&&(c=e.emptyOptions),b();var l=h(r),d=e.createTextSpanFromBounds(n,i),p=e.formatting.getFormatContext(s,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(r=>(u.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:l,span:d,program:o,host:t,cancellationToken:u,formatContext:p,preferences:c}))))},getCombinedCodeFix(r,n,i,a){void 0===a&&(a=e.emptyOptions),b(),e.Debug.assert("file"===r.type);var s=h(r.fileName),c=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:s,program:o,host:t,cancellationToken:u,formatContext:c,preferences:a})},applyCodeActionCommand(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((e=>F(e)))):F(n)},organizeImports(r,n,i){void 0===i&&(i=e.emptyOptions),b(),e.Debug.assert("file"===r.type);var a=h(r.fileName),s=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,s,t,o,i,r.skipDestructiveCodeActions)},getEditsForFileRename:(r,n,i,a)=>(void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(x(),r,n,t,e.formatting.getFormatContext(i,t),a,m)),getEmitOutput(r,n,i){b();var a=h(r),s=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(o,a,!!n,u,s,i)},getNonBoundSourceFile:e=>c.getCurrentSourceFile(e),getProgram:x,getAutoImportProvider(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getApplicableRefactors(t,r,n,i,a){void 0===n&&(n=e.emptyOptions),b();var o=h(t);return e.refactor.getApplicableRefactors(L(o,r,n,e.emptyOptions,i,a))},getEditsForRefactor(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),b();var s=h(t);return e.refactor.getEditsForRefactor(L(s,n,o,r),i,a)},toLineColumnOffset:(e,t)=>0===t?{line:0,character:0}:m.toLineColumnOffset(e,t),getSourceMapper:()=>m,clearSourceMapperCache:()=>m.clearCache(),prepareCallHierarchy(t,r){b();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(o,e.getTouchingPropertyName(h(t),r));return n&&e.mapOneOrMany(n,(t=>e.CallHierarchy.createCallHierarchyItem(o,t)))},provideCallHierarchyIncomingCalls(t,r){b();var n=h(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(o,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(o,i,u):[]},provideCallHierarchyOutgoingCalls(t,r){b();var n=h(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(o,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(o,i):[]},toggleLineComment:I,toggleMultilineComment:O,commentSelection(e,t){var r=P(c.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?O(e,t,!0):I(e,t,!0)},uncommentSelection(t,r){var n=c.getCurrentSourceFile(t),i=[],a=r.pos,o=r.end;a===o&&(o+=e.isInsideJsxElement(n,a)?2:1);for(var s=a;s<=o;s++){var l=e.isInComment(n,s);if(l){switch(l.kind){case 2:i.push.apply(i,I(t,{end:l.end,pos:l.pos+1},!1));break;case 3:i.push.apply(i,O(t,{end:l.end,pos:l.pos+1},!1))}s=l.end+1}}return i},provideInlayHints(r,n,i){void 0===i&&(i=e.emptyOptions),b();var a=h(r);return e.InlayHints.provideInlayHints(((e,r,n)=>({file:e,program:x(),host:t,span:r,preferences:n,cancellationToken:u}))(a,n,i))}};switch(a){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:C.forEach((e=>B[e]=()=>{throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.PartialSemantic"))}));break;case e.LanguageServiceMode.Syntactic:k.forEach((e=>B[e]=()=>{throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.Syntactic"))}));break;default:e.Debug.assertNever(a)}return B},e.getNameTable=t=>(t.nameTable||(t=>{var r=t.nameTable=new e.Map;t.forEachChild((function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&(t=>e.isDeclarationName(t)||276===t.parent.kind||(e=>e&&e.parent&&206===e.parent.kind&&e.parent.argumentExpression===e)(t)||e.isLiteralComputedPropertyDeclarationName(t))(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}else e.isPrivateIdentifier(n)&&(i=n.escapedText,r.set(i,void 0===r.get(i)?n.pos:-1));if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];e.forEachChild(s,t)}}))})(t),t.nameTable),e.getContainingObjectLiteralElement=A,e.getPropertySymbolsFromContextualType=N,e.setObjectAllocator({getNodeConstructor:()=>r,getTokenConstructor:()=>o,getIdentifierConstructor:()=>s,getPrivateIdentifierConstructor:()=>c,getSourceFileConstructor:()=>f,getSymbolConstructor:()=>a,getTypeConstructor:()=>l,getSignatureConstructor:()=>u,getSourceMapSourceConstructor:()=>m})}(Fl),(e=>{(e.BreakpointResolver||(e.BreakpointResolver={})).spanInSourceFileAtLocation=(t,r)=>{if(!t.isDeclarationFile){var n=e.getTokenAtPosition(t,r),i=t.getLineAndCharacterOfPosition(r).line;if(t.getLineAndCharacterOfPosition(n.getStart(t)).line>i){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(8388608&n.flags))return d(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?d(e):d(r)}function l(r){return d(e.findPrecedingToken(r.pos,t))}function u(r){return d(e.findNextToken(r,r.parent,t))}function d(r){if(r){var n=r.parent;switch(r.kind){case 236:return x(r.declarationList.declarations[0]);case 253:case 166:case 165:return x(r);case 163:return function t(r){if(e.isBindingPattern(r.name))return T(r.name);if((t=>!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12))(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):d(n.body)}(r);case 255:case 168:case 167:case 171:case 172:case 170:case 212:case 213:return(e=>{if(e.body)return E(e)?o(e):d(e.body)})(r);case 234:if(e.isFunctionBlock(r))return y=(h=r).statements.length?h.statements[0]:h.getLastToken(),E(h.parent)?c(h.parent,y):d(y);case 261:return S(r);case 291:return S(r.block);case 237:return o(r.expression);case 246:return o(r.getChildAt(0),r.expression);case 240:return s(r,r.expression);case 239:return d(r.statement);case 252:return o(r.getChildAt(0));case 238:return s(r,r.expression);case 249:return d(r.statement);case 245:case 244:return o(r.getChildAt(0),r.label);case 241:return(g=r).initializer?D(g):g.condition?o(g.condition):g.incrementor?o(g.incrementor):void 0;case 242:return s(r,r.expression);case 243:return D(r);case 248:return s(r,r.expression);case 288:case 289:return d(r.statements[0]);case 251:return S(r.tryBlock);case 250:case 270:return o(r,r.expression);case 264:return o(r,r.moduleReference);case 265:case 271:return o(r,r.moduleSpecifier);case 260:if(1!==e.getModuleInstanceState(r))return;case 256:case 259:case 297:case 202:return o(r);case 247:return d(r.statement);case 164:return v=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,v.pos),v.end);case 200:case 201:return T(r);case 257:case 258:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return l(r);case 18:return(r=>{switch(r.parent.kind){case 259:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 256:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 262:return c(r.parent.parent,r.parent.clauses[0])}return d(r.parent)})(r);case 19:return(t=>{switch(t.parent.kind){case 261:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 259:case 256:return o(t);case 234:if(e.isFunctionBlock(t.parent))return o(t);case 291:return d(e.lastOrUndefined(t.parent.statements));case 262:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?d(e.lastOrUndefined(n.statements)):void 0;case 200:var i=t.parent;return d(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return d(t.parent)}})(r);case 23:return(t=>{switch(t.parent.kind){case 201:var r=t.parent;return o(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return d(t.parent)}})(r);case 20:return(e=>239===e.parent.kind||207===e.parent.kind||208===e.parent.kind?l(e):211===e.parent.kind?u(e):d(e.parent))(r);case 21:return(e=>{switch(e.parent.kind){case 212:case 255:case 213:case 168:case 167:case 171:case 172:case 170:case 240:case 239:case 241:case 243:case 207:case 208:case 211:return l(e);default:return d(e.parent)}})(r);case 58:return(t=>e.isFunctionLike(t.parent)||294===t.parent.kind||163===t.parent.kind?l(t):d(t.parent))(r);case 31:case 29:return(e=>210===e.parent.kind?u(e):d(e.parent))(r);case 115:return(e=>239===e.parent.kind?s(e,e.parent.expression):d(e.parent))(r);case 91:case 83:case 96:return u(r);case 159:return(e=>243===e.parent.kind?u(e):d(e.parent))(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return C(r);if((79===r.kind||224===r.kind||294===r.kind||295===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(220===r.kind){var i=r,a=i.left,p=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return C(a);if(63===p.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===p.kind)return d(a)}if(e.isExpressionNode(r))switch(n.kind){case 239:return l(r);case 164:return d(r.parent);case 241:case 243:return o(r);case 220:if(27===r.parent.operatorToken.kind)return o(r);break;case 213:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 294:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return d(r.parent.initializer);break;case 210:if(r.parent.type===r)return u(r.parent.type);break;case 253:case 163:var _=r.parent,f=_.initializer,m=_.type;if(f===r||m===r||e.isAssignmentOperator(r.kind))return l(r);break;case 220:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return l(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return l(r)}return d(r.parent)}}var g,h,y,v;function b(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function x(r){if(242===r.parent.parent.kind)return d(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?T(r.name):r.initializer||e.hasSyntacticModifier(r,1)||243===n.parent.kind?b(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?d(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function E(t){return e.hasSyntacticModifier(t,1)||256===t.parent.kind&&170!==t.kind}function S(r){switch(r.parent.kind){case 260:if(1!==e.getModuleInstanceState(r.parent))return;case 240:case 238:case 242:return c(r.parent,r.statements[0]);case 241:case 243:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return d(r.statements[0])}function D(e){if(254!==e.initializer.kind)return d(e.initializer);var t=e.initializer;return t.declarations.length>0?d(t.declarations[0]):void 0}function T(t){var r=e.forEach(t.elements,(e=>226!==e.kind?e:void 0));return r?d(r):202===t.parent.kind?o(t.parent):b(t.parent)}function C(t){e.Debug.assert(201!==t.kind&&200!==t.kind);var r=203===t.kind?t.elements:t.properties,n=e.forEach(r,(e=>226!==e.kind?e:void 0));return n?d(n):o(220===t.parent.kind?t.parent:t)}}}})(Fl),(e=>{e.transform=(t,r,n)=>{var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}})(Fl);var jl=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),n=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(t,n)=>{var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(t=>{var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=e=>r.shimHost.directoryExists(e)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,n)=>{var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(t=>e.getProperty(i,t)))})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=n;var i=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=e=>t.shimHost.directoryExists(e):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=e=>t.shimHost.realpath(e):this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function a(e,t,r,n){return o(e,t,!0,r,n)}function o(r,n,i,a,o){try{var s=((t,r,n,i)=>{var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log("".concat(r," completed in ").concat(s-a," msec")),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length=".concat(c.length,", result='").concat(JSON.stringify(c),"'"))}}return o})(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=i;var s=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function c(t,r){return t.map((t=>((t,r)=>({message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}))(t,r)))}e.realizeDiagnostics=c;var l=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return Bl(r,t),r.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,jl&&jl.CollectGarbage&&(jl.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh(".concat(e,")"),(()=>null))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(()=>(e.languageService.cleanupSemanticCache(),null)))},r.prototype.realizeDiagnostics=function(t){return c(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>u(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(()=>u(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(e,"')"),(()=>{var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(e,"')"),(()=>{var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(e,"')"),(()=>t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))))},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(()=>{var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getQuickInfoAtPosition(e,t)))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>n.languageService.getNameOrDottedNameSpan(e,t,r)))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getBreakpointStatementAtPosition(e,t)))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getSignatureHelpItems(e,t,r)))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getDefinitionAtPosition(e,t)))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getDefinitionAndBoundSpan(e,t)))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getTypeDefinitionAtPosition(e,t)))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getImplementationAtPosition(e,t)))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getRenameInfo(e,t,r)))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getSmartSelectionRange(e,t)))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,", ").concat(i,")"),(()=>a.languageService.findRenameLocations(e,t,r,n,i)))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getBraceMatchingAtPosition(e,t)))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>n.languageService.isValidBraceCompletionAtPosition(e,t,r)))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getSpanOfEnclosingComment(e,t,r)))},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(e,"', ").concat(t,")"),(()=>{var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)}))},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getReferencesAtPosition(e,t)))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(t,")"),(()=>r.languageService.findReferences(e,t)))},r.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),(()=>t.languageService.getFileReferences(e)))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(t,")"),(()=>r.languageService.getOccurrencesAtPosition(e,t)))},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('".concat(t,"', ").concat(r,")"),(()=>{var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(t=>e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o))}))},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>n.languageService.getCompletionsAtPosition(e,t,r)))},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(e,"', ").concat(t,", '").concat(r,"')"),(()=>{var c=void 0===n?void 0:JSON.parse(n);return s.languageService.getCompletionEntryDetails(e,t,r,c,i,a,o)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>{var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)}))},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(e,"')"),(()=>{var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)}))},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(e,"', ").concat(t,", '").concat(r,"')"),(()=>{var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(t,")"),(()=>n.languageService.getDocCommentTemplateAtPosition(e,t,r)))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(t,", ").concat(r,")"),(()=>n.languageService.getNavigateToItems(e,t,r)))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),(()=>t.languageService.getNavigationBarItems(e)))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),(()=>t.languageService.getNavigationTree(e)))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),(()=>t.languageService.getOutliningSpans(e)))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),(()=>r.languageService.getTodoComments(e,JSON.parse(t))))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(t,")"),(()=>r.languageService.prepareCallHierarchy(e,t)))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(t,")"),(()=>r.languageService.provideCallHierarchyIncomingCalls(e,t)))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(t,")"),(()=>r.languageService.provideCallHierarchyOutgoingCalls(e,t)))},r.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(t),"', ").concat(JSON.stringify(r),")"),(()=>n.languageService.provideInlayHints(e,t,r)))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('".concat(e,"')"),(()=>{var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=Ll(r,["diagnostics"]);return Ol(Ol({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return o(this.logger,"getEmitOutput('".concat(e,"')"),!1,(()=>t.languageService.getEmitOutput(e)),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.toggleLineComment(e,t)))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.toggleMultilineComment(e,t)))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.commentSelection(e,t)))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(()=>r.languageService.uncommentSelection(e,t)))},r}(s);function u(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var d=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return Bl(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),a(this.logger,"getEncodedLexicalClassifications",(()=>u(n.classifier.getEncodedLexicalClassifications(e,t,r))),this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+n.finalLexState},r}(s),p=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.logger=r,i.host=n,i.logPerformance=!1,i}return Bl(r,t),r.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},r.prototype.resolveModuleName=function(t,r,n){var i=this;return this.forwardJSONCall("resolveModuleName('".concat(t,"')"),(()=>{var a=JSON.parse(n),o=e.resolveModuleName(r,e.normalizeSlashes(t),a,i.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}}))},r.prototype.resolveTypeReferenceDirective=function(t,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(t,")"),(()=>{var a=JSON.parse(n),o=e.resolveTypeReferenceDirective(r,e.normalizeSlashes(t),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}}))},r.prototype.getPreProcessedFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(t,"')"),(()=>{var t=e.preProcessFile(e.getSnapshotText(r),!0,!0);return{referencedFiles:n.convertFileReferences(t.referencedFiles),importedFiles:n.convertFileReferences(t.importedFiles),ambientExternalModules:t.ambientExternalModules,isLibFile:t.isLibFile,typeReferenceDirectives:n.convertFileReferences(t.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(t.libReferenceDirectives)}}))},r.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(t,"')"),(()=>{var n=JSON.parse(t);return e.getAutomaticTypeDirectiveNames(n,r.host)}))},r.prototype.convertFileReferences=t=>{if(t){for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n];r.push({path:e.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return r}},r.prototype.getTSConfigFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(t,"')"),(()=>{var i=e.parseJsonText(t,e.getSnapshotText(r)),a=e.normalizeSlashes(t),o=e.parseJsonSourceFileConfigFileContent(i,n.host,e.getDirectoryPath(a),{},a);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:c(Il(Il([],i.parseDiagnostics,!0),o.errors,!0),"\r\n")}}))},r.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",(()=>e.getDefaultCompilerOptions()))},r.prototype.discoverTypings=function(t){var r=this,n=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",(()=>{var i=JSON.parse(t);return void 0===r.safeList&&(r.safeList=e.JsTyping.loadSafeList(r.host,e.toPath(i.safeListPath,i.safeListPath,n))),e.JsTyping.discoverTypings(r.host,(e=>r.logger.log(e)),i.fileNames,e.toPath(i.projectRootPath,i.projectRootPath,n),r.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)}))},r}(s),_=function(){function r(){this._shims=[]}return r.prototype.getServicesVersion=()=>e.servicesVersion,r.prototype.createLanguageServiceShim=function(r){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames(),r.getCurrentDirectory()));var i=new n(r),a=e.createLanguageService(i,this.documentRegistry,!1);return new l(this,r,a)}catch(e){throw t(r,e),e}},r.prototype.createClassifierShim=function(e){try{return new d(this,e)}catch(r){throw t(e,r),r}},r.prototype.createCoreServicesShim=function(e){try{var r=new i(e);return new p(this,e,r)}catch(r){throw t(e,r),r}},r.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},r.prototype.registerShim=function(e){this._shims.push(e)},r.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},r}();e.TypeScriptServicesFactory=_}(Fl),function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get(){return this},configurable:!0}),__magic__.globalThis=__magic__,"undefined"==typeof globalThis&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),(void 0===r||r.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=Fl.TypeScriptServicesFactory,globalThis.toolsVersion=Fl.versionMajorMinor),"undefined"!=typeof module&&module.exports&&(module.exports=Fl),(e=>{var t={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,t),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,t),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,t),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,t),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,t),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,t),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,t),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,t),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,t),e.createSuper=e.Debug.deprecate(e.factory.createSuper,t),e.createThis=e.Debug.deprecate(e.factory.createThis,t),e.createNull=e.Debug.deprecate(e.factory.createNull,t),e.createTrue=e.Debug.deprecate(e.factory.createTrue,t),e.createFalse=e.Debug.deprecate(e.factory.createFalse,t),e.createModifier=e.Debug.deprecate(e.factory.createModifier,t),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,t),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,t),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,t),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,t),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,t),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,t),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,t),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,t),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,t),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,t),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,t),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,t),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,t),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,t),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,t),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,t),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,t),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,t),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,t),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,t),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,t),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,t),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,t),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,t),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,t),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,t),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,t),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,t),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,t),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,t),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,t),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,t),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,t),e.createConstructorTypeNode=e.Debug.deprecate(((t,r,n)=>e.factory.createConstructorTypeNode(void 0,t,r,n)),t),e.updateConstructorTypeNode=e.Debug.deprecate(((t,r,n,i)=>e.factory.updateConstructorTypeNode(t,t.modifiers,r,n,i)),t),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,t),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,t),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,t),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,t),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,t),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,t),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,t),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,t),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,t),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,t),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,t),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,t),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,t),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,t),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,t),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,t),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,t),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,t),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,t),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,t),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,t),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,t),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,t),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,t),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,t),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,t),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,t),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,t),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,t),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,t),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,t),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,t),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,t),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,t),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,t),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,t),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,t),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,t),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,t),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,t),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,t),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,t),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,t),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,t),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,t),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,t),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,t),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,t),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,t),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,t),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,t),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,t),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,t),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,t),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,t),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,t),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,t),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,t),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,t),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,t),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,t),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,t),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,t),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,t),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,t),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,t),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,t),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,t),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,t),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,t),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,t),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,t),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,t),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,t),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,t),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,t),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,t),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,t),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,t),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,t),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,t),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,t),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,t),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,t),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,t),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,t),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,t),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,t),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,t),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,t),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,t),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,t),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,t),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,t),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,t),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,t),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,t),e.createBlock=e.Debug.deprecate(e.factory.createBlock,t),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,t),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,t),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,t),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,t),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,t),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,t),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,t),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,t),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,t),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,t),e.createFor=e.Debug.deprecate(e.factory.createForStatement,t),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,t),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,t),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,t),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,t),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,t),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,t),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,t),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,t),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,t),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,t),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,t),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,t),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,t),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,t),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,t),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,t),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,t),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,t),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,t),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,t),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,t),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,t),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,t),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,t),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,t),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,t),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,t),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,t),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,t),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,t),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,t),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,t),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,t),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,t),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,t),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,t),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,t),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,t),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,t),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,t),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,t),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,t),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,t),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,t),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,t),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,t),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,t),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,t),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,t),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,t),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,t),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,t),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,t),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,t),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,t),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,t),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,t),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,t),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,t),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,t),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,t),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,t),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,t),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,t),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,t),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,t),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,t),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,t),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,t),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,t),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,t),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,t),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,t),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,t),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,t),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,t),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,t),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,t),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,t),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,t),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,t),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,t),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,t),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,t),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,t),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,t),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,t),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,t),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,t),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,t),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,t),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,t),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,t),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,t),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,t),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,t),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,t),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,t),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,t),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,t),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,t),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,t),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,t),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,t),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,t),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,t),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,t),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,t),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,t),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,t),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,t),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,t),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,t),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,t),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,t),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,t),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,t),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,t),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,t),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,t),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,t),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,t),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,t),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,t),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,t),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,t),e.createBundle=e.Debug.deprecate(e.factory.createBundle,t),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,t),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,t),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,t),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,t),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,t),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,t),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,t),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,t),e.createToken=e.Debug.deprecate((t=>e.factory.createToken(t)),t),e.createIdentifier=e.Debug.deprecate((t=>e.factory.createIdentifier(t,void 0,void 0)),t),e.createTempVariable=e.Debug.deprecate((t=>e.factory.createTempVariable(t,void 0)),t),e.getGeneratedNameForNode=e.Debug.deprecate((t=>e.factory.getGeneratedNameForNode(t,void 0)),t),e.createOptimisticUniqueName=e.Debug.deprecate((t=>e.factory.createUniqueName(t,16)),t),e.createFileLevelUniqueName=e.Debug.deprecate((t=>e.factory.createUniqueName(t,48)),t),e.createIndexSignature=e.Debug.deprecate(((t,r,n,i)=>e.factory.createIndexSignature(t,r,n,i)),t),e.createTypePredicateNode=e.Debug.deprecate(((t,r)=>e.factory.createTypePredicateNode(void 0,t,r)),t),e.updateTypePredicateNode=e.Debug.deprecate(((t,r,n)=>e.factory.updateTypePredicateNode(t,void 0,r,n)),t),e.createLiteral=e.Debug.deprecate((t=>"number"==typeof t?e.factory.createNumericLiteral(t):"object"==typeof t&&"base10Value"in t?e.factory.createBigIntLiteral(t):"boolean"==typeof t?t?e.factory.createTrue():e.factory.createFalse():"string"==typeof t?e.factory.createStringLiteral(t,void 0):e.factory.createStringLiteralFromNode(t)),{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(((t,r,n,i,a)=>e.factory.createMethodSignature(void 0,i,a,t,r,n)),t),e.updateMethodSignature=e.Debug.deprecate(((t,r,n,i,a,o)=>e.factory.updateMethodSignature(t,t.modifiers,a,o,r,n,i)),t),e.createTypeOperatorNode=e.Debug.deprecate(((t,r)=>{var n;return r?n=t:(r=t,n=140),e.factory.createTypeOperatorNode(n,r)}),t),e.createTaggedTemplate=e.Debug.deprecate(((t,r,n)=>{var i;return n?i=r:n=r,e.factory.createTaggedTemplateExpression(t,i,n)}),t),e.updateTaggedTemplate=e.Debug.deprecate(((t,r,n,i)=>{var a;return i?a=n:i=n,e.factory.updateTaggedTemplateExpression(t,r,a,i)}),t),e.updateBinary=e.Debug.deprecate(((t,r,n,i)=>(void 0===i&&(i=t.operatorToken),"number"==typeof i&&(i=i===t.operatorToken.kind?t.operatorToken:e.factory.createToken(i)),e.factory.updateBinaryExpression(t,r,i,n))),t),e.createConditional=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.createConditionalExpression(t,r,n,i,a):3===arguments.length?e.factory.createConditionalExpression(t,e.factory.createToken(57),r,e.factory.createToken(58),n):e.Debug.fail("Argument count mismatch")}),t),e.createYield=e.Debug.deprecate(((t,r)=>{var n;return r?n=t:r=t,e.factory.createYieldExpression(n,r)}),t),e.createClassExpression=e.Debug.deprecate(((t,r,n,i,a)=>e.factory.createClassExpression(void 0,t,r,n,i,a)),t),e.updateClassExpression=e.Debug.deprecate(((t,r,n,i,a,o)=>e.factory.updateClassExpression(t,void 0,r,n,i,a,o)),t),e.createPropertySignature=e.Debug.deprecate(((t,r,n,i,a)=>{var o=e.factory.createPropertySignature(t,r,n,i);return o.initializer=a,o}),t),e.updatePropertySignature=e.Debug.deprecate(((t,r,n,i,a,o)=>{var s=e.factory.updatePropertySignature(t,r,n,i,a);return t.initializer!==o&&(s===t&&(s=e.factory.cloneNode(t)),s.initializer=o),s}),t),e.createExpressionWithTypeArguments=e.Debug.deprecate(((t,r)=>e.factory.createExpressionWithTypeArguments(r,t)),t),e.updateExpressionWithTypeArguments=e.Debug.deprecate(((t,r,n)=>e.factory.updateExpressionWithTypeArguments(t,n,r)),t),e.createArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o){return 6===arguments.length?e.factory.createArrowFunction(t,r,n,i,a,o):5===arguments.length?e.factory.createArrowFunction(t,r,n,i,void 0,a):e.Debug.fail("Argument count mismatch")}),t),e.updateArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o,s){return 7===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,o,s):6===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,t.equalsGreaterThanToken,o):e.Debug.fail("Argument count mismatch")}),t),e.createVariableDeclaration=e.Debug.deprecate((function(t,r,n,i){return 4===arguments.length?e.factory.createVariableDeclaration(t,r,n,i):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate(((t,r,n)=>(void 0===n&&(n=!1),e.factory.createImportClause(n,t,r))),t),e.updateImportClause=e.Debug.deprecate(((t,r,n,i)=>e.factory.updateImportClause(t,i,r,n)),t),e.createExportDeclaration=e.Debug.deprecate(((t,r,n,i,a)=>(void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i))),t),e.updateExportDeclaration=e.Debug.deprecate(((t,r,n,i,a,o)=>e.factory.updateExportDeclaration(t,r,n,o,i,a,t.assertClause)),t),e.createJSDocParamTag=e.Debug.deprecate(((t,r,n,i)=>e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)),t),e.createComma=e.Debug.deprecate(((t,r)=>e.factory.createComma(t,r)),t),e.createLessThan=e.Debug.deprecate(((t,r)=>e.factory.createLessThan(t,r)),t),e.createAssignment=e.Debug.deprecate(((t,r)=>e.factory.createAssignment(t,r)),t),e.createStrictEquality=e.Debug.deprecate(((t,r)=>e.factory.createStrictEquality(t,r)),t),e.createStrictInequality=e.Debug.deprecate(((t,r)=>e.factory.createStrictInequality(t,r)),t),e.createAdd=e.Debug.deprecate(((t,r)=>e.factory.createAdd(t,r)),t),e.createSubtract=e.Debug.deprecate(((t,r)=>e.factory.createSubtract(t,r)),t),e.createLogicalAnd=e.Debug.deprecate(((t,r)=>e.factory.createLogicalAnd(t,r)),t),e.createLogicalOr=e.Debug.deprecate(((t,r)=>e.factory.createLogicalOr(t,r)),t),e.createPostfixIncrement=e.Debug.deprecate((t=>e.factory.createPostfixIncrement(t)),t),e.createLogicalNot=e.Debug.deprecate((t=>e.factory.createLogicalNot(t)),t),e.createNode=e.Debug.deprecate(((t,r,n)=>(void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(303===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n))),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((t=>{var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate((e=>210===e.kind),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((t=>e.isMemberName(t)),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(Fl);const Ul=async(e,t,r)=>{if(!r.minify&&"es5"!==r.sourceTarget||""===r.input)return{output:r.input,diagnostics:[],sourceMap:r.sourceMap};const n="debug"===e.logLevel,i=await t.cache.createKey("optimizeModule","terser5.6.1_7",r,n),a=await t.cache.get(i);if(null!=a){const e=await t.cache.get(i+"Map");return{output:a,diagnostics:[],sourceMap:e?JSON.parse(e):null}}let o,s=r.input;if(r.isCore&&(s=s.replace(/\/\* IS_ESM_BUILD \*\//g,"&& false /* IS_SYSTEM_JS_BUILD */")),"es5"===r.sourceTarget||r.minify){o=Vl(e,r.sourceTarget,n),e.sourceMap&&(o.sourceMap={content:r.sourceMap});const t=o.compress,i=o.mangle;"es5"!==r.sourceTarget&&r.isCore&&(n||(t.passes=2,t.global_defs={supportsListenerOptions:!0,"plt.$cssShim$":!1},t.pure_funcs=t.pure_funcs||[],t.pure_funcs=["getHostRef",...t.pure_funcs]),i.properties={regex:"^\\$.+\\$$",debug:n},t.inline=1,t.unsafe=!0,t.unsafe_undefined=!0)}const c="es5"===r.sourceTarget,l=await t.worker.prepareModule(s,o,c,r.inlineHelpers);return null!=l&&"string"==typeof l.output&&0===l.diagnostics.length&&null!=t&&(r.isCore&&(l.output=l.output.replace(/disconnectedCallback\(\)\{\},/g,"")),await t.cache.put(i,l.output),l.sourceMap&&await t.cache.put(i+"Map",JSON.stringify(l.sourceMap))),l},Vl=(e,t,r)=>{const n={ie8:!1,safari10:!!e.extras.safari10,format:{},sourceMap:e.sourceMap};return"es5"===t?(n.ecma=n.format.ecma=5,n.compress=!1,n.mangle=!0):(n.mangle={properties:{regex:"^\\$.+\\$$"}},n.compress={pure_getters:!0,keep_fargs:!1,passes:2},n.ecma=n.format.ecma=n.compress.ecma=2018,n.toplevel=!0,n.module=!0,n.mangle.toplevel=!0,n.compress.arrows=!0,n.compress.module=!0,n.compress.toplevel=!0),r&&(n.mangle={keep_fnames:!0},n.compress={},n.compress.drop_console=!1,n.compress.drop_debugger=!1,n.compress.pure_funcs=[],n.format.beautify=!0,n.format.indent_level=2,n.format.comments="all"),n},zl=async(e,t,r,n)=>{var i;const a={output:e,diagnostics:[],sourceMap:null};if(r){const r=Fl.transpileModule(e,{fileName:"module.ts",compilerOptions:{sourceMap:!!t.sourceMap,allowJs:!0,target:Fl.ScriptTarget.ES5,module:Fl.ModuleKind.ESNext,removeComments:!1,isolatedModules:!0,skipLibCheck:!0,noEmitHelpers:!n,importHelpers:!n},reportDiagnostics:!1});if(a.output=r.outputText,r.sourceMapText){const e=((e,t)=>{if(!e)return t;if(!t)return e;var r=new Nl(e),n=new Nl(t),i=new wl;return n.eachMapping((e=>{if(null!=e.originalLine){var t=r.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=t.source&&i.addMapping({original:{line:t.line,column:t.column},generated:{line:e.generatedLine,column:e.generatedColumn},source:t.source,name:t.name})}})),[r,n].forEach((e=>{e.sources.forEach((t=>{i._sources.add(t);var r=e.sourceContentFor(t);null!=r&&i.setSourceContent(t,r)}))})),i._sourceRoot=e.sourceRoot,i._file=e.file,JSON.parse(i.toString())})(null===(i=t.sourceMap)||void 0===i?void 0:i.content,JSON.parse(r.sourceMapText));t.sourceMap={content:e}}}return t?Cl(a.output,t):a},Kl=(e,t)=>"sc-"+e+(t&&t!==g?"-"+t:""),Wl=e=>{const t=We(e.dir,e.buildDir);return Ve("/",t)+"/"},Hl=(e,t)=>{const r=Array.from(e.querySelectorAll("link[rel=modulepreload]")).map((e=>e.getAttribute("href"))),n=t.filter((e=>!r.includes(e))).map((t=>Jl(e,t))),i=e.head,a=i.querySelector("script");if(a)for(const e of n)i.insertBefore(e,a);else for(const e of n)i.appendChild(e)},Jl=(e,t)=>{const r=e.createElement("link");return r.setAttribute("rel","modulepreload"),r.setAttribute("href",t),r},$l=async e=>{const t={output:e.input,diagnostics:[],sourceMap:null};try{const r=!!e.pretty,n={extras:{safari10:!0}},i="es5"===e.target?"es5":"latest",a=Vl(n,i,r),o=await Cl(e.input,a);o.diagnostics.length>0?t.diagnostics.push(...o.diagnostics):(t.output=o.output,t.sourceMap=o.sourceMap)}catch(e){ne(t.diagnostics,e)}return t},Gl=async(e,t)=>{const r=Array.from(e.querySelectorAll("script")).filter((e=>{if(e.hasAttribute("src")||e.hasAttribute(au))return!1;const t=e.getAttribute("type");return"string"!=typeof t||"module"===t||"text/javascript"===t}));0!==r.length&&await Promise.all(r.map((async e=>{const r=e.innerHTML.trim();if(r.length>0){const n={input:r,sourceMap:!1,target:"latest"};"module"!==e.getAttribute("type")&&(n.target="es5");const i=await $l(n);0===i.diagnostics.length&&(e.innerHTML=i.output),t&&e.setAttribute(au,"")}})))},ql=async(e,t,r,n,i)=>{const a=Array.from(r.querySelectorAll("style")).filter((e=>!e.hasAttribute(au)));await Promise.all(a.map((async r=>{const a=r.innerHTML.trim();if(a.length>0){const o=await vn({input:a,minify:!0,async resolveUrl(r){const i=new URL(r,n),a=await iu(e,t,i);return i.searchParams.append("v",a),i.pathname+i.search}});0===o.diagnostics.length&&(r.innerHTML=o.output),i&&r.setAttribute(au,"")}})))},Xl="\n(function(){\nvar s=document.querySelector('[data-stencil-namespace=\"__NAMESPACE__\"]');\ns&&((s['data-opts']=s['data-opts']||{}).exclude=__EXCLUDE__);\n})();\n".replace(/\n/g,"").trim(),Yl=e=>{const t=e.querySelectorAll('link[rel="modulepreload"]');for(let e=t.length-1;e>=0;e--){const r=t[e].getAttribute("href");r&&r.includes("/p-")&&t[e].remove()}},Ql=e=>{const t=e.querySelectorAll("script[data-stencil]");for(let e=t.length-1;e>=0;e--)t[e].remove()},Zl=async(e,t,r,n,i,a,o)=>{const s=Array.from(n.querySelectorAll(a));for(const n of s)for(const a of o){const o=tu(a,n.getAttribute(a));for(const s of o){const o=new URL(s.src,i);if(o.hostname===i.hostname&&"querystring"===t.hashAssets&&!o.searchParams.has("v"))try{const t=await iu(e,r,o);if(K(t)){o.searchParams.append("v",t);const e=ru(o,s.descriptor);n.setAttribute(a,e)}}catch(e){}}}},eu=async(e,t,r,n,i,a)=>{const o=a[0],s=a[1];if(K(o)){if(s&&("img"===o||"source"===o))for(const i of["src","srcset"]){const a=tu(i,s[i]);for(const o of a){const a=new URL(o.src,n);if(a.hostname===n.hostname&&"querystring"===t.hashAssets&&!a.searchParams.has("v"))try{const t=await iu(e,r,a);if(K(t)){a.searchParams.append("v",t);const e=ru(a,o.descriptor);s[i]=e}}catch(e){}}}for(let o=2,s=a.length;o<s;o++)Array.isArray(a[o])&&await eu(e,t,r,n,i,a[o])}},tu=(e,t)=>{const r=[];return K(t)&&("srcset"===e.toLowerCase()?t.split(",").map((e=>e.trim())).filter((e=>e.length>0)).forEach((e=>{const t=e.split(" ");t[0].length>0&&r.push({src:t[0],descriptor:t[1]})})):r.push({src:t})),r},ru=(e,t)=>{let r=e.pathname+e.search;return K(t)&&(r+=" "+t),r},nu=new Map,iu=async(e,t,r)=>{let n=nu.get(r.pathname);if(!n){const i=Ve(t,r.pathname);n=e.generateFileHash(i,10),nu.set(r.pathname,n)}return n},au="data-m",ou=(e,t,r,n,i)=>{if(!Array.isArray(i)||0===i.length)return[];const a=r.pathname.split("/");return i.filter((r=>{if("function"==typeof e.filterAnchor)try{if(!1===e.filterAnchor(r,n))return!1}catch(e){return ne(t,e),!1}return su(t,r)})).map((r=>{if("function"==typeof e.normalizeUrl)try{const i=e.normalizeUrl(r.href,n);return cu(t,i.href,n)}catch(e){ne(t,e)}return cu(t,r.href,n)})).filter((r=>{if("function"==typeof e.filterUrl)try{if(!1===e.filterUrl(r,n))return!1}catch(e){return ne(t,e),!1}return lu(t,r,n,a)})).map((r=>uu(e,t,r))).reduce(((e,t)=>(e.includes(t)||e.push(t),e)),[]).sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?-1:r>n?1:e<t?-1:e>t?1:0}))},su=(e,t,r)=>{try{let e=t.href;if("string"==typeof t.download)return!1;if("string"==typeof e&&(e=e.trim(),""!==e&&!e.startsWith("#")&&!e.startsWith("?")))return"string"!=typeof t.target||"_self"===t.target.trim().toLowerCase()}catch(t){ne(e,t)}return!1},cu=(e,t,r)=>{if("string"==typeof t)try{const e=new URL(t,r.href);e.protocol=r.href,e.hash="",e.search="";const n=e.pathname.split("/"),i=n[n.length-1];return"index.html"!==i&&"index.htm"!==i||(n.pop(),e.pathname=n.join("/")),e}catch(t){ne(e,t)}return null},lu=(e,t,r,n)=>{try{if(null!=t.hostname&&null!=r.hostname&&t.hostname!==r.hostname)return!1;if(du(t.pathname))return!1;const e=t.pathname.split("/");if(e.length<n.length)return!1;for(let t=0;t<n.length;t++){const r=n[t],i=e[t];if(n.length-1===t&&""===r)break;if(r!==i)return!1}return!0}catch(t){ne(e,t)}return!1},uu=(e,t,r)=>{try{if(null!=r&&"string"==typeof r.href){let t=r.href.trim();if(e.trailingSlash){if(!t.endsWith("/")){const e=r.pathname.split("/");e[e.length-1].includes(".")||(t+="/")}}else t.endsWith("/")&&"/"!==r.pathname&&(t=t.slice(0,-1));return t}}catch(e){ne(t,e)}return null},du=e=>_u.has(pu(e).toLowerCase()),pu=e=>{const t=e.split(".");return t[t.length-1].toLowerCase()},_u=new Set(["zip","rar","tar","gz","bz2","png","jpeg","jpg","gif","pdf","tiff","psd"]),fu={buildId:null,componentGraph:null,prerenderConfig:null,ensuredDirs:null,templateHtml:null,hashedFile:null},mu=e=>(e.buildId!==fu.buildId&&(fu.buildId=e.buildId,fu.componentGraph=null,fu.prerenderConfig=null,fu.ensuredDirs=new Set,fu.templateHtml=null,fu.hashedFile=new Set),fu),gu=(e,t,r)=>{const n=t.href,i={url:n,addModulePreloads:!0,approximateLineWidth:100,hashAssets:"querystring",inlineExternalStyleSheets:!1,minifyScriptElements:!0,minifyStyleElements:!0,removeAttributeQuotes:!0,removeBooleanAttributeQuotes:!0,removeEmptyAttributes:!0,removeHtmlComments:!0};if(null===e.canonicalUrl||!1===e.canonicalUrl)i.canonicalUrl=null;else if("function"==typeof e.canonicalUrl)try{i.canonicalUrl=e.canonicalUrl(t)}catch(e){ne(r,e)}else i.canonicalUrl=n;if("function"==typeof e.hydrateOptions)try{const r=e.hydrateOptions(t);null!=r&&(r.prettyHtml&&"boolean"!=typeof r.removeAttributeQuotes&&(i.removeAttributeQuotes=!1),Object.assign(i,r))}catch(e){ne(r,e)}return i},hu=e=>{const t={module:void 0,id:e,diagnostics:[]};if(c)try{const r=require("fs"),n=require("path");t.id=n.resolve(e),delete require.cache[t.id],require.extensions[".ts"]=(e,n)=>{let i=r.readFileSync(n,"utf8");if(n.endsWith(".ts")){const e=Fl.transpileModule(i,{fileName:n,compilerOptions:{module:Fl.ModuleKind.CommonJS,moduleResolution:Fl.ModuleResolutionKind.NodeJs,esModuleInterop:!0,target:Fl.ScriptTarget.ES2017,allowJs:!0}});i=e.outputText,t.diagnostics.push(...e.diagnostics.map(De))}else i=i.replace(/export\s+\w+\s+(\w+)/gm,"exports.$1");try{e._compile(i,n)}catch(e){ne(t.diagnostics,e)}},t.module=require(t.id),require.extensions[".ts"]=void 0}catch(e){ne(t.diagnostics,e)}return t},yu=(e,t)=>{const r={};if(K(t)){const n=hu(t);e.push(...n.diagnostics),null!=n.module&&"object"==typeof n.module&&(null!=n.module.config&&"object"==typeof n.module.config?Object.assign(r,n.module.config):Object.assign(r,n.module))}return r},vu=(e,t,r)=>{if(null!=r){if(null==t.componentGraph){const n=JSON.parse(e.readFileSync(r));t.componentGraph=new Map(Object.entries(n))}return t.componentGraph}},bu=(e,t,r)=>{const n=[];for(;"string"==typeof(r=pe(e.platformPath.dirname(r)))&&r.length>0&&!$(r);)n.push(r);n.reverse();for(let r=0;r<n.length;r++){const i=n[r];t.ensuredDirs.has(i)||(t.ensuredDirs.add(i),e.createDirSync(i))}};function xu(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=31&e;(e>>>=5)>0&&(r|=32),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[r]}while(e>0);return t}var Eu=function e(t){this.bits=t instanceof e?t.bits.slice():[]};Eu.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},Eu.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var Su=function(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};Su.prototype.appendLeft=function(e){this.outro+=e},Su.prototype.appendRight=function(e){this.intro=this.intro+e},Su.prototype.clone=function(){var e=new Su(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},Su.prototype.contains=function(e){return this.start<e&&e<this.end},Su.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},Su.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},Su.prototype.edit=function(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},Su.prototype.prependLeft=function(e){this.outro=e+this.outro},Su.prototype.prependRight=function(e){this.intro=e+this.intro},Su.prototype.split=function(e){var t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;var i=new Su(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},Su.prototype.toString=function(){return this.intro+this.content+this.outro},Su.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},Su.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var Du=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?Du=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t&&(Du=e=>t.from(e,"utf-8").toString("base64"));var Tu=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=(e=>{for(var t=0,r=0,n=0,i=0,a="",o=0;o<e.length;o++){var s=e[o];if(o>0&&(a+=";"),0!==s.length){for(var c=0,l=[],u=0,d=s;u<d.length;u++){var p=d[u],_=xu(p[0]-c);c=p[0],p.length>1&&(_+=xu(p[1]-t)+xu(p[2]-r)+xu(p[3]-n),t=p[1],r=p[2],n=p[3]),5===p.length&&(_+=xu(p[4]-i),i=p[4]),l.push(_)}a+=l.join(",")}}return a})(e.mappings)};function Cu(e){var t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";var i=n.reduce(((e,t)=>{var r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function ku(e,t){var r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}Tu.prototype.toString=function(){return JSON.stringify(this)},Tu.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+Du(this.toString())};var Au=Object.prototype.toString;function Nu(e){for(var t=e.split("\n"),r=[],n=0,i=0;n<t.length;n++)r.push(i),i+=t[n].length+1;return e=>{for(var t=0,n=r.length;t<n;){var i=t+n>>1;e<r[i]?n=i:t=i+1}var a=t-1;return{line:a,column:e-r[a]}}}var wu=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};wu.prototype.addEdit=function(e,t,r,n){if(t.length){var i=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&i.push(n),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},wu.prototype.addUneditedChunk=function(e,t,r,n,i){for(var a=t.start,o=!0;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null},wu.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var r=0;r<t.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var Fu="\n",Pu={insertLeft:!1,insertRight:!1,storeName:!1},Iu=function(e,t){void 0===t&&(t={});var r=new Su(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Eu},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:Cu(e)}}),this.byStart[0]=r,this.byEnd[e.length]=r};function Ou(e,t){if("string"!=typeof t)return;let r;for(;(r=t.indexOf(Ru))>-1;){const n=(t=t.substring(r+Ru.length)).indexOf(Lu);if(-1===n)break;Mu(e,t.substring(0,n)),t=t.substring(n+Lu.length)}}function Mu(e,t){const r=t.split(/\r?\n/).map((e=>{for(e=e.trim();e.startsWith("*");)e=e.substring(1).trim();return e}));for(t=r.join(" ").replace(/\t/g," ").trim();t.includes(" ");)t=t.replace(" "," ");return t.split(Bu).forEach((t=>{const r=t.trim();if(!r.startsWith("--"))return;const n=r.split(":"),i={name:n[0].trim(),docs:(n.shift()&&n.join(":")).trim(),annotation:"prop"};e.some((e=>e.name===i.name&&"prop"===e.annotation))||e.push(i)})),e}Iu.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},Iu.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},Iu.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this},Iu.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this},Iu.prototype.clone=function(){for(var e=new Iu(this.original,{filename:this.filename}),t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;var n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new Eu(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},Iu.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var r=Object.keys(this.storedNames),n=new wu(e.hires),i=Nu(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{var a=i(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,a,e.storeName?r.indexOf(e.original):-1):n.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?ku(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:r,mappings:n.raw}},Iu.prototype.generateMap=function(e){return new Tu(this.generateDecodedMap(e))},Iu.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},Iu.prototype.indent=function(e,t){var r,n=/^[^\r\n]/gm;if(r=e,"[object Object]"===Au.call(r)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(var t=e[0];t<e[1];t+=1)i[t]=!0}));var a=!1!==t.indentStart,o=t=>a?""+e+t:(a=!0,t);this.intro=this.intro.replace(n,o);for(var s=0,c=this.firstChunk;c;){var l=c.end;if(c.edited)i[s]||(c.content=c.content.replace(n,o),c.content.length&&(a="\n"===c.content[c.content.length-1]));else for(s=c.start;s<l;){if(!i[s]){var u=this.original[s];"\n"===u?a=!0:"\r"!==u&&a&&(a=!1,s===c.start?c.prependRight(e):(this._splitChunk(c,s),(c=c.next).prependRight(e)))}s+=1}s=c.end,c=c.next}return this.outro=this.outro.replace(n,o),this},Iu.prototype.insert=()=>{throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},Iu.prototype.insertLeft=function(e,t){return Pu.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Pu.insertLeft=!0),this.appendLeft(e,t)},Iu.prototype.insertRight=function(e,t){return Pu.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Pu.insertRight=!0),this.prependRight(e,t)},Iu.prototype.move=function(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);var n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;var c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this},Iu.prototype.overwrite=function(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(Pu.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Pu.storeName=!0),n={storeName:!0});var i=void 0!==n&&n.storeName,a=void 0!==n&&n.contentOnly;if(i){var o=this.original.slice(e,t);this.storedNames[o]=!0}var s=this.byStart[e],c=this.byEnd[t];if(s){if(t>s.end&&s.next!==this.byStart[s.end])throw new Error("Cannot overwrite across a split point");if(s.edit(r,i,a),s!==c){for(var l=s.next;l!==c;)l.edit("",!1),l=l.next;l.edit("",!1)}}else{var u=new Su(e,t,"").edit(r,i);c.next=u,u.previous=c}return this},Iu.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},Iu.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this},Iu.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this},Iu.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var r=this.byStart[e];r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this},Iu.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},Iu.prototype.lastLine=function(){var e=this.outro.lastIndexOf(Fu);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(-1!==(e=r.outro.lastIndexOf(Fu)))return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(-1!==(e=r.content.lastIndexOf(Fu)))return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(-1!==(e=r.intro.lastIndexOf(Fu)))return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return-1!==(e=this.intro.lastIndexOf(Fu))?this.intro.substr(e+1)+t:this.intro+t},Iu.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var r="",n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=n;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);var a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r},Iu.prototype.snip=function(e,t){var r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r},Iu.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,r=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}},Iu.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var r=Nu(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+e.original+'")')}var n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0},Iu.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},Iu.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},Iu.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},Iu.prototype.trimLines=function(){return this.trim("[\\r\\n]")},Iu.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},Iu.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.lastChunk;do{var n=r.end,i=r.trimEnd(t);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1},Iu.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},Iu.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.firstChunk;do{var n=r.end,i=r.trimStart(t);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1},Iu.prototype.trimStart=function(e){return this.trimStartAborted(e),this};const Ru="/**",Lu="*/",Bu="@prop",ju="-shadowcsshost",Uu=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Vu=new RegExp("(-shadowcsshost"+Uu,"gim"),zu=new RegExp("(-shadowcsscontext"+Uu,"gim"),Ku=new RegExp("(-shadowcssslotted"+Uu,"gim"),Wu="-shadowcsshost-no-combinator",Hu=/-shadowcsshost-no-combinator([^\s]*)/,Ju=[/::shadow/g,/::content/g],$u=/-shadowcsshost/gim,Gu=/:host/gim,qu=/::slotted/gim,Xu=/:host-context/gim,Yu=/\/\*\s*[\s\S]*?\*\//g,Qu=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,Zu=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,ed=/([{}])/g,td=/(^.*?[^\\])??((:+)(.*)|$)/,rd="%BLOCK%",nd=(e,t)=>{const r=id(e);let n=0;return r.escapedString.replace(Zu,((...e)=>{const i=e[2];let a="",o=e[4],s="";o&&o.startsWith("{%BLOCK%")&&(a=r.blocks[n++],o=o.substring(rd.length+1),s="{");const c=t({selector:i,content:a});return`${e[1]}${c.selector}${e[3]}${s}${c.content}${o}`}))},id=e=>{const t=e.split(ed),r=[],n=[];let i=0,a=[];for(let e=0;e<t.length;e++){const o=t[e];"}"===o&&i--,i>0?a.push(o):(a.length>0&&(n.push(a.join("")),r.push(rd),a=[]),r.push(o)),"{"===o&&i++}return a.length>0&&(n.push(a.join("")),r.push(rd)),{escapedString:r.join(""),blocks:n}},ad=(e,t,r)=>e.replace(t,((...e)=>{if(e[2]){const t=e[2].split(","),n=[];for(let i=0;i<t.length;i++){const a=t[i].trim();if(!a)break;n.push(r(Wu,a,e[3]))}return n.join(",")}return Wu+e[3]})),od=(e,t,r)=>e+t.replace(ju,"")+r,sd=(e,t,r)=>t.indexOf(ju)>-1?od(e,t,r):e+t+r+", "+t+" "+e+r,cd=(e,t)=>e.replace(td,((e,r="",n,i="",a="")=>r+t+i+a)),ld=(e,t,r,n,i)=>nd(e,(e=>{let i=e.selector,a=e.content;return"@"!==e.selector[0]?i=((e,t,r,n)=>e.split(",").map((e=>n&&e.indexOf("."+n)>-1?e.trim():((e,t)=>!(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t).test(e))(e,t)?((e,t,r)=>{const n="."+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0]))),i=e=>{let i=e.trim();if(!i)return"";if(e.indexOf(Wu)>-1)i=((e,t,r)=>{if($u.lastIndex=0,$u.test(e)){const t=`.${r}`;return e.replace(Hu,((e,r)=>cd(r,t))).replace($u,t+" ")}return t+" "+e})(e,t,r);else{const t=e.replace($u,"");t.length>0&&(i=cd(t,n))}return i},a=(e=>{const t=[];let r,n=0;return r=(e=e.replace(/(\[[^\]]*\])/g,((e,r)=>{const i=`__ph-${n}__`;return t.push(r),n++,i}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,r,i)=>{const a=`__ph-${n}__`;return t.push(i),n++,r+a})),{content:r,placeholders:t}})(e);let o,s="",c=0;const l=/( |>|\+|~(?!=))\s*/g;let u=!((e=a.content).indexOf(Wu)>-1);for(;null!==(o=l.exec(e));){const t=o[1],r=e.slice(c,o.index).trim();u=u||r.indexOf(Wu)>-1,s+=`${u?i(r):r} ${t} `,c=l.lastIndex}const d=e.substring(c);return u=u||d.indexOf(Wu)>-1,s+=u?i(d):d,p=a.placeholders,s.replace(/__ph-(\d+)__/g,((e,t)=>p[+t]));var p})(e,t,r).trim():e.trim())).join(", "))(e.selector,t,r,n):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(a=ld(e.content,t,r,n)),{selector:i.replace(/\s{2,}/g," ").trim(),content:a}})),ud=(e,t,r)=>{const n=t+"-h",i=t+"-s",a=e.match(Qu)||[];e=e.replace(Yu,"");const o=[];if(r){const t=e=>{const t=`/*!@___${o.length}___*/`,r=`/*!@${e.selector}*/`;return o.push({placeholder:t,comment:r}),e.selector=t+e.selector,e};e=nd(e,(e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=nd(e.content,t),e):e))}const s=((e,t,r,n,i)=>{const a=((e,t)=>{const r="."+t+" > ",n=[];return e=e.replace(Ku,((...e)=>{if(e[2]){const t=e[2].trim(),i=e[3],a=r+t+i;let o="";for(let t=e[4]-1;t>=0;t--){const r=e[5][t];if("}"===r||","===r)break;o=r+o}const s=o+a,c=`${o.trimRight()}${a.trim()}`;if(s.trim()!==c.trim()){const e=`${c}, ${s}`;n.push({orgSelector:s,updatedSelector:e})}return a}return Wu+e[3]})),{selectors:n,cssText:e}})(e=(e=>ad(e,zu,sd))(e=(e=>ad(e,Vu,od))(e=e.replace(Xu,"-shadowcsscontext").replace(Gu,ju).replace(qu,"-shadowcssslotted"))),n);return e=(e=>Ju.reduce(((e,t)=>e.replace(t," ")),e))(e=a.cssText),t&&(e=ld(e,t,r,n)),{cssText:(e=(e=e.replace(/-shadowcsshost-no-combinator/g,`.${r}`)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:a.selectors}})(e,t,n,i);return e=[s.cssText,...a].join("\n"),r&&o.forEach((({placeholder:t,comment:r})=>{e=e.replace(t,r)})),s.slottedSelectors.forEach((t=>{e=e.replace(t.orgSelector,t.updatedSelector)})),e},dd=(e,t)=>{let r=e.importeePath;if(K(r)&&(K(e.importerPath)&&Ue(e.importeePath)&&(r=We(Be(e.importerPath),e.importeePath)),r=pe(r),r.startsWith(".")||(r="./"+r),"queryparams"===t||void 0===t)){const t={};K(e.tag)&&(t.tag=e.tag),K(e.mode)&&e.mode!==g&&(t.mode=e.mode),K(e.encapsulation)&&"none"!==e.encapsulation&&(t.encapsulation=e.encapsulation);const n=Object.entries(t);n.length>0&&(r+="?"+new URLSearchParams(n).toString())}return r},pd=e=>{const t={importPath:e,basename:null,ext:null,data:null};if(K(e)){const r=e.split("?");t.basename=Le(r[0].trim());const n=t.basename.toLowerCase().split(".");if(n.length>1&&(t.ext=n[n.length-1],"ts"===t.ext&&"d"===n[n.length-2]&&(t.ext="d.ts")),r.length>1){const e=r[1],n=new URLSearchParams(e),i=n.get("tag");null!=i&&(t.data={tag:i,encapsulation:n.get("encapsulation")||"none",mode:n.get("mode")||g})}else t.basename.endsWith(".css")&&(t.data={encapsulation:"none"})}return t},_d=e=>{let t=null,r="",n="";for(let i=0;i<e.length;i++)if(r=e[i],"\\"!==e[i-1]&&('"'!==r&&"'"!==r||(t===r?t=null:t||(t=r))),t||"/"!==r||"*"!==e[i+1])n+=r;else{let t=i+2;for(;t<e.length&&("*"!==e[t]||"/"!==e[t+1]);t++);i=t+1}return n},fd=async e=>{const t=md(e),r=await vn({autoprefixer:e.autoprefixer,input:t.styleText,filePath:e.file,minify:!0,sourceMap:e.sourceMap});return t.diagnostics.push(...r.diagnostics),ie(r.diagnostics)?t:(t.styleText=r.output,gd(e,t))},md=e=>{const t={styleText:e.input,output:"",map:null,diagnostics:[],imports:[],defaultVarName:xd(e.file,e.mode),styleDocs:[]};e.docs&&Ou(t.styleDocs,e.input);try{const r=new Set([t.defaultVarName]);if(K(e.tag)&&("scoped"===e.encapsulation||"shadow"===e.encapsulation&&e.commentOriginalSelector)){const r=Kl(e.tag,e.mode);t.styleText=ud(t.styleText,r,e.commentOriginalSelector)}hd(r,t.styleText,e.file,e.mode).forEach((r=>{t.styleText=t.styleText.replace(r.srcImportText,"");const n=dd({importeePath:r.filePath,importerPath:e.file,tag:e.tag,encapsulation:e.encapsulation,mode:e.mode},e.styleImportData);t.imports.push({varName:r.varName,importPath:n})}))}catch(e){ne(t.diagnostics,e)}return t},gd=(e,t)=>{const r=new Iu("");return"cjs"===e.module?(t.imports.forEach((e=>{r.append(`const ${e.varName} = require('${e.importPath}');\n`)})),r.append(`const ${t.defaultVarName} = `),t.imports.forEach((e=>{r.append(`${e.varName} + `)})),r.append(`${JSON.stringify(t.styleText)};\n`),r.append(`module.exports = ${t.defaultVarName};`)):(t.imports.forEach((e=>{r.append(`import ${e.varName} from '${e.importPath}';\n`)})),r.append(`const ${t.defaultVarName} = `),t.imports.forEach((e=>{r.append(`${e.varName} + `)})),r.append(`${JSON.stringify(t.styleText)};\n`),r.append(`export default ${t.defaultVarName};`)),t.output=r.toString(),t},hd=(e,t,r,n)=>{const i=[];if(!t.includes("@import"))return i;t=_d(t);const a=Xe.dirname(r);let o;for(;o=yd.exec(t);){const t={srcImportText:o[0],url:o[4].replace(/[\"\'\)]/g,""),filePath:null,varName:null};bd(t.srcImportText)&&(vd(t.url)||(Xe.isAbsolute(t.url)?t.filePath=pe(t.url):t.filePath=pe(Xe.resolve(a,t.url)),t.varName=xd(t.filePath,n),e.has(t.varName)&&(t.varName+=e.size),e.add(t.varName),i.push(t)))}return i},yd=/(@import)\s+(url\()?\s?(.*?)\s?\)?([^;]*);?/gi,vd=e=>e.startsWith("~"),bd=e=>!(e=e.toLowerCase()).includes("url(")||!(e=(e=(e=e.replace(/\"/g,"")).replace(/\'/g,"")).replace(/\s/g,"")).includes("url(http")&&!e.includes("url(//"),xd=(e,t)=>{let r=Xe.basename(e);return t&&t!==g&&!r.includes(t)&&(r=t+"-"+r),ke(r)},Ed=e=>({transformCssToEsm:fd,prepareModule:zl,optimizeCss:vn,prerenderWorker:t=>(async(e,t)=>{const r={diagnostics:[],anchorUrls:[],filePath:t.writeToFilePath};try{const n=mu(t),i=new URL(t.url,t.devServerHostUrl),a=new URL(t.baseUrl),o=vu(e,n,t.componentGraphPath),s=f(t.hydrateAppFilePath);null==n.templateHtml&&(n.templateHtml=e.readFileSync(t.templateId));const c=s.createWindowFromHtml(n.templateHtml,t.templateId),l=c.document;c.location.href=i.href,U(e.applyPrerenderGlobalPatch)&&e.applyPrerenderGlobalPatch({devServerHostUrl:t.devServerHostUrl,window:c}),null==n.prerenderConfig&&(n.prerenderConfig=yu(r.diagnostics,t.prerenderConfigPath));const u=n.prerenderConfig,d=gu(u,i,r.diagnostics);if((t.staticSite||d.staticDocument)&&(d.addModulePreloads=!1,d.clientHydrateAnnotations=!1),"string"!=typeof d.buildId&&(d.buildId=t.buildId),"function"==typeof u.beforeHydrate)try{const e=u.beforeHydrate(l,i);H(e)&&await e}catch(e){ne(r.diagnostics,e)}const p=await s.hydrateDocument(l,d);if(r.diagnostics.push(...p.diagnostics),"function"==typeof u.filePath)try{const e=u.filePath(i,r.filePath);"string"==typeof e&&(r.filePath=e)}catch(e){ne(r.diagnostics,e)}d.staticDocument?(Ql(l),Yl(l)):(Array.isArray(d.staticComponents)&&((e,t,r)=>{const n=t.staticComponents.filter((e=>r.components.some((t=>t.tag===e))));if(n.length>0){const t=e.querySelector("script[data-stencil-namespace]");if(t){const r=t.getAttribute("data-stencil-namespace");let i=Xl.replace("__NAMESPACE__",r);i=i.replace("__EXCLUDE__",JSON.stringify(n));const a=e.createElement("script");a.innerHTML=i,a.setAttribute(au,""),t.parentNode.insertBefore(a,t.nextSibling)}}})(l,d,p),d.addModulePreloads?t.isDebug||((e,t,r,n)=>{if(!n)return!1;const i=t.staticComponents||[],a=r.components.filter((e=>!i.includes(e.tag))),o=L(R(a.map((e=>Kl(e.tag,e.mode))).map((e=>n.get(e)||[]))));Hl(e,o)})(l,d,p,o):Yl(l));const _=[];if(d.minifyStyleElements&&!t.isDebug&&_.push(ql(e,t.appDir,l,i,!1)),d.minifyScriptElements&&!t.isDebug&&_.push(Gl(l,!1)),d.hashAssets&&!t.isDebug)try{_.push((async(e,t,r,n,i,a,o)=>{const s=Array.from(a.querySelectorAll("link[rel=stylesheet][href]"));for(const n of s){const a=n.getAttribute("href");if(K(a)&&a.length>0){const n=new URL(a,o);if(o.host===n.host)try{const r=Ve(i,n.pathname);if(t.hashedFile.has(r))continue;t.hashedFile.add(r);let a=await e.readFile(r);K(a)&&a.length>0&&(a=await hn({css:a,async resolveUrl(t){const r=new URL(t,n),a=await iu(e,i,r);return r.searchParams.append("v",a),r.pathname+r.search}}),e.writeFileSync(r,a))}catch(e){ne(r,e)}}}await Zl(e,n,i,a,o,'link[rel="stylesheet"]',["href"]),await Zl(e,n,i,a,o,'link[rel="prefetch"]',["href"]),await Zl(e,n,i,a,o,'link[rel="preload"]',["href"]),await Zl(e,n,i,a,o,'link[rel="modulepreload"]',["href"]),await Zl(e,n,i,a,o,'link[rel="icon"]',["href"]),await Zl(e,n,i,a,o,'link[rel="apple-touch-icon"]',["href"]),await Zl(e,n,i,a,o,'link[rel="manifest"]',["href"]),await Zl(e,n,i,a,o,"script",["src"]),await Zl(e,n,i,a,o,"img",["src","srcset"]),await Zl(e,n,i,a,o,"picture > source",["srcset"]);const c=Array.from(a.querySelectorAll('script[data-stencil-static="page.state"][type="application/json"]'));c.length>0&&await Promise.all(c.map((async t=>{const r=JSON.parse(t.textContent);if(r&&Array.isArray(r.ast)){for(const a of r.ast)Array.isArray(a)&&await eu(e,n,i,o,t,a);t.textContent=JSON.stringify(r)}})))})(e,n,r.diagnostics,d,t.appDir,l,i))}catch(e){ne(r.diagnostics,e)}if(_.length>0&&await Promise.all(_),!1!==u.crawlUrls&&(r.anchorUrls=ou(u,r.diagnostics,a,i,p.anchors)),"function"==typeof u.afterHydrate)try{const e=u.afterHydrate(l,i,r);H(e)&&await e}catch(e){ne(r.diagnostics,e)}if("number"==typeof p.httpStatus&&p.httpStatus>=400){try{c.close()}catch(e){}return r}const m=s.serializeDocumentToString(l,d);bu(e,n,r.filePath);const g=e.writeFile(r.filePath,m);if(Array.isArray(p.staticData)&&p.staticData.length>0){const t=Be(r.filePath);await Promise.all(p.staticData.map((async r=>{if("application/json"===r.type){const n={[r.id]:JSON.parse(r.content),components:p.components.map((e=>e.tag))},i=`${r.id}.json`,a=Ve(t,i);await e.writeFile(a,JSON.stringify(n))}else{const n=`${r.id}.txt`,i=Ve(t,n);await e.writeFile(i,r.content)}})))}await g;try{c.close()}catch(e){}}catch(e){ne(r.diagnostics,e)}return r})(e,t)}),Sd=e=>{const t=Ed(e);return e=>{const r=e.args[0],n=e.args.slice(1),i=t[r];if("function"==typeof i)return i.apply(null,n)}};class Dd{constructor(e,t){this.config=e,this.cacheFs=t,this.failed=0,this.skip=!1,this.sys=e.sys,this.logger=e.logger}async initCacheDir(){if(!this.config._isTesting&&this.config.cacheDir){if(!this.config.enableCache||!this.cacheFs)return this.config.logger.info("cache optimizations disabled"),this.clearDiskCache(),void 0;this.config.logger.debug(`cache enabled, cacheDir: ${this.config.cacheDir}`);try{const e=Ve(this.config.cacheDir,"_README.log");await this.cacheFs.writeFile(e,Nd)}catch(e){this.logger.error(`Cache, initCacheDir: ${e}`),this.config.enableCache=!1}}}async get(e){if(!this.config.enableCache||this.skip)return null;if(this.failed>=Td)return this.skip||(this.skip=!0,this.logger.debug(`cache had ${this.failed} failed ops, skip disk ops for remander of build`)),null;let t;try{t=await this.cacheFs.readFile(this.getCacheFilePath(e)),this.failed=0,this.skip=!1}catch(e){this.failed++,t=null}return t}async put(e,t){if(!this.config.enableCache)return!1;let r;try{await this.cacheFs.writeFile(this.getCacheFilePath(e),t),r=!0}catch(e){this.failed++,r=!1}return r}async has(e){return"string"==typeof await this.get(e)}async createKey(e,...t){return this.config.enableCache?e+"_"+await this.sys.generateContentHash(JSON.stringify(t),32):e+9999999*Math.random()}async commit(){this.config.enableCache&&(this.skip=!1,this.failed=0,await this.cacheFs.commit(),await this.clearExpiredCache())}clear(){null!=this.cacheFs&&this.cacheFs.clearCache()}async clearExpiredCache(){if(null==this.cacheFs||null==this.sys.cacheStorage)return;const e=Date.now(),t=await this.sys.cacheStorage.get(Ad);if(null!=t){if(e-t<Cd)return;const r=this.cacheFs.sys,n=await r.readDir(this.config.cacheDir),i=n.map((e=>Ve(this.config.cacheDir,e)));let a=0;const o=i.map((async t=>{const n=(await r.stat(t)).mtimeMs;e-n>kd&&(await r.removeFile(t),a++)}));await Promise.all(o),this.logger.debug(`clearExpiredCache, cachedFileNames: ${n.length}, totalCleared: ${a}`)}this.logger.debug("clearExpiredCache, set last clear"),await this.sys.cacheStorage.set(Ad,e)}async clearDiskCache(){null!=this.cacheFs&&await this.cacheFs.access(this.config.cacheDir)&&(await this.cacheFs.remove(this.config.cacheDir),await this.cacheFs.commit())}getCacheFilePath(e){return Ve(this.config.cacheDir,e)+".log"}getMemoryStats(){return null!=this.cacheFs?this.cacheFs.getMemoryStats():null}}const Td=100,Cd=864e5,kd=7*Cd,Ad="last_clear_expired_cache",Nd='# Stencil Cache Directory\n\nThis directory contains files which the compiler has\ncached for faster builds. To disable caching, please set\n"enableCache: false" within the stencil config.\n\nTo change the cache directory, please update the\n"cacheDir" property within the stencil config.\n';class wd{constructor(){this.version=2,this.activeBuildId=-1,this.activeFilesAdded=[],this.activeFilesDeleted=[],this.activeFilesUpdated=[],this.activeDirsAdded=[],this.activeDirsDeleted=[],this.addWatchDir=O,this.addWatchFile=O,this.cssModuleImports=new Map,this.changedFiles=new Set,this.changedModules=new Set,this.collections=[],this.compilerOptions=null,this.events=nt(),this.hasSuccessfulBuild=!1,this.isActivelyBuilding=!1,this.lastBuildResults=null,this.moduleMap=new Map,this.nodeMap=new WeakMap,this.resolvedCollections=new Set,this.rollupCache=new Map,this.rollupCacheHydrate=null,this.rollupCacheLazy=null,this.rollupCacheNative=null,this.styleModeNames=new Set,this.worker=null}reset(){this.cache.clear(),this.cssModuleImports.clear(),this.cachedGlobalStyle=null,this.collections.length=0,this.compilerOptions=null,this.hasSuccessfulBuild=!1,this.rollupCacheHydrate=null,this.rollupCacheLazy=null,this.rollupCacheNative=null,this.moduleMap.clear(),this.resolvedCollections.clear(),null!=this.fs&&this.fs.clearCache()}}const Fd=(e,t,r,n=!0)=>{let i=We(Be(e),Be(t));return n&&(""===i?i=".":"."!==i[0]&&(i="./"+i)),pe(`${i}/${Le(t,r)}`)},Pd=e=>Ve(e.typesDir,hp),Id=e=>e.type===tp,Od=e=>e.type===rp,Md=e=>e.type===np,Rd=e=>e.type===ip,Ld=e=>e.type===Zd,Bd=e=>e.type===sp,jd=e=>e.type===Qd,Ud=e=>e.type===cp,Vd=e=>e.type===lp,zd=e=>e.type===op,Kd=e=>e.type===ep,Wd=e=>e.type===pp||e.type===dp||e.type===up||e.type===_p,Hd=e=>e.type===pp,Jd=e=>e.type===dp,$d=e=>e.type===up,Gd=e=>e.type===_p,qd=e=>e.type===mp,Xd=e=>e.type===fp,Yd=e=>e.type===ap,Qd="angular",Zd="copy",ep="custom",tp="dist",rp="dist-collection",np="dist-custom-elements",ip="dist-custom-elements-bundle",ap="dist-types",op="dist-hydrate-script",sp="dist-lazy",cp="dist-lazy-loader",lp="dist-global-styles",up="docs-custom",dp="docs-json",pp="docs-readme",_p="docs-vscode",fp="stats",mp="www",gp=[mp,tp,rp,np,ip,sp,op,dp,pp,_p,up,Qd,Zd,ep,fp],hp="components.d.ts";var yp=Array.isArray||(e=>"[object Array]"===Object.prototype.toString.call(e)),vp=bp;function bp(e,t,r){e instanceof RegExp&&(e=xp(e,r)),t instanceof RegExp&&(t=xp(t,r));var n=Ep(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function xp(e,t){var r=t.match(e);return r?r[0]:null}function Ep(e,t,r){var n,i,a,o,s,c=r.indexOf(e),l=r.indexOf(t,c+1),u=c;if(c>=0&&l>0){for(n=[],a=r.length;u>=0&&!s;)u==c?(n.push(u),c=r.indexOf(e,u+1)):1==n.length?s=[n.pop(),l]:((i=n.pop())<a&&(a=i,o=l),l=r.indexOf(t,u+1)),u=c<l&&c>=0?c:l;n.length&&(s=[a,o])}return s}bp.range=Ep;var Sp="\0SLASH"+Math.random()+"\0",Dp="\0OPEN"+Math.random()+"\0",Tp="\0CLOSE"+Math.random()+"\0",Cp="\0COMMA"+Math.random()+"\0",kp="\0PERIOD"+Math.random()+"\0";function Ap(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Np(e){return e.split(Sp).join("\\").split(Dp).join("{").split(Tp).join("}").split(Cp).join(",").split(kp).join(".")}function wp(e){if(!e)return[""];var t=[],r=vp("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,a=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var s=wp(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function Fp(e){return"{"+e+"}"}function Pp(e){return/^-?0\d/.test(e)}function Ip(e,t){return e<=t}function Op(e,t){return e>=t}function Mp(e,t){var r=[],n=vp("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i,a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),s=a||o,c=n.body.indexOf(",")>=0;if(!s&&!c)return n.post.match(/,.*\}/)?Mp(e=n.pre+"{"+n.body+Tp+n.post):[e];if(s)i=n.body.split(/\.\./);else if(1===(i=wp(n.body)).length&&1===(i=Mp(i[0],!1).map(Fp)).length)return(d=n.post.length?Mp(n.post,!1):[""]).map((e=>n.pre+i[0]+e));var l,u=n.pre,d=n.post.length?Mp(n.post,!1):[""];if(s){var p=Ap(i[0]),_=Ap(i[1]),f=Math.max(i[0].length,i[1].length),m=3==i.length?Math.abs(Ap(i[2])):1,g=Ip;_<p&&(m*=-1,g=Op);var h=i.some(Pp);l=[];for(var y=p;g(y,_);y+=m){var v;if(o)"\\"===(v=String.fromCharCode(y))&&(v="");else if(v=String(y),h){var b=f-v.length;if(b>0){var x=new Array(b+1).join("0");v=y<0?"-"+x+v.slice(1):x+v}}l.push(v)}}else l=((e,t)=>{for(var r=[],n=0;n<e.length;n++){var i=Mp(e[n],!1);yp(i)?r.push.apply(r,i):r.push(i)}return r})(i);for(var E=0;E<l.length;E++)for(var S=0;S<d.length;S++){var D=u+l[E]+d[S];(!t||s||D)&&r.push(D)}return r}var Rp=Hp;Hp.Minimatch=Jp;var Lp={sep:"/"};try{Lp=nr}catch(e){}var Bp=Hp.GLOBSTAR=Jp.GLOBSTAR={},jp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Up="[^/]",Vp="[^/]*?",zp="().*{}+?[]^$\\!".split("").reduce(((e,t)=>(e[t]=!0,e)),{}),Kp=/\/+/;function Wp(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((e=>{r[e]=t[e]})),Object.keys(e).forEach((t=>{r[t]=e[t]})),r}function Hp(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Jp(t,r).match(e))}function Jp(e,t){if(!(this instanceof Jp))return new Jp(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==Lp.sep&&(e=e.split(Lp.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function $p(e,t){if(t||(t=this instanceof Jp?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),Mp((e=>e.split("\\\\").join(Sp).split("\\{").join(Dp).split("\\}").join(Tp).split("\\,").join(Cp).split("\\.").join(kp))(r),!0).map(Np)):[];var r}Hp.filter=(e,t)=>(t=t||{},(r,n,i)=>Hp(r,e,t)),Hp.defaults=e=>{if(!e||!Object.keys(e).length)return Hp;var t=Hp,r=(r,n,i)=>t.minimatch(r,n,Wp(e,i));return r.Minimatch=(r,n)=>new t.Minimatch(r,Wp(e,n)),r},Jp.defaults=e=>e&&Object.keys(e).length?Hp.defaults(e).Minimatch:Jp,Jp.prototype.debug=()=>{},Jp.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return this.comment=!0,void 0;if(!e)return this.empty=!0,void 0;this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,r),r=this.globParts=r.map((e=>e.split(Kp))),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,r),this.set=r}},Jp.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(!this.options.nonegate){for(var n=0,i=e.length;n<i&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}},Hp.braceExpand=(e,t)=>$p(e,t),Jp.prototype.braceExpand=$p,Jp.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return Bp;if(""===e)return"";var n,i="",a=!!r.nocase,o=!1,s=[],c=[],l=!1,u=-1,d=-1,p="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=this;function f(){if(n){switch(n){case"*":i+=Vp,a=!0;break;case"?":i+=Up,a=!0;break;default:i+="\\"+n}_.debug("clearStateChar %j %j",n,i),n=!1}}for(var m,g=0,h=e.length;g<h&&(m=e.charAt(g));g++)if(this.debug("%s\t%s %s %j",e,g,i,m),o&&zp[m])i+="\\"+m,o=!1;else switch(m){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,g,i,m),l){this.debug(" in class"),"!"===m&&g===d+1&&(m="^"),i+=m;continue}_.debug("call clearStateChar %j",n),f(),n=m,r.noext&&f();continue;case"(":if(l){i+="(";continue}if(!n){i+="\\(";continue}s.push({type:n,start:g-1,reStart:i.length,open:jp[n].open,close:jp[n].close}),i+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,i),n=!1;continue;case")":if(l||!s.length){i+="\\)";continue}f(),a=!0;var y=s.pop();i+=y.close,"!"===y.type&&c.push(y),y.reEnd=i.length;continue;case"|":if(l||!s.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),l){i+="\\"+m;continue}l=!0,d=g,u=i.length,i+=m;continue;case"]":if(g===d+1||!l){i+="\\"+m,o=!1;continue}if(l){var v=e.substring(d+1,g);try{RegExp("["+v+"]")}catch(e){var b=this.parse(v,Gp);i=i.substr(0,u)+"\\["+b[0]+"\\]",a=a||b[1],l=!1;continue}}a=!0,l=!1,i+=m;continue;default:f(),o?o=!1:!zp[m]||"^"===m&&l||(i+="\\"),i+=m}for(l&&(v=e.substr(d+1),b=this.parse(v,Gp),i=i.substr(0,u)+"\\["+b[0],a=a||b[1]),y=s.pop();y;y=s.pop()){var x=i.slice(y.reStart+y.open.length);this.debug("setting tail",i,y),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>(r||(r="\\"),t+t+r+"|"))),this.debug("tail=%j\n %s",x,x,y,i);var E="*"===y.type?Vp:"?"===y.type?Up:"\\"+y.type;a=!0,i=i.slice(0,y.reStart)+E+"\\("+x}f(),o&&(i+="\\\\");var S=!1;switch(i.charAt(0)){case".":case"[":case"(":S=!0}for(var D=c.length-1;D>-1;D--){var T=c[D],C=i.slice(0,T.reStart),k=i.slice(T.reStart,T.reEnd-8),A=i.slice(T.reEnd-8,T.reEnd),N=i.slice(T.reEnd);A+=N;var w=C.split("(").length-1,F=N;for(g=0;g<w;g++)F=F.replace(/\)[+*?]?/,"");var P="";""===(N=F)&&t!==Gp&&(P="$"),i=C+k+N+P+A}if(""!==i&&a&&(i="(?=.)"+i),S&&(i=p+i),t===Gp)return[i,a];if(!a)return(e=>e.replace(/\\(.)/g,"$1"))(e);var I=r.nocase?"i":"";try{var O=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return O._glob=e,O._src=i,O};var Gp={};Hp.makeRe=(e,t)=>new Jp(e,t||{}).makeRe(),Jp.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?Vp:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map((e=>e.map((e=>e===Bp?r:"string"==typeof e?(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(e):e._src)).join("\\/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},Hp.match=(e,t,r)=>{var n=new Jp(t,r=r||{});return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e},Jp.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==Lp.sep&&(e=e.split(Lp.sep).join("/")),e=e.split(Kp),this.debug(this.pattern,"split",e);var n,i,a=this.set;for(this.debug(this.pattern,"set",a),i=e.length-1;i>=0&&!(n=e[i]);i--);for(i=0;i<a.length;i++){var o=a[i],s=e;if(r.matchBase&&1===o.length&&(s=[n]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},Jp.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,o=e.length,s=t.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var c,l=t[a],u=e[i];if(this.debug(t,l,u),!1===l)return!1;if(l===Bp){this.debug("GLOBSTAR",[t,l,u]);var d=i,p=a+1;if(p===s){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;d<o;){var _=e[d];if(this.debug("\nglobstar while",e,d,t,p,_),this.matchOne(e.slice(d),t.slice(p),r))return this.debug("globstar found match!",d,o,_),!0;if("."===_||".."===_||!n.dot&&"."===_.charAt(0)){this.debug("dot detected!",e,d,t,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,p),d!==o))}if("string"==typeof l?(c=n.nocase?u.toLowerCase()===l.toLowerCase():u===l,this.debug("string match",l,u,c)):(c=u.match(l),this.debug("pattern match",l,u,c)),!c)return!1}if(i===o&&a===s)return!0;if(i===o)return r;if(a===s)return i===o-1&&""===e[i];throw new Error("wtf?")};const qp=(e,t,r,n,i)=>{n.includes(i)||n.push(i),r.has(i)||(r.add(i),e.reduce(((e,t)=>(t.localImports.forEach((r=>{let n=r;return n===i?(e.push(t.sourceFilePath),void 0):(n=r+".tsx",n===i?(e.push(t.sourceFilePath),void 0):(n=r+".ts",n===i?(e.push(t.sourceFilePath),void 0):(n=r+".js",n===i?(e.push(t.sourceFilePath),void 0):void 0)))})),e)),[]).forEach((e=>{t.push(e)})))},Xp=[".png",".jpg",".jpeg",".gif",".webp",".ico",".svg"];class Yp{constructor(e,t){this.buildId=-1,this.buildMessages=[],this.buildResults=null,this.bundleBuildCount=0,this.collections=[],this.completedTasks=[],this.components=[],this.componentGraph=new Map,this.data={},this.buildStats=void 0,this.diagnostics=[],this.dirsAdded=[],this.dirsDeleted=[],this.entryModules=[],this.filesAdded=[],this.filesChanged=[],this.filesDeleted=[],this.filesUpdated=[],this.filesWritten=[],this.globalStyle=void 0,this.hasConfigChanges=!1,this.hasFinished=!1,this.hasHtmlChanges=!1,this.hasPrintedResults=!1,this.hasServiceWorkerChanges=!1,this.hasScriptChanges=!0,this.hasStyleChanges=!0,this.hydrateAppFilePath=null,this.indexBuildCount=0,this.indexDoc=void 0,this.isRebuild=!1,this.moduleFiles=[],this.outputs=[],this.packageJson={},this.packageJsonFilePath=null,this.pendingCopyTasks=[],this.requiresFullBuild=!0,this.scriptsAdded=[],this.scriptsDeleted=[],this.startTime=Date.now(),this.styleBuildCount=0,this.stylesPromise=null,this.stylesUpdated=[],this.timeSpan=null,this.transpileBuildCount=0,this.config=e,this.compilerCtx=t,this.buildId=++this.compilerCtx.activeBuildId,this.debug=e.logger.debug.bind(e.logger)}start(){const e=`${this.isRebuild?"rebuild":"build"}, ${this.config.fsNamespace}, ${this.config.devMode?"dev":"prod"} mode, started`,t={buildId:this.buildId,messages:[],progress:0};this.compilerCtx.events.emit("buildLog",t),this.timeSpan=this.createTimeSpan(e),this.timestamp=Qp(),this.debug(`start build, ${this.timestamp}`);const r={buildId:this.buildId,timestamp:this.timestamp};this.compilerCtx.events.emit("buildStart",r)}createTimeSpan(e,t){if(!this.hasFinished||t){t&&this.config.watch&&(e=`${this.config.logger.cyan("["+this.buildId+"]")} ${e}`);const r=this.config.logger.createTimeSpan(e,t,this.buildMessages);if(!t&&this.compilerCtx.events){const e={buildId:this.buildId,messages:this.buildMessages,progress:Zp(this.completedTasks)};this.compilerCtx.events.emit("buildLog",e)}return{duration:()=>r.duration(),finish:(e,n,i,a)=>{if((!this.hasFinished||t)&&(t&&this.config.watch&&(e=`${this.config.logger.cyan("["+this.buildId+"]")} ${e}`),r.finish(e,n,i,a),!t)){const e={buildId:this.buildId,messages:this.buildMessages.slice(),progress:Zp(this.completedTasks)};this.compilerCtx.events.emit("buildLog",e)}return r.duration()}}}return{duration(){return 0},finish(){return 0}}}debug(e){this.config.logger.debug(e)}get hasError(){return ie(this.diagnostics)}get hasWarning(){return null!=(e=this.diagnostics)&&0!==e.length&&e.some((e=>"warn"===e.level));var e}progress(e){this.completedTasks.push(e)}async validateTypesBuild(){this.hasError||this.validateTypesPromise&&(this.config.watch||(this.debug("build, non-watch, waiting on validateTypes"),await this.validateTypesPromise,this.debug("build, non-watch, finished waiting on validateTypes")))}}const Qp=()=>{const e=new Date;let t=e.getUTCFullYear()+"-";return t+=("0"+(e.getUTCMonth()+1)).slice(-2)+"-",t+=("0"+e.getUTCDate()).slice(-2)+"T",t+=("0"+e.getUTCHours()).slice(-2)+":",t+=("0"+e.getUTCMinutes()).slice(-2)+":",t+=("0"+e.getUTCSeconds()).slice(-2),t},Zp=e=>{let t=0;const r=Object.keys(e_);return r.forEach(((r,n)=>{e.includes(e_[r])&&(t=n)})),(t+1)/r.length},e_={emptyOutputTargets:{},transpileApp:{},generateStyles:{},generateOutputTargets:{},validateTypesBuild:{},writeBuildFiles:{}},t_=(e,t,r)=>{const n=r.componentGraph?(e=>{const t={};for(const[r,n]of e)t[r]=n;return t})(r.componentGraph.entries()):void 0,i={buildId:r.buildId,diagnostics:q(t,r.diagnostics),dirsAdded:r.dirsAdded.slice().sort(),dirsDeleted:r.dirsDeleted.slice().sort(),duration:Date.now()-r.startTime,filesAdded:r.filesAdded.slice().sort(),filesChanged:r.filesChanged.slice().sort(),filesDeleted:r.filesDeleted.slice().sort(),filesUpdated:r.filesUpdated.slice().sort(),hasError:ie(r.diagnostics),hasSuccessfulBuild:t.hasSuccessfulBuild,isRebuild:r.isRebuild,namespace:e.namespace,outputs:t.fs.getBuildOutputs(),rootDir:e.rootDir,srcDir:e.srcDir,timestamp:Qp(),componentGraph:n},a=((e,t,r)=>{if(null==e.devServer||null==e.devServer.reloadStrategy)return null;const n={reloadStrategy:e.devServer.reloadStrategy,versionId:Date.now().toString().substring(6)+""+Math.round(89999*Math.random()+1e4)};r.scriptsAdded.length>0&&(n.scriptsAdded=r.scriptsAdded.slice()),r.scriptsDeleted.length>0&&(n.scriptsDeleted=r.scriptsDeleted.slice());const i=((e,t,r)=>{const n=[];return t&&0!==t.length?(t.forEach((t=>r.map((r=>{let i=!1;return i=J(t)?Rp(r,t):pe(t)===pe(r),i&&(e.logger.debug(`excludeHmr: ${r}`),n.push(Le(r))),i})).some((e=>e)))),n.sort()):n})(e,e.devServer.excludeHmr,r.filesChanged);i.length>0&&(n.excludeHmr=i.slice()),r.hasHtmlChanges&&(n.indexHtmlUpdated=!0),r.hasServiceWorkerChanges&&(n.serviceWorkerUpdated=!0);const a=e.outputTargets.filter(qd),o=((e,t)=>{if(!t.filesChanged)return null;const r=t.filesChanged.filter((e=>e.endsWith(".ts")||e.endsWith(".tsx")||e.endsWith(".js")||e.endsWith(".jsx")));if(0===r.length)return null;const n=[],i=new Set,a=t.moduleFiles.filter((e=>e.localImports&&e.localImports.length>0));for(;r.length>0;){const e=r.shift();qp(a,r,i,n,e)}const o=n.reduce(((t,r)=>{const n=e.moduleMap.get(r);return null!=n&&n.cmps.forEach((e=>{"string"==typeof e.tagName&&(t.includes(e.tagName)||t.push(e.tagName))})),t}),[]);return 0===o.length?null:o.sort()})(t,r);o&&(n.componentsUpdated=o),Object.keys(r.stylesUpdated).length>0&&(n.inlineStylesUpdated=M(r.stylesUpdated.map((e=>({styleId:Kl(e.styleTag,e.styleMode),styleTag:e.styleTag,styleText:e.styleText}))),(e=>e.styleId)));const s=((e,t)=>{if(!e.isRebuild||0===t.length)return null;const r=e.filesWritten.filter((e=>e.endsWith(".css")));return 0===r.length?null:r.map((e=>Le(e))).sort()})(r,a);s&&(n.externalStylesUpdated=s);const c=((e,t)=>{if(0===t.length)return null;const r=e.filesChanged.reduce(((e,t)=>{if(Xp.some((e=>t.toLowerCase().endsWith(e)))){const r=Le(t);e.includes(r)||e.push(r)}return e}),[]);return 0===r.length?null:r.sort()})(r,a);return c&&(n.imagesUpdated=c),n})(e,t,r);return null!=a&&(i.hmr=a),K(r.hydrateAppFilePath)&&(i.hydrateAppFilePath=r.hydrateAppFilePath),t.lastBuildResults=Object.assign({},i),i};function r_(e){return e?e.map((e=>{return{key:e.entryKey,components:e.cmps.map((e=>e.tagName)),bundleId:e.output.bundleId,fileName:e.output.fileName,imports:e.rollupResult.imports,originalByteSize:(r=e.rollupResult.code,t.byteLength(r,"utf8"))};var r})):[]}function n_(e,t){let r={};return M(t.moduleFiles,(e=>e.sourceFilePath)).forEach((t=>{const n=s_(e,t.sourceFilePath);r[n]=t.localImports.map((t=>s_(e,t))).sort()})),r}function i_(e,t){return t.outputs.map((t=>({name:t.type,files:t.files.length,generatedFiles:t.files.map((t=>s_(e,t)))})))}function a_(e,t){return t.components.map((t=>({tag:t.tagName,path:s_(e,t.jsFilePath),source:s_(e,t.sourceFilePath),elementRef:t.elementRef,componentClassName:t.componentClassName,assetsDirs:t.assetsDirs,dependencies:t.dependencies,dependents:t.dependents,directDependencies:t.directDependencies,directDependents:t.directDependents,docs:t.docs,encapsulation:t.encapsulation,excludeFromCollection:t.excludeFromCollection,events:t.events,internal:t.internal,legacyConnect:t.legacyConnect,legacyContext:t.legacyContext,listeners:t.listeners,methods:t.methods,potentialCmpRefs:t.potentialCmpRefs,properties:t.properties,shadowDelegatesFocus:t.shadowDelegatesFocus,states:t.states})))}function o_(e,t){return t.collections.map((t=>({name:t.collectionName,source:s_(e,t.moduleDir),tags:t.moduleFiles.map((e=>e.cmps.map((e=>e.tagName)))).sort()}))).sort(((e,t)=>e.name<t.name?-1:e.name>t.name?1:0))}function s_(e,t){return e.sys.normalizePath(e.sys.platformPath.relative(e.rootDir,t))}const c_=e=>l_(e.config,e.compilerCtx,e,!0),l_=async(e,t,r,n)=>{if(r.hasFinished&&r.buildResults)return r.buildResults;if(r.buildResults=t_(e,t,r),r.buildStats=((e,t)=>{const r=t.buildResults;let n;try{n=r.hasError?{diagnostics:r.diagnostics}:{timestamp:r.timestamp,compiler:{name:e.sys.name,version:e.sys.version},app:{namespace:e.namespace,fsNamespace:e.fsNamespace,components:Object.keys(r.componentGraph).length,entries:Object.keys(r.componentGraph).length,bundles:r.outputs.reduce(((e,t)=>e+t.files.length),0),outputs:i_(e,r)},options:{minifyJs:e.minifyJs,minifyCss:e.minifyCss,hashFileNames:e.hashFileNames,hashedFileNameLength:e.hashedFileNameLength,buildEs5:e.buildEs5},formats:{esmBrowser:r_(t.esmBrowserComponentBundle),esm:r_(t.esmComponentBundle),es5:r_(t.es5ComponentBundle),system:r_(t.systemComponentBundle),commonjs:r_(t.commonJsComponentBundle)},components:a_(e,t),entries:t.entryModules,componentGraph:r.componentGraph,sourceGraph:n_(e,t),rollupResults:t.rollupResults,collections:o_(e,t)}}catch(e){n={diagnostics:[{messageText:"Generate Build Stats Error: "+e,level:"error",type:"build"}]}}return n})(e,r),await(async(e,t)=>{const r=e.outputTargets.filter(Xd);await Promise.all(r.map((async r=>{(await e.sys.writeFile(r.file,JSON.stringify(t,null,2))).error&&e.logger.warn([`Stats failed to write file to ${r.file}`])})))})(e,r.buildStats),r.debug(`${n?"aborted":"finished"} build, ${r.buildResults.duration}ms`),!r.hasFinished){r.hasPrintedResults||(p_(e,r.buildResults.diagnostics),e.logger.printDiagnostics(r.buildResults.diagnostics));const i=r.hasScriptChanges||r.hasStyleChanges;r.isRebuild&&i&&r.buildResults.hmr&&!n&&u_(e.logger,r);const a=r.isRebuild?"rebuild":"build",o=e.watch?", watching for changes...":"";let s="finished",c="green";r.hasError?(s="failed",c="red"):(t.changedFiles.clear(),t.hasSuccessfulBuild=!0,r.buildResults.hasSuccessfulBuild=!0),r.hasPrintedResults||(r.timeSpan.finish(`${a} ${s}${o}`,c,!0,!0),r.hasPrintedResults=!0),t.events.emit("buildFinish",r.buildResults),U(e.logger.writeLogs)&&e.logger.writeLogs(r.isRebuild)}return r.hasFinished=!0,e.watch||(t.reset(),c&&global.gc&&(r.debug("triggering forced gc"),global.gc(),r.debug("forced gc finished"))),r.buildResults},u_=(e,t)=>{const r=t.buildResults.hmr;if(r.componentsUpdated&&d_(e,"updated component",r.componentsUpdated),r.inlineStylesUpdated){const t=r.inlineStylesUpdated.map((e=>e.styleTag)).reduce(((e,t)=>(e.includes(t)||e.push(t),e)),[]);d_(e,"updated style",t)}r.externalStylesUpdated&&d_(e,"updated stylesheet",r.externalStylesUpdated),r.imagesUpdated&&d_(e,"updated image",r.imagesUpdated)},d_=(e,t,r)=>{if(r.length>0){let n="";if(r.length>7){const e=r.length-6;n=(r=r.slice(0,6)).join(", ")+`, +${e} others`}else n=r.join(", ");r.length>1&&(t+="s"),e.info(`${t}: ${e.cyan(n)}`)}},p_=(e,t)=>{t.forEach((t=>{!t.relFilePath&&!Ce(t.absFilePath)&&t.absFilePath&&e.rootDir&&(t.relFilePath=We(e.rootDir,t.absFilePath))}))},__="{visibility:hidden}.hydrated{visibility:inherit}",f_="http://www.w3.org/1999/xlink",m_={get(e,t){return t in e?e[t]:"symbol"==typeof t||isNaN(t)?void 0:e.__items[t]}},g_=e=>new Proxy(new h_(e),m_);class h_{constructor(e=!1){this.caseInsensitive=e,this.__items=[]}get length(){return this.__items.length}item(e){return this.__items[e]||null}setNamedItem(e){e.namespaceURI=null,this.setNamedItemNS(e)}setNamedItemNS(e){null!=e&&null!=e.value&&(e.value=String(e.value));const t=this.__items.find((t=>t.name===e.name&&t.namespaceURI===e.namespaceURI));null!=t?t.value=e.value:this.__items.push(e)}getNamedItem(e){return this.caseInsensitive&&(e=e.toLowerCase()),this.getNamedItemNS(null,e)}getNamedItemNS(e,t){return e=y_(e),this.__items.find((r=>r.name===t&&y_(r.namespaceURI)===e))||null}removeNamedItem(e){this.removeNamedItemNS(e)}removeNamedItemNS(e){for(let t=0,r=this.__items.length;t<r;t++)if(this.__items[t].name===e.name&&this.__items[t].namespaceURI===e.namespaceURI){this.__items.splice(t,1);break}}[Symbol.iterator](){let e=0;return{next:()=>({done:e===this.length,value:this.item(e++)})}}get[Symbol.toStringTag](){return"MockAttributeMap"}}function y_(e){return e===f_?null:e}function v_(e,t=!1){const r=new h_(e.caseInsensitive);if(null!=e){const n=e.length;if(t&&n>1){const t=[];for(let r=0;r<n;r++){const n=e.item(r),i=new x_(n.name,n.value,n.namespaceURI);t.push(i)}t.sort(b_).forEach((e=>{r.setNamedItemNS(e)}))}else for(let t=0;t<n;t++){const n=e.item(t),i=new x_(n.name,n.value,n.namespaceURI);r.setNamedItemNS(i)}}return r}function b_(e,t){return e.name<t.name?-1:e.name>t.name?1:0}class x_{constructor(e,t,r=null){this._name=e,this._value=String(t),this._namespaceURI=r}get name(){return this._name}set name(e){this._name=e}get value(){return this._value}set value(e){this._value=String(e)}get nodeName(){return this._name}set nodeName(e){this._name=e}get nodeValue(){return this._value}set nodeValue(e){this._value=String(e)}get namespaceURI(){return this._namespaceURI}set namespaceURI(e){this._namespaceURI=e}}class E_{constructor(e){this.win=e}define(e,t,r){if(e.toLowerCase()!==e)throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': "${e}" is not a valid custom element name`);if(null==this.__registry&&(this.__registry=new Map),this.__registry.set(e,{cstr:t,options:r}),null!=this.__whenDefined){const t=this.__whenDefined.get(e);null!=t&&(t.forEach((e=>{e()})),t.length=0,this.__whenDefined.delete(e))}const n=this.win.document;null!=n&&n.querySelectorAll(e).forEach((t=>{if(!1===T_.has(t)){F_.add(n);const r=S_(this,n,e);for(let e=0;e<t.childNodes.length;e++){const n=t.childNodes[e];n.remove(),r.appendChild(n)}F_.delete(n),D_.has(t)&&D_.set(t,r)}k_(t)}))}get(e){if(null!=this.__registry){const t=this.__registry.get(e.toLowerCase());if(null!=t)return t.cstr}}upgrade(e){}clear(){null!=this.__registry&&this.__registry.clear(),null!=this.__whenDefined&&this.__whenDefined.clear()}whenDefined(e){return e=e.toLowerCase(),null!=this.__registry&&!0===this.__registry.has(e)?Promise.resolve(this.__registry.get(e).cstr):new Promise((t=>{null==this.__whenDefined&&(this.__whenDefined=new Map);let r=this.__whenDefined.get(e);null==r&&(r=[],this.__whenDefined.set(e,r)),r.push(t)}))}}function S_(e,t,r){const n=e.get(r);if(null!=n){const e=new n(t);return e.nodeName=r.toUpperCase(),T_.add(e),e}const i=new Proxy({},{get(e,t){const r=D_.get(i);return null!=r?r[t]:e[t]},set(e,t,r){const n=D_.get(i);return null!=n?n[t]=r:e[t]=r,!0},has(e,t){return t in D_.get(i)||t in e}}),a=new Sf(t,r);return D_.set(i,a),i}const D_=new WeakMap,T_=new WeakSet;function C_(e,t){if(t.ownerDocument=e,1===t.nodeType){if(null!=e&&t.nodeName.includes("-")){null!=e.defaultView&&"function"==typeof t.connectedCallback&&t.isConnected&&k_(t);const r=t.shadowRoot;null!=r&&r.childNodes.forEach((t=>{C_(e,t)}))}t.childNodes.forEach((t=>{C_(e,t)}))}else t.childNodes.forEach((t=>{t.ownerDocument=e}))}function k_(e){if("function"==typeof e.connectedCallback&&!1===F_.has(e.ownerDocument))try{e.connectedCallback()}catch(e){console.error(e)}}function A_(e){if(1===e.nodeType){if(!0===e.nodeName.includes("-")&&"function"==typeof e.disconnectedCallback&&!1===F_.has(e.ownerDocument))try{e.disconnectedCallback()}catch(e){console.error(e)}e.childNodes.forEach(A_)}}function N_(e,t,r,n){t=t.toLowerCase();const i=e.constructor.observedAttributes;if(!0===Array.isArray(i)&&!0===i.some((e=>e.toLowerCase()===t)))try{e.attributeChangedCallback(t,r,n)}catch(e){console.error(e)}}function w_(e){return!0===e.nodeName.includes("-")&&"function"==typeof e.attributeChangedCallback}const F_=new Set;const P_=(()=>{const e={exports:{}};return!(t=>{var r,n,i,a,o,s,c,l,u,d,p,_,f,m,g,h,y,v,b,x="sizzle"+1*new Date,E=t.document,S=0,D=0,T=le(),C=le(),k=le(),A=le(),N=(e,t)=>(e===t&&(p=!0),0),w={}.hasOwnProperty,F=[],P=F.pop,I=F.push,O=F.push,M=F.slice,R=(e,t)=>{for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",j="(?:\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+B+"*("+j+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+B+"*\\]",V=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",z=new RegExp(B+"+","g"),K=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),W=new RegExp("^"+B+"*,"+B+"*"),H=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),J=new RegExp(B+"|>"),$=new RegExp(V),G=new RegExp("^"+j+"$"),q={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,ee=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,te=/[+~]/,re=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),ne=(e,t)=>{var r="0x"+e.slice(1)-65536;return t||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=(e,t)=>t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e,oe=()=>{_()},se=ve((e=>!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()),{dir:"parentNode",next:"legend"});try{O.apply(F=M.call(E.childNodes),E.childNodes),F[E.childNodes.length].nodeType}catch(t){O={apply:F.length?(e,t)=>{I.apply(e,M.call(t))}:(e,t)=>{for(var r=e.length,n=0;e[r++]=t[n++];);e.length=r-1}}}function ce(e,t,r,i){var a,o,c,u,d,p,m,y=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return r;if(!i&&(_(t),t=t||f,g)){if(11!==v&&(d=ee.exec(e)))if(a=d[1]){if(9===v){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(y&&(c=y.getElementById(a))&&b(t,c)&&c.id===a)return r.push(c),r}else{if(d[2])return O.apply(r,t.getElementsByTagName(e)),r;if((a=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!A[e+" "]&&(!h||!h.test(e))&&(1!==v||"object"!==t.nodeName.toLowerCase())){if(m=e,y=t,1===v&&(J.test(e)||H.test(e))){for((y=te.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(ie,ae):t.setAttribute("id",u=x)),o=(p=s(e)).length;o--;)p[o]=(u?"#"+u:":scope")+" "+ye(p[o]);m=p.join(",")}try{return O.apply(r,y.querySelectorAll(m)),r}catch(t){A(e,!0)}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(K,"$1"),t,r,i)}function le(){var e=[];return function t(r,n){return e.push(r+" ")>i.cacheLength&&delete t[e.shift()],t[r+" "]=n}}function ue(e){return e[x]=!0,e}function de(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var r=e.split("|"),n=r.length;n--;)i.attrHandle[r[n]]=t}function _e(e,t){var r=t&&e,n=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(r)for(;r=r.nextSibling;)if(r===t)return-1;return e?1:-1}function fe(e){return t=>"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}function me(e){return ue((t=>(t=+t,ue(((r,n)=>{for(var i,a=e([],r.length,t),o=a.length;o--;)r[i=a[o]]&&(r[i]=!(n[i]=r[i]))})))))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(r in n=ce.support={},o=ce.isXML=e=>{var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!X.test(t||r&&r.nodeName||"HTML")},_=ce.setDocument=e=>{var t,r,a=e?e.ownerDocument||e:E;return a!=f&&9===a.nodeType&&a.documentElement?(m=(f=a).documentElement,g=!o(f),E!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.scope=de((e=>(m.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length))),n.attributes=de((e=>(e.className="i",!e.getAttribute("className")))),n.getElementsByTagName=de((e=>(e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length))),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=de((e=>(m.appendChild(e).id=x,!f.getElementsByName||!f.getElementsByName(x).length))),n.getById?(i.filter.ID=e=>{var t=e.replace(re,ne);return e=>e.getAttribute("id")===t},i.find.ID=(e,t)=>{if(void 0!==t.getElementById&&g){var r=t.getElementById(e);return r?[r]:[]}}):(i.filter.ID=e=>{var t=e.replace(re,ne);return e=>{var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===t}},i.find.ID=(e,t)=>{if(void 0!==t.getElementById&&g){var r,n,i,a=t.getElementById(e);if(a){if((r=a.getAttributeNode("id"))&&r.value===e)return[a];for(i=t.getElementsByName(e),n=0;a=i[n++];)if((r=a.getAttributeNode("id"))&&r.value===e)return[a]}return[]}}),i.find.TAG=n.getElementsByTagName?(e,t)=>void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0:(e,t)=>{var r,n=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;r=a[i++];)1===r.nodeType&&n.push(r);return n}return a},i.find.CLASS=n.getElementsByClassName&&((e,t)=>{if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)}),y=[],h=[],(n.qsa=Z.test(f.querySelectorAll))&&(de((e=>{var t;m.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+B+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+x+"-]").length||h.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")})),de((e=>{e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")}))),(n.matchesSelector=Z.test(v=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&de((e=>{n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",V)})),h=h.length&&new RegExp(h.join("|")),y=y.length&&new RegExp(y.join("|")),t=Z.test(m.compareDocumentPosition),b=t||Z.test(m.contains)?(e,t)=>{var r=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(r.contains?r.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:(e,t)=>{if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?(e,t)=>{if(e===t)return p=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==E&&b(E,e)?-1:t==f||t.ownerDocument==E&&b(E,t)?1:d?R(d,e)-R(d,t):0:4&r?-1:1)}:(e,t)=>{if(e===t)return p=!0,0;var r,n=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==f?-1:t==f?1:i?-1:a?1:d?R(d,e)-R(d,t):0;if(i===a)return _e(e,t);for(r=e;r=r.parentNode;)o.unshift(r);for(r=t;r=r.parentNode;)s.unshift(r);for(;o[n]===s[n];)n++;return n?_e(o[n],s[n]):o[n]==E?-1:s[n]==E?1:0},f):f},ce.matches=(e,t)=>ce(e,null,null,t),ce.matchesSelector=(e,t)=>{if(_(e),n.matchesSelector&&g&&!A[t+" "]&&(!y||!y.test(t))&&(!h||!h.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return ce(t,f,null,[e]).length>0},ce.contains=(e,t)=>((e.ownerDocument||e)!=f&&_(e),b(e,t)),ce.attr=(e,t)=>{(e.ownerDocument||e)!=f&&_(e);var r=i.attrHandle[t.toLowerCase()],a=r&&w.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==a?a:n.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},ce.escape=e=>(e+"").replace(ie,ae),ce.error=e=>{throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=e=>{var t,r=[],i=0,a=0;if(p=!n.detectDuplicates,d=!n.sortStable&&e.slice(0),e.sort(N),p){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return d=null,e},a=ce.getText=e=>{var t,r="",n=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[n++];)r+=a(t);return r},(i=ce.selectors={cacheLength:50,createPseudo:ue,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:e=>(e[1]=e[1].replace(re,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(re,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)),CHILD:e=>(e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ce.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ce.error(e[0]),e),PSEUDO(e){var t,r=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&$.test(r)&&(t=s(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG(e){var t=e.replace(re,ne).toLowerCase();return"*"===e?()=>!0:e=>e.nodeName&&e.nodeName.toLowerCase()===t},CLASS(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&T(e,(e=>t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")))},ATTR:(e,t,r)=>n=>{var i=ce.attr(n,e);return null==i?"!="===t:!t||(i+="","="===t?i===r:"!="===t?i!==r:"^="===t?r&&0===i.indexOf(r):"*="===t?r&&i.indexOf(r)>-1:"$="===t?r&&i.slice(-r.length)===r:"~="===t?(" "+i.replace(z," ")+" ").indexOf(r)>-1:"|="===t&&(i===r||i.slice(0,r.length+1)===r+"-"))},CHILD(e,t,r,n,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===i?e=>!!e.parentNode:(t,r,c)=>{var l,u,d,p,_,f,m=a!==o?"nextSibling":"previousSibling",g=t.parentNode,h=s&&t.nodeName.toLowerCase(),y=!c&&!s,v=!1;if(g){if(a){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===h:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){for(v=(_=(l=(u=(d=(p=g)[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===S&&l[1])&&l[2],p=_&&g.childNodes[_];p=++_&&p&&p[m]||(v=_=0)||f.pop();)if(1===p.nodeType&&++v&&p===t){u[e]=[S,_,v];break}}else if(y&&(v=_=(l=(u=(d=(p=t)[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===S&&l[1]),!1===v)for(;(p=++_&&p&&p[m]||(v=_=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==h:1!==p.nodeType)||!++v||(y&&((u=(d=p[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[S,v]),p!==t)););return(v-=i)===n||v%n==0&&v/n>=0}}},PSEUDO(e,t){var r,n=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ce.error("unsupported pseudo: "+e);return n[x]?n(t):n.length>1?(r=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue(((e,r)=>{for(var i,a=n(e,t),o=a.length;o--;)e[i=R(e,a[o])]=!(r[i]=a[o])})):e=>n(e,0,r)):n}},pseudos:{not:ue((e=>{var t=[],r=[],n=c(e.replace(K,"$1"));return n[x]?ue(((e,t,r,i)=>{for(var a,o=n(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):(e,i,a)=>(t[0]=e,n(t,null,a,r),t[0]=null,!r.pop())})),has:ue((e=>t=>ce(e,t).length>0)),contains:ue((e=>(e=e.replace(re,ne),t=>(t.textContent||a(t)).indexOf(e)>-1))),lang:ue((e=>(G.test(e||"")||ce.error("unsupported lang: "+e),e=e.replace(re,ne).toLowerCase(),t=>{var r;do{if(r=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}))),target(e){var r=t.location&&t.location.hash;return r&&r.slice(1)===e.id},root:e=>e===m,focus:e=>e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex),enabled:fe(!1),disabled:fe(!0),checked(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:e=>!0===e.selected,empty(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:e=>!i.pseudos.empty(e),header:e=>Q.test(e.nodeName),input:e=>Y.test(e.nodeName),button(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((()=>[0])),last:me(((e,t)=>[t-1])),eq:me(((e,t,r)=>[r<0?r+t:r])),even:me(((e,t)=>{for(var r=0;r<t;r+=2)e.push(r);return e})),odd:me(((e,t)=>{for(var r=1;r<t;r+=2)e.push(r);return e})),lt:me(((e,t,r)=>{for(var n=r<0?r+t:r>t?t:r;--n>=0;)e.push(n);return e})),gt:me(((e,t,r)=>{for(var n=r<0?r+t:r;++n<t;)e.push(n);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[r]=(e=>t=>"input"===t.nodeName.toLowerCase()&&t.type===e)(r);for(r in{submit:!0,reset:!0})i.pseudos[r]=(e=>t=>{var r=t.nodeName.toLowerCase();return("input"===r||"button"===r)&&t.type===e})(r);function he(){}function ye(e){for(var t=0,r=e.length,n="";t<r;t++)n+=e[t].value;return n}function ve(e,t,r){var n=t.dir,i=t.next,a=i||n,o=r&&"parentNode"===a,s=D++;return t.first?(t,r,i)=>{for(;t=t[n];)if(1===t.nodeType||o)return e(t,r,i);return!1}:(t,r,c)=>{var l,u,d,p=[S,s];if(c){for(;t=t[n];)if((1===t.nodeType||o)&&e(t,r,c))return!0}else for(;t=t[n];)if(1===t.nodeType||o)if(u=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[n]||t;else{if((l=u[a])&&l[0]===S&&l[1]===s)return p[2]=l[2];if(u[a]=p,p[2]=e(t,r,c))return!0}return!1}}function be(e){return e.length>1?(t,r,n)=>{for(var i=e.length;i--;)if(!e[i](t,r,n))return!1;return!0}:e[0]}function xe(e,t,r,n,i){for(var a,o=[],s=0,c=e.length,l=null!=t;s<c;s++)(a=e[s])&&(r&&!r(a,n,i)||(o.push(a),l&&t.push(s)));return o}function Ee(e,t,r,n,i,a){return n&&!n[x]&&(n=Ee(n)),i&&!i[x]&&(i=Ee(i,a)),ue(((a,o,s,c)=>{var l,u,d,p=[],_=[],f=o.length,m=a||((e,t,r)=>{for(var n=0,i=t.length;n<i;n++)ce(e,t[n],r);return r})(t||"*",s.nodeType?[s]:s,[]),g=!e||!a&&t?m:xe(m,p,e,s,c),h=r?i||(a?e:f||n)?[]:o:g;if(r&&r(g,h,s,c),n)for(l=xe(h,_),n(l,[],s,c),u=l.length;u--;)(d=l[u])&&(h[_[u]]=!(g[_[u]]=d));if(a){if(i||e){if(i){for(l=[],u=h.length;u--;)(d=h[u])&&l.push(g[u]=d);i(null,h=[],l,c)}for(u=h.length;u--;)(d=h[u])&&(l=i?R(a,d):p[u])>-1&&(a[l]=!(o[l]=d))}}else h=xe(h===o?h.splice(f,h.length):h),i?i(null,o,h,c):O.apply(o,h)}))}function Se(e){for(var t,r,n,a=e.length,o=i.relative[e[0].type],s=o||i.relative[" "],c=o?1:0,l=ve((e=>e===t),s,!0),d=ve((e=>R(t,e)>-1),s,!0),p=[(e,r,n)=>{var i=!o&&(n||r!==u)||((t=r).nodeType?l(e,r,n):d(e,r,n));return t=null,i}];c<a;c++)if(r=i.relative[e[c].type])p=[ve(be(p),r)];else{if((r=i.filter[e[c].type].apply(null,e[c].matches))[x]){for(n=++c;n<a&&!i.relative[e[n].type];n++);return Ee(c>1&&be(p),c>1&&ye(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(K,"$1"),r,c<n&&Se(e.slice(c,n)),n<a&&Se(e=e.slice(n)),n<a&&ye(e))}p.push(r)}return be(p)}function De(e,t){var r=t.length>0,n=e.length>0,a=(a,o,s,c,l)=>{var d,p,m,h=0,y="0",v=a&&[],b=[],x=u,E=a||n&&i.find.TAG("*",l),D=S+=null==x?1:Math.random()||.1,T=E.length;for(l&&(u=o==f||o||l);y!==T&&null!=(d=E[y]);y++){if(n&&d){for(p=0,o||d.ownerDocument==f||(_(d),s=!g);m=e[p++];)if(m(d,o||f,s)){c.push(d);break}l&&(S=D)}r&&((d=!m&&d)&&h--,a&&v.push(d))}if(h+=y,r&&y!==h){for(p=0;m=t[p++];)m(v,b,o,s);if(a){if(h>0)for(;y--;)v[y]||b[y]||(b[y]=P.call(c));b=xe(b)}O.apply(c,b),l&&!a&&b.length>0&&h+t.length>1&&ce.uniqueSort(c)}return l&&(S=D,u=x),v};return r?ue(a):a}he.prototype=i.filters=i.pseudos,i.setFilters=new he,s=ce.tokenize=(e,t)=>{var r,n,a,o,s,c,l,u=C[e+" "];if(u)return t?0:u.slice(0);for(s=e,c=[],l=i.preFilter;s;){for(o in r&&!(n=W.exec(s))||(n&&(s=s.slice(n[0].length)||s),c.push(a=[])),r=!1,(n=H.exec(s))&&(r=n.shift(),a.push({value:r,type:n[0].replace(K," ")}),s=s.slice(r.length)),i.filter)!(n=q[o].exec(s))||l[o]&&!(n=l[o](n))||(r=n.shift(),a.push({value:r,type:o,matches:n}),s=s.slice(r.length));if(!r)break}return t?s.length:s?ce.error(e):C(e,c).slice(0)},c=ce.compile=(e,t)=>{var r,n=[],i=[],a=k[e+" "];if(!a){for(t||(t=s(e)),r=t.length;r--;)(a=Se(t[r]))[x]?n.push(a):i.push(a);(a=k(e,De(i,n))).selector=e}return a},l=ce.select=(e,t,r,n)=>{var a,o,l,u,d,p="function"==typeof e&&e,_=!n&&s(e=p.selector||e);if(r=r||[],1===_.length){if((o=_[0]=_[0].slice(0)).length>2&&"ID"===(l=o[0]).type&&9===t.nodeType&&g&&i.relative[o[1].type]){if(!(t=(i.find.ID(l.matches[0].replace(re,ne),t)||[])[0]))return r;p&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(a=q.needsContext.test(e)?0:o.length;a--&&(l=o[a],!i.relative[u=l.type]);)if((d=i.find[u])&&(n=d(l.matches[0].replace(re,ne),te.test(o[0].type)&&ge(t.parentNode)||t))){if(o.splice(a,1),!(e=n.length&&ye(o)))return O.apply(r,n),r;break}}return(p||c(e,_))(n,t,!g,r,!t||te.test(e)&&ge(t.parentNode)||t),r},n.sortStable=x.split("").sort(N).join("")===x,n.detectDuplicates=!!p,_(),n.sortDetached=de((e=>1&e.compareDocumentPosition(f.createElement("fieldset")))),de((e=>(e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href"))))||pe("type|href|height|width",((e,t,r)=>{if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&de((e=>(e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value"))))||pe("value",((e,t,r)=>{if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),de((e=>null==e.getAttribute("disabled")))||pe(L,((e,t,r)=>{var n;if(!r)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}));var Te=t.Sizzle;ce.noConflict=()=>(t.Sizzle===ce&&(t.Sizzle=Te),ce),"function"==typeof define&&define.amd?define((()=>ce)):void 0!==e&&e.exports?e.exports=ce:t.Sizzle=ce})({document:{createElement(){return{}},nodeType:9,documentElement:{nodeType:1,nodeName:"HTML"}}}),e.exports})();class I_{constructor(e){this.elm=e}add(...e){const t=M_(this.elm);let r=!1;e.forEach((e=>{O_(e=String(e)),!1===t.includes(e)&&(t.push(e),r=!0)})),r&&this.elm.setAttributeNS(null,"class",t.join(" "))}remove(...e){const t=M_(this.elm);let r=!1;e.forEach((e=>{O_(e=String(e));const n=t.indexOf(e);n>-1&&(t.splice(n,1),r=!0)})),r&&this.elm.setAttributeNS(null,"class",t.filter((e=>e.length>0)).join(" "))}contains(e){return e=String(e),M_(this.elm).includes(e)}toggle(e){e=String(e),!0===this.contains(e)?this.remove(e):this.add(e)}get length(){return M_(this.elm).length}item(e){return M_(this.elm)[e]}toString(){return M_(this.elm).join(" ")}}function O_(e){if(""===e)throw new Error("The token provided must not be empty.");if(/\s/.test(e))throw new Error(`The token provided ('${e}') contains HTML space characters, which are not valid in tokens.`)}function M_(e){const t=e.getAttribute("class");return"string"==typeof t&&t.length>0?t.trim().split(" ").filter((e=>e.length>0)):[]}class R_{constructor(){this._styles=new Map}setProperty(e,t){e=j_(e),null==t||""===t?this._styles.delete(e):this._styles.set(e,String(t))}getPropertyValue(e){return e=j_(e),String(this._styles.get(e)||"")}removeProperty(e){e=j_(e),this._styles.delete(e)}get length(){return this._styles.size}get cssText(){const e=[];return this._styles.forEach(((t,r)=>{e.push(`${r}: ${t};`)})),e.join(" ").trim()}set cssText(e){if(null==e||""===e)return this._styles.clear(),void 0;e.split(";").forEach((e=>{if((e=e.trim()).length>0){const t=e.split(":");if(t.length>1){const e=t[0].trim(),r=t.slice(1).join(":").trim();""!==e&&""!==r&&this._styles.set(j_(e),r)}}}))}}function L_(){return new Proxy(new R_,B_)}const B_={get(e,t){return t in e?e[t]:((r=t).length>1&&!0===r.includes("-")&&(r=(r=r.toLowerCase().split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")).slice(0,1).toLowerCase()+r.slice(1)),t=r,e.getPropertyValue(t));var r},set(e,t,r){return t in e?e[t]=r:e.setProperty(t,r),!0}};function j_(e){return e.length>1&&!1===e.includes("-")&&!0===/[A-Z]/.test(e)&&(e=e.replace(/([A-Z])/g,(e=>" "+e[0])).trim().replace(/ /g,"-").toLowerCase()),e}class U_{constructor(e,t){if(this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.composed=!1,this.currentTarget=null,this.defaultPrevented=!1,this.srcElement=null,this.target=null,"string"!=typeof e)throw new Error("Event type required");this.type=e,this.timeStamp=Date.now(),null!=t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.cancelBubble=!0}composedPath(){const e=[];let t=this.target;for(;t;){if(e.push(t),!t.parentElement&&"#document"===t.nodeName){e.push(t.defaultView);break}t=t.parentElement}return e}}class V_{constructor(e,t){this.type=e,this.handler=t}}function z_(e,t,r){const n=e;null==n.__listeners&&(n.__listeners=[]),n.__listeners.push(new V_(t,r))}function K_(e,t,r){const n=e;if(null!=n&&!0===Array.isArray(n.__listeners)){const e=n.__listeners.find((e=>e.type===t&&e.handler===r));if(null!=e){const t=n.__listeners.indexOf(e);n.__listeners.splice(t,1)}}}function W_(e){null!=e&&null!=e.__listeners&&(e.__listeners=null)}function H_(e,t){if(null==e||!0===t.cancelBubble)return;const r=e;t.currentTarget=e,!0===Array.isArray(r.__listeners)&&r.__listeners.filter((e=>e.type===t.type)).forEach((e=>{try{e.handler.call(r,t)}catch(e){console.error(e)}})),!1!==t.bubbles&&("#document"===e.nodeName?H_(e.defaultView,t):H_(e.parentElement,t))}function J_(e,t){return t.target=e,H_(e,t),!0}function $_(e,t={}){const r={currentLineWidth:0,indent:0,isWithinBody:!1,text:[]};if(t.prettyHtml?("number"!=typeof t.indentSpaces&&(t.indentSpaces=2),"boolean"!=typeof t.newLines&&(t.newLines=!0),t.approximateLineWidth=-1):(t.prettyHtml=!1,"boolean"!=typeof t.newLines&&(t.newLines=!1),"number"!=typeof t.indentSpaces&&(t.indentSpaces=0)),"number"!=typeof t.approximateLineWidth&&(t.approximateLineWidth=-1),"boolean"!=typeof t.removeEmptyAttributes&&(t.removeEmptyAttributes=!0),"boolean"!=typeof t.removeAttributeQuotes&&(t.removeAttributeQuotes=!1),"boolean"!=typeof t.removeBooleanAttributeQuotes&&(t.removeBooleanAttributeQuotes=!1),"boolean"!=typeof t.removeHtmlComments&&(t.removeHtmlComments=!1),"boolean"!=typeof t.serializeShadowRoot&&(t.serializeShadowRoot=!1),t.outerHtml)G_(e,t,r,!1);else for(let n=0,i=e.childNodes.length;n<i;n++)G_(e.childNodes[n],t,r,!1);return"\n"===r.text[0]&&r.text.shift(),"\n"===r.text[r.text.length-1]&&r.text.pop(),r.text.join("")}function G_(e,t,r,n){if(1===e.nodeType||n){const a=n?"mock:shadow-root":"http://www.w3.org/1999/xhtml"===(i=e).namespaceURI?i.nodeName.toLowerCase():i.nodeName;"body"===a&&(r.isWithinBody=!0);const o=null!=t.excludeTags&&t.excludeTags.includes(a);if(!1===o){const n=!!(t.newLines||t.indentSpaces>0)&&rf(e);if(t.newLines&&!n&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!n){for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}r.text.push("<"+a),r.currentLineWidth+=a.length+1;const i=e.attributes.length,o=t.prettyHtml&&i>1?v_(e.attributes,!0):e.attributes;for(let e=0;e<i;e++){const n=o.item(e),i=n.name;if("style"===i)continue;let a=n.value;if(t.removeEmptyAttributes&&""===a&&sf.has(i))continue;const s=n.namespaceURI;if(null==s?(r.currentLineWidth+=i.length+1,t.approximateLineWidth>0&&r.currentLineWidth>t.approximateLineWidth?(r.text.push("\n"+i),r.currentLineWidth=0):r.text.push(" "+i)):"http://www.w3.org/XML/1998/namespace"===s?(r.text.push(" xml:"+i),r.currentLineWidth+=i.length+5):"http://www.w3.org/2000/xmlns/"===s?"xmlns"!==i?(r.text.push(" xmlns:"+i),r.currentLineWidth+=i.length+7):(r.text.push(" "+i),r.currentLineWidth+=i.length+1):s===f_?(r.text.push(" xlink:"+i),r.currentLineWidth+=i.length+7):(r.text.push(" "+s+":"+i),r.currentLineWidth+=s.length+i.length+2),t.prettyHtml&&"class"===i&&(a=n.value=a.split(" ").filter((e=>""!==e)).sort().join(" ").trim()),""===a){if(t.removeBooleanAttributeQuotes&&cf.has(i))continue;if(t.removeEmptyAttributes&&i.startsWith("data-"))continue}t.removeAttributeQuotes&&ef.test(a)?(r.text.push("="+tf(a,!0)),r.currentLineWidth+=a.length+1):(r.text.push('="'+tf(a,!0)+'"'),r.currentLineWidth+=a.length+3)}if(e.hasAttribute("style")){const n=e.style.cssText;t.approximateLineWidth>0&&r.currentLineWidth+n.length+10>t.approximateLineWidth?(r.text.push(`\nstyle="${n}">`),r.currentLineWidth=0):(r.text.push(` style="${n}">`),r.currentLineWidth+=n.length+10)}else r.text.push(">"),r.currentLineWidth+=1}if(!1===of.has(a)){if(t.serializeShadowRoot&&null!=e.shadowRoot&&(r.indent=r.indent+t.indentSpaces,G_(e.shadowRoot,t,r,!0),r.indent=r.indent-t.indentSpaces,t.newLines&&(0===e.childNodes.length||1===e.childNodes.length&&3===e.childNodes[0].nodeType&&""===e.childNodes[0].nodeValue.trim()))){r.text.push("\n"),r.currentLineWidth=0;for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}if(null==t.excludeTagContent||!1===t.excludeTagContent.includes(a)){const n="template"===a?e.content.childNodes:e.childNodes,i=n.length;if(i>0&&(1!==i||3!==n[0].nodeType||"string"==typeof n[0].nodeValue&&""!==n[0].nodeValue.trim())){const a=!!(t.newLines||t.indentSpaces>0)&&rf(e);!a&&t.indentSpaces>0&&!1===o&&(r.indent=r.indent+t.indentSpaces);for(let e=0;e<i;e++)G_(n[e],t,r,!1);if(!1===o&&(t.newLines&&!a&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!a)){r.indent=r.indent-t.indentSpaces;for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}}!1===o&&(r.text.push("</"+a+">"),r.currentLineWidth+=a.length+3)}}t.approximateLineWidth>0&&lf.has(a)&&(r.text.push("\n"),r.currentLineWidth=0),"body"===a&&(r.isWithinBody=!1)}else if(3===e.nodeType){let n=e.nodeValue;if("string"==typeof n){const i=n.trim();if(""===i)rf(e)?(r.text.push(n),r.currentLineWidth+=n.length):t.approximateLineWidth>0&&!r.isWithinBody||t.prettyHtml||(r.currentLineWidth+=1,t.approximateLineWidth>0&&r.currentLineWidth>t.approximateLineWidth?(r.text.push("\n"),r.currentLineWidth=0):r.text.push(" "));else{const a=!!(t.newLines||t.indentSpaces>0||t.prettyHtml)&&rf(e);if(t.newLines&&!a&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!a){for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}let o=n.length;if(o>0){const s=null!=e.parentNode&&1===e.parentNode.nodeType?e.parentNode.nodeName:null;nf.has(s)?(rf(e)?r.text.push(n):(r.text.push(i),o=i.length),r.currentLineWidth+=o):t.prettyHtml&&!a?(r.text.push(tf(n.replace(/\s\s+/g," ").trim(),!1)),r.currentLineWidth+=o):(rf(e)||(/\s/.test(n.charAt(0))&&(n=" "+n.trimLeft()),o=n.length,o>1&&/\s/.test(n.charAt(o-1))&&(t.approximateLineWidth>0&&r.currentLineWidth+o>t.approximateLineWidth?(n=n.trimRight()+"\n",r.currentLineWidth=0):n=n.trimRight()+" ")),r.currentLineWidth+=o,r.text.push(tf(n,!1)))}}}}else if(8===e.nodeType){const n=e.nodeValue;if(t.removeHtmlComments&&!(n.startsWith("r.")||n.startsWith("o.")||n.startsWith("s.")||n.startsWith("t.")))return;const i=!!(t.newLines||t.indentSpaces>0)&&rf(e);if(t.newLines&&!i&&(r.text.push("\n"),r.currentLineWidth=0),t.indentSpaces>0&&!i){for(let e=0;e<r.indent;e++)r.text.push(" ");r.currentLineWidth+=r.indent}r.text.push("\x3c!--"+n+"--\x3e"),r.currentLineWidth+=n.length+7}else 10===e.nodeType&&r.text.push("<!doctype html>");var i}const q_=/&/g,X_=/\u00a0/g,Y_=/"/g,Q_=/</g,Z_=/>/g,ef=/^[^ \t\n\f\r"'`=<>\/\\-]+$/;function tf(e,t){return e=e.replace(q_,"&amp;").replace(X_,"&nbsp;"),t?e.replace(Y_,"&quot;"):e.replace(Q_,"&lt;").replace(Z_,"&gt;")}function rf(e){for(;null!=e;){if(af.has(e.nodeName))return!0;e=e.parentNode}return!1}const nf=new Set(["STYLE","SCRIPT","IFRAME","NOSCRIPT","XMP","NOEMBED","NOFRAMES","PLAINTEXT"]),af=new Set(["CODE","OUTPUT","PLAINTEXT","PRE","SCRIPT","TEMPLATE","TEXTAREA"]),of=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","meta","param","source","trace","wbr"]),sf=new Set(["class","dir","id","lang","name","title"]),cf=new Set(["allowfullscreen","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","nomodule","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"]),lf=new Set(["html","body","head","iframe","meta","link","base","title","script","style"]),uf=function(e){const t=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];var r="�",n={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},i=e=>e>=55296&&e<=57343,a=e=>32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159,o=e=>e>=64976&&e<=65007||t.indexOf(e)>-1,s="unexpected-null-character",c="invalid-first-character-of-tag-name",l="missing-semicolon-after-character-reference",u="eof-before-tag-name",d="eof-in-tag",p="missing-whitespace-after-doctype-public-keyword",_="missing-whitespace-between-doctype-public-and-system-identifiers",f="missing-whitespace-after-doctype-system-keyword",m="missing-quote-before-doctype-public-identifier",g="missing-quote-before-doctype-system-identifier",h="missing-doctype-public-identifier",y="missing-doctype-system-identifier",v="abrupt-doctype-public-identifier",b="abrupt-doctype-system-identifier",x="eof-in-script-html-comment-like-text",E="eof-in-doctype",S="abrupt-closing-of-empty-comment",D="eof-in-comment",T="absence-of-digits-in-numeric-character-reference",C="end-tag-without-matching-open-element",k="misplaced-start-tag-for-head-element";const A=n;var N=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const w=n,F=[45,45],P=[68,79,67,84,89,80,69],I=[91,67,68,65,84,65,91],O=[115,99,114,105,112,116],M=[80,85,66,76,73,67],R=[83,89,83,84,69,77],L={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},B="DATA_STATE",j="RCDATA_STATE",U="RAWTEXT_STATE",V="SCRIPT_DATA_STATE",z="PLAINTEXT_STATE",K="TAG_OPEN_STATE",W="END_TAG_OPEN_STATE",H="TAG_NAME_STATE",J="RCDATA_LESS_THAN_SIGN_STATE",$="RCDATA_END_TAG_OPEN_STATE",G="RCDATA_END_TAG_NAME_STATE",q="RAWTEXT_LESS_THAN_SIGN_STATE",X="RAWTEXT_END_TAG_OPEN_STATE",Y="RAWTEXT_END_TAG_NAME_STATE",Q="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Z="SCRIPT_DATA_END_TAG_OPEN_STATE",ee="SCRIPT_DATA_END_TAG_NAME_STATE",te="SCRIPT_DATA_ESCAPE_START_STATE",re="SCRIPT_DATA_ESCAPE_START_DASH_STATE",ne="SCRIPT_DATA_ESCAPED_STATE",ie="SCRIPT_DATA_ESCAPED_DASH_STATE",ae="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",oe="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",se="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",ce="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",le="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",ue="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",de="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",pe="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",_e="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",fe="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",me="BEFORE_ATTRIBUTE_NAME_STATE",ge="ATTRIBUTE_NAME_STATE",he="AFTER_ATTRIBUTE_NAME_STATE",ye="BEFORE_ATTRIBUTE_VALUE_STATE",ve="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",be="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",xe="ATTRIBUTE_VALUE_UNQUOTED_STATE",Ee="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Se="SELF_CLOSING_START_TAG_STATE",De="BOGUS_COMMENT_STATE",Te="MARKUP_DECLARATION_OPEN_STATE",Ce="COMMENT_START_STATE",ke="COMMENT_START_DASH_STATE",Ae="COMMENT_STATE",Ne="COMMENT_LESS_THAN_SIGN_STATE",we="COMMENT_LESS_THAN_SIGN_BANG_STATE",Fe="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Pe="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Ie="COMMENT_END_DASH_STATE",Oe="COMMENT_END_STATE",Me="COMMENT_END_BANG_STATE",Re="DOCTYPE_STATE",Le="BEFORE_DOCTYPE_NAME_STATE",Be="DOCTYPE_NAME_STATE",je="AFTER_DOCTYPE_NAME_STATE",Ue="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Ve="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ze="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Ke="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",We="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",He="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Je="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",$e="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ge="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",qe="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Xe="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ye="BOGUS_DOCTYPE_STATE",Qe="CDATA_SECTION_STATE",Ze="CDATA_SECTION_BRACKET_STATE",et="CDATA_SECTION_END_STATE",tt="CHARACTER_REFERENCE_STATE",rt="NAMED_CHARACTER_REFERENCE_STATE",nt="AMBIGUOS_AMPERSAND_STATE",it="NUMERIC_CHARACTER_REFERENCE_STATE",at="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",ot="DECIMAL_CHARACTER_REFERENCE_START_STATE",st="HEXADEMICAL_CHARACTER_REFERENCE_STATE",ct="DECIMAL_CHARACTER_REFERENCE_STATE",lt="NUMERIC_CHARACTER_REFERENCE_END_STATE";function ut(e){return e===w.SPACE||e===w.LINE_FEED||e===w.TABULATION||e===w.FORM_FEED}function dt(e){return e>=w.DIGIT_0&&e<=w.DIGIT_9}function pt(e){return e>=w.LATIN_CAPITAL_A&&e<=w.LATIN_CAPITAL_Z}function _t(e){return e>=w.LATIN_SMALL_A&&e<=w.LATIN_SMALL_Z}function ft(e){return _t(e)||pt(e)}function mt(e){return ft(e)||dt(e)}function gt(e){return e>=w.LATIN_CAPITAL_A&&e<=w.LATIN_CAPITAL_F}function ht(e){return e>=w.LATIN_SMALL_A&&e<=w.LATIN_SMALL_F}function yt(e){return e+32}function vt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function bt(e){return String.fromCharCode(yt(e))}function xt(e,t){const r=N[++e];let n=++e,i=n+r-1;for(;n<=i;){const e=n+i>>>1,a=N[e];if(a<t)n=e+1;else{if(!(a>t))return N[e+r];i=e-1}}return-1}class Et{constructor(){this.preprocessor=new class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if((e=>e>=56320&&e<=57343)(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err("surrogate-in-input-stream"),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===A.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===A.CARRIAGE_RETURN?(this.skipNextNewLine=!0,A.LINE_FEED):(this.skipNextNewLine=!1,i(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===A.LINE_FEED||e===A.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){a(e)?this._err("control-character-in-input-stream"):o(e)&&this._err("noncharacter-in-input-stream")}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},this.tokenQueue=[],this.allowCDATA=!1,this.state=B,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Et.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,r){let n=0,i=!0;const a=e.length;let o,s=0,c=t;for(;s<a;s++){if(s>0&&(c=this._consume(),n++),c===w.EOF){i=!1;break}if(o=e[s],c!==o&&(r||c!==yt(o))){i=!1;break}}if(!i)for(;n--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==O.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==O[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:Et.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Et.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Et.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:Et.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:Et.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===Et.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err("duplicate-attribute"),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===Et.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===Et.END_TAG_TOKEN&&(e.attrs.length>0&&this._err("end-tag-with-attributes"),e.selfClosing&&this._err("end-tag-with-trailing-solidus")),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Et.CHARACTER_TOKEN;ut(e)?t=Et.WHITESPACE_CHARACTER_TOKEN:e===w.NULL&&(t=Et.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,vt(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(Et.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,r=1,n=xt(0,e);for(this.tempBuff.push(e);n>-1;){const e=N[n],i=e<7;i&&1&e&&(t=2&e?[N[++n],N[++n]]:[N[++n]],r=0);const a=this._consume();if(this.tempBuff.push(a),r++,a===w.EOF)break;n=i?4&e?xt(n,a):-1:a===e?++n:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===ve||this.returnState===be||this.returnState===xe}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===w.EQUALS_SIGN||mt(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=vt(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[B](e){this.preprocessor.dropParsedChunk(),e===w.LESS_THAN_SIGN?this.state=K:e===w.AMPERSAND?(this.returnState=B,this.state=tt):e===w.NULL?(this._err(s),this._emitCodePoint(e)):e===w.EOF?this._emitEOFToken():this._emitCodePoint(e)}[j](e){this.preprocessor.dropParsedChunk(),e===w.AMPERSAND?(this.returnState=j,this.state=tt):e===w.LESS_THAN_SIGN?this.state=J:e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?this._emitEOFToken():this._emitCodePoint(e)}[U](e){this.preprocessor.dropParsedChunk(),e===w.LESS_THAN_SIGN?this.state=q:e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?this._emitEOFToken():this._emitCodePoint(e)}[V](e){this.preprocessor.dropParsedChunk(),e===w.LESS_THAN_SIGN?this.state=Q:e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?this._emitEOFToken():this._emitCodePoint(e)}[z](e){this.preprocessor.dropParsedChunk(),e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?this._emitEOFToken():this._emitCodePoint(e)}[K](e){e===w.EXCLAMATION_MARK?this.state=Te:e===w.SOLIDUS?this.state=W:ft(e)?(this._createStartTagToken(),this._reconsumeInState(H)):e===w.QUESTION_MARK?(this._err("unexpected-question-mark-instead-of-tag-name"),this._createCommentToken(),this._reconsumeInState(De)):e===w.EOF?(this._err(u),this._emitChars("<"),this._emitEOFToken()):(this._err(c),this._emitChars("<"),this._reconsumeInState(B))}[W](e){ft(e)?(this._createEndTagToken(),this._reconsumeInState(H)):e===w.GREATER_THAN_SIGN?(this._err("missing-end-tag-name"),this.state=B):e===w.EOF?(this._err(u),this._emitChars("</"),this._emitEOFToken()):(this._err(c),this._createCommentToken(),this._reconsumeInState(De))}[H](e){ut(e)?this.state=me:e===w.SOLIDUS?this.state=Se:e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):pt(e)?this.currentToken.tagName+=bt(e):e===w.NULL?(this._err(s),this.currentToken.tagName+=r):e===w.EOF?(this._err(d),this._emitEOFToken()):this.currentToken.tagName+=vt(e)}[J](e){e===w.SOLIDUS?(this.tempBuff=[],this.state=$):(this._emitChars("<"),this._reconsumeInState(j))}[$](e){ft(e)?(this._createEndTagToken(),this._reconsumeInState(G)):(this._emitChars("</"),this._reconsumeInState(j))}[G](e){if(pt(e))this.currentToken.tagName+=bt(e),this.tempBuff.push(e);else if(_t(e))this.currentToken.tagName+=vt(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(ut(e))return void(this.state=me);if(e===w.SOLIDUS)return void(this.state=Se);if(e===w.GREATER_THAN_SIGN)return this.state=B,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(j)}}[q](e){e===w.SOLIDUS?(this.tempBuff=[],this.state=X):(this._emitChars("<"),this._reconsumeInState(U))}[X](e){ft(e)?(this._createEndTagToken(),this._reconsumeInState(Y)):(this._emitChars("</"),this._reconsumeInState(U))}[Y](e){if(pt(e))this.currentToken.tagName+=bt(e),this.tempBuff.push(e);else if(_t(e))this.currentToken.tagName+=vt(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(ut(e))return void(this.state=me);if(e===w.SOLIDUS)return void(this.state=Se);if(e===w.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=B)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(U)}}[Q](e){e===w.SOLIDUS?(this.tempBuff=[],this.state=Z):e===w.EXCLAMATION_MARK?(this.state=te,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(V))}[Z](e){ft(e)?(this._createEndTagToken(),this._reconsumeInState(ee)):(this._emitChars("</"),this._reconsumeInState(V))}[ee](e){if(pt(e))this.currentToken.tagName+=bt(e),this.tempBuff.push(e);else if(_t(e))this.currentToken.tagName+=vt(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(ut(e))return void(this.state=me);if(e===w.SOLIDUS)return void(this.state=Se);if(e===w.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=B)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(V)}}[te](e){e===w.HYPHEN_MINUS?(this.state=re,this._emitChars("-")):this._reconsumeInState(V)}[re](e){e===w.HYPHEN_MINUS?(this.state=ae,this._emitChars("-")):this._reconsumeInState(V)}[ne](e){e===w.HYPHEN_MINUS?(this.state=ie,this._emitChars("-")):e===w.LESS_THAN_SIGN?this.state=oe:e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):this._emitCodePoint(e)}[ie](e){e===w.HYPHEN_MINUS?(this.state=ae,this._emitChars("-")):e===w.LESS_THAN_SIGN?this.state=oe:e===w.NULL?(this._err(s),this.state=ne,this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):(this.state=ne,this._emitCodePoint(e))}[ae](e){e===w.HYPHEN_MINUS?this._emitChars("-"):e===w.LESS_THAN_SIGN?this.state=oe:e===w.GREATER_THAN_SIGN?(this.state=V,this._emitChars(">")):e===w.NULL?(this._err(s),this.state=ne,this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):(this.state=ne,this._emitCodePoint(e))}[oe](e){e===w.SOLIDUS?(this.tempBuff=[],this.state=se):ft(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(le)):(this._emitChars("<"),this._reconsumeInState(ne))}[se](e){ft(e)?(this._createEndTagToken(),this._reconsumeInState(ce)):(this._emitChars("</"),this._reconsumeInState(ne))}[ce](e){if(pt(e))this.currentToken.tagName+=bt(e),this.tempBuff.push(e);else if(_t(e))this.currentToken.tagName+=vt(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(ut(e))return void(this.state=me);if(e===w.SOLIDUS)return void(this.state=Se);if(e===w.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=B)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(ne)}}[le](e){ut(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ue:ne,this._emitCodePoint(e)):pt(e)?(this.tempBuff.push(yt(e)),this._emitCodePoint(e)):_t(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(ne)}[ue](e){e===w.HYPHEN_MINUS?(this.state=de,this._emitChars("-")):e===w.LESS_THAN_SIGN?(this.state=_e,this._emitChars("<")):e===w.NULL?(this._err(s),this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):this._emitCodePoint(e)}[de](e){e===w.HYPHEN_MINUS?(this.state=pe,this._emitChars("-")):e===w.LESS_THAN_SIGN?(this.state=_e,this._emitChars("<")):e===w.NULL?(this._err(s),this.state=ue,this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):(this.state=ue,this._emitCodePoint(e))}[pe](e){e===w.HYPHEN_MINUS?this._emitChars("-"):e===w.LESS_THAN_SIGN?(this.state=_e,this._emitChars("<")):e===w.GREATER_THAN_SIGN?(this.state=V,this._emitChars(">")):e===w.NULL?(this._err(s),this.state=ue,this._emitChars(r)):e===w.EOF?(this._err(x),this._emitEOFToken()):(this.state=ue,this._emitCodePoint(e))}[_e](e){e===w.SOLIDUS?(this.tempBuff=[],this.state=fe,this._emitChars("/")):this._reconsumeInState(ue)}[fe](e){ut(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ne:ue,this._emitCodePoint(e)):pt(e)?(this.tempBuff.push(yt(e)),this._emitCodePoint(e)):_t(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(ue)}[me](e){ut(e)||(e===w.SOLIDUS||e===w.GREATER_THAN_SIGN||e===w.EOF?this._reconsumeInState(he):e===w.EQUALS_SIGN?(this._err("unexpected-equals-sign-before-attribute-name"),this._createAttr("="),this.state=ge):(this._createAttr(""),this._reconsumeInState(ge)))}[ge](e){ut(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN||e===w.EOF?(this._leaveAttrName(he),this._unconsume()):e===w.EQUALS_SIGN?this._leaveAttrName(ye):pt(e)?this.currentAttr.name+=bt(e):e===w.QUOTATION_MARK||e===w.APOSTROPHE||e===w.LESS_THAN_SIGN?(this._err("unexpected-character-in-attribute-name"),this.currentAttr.name+=vt(e)):e===w.NULL?(this._err(s),this.currentAttr.name+=r):this.currentAttr.name+=vt(e)}[he](e){ut(e)||(e===w.SOLIDUS?this.state=Se:e===w.EQUALS_SIGN?this.state=ye:e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(d),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(ge)))}[ye](e){ut(e)||(e===w.QUOTATION_MARK?this.state=ve:e===w.APOSTROPHE?this.state=be:e===w.GREATER_THAN_SIGN?(this._err("missing-attribute-value"),this.state=B,this._emitCurrentToken()):this._reconsumeInState(xe))}[ve](e){e===w.QUOTATION_MARK?this.state=Ee:e===w.AMPERSAND?(this.returnState=ve,this.state=tt):e===w.NULL?(this._err(s),this.currentAttr.value+=r):e===w.EOF?(this._err(d),this._emitEOFToken()):this.currentAttr.value+=vt(e)}[be](e){e===w.APOSTROPHE?this.state=Ee:e===w.AMPERSAND?(this.returnState=be,this.state=tt):e===w.NULL?(this._err(s),this.currentAttr.value+=r):e===w.EOF?(this._err(d),this._emitEOFToken()):this.currentAttr.value+=vt(e)}[xe](e){ut(e)?this._leaveAttrValue(me):e===w.AMPERSAND?(this.returnState=xe,this.state=tt):e===w.GREATER_THAN_SIGN?(this._leaveAttrValue(B),this._emitCurrentToken()):e===w.NULL?(this._err(s),this.currentAttr.value+=r):e===w.QUOTATION_MARK||e===w.APOSTROPHE||e===w.LESS_THAN_SIGN||e===w.EQUALS_SIGN||e===w.GRAVE_ACCENT?(this._err("unexpected-character-in-unquoted-attribute-value"),this.currentAttr.value+=vt(e)):e===w.EOF?(this._err(d),this._emitEOFToken()):this.currentAttr.value+=vt(e)}[Ee](e){ut(e)?this._leaveAttrValue(me):e===w.SOLIDUS?this._leaveAttrValue(Se):e===w.GREATER_THAN_SIGN?(this._leaveAttrValue(B),this._emitCurrentToken()):e===w.EOF?(this._err(d),this._emitEOFToken()):(this._err("missing-whitespace-between-attributes"),this._reconsumeInState(me))}[Se](e){e===w.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(d),this._emitEOFToken()):(this._err("unexpected-solidus-in-tag"),this._reconsumeInState(me))}[De](e){e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===w.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===w.NULL?(this._err(s),this.currentToken.data+=r):this.currentToken.data+=vt(e)}[Te](e){this._consumeSequenceIfMatch(F,e,!0)?(this._createCommentToken(),this.state=Ce):this._consumeSequenceIfMatch(P,e,!1)?this.state=Re:this._consumeSequenceIfMatch(I,e,!0)?this.allowCDATA?this.state=Qe:(this._err("cdata-in-html-content"),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=De):this._ensureHibernation()||(this._err("incorrectly-opened-comment"),this._createCommentToken(),this._reconsumeInState(De))}[Ce](e){e===w.HYPHEN_MINUS?this.state=ke:e===w.GREATER_THAN_SIGN?(this._err(S),this.state=B,this._emitCurrentToken()):this._reconsumeInState(Ae)}[ke](e){e===w.HYPHEN_MINUS?this.state=Oe:e===w.GREATER_THAN_SIGN?(this._err(S),this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(D),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ae))}[Ae](e){e===w.HYPHEN_MINUS?this.state=Ie:e===w.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Ne):e===w.NULL?(this._err(s),this.currentToken.data+=r):e===w.EOF?(this._err(D),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=vt(e)}[Ne](e){e===w.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=we):e===w.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ae)}[we](e){e===w.HYPHEN_MINUS?this.state=Fe:this._reconsumeInState(Ae)}[Fe](e){e===w.HYPHEN_MINUS?this.state=Pe:this._reconsumeInState(Ie)}[Pe](e){e!==w.GREATER_THAN_SIGN&&e!==w.EOF&&this._err("nested-comment"),this._reconsumeInState(Oe)}[Ie](e){e===w.HYPHEN_MINUS?this.state=Oe:e===w.EOF?(this._err(D),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ae))}[Oe](e){e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===w.EXCLAMATION_MARK?this.state=Me:e===w.HYPHEN_MINUS?this.currentToken.data+="-":e===w.EOF?(this._err(D),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ae))}[Me](e){e===w.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Ie):e===w.GREATER_THAN_SIGN?(this._err("incorrectly-closed-comment"),this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(D),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ae))}[Re](e){ut(e)?this.state=Le:e===w.GREATER_THAN_SIGN?this._reconsumeInState(Le):e===w.EOF?(this._err(E),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err("missing-whitespace-before-doctype-name"),this._reconsumeInState(Le))}[Le](e){ut(e)||(pt(e)?(this._createDoctypeToken(bt(e)),this.state=Be):e===w.NULL?(this._err(s),this._createDoctypeToken(r),this.state=Be):e===w.GREATER_THAN_SIGN?(this._err("missing-doctype-name"),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(vt(e)),this.state=Be))}[Be](e){ut(e)?this.state=je:e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):pt(e)?this.currentToken.name+=bt(e):e===w.NULL?(this._err(s),this.currentToken.name+=r):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=vt(e)}[je](e){ut(e)||(e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(M,e,!1)?this.state=Ue:this._consumeSequenceIfMatch(R,e,!1)?this.state=Je:this._ensureHibernation()||(this._err("invalid-character-sequence-after-doctype-name"),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye)))}[Ue](e){ut(e)?this.state=Ve:e===w.QUOTATION_MARK?(this._err(p),this.currentToken.publicId="",this.state=ze):e===w.APOSTROPHE?(this._err(p),this.currentToken.publicId="",this.state=Ke):e===w.GREATER_THAN_SIGN?(this._err(h),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(m),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye))}[Ve](e){ut(e)||(e===w.QUOTATION_MARK?(this.currentToken.publicId="",this.state=ze):e===w.APOSTROPHE?(this.currentToken.publicId="",this.state=Ke):e===w.GREATER_THAN_SIGN?(this._err(h),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(m),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye)))}[ze](e){e===w.QUOTATION_MARK?this.state=We:e===w.NULL?(this._err(s),this.currentToken.publicId+=r):e===w.GREATER_THAN_SIGN?(this._err(v),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=vt(e)}[Ke](e){e===w.APOSTROPHE?this.state=We:e===w.NULL?(this._err(s),this.currentToken.publicId+=r):e===w.GREATER_THAN_SIGN?(this._err(v),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=vt(e)}[We](e){ut(e)?this.state=He:e===w.GREATER_THAN_SIGN?(this.state=B,this._emitCurrentToken()):e===w.QUOTATION_MARK?(this._err(_),this.currentToken.systemId="",this.state=Ge):e===w.APOSTROPHE?(this._err(_),this.currentToken.systemId="",this.state=qe):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye))}[He](e){ut(e)||(e===w.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=B):e===w.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ge):e===w.APOSTROPHE?(this.currentToken.systemId="",this.state=qe):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye)))}[Je](e){ut(e)?this.state=$e:e===w.QUOTATION_MARK?(this._err(f),this.currentToken.systemId="",this.state=Ge):e===w.APOSTROPHE?(this._err(f),this.currentToken.systemId="",this.state=qe):e===w.GREATER_THAN_SIGN?(this._err(y),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye))}[$e](e){ut(e)||(e===w.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ge):e===w.APOSTROPHE?(this.currentToken.systemId="",this.state=qe):e===w.GREATER_THAN_SIGN?(this._err(y),this.currentToken.forceQuirks=!0,this.state=B,this._emitCurrentToken()):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(g),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ye)))}[Ge](e){e===w.QUOTATION_MARK?this.state=Xe:e===w.NULL?(this._err(s),this.currentToken.systemId+=r):e===w.GREATER_THAN_SIGN?(this._err(b),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=vt(e)}[qe](e){e===w.APOSTROPHE?this.state=Xe:e===w.NULL?(this._err(s),this.currentToken.systemId+=r):e===w.GREATER_THAN_SIGN?(this._err(b),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=vt(e)}[Xe](e){ut(e)||(e===w.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=B):e===w.EOF?(this._err(E),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err("unexpected-character-after-doctype-system-identifier"),this._reconsumeInState(Ye)))}[Ye](e){e===w.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=B):e===w.NULL?this._err(s):e===w.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Qe](e){e===w.RIGHT_SQUARE_BRACKET?this.state=Ze:e===w.EOF?(this._err("eof-in-cdata"),this._emitEOFToken()):this._emitCodePoint(e)}[Ze](e){e===w.RIGHT_SQUARE_BRACKET?this.state=et:(this._emitChars("]"),this._reconsumeInState(Qe))}[et](e){e===w.GREATER_THAN_SIGN?this.state=B:e===w.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Qe))}[tt](e){this.tempBuff=[w.AMPERSAND],e===w.NUMBER_SIGN?(this.tempBuff.push(e),this.state=it):mt(e)?this._reconsumeInState(rt):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[rt](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[w.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===w.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(l),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=nt}[nt](e){mt(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=vt(e):this._emitCodePoint(e):(e===w.SEMICOLON&&this._err("unknown-named-character-reference"),this._reconsumeInState(this.returnState))}[it](e){this.charRefCode=0,e===w.LATIN_SMALL_X||e===w.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=at):this._reconsumeInState(ot)}[at](e){(e=>dt(e)||gt(e)||ht(e))(e)?this._reconsumeInState(st):(this._err(T),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[ot](e){dt(e)?this._reconsumeInState(ct):(this._err(T),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[st](e){gt(e)?this.charRefCode=16*this.charRefCode+e-55:ht(e)?this.charRefCode=16*this.charRefCode+e-87:dt(e)?this.charRefCode=16*this.charRefCode+e-48:e===w.SEMICOLON?this.state=lt:(this._err(l),this._reconsumeInState(lt))}[ct](e){dt(e)?this.charRefCode=10*this.charRefCode+e-48:e===w.SEMICOLON?this.state=lt:(this._err(l),this._reconsumeInState(lt))}[lt](){if(this.charRefCode===w.NULL)this._err("null-character-reference"),this.charRefCode=w.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err("character-reference-outside-unicode-range"),this.charRefCode=w.REPLACEMENT_CHARACTER;else if(i(this.charRefCode))this._err("surrogate-character-reference"),this.charRefCode=w.REPLACEMENT_CHARACTER;else if(o(this.charRefCode))this._err("noncharacter-character-reference");else if(a(this.charRefCode)||this.charRefCode===w.CARRIAGE_RETURN){this._err("control-character-reference");const e=L[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Et.CHARACTER_TOKEN="CHARACTER_TOKEN",Et.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Et.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Et.START_TAG_TOKEN="START_TAG_TOKEN",Et.END_TAG_TOKEN="END_TAG_TOKEN",Et.COMMENT_TOKEN="COMMENT_TOKEN",Et.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Et.EOF_TOKEN="EOF_TOKEN",Et.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Et.MODE={DATA:B,RCDATA:j,RAWTEXT:U,SCRIPT_DATA:V,PLAINTEXT:z},Et.getTokenAttr=(e,t)=>{for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null};var St=Et;function Dt(e,t,r){return e(r={path:t,exports:{},require:(e,t)=>(()=>{throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})()},r.exports),r.exports}var Tt=Dt(((e,t)=>{const r=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const n=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[r.HTML]:{[n.ADDRESS]:!0,[n.APPLET]:!0,[n.AREA]:!0,[n.ARTICLE]:!0,[n.ASIDE]:!0,[n.BASE]:!0,[n.BASEFONT]:!0,[n.BGSOUND]:!0,[n.BLOCKQUOTE]:!0,[n.BODY]:!0,[n.BR]:!0,[n.BUTTON]:!0,[n.CAPTION]:!0,[n.CENTER]:!0,[n.COL]:!0,[n.COLGROUP]:!0,[n.DD]:!0,[n.DETAILS]:!0,[n.DIR]:!0,[n.DIV]:!0,[n.DL]:!0,[n.DT]:!0,[n.EMBED]:!0,[n.FIELDSET]:!0,[n.FIGCAPTION]:!0,[n.FIGURE]:!0,[n.FOOTER]:!0,[n.FORM]:!0,[n.FRAME]:!0,[n.FRAMESET]:!0,[n.H1]:!0,[n.H2]:!0,[n.H3]:!0,[n.H4]:!0,[n.H5]:!0,[n.H6]:!0,[n.HEAD]:!0,[n.HEADER]:!0,[n.HGROUP]:!0,[n.HR]:!0,[n.HTML]:!0,[n.IFRAME]:!0,[n.IMG]:!0,[n.INPUT]:!0,[n.LI]:!0,[n.LINK]:!0,[n.LISTING]:!0,[n.MAIN]:!0,[n.MARQUEE]:!0,[n.MENU]:!0,[n.META]:!0,[n.NAV]:!0,[n.NOEMBED]:!0,[n.NOFRAMES]:!0,[n.NOSCRIPT]:!0,[n.OBJECT]:!0,[n.OL]:!0,[n.P]:!0,[n.PARAM]:!0,[n.PLAINTEXT]:!0,[n.PRE]:!0,[n.SCRIPT]:!0,[n.SECTION]:!0,[n.SELECT]:!0,[n.SOURCE]:!0,[n.STYLE]:!0,[n.SUMMARY]:!0,[n.TABLE]:!0,[n.TBODY]:!0,[n.TD]:!0,[n.TEMPLATE]:!0,[n.TEXTAREA]:!0,[n.TFOOT]:!0,[n.TH]:!0,[n.THEAD]:!0,[n.TITLE]:!0,[n.TR]:!0,[n.TRACK]:!0,[n.UL]:!0,[n.WBR]:!0,[n.XMP]:!0},[r.MATHML]:{[n.MI]:!0,[n.MO]:!0,[n.MN]:!0,[n.MS]:!0,[n.MTEXT]:!0,[n.ANNOTATION_XML]:!0},[r.SVG]:{[n.TITLE]:!0,[n.FOREIGN_OBJECT]:!0,[n.DESC]:!0}}}));const Ct=Tt.TAG_NAMES,kt=Tt.NAMESPACES;function At(e){switch(e.length){case 1:return e===Ct.P;case 2:return e===Ct.RB||e===Ct.RP||e===Ct.RT||e===Ct.DD||e===Ct.DT||e===Ct.LI;case 3:return e===Ct.RTC;case 6:return e===Ct.OPTION;case 8:return e===Ct.OPTGROUP}return!1}function Nt(e){switch(e.length){case 1:return e===Ct.P;case 2:return e===Ct.RB||e===Ct.RP||e===Ct.RT||e===Ct.DD||e===Ct.DT||e===Ct.LI||e===Ct.TD||e===Ct.TH||e===Ct.TR;case 3:return e===Ct.RTC;case 5:return e===Ct.TBODY||e===Ct.TFOOT||e===Ct.THEAD;case 6:return e===Ct.OPTION;case 7:return e===Ct.CAPTION;case 8:return e===Ct.OPTGROUP||e===Ct.COLGROUP}return!1}function wt(e,t){switch(e.length){case 2:if(e===Ct.TD||e===Ct.TH)return t===kt.HTML;if(e===Ct.MI||e===Ct.MO||e===Ct.MN||e===Ct.MS)return t===kt.MATHML;break;case 4:if(e===Ct.HTML)return t===kt.HTML;if(e===Ct.DESC)return t===kt.SVG;break;case 5:if(e===Ct.TABLE)return t===kt.HTML;if(e===Ct.MTEXT)return t===kt.MATHML;if(e===Ct.TITLE)return t===kt.SVG;break;case 6:return(e===Ct.APPLET||e===Ct.OBJECT)&&t===kt.HTML;case 7:return(e===Ct.CAPTION||e===Ct.MARQUEE)&&t===kt.HTML;case 8:return e===Ct.TEMPLATE&&t===kt.HTML;case 13:return e===Ct.FOREIGN_OBJECT&&t===kt.SVG;case 14:return e===Ct.ANNOTATION_XML&&t===kt.MATHML}return!1}class Ft{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===Ft.MARKER_ENTRY)break;const o=a.element,s=this.treeAdapter.getAttrList(o);this.treeAdapter.getTagName(o)===n&&this.treeAdapter.getNamespaceURI(o)===i&&s.length===r&&t.push({idx:e,attrs:s})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let r=t.length;if(r){const n=this.treeAdapter.getAttrList(e),i=n.length,a=Object.create(null);for(let e=0;e<i;e++){const t=n[e];a[t.name]=t.value}for(let e=0;e<i;e++)for(let n=0;n<r;n++){const i=t[n].attrs[e];if(a[i.name]!==i.value&&(t.splice(n,1),r--),t.length<3)return}for(let e=r-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:Ft.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:Ft.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Ft.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===Ft.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===Ft.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===Ft.ELEMENT_ENTRY&&r.element===e)return r}return null}}Ft.MARKER_ENTRY="MARKER_ENTRY",Ft.ELEMENT_ENTRY="ELEMENT_ENTRY";var Pt=Ft;class It{constructor(e){const t={},r=this._getOverriddenMethods(this,t);for(const n of Object.keys(r))"function"==typeof r[n]&&(t[n]=e[n],e[n]=r[n])}_getOverriddenMethods(){throw new Error("Not implemented")}}It.install=(e,t,r)=>{e.__mixins||(e.__mixins=[]);for(let r=0;r<e.__mixins.length;r++)if(e.__mixins[r].constructor===t)return e.__mixins[r];const n=new t(e,r);return e.__mixins.push(n),n};var Ot=It,Mt=class extends Ot{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const r=this.pos+1,n=this.html[r];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=r),("\n"===n||"\r"===n&&"\n"!==this.html[r+1])&&(e.isEol=!0),e.col=r-e.lineStartPos+1,e.offset=e.droppedBufferSize+r,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const r=this.pos;t.dropParsedChunk.call(this);const n=r-this.pos;e.lineStartPos-=n,e.droppedBufferSize+=n,e.offset=e.droppedBufferSize+this.pos}}}},Rt=class extends Ot{constructor(e){super(e),this.tokenizer=e,this.posTracker=Ot.install(e.preprocessor,Mt),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const r={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(r){t._createDoctypeToken.call(this,r),this.currentToken.location=e.ctLoc},_createCharacterToken(r,n){t._createCharacterToken.call(this,r,n),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(r){t._createAttr.call(this,r),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(r){t._leaveAttrName.call(this,r),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(r){t._leaveAttrValue.call(this,r),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const r=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentToken.type===St.EOF_TOKEN?(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset):(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col+1,r.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const r=this.currentCharacterToken&&this.currentCharacterToken.location;r&&-1===r.endOffset&&(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col,r.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(St.MODE).forEach((n=>{const i=St.MODE[n];r[i]=function(r){e.ctLoc=e._getCurrentLocation(),t[i].call(this,r)}})),r}},Lt=class extends Ot{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(r){e.onItemPop(this.current),t.remove.call(this,r)}}}};const Bt=Tt.TAG_NAMES;var jt=class extends Ot{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),i={};t.type===St.END_TAG_TOKEN&&n===t.tagName?(i.endTag=Object.assign({},r),i.endLine=r.endLine,i.endCol=r.endCol,i.endOffset=r.endOffset):(i.endLine=r.startLine,i.endCol=r.startCol,i.endOffset=r.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const i=Ot.install(this.tokenizer,Rt);e.posTracker=i.posTracker,Ot.install(this.openElements,Lt,{onItemPop(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(r){t._runParsingLoop.call(this,r);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(r){e.currentToken=r,t._processTokenInForeignContent.call(this,r)},_processToken(r){if(e.currentToken=r,t._processToken.call(this,r),r.type===St.END_TAG_TOKEN&&(r.tagName===Bt.HTML||r.tagName===Bt.BODY&&this.openElements.hasInScope(Bt.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];if(this.treeAdapter.getTagName(n)===r.tagName){e._setEndLocation(n,r);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const r=this.treeAdapter.getChildNodes(this.document),n=r.length;for(let t=0;t<n;t++){const n=r[t];if(this.treeAdapter.isDocumentTypeNode(n)){this.treeAdapter.setNodeSourceCodeLocation(n,e.location);break}}},_attachElementToTree(r){e._setStartLocation(r),e.lastStartTagToken=null,t._attachElementToTree.call(this,r)},_appendElement(r,n){e.lastStartTagToken=r,t._appendElement.call(this,r,n)},_insertElement(r,n){e.lastStartTagToken=r,t._insertElement.call(this,r,n)},_insertTemplate(r){e.lastStartTagToken=r,t._insertTemplate.call(this,r);const n=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(n,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,r){t._appendCommentNode.call(this,e,r);const n=this.treeAdapter.getChildNodes(r),i=n[n.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(r){t._insertCharacters.call(this,r);const n=this._shouldFosterParentOnInsertion(),i=n&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,a=this.treeAdapter.getChildNodes(i),o=n&&e.lastFosterParentingLocation.beforeElement?a.indexOf(e.lastFosterParentingLocation.beforeElement)-1:a.length-1,s=a[o];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:n}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:n})}else this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}}}},Ut=class extends Ot{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}},Vt=class extends Ut{constructor(e,t){super(e,t),this.posTracker=Ot.install(e,Mt),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}},zt=class extends Ut{constructor(e,t){super(e,t);const r=Ot.install(e.preprocessor,Vt,t);this.posTracker=r.posTracker}},Kt=class extends Ut{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),Ot.install(this.tokenizer,zt,e.opts),Ot.install(this.tokenizer,Rt)},_processInputToken(r){e.ctLoc=r.location,t._processInputToken.call(this,r)},_err(t,r){e.locBeforeToken=r&&r.beforeToken,e._reportError(t)}}}},Wt=Dt(((e,t)=>{const{DOCUMENT_MODE:r}=Tt;t.createDocument=()=>({nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}),t.createDocumentFragment=()=>({nodeName:"#document-fragment",childNodes:[]}),t.createElement=(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),t.createCommentNode=e=>({nodeName:"#comment",data:e,parentNode:null});const n=e=>({nodeName:"#text",value:e,parentNode:null}),i=t.appendChild=(e,t)=>{e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=(e,t,r)=>{const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e};t.setTemplateContent=(e,t)=>{e.content=t},t.getTemplateContent=e=>e.content,t.setDocumentType=(e,t,r,n)=>{let a=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){a=e.childNodes[t];break}a?(a.name=t,a.publicId=r,a.systemId=n):i(e,{nodeName:"#documentType",name:t,publicId:r,systemId:n})},t.setDocumentMode=(e,t)=>{e.mode=t},t.getDocumentMode=e=>e.mode,t.detachNode=e=>{if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=(e,t)=>{if(e.childNodes.length){const r=e.childNodes[e.childNodes.length-1];if("#text"===r.nodeName)return void(r.value+=t)}i(e,n(t))},t.insertTextBefore=(e,t,r)=>{const i=e.childNodes[e.childNodes.indexOf(r)-1];i&&"#text"===i.nodeName?i.value+=t:a(e,n(t),r)},t.adoptAttributes=(e,t)=>{const r=[];for(let t=0;t<e.attrs.length;t++)r.push(e.attrs[t].name);for(let n=0;n<t.length;n++)-1===r.indexOf(t[n].name)&&e.attrs.push(t[n])},t.getFirstChild=e=>e.childNodes[0],t.getChildNodes=e=>e.childNodes,t.getParentNode=e=>e.parentNode,t.getAttrList=e=>e.attrs,t.getTagName=e=>e.tagName,t.getNamespaceURI=e=>e.namespaceURI,t.getTextNodeContent=e=>e.value,t.getCommentNodeContent=e=>e.data,t.getDocumentTypeNodeName=e=>e.name,t.getDocumentTypeNodePublicId=e=>e.publicId,t.getDocumentTypeNodeSystemId=e=>e.systemId,t.isTextNode=e=>"#text"===e.nodeName,t.isCommentNode=e=>"#comment"===e.nodeName,t.isDocumentTypeNode=e=>"#documentType"===e.nodeName,t.isElementNode=e=>!!e.tagName,t.setNodeSourceCodeLocation=(e,t)=>{e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=e=>e.sourceCodeLocation,t.updateNodeSourceCodeLocation=(e,t)=>{e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)}}));const{DOCUMENT_MODE:Ht}=Tt,Jt="html",$t=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Gt=$t.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),qt=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],Xt=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Yt=Xt.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Qt(e,t){for(let r=0;r<t.length;r++)if(0===e.indexOf(t[r]))return!0;return!1}var Zt=Dt(((e,t)=>{const r=Tt.TAG_NAMES,n=Tt.NAMESPACES,i=Tt.ATTRS,a={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},o={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:n.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:n.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:n.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:n.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:n.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:n.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:n.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:n.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:n.XML},"xml:space":{prefix:"xml",name:"space",namespace:n.XML},xmlns:{prefix:"",name:"xmlns",namespace:n.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:n.XMLNS}},s=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},c={[r.B]:!0,[r.BIG]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.CENTER]:!0,[r.CODE]:!0,[r.DD]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EM]:!0,[r.EMBED]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HR]:!0,[r.I]:!0,[r.IMG]:!0,[r.LI]:!0,[r.LISTING]:!0,[r.MENU]:!0,[r.META]:!0,[r.NOBR]:!0,[r.OL]:!0,[r.P]:!0,[r.PRE]:!0,[r.RUBY]:!0,[r.S]:!0,[r.SMALL]:!0,[r.SPAN]:!0,[r.STRONG]:!0,[r.STRIKE]:!0,[r.SUB]:!0,[r.SUP]:!0,[r.TABLE]:!0,[r.TT]:!0,[r.U]:!0,[r.UL]:!0,[r.VAR]:!0};t.causesExit=e=>{const t=e.tagName;return!(t!==r.FONT||null===St.getTokenAttr(e,i.COLOR)&&null===St.getTokenAttr(e,i.SIZE)&&null===St.getTokenAttr(e,i.FACE))||c[t]},t.adjustTokenMathMLAttrs=e=>{for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=e=>{for(let t=0;t<e.attrs.length;t++){const r=a[e.attrs[t].name];r&&(e.attrs[t].name=r)}},t.adjustTokenXMLAttrs=e=>{for(let t=0;t<e.attrs.length;t++){const r=o[e.attrs[t].name];r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}},t.adjustTokenSVGTagName=e=>{const t=s[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=(e,t,a,o)=>!(o&&o!==n.HTML||!((e,t,a)=>{if(t===n.MATHML&&e===r.ANNOTATION_XML)for(let e=0;e<a.length;e++)if(a[e].name===i.ENCODING){const t=a[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===n.SVG&&(e===r.FOREIGN_OBJECT||e===r.DESC||e===r.TITLE)})(e,t,a))||!(o&&o!==n.MATHML||!((e,t)=>t===n.MATHML&&(e===r.MI||e===r.MO||e===r.MN||e===r.MS||e===r.MTEXT))(e,t))}));const er=Tt.TAG_NAMES,tr=Tt.NAMESPACES,rr=Tt.ATTRS,nr={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:Wt},ir="hidden",ar="INITIAL_MODE",or="BEFORE_HTML_MODE",sr="BEFORE_HEAD_MODE",cr="IN_HEAD_MODE",lr="IN_HEAD_NO_SCRIPT_MODE",ur="AFTER_HEAD_MODE",dr="IN_BODY_MODE",pr="TEXT_MODE",_r="IN_TABLE_MODE",fr="IN_TABLE_TEXT_MODE",mr="IN_CAPTION_MODE",gr="IN_COLUMN_GROUP_MODE",hr="IN_TABLE_BODY_MODE",yr="IN_ROW_MODE",vr="IN_CELL_MODE",br="IN_SELECT_MODE",xr="IN_SELECT_IN_TABLE_MODE",Er="IN_TEMPLATE_MODE",Sr="AFTER_BODY_MODE",Dr="IN_FRAMESET_MODE",Tr="AFTER_FRAMESET_MODE",Cr="AFTER_AFTER_BODY_MODE",kr="AFTER_AFTER_FRAMESET_MODE",Ar={[er.TR]:yr,[er.TBODY]:hr,[er.THEAD]:hr,[er.TFOOT]:hr,[er.CAPTION]:mr,[er.COLGROUP]:gr,[er.TABLE]:_r,[er.BODY]:dr,[er.FRAMESET]:Dr},Nr={[er.CAPTION]:_r,[er.COLGROUP]:_r,[er.TBODY]:_r,[er.TFOOT]:_r,[er.THEAD]:_r,[er.COL]:gr,[er.TR]:hr,[er.TD]:yr,[er.TH]:yr},wr={[ar]:{[St.CHARACTER_TOKEN]:Hr,[St.NULL_CHARACTER_TOKEN]:Hr,[St.WHITESPACE_CHARACTER_TOKEN]:jr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN](e,t){e._setDocumentType(t);const r=t.forceQuirks?Tt.DOCUMENT_MODE.QUIRKS:(e=>{if(e.name!==Jt)return Ht.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Ht.QUIRKS;let r=e.publicId;if(null!==r){if(r=r.toLowerCase(),qt.indexOf(r)>-1)return Ht.QUIRKS;let e=null===t?Gt:$t;if(Qt(r,e))return Ht.QUIRKS;if(e=null===t?Xt:Yt,Qt(r,e))return Ht.LIMITED_QUIRKS}return Ht.NO_QUIRKS})(t);(e=>e.name===Jt&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId))(t)||e._err("non-conforming-doctype"),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=or},[St.START_TAG_TOKEN]:Hr,[St.END_TAG_TOKEN]:Hr,[St.EOF_TOKEN]:Hr},[or]:{[St.CHARACTER_TOKEN]:Jr,[St.NULL_CHARACTER_TOKEN]:Jr,[St.WHITESPACE_CHARACTER_TOKEN]:jr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){t.tagName===er.HTML?(e._insertElement(t,tr.HTML),e.insertionMode=sr):Jr(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r!==er.HTML&&r!==er.HEAD&&r!==er.BODY&&r!==er.BR||Jr(e,t)},[St.EOF_TOKEN]:Jr},[sr]:{[St.CHARACTER_TOKEN]:$r,[St.NULL_CHARACTER_TOKEN]:$r,[St.WHITESPACE_CHARACTER_TOKEN]:jr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:Ur,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.HEAD?(e._insertElement(t,tr.HTML),e.headElement=e.openElements.current,e.insertionMode=cr):$r(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.HEAD||r===er.BODY||r===er.HTML||r===er.BR?$r(e,t):e._err(C)},[St.EOF_TOKEN]:$r},[cr]:{[St.CHARACTER_TOKEN]:Xr,[St.NULL_CHARACTER_TOKEN]:Xr,[St.WHITESPACE_CHARACTER_TOKEN]:Kr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:Ur,[St.START_TAG_TOKEN]:Gr,[St.END_TAG_TOKEN]:qr,[St.EOF_TOKEN]:Xr},[lr]:{[St.CHARACTER_TOKEN]:Yr,[St.NULL_CHARACTER_TOKEN]:Yr,[St.WHITESPACE_CHARACTER_TOKEN]:Kr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:Ur,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.BASEFONT||r===er.BGSOUND||r===er.HEAD||r===er.LINK||r===er.META||r===er.NOFRAMES||r===er.STYLE?Gr(e,t):r===er.NOSCRIPT?e._err("nested-noscript-in-head"):Yr(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.NOSCRIPT?(e.openElements.pop(),e.insertionMode=cr):r===er.BR?Yr(e,t):e._err(C)},[St.EOF_TOKEN]:Yr},[ur]:{[St.CHARACTER_TOKEN]:Qr,[St.NULL_CHARACTER_TOKEN]:Qr,[St.WHITESPACE_CHARACTER_TOKEN]:Kr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:Ur,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.BODY?(e._insertElement(t,tr.HTML),e.framesetOk=!1,e.insertionMode=dr):r===er.FRAMESET?(e._insertElement(t,tr.HTML),e.insertionMode=Dr):r===er.BASE||r===er.BASEFONT||r===er.BGSOUND||r===er.LINK||r===er.META||r===er.NOFRAMES||r===er.SCRIPT||r===er.STYLE||r===er.TEMPLATE||r===er.TITLE?(e._err("abandoned-head-element-child"),e.openElements.push(e.headElement),Gr(e,t),e.openElements.remove(e.headElement)):r===er.HEAD?e._err(k):Qr(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.BODY||r===er.HTML||r===er.BR?Qr(e,t):r===er.TEMPLATE?qr(e,t):e._err(C)},[St.EOF_TOKEN]:Qr},[dr]:{[St.CHARACTER_TOKEN]:en,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN]:pn,[St.END_TAG_TOKEN]:gn,[St.EOF_TOKEN]:hn},[pr]:{[St.CHARACTER_TOKEN]:Kr,[St.NULL_CHARACTER_TOKEN]:Kr,[St.WHITESPACE_CHARACTER_TOKEN]:Kr,[St.COMMENT_TOKEN]:jr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN]:jr,[St.END_TAG_TOKEN](e,t){t.tagName===er.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[St.EOF_TOKEN](e,t){e._err("eof-in-element-that-can-contain-only-text"),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[_r]:{[St.CHARACTER_TOKEN]:yn,[St.NULL_CHARACTER_TOKEN]:yn,[St.WHITESPACE_CHARACTER_TOKEN]:yn,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN]:vn,[St.END_TAG_TOKEN]:bn,[St.EOF_TOKEN]:hn},[fr]:{[St.CHARACTER_TOKEN](e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN](e,t){e.pendingCharacterTokens.push(t)},[St.COMMENT_TOKEN]:En,[St.DOCTYPE_TOKEN]:En,[St.START_TAG_TOKEN]:En,[St.END_TAG_TOKEN]:En,[St.EOF_TOKEN]:En},[mr]:{[St.CHARACTER_TOKEN]:en,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.CAPTION||r===er.COL||r===er.COLGROUP||r===er.TBODY||r===er.TD||r===er.TFOOT||r===er.TH||r===er.THEAD||r===er.TR?e.openElements.hasInTableScope(er.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(er.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_r,e._processToken(t)):pn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.CAPTION||r===er.TABLE?e.openElements.hasInTableScope(er.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(er.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_r,r===er.TABLE&&e._processToken(t)):r!==er.BODY&&r!==er.COL&&r!==er.COLGROUP&&r!==er.HTML&&r!==er.TBODY&&r!==er.TD&&r!==er.TFOOT&&r!==er.TH&&r!==er.THEAD&&r!==er.TR&&gn(e,t)},[St.EOF_TOKEN]:hn},[gr]:{[St.CHARACTER_TOKEN]:Sn,[St.NULL_CHARACTER_TOKEN]:Sn,[St.WHITESPACE_CHARACTER_TOKEN]:Kr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.COL?(e._appendElement(t,tr.HTML),t.ackSelfClosing=!0):r===er.TEMPLATE?Gr(e,t):Sn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.COLGROUP?e.openElements.currentTagName===er.COLGROUP&&(e.openElements.pop(),e.insertionMode=_r):r===er.TEMPLATE?qr(e,t):r!==er.COL&&Sn(e,t)},[St.EOF_TOKEN]:hn},[hr]:{[St.CHARACTER_TOKEN]:yn,[St.NULL_CHARACTER_TOKEN]:yn,[St.WHITESPACE_CHARACTER_TOKEN]:yn,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,tr.HTML),e.insertionMode=yr):r===er.TH||r===er.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(er.TR),e.insertionMode=yr,e._processToken(t)):r===er.CAPTION||r===er.COL||r===er.COLGROUP||r===er.TBODY||r===er.TFOOT||r===er.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_r,e._processToken(t)):vn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.TBODY||r===er.TFOOT||r===er.THEAD?e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_r):r===er.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_r,e._processToken(t)):(r!==er.BODY&&r!==er.CAPTION&&r!==er.COL&&r!==er.COLGROUP||r!==er.HTML&&r!==er.TD&&r!==er.TH&&r!==er.TR)&&bn(e,t)},[St.EOF_TOKEN]:hn},[yr]:{[St.CHARACTER_TOKEN]:yn,[St.NULL_CHARACTER_TOKEN]:yn,[St.WHITESPACE_CHARACTER_TOKEN]:yn,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.TH||r===er.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,tr.HTML),e.insertionMode=vr,e.activeFormattingElements.insertMarker()):r===er.CAPTION||r===er.COL||r===er.COLGROUP||r===er.TBODY||r===er.TFOOT||r===er.THEAD||r===er.TR?e.openElements.hasInTableScope(er.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=hr,e._processToken(t)):vn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.TR?e.openElements.hasInTableScope(er.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=hr):r===er.TABLE?e.openElements.hasInTableScope(er.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=hr,e._processToken(t)):r===er.TBODY||r===er.TFOOT||r===er.THEAD?(e.openElements.hasInTableScope(r)||e.openElements.hasInTableScope(er.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=hr,e._processToken(t)):(r!==er.BODY&&r!==er.CAPTION&&r!==er.COL&&r!==er.COLGROUP||r!==er.HTML&&r!==er.TD&&r!==er.TH)&&bn(e,t)},[St.EOF_TOKEN]:hn},[vr]:{[St.CHARACTER_TOKEN]:en,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.CAPTION||r===er.COL||r===er.COLGROUP||r===er.TBODY||r===er.TD||r===er.TFOOT||r===er.TH||r===er.THEAD||r===er.TR?(e.openElements.hasInTableScope(er.TD)||e.openElements.hasInTableScope(er.TH))&&(e._closeTableCell(),e._processToken(t)):pn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.TD||r===er.TH?e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=yr):r===er.TABLE||r===er.TBODY||r===er.TFOOT||r===er.THEAD||r===er.TR?e.openElements.hasInTableScope(r)&&(e._closeTableCell(),e._processToken(t)):r!==er.BODY&&r!==er.CAPTION&&r!==er.COL&&r!==er.COLGROUP&&r!==er.HTML&&gn(e,t)},[St.EOF_TOKEN]:hn},[br]:{[St.CHARACTER_TOKEN]:Kr,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Kr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN]:Dn,[St.END_TAG_TOKEN]:Tn,[St.EOF_TOKEN]:hn},[xr]:{[St.CHARACTER_TOKEN]:Kr,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Kr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.CAPTION||r===er.TABLE||r===er.TBODY||r===er.TFOOT||r===er.THEAD||r===er.TR||r===er.TD||r===er.TH?(e.openElements.popUntilTagNamePopped(er.SELECT),e._resetInsertionMode(),e._processToken(t)):Dn(e,t)},[St.END_TAG_TOKEN](e,t){const r=t.tagName;r===er.CAPTION||r===er.TABLE||r===er.TBODY||r===er.TFOOT||r===er.THEAD||r===er.TR||r===er.TD||r===er.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(er.SELECT),e._resetInsertionMode(),e._processToken(t)):Tn(e,t)},[St.EOF_TOKEN]:hn},[Er]:{[St.CHARACTER_TOKEN]:en,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;if(r===er.BASE||r===er.BASEFONT||r===er.BGSOUND||r===er.LINK||r===er.META||r===er.NOFRAMES||r===er.SCRIPT||r===er.STYLE||r===er.TEMPLATE||r===er.TITLE)Gr(e,t);else{const n=Nr[r]||dr;e._popTmplInsertionMode(),e._pushTmplInsertionMode(n),e.insertionMode=n,e._processToken(t)}},[St.END_TAG_TOKEN](e,t){t.tagName===er.TEMPLATE&&qr(e,t)},[St.EOF_TOKEN]:Cn},[Sr]:{[St.CHARACTER_TOKEN]:kn,[St.NULL_CHARACTER_TOKEN]:kn,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN](e,t){e._appendCommentNode(t,e.openElements.items[0])},[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){t.tagName===er.HTML?pn(e,t):kn(e,t)},[St.END_TAG_TOKEN](e,t){t.tagName===er.HTML?e.fragmentContext||(e.insertionMode=Cr):kn(e,t)},[St.EOF_TOKEN]:Wr},[Dr]:{[St.CHARACTER_TOKEN]:jr,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Kr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.FRAMESET?e._insertElement(t,tr.HTML):r===er.FRAME?(e._appendElement(t,tr.HTML),t.ackSelfClosing=!0):r===er.NOFRAMES&&Gr(e,t)},[St.END_TAG_TOKEN](e,t){t.tagName!==er.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===er.FRAMESET||(e.insertionMode=Tr))},[St.EOF_TOKEN]:Wr},[Tr]:{[St.CHARACTER_TOKEN]:jr,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Kr,[St.COMMENT_TOKEN]:Vr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.NOFRAMES&&Gr(e,t)},[St.END_TAG_TOKEN](e,t){t.tagName===er.HTML&&(e.insertionMode=kr)},[St.EOF_TOKEN]:Wr},[Cr]:{[St.CHARACTER_TOKEN]:An,[St.NULL_CHARACTER_TOKEN]:An,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:zr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){t.tagName===er.HTML?pn(e,t):An(e,t)},[St.END_TAG_TOKEN]:An,[St.EOF_TOKEN]:Wr},[kr]:{[St.CHARACTER_TOKEN]:jr,[St.NULL_CHARACTER_TOKEN]:jr,[St.WHITESPACE_CHARACTER_TOKEN]:Zr,[St.COMMENT_TOKEN]:zr,[St.DOCTYPE_TOKEN]:jr,[St.START_TAG_TOKEN](e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.NOFRAMES&&Gr(e,t)},[St.END_TAG_TOKEN]:jr,[St.EOF_TOKEN]:Wr}};var Fr=class{constructor(e){this.options=((e,t)=>[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((r=>{e[r]=t[r]})),e)),Object.create(null)))(nr,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Ot.install(this,jt),this.options.onParseError&&Ot.install(this,Kt,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(er.TEMPLATE,tr.HTML,[]));const r=this.treeAdapter.createElement("documentmock",tr.HTML,[]);this._bootstrap(r,t),this.treeAdapter.getTagName(t)===er.TEMPLATE&&this._pushTmplInsertionMode(Er),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const n=this.treeAdapter.getFirstChild(r),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,i),i}_bootstrap(e,t){this.tokenizer=new St(this.options),this.stopped=!1,this.insertionMode=ar,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===e){t=r;break}return t}_isInTemplate(){return this.currentTagName===Ct.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===kt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const r=this._indexOf(e)+1;this.items.splice(r,0,t),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&r===kt.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===Ct.H1||e===Ct.H2||e===Ct.H3||e===Ct.H4||e===Ct.H5||e===Ct.H6&&t===kt.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===Ct.TD||e===Ct.TH&&t===kt.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Ct.TABLE&&this.currentTagName!==Ct.TEMPLATE&&this.currentTagName!==Ct.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Ct.TBODY&&this.currentTagName!==Ct.TFOOT&&this.currentTagName!==Ct.THEAD&&this.currentTagName!==Ct.TEMPLATE&&this.currentTagName!==Ct.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Ct.TR&&this.currentTagName!==Ct.TEMPLATE&&this.currentTagName!==Ct.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===Ct.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===Ct.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===kt.HTML)return!0;if(wt(r,n))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===Ct.H1||t===Ct.H2||t===Ct.H3||t===Ct.H4||t===Ct.H5||t===Ct.H6)&&r===kt.HTML)return!0;if(wt(t,r))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===kt.HTML)return!0;if((r===Ct.UL||r===Ct.OL)&&n===kt.HTML||wt(r,n))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===kt.HTML)return!0;if(r===Ct.BUTTON&&n===kt.HTML||wt(r,n))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===kt.HTML){if(r===e)return!0;if(r===Ct.TABLE||r===Ct.TEMPLATE||r===Ct.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===kt.HTML){if(t===Ct.TBODY||t===Ct.THEAD||t===Ct.TFOOT)return!0;if(t===Ct.TABLE||t===Ct.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===kt.HTML){if(r===e)return!0;if(r!==Ct.OPTION&&r!==Ct.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;At(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Nt(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;At(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}(this.document,this.treeAdapter),this.activeFormattingElements=new Pt(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===St.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===St.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==tr.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,tr.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=pr}switchToPlaintextParsing(){this.insertionMode=pr,this.originalInsertionMode=dr,this.tokenizer.state=St.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===er.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===tr.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===er.TITLE||e===er.TEXTAREA?this.tokenizer.state=St.MODE.RCDATA:e===er.STYLE||e===er.XMP||e===er.IFRAME||e===er.NOEMBED||e===er.NOFRAMES||e===er.NOSCRIPT?this.tokenizer.state=St.MODE.RAWTEXT:e===er.SCRIPT?this.tokenizer.state=St.MODE.SCRIPT_DATA:e===er.PLAINTEXT&&(this.tokenizer.state=St.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,r,n)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,tr.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,tr.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(er.HTML,tr.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(t);if(r===tr.HTML)return!1;if(this.treeAdapter.getTagName(t)===er.ANNOTATION_XML&&r===tr.MATHML&&e.type===St.START_TAG_TOKEN&&e.tagName===er.SVG)return!1;const n=e.type===St.CHARACTER_TOKEN||e.type===St.NULL_CHARACTER_TOKEN||e.type===St.WHITESPACE_CHARACTER_TOKEN;return!((e.type===St.START_TAG_TOKEN&&e.tagName!==er.MGLYPH&&e.tagName!==er.MALIGNMARK||n)&&this._isIntegrationPoint(t,tr.MATHML)||(e.type===St.START_TAG_TOKEN||n)&&this._isIntegrationPoint(t,tr.HTML)||e.type===St.EOF_TOKEN)}_processToken(e){wr[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){wr.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===St.CHARACTER_TOKEN?((e,t)=>{e._insertCharacters(t),e.framesetOk=!1})(this,e):e.type===St.NULL_CHARACTER_TOKEN?((e,t)=>{t.chars=r,e._insertCharacters(t)})(this,e):e.type===St.WHITESPACE_CHARACTER_TOKEN?Kr(this,e):e.type===St.COMMENT_TOKEN?Vr(this,e):e.type===St.START_TAG_TOKEN?((e,t)=>{if(Zt.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==tr.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===tr.MATHML?Zt.adjustTokenMathMLAttrs(t):n===tr.SVG&&(Zt.adjustTokenSVGTagName(t),Zt.adjustTokenSVGAttrs(t)),Zt.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}})(this,e):e.type===St.END_TAG_TOKEN&&((e,t)=>{for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===tr.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(n).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(n);break}}})(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===St.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err("non-void-html-element-start-tag-with-trailing-solidus")}_isIntegrationPoint(e,t){const r=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return Zt.isIntegrationPoint(r,n,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,r=null;do{if(t--,r=this.activeFormattingElements.entries[t],r.type===Pt.MARKER_ENTRY||this.openElements.contains(r.element)){t++;break}}while(t>0);for(let n=t;n<e;n++)r=this.activeFormattingElements.entries[n],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=yr}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(er.P),this.openElements.popUntilTagNamePopped(er.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let r=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(r=this.fragmentContext));const n=this.treeAdapter.getTagName(r),i=Ar[n];if(i){this.insertionMode=i;break}if(!(t||n!==er.TD&&n!==er.TH)){this.insertionMode=vr;break}if(!t&&n===er.HEAD){this.insertionMode=cr;break}if(n===er.SELECT){this._resetInsertionModeForSelect(e);break}if(n===er.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(n===er.HTML){this.insertionMode=this.headElement?ur:sr;break}if(t){this.insertionMode=dr;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],r=this.treeAdapter.getTagName(e);if(r===er.TEMPLATE)break;if(r===er.TABLE)return void(this.insertionMode=xr)}this.insertionMode=br}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===er.TABLE||t===er.TBODY||t===er.TFOOT||t===er.THEAD||t===er.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t],n=this.treeAdapter.getTagName(r),i=this.treeAdapter.getNamespaceURI(r);if(n===er.TEMPLATE&&i===tr.HTML){e.parent=this.treeAdapter.getTemplateContent(r);break}if(n===er.TABLE){e.parent=this.treeAdapter.getParentNode(r),e.parent?e.beforeElement=r:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);return Tt.SPECIAL_ELEMENTS[r][t]}};function Pr(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):mn(e,t),r}function Ir(e,t){let r=null;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i)&&(r=i)}return r||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),r}function Or(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==r;a++,o=i){i=e.openElements.getCommonAncestor(o);const r=e.activeFormattingElements.getElementEntry(o),s=r&&a>=3;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(o)):(o=Mr(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(o,n),n=o)}return n}function Mr(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Rr(e,t,r){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(r);else{const n=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);n===er.TEMPLATE&&i===tr.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Lr(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),i=r.token,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,r.token),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a)}function Br(e,t){let r;for(let n=0;n<8&&(r=Pr(e,t),r);n++){const t=Ir(e,r);if(!t)break;e.activeFormattingElements.bookmark=r;const n=Or(e,t,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),Rr(e,i,n),Lr(e,t,r)}}function jr(){}function Ur(e){e._err("misplaced-doctype")}function Vr(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function zr(e,t){e._appendCommentNode(t,e.document)}function Kr(e,t){e._insertCharacters(t)}function Wr(e){e.stopped=!0}function Hr(e,t){e._err("missing-doctype",{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,Tt.DOCUMENT_MODE.QUIRKS),e.insertionMode=or,e._processToken(t)}function Jr(e,t){e._insertFakeRootElement(),e.insertionMode=sr,e._processToken(t)}function $r(e,t){e._insertFakeElement(er.HEAD),e.headElement=e.openElements.current,e.insertionMode=cr,e._processToken(t)}function Gr(e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.BASE||r===er.BASEFONT||r===er.BGSOUND||r===er.LINK||r===er.META?(e._appendElement(t,tr.HTML),t.ackSelfClosing=!0):r===er.TITLE?e._switchToTextParsing(t,St.MODE.RCDATA):r===er.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,St.MODE.RAWTEXT):(e._insertElement(t,tr.HTML),e.insertionMode=lr):r===er.NOFRAMES||r===er.STYLE?e._switchToTextParsing(t,St.MODE.RAWTEXT):r===er.SCRIPT?e._switchToTextParsing(t,St.MODE.SCRIPT_DATA):r===er.TEMPLATE?(e._insertTemplate(t,tr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Er,e._pushTmplInsertionMode(Er)):r===er.HEAD?e._err(k):Xr(e,t)}function qr(e,t){const r=t.tagName;r===er.HEAD?(e.openElements.pop(),e.insertionMode=ur):r===er.BODY||r===er.BR||r===er.HTML?Xr(e,t):r===er.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==er.TEMPLATE&&e._err("closing-of-element-with-open-child-elements"),e.openElements.popUntilTagNamePopped(er.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(C)}function Xr(e,t){e.openElements.pop(),e.insertionMode=ur,e._processToken(t)}function Yr(e,t){const r=t.type===St.EOF_TOKEN?"open-elements-left-after-eof":"disallowed-content-in-noscript-in-head";e._err(r),e.openElements.pop(),e.insertionMode=cr,e._processToken(t)}function Qr(e,t){e._insertFakeElement(er.BODY),e.insertionMode=dr,e._processToken(t)}function Zr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function en(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function tn(e,t){e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML)}function rn(e,t){e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function nn(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function an(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function on(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,tr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function sn(e,t){e._appendElement(t,tr.HTML),t.ackSelfClosing=!0}function cn(e,t){e._switchToTextParsing(t,St.MODE.RAWTEXT)}function ln(e,t){e.openElements.currentTagName===er.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML)}function un(e,t){e.openElements.hasInScope(er.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,tr.HTML)}function dn(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML)}function pn(e,t){const r=t.tagName;switch(r.length){case 1:r===er.I||r===er.S||r===er.B||r===er.U?nn(e,t):r===er.P?tn(e,t):r===er.A?((e,t)=>{const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(er.A);r&&(Br(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)})(e,t):dn(e,t);break;case 2:r===er.DL||r===er.OL||r===er.UL?tn(e,t):r===er.H1||r===er.H2||r===er.H3||r===er.H4||r===er.H5||r===er.H6?((e,t)=>{e.openElements.hasInButtonScope(er.P)&&e._closePElement();const r=e.openElements.currentTagName;r!==er.H1&&r!==er.H2&&r!==er.H3&&r!==er.H4&&r!==er.H5&&r!==er.H6||e.openElements.pop(),e._insertElement(t,tr.HTML)})(e,t):r===er.LI||r===er.DD||r===er.DT?((e,t)=>{e.framesetOk=!1;const r=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.items[t],i=e.treeAdapter.getTagName(n);let a=null;if(r===er.LI&&i===er.LI?a=er.LI:r!==er.DD&&r!==er.DT||i!==er.DD&&i!==er.DT||(a=i),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(i!==er.ADDRESS&&i!==er.DIV&&i!==er.P&&e._isSpecialElement(n))break}e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML)})(e,t):r===er.EM||r===er.TT?nn(e,t):r===er.BR?on(e,t):r===er.HR?((e,t)=>{e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._appendElement(t,tr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0})(e,t):r===er.RB?un(e,t):r===er.RT||r===er.RP?((e,t)=>{e.openElements.hasInScope(er.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(er.RTC),e._insertElement(t,tr.HTML)})(e,t):r!==er.TH&&r!==er.TD&&r!==er.TR&&dn(e,t);break;case 3:r===er.DIV||r===er.DIR||r===er.NAV?tn(e,t):r===er.PRE?rn(e,t):r===er.BIG?nn(e,t):r===er.IMG||r===er.WBR?on(e,t):r===er.XMP?((e,t)=>{e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,St.MODE.RAWTEXT)})(e,t):r===er.SVG?((e,t)=>{e._reconstructActiveFormattingElements(),Zt.adjustTokenSVGAttrs(t),Zt.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,tr.SVG):e._insertElement(t,tr.SVG),t.ackSelfClosing=!0})(e,t):r===er.RTC?un(e,t):r!==er.COL&&dn(e,t);break;case 4:r===er.HTML?((e,t)=>{0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)})(e,t):r===er.BASE||r===er.LINK||r===er.META?Gr(e,t):r===er.BODY?((e,t)=>{const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))})(e,t):r===er.MAIN||r===er.MENU?tn(e,t):r===er.FORM?((e,t)=>{const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML),r||(e.formElement=e.openElements.current))})(e,t):r===er.CODE||r===er.FONT?nn(e,t):r===er.NOBR?((e,t)=>{e._reconstructActiveFormattingElements(),e.openElements.hasInScope(er.NOBR)&&(Br(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,tr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)})(e,t):r===er.AREA?on(e,t):r===er.MATH?((e,t)=>{e._reconstructActiveFormattingElements(),Zt.adjustTokenMathMLAttrs(t),Zt.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,tr.MATHML):e._insertElement(t,tr.MATHML),t.ackSelfClosing=!0})(e,t):r===er.MENU?((e,t)=>{e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML)})(e,t):r!==er.HEAD&&dn(e,t);break;case 5:r===er.STYLE||r===er.TITLE?Gr(e,t):r===er.ASIDE?tn(e,t):r===er.SMALL?nn(e,t):r===er.TABLE?((e,t)=>{e.treeAdapter.getDocumentMode(e.document)!==Tt.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML),e.framesetOk=!1,e.insertionMode=_r})(e,t):r===er.EMBED?on(e,t):r===er.INPUT?((e,t)=>{e._reconstructActiveFormattingElements(),e._appendElement(t,tr.HTML);const r=St.getTokenAttr(t,rr.TYPE);r&&r.toLowerCase()===ir||(e.framesetOk=!1),t.ackSelfClosing=!0})(e,t):r===er.PARAM||r===er.TRACK?sn(e,t):r===er.IMAGE?((e,t)=>{t.tagName=er.IMG,on(e,t)})(e,t):r!==er.FRAME&&r!==er.TBODY&&r!==er.TFOOT&&r!==er.THEAD&&dn(e,t);break;case 6:r===er.SCRIPT?Gr(e,t):r===er.CENTER||r===er.FIGURE||r===er.FOOTER||r===er.HEADER||r===er.HGROUP||r===er.DIALOG?tn(e,t):r===er.BUTTON?((e,t)=>{e.openElements.hasInScope(er.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(er.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML),e.framesetOk=!1})(e,t):r===er.STRIKE||r===er.STRONG?nn(e,t):r===er.APPLET||r===er.OBJECT?an(e,t):r===er.KEYGEN?on(e,t):r===er.SOURCE?sn(e,t):r===er.IFRAME?((e,t)=>{e.framesetOk=!1,e._switchToTextParsing(t,St.MODE.RAWTEXT)})(e,t):r===er.SELECT?((e,t)=>{e._reconstructActiveFormattingElements(),e._insertElement(t,tr.HTML),e.framesetOk=!1,e.insertionMode===_r||e.insertionMode===mr||e.insertionMode===hr||e.insertionMode===yr||e.insertionMode===vr?e.insertionMode=xr:e.insertionMode=br})(e,t):r===er.OPTION?ln(e,t):dn(e,t);break;case 7:r===er.BGSOUND?Gr(e,t):r===er.DETAILS||r===er.ADDRESS||r===er.ARTICLE||r===er.SECTION||r===er.SUMMARY?tn(e,t):r===er.LISTING?rn(e,t):r===er.MARQUEE?an(e,t):r===er.NOEMBED?cn(e,t):r!==er.CAPTION&&dn(e,t);break;case 8:r===er.BASEFONT?Gr(e,t):r===er.FRAMESET?((e,t)=>{const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,tr.HTML),e.insertionMode=Dr)})(e,t):r===er.FIELDSET?tn(e,t):r===er.TEXTAREA?((e,t)=>{e._insertElement(t,tr.HTML),e.skipNextNewLine=!0,e.tokenizer.state=St.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=pr})(e,t):r===er.TEMPLATE?Gr(e,t):r===er.NOSCRIPT?e.options.scriptingEnabled?cn(e,t):dn(e,t):r===er.OPTGROUP?ln(e,t):r!==er.COLGROUP&&dn(e,t);break;case 9:r===er.PLAINTEXT?((e,t)=>{e.openElements.hasInButtonScope(er.P)&&e._closePElement(),e._insertElement(t,tr.HTML),e.tokenizer.state=St.MODE.PLAINTEXT})(e,t):dn(e,t);break;case 10:r===er.BLOCKQUOTE||r===er.FIGCAPTION?tn(e,t):dn(e,t);break;default:dn(e,t)}}function _n(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function fn(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function mn(e,t){const r=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const n=e.openElements.items[t];if(e.treeAdapter.getTagName(n)===r){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilElementPopped(n);break}if(e._isSpecialElement(n))break}}function gn(e,t){const r=t.tagName;switch(r.length){case 1:r===er.A||r===er.B||r===er.I||r===er.S||r===er.U?Br(e,t):r===er.P?(e=>{e.openElements.hasInButtonScope(er.P)||e._insertFakeElement(er.P),e._closePElement()})(e):mn(e,t);break;case 2:r===er.DL||r===er.UL||r===er.OL?_n(e,t):r===er.LI?(e=>{e.openElements.hasInListItemScope(er.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(er.LI),e.openElements.popUntilTagNamePopped(er.LI))})(e):r===er.DD||r===er.DT?((e,t)=>{const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))})(e,t):r===er.H1||r===er.H2||r===er.H3||r===er.H4||r===er.H5||r===er.H6?(e=>{e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())})(e):r===er.BR?(e=>{e._reconstructActiveFormattingElements(),e._insertFakeElement(er.BR),e.openElements.pop(),e.framesetOk=!1})(e):r===er.EM||r===er.TT?Br(e,t):mn(e,t);break;case 3:r===er.BIG?Br(e,t):r===er.DIR||r===er.DIV||r===er.NAV||r===er.PRE?_n(e,t):mn(e,t);break;case 4:r===er.BODY?(e=>{e.openElements.hasInScope(er.BODY)&&(e.insertionMode=Sr)})(e):r===er.HTML?((e,t)=>{e.openElements.hasInScope(er.BODY)&&(e.insertionMode=Sr,e._processToken(t))})(e,t):r===er.FORM?(e=>{const t=e.openElements.tmplCount>0,r=e.formElement;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(er.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(er.FORM):e.openElements.remove(r))})(e):r===er.CODE||r===er.FONT||r===er.NOBR?Br(e,t):r===er.MAIN||r===er.MENU?_n(e,t):mn(e,t);break;case 5:r===er.ASIDE?_n(e,t):r===er.SMALL?Br(e,t):mn(e,t);break;case 6:r===er.CENTER||r===er.FIGURE||r===er.FOOTER||r===er.HEADER||r===er.HGROUP||r===er.DIALOG?_n(e,t):r===er.APPLET||r===er.OBJECT?fn(e,t):r===er.STRIKE||r===er.STRONG?Br(e,t):mn(e,t);break;case 7:r===er.ADDRESS||r===er.ARTICLE||r===er.DETAILS||r===er.SECTION||r===er.SUMMARY||r===er.LISTING?_n(e,t):r===er.MARQUEE?fn(e,t):mn(e,t);break;case 8:r===er.FIELDSET?_n(e,t):r===er.TEMPLATE?qr(e,t):mn(e,t);break;case 10:r===er.BLOCKQUOTE||r===er.FIGCAPTION?_n(e,t):mn(e,t);break;default:mn(e,t)}}function hn(e,t){e.tmplInsertionModeStackTop>-1?Cn(e,t):e.stopped=!0}function yn(e,t){const r=e.openElements.currentTagName;r===er.TABLE||r===er.TBODY||r===er.TFOOT||r===er.THEAD||r===er.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=fr,e._processToken(t)):xn(e,t)}function vn(e,t){const r=t.tagName;switch(r.length){case 2:r===er.TD||r===er.TH||r===er.TR?((e,t)=>{e.openElements.clearBackToTableContext(),e._insertFakeElement(er.TBODY),e.insertionMode=hr,e._processToken(t)})(e,t):xn(e,t);break;case 3:r===er.COL?((e,t)=>{e.openElements.clearBackToTableContext(),e._insertFakeElement(er.COLGROUP),e.insertionMode=gr,e._processToken(t)})(e,t):xn(e,t);break;case 4:r===er.FORM?((e,t)=>{e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,tr.HTML),e.formElement=e.openElements.current,e.openElements.pop())})(e,t):xn(e,t);break;case 5:r===er.TABLE?((e,t)=>{e.openElements.hasInTableScope(er.TABLE)&&(e.openElements.popUntilTagNamePopped(er.TABLE),e._resetInsertionMode(),e._processToken(t))})(e,t):r===er.STYLE?Gr(e,t):r===er.TBODY||r===er.TFOOT||r===er.THEAD?((e,t)=>{e.openElements.clearBackToTableContext(),e._insertElement(t,tr.HTML),e.insertionMode=hr})(e,t):r===er.INPUT?((e,t)=>{const r=St.getTokenAttr(t,rr.TYPE);r&&r.toLowerCase()===ir?e._appendElement(t,tr.HTML):xn(e,t),t.ackSelfClosing=!0})(e,t):xn(e,t);break;case 6:r===er.SCRIPT?Gr(e,t):xn(e,t);break;case 7:r===er.CAPTION?((e,t)=>{e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,tr.HTML),e.insertionMode=mr})(e,t):xn(e,t);break;case 8:r===er.COLGROUP?((e,t)=>{e.openElements.clearBackToTableContext(),e._insertElement(t,tr.HTML),e.insertionMode=gr})(e,t):r===er.TEMPLATE?Gr(e,t):xn(e,t);break;default:xn(e,t)}}function bn(e,t){const r=t.tagName;r===er.TABLE?e.openElements.hasInTableScope(er.TABLE)&&(e.openElements.popUntilTagNamePopped(er.TABLE),e._resetInsertionMode()):r===er.TEMPLATE?qr(e,t):r!==er.BODY&&r!==er.CAPTION&&r!==er.COL&&r!==er.COLGROUP&&r!==er.HTML&&r!==er.TBODY&&r!==er.TD&&r!==er.TFOOT&&r!==er.TH&&r!==er.THEAD&&r!==er.TR&&xn(e,t)}function xn(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=r}function En(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)xn(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Sn(e,t){e.openElements.currentTagName===er.COLGROUP&&(e.openElements.pop(),e.insertionMode=_r,e._processToken(t))}function Dn(e,t){const r=t.tagName;r===er.HTML?pn(e,t):r===er.OPTION?(e.openElements.currentTagName===er.OPTION&&e.openElements.pop(),e._insertElement(t,tr.HTML)):r===er.OPTGROUP?(e.openElements.currentTagName===er.OPTION&&e.openElements.pop(),e.openElements.currentTagName===er.OPTGROUP&&e.openElements.pop(),e._insertElement(t,tr.HTML)):r===er.INPUT||r===er.KEYGEN||r===er.TEXTAREA||r===er.SELECT?e.openElements.hasInSelectScope(er.SELECT)&&(e.openElements.popUntilTagNamePopped(er.SELECT),e._resetInsertionMode(),r!==er.SELECT&&e._processToken(t)):r!==er.SCRIPT&&r!==er.TEMPLATE||Gr(e,t)}function Tn(e,t){const r=t.tagName;if(r===er.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],r=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===er.OPTION&&r===er.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===er.OPTGROUP&&e.openElements.pop()}else r===er.OPTION?e.openElements.currentTagName===er.OPTION&&e.openElements.pop():r===er.SELECT&&e.openElements.hasInSelectScope(er.SELECT)?(e.openElements.popUntilTagNamePopped(er.SELECT),e._resetInsertionMode()):r===er.TEMPLATE&&qr(e,t)}function Cn(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(er.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function kn(e,t){e.insertionMode=dr,e._processToken(t)}function An(e,t){e.insertionMode=dr,e._processToken(t)}return e.parse=(e,t)=>new Fr(t).parse(e),e.parseFragment=(e,t,r)=>("string"==typeof e&&(r=t,t=e,e=null),new Fr(r).parseFragment(t,e)),Object.defineProperty(e,"__esModule",{value:!0}),e}({}),df=uf.parse,pf=uf.parseFragment,_f=new WeakMap;function ff(e,t){const r=df(t.trim(),gf(e));return r.documentElement=r.firstElementChild,r.head=r.documentElement.firstElementChild,r.body=r.head.nextElementSibling,r}function mf(e,t){return t="string"==typeof t?t.trim():"",pf(t,gf(e))}function gf(e){let t=_f.get(e);return null!=t||(t={treeAdapter:{createDocument(){const t=e.createElement("#document");return t["x-mode"]="no-quirks",t},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},createDocumentFragment(){return e.createDocumentFragment()},createElement(t,r,n){const i=e.createElementNS(r,t);for(let e=0;e<n.length;e++){const t=n[e];null==t.namespace||"http://www.w3.org/1999/xhtml"===t.namespace?i.setAttribute(t.name,t.value):i.setAttributeNS(t.namespace,t.name,t.value)}return i},createCommentNode(t){return e.createComment(t)},appendChild(e,t){e.appendChild(t)},insertBefore(e,t,r){e.insertBefore(t,r)},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(t,r,n,i){let a=t.childNodes.find((e=>10===e.nodeType));null==a&&(a=e.createDocumentTypeNode(),t.insertBefore(a,t.firstChild)),a.nodeValue="!DOCTYPE",a["x-name"]=r,a["x-publicId"]=n,a["x-systemId"]=i},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){e.remove()},insertText(t,r){const n=t.lastChild;null!=n&&3===n.nodeType?n.nodeValue+=r:t.appendChild(e.createTextNode(r))},insertTextBefore(t,r,n){const i=t.childNodes[t.childNodes.indexOf(n)-1];null!=i&&3===i.nodeType?i.nodeValue+=r:t.insertBefore(e.createTextNode(r),n)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){const n=t[r];!1===e.hasAttributeNS(n.namespace,n.name)&&e.setAttributeNS(n.namespace,n.name,n.value)}},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attributes.__items.map((e=>({name:e.name,value:e.value,namespace:e.namespaceURI,prefix:null})))},getTagName(e){return"http://www.w3.org/1999/xhtml"===e.namespaceURI?e.nodeName.toLowerCase():e.nodeName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.nodeValue},getCommentNodeContent(e){return e.nodeValue},getDocumentTypeNodeName(e){return e["x-name"]},getDocumentTypeNodePublicId(e){return e["x-publicId"]},getDocumentTypeNodeSystemId(e){return e["x-systemId"]},isTextNode(e){return 3===e.nodeType},isCommentNode(e){return 8===e.nodeType},isDocumentTypeNode(e){return 10===e.nodeType},isElementNode(e){return 1===e.nodeType}}},_f.set(e,t)),t}class hf{constructor(e,t,r,n){this.ownerDocument=e,this.nodeType=t,this.nodeName=r,this._nodeValue=n,this.parentNode=null,this.childNodes=[]}appendChild(e){if(11===e.nodeType){const t=e.childNodes.slice();for(const e of t)this.appendChild(e)}else e.remove(),e.parentNode=this,this.childNodes.push(e),C_(this.ownerDocument,e);return e}append(...e){e.forEach((e=>{const t="object"==typeof e&&null!==e&&"nodeType"in e;this.appendChild(t?e:this.ownerDocument.createTextNode(String(e)))}))}prepend(...e){const t=this.firstChild;e.forEach((e=>{const r="object"==typeof e&&null!==e&&"nodeType"in e;this.insertBefore(r?e:this.ownerDocument.createTextNode(String(e)),t)}))}cloneNode(e){throw new Error(`invalid node type to clone: ${this.nodeType}, deep: ${e}`)}compareDocumentPosition(e){return-1}get firstChild(){return this.childNodes[0]||null}insertBefore(e,t){if(11===e.nodeType)for(let r=0,n=e.childNodes.length;r<n;r++)Ef(this,e.childNodes[r],t);else Ef(this,e,t);return e}get isConnected(){let e=this;for(;null!=e;){if(9===e.nodeType)return!0;e=e.parentNode,null!=e&&11===e.nodeType&&(e=e.host)}return!1}isSameNode(e){return this===e}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){if(null!=this.parentNode){const e=this.parentNode.childNodes.indexOf(this)+1;return this.parentNode.childNodes[e]||null}return null}get nodeValue(){return this._nodeValue}set nodeValue(e){this._nodeValue=e}get parentElement(){return this.parentNode||null}set parentElement(e){this.parentNode=e}get previousSibling(){if(null!=this.parentNode){const e=this.parentNode.childNodes.indexOf(this)-1;return this.parentNode.childNodes[e]||null}return null}contains(e){return e===this||this.childNodes.includes(e)}removeChild(e){const t=this.childNodes.indexOf(e);if(!(t>-1))throw new Error("node not found within childNodes during removeChild");if(this.childNodes.splice(t,1),1===this.nodeType){const t=this.isConnected;e.parentNode=null,!0===t&&A_(e)}else e.parentNode=null;return e}remove(){null!=this.parentNode&&this.parentNode.removeChild(this)}replaceChild(e,t){return t.parentNode===this?(this.insertBefore(e,t),t.remove(),e):null}get textContent(){return this._nodeValue}set textContent(e){this._nodeValue=String(e)}}hf.ELEMENT_NODE=1,hf.TEXT_NODE=3,hf.PROCESSING_INSTRUCTION_NODE=7,hf.COMMENT_NODE=8,hf.DOCUMENT_NODE=9,hf.DOCUMENT_TYPE_NODE=10,hf.DOCUMENT_FRAGMENT_NODE=11;class yf extends hf{constructor(e,t){super(e,1,"string"==typeof t?t:null,null),this.namespaceURI=null}addEventListener(e,t){z_(this,e,t)}attachShadow(e){const t=this.ownerDocument.createDocumentFragment();return this.shadowRoot=t,t}get shadowRoot(){return this.__shadowRoot||null}set shadowRoot(e){null!=e?(e.host=this,this.__shadowRoot=e):delete this.__shadowRoot}get attributes(){return null==this.__attributeMap&&(this.__attributeMap=g_(!1)),this.__attributeMap}set attributes(e){this.__attributeMap=e}get children(){return this.childNodes.filter((e=>1===e.nodeType))}get childElementCount(){return this.childNodes.filter((e=>1===e.nodeType)).length}get className(){return this.getAttributeNS(null,"class")||""}set className(e){this.setAttributeNS(null,"class",e)}get classList(){return new I_(this)}click(){J_(this,new U_("click",{bubbles:!0,cancelable:!0,composed:!0}))}cloneNode(e){return null}closest(e){let t=this;for(;null!=t;){if(t.matches(e))return t;t=t.parentNode}return null}get dataset(){return function(e){const t={},r=e.attributes,n=r.length;for(let e=0;e<n;e++){const n=r.item(e),a=n.nodeName;a.startsWith("data-")&&(t[(i=a,(i=String(i).slice(5)).split("-").map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.slice(1):e.charAt(0).toUpperCase()+e.slice(1))).join(""))]=n.nodeValue)}var i;return new Proxy(t,{get:(e,r)=>t[r],set(t,r,n){const i="data-"+String(r).replace(/([A-Z0-9])/g,(e=>" "+e[0])).trim().replace(/ /g,"-").toLowerCase();return e.setAttribute(i,n),!0}})}(this)}get dir(){return this.getAttributeNS(null,"dir")||""}set dir(e){this.setAttributeNS(null,"dir",e)}dispatchEvent(e){return J_(this,e)}get firstElementChild(){return this.children[0]||null}getAttribute(e){if("style"===e)return null!=this.__style&&this.__style.length>0?this.style.cssText:null;const t=this.attributes.getNamedItem(e);return null!=t?t.value:null}getAttributeNS(e,t){const r=this.attributes.getNamedItemNS(e,t);return null!=r?r.value:null}getBoundingClientRect(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}getRootNode(e){const t=null!=e&&!0===e.composed;let r=this;for(;null!=r.parentNode;)r=r.parentNode,!0===t&&null==r.parentNode&&null!=r.host&&(r=r.host);return r}get draggable(){return"true"===this.getAttributeNS(null,"draggable")}set draggable(e){this.setAttributeNS(null,"draggable",e)}hasChildNodes(){return this.childNodes.length>0}get id(){return this.getAttributeNS(null,"id")||""}set id(e){this.setAttributeNS(null,"id",e)}get innerHTML(){return 0===this.childNodes.length?"":$_(this,{newLines:!1,indentSpaces:0})}set innerHTML(e){if(!0===nf.has(this.nodeName))Cf(this,e);else{for(let e=this.childNodes.length-1;e>=0;e--)this.removeChild(this.childNodes[e]);if("string"==typeof e){const t=mf(this.ownerDocument,e);for(;t.childNodes.length>0;)this.appendChild(t.childNodes[0])}}}get innerText(){const e=[];return Tf(this.childNodes,e),e.join("")}set innerText(e){Cf(this,e)}insertAdjacentElement(e,t){return"beforebegin"===e?Ef(this.parentNode,t,this):"afterbegin"===e?this.prepend(t):"beforeend"===e?this.appendChild(t):"afterend"===e&&Ef(this.parentNode,t,this.nextSibling),t}insertAdjacentHTML(e,t){const r=mf(this.ownerDocument,t);if("beforebegin"===e)for(;r.childNodes.length>0;)Ef(this.parentNode,r.childNodes[0],this);else if("afterbegin"===e)for(;r.childNodes.length>0;)this.prepend(r.childNodes[r.childNodes.length-1]);else if("beforeend"===e)for(;r.childNodes.length>0;)this.appendChild(r.childNodes[0]);else if("afterend"===e)for(;r.childNodes.length>0;)Ef(this.parentNode,r.childNodes[r.childNodes.length-1],this.nextSibling)}insertAdjacentText(e,t){const r=this.ownerDocument.createTextNode(t);"beforebegin"===e?Ef(this.parentNode,r,this):"afterbegin"===e?this.prepend(r):"beforeend"===e?this.appendChild(r):"afterend"===e&&Ef(this.parentNode,r,this.nextSibling)}hasAttribute(e){return"style"===e?null!=this.__style&&this.__style.length>0:null!==this.getAttribute(e)}hasAttributeNS(e,t){return null!==this.getAttributeNS(e,t)}get hidden(){return this.hasAttributeNS(null,"hidden")}set hidden(e){!0===e?this.setAttributeNS(null,"hidden",""):this.removeAttributeNS(null,"hidden")}get lang(){return this.getAttributeNS(null,"lang")||""}set lang(e){this.setAttributeNS(null,"lang",e)}get lastElementChild(){const e=this.children;return e[e.length-1]||null}matches(e){return((e,t)=>P_.matches(e,[t]).length>0)(e,this)}get nextElementSibling(){const e=this.parentElement;if(null!=e&&(1===e.nodeType||11===e.nodeType||9===e.nodeType)){const t=e.children.indexOf(this)+1;return e.children[t]||null}return null}get outerHTML(){return $_(this,{newLines:!1,outerHtml:!0,indentSpaces:0})}get previousElementSibling(){const e=this.parentElement;if(null!=e&&(1===e.nodeType||11===e.nodeType||9===e.nodeType)){const t=e.children.indexOf(this)-1;return e.children[t]||null}return null}getElementsByClassName(e){const t=[];return vf(this,e.trim().split(" ").filter((e=>e.length>0)),t),t}getElementsByTagName(e){const t=[];return bf(this,e.toLowerCase(),t),t}querySelector(e){return((e,t)=>P_(e,t)[0]||null)(e,this)}querySelectorAll(e){return((e,t)=>P_(e,t))(e,this)}removeAttribute(e){if("style"===e)delete this.__style;else{const t=this.attributes.getNamedItem(e);null!=t&&(this.attributes.removeNamedItemNS(t),!0===w_(this)&&N_(this,e,t.value,null))}}removeAttributeNS(e,t){const r=this.attributes.getNamedItemNS(e,t);null!=r&&(this.attributes.removeNamedItemNS(r),!0===w_(this)&&N_(this,t,r.value,null))}removeEventListener(e,t){K_(this,e,t)}setAttribute(e,t){if("style"===e)this.style=t;else{const r=this.attributes;let n=r.getNamedItem(e);const i=w_(this);if(null!=n)if(!0===i){const e=n.value;n.value=t,e!==n.value&&N_(this,n.name,e,n.value)}else n.value=t;else r.caseInsensitive&&(e=e.toLowerCase()),n=new x_(e,t),r.__items.push(n),!0===i&&N_(this,e,null,n.value)}}setAttributeNS(e,t,r){const n=this.attributes;let i=n.getNamedItemNS(e,t);const a=w_(this);if(null!=i)if(!0===a){const e=i.value;i.value=r,e!==i.value&&N_(this,i.name,e,i.value)}else i.value=r;else i=new x_(t,r,e),n.__items.push(i),!0===a&&N_(this,t,null,i.value)}get style(){return null==this.__style&&(this.__style=L_()),this.__style}set style(e){"string"==typeof e?(null==this.__style&&(this.__style=L_()),this.__style.cssText=e):this.__style=e}get tabIndex(){return parseInt(this.getAttributeNS(null,"tabindex")||"-1",10)}set tabIndex(e){this.setAttributeNS(null,"tabindex",e)}get tagName(){return this.nodeName}set tagName(e){this.nodeName=e}get textContent(){const e=[];return Tf(this.childNodes,e),e.join("")}set textContent(e){Cf(this,e)}get title(){return this.getAttributeNS(null,"title")||""}set title(e){this.setAttributeNS(null,"title",e)}onanimationstart(){}onanimationend(){}onanimationiteration(){}onabort(){}onauxclick(){}onbeforecopy(){}onbeforecut(){}onbeforepaste(){}onblur(){}oncancel(){}oncanplay(){}oncanplaythrough(){}onchange(){}onclick(){}onclose(){}oncontextmenu(){}oncopy(){}oncuechange(){}oncut(){}ondblclick(){}ondrag(){}ondragend(){}ondragenter(){}ondragleave(){}ondragover(){}ondragstart(){}ondrop(){}ondurationchange(){}onemptied(){}onended(){}onerror(){}onfocus(){}onfocusin(){}onfocusout(){}onformdata(){}onfullscreenchange(){}onfullscreenerror(){}ongotpointercapture(){}oninput(){}oninvalid(){}onkeydown(){}onkeypress(){}onkeyup(){}onload(){}onloadeddata(){}onloadedmetadata(){}onloadstart(){}onlostpointercapture(){}onmousedown(){}onmouseenter(){}onmouseleave(){}onmousemove(){}onmouseout(){}onmouseover(){}onmouseup(){}onmousewheel(){}onpaste(){}onpause(){}onplay(){}onplaying(){}onpointercancel(){}onpointerdown(){}onpointerenter(){}onpointerleave(){}onpointermove(){}onpointerout(){}onpointerover(){}onpointerup(){}onprogress(){}onratechange(){}onreset(){}onresize(){}onscroll(){}onsearch(){}onseeked(){}onseeking(){}onselect(){}onselectstart(){}onstalled(){}onsubmit(){}onsuspend(){}ontimeupdate(){}ontoggle(){}onvolumechange(){}onwaiting(){}onwebkitfullscreenchange(){}onwebkitfullscreenerror(){}onwheel(){}toString(e){return $_(this,e)}}function vf(e,t,r){const n=e.children;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,n=t.length;e<n;e++)i.classList.contains(t[e])&&r.push(i);vf(i,t,r)}}function bf(e,t,r){const n=e.children;for(let e=0,i=n.length;e<i;e++){const i=n[e];"*"!==t&&i.nodeName.toLowerCase()!==t||r.push(i),bf(i,t,r)}}function xf(e){W_(e),delete e.__attributeMap,delete e.__shadowRoot,delete e.__style}function Ef(e,t,r){if(t!==r){if(t.remove(),t.parentNode=e,t.ownerDocument=e.ownerDocument,null!=r){const n=e.childNodes.indexOf(r);if(!(n>-1))throw new Error("referenceNode not found in parentNode.childNodes");e.childNodes.splice(n,0,t)}else e.childNodes.push(t);C_(e.ownerDocument,t)}return t}class Sf extends yf{constructor(e,t){super(e,"string"==typeof t?t.toUpperCase():null),this.namespaceURI="http://www.w3.org/1999/xhtml"}get tagName(){return this.nodeName}set tagName(e){this.nodeName=e}get attributes(){return null==this.__attributeMap&&(this.__attributeMap=g_(!0)),this.__attributeMap}set attributes(e){this.__attributeMap=e}}class Df extends hf{constructor(e,t){super(e,3,"#text",t)}cloneNode(e){return new Df(null,this.nodeValue)}get textContent(){return this.nodeValue}set textContent(e){this.nodeValue=e}get data(){return this.nodeValue}set data(e){this.nodeValue=e}get wholeText(){if(null!=this.parentNode){const e=[];for(let t=0,r=this.parentNode.childNodes.length;t<r;t++){const r=this.parentNode.childNodes[t];3===r.nodeType&&e.push(r.nodeValue)}return e.join("")}return this.nodeValue}}function Tf(e,t){for(let r=0,n=e.length;r<n;r++){const n=e[r];3===n.nodeType?t.push(n.nodeValue):1===n.nodeType&&Tf(n.childNodes,t)}}function Cf(e,t){for(let t=e.childNodes.length-1;t>=0;t--)e.removeChild(e.childNodes[t]);const r=new Df(e.ownerDocument,t);e.appendChild(r)}class kf extends hf{constructor(e,t){super(e,8,"#comment",t)}cloneNode(e){return new kf(null,this.nodeValue)}get textContent(){return this.nodeValue}set textContent(e){this.nodeValue=e}}class Af extends Sf{constructor(e){super(e,null),this.nodeName="#document-fragment",this.nodeType=11}getElementById(e){return Em(this,e)}cloneNode(e){const t=new Af(null);if(e)for(let e=0,r=this.childNodes.length;e<r;e++){const r=this.childNodes[e];if(1===r.nodeType||3===r.nodeType||8===r.nodeType){const r=this.childNodes[e].cloneNode(!0);t.appendChild(r)}}return t}}class Nf extends Sf{constructor(e){super(e,"!DOCTYPE"),this.nodeType=10,this.setAttribute("html","")}}class wf{constructor(e){this.parentStyleSheet=e,this.cssText="",this.type=0}}class Ff{constructor(e){this.type="text/css",this.parentStyleSheet=null,this.cssRules=[],this.ownerNode=e}get rules(){return this.cssRules}set rules(e){this.cssRules=e}deleteRule(e){e>=0&&e<this.cssRules.length&&(this.cssRules.splice(e,1),Of(this.ownerNode))}insertRule(e,t=0){"number"!=typeof t&&(t=0),t<0&&(t=0),t>this.cssRules.length&&(t=this.cssRules.length);const r=new wf(this);return r.cssText=e,this.cssRules.splice(t,0,r),Of(this.ownerNode),t}}function Pf(e){const t=[];for(let r=0;r<e.childNodes.length;r++)t.push(e.childNodes[r].nodeValue);return t.join("")}function If(e,t){const r=e.sheet;r.cssRules.length=0,r.insertRule(t),Of(e)}function Of(e){const t=e.childNodes.length;if(t>1)for(let r=t-1;r>=1;r--)e.removeChild(e.childNodes[r]);else t<1&&e.appendChild(e.ownerDocument.createTextNode(""));e.childNodes[0].nodeValue=e.sheet.cssRules.map((e=>e.cssText)).join("\n")}function Mf(e,t){if("string"!=typeof t||""===t||!/^[a-z0-9-_:]+$/i.test(t))throw new Error(`The tag name provided (${t}) is not a valid name.`);switch(t=t.toLowerCase()){case"a":return new Rf(e);case"base":return new Jf(e);case"button":return new Lf(e);case"canvas":return new qf(e);case"form":return new Uf(e);case"img":return new Bf(e);case"input":return new jf(e);case"link":return new Vf(e);case"meta":return new zf(e);case"script":return new Kf(e);case"style":return new Wf(e);case"template":return new $f(e);case"title":return new Gf(e)}if(null!=e&&t.includes("-")){const r=e.defaultView;if(null!=r&&null!=r.customElements)return S_(r.customElements,e,t)}return new Sf(e,t)}class Rf extends Sf{constructor(e){super(e,"a")}get href(){return Xf(this,"href")}set href(e){this.setAttribute("href",e)}get pathname(){return new URL(this.href).pathname}}class Lf extends Sf{constructor(e){super(e,"button")}}Yf(Lf.prototype,{type:String},{type:"submit"});class Bf extends Sf{constructor(e){super(e,"img")}get draggable(){return"false"!==this.getAttributeNS(null,"draggable")}set draggable(e){this.setAttributeNS(null,"draggable",e)}get src(){return Xf(this,"src")}set src(e){this.setAttribute("src",e)}}Yf(Bf.prototype,{height:Number,width:Number});class jf extends Sf{constructor(e){super(e,"input")}get list(){const e=this.getAttribute("list");return e?this.ownerDocument.getElementById(e):null}}Yf(jf.prototype,{accept:String,autocomplete:String,autofocus:Boolean,capture:String,checked:Boolean,disabled:Boolean,form:String,formaction:String,formenctype:String,formmethod:String,formnovalidate:String,formtarget:String,height:Number,inputmode:String,max:String,maxLength:Number,min:String,minLength:Number,multiple:Boolean,name:String,pattern:String,placeholder:String,required:Boolean,readOnly:Boolean,size:Number,spellCheck:Boolean,src:String,step:String,type:String,value:String,width:Number},{type:"text"});class Uf extends Sf{constructor(e){super(e,"form")}}Yf(Uf.prototype,{name:String});class Vf extends Sf{constructor(e){super(e,"link")}get href(){return Xf(this,"href")}set href(e){this.setAttribute("href",e)}}Yf(Vf.prototype,{crossorigin:String,media:String,rel:String,type:String});class zf extends Sf{constructor(e){super(e,"meta")}}Yf(zf.prototype,{charset:String,content:String,name:String});class Kf extends Sf{constructor(e){super(e,"script")}get src(){return Xf(this,"src")}set src(e){this.setAttribute("src",e)}}Yf(Kf.prototype,{type:String});class Wf extends Sf{constructor(e){super(e,"style"),this.sheet=new Ff(this)}get innerHTML(){return Pf(this)}set innerHTML(e){If(this,e)}get innerText(){return Pf(this)}set innerText(e){If(this,e)}get textContent(){return Pf(this)}set textContent(e){If(this,e)}}class Hf extends yf{get ownerSVGElement(){return null}get viewportElement(){return null}focus(){}onunload(){}get pathLength(){return 0}isPointInFill(e){return!1}isPointInStroke(e){return!1}getTotalLength(){return 0}}class Jf extends Sf{constructor(e){super(e,"base")}get href(){return Xf(this,"href")}set href(e){this.setAttribute("href",e)}}class $f extends Sf{constructor(e){super(e,"template"),this.content=new Af(e)}get innerHTML(){return this.content.innerHTML}set innerHTML(e){this.content.innerHTML=e}cloneNode(e){const t=new $f(null);t.attributes=v_(this.attributes);const r=this.getAttribute("style");if(null!=r&&r.length>0&&t.setAttribute("style",r),t.content=this.content.cloneNode(e),e)for(let e=0,r=this.childNodes.length;e<r;e++){const r=this.childNodes[e].cloneNode(!0);t.appendChild(r)}return t}}class Gf extends Sf{constructor(e){super(e,"title")}get text(){return this.textContent}set text(e){this.textContent=e}}class qf extends Sf{constructor(e){super(e,"canvas")}getContext(){return{fillRect(){},clearRect(){},getImageData:(e,t,r,n)=>({data:new Array(r*n*4)}),putImageData(){},createImageData:()=>[],setTransform(){},drawImage(){},save(){},fillText(){},restore(){},beginPath(){},moveTo(){},lineTo(){},closePath(){},stroke(){},translate(){},scale(){},rotate(){},arc(){},fill(){},measureText(){return{width:0}},transform(){},rect(){},clip(){}}}}function Xf(e,t){const r=e.getAttribute(t)||"";if(null!=e.ownerDocument){const t=e.ownerDocument.defaultView;if(null!=t){const e=t.location;if(null!=e)try{return new URL(r,e.href).href}catch(e){}}}return r.replace(/\'|\"/g,"").trim()}function Yf(e,t,r={}){Object.keys(t).forEach((n=>{const i=t[n],a=r[n];i===Boolean?Object.defineProperty(e,n,{get(){return this.hasAttribute(n)},set(e){e?this.setAttribute(n,""):this.removeAttribute(n)}}):i===Number?Object.defineProperty(e,n,{get(){const e=this.getAttribute(n);return e?parseInt(e,10):void 0===a?0:a},set(e){this.setAttribute(n,e)}}):Object.defineProperty(e,n,{get(){return this.hasAttribute(n)?this.getAttribute(n):a||""},set(e){this.setAttribute(n,e)}})}))}let Qf;yf.prototype.cloneNode=function(e){const t=Mf(this.ownerDocument,this.nodeName);t.attributes=v_(this.attributes);const r=this.getAttribute("style");if(null!=r&&r.length>0&&t.setAttribute("style",r),e)for(let e=0,r=this.childNodes.length;e<r;e++){const r=this.childNodes[e].cloneNode(!0);t.appendChild(r)}return t};class Zf{constructor(e){if(this._values=[],"object"==typeof e)if("function"==typeof e[Symbol.iterator]){const t=[];for(const r of e)"function"==typeof r[Symbol.iterator]&&t.push([...r]);for(const e of t)this.append(e[0],e[1])}else for(const t in e)this.append(t,e[t])}append(e,t){this._values.push([e,t+""])}delete(e){e=e.toLowerCase();for(let t=this._values.length-1;t>=0;t--)this._values[t][0].toLowerCase()===e&&this._values.splice(t,1)}entries(){const e=[];for(const t of this.keys())e.push([t,this.get(t)]);let t=-1;return{next(){return t++,{value:e[t],done:!e[t]}},[Symbol.iterator](){return this}}}forEach(e){for(const t of this.entries())e(t[1],t[0])}get(e){const t=[];e=e.toLowerCase();for(const r of this._values)r[0].toLowerCase()===e&&t.push(r[1]);return t.length>0?t.join(", "):null}has(e){e=e.toLowerCase();for(const t of this._values)if(t[0].toLowerCase()===e)return!0;return!1}keys(){const e=[];for(const t of this._values){const r=t[0].toLowerCase();e.includes(r)||e.push(r)}let t=-1;return{next(){return t++,{value:e[t],done:!e[t]}},[Symbol.iterator](){return this}}}set(e,t){for(const r of this._values)if(r[0].toLowerCase()===e.toLowerCase())return r[1]=t+"",void 0;this.append(e,t)}values(){const e=this._values;let t=-1;return{next(){t++;const r=!e[t];return{value:r?void 0:e[t][1],done:r}},[Symbol.iterator](){return this}}}[Symbol.iterator](){return this.entries()}}class em{constructor(e,t={}){this._method="GET",this._url="/",this.bodyUsed=!1,this.cache="default",this.credentials="same-origin",this.integrity="",this.keepalive=!1,this.mode="cors",this.redirect="follow",this.referrer="about:client",this.referrerPolicy="","string"==typeof e?this.url=e:e&&(Object.assign(this,e),this.headers=new Zf(e.headers)),Object.assign(this,t),t.headers&&(this.headers=new Zf(t.headers)),this.headers||(this.headers=new Zf)}get url(){return"string"==typeof this._url?new URL(this._url,location.href).href:new URL("/",location.href).href}set url(e){this._url=e}get method(){return"string"==typeof this._method?this._method.toUpperCase():"GET"}set method(e){this._method=e}clone(){const e={...this};return e.headers=new Zf(this.headers),new em(e)}}class tm{constructor(e,t={}){this.ok=!0,this.status=200,this.statusText="",this.type="default",this.url="",this._body=e,t&&Object.assign(this,t),this.headers=new Zf(t.headers)}async json(){return JSON.parse(this._body)}async text(){return this._body}clone(){const e={...this};return e.headers=new Zf(this.headers),new tm(this._body,e)}}const rm=[["CustomEvent",class extends U_{constructor(e,t){super(e),this.detail=null,null!=t&&Object.assign(this,t)}}],["Event",U_],["Headers",Zf],["KeyboardEvent",class extends U_{constructor(e,t){super(e),this.code="",this.key="",this.altKey=!1,this.ctrlKey=!1,this.metaKey=!1,this.shiftKey=!1,this.location=0,this.repeat=!1,null!=t&&Object.assign(this,t)}}],["MouseEvent",class extends U_{constructor(e,t){super(e),this.screenX=0,this.screenY=0,this.clientX=0,this.clientY=0,this.ctrlKey=!1,this.shiftKey=!1,this.altKey=!1,this.metaKey=!1,this.button=0,this.buttons=0,this.relatedTarget=null,null!=t&&Object.assign(this,t)}}],["Request",em],["Response",tm],["DOMParser",class{parseFromString(e,t){return"text/html"!==t&&console.error("XML parsing not implemented yet, continuing as html"),((e,t=null)=>(null==t&&(null==Qf&&(Qf=new vm),t=Qf),ff(t,e)))(e)}}],["HTMLAnchorElement",Rf],["HTMLBaseElement",Jf],["HTMLButtonElement",Lf],["HTMLCanvasElement",qf],["HTMLFormElement",Uf],["HTMLImageElement",Bf],["HTMLInputElement",jf],["HTMLLinkElement",Vf],["HTMLMetaElement",zf],["HTMLScriptElement",Kf],["HTMLStyleElement",Wf],["HTMLTemplateElement",$f],["HTMLTitleElement",Gf]],nm=()=>{};class im{constructor(){this.items=[]}get length(){return this.items.length}back(){this.go(-1)}forward(){this.go(1)}go(e){}pushState(e,t,r){}replaceState(e,t,r){}}class am{constructor(){}disconnect(){}observe(){}takeRecords(){return[]}unobserve(){}}class om{constructor(){this.ancestorOrigins=null,this.protocol="",this.host="",this.hostname="",this.port="",this.pathname="",this.search="",this.hash="",this.username="",this.password="",this.origin="",this._href=""}get href(){return this._href}set href(e){const t=new URL(e,"http://mockdoc.stenciljs.com");this._href=t.href,this.protocol=t.protocol,this.host=t.host,this.hostname=t.hostname,this.port=t.port,this.pathname=t.pathname,this.search=t.search,this.hash=t.hash,this.username=t.username,this.password=t.password,this.origin=t.origin}assign(e){}reload(e){}replace(e){}toString(){return this.href}}class sm{constructor(){this.appCodeName="MockNavigator",this.appName="MockNavigator",this.appVersion="MockNavigator",this.platform="MockNavigator",this.userAgent="MockNavigator"}}class cm{constructor(){this.timeOrigin=Date.now()}addEventListener(){}clearMarks(){}clearMeasures(){}clearResourceTimings(){}dispatchEvent(){return!0}getEntries(){return[]}getEntriesByName(){return[]}getEntriesByType(){return[]}mark(){}measure(){}get navigation(){return{}}now(){return Date.now()-this.timeOrigin}get onresourcetimingbufferfull(){return null}removeEventListener(){}setResourceTimingBufferSize(){}get timing(){return{}}toJSON(){}}class lm{constructor(){this.items=new Map}key(e){}getItem(e){return e=String(e),this.items.has(e)?this.items.get(e):null}setItem(e,t){null==t&&(t="null"),this.items.set(String(e),String(t))}removeItem(e){this.items.delete(String(e))}clear(){this.items.clear()}}const um=clearInterval,dm=clearTimeout,pm=setInterval,_m=setTimeout,fm=URL;class mm{constructor(e=null){this.document=!1!==e?new vm(e,this):null,this.performance=new cm,this.customElements=new E_(this),this.console={debug:nm,error:nm,info:nm,log:nm,warn:nm,dir:nm,dirxml:nm,table:nm,trace:nm,group:nm,groupCollapsed:nm,groupEnd:nm,clear:nm,count:nm,countReset:nm,assert:nm,profile:nm,profileEnd:nm,time:nm,timeLog:nm,timeEnd:nm,timeStamp:nm,context:nm,memory:nm},hm(this),ym(this)}addEventListener(e,t){z_(this,e,t)}alert(e){this.console?this.console.debug(e):console.debug(e)}blur(){}cancelAnimationFrame(e){this.__clearTimeout(e)}cancelIdleCallback(e){this.__clearTimeout(e)}get CharacterData(){if(null==this.__charDataCstr){const e=this.document;this.__charDataCstr=class extends hf{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct CharacterData")}}}return this.__charDataCstr}set CharacterData(e){this.__charDataCstr=e}clearInterval(e){this.__clearInterval(e)}clearTimeout(e){this.__clearTimeout(e)}close(){!(e=>{if(null!=e){e.__timeouts&&(e.__timeouts.forEach((e=>{um(e),dm(e)})),e.__timeouts.clear()),e.customElements&&e.customElements.clear&&e.customElements.clear(),(e=>{if(null!=e){W_(e);const t=e.documentElement;if(null!=t){xf(t);for(let e=0,r=t.childNodes.length;e<r;e++){const r=t.childNodes[e];xf(r),r.childNodes.length=0}}for(const t in e)e.hasOwnProperty(t)&&!xm.has(t)&&delete e[t];try{e.nodeName="#document"}catch(e){}try{e.nodeType=9}catch(e){}try{e.cookie=""}catch(e){}try{e.referrer=""}catch(e){}}})(e.document),(e=>{if(null!=e)try{e.timeOrigin=Date.now()}catch(e){}})(e.performance);for(const t in e)e.hasOwnProperty(t)&&"document"!==t&&"performance"!==t&&"customElements"!==t&&delete e[t];if(hm(e),ym(e),W_(e),null!=e.document)try{e.document.defaultView=e}catch(e){}e.fetch=null,e.Headers=null,e.Request=null,e.Response=null,e.FetchError=null}})(this)}confirm(){return!1}get CSS(){return{supports:()=>!0}}get Document(){if(null==this.__docCstr){const e=this;this.__docCstr=class extends vm{constructor(){throw super(!1,e),new Error("Illegal constructor: cannot construct Document")}}}return this.__docCstr}set Document(e){this.__docCstr=e}get DocumentFragment(){if(null==this.__docFragCstr){const e=this.document;this.__docFragCstr=class extends Af{constructor(){throw super(e),new Error("Illegal constructor: cannot construct DocumentFragment")}}}return this.__docFragCstr}set DocumentFragment(e){this.__docFragCstr=e}get DocumentType(){if(null==this.__docTypeCstr){const e=this.document;this.__docTypeCstr=class extends hf{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct DocumentType")}}}return this.__docTypeCstr}set DocumentType(e){this.__docTypeCstr=e}get DOMTokenList(){return null==this.__domTokenListCstr&&(this.__domTokenListCstr=class{}),this.__domTokenListCstr}set DOMTokenList(e){this.__domTokenListCstr=e}dispatchEvent(e){return J_(this,e)}get Element(){if(null==this.__elementCstr){const e=this.document;this.__elementCstr=class extends yf{constructor(){throw super(e,""),new Error("Illegal constructor: cannot construct Element")}}}return this.__elementCstr}fetch(e,t){if("function"==typeof fetch)return fetch(e,t);throw new Error("fetch() not implemented")}focus(){}getComputedStyle(e){return{cssText:"",length:0,parentRule:null,getPropertyPriority(){return null},getPropertyValue(){return""},item(){return null},removeProperty(){return null},setProperty(){return null}}}get globalThis(){return this}get history(){return null==this.__history&&(this.__history=new im),this.__history}set history(e){this.__history=e}get JSON(){return JSON}get HTMLElement(){if(null==this.__htmlElementCstr){const e=this.document;this.__htmlElementCstr=class extends Sf{constructor(){super(e,"");const t=this.constructor.observedAttributes;Array.isArray(t)&&"function"==typeof this.attributeChangedCallback&&t.forEach((e=>{const t=this.getAttribute(e);null!=t&&this.attributeChangedCallback(e,null,t)}))}}}return this.__htmlElementCstr}set HTMLElement(e){this.__htmlElementCstr=e}get IntersectionObserver(){return am}get localStorage(){return null==this.__localStorage&&(this.__localStorage=new lm),this.__localStorage}set localStorage(e){this.__localStorage=e}get location(){return null==this.__location&&(this.__location=new om),this.__location}set location(e){"string"==typeof e?(null==this.__location&&(this.__location=new om),this.__location.href=e):this.__location=e}matchMedia(){return{matches:!1}}get Node(){if(null==this.__nodeCstr){const e=this.document;this.__nodeCstr=class extends hf{constructor(){throw super(e,0,"test",""),new Error("Illegal constructor: cannot construct Node")}}}return this.__nodeCstr}get NodeList(){if(null==this.__nodeListCstr){const e=this.document;this.__nodeListCstr=class extends class{constructor(e,t,r){this.ownerDocument=e,this.childNodes=t,this.length=r}}{constructor(){throw super(e,[],0),new Error("Illegal constructor: cannot construct NodeList")}}}return this.__nodeListCstr}get navigator(){return null==this.__navigator&&(this.__navigator=new sm),this.__navigator}set navigator(e){this.__navigator=e}get parent(){return null}prompt(){return""}open(){return null}get origin(){return this.location.origin}removeEventListener(e,t){K_(this,e,t)}requestAnimationFrame(e){return this.setTimeout((()=>{e(Date.now())}),0)}requestIdleCallback(e){return this.setTimeout((()=>{e({didTimeout:!1,timeRemaining:()=>0})}),0)}scroll(e,t){}scrollBy(e,t){}scrollTo(e,t){}get self(){return this}get sessionStorage(){return null==this.__sessionStorage&&(this.__sessionStorage=new lm),this.__sessionStorage}set sessionStorage(e){this.__sessionStorage=e}setInterval(e,t,...r){if(null==this.__timeouts&&(this.__timeouts=new Set),t=Math.min(t,this.__maxTimeout),this.__allowInterval){const n=this.__setInterval((()=>{if(this.__timeouts){this.__timeouts.delete(n);try{e(...r)}catch(e){this.console?this.console.error(e):console.error(e)}}}),t);return this.__timeouts&&this.__timeouts.add(n),n}const n=this.__setTimeout((()=>{if(this.__timeouts){this.__timeouts.delete(n);try{e(...r)}catch(e){this.console?this.console.error(e):console.error(e)}}}),t);return this.__timeouts&&this.__timeouts.add(n),n}setTimeout(e,t,...r){null==this.__timeouts&&(this.__timeouts=new Set),t=Math.min(t,this.__maxTimeout);const n=this.__setTimeout((()=>{if(this.__timeouts){this.__timeouts.delete(n);try{e(...r)}catch(e){this.console?this.console.error(e):console.error(e)}}}),t);return this.__timeouts&&this.__timeouts.add(n),n}get top(){return this}get window(){return this}onanimationstart(){}onanimationend(){}onanimationiteration(){}onabort(){}onauxclick(){}onbeforecopy(){}onbeforecut(){}onbeforepaste(){}onblur(){}oncancel(){}oncanplay(){}oncanplaythrough(){}onchange(){}onclick(){}onclose(){}oncontextmenu(){}oncopy(){}oncuechange(){}oncut(){}ondblclick(){}ondrag(){}ondragend(){}ondragenter(){}ondragleave(){}ondragover(){}ondragstart(){}ondrop(){}ondurationchange(){}onemptied(){}onended(){}onerror(){}onfocus(){}onfocusin(){}onfocusout(){}onformdata(){}onfullscreenchange(){}onfullscreenerror(){}ongotpointercapture(){}oninput(){}oninvalid(){}onkeydown(){}onkeypress(){}onkeyup(){}onload(){}onloadeddata(){}onloadedmetadata(){}onloadstart(){}onlostpointercapture(){}onmousedown(){}onmouseenter(){}onmouseleave(){}onmousemove(){}onmouseout(){}onmouseover(){}onmouseup(){}onmousewheel(){}onpaste(){}onpause(){}onplay(){}onplaying(){}onpointercancel(){}onpointerdown(){}onpointerenter(){}onpointerleave(){}onpointermove(){}onpointerout(){}onpointerover(){}onpointerup(){}onprogress(){}onratechange(){}onreset(){}onresize(){}onscroll(){}onsearch(){}onseeked(){}onseeking(){}onselect(){}onselectstart(){}onstalled(){}onsubmit(){}onsuspend(){}ontimeupdate(){}ontoggle(){}onvolumechange(){}onwaiting(){}onwebkitfullscreenchange(){}onwebkitfullscreenerror(){}onwheel(){}}var gm;function hm(e){e.__clearInterval=um,e.__clearTimeout=dm,e.__setInterval=pm,e.__setTimeout=_m,e.__maxTimeout=3e4,e.__allowInterval=!0,e.URL=fm}function ym(e){try{e.devicePixelRatio=1,e.innerHeight=768,e.innerWidth=1366,e.pageXOffset=0,e.pageYOffset=0,e.screenLeft=0,e.screenTop=0,e.screenX=0,e.screenY=0,e.scrollX=0,e.scrollY=0,e.screen={availHeight:e.innerHeight,availLeft:0,availTop:0,availWidth:e.innerWidth,colorDepth:24,height:e.innerHeight,keepAwake:!1,orientation:{angle:0,type:"portrait-primary"},pixelDepth:24,width:e.innerWidth}}catch(e){}}gm=mm.prototype,void rm.forEach((([e,t])=>{Object.defineProperty(gm,e,{get(){return this["__"+e]||t},set(t){this["__"+e]=t},configurable:!0,enumerable:!0})}));class vm extends Sf{constructor(e=null,t=null){if(super(null,null),this.nodeName="#document",this.nodeType=9,this.defaultView=t,this.cookie="",this.referrer="",this.appendChild(this.createDocumentTypeNode()),"string"==typeof e){const t=ff(this,e).children.find((e=>"HTML"===e.nodeName));null!=t&&(this.appendChild(t),Dm(t,this))}else if(!1!==e){const e=new Sf(this,"html");this.appendChild(e),e.appendChild(new Sf(this,"head")),e.appendChild(new Sf(this,"body"))}}get dir(){return this.documentElement.dir}set dir(e){this.documentElement.dir=e}get location(){return null!=this.defaultView?this.defaultView.location:null}set location(e){null!=this.defaultView&&(this.defaultView.location=e)}get baseURI(){const e=this.head.childNodes.find((e=>"BASE"===e.nodeName));return e?e.href:this.URL}get URL(){return this.location.href}get styleSheets(){return this.querySelectorAll("style")}get scripts(){return this.querySelectorAll("script")}get forms(){return this.querySelectorAll("form")}get images(){return this.querySelectorAll("img")}get scrollingElement(){return this.documentElement}get documentElement(){for(let e=this.childNodes.length-1;e>=0;e--)if("HTML"===this.childNodes[e].nodeName)return this.childNodes[e];const e=new Sf(this,"html");return this.appendChild(e),e}set documentElement(e){for(let e=this.childNodes.length-1;e>=0;e--)10!==this.childNodes[e].nodeType&&this.childNodes[e].remove();null!=e&&(this.appendChild(e),Dm(e,this))}get head(){const e=this.documentElement;for(let t=0;t<e.childNodes.length;t++)if("HEAD"===e.childNodes[t].nodeName)return e.childNodes[t];const t=new Sf(this,"head");return e.insertBefore(t,e.firstChild),t}set head(e){const t=this.documentElement;for(let e=t.childNodes.length-1;e>=0;e--)"HEAD"===t.childNodes[e].nodeName&&t.childNodes[e].remove();null!=e&&(t.insertBefore(e,t.firstChild),Dm(e,this))}get body(){const e=this.documentElement;for(let t=e.childNodes.length-1;t>=0;t--)if("BODY"===e.childNodes[t].nodeName)return e.childNodes[t];const t=new Sf(this,"body");return e.appendChild(t),t}set body(e){const t=this.documentElement;for(let e=t.childNodes.length-1;e>=0;e--)"BODY"===t.childNodes[e].nodeName&&t.childNodes[e].remove();null!=e&&(t.appendChild(e),Dm(e,this))}appendChild(e){return e.remove(),e.parentNode=this,this.childNodes.push(e),e}createComment(e){return new kf(this,e)}createAttribute(e){return new x_(e.toLowerCase(),"")}createAttributeNS(e,t){return new x_(t,"",e)}createElement(e){if("#document"===e){const t=new vm(!1);return t.nodeName=e,t.parentNode=null,t}return Mf(this,e)}createElementNS(e,t){const r=((e,t,r)=>"http://www.w3.org/1999/xhtml"===t?Mf(e,r):"http://www.w3.org/2000/svg"===t?new Hf(e,r):new yf(e,r))(this,e,t);return r.namespaceURI=e,r}createTextNode(e){return new Df(this,e)}createDocumentFragment(){return new Af(this)}createDocumentTypeNode(){return new Nf(this)}getElementById(e){return Em(this,e)}getElementsByName(e){return Sm(this,e.toLowerCase())}get title(){const e=this.head.childNodes.find((e=>"TITLE"===e.nodeName));return null!=e&&"string"==typeof e.textContent?e.textContent.trim():""}set title(e){const t=this.head;let r=t.childNodes.find((e=>"TITLE"===e.nodeName));null==r&&(r=this.createElement("title"),t.appendChild(r)),r.textContent=e}}function bm(e=null){return new mm(e).document}const xm=new Set(["nodeName","nodeType","nodeValue","ownerDocument","parentNode","childNodes","_shadowRoot"]);function Em(e,t){const r=e.children;for(let e=0,n=r.length;e<n;e++){const n=r[e];if(n.id===t)return n;const i=Em(n,t);if(null!=i)return i}return null}function Sm(e,t,r=[]){const n=e.children;for(let e=0,i=n.length;e<i;e++){const i=n[e];i.name&&i.name.toLowerCase()===t&&r.push(i),Sm(i,t,r)}return r}function Dm(e,t){for(let r=0,n=e.childNodes.length;r<n;r++)e.childNodes[r].ownerDocument=t,1===e.childNodes[r].nodeType&&Dm(e.childNodes[r],t)}const Tm=e=>Id(e)||Md(e)||Rd(e)||qd(e)||Bd(e)||Ud(e)||zd(e),Cm=async(e,t,r,n,i,a,o)=>{const s=i.toLowerCase().endsWith(".css"),c=[];return{imports:c,styleText:await km(e,t,r,s,n,i,a,c,new Set,o)}},km=async(e,t,r,n,i,a,o,s,c,l)=>{if(c.has(a))return o;c.add(a),null!=l&&Ou(l,o);const u=await wm(e,t,r,a,o);if(0===u.length)return o;for(const e of u)s.includes(e.filePath)||s.push(e.filePath);return await Promise.all(u.map((async a=>{await Am(e,t,r,n,i,a,s,c,l)}))),Om(o,u,n)},Am=async(e,t,r,n,i,a,o,s,c)=>{if(a.styleText=await Nm(t,a),"string"==typeof a.styleText)a.styleText=await km(e,t,r,n,a.filePath,a.filePath,a.styleText,o,s,c);else{const e=ee(r.diagnostics);e.messageText=`Unable to read css import: ${a.srcImport}`,e.absFilePath=i}},Nm=async(e,t)=>{let r=null;try{r=await e.fs.readFile(t.filePath)}catch(n){if(t.altFilePath)try{r=await e.fs.readFile(t.filePath)}catch(e){}}return r},wm=async(e,t,r,n,i)=>{const a=[];if(!i.includes("@import"))return a;i=_d(i);const o=Be(n),s=n.split(".").pop().toLowerCase();let c;const l=/(@import)\s+(url\()?\s?(.*?)\s?\)?([^;]*);?/gi;for(;c=l.exec(i);){const i={srcImport:c[0],url:c[4].replace(/[\"\'\)]/g,"")};if(Im(i.srcImport)){if(Fm(i.url)?await Pm(e,t,r.diagnostics,n,i):Ue(i.url)?i.filePath=pe(i.url):i.filePath=pe(Ve(o,i.url)),"css"!==s&&!i.filePath.toLowerCase().endsWith(".css")&&(i.filePath+=`.${s}`,"scss"===s)){const e="_"+Le(i.filePath),t=Be(i.filePath);i.altFilePath=pe(Ve(t,e))}"string"==typeof i.filePath&&a.push(i)}else e.logger.debug(`did not resolve external css @import: ${i.srcImport}`)}return a},Fm=e=>e.startsWith("~"),Pm=async(e,t,r,n,i)=>{try{const r=Et(i.url),a=await Ur(e.sys,t.fs,{moduleId:r.moduleId,containingFile:n,exts:[],packageFilter:e=>(""!==r.filePath&&(e.main=r.filePath),e)});i.filePath=a.resolveId,i.updatedImport=`@import "${i.filePath}";`}catch(e){const t=ee(r);t.messageText=`Unable to resolve node module for CSS @import: ${i.url}`,t.absFilePath=n}},Im=e=>!(e=e.toLowerCase()).includes("url(")||!(e=(e=(e=e.replace(/\"/g,"")).replace(/\'/g,"")).replace(/\s/g,"")).includes("url(http")&&!e.includes("url(//"),Om=(e,t,r)=>{for(const n of t)r?"string"==typeof n.styleText&&(e=e.replace(n.srcImport,n.styleText)):"string"==typeof n.updatedImport&&(e=e.replace(n.srcImport,n.updatedImport));return e},Mm=async(e,t,r)=>{let n=e.globalStyle;if(!n)return null;if(await Rm(e,t,r))return t.cachedGlobalStyle;try{n=pe(n),t.addWatchFile(n);const i=await(async(e,t,r,n,i)=>{const a={config:e,sys:e.sys,fs:t.fs,cache:t.cache,diagnostics:[]},o=await(async(e,t)=>{for(const r of e.config.plugins)if(U(r.resolveId))try{const n=r.resolveId(t,null,e);if(null!=n)if(U(n.then)){const e=await n;if(null!=e)return e}else if(K(n))return n}catch(t){ne(e.diagnostics,t)}return t})(a,n),s=await(async(e,t)=>{for(const r of e.config.plugins)if(U(r.load))try{const n=r.load(t,e);if(null!=n)if(U(n.then)){const e=await n;if(null!=e)return e}else if(K(n))return n}catch(t){ne(e.diagnostics,t)}return e.fs.readFile(t)})(a,o);if(!K(s)){const t=ee(r.diagnostics);return t.header=`Unable to find "${Le(n)}"`,t.messageText=`The file "${We(e.rootDir,n)}" was unable to load.`,null}const c={code:s,id:n},l=c.id.toLowerCase().endsWith(".css"),u=null!=i&&e.outputTargets.some(Wd);if(l)if(u&&null!=i){i.styleDocs=i.styleDocs||[];const a=await Cm(e,t,r,n,n,c.code,i.styleDocs);c.code=a.styleText,c.dependencies=a.imports}else{const i=await Cm(e,t,r,n,n,c.code);c.code=i.styleText,c.dependencies=i.imports}for(const e of a.config.plugins)if(U(e.transform))try{let t;const r=e.transform(c.code,c.id,a);null!=r&&(t=U(r.then)?await r:r,null!=t&&(K(t)?c.code=t:(K(t.code)&&(c.code=t.code),K(t.id)&&(c.id=t.id))))}catch(e){ne(r.diagnostics,e)}if(r.diagnostics.push(...a.diagnostics),!l)if(u&&null!=i){i.styleDocs=i.styleDocs||[];const a=await Cm(e,t,r,n,c.id,c.code,i.styleDocs);c.code=a.styleText,c.dependencies=a.imports}else{const i=await Cm(e,t,r,n,c.id,c.code);c.code=i.styleText,c.dependencies=i.imports}return c})(e,t,r,n);if(i){const a=await(async(e,t,r,n,i)=>{if("string"!=typeof n||!n.length)return n;if((!1===e.autoprefixCss||null===e.autoprefixCss)&&!e.minifyCss)return n;"string"==typeof i&&(i=pe(i));const a={input:n,filePath:i,autoprefixer:e.autoprefixCss,minify:e.minifyCss},o=await t.cache.createKey("optimizeCss","autoprefixer10.2.5_postcss8.2.8_7",a),s=await t.cache.get(o);if(null!=s)return s;const c=await t.worker.optimizeCss(a);return c.diagnostics.forEach((e=>{r.push(e)})),"string"!=typeof c.output||ie(r)?n:(await t.cache.put(o,c.output),c.output)})(e,t,r.diagnostics,i.code,n);if(t.cachedGlobalStyle=a,Array.isArray(i.dependencies)){const e=t.cssModuleImports.get(n)||[];i.dependencies.forEach((r=>{t.addWatchFile(r),e.includes(r)||e.push(r)})),t.cssModuleImports.set(n,e)}return a}}catch(e){ne(r.diagnostics,e).absFilePath=n}return t.cachedGlobalStyle=null,null},Rm=async(e,t,r)=>{if(!t.cachedGlobalStyle)return!1;if(r.requiresFullBuild)return!1;if(r.isRebuild&&!r.hasStyleChanges)return!0;if(r.filesChanged.includes(e.globalStyle))return!1;const n=t.cssModuleImports.get(e.globalStyle);return(!n||!r.filesChanged.some((e=>n.includes(e))))&&!await Lm(e,t,r,e.globalStyle,t.cachedGlobalStyle,[])},Lm=async(e,t,r,n,i,a)=>!a.includes(n)&&(a.push(n),Bm(e,t,r,n,i,a)),Bm=async(e,t,r,n,i,a)=>{const o=await wm(e,t,r,n,i);if(0===o.length)return!1;if(r.filesChanged.some((e=>o.some((t=>t.filePath===e)))))return!0;const s=o.map((async n=>{try{const i=await t.fs.readFile(n.filePath);return Lm(e,t,r,n.filePath,i,a)}catch(e){return!1}}));return(await Promise.all(s)).includes(!0)},jm=async(e,t,r)=>{if(!e.buildDist)return;const n=e.outputTargets.filter(jd);if(0===n.length)return;const i=r.createTimeSpan("generate angular proxies started",!0);await Promise.all(n.map((n=>Um(e,t,r,n)))),i.finish("generate angular proxies finished")},Um=(e,t,r,n)=>{const i=Vm(n.excludeComponents,r.components);return Promise.all([zm(e,t,r,i,n),Xm(t,i,n),Ym(t,n)])},Vm=(e=[],t)=>M(t,(e=>e.tagName)).filter((t=>!e.includes(t.tagName)&&!t.internal)),zm=async(e,t,r,n,i)=>{const a=Km(n),o=Be(r.packageJson.types),s=Ve(e.rootDir,o,Zm),c=Fd(i.directivesProxyFile,s,".d.ts"),l=i.componentCorePackage?`import { Components } from '${i.componentCorePackage}';`:`import { Components } from '${c}';`,u=["/* eslint-disable */\n/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core';",qm(i),l,a].join("\n")+"\n",d=Fl.createSourceFile(Zm,u,Fl.ScriptTarget.Latest,!1),p=Fl.createPrinter({newLine:Fl.NewLineKind.LineFeed}).printFile(d);return t.fs.writeFile(i.directivesProxyFile,p)},Km=e=>e.map(Hm).join("\n"),Wm=(e,t)=>{const r=e.length>0,n=t.length>0,i=[];return r||n?(r&&i.push(`inputs: ['${e.join("', '")}']`),n&&i.push(`'methods': ['${t.join("', '")}']`),`@ProxyCmp({${i.join(", ")}})`):""},Hm=e=>{const t=Jm(e),r=$m(e),n=Gm(e),i=r.length>0,a=[`selector: '${e.tagName}'`,"changeDetection: ChangeDetectionStrategy.OnPush","template: '<ng-content></ng-content>'"];t.length>0&&a.push(`inputs: ['${t.join("', '")}']`);const o=P(e.tagName),s=[`\nexport declare interface ${o} extends Components.${o} {}\n${Wm(t,n)}\n@Component({ ${a.join(", ")} })\nexport class ${o} {`];return r.forEach((e=>{s.push(` ${e}!: EventEmitter<CustomEvent>;`)})),s.push(" protected el: HTMLElement;"),s.push(" constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;"),i&&s.push(` proxyOutputs(this, this.el, ['${r.join("', '")}']);`),s.push(" }"),s.push("}"),s.join("\n")},Jm=e=>[...e.properties.filter((e=>!e.internal)).map((e=>e.name)),...e.virtualProperties.map((e=>e.name))].sort(),$m=e=>e.events.filter((e=>!e.internal)).map((e=>e.name)),Gm=e=>e.methods.filter((e=>!e.internal)).map((e=>e.name)),qm=e=>e.directivesUtilsFile?`import { ProxyCmp, proxyOutputs } from '${Fd(e.directivesProxyFile,e.directivesUtilsFile,".ts")}';\n`:Qm.replace(/export function/g,"function"),Xm=(e,t,r)=>{if(!r.directivesArrayFile)return Promise.resolve();const n=`\nimport type * as d from '${Fd(r.directivesArrayFile,r.directivesProxyFile,".ts")}';\n\nexport const DIRECTIVES = [\n${t.map((e=>P(e.tagName))).map((e=>` d.${e}`)).join(",\n")}\n];\n`;return e.fs.writeFile(r.directivesArrayFile,n)},Ym=async(e,t)=>{t.directivesUtilsFile&&await e.fs.writeFile(t.directivesUtilsFile,"/* eslint-disable */\n/* tslint:disable */\n"+Qm)},Qm="import { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach(item => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n }\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach(methodName => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() =>\n this.el[methodName].apply(this.el, args)\n );\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));\n}\n\nexport function ProxyCmp(opts: { inputs?: any; methods?: any }) {\n const decorator = function(cls: any){\n if (opts.inputs) {\n proxyInputs(cls, opts.inputs);\n }\n if (opts.methods) {\n proxyMethods(cls, opts.methods);\n }\n return cls;\n };\n return decorator;\n}\n",Zm="components.d.ts",eg=(e,t,r)=>{if(r)return Ue(r)?r:Ve(t,r);if(Ue(e))throw new Error(`copy task, "dest" property must exist if "src" property is an absolute path: ${e}`);return t},tg=async(e,t,r)=>{const n=e.outputTargets.filter(Ld);if(0===n.length)return;const i=[...r.filesUpdated,...r.filesAdded,...r.dirsAdded],a=[],o=!((e,t,r)=>{if(!e.hasSuccessfulBuild)return!1;let n=!0;return r.forEach((e=>{const r=pe(Be(e));t.forEach((e=>{e.cmps.forEach((e=>{null!=e.assetsDirs&&e.assetsDirs.forEach((e=>{const t=pe(e.absolutePath);if(r===t)return n=!1,void 0}))}))}))})),n})(t,r.entryModules,r.filesChanged);if(n.forEach((t=>{o&&t.copyAssets&&a.push(...((e,t,r,n)=>{if(!r)return[];const i=[];return t.components.filter((e=>null!=e.assetsDirs&&e.assetsDirs.length>0)).forEach((t=>{n?t.excludeFromCollection||t.isCollectionDependency||t.assetsDirs.forEach((t=>{const n=Ve(r,We(e.srcDir,t.absolutePath));i.push({src:t.absolutePath,dest:n,warn:!1,keepDirStructure:!1})})):t.assetsDirs.forEach((e=>{i.push({src:e.absolutePath,dest:Ve(r,e.cmpRelativePath),warn:!1,keepDirStructure:!1})}))})),t.debug(`getComponentAssetsCopyTasks: ${i.length}`),i})(e,r,t.dir,"collection"===t.copyAssets)),a.push(...rg(e,r,t,i))})),a.length>0){const n=r.createTimeSpan("copy started");let i=0;try{const n=await e.sys.copy(a,e.srcDir);null!=n&&(r.diagnostics.push(...n.diagnostics),t.fs.cancelDeleteDirectoriesFromDisk(n.dirPaths),t.fs.cancelDeleteFilesFromDisk(n.filePaths),i=n.filePaths.length)}catch(e){const t=ee(r.diagnostics);e instanceof Error&&(t.messageText=e.message)}n.finish(`copy finished (${i} file${1===i?"":"s"})`)}},rg=(e,t,r,n)=>Array.isArray(r.copy)?(!t.isRebuild||t.requiresFullBuild?r.copy:ng(e,r.copy,n)).map((e=>ig(e,r.dir))):[],ng=(e,t,r)=>Array.isArray(t)?t.filter((t=>{let n=t.src;if(J(n)){if(n=Ve(e.srcDir,n),r.some(Rp.filter(n)))return!0}else if(n=pe(((e,t)=>Ue(t)?t:Ve(e.srcDir,t))(e,n+"/")),r.some((e=>e.startsWith(n))))return!0;return!1})):[],ig=(e,t)=>({src:e.src,dest:eg(e.src,t,e.dest),keepDirStructure:"boolean"==typeof e.keepDirStructure?e.keepDirStructure:null==e.dest,warn:!1!==e.warn}),ag=e=>()=>t=>{let r=!1;const n=t.statements.slice();for(let t=n.length-1;t>=0;t--){const i=n[t];if(Fl.isImportDeclaration(i)&&!i.importClause&&i.moduleSpecifier&&Fl.isStringLiteral(i.moduleSpecifier)){const a=i.moduleSpecifier.text;e.collections.some((e=>e.collectionName===a||e.moduleId===a))&&(r=!0,n.splice(t,1))}}return r?Fl.updateSourceFileNode(t,n):t},og="@stencil/core",sg="@stencil/core/internal/app-data",cg="@stencil/core/internal/app-globals",lg="@stencil/core/hydrate-factory",ug="@stencil/core/internal/client",dg="@stencil/core/internal/client/patch-browser",pg="@stencil/core/internal/client/patch-esm",_g="@stencil/core/internal/hydrate",fg="@lazy-browser-entrypoint?app-data=conditional",mg="@lazy-external-entrypoint?app-data=conditional",gg="@user-index-entrypoint",hg=(e,t,r,n,i)=>{if(!i)return{name:"appDataPlugin"};const a=yg(e,t);return{name:"appDataPlugin",resolveId(e,t){return e===sg||e===cg?("worker"===i&&this.error("@stencil/core packages cannot be imported from a worker."),"hydrate"===i,1,e):null},load(r){if(r===cg){const e=new Iu("");return vg(a,e),e.toString()}if(r===sg){const t=new Iu("");return Eg(e,t),bg(e,n,t),xg(e,t),t.toString()}if(r!==e.globalScript)return null;const i=t.moduleMap.get(e.globalScript);if(!i)return null;if(!i.sourceMapFileText)return{code:i.staticSourceFileText,map:null};const o=JSON.parse(i.sourceMapFileText);return o.sources=o.sources.map((e=>Le(e))),{code:i.staticSourceFileText,map:o}},transform(n,o){if(o=pe(o),a.some((e=>e.path===o))){const a=this.parse(n,{}).body.some((e=>"ExportDefaultDeclaration"===e.type))?"":"\nexport const globalFn = () => {};\nexport default globalFn;";n=Sg(i)+n+a;const s={...e.tsCompilerOptions};s.module=Fl.ModuleKind.ESNext;const c=Fl.transpileModule(n,{compilerOptions:s,fileName:o,transformers:{after:[ag(t)]}});if(r.diagnostics.push(...Se(c.diagnostics)),e.sourceMap){const e=new Iu(n).generateMap({source:o,file:o+".map",includeContent:!0,hires:!0});return{code:c.outputText,map:e}}return{code:c.outputText}}return null}}},yg=(e,t)=>{const r=[];if(K(e.globalScript)){const n=t.moduleMap.get(e.globalScript),i=2===t.version?e.globalScript:n&&n.jsFilePath;i&&r.push({defaultName:ke(e.namespace+"GlobalScript"),path:pe(i)})}return t.collections.forEach((e=>{if(null!=e.global&&K(e.global.sourceFilePath)){let t=ke(e.collectionName+"GlobalScript");r.some((e=>e.defaultName===t))&&(t+=r.length),r.push({defaultName:t,path:pe(e.global.sourceFilePath)})}})),r},vg=(e,t)=>{1===e.length?(t.prepend(`import appGlobalScript from '${e[0].path}';\n`),t.append("export const globalScripts = appGlobalScript;\n")):e.length>1?(e.forEach((e=>{t.prepend(`import ${e.defaultName} from '${e.path}';\n`)})),t.append("export const globalScripts = () => {\n"),e.forEach((e=>{t.append(` ${e.defaultName}();\n`)})),t.append("};\n")):t.append("export const globalScripts = () => {};\n")},bg=(e,t,r)=>{const n=Object.keys(t).sort().map((e=>e+": "+(t[e]?"true":"false"))).join(", ");r.append(`export const BUILD = /* ${e.fsNamespace} */ { ${n} };\n`)},xg=(e,t)=>{t.append(`export const Env = /* ${e.fsNamespace} */ ${JSON.stringify(e.env)};\n`)},Eg=(e,t)=>{t.append(`export const NAMESPACE = '${e.fsNamespace}';\n`)},Sg=e=>`import { Context } from '${"hydrate"===e?_g:og}';\n`,Dg=(e,t,r,n)=>{const i=e.sys.getCompilerExecutingPath(),a=Tg(e,i,"client/index.js"),o=Tg(e,i,"client/patch-browser.js"),s=Tg(e,i,"client/patch-esm.js"),c=Tg(e,i,"hydrate/index.js");return{name:"coreResolvePlugin",resolveId(e){if(e===og||"@stencil/core/internal"===e){if("client"===r)return n?{id:ug,external:!0}:a+"?app-data=conditional";if("hydrate"===r)return c}return e===ug?n?{id:ug,external:!0}:a:e===dg?n?{id:dg,external:!0}:o:e===pg?n?{id:pg,external:!0}:s:e===_g?c:null},async load(n){if(n&&!n.startsWith("\0")&&((n=xe(n))===a||n===c)){if("worker"===r)return`\nexport const Build = {\n isDev: ${e.devMode},\n isBrowser: true,\n isServer: false,\n isTesting: false,\n};`;let a=await t.fs.readFile(n);if("string"!=typeof a&&Ce(i)){const r=Ct(i,n);a=await Pt(e.sys,t.fs,Dt,r,n)}if("string"==typeof a){const t=e.hydratedFlag;if(t){const e=Cg(t);__!==e&&(a=a.replace(__,e),"hydrated"!==t.name&&(a=a.replace('.classList.add("hydrated")',`.classList.add("${t.name}")`),a=a.replace(".classList.add('hydrated')",`.classList.add('${t.name}')`),a=a.replace('.setAttribute("hydrated",',`.setAttribute("${t.name}",`),a=a.replace(".setAttribute('hydrated',",`.setAttribute('${t.name}',`)))}else a=a.replace(__,"{}")}return a}return null},resolveImportMeta(t,{format:r}){return e.extras.dynamicImportShim&&"url"===t&&"es"===r?'""':null}}},Tg=(e,t,r)=>{if(Ce(t))return pe(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@stencil/core",path:"internal/"+r}));const n=Be(t);return pe(Ve(n,"..","internal",r))},Cg=e=>{let t,r;t=String(e.initialValue)&&""!==e.initialValue&&null!=e.initialValue?`{${e.property}:${e.initialValue}}`:"";const n="attribute"===e.selector?`[${e.name}]`:`.${e.name}`;return r=String(e.hydratedValue)&&""!==e.hydratedValue&&null!=e.hydratedValue?`${n}{${e.property}:${e.hydratedValue}}`:"",t+r};var kg=Ag;function Ag(e,t){if(!e)throw new Error(t||"Assertion failed")}Ag.equal=(e,t,r)=>{if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var Ng=Ze((e=>{"function"==typeof Object.create?e.exports=(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=(e,t)=>{if(t){e.super_=t;var r=()=>{};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}));const wg=et(Lt);function Fg(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function Pg(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function Ig(e){return 1===e.length?"0"+e:e}function Og(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}var Mg={inherits:Ze((e=>{try{var t=wg;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=Ng}})),toArray(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):Fg(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},toHex(e){for(var t="",r=0;r<e.length;r++)t+=Ig(e[r].toString(16));return t},htonl:Pg,toHex32(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=Pg(i)),r+=Og(i.toString(16))}return r},zero2:Ig,zero8:Og,join32(e,t,r,n){var i=r-t;kg(i%4==0);for(var a=new Array(i/4),o=0,s=t;o<a.length;o++,s+=4){var c;c="big"===n?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[o]=c>>>0}return a},split32(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var a=e[n];"big"===t?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},rotr32(e,t){return e>>>t|e<<32-t},rotl32(e,t){return e<<t|e>>>32-t},sum32(e,t){return e+t>>>0},sum32_3(e,t,r){return e+t+r>>>0},sum32_4(e,t,r,n){return e+t+r+n>>>0},sum32_5(e,t,r,n,i){return e+t+r+n+i>>>0},sum64(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0,o=(a<n?1:0)+r+i;e[t]=o>>>0,e[t+1]=a},sum64_hi(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},sum64_lo(e,t,r,n){return t+n>>>0},sum64_4_hi(e,t,r,n,i,a,o,s){var c=0,l=t;return c+=(l=l+n>>>0)<t?1:0,c+=(l=l+a>>>0)<a?1:0,e+r+i+o+(c+=(l=l+s>>>0)<s?1:0)>>>0},sum64_4_lo(e,t,r,n,i,a,o,s){return t+n+a+s>>>0},sum64_5_hi(e,t,r,n,i,a,o,s,c,l){var u=0,d=t;return u+=(d=d+n>>>0)<t?1:0,u+=(d=d+a>>>0)<a?1:0,u+=(d=d+s>>>0)<s?1:0,e+r+i+o+c+(u+=(d=d+l>>>0)<l?1:0)>>>0},sum64_5_lo(e,t,r,n,i,a,o,s,c,l){return t+n+a+s+l>>>0},rotr64_hi(e,t,r){return(t<<32-r|e>>>r)>>>0},rotr64_lo(e,t,r){return(e<<32-r|t>>>r)>>>0},shr64_hi(e,t,r){return e>>>r},shr64_lo(e,t,r){return(e<<32-r|t>>>r)>>>0}};function Rg(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var Lg=Rg;Rg.prototype.update=function(e,t){if(e=Mg.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=Mg.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},Rg.prototype.digest=function(e){return this.update(this._pad()),kg(null===this.pending),this._digest(e)},Rg.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,a=8;a<this.padLength;a++)n[i++]=0;return n};var Bg={BlockHash:Lg},jg=Mg.rotr32;function Ug(e,t,r){return e&t^~e&r}function Vg(e,t,r){return e&t^e&r^t&r}var zg=Ug,Kg=Vg,Wg=e=>jg(e,2)^jg(e,13)^jg(e,22),Hg=e=>jg(e,6)^jg(e,11)^jg(e,25),Jg=e=>jg(e,7)^jg(e,18)^e>>>3,$g=e=>jg(e,17)^jg(e,19)^e>>>10,Gg=Mg.sum32,qg=Mg.sum32_4,Xg=Mg.sum32_5,Yg=zg,Qg=Kg,Zg=Wg,eh=Hg,th=Jg,rh=$g,nh=Bg.BlockHash,ih=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ah(){if(!(this instanceof ah))return new ah;nh.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=ih,this.W=new Array(64)}Mg.inherits(ah,nh);var oh=ah;ah.blockSize=512,ah.outSize=256,ah.hmacStrength=192,ah.padLength=64,ah.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=qg(rh(r[n-2]),r[n-7],th(r[n-15]),r[n-16]);var i=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],u=this.h[6],d=this.h[7];for(kg(this.k.length===r.length),n=0;n<r.length;n++){var p=Xg(d,eh(c),Yg(c,l,u),this.k[n],r[n]),_=Gg(Zg(i),Qg(i,a,o));d=u,u=l,l=c,c=Gg(s,p),s=o,o=a,a=i,i=Gg(p,_)}this.h[0]=Gg(this.h[0],i),this.h[1]=Gg(this.h[1],a),this.h[2]=Gg(this.h[2],o),this.h[3]=Gg(this.h[3],s),this.h[4]=Gg(this.h[4],c),this.h[5]=Gg(this.h[5],l),this.h[6]=Gg(this.h[6],u),this.h[7]=Gg(this.h[7],d)},ah.prototype._digest=function(e){return"hex"===e?Mg.toHex32(this.h,"big"):Mg.split32(this.h,"big")};for(var sh="2.42.3",ch={},lh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",uh=0;uh<lh.length;uh++)ch[lh.charCodeAt(uh)]=uh;function dh(e,t,r){4===r?e.push([t[0],t[1],t[2],t[3]]):5===r?e.push([t[0],t[1],t[2],t[3],t[4]]):1===r&&e.push([t[0]])}function ph(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=31&e;(e>>>=5)>0&&(r|=32),t+=lh[r]}while(e>0);return t}var _h=function e(t){this.bits=t instanceof e?t.bits.slice():[]};_h.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},_h.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var fh=function(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};fh.prototype.appendLeft=function(e){this.outro+=e},fh.prototype.appendRight=function(e){this.intro=this.intro+e},fh.prototype.clone=function(){var e=new fh(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},fh.prototype.contains=function(e){return this.start<e&&e<this.end},fh.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},fh.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},fh.prototype.edit=function(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},fh.prototype.prependLeft=function(e){this.outro=e+this.outro},fh.prototype.prependRight=function(e){this.intro=e+this.intro},fh.prototype.split=function(e){var t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;var i=new fh(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},fh.prototype.toString=function(){return this.intro+this.content+this.outro},fh.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},fh.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var mh=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?mh=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t&&(mh=e=>t.from(e,"utf-8").toString("base64"));var gh=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=(e=>{for(var t=0,r=0,n=0,i=0,a="",o=0;o<e.length;o++){var s=e[o];if(o>0&&(a+=";"),0!==s.length){for(var c=0,l=[],u=0,d=s;u<d.length;u++){var p=d[u],_=ph(p[0]-c);c=p[0],p.length>1&&(_+=ph(p[1]-t)+ph(p[2]-r)+ph(p[3]-n),t=p[1],r=p[2],n=p[3]),5===p.length&&(_+=ph(p[4]-i),i=p[4]),l.push(_)}a+=l.join(",")}}return a})(e.mappings)};function hh(e){var t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";var i=n.reduce(((e,t)=>{var r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function yh(e,t){var r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}gh.prototype.toString=function(){return JSON.stringify(this)},gh.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+mh(this.toString())};var vh=Object.prototype.toString;function bh(e){return"[object Object]"===vh.call(e)}function xh(e){for(var t=e.split("\n"),r=[],n=0,i=0;n<t.length;n++)r.push(i),i+=t[n].length+1;return e=>{for(var t=0,n=r.length;t<n;){var i=t+n>>1;e<r[i]?n=i:t=i+1}var a=t-1;return{line:a,column:e-r[a]}}}var Eh=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};Eh.prototype.addEdit=function(e,t,r,n){if(t.length){var i=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&i.push(n),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},Eh.prototype.addUneditedChunk=function(e,t,r,n,i){for(var a=t.start,o=!0;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null},Eh.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var r=0;r<t.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var Sh="\n",Dh={insertLeft:!1,insertRight:!1,storeName:!1},Th=function(e,t){void 0===t&&(t={});var r=new fh(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new _h},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:hh(e)}}),this.byStart[0]=r,this.byEnd[e.length]=r};Th.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},Th.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},Th.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this},Th.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this},Th.prototype.clone=function(){for(var e=new Th(this.original,{filename:this.filename}),t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;var n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new _h(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},Th.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var r=Object.keys(this.storedNames),n=new Eh(e.hires),i=xh(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{var a=i(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,a,e.storeName?r.indexOf(e.original):-1):n.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?yh(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:r,mappings:n.raw}},Th.prototype.generateMap=function(e){return new gh(this.generateDecodedMap(e))},Th.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},Th.prototype.indent=function(e,t){var r=/^[^\r\n]/gm;if(bh(e)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var n={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(var t=e[0];t<e[1];t+=1)n[t]=!0}));var i=!1!==t.indentStart,a=t=>i?""+e+t:(i=!0,t);this.intro=this.intro.replace(r,a);for(var o=0,s=this.firstChunk;s;){var c=s.end;if(s.edited)n[o]||(s.content=s.content.replace(r,a),s.content.length&&(i="\n"===s.content[s.content.length-1]));else for(o=s.start;o<c;){if(!n[o]){var l=this.original[o];"\n"===l?i=!0:"\r"!==l&&i&&(i=!1,o===s.start?s.prependRight(e):(this._splitChunk(s,o),(s=s.next).prependRight(e)))}o+=1}o=s.end,s=s.next}return this.outro=this.outro.replace(r,a),this},Th.prototype.insert=()=>{throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},Th.prototype.insertLeft=function(e,t){return Dh.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Dh.insertLeft=!0),this.appendLeft(e,t)},Th.prototype.insertRight=function(e,t){return Dh.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Dh.insertRight=!0),this.prependRight(e,t)},Th.prototype.move=function(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);var n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;var c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this},Th.prototype.overwrite=function(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(Dh.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Dh.storeName=!0),n={storeName:!0});var i=void 0!==n&&n.storeName,a=void 0!==n&&n.contentOnly;if(i){var o=this.original.slice(e,t);this.storedNames[o]=!0}var s=this.byStart[e],c=this.byEnd[t];if(s){if(t>s.end&&s.next!==this.byStart[s.end])throw new Error("Cannot overwrite across a split point");if(s.edit(r,i,a),s!==c){for(var l=s.next;l!==c;)l.edit("",!1),l=l.next;l.edit("",!1)}}else{var u=new fh(e,t,"").edit(r,i);c.next=u,u.previous=c}return this},Th.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},Th.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this},Th.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this},Th.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var r=this.byStart[e];r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this},Th.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},Th.prototype.lastLine=function(){var e=this.outro.lastIndexOf(Sh);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(-1!==(e=r.outro.lastIndexOf(Sh)))return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(-1!==(e=r.content.lastIndexOf(Sh)))return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(-1!==(e=r.intro.lastIndexOf(Sh)))return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return-1!==(e=this.intro.lastIndexOf(Sh))?this.intro.substr(e+1)+t:this.intro+t},Th.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var r="",n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=n;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);var a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r},Th.prototype.snip=function(e,t){var r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r},Th.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,r=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}},Th.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var r=xh(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+e.original+'")')}var n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0},Th.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},Th.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},Th.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},Th.prototype.trimLines=function(){return this.trim("[\\r\\n]")},Th.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},Th.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.lastChunk;do{var n=r.end,i=r.trimEnd(t);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1},Th.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},Th.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.firstChunk;do{var n=r.end,i=r.trimStart(t);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1},Th.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var Ch=Object.prototype.hasOwnProperty,kh=function(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};function Ah(e,t){const r=e.split(/[/\\]/).filter(Boolean),n=t.split(/[/\\]/).filter(Boolean);for("."===r[0]&&r.shift(),"."===n[0]&&n.shift();r[0]&&n[0]&&r[0]===n[0];)r.shift(),n.shift();for(;".."===n[0]&&r.length>0;)n.shift(),r.pop();for(;r.pop();)n.unshift("..");return n.join("/")}kh.prototype.addSource=function(e){if(e instanceof Th)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!bh(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((t=>{Ch.call(e,t)||(e[t]=e.content[t])})),void 0===e.separator&&(e.separator=this.separator),e.filename)if(Ch.call(this.uniqueSourceIndexByFilename,e.filename)){var t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},kh.prototype.append=function(e,t){return this.addSource({content:new Th(e),separator:t&&t.separator||""}),this},kh.prototype.clone=function(){var e=new kh({intro:this.intro,separator:this.separator});return this.sources.forEach((t=>{e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})})),e},kh.prototype.generateDecodedMap=function(e){var t=this;void 0===e&&(e={});var r=[];this.sources.forEach((e=>{Object.keys(e.content.storedNames).forEach((e=>{~r.indexOf(e)||r.push(e)}))}));var n=new Eh(e.hires);return this.intro&&n.advance(this.intro),this.sources.forEach(((e,i)=>{i>0&&n.advance(t.separator);var a=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,o=e.content,s=xh(o.original);o.intro&&n.advance(o.intro),o.firstChunk.eachNext((t=>{var i=s(t.start);t.intro.length&&n.advance(t.intro),e.filename?t.edited?n.addEdit(a,t.content,i,t.storeName?r.indexOf(t.original):-1):n.addUneditedChunk(a,t,o.original,i,o.sourcemapLocations):n.advance(t.content),t.outro.length&&n.advance(t.outro)})),o.outro&&n.advance(o.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((t=>e.file?yh(e.file,t.filename):t.filename)),sourcesContent:this.uniqueSources.map((t=>e.includeContent?t.content:null)),names:r,mappings:n.raw}},kh.prototype.generateMap=function(e){return new gh(this.generateDecodedMap(e))},kh.prototype.getIndentString=function(){var e={};return this.sources.forEach((t=>{var r=t.content.indentStr;null!==r&&(e[r]||(e[r]=0),e[r]+=1)})),Object.keys(e).sort(((t,r)=>e[t]-e[r]))[0]||"\t"},kh.prototype.indent=function(e){var t=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var r=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(((n,i)=>{var a=void 0!==n.separator?n.separator:t.separator,o=r||i>0&&/\r?\n$/.test(a);n.content.indent(e,{exclude:n.indentExclusionRanges,indentStart:o}),r="\n"===n.content.lastChar()})),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,((t,r)=>r>0?e+t:t))),this},kh.prototype.prepend=function(e){return this.intro=e+this.intro,this},kh.prototype.toString=function(){var e=this,t=this.sources.map(((t,r)=>{var n=void 0!==t.separator?t.separator:e.separator;return(r>0?n:"")+t.content.toString()})).join("");return this.intro+t},kh.prototype.isEmpty=function(){return!(this.intro.length&&this.intro.trim()||this.sources.some((e=>!e.content.isEmpty())))},kh.prototype.length=function(){return this.sources.reduce(((e,t)=>e+t.content.length()),this.intro.length)},kh.prototype.trimLines=function(){return this.trim("[\\r\\n]")},kh.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},kh.prototype.trimStart=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),!this.intro){var r,n=0;do{if(!(r=this.sources[n++]))break}while(!r.content.trimStartAborted(e))}return this},kh.prototype.trimEnd=function(e){var t,r=new RegExp((e||"\\s")+"+$"),n=this.sources.length-1;do{if(!(t=this.sources[n--])){this.intro=this.intro.replace(r,"");break}}while(!t.content.trimEndAborted(e));return this};const Nh="BlockStatement",wh="CallExpression",Fh="ExpressionStatement",Ph="Identifier",Ih="Program";function Oh(e,t,r,n){if(t.remove(r,n),e.annotations)for(const n of e.annotations)if(n.comment){if(!(n.comment.start<r))return;t.remove(n.comment.start,n.comment.end)}}function Mh(e,t){if(e.annotations||e.parent.type!==Fh||(e=e.parent),e.annotations)for(const r of e.annotations.filter((e=>e.comment)))t.remove(r.comment.start,r.comment.end)}const Rh={isNoStatement:!0};function Lh(e,t,r=0){let n,i;for(n=e.indexOf(t,r);;){if(-1===(r=e.indexOf("/",r))||r>=n)return n;i=e.charCodeAt(++r),++r,(r=47===i?e.indexOf("\n",r)+1:e.indexOf("*/",r)+2)>n&&(n=e.indexOf(t,r))}}const Bh=/\S/g;function jh(e,t){return Bh.lastIndex=t,Bh.exec(e).index}function Uh(e){let t,r,n=0;for(t=e.indexOf("\n",n);;){if(n=e.indexOf("/",n),-1===n||n>t)return[t,t+1];if(r=e.charCodeAt(n+1),47===r)return[n,t+1];n=e.indexOf("*/",n+3)+2,n>t&&(t=e.indexOf("\n",n))}}function Vh(e,t,r,n,i){let a,o,s,c,l=e[0],u=!l.included||l.needsBoundaries;u&&(c=r+Uh(t.original.slice(r,l.start))[1]);for(let r=1;r<=e.length;r++)a=l,o=c,s=u,l=e[r],u=void 0!==l&&(!l.included||l.needsBoundaries),s||u?(c=a.end+Uh(t.original.slice(a.end,void 0===l?n:l.start))[1],a.included?s?a.render(t,i,{end:c,start:o}):a.render(t,i):Oh(a,t,o,c)):a.render(t,i)}function zh(e,t,r,n){const i=[];let a,o,s,c,l,u=r-1;for(let n=0;n<e.length;n++){for(o=e[n],void 0!==a&&(u=a.end+Lh(t.original.slice(a.end,o.start),",")),s=c=u+1+Uh(t.original.slice(u+1,o.start))[1];l=t.original.charCodeAt(s),32===l||9===l||10===l||13===l;)s++;void 0!==a&&i.push({contentEnd:c,end:s,node:a,separator:u,start:r}),a=o,r=s}return i.push({contentEnd:n,end:n,node:a,separator:null,start:r}),i}function Kh(e,t,r){for(;;){const[n,i]=Uh(e.original.slice(t,r));if(-1===n)break;e.remove(t+n,t+=i)}}function Wh(e,t){const r=t.compact?"":" ";if(1===e.length&&1===t.exportNamesByVariable.get(e[0]).length){const n=e[0];return`exports('${t.exportNamesByVariable.get(n)}',${r}${n.getName()})`}return`exports({${r}${e.map((e=>t.exportNamesByVariable.get(e).map((t=>`${t}:${r}${e.getName()}`)).join(`,${r}`))).join(`,${r}`)}${r}})`}function Hh(e,t,r){const n=r.compact?"":" ",i=r.compact?"":";";return`function${n}(v)${n}{${n}return exports({${n}${e.map((e=>r.exportNamesByVariable.get(e).map((r=>`${r}:${n}${t?e.getName():"v"}`)).join(`,${n}`))).join(`,${n}`)}${n}}),${n}v${i}${n}}(`}function Jh(e){let t="";do{const r=e%64;e=Math.floor(e/64),t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"[r]+t}while(0!==e);return t}const $h={__proto__:null,await:!0,break:!0,case:!0,catch:!0,class:!0,const:!0,continue:!0,debugger:!0,default:!0,delete:!0,do:!0,else:!0,enum:!0,eval:!0,export:!0,extends:!0,false:!0,finally:!0,for:!0,function:!0,if:!0,implements:!0,import:!0,in:!0,instanceof:!0,interface:!0,let:!0,new:!0,null:!0,package:!0,private:!0,protected:!0,public:!0,return:!0,static:!0,super:!0,switch:!0,this:!0,throw:!0,true:!0,try:!0,typeof:!0,undefined:!0,var:!0,void:!0,while:!0,with:!0,yield:!0};function Gh(e,t){let r=e,n=1;for(;t.has(r)||$h[r];)r=`${e}$${Jh(n++)}`;return t.add(r),r}const qh=[];function Xh(e,t,r){const n=e.get(t);if(n)return n;const i=r();return e.set(t,i),i}const Yh=Symbol("Unknown Key"),Qh=[],Zh=[Yh],ey=Symbol("Entities");class ty{constructor(){this.entityPaths=Object.create(null,{[ey]:{value:new Set}})}getEntities(e){let t=this.entityPaths;for(const r of e)t=t[r]=t[r]||Object.create(null,{[ey]:{value:new Set}});return t[ey]}}const ry=new ty;class ny{constructor(){this.entityPaths=Object.create(null,{[ey]:{value:new Map}})}getEntities(e,t){let r=this.entityPaths;for(const t of e)r=r[t]=r[t]||Object.create(null,{[ey]:{value:new Map}});return Xh(r[ey],t,(()=>new Set))}}function iy(e,t=null){return Object.create(t,e)}const ay=Symbol("Unknown Value"),oy={deoptimizePath(){},getLiteralValueAtPath:()=>ay,getReturnExpressionWhenCalledAtPath:()=>oy,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN]]"},sy={deoptimizePath(){},getLiteralValueAtPath(){},getReturnExpressionWhenCalledAtPath:()=>oy,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include(){},includeCallArguments(){},included:!0,toString:()=>"undefined"},cy={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:oy}},ly={value:{returns:null,returnsPrimitive:oy,callsArgs:null,mutatesSelf:!0}},uy={value:{returns:null,returnsPrimitive:oy,callsArgs:[0],mutatesSelf:!1}};class dy{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return ay}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Py(ky,e[0]):oy}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||Fy(ky,e[0],this.included,t,r)}include(){this.included=!0}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}toString(){return"[[UNKNOWN ARRAY]]"}}const py={value:{callsArgs:null,mutatesSelf:!1,returns:dy,returnsPrimitive:null}},_y={value:{callsArgs:null,mutatesSelf:!0,returns:dy,returnsPrimitive:null}},fy={value:{callsArgs:[0],mutatesSelf:!1,returns:dy,returnsPrimitive:null}},my={value:{callsArgs:[0],mutatesSelf:!0,returns:dy,returnsPrimitive:null}},gy={deoptimizePath(){},getLiteralValueAtPath:()=>ay,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Py(Ay,e[0]):oy,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath(e){if(1===e.length){const t=e[0];return"string"!=typeof t||!Ay[t]}return!0},include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN BOOLEAN]]"},hy={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:gy}},yy={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:gy}},vy={deoptimizePath(){},getLiteralValueAtPath:()=>ay,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Py(Ny,e[0]):oy,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath(e){if(1===e.length){const t=e[0];return"string"!=typeof t||!Ny[t]}return!0},include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN NUMBER]]"},by={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:vy}},xy={value:{callsArgs:null,mutatesSelf:!0,returns:null,returnsPrimitive:vy}},Ey={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:vy}},Sy={deoptimizePath(){},getLiteralValueAtPath:()=>ay,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Py(wy,e[0]):oy,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:(e,t,r)=>1!==e.length||Fy(wy,e[0],!0,t,r),include(){},includeCallArguments(e,t){for(const r of t)r.include(e,!1)},included:!0,toString:()=>"[[UNKNOWN STRING]]"},Dy={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Sy}};class Ty{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return ay}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Py(Cy,e[0]):oy}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||Fy(Cy,e[0],this.included,t,r)}include(){this.included=!0}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}toString(){return"[[UNKNOWN OBJECT]]"}}const Cy=iy({hasOwnProperty:hy,isPrototypeOf:hy,propertyIsEnumerable:hy,toLocaleString:Dy,toString:Dy,valueOf:cy}),ky=iy({concat:py,copyWithin:_y,every:yy,fill:_y,filter:fy,find:uy,findIndex:Ey,forEach:uy,includes:hy,indexOf:by,join:Dy,lastIndexOf:by,map:fy,pop:ly,push:xy,reduce:uy,reduceRight:uy,reverse:_y,shift:ly,slice:py,some:yy,sort:my,splice:_y,unshift:xy},Cy),Ay=iy({valueOf:hy},Cy),Ny=iy({toExponential:Dy,toFixed:Dy,toLocaleString:Dy,toPrecision:Dy,valueOf:by},Cy),wy=iy({charAt:Dy,charCodeAt:by,codePointAt:by,concat:Dy,endsWith:hy,includes:hy,indexOf:by,lastIndexOf:by,localeCompare:by,match:hy,normalize:Dy,padEnd:Dy,padStart:Dy,repeat:Dy,replace:{value:{callsArgs:[1],mutatesSelf:!1,returns:null,returnsPrimitive:Sy}},search:by,slice:Dy,split:py,startsWith:hy,substr:Dy,substring:Dy,toLocaleLowerCase:Dy,toLocaleUpperCase:Dy,toLowerCase:Dy,toUpperCase:Dy,trim:Dy,valueOf:Dy},Cy);function Fy(e,t,r,n,i){if("string"!=typeof t||!e[t]||e[t].mutatesSelf&&r)return!0;if(!e[t].callsArgs)return!1;for(const r of e[t].callsArgs)if(n.args[r]&&n.args[r].hasEffectsWhenCalledAtPath(Qh,{args:qh,withNew:!1},i))return!0;return!1}function Py(e,t){return"string"==typeof t&&e[t]?null!==e[t].returnsPrimitive?e[t].returnsPrimitive:new e[t].returns:oy}function Iy(){return{brokenFlow:0,includedCallArguments:new Set,includedLabels:new Set}}function Oy(){return{accessed:new ty,assigned:new ty,brokenFlow:0,called:new ny,ignore:{breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!1},includedLabels:new Set,instantiated:new ny,replacedVariableInits:new Map}}class My{constructor(e){this.alwaysRendered=!1,this.included=!1,this.isId=!1,this.isReassigned=!1,this.renderBaseName=null,this.renderName=null,this.name=e}addReference(e){}deoptimizePath(e){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getLiteralValueAtPath(e,t,r){return ay}getName(){const e=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${$h[e]?`['${e}']`:`.${e}`}`:e}getReturnExpressionWhenCalledAtPath(e,t,r){return oy}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,r){return!0}include(){this.included=!0}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}markCalledFromTryStatement(){}setRenderNames(e,t){this.renderBaseName=e,this.renderName=t}}class Ry extends My{constructor(e,t,r,n){super(e),this.additionalInitializers=null,this.calledFromTryStatement=!1,this.expressionsToBeDeoptimized=[],this.declarations=t?[t]:[],this.init=r,this.deoptimizationTracker=n.deoptimizationTracker,this.module=n.module}addDeclaration(e,t){this.declarations.push(e),null===this.additionalInitializers&&(this.additionalInitializers=null===this.init?[]:[this.init],this.init=oy,this.isReassigned=!0),null!==t&&this.additionalInitializers.push(t)}consolidateInitializers(){if(null!==this.additionalInitializers){for(const e of this.additionalInitializers)e.deoptimizePath(Zh);this.additionalInitializers=null}}deoptimizePath(e){if(e.length>7||this.isReassigned)return;const t=this.deoptimizationTracker.getEntities(e);if(!t.has(this))if(t.add(this),0===e.length){if(!this.isReassigned){this.isReassigned=!0;const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[];for(const t of e)t.deoptimizeCache();this.init&&this.init.deoptimizePath(Zh)}}else this.init&&this.init.deoptimizePath(e)}getLiteralValueAtPath(e,t,r){if(this.isReassigned||!this.init||e.length>7)return ay;const n=t.getEntities(e);if(n.has(this.init))return ay;this.expressionsToBeDeoptimized.push(r),n.add(this.init);const i=this.init.getLiteralValueAtPath(e,t,r);return n.delete(this.init),i}getReturnExpressionWhenCalledAtPath(e,t,r){if(this.isReassigned||!this.init||e.length>7)return oy;const n=t.getEntities(e);if(n.has(this.init))return oy;this.expressionsToBeDeoptimized.push(r),n.add(this.init);const i=this.init.getReturnExpressionWhenCalledAtPath(e,t,r);return n.delete(this.init),i}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;if(this.isReassigned||e.length>7)return!0;const r=t.accessed.getEntities(e);return!r.has(this)&&(r.add(this),this.init&&this.init.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){if(this.included||e.length>7)return!0;if(0===e.length)return!1;if(this.isReassigned)return!0;const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.init&&this.init.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){if(e.length>7||this.isReassigned)return!0;const n=(t.withNew?r.instantiated:r.called).getEntities(e,t);return!n.has(this)&&(n.add(this),this.init&&this.init.hasEffectsWhenCalledAtPath(e,t,r))}include(){if(!this.included){this.included=!0;for(const e of this.declarations){e.included||e.include(Iy(),!1);let t=e.parent;for(;!t.included&&(t.included=!0,t.type!==Ih);)t=t.parent}}}includeCallArguments(e,t){if(this.isReassigned||this.init&&e.includedCallArguments.has(this.init))for(const r of t)r.include(e,!1);else this.init&&(e.includedCallArguments.add(this.init),this.init.includeCallArguments(e,t),e.includedCallArguments.delete(this.init))}markCalledFromTryStatement(){this.calledFromTryStatement=!0}}class Ly{constructor(){this.children=[],this.variables=new Map}addDeclaration(e,t,r,n){const i=e.name;let a=this.variables.get(i);return a?a.addDeclaration(e,r):(a=new Ry(e.name,e,r||sy,t),this.variables.set(i,a)),a}contains(e){return this.variables.has(e)}findVariable(e){throw new Error("Internal Error: findVariable needs to be implemented by a subclass")}}class By extends Ly{constructor(e){super(),this.accessedOutsideVariables=new Map,this.parent=e,e.children.push(this)}addAccessedDynamicImport(e){(this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(e),this.parent instanceof By&&this.parent.addAccessedDynamicImport(e)}addAccessedGlobals(e,t){const r=t.get(this)||new Set;for(const t of e)r.add(t);t.set(this,r),this.parent instanceof By&&this.parent.addAccessedGlobals(e,t)}addNamespaceMemberAccess(e,t){this.accessedOutsideVariables.set(e,t),this.parent.addNamespaceMemberAccess(e,t)}addReturnExpression(e){this.parent instanceof By&&this.parent.addReturnExpression(e)}addUsedOutsideNames(e,t,r,n){for(const n of this.accessedOutsideVariables.values())n.included&&(e.add(n.getBaseVariableName()),"system"===t&&r.has(n)&&e.add("exports"));const i=n.get(this);if(i)for(const t of i)e.add(t)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e,t,r){const n=new Set;if(this.addUsedOutsideNames(n,e,t,r),this.accessedDynamicImports)for(const e of this.accessedDynamicImports)e.inlineNamespace&&n.add(e.inlineNamespace.getBaseVariableName());for(const[e,t]of this.variables)(t.included||t.alwaysRendered)&&t.setRenderNames(null,Gh(e,n));for(const n of this.children)n.deconflict(e,t,r)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const r=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,r),r}}function jy(e,t,r){if("number"==typeof r)throw new Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return((e,t)=>{void 0===t&&(t={});var r=t.offsetLine||0,n=t.offsetColumn||0,i=e.split("\n"),a=0,o=i.map(((e,t)=>{var r=a+e.length+1,n={start:a,end:r,line:t};return a=r,n})),s=0;function c(e,t){return e.start<=t&&t<e.end}function l(e,t){return{line:r+e.line,column:n+t-e.start,character:t}}return(t,r)=>{"string"==typeof t&&(t=e.indexOf(t,r||0));for(var n=o[s],i=t>=n.end?1:-1;n;){if(c(n,t))return l(n,t);n=o[s+=i]}}})(e,r)(t,r&&r.startIndex)}const Uy={Literal:[],Program:["body"]},Vy="variables";class zy{constructor(e,t,r){this.included=!1,this.esTreeNode=e,this.keys=Uy[e.type]||(e=>(Uy[e.type]=Object.keys(e).filter((t=>"_rollupAnnotations"!==t&&"object"==typeof e[t])),Uy[e.type]))(e),this.parent=t,this.context=t.context,this.createScope(r),this.parseNode(e),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}addExportedVariables(e,t){}bind(){for(const e of this.keys){const t=this[e];if(null!==t)if(Array.isArray(t))for(const e of t)null!==e&&e.bind();else t.bind()}}createScope(e){this.scope=e}deoptimizePath(e){}getLiteralValueAtPath(e,t,r){return ay}getReturnExpressionWhenCalledAtPath(e,t,r){return oy}hasEffects(e){for(const t of this.keys){const r=this[t];if(null!==r)if(Array.isArray(r)){for(const t of r)if(null!==t&&t.hasEffects(e))return!0}else if(r.hasEffects(e))return!0}return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,r){return!0}include(e,t){this.included=!0;for(const r of this.keys){const n=this[r];if(null!==n)if(Array.isArray(n))for(const r of n)null!==r&&r.include(e,t);else n.include(e,t)}}includeAsSingleStatement(e,t){this.include(e,t)}includeCallArguments(e,t){for(const r of t)r.include(e,!1)}initialise(){}insertSemicolon(e){";"!==e.original[this.end-1]&&e.appendLeft(this.end,";")}parseNode(e){for(const t of Object.keys(e)){if(this.hasOwnProperty(t))continue;const r=e[t];if("_rollupAnnotations"===t)this.annotations=r;else if("object"!=typeof r||null===r)this[t]=r;else if(Array.isArray(r)){this[t]=[];for(const e of r)this[t].push(null===e?null:new(this.context.nodeConstructors[e.type]||this.context.nodeConstructors.UnknownNode)(e,this,this.scope))}else this[t]=new(this.context.nodeConstructors[r.type]||this.context.nodeConstructors.UnknownNode)(r,this,this.scope)}}render(e,t){for(const r of this.keys){const n=this[r];if(null!==n)if(Array.isArray(n))for(const r of n)null!==r&&r.render(e,t);else n.render(e,t)}}shouldBeIncluded(e){return this.included||!e.brokenFlow&&this.hasEffects(Oy())}}class Ky extends zy{createScope(e){this.scope=new By(e)}hasEffectsWhenAccessedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0])}hasEffectsWhenAssignedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0])}hasEffectsWhenCalledAtPath(e,t,r){return!t.withNew||this.body.hasEffectsWhenCalledAtPath(e,t,r)||null!==this.superClass&&this.superClass.hasEffectsWhenCalledAtPath(e,t,r)}initialise(){null!==this.id&&this.id.declare("class",this)}}class Wy extends Ky{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}render(e,t){"system"===t.format&&this.id&&t.exportNamesByVariable.has(this.id.variable)&&e.appendLeft(this.end,`${t.compact?"":" "}${Wh([this.id.variable],t)};`),super.render(e,t)}}class Hy extends Ry{constructor(e){super("arguments",null,oy,e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(){return!0}hasEffectsWhenCalledAtPath(){return!0}}class Jy extends Ry{constructor(e){super("this",null,null,e)}getLiteralValueAtPath(){return ay}hasEffectsWhenAccessedAtPath(e,t){return this.getInit(t).hasEffectsWhenAccessedAtPath(e,t)||super.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this.getInit(t).hasEffectsWhenAssignedAtPath(e,t)||super.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){return this.getInit(r).hasEffectsWhenCalledAtPath(e,t,r)||super.hasEffectsWhenCalledAtPath(e,t,r)}getInit(e){return e.replacedVariableInits.get(this)||oy}}class $y extends zy{bind(){super.bind(),this.argument.deoptimizePath([Yh,Yh])}}class Gy extends By{constructor(e,t){super(e),this.parameters=[],this.hasRest=!1,this.context=t,this.hoistedBodyVarScope=new By(this)}addParameterDeclaration(e){const t=e.name;let r=this.hoistedBodyVarScope.variables.get(t);return r?r.addDeclaration(e,null):r=new Ry(t,e,oy,this.context),this.variables.set(t,r),r}addParameterVariables(e,t){this.parameters=e;for(const t of e)for(const e of t)e.alwaysRendered=!0;this.hasRest=t}includeCallArguments(e,t){let r=!1,n=!1;const i=this.hasRest&&this.parameters[this.parameters.length-1];for(const r of t)if(r instanceof $y){for(const r of t)r.include(e,!1);break}for(let a=t.length-1;a>=0;a--){const o=this.parameters[a]||i,s=t[a];if(o)if(r=!1,0===o.length)n=!0;else for(const e of o)e.included&&(n=!0),e.calledFromTryStatement&&(r=!0);!n&&s.shouldBeIncluded(e)&&(n=!0),n&&s.include(e,r)}}}class qy extends Gy{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}getReturnExpression(){return null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression}updateReturnExpression(){if(1===this.returnExpressions.length)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=oy;for(const e of this.returnExpressions)e.deoptimizePath(Zh)}}}class Xy extends qy{constructor(e,t){super(e,t),this.variables.set("arguments",this.argumentsVariable=new Hy(t)),this.variables.set("this",this.thisVariable=new Jy(t))}findLexicalBoundary(){return this}includeCallArguments(e,t){if(super.includeCallArguments(e,t),this.argumentsVariable.included)for(const r of t)r.included||r.include(e,!1)}}function Yy(e,t){if("MemberExpression"===e.type)return!e.computed&&Yy(e.object,e);if("Identifier"===e.type){if(!t)return!0;switch(t.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"PropertyDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}const Qy=Object.freeze(Object.create(null)),Zy=Object.freeze({}),ev=Object.freeze([]),tv=Symbol("Value Properties"),rv={pure:!0},nv={pure:!1},iv={__proto__:null,[tv]:nv},av={__proto__:null,[tv]:rv},ov={__proto__:null,[tv]:nv,prototype:iv},sv={__proto__:null,[tv]:rv,prototype:iv},cv={__proto__:null,[tv]:rv,from:av,of:av,prototype:iv},lv={__proto__:null,[tv]:rv,supportedLocalesOf:sv},uv={global:iv,globalThis:iv,self:iv,window:iv,__proto__:null,[tv]:nv,Array:{__proto__:null,[tv]:nv,from:iv,isArray:av,of:av,prototype:iv},ArrayBuffer:{__proto__:null,[tv]:rv,isView:av,prototype:iv},Atomics:iv,BigInt:ov,BigInt64Array:ov,BigUint64Array:ov,Boolean:sv,constructor:ov,DataView:sv,Date:{__proto__:null,[tv]:rv,now:av,parse:av,prototype:iv,UTC:av},decodeURI:av,decodeURIComponent:av,encodeURI:av,encodeURIComponent:av,Error:sv,escape:av,eval:iv,EvalError:sv,Float32Array:cv,Float64Array:cv,Function:ov,hasOwnProperty:iv,Infinity:iv,Int16Array:cv,Int32Array:cv,Int8Array:cv,isFinite:av,isNaN:av,isPrototypeOf:iv,JSON:iv,Map:sv,Math:{__proto__:null,[tv]:nv,abs:av,acos:av,acosh:av,asin:av,asinh:av,atan:av,atan2:av,atanh:av,cbrt:av,ceil:av,clz32:av,cos:av,cosh:av,exp:av,expm1:av,floor:av,fround:av,hypot:av,imul:av,log:av,log10:av,log1p:av,log2:av,max:av,min:av,pow:av,random:av,round:av,sign:av,sin:av,sinh:av,sqrt:av,tan:av,tanh:av,trunc:av},NaN:iv,Number:{__proto__:null,[tv]:rv,isFinite:av,isInteger:av,isNaN:av,isSafeInteger:av,parseFloat:av,parseInt:av,prototype:iv},Object:{__proto__:null,[tv]:rv,create:av,getNotifier:av,getOwn:av,getOwnPropertyDescriptor:av,getOwnPropertyNames:av,getOwnPropertySymbols:av,getPrototypeOf:av,is:av,isExtensible:av,isFrozen:av,isSealed:av,keys:av,prototype:iv},parseFloat:av,parseInt:av,Promise:{__proto__:null,[tv]:nv,all:av,prototype:iv,race:av,resolve:av},propertyIsEnumerable:iv,Proxy:iv,RangeError:sv,ReferenceError:sv,Reflect:iv,RegExp:sv,Set:sv,SharedArrayBuffer:ov,String:{__proto__:null,[tv]:rv,fromCharCode:av,fromCodePoint:av,prototype:iv,raw:av},Symbol:{__proto__:null,[tv]:rv,for:av,keyFor:av,prototype:iv},SyntaxError:sv,toLocaleString:iv,toString:iv,TypeError:sv,Uint16Array:cv,Uint32Array:cv,Uint8Array:cv,Uint8ClampedArray:cv,unescape:av,URIError:sv,valueOf:iv,WeakMap:sv,WeakSet:sv,clearInterval:ov,clearTimeout:ov,console:iv,Intl:{__proto__:null,[tv]:nv,Collator:lv,DateTimeFormat:lv,ListFormat:lv,NumberFormat:lv,PluralRules:lv,RelativeTimeFormat:lv},setInterval:ov,setTimeout:ov,TextDecoder:ov,TextEncoder:ov,URL:ov,URLSearchParams:ov,AbortController:ov,AbortSignal:ov,addEventListener:iv,alert:iv,AnalyserNode:ov,Animation:ov,AnimationEvent:ov,applicationCache:iv,ApplicationCache:ov,ApplicationCacheErrorEvent:ov,atob:iv,Attr:ov,Audio:ov,AudioBuffer:ov,AudioBufferSourceNode:ov,AudioContext:ov,AudioDestinationNode:ov,AudioListener:ov,AudioNode:ov,AudioParam:ov,AudioProcessingEvent:ov,AudioScheduledSourceNode:ov,AudioWorkletNode:ov,BarProp:ov,BaseAudioContext:ov,BatteryManager:ov,BeforeUnloadEvent:ov,BiquadFilterNode:ov,Blob:ov,BlobEvent:ov,blur:iv,BroadcastChannel:ov,btoa:iv,ByteLengthQueuingStrategy:ov,Cache:ov,caches:iv,CacheStorage:ov,cancelAnimationFrame:iv,cancelIdleCallback:iv,CanvasCaptureMediaStreamTrack:ov,CanvasGradient:ov,CanvasPattern:ov,CanvasRenderingContext2D:ov,ChannelMergerNode:ov,ChannelSplitterNode:ov,CharacterData:ov,clientInformation:iv,ClipboardEvent:ov,close:iv,closed:iv,CloseEvent:ov,Comment:ov,CompositionEvent:ov,confirm:iv,ConstantSourceNode:ov,ConvolverNode:ov,CountQueuingStrategy:ov,createImageBitmap:iv,Credential:ov,CredentialsContainer:ov,crypto:iv,Crypto:ov,CryptoKey:ov,CSS:ov,CSSConditionRule:ov,CSSFontFaceRule:ov,CSSGroupingRule:ov,CSSImportRule:ov,CSSKeyframeRule:ov,CSSKeyframesRule:ov,CSSMediaRule:ov,CSSNamespaceRule:ov,CSSPageRule:ov,CSSRule:ov,CSSRuleList:ov,CSSStyleDeclaration:ov,CSSStyleRule:ov,CSSStyleSheet:ov,CSSSupportsRule:ov,CustomElementRegistry:ov,customElements:iv,CustomEvent:ov,DataTransfer:ov,DataTransferItem:ov,DataTransferItemList:ov,defaultstatus:iv,defaultStatus:iv,DelayNode:ov,DeviceMotionEvent:ov,DeviceOrientationEvent:ov,devicePixelRatio:iv,dispatchEvent:iv,document:iv,Document:ov,DocumentFragment:ov,DocumentType:ov,DOMError:ov,DOMException:ov,DOMImplementation:ov,DOMMatrix:ov,DOMMatrixReadOnly:ov,DOMParser:ov,DOMPoint:ov,DOMPointReadOnly:ov,DOMQuad:ov,DOMRect:ov,DOMRectReadOnly:ov,DOMStringList:ov,DOMStringMap:ov,DOMTokenList:ov,DragEvent:ov,DynamicsCompressorNode:ov,Element:ov,ErrorEvent:ov,Event:ov,EventSource:ov,EventTarget:ov,external:iv,fetch:iv,File:ov,FileList:ov,FileReader:ov,find:iv,focus:iv,FocusEvent:ov,FontFace:ov,FontFaceSetLoadEvent:ov,FormData:ov,frames:iv,GainNode:ov,Gamepad:ov,GamepadButton:ov,GamepadEvent:ov,getComputedStyle:iv,getSelection:iv,HashChangeEvent:ov,Headers:ov,history:iv,History:ov,HTMLAllCollection:ov,HTMLAnchorElement:ov,HTMLAreaElement:ov,HTMLAudioElement:ov,HTMLBaseElement:ov,HTMLBodyElement:ov,HTMLBRElement:ov,HTMLButtonElement:ov,HTMLCanvasElement:ov,HTMLCollection:ov,HTMLContentElement:ov,HTMLDataElement:ov,HTMLDataListElement:ov,HTMLDetailsElement:ov,HTMLDialogElement:ov,HTMLDirectoryElement:ov,HTMLDivElement:ov,HTMLDListElement:ov,HTMLDocument:ov,HTMLElement:ov,HTMLEmbedElement:ov,HTMLFieldSetElement:ov,HTMLFontElement:ov,HTMLFormControlsCollection:ov,HTMLFormElement:ov,HTMLFrameElement:ov,HTMLFrameSetElement:ov,HTMLHeadElement:ov,HTMLHeadingElement:ov,HTMLHRElement:ov,HTMLHtmlElement:ov,HTMLIFrameElement:ov,HTMLImageElement:ov,HTMLInputElement:ov,HTMLLabelElement:ov,HTMLLegendElement:ov,HTMLLIElement:ov,HTMLLinkElement:ov,HTMLMapElement:ov,HTMLMarqueeElement:ov,HTMLMediaElement:ov,HTMLMenuElement:ov,HTMLMetaElement:ov,HTMLMeterElement:ov,HTMLModElement:ov,HTMLObjectElement:ov,HTMLOListElement:ov,HTMLOptGroupElement:ov,HTMLOptionElement:ov,HTMLOptionsCollection:ov,HTMLOutputElement:ov,HTMLParagraphElement:ov,HTMLParamElement:ov,HTMLPictureElement:ov,HTMLPreElement:ov,HTMLProgressElement:ov,HTMLQuoteElement:ov,HTMLScriptElement:ov,HTMLSelectElement:ov,HTMLShadowElement:ov,HTMLSlotElement:ov,HTMLSourceElement:ov,HTMLSpanElement:ov,HTMLStyleElement:ov,HTMLTableCaptionElement:ov,HTMLTableCellElement:ov,HTMLTableColElement:ov,HTMLTableElement:ov,HTMLTableRowElement:ov,HTMLTableSectionElement:ov,HTMLTemplateElement:ov,HTMLTextAreaElement:ov,HTMLTimeElement:ov,HTMLTitleElement:ov,HTMLTrackElement:ov,HTMLUListElement:ov,HTMLUnknownElement:ov,HTMLVideoElement:ov,IDBCursor:ov,IDBCursorWithValue:ov,IDBDatabase:ov,IDBFactory:ov,IDBIndex:ov,IDBKeyRange:ov,IDBObjectStore:ov,IDBOpenDBRequest:ov,IDBRequest:ov,IDBTransaction:ov,IDBVersionChangeEvent:ov,IdleDeadline:ov,IIRFilterNode:ov,Image:ov,ImageBitmap:ov,ImageBitmapRenderingContext:ov,ImageCapture:ov,ImageData:ov,indexedDB:iv,innerHeight:iv,innerWidth:iv,InputEvent:ov,IntersectionObserver:ov,IntersectionObserverEntry:ov,isSecureContext:iv,KeyboardEvent:ov,KeyframeEffect:ov,length:iv,localStorage:iv,location:iv,Location:ov,locationbar:iv,matchMedia:iv,MediaDeviceInfo:ov,MediaDevices:ov,MediaElementAudioSourceNode:ov,MediaEncryptedEvent:ov,MediaError:ov,MediaKeyMessageEvent:ov,MediaKeySession:ov,MediaKeyStatusMap:ov,MediaKeySystemAccess:ov,MediaList:ov,MediaQueryList:ov,MediaQueryListEvent:ov,MediaRecorder:ov,MediaSettingsRange:ov,MediaSource:ov,MediaStream:ov,MediaStreamAudioDestinationNode:ov,MediaStreamAudioSourceNode:ov,MediaStreamEvent:ov,MediaStreamTrack:ov,MediaStreamTrackEvent:ov,menubar:iv,MessageChannel:ov,MessageEvent:ov,MessagePort:ov,MIDIAccess:ov,MIDIConnectionEvent:ov,MIDIInput:ov,MIDIInputMap:ov,MIDIMessageEvent:ov,MIDIOutput:ov,MIDIOutputMap:ov,MIDIPort:ov,MimeType:ov,MimeTypeArray:ov,MouseEvent:ov,moveBy:iv,moveTo:iv,MutationEvent:ov,MutationObserver:ov,MutationRecord:ov,name:iv,NamedNodeMap:ov,NavigationPreloadManager:ov,navigator:iv,Navigator:ov,NetworkInformation:ov,Node:ov,NodeFilter:iv,NodeIterator:ov,NodeList:ov,Notification:ov,OfflineAudioCompletionEvent:ov,OfflineAudioContext:ov,offscreenBuffering:iv,OffscreenCanvas:ov,open:iv,openDatabase:iv,Option:ov,origin:iv,OscillatorNode:ov,outerHeight:iv,outerWidth:iv,PageTransitionEvent:ov,pageXOffset:iv,pageYOffset:iv,PannerNode:ov,parent:iv,Path2D:ov,PaymentAddress:ov,PaymentRequest:ov,PaymentRequestUpdateEvent:ov,PaymentResponse:ov,performance:iv,Performance:ov,PerformanceEntry:ov,PerformanceLongTaskTiming:ov,PerformanceMark:ov,PerformanceMeasure:ov,PerformanceNavigation:ov,PerformanceNavigationTiming:ov,PerformanceObserver:ov,PerformanceObserverEntryList:ov,PerformancePaintTiming:ov,PerformanceResourceTiming:ov,PerformanceTiming:ov,PeriodicWave:ov,Permissions:ov,PermissionStatus:ov,personalbar:iv,PhotoCapabilities:ov,Plugin:ov,PluginArray:ov,PointerEvent:ov,PopStateEvent:ov,postMessage:iv,Presentation:ov,PresentationAvailability:ov,PresentationConnection:ov,PresentationConnectionAvailableEvent:ov,PresentationConnectionCloseEvent:ov,PresentationConnectionList:ov,PresentationReceiver:ov,PresentationRequest:ov,print:iv,ProcessingInstruction:ov,ProgressEvent:ov,PromiseRejectionEvent:ov,prompt:iv,PushManager:ov,PushSubscription:ov,PushSubscriptionOptions:ov,queueMicrotask:iv,RadioNodeList:ov,Range:ov,ReadableStream:ov,RemotePlayback:ov,removeEventListener:iv,Request:ov,requestAnimationFrame:iv,requestIdleCallback:iv,resizeBy:iv,ResizeObserver:ov,ResizeObserverEntry:ov,resizeTo:iv,Response:ov,RTCCertificate:ov,RTCDataChannel:ov,RTCDataChannelEvent:ov,RTCDtlsTransport:ov,RTCIceCandidate:ov,RTCIceTransport:ov,RTCPeerConnection:ov,RTCPeerConnectionIceEvent:ov,RTCRtpReceiver:ov,RTCRtpSender:ov,RTCSctpTransport:ov,RTCSessionDescription:ov,RTCStatsReport:ov,RTCTrackEvent:ov,screen:iv,Screen:ov,screenLeft:iv,ScreenOrientation:ov,screenTop:iv,screenX:iv,screenY:iv,ScriptProcessorNode:ov,scroll:iv,scrollbars:iv,scrollBy:iv,scrollTo:iv,scrollX:iv,scrollY:iv,SecurityPolicyViolationEvent:ov,Selection:ov,ServiceWorker:ov,ServiceWorkerContainer:ov,ServiceWorkerRegistration:ov,sessionStorage:iv,ShadowRoot:ov,SharedWorker:ov,SourceBuffer:ov,SourceBufferList:ov,speechSynthesis:iv,SpeechSynthesisEvent:ov,SpeechSynthesisUtterance:ov,StaticRange:ov,status:iv,statusbar:iv,StereoPannerNode:ov,stop:iv,Storage:ov,StorageEvent:ov,StorageManager:ov,styleMedia:iv,StyleSheet:ov,StyleSheetList:ov,SubtleCrypto:ov,SVGAElement:ov,SVGAngle:ov,SVGAnimatedAngle:ov,SVGAnimatedBoolean:ov,SVGAnimatedEnumeration:ov,SVGAnimatedInteger:ov,SVGAnimatedLength:ov,SVGAnimatedLengthList:ov,SVGAnimatedNumber:ov,SVGAnimatedNumberList:ov,SVGAnimatedPreserveAspectRatio:ov,SVGAnimatedRect:ov,SVGAnimatedString:ov,SVGAnimatedTransformList:ov,SVGAnimateElement:ov,SVGAnimateMotionElement:ov,SVGAnimateTransformElement:ov,SVGAnimationElement:ov,SVGCircleElement:ov,SVGClipPathElement:ov,SVGComponentTransferFunctionElement:ov,SVGDefsElement:ov,SVGDescElement:ov,SVGDiscardElement:ov,SVGElement:ov,SVGEllipseElement:ov,SVGFEBlendElement:ov,SVGFEColorMatrixElement:ov,SVGFEComponentTransferElement:ov,SVGFECompositeElement:ov,SVGFEConvolveMatrixElement:ov,SVGFEDiffuseLightingElement:ov,SVGFEDisplacementMapElement:ov,SVGFEDistantLightElement:ov,SVGFEDropShadowElement:ov,SVGFEFloodElement:ov,SVGFEFuncAElement:ov,SVGFEFuncBElement:ov,SVGFEFuncGElement:ov,SVGFEFuncRElement:ov,SVGFEGaussianBlurElement:ov,SVGFEImageElement:ov,SVGFEMergeElement:ov,SVGFEMergeNodeElement:ov,SVGFEMorphologyElement:ov,SVGFEOffsetElement:ov,SVGFEPointLightElement:ov,SVGFESpecularLightingElement:ov,SVGFESpotLightElement:ov,SVGFETileElement:ov,SVGFETurbulenceElement:ov,SVGFilterElement:ov,SVGForeignObjectElement:ov,SVGGElement:ov,SVGGeometryElement:ov,SVGGradientElement:ov,SVGGraphicsElement:ov,SVGImageElement:ov,SVGLength:ov,SVGLengthList:ov,SVGLinearGradientElement:ov,SVGLineElement:ov,SVGMarkerElement:ov,SVGMaskElement:ov,SVGMatrix:ov,SVGMetadataElement:ov,SVGMPathElement:ov,SVGNumber:ov,SVGNumberList:ov,SVGPathElement:ov,SVGPatternElement:ov,SVGPoint:ov,SVGPointList:ov,SVGPolygonElement:ov,SVGPolylineElement:ov,SVGPreserveAspectRatio:ov,SVGRadialGradientElement:ov,SVGRect:ov,SVGRectElement:ov,SVGScriptElement:ov,SVGSetElement:ov,SVGStopElement:ov,SVGStringList:ov,SVGStyleElement:ov,SVGSVGElement:ov,SVGSwitchElement:ov,SVGSymbolElement:ov,SVGTextContentElement:ov,SVGTextElement:ov,SVGTextPathElement:ov,SVGTextPositioningElement:ov,SVGTitleElement:ov,SVGTransform:ov,SVGTransformList:ov,SVGTSpanElement:ov,SVGUnitTypes:ov,SVGUseElement:ov,SVGViewElement:ov,TaskAttributionTiming:ov,Text:ov,TextEvent:ov,TextMetrics:ov,TextTrack:ov,TextTrackCue:ov,TextTrackCueList:ov,TextTrackList:ov,TimeRanges:ov,toolbar:iv,top:iv,Touch:ov,TouchEvent:ov,TouchList:ov,TrackEvent:ov,TransitionEvent:ov,TreeWalker:ov,UIEvent:ov,ValidityState:ov,visualViewport:iv,VisualViewport:ov,VTTCue:ov,WaveShaperNode:ov,WebAssembly:iv,WebGL2RenderingContext:ov,WebGLActiveInfo:ov,WebGLBuffer:ov,WebGLContextEvent:ov,WebGLFramebuffer:ov,WebGLProgram:ov,WebGLQuery:ov,WebGLRenderbuffer:ov,WebGLRenderingContext:ov,WebGLSampler:ov,WebGLShader:ov,WebGLShaderPrecisionFormat:ov,WebGLSync:ov,WebGLTexture:ov,WebGLTransformFeedback:ov,WebGLUniformLocation:ov,WebGLVertexArrayObject:ov,WebSocket:ov,WheelEvent:ov,Window:ov,Worker:ov,WritableStream:ov,XMLDocument:ov,XMLHttpRequest:ov,XMLHttpRequestEventTarget:ov,XMLHttpRequestUpload:ov,XMLSerializer:ov,XPathEvaluator:ov,XPathExpression:ov,XPathResult:ov,XSLTProcessor:ov};for(const e of["window","global","self","globalThis"])uv[e]=uv;function dv(e){let t=uv;for(const r of e){if("string"!=typeof r)return null;if(t=t[r],!t)return null}return t[tv]}class pv extends My{constructor(){super(...arguments),this.isReassigned=!0}hasEffectsWhenAccessedAtPath(e){return!(e=>1===e.length?"undefined"===e[0]||null!==dv(e):null!==dv(e.slice(0,-1)))([this.name,...e])}hasEffectsWhenCalledAtPath(e){return!(e=>{const t=dv(e);return null!==t&&t.pure})([this.name,...e])}}class _v extends zy{constructor(){super(...arguments),this.variable=null,this.bound=!1}addExportedVariables(e,t){null!==this.variable&&t.has(this.variable)&&e.push(this.variable)}bind(){this.bound||(this.bound=!0,null===this.variable&&Yy(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)),null!==this.variable&&this.variable instanceof Ry&&null!==this.variable.additionalInitializers&&this.variable.consolidateInitializers())}declare(e,t){let r;switch(e){case"var":r=this.scope.addDeclaration(this,this.context,t,!0);break;case"function":r=this.scope.addDeclaration(this,this.context,t,!1);break;case"let":case"const":case"class":r=this.scope.addDeclaration(this,this.context,t,!1);break;case"parameter":r=this.scope.addParameterDeclaration(this);break;default:throw new Error(`Internal Error: Unexpected identifier kind ${e}.`)}return[this.variable=r]}deoptimizePath(e){this.bound||this.bind(),0!==e.length||this.scope.contains(this.name)||this.disallowImportReassignment(),this.variable.deoptimizePath(e)}getLiteralValueAtPath(e,t,r){return this.bound||this.bind(),this.variable.getLiteralValueAtPath(e,t,r)}getReturnExpressionWhenCalledAtPath(e,t,r){return this.bound||this.bind(),this.variable.getReturnExpressionWhenCalledAtPath(e,t,r)}hasEffects(){return this.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof pv&&this.variable.hasEffectsWhenAccessedAtPath(Qh)}hasEffectsWhenAccessedAtPath(e,t){return null!==this.variable&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return!this.variable||this.variable.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){return!this.variable||this.variable.hasEffectsWhenCalledAtPath(e,t,r)}include(){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariableInModule(this.variable))}includeCallArguments(e,t){this.variable.includeCallArguments(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,isShorthandProperty:i}=Qy){if(this.variable){const t=this.variable.getName();t!==this.name&&(e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0}),i&&e.prependRight(this.start,`${this.name}: `)),"eval"===t&&r===wh&&n&&e.appendRight(this.start,"0, ")}}disallowImportReassignment(){return this.context.error({code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment to import '${this.name}'`},this.start)}}class fv extends zy{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e,t){this.argument.addExportedVariables(e,t)}bind(){super.bind(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([Yh,Yh])}declare(e,t){return this.declarationInit=t,this.argument.declare(e,oy)}deoptimizePath(e){0===e.length&&this.argument.deoptimizePath(Qh)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.argument.hasEffectsWhenAssignedAtPath(Qh,t)}}class mv extends zy{constructor(){super(...arguments),this.isPrototypeDeoptimized=!1}createScope(e){this.scope=new Xy(e,this.context)}deoptimizePath(e){1===e.length&&("prototype"===e[0]?this.isPrototypeDeoptimized=!0:e[0]===Yh&&(this.isPrototypeDeoptimized=!0,this.scope.getReturnExpression().deoptimizePath(Zh)))}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():oy}hasEffects(){return null!==this.id&&this.id.hasEffects()}hasEffectsWhenAccessedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenAssignedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenCalledAtPath(e,t,r){if(e.length>0)return!0;for(const e of this.params)if(e.hasEffects(r))return!0;const n=r.replacedVariableInits.get(this.scope.thisVariable);r.replacedVariableInits.set(this.scope.thisVariable,t.withNew?new Ty:oy);const{brokenFlow:i,ignore:a}=r;return r.ignore={breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!0},!!this.body.hasEffects(r)||(r.brokenFlow=i,n?r.replacedVariableInits.set(this.scope.thisVariable,n):r.replacedVariableInits.delete(this.scope.thisVariable),r.ignore=a,!1)}include(e,t){this.included=!0,this.id&&this.id.include();const r=this.scope.argumentsVariable.included;for(const n of this.params)n instanceof _v&&!r||n.include(e,t);const{brokenFlow:n}=e;e.brokenFlow=0,this.body.include(e,t),e.brokenFlow=n}includeCallArguments(e,t){this.scope.includeCallArguments(e,t)}initialise(){null!==this.id&&this.id.declare("function",this),this.scope.addParameterVariables(this.params.map((e=>e.declare("parameter",oy))),this.params[this.params.length-1]instanceof fv),this.body.addImplicitReturnExpressionToScope()}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope),super.parseNode(e)}}mv.prototype.preventChildBlockScope=!0;class gv extends mv{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}}class hv extends zy{include(e,t){super.include(e,t),t&&this.context.includeVariableInModule(this.variable)}initialise(){const e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(e,t,r){const{start:n,end:i}=r,a=((e,t)=>jh(e,Lh(e,"default",t)+7))(e.original,this.start);if(this.declaration instanceof gv)this.renderNamedDeclaration(e,a,"function","(",null===this.declaration.id,t);else if(this.declaration instanceof Wy)this.renderNamedDeclaration(e,a,"class","{",null===this.declaration.id,t);else{if(this.variable.getOriginalVariable()!==this.variable)return Oh(this,e,n,i),void 0;if(!this.variable.included)return e.remove(this.start,a),this.declaration.render(e,t,{isCalleeOfRenderedParent:!1,renderedParentType:Fh}),";"!==e.original[this.end-1]&&e.appendLeft(this.end,";"),void 0;this.renderVariableDeclaration(e,a,t)}this.declaration.render(e,t)}renderNamedDeclaration(e,t,r,n,i,a){const o=this.variable.getName();e.remove(this.start,t),i&&e.appendLeft(((e,t,r,n)=>{const i=Lh(e,t,n)+t.length;e=e.slice(i,Lh(e,r,i));const a=Lh(e,"*");return-1===a?i:i+a+1})(e.original,r,n,t),` ${o}`),"system"===a.format&&this.declaration instanceof Wy&&a.exportNamesByVariable.has(this.variable)&&e.appendLeft(this.end,` ${Wh([this.variable],a)};`)}renderVariableDeclaration(e,t,r){const n=59===e.original.charCodeAt(this.end-1),i="system"===r.format&&r.exportNamesByVariable.get(this.variable);i?(e.overwrite(this.start,t,`${r.varOrConst} ${this.variable.getName()} = exports('${i[0]}', `),e.appendRight(n?this.end-1:this.end,")"+(n?"":";"))):(e.overwrite(this.start,t,`${r.varOrConst} ${this.variable.getName()} = `),n||e.appendLeft(this.end,";"))}}hv.prototype.needsBoundaries=!0;class yv extends My{constructor(){super("undefined")}getLiteralValueAtPath(){}}class vv extends Ry{constructor(e,t,r){super(e,t,t.declaration,r),this.hasId=!1,this.originalId=null,this.originalVariable=null;const n=t.declaration;(n instanceof gv||n instanceof Wy)&&n.id?(this.hasId=!0,this.originalId=n.id):n instanceof _v&&(this.originalId=n)}addReference(e){this.hasId||(this.name=e.name)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){const e=this.getOriginalVariable();return e===this?super.getBaseVariableName():e.getBaseVariableName()}getDirectOriginalVariable(){return!this.originalId||!this.hasId&&(this.originalId.variable.isReassigned||this.originalId.variable instanceof yv||"syntheticNamespace"in this.originalId.variable)?null:this.originalId.variable}getName(){const e=this.getOriginalVariable();return e===this?super.getName():e.getName()}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let e,t=this;const r=new Set;do{r.add(t),e=t,t=e.getDirectOriginalVariable()}while(t instanceof vv&&!r.has(t));return this.originalVariable=t||e}}const bv="_missingExportShim";class xv extends My{constructor(e){super(bv),this.module=e}}class Ev extends My{constructor(e,t){super(e.getModuleName()),this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module,this.syntheticNamedExports=t}addReference(e){this.references.push(e),this.name=e.name}deoptimizePath(){const e=this.getMemberVariables();for(const t of Object.keys(e))e[t].deoptimizePath(Zh)}getMemberVariables(){if(this.memberVariables)return this.memberVariables;const e=Object.create(null);for(const t of this.context.getExports().concat(this.context.getReexports()))"*"!==t[0]&&t!==this.module.info.syntheticNamedExports&&(e[t]=this.context.traceExport(t));return this.memberVariables=e}include(){this.included=!0,this.context.includeAllExports()}prepareNamespace(e){this.mergedNamespaces=e;const t=this.context.getModuleExecIndex();for(const e of this.references)if(e.context.getModuleExecIndex()<=t){this.referencedEarly=!0;break}}renderBlock(e){const t=e.compact?"":" ",r=e.compact?"":"\n",n=e.indent,i=this.getMemberVariables(),a=Object.keys(i).map((r=>{const a=i[r];return this.referencedEarly||a.isReassigned?`${n}get ${r}${t}()${t}{${t}return ${a.getName()}${e.compact?"":";"}${t}}`:`${n}${$h[r]?`'${r}'`:r}: ${a.getName()}`}));e.namespaceToStringTag&&a.unshift(`${n}[Symbol.toStringTag]:${t}'Module'`);const o=this.mergedNamespaces.length>0||this.syntheticNamedExports;o||a.unshift(`${n}__proto__:${t}null`);let s=`{${r}${a.join(`,${r}`)}${r}}`;if(o){const e=["/*#__PURE__*/Object.create(null)"];this.mergedNamespaces.length>0&&e.push(...this.mergedNamespaces.map((e=>e.getName()))),this.syntheticNamedExports&&e.push(this.module.getSyntheticNamespace().getName()),a.length>0&&e.push(s),s=`/*#__PURE__*/Object.assign(${e.join(`,${t}`)})`}e.freeze&&(s=`/*#__PURE__*/Object.freeze(${s})`);const c=this.getName();return s=`${e.varOrConst} ${c}${t}=${t}${s};`,"system"===e.format&&e.exportNamesByVariable.has(this)&&(s+=`${r}${Wh([this],e)};`),s}renderFirst(){return this.referencedEarly}}Ev.prototype.isNamespace=!0;class Sv extends My{constructor(e,t,r){super(t),this.baseVariable=null,this.context=e,this.module=e.module,this.syntheticNamespace=r}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let e=this.syntheticNamespace;for(;e instanceof vv||e instanceof Sv;){if(e instanceof vv){const t=e.getOriginalVariable();if(t===e)break;e=t}e instanceof Sv&&(e=e.syntheticNamespace)}return this.baseVariable=e}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(){const e=this.name;return`${this.syntheticNamespace.getName()}${Dv(e)}`}include(){this.included||(this.included=!0,this.context.includeVariableInModule(this.syntheticNamespace))}setRenderNames(e,t){super.setRenderNames(e,t)}}const Dv=e=>!$h[e]&&/^(?!\d)[\w$]+$/.test(e)?`.${e}`:`[${JSON.stringify(e)}]`;class Tv extends My{constructor(e,t){super(t),this.module=e,this.isNamespace="*"===t,this.referenced=!1}addReference(e){this.referenced=!0,"default"!==this.name&&"*"!==this.name||this.module.suggestName(e.name)}hasEffectsWhenAccessedAtPath(e){return e.length>(this.isNamespace?1:0)}include(){this.included||(this.included=!0,this.module.used=!0)}}const Cv="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public".split(" "),kv="Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "),Av=new Set(Cv.concat(kv)),Nv=/[^$_a-zA-Z0-9]/g,wv=e=>/\d/.test(e[0]);function Fv(e){return e=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(Nv,"_"),(wv(e)||Av.has(e))&&(e=`_${e}`),e||"_"}const Pv=/^(?:\/|(?:[A-Za-z]:)?[\\|/])/,Iv=/^\.?\.\//;function Ov(e){return Pv.test(e)}function Mv(e){return Iv.test(e)}function Rv(e){return-1==e.indexOf("\\")?e:e.replace(/\\/g,"/")}class Lv{constructor(e,t,r,n){this.options=e,this.id=t,this.defaultVariableName="",this.dynamicImporters=[],this.importers=[],this.mostCommonSuggestion=0,this.namespaceVariableName="",this.reexported=!1,this.renderPath=void 0,this.renormalizeRenderPath=!1,this.used=!1,this.variableName="",this.execIndex=1/0,this.suggestedVariableName=Fv(t.split(/[\\/]/).pop()),this.nameSuggestions=Object.create(null),this.declarations=Object.create(null),this.exportedVariables=new Map;const i=this;this.info={ast:null,code:null,dynamicallyImportedIds:ev,get dynamicImporters(){return i.dynamicImporters.sort()},hasModuleSideEffects:r,id:t,implicitlyLoadedAfterOneOf:ev,implicitlyLoadedBefore:ev,importedIds:ev,get importers(){return i.importers.sort()},isEntry:!1,isExternal:!0,meta:n,syntheticNamedExports:!1}}getVariableForExportName(e){let t=this.declarations[e];return t||(this.declarations[e]=t=new Tv(this,e),this.exportedVariables.set(t,e),t)}setRenderPath(e,t){return this.renderPath="function"==typeof e.paths?e.paths(this.id):e.paths[this.id],this.renderPath||(Ov(this.id)?(this.renderPath=Rv(We(t,this.id)),this.renormalizeRenderPath=!0):this.renderPath=this.id),this.renderPath}suggestName(e){this.nameSuggestions[e]||(this.nameSuggestions[e]=0),this.nameSuggestions[e]+=1,this.nameSuggestions[e]>this.mostCommonSuggestion&&(this.mostCommonSuggestion=this.nameSuggestions[e],this.suggestedVariableName=e)}warnUnusedImports(){const e=Object.keys(this.declarations).filter((e=>{if("*"===e)return!1;const t=this.declarations[e];return!t.included&&!this.reexported&&!t.referenced}));if(0===e.length)return;const t=1===e.length?`'${e[0]}' is`:`${e.slice(0,-1).map((e=>`'${e}'`)).join(", ")} and '${e.slice(-1)}' are`;this.options.onwarn({code:"UNUSED_EXTERNAL_IMPORT",message:`${t} imported from external module '${this.id}' but never used`,names:e,source:this.id})}}function Bv(e){return e.endsWith(".js")?e.slice(0,-3):e}function jv(e,t){return e.autoId?`${e.basePath?e.basePath+"/":""}${Bv(t)}`:e.id||""}const Uv="_interopDefault",Vv="_interopDefaultLegacy",zv="_interopNamespace",Kv="_interopNamespaceDefault",Wv="_interopNamespaceDefaultOnly",Hv={auto:Uv,default:null,defaultOnly:null,esModule:null,false:null,true:Vv};function Jv(e,t){return"esModule"===e||t&&("auto"===e||"true"===e)}const $v={auto:zv,default:Kv,defaultOnly:Wv,esModule:null,false:null,true:zv};function Gv(e,t){return Jv(e,t)&&Hv[e]===Uv}function qv(){return Wv}const Xv={[Uv]:(e,t,r,n,i)=>`function _interopDefault${e}(e)${e}{${e}return e${e}&&${e}e.__esModule${e}?${e}${i?Yv(e):Qv(e)}${r}${e}}${t}${t}`,[Vv]:(e,t,r,n,i)=>`function _interopDefaultLegacy${e}(e)${e}{${e}return e${e}&&${e}typeof e${e}===${e}'object'${e}&&${e}'default'${e}in e${e}?${e}${i?Yv(e):Qv(e)}${r}${e}}${t}${t}`,[zv]:(e,t,r,n,i,a,o,s)=>`function _interopNamespace(e)${e}{${t}`+(s.has(Kv)?`${n}return e${e}&&${e}e.__esModule${e}?${e}e${e}:${e}_interopNamespaceDefault(e)${r}${t}`:`${n}if${e}(e${e}&&${e}e.__esModule)${e}return e;${t}`+Zv(e,t,n,n,i,a,o))+`}${t}${t}`,[Kv]:(e,t,r,n,i,a,o)=>`function _interopNamespaceDefault(e)${e}{${t}`+Zv(e,t,n,n,i,a,o)+`}${t}${t}`,[Wv]:(e,t,r,n,i,a,o)=>`function _interopNamespaceDefaultOnly(e)${e}{${t}${n}return ${rb(`{__proto__: null,${o?`${e}[Symbol.toStringTag]:${e}'Module',`:""}${e}'default':${e}e}`,a)};${t}}${t}${t}`};function Yv(e){return`e${e}:${e}{${e}'default':${e}e${e}}`}function Qv(e){return`e['default']${e}:${e}e`}function Zv(e,t,r,n,i,a,o){return`${n}var n${e}=${e}${o?`{__proto__:${e}null,${e}[Symbol.toStringTag]:${e}'Module'}`:"Object.create(null)"};${t}${n}if${e}(e)${e}{${t}${n}${r}Object.keys(e).forEach(function${e}(k)${e}{${t}`+(i?eb:tb)(e,t,r,n+r+r)+`${n}${r}});${t}`+`${n}}${t}`+`${n}n['default']${e}=${e}e;${t}`+`${n}return ${rb("n",a)};${t}`}function eb(e,t,r,n){return`${n}if${e}(k${e}!==${e}'default')${e}{${t}${n}${r}var d${e}=${e}Object.getOwnPropertyDescriptor(e,${e}k);${t}${n}${r}Object.defineProperty(n,${e}k,${e}d.get${e}?${e}d${e}:${e}{${t}${n}${r}${r}enumerable:${e}true,${t}${n}${r}${r}get:${e}function${e}()${e}{${t}${n}${r}${r}${r}return e[k];${t}${n}${r}${r}}${t}${n}${r}});${t}${n}}${t}`}function tb(e,t,r,n){return`${n}n[k]${e}=${e}e[k];${t}`}function rb(e,t){return t?`Object.freeze(${e})`:e}const nb=Object.keys(Xv);function ib(e,t,r,n,i,a,o,s="return "){const c=i?"":" ",l=i?"":"\n";if(!r)return`${l}${l}${s}${((e,t,r,n)=>{if(e.length>0)return e[0].local;for(const{defaultVariableName:e,id:i,isChunk:a,name:o,namedExportsMode:s,namespaceVariableName:c,reexports:l}of t)if(l)return ab(o,l[0].imported,s,a,e,c,r,i,n)})(e,t,n,o)};`;let u="";for(const{defaultVariableName:e,id:i,isChunk:s,name:d,namedExportsMode:p,namespaceVariableName:_,reexports:f}of t)if(f&&r)for(const t of f)if("*"!==t.reexported){const r=ab(d,t.imported,p,s,e,_,n,i,o);u&&(u+=l),u+="*"!==t.imported&&t.needsLiveBinding?`Object.defineProperty(exports,${c}'${t.reexported}',${c}{${l}${a}enumerable:${c}true,${l}${a}get:${c}function${c}()${c}{${l}${a}${a}return ${r};${l}${a}}${l}});`:`exports.${t.reexported}${c}=${c}${r};`}for(const t of e){const e=`exports.${t.exported}`,r=t.local;e!==r&&(u&&(u+=l),u+=`${e}${c}=${c}${r};`)}for(const{name:e,reexports:n}of t)if(n&&r)for(const t of n)"*"===t.reexported&&(u&&(u+=l),t.needsLiveBinding?u+=`Object.keys(${e}).forEach(function${c}(k)${c}{${l}${a}if${c}(k${c}!==${c}'default'${c}&&${c}!exports.hasOwnProperty(k))${c}Object.defineProperty(exports,${c}k,${c}{${l}${a}${a}enumerable:${c}true,${l}${a}${a}get:${c}function${c}()${c}{${l}${a}${a}${a}return ${e}[k];${l}${a}${a}}${l}${a}});${l}});`:u+=`Object.keys(${e}).forEach(function${c}(k)${c}{${l}${a}if${c}(k${c}!==${c}'default'${c}&&${c}!exports.hasOwnProperty(k))${c}exports[k]${c}=${c}${e}[k];${l}});`);return u?`${l}${l}${u}`:""}function ab(e,t,r,n,i,a,o,s,c){if("default"===t){if(!n){const t=String(o(s)),r=Hv[t]?i:e;return Jv(t,c)?`${r}['default']`:r}return r?`${e}['default']`:e}return"*"===t?(n?!r:$v[String(o(s))])?a:e:`${e}.${t}`}function ob(e,t,r,n,i){let a="";return e&&(t&&(a+=(e=>`Object.defineProperty(exports,${e}'__esModule',${e}{${e}value:${e}true${e}});`)(n)),r&&(a&&(a+=i),a+=(e=>`exports[Symbol.toStringTag]${e}=${e}'Module';`)(n))),a}function sb(e,t,r,n,i,a,o,s,c,l,u){const d=new Set,p=[],_=(e,r,n)=>{d.add(r),p.push(`${t} ${e}${s}=${s}/*#__PURE__*/${r}(${n});`)};for(const{defaultVariableName:t,imports:n,id:i,isChunk:a,name:o,namedExportsMode:s,namespaceVariableName:c,reexports:l}of e)if(a){for(const{imported:e,reexported:t}of[...n||[],...l||[]])if("*"===e&&"*"!==t){s||_(c,qv(),o);break}}else{const e=String(r(i));let a=!1,s=!1;for(const{imported:r,reexported:i}of[...n||[],...l||[]]){let n,l;"default"===r?a||(a=!0,t!==c&&(l=t,n=Hv[e])):"*"===r&&"*"!==i&&(s||(s=!0,n=$v[e],l=c)),n&&_(l,n,o)}}return`${((e,t,r,n,i,a,o,s,c)=>nb.map((l=>e.has(l)||t.has(l)?Xv[l](r,n,i,a,o,s,c,e):"")).join(""))(d,o,s,c,l,u,n,i,a)}${p.length>0?`${p.join(c)}${c}${c}`:""}`}function cb(e){return"."===e[0]?Bv(e):e}const lb={assert:!0,buffer:!0,console:!0,constants:!0,domain:!0,events:!0,http:!0,https:!0,os:!0,path:!0,process:!0,punycode:!0,querystring:!0,stream:!0,string_decoder:!0,timers:!0,tty:!0,url:!0,util:!0,vm:!0,zlib:!0};function ub(e,t){const r=t.map((({id:e})=>e)).filter((e=>e in lb));r.length&&e({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in ${1===r.length?`module ('${r[0]}')`:`modules (${r.slice(0,-1).map((e=>`'${e}'`)).join(", ")} and '${r.slice(-1)}')`}. You might need to include https://github.com/ionic-team/rollup-plugin-node-polyfills`,modules:r})}function db(e){return e.replace(/^\t+/,(e=>e.split("\t").join(" ")))}function pb(e){const t=/^[a-z]:/i.exec(e),r=t?t[0]:"";return r+e.substr(r.length).replace(/[\0?*:]/g,"_")}function _b(e){const t=Le(e);return t.substr(0,t.length-je(e).length)}function fb(e){return Ov(e)?We(He(),e):e}function mb(e){return!("/"===e[0]||"."===e[0]&&("/"===e[1]||"."===e[1])||pb(e)!==e||Ov(e))}function gb(e){throw e instanceof Error||(e=Object.assign(new Error(e.message),e)),e}function hb(e,t,r,n){if("object"==typeof t){const{line:r,column:i}=t;e.loc={file:n,line:r,column:i}}else{e.pos=t;const{line:i,column:a}=jy(r,t,{offsetLine:1});e.loc={file:n,line:i,column:a}}if(void 0===e.frame){const{line:t,column:n}=e.loc;e.frame=((e,t,r)=>{let n=e.split("\n");const i=Math.max(0,t-3);let a=Math.min(t+2,n.length);for(n=n.slice(i,a);!/\S/.test(n[n.length-1]);)n.pop(),a-=1;const o=String(a).length;return n.map(((e,n)=>{const a=i+n+1===t;let s=String(n+i+1);for(;s.length<o;)s=` ${s}`;if(a){const t=(e=>{let t="";for(;e--;)t+=" ";return t})(o+2+db(e.slice(0,r)).length)+"^";return`${s}: ${db(e)}\n${t}`}return`${s}: ${db(e)}`})).join("\n")})(r,t,n)}}var yb;function vb({fileName:e,code:t},r){const n={code:yb.CHUNK_INVALID,message:`Chunk "${e}" is not valid JavaScript: ${r.message}.`};return hb(n,r.loc,t,e),n}function bb(e,t,r){return{code:"INVALID_EXPORT_OPTION",message:`"${e}" was specified for "output.exports", but entry module "${fb(r)}" has the following exports: ${t.join(", ")}`}}function xb(e,t,r){return{code:yb.MISSING_EXPORT,message:`'${e}' is not exported by ${fb(r)}, imported by ${fb(t)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"}}function Eb(e){const t=Array.from(e.implicitlyLoadedBefore,(e=>fb(e.id))).sort();return{code:yb.MISSING_IMPLICIT_DEPENDANT,message:`Module "${fb(e.id)}" that should be implicitly loaded before "${1===t.length?t[0]:`${t.slice(0,-1).join('", "')}" and "${t.slice(-1)[0]}`}" is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function Sb(e,t,r){return{code:yb.NAMESPACE_CONFLICT,message:`Conflicting namespaces: ${fb(t.id)} re-exports '${e}' from both ${fb(t.exportsAll[e])} and ${fb(r.exportsAll[e])} (will be ignored)`,name:e,reexporter:t.id,sources:[t.exportsAll[e],r.exportsAll[e]]}}function Db(e,t,r){const n=r?"reexport":"import";return{code:yb.UNEXPECTED_NAMED_IMPORT,id:e,message:`The named export "${t}" was ${n}ed from the external module ${fb(e)} even though its interop type is "defaultOnly". Either remove or change this ${n} or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function Tb(e){return{code:yb.UNEXPECTED_NAMED_IMPORT,id:e,message:`There was a namespace "*" reexport from the external module ${fb(e)} even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function Cb(e){return{code:yb.VALIDATION_ERROR,message:e}}function kb(){return{code:yb.ALREADY_CLOSED,message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}}function Ab(e,t,r){Nb(e,t,r.onwarn,r.strictDeprecations)}function Nb(e,t,r,n){if(t||n){const t=(e=>({code:yb.DEPRECATED_FEATURE,..."string"==typeof e?{message:e}:e}))(e);if(n)return gb(t);r(t)}}(e=>{e.ALREADY_CLOSED="ALREADY_CLOSED",e.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",e.ASSET_NOT_FOUND="ASSET_NOT_FOUND",e.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",e.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",e.BAD_LOADER="BAD_LOADER",e.CANNOT_EMIT_FROM_OPTIONS_HOOK="CANNOT_EMIT_FROM_OPTIONS_HOOK",e.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",e.CHUNK_INVALID="CHUNK_INVALID",e.CIRCULAR_REEXPORT="CIRCULAR_REEXPORT",e.CYCLIC_CROSS_CHUNK_REEXPORT="CYCLIC_CROSS_CHUNK_REEXPORT",e.DEPRECATED_FEATURE="DEPRECATED_FEATURE",e.EXTERNAL_SYNTHETIC_EXPORTS="EXTERNAL_SYNTHETIC_EXPORTS",e.FILE_NAME_CONFLICT="FILE_NAME_CONFLICT",e.FILE_NOT_FOUND="FILE_NOT_FOUND",e.INPUT_HOOK_IN_OUTPUT_PLUGIN="INPUT_HOOK_IN_OUTPUT_PLUGIN",e.INVALID_CHUNK="INVALID_CHUNK",e.INVALID_EXPORT_OPTION="INVALID_EXPORT_OPTION",e.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",e.INVALID_OPTION="INVALID_OPTION",e.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",e.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",e.MISSING_EXPORT="MISSING_EXPORT",e.MISSING_IMPLICIT_DEPENDANT="MISSING_IMPLICIT_DEPENDANT",e.MIXED_EXPORTS="MIXED_EXPORTS",e.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",e.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE="NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",e.PLUGIN_ERROR="PLUGIN_ERROR",e.PREFER_NAMED_EXPORTS="PREFER_NAMED_EXPORTS",e.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT="SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",e.UNEXPECTED_NAMED_IMPORT="UNEXPECTED_NAMED_IMPORT",e.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",e.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT",e.VALIDATION_ERROR="VALIDATION_ERROR"})(yb||(yb={}));const wb=/^[a-zA-Z$_][a-zA-Z0-9$_]*$/;function Fb(e){return wb.test(e)?`.${e}`:`['${e}']`}function Pb(e){return e.split(".").map(Fb).join("")}function Ib(e,t,r,n,i){const a=n?"":" ",o=e.split(".");o[0]=("function"==typeof r?r(o[0]):r[o[0]])||o[0];const s=o.pop();let c=t,l=o.map((e=>(c+=Fb(e),`${c}${a}=${a}${c}${a}||${a}{}`))).concat(`${c}${Fb(s)}`).join(`,${a}`).concat(`${a}=${a}${i}`);return o.length>0&&(l=`(${l})`),l}function Ob(e){let t=e.length;for(;t--;){const{imports:r,reexports:n}=e[t];if(r||n)return e.slice(0,t+1)}return[]}const Mb=e=>`this${Pb(e)}`;function Rb({dependencies:e,exports:t}){const r=new Set(t.map((e=>e.exported)));r.has("default")||r.add("default");for(const{reexports:t}of e)if(t)for(const e of t)"*"===e.imported||r.has(e.reexported)||r.add(e.reexported);return r}function Lb(e,t,r,n){return 0===e.length?"":1===e.length?`${r}${r}${r}exports('${e[0].name}',${t}${e[0].value});${n}${n}`:`${r}${r}${r}exports({${n}`+e.map((({name:e,value:n})=>`${r}${r}${r}${r}${e}:${t}${n}`)).join(`,${n}`)+`${n}${r}${r}${r}});${n}${n}`}function Bb(e,t){return e?`${t}${Pb(e)}`:"null"}var jb={system(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,indentString:a,intro:o,outro:s,usesTopLevelAwait:c,varOrConst:l},u){const d=u.compact?"":"\n",p=u.compact?"":" ",_=r.map((e=>`'${e.id}'`)),f=[];let m;const g=[];for(const{imports:e,reexports:t}of r){const i=[];if(e)for(const t of e)f.push(t.local),"*"===t.imported?i.push(`${t.local}${p}=${p}module;`):i.push(`${t.local}${p}=${p}module.${t.imported};`);if(t){let e=!1;if(t.length>1||1===t.length&&("*"===t[0].reexported||"*"===t[0].imported)){for(const o of t)"*"===o.reexported&&(m||(m=Rb({dependencies:r,exports:n})),e||(i.push(`${l} _setter${p}=${p}{};`),e=!0),i.push(`for${p}(var _$p${p}in${p}module)${p}{`),i.push(`${a}if${p}(!_starExcludes[_$p])${p}_setter[_$p]${p}=${p}module[_$p];`),i.push("}"));for(const e of t)"*"===e.imported&&"*"!==e.reexported&&i.push(`exports('${e.reexported}',${p}module);`);for(const r of t)"*"!==r.reexported&&"*"!==r.imported&&(e||(i.push(`${l} _setter${p}=${p}{};`),e=!0),i.push(`_setter.${r.reexported}${p}=${p}module.${r.imported};`));e&&i.push("exports(_setter);")}else for(const e of t)i.push(`exports('${e.reexported}',${p}module.${e.imported});`)}g.push(i.join(`${d}${a}${a}${a}`))}const h=u.name?`'${u.name}',${p}`:"",y=t.has("module")?`exports,${p}module`:i?"exports":"";let v=`System.register(${h}[`+_.join(`,${p}`)+`],${p}function${p}(${y})${p}{${d}${a}${u.strict?"'use strict';":""}`+((e,t,r,n,i)=>e?`${i}${n}${t} _starExcludes${r}=${r}{${r}${[...e].map((e=>`${e}:${r}1`)).join(`,${r}`)}${r}};`:"")(m,l,p,a,d)+((e,t,r,n)=>e.length?`${n}${r}var ${e.join(`,${t}`)};`:"")(f,p,a,d)+`${d}${a}return${p}{${g.length?`${d}${a}${a}setters:${p}[${g.map((e=>e?`function${p}(module)${p}{${d}${a}${a}${a}${e}${d}${a}${a}}`:u.systemNullSetters?"null":`function${p}()${p}{}`)).join(`,${p}`)}],`:""}${d}`;v+=`${a}${a}execute:${p}${c?`async${p}`:""}function${p}()${p}{${d}${d}`+((e,t,r,n)=>Lb(e.filter((e=>e.hoisted||e.uninitialized)).map((e=>({name:e.exported,value:e.uninitialized?"void 0":e.local}))),t,r,n))(n,p,a,d);const b=`${d}${d}`+((e,t,r,n)=>Lb(e.filter((e=>e.expression)).map((e=>({name:e.exported,value:e.local}))),t,r,n))(n,p,a,d)+((e,t,r,n)=>Lb(e.filter((e=>e.local===bv)).map((e=>({name:e.exported,value:bv}))),t,r,n))(n,p,a,d)+`${a}${a}}${d}${a}}${u.compact?"":";"}${d}});`;return o&&e.prepend(o),s&&e.append(s),e.indent(`${a}${a}${a}`).append(b).prepend(v)},amd(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,id:a,indentString:o,intro:s,isEntryFacade:c,isModuleFacade:l,namedExportsMode:u,outro:d,varOrConst:p,warn:_},{amd:f,compact:m,esModule:g,externalLiveBindings:h,freeze:y,interop:v,namespaceToStringTag:b,strict:x}){ub(_,r);const E=r.map((e=>`'${cb(e.id)}'`)),S=r.map((e=>e.name)),D=m?"":"\n",T=m?"":";",C=m?"":" ";u&&i&&(S.unshift("exports"),E.unshift("'exports'")),t.has("require")&&(S.unshift("require"),E.unshift("'require'")),t.has("module")&&(S.unshift("module"),E.unshift("'module'"));const k=jv(f,a),A=(k?`'${k}',${C}`:"")+(E.length?`[${E.join(`,${C}`)}],${C}`:""),N=x?`${C}'use strict';`:"";e.prepend(`${s}${sb(r,p,v,h,y,b,t,C,D,T,o)}`);const w=ib(n,r,u,v,m,o,h);let F=ob(u&&i,c&&g,l&&b,C,D);return F&&(F=D+D+F),e.append(`${w}${F}${d}`),e.indent(o).prepend(`${f.define}(${A}function${C}(${S.join(`,${C}`)})${C}{${N}${D}${D}`).append(`${D}${D}});`)},cjs(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,indentString:a,intro:o,isEntryFacade:s,isModuleFacade:c,namedExportsMode:l,outro:u,varOrConst:d},{compact:p,esModule:_,externalLiveBindings:f,freeze:m,interop:g,namespaceToStringTag:h,strict:y}){const v=p?"":"\n",b=p?"":";",x=p?"":" ",E=y?`'use strict';${v}${v}`:"";let S=ob(l&&i,s&&_,c&&h,x,v);S&&(S+=v+v);const D=((e,t,r,n,i)=>{let a="",o=!1;for(const{id:s,name:c,reexports:l,imports:u}of e)l||u?(a+=t&&o?",":`${a?`;${n}`:""}${r} `,o=!0,a+=`${c}${i}=${i}require('${s}')`):(a&&(a+=!t||o?`;${n}`:","),o=!1,a+=`require('${s}')`);return a?`${a};${n}${n}`:""})(r,p,d,v,x),T=sb(r,d,g,f,m,h,t,x,v,b,a);e.prepend(`${E}${o}${S}${D}${T}`);const C=ib(n,r,l,g,p,a,f,`module.exports${x}=${x}`);return e.append(`${C}${u}`)},es(e,{intro:t,outro:r,dependencies:n,exports:i,varOrConst:a},{compact:o}){const s=o?"":" ",c=o?"":"\n",l=((e,t)=>{const r=[];for(const{id:n,reexports:i,imports:a,name:o}of e)if(i||a){if(a){let e=null,i=null;const o=[];for(const t of a)"default"===t.imported?e=t:"*"===t.imported?i=t:o.push(t);i&&r.push(`import${t}*${t}as ${i.local} from${t}'${n}';`),e&&0===o.length?r.push(`import ${e.local} from${t}'${n}';`):o.length>0&&r.push(`import ${e?`${e.local},${t}`:""}{${t}${o.map((e=>e.imported===e.local?e.imported:`${e.imported} as ${e.local}`)).join(`,${t}`)}${t}}${t}from${t}'${n}';`)}if(i){let e=null;const s=[],c=[];for(const t of i)"*"===t.reexported?e=t:"*"===t.imported?s.push(t):c.push(t);if(e&&r.push(`export${t}*${t}from${t}'${n}';`),s.length>0){a&&a.some((e=>"*"===e.imported&&e.local===o))||r.push(`import${t}*${t}as ${o} from${t}'${n}';`);for(const e of s)r.push(`export${t}{${t}${o===e.reexported?o:`${o} as ${e.reexported}`} };`)}c.length>0&&r.push(`export${t}{${t}${c.map((e=>e.imported===e.reexported?e.imported:`${e.imported} as ${e.reexported}`)).join(`,${t}`)}${t}}${t}from${t}'${n}';`)}}else r.push(`import${t}'${n}';`);return r})(n,s);l.length>0&&(t+=l.join(c)+c+c),t&&e.prepend(t);const u=((e,t,r)=>{const n=[],i=[];for(const a of e)"default"===a.exported?n.push(`export default ${a.local};`):(a.expression&&n.push(`${r} ${a.local}${t}=${t}${a.expression};`),i.push(a.exported===a.local?a.local:`${a.local} as ${a.exported}`));return i.length&&n.push(`export${t}{${t}${i.join(`,${t}`)}${t}};`),n})(i,s,a);return u.length&&e.append(c+c+u.join(c).trim()),r&&e.append(r),e.trim()},iife(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,indentString:a,intro:o,namedExportsMode:s,outro:c,varOrConst:l,warn:u},{compact:d,esModule:p,extend:_,freeze:f,externalLiveBindings:m,globals:g,interop:h,name:y,namespaceToStringTag:v,strict:b}){const x=d?"":" ",E=d?"":";",S=d?"":"\n",D=y&&-1!==y.indexOf("."),T=!_&&!D;if(y&&T&&(wv(C=y)||Av.has(C)||Nv.test(C)))return gb({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${y}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});var C;ub(u,r);const k=Ob(r),A=k.map((e=>e.globalName||"null")),N=k.map((e=>e.name));i&&!y&&u({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.'}),s&&i&&(_?(A.unshift(`${Mb(y)}${x}=${x}${Mb(y)}${x}||${x}{}`),N.unshift("exports")):(A.unshift("{}"),N.unshift("exports")));const w=b?`${a}'use strict';${S}`:"",F=sb(r,l,h,m,f,v,t,x,S,E,a);e.prepend(`${o}${F}`);let P=`(function${x}(${N.join(`,${x}`)})${x}{${S}${w}${S}`;i&&(!y||_&&s||(P=(T?`${l} ${y}`:Mb(y))+`${x}=${x}${P}`),D&&(P=((e,t,r,n)=>{const i=n?"":" ",a=e.split(".");a[0]=("function"==typeof r?r(a[0]):r[a[0]])||a[0],a.pop();let o="this";return a.map((e=>(o+=Fb(e),`${o}${i}=${i}${o}${i}||${i}{}${n?"":";"}`))).join(n?",":"\n")+(n&&a.length?";":"\n")})(y,0,g,d)+P));let I=`${S}${S}}(${A.join(`,${x}`)}));`;i&&!_&&s&&(I=`${S}${S}${a}return exports;${I}`);const O=ib(n,r,s,h,d,a,m);let M=ob(s&&i,p,v,x,S);return M&&(M=S+S+M),e.append(`${O}${M}${c}`),e.indent(a).prepend(P).append(I)},umd(e,{accessedGlobals:t,dependencies:r,exports:n,hasExports:i,id:a,indentString:o,intro:s,namedExportsMode:c,outro:l,varOrConst:u,warn:d},{amd:p,compact:_,esModule:f,extend:m,externalLiveBindings:g,freeze:h,interop:y,name:v,namespaceToStringTag:b,globals:x,noConflict:E,strict:S}){const D=_?"":" ",T=_?"":"\n",C=_?"":";",k=_?"f":"factory",A=_?"g":"global";if(i&&!v)return gb({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.'});ub(d,r);const N=r.map((e=>`'${cb(e.id)}'`)),w=r.map((e=>`require('${e.id}')`)),F=Ob(r),P=F.map((e=>Bb(e.globalName,A))),I=F.map((e=>e.name));c&&(i||E)&&(N.unshift("'exports'"),w.unshift("exports"),P.unshift(Ib(v,A,x,_,(m?`${Bb(v,A)}${D}||${D}`:"")+"{}")),I.unshift("exports"));const O=jv(p,a),M=(O?`'${O}',${D}`:"")+(N.length?`[${N.join(`,${D}`)}],${D}`:""),R=p.define,L=!c&&i?`module.exports${D}=${D}`:"",B=S?`${D}'use strict';${T}`:"";let j;if(E){const e=_?"e":"exports";let t;t=!c&&i?`var ${e}${D}=${D}${Ib(v,A,x,_,`${k}(${P.join(`,${D}`)})`)};`:`var ${e}${D}=${D}${P.shift()};${T}${o}${o}${k}(${[e].concat(P).join(`,${D}`)});`,j=`(function${D}()${D}{${T}${o}${o}var current${D}=${D}${((e,t,r)=>{const n=e.split(".");let i=t;return n.map((e=>i+=Fb(e))).join(`${r}&&${r}`)})(v,A,D)};${T}${o}${o}${t}${T}${o}${o}${e}.noConflict${D}=${D}function${D}()${D}{${D}${Bb(v,A)}${D}=${D}current;${D}return ${e}${_?"":"; "}};${T}${o}}())`}else j=`${k}(${P.join(`,${D}`)})`,!c&&i&&(j=Ib(v,A,x,_,j));const U=i||E&&c||P.length>0,V=U?`this,${D}`:"",z=U?`(${A}${D}=${D}typeof globalThis${D}!==${D}'undefined'${D}?${D}globalThis${D}:${D}${A}${D}||${D}self,${D}`:"",K=U?")":"",W=`(function${D}(${U?`${A},${D}`:""}${k})${D}{${T}`+(U?`${o}typeof exports${D}===${D}'object'${D}&&${D}typeof module${D}!==${D}'undefined'${D}?${D}${L}${k}(${w.join(`,${D}`)})${D}:${T}`:"")+`${o}typeof ${R}${D}===${D}'function'${D}&&${D}${R}.amd${D}?${D}${R}(${M}${k})${D}:${T}`+`${o}${z}${j}${K};${T}`+`}(${V}(function${D}(${I.join(", ")})${D}{${B}${T}`,H=T+T+"})));";e.prepend(`${s}${sb(r,u,y,g,h,b,t,D,T,C,o)}`);const J=ib(n,r,c,y,_,o,g);let $=ob(c&&i,f,b,D,T);return $&&($=T+T+$),e.append(`${J}${$}${l}`),e.trim().indent(o).append(H).prepend(W)}};const Ub={ArrayPattern(e,t){for(const r of t.elements)r&&Ub[r.type](e,r)},AssignmentPattern(e,t){Ub[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const r of t.properties)"RestElement"===r.type?Ub.RestElement(e,r):Ub[r.value.type](e,r.value)},RestElement(e,t){Ub[t.argument.type](e,t.argument)}},Vb=e=>{const t=[];return Ub[e.type](t,e),t};class zb extends zy{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(e,t,r){e.remove(r.start,r.end)}}zb.prototype.needsBoundaries=!0;class Kb extends By{addDeclaration(e,t,r,n){return n?this.parent.addDeclaration(e,t,oy,n):super.addDeclaration(e,t,r,!1)}}class Wb extends zy{initialise(){this.directive&&"use strict"!==this.directive&&this.parent.type===Ih&&this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(e,t){super.render(e,t),this.included&&this.insertSemicolon(e)}shouldBeIncluded(e){return this.directive&&"use strict"!==this.directive?this.parent.type!==Ih:super.shouldBeIncluded(e)}}class Hb extends zy{constructor(){super(...arguments),this.directlyIncluded=!1}addImplicitReturnExpressionToScope(){const e=this.body[this.body.length-1];e&&"ReturnStatement"===e.type||this.scope.addReturnExpression(oy)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new Kb(e)}hasEffects(e){if(this.deoptimizeBody)return!0;for(const t of this.body){if(t.hasEffects(e))return!0;if(e.brokenFlow)break}return!1}include(e,t){if(!this.deoptimizeBody||!this.directlyIncluded){this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody&&(t=!0);for(const r of this.body)(t||r.shouldBeIncluded(e))&&r.include(e,t)}}initialise(){const e=this.body[0];this.deoptimizeBody=e instanceof Wb&&"use asm"===e.directive}render(e,t){this.body.length?Vh(this.body,e,this.start+1,this.end-1,t):super.render(e,t)}}class Jb extends zy{createScope(e){this.scope=new qy(e,this.context)}deoptimizePath(e){1===e.length&&e[0]===Yh&&this.scope.getReturnExpression().deoptimizePath(Zh)}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():oy}hasEffects(){return!1}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){if(e.length>0)return!0;for(const e of this.params)if(e.hasEffects(r))return!0;const{ignore:n,brokenFlow:i}=r;return r.ignore={breaks:!1,continues:!1,labels:new Set,returnAwaitYield:!0},!!this.body.hasEffects(r)||(r.ignore=n,r.brokenFlow=i,!1)}include(e,t){this.included=!0;for(const r of this.params)r instanceof _v||r.include(e,t);const{brokenFlow:r}=e;e.brokenFlow=0,this.body.include(e,t),e.brokenFlow=r}includeCallArguments(e,t){this.scope.includeCallArguments(e,t)}initialise(){this.scope.addParameterVariables(this.params.map((e=>e.declare("parameter",oy))),this.params[this.params.length-1]instanceof fv),this.body instanceof Hb?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body)}parseNode(e){e.body.type===Nh&&(this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope)),super.parseNode(e)}}Jb.prototype.preventChildBlockScope=!0;const $b={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<":(e,t)=>e<t,"<<":(e,t)=>e<<t,"<=":(e,t)=>e<=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,in:()=>ay,instanceof:()=>ay,"|":(e,t)=>e|t};class Gb extends zy{getLiteralValueAtPath(e){return e.length>0||null===this.value&&110!==this.context.code.charCodeAt(this.start)||"bigint"==typeof this.value||47===this.context.code.charCodeAt(this.start)?ay:this.value}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?oy:Py(this.members,e[0])}hasEffectsWhenAccessedAtPath(e){return null===this.value?e.length>0:e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>0}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||Fy(this.members,e[0],this.included,t,r)}initialise(){this.members=(e=>{switch(typeof e){case"boolean":return Ay;case"number":return Ny;case"string":return wy;default:return Object.create(null)}})(this.value)}parseNode(e){this.value=e.value,this.regex=e.regex,super.parseNode(e)}render(e){"string"==typeof this.value&&e.indentExclusionRanges.push([this.start+1,this.end-1])}}function qb(e){const t=e.propertyKey,r=e.object;if("string"==typeof t){if(r instanceof _v)return[{key:r.name,pos:r.start},{key:t,pos:e.property.start}];if(r instanceof Xb){const n=qb(r);return n&&[...n,{key:t,pos:e.property.start}]}}return null}class Xb extends zy{constructor(){super(...arguments),this.variable=null,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){if(this.bound)return;this.bound=!0;const e=qb(this),t=e&&this.scope.findVariable(e[0].key);if(t&&t.isNamespace){const r=this.resolveNamespaceVariables(t,e.slice(1));r?"string"==typeof r?this.replacement=r:(this.variable=r,this.scope.addNamespaceMemberAccess((e=>{let t=e[0].key;for(let r=1;r<e.length;r++)t+="."+e[r].key;return t})(e),r)):super.bind()}else super.bind(),this.getPropertyKey()}deoptimizeCache(){const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.propertyKey=Yh,this.wasPathDeoptimizedWhileOptimized&&this.object.deoptimizePath(Zh);for(const t of e)t.deoptimizeCache()}deoptimizePath(e){if(this.bound||this.bind(),0===e.length&&this.disallowNamespaceReassignment(),this.variable)this.variable.deoptimizePath(e);else{const t=this.getPropertyKey();t===Yh?this.object.deoptimizePath(Zh):(this.wasPathDeoptimizedWhileOptimized=!0,this.object.deoptimizePath([t,...e]))}}getLiteralValueAtPath(e,t,r){return this.bound||this.bind(),null!==this.variable?this.variable.getLiteralValueAtPath(e,t,r):(this.expressionsToBeDeoptimized.push(r),this.object.getLiteralValueAtPath([this.getPropertyKey(),...e],t,r))}getReturnExpressionWhenCalledAtPath(e,t,r){return this.bound||this.bind(),null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(e,t,r):(this.expressionsToBeDeoptimized.push(r),this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(),...e],t,r))}hasEffects(e){const t=this.context.options.treeshake.propertyReadSideEffects;return"always"===t||this.property.hasEffects(e)||this.object.hasEffects(e)||t&&this.object.hasEffectsWhenAccessedAtPath([this.propertyKey],e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null!==this.variable?this.variable.hasEffectsWhenAccessedAtPath(e,t):this.object.hasEffectsWhenAccessedAtPath([this.propertyKey,...e],t))}hasEffectsWhenAssignedAtPath(e,t){return null!==this.variable?this.variable.hasEffectsWhenAssignedAtPath(e,t):this.object.hasEffectsWhenAssignedAtPath([this.propertyKey,...e],t)}hasEffectsWhenCalledAtPath(e,t,r){return null!==this.variable?this.variable.hasEffectsWhenCalledAtPath(e,t,r):this.object.hasEffectsWhenCalledAtPath([this.propertyKey,...e],t,r)}include(e,t){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariableInModule(this.variable)),this.object.include(e,t),this.property.include(e,t)}includeCallArguments(e,t){this.variable?this.variable.includeCallArguments(e,t):super.includeCallArguments(e,t)}initialise(){var e,t;this.propertyKey=(e=this).computed?(t=e.property)instanceof Gb?String(t.value):null:e.property.name}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,renderedSurroundingElement:i}=Qy){const a=r===wh&&n;if(this.variable||this.replacement){let t=this.variable?this.variable.getName():this.replacement;a&&(t="0, "+t),e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0})}else{a&&e.appendRight(this.start,"0, ");const n=r||i;this.object.render(e,t,n?{renderedSurroundingElement:n}:Qy),this.property.render(e,t)}}disallowNamespaceReassignment(){this.object instanceof _v&&this.scope.findVariable(this.object.name).isNamespace&&(this.variable&&this.context.includeVariableInModule(this.variable),this.context.warn({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:`Illegal reassignment to import '${this.object.name}'`},this.start))}getPropertyKey(){if(null===this.propertyKey){this.propertyKey=Yh;const e=this.property.getLiteralValueAtPath(Qh,ry,this);return this.propertyKey=e===ay?Yh:String(e)}return this.propertyKey}resolveNamespaceVariables(e,t){if(0===t.length)return e;if(!e.isNamespace||e instanceof Tv)return null;const r=t[0].key,n=e.context.traceExport(r);if(!n){const n=e.context.fileName;return this.context.warn({code:"MISSING_EXPORT",exporter:fb(n),importer:fb(this.context.fileName),message:`'${r}' is not exported by '${fb(n)}'`,missing:r,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"},t[0].pos),"undefined"}return this.resolveNamespaceVariables(n,t.slice(1))}}class Yb extends Gy{addDeclaration(e,t,r,n){return n?this.parent.addDeclaration(e,t,r,n):super.addDeclaration(e,t,r,!1)}}class Qb extends zy{createScope(e){this.scope=new Yb(e,this.context)}initialise(){this.param&&this.param.declare("parameter",oy)}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope),super.parseNode(e)}}Qb.prototype.preventChildBlockScope=!0;class Zb extends By{findLexicalBoundary(){return this}}class ex extends zy{hasEffects(e){return this.key.hasEffects(e)}hasEffectsWhenCalledAtPath(e,t,r){return e.length>0||this.value.hasEffectsWhenCalledAtPath(Qh,t,r)}}class tx{constructor(e){this.included=!1,this.expressions=e}deoptimizePath(e){for(const t of this.expressions)t.deoptimizePath(e)}getLiteralValueAtPath(){return ay}getReturnExpressionWhenCalledAtPath(e,t,r){return new tx(this.expressions.map((n=>n.getReturnExpressionWhenCalledAtPath(e,t,r))))}hasEffectsWhenAccessedAtPath(e,t){for(const r of this.expressions)if(r.hasEffectsWhenAccessedAtPath(e,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){for(const r of this.expressions)if(r.hasEffectsWhenAssignedAtPath(e,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,r){for(const n of this.expressions)if(n.hasEffectsWhenCalledAtPath(e,t,r))return!0;return!1}include(e,t){for(const r of this.expressions)r.included||r.include(e,t)}includeCallArguments(){}}class rx extends zy{bind(){null!==this.declaration&&this.declaration.bind()}hasEffects(e){return null!==this.declaration&&this.declaration.hasEffects(e)}initialise(){this.context.addExport(this)}render(e,t,r){const{start:n,end:i}=r;null===this.declaration?e.remove(n,i):(e.remove(this.start,this.declaration.start),this.declaration.render(e,t,{start:n,end:i}))}}rx.prototype.needsBoundaries=!0;class nx extends Kb{constructor(){super(...arguments),this.hoistedDeclarations=[]}addDeclaration(e,t,r,n){return this.hoistedDeclarations.push(e),this.parent.addDeclaration(e,t,r,n)}}const ix=Symbol("unset");class ax extends zy{constructor(){super(...arguments),this.testValue=ix}deoptimizeCache(){this.testValue=ay}hasEffects(e){if(this.test.hasEffects(e))return!0;const t=this.getTestValue();if(t===ay){const{brokenFlow:t}=e;if(this.consequent.hasEffects(e))return!0;const r=e.brokenFlow;return e.brokenFlow=t,null!==this.alternate&&(!!this.alternate.hasEffects(e)||(e.brokenFlow=e.brokenFlow<r?e.brokenFlow:r,!1))}return t?this.consequent.hasEffects(e):null!==this.alternate&&this.alternate.hasEffects(e)}include(e,t){if(this.included=!0,t)this.includeRecursively(t,e);else{const t=this.getTestValue();t===ay?this.includeUnknownTest(e):this.includeKnownTest(e,t)}}parseNode(e){this.consequentScope=new nx(this.scope),this.consequent=new(this.context.nodeConstructors[e.consequent.type]||this.context.nodeConstructors.UnknownNode)(e.consequent,this,this.consequentScope),e.alternate&&(this.alternateScope=new nx(this.scope),this.alternate=new(this.context.nodeConstructors[e.alternate.type]||this.context.nodeConstructors.UnknownNode)(e.alternate,this,this.alternateScope)),super.parseNode(e)}render(e,t){const r=this.getTestValue(),n=[],i=this.test.included,a=!this.context.options.treeshake;i?this.test.render(e,t):(Mh(this,e),e.remove(this.start,this.consequent.start)),this.consequent.included&&(a||r===ay||r)?this.consequent.render(e,t):(e.overwrite(this.consequent.start,this.consequent.end,i?";":""),n.push(...this.consequentScope.hoistedDeclarations)),this.alternate&&(!this.alternate.included||!a&&r!==ay&&r?(i&&this.shouldKeepAlternateBranch()?e.overwrite(this.alternate.start,this.end,";"):e.remove(this.consequent.end,this.end),n.push(...this.alternateScope.hoistedDeclarations)):(i?101===e.original.charCodeAt(this.alternate.start-1)&&e.prependLeft(this.alternate.start," "):e.remove(this.consequent.end,this.alternate.start),this.alternate.render(e,t))),this.renderHoistedDeclarations(n,e)}getTestValue(){return this.testValue===ix?this.testValue=this.test.getLiteralValueAtPath(Qh,ry,this):this.testValue}includeKnownTest(e,t){this.test.shouldBeIncluded(e)&&this.test.include(e,!1),t&&this.consequent.shouldBeIncluded(e)&&this.consequent.includeAsSingleStatement(e,!1),null!==this.alternate&&!t&&this.alternate.shouldBeIncluded(e)&&this.alternate.includeAsSingleStatement(e,!1)}includeRecursively(e,t){this.test.include(t,e),this.consequent.include(t,e),null!==this.alternate&&this.alternate.include(t,e)}includeUnknownTest(e){this.test.include(e,!1);const{brokenFlow:t}=e;let r=0;this.consequent.shouldBeIncluded(e)&&(this.consequent.includeAsSingleStatement(e,!1),r=e.brokenFlow,e.brokenFlow=t),null!==this.alternate&&this.alternate.shouldBeIncluded(e)&&(this.alternate.includeAsSingleStatement(e,!1),e.brokenFlow=e.brokenFlow<r?e.brokenFlow:r)}renderHoistedDeclarations(e,t){const r=[...new Set(e.map((e=>{const t=e.variable;return t.included?t.getName():""})))].filter(Boolean).join(", ");if(r){const e=this.parent.type,n=e!==Ih&&e!==Nh;t.prependRight(this.start,`${n?"{ ":""}var ${r}; `),n&&t.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let e=this.parent;do{if(e instanceof ax&&e.alternate)return!0;if(e instanceof Hb)return!1;e=e.parent}while(e);return!1}}class ox extends zy{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(e,t,r){e.remove(r.start,r.end)}}ox.prototype.needsBoundaries=!0;const sx={amd:["require"],cjs:["require"],system:["module"]},cx="ROLLUP_ASSET_URL_",lx="ROLLUP_CHUNK_URL_",ux="ROLLUP_FILE_URL_",dx={amd:["document","module","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},px={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},_x=(e,t="URL")=>`new ${t}(${e}).href`,fx=e=>_x(`'${e}', document.currentScript && document.currentScript.src || document.baseURI`),mx=e=>(t,r)=>{const n=e(r);return null===t?`({ url: ${n} })`:"url"===t?n:"undefined"},gx=e=>`(document.currentScript && document.currentScript.src || new URL('${e}', document.baseURI).href)`,hx={amd:e=>("."!==e[0]&&(e="./"+e),_x(`require.toUrl('${e}'), document.baseURI`)),cjs:e=>`(typeof document === 'undefined' ? ${_x(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${fx(e)})`,es:e=>_x(`'${e}', import.meta.url`),iife:e=>fx(e),system:e=>_x(`'${e}', module.meta.url`),umd:e=>`(typeof document === 'undefined' ? ${_x(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${fx(e)})`},yx={amd:mx((()=>_x("module.uri, document.baseURI"))),cjs:mx((e=>`(typeof document === 'undefined' ? ${_x("'file:' + __filename","(require('u' + 'rl').URL)")} : ${gx(e)})`)),iife:mx((e=>gx(e))),system:e=>null===e?"module.meta":`module.meta.${e}`,umd:mx((e=>`(typeof document === 'undefined' ? ${_x("'file:' + __filename","(require('u' + 'rl').URL)")} : ${gx(e)})`))};class vx extends zy{constructor(){super(...arguments),this.hasCachedEffect=!1}hasEffects(e){if(this.hasCachedEffect)return!0;for(const t of this.body)if(t.hasEffects(e))return this.hasCachedEffect=!0;return!1}include(e,t){this.included=!0;for(const r of this.body)(t||r.shouldBeIncluded(e))&&r.include(e,t)}render(e,t){this.body.length?Vh(this.body,e,this.start,this.end,t):super.render(e,t)}}class bx extends zy{hasEffects(e){if(this.test&&this.test.hasEffects(e))return!0;for(const t of this.consequent){if(e.brokenFlow)break;if(t.hasEffects(e))return!0}return!1}include(e,t){this.included=!0,this.test&&this.test.include(e,t);for(const r of this.consequent)(t||r.shouldBeIncluded(e))&&r.include(e,t)}render(e,t,r){if(this.consequent.length){this.test&&this.test.render(e,t);const n=this.test?this.test.end:Lh(e.original,"default",this.start)+7,i=Lh(e.original,":",n)+1;Vh(this.consequent,e,i,r.end,t)}else super.render(e,t)}}bx.prototype.needsBoundaries=!0;class xx extends zy{getLiteralValueAtPath(e){return e.length>0||1!==this.quasis.length?ay:this.quasis[0].value.cooked}render(e,t){e.indentExclusionRanges.push([this.start,this.end]),super.render(e,t)}}class Ex extends By{constructor(e,t){super(e),this.context=t,this.variables.set("this",new Ry("this",null,sy,t))}addExportDefaultDeclaration(e,t,r){const n=new vv(e,t,r);return this.variables.set("default",n),n}addNamespaceMemberAccess(){}deconflict(e,t,r){for(const n of this.children)n.deconflict(e,t,r)}findLexicalBoundary(){return this}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const r=this.context.traceVariable(e)||this.parent.findVariable(e);return r instanceof pv&&this.accessedOutsideVariables.set(e,r),r}}const Sx={"!":e=>!e,"+":e=>+e,"-":e=>-e,delete:()=>ay,typeof:e=>typeof e,void(){},"~":e=>~e};function Dx(e,t){return null!==e.renderBaseName&&t.has(e)&&e.isReassigned}class Tx extends zy{deoptimizePath(){for(const e of this.declarations)e.deoptimizePath(Qh)}hasEffectsWhenAssignedAtPath(){return!1}include(e,t){this.included=!0;for(const r of this.declarations)(t||r.shouldBeIncluded(e))&&r.include(e,t)}includeAsSingleStatement(e,t){this.included=!0;for(const r of this.declarations)(t||r.shouldBeIncluded(e))&&(r.include(e,t),r.id.include(e,t))}initialise(){for(const e of this.declarations)e.declareDeclarator(this.kind)}render(e,t,r=Qy){if(((e,t)=>{for(const r of e){if(!r.id.included)return!1;if(r.id.type===Ph){if(t.has(r.id.variable))return!1}else{const e=[];if(r.id.addExportedVariables(e,t),e.length>0)return!1}}return!0})(this.declarations,t.exportNamesByVariable)){for(const r of this.declarations)r.render(e,t);r.isNoStatement||59===e.original.charCodeAt(this.end-1)||e.appendLeft(this.end,";")}else this.renderReplacedDeclarations(e,t,r)}renderDeclarationEnd(e,t,r,n,i,a,o,s){59===e.original.charCodeAt(this.end-1)&&e.remove(this.end-1,this.end),s||(t+=";"),null!==r?(10!==e.original.charCodeAt(n-1)||10!==e.original.charCodeAt(this.end)&&13!==e.original.charCodeAt(this.end)||(n--,13===e.original.charCodeAt(n)&&n--),n===r+1?e.overwrite(r,i,t):(e.overwrite(r,r+1,t),e.remove(n,i))):e.appendLeft(i,t),a.length>0&&e.appendLeft(i,` ${Wh(a,o)};`)}renderReplacedDeclarations(e,t,{isNoStatement:r}){const n=zh(this.declarations,e,this.start+this.kind.length,this.end-(59===e.original.charCodeAt(this.end-1)?1:0));let i,a;a=jh(e.original,this.start+this.kind.length);let o=a-1;e.remove(this.start,o);let s,c,l=!1,u=!1,d="";const p=[];for(const{node:r,start:_,separator:f,contentEnd:m,end:g}of n)if(r.included){if(s="",c="",!r.id.included||r.id instanceof _v&&Dx(r.id.variable,t.exportNamesByVariable))u&&(d+=";"),l=!1;else{if("system"===t.format&&null!==r.init)if(r.id.type!==Ph)r.id.addExportedVariables(p,t.exportNamesByVariable);else{const n=t.exportNamesByVariable.get(r.id.variable);if(n){const i=t.compact?"":" ",a=Lh(e.original,"=",r.id.end);e.prependLeft(jh(e.original,a+1),1===n.length?`exports('${n[0]}',${i}`:Hh([r.id.variable],!1,t)),c+=")"}}l?d+=",":(u&&(d+=";"),s+=`${this.kind} `,l=!0)}a===o+1?e.overwrite(o,a,d+s):(e.overwrite(o,o+1,d),e.appendLeft(a,s)),r.render(e,t),i=m,a=g,u=!0,o=f,d=c}else e.remove(_,g);this.renderDeclarationEnd(e,d,o,i,a,p,t,r)}}const Cx={ArrayExpression:class extends zy{bind(){super.bind();for(const e of this.elements)null!==e&&e.deoptimizePath(Zh)}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?oy:Py(ky,e[0])}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,r){return 1!==e.length||Fy(ky,e[0],this.included,t,r)}},ArrayPattern:class extends zy{addExportedVariables(e,t){for(const r of this.elements)null!==r&&r.addExportedVariables(e,t)}declare(e){const t=[];for(const r of this.elements)null!==r&&t.push(...r.declare(e,oy));return t}deoptimizePath(e){if(0===e.length)for(const t of this.elements)null!==t&&t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.elements)if(null!==e&&e.hasEffectsWhenAssignedAtPath(Qh,t))return!0;return!1}},ArrowFunctionExpression:Jb,AssignmentExpression:class extends zy{constructor(){super(...arguments),this.deoptimized=!1}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.right.hasEffects(e)||this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(Qh,e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.right.hasEffectsWhenAccessedAtPath(e,t)}include(e,t){let r;this.deoptimized||this.applyDeoptimizations(),this.included=!0,(t||"="!==this.operator||this.left.included||(r=Oy(),this.left.hasEffects(r)||this.left.hasEffectsWhenAssignedAtPath(Qh,r)))&&this.left.include(e,t),this.right.include(e,t)}render(e,t,{preventASI:r,renderedParentType:n}=Qy){if(this.left.included)this.left.render(e,t),this.right.render(e,t);else{const i=jh(e.original,Lh(e.original,"=",this.left.end)+1);e.remove(this.start,i),r&&Kh(e,i,this.right.start),this.right.render(e,t,{renderedParentType:n||this.parent.type})}if("system"===t.format){const r=this.left.variable&&t.exportNamesByVariable.get(this.left.variable);if("Identifier"===this.left.type&&r){const n=t.compact?"":" ",i=Lh(e.original,this.operator,this.left.end),a=this.operator.length>1?`${r[0]}${n}${this.operator.slice(0,-1)}${n}`:"";e.overwrite(i,jh(e.original,i+this.operator.length),`=${n}${1===r.length?`exports('${r[0]}',${n}`:Hh([this.left.variable],!1,t)}${a}`),e.appendLeft(this.right.end,")")}else{const r=[];this.left.addExportedVariables(r,t.exportNamesByVariable),r.length>0&&(e.prependRight(this.start,`(${Hh(r,!0,t)}`),e.appendLeft(this.end,"))"))}}}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(Qh),this.right.deoptimizePath(Zh)}},AssignmentPattern:class extends zy{addExportedVariables(e,t){this.left.addExportedVariables(e,t)}bind(){super.bind(),this.left.deoptimizePath(Qh),this.right.deoptimizePath(Zh)}declare(e,t){return this.left.declare(e,t)}deoptimizePath(e){0===e.length&&this.left.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.left.hasEffectsWhenAssignedAtPath(Qh,t)}render(e,t,{isShorthandProperty:r}=Qy){this.left.render(e,t,{isShorthandProperty:r}),this.right.render(e,t)}},AwaitExpression:class extends zy{hasEffects(e){return!e.ignore.returnAwaitYield||this.argument.hasEffects(e)}include(e,t){if(!this.included){this.included=!0;e:if(!this.context.usesTopLevelAwait){let e=this.parent;do{if(e instanceof mv||e instanceof Jb)break e}while(e=e.parent);this.context.usesTopLevelAwait=!0}}this.argument.include(e,t)}},BinaryExpression:class extends zy{deoptimizeCache(){}getLiteralValueAtPath(e,t,r){if(e.length>0)return ay;const n=this.left.getLiteralValueAtPath(Qh,t,r);if(n===ay)return ay;const i=this.right.getLiteralValueAtPath(Qh,t,r);if(i===ay)return ay;const a=$b[this.operator];return a?a(n,i):ay}hasEffects(e){return"+"===this.operator&&this.parent instanceof Wb&&""===this.left.getLiteralValueAtPath(Qh,ry,this)||super.hasEffects(e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}},BlockStatement:Hb,BreakStatement:class extends zy{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name),e.brokenFlow=2}else{if(!e.ignore.breaks)return!0;e.brokenFlow=1}return!1}include(e){this.included=!0,this.label&&(this.label.include(),e.includedLabels.add(this.label.name)),e.brokenFlow=this.label?2:1}},CallExpression:class extends zy{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.returnExpression=null,this.wasPathDeoptmizedWhileOptimized=!1}bind(){super.bind(),this.callee instanceof _v&&(this.scope.findVariable(this.callee.name).isNamespace&&this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.callee.name}')`},this.start),"eval"===this.callee.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)),this.getReturnExpression(ry),this.callee instanceof Xb&&!this.callee.variable&&this.callee.object.deoptimizePath(Zh);for(const e of this.arguments)e.deoptimizePath(Zh)}deoptimizeCache(){if(this.returnExpression!==oy){this.returnExpression=null;const e=this.getReturnExpression(ry),t=this.expressionsToBeDeoptimized;e!==oy&&(this.expressionsToBeDeoptimized=[],this.wasPathDeoptmizedWhileOptimized&&(e.deoptimizePath(Zh),this.wasPathDeoptmizedWhileOptimized=!1));for(const e of t)e.deoptimizeCache()}}deoptimizePath(e){if(0===e.length)return;const t=this.context.deoptimizationTracker.getEntities(e);if(t.has(this))return;t.add(this);const r=this.getReturnExpression(ry);r!==oy&&(this.wasPathDeoptmizedWhileOptimized=!0,r.deoptimizePath(e))}getLiteralValueAtPath(e,t,r){const n=this.getReturnExpression(t);if(n===oy)return ay;const i=t.getEntities(e);if(i.has(n))return ay;this.expressionsToBeDeoptimized.push(r),i.add(n);const a=n.getLiteralValueAtPath(e,t,r);return i.delete(n),a}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getReturnExpression(t);if(this.returnExpression===oy)return oy;const i=t.getEntities(e);if(i.has(n))return oy;this.expressionsToBeDeoptimized.push(r),i.add(n);const a=n.getReturnExpressionWhenCalledAtPath(e,t,r);return i.delete(n),a}hasEffects(e){var t;for(const t of this.arguments)if(t.hasEffects(e))return!0;return(!this.context.options.treeshake.annotations||!(null===(t=this.annotations)||void 0===t?void 0:t.some((e=>e.pure))))&&(this.callee.hasEffects(e)||this.callee.hasEffectsWhenCalledAtPath(Qh,this.callOptions,e))}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;const r=t.accessed.getEntities(e);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){if(0===e.length)return!0;const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){const n=(t.withNew?r.instantiated:r.called).getEntities(e,t);return!n.has(this)&&(n.add(this),this.returnExpression.hasEffectsWhenCalledAtPath(e,t,r))}include(e,t){t?(super.include(e,t),t===Vy&&this.callee instanceof _v&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.included=!0,this.callee.include(e,!1)),this.callee.includeCallArguments(e,this.arguments),this.returnExpression.included||this.returnExpression.include(e,!1)}initialise(){this.callOptions={args:this.arguments,withNew:!1}}render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=Qy){const i=r||n;if(this.callee.render(e,t,i?{renderedSurroundingElement:i}:Qy),this.arguments.length>0)if(this.arguments[this.arguments.length-1].included)for(const r of this.arguments)r.render(e,t);else{let r=this.arguments.length-2;for(;r>=0&&!this.arguments[r].included;)r--;if(r>=0){for(let n=0;n<=r;n++)this.arguments[n].render(e,t);e.remove(Lh(e.original,",",this.arguments[r].end),this.end-1)}else e.remove(Lh(e.original,"(",this.callee.end)+1,this.end-1)}}getReturnExpression(e){return null===this.returnExpression?(this.returnExpression=oy,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(Qh,e,this)):this.returnExpression}},CatchClause:Qb,ChainExpression:class extends zy{},ClassBody:class extends zy{createScope(e){this.scope=new Zb(e)}hasEffectsWhenCalledAtPath(e,t,r){return e.length>0||null!==this.classConstructor&&this.classConstructor.hasEffectsWhenCalledAtPath(Qh,t,r)}initialise(){for(const e of this.body)if(e instanceof ex&&"constructor"===e.kind)return this.classConstructor=e,void 0;this.classConstructor=null}},ClassDeclaration:Wy,ClassExpression:class extends Ky{render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=Qy){super.render(e,t),(r||n)===Fh&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}},ConditionalExpression:class extends zy{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){super.bind(),this.getUsedBranch()}deoptimizeCache(){if(null!==this.usedBranch){const e=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null;const t=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.wasPathDeoptimizedWhileOptimized&&e.deoptimizePath(Zh);for(const e of t)e.deoptimizeCache()}}deoptimizePath(e){if(e.length>0){const t=this.getUsedBranch();null===t?(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e)):(this.wasPathDeoptimizedWhileOptimized=!0,t.deoptimizePath(e))}}getLiteralValueAtPath(e,t,r){const n=this.getUsedBranch();return null===n?ay:(this.expressionsToBeDeoptimized.push(r),n.getLiteralValueAtPath(e,t,r))}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getUsedBranch();return null===n?new tx([this.consequent.getReturnExpressionWhenCalledAtPath(e,t,r),this.alternate.getReturnExpressionWhenCalledAtPath(e,t,r)]):(this.expressionsToBeDeoptimized.push(r),n.getReturnExpressionWhenCalledAtPath(e,t,r))}hasEffects(e){return!!this.test.hasEffects(e)||(null===this.usedBranch?this.consequent.hasEffects(e)||this.alternate.hasEffects(e):this.usedBranch.hasEffects(e))}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.consequent.hasEffectsWhenAccessedAtPath(e,t)||this.alternate.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.consequent.hasEffectsWhenAssignedAtPath(e,t)||this.alternate.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){return null===this.usedBranch?this.consequent.hasEffectsWhenCalledAtPath(e,t,r)||this.alternate.hasEffectsWhenCalledAtPath(e,t,r):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,r)}include(e,t){this.included=!0,t||this.test.shouldBeIncluded(e)||null===this.usedBranch?(this.test.include(e,t),this.consequent.include(e,t),this.alternate.include(e,t)):this.usedBranch.include(e,t)}includeCallArguments(e,t){null===this.usedBranch?(this.consequent.includeCallArguments(e,t),this.alternate.includeCallArguments(e,t)):this.usedBranch.includeCallArguments(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,preventASI:i}=Qy){if(this.test.included)super.render(e,t);else{const a=Lh(e.original,":",this.consequent.end),o=jh(e.original,(this.consequent.included?Lh(e.original,"?",this.test.end):a)+1);i&&Kh(e,o,this.usedBranch.start),e.remove(this.start,o),this.consequent.included&&e.remove(a,this.end),Mh(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:r?n:this.parent.callee===this,preventASI:!0,renderedParentType:r||this.parent.type})}}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;const e=this.test.getLiteralValueAtPath(Qh,ry,this);return e===ay?null:this.usedBranch=e?this.consequent:this.alternate}},ContinueStatement:class extends zy{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name),e.brokenFlow=2}else{if(!e.ignore.continues)return!0;e.brokenFlow=1}return!1}include(e){this.included=!0,this.label&&(this.label.include(),e.includedLabels.add(this.label.name)),e.brokenFlow=this.label?2:1}},DoWhileStatement:class extends zy{hasEffects(e){if(this.test.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.test.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}},EmptyStatement:class extends zy{hasEffects(){return!1}},ExportAllDeclaration:zb,ExportDefaultDeclaration:hv,ExportNamedDeclaration:rx,ExportSpecifier:class extends zy{},ExpressionStatement:Wb,ForInStatement:class extends zy{bind(){this.left.bind(),this.left.deoptimizePath(Qh),this.right.bind(),this.body.bind()}createScope(e){this.scope=new Kb(e)}hasEffects(e){if(this.left&&(this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(Qh,e))||this.right&&this.right.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.left.include(e,t||!0),this.left.deoptimizePath(Qh),this.right.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}render(e,t){this.left.render(e,t,Rh),this.right.render(e,t,Rh),110===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}},ForOfStatement:class extends zy{bind(){this.left.bind(),this.left.deoptimizePath(Qh),this.right.bind(),this.body.bind()}createScope(e){this.scope=new Kb(e)}hasEffects(){return!0}include(e,t){this.included=!0,this.left.include(e,t||!0),this.left.deoptimizePath(Qh),this.right.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}render(e,t){this.left.render(e,t,Rh),this.right.render(e,t,Rh),102===e.original.charCodeAt(this.right.start-1)&&e.prependLeft(this.right.start," "),this.body.render(e,t)}},ForStatement:class extends zy{createScope(e){this.scope=new Kb(e)}hasEffects(e){if(this.init&&this.init.hasEffects(e)||this.test&&this.test.hasEffects(e)||this.update&&this.update.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.init&&this.init.includeAsSingleStatement(e,t),this.test&&this.test.include(e,t);const{brokenFlow:r}=e;this.update&&this.update.include(e,t),this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}render(e,t){this.init&&this.init.render(e,t,Rh),this.test&&this.test.render(e,t,Rh),this.update&&this.update.render(e,t,Rh),this.body.render(e,t)}},FunctionDeclaration:gv,FunctionExpression:class extends mv{render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=Qy){super.render(e,t),(r||n)===Fh&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}},Identifier:_v,IfStatement:ax,ImportDeclaration:ox,ImportDefaultSpecifier:class extends zy{},ImportExpression:class extends zy{constructor(){super(...arguments),this.inlineNamespace=null,this.mechanism=null,this.resolution=null}hasEffects(){return!0}include(e,t){this.included||(this.included=!0,this.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this)),this.source.include(e,t)}initialise(){this.context.addDynamicImport(this)}render(e,t){if(this.inlineNamespace){const r=t.compact?"":" ",n=t.compact?"":";";return e.overwrite(this.start,this.end,`Promise.resolve().then(function${r}()${r}{${r}return ${this.inlineNamespace.getName()}${n}${r}})`),void 0}this.mechanism&&(e.overwrite(this.start,Lh(e.original,"(",this.start+6)+1,this.mechanism.left),e.overwrite(this.end-1,this.end,this.mechanism.right)),this.source.render(e,t)}renderFinalResolution(e,t,r,n){if(e.overwrite(this.source.start,this.source.end,t),r){const t=n.compact?"":" ",i=n.compact?"":";";e.prependLeft(this.end,`.then(function${t}(n)${t}{${t}return n.${r}${i}${t}})`)}}setExternalResolution(e,t,r,n,i){this.resolution=t;const a=[...sx[r.format]||[]];let o;({helper:o,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(t,e,r,n)),o&&a.push(o),a.length>0&&this.scope.addAccessedGlobals(a,i)}setInternalResolution(e){this.inlineNamespace=e}getDynamicImportMechanismAndHelper(e,t,r,n){const i=n.hookFirstSync("renderDynamicImport",[{customResolution:"string"==typeof this.resolution?this.resolution:null,format:r.format,moduleId:this.context.module.id,targetModuleId:this.resolution&&"string"!=typeof this.resolution?this.resolution.id:null}]);if(i)return{helper:null,mechanism:i};switch(r.format){case"cjs":{const n=r.compact?"":" ",i=r.compact?"":";",a=`Promise.resolve().then(function${n}()${n}{${n}return`,o=this.getInteropHelper(e,t,r.interop);return{helper:o,mechanism:o?{left:`${a} /*#__PURE__*/${o}(require(`,right:`))${i}${n}})`}:{left:`${a} require(`,right:`)${i}${n}})`}}}case"amd":{const n=r.compact?"":" ",i=r.compact?"c":"resolve",a=r.compact?"e":"reject",o=this.getInteropHelper(e,t,r.interop);return{helper:o,mechanism:{left:`new Promise(function${n}(${i},${n}${a})${n}{${n}require([`,right:`],${n}${o?`function${n}(m)${n}{${n}${i}(/*#__PURE__*/${o}(m));${n}}`:i},${n}${a})${n}})`}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}};case"es":if(r.dynamicImportFunction)return{helper:null,mechanism:{left:`${r.dynamicImportFunction}(`,right:")"}}}return{helper:null,mechanism:null}}getInteropHelper(e,t,r){return"external"===t?$v[String(r(e instanceof Lv?e.id:null))]:"default"===t?qv():null}},ImportNamespaceSpecifier:class extends zy{},ImportSpecifier:class extends zy{},LabeledStatement:class extends zy{hasEffects(e){const t=e.brokenFlow;return e.ignore.labels.add(this.label.name),!!this.body.hasEffects(e)||(e.ignore.labels.delete(this.label.name),e.includedLabels.has(this.label.name)&&(e.includedLabels.delete(this.label.name),e.brokenFlow=t),!1)}include(e,t){this.included=!0;const r=e.brokenFlow;this.body.include(e,t),(t||e.includedLabels.has(this.label.name))&&(this.label.include(),e.includedLabels.delete(this.label.name),e.brokenFlow=r)}render(e,t){this.label.included?this.label.render(e,t):e.remove(this.start,jh(e.original,Lh(e.original,":",this.label.end)+1)),this.body.render(e,t)}},Literal:Gb,LogicalExpression:class extends zy{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.unusedBranch=null,this.usedBranch=null,this.wasPathDeoptimizedWhileOptimized=!1}bind(){super.bind(),this.getUsedBranch()}deoptimizeCache(){if(null!==this.usedBranch){this.usedBranch=null;const e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.wasPathDeoptimizedWhileOptimized&&this.unusedBranch.deoptimizePath(Zh);for(const t of e)t.deoptimizeCache()}}deoptimizePath(e){const t=this.getUsedBranch();null===t?(this.left.deoptimizePath(e),this.right.deoptimizePath(e)):(this.wasPathDeoptimizedWhileOptimized=!0,t.deoptimizePath(e))}getLiteralValueAtPath(e,t,r){const n=this.getUsedBranch();return null===n?ay:(this.expressionsToBeDeoptimized.push(r),n.getLiteralValueAtPath(e,t,r))}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getUsedBranch();return null===n?new tx([this.left.getReturnExpressionWhenCalledAtPath(e,t,r),this.right.getReturnExpressionWhenCalledAtPath(e,t,r)]):(this.expressionsToBeDeoptimized.push(r),n.getReturnExpressionWhenCalledAtPath(e,t,r))}hasEffects(e){return!!this.left.hasEffects(e)||this.usedBranch!==this.left&&this.right.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.left.hasEffectsWhenAccessedAtPath(e,t)||this.right.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.left.hasEffectsWhenAssignedAtPath(e,t)||this.right.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,r){return null===this.usedBranch?this.left.hasEffectsWhenCalledAtPath(e,t,r)||this.right.hasEffectsWhenCalledAtPath(e,t,r):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,r)}include(e,t){this.included=!0,t||this.usedBranch===this.right&&this.left.shouldBeIncluded(e)||null===this.usedBranch?(this.left.include(e,t),this.right.include(e,t)):this.usedBranch.include(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,preventASI:i}=Qy){if(this.left.included&&this.right.included)this.left.render(e,t,{preventASI:i}),this.right.render(e,t);else{const a=Lh(e.original,this.operator,this.left.end);if(this.right.included){const t=jh(e.original,a+2);e.remove(this.start,t),i&&Kh(e,t,this.right.start)}else e.remove(a,this.end);Mh(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:r?n:this.parent.callee===this,preventASI:i,renderedParentType:r||this.parent.type})}}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;const e=this.left.getLiteralValueAtPath(Qh,ry,this);if(e===ay)return null;"||"===this.operator&&e||"&&"===this.operator&&!e||"??"===this.operator&&null!=e?(this.usedBranch=this.left,this.unusedBranch=this.right):(this.usedBranch=this.right,this.unusedBranch=this.left)}return this.usedBranch}},MemberExpression:Xb,MetaProperty:class extends zy{addAccessedGlobals(e,t){const r=this.metaProperty,n=(r&&(r.startsWith(ux)||r.startsWith(cx)||r.startsWith(lx))?px:dx)[e];n.length>0&&this.scope.addAccessedGlobals(n,t)}getReferencedFileName(e){const t=this.metaProperty;return t&&t.startsWith(ux)?e.getFileName(t.substr(ux.length)):null}hasEffects(){return!1}hasEffectsWhenAccessedAtPath(e){return e.length>1}include(){if(!this.included&&(this.included=!0,"import"===this.meta.name)){this.context.addImportMeta(this);const e=this.parent;this.metaProperty=e instanceof Xb&&"string"==typeof e.propertyKey?e.propertyKey:null}}renderFinalMechanism(e,t,r,n){var i;const a=this.parent,o=this.metaProperty;if(o&&(o.startsWith(ux)||o.startsWith(cx)||o.startsWith(lx))){let i,s=null,c=null,l=null;o.startsWith(ux)?(s=o.substr(ux.length),i=n.getFileName(s)):o.startsWith(cx)?(Ab(`Using the "${cx}" prefix to reference files is deprecated. Use the "${ux}" prefix instead.`,!0,this.context.options),c=o.substr(cx.length),i=n.getFileName(c)):(Ab(`Using the "${lx}" prefix to reference files is deprecated. Use the "${ux}" prefix instead.`,!0,this.context.options),l=o.substr(lx.length),i=n.getFileName(l));const u=Rv(We(Be(t),i));let d;return null!==c&&(d=n.hookFirstSync("resolveAssetUrl",[{assetFileName:i,chunkId:t,format:r,moduleId:this.context.module.id,relativeAssetPath:u}])),d||(d=n.hookFirstSync("resolveFileUrl",[{assetReferenceId:c,chunkId:t,chunkReferenceId:l,fileName:i,format:r,moduleId:this.context.module.id,referenceId:s||c||l,relativePath:u}])||hx[r](u)),e.overwrite(a.start,a.end,d,{contentOnly:!0}),void 0}const s=n.hookFirstSync("resolveImportMeta",[o,{chunkId:t,format:r,moduleId:this.context.module.id}])||(null===(i=yx[r])||void 0===i?void 0:i.call(yx,o,t));"string"==typeof s&&(a instanceof Xb?e.overwrite(a.start,a.end,s,{contentOnly:!0}):e.overwrite(this.start,this.end,s,{contentOnly:!0}))}},MethodDefinition:ex,NewExpression:class extends zy{bind(){super.bind();for(const e of this.arguments)e.deoptimizePath(Zh)}hasEffects(e){var t;for(const t of this.arguments)if(t.hasEffects(e))return!0;return(!this.context.options.treeshake.annotations||!(null===(t=this.annotations)||void 0===t?void 0:t.some((e=>e.pure))))&&(this.callee.hasEffects(e)||this.callee.hasEffectsWhenCalledAtPath(Qh,this.callOptions,e))}hasEffectsWhenAccessedAtPath(e){return e.length>1}initialise(){this.callOptions={args:this.arguments,withNew:!0}}},ObjectExpression:class extends zy{constructor(){super(...arguments),this.deoptimizedPaths=new Set,this.expressionsToBeDeoptimized=new Map,this.hasUnknownDeoptimizedProperty=!1,this.propertyMap=null,this.unmatchablePropertiesRead=[],this.unmatchablePropertiesWrite=[]}bind(){super.bind(),this.getPropertyMap()}deoptimizeCache(){this.hasUnknownDeoptimizedProperty||this.deoptimizeAllProperties()}deoptimizePath(e){if(this.hasUnknownDeoptimizedProperty)return;const t=this.getPropertyMap(),r=e[0];if(1===e.length){if("string"!=typeof r)return this.deoptimizeAllProperties(),void 0;if(!this.deoptimizedPaths.has(r)){this.deoptimizedPaths.add(r);const e=this.expressionsToBeDeoptimized.get(r);if(e)for(const t of e)t.deoptimizeCache()}}const n=1===e.length?Zh:e.slice(1);for(const e of"string"==typeof r?t[r]?t[r].propertiesRead:[]:this.properties)e.deoptimizePath(n)}getLiteralValueAtPath(e,t,r){const n=this.getPropertyMap(),i=e[0];return 0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof i||this.deoptimizedPaths.has(i)?ay:1!==e.length||n[i]||Cy[i]||0!==this.unmatchablePropertiesRead.length?!n[i]||null===n[i].exactMatchRead||n[i].propertiesRead.length>1?ay:(Xh(this.expressionsToBeDeoptimized,i,(()=>[])).push(r),n[i].exactMatchRead.getLiteralValueAtPath(e.slice(1),t,r)):(Xh(this.expressionsToBeDeoptimized,i,(()=>[])).push(r),void 0)}getReturnExpressionWhenCalledAtPath(e,t,r){const n=this.getPropertyMap(),i=e[0];return 0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof i||this.deoptimizedPaths.has(i)?oy:1!==e.length||!Cy[i]||0!==this.unmatchablePropertiesRead.length||n[i]&&null!==n[i].exactMatchRead?!n[i]||null===n[i].exactMatchRead||n[i].propertiesRead.length>1?oy:(Xh(this.expressionsToBeDeoptimized,i,(()=>[])).push(r),n[i].exactMatchRead.getReturnExpressionWhenCalledAtPath(e.slice(1),t,r)):Py(Cy,i)}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;const r=e[0],n=this.propertyMap;if(e.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths.has(r)||!n[r]||null===n[r].exactMatchRead))return!0;const i=e.slice(1);for(const e of"string"!=typeof r?this.properties:n[r]?n[r].propertiesRead:[])if(e.hasEffectsWhenAccessedAtPath(i,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){const r=e[0],n=this.propertyMap;if(e.length>1&&(this.hasUnknownDeoptimizedProperty||this.deoptimizedPaths.has(r)||!n[r]||null===n[r].exactMatchRead))return!0;const i=e.slice(1);for(const a of"string"!=typeof r?this.properties:e.length>1?n[r].propertiesRead:n[r]?n[r].propertiesWrite:[])if(a.hasEffectsWhenAssignedAtPath(i,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,r){const n=e[0];if("string"!=typeof n||this.hasUnknownDeoptimizedProperty||this.deoptimizedPaths.has(n)||(this.propertyMap[n]?!this.propertyMap[n].exactMatchRead:e.length>1||!Cy[n]))return!0;const i=e.slice(1);if(this.propertyMap[n])for(const e of this.propertyMap[n].propertiesRead)if(e.hasEffectsWhenCalledAtPath(i,t,r))return!0;return!(1!==e.length||!Cy[n])&&Fy(Cy,n,this.included,t,r)}render(e,t,{renderedParentType:r,renderedSurroundingElement:n}=Qy){super.render(e,t);const i=r||n;i!==Fh&&"ArrowFunctionExpression"!==i||(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}deoptimizeAllProperties(){this.hasUnknownDeoptimizedProperty=!0;for(const e of this.properties)e.deoptimizePath(Zh);for(const e of this.expressionsToBeDeoptimized.values())for(const t of e)t.deoptimizeCache()}getPropertyMap(){if(null!==this.propertyMap)return this.propertyMap;const e=this.propertyMap=Object.create(null);for(let t=this.properties.length-1;t>=0;t--){const r=this.properties[t];if(r instanceof $y){this.unmatchablePropertiesRead.push(r);continue}const n="get"!==r.kind,i="set"!==r.kind;let a;if(r.computed){const e=r.key.getLiteralValueAtPath(Qh,ry,this);if(e===ay){i?this.unmatchablePropertiesRead.push(r):this.unmatchablePropertiesWrite.push(r);continue}a=String(e)}else a=r.key instanceof _v?r.key.name:String(r.key.value);const o=e[a];o?(i&&null===o.exactMatchRead&&(o.exactMatchRead=r,o.propertiesRead.push(r,...this.unmatchablePropertiesRead)),n&&!i&&null===o.exactMatchWrite&&(o.exactMatchWrite=r,o.propertiesWrite.push(r,...this.unmatchablePropertiesWrite))):e[a]={exactMatchRead:i?r:null,exactMatchWrite:n?r:null,propertiesRead:i?[r,...this.unmatchablePropertiesRead]:[],propertiesWrite:n&&!i?[r,...this.unmatchablePropertiesWrite]:[]}}return e}},ObjectPattern:class extends zy{addExportedVariables(e,t){for(const r of this.properties)"Property"===r.type?r.value.addExportedVariables(e,t):r.argument.addExportedVariables(e,t)}declare(e,t){const r=[];for(const n of this.properties)r.push(...n.declare(e,t));return r}deoptimizePath(e){if(0===e.length)for(const t of this.properties)t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.properties)if(e.hasEffectsWhenAssignedAtPath(Qh,t))return!0;return!1}},PrivateIdentifier:class extends zy{},Program:vx,Property:class extends zy{constructor(){super(...arguments),this.declarationInit=null,this.returnExpression=null}bind(){super.bind(),"get"===this.kind&&this.getReturnExpression(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([Yh,Yh])}declare(e,t){return this.declarationInit=t,this.value.declare(e,oy)}deoptimizeCache(){}deoptimizePath(e){"get"===this.kind?this.getReturnExpression().deoptimizePath(e):this.value.deoptimizePath(e)}getLiteralValueAtPath(e,t,r){return"get"===this.kind?this.getReturnExpression().getLiteralValueAtPath(e,t,r):this.value.getLiteralValueAtPath(e,t,r)}getReturnExpressionWhenCalledAtPath(e,t,r){return"get"===this.kind?this.getReturnExpression().getReturnExpressionWhenCalledAtPath(e,t,r):this.value.getReturnExpressionWhenCalledAtPath(e,t,r)}hasEffects(e){const t=this.context.options.treeshake.propertyReadSideEffects;return"ObjectPattern"===this.parent.type&&"always"===t||this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){if("get"===this.kind){const r=t.accessed.getEntities(e);return!r.has(this)&&(r.add(this),this.value.hasEffectsWhenCalledAtPath(Qh,this.accessorCallOptions,t)||e.length>0&&this.returnExpression.hasEffectsWhenAccessedAtPath(e,t))}return this.value.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){if("get"===this.kind){const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.returnExpression.hasEffectsWhenAssignedAtPath(e,t))}if("set"===this.kind){const r=t.assigned.getEntities(e);return!r.has(this)&&(r.add(this),this.value.hasEffectsWhenCalledAtPath(Qh,this.accessorCallOptions,t))}return this.value.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){if("get"===this.kind){const n=(t.withNew?r.instantiated:r.called).getEntities(e,t);return!n.has(this)&&(n.add(this),this.returnExpression.hasEffectsWhenCalledAtPath(e,t,r))}return this.value.hasEffectsWhenCalledAtPath(e,t,r)}initialise(){this.accessorCallOptions={args:qh,withNew:!1}}render(e,t){this.shorthand||this.key.render(e,t),this.value.render(e,t,{isShorthandProperty:this.shorthand})}getReturnExpression(){return null===this.returnExpression?(this.returnExpression=oy,this.returnExpression=this.value.getReturnExpressionWhenCalledAtPath(Qh,ry,this)):this.returnExpression}},PropertyDefinition:class extends zy{hasEffects(e){return this.key.hasEffects(e)||this.static&&null!==this.value&&this.value.hasEffects(e)}},RestElement:fv,ReturnStatement:class extends zy{hasEffects(e){return!(e.ignore.returnAwaitYield&&(null===this.argument||!this.argument.hasEffects(e))&&(e.brokenFlow=2,1))}include(e,t){this.included=!0,this.argument&&this.argument.include(e,t),e.brokenFlow=2}initialise(){this.scope.addReturnExpression(this.argument||oy)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+6&&e.prependLeft(this.start+6," "))}},SequenceExpression:class extends zy{deoptimizePath(e){e.length>0&&this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,t,r){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,t,r)}hasEffects(e){for(const t of this.expressions)if(t.hasEffects(e))return!0;return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.expressions[this.expressions.length-1].hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||this.expressions[this.expressions.length-1].hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,r){return this.expressions[this.expressions.length-1].hasEffectsWhenCalledAtPath(e,t,r)}include(e,t){this.included=!0;for(let r=0;r<this.expressions.length-1;r++){const n=this.expressions[r];(t||n.shouldBeIncluded(e))&&n.include(e,t)}this.expressions[this.expressions.length-1].include(e,t)}render(e,t,{renderedParentType:r,isCalleeOfRenderedParent:n,preventASI:i}=Qy){let a=0;for(const{node:o,start:s,end:c}of zh(this.expressions,e,this.start,this.end))o.included?(a++,1===a&&i&&Kh(e,s,o.start),o===this.expressions[this.expressions.length-1]&&1===a?o.render(e,t,{isCalleeOfRenderedParent:r?n:this.parent.callee===this,renderedParentType:r||this.parent.type}):o.render(e,t)):Oh(o,e,s,c)}},SpreadElement:$y,Super:class extends zy{},SwitchCase:bx,SwitchStatement:class extends zy{createScope(e){this.scope=new Kb(e)}hasEffects(e){if(this.discriminant.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r}}=e;let n=1/0;e.ignore.breaks=!0;for(const r of this.cases){if(r.hasEffects(e))return!0;n=e.brokenFlow<n?e.brokenFlow:n,e.brokenFlow=t}return null!==this.defaultCase&&1!==n&&(e.brokenFlow=n),e.ignore.breaks=r,!1}include(e,t){this.included=!0,this.discriminant.include(e,t);const{brokenFlow:r}=e;let n=1/0,i=t||null!==this.defaultCase&&this.defaultCase<this.cases.length-1;for(let a=this.cases.length-1;a>=0;a--){const o=this.cases[a];if(o.included&&(i=!0),!i){const e=Oy();e.ignore.breaks=!0,i=o.hasEffects(e)}i?(o.include(e,t),n=n<e.brokenFlow?n:e.brokenFlow,e.brokenFlow=r):n=r}i&&null!==this.defaultCase&&1!==n&&(e.brokenFlow=n)}initialise(){for(let e=0;e<this.cases.length;e++)if(null===this.cases[e].test)return this.defaultCase=e,void 0;this.defaultCase=null}render(e,t){this.discriminant.render(e,t),this.cases.length>0&&Vh(this.cases,e,this.cases[0].start,this.end-1,t)}},TaggedTemplateExpression:class extends zy{bind(){if(super.bind(),this.tag.type===Ph){const e=this.tag.name;this.scope.findVariable(e).isNamespace&&this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${e}')`},this.start),"eval"===e&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)}}hasEffects(e){return super.hasEffects(e)||this.tag.hasEffectsWhenCalledAtPath(Qh,this.callOptions,e)}initialise(){this.callOptions={args:qh,withNew:!1}}},TemplateElement:class extends zy{bind(){}hasEffects(){return!1}include(){this.included=!0}parseNode(e){this.value=e.value,super.parseNode(e)}render(){}},TemplateLiteral:xx,ThisExpression:class extends zy{bind(){super.bind(),this.variable=this.scope.findVariable("this")}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this.variable.hasEffectsWhenAssignedAtPath(e,t)}initialise(){this.alias=this.scope.findLexicalBoundary()instanceof Ex?this.context.moduleContext:null,"undefined"===this.alias&&this.context.warn({code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:"https://rollupjs.org/guide/en/#error-this-is-undefined"},this.start)}render(e){null!==this.alias&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}},ThrowStatement:class extends zy{hasEffects(){return!0}include(e,t){this.included=!0,this.argument.include(e,t),e.brokenFlow=2}render(e,t){this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," ")}},TryStatement:class extends zy{constructor(){super(...arguments),this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(e){return(this.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(e))||null!==this.finalizer&&this.finalizer.hasEffects(e)}include(e,t){var r;const n=null===(r=this.context.options.treeshake)||void 0===r?void 0:r.tryCatchDeoptimization,{brokenFlow:i}=e;if(this.directlyIncluded&&n){if(this.includedLabelsAfterBlock)for(const t of this.includedLabelsAfterBlock)e.includedLabels.add(t)}else this.included=!0,this.directlyIncluded=!0,this.block.include(e,n?Vy:t),e.includedLabels.size>0&&(this.includedLabelsAfterBlock=[...e.includedLabels]),e.brokenFlow=i;null!==this.handler&&(this.handler.include(e,t),e.brokenFlow=i),null!==this.finalizer&&this.finalizer.include(e,t)}},UnaryExpression:class extends zy{bind(){super.bind(),"delete"===this.operator&&this.argument.deoptimizePath(Qh)}getLiteralValueAtPath(e,t,r){if(e.length>0)return ay;const n=this.argument.getLiteralValueAtPath(Qh,t,r);return n===ay?ay:Sx[this.operator](n)}hasEffects(e){return!("typeof"===this.operator&&this.argument instanceof _v)&&(this.argument.hasEffects(e)||"delete"===this.operator&&this.argument.hasEffectsWhenAssignedAtPath(Qh,e))}hasEffectsWhenAccessedAtPath(e){return"void"===this.operator?e.length>0:e.length>1}},UnknownNode:class extends zy{hasEffects(){return!0}include(e){super.include(e,!0)}},UpdateExpression:class extends zy{bind(){super.bind(),this.argument.deoptimizePath(Qh),this.argument instanceof _v&&(this.scope.findVariable(this.argument.name).isReassigned=!0)}hasEffects(e){return this.argument.hasEffects(e)||this.argument.hasEffectsWhenAssignedAtPath(Qh,e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}render(e,t){if(this.argument.render(e,t),"system"===t.format){const r=this.argument.variable,n=t.exportNamesByVariable.get(r);if(n&&n.length){const i=t.compact?"":" ",a=r.getName();if(this.prefix)1===n.length?e.overwrite(this.start,this.end,`exports('${n[0]}',${i}${this.operator}${a})`):e.overwrite(this.start,this.end,`(${this.operator}${a},${i}${Wh([r],t)},${i}${a})`);else if(n.length>1)e.overwrite(this.start,this.end,`(${Hh([r],!1,t)}${this.operator}${a}))`);else{let t;switch(this.operator){case"++":t=`${a}${i}+${i}1`;break;case"--":t=`${a}${i}-${i}1`}e.overwrite(this.start,this.end,`(exports('${n[0]}',${i}${t}),${i}${a}${this.operator})`)}}}}},VariableDeclaration:Tx,VariableDeclarator:class extends zy{declareDeclarator(e){this.id.declare(e,this.init||sy)}deoptimizePath(e){this.id.deoptimizePath(e)}hasEffects(e){return this.id.hasEffects(e)||null!==this.init&&this.init.hasEffects(e)}include(e,t){this.included=!0,(t||this.id.shouldBeIncluded(e))&&this.id.include(e,t),this.init&&this.init.include(e,t)}render(e,t){const r=this.id.included;if(r)this.id.render(e,t);else{const t=Lh(e.original,"=",this.id.end);e.remove(this.start,jh(e.original,t+1))}if(this.init)this.init.render(e,t,r?Qy:{renderedParentType:Fh});else if(this.id instanceof _v&&Dx(this.id.variable,t.exportNamesByVariable)){const r=t.compact?"":" ";e.appendLeft(this.end,`${r}=${r}void 0`)}}},WhileStatement:class extends zy{hasEffects(e){if(this.test.hasEffects(e))return!0;const{brokenFlow:t,ignore:{breaks:r,continues:n}}=e;return e.ignore.breaks=!0,e.ignore.continues=!0,!!this.body.hasEffects(e)||(e.ignore.breaks=r,e.ignore.continues=n,e.brokenFlow=t,!1)}include(e,t){this.included=!0,this.test.include(e,t);const{brokenFlow:r}=e;this.body.includeAsSingleStatement(e,t),e.brokenFlow=r}},YieldExpression:class extends zy{bind(){super.bind(),null!==this.argument&&this.argument.deoptimizePath(Zh)}hasEffects(e){return!e.ignore.returnAwaitYield||null!==this.argument&&this.argument.hasEffects(e)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5," "))}}};function kx(e){return e.id}let Ax="sourceMa";Ax+="ppingURL";const Nx="[ \\f\\r\\t\\v\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]",wx=new RegExp(`(//#${Nx}+sourceMappingURL=.+)|(/\\*#${Nx}+sourceMappingURL=.+\\*/)`,"g"),Fx=()=>{};let Px=()=>[0,0],Ix=()=>0,Ox=()=>0,Mx={};function Rx(e,t){switch(t){case 1:return`# ${e}`;case 2:return`## ${e}`;case 3:return e;default:return`${" ".repeat(t-4)}- ${e}`}}function Lx(e,t=3){e=Rx(e,t),Mx.hasOwnProperty(e)||(Mx[e]={memory:0,startMemory:void 0,startTime:void 0,time:0,totalMemory:0});const r=Ox();Mx[e].startTime=Px(),Mx[e].startMemory=r}function Bx(e,t=3){if(e=Rx(e,t),Mx.hasOwnProperty(e)){const t=Ox();Mx[e].time+=Ix(Mx[e].startTime),Mx[e].totalMemory=Math.max(Mx[e].totalMemory,t),Mx[e].memory+=t-Mx[e].startMemory}}function jx(){const e={};for(const t of Object.keys(Mx))e[t]=[Mx[t].time,Mx[t].memory,Mx[t].totalMemory];return e}let Ux=Fx,Vx=Fx;const zx={load:!0,resolveDynamicImport:!0,resolveId:!0,transform:!0};function Kx(e,t){const r={};for(const n of Object.keys(e))if(!0===zx[n]){let i=`plugin ${t}`;e.name&&(i+=` (${e.name})`),i+=` - ${n}`,r[n]=function(){Ux(i,4);let t=e[n].apply(this===r?e:this,arguments);return Vx(i,4),t&&"function"==typeof t.then&&(Ux(`${i} (async)`,4),t=t.then((()=>Vx(`${i} (async)`,4)))),t}}else r[n]=e[n];return r}function Wx(e){e.isExecuted=!0;const t=[e],r=new Set;for(const e of t)for(const n of[...e.dependencies,...e.implicitlyLoadedBefore])n instanceof Lv||n.isExecuted||!n.info.hasModuleSideEffects&&!e.implicitlyLoadedBefore.has(n)||r.has(n.id)||(n.isExecuted=!0,r.add(n.id),t.push(n))}const Hx={identifier:null,localName:bv};function Jx(e,t,r,n,i=new Map){const a=i.get(t);if(a){if(a.has(e))return n?null:gb((o=t,s=e.id,{code:yb.CIRCULAR_REEXPORT,id:s,message:`"${o}" cannot be exported from ${fb(s)} as it is a reexport that references itself.`}));a.add(e)}else i.set(t,new Set([e]));var o,s;return e.getVariableForExportName(t,r,n,i)}class $x{constructor(e,t,r,n,i,a,o){this.graph=e,this.id=t,this.options=r,this.alternativeReexportModules=new Map,this.ast=null,this.chunkFileNames=new Set,this.chunkName=null,this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.exportAllSources=new Set,this.exports=Object.create(null),this.exportsAll=Object.create(null),this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=Object.create(null),this.importers=[],this.importMetas=[],this.imports=new Set,this.includedDynamicImporters=[],this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.preserveSignature=this.options.preserveEntrySignatures,this.reexportDescriptions=Object.create(null),this.sideEffectDependenciesByVariable=new Map,this.sources=new Set,this.userChunkNames=new Set,this.usesTopLevelAwait=!1,this.allExportNames=null,this.exportAllModules=[],this.exportNamesByVariable=null,this.exportShimVariable=new xv(this),this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.transitiveReexports=null,this.excludeFromSourcemap=/\0/.test(t),this.context=r.moduleContext(t);const s=this;this.info={ast:null,code:null,get dynamicallyImportedIds(){const e=[];for(const{resolution:t}of s.dynamicImports)(t instanceof $x||t instanceof Lv)&&e.push(t.id);return e},get dynamicImporters(){return s.dynamicImporters.sort()},hasModuleSideEffects:i,id:t,get implicitlyLoadedAfterOneOf(){return Array.from(s.implicitlyLoadedAfter,kx)},get implicitlyLoadedBefore(){return Array.from(s.implicitlyLoadedBefore,kx)},get importedIds(){return Array.from(s.sources,(e=>s.resolvedIds[e].id))},get importers(){return s.importers.sort()},isEntry:n,isExternal:!1,meta:o,syntheticNamedExports:a}}basename(){const e=Le(this.id),t=je(this.id);return Fv(t?e.slice(0,-t.length):e)}bindReferences(){this.ast.bind()}error(e,t){return this.addLocationToLogProps(e,t),gb(e)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;const e=this.allExportNames=new Set;for(const t of Object.keys(this.exports))e.add(t);for(const t of Object.keys(this.reexportDescriptions))e.add(t);for(const t of this.exportAllModules)if(t instanceof Lv)e.add(`*${t.id}`);else for(const r of t.getAllExportNames())"default"!==r&&e.add(r);return e}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;const e=new Set,t=new Set,r=new Set;let n=this.imports.keys();if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0){n=new Set(n);for(const e of[...this.getReexports(),...this.getExports()])n.add(this.getVariableForExportName(e))}for(let e of n){const n=this.sideEffectDependenciesByVariable.get(e);if(n)for(const e of n)r.add(e);e instanceof Sv?e=e.getBaseVariable():e instanceof vv&&(e=e.getOriginalVariable()),t.add(e.module)}if(this.options.treeshake&&"no-treeshake"!==this.info.hasModuleSideEffects)this.addRelevantSideEffectDependencies(e,t,r);else for(const t of this.dependencies)e.add(t);for(const r of t)e.add(r);return this.relevantDependencies=e}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;const e=new Map;for(const t of this.getAllExportNames()){if(t===this.info.syntheticNamedExports)continue;let r=this.getVariableForExportName(t);if(r instanceof vv&&(r=r.getOriginalVariable()),!r||!(r.included||r instanceof Tv))continue;const n=e.get(r);n?n.push(t):e.set(r,[t])}return this.exportNamesByVariable=e}getExports(){return Object.keys(this.exports)}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];const e=new Set;for(const t in this.reexportDescriptions)e.add(t);for(const t of this.exportAllModules)if(t instanceof Lv)e.add(`*${t.id}`);else for(const r of[...t.getReexports(),...t.getExports()])"default"!==r&&e.add(r);return this.transitiveReexports=[...e]}getRenderedExports(){const e=[],t=[];for(const r in this.exports){const n=this.getVariableForExportName(r);(n&&n.included?e:t).push(r)}return{renderedExports:e,removedExports:t}}getSyntheticNamespace(){return null===this.syntheticNamespace&&(this.syntheticNamespace=void 0,this.syntheticNamespace=this.getVariableForExportName("string"==typeof this.info.syntheticNamedExports?this.info.syntheticNamedExports:"default")),this.syntheticNamespace?this.syntheticNamespace:gb((e=this.id,t=this.info.syntheticNamedExports,{code:yb.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT,id:e,message:`Module "${fb(e)}" that is marked with 'syntheticNamedExports: ${JSON.stringify(t)}' needs ${"string"==typeof t&&"default"!==t?`an export named "${t}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}));var e,t}getVariableForExportName(e,t,r,n){if("*"===e[0])return 1===e.length?this.namespace:this.graph.modulesById.get(e.slice(1)).getVariableForExportName("*");const i=this.reexportDescriptions[e];if(i){const e=Jx(i.module,i.localName,t,!1,n);return e?(t&&Gx(e,t,this),e):this.error(xb(i.localName,this.id,i.module.id),i.start)}const a=this.exports[e];if(a){if(a===Hx)return this.exportShimVariable;const e=a.localName,r=this.traceVariable(e,t);return t&&(Xh(t.sideEffectDependenciesByVariable,r,(()=>new Set)).add(this),Gx(r,t,this)),r}if("default"!==e){let r=null;for(const i of this.exportAllModules){const a=Jx(i,e,t,!0,n);if(a){if(!(a instanceof Sv))return a;r||(r=a)}}if(r)return r}if(this.info.syntheticNamedExports){let t=this.syntheticExports.get(e);if(!t){const r=this.getSyntheticNamespace();return t=new Sv(this.astContext,e,r),this.syntheticExports.set(e,t),t}return t}return!r&&this.options.shimMissingExports?(this.shimMissingExport(e),this.exportShimVariable):null}hasEffects(){return"no-treeshake"===this.info.hasModuleSideEffects||this.ast.included&&this.ast.hasEffects(Oy())}include(){const e=Iy();this.ast.shouldBeIncluded(e)&&this.ast.include(e,!1)}includeAllExports(e){this.isExecuted||(this.graph.needsTreeshakingPass=!0,Wx(this));for(const t of this.getExports())if(e||t!==this.info.syntheticNamedExports){const e=this.getVariableForExportName(t);e.deoptimizePath(Zh),e.included||this.includeVariable(e)}for(const e of this.getReexports()){const t=this.getVariableForExportName(e);t.deoptimizePath(Zh),t.included||this.includeVariable(t),t instanceof Tv&&(t.module.reexported=!0)}e&&this.namespace.prepareNamespace(this.includeAndGetAdditionalMergedNamespaces())}includeAllInBundle(){this.ast.include(Iy(),!0)}isIncluded(){return this.ast.included||this.namespace.included}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);for(const e in this.exports)"default"!==e&&e!==this.info.syntheticNamedExports&&(this.exportsAll[e]=this.id);const e=[];for(const t of this.exportAllSources){const r=this.graph.modulesById.get(this.resolvedIds[t].id);if(r instanceof Lv)e.push(r);else{this.exportAllModules.push(r);for(const e in r.exportsAll)e in this.exportsAll?this.options.onwarn(Sb(e,this,r)):this.exportsAll[e]=r.exportsAll[e]}}this.exportAllModules.push(...e)}render(e){const t=this.magicString.clone();return this.ast.render(t,e),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,t}setSource({alwaysRemovedCode:e,ast:t,code:r,customTransformCache:n,originalCode:i,originalSourcemap:a,resolvedIds:o,sourcemapChain:s,transformDependencies:c,transformFiles:l,...u}){this.info.code=r,this.originalCode=i,this.originalSourcemap=a,this.sourcemapChain=s,l&&(this.transformFiles=l),this.transformDependencies=c,this.customTransformCache=n,this.updateOptions(u),Ux("generate ast",3),this.alwaysRemovedCode=e||[],t||(t=this.tryParse()),this.alwaysRemovedCode.push(...((e,t)=>{const r=[],n=(e,n)=>{if(e==n)return;let i;const a=t.slice(e,n);for(;i=wx.exec(a);)r.push([e+i.index,e+wx.lastIndex])};let i=0;for(const t of e.body)n(i,t.start),i=t.end;return n(i,t.length),r})(t,this.info.code)),Vx("generate ast",3),this.resolvedIds=o||Object.create(null);const d=this.id;this.magicString=new Th(r,{filename:this.excludeFromSourcemap?null:d,indentExclusionRanges:[]});for(const[e,t]of this.alwaysRemovedCode)this.magicString.remove(e,t);Ux("analyse ast",3),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),code:r,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:d,getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeAllExports:()=>this.includeAllExports(!0),includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),magicString:this.magicString,module:this,moduleContext:this.context,nodeConstructors:Cx,options:this.options,traceExport:this.getVariableForExportName.bind(this),traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1,warn:this.warn.bind(this)},this.scope=new Ex(this.graph.scope,this.astContext),this.namespace=new Ev(this.astContext,this.info.syntheticNamedExports),this.ast=new vx(t,{type:"Module",context:this.astContext},this.scope),this.info.ast=t,Vx("analyse ast",3)}toJSON(){return{alwaysRemovedCode:this.alwaysRemovedCode,ast:this.ast.esTreeNode,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,kx),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.hasModuleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(e,t){const r=this.scope.variables.get(e);if(r)return r;if(e in this.importDescriptions){const r=this.importDescriptions[e],n=r.module;if(n instanceof $x&&"*"===r.name)return n.namespace;return n.getVariableForExportName(r.name,t||this)||this.error(xb(r.name,this.id,n.id),r.start)}return null}tryParse(){try{return this.graph.contextParse(this.info.code)}catch(e){let t=e.message.replace(/ \(\d+:\d+\)$/,"");return this.id.endsWith(".json")?t+=" (Note that you need @rollup/plugin-json to import JSON files)":this.id.endsWith(".js")||(t+=" (Note that you need plugins to import files that are not JavaScript)"),this.error({code:"PARSE_ERROR",message:t,parserError:e},e.pos)}}updateOptions({meta:e,moduleSideEffects:t,syntheticNamedExports:r}){null!=t&&(this.info.hasModuleSideEffects=t),null!=r&&(this.info.syntheticNamedExports=r),null!=e&&(this.info.meta={...this.info.meta,...e})}warn(e,t){this.addLocationToLogProps(e,t),this.options.onwarn(e)}addDynamicImport(e){let t=e.source;t instanceof xx?1===t.quasis.length&&t.quasis[0].value.cooked&&(t=t.quasis[0].value.cooked):t instanceof Gb&&"string"==typeof t.value&&(t=t.value),this.dynamicImports.push({node:e,resolution:null,argument:t})}addExport(e){if(e instanceof hv)this.exports.default={identifier:e.variable.getAssignedVariableName(),localName:"default"};else if(e instanceof zb){const t=e.source.value;if(this.sources.add(t),e.exported){const r=e.exported.name;this.reexportDescriptions[r]={localName:"*",module:null,source:t,start:e.start}}else this.exportAllSources.add(t)}else if(e.source instanceof Gb){const t=e.source.value;this.sources.add(t);for(const r of e.specifiers){const e=r.exported.name;this.reexportDescriptions[e]={localName:r.local.name,module:null,source:t,start:r.start}}}else if(e.declaration){const t=e.declaration;if(t instanceof Tx)for(const e of t.declarations)for(const t of Vb(e.id))this.exports[t]={identifier:null,localName:t};else{const e=t.id.name;this.exports[e]={identifier:null,localName:e}}}else for(const t of e.specifiers){const e=t.local.name,r=t.exported.name;this.exports[r]={identifier:null,localName:e}}}addImport(e){const t=e.source.value;this.sources.add(t);for(const r of e.specifiers){const e="ImportDefaultSpecifier"===r.type,n="ImportNamespaceSpecifier"===r.type,i=e?"default":n?"*":r.imported.name;this.importDescriptions[r.local.name]={module:null,name:i,source:t,start:r.start}}}addImportMeta(e){this.importMetas.push(e)}addLocationToLogProps(e,t){e.id=this.id,e.pos=t;let r=this.info.code,{column:n,line:i}=jy(r,t,{offsetLine:1});try{({column:n,line:i}=((e,t)=>{const r=e.filter((e=>e.mappings));for(;r.length>0;){const e=r.pop(),n=e.mappings[t.line-1];let i=!1;if(void 0!==n)for(const r of n)if(r[0]>=t.column){if(1===r.length)break;t={column:r[3],line:r[2]+1,name:5===r.length?e.names[r[4]]:void 0,source:e.sources[r[1]]},i=!0;break}if(!i)throw new Error("Can't resolve original location of error.")}return t})(this.sourcemapChain,{column:n,line:i})),r=this.originalCode}catch(e){this.options.onwarn({code:"SOURCEMAP_ERROR",id:this.id,loc:{column:n,file:this.id,line:i},message:`Error when using sourcemap for reporting an error: ${e.message}`,pos:t})}hb(e,{column:n,line:i},r,this.id)}addModulesToImportDescriptions(e){for(const t of Object.keys(e)){const r=e[t],n=this.resolvedIds[r.source].id;r.module=this.graph.modulesById.get(n)}}addRelevantSideEffectDependencies(e,t,r){const n=new Set,i=a=>{for(const o of a)n.has(o)||(n.add(o),t.has(o)?e.add(o):(o.info.hasModuleSideEffects||r.has(o))&&(o instanceof Lv||o.hasEffects()?e.add(o):i(o.dependencies)))};i(this.dependencies),i(r)}includeAndGetAdditionalMergedNamespaces(){const e=[];for(const t of this.exportAllModules)if(t instanceof Lv){const r=t.getVariableForExportName("*");r.include(),this.imports.add(r),e.push(r)}else if(t.info.syntheticNamedExports){const r=t.getSyntheticNamespace();r.include(),this.imports.add(r),e.push(r)}return e}includeDynamicImport(e){const t=this.dynamicImports.find((t=>t.node===e)).resolution;t instanceof $x&&(t.includedDynamicImporters.push(this),t.includeAllExports(!0))}includeVariable(e){if(!e.included){e.include(),this.graph.needsTreeshakingPass=!0;const t=e.module;if(t&&t instanceof $x&&(t.isExecuted||Wx(t),t!==this)){const t=((e,t)=>{const r=Xh(t.sideEffectDependenciesByVariable,e,(()=>new Set));let n=e;const i=new Set([n]);for(;;){const e=n.module;if(n=n instanceof vv?n.getDirectOriginalVariable():n instanceof Sv?n.syntheticNamespace:null,!n||i.has(n))break;i.add(n),r.add(e);const t=e.sideEffectDependenciesByVariable.get(n);if(t)for(const e of t)r.add(e)}return r})(e,this);for(const e of t)e.isExecuted||Wx(e)}}}includeVariableInModule(e){this.includeVariable(e);const t=e.module;t&&t!==this&&this.imports.add(e)}shimMissingExport(e){this.options.onwarn({code:"SHIMMED_EXPORT",exporter:fb(this.id),exportName:e,message:`Missing export "${e}" has been shimmed in module ${fb(this.id)}.`}),this.exports[e]=Hx}}function Gx(e,t,r){if(e.module instanceof $x&&e.module!==r){const n=e.module.cycles;if(n.size>0){const i=r.cycles;for(const a of i)if(n.has(a)){t.alternativeReexportModules.set(e,r);break}}}}class qx{constructor(e,t){this.isOriginal=!0,this.filename=e,this.content=t}traceSegment(e,t,r){return{line:e,column:t,name:r,source:this}}}class Xx{constructor(e,t){this.sources=t,this.names=e.names,this.mappings=e.mappings}traceMappings(){const e=[],t=[],r=[],n=[];for(const i of this.mappings){const a=[];for(const n of i){if(1==n.length)continue;const i=this.sources[n[1]];if(!i)continue;const o=i.traceSegment(n[2],n[3],5===n.length?this.names[n[4]]:"");if(o){let i=e.lastIndexOf(o.source.filename);if(-1===i)i=e.length,e.push(o.source.filename),t[i]=o.source.content;else if(null==t[i])t[i]=o.source.content;else if(null!=o.source.content&&t[i]!==o.source.content)return gb({message:`Multiple conflicting contents for sourcemap source ${o.source.filename}`});const s=[n[0],i,o.line,o.column];if(o.name){let e=r.indexOf(o.name);-1===e&&(e=r.length,r.push(o.name)),s[4]=e}a.push(s)}}n.push(a)}return{sources:e,sourcesContent:t,names:r,mappings:n}}traceSegment(e,t,r){const n=this.mappings[e];if(!n)return null;let i=0,a=n.length-1;for(;i<=a;){const e=i+a>>1,o=n[e];if(o[0]===t){if(1==o.length)return null;const e=this.sources[o[1]];return e?e.traceSegment(o[2],o[3],5===o.length?this.names[o[4]]:r):null}o[0]>t?a=e-1:i=e+1}return null}}function Yx(e){return(t,r)=>r.mappings?new Xx(r,[t]):(e({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin (${r.plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:r.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new Xx({mappings:[],names:[]},[t]))}function Qx(e,t,r,n,i){let a;if(r){const t=r.sources,n=r.sourcesContent||[],i=Be(e)||".",o=r.sourceRoot||".",s=t.map(((e,t)=>new qx(He(i,o,e),n[t])));a=new Xx(r,s)}else a=new qx(e,t);return n.reduce(i,a)}const Zx=()=>oh(),eE={amd:rE,cjs:rE,es:tE,iife:rE,system:tE,umd:rE};function tE(e,t,r,n,i,a,o,s){for(const t of r.dependencies)(i||t instanceof Lv)&&(t.variableName=Gh(t.suggestedVariableName,e));for(const r of t){const t=r.module,n=r.name;r.isNamespace&&(i||t instanceof Lv)?r.setRenderNames(null,(t instanceof Lv?t:o.get(t)).variableName):t instanceof Lv&&"default"===n?r.setRenderNames(null,Gh([...t.exportedVariables].some((([e,t])=>"*"===t&&e.included))?t.suggestedVariableName+"__default":t.suggestedVariableName,e)):r.setRenderNames(null,Gh(n,e))}for(const t of s)t.setRenderNames(null,Gh(t.name,e))}function rE(e,t,{deconflictedDefault:r,deconflictedNamespace:n,dependencies:i},a,o,s,c){for(const t of i)t.variableName=Gh(t.suggestedVariableName,e);for(const t of n)t.namespaceVariableName=Gh(`${t.suggestedVariableName}__namespace`,e);for(const t of r)n.has(t)&&Gv(String(a(t.id)),s)?t.defaultVariableName=t.namespaceVariableName:t.defaultVariableName=Gh(`${t.suggestedVariableName}__default`,e);for(const e of t){const t=e.module;if(t instanceof Lv){const r=e.name;if("default"===r){const r=String(a(t.id)),n=Hv[r]?t.defaultVariableName:t.variableName;Jv(r,s)?e.setRenderNames(n,"default"):e.setRenderNames(null,n)}else"*"===r?e.setRenderNames(null,$v[String(a(t.id))]?t.namespaceVariableName:t.variableName):e.setRenderNames(t.variableName,null)}else{const r=c.get(t);o&&e.isNamespace?e.setRenderNames(null,"default"===r.exportMode?r.namespaceVariableName:r.variableName):"default"===r.exportMode?e.setRenderNames(null,r.variableName):e.setRenderNames(r.variableName,r.getVariableExportName(e))}}}const nE=/[\\'\r\n\u2028\u2029]/,iE=/(['\r\n\u2028\u2029])/g,aE=/\\/g;function oE(e){return e.match(nE)?e.replace(aE,"\\\\").replace(iE,"\\$1"):e}function sE(e){const t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";const i=n.reduce(((e,t)=>{const r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function cE(e,t,r,n,i){const a=e.getDependenciesToBeIncluded();for(const e of a){if(e instanceof Lv){t.push(e);continue}const a=i.get(e);a===n?r.has(e)||(r.add(e),cE(e,t,r,n,i)):t.push(a)}}function lE(e){if(!e)return null;if("string"==typeof e&&(e=JSON.parse(e)),""===e.mappings)return{mappings:[],names:[],sources:[],version:3};let t;return t="string"==typeof e.mappings?(e=>{for(var t=[],r=[],n=[0,0,0,0,0],i=0,a=0,o=0,s=0;a<e.length;a++){var c=e.charCodeAt(a);if(44===c)dh(r,n,i),i=0;else if(59===c)dh(r,n,i),i=0,t.push(r),r=[],n[0]=0;else{var l=ch[c];if(void 0===l)throw new Error("Invalid character ("+String.fromCharCode(c)+")");var u=32&l;if(s+=(l&=31)<<o,u)o+=5;else{var d=1&s;s>>>=1,d&&(s=0===s?-2147483648:-s),n[i]+=s,i++,s=o=0}}}return dh(r,n,i),t.push(r),t})(e.mappings):e.mappings,{...e,mappings:t}}function uE(e,t,r){return mb(e)?e.replace(/\[(\w+)\]/g,((e,n)=>{if(!r.hasOwnProperty(n))return gb(Cb(`"[${n}]" is not a valid placeholder in "${t}" pattern.`));const i=r[n]();return mb(i)?i:gb(Cb(`Invalid substitution "${i}" for placeholder "[${n}]" in "${t}" pattern, can be neither absolute nor relative path.`))})):gb(Cb(`Invalid pattern "${e}" for "${t}", patterns can be neither absolute nor relative paths and must not contain invalid characters.`))}function dE(e,t){const r=new Set(Object.keys(t).map((e=>e.toLowerCase())));if(!r.has(e.toLocaleLowerCase()))return e;const n=je(e);e=e.substr(0,e.length-n.length);let i,a=1;for(;r.has((i=e+ ++a+n).toLowerCase()););return i}const pE=[".js",".jsx",".ts",".tsx"];function _E(e,t,r,n){return("function"==typeof t?t(e.id):t[e.id])||(r?(n({code:"MISSING_GLOBAL_NAME",guess:e.variableName,message:`No name was provided for external module '${e.id}' in output.globals – guessing '${e.variableName}'`,source:e.id}),e.variableName):void 0)}class fE{constructor(e,t,r,n,i,a,o,s,c,l){this.orderedModules=e,this.inputOptions=t,this.outputOptions=r,this.unsetOptions=n,this.pluginDriver=i,this.modulesById=a,this.chunkByModule=o,this.facadeChunkByModule=s,this.includedNamespaces=c,this.manualChunkAlias=l,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.id=null,this.namespaceVariableName="",this.variableName="",this.accessedGlobalsByScope=new Map,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicEntryModules=[],this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=Object.create(null),this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.indentString=void 0,this.isEmpty=!0,this.name=null,this.needsExportsShim=!1,this.renderedDependencies=null,this.renderedExports=null,this.renderedHash=void 0,this.renderedModules=Object.create(null),this.renderedModuleSources=new Map,this.renderedSource=null,this.sortedExportNames=null,this.strictFacade=!1,this.usedModules=void 0,this.execIndex=e.length>0?e[0].execIndex:1/0;const u=new Set(e);for(const t of e){t.namespace.included&&c.add(t),this.isEmpty&&t.isIncluded()&&(this.isEmpty=!1),(t.info.isEntry||r.preserveModules)&&this.entryModules.push(t);for(const e of t.includedDynamicImporters)u.has(e)||(this.dynamicEntryModules.push(t),t.info.syntheticNamedExports&&!r.preserveModules&&(c.add(t),this.exports.add(t.namespace)));t.implicitlyLoadedAfter.size>0&&this.implicitEntryModules.push(t)}this.suggestedVariableName=Fv(this.generateVariableName())}static generateFacade(e,t,r,n,i,a,o,s,c,l){const u=new fE([],e,t,r,n,i,a,o,s,null);u.assignFacadeName(l,c),o.has(c)||o.set(c,u);for(const e of c.getDependenciesToBeIncluded())u.dependencies.add(e instanceof $x?a.get(e):e);return!u.dependencies.has(a.get(c))&&c.info.hasModuleSideEffects&&c.hasEffects()&&u.dependencies.add(a.get(c)),u.ensureReexportsAreAvailableForModule(c),u.facadeModule=c,u.strictFacade=!0,u}canModuleBeFacade(e,t){const r=e.getExportNamesByVariable();for(const t of this.exports)if(!r.has(t))return 0===r.size&&e.isUserDefinedEntryPoint&&"strict"===e.preserveSignature&&this.unsetOptions.has("preserveEntrySignatures")&&this.inputOptions.onwarn({code:"EMPTY_FACADE",id:e.id,message:`To preserve the export signature of the entry module "${fb(e.id)}", an empty facade chunk was created. This often happens when creating a bundle for a web app where chunks are placed in script tags and exports are ignored. In this case it is recommended to set "preserveEntrySignatures: false" to avoid this and reduce the number of chunks. Otherwise if this is intentional, set "preserveEntrySignatures: 'strict'" explicitly to silence this warning.`,url:"https://rollupjs.org/guide/en/#preserveentrysignatures"}),!1;for(const n of t)if(!r.has(n)&&n.module!==e)return!1;return!0}generateExports(){this.sortedExportNames=null;const e=new Set(this.exports);if(null!==this.facadeModule&&(!1!==this.facadeModule.preserveSignature||this.strictFacade)){const t=this.facadeModule.getExportNamesByVariable();for(const[r,n]of t){this.exportNamesByVariable.set(r,[...n]);for(const e of n)this.exportsByName[e]=r;e.delete(r)}}this.outputOptions.minifyInternalExports?!((e,t,r)=>{let n=0;for(const i of e){let e=i.name[0];if(t[e])do{e=Jh(++n),49===e.charCodeAt(0)&&(n+=9*64**(e.length-1),e=Jh(n))}while($h[e]||t[e]);t[e]=i,r.set(i,[e])}})(e,this.exportsByName,this.exportNamesByVariable):!((e,t,r)=>{for(const n of e){let e=0,i=n.name;for(;t[i];)i=n.name+"$"+ ++e;t[i]=n,r.set(n,[i])}})(e,this.exportsByName,this.exportNamesByVariable),(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)&&(this.exportMode=function(e,{exports:t,name:r,format:n},i,a,o){const s=e.getExportNames();if("default"===t){if(1!==s.length||"default"!==s[0])return gb(bb("default",s,a))}else if("none"===t&&s.length)return gb(bb("none",s,a));return"auto"===t&&(0===s.length?t="none":1===s.length&&"default"===s[0]?("cjs"===n&&i.has("exports")&&o((e=>{const t=fb(e);return{code:yb.PREFER_NAMED_EXPORTS,id:e,message:`Entry module "${t}" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "${t}" to use named exports only.`,url:"https://rollupjs.org/guide/en/#outputexports"}})(a)),t="default"):("es"!==n&&-1!==s.indexOf("default")&&o(((e,t)=>({code:yb.MIXED_EXPORTS,id:e,message:`Entry module "${fb(e)}" is using named and default exports together. Consumers of your bundle will have to use \`${t||"chunk"}["default"]\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning`,url:"https://rollupjs.org/guide/en/#outputexports"}))(a,r)),t="named")),t}(this,this.outputOptions,this.unsetOptions,this.facadeModule.id,this.inputOptions.onwarn))}generateFacades(){var e;const t=[],r=new Set([...this.entryModules,...this.implicitEntryModules]),n=new Set(this.dynamicEntryModules.map((e=>e.namespace)));for(const e of r)if(e.preserveSignature)for(const t of e.getExportNamesByVariable().keys())n.add(t);for(const e of r){const r=Array.from(e.userChunkNames,(e=>({name:e})));if(0===r.length&&e.isUserDefinedEntryPoint&&r.push({}),r.push(...Array.from(e.chunkFileNames,(e=>({fileName:e})))),0===r.length&&r.push({}),!this.facadeModule){const t="strict"===e.preserveSignature||"exports-only"===e.preserveSignature&&0!==e.getExportNamesByVariable().size;(!t||this.outputOptions.preserveModules||this.canModuleBeFacade(e,n))&&(this.facadeModule=e,this.facadeChunkByModule.set(e,this),e.preserveSignature&&(this.strictFacade=t),this.assignFacadeName(r.shift(),e))}for(const n of r)t.push(fE.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.facadeChunkByModule,this.includedNamespaces,e,n))}for(const t of this.dynamicEntryModules)t.info.syntheticNamedExports||(!this.facadeModule&&this.canModuleBeFacade(t,n)?(this.facadeModule=t,this.facadeChunkByModule.set(t,this),this.strictFacade=!0,this.assignFacadeName({},t)):this.facadeModule===t&&!this.strictFacade&&this.canModuleBeFacade(t,n)?this.strictFacade=!0:(null===(e=this.facadeChunkByModule.get(t))||void 0===e?void 0:e.strictFacade)||(this.includedNamespaces.add(t),this.exports.add(t.namespace)));return t}generateId(e,t,r,n){if(null!==this.fileName)return this.fileName;const[i,a]=this.facadeModule&&this.facadeModule.isUserDefinedEntryPoint?[t.entryFileNames,"output.entryFileNames"]:[t.chunkFileNames,"output.chunkFileNames"];return dE(uE("function"==typeof i?i(this.getChunkInfo()):i,a,{format:()=>t.format,hash:()=>n?this.computeContentHashWithDependencies(e,t,r):"[hash]",name:()=>this.getChunkName()}),r)}generateIdPreserveModules(e,t,r,n){const i=this.orderedModules[0].id,a=pb(i);let o;if(Ov(i)){const r=je(i),s=n.has("entryFileNames")?pE.includes(r)?"[name].js":"[name][extname].js":t.entryFileNames,c=`${Be(a)}/${uE("function"==typeof s?s(this.getChunkInfo()):s,"output.entryFileNames",{ext:()=>r.substr(1),extname:()=>r,format:()=>t.format,name:()=>this.getChunkName()})}`,{preserveModulesRoot:l}=t;o=l&&c.startsWith(l)?c.slice(l.length).replace(/^[\\/]/,""):Ah(e,c)}else o=`_virtual/${Le(a)}`;return dE(Rv(o),r)}getChunkInfo(){const e=this.facadeModule,t=this.getChunkName.bind(this);return{exports:this.getExportNames(),facadeModuleId:e&&e.id,isDynamicEntry:this.dynamicEntryModules.length>0,isEntry:null!==e&&e.info.isEntry,isImplicitEntry:this.implicitEntryModules.length>0,modules:this.renderedModules,get name(){return t()},type:"chunk"}}getChunkInfoWithFileNames(){return Object.assign(this.getChunkInfo(),{code:void 0,dynamicImports:Array.from(this.dynamicDependencies,kx),fileName:this.id,implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,kx),importedBindings:this.getImportedBindingsPerDependency(),imports:Array.from(this.dependencies,kx),map:void 0,referencedFiles:this.getReferencedFiles()})}getChunkName(){return this.name||(this.name=pb(this.getFallbackChunkName()))}getExportNames(){return this.sortedExportNames||(this.sortedExportNames=Object.keys(this.exportsByName).sort())}getRenderedHash(){if(this.renderedHash)return this.renderedHash;const e=Zx(),t=this.pluginDriver.hookReduceValueSync("augmentChunkHash","",[this.getChunkInfo()],((e,t)=>(t&&(e+=t),e)));return e.update(t),e.update(this.renderedSource.toString()),e.update(this.getExportNames().map((e=>{const t=this.exportsByName[e];return`${fb(t.module.id).replace(/\\/g,"/")}:${t.name}:${e}`})).join(",")),this.renderedHash=e.digest("hex")}getVariableExportName(e){return this.outputOptions.preserveModules&&e instanceof Ev?"*":this.exportNamesByVariable.get(e)[0]}link(){this.dependencies=((e,t,r)=>{const n=[],i=new Set;for(let a=t.length-1;a>=0;a--){const o=t[a];if(!i.has(o)){const t=[];cE(o,t,i,e,r),n.unshift(t)}}const a=new Set;for(const e of n)for(const t of e)a.add(t);return a})(this,this.orderedModules,this.chunkByModule);for(const e of this.orderedModules)this.addDependenciesToChunk(e.dynamicDependencies,this.dynamicDependencies),this.addDependenciesToChunk(e.implicitlyLoadedBefore,this.implicitlyLoadedBefore),this.setUpChunkImportsAndExportsForModule(e)}preRender(e,t){const r=new kh({separator:e.compact?"":"\n\n"});this.usedModules=[],this.indentString=((e,t)=>{if(!0!==t.indent)return t.indent;for(let t=0;t<e.length;t++){const r=sE(e[t].originalCode);if(null!==r)return r}return"\t"})(this.orderedModules,e);const n=e.compact?"":"\n",i=e.compact?"":" ",a={compact:e.compact,dynamicImportFunction:e.dynamicImportFunction,exportNamesByVariable:this.exportNamesByVariable,format:e.format,freeze:e.freeze,indent:this.indentString,namespaceToStringTag:e.namespaceToStringTag,outputPluginDriver:this.pluginDriver,varOrConst:e.preferConst?"const":"var"};if(e.hoistTransitiveImports&&!this.outputOptions.preserveModules&&null!==this.facadeModule)for(const e of this.dependencies)e instanceof fE&&this.inlineChunkDependencies(e);this.prepareDynamicImportsAndImportMetas(),this.setIdentifierRenderResolutions(e);let o="";const s=this.renderedModules;for(const t of this.orderedModules){let i=0;if(t.isIncluded()||this.includedNamespaces.has(t)){const s=t.render(a).trim();i=s.length(),i&&(e.compact&&-1!==s.lastLine().indexOf("//")&&s.append("\n"),this.renderedModuleSources.set(t,s),r.addSource(s),this.usedModules.push(t));const c=t.namespace;if(this.includedNamespaces.has(t)&&!this.outputOptions.preserveModules){const e=c.renderBlock(a);c.renderFirst()?o+=n+e:r.addSource(new Th(e))}}const{renderedExports:c,removedExports:l}=t.getRenderedExports();s[t.id]={originalLength:t.originalCode.length,removedExports:l,renderedExports:c,renderedLength:i}}if(o&&r.prepend(o+n+n),this.needsExportsShim&&r.prepend(`${n}${a.varOrConst} _missingExportShim${i}=${i}void 0;${n}${n}`),e.compact?this.renderedSource=r:this.renderedSource=r.trim(),this.renderedHash=void 0,this.isEmpty&&0===this.getExportNames().length&&0===this.dependencies.size){const e=this.getChunkName();this.inputOptions.onwarn({chunkName:e,code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${e}"`})}this.setExternalRenderPaths(e,t),this.renderedDependencies=this.getChunkDependencyDeclarations(e),this.renderedExports="none"===this.exportMode?[]:this.getChunkExportDeclarations(e.format)}async render(e,t,r){Ux("render format",2);const n=e.format,i=jb[n];e.dynamicImportFunction&&"es"!==n&&this.inputOptions.onwarn({code:"INVALID_OPTION",message:'"output.dynamicImportFunction" is ignored for formats other than "es".'});for(const e of this.dependencies){const t=this.renderedDependencies.get(e);if(e instanceof Lv){const r=e.renderPath;t.id=oE(e.renormalizeRenderPath?this.getRelativePath(r,!1):r)}else t.namedExportsMode="default"!==e.exportMode,t.id=oE(this.getRelativePath(e.id,!1))}this.finaliseDynamicImports(e),this.finaliseImportMetas(n);const a=0!==this.renderedExports.length||[...this.renderedDependencies.values()].some((e=>e.reexports&&0!==e.reexports.length));let o=!1;const s=new Set;for(const e of this.orderedModules){e.usesTopLevelAwait&&(o=!0);const t=this.accessedGlobalsByScope.get(e.scope);if(t)for(const e of t)s.add(e)}if(o&&"es"!==n&&"system"!==n)return gb({code:"INVALID_TLA_FORMAT",message:`Module format ${n} does not support top-level await. Use the "es" or "system" output formats rather.`});if(!this.id)throw new Error("Internal Error: expecting chunk id");const c=i(this.renderedSource,{accessedGlobals:s,dependencies:[...this.renderedDependencies.values()],exports:this.renderedExports,hasExports:a,id:this.id,indentString:this.indentString,intro:t.intro,isEntryFacade:this.outputOptions.preserveModules||null!==this.facadeModule&&this.facadeModule.info.isEntry,isModuleFacade:null!==this.facadeModule,namedExportsMode:"default"!==this.exportMode,outro:t.outro,usesTopLevelAwait:o,varOrConst:e.preferConst?"const":"var",warn:this.inputOptions.onwarn},e);t.banner&&c.prepend(t.banner),t.footer&&c.append(t.footer);const l=c.toString();Vx("render format",2);let u=null;const d=[];let p=await(({code:e,options:t,outputPluginDriver:r,renderChunk:n,sourcemapChain:i})=>r.hookReduceArg0("renderChunk",[e,n,t],((e,t,r)=>{if(null==t)return e;if("string"==typeof t&&(t={code:t,map:void 0}),null!==t.map){const e=lE(t.map);i.push(e||{missing:!0,plugin:r.name})}return t.code})))({code:l,options:e,outputPluginDriver:this.pluginDriver,renderChunk:r,sourcemapChain:d});if(e.sourcemap){let t;Ux("sourcemap",2),t=e.file?He(e.sourcemapFile||e.file):e.dir?He(e.dir,this.id):He(this.id);const r=c.generateDecodedMap({});u=((e,t,r,n,i,a)=>{const o=Yx(a),s=r.filter((e=>!e.excludeFromSourcemap)).map((e=>Qx(e.id,e.originalCode,e.originalSourcemap,e.sourcemapChain,o)));let c=new Xx(t,s);c=n.reduce(o,c);let{sources:l,sourcesContent:u,names:d,mappings:p}=c.traceMappings();if(e){const t=Be(e);l=l.map((e=>We(t,e))),e=Le(e)}return u=i?null:u,new gh({file:e,sources:l,sourcesContent:u,names:d,mappings:p})})(t,r,this.usedModules,d,e.sourcemapExcludeSources,this.inputOptions.onwarn),u.sources=u.sources.map((r=>{const{sourcemapPathTransform:n}=e;if(n){const e=n(r,`${t}.map`);return"string"!=typeof e&&gb(Cb("sourcemapPathTransform function must return a string.")),e}return r})).map(Rv),Vx("sourcemap",2)}return e.compact||"\n"===p[p.length-1]||(p+="\n"),{code:p,map:u}}addDependenciesToChunk(e,t){for(const r of e)if(r instanceof $x){const e=this.chunkByModule.get(r);e&&e!==this&&t.add(e)}else t.add(r)}assignFacadeName({fileName:e,name:t},r){e?this.fileName=e:this.name=pb(t||r.chunkName||_b(r.id))}checkCircularDependencyImport(e,t){const r=e.module;if(r instanceof $x){const s=this.chunkByModule.get(r);let c;do{if(c=t.alternativeReexportModules.get(e),c){const l=this.chunkByModule.get(c);l&&l!==s&&this.inputOptions.onwarn((n=r.getExportNamesByVariable().get(e)[0],i=r.id,a=c.id,o=t.id,{code:yb.CYCLIC_CROSS_CHUNK_REEXPORT,exporter:i,importer:o,message:`Export "${n}" of module ${fb(i)} was reexported through module ${fb(a)} while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in ${fb(o)} to point directly to the exporting module or do not use "preserveModules" to ensure these modules end up in the same chunk.`,reexporter:a})),t=c}}while(c)}var n,i,a,o}computeContentHashWithDependencies(e,t,r){const n=Zx();n.update([e.intro,e.outro,e.banner,e.footer].map((e=>e||"")).join(":")),n.update(t.format);const i=new Set([this]);for(const a of i)if(a instanceof Lv?n.update(":"+a.renderPath):(n.update(a.getRenderedHash()),n.update(a.generateId(e,t,r,!1))),!(a instanceof Lv))for(const e of[...a.dependencies,...a.dynamicDependencies])i.add(e);return n.digest("hex").substr(0,8)}ensureReexportsAreAvailableForModule(e){const t=e.getExportNamesByVariable();for(const r of t.keys()){const t=r instanceof Sv,n=t?r.getBaseVariable():r;if(!(n instanceof Ev&&this.outputOptions.preserveModules)){this.checkCircularDependencyImport(n,e);const r=n.module;if(r instanceof $x){const e=this.chunkByModule.get(r);e&&e!==this&&(e.exports.add(n),t&&this.imports.add(n))}}}}finaliseDynamicImports(e){const t="amd"===e.format;for(const[r,n]of this.renderedModuleSources)for(const{node:i,resolution:a}of r.dynamicImports){const r=this.chunkByModule.get(a),o=this.facadeChunkByModule.get(a);if(!a||!i.included||r===this)continue;const s=a instanceof $x?`'${this.getRelativePath((o||r).id,t)}'`:a instanceof Lv?`'${a.renormalizeRenderPath?this.getRelativePath(a.renderPath,t):a.renderPath}'`:a;i.renderFinalResolution(n,s,a instanceof $x&&!(null==o?void 0:o.strictFacade)&&r.exportNamesByVariable.get(a.namespace)[0],e)}}finaliseImportMetas(e){for(const[t,r]of this.renderedModuleSources)for(const n of t.importMetas)n.renderFinalMechanism(r,this.id,e,this.pluginDriver)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;const e=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];return e?e.chunkName||_b(e.id):"chunk"}getChunkDependencyDeclarations(e){const t=this.getImportSpecifiers(),r=this.getReexportSpecifiers(),n=new Map;for(const i of this.dependencies){const a=t.get(i)||null,o=r.get(i)||null,s=i instanceof Lv||"default"!==i.exportMode;n.set(i,{defaultVariableName:i.defaultVariableName,globalName:i instanceof Lv&&("umd"===e.format||"iife"===e.format)&&_E(i,e.globals,null!==(a||o),this.inputOptions.onwarn),id:void 0,imports:a,isChunk:i instanceof fE,name:i.variableName,namedExportsMode:s,namespaceVariableName:i.namespaceVariableName,reexports:o})}return n}getChunkExportDeclarations(e){const t=[];for(const r of this.getExportNames()){if("*"===r[0])continue;const n=this.exportsByName[r];if(!(n instanceof Sv)){const e=n.module;if(e&&this.chunkByModule.get(e)!==this)continue}let i=null,a=!1,o=!1,s=n.getName();if(n instanceof Ry){n.init===sy&&(o=!0);for(const e of n.declarations)if(e.parent instanceof gv||e instanceof hv&&e.declaration instanceof gv){a=!0;break}}else n instanceof Sv&&(i=s,"es"===e&&"default"!==r&&(s=n.renderName));t.push({exported:r,expression:i,hoisted:a,local:s,uninitialized:o})}return t}getDependenciesToBeDeconflicted(e,t,r){const n=new Set,i=new Set,a=new Set;for(const t of[...this.exportNamesByVariable.keys(),...this.imports])if(e||t.isNamespace){const o=t.module;if(o instanceof Lv)n.add(o),e&&("default"===t.name?Hv[String(r(o.id))]&&i.add(o):"*"===t.name&&$v[String(r(o.id))]&&a.add(o));else{const r=this.chunkByModule.get(o);r!==this&&(n.add(r),e&&"default"===r.exportMode&&t.isNamespace&&a.add(r))}}if(t)for(const e of this.dependencies)n.add(e);return{deconflictedDefault:i,deconflictedNamespace:a,dependencies:n}}getFallbackChunkName(){return this.manualChunkAlias?this.manualChunkAlias:this.fileName?_b(this.fileName):_b(this.orderedModules[this.orderedModules.length-1].id)}getImportedBindingsPerDependency(){const e={};for(const[t,r]of this.renderedDependencies){const n=new Set;if(r.imports)for(const{imported:e}of r.imports)n.add(e);if(r.reexports)for(const{imported:e}of r.reexports)n.add(e);e[t.id]=[...n]}return e}getImportSpecifiers(){const{interop:e}=this.outputOptions,t=new Map;for(const r of this.imports){const n=r.module;let i,a;if(n instanceof Lv){if(i=n,a=r.name,"default"!==a&&"*"!==a&&"defaultOnly"===e(n.id))return gb(Db(n.id,a,!1))}else i=this.chunkByModule.get(n),a=i.getVariableExportName(r);Xh(t,i,(()=>[])).push({imported:a,local:r.getName()})}return t}getReexportSpecifiers(){const{externalLiveBindings:e,interop:t}=this.outputOptions,r=new Map;for(let n of this.getExportNames()){let i,a,o=!1;if("*"===n[0]){const r=n.substr(1);"defaultOnly"===t(r)&&this.inputOptions.onwarn(Tb(r)),o=e,i=this.modulesById.get(r),a=n="*"}else{const r=this.exportsByName[n];if(r instanceof Sv)continue;const s=r.module;if(s instanceof $x){if(i=this.chunkByModule.get(s),i===this)continue;a=i.getVariableExportName(r),o=r.isReassigned}else{if(i=s,a=r.name,"default"!==a&&"*"!==a&&"defaultOnly"===t(s.id))return gb(Db(s.id,a,!0));o=e&&("default"!==a||Jv(String(t(s.id)),!0))}}Xh(r,i,(()=>[])).push({imported:a,needsLiveBinding:o,reexported:n})}return r}getReferencedFiles(){const e=[];for(const t of this.orderedModules)for(const r of t.importMetas){const t=r.getReferencedFileName(this.pluginDriver);t&&e.push(t)}return e}getRelativePath(e,t){let r=Rv(Ah(Be(this.id),e));return t&&r.endsWith(".js")&&(r=r.slice(0,-3)),".."===r?"../../"+Le(e):""===r?"../"+Le(e):r.startsWith("../")?r:"./"+r}inlineChunkDependencies(e){for(const t of e.dependencies)this.dependencies.has(t)||(this.dependencies.add(t),t instanceof fE&&this.inlineChunkDependencies(t))}prepareDynamicImportsAndImportMetas(){var e;const t=this.accessedGlobalsByScope;for(const r of this.orderedModules){for(const{node:n,resolution:i}of r.dynamicImports)if(n.included)if(i instanceof $x){const r=this.chunkByModule.get(i);r===this?n.setInternalResolution(i.namespace):n.setExternalResolution((null===(e=this.facadeChunkByModule.get(i))||void 0===e?void 0:e.exportMode)||r.exportMode,i,this.outputOptions,this.pluginDriver,t)}else n.setExternalResolution("external",i,this.outputOptions,this.pluginDriver,t);for(const e of r.importMetas)e.addAccessedGlobals(this.outputOptions.format,t)}}setExternalRenderPaths(e,t){for(const r of[...this.dependencies,...this.dynamicDependencies])r instanceof Lv&&r.setRenderPath(e,t)}setIdentifierRenderResolutions({format:e,interop:t,namespaceToStringTag:r}){const n=new Set;for(const t of this.getExportNames()){const r=this.exportsByName[t];r instanceof xv&&(this.needsExportsShim=!0),"es"!==e&&"system"!==e&&r.isReassigned&&!r.isId?r.setRenderNames("exports",t):r instanceof Sv?n.add(r):r.setRenderNames(null,null)}const i=new Set(["Object","Promise"]);switch(this.needsExportsShim&&i.add(bv),r&&i.add("Symbol"),e){case"system":i.add("module").add("exports");break;case"es":break;case"cjs":i.add("module").add("require").add("__filename").add("__dirname");default:i.add("exports");for(const e of nb)i.add(e)}!function(e,t,r,n,i,a,o,s,c,l,u,d,p){const _=e.slice().reverse();for(const e of _)e.scope.addUsedOutsideNames(n,i,u,d);!((e,t,r)=>{for(const n of t){for(const t of n.scope.variables.values())t.included&&!(t.renderBaseName||t instanceof vv&&t.getOriginalVariable()!==t)&&t.setRenderNames(null,Gh(t.name,e));if(r.has(n)){const t=n.namespace;t.setRenderNames(null,Gh(t.name,e))}}})(n,_,p),eE[i](n,r,t,a,o,s,c,l);for(const e of _)e.scope.deconflict(i,u,d)}(this.orderedModules,this.getDependenciesToBeDeconflicted("es"!==e&&"system"!==e,"amd"===e||"umd"===e||"iife"===e,t),this.imports,i,e,t,this.outputOptions.preserveModules,this.outputOptions.externalLiveBindings,this.chunkByModule,n,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setUpChunkImportsAndExportsForModule(e){const t=new Set(e.imports);if(!this.outputOptions.preserveModules&&this.includedNamespaces.has(e)){const r=e.namespace.getMemberVariables();for(const e of Object.keys(r))t.add(r[e])}for(let r of t){r instanceof vv&&(r=r.getOriginalVariable()),r instanceof Sv&&(r=r.getBaseVariable());const t=this.chunkByModule.get(r.module);t!==this&&(this.imports.add(r),!(r instanceof Ev&&this.outputOptions.preserveModules)&&r.module instanceof $x&&(t.exports.add(r),this.checkCircularDependencyImport(r,e)))}(this.includedNamespaces.has(e)||e.info.isEntry&&!1!==e.preserveSignature||e.includedDynamicImporters.some((e=>this.chunkByModule.get(e)!==this)))&&this.ensureReexportsAreAvailableForModule(e);for(const{node:t,resolution:r}of e.dynamicImports)t.included&&r instanceof $x&&this.chunkByModule.get(r)===this&&!this.includedNamespaces.has(r)&&(this.includedNamespaces.add(r),this.ensureReexportsAreAvailableForModule(r))}}const mE=(e,t)=>t?`${e}\n${t}`:e,gE=(e,t)=>t?`${e}\n\n${t}`:e;function hE(e,t,r){const n=new Set([e]);for(const e of n){r.add(e),t.push(e);for(const t of e.dependencies)t instanceof Lv||r.has(t)||n.add(t)}}const yE=(e,t)=>e.execIndex>t.execIndex?1:-1;function vE(e,t,r){const n=Symbol(e.id),i=[fb(e.id)];let a=t;for(e.cycles.add(n);a!==e;)a.cycles.add(n),i.push(fb(a.id)),a=r.get(a);return i.push(i[0]),i.reverse(),i}var bE;function xE(e,t,r){e in t&&r((e=>({code:yb.FILE_NAME_CONFLICT,message:`The emitted file "${e}" overwrites a previously emitted file of the same name.`}))(e)),t[e]=EE}(e=>{e[e.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",e[e.ANALYSE=1]="ANALYSE",e[e.GENERATE=2]="GENERATE"})(bE||(bE={}));const EE={type:"placeholder"};function SE(e,t,r){if(!("string"==typeof e||e instanceof Uint8Array)){const e=t.fileName||t.name||r;return gb(Cb(`Could not set source for ${"string"==typeof e?`asset "${e}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return e}class DE{constructor(e,t,r){this.graph=e,this.options=t,this.facadeChunkByModule=null,this.output=null,this.assertAssetsFinalized=()=>{for(const[t,r]of this.filesByReferenceId.entries())if("asset"===r.type&&"string"!=typeof r.fileName)return gb((e=r.name||t,{code:yb.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${e}" - no asset source set.`}));var e},this.emitFile=e=>(e=>Boolean(e&&("asset"===e.type||"chunk"===e.type)))(e)?(e=>{const t=e.fileName||e.name;return!t||"string"==typeof t&&mb(t)})(e)?"chunk"===e.type?this.emitChunk(e):this.emitAsset(e):gb(Cb(`The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths and do not contain invalid characters, received "${e.fileName||e.name}".`)):gb(Cb(`Emitted files must be of type "asset" or "chunk", received "${e&&e.type}".`)),this.getFileName=e=>{const t=this.filesByReferenceId.get(e);return t?"chunk"===t.type?(r=t,n=this.facadeChunkByModule,r.fileName||r.module&&(null===(i=null==n?void 0:n.get(r.module))||void 0===i?void 0:i.id)||gb((a=r.fileName||r.name,{code:yb.CHUNK_NOT_GENERATED,message:`Plugin error - Unable to get file name for chunk "${a}". Ensure that generate is called first.`}))):function(e,t){return"string"!=typeof e.fileName?gb((r=e.name||t,{code:yb.ASSET_NOT_FINALISED,message:`Plugin error - Unable to get file name for asset "${r}". Ensure that the source is set and that generate is called first.`})):e.fileName;var r}(t,e):gb((o=e,{code:yb.FILE_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown file "${o}".`}));var r,n,i,a,o},this.setAssetSource=(e,t)=>{const r=this.filesByReferenceId.get(e);if(!r)return gb((n=e,{code:yb.ASSET_NOT_FOUND,message:`Plugin error - Unable to set the source for unknown asset "${n}".`}));var n,i;if("asset"!==r.type)return gb(Cb(`Asset sources can only be set for emitted assets but "${e}" is an emitted chunk.`));if(void 0!==r.source)return gb((i=r.name||e,{code:yb.ASSET_SOURCE_ALREADY_SET,message:`Unable to set the source for asset "${i}", source already set.`}));const a=SE(t,r,e);this.output?this.finalizeAsset(r,a,e,this.output):r.source=a},this.setOutputBundle=(e,t,r)=>{this.output={assetFileNames:t,bundle:e},this.facadeChunkByModule=r;for(const e of this.filesByReferenceId.values())e.fileName&&xE(e.fileName,this.output.bundle,this.options.onwarn);for(const[e,t]of this.filesByReferenceId.entries())"asset"===t.type&&void 0!==t.source&&this.finalizeAsset(t,t.source,e,this.output)},this.filesByReferenceId=r?new Map(r.filesByReferenceId):new Map}assignReferenceId(e,t){let r;do{const e=Zx();r?e.update(r):e.update(t),r=e.digest("hex").substr(0,8)}while(this.filesByReferenceId.has(r));return this.filesByReferenceId.set(r,e),r}emitAsset(e){const t=void 0!==e.source?SE(e.source,e,null):void 0,r={fileName:e.fileName,name:e.name,source:t,type:"asset"},n=this.assignReferenceId(r,e.fileName||e.name||e.type);return this.output&&(e.fileName&&xE(e.fileName,this.output.bundle,this.options.onwarn),void 0!==t&&this.finalizeAsset(r,t,n,this.output)),n}emitChunk(e){if(this.graph.phase>bE.LOAD_AND_PARSE)return gb({code:yb.INVALID_ROLLUP_PHASE,message:"Cannot emit chunks after module loading has finished."});if("string"!=typeof e.id)return gb(Cb(`Emitted chunks need to have a valid string id, received "${e.id}"`));const t={fileName:e.fileName,module:null,name:e.name||e.id,type:"chunk"};return this.graph.moduleLoader.emitChunk(e).then((e=>t.module=e)).catch((()=>{})),this.assignReferenceId(t,e.id)}finalizeAsset(e,t,r,n){const i=e.fileName||((e,t)=>{for(const r of Object.keys(e)){const n=e[r];if("asset"===n.type&&TE(t,n.source))return r}return null})(n.bundle,t)||((e,t,r)=>{const n=e||"asset";return dE(uE("function"==typeof r.assetFileNames?r.assetFileNames({name:e,source:t,type:"asset"}):r.assetFileNames,"output.assetFileNames",{hash(){const e=Zx();return e.update(n),e.update(":"),e.update(t),e.digest("hex").substr(0,8)},ext(){return je(n).substr(1)},extname(){return je(n)},name(){return n.substr(0,n.length-je(n).length)}}),r.bundle)})(e.name,t,n),a={...e,source:t,fileName:i};this.filesByReferenceId.set(r,a);const o=this.options;n.bundle[i]={fileName:i,name:e.name,get isAsset(){return Ab('Accessing "isAsset" on files in the bundle is deprecated, please use "type === \'asset\'" instead',!0,o),!0},source:t,type:"asset"}}}function TE(e,t){if("string"==typeof e)return e===t;if("string"==typeof t)return!1;if("equals"in e)return e.equals(t);if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}class CE{constructor(e,t,r,n,i){this.outputOptions=e,this.unsetOptions=t,this.inputOptions=r,this.pluginDriver=n,this.graph=i,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(e){Ux("GENERATE",1);const t=Object.create(null);this.pluginDriver.setOutputBundle(t,this.outputOptions.assetFileNames,this.facadeChunkByModule);try{await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),Ux("generate chunks",2);const e=await this.generateChunks();e.length>1&&(r=this.outputOptions,n=this.inputOptions.onwarn,!("umd"===r.format||"iife"===r.format?gb({code:"INVALID_OPTION",message:"UMD and IIFE output formats are not supported for code-splitting builds."}):"string"==typeof r.file?gb({code:"INVALID_OPTION",message:'When building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option.'}):r.sourcemapFile?gb({code:"INVALID_OPTION",message:'"output.sourcemapFile" is only supported for single-file builds.'}):(!r.amd.autoId&&r.amd.id&&n({code:"INVALID_OPTION",message:'"output.amd.id" is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath".'}),void 0)));const i=(e=>{if(0===e.length)return"/";if(1===e.length)return Be(e[0]);const t=e.slice(1).reduce(((e,t)=>{const r=t.split(/\/+|\\+/);let n;for(n=0;e[n]===r[n]&&n<Math.min(e.length,r.length);n++);return e.slice(0,n)}),e[0].split(/\/+|\\+/));return t.length>1?t.join("/"):"/"})((e=>{const t=[];for(const r of e)for(const e of r.entryModules)Ov(e.id)&&t.push(e.id);return t})(e));Vx("generate chunks",2),Ux("render modules",2);const a=await(async(e,t)=>{try{let[r,n,i,a]=await Promise.all([t.hookReduceValue("banner",e.banner(),[],mE),t.hookReduceValue("footer",e.footer(),[],mE),t.hookReduceValue("intro",e.intro(),[],gE),t.hookReduceValue("outro",e.outro(),[],gE)]);return i&&(i+="\n\n"),a&&(a=`\n\n${a}`),r.length&&(r+="\n"),n.length&&(n="\n"+n),{intro:i,outro:a,banner:r,footer:n}}catch(e){return gb({code:"ADDON_ERROR",message:`Could not retrieve ${e.hook}. Check configuration of plugin ${e.plugin}.\n\tError Message: ${e.message}`})}})(this.outputOptions,this.pluginDriver);this.prerenderChunks(e,i),Vx("render modules",2),await this.addFinalizedChunksToBundle(e,i,a,t)}catch(e){throw await this.pluginDriver.hookParallel("renderError",[e]),e}var r,n;return await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,t,e]),this.finaliseAssets(t),Vx("GENERATE",1),t}async addFinalizedChunksToBundle(e,t,r,n){this.assignChunkIds(e,t,r,n);for(const t of e)n[t.id]=t.getChunkInfoWithFileNames();await Promise.all(e.map((async e=>{const t=n[e.id];Object.assign(t,await e.render(this.outputOptions,r,t))})))}async addManualChunks(e){const t=new Map,r=await Promise.all(Object.keys(e).map((async t=>({alias:t,entries:await this.graph.moduleLoader.addAdditionalModules(e[t])}))));for(const{alias:e,entries:n}of r)for(const r of n)AE(e,r,t);return t}assignChunkIds(e,t,r,n){const i=[],a=[];for(const t of e)(t.facadeModule&&t.facadeModule.isUserDefinedEntryPoint?i:a).push(t);const o=i.concat(a);for(const e of o)this.outputOptions.file?e.id=Le(this.outputOptions.file):this.outputOptions.preserveModules?e.id=e.generateIdPreserveModules(t,this.outputOptions,n,this.unsetOptions):e.id=e.generateId(r,this.outputOptions,n,!0),n[e.id]=EE}assignManualChunks(e){const t=new Map,r={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const n of this.graph.modulesById.values())if(n instanceof $x){const i=e(n.id,r);"string"==typeof i&&AE(i,n,t)}return t}finaliseAssets(e){for(const t of Object.keys(e)){const r=e[t];if(r.type||(Ab('A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.',!0,this.inputOptions),r.type="asset"),this.outputOptions.validate&&"string"==typeof r.code)try{this.graph.contextParse(r.code,{allowHashBang:!0,ecmaVersion:"latest"})}catch(e){this.inputOptions.onwarn(vb(r,e))}}this.pluginDriver.finaliseAssets()}async generateChunks(){const{manualChunks:e}=this.outputOptions,t="object"==typeof e?await this.addManualChunks(e):this.assignManualChunks(e),r=[],n=new Map;for(const{alias:e,modules:i}of this.outputOptions.inlineDynamicImports?[{alias:null,modules:kE(this.graph.modulesById)}]:this.outputOptions.preserveModules?kE(this.graph.modulesById).map((e=>({alias:null,modules:[e]}))):function(e,t){const r=[],n=new Set(t.keys()),i=Object.create(null);for(const[e,r]of t)hE(e,i[r]=i[r]||[],n);for(const[e,t]of Object.entries(i))r.push({alias:e,modules:t});const a=new Map,{dependentEntryPointsByModule:o,dynamicEntryModules:s}=(e=>{const t=new Set,r=new Map,n=new Set(e);for(const e of n){const i=new Set([e]);for(const a of i){Xh(r,a,(()=>new Set)).add(e);for(const e of a.getDependenciesToBeIncluded())e instanceof Lv||i.add(e);for(const{resolution:e}of a.dynamicImports)e instanceof $x&&e.includedDynamicImporters.length>0&&(t.add(e),n.add(e));for(const e of a.implicitlyLoadedBefore)t.add(e),n.add(e)}}return{dependentEntryPointsByModule:r,dynamicEntryModules:t}})(e),c=((e,t)=>{const r=new Map;for(const n of t){const t=Xh(r,n,(()=>new Set));for(const r of[...n.includedDynamicImporters,...n.implicitlyLoadedAfter])for(const n of e.get(r))t.add(n)}return r})(o,s),l=new Set(e);function u(e,t){const r=new Set([e]);for(const i of r){const s=Xh(a,i,(()=>new Set));if(!t||!d(t,o.get(i))){s.add(e);for(const e of i.getDependenciesToBeIncluded())e instanceof Lv||n.has(e)||r.add(e)}}}function d(e,t){const r=new Set(e);for(const e of r)if(!t.has(e)){if(l.has(e))return!1;const t=c.get(e);for(const e of t)r.add(e)}return!0}for(const t of e)n.has(t)||u(t,null);for(const e of s)n.has(e)||u(e,c.get(e));return r.push(...((e,t)=>{const r=Object.create(null);for(const[n,i]of t){let t="";for(const r of e)t+=i.has(r)?"X":"_";const a=r[t];a?a.push(n):r[t]=[n]}return Object.keys(r).map((e=>({alias:null,modules:r[e]})))})([...e,...s],a)),r}(this.graph.entryModules,t)){void i.sort(yE);const t=new fE(i,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,n,this.facadeChunkByModule,this.includedNamespaces,e);r.push(t);for(const e of i)n.set(e,t)}for(const e of r)e.link();const i=[];for(const e of r)i.push(...e.generateFacades());return[...r,...i]}prerenderChunks(e,t){for(const t of e)t.generateExports();for(const r of e)r.preRender(this.outputOptions,t)}}function kE(e){return[...e.values()].filter((e=>e instanceof $x&&(e.isIncluded()||e.info.isEntry||e.includedDynamicImporters.length>0)))}function AE(e,t,r){const n=r.get(t);if("string"==typeof n&&n!==e)return gb((i=t.id,a=e,o=n,{code:yb.INVALID_CHUNK,message:`Cannot assign ${fb(i)} to the "${a}" chunk as it is already in the "${o}" chunk.`}));var i,a,o;r.set(t,e)}var NE={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},wE="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",FE={5:wE,"5module":wE+" export import",6:wE+" const class extends export import super"},PE=/^in(stanceof)?$/,IE="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",OE="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",ME=new RegExp("["+IE+"]"),RE=new RegExp("["+IE+OE+"]");IE=OE=null;var LE=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],BE=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function jE(e,t){for(var r=65536,n=0;n<t.length;n+=2){if((r+=t[n])>e)return!1;if((r+=t[n+1])>=e)return!0}}function UE(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&ME.test(String.fromCharCode(e)):!1!==t&&jE(e,LE)))}function VE(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&RE.test(String.fromCharCode(e)):!1!==t&&(jE(e,LE)||jE(e,BE)))))}var zE=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function KE(e,t){return new zE(e,{beforeExpr:!0,binop:t})}var WE={beforeExpr:!0},HE={startsExpr:!0},JE={};function $E(e,t){return void 0===t&&(t={}),t.keyword=e,JE[e]=new zE(e,t)}var GE={num:new zE("num",HE),regexp:new zE("regexp",HE),string:new zE("string",HE),name:new zE("name",HE),eof:new zE("eof"),bracketL:new zE("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new zE("]"),braceL:new zE("{",{beforeExpr:!0,startsExpr:!0}),braceR:new zE("}"),parenL:new zE("(",{beforeExpr:!0,startsExpr:!0}),parenR:new zE(")"),comma:new zE(",",WE),semi:new zE(";",WE),colon:new zE(":",WE),dot:new zE("."),question:new zE("?",WE),questionDot:new zE("?."),arrow:new zE("=>",WE),template:new zE("template"),invalidTemplate:new zE("invalidTemplate"),ellipsis:new zE("...",WE),backQuote:new zE("`",HE),dollarBraceL:new zE("${",{beforeExpr:!0,startsExpr:!0}),eq:new zE("=",{beforeExpr:!0,isAssign:!0}),assign:new zE("_=",{beforeExpr:!0,isAssign:!0}),incDec:new zE("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new zE("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:KE("||",1),logicalAND:KE("&&",2),bitwiseOR:KE("|",3),bitwiseXOR:KE("^",4),bitwiseAND:KE("&",5),equality:KE("==/!=/===/!==",6),relational:KE("</>/<=/>=",7),bitShift:KE("<</>>/>>>",8),plusMin:new zE("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:KE("%",10),star:KE("*",10),slash:KE("/",10),starstar:new zE("**",{beforeExpr:!0}),coalesce:KE("??",1),_break:$E("break"),_case:$E("case",WE),_catch:$E("catch"),_continue:$E("continue"),_debugger:$E("debugger"),_default:$E("default",WE),_do:$E("do",{isLoop:!0,beforeExpr:!0}),_else:$E("else",WE),_finally:$E("finally"),_for:$E("for",{isLoop:!0}),_function:$E("function",HE),_if:$E("if"),_return:$E("return",WE),_switch:$E("switch"),_throw:$E("throw",WE),_try:$E("try"),_var:$E("var"),_const:$E("const"),_while:$E("while",{isLoop:!0}),_with:$E("with"),_new:$E("new",{beforeExpr:!0,startsExpr:!0}),_this:$E("this",HE),_super:$E("super",HE),_class:$E("class",HE),_extends:$E("extends",WE),_export:$E("export"),_import:$E("import",HE),_null:$E("null",HE),_true:$E("true",HE),_false:$E("false",HE),_in:$E("in",{beforeExpr:!0,binop:7}),_instanceof:$E("instanceof",{beforeExpr:!0,binop:7}),_typeof:$E("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:$E("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:$E("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},qE=/\r\n?|\n|\u2028|\u2029/,XE=new RegExp(qE.source,"g");function YE(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var QE=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ZE=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,eS=Object.prototype,tS=eS.hasOwnProperty,rS=eS.toString;function nS(e,t){return tS.call(e,t)}var iS=Array.isArray||(e=>"[object Array]"===rS.call(e));function aS(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var oS=function(e,t){this.line=e,this.column=t};oS.prototype.offset=function(e){return new oS(this.line,this.column+e)};var sS=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function cS(e,t){for(var r=1,n=0;;){XE.lastIndex=n;var i=XE.exec(e);if(!(i&&i.index<t))return new oS(r,t-n);++r,n=i.index+i[0].length}}var lS={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},uS=!1;function dS(e,t){return 2|(e?4:0)|(t?8:0)}var pS=function(e,t,r){this.options=e=function(e){var t={};for(var r in lS)t[r]=e&&nS(e,r)?e[r]:lS[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!uS&&"object"==typeof console&&console.warn&&(uS=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),iS(t.onToken)){var n=t.onToken;t.onToken=e=>n.push(e)}return iS(t.onComment)&&(t.onComment=function(e,t){return function(r,n,i,a,o,s){var c={type:r?"Block":"Line",value:n,start:i,end:a};e.locations&&(c.loc=new sS(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=aS(FE[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=NE[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=aS(n);var i=(n?n+" ":"")+NE.strict;this.reservedWordsStrict=aS(i),this.reservedWordsStrictBind=aS(i+" "+NE.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(qE).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=GE.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},_S={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},inNonArrowFunction:{configurable:!0}};pS.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},_S.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},_S.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},_S.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},_S.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},_S.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},_S.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},_S.inNonArrowFunction.get=function(){return(2&this.currentThisScope().flags)>0},pS.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},pS.parse=function(e,t){return new this(t,e).parse()},pS.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},pS.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(pS.prototype,_S);var fS=pS.prototype,mS=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function gS(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}fS.strictDirective=function(e){for(;;){ZE.lastIndex=e,e+=ZE.exec(this.input)[0].length;var t=mS.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){ZE.lastIndex=e+t[0].length;var r=ZE.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return";"===i||"}"===i||qE.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(n+1))}e+=t[0].length,ZE.lastIndex=e,e+=ZE.exec(this.input)[0].length,";"===this.input[e]&&e++}},fS.eat=function(e){return this.type===e&&(this.next(),!0)},fS.isContextual=function(e){return this.type===GE.name&&this.value===e&&!this.containsEsc},fS.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},fS.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},fS.canInsertSemicolon=function(){return this.type===GE.eof||this.type===GE.braceR||qE.test(this.input.slice(this.lastTokEnd,this.start))},fS.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},fS.semicolon=function(){this.eat(GE.semi)||this.insertSemicolon()||this.unexpected()},fS.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},fS.expect=function(e){this.eat(e)||this.unexpected()},fS.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},fS.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},fS.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},fS.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},fS.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var hS=pS.prototype;hS.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==GE.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var a=i[n];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var yS={kind:"loop"},vS={kind:"switch"};hS.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ZE.lastIndex=this.pos;var t=ZE.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n)return!0;if(e)return!1;if(123===n)return!0;if(UE(n,!0)){for(var i=r+1;VE(this.input.charCodeAt(i),!0);)++i;var a=this.input.slice(r,i);if(!PE.test(a))return!0}return!1},hS.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ZE.lastIndex=this.pos;var e=ZE.exec(this.input),t=this.pos+e[0].length;return!(qE.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&VE(this.input.charAt(t+8)))},hS.parseStatement=function(e,t,r){var n,i=this.type,a=this.startNode();switch(this.isLet(e)&&(i=GE._var,n="let"),i){case GE._break:case GE._continue:return this.parseBreakContinueStatement(a,i.keyword);case GE._debugger:return this.parseDebuggerStatement(a);case GE._do:return this.parseDoStatement(a);case GE._for:return this.parseForStatement(a);case GE._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case GE._class:return e&&this.unexpected(),this.parseClass(a,!0);case GE._if:return this.parseIfStatement(a);case GE._return:return this.parseReturnStatement(a);case GE._switch:return this.parseSwitchStatement(a);case GE._throw:return this.parseThrowStatement(a);case GE._try:return this.parseTryStatement(a);case GE._const:case GE._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(a,n);case GE._while:return this.parseWhileStatement(a);case GE._with:return this.parseWithStatement(a);case GE.braceL:return this.parseBlock(!0,a);case GE.semi:return this.parseEmptyStatement(a);case GE._export:case GE._import:if(this.options.ecmaVersion>10&&i===GE._import){ZE.lastIndex=this.pos;var o=ZE.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(40===c||46===c)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===GE._import?this.parseImport(a):this.parseExport(a,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var l=this.value,u=this.parseExpression();return i===GE.name&&"Identifier"===u.type&&this.eat(GE.colon)?this.parseLabeledStatement(a,l,u,e):this.parseExpressionStatement(a,u)}},hS.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(GE.semi)||this.insertSemicolon()?e.label=null:this.type!==GE.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(r||"loop"===i.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},hS.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},hS.parseDoStatement=function(e){return this.next(),this.labels.push(yS),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(GE._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(GE.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},hS.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(yS),this.enterScope(0),this.expect(GE.parenL),this.type===GE.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===GE._var||this.type===GE._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===GE._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===GE._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var a=new gS,o=this.parseExpression(!0,a);return this.type===GE._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===GE._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLValPattern(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},hS.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,xS|(r?0:ES),!1,t)},hS.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(GE._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},hS.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(GE.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},hS.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(GE.braceL),this.labels.push(vS),this.enterScope(0);for(var r=!1;this.type!==GE.braceR;)if(this.type===GE._case||this.type===GE._default){var n=this.type===GE._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(GE.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},hS.parseThrowStatement=function(e){return this.next(),qE.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var bS=[];hS.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===GE._catch){var t=this.startNode();if(this.next(),this.eat(GE.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?32:0),this.checkLValPattern(t.param,r?4:2),this.expect(GE.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(GE._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},hS.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},hS.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(yS),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},hS.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},hS.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},hS.parseLabeledStatement=function(e,t,r,n){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(r.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===GE._switch?"switch":null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},hS.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},hS.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(GE.braceL),e&&this.enterScope(0);this.type!==GE.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},hS.parseFor=function(e,t){return e.init=t,this.expect(GE.semi),e.test=this.type===GE.semi?null:this.parseExpression(),this.expect(GE.semi),e.update=this.type===GE.parenR?null:this.parseExpression(),this.expect(GE.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},hS.parseForIn=function(e,t){var r=this.type===GE._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(GE.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},hS.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(GE.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===GE._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===GE._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(GE.comma))break}return e},hS.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var xS=1,ES=2;hS.parseFunction=function(e,t,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===GE.star&&t&ES&&this.unexpected(),e.generator=this.eat(GE.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&xS&&(e.id=4&t&&this.type!==GE.name?null:this.parseIdent(),!e.id||t&ES||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(dS(e.async,e.generator)),t&xS||(e.id=this.type===GE.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&xS?"FunctionDeclaration":"FunctionExpression")},hS.parseFunctionParams=function(e){this.expect(GE.parenL),e.params=this.parseBindingList(GE.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},hS.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),i=!1;for(n.body=[],this.expect(GE.braceL);this.type!==GE.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(n.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind&&(i&&this.raise(a.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},hS.parseClassElement=function(e){var t=this;if(this.eat(GE.semi))return null;var r=this.startNode(),n=(e,n)=>{void 0===n&&(n=!1);var i=t.start,a=t.startLoc;return!(!t.eatContextual(e)||(t.type===GE.parenL||n&&t.canInsertSemicolon())&&(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(i,a),r.key.name=e,t.finishNode(r.key,"Identifier"),1))};r.kind="method",r.static=n("static");var i=this.eat(GE.star),a=!1;i||(this.options.ecmaVersion>=8&&n("async",!0)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(GE.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var o=r.key,s=!1;return r.computed||r.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?r.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==r.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),a&&this.raise(o.start,"Constructor can't be an async method"),r.kind="constructor",s=e),this.parseClassMethod(r,i,a,s),"get"===r.kind&&0!==r.value.params.length&&this.raiseRecoverable(r.value.start,"getter should have no params"),"set"===r.kind&&1!==r.value.params.length&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),"set"===r.kind&&"RestElement"===r.value.params[0].type&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r},hS.parseClassMethod=function(e,t,r,n){return e.value=this.parseMethod(t,r,n),this.finishNode(e,"MethodDefinition")},hS.parseClassId=function(e,t){this.type===GE.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},hS.parseClassSuper=function(e){e.superClass=this.eat(GE._extends)?this.parseExprSubscripts():null},hS.parseExport=function(e,t){if(this.next(),this.eat(GE.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==GE.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(GE._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===GE._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,4|xS,!1,r)}else if(this.type===GE._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==GE.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},hS.checkExport=function(e,t,r){e&&(nS(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},hS.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===r)for(var n=0,i=t.properties;n<i.length;n+=1){var a=i[n];this.checkPatternExport(e,a)}else if("ArrayPattern"===r)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},hS.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var i=n[r];this.checkPatternExport(e,i.id)}},hS.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},hS.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(GE.braceL);!this.eat(GE.braceR);){if(r)r=!1;else if(this.expect(GE.comma),this.afterTrailingComma(GE.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(e,n.exported.name,n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},hS.parseImport=function(e){return this.next(),this.type===GE.string?(e.specifiers=bS,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===GE.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},hS.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===GE.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(GE.comma))return e}if(this.type===GE.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportNamespaceSpecifier")),e}for(this.expect(GE.braceL);!this.eat(GE.braceR);){if(t)t=!1;else if(this.expect(GE.comma),this.afterTrailingComma(GE.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},hS.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},hS.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var SS=pS.prototype;SS.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];this.toAssignable(a,t),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},SS.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var i=e[n];i&&this.toAssignable(i,t)}if(r){var a=e[r-1];6===this.options.ecmaVersion&&t&&a&&"RestElement"===a.type&&"Identifier"!==a.argument.type&&this.unexpected(a.argument.start)}return e},SS.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},SS.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==GE.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},SS.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case GE.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(GE.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case GE.braceL:return this.parseObj(!0)}return this.parseIdent()},SS.parseBindingList=function(e,t,r){for(var n=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(GE.comma),t&&this.type===GE.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===GE.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),n.push(a),this.type===GE.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),n.push(o)}return n},SS.parseBindingListItem=e=>e,SS.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(GE.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},SS.checkLValSimple=function(e,t,r){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(nS(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},SS.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];this.checkLValInnerPattern(a,t,r)}break;case"ArrayPattern":for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,r)}break;default:this.checkLValSimple(e,t,r)}},SS.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var DS=pS.prototype;DS.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,i=e.key;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)return"__proto__"===n&&"init"===a&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0),void 0;var o=t[n="$"+n];o?("init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,"Redefinition of property"):o=t[n]={init:!1,get:!1,set:!1},o[a]=!0}},DS.parseExpression=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===GE.comma){var a=this.startNodeAt(r,n);for(a.expressions=[i];this.eat(GE.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i},DS.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,i=-1,a=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new gS,n=!0);var o=this.start,s=this.startLoc;this.type!==GE.parenL&&this.type!==GE.name||(this.potentialArrowAt=this.start);var c=this.parseMaybeConditional(e,t);if(r&&(c=r.call(this,c,o,s)),this.type.isAssign){var l=this.startNodeAt(o,s);return l.operator=this.value,this.type===GE.eq&&(c=this.toAssignable(c,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===GE.eq?this.checkLValPattern(c):this.checkLValSimple(c),l.left=c,this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),c},DS.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(GE.question)){var a=this.startNodeAt(r,n);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(GE.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},DS.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||i.start===r&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,r,n,-1,e)},DS.parseExprOp=function(e,t,r,n,i){var a=this.type.binop;if(null!=a&&(!i||this.type!==GE._in)&&a>n){var o=this.type===GE.logicalOR||this.type===GE.logicalAND,s=this.type===GE.coalesce;s&&(a=GE.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1),l,u,a,i),p=this.buildBinary(t,r,e,d,c,o||s);return(o&&this.type===GE.coalesce||s&&(this.type===GE.logicalOR||this.type===GE.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,r,n,i)}return e},DS.buildBinary=function(e,t,r,n,i,a){var o=this.startNodeAt(e,t);return o.left=r,o.operator=i,o.right=n,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")},DS.parseMaybeUnary=function(e,t){var r,n=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))r=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===GE.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):t=!0,r=this.finishNode(a,o?"UpdateExpression":"UnaryExpression")}else{if(r=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(n,i);s.operator=this.value,s.prefix=!1,s.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(GE.starstar)?this.buildBinary(n,i,r,this.parseMaybeUnary(null,!1),"**",!1):r},DS.parseExprSubscripts=function(e){var t=this.start,r=this.startLoc,n=this.parseExprAtom(e);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return n;var i=this.parseSubscripts(n,t,r);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i},DS.parseSubscripts=function(e,t,r,n){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,r,n,i,a);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var s=this.startNodeAt(t,r);s.expression=o,o=this.finishNode(s,"ChainExpression")}return o}e=o}},DS.parseSubscript=function(e,t,r,n,i,a){var o=this.options.ecmaVersion>=11,s=o&&this.eat(GE.questionDot);n&&s&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(GE.bracketL);if(c||s&&this.type!==GE.parenL&&this.type!==GE.backQuote||this.eat(GE.dot)){var l=this.startNodeAt(t,r);l.object=e,l.property=c?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),l.computed=!!c,c&&this.expect(GE.bracketR),o&&(l.optional=s),e=this.finishNode(l,"MemberExpression")}else if(!n&&this.eat(GE.parenL)){var u=new gS,d=this.yieldPos,p=this.awaitPos,_=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(GE.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!s&&!this.canInsertSemicolon()&&this.eat(GE.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=p,this.awaitIdentPos=_,this.parseArrowExpression(this.startNodeAt(t,r),f,!0);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=_||this.awaitIdentPos;var m=this.startNodeAt(t,r);m.callee=e,m.arguments=f,o&&(m.optional=s),e=this.finishNode(m,"CallExpression")}else if(this.type===GE.backQuote){(s||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(t,r);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,"TaggedTemplateExpression")}return e},DS.parseExprAtom=function(e){this.type===GE.slash&&this.readRegexp();var t,r=this.potentialArrowAt===this.start;switch(this.type){case GE._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==GE.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==GE.dot&&this.type!==GE.bracketL&&this.type!==GE.parenL&&this.unexpected(),this.finishNode(t,"Super");case GE._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case GE.name:var n=this.start,i=this.startLoc,a=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(GE._function))return this.parseFunction(this.startNodeAt(n,i),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(GE.arrow))return this.parseArrowExpression(this.startNodeAt(n,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===GE.name&&!a)return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(GE.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,i),[o],!0)}return o;case GE.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case GE.num:case GE.string:return this.parseLiteral(this.value);case GE._null:case GE._true:case GE._false:return(t=this.startNode()).value=this.type===GE._null?null:this.type===GE._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case GE.parenL:var c=this.start,l=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),l;case GE.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(GE.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case GE.braceL:return this.parseObj(!1,e);case GE._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case GE._class:return this.parseClass(this.startNode(),!1);case GE._new:return this.parseNew();case GE.backQuote:return this.parseTemplate();case GE._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},DS.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case GE.parenL:return this.parseDynamicImport(e);case GE.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},DS.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(GE.parenR)){var t=this.start;this.eat(GE.comma)&&this.eat(GE.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},DS.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},DS.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},DS.parseParenExpression=function(){this.expect(GE.parenL);var e=this.parseExpression();return this.expect(GE.parenR),e},DS.parseParenAndDistinguishExpression=function(e){var t,r=this.start,n=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new gS,p=this.yieldPos,_=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==GE.parenR;){if(l?l=!1:this.expect(GE.comma),i&&this.afterTrailingComma(GE.parenR,!0)){u=!0;break}if(this.type===GE.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===GE.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(GE.parenR),e&&!this.canInsertSemicolon()&&this.eat(GE.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=_,this.parseParenArrowList(r,n,c);c.length&&!u||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=_||this.awaitPos,c.length>1?((t=this.startNodeAt(o,s)).expressions=c,this.finishNodeAt(t,"SequenceExpression",f,m)):t=c[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(r,n);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},DS.parseParenItem=e=>e,DS.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var TS=[];DS.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(GE.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var n=this.start,i=this.startLoc,a=this.type===GE._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,i,!0),a&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(GE.parenL)?e.arguments=this.parseExprList(GE.parenR,this.options.ecmaVersion>=8,!1):e.arguments=TS,this.finishNode(e,"NewExpression")},DS.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===GE.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===GE.backQuote,this.finishNode(r,"TemplateElement")},DS.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===GE.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(GE.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(GE.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},DS.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===GE.name||this.type===GE.num||this.type===GE.string||this.type===GE.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===GE.star)&&!qE.test(this.input.slice(this.lastTokEnd,this.start))},DS.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(GE.braceR);){if(n)n=!1;else if(this.expect(GE.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(GE.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),r.properties.push(a)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},DS.parseProperty=function(e,t){var r,n,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(GE.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===GE.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===GE.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===GE.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(r=this.eat(GE.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(o)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(GE.star),this.parsePropertyName(o,t)):n=!1,this.parsePropertyValue(o,e,r,n,i,a,t,s),this.finishNode(o,"Property")},DS.parsePropertyValue=function(e,t,r,n,i,a,o,s){if((r||n)&&this.type===GE.colon&&this.unexpected(),this.eat(GE.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===GE.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===GE.comma||this.type===GE.braceR||this.type===GE.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===GE.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c="get"===e.kind?0:1;if(e.value.params.length!==c){var l=e.value.start;"get"===e.kind?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},DS.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(GE.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(GE.bracketR),e.key;e.computed=!1}return e.key=this.type===GE.num||this.type===GE.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},DS.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},DS.parseMethod=function(e,t,r){var n=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|dS(t,n.generator)|(r?128:0)),this.expect(GE.parenL),n.params=this.parseBindingList(GE.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(n,"FunctionExpression")},DS.parseArrowExpression=function(e,t,r){var n=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|dS(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=n,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},DS.parseFunctionBody=function(e,t,r){var n=t&&this.type!==GE.braceL,i=this.strict,a=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var s=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!i&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=s}this.exitScope()},DS.isSimpleParamList=e=>{for(var t=0,r=e;t<r.length;t+=1)if("Identifier"!==r[t].type)return!1;return!0},DS.checkParams=function(e,t){for(var r=Object.create(null),n=0,i=e.params;n<i.length;n+=1){var a=i[n];this.checkLValInnerPattern(a,1,t?null:r)}},DS.parseExprList=function(e,t,r,n){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(GE.comma),t&&this.afterTrailingComma(e))break;var o=void 0;r&&this.type===GE.comma?o=null:this.type===GE.ellipsis?(o=this.parseSpread(n),n&&this.type===GE.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):o=this.parseMaybeAssign(!1,n),i.push(o)}return i},DS.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,r).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},DS.parseIdent=function(e,t){var r=this.startNode();return this.type===GE.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,"class"!==r.name&&"function"!==r.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),"await"!==r.name||this.awaitIdentPos||(this.awaitIdentPos=r.start)),r},DS.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===GE.semi||this.canInsertSemicolon()||this.type!==GE.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(GE.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},DS.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0),this.finishNode(e,"AwaitExpression")};var CS=pS.prototype;CS.raise=function(e,t){var r=cS(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},CS.raiseRecoverable=CS.raise,CS.curPosition=function(){if(this.options.locations)return new oS(this.curLine,this.pos-this.lineStart)};var kS=pS.prototype,AS=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};kS.enterScope=function(e){this.scopeStack.push(new AS(e))},kS.exitScope=function(){this.scopeStack.pop()},kS.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},kS.declareName=function(e,t,r){var n=!1;if(2===t){var i=this.currentScope();n=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var a=this.currentScope();n=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){n=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],3&s.flags)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},kS.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},kS.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},kS.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags)return t}},kS.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags&&!(16&t.flags))return t}};var NS=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new sS(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},wS=pS.prototype;function FS(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}wS.startNode=function(){return new NS(this,this.start,this.startLoc)},wS.startNodeAt=function(e,t){return new NS(this,e,t)},wS.finishNode=function(e,t){return FS.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},wS.finishNodeAt=function(e,t,r,n){return FS.call(this,e,t,r,n)},wS.copyNode=function(e){var t=new NS(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var PS=function(e,t,r,n,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!i},IS={b_stat:new PS("{",!1),b_expr:new PS("{",!0),b_tmpl:new PS("${",!1),p_stat:new PS("(",!1),p_expr:new PS("(",!0),q_tmpl:new PS("`",!0,!0,(e=>e.tryReadTemplateToken())),f_stat:new PS("function",!1),f_expr:new PS("function",!0),f_expr_gen:new PS("function",!0,!1,null,!0),f_gen:new PS("function",!1,!1,null,!0)},OS=pS.prototype;OS.initialContext=()=>[IS.b_stat],OS.braceIsBlock=function(e){var t=this.curContext();return t===IS.f_expr||t===IS.f_stat||(e!==GE.colon||t!==IS.b_stat&&t!==IS.b_expr?e===GE._return||e===GE.name&&this.exprAllowed?qE.test(this.input.slice(this.lastTokEnd,this.start)):e===GE._else||e===GE.semi||e===GE.eof||e===GE.parenR||e===GE.arrow||(e===GE.braceL?t===IS.b_stat:e!==GE._var&&e!==GE._const&&e!==GE.name&&!this.exprAllowed):!t.isExpr)},OS.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},OS.updateContext=function(e){var t,r=this.type;r.keyword&&e===GE.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},GE.parenR.updateContext=GE.braceR.updateContext=function(){if(1===this.context.length)return this.exprAllowed=!0,void 0;var e=this.context.pop();e===IS.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},GE.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?IS.b_stat:IS.b_expr),this.exprAllowed=!0},GE.dollarBraceL.updateContext=function(){this.context.push(IS.b_tmpl),this.exprAllowed=!0},GE.parenL.updateContext=function(e){var t=e===GE._if||e===GE._for||e===GE._with||e===GE._while;this.context.push(t?IS.p_stat:IS.p_expr),this.exprAllowed=!0},GE.incDec.updateContext=()=>{},GE._function.updateContext=GE._class.updateContext=function(e){!e.beforeExpr||e===GE._else||e===GE.semi&&this.curContext()!==IS.p_stat||e===GE._return&&qE.test(this.input.slice(this.lastTokEnd,this.start))||(e===GE.colon||e===GE.braceL)&&this.curContext()===IS.b_stat?this.context.push(IS.f_stat):this.context.push(IS.f_expr),this.exprAllowed=!1},GE.backQuote.updateContext=function(){this.curContext()===IS.q_tmpl?this.context.pop():this.context.push(IS.q_tmpl),this.exprAllowed=!1},GE.star.updateContext=function(e){if(e===GE._function){var t=this.context.length-1;this.context[t]===IS.f_expr?this.context[t]=IS.f_expr_gen:this.context[t]=IS.f_gen}this.exprAllowed=!0},GE.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==GE.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var MS="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",RS=MS+" Extended_Pictographic",LS={9:MS,10:RS,11:RS,12:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic EBase EComp EMod EPres ExtPict"},BS="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",jS="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",US=jS+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",VS={9:jS,10:US,11:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",12:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"},zS={};function KS(e){var t=zS[e]={binary:aS(LS[e]+" "+BS),nonBinary:{General_Category:aS(BS),Script:aS(VS[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}KS(9),KS(10),KS(11),KS(12);var WS=pS.prototype,HS=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=zS[e.options.ecmaVersion>=12?12:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function JS(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function $S(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function GS(e){return e>=65&&e<=90||e>=97&&e<=122}function qS(e){return GS(e)||95===e}function XS(e){return qS(e)||YS(e)}function YS(e){return e>=48&&e<=57}function QS(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ZS(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function eD(e){return e>=48&&e<=55}HS.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},HS.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},HS.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var i=r.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=n)return i;var a=r.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},HS.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var i,a=r.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=n||(i=r.charCodeAt(e+1))<56320||i>57343?e+1:e+2},HS.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},HS.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},HS.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},HS.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},WS.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var i=r.charAt(n);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(i,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},WS.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},WS.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];-1===e.groupNames.indexOf(n)&&e.raise("Invalid named capture referenced")}},WS.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},WS.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},WS.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},WS.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},WS.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},WS.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},WS.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},WS.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},WS.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},WS.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},WS.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},WS.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},WS.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},WS.regexp_eatSyntaxCharacter=e=>{var t=e.current();return!!$S(t)&&(e.lastIntValue=t,e.advance(),!0)},WS.regexp_eatPatternCharacters=e=>{for(var t=e.pos,r=0;-1!==(r=e.current())&&!$S(r);)e.advance();return e.pos!==t},WS.regexp_eatExtendedPatternCharacter=e=>{var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},WS.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue),void 0;e.raise("Invalid group")}},WS.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},WS.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=JS(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=JS(e.lastIntValue);return!0}return!1},WS.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),(e=>UE(e,!0)||36===e||95===e)(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},WS.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),(e=>VE(e,!0)||36===e||95===e||8204===e||8205===e)(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},WS.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},WS.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},WS.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},WS.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},WS.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},WS.regexp_eatZero=e=>48===e.current()&&!YS(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0),WS.regexp_eatControlEscape=e=>{var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},WS.regexp_eatControlLetter=e=>{var t=e.current();return!!GS(t)&&(e.lastIntValue=t%32,e.advance(),!0)},WS.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r,n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(i&&a>=55296&&a<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(a-55296)+(s-56320)+65536,!0}e.pos=o,e.lastIntValue=a}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(r=e.lastIntValue)>=0&&r<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1},WS.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},WS.regexp_eatDecimalEscape=e=>{e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},WS.regexp_eatCharacterClassEscape=function(e){var t=e.current();if((e=>100===e||68===e||115===e||83===e||119===e||87===e)(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},WS.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},WS.regexp_validateUnicodePropertyNameAndValue=(e,t,r)=>{nS(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},WS.regexp_validateUnicodePropertyNameOrValue=(e,t)=>{e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},WS.regexp_eatUnicodePropertyName=e=>{var t=0;for(e.lastStringValue="";qS(t=e.current());)e.lastStringValue+=JS(t),e.advance();return""!==e.lastStringValue},WS.regexp_eatUnicodePropertyValue=e=>{var t=0;for(e.lastStringValue="";XS(t=e.current());)e.lastStringValue+=JS(t),e.advance();return""!==e.lastStringValue},WS.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},WS.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},WS.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},WS.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||eD(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},WS.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},WS.regexp_eatClassControlLetter=e=>{var t=e.current();return!(!YS(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},WS.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},WS.regexp_eatDecimalDigits=e=>{var t=e.pos,r=0;for(e.lastIntValue=0;YS(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},WS.regexp_eatHexDigits=e=>{var t=e.pos,r=0;for(e.lastIntValue=0;QS(r=e.current());)e.lastIntValue=16*e.lastIntValue+ZS(r),e.advance();return e.pos!==t},WS.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},WS.regexp_eatOctalDigit=e=>{var t=e.current();return eD(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},WS.regexp_eatFixedHexDigits=(e,t)=>{var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var i=e.current();if(!QS(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+ZS(i),e.advance()}return!0};var tD=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new sS(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},rD=pS.prototype;function nD(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function iD(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}rD.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new tD(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},rD.getToken=function(){return this.next(),new tD(this)},"undefined"!=typeof Symbol&&(rD[Symbol.iterator]=function(){var e=this;return{next(){var t=e.getToken();return{done:t.type===GE.eof,value:t}}}}),rD.curContext=function(){return this.context[this.context.length-1]},rD.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(GE.eof):e.override?e.override(this):(this.readToken(this.fullCharCodeAtPos()),void 0)},rD.readToken=function(e){return UE(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},rD.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},rD.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),r=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(XE.lastIndex=r;(e=XE.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,n),r,this.pos,t,this.curPosition())},rD.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!YE(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},rD.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&QE.test(String.fromCharCode(e))))break e;++this.pos}}},rD.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},rD.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(GE.ellipsis)):(++this.pos,this.finishToken(GE.dot))},rD.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(GE.assign,2):this.finishOp(GE.slash,1)},rD.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?GE.star:GE.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=GE.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(GE.assign,r+1):this.finishOp(n,r)},rD.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(GE.assign,3):this.finishOp(124===e?GE.logicalOR:GE.logicalAND,2):61===t?this.finishOp(GE.assign,2):this.finishOp(124===e?GE.bitwiseOR:GE.bitwiseAND,1)},rD.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(GE.assign,2):this.finishOp(GE.bitwiseXOR,1)},rD.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!qE.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(GE.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(GE.assign,2):this.finishOp(GE.plusMin,1)},rD.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(GE.assign,r+1):this.finishOp(GE.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(GE.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},rD.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(GE.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(GE.arrow)):this.finishOp(61===e?GE.eq:GE.prefix,1)},rD.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(GE.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(GE.assign,3):this.finishOp(GE.coalesce,2)}return this.finishOp(GE.question,1)},rD.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(GE.parenL);case 41:return++this.pos,this.finishToken(GE.parenR);case 59:return++this.pos,this.finishToken(GE.semi);case 44:return++this.pos,this.finishToken(GE.comma);case 91:return++this.pos,this.finishToken(GE.bracketL);case 93:return++this.pos,this.finishToken(GE.bracketR);case 123:return++this.pos,this.finishToken(GE.braceL);case 125:return++this.pos,this.finishToken(GE.braceR);case 58:return++this.pos,this.finishToken(GE.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(GE.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(GE.prefix,1)}this.raise(this.pos,"Unexpected character '"+iD(e)+"'")},rD.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},rD.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(qE.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new HS(this));s.reset(r,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch(e){}return this.finishToken(GE.regexp,{pattern:i,flags:o,value:c})},rD.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,i=r&&48===this.input.charCodeAt(this.pos),a=this.pos,o=0,s=0,c=0,l=null==t?1/0:t;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(n&&95===u)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===s&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),s=u;else{if((d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;s=u,o=o*e+d}}return n&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:o},rD.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=nD(this.input.slice(t,this.pos)),++this.pos):UE(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(GE.num,r)},rD.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var i=nD(this.input.slice(t,this.pos));return++this.pos,UE(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(GE.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),UE(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,o=(a=this.input.slice(t,this.pos),r?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(GE.num,o)},rD.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},rD.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(YE(n,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(GE.string,t)};var aD={};rD.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==aD)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},rD.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw aD;this.raise(e,t)},rD.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==GE.template&&this.type!==GE.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(GE.template,e)):36===r?(this.pos+=2,this.finishToken(GE.dollarBraceL)):(++this.pos,this.finishToken(GE.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(YE(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},rD.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(GE.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},rD.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return iD(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return YE(t)?"":String.fromCharCode(t)}},rD.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},rD.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(VE(i,n))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var a=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?UE:VE)(o,n)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=iD(o),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},rD.readWord=function(){var e=this.readWord1(),t=GE.name;return this.keywords.test(e)&&(t=JE[e]),this.finishToken(t,e)};var oD="8.0.5";pS.acorn={Parser:pS,version:oD,defaultOptions:lS,Position:oS,SourceLocation:sS,getLineInfo:cS,Node:NS,TokenType:zE,tokTypes:GE,keywordTypes:JE,TokContext:PS,tokContexts:IS,isIdentifierChar:VE,isIdentifierStart:UE,Token:tD,isNewLine:YE,lineBreak:qE,lineBreakG:XE,nonASCIIwhitespace:QE};var sD={__proto__:null,Node:NS,Parser:pS,Position:oS,SourceLocation:sS,TokContext:PS,Token:tD,TokenType:zE,defaultOptions:lS,getLineInfo:cS,isIdentifierChar:VE,isIdentifierStart:UE,isNewLine:YE,keywordTypes:JE,lineBreak:qE,lineBreakG:XE,nonASCIIwhitespace:QE,parse:(e,t)=>pS.parse(e,t),parseExpressionAt:(e,t,r)=>pS.parseExpressionAt(e,t,r),tokContexts:IS,tokTypes:GE,tokenizer:(e,t)=>pS.tokenizer(e,t),version:oD};class cD extends Ly{constructor(){super(),this.variables.set("undefined",new yv)}findVariable(e){let t=this.variables.get(e);return t||(t=new pv(e),this.variables.set(e,t)),t}}function lD(e){const t=Be(e);try{Wt(t)}catch(e){lD(t);try{Kt(t)}catch(e){if("EEXIST"!==e.code)throw e}}}function uD(e,t){return new Promise(((r,n)=>{lD(e),Zt(e,t,(e=>{e?n(e):r()}))}))}async function dD(e,t,r,n,i,a,o){const s=await((e,t,r,n,i,a)=>{let o=null,s=null;if(i){o=new Set;for(const r of i)e===r.source&&t===r.importer&&o.add(r.plugin);s=(e,t)=>({...e,resolve(e,r,{custom:a,skipSelf:o}=Qy){return n(e,r,a,o?[...i,{importer:r,plugin:t,source:e}]:i)}})}return r.hookFirst("resolveId",[e,t,{custom:a}],s,o)})(e,t,n,i,a,o);return null!=s?s:void 0===t||Ov(e)||"."===e[0]?((e,t)=>{let r=pD(e,t);return r||(r=pD(e+".mjs",t),r||(r=pD(e+".js",t),r))})(t?He(Be(t),e):He(e),r):null}function pD(e,t){try{const r=Xt(e);if(!t&&r.isSymbolicLink())return pD(Gt(e),t);if(t&&r.isSymbolicLink()||r.isFile()){const t=Le(e);if(-1!==Wt(Be(e)).indexOf(t))return e}}catch(e){}}const _D="at position ",fD="at output position ";function mD(e,t,{hook:r,id:n}={}){return"string"==typeof e&&(e={message:e}),e.code&&e.code!==yb.PLUGIN_ERROR&&(e.pluginCode=e.code),e.code=yb.PLUGIN_ERROR,e.plugin=t,r&&(e.hook=r),n&&(e.id=n),gb(e)}const gD=[{active:!0,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}],hD={has(){return!1},get(){},set(){},delete(){return!1}};function yD(e){return e.startsWith(_D)||e.startsWith(fD)?gb({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):gb({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${e} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}class vD{constructor(e,t,r,n){this.graph=e,this.modulesById=t,this.options=r,this.pluginDriver=n,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.nextEntryModuleIndex=0,this.resolveId=async(e,t,r,n=null)=>this.addDefaultsToResolvedId(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(e,t,!1)&&await dD(e,t,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,n,r),t,e)),this.hasModuleSideEffects=r.treeshake?r.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(e){const t=this.extendLoadModulesPromise(Promise.all(e.map((e=>this.loadEntryModule(e,!1,void 0,null)))));return await this.awaitLoadModulesPromise(),t}async addEntryModules(e,t){const r=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=e.length;const n=await this.extendLoadModulesPromise(Promise.all(e.map((({id:e,importer:t})=>this.loadEntryModule(e,!0,t,null)))).then((n=>{let i=r;for(let r=0;r<n.length;r++){const a=n[r];a.isUserDefinedEntryPoint=a.isUserDefinedEntryPoint||t,xD(a,e[r],t);const o=this.indexedEntryModules.find((e=>e.module===a));o?o.index=Math.min(o.index,i):this.indexedEntryModules.push({module:a,index:i}),i++}return this.indexedEntryModules.sort((({index:e},{index:t})=>e>t?1:-1)),n})));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map((({module:e})=>e)),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:n}}async emitChunk({fileName:e,id:t,importer:r,name:n,implicitlyLoadedAfterOneOf:i,preserveSignature:a}){const o={fileName:e||null,id:t,importer:r,name:n||null},s=i?await this.addEntryWithImplicitDependants(o,i):(await this.addEntryModules([o],!1)).newEntryModules[0];return null!=a&&(s.preserveSignature=a),s}addDefaultsToResolvedId(e){var t,r;if(!e)return null;const n=e.external||!1;return{external:n,id:e.id,meta:e.meta||Zy,moduleSideEffects:null!==(t=e.moduleSideEffects)&&void 0!==t?t:this.hasModuleSideEffects(e.id,n),syntheticNamedExports:null!==(r=e.syntheticNamedExports)&&void 0!==r&&r}}addEntryWithImplicitDependants(e,t){return this.extendLoadModulesPromise(this.loadEntryModule(e.id,!1,e.importer,null).then((async r=>{if(xD(r,e,!1),!r.info.isEntry){this.implicitEntryModules.add(r);const n=await Promise.all(t.map((t=>this.loadEntryModule(t,!1,e.importer,r.id))));for(const e of n)r.implicitlyLoadedAfter.add(e);for(const e of r.implicitlyLoadedAfter)e.implicitlyLoadedBefore.add(r)}return r})))}async addModuleSource(e,t,r){var n;let i;Ux("load modules",3);try{i=null!==(n=await this.pluginDriver.hookFirst("load",[e]))&&void 0!==n?n:await(a=e,new Promise(((e,t)=>Ht(a,"utf-8",((r,n)=>r?t(r):e(n))))))}catch(r){Vx("load modules",3);let n=`Could not load ${e}`;throw t&&(n+=` (imported by ${fb(t)})`),n+=`: ${r.message}`,r.message=n,r}var a;Vx("load modules",3);const o="string"==typeof i?{code:i}:"object"==typeof i&&"string"==typeof i.code?i:gb((e=>({code:yb.BAD_LOADER,message:`Error loading ${fb(e)}: plugin load hook should return a string, a { code, map } object, or nothing/null`}))(e)),s=this.graph.cachedModules.get(e);if(s&&!s.customTransformCache&&s.originalCode===o.code){if(s.transformFiles)for(const e of s.transformFiles)this.pluginDriver.emitFile(e);r.setSource(s)}else r.updateOptions(o),r.setSource(await function(e,t,r,n){const i=t.id,a=[];let o=null===e.map?null:lE(e.map);const s=e.code;let c=e.ast;const l=[],u=[];let d=!1;const p=()=>d=!0;let _;const f=e.code;return r.hookReduceArg0("transform",[f,i],((e,r,i)=>{let o,s;if("string"==typeof r)o=r;else{if(!r||"object"!=typeof r)return e;if(t.updateOptions(r),null==r.code)return(r.map||r.ast)&&n((l=i.name,{code:yb.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE,message:`The plugin "${l}" returned a "map" or "ast" without returning a "code". This will be ignored.`})),e;({code:o,map:s,ast:c}=r)}var l;return null!==s&&a.push(lE("string"==typeof s?JSON.parse(s):s)||{missing:!0,plugin:i.name}),o}),((e,t)=>{return _=t,{...e,cache:d?e.cache:(c=e.cache,m=p,{has(e){return m(),c.has(e)},get(e){return m(),c.get(e)},set(e,t){return m(),c.set(e,t)},delete(e){return m(),c.delete(e)}}),warn(t,r){"string"==typeof t&&(t={message:t}),r&&hb(t,r,f,i),t.id=i,t.hook="transform",e.warn(t)},error:(t,r)=>("string"==typeof t&&(t={message:t}),r&&hb(t,r,f,i),t.id=i,t.hook="transform",e.error(t)),emitAsset:(t,r)=>(u.push({type:"asset",name:t,source:r}),e.emitAsset(t,r)),emitChunk:(t,r)=>(u.push({type:"chunk",id:t,name:r&&r.name}),e.emitChunk(t,r)),emitFile:e=>(u.push(e),r.emitFile(e)),addWatchFile(t){l.push(t),e.addWatchFile(t)},setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},getCombinedSourcemap(){const e=((e,t,r,n,i)=>n.length?{version:3,...Qx(e,t,r,n,Yx(i)).traceMappings()}:r)(i,s,o,a,n);return e?(o!==e&&(o=e,a.length=0),new gh({...e,file:null,sourcesContent:e.sourcesContent})):new Th(s).generateMap({includeContent:!0,hires:!0,source:i})}};var c,m})).catch((e=>mD(e,_.name,{hook:"transform",id:i}))).then((e=>(d||u.length&&(t.transformFiles=u),{ast:c,code:e,customTransformCache:d,meta:t.info.meta,originalCode:s,originalSourcemap:o,sourcemapChain:a,transformDependencies:l})))}(o,r,this.pluginDriver,this.options.onwarn))}async awaitLoadModulesPromise(){let e;do{e=this.latestLoadModulesPromise,await e}while(e!==this.latestLoadModulesPromise)}extendLoadModulesPromise(e){return this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch((()=>{})),e}async fetchDynamicDependencies(e){const t=await Promise.all(e.dynamicImports.map((async t=>{const r=await this.resolveDynamicImport(e,"string"==typeof t.argument?t.argument:t.argument.esTreeNode,e.id);return null===r?null:"string"==typeof r?(t.resolution=r,null):t.resolution=await this.fetchResolvedDependency(fb(r.id),e.id,r)})));for(const r of t)r&&(e.dynamicDependencies.add(r),r.dynamicImporters.push(e.id))}async fetchModule({id:e,meta:t,moduleSideEffects:r,syntheticNamedExports:n},i,a){const o=this.modulesById.get(e);if(o instanceof $x){if(a){o.info.isEntry=!0,this.implicitEntryModules.delete(o);for(const e of o.implicitlyLoadedAfter)e.implicitlyLoadedBefore.delete(o);o.implicitlyLoadedAfter.clear()}return o}const s=new $x(this.graph,e,this.options,a,r,n,t);return this.modulesById.set(e,s),this.graph.watchFiles[e]=!0,await this.addModuleSource(e,i,s),await this.pluginDriver.hookParallel("moduleParsed",[s.info]),await Promise.all([this.fetchStaticDependencies(s),this.fetchDynamicDependencies(s)]),s.linkImports(),s}fetchResolvedDependency(e,t,r){if(r.external){this.modulesById.has(r.id)||this.modulesById.set(r.id,new Lv(this.options,r.id,r.moduleSideEffects,r.meta));const n=this.modulesById.get(r.id);return n instanceof Lv?Promise.resolve(n):gb(((e,t)=>({code:yb.INVALID_EXTERNAL_ID,message:`'${e}' is imported as an external by ${fb(t)}, but is already an existing non-external module id.`}))(e,t))}return this.fetchModule(r,t,!1)}async fetchStaticDependencies(e){for(const t of await Promise.all(Array.from(e.sources,(async t=>this.fetchResolvedDependency(t,e.id,e.resolvedIds[t]=e.resolvedIds[t]||this.handleResolveId(await this.resolveId(t,e.id,Zy),t,e.id))))))e.dependencies.add(t),t.importers.push(e.id)}getNormalizedResolvedIdWithoutDefaults(e,t,r){if(e){if("object"==typeof e)return{...e,external:e.external||this.options.external(e.id,t,!0)};const r=this.options.external(e,t,!0);return{external:r,id:r?bD(e,t):e}}const n=bD(r,t);return!1===e||this.options.external(n,t,!0)?{external:!0,id:n}:null}handleResolveId(e,t,r){return null===e?Mv(t)?gb(((e,t)=>({code:yb.UNRESOLVED_IMPORT,message:`Could not resolve '${e}' from ${fb(t)}`}))(t,r)):(this.options.onwarn(((e,t)=>({code:yb.UNRESOLVED_IMPORT,importer:fb(t),message:`'${e}' is imported by ${fb(t)}, but could not be resolved – treating it as an external dependency`,source:e,url:"https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency"}))(t,r)),{external:!0,id:t,meta:Zy,moduleSideEffects:this.hasModuleSideEffects(t,!0),syntheticNamedExports:!1}):(e.external&&e.syntheticNamedExports&&this.options.onwarn(((e,t)=>({code:yb.EXTERNAL_SYNTHETIC_EXPORTS,importer:fb(t),message:`External '${e}' can not have 'syntheticNamedExports' enabled.`,source:e}))(t,r)),e)}async loadEntryModule(e,t,r,n){const i=await dD(e,r,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,Zy);return null==i?gb(null===n?(e=>({code:yb.UNRESOLVED_ENTRY,message:`Could not resolve entry module (${fb(e)}).`}))(e):((e,t)=>({code:yb.MISSING_IMPLICIT_DEPENDANT,message:`Module "${fb(e)}" that should be implicitly loaded before "${fb(t)}" could not be resolved.`}))(e,n)):!1===i||"object"==typeof i&&i.external?gb(null===n?(e=>({code:yb.UNRESOLVED_ENTRY,message:`Entry module cannot be external (${fb(e)}).`}))(e):((e,t)=>({code:yb.MISSING_IMPLICIT_DEPENDANT,message:`Module "${fb(e)}" that should be implicitly loaded before "${fb(t)}" cannot be external.`}))(e,n)):this.fetchModule(this.addDefaultsToResolvedId("object"==typeof i?i:{id:i}),void 0,t)}async resolveDynamicImport(e,t,r){const n=await this.pluginDriver.hookFirst("resolveDynamicImport",[t,r]);return"string"!=typeof t?"string"==typeof n?n:n?{external:!1,moduleSideEffects:!0,...n}:null:null==n?e.resolvedIds[t]=e.resolvedIds[t]||this.handleResolveId(await this.resolveId(t,e.id,Zy),t,e.id):this.handleResolveId(this.addDefaultsToResolvedId(this.getNormalizedResolvedIdWithoutDefaults(n,r,t)),t,r)}}function bD(e,t){return Mv(e)?t?He(t,"..",e):He(e):e}function xD(e,{fileName:t,name:r},n){null!==t?e.chunkFileNames.add(t):null!==r&&(null===e.chunkName&&(e.chunkName=r),n&&e.userChunkNames.add(r))}function ED(e,t,r,n,i,a){let o=!1;return(...s)=>(o||(o=!0,Ab({message:`The "this.${t}" plugin context function used by plugin ${n} is deprecated. The "this.${r}" plugin context function should be used instead.`,plugin:n},i,a)),e(...s))}function SD(e,t,r,n,i,a){let o,s=!0;if("string"!=typeof e.cacheKey&&(e.name.startsWith(_D)||e.name.startsWith(fD)||a.has(e.name)?s=!1:a.add(e.name)),t)if(s){const r=e.cacheKey||e.name;l=t[r]||(t[r]=Object.create(null)),o={has(e){const t=l[e];return!!t&&(t[0]=0,!0)},get(e){const t=l[e];if(t)return t[0]=0,t[1]},set(e,t){l[e]=[0,t]},delete(e){return delete l[e]}}}else c=e.name,o={has(){return yD(c)},get(){return yD(c)},set(){return yD(c)},delete(){return yD(c)}};else o=hD;var c,l;return{addWatchFile(e){if(r.phase>=bE.GENERATE)return this.error({code:yb.INVALID_ROLLUP_PHASE,message:"Cannot call addWatchFile after the build has finished."});r.watchFiles[e]=!0},cache:o,emitAsset:ED(((e,t)=>i.emitFile({type:"asset",name:e,source:t})),"emitAsset","emitFile",e.name,!0,n),emitChunk:ED(((e,t)=>i.emitFile({type:"chunk",id:e,name:t&&t.name})),"emitChunk","emitFile",e.name,!0,n),emitFile:i.emitFile,error(t){return mD(t,e.name)},getAssetFileName:ED(i.getFileName,"getAssetFileName","getFileName",e.name,!0,n),getChunkFileName:ED(i.getFileName,"getChunkFileName","getFileName",e.name,!0,n),getFileName:i.getFileName,getModuleIds:()=>r.modulesById.keys(),getModuleInfo:r.getModuleInfo,getWatchFiles:()=>Object.keys(r.watchFiles),isExternal:ED(((e,t,r=!1)=>n.external(e,t,r)),"isExternal","resolve",e.name,!0,n),meta:{rollupVersion:sh,watchMode:r.watchMode},get moduleIds(){const t=r.modulesById.keys();return function*(){Ab({message:`Accessing "this.moduleIds" on the plugin context by plugin ${e.name} is deprecated. The "this.getModuleIds" plugin context function should be used instead.`,plugin:e.name},!1,n),yield*t}()},parse:r.contextParse.bind(r),resolve(t,n,{custom:i,skipSelf:a}=Qy){return r.moduleLoader.resolveId(t,n,i,a?[{importer:n,plugin:e,source:t}]:null)},resolveId:ED(((e,t)=>r.moduleLoader.resolveId(e,t,Qy).then((e=>e&&e.id))),"resolveId","resolve",e.name,!0,n),setAssetSource:i.setAssetSource,warn(t){"string"==typeof t&&(t={message:t}),t.code&&(t.pluginCode=t.code),t.code="PLUGIN_WARNING",t.plugin=e.name,n.onwarn(t)}}}const DD=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,options:1,resolveDynamicImport:1,resolveId:1,transform:1,watchChange:1});function TD(e,t){return gb({code:"INVALID_PLUGIN_HOOK",message:`Error running plugin hook ${e} for ${t}, expected a function hook.`})}class CD{constructor(e,t,r,n,i){this.graph=e,this.options=t,this.pluginContexts=new Map,((e,t)=>{for(const{active:r,deprecated:n,replacement:i}of gD)for(const a of e)n in a&&Ab({message:`The "${n}" hook used by plugin ${a.name} is deprecated. The "${i}" hook should be used instead.`,plugin:a.name},r,t)})(r,t),this.pluginCache=n,this.fileEmitter=new DE(e,t,i&&i.fileEmitter),this.emitFile=this.fileEmitter.emitFile,this.getFileName=this.fileEmitter.getFileName,this.finaliseAssets=this.fileEmitter.assertAssetsFinalized,this.setOutputBundle=this.fileEmitter.setOutputBundle,this.plugins=r.concat(i?i.plugins:[]);const a=new Set;for(const r of this.plugins)this.pluginContexts.set(r,SD(r,n,e,t,this.fileEmitter,a));if(i)for(const e of r)for(const r of DD)r in e&&t.onwarn((o=e.name,s=r,{code:yb.INPUT_HOOK_IN_OUTPUT_PLUGIN,message:`The "${s}" hook used by the output plugin ${o} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}));var o,s}createOutputPluginDriver(e){return new CD(this.graph,this.options,e,this.pluginCache,this)}hookFirst(e,t,r,n){let i=Promise.resolve(void 0);for(const a of this.plugins)n&&n.has(a)||(i=i.then((n=>null!=n?n:this.runHook(e,t,a,!1,r))));return i}hookFirstSync(e,t,r){for(const n of this.plugins){const i=this.runHookSync(e,t,n,r);if(null!=i)return i}return null}hookParallel(e,t,r){const n=[];for(const i of this.plugins){const a=this.runHook(e,t,i,!1,r);a&&n.push(a)}return Promise.all(n).then((()=>{}))}hookReduceArg0(e,[t,...r],n,i){let a=Promise.resolve(t);for(const t of this.plugins)a=a.then((a=>{const o=[a,...r],s=this.runHook(e,o,t,!1,i);return s?s.then((e=>n.call(this.pluginContexts.get(t),a,e,t))):a}));return a}hookReduceArg0Sync(e,[t,...r],n,i){for(const a of this.plugins){const o=[t,...r],s=this.runHookSync(e,o,a,i);t=n.call(this.pluginContexts.get(a),t,s,a)}return t}hookReduceValue(e,t,r,n,i){let a=Promise.resolve(t);for(const t of this.plugins)a=a.then((a=>{const o=this.runHook(e,r,t,!0,i);return o?o.then((e=>n.call(this.pluginContexts.get(t),a,e,t))):a}));return a}hookReduceValueSync(e,t,r,n,i){let a=t;for(const t of this.plugins){const o=this.runHookSync(e,r,t,i);a=n.call(this.pluginContexts.get(t),a,o,t)}return a}hookSeq(e,t,r){let n=Promise.resolve();for(const i of this.plugins)n=n.then((()=>this.runHook(e,t,i,!1,r)));return n}hookSeqSync(e,t,r){for(const n of this.plugins)this.runHookSync(e,t,n,r)}runHook(e,t,r,n,i){const a=r[e];if(!a)return;let o=this.pluginContexts.get(r);return i&&(o=i(o,r)),Promise.resolve().then((()=>"function"!=typeof a?n?a:TD(e,r.name):a.apply(o,t))).catch((t=>mD(t,r.name,{hook:e})))}runHookSync(e,t,r,n){const i=r[e];if(!i)return;let a=this.pluginContexts.get(r);n&&(a=n(a,r));try{return"function"!=typeof i?TD(e,r.name):i.apply(a,t)}catch(t){return mD(t,r.name,{hook:e})}}}function kD(e,t,r){r(e,t)}function AD(e,t,r){}var ND={};function wD(e,t,r=e.type){let n=t.commentNodes[t.commentIndex];for(;n&&e.start>=n.end;)FD(e,n),n=t.commentNodes[++t.commentIndex];n&&n.end<=e.end&&ND[r](e,t,wD)}function FD(e,t){for(e._rollupAnnotations?e._rollupAnnotations.push({comment:t}):e._rollupAnnotations=[{comment:t}];e.type===Fh||"ChainExpression"===e.type;)e=e.expression;e.type!==wh&&"NewExpression"!==e.type||(e._rollupAnnotations?e._rollupAnnotations.push({pure:!0}):e._rollupAnnotations=[{pure:!0}])}ND.Program=ND.BlockStatement=(e,t,r)=>{for(var n=0,i=e.body;n<i.length;n+=1)r(i[n],t,"Statement")},ND.Statement=kD,ND.EmptyStatement=AD,ND.ExpressionStatement=ND.ParenthesizedExpression=ND.ChainExpression=(e,t,r)=>r(e.expression,t,"Expression"),ND.IfStatement=(e,t,r)=>{r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")},ND.LabeledStatement=(e,t,r)=>r(e.body,t,"Statement"),ND.BreakStatement=ND.ContinueStatement=AD,ND.WithStatement=(e,t,r)=>{r(e.object,t,"Expression"),r(e.body,t,"Statement")},ND.SwitchStatement=(e,t,r)=>{r(e.discriminant,t,"Expression");for(var n=0,i=e.cases;n<i.length;n+=1){var a=i[n];a.test&&r(a.test,t,"Expression");for(var o=0,s=a.consequent;o<s.length;o+=1)r(s[o],t,"Statement")}},ND.SwitchCase=(e,t,r)=>{e.test&&r(e.test,t,"Expression");for(var n=0,i=e.consequent;n<i.length;n+=1)r(i[n],t,"Statement")},ND.ReturnStatement=ND.YieldExpression=ND.AwaitExpression=(e,t,r)=>{e.argument&&r(e.argument,t,"Expression")},ND.ThrowStatement=ND.SpreadElement=(e,t,r)=>r(e.argument,t,"Expression"),ND.TryStatement=(e,t,r)=>{r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")},ND.CatchClause=(e,t,r)=>{e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")},ND.WhileStatement=ND.DoWhileStatement=(e,t,r)=>{r(e.test,t,"Expression"),r(e.body,t,"Statement")},ND.ForStatement=(e,t,r)=>{e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")},ND.ForInStatement=ND.ForOfStatement=(e,t,r)=>{r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")},ND.ForInit=(e,t,r)=>{"VariableDeclaration"===e.type?r(e,t):r(e,t,"Expression")},ND.DebuggerStatement=AD,ND.FunctionDeclaration=(e,t,r)=>r(e,t,"Function"),ND.VariableDeclaration=(e,t,r)=>{for(var n=0,i=e.declarations;n<i.length;n+=1)r(i[n],t)},ND.VariableDeclarator=(e,t,r)=>{r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")},ND.Function=(e,t,r)=>{e.id&&r(e.id,t,"Pattern");for(var n=0,i=e.params;n<i.length;n+=1)r(i[n],t,"Pattern");r(e.body,t,e.expression?"Expression":"Statement")},ND.Pattern=(e,t,r)=>{"Identifier"===e.type?r(e,t,"VariablePattern"):"MemberExpression"===e.type?r(e,t,"MemberPattern"):r(e,t)},ND.VariablePattern=AD,ND.MemberPattern=kD,ND.RestElement=(e,t,r)=>r(e.argument,t,"Pattern"),ND.ArrayPattern=(e,t,r)=>{for(var n=0,i=e.elements;n<i.length;n+=1){var a=i[n];a&&r(a,t,"Pattern")}},ND.ObjectPattern=(e,t,r)=>{for(var n=0,i=e.properties;n<i.length;n+=1){var a=i[n];"Property"===a.type?(a.computed&&r(a.key,t,"Expression"),r(a.value,t,"Pattern")):"RestElement"===a.type&&r(a.argument,t,"Pattern")}},ND.Expression=kD,ND.ThisExpression=ND.Super=ND.MetaProperty=AD,ND.ArrayExpression=(e,t,r)=>{for(var n=0,i=e.elements;n<i.length;n+=1){var a=i[n];a&&r(a,t,"Expression")}},ND.ObjectExpression=(e,t,r)=>{for(var n=0,i=e.properties;n<i.length;n+=1)r(i[n],t)},ND.FunctionExpression=ND.ArrowFunctionExpression=ND.FunctionDeclaration,ND.SequenceExpression=(e,t,r)=>{for(var n=0,i=e.expressions;n<i.length;n+=1)r(i[n],t,"Expression")},ND.TemplateLiteral=(e,t,r)=>{for(var n=0,i=e.quasis;n<i.length;n+=1)r(i[n],t);for(var a=0,o=e.expressions;a<o.length;a+=1)r(o[a],t,"Expression")},ND.TemplateElement=AD,ND.UnaryExpression=ND.UpdateExpression=(e,t,r)=>{r(e.argument,t,"Expression")},ND.BinaryExpression=ND.LogicalExpression=(e,t,r)=>{r(e.left,t,"Expression"),r(e.right,t,"Expression")},ND.AssignmentExpression=ND.AssignmentPattern=(e,t,r)=>{r(e.left,t,"Pattern"),r(e.right,t,"Expression")},ND.ConditionalExpression=(e,t,r)=>{r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")},ND.NewExpression=ND.CallExpression=(e,t,r)=>{if(r(e.callee,t,"Expression"),e.arguments)for(var n=0,i=e.arguments;n<i.length;n+=1)r(i[n],t,"Expression")},ND.MemberExpression=(e,t,r)=>{r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")},ND.ExportNamedDeclaration=ND.ExportDefaultDeclaration=(e,t,r)=>{e.declaration&&r(e.declaration,t,"ExportNamedDeclaration"===e.type||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression")},ND.ExportAllDeclaration=(e,t,r)=>{e.exported&&r(e.exported,t),r(e.source,t,"Expression")},ND.ImportDeclaration=(e,t,r)=>{for(var n=0,i=e.specifiers;n<i.length;n+=1)r(i[n],t);r(e.source,t,"Expression")},ND.ImportExpression=(e,t,r)=>{r(e.source,t,"Expression")},ND.ImportSpecifier=ND.ImportDefaultSpecifier=ND.ImportNamespaceSpecifier=ND.Identifier=ND.Literal=AD,ND.TaggedTemplateExpression=(e,t,r)=>{r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")},ND.ClassDeclaration=ND.ClassExpression=(e,t,r)=>r(e,t,"Class"),ND.Class=(e,t,r)=>{e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)},ND.ClassBody=(e,t,r)=>{for(var n=0,i=e.body;n<i.length;n+=1)r(i[n],t)},ND.MethodDefinition=ND.Property=(e,t,r)=>{e.computed&&r(e.key,t,"Expression"),r(e.value,t,"Expression")},ND.PropertyDefinition=(e,t,r)=>{e.computed&&r(e.key,t,"Expression"),e.value&&r(e.value,t,"Expression")};const PD=/[@#]__PURE__/,ID=e=>PD.test(e.value);class OD{constructor(e,t){var r,n;if(this.options=e,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=bE.LOAD_AND_PARSE,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=e=>{const t=this.modulesById.get(e);return t?t.info:null},this.deoptimizationTracker=new ty,this.cachedModules=new Map,!1!==e.cache){if(null===(r=e.cache)||void 0===r?void 0:r.modules)for(const t of e.cache.modules)this.cachedModules.set(t.id,t);this.pluginCache=(null===(n=e.cache)||void 0===n?void 0:n.plugins)||Object.create(null);for(const e in this.pluginCache){const t=this.pluginCache[e];for(const e of Object.keys(t))t[e][0]++}}if(t){this.watchMode=!0;const e=(...e)=>this.pluginDriver.hookSeqSync("watchChange",e),r=()=>this.pluginDriver.hookSeqSync("closeWatcher",[]);t.on("change",e),t.on("close",r),t.once("restart",(()=>{t.removeListener("change",e),t.removeListener("close",r)}))}this.pluginDriver=new CD(this,e,e.plugins,this.pluginCache),this.scope=new cD,this.acornParser=pS.extend(...e.acornInjectPlugins),this.moduleLoader=new vD(this,this.modulesById,this.options,this.pluginDriver)}async build(){Ux("generate module graph",2),await this.generateModuleGraph(),Vx("generate module graph",2),Ux("sort modules",2),this.phase=bE.ANALYSE,this.sortModules(),Vx("sort modules",2),Ux("mark included statements",2),this.includeStatements(),Vx("mark included statements",2),this.phase=bE.GENERATE}contextParse(e,t={}){const r=t.onComment,n=[];t.onComment=r&&"function"==typeof r?(e,i,a,o,...s)=>(n.push({type:e?"Block":"Line",value:i,start:a,end:o}),r.call(t,e,i,a,o,...s)):n;const i=this.acornParser.parse(e,{...this.options.acorn,...t});return"object"==typeof r&&r.push(...n),t.onComment=r,((e,t)=>{wD(t,{commentIndex:0,commentNodes:e.filter(ID)})})(n,i),i}getCache(){for(const e in this.pluginCache){const t=this.pluginCache[e];let r=!0;for(const e of Object.keys(t))t[e][0]>=this.options.experimentalCacheExpiry?delete t[e]:r=!1;r&&delete this.pluginCache[e]}return{modules:this.modules.map((e=>e.toJSON())),plugins:this.pluginCache}}async generateModuleGraph(){var e;if(({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((e=this.options.input,Array.isArray(e)?e.map((e=>({fileName:null,id:e,implicitlyLoadedAfter:[],importer:void 0,name:null}))):Object.keys(e).map((t=>({fileName:null,id:e[t],implicitlyLoadedAfter:[],importer:void 0,name:t})))),!0)),0===this.entryModules.length)throw new Error("You must supply options.input to rollup");for(const e of this.modulesById.values())e instanceof $x?this.modules.push(e):this.externalModules.push(e)}includeStatements(){for(const e of[...this.entryModules,...this.implicitEntryModules])!1!==e.preserveSignature?e.includeAllExports(!1):Wx(e);if(this.options.treeshake){let e=1;do{Ux(`treeshaking pass ${e}`,3),this.needsTreeshakingPass=!1;for(const e of this.modules)e.isExecuted&&("no-treeshake"===e.info.hasModuleSideEffects?e.includeAllInBundle():e.include());Vx("treeshaking pass "+e++,3)}while(this.needsTreeshakingPass)}else for(const e of this.modules)e.includeAllInBundle();for(const e of this.externalModules)e.warnUnusedImports();for(const e of this.implicitEntryModules)for(const t of e.implicitlyLoadedAfter)t.info.isEntry||t.isIncluded()||gb(Eb(t))}sortModules(){const{orderedModules:e,cyclePaths:t}=(e=>{let t=0;const r=[],n=new Set,i=new Set,a=new Map,o=[],s=e=>{if(e instanceof $x){for(const t of e.dependencies)a.has(t)?n.has(t)||r.push(vE(t,e,a)):(a.set(t,e),s(t));for(const t of e.implicitlyLoadedBefore)i.add(t);for(const{resolution:t}of e.dynamicImports)t instanceof $x&&i.add(t);o.push(e)}e.execIndex=t++,n.add(e)};for(const t of e)a.has(t)||(a.set(t,null),s(t));for(const e of i)a.has(e)||(a.set(e,null),s(e));return{orderedModules:o,cyclePaths:r}})(this.entryModules);for(const e of t)this.options.onwarn({code:"CIRCULAR_DEPENDENCY",cycle:e,importer:e[0],message:`Circular dependency: ${e.join(" -> ")}`});this.modules=e;for(const e of this.modules)e.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const t of Object.keys(e.importDescriptions)){const r=e.importDescriptions[t];"*"===r.name||r.module.getVariableForExportName(r.name)||e.warn({code:"NON_EXISTENT_EXPORT",message:`Non-existent export '${r.name}' is imported from ${fb(r.module.id)}`,name:r.name,source:r.module.id},r.start)}}}function MD(e){return Array.isArray(e)?e.filter(Boolean):e?[e]:[]}function RD(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((r=>{var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})})),t}var LD=RD(sD);const BD=Object.getPrototypeOf||(e=>e.__proto__);var jD=function(e){if(e.prototype.parsePrivateName)return e;const t=(e=>{if(e.acorn)return e.acorn;const t=LD;if(0!=t.version.indexOf("6.")&&0==t.version.indexOf("6.0.")&&0!=t.version.indexOf("7."))throw new Error(`acorn-private-class-elements requires acorn@^6.1.0 or acorn@7.0.0, not ${t.version}`);for(let r=e;r&&r!==t.Parser;r=BD(r))if(r!==t.Parser)throw new Error("acorn-private-class-elements does not support mixing different acorn copies");return t})(e);return(e=class extends e{_branch(){return this.__branch=this.__branch||new e({ecmaVersion:this.options.ecmaVersion},this.input),this.__branch.end=this.end,this.__branch.pos=this.pos,this.__branch.type=this.type,this.__branch.value=this.value,this.__branch.containsEsc=this.containsEsc,this.__branch}parsePrivateClassElementName(e){e.computed=!1,e.key=this.parsePrivateName(),"constructor"==e.key.name&&this.raise(e.key.start,"Classes may not have a private element named constructor");const t={get:"set",set:"get"}[e.kind],r=this._privateBoundNames;return Object.prototype.hasOwnProperty.call(r,e.key.name)&&r[e.key.name]!==t&&this.raise(e.start,"Duplicate private element"),r[e.key.name]=e.kind||!0,delete this._unresolvedPrivateNames[e.key.name],e.key}parsePrivateName(){const e=this.startNode();return e.name=this.value,this.next(),this.finishNode(e,"PrivateIdentifier"),"never"==this.options.allowReserved&&this.checkUnreserved(e),e}getTokenFromCode(e){if(35===e){++this.pos;const e=this.readWord1();return this.finishToken(this.privateIdentifierToken,e)}return super.getTokenFromCode(e)}parseClass(e,t){const r=this._outerPrivateBoundNames;this._outerPrivateBoundNames=this._privateBoundNames,this._privateBoundNames=Object.create(this._privateBoundNames||null);const n=this._outerUnresolvedPrivateNames;this._outerUnresolvedPrivateNames=this._unresolvedPrivateNames,this._unresolvedPrivateNames=Object.create(null);const i=super.parseClass(e,t),a=this._unresolvedPrivateNames;if(this._privateBoundNames=this._outerPrivateBoundNames,this._outerPrivateBoundNames=r,this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames,this._outerUnresolvedPrivateNames=n,this._unresolvedPrivateNames)Object.assign(this._unresolvedPrivateNames,a);else{const e=Object.keys(a);e.length&&(e.sort(((e,t)=>a[e]-a[t])),this.raise(a[e[0]],"Usage of undeclared private name"))}return i}parseClassSuper(e){const t=this._privateBoundNames;this._privateBoundNames=this._outerPrivateBoundNames;const r=this._unresolvedPrivateNames;this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames;const n=super.parseClassSuper(e);return this._privateBoundNames=t,this._unresolvedPrivateNames=r,n}parseSubscript(e,r,n,i,a,o){const s=this.options.ecmaVersion>=11&&t.tokTypes.questionDot,c=this._branch();if(!(c.eat(t.tokTypes.dot)||s&&c.eat(t.tokTypes.questionDot))||c.type!=this.privateIdentifierToken)return super.parseSubscript.apply(this,arguments);let l=!1;this.eat(t.tokTypes.dot)||(this.expect(t.tokTypes.questionDot),l=!0);let u=this.startNodeAt(r,n);return u.object=e,u.computed=!1,s&&(u.optional=l),this.type==this.privateIdentifierToken?("Super"==e.type&&this.raise(this.start,"Cannot access private element on super"),u.property=this.parsePrivateName(),this._privateBoundNames&&this._privateBoundNames[u.property.name]||(this._unresolvedPrivateNames||this.raise(u.property.start,"Usage of undeclared private name"),this._unresolvedPrivateNames[u.property.name]=u.property.start)):u.property=this.parseIdent(!0),this.finishNode(u,"MemberExpression")}parseMaybeUnary(e,t){const r=super.parseMaybeUnary(e,t);return"delete"==r.operator&&"MemberExpression"==r.argument.type&&"PrivateIdentifier"==r.argument.property.type&&this.raise(r.start,"Private elements may not be deleted"),r}}).prototype.privateIdentifierToken=new t.TokenType("privateIdentifier"),e};const UD=jD;var VD=function(e){const t=(e.acorn||LD).tokTypes;return e=UD(e),class extends e{_maybeParseFieldValue(e){if(this.eat(t.eq)){const r=this._inFieldValue;this._inFieldValue=!0,this.type===t.name&&"await"===this.value&&(this.inAsync||this.options.allowAwaitOutsideFunction)?e.value=this.parseAwait():e.value=this.parseExpression(),this._inFieldValue=r}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion>=8&&(this.type==t.name||this.type.keyword||this.type==this.privateIdentifierToken||this.type==t.bracketL||this.type==t.string||this.type==t.num)){const e=this._branch();if(e.type==t.bracketL){let r=0;do{e.eat(t.bracketL)?++r:e.eat(t.bracketR)?--r:e.next()}while(r>0)}else e.next(!0);let r=e.type==t.eq||e.type==t.semi;if(!r&&e.canInsertSemicolon()&&(r=e.type!=t.parenL),r){const e=this.startNode();return this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(e):this.parsePropertyName(e),("Identifier"===e.key.type&&"constructor"===e.key.name||"Literal"===e.key.type&&"constructor"===e.key.value)&&this.raise(e.key.start,"Classes may not have a field called constructor"),this.enterScope(67),this._maybeParseFieldValue(e),this.exitScope(),this.finishNode(e,"PropertyDefinition"),this.semicolon(),e}}return super.parseClassElement.apply(this,arguments)}parseIdent(e,t){const r=super.parseIdent(e,t);return this._inFieldValue&&"arguments"==r.name&&this.raise(r.start,"A class field initializer may not contain arguments"),r}}};const zD=jD;var KD=function(e){const t=zD(e),r=(e.acorn||LD).tokTypes;return class extends t{_maybeParseFieldValue(e){if(this.eat(r.eq)){const t=this._inStaticFieldScope;this._inStaticFieldScope=this.currentThisScope(),e.value=this.parseExpression(),this._inStaticFieldScope=t}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion<8||!this.isContextual("static"))return super.parseClassElement.apply(this,arguments);const t=this._branch();if(t.next(),-1==[r.name,r.bracketL,r.string,r.num,this.privateIdentifierToken].indexOf(t.type)&&!t.type.keyword)return super.parseClassElement.apply(this,arguments);if(t.type==r.bracketL){let e=0;do{t.eat(r.bracketL)?++e:t.eat(r.bracketR)?--e:t.next()}while(e>0)}else t.next();if(t.type!=r.eq&&!t.canInsertSemicolon()&&t.type!=r.semi)return super.parseClassElement.apply(this,arguments);const n=this.startNode();return n.static=this.eatContextual("static"),this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(n):this.parsePropertyName(n),("Identifier"===n.key.type&&"constructor"===n.key.name||"Literal"===n.key.type&&!n.computed&&"constructor"===n.key.value)&&this.raise(n.key.start,"Classes may not have a field called constructor"),"prototype"!==(n.key.name||n.key.value)||n.computed||this.raise(n.key.start,"Classes may not have a static property named prototype"),this.enterScope(67),this._maybeParseFieldValue(n),this.exitScope(),this.finishNode(n,"PropertyDefinition"),this.semicolon(),n}parsePropertyName(e){e.static&&this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(e):super.parsePropertyName(e)}parseIdent(e,t){const r=super.parseIdent(e,t);return this._inStaticFieldScope&&this.currentThisScope()===this._inStaticFieldScope&&"arguments"==r.name&&this.raise(r.start,"A static class field initializer may not contain arguments"),r}}};const WD=e=>console.warn(e.message||e);function HD(e,t,r,n,i=/$./){const a=new Set(t),o=Object.keys(e).filter((e=>!(a.has(e)||i.test(e))));o.length>0&&n({code:"UNKNOWN_OPTION",message:`Unknown ${r}: ${o.join(", ")}. Allowed options: ${[...a].sort().join(", ")}`})}const JD=e=>({allowAwaitOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,sourceType:"module",...e.acorn}),$D=e=>[VD,KD,...MD(e.acornInjectPlugins)],GD=e=>{var t;return(null===(t=e.cache)||void 0===t?void 0:t.cache)||e.cache},qD=e=>{if(!0===e)return()=>!0;if("function"==typeof e)return(t,...r)=>!t.startsWith("\0")&&e(t,...r)||!1;if(e){const t=new Set,r=[];for(const n of MD(e))n instanceof RegExp?r.push(n):t.add(n);return(e,...n)=>t.has(e)||r.some((t=>t.test(e)))}return()=>!1},XD=(e,t,r)=>{const n=e.inlineDynamicImports;return n&&Nb('The "inlineDynamicImports" option is deprecated. Use the "output.inlineDynamicImports" option instead.',!1,t,r),n},YD=e=>{const t=e.input;return null==t?[]:"string"==typeof t?[t]:t},QD=(e,t,r)=>{const n=e.manualChunks;return n&&Nb('The "manualChunks" option is deprecated. Use the "output.manualChunks" option instead.',!1,t,r),n},ZD=(e,t)=>{const r=e.moduleContext;if("function"==typeof r)return e=>{var n;return null!==(n=r(e))&&void 0!==n?n:t};if(r){const e=Object.create(null);for(const t of Object.keys(r))e[He(t)]=r[t];return r=>e[r]||t}return()=>t},eT=(e,t)=>{const r=e.preserveEntrySignatures;return null==r&&t.add("preserveEntrySignatures"),null!=r?r:"strict"},tT=(e,t,r)=>{const n=e.preserveModules;return n&&Nb('The "preserveModules" option is deprecated. Use the "output.preserveModules" option instead.',!1,t,r),n},rT=(e,t,r)=>{const n=e.treeshake;return!1!==n&&(n&&!0!==n?(void 0!==n.pureExternalModules&&Nb('The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead. "treeshake.pureExternalModules: true" is equivalent to "treeshake.moduleSideEffects: \'no-external\'"',!0,t,r),{annotations:!1!==n.annotations,moduleSideEffects:nT(n.moduleSideEffects,n.pureExternalModules,t),propertyReadSideEffects:"always"===n.propertyReadSideEffects?"always":!1!==n.propertyReadSideEffects,tryCatchDeoptimization:!1!==n.tryCatchDeoptimization,unknownGlobalSideEffects:!1!==n.unknownGlobalSideEffects}):{annotations:!0,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0})},nT=(e,t,r)=>{if("boolean"==typeof e)return()=>e;if("no-external"===e)return(e,t)=>!t;if("function"==typeof e)return(t,r)=>!!t.startsWith("\0")||!1!==e(t,r);if(Array.isArray(e)){const t=new Set(e);return e=>t.has(e)}e&&r(("treeshake.moduleSideEffects",'please use one of false, "no-external", a function or an array',{code:yb.INVALID_OPTION,message:'Invalid value for option "treeshake.moduleSideEffects" - please use one of false, "no-external", a function or an array.'}));const n=qD(t);return(e,t)=>!(t&&n(e))},iT=e=>{const t=e.preserveModulesRoot;if(null!=t)return He(t)},aT=e=>{const t={autoId:!1,basePath:"",define:"define",...e.amd};if((t.autoId||t.basePath)&&t.id)return gb({code:"INVALID_OPTION",message:'"output.amd.autoId"/"output.amd.basePath" and "output.amd.id" cannot be used together.'});if(t.basePath&&!t.autoId)return gb({code:"INVALID_OPTION",message:'"output.amd.basePath" only works with "output.amd.autoId".'});let r;return r=t.autoId?{autoId:!0,basePath:t.basePath,define:t.define}:{autoId:!1,define:t.define,id:t.id},r},oT=(e,t)=>{const r=e[t];return"function"==typeof r?r:()=>r||""},sT=(e,t)=>{const r=e.dir;return"string"==typeof r&&"string"==typeof t?gb({code:"INVALID_OPTION",message:'You must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks.'}):r},cT=(e,t)=>{const r=e.dynamicImportFunction;return r&&Ab('The "output.dynamicImportFunction" option is deprecated. Use the "renderDynamicImport" plugin hook instead.',!1,t),r},lT=(e,t)=>{const r=e.entryFileNames;return null==r&&t.add("entryFileNames"),null!=r?r:"[name].js"};function uT(e,t){const r=e.exports;if(null==r)t.add("exports");else if(!["default","named","none","auto"].includes(r))return gb((n=r,{code:yb.INVALID_EXPORT_OPTION,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${n}"`,url:"https://rollupjs.org/guide/en/#outputexports"}));var n;return r||"auto"}const dT=(e,t)=>{if(t)return"";const r=e.indent;return!1===r?"":null==r||r},pT=new Set(["auto","esModule","default","defaultOnly",!0,!1]),_T=(e,t)=>{const r=e.interop,n=new Set,i=e=>{if(!n.has(e)){if(n.add(e),!pT.has(e))return gb({code:"INVALID_OPTION",message:`The value ${JSON.stringify(e)} is not supported for "output.interop". Use one of ${Array.from(pT.values(),(e=>JSON.stringify(e))).join(", ")} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"});"boolean"==typeof e&&Ab({message:`The boolean value "${e}" for the "output.interop" option is deprecated. Use ${e?'"auto"':'"esModule", "default" or "defaultOnly"'} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"},!1,t)}return e};if("function"==typeof r){const e=Object.create(null);let t=null;return n=>null===n?t||i(t=r(n)):n in e?e[n]:i(e[n]=r(n))}return void 0===r?()=>!0:()=>i(r)},fT=(e,t,r,n)=>{const i=e.manualChunks||n.manualChunks;if(i){if(t)return gb({code:"INVALID_OPTION",message:'The "output.manualChunks" option is not supported for "output.inlineDynamicImports".'});if(r)return gb({code:"INVALID_OPTION",message:'The "output.manualChunks" option is not supported for "output.preserveModules".'})}return i||{}},mT=(e,t,r)=>{var n;return null!==(n=e.minifyInternalExports)&&void 0!==n?n:r||"es"===t||"system"===t};function gT(e){return(async(e,t)=>{const{options:n,unsetOptions:i}=await(async(e,t)=>{if(!e)throw new Error("You must supply an options object to rollup");const r=MD(e.plugins),{options:n,unsetOptions:i}=(e=>{var t,r;const n=new Set,i=null!==(t=e.context)&&void 0!==t?t:"undefined",a=(e=>e.onwarn?t=>{t.toString=()=>{let e="";return t.plugin&&(e+=`(${t.plugin} plugin) `),t.loc&&(e+=`${fb(t.loc.file)} (${t.loc.line}:${t.loc.column}) `),e+=t.message,e},e.onwarn(t,WD)}:WD)(e),o=e.strictDeprecations||!1,s={acorn:JD(e),acornInjectPlugins:$D(e),cache:GD(e),context:i,experimentalCacheExpiry:null!==(r=e.experimentalCacheExpiry)&&void 0!==r?r:10,external:qD(e.external),inlineDynamicImports:XD(e,a,o),input:YD(e),manualChunks:QD(e,a,o),moduleContext:ZD(e,i),onwarn:a,perf:e.perf||!1,plugins:MD(e.plugins),preserveEntrySignatures:eT(e,n),preserveModules:tT(e,a,o),preserveSymlinks:e.preserveSymlinks||!1,shimMissingExports:e.shimMissingExports||!1,strictDeprecations:o,treeshake:rT(e,a,o)};return HD(e,[...Object.keys(s),"watch"],"input options",s.onwarn,/^(output)$/),{options:s,unsetOptions:n}})(await r.reduce((async(e,t)=>t.options&&t.options.call({meta:{rollupVersion:sh,watchMode:!1}},await e)||e),Promise.resolve(e)));return hT(n.plugins,_D),{options:n,unsetOptions:i}})(e);!function(e){e.perf?(Mx={},void 0!==r&&"function"==typeof r.hrtime?(Px=r.hrtime.bind(r),Ix=e=>{return 1e3*(t=r.hrtime(e))[0]+t[1]/1e6;var t}):"undefined"!=typeof performance&&"function"==typeof performance.now&&(Px=()=>[performance.now(),0],Ix=e=>performance.now()-e[0]),void 0!==r&&"function"==typeof r.memoryUsage&&(Ox=()=>r.memoryUsage().heapUsed),Ux=Lx,Vx=Bx,e.plugins=e.plugins.map(Kx)):(Ux=Fx,Vx=Fx)}(n);const a=new OD(n,null),o=!1!==e.cache;delete n.cache,delete e.cache,Ux("BUILD",1);try{await a.pluginDriver.hookParallel("buildStart",[n]),await a.build()}catch(e){const t=Object.keys(a.watchFiles);throw t.length>0&&(e.watchFiles=t),await a.pluginDriver.hookParallel("buildEnd",[e]),await a.pluginDriver.hookParallel("closeBundle",[]),e}await a.pluginDriver.hookParallel("buildEnd",[]),Vx("BUILD",1);const s={cache:o?a.getCache():void 0,closed:!1,async close(){s.closed||(s.closed=!0,await a.pluginDriver.hookParallel("closeBundle",[]))},async generate(e){return s.closed?gb(kb()):yT(!1,n,i,e,a)},watchFiles:Object.keys(a.watchFiles),async write(e){return s.closed?gb(kb()):yT(!0,n,i,e,a)}};return n.perf&&(s.getTimings=jx),s})(e)}function hT(e,t){for(let r=0;r<e.length;r++){const n=e[r];n.name||(n.name=`${t}${r+1}`)}}async function yT(e,t,r,n,i){const{options:a,outputPluginDriver:o,unsetOptions:s}=((e,t,r,n)=>{if(!e)throw new Error("You must supply an options object");const i=MD(e.plugins);hT(i,fD);const a=t.createOutputPluginDriver(i);return{...vT(r,n,e,a),outputPluginDriver:a}})(n,i.pluginDriver,t,r),c=new CE(a,s,t,o,i),l=await c.generate(e);if(e){if(!a.dir&&!a.file)return gb({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.'});await Promise.all(Object.keys(l).map((e=>((e,t)=>{const r=He(t.dir||Be(t.file),e.fileName);let n,i;if("asset"===e.type)i=e.source;else if(i=e.code,t.sourcemap&&e.map){let a;"inline"===t.sourcemap?a=e.map.toUrl():(a=`${Le(e.fileName)}.map`,n=uD(`${r}.map`,e.map.toString())),"hidden"!==t.sourcemap&&(i+=`//# sourceMappingURL=${a}\n`)}return Promise.all([uD(r,i),n])})(l[e],a)))),await o.hookParallel("writeBundle",[a,l])}return u=l,{output:Object.keys(u).map((e=>u[e])).filter((e=>Object.keys(e).length>0)).sort(((e,t)=>{const r=xT(e),n=xT(t);return r===n?0:r<n?-1:1}))};var u}function vT(e,t,r,n){return((e,t,r)=>{var n,i,a,o,s,c,l;const u=new Set(r),d=e.compact||!1,p=(e=>{const t=e.format;switch(t){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return t;default:return gb({message:'You must specify "output.format", which can be one of "amd", "cjs", "system", "es", "iife" or "umd".',url:"https://rollupjs.org/guide/en/#outputformat"})}})(e),_=((e,t)=>{var r;const n=(null!==(r=e.inlineDynamicImports)&&void 0!==r?r:t.inlineDynamicImports)||!1,{input:i}=t;return n&&(Array.isArray(i)?i:Object.keys(i)).length>1?gb({code:"INVALID_OPTION",message:'Multiple inputs are not supported for "output.inlineDynamicImports".'}):n})(e,t),f=((e,t,r)=>{var n;const i=(null!==(n=e.preserveModules)&&void 0!==n?n:r.preserveModules)||!1;if(i){if(t)return gb({code:"INVALID_OPTION",message:'The "output.inlineDynamicImports" option is not supported for "output.preserveModules".'});if(!1===r.preserveEntrySignatures)return gb({code:"INVALID_OPTION",message:'Setting "preserveEntrySignatures" to "false" is not supported for "output.preserveModules".'})}return i})(e,_,t),m=((e,t,r)=>{const n=e.file;if("string"==typeof n){if(t)return gb({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when using the "output.preserveModules" option.'});if(!Array.isArray(r.input))return gb({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when providing named inputs.'})}return n})(e,f,t),g={amd:aT(e),assetFileNames:null!==(n=e.assetFileNames)&&void 0!==n?n:"assets/[name]-[hash][extname]",banner:oT(e,"banner"),chunkFileNames:null!==(i=e.chunkFileNames)&&void 0!==i?i:"[name]-[hash].js",compact:d,dir:sT(e,m),dynamicImportFunction:cT(e,t),entryFileNames:lT(e,u),esModule:null===(a=e.esModule)||void 0===a||a,exports:uT(e,u),extend:e.extend||!1,externalLiveBindings:null===(o=e.externalLiveBindings)||void 0===o||o,file:m,footer:oT(e,"footer"),format:p,freeze:null===(s=e.freeze)||void 0===s||s,globals:e.globals||{},hoistTransitiveImports:null===(c=e.hoistTransitiveImports)||void 0===c||c,indent:dT(e,d),inlineDynamicImports:_,interop:_T(e,t),intro:oT(e,"intro"),manualChunks:fT(e,_,f,t),minifyInternalExports:mT(e,p,d),name:e.name,namespaceToStringTag:e.namespaceToStringTag||!1,noConflict:e.noConflict||!1,outro:oT(e,"outro"),paths:e.paths||{},plugins:MD(e.plugins),preferConst:e.preferConst||!1,preserveModules:f,preserveModulesRoot:iT(e),sourcemap:e.sourcemap||!1,sourcemapExcludeSources:e.sourcemapExcludeSources||!1,sourcemapFile:e.sourcemapFile,sourcemapPathTransform:e.sourcemapPathTransform,strict:null===(l=e.strict)||void 0===l||l,systemNullSetters:e.systemNullSetters||!1,validate:e.validate||!1};return HD(e,Object.keys(g),"output options",t.onwarn),{options:g,unsetOptions:u}})(n.hookReduceArg0Sync("outputOptions",[r.output||r],((e,t)=>t||e),(e=>{const t=()=>e.error({code:yb.CANNOT_EMIT_FROM_OPTIONS_HOOK,message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...e,emitFile:t,setAssetSource:t}})),e,t)}var bT;function xT(e){return"asset"===e.type?bT.ASSET:e.isEntry?bT.ENTRY_CHUNK:bT.SECONDARY_CHUNK}(e=>{e[e.ENTRY_CHUNK=0]="ENTRY_CHUNK",e[e.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",e[e.ASSET=2]="ASSET"})(bT||(bT={}));const ET=0,ST="~dev-module",DT=e=>({name:"extFormatPlugin",transform(t,r){if(/\0/.test(r))return null;const{ext:n,filePath:i,format:a}=(e=>{const t=e.split("?"),r=pe(t[0]),n=r.split(".").pop().toLowerCase(),i=t.length>1?new URLSearchParams(t[1]):null,a=i?i.get("format"):null;return{filePath:r,ext:n,params:i,format:a}})(r);switch(a){case"url":return{code:AT(e,this,t,i,n),map:null};case"text":return{code:kT(t,i),map:null}}return TT.includes(n)?{code:kT(t,i),map:null}:CT[n]?{code:AT(e,this,t,i,n),map:null}:null}}),TT=["txt","frag","vert"],CT={svg:"image/svg+xml"},kT=(e,t)=>{const r=ke(Le(t));return`const ${r} = ${JSON.stringify(e)};export default ${r};`},AT=(e,t,r,n,i)=>{const a=CT[i];if(!a)return t.warn(`Unsupported url format for "${i}" extension.`),kT("",n);const o=ke(Le(n)),s=e.sys.encodeToBase64(r);return e.devMode&&s.length>4096&&t.warn("Importing large files will bloat your bundle size, please use external assets instead."),`const ${o} = 'data:${a};base64,${s}';export default ${o};`},NT=(e,t,r,n)=>({name:"extTransformsPlugin",async transform(i,a){if(/\0/.test(a))return null;const{data:o}=pd(a);if(null!=o){let i;const s=xe(a),c=await t.fs.readFile(s);if("string"!=typeof c)return null;const l=await(async(e,t,r,n,i)=>{const a={config:e,sys:e.sys,fs:t.fs,cache:t.cache,diagnostics:[]},o={code:n,id:i,map:null,diagnostics:[],dependencies:[]},s=i.toLowerCase().endsWith(".css");if(s){const n=await Cm(e,t,r,i,i,o.code);o.code=n.styleText,Array.isArray(n.imports)&&o.dependencies.push(...n.imports)}for(const e of a.config.plugins)if(U(e.transform))try{let t;const r=e.transform(o.code,o.id,a);if(null!=r&&(t=U(r.then)?await r:r,null!=t))if(K(t))o.code=t;else if(K(t.code)&&(o.code=t.code),K(t.id)&&(o.id=t.id),Array.isArray(t.dependencies)){const e=t.dependencies.filter((e=>!o.dependencies.includes(e)));o.dependencies.push(...e)}}catch(e){ne(o.diagnostics,e)}if(o.diagnostics.push(...a.diagnostics),!s){const n=await Cm(e,t,r,i,o.id,o.code);if(o.code=n.styleText,Array.isArray(n.imports)){const e=n.imports.filter((e=>!o.dependencies.includes(e)));o.dependencies.push(...e)}}return o})(e,t,r,c,s),u="hydrate"===n.platform&&"shadow"===o.encapsulation;if(o.tag&&(i=r.components.find((e=>e.tagName===o.tag)),i&&t.moduleMap.get(i.sourceFilePath))){const r=e.outputTargets.filter(Od),n=We(e.srcDir,l.id);await Promise.all(r.map((async e=>{const r=Ve(e.collectionDir,n);await t.fs.writeFile(r,l.code)})))}const d=await t.worker.transformCssToEsm({file:l.id,input:l.code,tag:o.tag,encapsulation:o.encapsulation,mode:o.mode,commentOriginalSelector:u,sourceMap:e.sourceMap,minify:e.minifyCss,autoprefixer:e.autoprefixCss,docs:e.buildDocs});i&&(i.styleDocs=d.styleDocs);for(const e of l.dependencies)this.addWatchFile(e),t.addWatchFile(e);return r.diagnostics.push(...l.diagnostics),r.diagnostics.push(...d.diagnostics),(ie(d.diagnostics)||ie(l.diagnostics))&&this.error("Plugin CSS transform error"),r.stylesUpdated.some((e=>e.styleTag===o.tag&&e.styleMode===o.mode&&e.styleText===d.styleText))||r.stylesUpdated.push({styleTag:o.tag,styleMode:o.mode,styleText:d.styleText}),{code:d.output,map:d.map,moduleSideEffects:!1}}return null}}),wT=e=>{const t=new Map;return{name:"lazyComponentPlugin",resolveId(r){const n=e.entryModules.find((e=>e.entryKey===r));return n?(t.set(r,n),r):null},load(e){const r=t.get(e);return r?r.cmps.map(FT).join("\n"):null}}},FT=e=>`export { ${e.componentClassName} as ${e.tagName.replace(/-/g,"_")} } from '${pe(e.sourceFilePath)}';`,PT=(e={})=>({name:"stencilLoaderPlugin",resolveId(t){return t in e?{id:t}:null},load(t){return t in e?e[t]:null}}),IT=(e,t,r)=>({name:"pluginHelper",resolveId(n,i){if(/\0/.test(n))return null;if(n.endsWith("/")&&(n=n.slice(0,-1)),OT.has(n)){let a="";i&&(a=` from ${We(e.rootDir,i)}`);const o=ee(t.diagnostics);o.header="Node Polyfills Required",o.messageText=`For the import "${n}" to be bundled${a}, ensure the "rollup-plugin-node-polyfills" plugin is installed and added to the stencil config plugins (${r}). Please see the bundling docs for more information.\n Further information: https://stenciljs.com/docs/module-bundling`}return null}}),OT=new Set(["child_process","cluster","dgram","dns","module","net","readline","repl","tls","assert","console","constants","domain","events","path","punycode","querystring","_stream_duplex","_stream_passthrough","_stream_readable","_stream_writable","_stream_transform","string_decoder","sys","tty","crypto","fs","Buffer","buffer","global","http","https","os","process","stream","timers","url","util","vm","zlib"]),MT=(e,t)=>e.moduleMap.get(pe(t)),RT=(e,t,r,n,i)=>{if(Nt(i))return;const a=LT(n);return K(a)&&((e,t,r,n,i,a)=>{r.endsWith("package.json")&&yt(a,i);let o=Be(n);for(;"/"!==o&&""!==o;)t?(t.clearFileCache(o),t.sys.createDirSync(o)):e.createDirSync(o),o=Be(o);t?(t.clearFileCache(n),t.sys.writeFileSync(n,i)):e.writeFileSync(n,i)})(e,t,n,i,a,r),a},LT=e=>{if(!Tt.has(e)&&!wt(e)){try{const t=new XMLHttpRequest;if(t.open("GET",e,!1),t.send(null),t.status>=200&&t.status<=299)return t.responseText}catch(e){}Tt.add(e)}},BT=(e,t,r,n)=>{const i=e=>{const r=t.realpathSync(e);return K(r)?r:e},a=e=>{try{const n=t.readDirSync(e||".").sort(),i=[],a=[];for(const e of n){const t=r.statSync(e);if(!t)continue;const n=Le(e);t.isFile?i.push(n):t.isDirectory&&a.push(n)}return{files:i,directories:a}}catch(e){return{files:[],directories:[]}}};return n.createDirectory=e=>{t.createDirSync(e,{recursive:!0})},n.directoryExists=e=>r.statSync(e).isDirectory,n.exit=t.exit,n.fileExists=t=>{let i=t;Ce(t)&&(i=UT(e,n.getExecutingFilePath(),t));const a=r.statSync(i);return!(!a||!a.isFile)},n.getCurrentDirectory=t.getCurrentDirectory,n.getExecutingFilePath=t.getCompilerExecutingPath,n.getDirectories=e=>t.readDirSync(e).filter((e=>{const t=r.statSync(e);return!!(t&&t.exists&&t.isDirectory)})),n.readDirectory=(e,r,n,o,s)=>{const c=t.getCurrentDirectory();return Fl.matchFiles(e,r,n,o,l,c,s,a,i)},n.readFile=t=>{let i=t;const a=Ce(t);a&&(i=UT(e,n.getExecutingFilePath(),t));let o=r.readFileSync(i,{useCache:a});return"string"!=typeof o&&a&&(d?(o=LT(t),"string"==typeof o&&r.writeFile(i,o)):e.logger.error(`ts.sys can only request http resources from within a web worker: ${t}`)),o},n.writeFile=(e,t)=>r.writeFile(e,t),n},jT=(e,t)=>{var r,n;Fl.__patched||(e.sys&&(BT(e,e.sys,t,Fl.sys),r=e.sys,(n=Fl.sys).watchDirectory=(e,t,n)=>{const i=r.watchDirectory(e,(e=>{t(e)}),n);return{close(){i.close()}}},n.watchFile=(e,t)=>{const n=r.watchFile(e,((e,r)=>{"fileAdd"===r?t(e,Fl.FileWatcherEventKind.Created):"fileUpdate"===r?t(e,Fl.FileWatcherEventKind.Changed):"fileDelete"===r&&t(e,Fl.FileWatcherEventKind.Deleted)}));return{close(){n.close()}}}),KT(e,t),VT(),Fl.__patched=!0)};void(Fl.sys||(Fl.sys={args:[],createDirectory:O,directoryExists(){return!1},exit:O,fileExists(){return!1},getCurrentDirectory:m,getDirectories(){return[]},getExecutingFilePath(){return"./"},readDirectory(){return[]},readFile:O,newLine:"\n",resolvePath:He,useCaseSensitiveFileNames:!1,write:O,writeFile:O}));const UT=(e,t,r)=>{const n=new URL("..",t).href;if(r.startsWith(n)){const t=r.replace(n,"/"),i=e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@stencil/core",path:t});return pe(i)}return r},VT=()=>{const e=Fl.getParsedCommandLineOfConfigFile;Fl.getParsedCommandLineOfConfigFile=(t,r,n,i)=>{const a=e(t,r,n,i);return a.fileNames=a.fileNames.filter((e=>!(e.includes(".e2e.")||e.includes("/e2e.")||e.includes(".spec.")||e.includes("/spec.")))),a}},zT=(e,t,r)=>({isFile(n){const i=xe(n);if(t.statSync(i).isFile)return!0;if(bt(i)){if(!r.some((e=>i.endsWith(e))))return!1;const n=At(e,Dt,i);return"string"==typeof RT(e,t,Dt,n,i)}return!1},isDirectory(r){const n=xe(r);if(t.statSync(n).isDirectory)return!0;if(bt(n)){if("node_modules"===Le(n))return t.sys.createDirSync(n),t.clearFileCache(n),!0;if(ht(n))return!1;const r=r=>{const i=kt(e,Dt,n,r),a=gt(n,r),o=RT(e,t,Dt,i,a);return K(o)};return ut.some(r)}return!1},readFileSync(e){const r=t.readFileSync(e);if(K(r))return r;throw new Error(`file not found: ${e}`)},realpathSync(t){const r=xe(t);try{return e.realpathSync(r)}catch(e){if((n=e)instanceof Error&&n.hasOwnProperty("code")&&"ENOENT"!==e.code)throw e}var n;return r},extensions:r}),KT=(e,t)=>{let r;if(e.sys?r=e.sys.getCompilerExecutingPath():u&&(r=location.href),qT(r)){const r=Fl.__resolveModuleName=Fl.resolveModuleName;Fl.resolveModuleName=(n,i,a,o,s,c)=>HT(e,t,n,i)||r(n,i,a,o,s,c)}},WT=(e,t,r,n)=>{const i=Fl.__resolveModuleName||Fl.resolveModuleName;if(r&&i&&e.tsCompilerOptions){const a=BT(e,e.sys,t.fs,Fl.sys),o={...e.tsCompilerOptions};return o.resolveJsonModule=!0,i(r,n,o,a)}return null},HT=(e,t,r,n)=>{if(vt(r)){const e=Be(n);let i=Ve(e,r);if(i=pe($T(i,n)),Ue(i)&&!t.accessSync(i))return null;Ue(i)||i.startsWith(".")||i.startsWith("/")||(i="./"+i);return{resolvedModule:{extension:GT(i),resolvedFileName:i,packageId:{name:r,subModuleName:"",version:Kr}},failedLookupLocations:[]}}return JT(e,t,r,n)},JT=(e,t,r,n)=>{if(r.startsWith("@stencil/core")){return{resolvedModule:{extension:Fl.Extension.Dts,resolvedFileName:pe(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:"@stencil/core",path:"internal/index.d.ts"})),packageId:{name:r,subModuleName:"",version:Kr}},failedLookupLocations:[]}}const i=((e,t,r)=>{const n=((e,t,r)=>{if(t){const n=pe(e.sys.getLocalModulePath({rootDir:e.rootDir,moduleId:r,path:"package.json"}));let i=t.readFileSync(n);if(!K(i)&&d){const a=e.sys.getRemoteModuleUrl({moduleId:r,path:"package.json"});i=RT(e.sys,t,Dt,a,n)}if("string"==typeof i)try{return JSON.parse(i)}catch(e){}}return null})(e,t,r.moduleId);if(n){const i={...r,exts:[".js",".mjs"]},a=((e,t,r)=>{if(t){const n=zT(e,t,r.exts);return n.basedir=Be(r.containingFile),n.packageFilter=r.packageFilter,jr.sync(r.moduleId,n)}return null})(e.sys,t,i);if("string"==typeof a)return{resolvedUrl:a,packageJson:n}}return null})(e,t,{moduleId:r,containingFile:n});if(i){return{resolvedModule:{extension:Fl.Extension.Js,resolvedFileName:i.resolvedUrl,packageId:{name:r,subModuleName:"",version:i.packageJson.version}},failedLookupLocations:[]}}return null},$T=(e,t)=>(!Le(e).includes(".")&&K(t)&&(t=t.toLowerCase(),mt(t)?e+=".js":dt(t)?e+=".d.ts":_t(t)?e+=".tsx":pt(t)?e+=".ts":ft(t)&&(e+=".jsx")),e),GT=e=>dt(e)?Fl.Extension.Dts:_t(e)?Fl.Extension.Tsx:mt(e)?Fl.Extension.Js:ft(e)?Fl.Extension.Jsx:(e=>e.endsWith(".json"))(e)?Fl.Extension.Json:Fl.Extension.Ts,qT=e=>!c&&Ce(e),XT=(e,t,r)=>({name:`${t.id}TypescriptPlugin`,load(t){if(Ue(t)){const r=xe(t),n=MT(e,r);if(n){if(!n.sourceMapFileText)return{code:n.staticSourceFileText,map:null};const e=JSON.parse(n.sourceMapFileText);return e.sources=e.sources.map((e=>Le(e))),{code:n.staticSourceFileText,map:e}}}return null},transform(n,i){if(Ue(i)){const n=xe(i),a=MT(e,n);if(a&&a.cmps.length>0){const e=Fl.transpileModule(a.staticSourceFileText,{compilerOptions:r.tsCompilerOptions,fileName:a.sourceFilePath,transformers:{before:t.customTransformers}}),n=e.sourceMapText?JSON.parse(e.sourceMapText):null;return{code:e.outputText,map:n}}}return null}}),YT=(e,t)=>({name:"resolveIdWithTypeScript",async resolveId(r,n){if(/\0/.test(r)||!K(n))return null;const i=WT(e,t,r,n);if(i&&i.resolvedModule){const e=i.resolvedModule.resolvedFileName;if(K(e)&&!e.endsWith(".d.ts"))return e}return null}}),QT=["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","fs/promises","http","http2","https","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","trace_events","tty","url","util","v8","vm","worker_threads","zlib"];var ZT="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function eC(e,t,r){return e(r={path:t,exports:{},require:(e,t)=>(()=>{throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")})()},r.exports),r.exports}const tC="\\.{1,2}(?:\\/|$)",rC={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:tC,NO_DOT:"(?!\\.)",NO_DOTS:`(?!(?:^|\\/)${tC})`,NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:`(?!${tC})`,QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},nC={...rC,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};var iC={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Xe.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return!0===e?nC:rC}},aC=eC(((e,t)=>{const n="win32"===r.platform,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:a,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:s}=iC;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>o.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(s,"\\$1"),t.toPosixSlashes=e=>e.replace(i,"/"),t.removeBackslashes=e=>e.replace(a,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=r.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===n||"\\"===Xe.sep,t.escapeLast=(e,r,n)=>{const i=e.lastIndexOf(r,n);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,r,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let n=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n}}));const{CHAR_ASTERISK:oC,CHAR_AT:sC,CHAR_BACKWARD_SLASH:cC,CHAR_COMMA:lC,CHAR_DOT:uC,CHAR_EXCLAMATION_MARK:dC,CHAR_FORWARD_SLASH:pC,CHAR_LEFT_CURLY_BRACE:_C,CHAR_LEFT_PARENTHESES:fC,CHAR_LEFT_SQUARE_BRACKET:mC,CHAR_PLUS:gC,CHAR_QUESTION_MARK:hC,CHAR_RIGHT_CURLY_BRACE:yC,CHAR_RIGHT_PARENTHESES:vC,CHAR_RIGHT_SQUARE_BRACKET:bC}=iC,xC=e=>e===pC||e===cC,EC=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};const{MAX_LENGTH:SC,POSIX_REGEX_SOURCE:DC,REGEX_NON_SPECIAL_CHARS:TC,REGEX_SPECIAL_CHARS_BACKREF:CC,REPLACEMENTS:kC}=iC,AC=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>aC.escapeRegex(e))).join("..")}return r},NC=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,wC=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=kC[e]||e;const r={...t},n="number"==typeof r.maxLength?Math.min(SC,r.maxLength):SC;let i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);const a={type:"bos",value:"",output:r.prepend||""},o=[a],s=r.capture?"":"?:",c=aC.isWindows(t),l=iC.globChars(c),u=iC.extglobChars(l),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:_,ONE_CHAR:f,DOTS_SLASH:m,NO_DOT:g,NO_DOT_SLASH:h,NO_DOTS_SLASH:y,QMARK:v,QMARK_NO_DOT:b,STAR:x,START_ANCHOR:E}=l,S=e=>`(${s}(?:(?!${E}${e.dot?m:d}).)*?)`,D=r.dot?"":g,T=r.dot?v:b;let C=!0===r.bash?S(r):x;r.capture&&(C=`(${C})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const k={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=aC.removePrefix(e,k),i=e.length;const A=[],N=[],w=[];let F,P=a;const I=()=>k.index===i-1,O=k.peek=(t=1)=>e[k.index+t],M=k.advance=()=>e[++k.index]||"",R=()=>e.slice(k.index+1),L=(e="",t=0)=>{k.consumed+=e,k.index+=t},B=e=>{k.output+=null!=e.output?e.output:e.value,L(e.value)},j=()=>{let e=1;for(;"!"===O()&&("("!==O(2)||"?"===O(3));)M(),k.start++,e++;return e%2!=0&&(k.negated=!0,k.start++,!0)},U=e=>{k[e]++,w.push(e)},V=e=>{k[e]--,w.pop()},z=e=>{if("globstar"===P.type){const t=k.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||A.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(k.output=k.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=C,k.output+=P.output)}if(A.length&&"paren"!==e.type&&(A[A.length-1].inner+=e.value),(e.value||e.output)&&B(e),P&&"text"===P.type&&"text"===e.type)return P.value+=e.value,P.output=(P.output||"")+e.value,void 0;e.prev=P,o.push(e),P=e},K=(e,t)=>{const n={...u[t],conditions:1,inner:""};n.prev=P,n.parens=k.parens,n.output=k.output;const i=(r.capture?"(":"")+n.open;U("parens"),z({type:e,value:t,output:k.output?"":f}),z({type:"paren",extglob:!0,value:M(),output:i}),A.push(n)},W=e=>{let t,n=e.close+(r.capture?")":"");if("negate"===e.type){let i=C;e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=S(r)),(i!==C||I()||/^\)+$/.test(R()))&&(n=e.close=`)$))${i}`),e.inner.includes("*")&&(t=R())&&/^\.[^\\/.]+$/.test(t)&&(n=e.close=`)${t})${i})`),"bos"===e.prev.type&&(k.negatedExtglob=!0)}z({type:"paren",extglob:!0,value:F,output:n}),V("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(CC,((e,t,r,i,a,o)=>"\\"===i?(n=!0,e):"?"===i?t?t+i+(a?v.repeat(a.length):""):0===o?T+(a?v.repeat(a.length):""):v.repeat(r.length):"."===i?d.repeat(r.length):"*"===i?t?t+i+(a?C:""):C:t?e:`\\${e}`));return!0===n&&(i=!0===r.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),i===e&&!0===r.contains?(k.output=e,k):(k.output=aC.wrapOutput(i,k,t),k)}for(;!I();){if(F=M(),"\0"===F)continue;if("\\"===F){const e=O();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){F+="\\",z({type:"text",value:F});continue}const t=/^\\+/.exec(R());let n=0;if(t&&t[0].length>2&&(n=t[0].length,k.index+=n,n%2!=0&&(F+="\\")),!0===r.unescape?F=M():F+=M(),0===k.brackets){z({type:"text",value:F});continue}}if(k.brackets>0&&("]"!==F||"["===P.value||"[^"===P.value)){if(!1!==r.posix&&":"===F){const e=P.value.slice(1);if(e.includes("[")&&(P.posix=!0,e.includes(":"))){const e=P.value.lastIndexOf("["),t=P.value.slice(0,e),r=P.value.slice(e+2),n=DC[r];if(n){P.value=t+n,k.backtrack=!0,M(),a.output||1!==o.indexOf(P)||(a.output=f);continue}}}("["===F&&":"!==O()||"-"===F&&"]"===O())&&(F=`\\${F}`),"]"!==F||"["!==P.value&&"[^"!==P.value||(F=`\\${F}`),!0===r.posix&&"!"===F&&"["===P.value&&(F="^"),P.value+=F,B({value:F});continue}if(1===k.quotes&&'"'!==F){F=aC.escapeRegex(F),P.value+=F,B({value:F});continue}if('"'===F){k.quotes=1===k.quotes?0:1,!0===r.keepQuotes&&z({type:"text",value:F});continue}if("("===F){U("parens"),z({type:"paren",value:F});continue}if(")"===F){if(0===k.parens&&!0===r.strictBrackets)throw new SyntaxError(NC("opening","("));const e=A[A.length-1];if(e&&k.parens===e.parens+1){W(A.pop());continue}z({type:"paren",value:F,output:k.parens?")":"\\)"}),V("parens");continue}if("["===F){if(!0!==r.nobracket&&R().includes("]"))U("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(NC("closing","]"));F=`\\${F}`}z({type:"bracket",value:F});continue}if("]"===F){if(!0===r.nobracket||P&&"bracket"===P.type&&1===P.value.length){z({type:"text",value:F,output:`\\${F}`});continue}if(0===k.brackets){if(!0===r.strictBrackets)throw new SyntaxError(NC("opening","["));z({type:"text",value:F,output:`\\${F}`});continue}V("brackets");const e=P.value.slice(1);if(!0===P.posix||"^"!==e[0]||e.includes("/")||(F=`/${F}`),P.value+=F,B({value:F}),!1===r.literalBrackets||aC.hasRegexChars(e))continue;const t=aC.escapeRegex(P.value);if(k.output=k.output.slice(0,-P.value.length),!0===r.literalBrackets){k.output+=t,P.value=t;continue}P.value=`(${s}${t}|${P.value})`,k.output+=P.value;continue}if("{"===F&&!0!==r.nobrace){U("braces");const e={type:"brace",value:F,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};N.push(e),z(e);continue}if("}"===F){const e=N[N.length-1];if(!0===r.nobrace||!e){z({type:"text",value:F,output:F});continue}let t=")";if(!0===e.dots){const e=o.slice(),n=[];for(let t=e.length-1;t>=0&&(o.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=AC(n,r),k.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=k.output.slice(0,e.outputIndex),n=k.tokens.slice(e.tokensIndex);e.value=e.output="\\{",F=t="\\}",k.output=r;for(const e of n)k.output+=e.output||e.value}z({type:"brace",value:F,output:t}),V("braces"),N.pop();continue}if("|"===F){A.length>0&&A[A.length-1].conditions++,z({type:"text",value:F});continue}if(","===F){let e=F;const t=N[N.length-1];t&&"braces"===w[w.length-1]&&(t.comma=!0,e="|"),z({type:"comma",value:F,output:e});continue}if("/"===F){if("dot"===P.type&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",o.pop(),P=a;continue}z({type:"slash",value:F,output:_});continue}if("."===F){if(k.braces>0&&"dot"===P.type){"."===P.value&&(P.output=d);const e=N[N.length-1];P.type="dots",P.output+=F,P.value+=F,e.dots=!0;continue}if(k.braces+k.parens===0&&"bos"!==P.type&&"slash"!==P.type){z({type:"text",value:F,output:d});continue}z({type:"dot",value:F,output:d});continue}if("?"===F){if((!P||"("!==P.value)&&!0!==r.noextglob&&"("===O()&&"?"!==O(2)){K("qmark",F);continue}if(P&&"paren"===P.type){const e=O();let t=F;if("<"===e&&!aC.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===P.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(R()))&&(t=`\\${F}`),z({type:"text",value:F,output:t});continue}if(!0!==r.dot&&("slash"===P.type||"bos"===P.type)){z({type:"qmark",value:F,output:b});continue}z({type:"qmark",value:F,output:v});continue}if("!"===F){if(!0!==r.noextglob&&"("===O()&&("?"!==O(2)||!/[!=<:]/.test(O(3)))){K("negate",F);continue}if(!0!==r.nonegate&&0===k.index){j();continue}}if("+"===F){if(!0!==r.noextglob&&"("===O()&&"?"!==O(2)){K("plus",F);continue}if(P&&"("===P.value||!1===r.regex){z({type:"plus",value:F,output:p});continue}if(P&&("bracket"===P.type||"paren"===P.type||"brace"===P.type)||k.parens>0){z({type:"plus",value:F});continue}z({type:"plus",value:p});continue}if("@"===F){if(!0!==r.noextglob&&"("===O()&&"?"!==O(2)){z({type:"at",extglob:!0,value:F,output:""});continue}z({type:"text",value:F});continue}if("*"!==F){"$"!==F&&"^"!==F||(F=`\\${F}`);const e=TC.exec(R());e&&(F+=e[0],k.index+=e[0].length),z({type:"text",value:F});continue}if(P&&("globstar"===P.type||!0===P.star)){P.type="star",P.star=!0,P.value+=F,P.output=C,k.backtrack=!0,k.globstar=!0,L(F);continue}let t=R();if(!0!==r.noextglob&&/^\([^?]/.test(t)){K("star",F);continue}if("star"===P.type){if(!0===r.noglobstar){L(F);continue}const n=P.prev,i=n.prev,a="slash"===n.type||"bos"===n.type,o=i&&("star"===i.type||"globstar"===i.type);if(!0===r.bash&&(!a||t[0]&&"/"!==t[0])){z({type:"star",value:F,output:""});continue}const s=k.braces>0&&("comma"===n.type||"brace"===n.type),c=A.length&&("pipe"===n.type||"paren"===n.type);if(!a&&"paren"!==n.type&&!s&&!c){z({type:"star",value:F,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[k.index+4];if(r&&"/"!==r)break;t=t.slice(3),L("/**",3)}if("bos"===n.type&&I()){P.type="globstar",P.value+=F,P.output=S(r),k.output=P.output,k.globstar=!0,L(F);continue}if("slash"===n.type&&"bos"!==n.prev.type&&!o&&I()){k.output=k.output.slice(0,-(n.output+P.output).length),n.output=`(?:${n.output}`,P.type="globstar",P.output=S(r)+(r.strictSlashes?")":"|$)"),P.value+=F,k.globstar=!0,k.output+=n.output+P.output,L(F);continue}if("slash"===n.type&&"bos"!==n.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";k.output=k.output.slice(0,-(n.output+P.output).length),n.output=`(?:${n.output}`,P.type="globstar",P.output=`${S(r)}${_}|${_}${e})`,P.value+=F,k.output+=n.output+P.output,k.globstar=!0,L(F+M()),z({type:"slash",value:"/",output:""});continue}if("bos"===n.type&&"/"===t[0]){P.type="globstar",P.value+=F,P.output=`(?:^|${_}|${S(r)}${_})`,k.output=P.output,k.globstar=!0,L(F+M()),z({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-P.output.length),P.type="globstar",P.output=S(r),P.value+=F,k.output+=P.output,k.globstar=!0,L(F);continue}const n={type:"star",value:F,output:C};!0!==r.bash?!P||"bracket"!==P.type&&"paren"!==P.type||!0!==r.regex?(k.index!==k.start&&"slash"!==P.type&&"dot"!==P.type||("dot"===P.type?(k.output+=h,P.output+=h):!0===r.dot?(k.output+=y,P.output+=y):(k.output+=D,P.output+=D),"*"!==O()&&(k.output+=f,P.output+=f)),z(n)):(n.output=F,z(n)):(n.output=".*?","bos"!==P.type&&"slash"!==P.type||(n.output=D+n.output),z(n))}for(;k.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(NC("closing","]"));k.output=aC.escapeLast(k.output,"["),V("brackets")}for(;k.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(NC("closing",")"));k.output=aC.escapeLast(k.output,"("),V("parens")}for(;k.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(NC("closing","}"));k.output=aC.escapeLast(k.output,"{"),V("braces")}if(!0===r.strictSlashes||"star"!==P.type&&"bracket"!==P.type||z({type:"maybe_slash",value:"",output:`${_}?`}),!0===k.backtrack){k.output="";for(const e of k.tokens)k.output+=null!=e.output?e.output:e.value,e.suffix&&(k.output+=e.suffix)}return k};wC.fastpaths=(e,t)=>{const r={...t},n="number"==typeof r.maxLength?Math.min(SC,r.maxLength):SC,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=kC[e]||e;const a=aC.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:_,START_ANCHOR:f}=iC.globChars(a),m=r.dot?d:u,g=r.dot?p:u,h=r.capture?"":"?:";let y=!0===r.bash?".*?":_;r.capture&&(y=`(${y})`);const v=e=>!0===e.noglobstar?y:`(${h}(?:(?!${f}${e.dot?l:o}).)*?)`,b=e=>{switch(e){case"*":return`${m}${c}${y}`;case".*":return`${o}${c}${y}`;case"*.*":return`${m}${y}${o}${c}${y}`;case"*/*":return`${m}${y}${s}${c}${g}${y}`;case"**":return m+v(r);case"**/*":return`(?:${m}${v(r)}${s})?${g}${c}${y}`;case"**/*.*":return`(?:${m}${v(r)}${s})?${g}${y}${o}${c}${y}`;case"**/.*":return`(?:${m}${v(r)}${s})?${o}${c}${y}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=b(t[1]);if(!r)return;return r+o+t[2]}}},x=aC.removePrefix(e,{negated:!1,prefix:""});let E=b(x);return E&&!0!==r.strictSlashes&&(E+=`${s}?`),E};var FC=wC;const PC=(e,t,r=!1)=>{if(Array.isArray(e)){const n=e.map((e=>PC(e,t,r)));return e=>{for(const t of n){const r=t(e);if(r)return r}return!1}}const n=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!n)throw new TypeError("Expected pattern to be a non-empty string");const a=t||{},o=aC.isWindows(t),s=n?PC.compileRe(e,t):PC.makeRe(e,t,!1,!0),c=s.state;delete s.state;let l=()=>!1;if(a.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};l=PC(a.ignore,e,r)}const u=(r,n=!1)=>{const{isMatch:i,match:u,output:d}=PC.test(r,s,t,{glob:e,posix:o}),p={glob:e,state:c,regex:s,posix:o,input:r,output:d,match:u,isMatch:i};return"function"==typeof a.onResult&&a.onResult(p),!1===i?(p.isMatch=!1,!!n&&p):l(r)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!n&&p):("function"==typeof a.onMatch&&a.onMatch(p),!n||p)};return r&&(u.state=c),u};PC.test=(e,t,r,{glob:n,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=r||{},o=a.format||(i?aC.toPosixSlashes:null);let s=e===n,c=s&&o?o(e):e;return!1===s&&(c=o?o(e):e,s=c===n),!1!==s&&!0!==a.capture||(s=!0===a.matchBase||!0===a.basename?PC.matchBase(e,t,r,i):t.exec(c)),{isMatch:Boolean(s),match:s,output:c}},PC.matchBase=(e,t,r,n=aC.isWindows(r))=>(t instanceof RegExp?t:PC.makeRe(t,r)).test(Xe.basename(e)),PC.isMatch=(e,t,r)=>PC(t,r)(e),PC.parse=(e,t)=>Array.isArray(e)?e.map((e=>PC.parse(e,t))):FC(e,{...t,fastpaths:!1}),PC.scan=(e,t)=>((e,t)=>{const r=t||{},n=e.length-1,i=!0===r.parts||!0===r.scanToEnd,a=[],o=[],s=[];let c,l,u=e,d=-1,p=0,_=0,f=!1,m=!1,g=!1,h=!1,y=!1,v=!1,b=!1,x=!1,E=!1,S=!1,D=0,T={value:"",depth:0,isGlob:!1};const C=()=>d>=n,k=()=>(c=l,u.charCodeAt(++d));for(;d<n;){let e;if(l=k(),l!==cC){if(!0===v||l===_C){for(D++;!0!==C()&&(l=k());)if(l!==cC)if(l!==_C){if(!0!==v&&l===uC&&(l=k())===uC){if(f=T.isBrace=!0,g=T.isGlob=!0,S=!0,!0===i)continue;break}if(!0!==v&&l===lC){if(f=T.isBrace=!0,g=T.isGlob=!0,S=!0,!0===i)continue;break}if(l===yC&&(D--,0===D)){v=!1,f=T.isBrace=!0,S=!0;break}}else D++;else b=T.backslashes=!0,k();if(!0===i)continue;break}if(l!==pC){if(!0!==r.noext&&1==(l===gC||l===sC||l===oC||l===hC||l===dC)&&u.charCodeAt(d+1)===fC){if(g=T.isGlob=!0,h=T.isExtglob=!0,S=!0,l===dC&&d===p&&(E=!0),!0===i){for(;!0!==C()&&(l=k());)if(l!==cC){if(l===vC){g=T.isGlob=!0,S=!0;break}}else b=T.backslashes=!0,l=k();continue}break}if(l===oC){if(c===oC&&(y=T.isGlobstar=!0),g=T.isGlob=!0,S=!0,!0===i)continue;break}if(l===hC){if(g=T.isGlob=!0,S=!0,!0===i)continue;break}if(l===mC){for(;!0!==C()&&(e=k());)if(e!==cC){if(e===bC){m=T.isBracket=!0,g=T.isGlob=!0,S=!0;break}}else b=T.backslashes=!0,k();if(!0===i)continue;break}if(!0===r.nonegate||l!==dC||d!==p){if(!0!==r.noparen&&l===fC){if(g=T.isGlob=!0,!0===i){for(;!0!==C()&&(l=k());)if(l!==fC){if(l===vC){S=!0;break}}else b=T.backslashes=!0,l=k();continue}break}if(!0===g){if(S=!0,!0===i)continue;break}}else x=T.negated=!0,p++}else{if(a.push(d),o.push(T),T={value:"",depth:0,isGlob:!1},!0===S)continue;if(c===uC&&d===p+1){p+=2;continue}_=d+1}}else b=T.backslashes=!0,l=k(),l===_C&&(v=!0)}!0===r.noext&&(h=!1,g=!1);let A=u,N="",w="";p>0&&(N=u.slice(0,p),u=u.slice(p),_-=p),A&&!0===g&&_>0?(A=u.slice(0,_),w=u.slice(_)):!0===g?(A="",w=u):A=u,A&&""!==A&&"/"!==A&&A!==u&&xC(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),!0===r.unescape&&(w&&(w=aC.removeBackslashes(w)),A&&!0===b&&(A=aC.removeBackslashes(A)));const F={prefix:N,input:e,start:p,base:A,glob:w,isBrace:f,isBracket:m,isGlob:g,isExtglob:h,isGlobstar:y,negated:x,negatedExtglob:E};if(!0===r.tokens&&(F.maxDepth=0,xC(l)||o.push(T),F.tokens=o),!0===r.parts||!0===r.tokens){let t;for(let n=0;n<a.length;n++){const i=t?t+1:p,c=a[n],l=e.slice(i,c);r.tokens&&(0===n&&0!==p?(o[n].isPrefix=!0,o[n].value=N):o[n].value=l,EC(o[n]),F.maxDepth+=o[n].depth),0===n&&""===l||s.push(l),t=c}if(t&&t+1<e.length){const n=e.slice(t+1);s.push(n),r.tokens&&(o[o.length-1].value=n,EC(o[o.length-1]),F.maxDepth+=o[o.length-1].depth)}F.slashes=a,F.parts=s}return F})(e,t),PC.compileRe=(e,t,r=!1,n=!1)=>{if(!0===r)return e.output;const i=t||{},a=i.contains?"":"^",o=i.contains?"":"$";let s=`${a}(?:${e.output})${o}`;e&&!0===e.negated&&(s=`^(?!${s}).*$`);const c=PC.toRegex(s,t);return!0===n&&(c.state=e),c},PC.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=FC.fastpaths(e,t)),i.output||(i=FC(e,t)),PC.compileRe(i,t,r,n)},PC.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},PC.constants=iC;var IC=PC;function OC(e,{enter:t,leave:r}){return VC(e,null,t,r)}let MC=!1,RC=!1,LC=null;const BC={skip:()=>MC=!0,remove:()=>RC=!0,replace:e=>LC=e};function jC(e,t,r,n){e&&(null!==r?e[t][r]=n:e[t]=n)}function UC(e,t,r){e&&(null!==r?e[t].splice(r,1):delete e[t])}function VC(e,t,r,n,i,a){if(e){if(r){const n=MC,o=RC,s=LC;MC=!1,RC=!1,LC=null,r.call(BC,e,t,i,a),LC&&jC(t,i,a,e=LC),RC&&UC(t,i,a);const c=MC,l=RC;if(MC=n,RC=o,LC=s,c)return e;if(l)return null}for(const t in e){const i=e[t];if("object"==typeof i)if(Array.isArray(i))for(let a=0,o=0;a<i.length;a+=1,o+=1)null!==i[a]&&"string"==typeof i[a].type&&(VC(i[a],e,r,n,t,o)||a--);else null!==i&&"string"==typeof i.type&&VC(i,e,r,n,t,null)}if(n){const r=LC,o=RC;LC=null,RC=!1,n.call(BC,e,t,i,a),LC&&jC(t,i,a,e=LC),RC&&UC(t,i,a);const s=RC;if(LC=r,RC=o,s)return null}}return e}const zC={ArrayPattern(e,t){for(const r of t.elements)r&&zC[r.type](e,r)},AssignmentPattern(e,t){zC[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const r of t.properties)"RestElement"===r.type?zC.RestElement(e,r):zC[r.value.type](e,r.value)},RestElement(e,t){zC[t.argument.type](e,t.argument)}},KC=e=>{const t=[];return zC[e.type](t,e),t},WC={const:!0,let:!0};class HC{constructor(e={}){this.parent=e.parent,this.isBlockScope=!!e.block,this.declarations=Object.create(null),e.params&&e.params.forEach((e=>{KC(e).forEach((e=>{this.declarations[e]=!0}))}))}addDeclaration(e,t,r){!t&&this.isBlockScope?this.parent.addDeclaration(e,t,r):e.id&&KC(e.id).forEach((e=>{this.declarations[e]=!0}))}contains(e){return this.declarations[e]||!!this.parent&&this.parent.contains(e)}}function JC(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}const $C=new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "));$C.add("");const GC=e=>{let t=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");return(/\d/.test(t[0])||$C.has(t))&&(t=`_${t}`),t||"_"};class qC extends class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,r,n){e&&(null!==r?e[t][r]=n:e[t]=n)}remove(e,t,r){e&&(null!==r?e[t].splice(r,1):delete e[t])}}{constructor(e,t){super(),this.enter=e,this.leave=t}visit(e,t,r,n){if(e){if(this.enter){const i=this.should_skip,a=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,r,n),this.replacement&&(e=this.replacement,this.replace(t,r,n,e)),this.should_remove&&this.remove(t,r,n);const s=this.should_skip,c=this.should_remove;if(this.should_skip=i,this.should_remove=a,this.replacement=o,s)return e;if(c)return null}for(const t in e){const r=e[t];if("object"==typeof r)if(Array.isArray(r))for(let n=0;n<r.length;n+=1)null!==r[n]&&"string"==typeof r[n].type&&(this.visit(r[n],e,t,n)||n--);else null!==r&&"string"==typeof r.type&&this.visit(r,e,t,null)}if(this.leave){const i=this.replacement,a=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,r,n),this.replacement&&(e=this.replacement,this.replace(t,r,n,e)),this.should_remove&&this.remove(t,r,n);const o=this.should_remove;if(this.replacement=i,this.should_remove=a,o)return null}}return e}}function XC(e,{enter:t,leave:r}){return new qC(t,r).visit(e,null)}function YC(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=31&e;(e>>>=5)>0&&(r|=32),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[r]}while(e>0);return t}var QC=function e(t){this.bits=t instanceof e?t.bits.slice():[]};QC.prototype.add=function(e){this.bits[e>>5]|=1<<(31&e)},QC.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(31&e))};var ZC=function(e,t,r){this.start=e,this.end=t,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};ZC.prototype.appendLeft=function(e){this.outro+=e},ZC.prototype.appendRight=function(e){this.intro=this.intro+e},ZC.prototype.clone=function(){var e=new ZC(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},ZC.prototype.contains=function(e){return this.start<e&&e<this.end},ZC.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},ZC.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},ZC.prototype.edit=function(e,t,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},ZC.prototype.prependLeft=function(e){this.outro=e+this.outro},ZC.prototype.prependRight=function(e){this.intro=e+this.intro},ZC.prototype.split=function(e){var t=e-this.start,r=this.original.slice(0,t),n=this.original.slice(t);this.original=r;var i=new ZC(e,this.end,n);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},ZC.prototype.toString=function(){return this.intro+this.content+this.outro},ZC.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},ZC.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var ek=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?ek=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof t&&(ek=e=>t.from(e,"utf-8").toString("base64"));var tk=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=(e=>{for(var t=0,r=0,n=0,i=0,a="",o=0;o<e.length;o++){var s=e[o];if(o>0&&(a+=";"),0!==s.length){for(var c=0,l=[],u=0,d=s;u<d.length;u++){var p=d[u],_=YC(p[0]-c);c=p[0],p.length>1&&(_+=YC(p[1]-t)+YC(p[2]-r)+YC(p[3]-n),t=p[1],r=p[2],n=p[3]),5===p.length&&(_+=YC(p[4]-i),i=p[4]),l.push(_)}a+=l.join(",")}}return a})(e.mappings)};function rk(e){var t=e.split("\n"),r=t.filter((e=>/^\t+/.test(e))),n=t.filter((e=>/^ {2,}/.test(e)));if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";var i=n.reduce(((e,t)=>{var r=/^ +/.exec(t)[0].length;return Math.min(r,e)}),1/0);return new Array(i+1).join(" ")}function nk(e,t){var r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}tk.prototype.toString=function(){return JSON.stringify(this)},tk.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+ek(this.toString())};var ik=Object.prototype.toString;function ak(e){for(var t=e.split("\n"),r=[],n=0,i=0;n<t.length;n++)r.push(i),i+=t[n].length+1;return e=>{for(var t=0,n=r.length;t<n;){var i=t+n>>1;e<r[i]?n=i:t=i+1}var a=t-1;return{line:a,column:e-r[a]}}}var ok=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};ok.prototype.addEdit=function(e,t,r,n){if(t.length){var i=[this.generatedCodeColumn,e,r.line,r.column];n>=0&&i.push(n),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},ok.prototype.addUneditedChunk=function(e,t,r,n,i){for(var a=t.start,o=!0;a<t.end;)(this.hires||o||i.has(a))&&this.rawSegments.push([this.generatedCodeColumn,e,n.line,n.column]),"\n"===r[a]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0):(n.column+=1,this.generatedCodeColumn+=1,o=!1),a+=1;this.pending=null},ok.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var r=0;r<t.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var sk="\n",ck={insertLeft:!1,insertRight:!1,storeName:!1},lk=function(e,t){void 0===t&&(t={});var r=new ZC(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new QC},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:rk(e)}}),this.byStart[0]=r,this.byEnd[e.length]=r};function uk(e,t){if("MemberExpression"===e.type)return!e.computed&&uk(e.object,e);if("Identifier"===e.type){if(!t)return!0;switch(t.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"FieldDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}lk.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)},lk.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},lk.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.appendLeft(t):this.intro+=t,this},lk.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.appendRight(t):this.outro+=t,this},lk.prototype.clone=function(){for(var e=new lk(this.original,{filename:this.filename}),t=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[r.start]=r,e.byEnd[r.end]=r;var n=t.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),t=n}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new QC(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e},lk.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var r=Object.keys(this.storedNames),n=new ok(e.hires),i=ak(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{var a=i(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,a,e.storeName?r.indexOf(e.original):-1):n.addUneditedChunk(0,e,t.original,a,t.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?nk(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:r,mappings:n.raw}},lk.prototype.generateMap=function(e){return new tk(this.generateDecodedMap(e))},lk.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},lk.prototype.indent=function(e,t){var r,n=/^[^\r\n]/gm;if(r=e,"[object Object]"===ik.call(r)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var i={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(var t=e[0];t<e[1];t+=1)i[t]=!0}));var a=!1!==t.indentStart,o=t=>a?""+e+t:(a=!0,t);this.intro=this.intro.replace(n,o);for(var s=0,c=this.firstChunk;c;){var l=c.end;if(c.edited)i[s]||(c.content=c.content.replace(n,o),c.content.length&&(a="\n"===c.content[c.content.length-1]));else for(s=c.start;s<l;){if(!i[s]){var u=this.original[s];"\n"===u?a=!0:"\r"!==u&&a&&(a=!1,s===c.start?c.prependRight(e):(this._splitChunk(c,s),(c=c.next).prependRight(e)))}s+=1}s=c.end,c=c.next}return this.outro=this.outro.replace(n,o),this},lk.prototype.insert=()=>{throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},lk.prototype.insertLeft=function(e,t){return ck.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),ck.insertLeft=!0),this.appendLeft(e,t)},lk.prototype.insertRight=function(e,t){return ck.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),ck.insertRight=!0),this.prependRight(e,t)},lk.prototype.move=function(e,t,r){if(r>=e&&r<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(r);var n=this.byStart[e],i=this.byEnd[t],a=n.previous,o=i.next,s=this.byStart[r];if(!s&&i===this.lastChunk)return this;var c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=n),s&&(s.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=c,i.next=s||null,c||(this.firstChunk=n),s||(this.lastChunk=i),this},lk.prototype.overwrite=function(e,t,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===n&&(ck.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),ck.storeName=!0),n={storeName:!0});var i=void 0!==n&&n.storeName,a=void 0!==n&&n.contentOnly;if(i){var o=this.original.slice(e,t);this.storedNames[o]=!0}var s=this.byStart[e],c=this.byEnd[t];if(s){if(t>s.end&&s.next!==this.byStart[s.end])throw new Error("Cannot overwrite across a split point");if(s.edit(r,i,a),s!==c){for(var l=s.next;l!==c;)l.edit("",!1),l=l.next;l.edit("",!1)}}else{var u=new ZC(e,t,"").edit(r,i);c.next=u,u.previous=c}return this},lk.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},lk.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byEnd[e];return r?r.prependLeft(t):this.intro=t+this.intro,this},lk.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var r=this.byStart[e];return r?r.prependRight(t):this.outro=t+this.outro,this},lk.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var r=this.byStart[e];r;)r.intro="",r.outro="",r.edit(""),r=t>r.end?this.byStart[r.end]:null;return this},lk.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},lk.prototype.lastLine=function(){var e=this.outro.lastIndexOf(sk);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(-1!==(e=r.outro.lastIndexOf(sk)))return r.outro.substr(e+1)+t;t=r.outro+t}if(r.content.length>0){if(-1!==(e=r.content.lastIndexOf(sk)))return r.content.substr(e+1)+t;t=r.content+t}if(r.intro.length>0){if(-1!==(e=r.intro.lastIndexOf(sk)))return r.intro.substr(e+1)+t;t=r.intro+t}}while(r=r.previous);return-1!==(e=this.intro.lastIndexOf(sk))?this.intro.substr(e+1)+t:this.intro+t},lk.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var r="",n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t)return r;n=n.next}if(n&&n.edited&&n.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=n;n;){!n.intro||i===n&&n.start!==e||(r+=n.intro);var a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r},lk.prototype.snip=function(e,t){var r=this.clone();return r.remove(0,e),r.remove(t,r.original.length),r},lk.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,r=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=r?this.byStart[t.end]:this.byEnd[t.start]}},lk.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var r=ak(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+e.original+'")')}var n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0},lk.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},lk.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},lk.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},lk.prototype.trimLines=function(){return this.trim("[\\r\\n]")},lk.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},lk.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.lastChunk;do{var n=r.end,i=r.trimEnd(t);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1},lk.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},lk.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.firstChunk;do{var n=r.end,i=r.trimStart(t);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1},lk.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var dk="win32"===r.platform;if(dk)var pk=/(.*?)(?:[\/\\]+|$)/g;else pk=/(.*?)(?:[\/]+|$)/g;if(dk)var _k=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else _k=/^[\/]*/;var fk=bk;bk.realpath=bk,bk.sync=xk,bk.realpathSync=xk,bk.monkeypatch=()=>{jt.realpath=bk,jt.realpathSync=xk},bk.unmonkeypatch=()=>{jt.realpath=mk,jt.realpathSync=gk};var mk=jt.realpath,gk=jt.realpathSync,hk=r.version,yk=/^v[0-5]\./.test(hk);function vk(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function bk(e,t,n){if(yk)return mk(e,t,n);"function"==typeof t&&(n=t,t=null),mk(e,t,((i,a)=>{vk(i)?((e,t,n)=>{if("function"!=typeof n&&(n=(e=>"function"==typeof e?e:e=>{if(e){if(r.throwDeprecation)throw e;if(!r.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);r.traceDeprecation?console.trace(t):console.error(t)}}})(t),t=null),e=Xe.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return r.nextTick(n.bind(null,null,t[e]));var i,a,o,s,c=e,l={},u={};function d(){var t=_k.exec(e);i=t[0].length,a=t[0],o=t[0],s="",dk&&!u[o]?jt.lstat(o,(e=>{if(e)return n(e);u[o]=!0,p()})):r.nextTick(p)}function p(){if(i>=e.length)return t&&(t[c]=e),n(null,e);pk.lastIndex=i;var l=pk.exec(e);return s=a,a+=l[0],o=s+l[1],i=pk.lastIndex,u[o]||t&&t[o]===o?r.nextTick(p):t&&Object.prototype.hasOwnProperty.call(t,o)?m(t[o]):jt.lstat(o,_)}function _(e,i){if(e)return n(e);if(!i.isSymbolicLink())return u[o]=!0,t&&(t[o]=o),r.nextTick(p);if(!dk){var a=i.dev.toString(32)+":"+i.ino.toString(32);if(l.hasOwnProperty(a))return f(null,l[a],o)}jt.stat(o,(e=>{if(e)return n(e);jt.readlink(o,((e,t)=>{dk||(l[a]=t),f(e,t)}))}))}function f(e,r,i){if(e)return n(e);var a=Xe.resolve(s,r);t&&(t[i]=a),m(a)}function m(t){e=Xe.resolve(t,e.slice(i)),d()}d()})(e,t,n):n(i,a)}))}function xk(e,t){if(yk)return gk(e,t);try{return gk(e,t)}catch(r){if(vk(r))return((e,t)=>{if(e=Xe.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,n,i,a,o=e,s={},c={};function l(){var t=_k.exec(e);r=t[0].length,n=t[0],i=t[0],a="",dk&&!c[i]&&(jt.lstatSync(i),c[i]=!0)}for(l();r<e.length;){pk.lastIndex=r;var u=pk.exec(e);if(a=n,n+=u[0],i=a+u[1],r=pk.lastIndex,!(c[i]||t&&t[i]===i)){var d;if(t&&Object.prototype.hasOwnProperty.call(t,i))d=t[i];else{var p=jt.lstatSync(i);if(!p.isSymbolicLink()){c[i]=!0,t&&(t[i]=i);continue}var _=null;if(!dk){var f=p.dev.toString(32)+":"+p.ino.toString(32);s.hasOwnProperty(f)&&(_=s[f])}null===_&&(jt.statSync(i),_=jt.readlinkSync(i)),d=Xe.resolve(a,_),t&&(t[i]=d),dk||(s[f]=_)}e=Xe.resolve(d,e.slice(r)),l()}}return t&&(t[o]=e),e})(e,t);throw r}}var Ek=Array.isArray||(e=>"[object Array]"===Object.prototype.toString.call(e)),Sk=Dk;function Dk(e,t,r){e instanceof RegExp&&(e=Tk(e,r)),t instanceof RegExp&&(t=Tk(t,r));var n=Ck(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function Tk(e,t){var r=t.match(e);return r?r[0]:null}function Ck(e,t,r){var n,i,a,o,s,c=r.indexOf(e),l=r.indexOf(t,c+1),u=c;if(c>=0&&l>0){for(n=[],a=r.length;u>=0&&!s;)u==c?(n.push(u),c=r.indexOf(e,u+1)):1==n.length?s=[n.pop(),l]:((i=n.pop())<a&&(a=i,o=l),l=r.indexOf(t,u+1)),u=c<l&&c>=0?c:l;n.length&&(s=[a,o])}return s}Dk.range=Ck;var kk="\0SLASH"+Math.random()+"\0",Ak="\0OPEN"+Math.random()+"\0",Nk="\0CLOSE"+Math.random()+"\0",wk="\0COMMA"+Math.random()+"\0",Fk="\0PERIOD"+Math.random()+"\0";function Pk(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Ik(e){return e.split(kk).join("\\").split(Ak).join("{").split(Nk).join("}").split(wk).join(",").split(Fk).join(".")}function Ok(e){if(!e)return[""];var t=[],r=Sk("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,a=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var s=Ok(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function Mk(e){return"{"+e+"}"}function Rk(e){return/^-?0\d/.test(e)}function Lk(e,t){return e<=t}function Bk(e,t){return e>=t}function jk(e,t){var r=[],n=Sk("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i,a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),s=a||o,c=n.body.indexOf(",")>=0;if(!s&&!c)return n.post.match(/,.*\}/)?jk(e=n.pre+"{"+n.body+Nk+n.post):[e];if(s)i=n.body.split(/\.\./);else if(1===(i=Ok(n.body)).length&&1===(i=jk(i[0],!1).map(Mk)).length)return(d=n.post.length?jk(n.post,!1):[""]).map((e=>n.pre+i[0]+e));var l,u=n.pre,d=n.post.length?jk(n.post,!1):[""];if(s){var p=Pk(i[0]),_=Pk(i[1]),f=Math.max(i[0].length,i[1].length),m=3==i.length?Math.abs(Pk(i[2])):1,g=Lk;_<p&&(m*=-1,g=Bk);var h=i.some(Rk);l=[];for(var y=p;g(y,_);y+=m){var v;if(o)"\\"===(v=String.fromCharCode(y))&&(v="");else if(v=String(y),h){var b=f-v.length;if(b>0){var x=new Array(b+1).join("0");v=y<0?"-"+x+v.slice(1):x+v}}l.push(v)}}else l=((e,t)=>{for(var r=[],n=0;n<e.length;n++){var i=jk(e[n],!1);Ek(i)?r.push.apply(r,i):r.push(i)}return r})(i);for(var E=0;E<l.length;E++)for(var S=0;S<d.length;S++){var D=u+l[E]+d[S];(!t||s||D)&&r.push(D)}return r}var Uk=qk;qk.Minimatch=Xk;var Vk={sep:"/"};try{Vk=Xe}catch(e){}var zk=qk.GLOBSTAR=Xk.GLOBSTAR={},Kk={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Wk="[^/]",Hk="[^/]*?",Jk="().*{}+?[]^$\\!".split("").reduce(((e,t)=>(e[t]=!0,e)),{}),$k=/\/+/;function Gk(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((e=>{r[e]=t[e]})),Object.keys(e).forEach((t=>{r[t]=e[t]})),r}function qk(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Xk(t,r).match(e))}function Xk(e,t){if(!(this instanceof Xk))return new Xk(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==Vk.sep&&(e=e.split(Vk.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function Yk(e,t){if(t||(t=this instanceof Xk?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:(r=e)?("{}"===r.substr(0,2)&&(r="\\{\\}"+r.substr(2)),jk((e=>e.split("\\\\").join(kk).split("\\{").join(Ak).split("\\}").join(Nk).split("\\,").join(wk).split("\\.").join(Fk))(r),!0).map(Ik)):[];var r}qk.filter=(e,t)=>(t=t||{},(r,n,i)=>qk(r,e,t)),qk.defaults=e=>{if(!e||!Object.keys(e).length)return qk;var t=qk,r=(r,n,i)=>t.minimatch(r,n,Gk(e,i));return r.Minimatch=(r,n)=>new t.Minimatch(r,Gk(e,n)),r},Xk.defaults=e=>e&&Object.keys(e).length?qk.defaults(e).Minimatch:Xk,Xk.prototype.debug=()=>{},Xk.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return this.comment=!0,void 0;if(!e)return this.empty=!0,void 0;this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,r),r=this.globParts=r.map((e=>e.split($k))),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,r),this.set=r}},Xk.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(!this.options.nonegate){for(var n=0,i=e.length;n<i&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}},qk.braceExpand=(e,t)=>Yk(e,t),Xk.prototype.braceExpand=Yk,Xk.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return zk;if(""===e)return"";var n,i="",a=!!r.nocase,o=!1,s=[],c=[],l=!1,u=-1,d=-1,p="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=this;function f(){if(n){switch(n){case"*":i+=Hk,a=!0;break;case"?":i+=Wk,a=!0;break;default:i+="\\"+n}_.debug("clearStateChar %j %j",n,i),n=!1}}for(var m,g=0,h=e.length;g<h&&(m=e.charAt(g));g++)if(this.debug("%s\t%s %s %j",e,g,i,m),o&&Jk[m])i+="\\"+m,o=!1;else switch(m){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,g,i,m),l){this.debug(" in class"),"!"===m&&g===d+1&&(m="^"),i+=m;continue}_.debug("call clearStateChar %j",n),f(),n=m,r.noext&&f();continue;case"(":if(l){i+="(";continue}if(!n){i+="\\(";continue}s.push({type:n,start:g-1,reStart:i.length,open:Kk[n].open,close:Kk[n].close}),i+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,i),n=!1;continue;case")":if(l||!s.length){i+="\\)";continue}f(),a=!0;var y=s.pop();i+=y.close,"!"===y.type&&c.push(y),y.reEnd=i.length;continue;case"|":if(l||!s.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),l){i+="\\"+m;continue}l=!0,d=g,u=i.length,i+=m;continue;case"]":if(g===d+1||!l){i+="\\"+m,o=!1;continue}if(l){var v=e.substring(d+1,g);try{RegExp("["+v+"]")}catch(e){var b=this.parse(v,Qk);i=i.substr(0,u)+"\\["+b[0]+"\\]",a=a||b[1],l=!1;continue}}a=!0,l=!1,i+=m;continue;default:f(),o?o=!1:!Jk[m]||"^"===m&&l||(i+="\\"),i+=m}for(l&&(v=e.substr(d+1),b=this.parse(v,Qk),i=i.substr(0,u)+"\\["+b[0],a=a||b[1]),y=s.pop();y;y=s.pop()){var x=i.slice(y.reStart+y.open.length);this.debug("setting tail",i,y),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>(r||(r="\\"),t+t+r+"|"))),this.debug("tail=%j\n %s",x,x,y,i);var E="*"===y.type?Hk:"?"===y.type?Wk:"\\"+y.type;a=!0,i=i.slice(0,y.reStart)+E+"\\("+x}f(),o&&(i+="\\\\");var S=!1;switch(i.charAt(0)){case".":case"[":case"(":S=!0}for(var D=c.length-1;D>-1;D--){var T=c[D],C=i.slice(0,T.reStart),k=i.slice(T.reStart,T.reEnd-8),A=i.slice(T.reEnd-8,T.reEnd),N=i.slice(T.reEnd);A+=N;var w=C.split("(").length-1,F=N;for(g=0;g<w;g++)F=F.replace(/\)[+*?]?/,"");var P="";""===(N=F)&&t!==Qk&&(P="$"),i=C+k+N+P+A}if(""!==i&&a&&(i="(?=.)"+i),S&&(i=p+i),t===Qk)return[i,a];if(!a)return(e=>e.replace(/\\(.)/g,"$1"))(e);var I=r.nocase?"i":"";try{var O=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return O._glob=e,O._src=i,O};var Qk={};qk.makeRe=(e,t)=>new Xk(e,t||{}).makeRe(),Xk.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?Hk:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map((e=>e.map((e=>e===zk?r:"string"==typeof e?(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(e):e._src)).join("\\/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},qk.match=(e,t,r)=>{var n=new Xk(t,r=r||{});return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e},Xk.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==Vk.sep&&(e=e.split(Vk.sep).join("/")),e=e.split($k),this.debug(this.pattern,"split",e);var n,i,a=this.set;for(this.debug(this.pattern,"set",a),i=e.length-1;i>=0&&!(n=e[i]);i--);for(i=0;i<a.length;i++){var o=a[i],s=e;if(r.matchBase&&1===o.length&&(s=[n]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},Xk.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,o=e.length,s=t.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var c,l=t[a],u=e[i];if(this.debug(t,l,u),!1===l)return!1;if(l===zk){this.debug("GLOBSTAR",[t,l,u]);var d=i,p=a+1;if(p===s){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;d<o;){var _=e[d];if(this.debug("\nglobstar while",e,d,t,p,_),this.matchOne(e.slice(d),t.slice(p),r))return this.debug("globstar found match!",d,o,_),!0;if("."===_||".."===_||!n.dot&&"."===_.charAt(0)){this.debug("dot detected!",e,d,t,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,p),d!==o))}if("string"==typeof l?(c=n.nocase?u.toLowerCase()===l.toLowerCase():u===l,this.debug("string match",l,u,c)):(c=u.match(l),this.debug("pattern match",l,u,c)),!c)return!1}if(i===o&&a===s)return!0;if(i===o)return r;if(a===s)return i===o-1&&""===e[i];throw new Error("wtf?")};var Zk,eA=eC((e=>{"function"==typeof Object.create?e.exports=(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=(e,t)=>{if(t){e.super_=t;var r=()=>{};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),tA=eC((e=>{try{var t=Rt;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=eA}})),rA="object"==typeof Reflect?Reflect:null,nA=rA&&"function"==typeof rA.apply?rA.apply:(e,t,r)=>Function.prototype.apply.call(e,t,r);Zk=rA&&"function"==typeof rA.ownKeys?rA.ownKeys:Object.getOwnPropertySymbols?e=>Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)):e=>Object.getOwnPropertyNames(e);var iA=Number.isNaN||(e=>e!=e);function aA(){aA.init.call(this)}var oA=aA;aA.EventEmitter=aA,aA.prototype._events=void 0,aA.prototype._eventsCount=0,aA.prototype._maxListeners=void 0;var sA=10;function cA(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function lA(e){return void 0===e._maxListeners?aA.defaultMaxListeners:e._maxListeners}function uA(e,t,r,n){var i,a,o,s;if(cA(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),void 0===o)o=a[t]=r,++e._eventsCount;else if("function"==typeof o?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=lA(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return e}function dA(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function pA(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=dA.bind(n);return i.listener=r,n.wrapFn=i,i}function _A(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?(e=>{for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t})(i):mA(i,i.length)}function fA(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function mA(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function gA(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){n.once&&e.removeEventListener(t,i),r(a)}))}}Object.defineProperty(aA,"defaultMaxListeners",{enumerable:!0,get:()=>sA,set(e){if("number"!=typeof e||e<0||iA(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");sA=e}}),aA.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},aA.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||iA(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},aA.prototype.getMaxListeners=function(){return lA(this)},aA.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)nA(s,this,t);else{var c=s.length,l=mA(s,c);for(r=0;r<c;++r)nA(l[r],this,t)}return!0},aA.prototype.addListener=function(e,t){return uA(this,e,t,!1)},aA.prototype.on=aA.prototype.addListener,aA.prototype.prependListener=function(e,t){return uA(this,e,t,!0)},aA.prototype.once=function(e,t){return cA(t),this.on(e,pA(this,e,t)),this},aA.prototype.prependOnceListener=function(e,t){return cA(t),this.prependListener(e,pA(this,e,t)),this},aA.prototype.removeListener=function(e,t){var r,n,i,a,o;if(cA(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():!((e,t)=>{for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()})(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},aA.prototype.off=aA.prototype.removeListener,aA.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n<a.length;++n)"removeListener"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},aA.prototype.listeners=function(e){return _A(this,e,!0)},aA.prototype.rawListeners=function(e){return _A(this,e,!1)},aA.listenerCount=(e,t)=>"function"==typeof e.listenerCount?e.listenerCount(t):fA.call(e,t),aA.prototype.listenerCount=fA,aA.prototype.eventNames=function(){return this._eventsCount>0?Zk(this._events):[]},oA.once=(e,t)=>new Promise(((r,n)=>{function i(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}gA(e,t,a,{once:!0}),"error"!==t&&((e,t,r)=>{"function"==typeof e.on&&gA(e,"error",t,{once:!0})})(e,i)}));var hA=Object.getOwnPropertySymbols,yA=Object.prototype.hasOwnProperty,vA=Object.prototype.propertyIsEnumerable;function bA(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var xA=(()=>{try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((e=>t[e])).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((e=>{n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}})()?Object.assign:function(e,t){for(var r,n,i=bA(e),a=1;a<arguments.length;a++){for(var o in r=Object(arguments[a]))yA.call(r,o)&&(i[o]=r[o]);if(hA){n=hA(r);for(var s=0;s<n.length;s++)vA.call(r,n[s])&&(i[n[s]]=r[n[s]])}}return i},EA=e=>e instanceof t,SA=Rt.inherits,DA=eC((function(e,t){var n=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}r=1;for(var i=arguments,a=i.length,s=String(e).replace(n,(e=>{if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}})),c=i[r];r<a;c=i[++r])f(c)||!v(c)?s+=" "+c:s+=" "+o(c);return s},t.deprecate=function(e,n){if(h(ZT.process))return function(){return t.deprecate(e,n).apply(this,arguments)};if(!0===r.noDeprecation)return e;var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var i,a={};function o(e,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),h(n.showHidden)&&(n.showHidden=!1),h(n.depth)&&(n.depth=2),h(n.colors)&&(n.colors=!1),h(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),l(n,e,n.depth)}function s(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function c(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&E(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=l(e,i,n)),i}var a=((e,t)=>{if(h(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):f(t)?e.stylize("null","null"):void 0})(e,r);if(a)return a;var o=Object.keys(r),s=(e=>{var t={};return e.forEach(((e,r)=>{t[e]=!0})),t})(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),x(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return u(r);if(0===o.length){if(E(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return e.stylize(Date.prototype.toString.call(r),"date");if(x(r))return u(r)}var v,S="",D=!1,T=["{","}"];return p(r)&&(D=!0,T=["[","]"]),E(r)&&(S=" [Function"+(r.name?": "+r.name:"")+"]"),y(r)&&(S=" "+RegExp.prototype.toString.call(r)),b(r)&&(S=" "+Date.prototype.toUTCString.call(r)),x(r)&&(S=" "+u(r)),0!==o.length||D&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),v=D?((e,t,r,n,i)=>{for(var a=[],o=0,s=t.length;o<s;++o)k(t,String(o))?a.push(d(e,t,r,n,String(o),!0)):a.push("");return i.forEach((i=>{i.match(/^\d+$/)||a.push(d(e,t,r,n,i,!0))})),a})(e,r,n,s,o):o.map((t=>d(e,r,n,s,t,D))),e.seen.pop(),((e,t,r)=>e.reduce(((e,t)=>(t.indexOf("\n")>=0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1)),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1])(v,S,T)):T[0]+S+T[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),k(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=f(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((e=>" "+e)).join("\n").substr(2):"\n"+s.split("\n").map((e=>" "+e)).join("\n")):s=e.stylize("[Circular]","special")),h(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function p(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function f(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function h(e){return void 0===e}function y(e){return v(e)&&"[object RegExp]"===S(e)}function v(e){return"object"==typeof e&&null!==e}function b(e){return v(e)&&"[object Date]"===S(e)}function x(e){return v(e)&&("[object Error]"===S(e)||e instanceof Error)}function E(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function D(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=e=>{if(h(i)&&(i=""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=()=>{};return a[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=_,t.isNull=f,t.isNullOrUndefined=e=>null==e,t.isNumber=m,t.isString=g,t.isSymbol=e=>"symbol"==typeof e,t.isUndefined=h,t.isRegExp=y,t.isObject=v,t.isDate=b,t.isError=x,t.isFunction=E,t.isPrimitive=e=>null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e,t.isBuffer=EA;var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var e=new Date,t=[D(e.getHours()),D(e.getMinutes()),D(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=SA,t._extend=(e,t)=>{if(!t||!v(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}})),TA=eC((function(e){function t(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function r(e){return ZT.Buffer&&"function"==typeof ZT.Buffer.isBuffer?ZT.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var n=Object.prototype.hasOwnProperty,i=Array.prototype.slice,a="foo"===(()=>{}).name;function o(e){return Object.prototype.toString.call(e)}function s(e){return!r(e)&&"function"==typeof ZT.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var c=e.exports=f,l=/\s*function\s+([^\(\s]*)\s*/;function u(e){if(DA.isFunction(e)){if(a)return e.name;var t=e.toString().match(l);return t&&t[1]}}function d(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function p(e){if(a||!DA.isFunction(e))return DA.inspect(e);var t=u(e);return"[Function"+(t?": "+t:"")+"]"}function _(e,t,r,n,i){throw new c.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function f(e,t){e||_(e,!0,t,"==",c.ok)}function m(e,n,a,c){if(e===n)return!0;if(r(e)&&r(n))return 0===t(e,n);if(DA.isDate(e)&&DA.isDate(n))return e.getTime()===n.getTime();if(DA.isRegExp(e)&&DA.isRegExp(n))return e.source===n.source&&e.global===n.global&&e.multiline===n.multiline&&e.lastIndex===n.lastIndex&&e.ignoreCase===n.ignoreCase;if(null!==e&&"object"==typeof e||null!==n&&"object"==typeof n){if(s(e)&&s(n)&&o(e)===o(n)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===t(new Uint8Array(e.buffer),new Uint8Array(n.buffer));if(r(e)!==r(n))return!1;var l=(c=c||{actual:[],expected:[]}).actual.indexOf(e);return-1!==l&&l===c.expected.indexOf(n)||(c.actual.push(e),c.expected.push(n),((e,t,r,n)=>{if(null==e||null==t)return!1;if(DA.isPrimitive(e)||DA.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var a=g(e),o=g(t);if(a&&!o||!a&&o)return!1;if(a)return m(e=i.call(e),t=i.call(t),r);var s,c,l=v(e),u=v(t);if(l.length!==u.length)return!1;for(l.sort(),u.sort(),c=l.length-1;c>=0;c--)if(l[c]!==u[c])return!1;for(c=l.length-1;c>=0;c--)if(!m(e[s=l[c]],t[s],r,n))return!1;return!0})(e,n,a,c))}return a?e===n:e==n}function g(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function h(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function y(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=(e=>{var t;try{e()}catch(e){t=e}return t})(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&_(i,r,"Missing expected exception"+n);var a="string"==typeof n,o=!e&&i&&!r;if((!e&&DA.isError(i)&&a&&h(i,r)||o)&&_(i,r,"Got unwanted exception"+n),e&&i&&r&&!h(i,r)||!e&&i)throw i}c.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=(e=>d(p(e.actual),128)+" "+e.operator+" "+d(p(e.expected),128))(this),this.generatedMessage=!0);var t=e.stackStartFunction||_;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=u(t),a=n.indexOf("\n"+i);if(a>=0){var o=n.indexOf("\n",a+1);n=n.substring(o+1)}this.stack=n}}},DA.inherits(c.AssertionError,Error),c.fail=_,c.ok=f,c.equal=(e,t,r)=>{e!=t&&_(e,t,r,"==",c.equal)},c.notEqual=(e,t,r)=>{e==t&&_(e,t,r,"!=",c.notEqual)},c.deepEqual=(e,t,r)=>{m(e,t,!1)||_(e,t,r,"deepEqual",c.deepEqual)},c.deepStrictEqual=(e,t,r)=>{m(e,t,!0)||_(e,t,r,"deepStrictEqual",c.deepStrictEqual)},c.notDeepEqual=(e,t,r)=>{m(e,t,!1)&&_(e,t,r,"notDeepEqual",c.notDeepEqual)},c.notDeepStrictEqual=function e(t,r,n){m(t,r,!0)&&_(t,r,n,"notDeepStrictEqual",e)},c.strictEqual=(e,t,r)=>{e!==t&&_(e,t,r,"===",c.strictEqual)},c.notStrictEqual=(e,t,r)=>{e===t&&_(e,t,r,"!==",c.notStrictEqual)},c.throws=(e,t,r)=>{y(!0,e,t,r)},c.doesNotThrow=(e,t,r)=>{y(!1,e,t,r)},c.ifError=e=>{if(e)throw e},c.strict=xA((function e(t,r){t||_(t,!0,r,"==",e)}),c,{equal:c.strictEqual,deepEqual:c.deepStrictEqual,notEqual:c.notStrictEqual,notDeepEqual:c.notDeepStrictEqual}),c.strict.strict=c.strict;var v=Object.keys||(e=>{var t=[];for(var r in e)n.call(e,r)&&t.push(r);return t})}));function CA(e){return"/"===e.charAt(0)}function kA(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}var AA="win32"===r.platform?kA:CA,NA=CA,wA=kA;AA.posix=NA,AA.win32=wA;var FA=jA,PA=BA,IA=RA,OA=VA,MA=zA;function RA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var LA=Uk.Minimatch;function BA(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function jA(e,t){return e.localeCompare(t)}function UA(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new LA(r,{dot:!0})}return{matcher:new LA(e,{dot:!0}),gmatcher:t}}function VA(e,t){var n=t;return n="/"===t.charAt(0)?Xe.join(e.root,t):AA(t)||""===t?t:e.changedCwd?Xe.resolve(e.cwd,t):Xe.resolve(t),"win32"===r.platform&&(n=n.replace(/\\/g,"/")),n}function zA(e,t){return!!e.ignore.length&&e.ignore.some((e=>e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))))}var KA={alphasort:FA,alphasorti:PA,setopts(e,t,n){if(n||(n={}),n.matchBase&&-1===t.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!n.silent,e.pattern=t,e.strict=!1!==n.strict,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0),e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),((e,t)=>{e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(UA))})(e,n),e.changedCwd=!1;var i=r.cwd();RA(n,"cwd")?(e.cwd=Xe.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=n.root||Xe.resolve(e.cwd,"/"),e.root=Xe.resolve(e.root),"win32"===r.platform&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=AA(e.cwd)?e.cwd:VA(e,e.cwd),"win32"===r.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,e.minimatch=new LA(t,n),e.options=e.minimatch.options},ownProp:IA,makeAbs:OA,finish(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(a&&0!==Object.keys(a).length){var o=Object.keys(a);t?r.push.apply(r,o):o.forEach((e=>{r[e]=!0}))}else if(e.nonull){var s=e.minimatch.globSet[n];t?r.push(s):r[s]=!0}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(e.nocase?BA:jA)),e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((t=>{var r=!/\/$/.test(t),n=e.cache[t]||e.cache[VA(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((t=>!zA(e,t)))),e.found=r},mark(e,t){var r=VA(e,t),n=e.cache[r],i=t;if(n){var a="DIR"===n||Array.isArray(n),o="/"===t.slice(-1);if(a&&!o?i+="/":!a&&o&&(i=i.slice(0,-1)),i!==t){var s=VA(e,i);e.statCache[s]=e.statCache[r],e.cache[s]=e.cache[r]}}return i},isIgnored:MA,childrenIgnored(e,t){return!!e.ignore.length&&e.ignore.some((e=>!(!e.gmatcher||!e.gmatcher.match(t))))}},WA=qA;qA.GlobSync=XA;var HA=KA.setopts,JA=KA.ownProp,$A=KA.childrenIgnored,GA=KA.isIgnored;function qA(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new XA(e,t).found}function XA(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof XA))return new XA(e,t);if(HA(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}XA.prototype._finish=function(){if(TA(this instanceof XA),this.realpath){var e=this;this.matches.forEach(((t,r)=>{var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),n[fk.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;n[e._makeAbs(i)]=!0}}))}KA.finish(this)},XA.prototype._process=function(e,t,r){TA(this instanceof XA);for(var n,i=0;"string"==typeof e[i];)i++;switch(i){case e.length:return this._processSimple(e.join("/"),t),void 0;case 0:n=null;break;default:n=e.slice(0,i).join("/")}var a,o=e.slice(i);null===n?a=".":AA(n)||AA(e.join("/"))?(n&&AA(n)||(n="/"+n),a=n):a=n;var s=this._makeAbs(a);$A(this,a)||(o[0]===Uk.GLOBSTAR?this._processGlobStar(n,a,s,o,t,r):this._processReaddir(n,a,s,o,t,r))},XA.prototype._processReaddir=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){for(var s=n[0],c=!!this.minimatch.negate,l=s._glob,u=this.dot||"."===l.charAt(0),d=[],p=0;p<o.length;p++)("."!==(m=o[p]).charAt(0)||u)&&(c&&!e?!m.match(s):m.match(s))&&d.push(m);var _=d.length;if(0!==_)if(1!==n.length||this.mark||this.stat)for(n.shift(),p=0;p<_;p++){var f;m=d[p],f=e?[e,m]:[m],this._process(f.concat(n),i,a)}else{this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<_;p++){var m=d[p];e&&(m="/"!==e.slice(-1)?e+"/"+m:e+m),"/"!==m.charAt(0)||this.nomount||(m=Xe.join(this.root,m)),this._emitMatch(i,m)}}}},XA.prototype._emitMatch=function(e,t){if(!GA(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},XA.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=jt.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},XA.prototype._readdir=function(e,t){if(t&&!JA(this.symlinks,e))return this._readdirInGlobStar(e);if(JA(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,jt.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},XA.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},XA.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},XA.prototype._processGlobStar=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){var s=n.slice(1),c=e?[e]:[],l=c.concat(s);this._process(l,i,!1);var u=o.length;if(!this.symlinks[r]||!a)for(var d=0;d<u;d++)if("."!==o[d].charAt(0)||this.dot){var p=c.concat(o[d],s);this._process(p,i,!0);var _=c.concat(o[d],n);this._process(_,i,!0)}}},XA.prototype._processSimple=function(e,t){var n=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),n){if(e&&AA(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=Xe.join(this.root,e):(e=Xe.resolve(this.root,e),i&&(e+="/"))}"win32"===r.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},XA.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&JA(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var a;try{a=jt.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=jt.statSync(t)}catch(e){i=a}else i=a}return this.statCache[t]=i,n=!0,i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},XA.prototype._mark=function(e){return KA.mark(this,e)},XA.prototype._makeAbs=function(e){return KA.makeAbs(this,e)};var YA=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((e=>{n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((e=>{n[e]=i[e]})),n}},QA=YA(eN),ZA=YA(tN);function eN(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function tN(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}eN.proto=eN((function(){Object.defineProperty(Function.prototype,"once",{value(){return eN(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value(){return tN(this)},configurable:!0})})),QA.strict=ZA;var rN=Object.create(null),nN=YA(((e,t)=>rN[e]?(rN[e].push(t),null):(rN[e]=[t],(e=>QA((function t(){var n=rN[e],i=n.length,a=iN(arguments);try{for(var o=0;o<i;o++)n[o].apply(null,a)}finally{n.length>i?(n.splice(0,i),r.nextTick((()=>{t.apply(null,a)}))):delete rN[e]}})))(e))));function iN(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}var aN=dN,oN=oA.EventEmitter,sN=KA.setopts,cN=KA.ownProp,lN=KA.childrenIgnored,uN=KA.isIgnored;function dN(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return WA(e,t)}return new _N(e,t,r)}dN.sync=WA;var pN=dN.GlobSync=WA.GlobSync;function _N(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new pN(e,t)}if(!(this instanceof _N))return new _N(e,t,r);sN(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=QA(r),this.on("error",r),this.on("end",(e=>{r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return o();for(var a=0;a<n;a++)this._process(this.minimatch.set[a],a,!1,o);function o(){--i._processing,i._processing<=0&&(!1,i._finish())}0}dN.glob=dN,dN.hasMagic=(e,t)=>{var r=((e,t)=>{if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e})({},t);r.noprocess=!0;var n=new _N(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},dN.Glob=_N,tA(_N,oN),_N.prototype._finish=function(){if(TA(this instanceof _N),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();KA.finish(this),this.emit("end",this.found)}},_N.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},_N.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,a=n.length;if(0===a)return t();var o=this.matches[e]=Object.create(null);n.forEach(((r,n)=>{r=i._makeAbs(r),fk.realpath(r,i.realpathCache,((n,s)=>{n?"stat"===n.syscall?o[r]=!0:i.emit("error",n):o[s]=!0,0==--a&&(i.matches[e]=o,t())}))}))},_N.prototype._mark=function(e){return KA.mark(this,e)},_N.prototype._makeAbs=function(e){return KA.makeAbs(this,e)},_N.prototype.abort=function(){this.aborted=!0,this.emit("abort")},_N.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},_N.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);for(this._processQueue.length=0,t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},_N.prototype._process=function(e,t,r,n){if(TA(this instanceof _N),TA("function"==typeof n),!this.aborted){if(this._processing++,this.paused)return this._processQueue.push([e,t,r,n]),void 0;for(var i,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return this._processSimple(e.join("/"),t,n),void 0;case 0:i=null;break;default:i=e.slice(0,a).join("/")}var o,s=e.slice(a);null===i?o=".":AA(i)||AA(e.join("/"))?(i&&AA(i)||(i="/"+i),o=i):o=i;var c=this._makeAbs(o);if(lN(this,o))return n();s[0]===Uk.GLOBSTAR?this._processGlobStar(i,o,c,s,t,r,n):this._processReaddir(i,o,c,s,t,r,n)}},_N.prototype._processReaddir=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,((c,l)=>s._processReaddir2(e,t,r,n,i,a,l,o)))},_N.prototype._processReaddir2=function(e,t,r,n,i,a,o,s){if(!o)return s();for(var c=n[0],l=!!this.minimatch.negate,u=c._glob,d=this.dot||"."===u.charAt(0),p=[],_=0;_<o.length;_++)("."!==(m=o[_]).charAt(0)||d)&&(l&&!e?!m.match(c):m.match(c))&&p.push(m);var f=p.length;if(0===f)return s();if(1===n.length&&!this.mark&&!this.stat){for(this.matches[i]||(this.matches[i]=Object.create(null)),_=0;_<f;_++){var m=p[_];e&&(m="/"!==e?e+"/"+m:e+m),"/"!==m.charAt(0)||this.nomount||(m=Xe.join(this.root,m)),this._emitMatch(i,m)}return s()}for(n.shift(),_=0;_<f;_++)m=p[_],e&&(m="/"!==e?e+"/"+m:e+m),this._process([m].concat(n),i,a,s);s()},_N.prototype._emitMatch=function(e,t){if(!this.aborted&&!uN(this,t)){if(this.paused)return this._emitQueue.push([e,t]),void 0;var r=AA(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},_N.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=nN("lstat\0"+e,((n,i)=>{if(n&&"ENOENT"===n.code)return t();var a=i&&i.isSymbolicLink();r.symlinks[e]=a,a||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&jt.lstat(e,n)}},_N.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=nN("readdir\0"+e+"\0"+t,r))){if(t&&!cN(this.symlinks,e))return this._readdirInGlobStar(e,r);if(cN(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}jt.readdir(e,((e,t,r)=>(n,i)=>{n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)})(this,e,r))}},_N.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},_N.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},_N.prototype._processGlobStar=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,((c,l)=>{s._processGlobStar2(e,t,r,n,i,a,l,o)}))},_N.prototype._processGlobStar2=function(e,t,r,n,i,a,o,s){if(!o)return s();var c=n.slice(1),l=e?[e]:[],u=l.concat(c);this._process(u,i,!1,s);var d=this.symlinks[r],p=o.length;if(d&&a)return s();for(var _=0;_<p;_++)if("."!==o[_].charAt(0)||this.dot){var f=l.concat(o[_],c);this._process(f,i,!0,s);var m=l.concat(o[_],n);this._process(m,i,!0,s)}s()},_N.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,((i,a)=>{n._processSimple2(e,t,i,a,r)}))},_N.prototype._processSimple2=function(e,t,n,i,a){if(this.matches[t]||(this.matches[t]=Object.create(null)),!i)return a();if(e&&AA(e)&&!this.nomount){var o=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=Xe.join(this.root,e):(e=Xe.resolve(this.root,e),o&&(e+="/"))}"win32"===r.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),a()},_N.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&cN(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var a=this.statCache[r];if(void 0!==a){if(!1===a)return t(null,a);var o=a.isDirectory()?"DIR":"FILE";return n&&"FILE"===o?t():t(null,o,a)}var s=this,c=nN("stat\0"+r,((n,i)=>{if(i&&i.isSymbolicLink())return jt.stat(r,((n,a)=>{n?s._stat2(e,r,null,i,t):s._stat2(e,r,n,a,t)}));s._stat2(e,r,n,i,t)}));c&&jt.lstat(r,c)},_N.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var a="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,a&&"FILE"===o?i():i(null,o,n)};var fN={rollup:"^2.22.0"};const mN="?commonjs-proxy",gN=e=>`\0${e}?commonjs-proxy`,hN=e=>e.slice(1,-mN.length),yN="?commonjs-external",vN=e=>`\0${e}?commonjs-external`,bN=(e,t)=>e.startsWith(t)?"/$$rollup_base$$"+e.slice(t.length):e,xN="\0commonjs-dynamic-register:",EN="\0commonjs-dynamic-json:",SN="\0commonjs-dynamic-packages",DN="\0commonjsHelpers.js",TN={"==":e=>wN(e.left,e.right,!1),"!=":e=>NN(TN["=="](e)),"===":e=>wN(e.left,e.right,!0),"!==":e=>NN(TN["==="](e)),"!":e=>AN(e.argument),"&&":e=>kN(e.left)&&kN(e.right),"||":e=>kN(e.left)||kN(e.right)};function CN(e){const t=[];for(;"MemberExpression"===e.type;){if(e.computed)return null;t.unshift(e.property.name),e=e.object}if("Identifier"!==e.type)return null;const{name:r}=e;return t.unshift(r),{name:r,keypath:t.join(".")}}function kN(e){return"Literal"===e.type?!!e.value:"ParenthesizedExpression"===e.type?kN(e.expression):e.operator in TN?TN[e.operator](e):void 0}function AN(e){return NN(kN(e))}function NN(e){return void 0===e?e:!e}function wN(e,t,r){if(e.type===t.type)return"Literal"===e.type?r?e.value===t.value:e.value==t.value:void 0}function FN(e){const t=GC(Le(e,je(e)));if("index"!==t)return t;const r=Be(e).split(Je);return GC(r[r.length-1])}const PN="process location abstract arguments boolean break byte case catch char class const continue debugger default delete do double else enum eval export extends false final finally float for from function goto if implements import in instanceof int interface let long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void volatile while with yield".split(" "),IN={__esModule:!0};PN.forEach((e=>IN[e]=!0));const ON=/^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/,MN=/\b(?:require|module|exports|global)\b/,RN=/\b(?:require|module|exports)\b/,LN=/^(?:FunctionDeclaration|FunctionExpression|ArrowFunctionExpression)$/;function BN(e,t,r){let n=1,i=GC(r);for(;e.contains(i)||t.has(i)||i in IN;)i=`${r}_${n}`,n+=1;return e.declarations[i]=!0,i}function jN(e,t,r){try{return e(t,{allowReturnOutsideFunction:!0})}catch(e){throw e.message+=` in ${r}`,e}}function UN(e){return e.replace(/\\/g,"/")}function VN(e,t,r,n,i,a,o,s,c,l,u){const d=u||jN(e,t,r),p=new lk(t),_={},f=[];let m=0,g=((e,t="scope")=>{let r=new HC;return OC(e,{enter(e,n){const i=e;if(/(Function|Class)Declaration/.test(i.type)&&r.addDeclaration(i,!1,!1),"VariableDeclaration"===i.type){const{kind:e}=i,t=WC[e],a=n?n.type:"";t&&/ForOfStatement/.test(a)||i.declarations.forEach((e=>{r.addDeclaration(e,t,!0)}))}let a;if(/Function/.test(i.type)){const e=i;a=new HC({parent:r,block:!1,params:e.params}),"FunctionExpression"===e.type&&e.id&&a.addDeclaration(e,!1,!1)}"BlockStatement"!==i.type||/Function/.test(n.type)||(a=new HC({parent:r,block:!0})),"CatchClause"===i.type&&(a=new HC({parent:r,params:i.param?[i.param]:[],block:!0})),a&&(Object.defineProperty(i,t,{value:a,configurable:!0}),r=a)},leave(e){e[t]&&(r=r.parent)}}),r})(d,"scope");const h={module:!1,exports:!1,global:!1,require:!1};let y=0,v=0;const b=new Set,x=BN(g,b,"commonjsHelpers");let E=/__esModule/.test(t),S=!1;function D(e){return!!e&&"CallExpression"===e.type&&0!==e.arguments.length&&T(e.callee)}function T(e){return!!e&&("Identifier"===e.type&&"require"===e.name?!g.contains("require"):"MemberExpression"===e.type&&"Identifier"===e.object.type&&"module"===e.object.name&&!g.contains("module")&&"Identifier"===e.property.type&&"require"===e.property.name)}function C(e){return!!D(e)&&!(e=>e.arguments.length>1||"Literal"!==e.arguments[0].type&&("TemplateLiteral"!==e.arguments[0].type||e.arguments[0].expressions.length>0))(e)}function k(e){return a(e.arguments[0].value)}function A(e,t){let r=(e=>"Literal"===e.arguments[0].type?e.arguments[0].value:e.arguments[0].quasis[0].value.cooked)(e);const n=r.startsWith(xN);if(n&&(r=r.substr(xN.length)),void 0===_[r]){const e=N(r);if(!t)do{t=`require$$${m}`,m+=1}while(g.contains(t));n&&r.endsWith(".json")&&(r=EN+r),(n||!e||r.endsWith(".json"))&&f.push([r,!n]),_[r]={source:r,name:t,importsDefault:!1,isDynamic:e}}return _[r]}function N(e){if(!/[/\\]/.test(e)){try{const t=UN(jr.sync(e,{basedir:Be(r)}));if(c.has(t))return!0}catch(e){return!1}return!1}for(const t of["",".js",".json"]){const n=UN(He(Be(r),e+t));if(c.has(n))return!0}return!1}const w=new Set;if(XC(d,{enter(e){"AssignmentExpression"===e.type&&"MemberExpression"!==e.left.type&&KC(e.left).forEach((e=>{w.add(e)}))}}),XC(d,{enter(e,t){if(o&&(p.addSourcemapLocation(e.start),p.addSourcemapLocation(e.end)),t&&("IfStatement"===t.type||"ConditionalExpression"===t.type)){if(e===t.consequent&&AN(t.test))return this.skip(),void 0;if(e===t.alternate&&kN(t.test))return this.skip(),void 0}if(e._skip)return this.skip(),void 0;if(v+=1,e.scope&&({scope:g}=e),LN.test(e.type)&&(y+=1),"ReturnStatement"===e.type&&0===y&&(E=!0),"ThisExpression"===e.type&&0===y)return h.global=!0,i||(p.overwrite(e.start,e.end,`${x}.commonjsGlobal`,{storeName:!0}),S=!0),void 0;if("UnaryExpression"===e.type&&"typeof"===e.operator){const t=CN(e.argument);if(!t)return;if(g.contains(t.name))return;"module.exports"!==t.keypath&&"module"!==t.keypath&&"exports"!==t.keypath||p.overwrite(e.start,e.end,"'object'",{storeName:!1})}if("Identifier"===e.type){if(uk(e,t)&&!g.contains(e.name)){if(e.name in h){if(T(e)){if((e=>!!(e&&e.property&&["resolve","cache","main"].indexOf(e.property.name)>-1))(t))return;if(!s&&C(t))return;s&&D(t)&&p.appendLeft(t.end-1,`,${JSON.stringify("."===Be(r)?null:bN(UN(Be(r)),l))}`),p.overwrite(e.start,e.end,`${x}.commonjsRequire`,{storeName:!0}),S=!0}h[e.name]=!0,"global"!==e.name||i||(p.overwrite(e.start,e.end,`${x}.commonjsGlobal`,{storeName:!0}),S=!0),"module"!==e.name&&"exports"!==e.name||(E=!0)}"define"===e.name&&p.overwrite(e.start,e.end,"undefined",{storeName:!0}),b.add(e.name)}return}if("AssignmentExpression"===e.type){if("MemberExpression"!==e.left.type)return;const t=CN(e.left);if(!t)return;if(g.contains(t.name))return;if(!ON.exec(t.keypath)||"exports"===t.keypath)return;return h[t.name]=!0,v>3&&(E=!0),e.left._skip=!0,"module.exports"===t.keypath&&"ObjectExpression"===e.right.type?(e.right.properties.forEach((e=>{if(e.computed||!("key"in e)||"Identifier"!==e.key.type)return;const{name:t}=e.key;t===GC(t)})),void 0):void 0}const n=((e,t)=>{if("CallExpression"!==e.type)return;const{callee:{object:r,property:n}}=e;if(!r||"Identifier"!==r.type||"Object"!==r.name)return;if(!n||"Identifier"!==n.type||"defineProperty"!==n.name)return;if(3!==e.arguments.length)return;const[i,a]=e.arguments;return"Identifier"===i.type&&"exports"===i.name?a.value:void 0})(e);if(n&&n===GC(n),"VariableDeclarator"===e.type&&"Identifier"===e.id.type&&C(e.init)&&!k(e.init)){if(g.parent)return;if(w.has(e.id.name))return;const t=A(e.init,e.id.name);t.importsDefault=!0,t.name!==e.id.name||t.isDynamic||(e._shouldRemove=!0)}if(!C(e)||k(e))return;const a=A(e);"ExpressionStatement"===t.type?p.remove(t.start,t.end):(a.importsDefault=!0,(e=>N(e.source)&&(e.source.startsWith(xN)||!e.source.endsWith(".json")))(a)?(p.overwrite(e.start,e.end,`${x}.commonjsRequire(${JSON.stringify(bN(UN(a.source),l))}, ${JSON.stringify("."===Be(r)?null:bN(UN(Be(r)),l))})`),S=!0):p.overwrite(e.start,e.end,a.name)),e.callee._skip=!0},leave(e){if(v-=1,e.scope&&(g=g.parent),LN.test(e.type)&&(y-=1),"VariableDeclaration"===e.type){let t=!1,r=e.declarations[0].start;for(let n=0;n<e.declarations.length;n+=1){const i=e.declarations[n];i._shouldRemove?p.remove(r,i.end):(t||(p.remove(r,i.start),t=!0),r=i.end)}t||p.remove(e.start,e.end)}}}),!f.length&&!h.module&&!h.exports&&!h.require&&(i||!h.global))return null;n&&(E=!1),S=S||E;const F=`${(S?[`import * as ${x} from '${DN}';`]:[]).concat(f.map((([e])=>`import '${e}';`)),f.filter((([,e])=>e)).map((([e])=>{const{name:t,importsDefault:r}=_[e];return`import ${r?`${t} from `:""}'${e.startsWith("\0")?e:gN(e)}';`}))).join("\n")}\n\n`,P=[];let I="",O="";const M=BN(g,b,FN(r));if(!n){const e={str:`export { ${M} as __moduleExports };`,name:"__moduleExports"};P.push(e)}const R=[];let L=!1;if(E){const e="module"+(h.exports?", exports":"");I=`var ${M} = ${x}.createCommonjsModule(function (${e}) {\n`,O="\n}",s&&(O+=`, ${JSON.stringify(bN(UN(Be(r)),l))}`),O+=");"}else{const e=[];for(const t of d.body)if("ExpressionStatement"===t.type&&"AssignmentExpression"===t.expression.type){const{left:r}=t.expression,n=CN(r);if(!n)continue;const i=ON.exec(n.keypath);if(!i)continue;if("module.exports"===n.keypath)L=!0,p.overwrite(r.start,r.end,`var ${M}`);else{const[,n]=i,a=BN(g,b,n);e.push({name:n,deconflicted:a}),p.overwrite(t.start,r.end,`var ${a}`);const o=n===a?`export { ${n} };`:`export { ${a} as ${n} };`;"default"!==n&&P.push({str:o,name:n}),R.push(`${M}.${n} = ${a};`)}}n||L||(O=`\n\nvar ${M} = {\n${e.map((({name:e,deconflicted:t})=>`\t${e}: ${t}`)).join(",\n")}\n};`)}p.trim().prepend(F+I).trim().append(O);const B=t.indexOf("__esModule")>=0?`export default /*@__PURE__*/${x}.getDefaultExportFromCjs(${M});`:`export default ${M};`,j=P.filter((e=>"default"!==e.name||!L)).map((e=>e.str));return p.append(`\n\n${(n?[]:[B]).concat(j).concat(L?R:[]).join("\n")}`),{code:t=p.toString(),map:o?p.generateMap():null,syntheticNamedExports:!n&&"__moduleExports"}}const zN=new Map;function KN(e,t){const r=zN.get(e);r?r.resolve&&(r.resolve(t),r.resolve=void 0):zN.set(e,{promise:Promise.resolve(t),resolve:void 0})}function WN(e,t){if(!0===t||e.endsWith(".json"))return`export {default} from ${JSON.stringify(e)};`;const r=FN(e),n="auto"===t?`import {getDefaultExportFromNamespaceIfNotNamed} from "${DN}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(${r});`:"preferred"===t?`import {getDefaultExportFromNamespaceIfPresent} from "${DN}"; export default /*@__PURE__*/getDefaultExportFromNamespaceIfPresent(${r});`:t?`export default ${r};`:`import {getAugmentedNamespace} from "${DN}"; export default /*@__PURE__*/getAugmentedNamespace(${r});`;return`import * as ${r} from ${JSON.stringify(e)}; ${n}`}function HN(e){return function(t,r){const n=t.endsWith(mN);if(n&&(t=hN(t)),t.startsWith("\0")){if(t.startsWith(DN)||t===SN||t.startsWith(EN))return t;if(!n)return null}return r&&r.endsWith(mN)&&(r=hN(r)),this.resolve(t,r,{skipSelf:!0}).then((i=>(i||(i=((t,r)=>{if("."!==t[0]||!r)return;const n=function(e,t){return t.reduce(((t,r)=>t.concat(((e,t)=>[e+t,`${e}${Je}index${t}`])(e,r))),[e])}(He(Be(r),t),e);for(let e=0;e<n.length;e+=1)try{if(qt(n[e]).isFile())return{id:n[e]}}catch(e){}})(t,r)),n?i?(i.id=(i.external?vN:gN)(i.id),i.external=!1,i):{id:vN(t),external:!1}:i)))}}function JN(e={}){const t=e.extensions||[".js"],n=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=He(t||"").split(Je).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return Ge.join(r,e)})(e,n);return IC(r,{dot:!0})(t)}},a=JC(e).map(i),o=JC(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Je).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(e.include,e.exclude),{ignoreGlobal:i,requireReturnsDefault:a,esmExternals:o}=e,s="function"==typeof a?a:()=>a;let c;const l="function"==typeof o?o:Array.isArray(o)?(c=new Set(o),e=>c.has(e)):()=>o,{dynamicRequireModuleSet:u,dynamicRequireModuleDirPaths:d}=(e=>{const t=new Set;for(const r of!e||Array.isArray(e)?e||[]:[e]){const e=r.startsWith("!"),n=Set.prototype[e?"delete":"add"].bind(t);for(const t of aN.sync(e?r.substr(1):r))n(UN(He(t)))}const r=Array.from(t.values()).filter((e=>{try{if(qt(e).isDirectory())return!0}catch(e){}return!1}));return{dynamicRequireModuleSet:t,dynamicRequireModuleDirPaths:r}})(e.dynamicRequireTargets),p=u.size>0,_=p?((e,t)=>{if(t)var r=t.map((e=>Xe.resolve(null,e)));else r=null;var n=r.slice(1).reduce(((e,t)=>{if(!t.match(/^([A-Za-z]:)?\/|\\/))throw new Error("relative path without a basedir");for(var r=t.split(/\/+|\\+/),n=0;e[n]===r[n]&&n<Math.min(e.length,r.length);n++);return e.slice(0,n)}),r[0].split(/\/+|\\+/));return n.length>1?n.join("/"):"/"})(0,Array.from(u).concat(r.cwd())):null,f=new Set,m=new Set,g="function"==typeof e.ignore?e.ignore:Array.isArray(e.ignore)?t=>e.ignore.includes(t):()=>!1,h=HN(t),y=!1!==e.sourceMap;function v(t,r){const{isEsModule:n,hasDefaultExport:a,hasNamedExports:o,ast:s}=((e,t,r)=>{const n=jN(e,t,r);let i=!1,a=!1,o=!1;for(const e of n.body)if("ExportDefaultDeclaration"===e.type)i=!0,a=!0;else if("ExportNamedDeclaration"===e.type)if(i=!0,e.declaration)o=!0;else for(const t of e.specifiers)"default"===t.exported.name?a=!0:o=!0;else"ExportAllDeclaration"===e.type?(i=!0,e.exported&&"default"===e.exported.name?a=!0:o=!0):"ImportDeclaration"===e.type&&(i=!0);return{isEsModule:i,hasDefaultExport:a,hasNamedExports:o,ast:n}})(this.parse,t,r);if(a&&f.add(r),o&&m.add(r),!u.has(UN(r))&&(!((e,t)=>(t?RN:MN).test(e))(t,i)||n&&!e.transformMixedEsModules))return KN(r,!1),null;const c=VN(this.parse,t,r,n,i||n,g,y,p,u,_,s);return KN(r,!n&&Boolean(c)),c}return{name:"commonjs",buildStart(){null!=e.namedExports&&this.warn('The namedExports option from "@rollup/plugin-commonjs" is deprecated. Named exports are now handled automatically.');const[t,r]=this.meta.rollupVersion.split(".").map(Number),n=fN.rollup.slice(2),[i,a]=n.split(".").map(Number);(t<i||t===i&&r<a)&&this.error(`Insufficient Rollup version: "@rollup/plugin-commonjs" requires at least rollup@${n} but found rollup@${this.meta.rollupVersion}.`)},resolveId:h,load(e){if(e===DN)return(e=>"\nexport var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nexport function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport function createCommonjsModule(fn, basedir, module) {\n\treturn module = {\n\t\tpath: basedir,\n\t\texports: {},\n\t\trequire: function (path, base) {\n\t\t\treturn commonjsRequire(path, (base === undefined || base === null) ? module.path : base);\n\t\t}\n\t}, fn(module, module.exports), module.exports;\n}\n\nexport function getDefaultExportFromNamespaceIfPresent (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;\n}\n\nexport function getDefaultExportFromNamespaceIfNotNamed (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;\n}\n\nexport function getAugmentedNamespace(n) {\n\tif (n.__esModule) return n;\n\tvar a = Object.defineProperty({}, '__esModule', {value: true});\n\tObject.keys(n).forEach(function (k) {\n\t\tvar d = Object.getOwnPropertyDescriptor(n, k);\n\t\tObject.defineProperty(a, k, d.get ? d : {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\treturn n[k];\n\t\t\t}\n\t\t});\n\t});\n\treturn a;\n}\n"+(e?"\nexport function commonjsRegister (path, loader) {\n\tDYNAMIC_REQUIRE_LOADERS[path] = loader;\n}\n\nconst DYNAMIC_REQUIRE_LOADERS = Object.create(null);\nconst DYNAMIC_REQUIRE_CACHE = Object.create(null);\nconst DEFAULT_PARENT_MODULE = {\n\tid: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []\n};\nconst CHECKED_EXTENSIONS = ['', '.js', '.json'];\n\nfunction normalize (path) {\n\tpath = path.replace(/\\\\/g, '/');\n\tconst parts = path.split('/');\n\tconst slashed = parts[0] === '';\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] === '.' || parts[i] === '') {\n\t\t\tparts.splice(i--, 1);\n\t\t}\n\t}\n\tfor (let i = 1; i < parts.length; i++) {\n\t\tif (parts[i] !== '..') continue;\n\t\tif (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {\n\t\t\tparts.splice(--i, 2);\n\t\t\ti--;\n\t\t}\n\t}\n\tpath = parts.join('/');\n\tif (slashed && path[0] !== '/')\n\t path = '/' + path;\n\telse if (path.length === 0)\n\t path = '.';\n\treturn path;\n}\n\nfunction join () {\n\tif (arguments.length === 0)\n\t return '.';\n\tlet joined;\n\tfor (let i = 0; i < arguments.length; ++i) {\n\t let arg = arguments[i];\n\t if (arg.length > 0) {\n\t\tif (joined === undefined)\n\t\t joined = arg;\n\t\telse\n\t\t joined += '/' + arg;\n\t }\n\t}\n\tif (joined === undefined)\n\t return '.';\n\n\treturn joined;\n}\n\nfunction isPossibleNodeModulesPath (modulePath) {\n\tlet c0 = modulePath[0];\n\tif (c0 === '/' || c0 === '\\\\') return false;\n\tlet c1 = modulePath[1], c2 = modulePath[2];\n\tif ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||\n\t\t(c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;\n\tif (c1 === ':' && (c2 === '/' || c2 === '\\\\'))\n\t\treturn false;\n\treturn true;\n}\n\nfunction dirname (path) {\n if (path.length === 0)\n return '.';\n\n let i = path.length - 1;\n while (i > 0) {\n const c = path.charCodeAt(i);\n if ((c === 47 || c === 92) && i !== path.length - 1)\n break;\n i--;\n }\n\n if (i > 0)\n return path.substr(0, i);\n\n if (path.chartCodeAt(0) === 47 || path.chartCodeAt(0) === 92)\n return path.charAt(0);\n\n return '.';\n}\n\nexport function commonjsRequire (path, originalModuleDir) {\n\tconst shouldTryNodeModules = isPossibleNodeModulesPath(path);\n\tpath = normalize(path);\n\tlet relPath;\n\twhile (true) {\n\t\tif (!shouldTryNodeModules) {\n\t\t\trelPath = originalModuleDir ? normalize(originalModuleDir + '/' + path) : path;\n\t\t} else if (originalModuleDir) {\n\t\t\trelPath = normalize(originalModuleDir + '/node_modules/' + path);\n\t\t} else {\n\t\t\trelPath = normalize(join('node_modules', path));\n\t\t}\n\t\tfor (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {\n\t\t\tconst resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];\n\t\t\tlet cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];\n\t\t\tif (cachedModule) return cachedModule.exports;\n\t\t\tconst loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];\n\t\t\tif (loader) {\n\t\t\t\tDYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {\n\t\t\t\t\tid: resolvedPath,\n\t\t\t\t\tfilename: resolvedPath,\n\t\t\t\t\tpath: dirname(resolvedPath),\n\t\t\t\t\texports: {},\n\t\t\t\t\tparent: DEFAULT_PARENT_MODULE,\n\t\t\t\t\tloaded: false,\n\t\t\t\t\tchildren: [],\n\t\t\t\t\tpaths: [],\n\t\t\t\t\trequire: function (path, base) {\n\t\t\t\t\t return commonjsRequire(path, (base === undefined || base === null) ? cachedModule.path : base);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\ttry {\n\t\t\t\t\tloader.call(commonjsGlobal, cachedModule, cachedModule.exports);\n\t\t\t\t} catch (error) {\n\t\t\t\t\tdelete DYNAMIC_REQUIRE_CACHE[resolvedPath];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t\tcachedModule.loaded = true;\n\t\t\t\treturn cachedModule.exports;\n\t\t\t};\n\t\t}\n\t\tif (!shouldTryNodeModules) break;\n\t\tconst nextDir = normalize(originalModuleDir + '/..');\n\t\tif (nextDir === originalModuleDir) break;\n\t\toriginalModuleDir = nextDir;\n\t}\n\treturn require(path);\n}\n\ncommonjsRequire.cache = DYNAMIC_REQUIRE_CACHE;\n":"\nexport function commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');\n}\n"))(p);if(e.startsWith(DN))return(e=>`export {${e.split("?")[1]} as default} from '${DN}';`)(e);if(e.endsWith(yN)){const t=e.slice(1,-yN.length);return WN(t,!l(t)||s(t))}if(e===SN)return((e,t)=>{let r=`const commonjsRegister = require('${DN}?commonjsRegister');`;for(const n of e){let e="index.js";try{Vt(Ve(n,"package.json"))&&(e=JSON.parse(Jt(Ve(n,"package.json"),{encoding:"utf8"})).main||e)}catch(e){}r+=`\ncommonjsRegister(${JSON.stringify(bN(n,t))}, function (module, exports) {\n module.exports = require(${JSON.stringify(UN(Ve(n,e)))});\n});`}return r})(d,_);if(e.startsWith(EN))return((e,t)=>{const r=UN(e.slice(EN.length));return`const commonjsRegister = require('${DN}?commonjsRegister');\ncommonjsRegister(${JSON.stringify(bN(r,t))}, function (module, exports) {\n module.exports = require(${JSON.stringify(r)});\n});`})(e,_);const t=UN(e);if(u.has(t)&&!t.endsWith(".json"))return((e,t)=>`const commonjsRegister = require('${DN}?commonjsRegister');\ncommonjsRegister(${JSON.stringify(bN(e,t))}, function (module, exports) {\n ${Jt(e,{encoding:"utf8"})}\n});`)(t,_);if(e.endsWith(mN)){const t=hN(e);return async function(e,t,r,n){const i=FN(e),a=await(e=>{let t=zN.get(e);if(t)return t.promise;const r=new Promise((r=>{t={resolve:r,promise:void 0},zN.set(e,t)}));return t.promise=r,r})(e);return a?`import { __moduleExports } from ${JSON.stringify(e)}; export default __moduleExports;`:null===a?WN(e,t):t?!0!==t&&("namespace"===t||!r.has(e)||"auto"===t&&n.has(e))?`import * as ${i} from ${JSON.stringify(e)}; export default ${i};`:`export {default} from ${JSON.stringify(e)};`:`import {getAugmentedNamespace} from "${DN}"; import * as ${i} from ${JSON.stringify(e)}; export default /*@__PURE__*/getAugmentedNamespace(${i});`}(t,s(t),f,m)}return p&&this.getModuleInfo(e).isEntry?function(e,t,r){try{const n=Jt(e,{encoding:"utf8"});let i=Array.from(r,(e=>`require(${JSON.stringify(xN+e)});`)).join("\n");return t.length&&(i+=`require(${JSON.stringify(xN+SN)});`),`${i}\n${n}`}catch(t){return this.warn(`Failed to read file ${e}, dynamic modules might not work correctly`),null}}(e,d,u):null},transform(e,r){const i=je(r);if(!(".cjs"===i||r===SN||r.startsWith(EN)||n(r)&&t.includes(i)))return KN(r,null),null;let a;try{a=v.call(this,e,r)}catch(e){a=null,KN(r,!1),this.error(e,e.loc)}return a}}}function $N(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}const GN=new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "));GN.add("");const qN=e=>{let t=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");return(/\d/.test(t[0])||GN.has(t))&&(t=`_${t}`),t||"_"};function XN(e){return(JSON.stringify(e)||"undefined").replace(/[\u2028\u2029]/g,(e=>`\\u${`000${e.charCodeAt(0).toString(16)}`.slice(-4)}`))}function YN(e,t,r){return e===1/0?"Infinity":e===-1/0?"-Infinity":0===e&&1/e==-1/0?"-0":e instanceof Date?`new Date(${e.getTime()})`:e instanceof RegExp?e.toString():e!=e?"NaN":Array.isArray(e)?((e,t,r)=>{let n="[";const i=t?`\n${r}${t}`:"";for(let a=0;a<e.length;a++)n+=`${a>0?",":""}${i}${YN(e[a],t,r+t)}`;return`${n}${t?`\n${r}`:""}]`})(e,t,r):null===e?"null":"object"==typeof e?((e,t,r)=>{let n="{";const i=t?`\n${r}${t}`:"",a=Object.entries(e);for(let e=0;e<a.length;e++){const[o,s]=a[e];n+=`${e>0?",":""}${i}${qN(o)===o?o:XN(o)}:${t?" ":""}${YN(s,t,r+t)}`}return`${n}${t?`\n${r}`:""}}`})(e,t,r):XN(e)}const QN=(e,t={})=>{const r=t.compact?"":"indent"in t?t.indent:"\t",n=t.compact?"":" ",i=t.compact?"":"\n",a=t.preferConst?"const":"var";if(!1===t.namedExports||"object"!=typeof e||Array.isArray(e)||e instanceof Date||e instanceof RegExp||null===e){const i=YN(e,t.compact?null:r,"");return`export default${n||(/^[{[\-\/]/.test(i)?"":" ")}${i};`}let o="";const s=[];for(const[c,l]of Object.entries(e))c===qN(c)?(t.objectShorthand?s.push(c):s.push(`${c}:${n}${c}`),o+=`export ${a} ${c}${n}=${n}${YN(l,t.compact?null:r,"")};${i}`):s.push(`${XN(c)}:${n}${YN(l,t.compact?null:r,"")}`);return`${o}export default${n}{${i}${r}${s.join(`,${i}${r}`)}${i}};${i}`};function ZN(e){void 0===e&&(e={});var t=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=He(t||"").split(Je).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return Ge.join(r,e)})(e,n);return IC(r,{dot:!0})(t)}},a=$N(e).map(i),o=$N(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Je).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(e.include,e.exclude),r="indent"in e?e.indent:"\t";return{name:"json",transform(n,i){if(".json"!==i.slice(-5)||!t(i))return null;try{var a=JSON.parse(n);return{code:QN(a,{preferConst:e.preferConst,compact:e.compact,namedExports:e.namedExports,indent:r}),map:{mappings:""}}}catch(e){var o=parseInt(/[\d]/.exec(e.message)[0],10);return this.warn({message:"Could not parse JSON file",id:i,position:o}),null}}}}const{builtinModules:ew}=class{static get builtinModules(){return QT}},tw=["sys"];var rw=ew.filter((e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!tw.includes(e))).sort(),nw=e=>(e=>!!e&&"object"==typeof e)(e)&&!(e=>{var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||(e=>e.$$typeof===iw)(e)})(e),iw="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function aw(e,t){return!1!==t.clone&&t.isMergeableObject(e)?lw((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function ow(e,t,r){return e.concat(t).map((e=>aw(e,r)))}function sw(e){return Object.keys(e).concat((e=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((t=>e.propertyIsEnumerable(t))):[])(e))}function cw(e,t){try{return t in e}catch(e){return!1}}function lw(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||ow,r.isMergeableObject=r.isMergeableObject||nw,r.cloneUnlessOtherwiseSpecified=aw;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&sw(e).forEach((t=>{n[t]=aw(e[t],r)})),sw(t).forEach((i=>{((e,t)=>cw(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t)))(e,i)||(cw(e,i)&&r.isMergeableObject(t[i])?n[i]=((e,t)=>{if(!t.customMerge)return lw;var r=t.customMerge(e);return"function"==typeof r?r:lw})(i,r)(e[i],t[i],r):n[i]=aw(t[i],r))})),n}(e,t,r):aw(t,r)}lw.all=(e,t)=>{if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(((e,r)=>lw(e,r,t)),{})};var uw=lw,dw=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,pw=/(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;function _w(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" ")).add("");const fw=Mt(jt.exists),mw=Mt(jt.readFile),gw=Mt(jt.realpath),hw=Mt(jt.stat),yw=e=>{if("ENOENT"===e.code)return!1;throw e},vw=e=>{const t=new Map,r=async(r,n)=>{!1===t.has(r)&&t.set(r,e(r).catch((e=>{throw t.delete(r),e})));try{const e=t.get(r);return n(null,await e)}catch(e){return n(e)}};return r.clear=()=>t.clear(),r},bw=vw((async e=>{try{return(await hw(e)).isDirectory()}catch(e){return yw(e)}})),xw=vw((async e=>{try{return(await hw(e)).isFile()}catch(e){return yw(e)}})),Ew=vw(mw),Sw=Mt(jr),Dw=new Set(rw),Tw="\0node-resolve:empty.js",Cw=()=>null,kw=e=>{Object.freeze(e);for(const t of Object.values(e))"object"!=typeof t||Object.isFrozen(t)||kw(t);return e},Aw={customResolveOptions:{},dedupe:[],extensions:[".mjs",".js",".json",".node"],resolveOnly:[]};function Nw(e={}){const t=Object.assign({},Aw,e),{customResolveOptions:n,extensions:i,jail:a}=t,o=[],s=new Map,c=new Map,l=(e=>{let t;if(e.mainFields?({mainFields:t}=e):t=["module","main"],e.browser&&-1===t.indexOf("browser"))return["browser"].concat(t);if(!t.length)throw new Error("Please ensure at least one `mainFields` value is specified");return t})(t),u=-1!==l.indexOf("browser"),d=!0===t.preferBuiltins||!1===t.preferBuiltins,p=!d||t.preferBuiltins,_=t.rootDir||r.cwd();let f,{dedupe:m}=t;t.only&&(o.push("node-resolve: The `only` options is deprecated, please use `resolveOnly`"),t.resolveOnly=t.only),"function"!=typeof m&&(m=e=>t.dedupe.includes(e)||t.dedupe.includes((e=>{if(e.startsWith(".")||e.startsWith("/"))return null;const t=e.split("/");return"@"===t[0][0]?`${t[0]}/${t[1]}`:t[0]})(e)));const g=t.resolveOnly.map((e=>{if(e instanceof RegExp)return e;const t=e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${t}$`)})),h=new Map;let y;return{name:"node-resolve",buildStart(e){f=e;for(const e of o)this.warn(e);({preserveSymlinks:y}=e)},generateBundle(){Ew.clear(),xw.clear(),bw.clear()},async resolveId(e,r){if(e===Tw)return e;if(/\0/.test(e))return null;const[o,v]=e.split("#"),[b,x]=o.split("?"),E=`${x?`?${x}`:""}${v?`#${v}`:""}`;e=b;const S=!r||m(e)?_:Be(r),D=h.get(r);if(u&&D){const t=He(S,e);if(!1===D[e]||!1===D[t])return Tw;const r=D[e]||D[t]||D[`${t}.js`]||D[`${t}.json`];r&&(e=r)}const T=e.split(/[/\\]/);let C=T.shift(),k=!1;if("@"===C[0]&&T.length>0?C+=`/${T.shift()}`:"."===C[0]&&(C=He(S,e),k=!0),!k&&g.length&&!g.some((e=>e.test(C))))return!!(A=f.input,Array.isArray(A)?A:"object"==typeof A?Object.values(A):[A]).includes(e)&&null;var A;let N,w=Cw,F=!0,P=!1,I={basedir:S,packageFilter(e,t){const r=(e=>{const{cache:t,extensions:r,pkg:n,mainFields:i,preserveSymlinks:a,useBrowserOverrides:o}=e;let{pkgPath:s}=e;if(t.has(s))return t.get(s);a||(s=Gt(s));const c=Be(s),l={packageJson:Object.assign({},n),packageJsonPath:s,root:c,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""};let u=!1;for(let e=0;e<i.length;e++){const t=i[e];if("string"==typeof n[t]){n.main=n[t],l.resolvedMainField=t,u=!0;break}}const d={cachedPkg:n,hasModuleSideEffects(){return null},hasPackageEntry:!1!==u||-1!==i.indexOf("main"),packageBrowserField:o&&"object"==typeof n.browser&&Object.keys(n.browser).reduce(((e,t)=>{let i=n.browser[t];if(i&&"."===i[0]&&(i=He(c,i)),e[t]=i,"."===t[0]){const n=He(c,t);e[n]=i,je(t)||r.reduce(((e,r)=>(e[n+r]=e[t],e)),e)}return e}),{}),packageInfo:l},p=d.packageBrowserField;o&&"object"==typeof n.browser&&p.hasOwnProperty(n.main)?(l.resolvedEntryPoint=p[n.main],l.browserMappedMain=!0):(l.resolvedEntryPoint=He(c,n.main||"index.js"),l.browserMappedMain=!1);const _=n.sideEffects;return"boolean"==typeof _?d.hasModuleSideEffects=()=>_:Array.isArray(_)&&(d.hasModuleSideEffects=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=He(t||"").split(Je).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return Ge.join(r,e)})(e,n);return IC(r,{dot:!0})(t)}},a=_w(e).map(i),o=_w(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Je).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(_,null,{resolve:c})),t.set(s,d),d})({cache:s,extensions:i,pkg:e,pkgPath:t,mainFields:l,preserveSymlinks:y,useBrowserOverrides:u});return({packageInfo:N,hasModuleSideEffects:w,hasPackageEntry:F,packageBrowserField:P}=r),r.cachedPkg},readFile:Ew,isFile:xw,isDirectory:bw,extensions:i};void 0!==y&&(I.preserveSymlinks=y);const O=[];void 0!==r||e[0].match(/^\.?\.?\//)||O.push(`./${e}`);const M=Dw.has(e);if(!M||p&&d||O.push(`${e}/`),r&&e.endsWith(".js"))for(const t of[".ts",".tsx"])r.endsWith(t)&&i.includes(t)&&O.push(e.replace(/.js$/,t));O.push(e),I=Object.assign(I,n);try{let r=await((e,t)=>{let r=Promise.resolve();for(let n=0;n<e.length;n++)r=r.then((r=>r||Sw(e[n],t).then((e=>(t.preserveSymlinks||(e=Gt(e)),e))))),n<e.length-1&&(r=r.catch((e=>{if("MODULE_NOT_FOUND"!==e.code)throw e})));return r})(O,I);if(r&&P){if(Object.prototype.hasOwnProperty.call(P,r)){if(!P[r])return h.set(r,P),Tw;r=P[r]}h.set(r,P)}if(F&&!y&&r&&await fw(r)&&(r=await gw(r)),c.set(r,N),F){if(Dw.has(r)&&p&&d)return null;if(M&&p)return d||this.warn(`preferring built-in module '${e}' over local alternative at '${r}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`),null;if(a&&0!==r.indexOf(ze(a.trim(Je))))return null}if(r&&t.modulesOnly){return R=await mw(r,"utf-8"),dw.test(R)||pw.test(R)?{id:`${r}${E}`,moduleSideEffects:w(r)}:null}return{id:`${r}${E}`,moduleSideEffects:w(r)}}catch(e){return null}var R},load(e){return e===Tw?"export default {};":null},getPackageInfoForId(e){return c.get(e)}}}kw(uw({},Aw));const ww=new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "));ww.add("");const Fw=e=>{let t=e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");return(/\d/.test(t[0])||ww.has(t))&&(t=`_${t}`),t||"_"};function Pw(e){return(JSON.stringify(e)||"undefined").replace(/[\u2028\u2029]/g,(e=>`\\u${`000${e.charCodeAt(0).toString(16)}`.slice(-4)}`))}function Iw(e,t,r){return e===1/0?"Infinity":e===-1/0?"-Infinity":0===e&&1/e==-1/0?"-0":e instanceof Date?`new Date(${e.getTime()})`:e instanceof RegExp?e.toString():e!=e?"NaN":Array.isArray(e)?((e,t,r)=>{let n="[";const i=t?`\n${r}${t}`:"";for(let a=0;a<e.length;a++)n+=`${a>0?",":""}${i}${Iw(e[a],t,r+t)}`;return`${n}${t?`\n${r}`:""}]`})(e,t,r):null===e?"null":"object"==typeof e?((e,t,r)=>{let n="{";const i=t?`\n${r}${t}`:"",a=Object.entries(e);for(let e=0;e<a.length;e++){const[o,s]=a[e];n+=`${e>0?",":""}${i}${Fw(o)===o?o:Pw(o)}:${t?" ":""}${Iw(s,t,r+t)}`}return`${n}${t?`\n${r}`:""}}`})(e,t,r):Pw(e)}function Ow(e){return t=e,Array.isArray(t)?e:null==e?[]:[e];var t}function Mw(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Rw(e,t){return t.length-e.length}function Lw(e){void 0===e&&(e={});var t,r=((e,t,r)=>{const n=r&&r.resolve,i=e=>e instanceof RegExp?e:{test(t){const r=((e,t)=>{if(!1===t)return e;const r=He(t||"").split(Je).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return Ge.join(r,e)})(e,n);return IC(r,{dot:!0})(t)}},a=Ow(e).map(i),o=Ow(t).map(i);return e=>{if("string"!=typeof e)return!1;if(/\0/.test(e))return!1;const t=e.split(Je).join("/");for(let e=0;e<o.length;++e)if(o[e].test(t))return!1;for(let e=0;e<a.length;++e)if(a[e].test(t))return!0;return!a.length}})(e.include,e.exclude),n=e.delimiters,i=(t=(e=>{if(e.values)return Object.assign({},e.values);var t=Object.assign({},e);return delete t.delimiters,delete t.include,delete t.exclude,delete t.sourcemap,delete t.sourceMap,t})(e),Object.keys(t).reduce(((e,r)=>{var n,i=Object.assign({},e);return i[r]="function"==typeof(n=t[r])?n:()=>n,i}),{})),a=Object.keys(i).sort(Rw).map(Mw),o=n?new RegExp(Mw(n[0])+"("+a.join("|")+")"+Mw(n[1]),"g"):new RegExp("\\b("+a.join("|")+")\\b","g");return{name:"replace",renderChunk(e,t){var n=t.fileName;return a.length&&r(n)?s(e,n):null},transform:(e,t)=>a.length&&r(t)?s(e,t):null};function s(t,r){var n=new lk(t);if(!((e,t,r)=>{for(var n,a=!1;n=o.exec(e);){a=!0;var s=n.index,c=s+n[0].length,l=String(i[n[1]](t));r.overwrite(s,c,l)}return a})(t,r,n))return null;var a={code:n.toString()};return!1!==e.sourceMap&&!1!==e.sourcemap&&(a.map=n.generateMap({hires:!0})),a}}new Set("break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" ")).add("");const Bw=(e,t)=>{const r="hydrate"===t,n="@removed-server-code",i=e=>!!K(e)&&((e=xe(e)).includes(".server/")||e.endsWith(".server")),a=r?e.outputTargets.filter(zd).flatMap((e=>e.external)):[];return{name:"serverPlugin",resolveId(e,t){if(e===n)return e;if(r){if(a.includes(e))return{id:e,external:!0};if(i(t)&&!e.startsWith(".")&&!Ue(e))return{id:e,external:!0}}else if(i(e))return n;return null},load(e){return e===n?{code:"export default {};",syntheticNamedExports:!0}:null}}},jw=(e,t)=>({name:"userIndexPlugin",async resolveId(r){if(r===gg){const n=Ve(e.srcDir,"index.ts");return await t.fs.access(n)?n:r}return null},async load(e){return e===gg?"//! Autogenerated index":null}}),Uw=(e,t,r,n,i)=>{if("worker"===n||"hydrate"===n)return{name:"workerPlugin",transform(e,t){return t.endsWith("?worker")||t.endsWith("?worker-inline")?Qw():null}};const a=new Map;return{name:"workerPlugin",buildStart(){a.clear()},resolveId(e){return e===Jw?{id:e,moduleSideEffects:!1}:null},load(e){return e===Jw?qw:null},async transform(n,o){if(/\0/.test(o))return null;if(o.endsWith("?worker")){const n=xe(o),i=Kw(n),{code:s,dependencies:c,workerMsgId:l}=await zw(e,t,r,this,a,n),u=this.emitFile({type:"asset",source:s,name:i+".js"});return c.forEach((e=>this.addWatchFile(e))),{code:Xw(u,i,l),moduleSideEffects:!1}}if(o.endsWith("?worker-inline")){const n=xe(o),i=Kw(n),{code:s,dependencies:c,workerMsgId:l}=await zw(e,t,r,this,a,n),u=this.emitFile({type:"asset",source:s,name:i+".js"});return c.forEach((e=>this.addWatchFile(e))),{code:Yw(u,i,l),moduleSideEffects:!1}}const s=Vw(o);if(null!=s){const n=await zw(e,t,r,this,a,s);if(n)return i?{code:eF(s,n.workerMsgId,n.exports),moduleSideEffects:!1}:{code:Zw(s,n.exports),moduleSideEffects:!1}}return null}}},Vw=e=>Hw.some((t=>e.endsWith(t)))?xe(e):null,zw=async(e,t,r,n,i,a)=>{let o=i.get(a);return o||(o=await Ww(e,t,r,n,a),i.set(a,o)),o},Kw=e=>{const t=e.split("/").filter((e=>!e.includes("index")));return(e=t[t.length-1]).replace(".tsx","").replace(".ts","")},Ww=async(e,t,r,n,i)=>{const a=Kw(i),o=`stencil.${a}`,s=await tF(e,t,r,{platform:"worker",id:a,inputs:{[a]:i},inlineDynamicImports:!0});if(s){const a=(await s.generate({format:"commonjs",banner:`${Ae(e)}\n(()=>{\n`,footer:"})();",intro:Gw(o,e.devMode),esModule:!1,preferConst:!0,externalLiveBindings:!1})).output[0];a.imports.length>0&&n.error("Workers should not have any external imports: "+JSON.stringify(a.imports));let c=a.code;const l=await Ul(e,t,{input:c,sourceTarget:e.buildEs5?"es5":"es2017",isCore:!1,minify:e.minifyJs,inlineHelpers:!0});return r.diagnostics.push(...l.diagnostics),ie(l.diagnostics)||(c=l.output),{code:c,exports:a.exports,workerMsgId:o,dependencies:Object.keys(a.modules).filter((e=>!/\0/.test(e)&&e!==i))}}return null},Hw=[".worker.ts",".worker.tsx",".worker/index.ts",".worker/index.tsx"],Jw="@worker-helper",$w='\nconst isInstanceOf = (value, className) => {\n const C = globalThis[className];\n return C != null && value instanceof C;\n}\nconst getTransferables = (value) => {\n if (value != null) {\n if (\n isInstanceOf(value, "ArrayBuffer") ||\n isInstanceOf(value, "MessagePort") ||\n isInstanceOf(value, "ImageBitmap") ||\n isInstanceOf(value, "OffscreenCanvas")\n ) {\n return [value];\n }\n if (typeof value === "object") {\n if (value.constructor === Object) {\n value = Object.values(value);\n }\n if (Array.isArray(value)) {\n return value.flatMap(getTransferables);\n }\n return getTransferables(value.buffer);\n }\n }\n return [];\n};',Gw=(e,t)=>`\n${$w}\nconst exports = {};\nconst workerMsgId = '${e}';\nconst workerMsgCallbackId = workerMsgId + '.cb';\naddEventListener('message', async ({data}) => {\n if (data && data[0] === workerMsgId) {\n let id = data[1];\n let method = data[2];\n let args = data[3];\n let i = 0;\n let argsLen = args.length;\n let value;\n let err;\n\n try {\n for (; i < argsLen; i++) {\n if (Array.isArray(args[i]) && args[i][0] === workerMsgCallbackId) {\n const callbackId = args[i][1];\n args[i] = (...cbArgs) => {\n postMessage(\n [workerMsgCallbackId, callbackId, cbArgs]\n );\n };\n }\n }\n ${t?"\n value = exports[method](...args);\n if (!value || !value.then) {\n throw new Error('The exported method \"' + method + '\" does not return a Promise, make sure it is an \"async\" function');\n }\n value = await value;\n ":"\n value = await exports[method](...args);"}\n\n } catch (e) {\n value = null;\n if (e instanceof Error) {\n err = {\n isError: true,\n value: {\n message: e.message,\n name: e.name,\n stack: e.stack,\n }\n };\n } else {\n err = {\n isError: false,\n value: e\n };\n }\n value = undefined;\n }\n\n const transferables = getTransferables(value);\n ${t?"if (transferables.length > 0) console.debug('Transfering', transferables);":""}\n\n postMessage(\n [workerMsgId, id, value, err],\n transferables\n );\n }\n});\n`,qw=`\nimport { consoleError } from '@stencil/core/internal';\n\n${$w}\n\nlet pendingIds = 0;\nlet callbackIds = 0;\nconst pending = new Map();\nconst callbacks = new Map();\n\nexport const createWorker = (workerPath, workerName, workerMsgId) => {\n const worker = new Worker(workerPath, {name:workerName});\n\n worker.addEventListener('message', ({data}) => {\n if (data) {\n const workerMsg = data[0];\n const id = data[1];\n const value = data[2];\n\n if (workerMsg === workerMsgId) {\n const err = data[3];\n const [resolve, reject, callbackIds] = pending.get(id);\n pending.delete(id);\n\n if (err) {\n const errObj = (err.isError)\n ? Object.assign(new Error(err.value.message), err.value)\n : err.value;\n\n consoleError(errObj);\n reject(errObj);\n } else {\n if (callbackIds) {\n callbackIds.forEach(id => callbacks.delete(id));\n }\n resolve(value);\n }\n } else if (workerMsg === workerMsgId + '.cb') {\n try {\n callbacks.get(id)(...value);\n } catch (e) {\n consoleError(e);\n }\n }\n }\n });\n\n return worker;\n};\n\nexport const createWorkerProxy = (worker, workerMsgId, exportedMethod) => (\n (...args) => new Promise((resolve, reject) => {\n let pendingId = pendingIds++;\n let i = 0;\n let argLen = args.length;\n let mainData = [resolve, reject];\n pending.set(pendingId, mainData);\n\n for (; i < argLen; i++) {\n if (typeof args[i] === 'function') {\n const callbackId = callbackIds++;\n callbacks.set(callbackId, args[i]);\n args[i] = [workerMsgId + '.cb', callbackId];\n (mainData[2] = mainData[2] || []).push(callbackId);\n }\n }\n const postMessage = (w) => (\n w.postMessage(\n [workerMsgId, pendingId, exportedMethod, args],\n getTransferables(args)\n )\n );\n if (worker.then) {\n worker.then(postMessage);\n } else {\n postMessage(worker);\n }\n })\n);\n`,Xw=(e,t,r)=>`\nimport { createWorker } from '${Jw}';\nexport const workerName = '${t}';\nexport const workerMsgId = '${r}';\nexport const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${e};\nexport const worker = /*@__PURE__*/createWorker(workerPath, workerName, workerMsgId);\n`,Yw=(e,t,r)=>`\nimport { createWorker } from '${Jw}';\nexport const workerName = '${t}';\nexport const workerMsgId = '${r}';\nexport const workerPath = /*@__PURE__*/import.meta.ROLLUP_FILE_URL_${e};\nconst blob = new Blob(['importScripts("' + workerPath + '")'], { type: 'text/javascript' });\nconst url = URL.createObjectURL(blob);\nexport const worker = /*@__PURE__*/createWorker(url, workerName, workerMsgId);\nURL.revokeObjectURL(url);\n`,Qw=()=>"\nexport const workerName = 'mocked-worker';\nexport const workerMsgId = workerName;\nexport const workerPath = workerName;\nexport const worker = { name: workerName };\n",Zw=(e,t)=>`\nimport { createWorkerProxy } from '${Jw}';\nimport { worker, workerName, workerMsgId } from '${e}?worker';\n${t.map((e=>`export const ${e} = /*@__PURE__*/createWorkerProxy(worker, workerMsgId, '${e}');`)).join("\n")}\n`,eF=(e,t,r)=>`\nimport { createWorkerProxy } from '${Jw}';\nconst workerPromise = import('${e}?worker-inline').then(m => m.worker);\n${r.map((e=>`export const ${e} = /*@__PURE__*/createWorkerProxy(workerPromise, '${t}', '${e}');`)).join("\n")}\n`,tF=async(e,t,r,n)=>{try{const i=rF(e,t,r,n),a=await gT(i);return t.rollupCache.set(n.id,a.cache),a}catch(n){r.hasError||se(e,t,r,n)}},rF=(e,t,r,n)=>{var i;const a=Nw({mainFields:["collection:main","jsnext:main","es2017","es2015","module","main"],customResolveOptions:Vr(e.sys,t.fs,[".tsx",".ts",".js",".mjs",".json",".d.ts"]),browser:!0,rootDir:e.rootDir,...e.nodeResolve}),o=a.resolveId,s=a.resolveId=async(e,t)=>{const[r,n]=e.split("?"),i=await o.call(a,r,t);return i?K(i)?n?i+"?"+n:i:{...i,id:n?i.id+"?"+n:i.id}:i};e.devServer&&e.devServer.experimentalDevModules&&(a.resolveId=async(r,n)=>{const i=await s.call(a,r,n);return(async(e,t,r,n)=>{if(!((e,t)=>e&&t&&e.id&&e.id.includes("node_modules")&&(e.id.endsWith(".js")||e.id.endsWith(".mjs"))&&!e.external&&!t.startsWith(".")&&!t.startsWith("/"))(r,n))return r;const i=r.id,a=((e,t)=>{let r=e;for(let e=0;e<10;e++){r=Be(r);const e=Le(r),n=Be(r),i=Le(n);if(e===t&&"node_modules"===i)return Ve(r,"package.json")}return null})(i,n);if(!a)return r;const o=await t.readFile(a);if(!o)return r;let s;try{s=JSON.parse(o)}catch(e){}return s&&s.version?(r.id=((e,t,r,n)=>{n=We(e.rootDir,n);let i=`/${ST}/`;return i+=encodeURIComponent(t)+"@",i+=encodeURIComponent(r)+".js",i+="?p="+encodeURIComponent(n),i})(e,s.name,s.version,i),r.external=!0,r):r})(e,t.fs,i,r)});const c=e.rollupPlugins.before||[],l=e.rollupPlugins.after||[];return{input:n.inputs,plugins:[Dg(e,t,n.platform,n.externalRuntime),hg(e,t,r,n.conditionals,n.platform),wT(r),PT(n.loader),jw(e,t),XT(t,n,e),DT(e),NT(e,t,r,n),Uw(e,t,r,n.platform,!!n.inlineWorkers),Bw(e,n.platform),...c,a,YT(e,t),JN({include:/node_modules/,sourceMap:e.sourceMap,transformMixedEsModules:!1,...e.commonjs}),...l,IT(e,r,n.platform),ZN({preferConst:!0}),Lw({"process.env.NODE_ENV":e.devMode?'"development"':'"production"'}),(u=t.fs,{name:"fileLoadPlugin",load(e){const t=xe(e);return e.endsWith(".d.ts")?"":u.readFile(t)}})],treeshake:nF(e,n),inlineDynamicImports:n.inlineDynamicImports,preserveEntrySignatures:null!==(i=n.preserveEntrySignatures)&&void 0!==i?i:"strict",onwarn:ce(r.diagnostics),cache:t.rollupCache.get(n.id)};var u},nF=(e,t)=>("hydrate"===t.platform||!e.devMode&&!1!==e.rollupConfig.inputOptions.treeshake)&&{propertyReadSideEffects:!1,tryCatchDeoptimization:!1},iF=e=>{const t=e.some((e=>e.htmlTagNames.includes("slot"))),r=e.some((e=>"shadow"===e.encapsulation)),n=e.some((e=>"shadow"!==e.encapsulation&&e.htmlTagNames.includes("slot"))),i={allRenderFn:e.every((e=>e.hasRenderFn)),cmpDidLoad:e.some((e=>e.hasComponentDidLoadFn)),cmpShouldUpdate:e.some((e=>e.hasComponentShouldUpdateFn)),cmpDidUnload:e.some((e=>e.hasComponentDidUnloadFn)),cmpDidUpdate:e.some((e=>e.hasComponentDidUpdateFn)),cmpDidRender:e.some((e=>e.hasComponentDidRenderFn)),cmpWillLoad:e.some((e=>e.hasComponentWillLoadFn)),cmpWillUpdate:e.some((e=>e.hasComponentWillUpdateFn)),cmpWillRender:e.some((e=>e.hasComponentWillRenderFn)),connectedCallback:e.some((e=>e.hasConnectedCallbackFn)),disconnectedCallback:e.some((e=>e.hasDisconnectedCallbackFn)),element:e.some((e=>e.hasElement)),event:e.some((e=>e.hasEvent)),hasRenderFn:e.some((e=>e.hasRenderFn)),lifecycle:e.some((e=>e.hasLifecycle)),asyncLoading:!1,hostListener:e.some((e=>e.hasListener)),hostListenerTargetWindow:e.some((e=>e.hasListenerTargetWindow)),hostListenerTargetDocument:e.some((e=>e.hasListenerTargetDocument)),hostListenerTargetBody:e.some((e=>e.hasListenerTargetBody)),hostListenerTargetParent:e.some((e=>e.hasListenerTargetParent)),hostListenerTarget:e.some((e=>e.hasListenerTarget)),member:e.some((e=>e.hasMember)),method:e.some((e=>e.hasMethod)),mode:e.some((e=>e.hasMode)),observeAttribute:e.some((e=>e.hasAttribute)),prop:e.some((e=>e.hasProp)),propBoolean:e.some((e=>e.hasPropBoolean)),propNumber:e.some((e=>e.hasPropNumber)),propString:e.some((e=>e.hasPropString)),propMutable:e.some((e=>e.hasPropMutable)),reflect:e.some((e=>e.hasReflect)),scoped:e.some((e=>"scoped"===e.encapsulation)),shadowDom:r,shadowDelegatesFocus:r&&e.some((e=>e.shadowDelegatesFocus)),slot:t,slotRelocation:n,state:e.some((e=>e.hasState)),style:e.some((e=>e.hasStyle)),svg:e.some((e=>e.htmlTagNames.includes("svg"))),updatable:e.some((e=>e.isUpdateable)),vdomAttribute:e.some((e=>e.hasVdomAttribute)),vdomXlink:e.some((e=>e.hasVdomXlink)),vdomClass:e.some((e=>e.hasVdomClass)),vdomFunctional:e.some((e=>e.hasVdomFunctional)),vdomKey:e.some((e=>e.hasVdomKey)),vdomListener:e.some((e=>e.hasVdomListener)),vdomPropOrAttr:e.some((e=>e.hasVdomPropOrAttr)),vdomRef:e.some((e=>e.hasVdomRef)),vdomRender:e.some((e=>e.hasVdomRender)),vdomStyle:e.some((e=>e.hasVdomStyle)),vdomText:e.some((e=>e.hasVdomText)),watchCallback:e.some((e=>e.hasWatchCallback)),taskQueue:!0};return i.asyncLoading=i.cmpWillUpdate||i.cmpWillLoad||i.cmpWillRender,i.vdomAttribute=i.vdomAttribute||i.reflect,i.vdomPropOrAttr=i.vdomPropOrAttr||i.reflect,i},aF=(e,t,r)=>{let n=e.get(t);return null==n&&(n=e.get(t+".tsx"),null==n&&(n=e.get(t+".ts"),null==n&&(n=e.get(t+".js")))),null==n||r.some((e=>e.sourceFilePath===n.sourceFilePath))||(r.push(n),n.localImports.forEach((t=>{aF(e,t,r)}))),r},oF=(e,t)=>{t.isDebug="debug"===e.logLevel,t.isDev=!!e.devMode,t.isTesting=!!e._isTesting,t.devTools=t.isDev&&!e._isTesting,t.profile=!!e.profile,t.hotModuleReplacement=!(!e.devMode||!e.devServer||"hmr"!==e.devServer.reloadStrategy||e._isTesting),t.updatable=t.updatable||t.hydrateClientSide||t.hotModuleReplacement,t.member=t.member||t.updatable||t.mode||t.lifecycle,t.constructableCSS=!t.hotModuleReplacement||!!e._isTesting,t.asyncLoading=!!(t.asyncLoading||t.lazyLoad||t.taskQueue||t.initializeNextTick),t.cssAnnotations=!0,t.appendChildSlotFix=e.extras.appendChildSlotFix,t.slotChildNodesFix=e.extras.slotChildNodesFix,t.cloneNodeFix=e.extras.cloneNodeFix,t.dynamicImportShim=e.extras.dynamicImportShim,t.lifecycleDOMEvents=!!(t.isDebug||e._isTesting||e.extras.lifecycleDOMEvents),t.safari10=e.extras.safari10,t.scopedSlotTextContentFix=!!e.extras.scopedSlotTextContentFix,t.scriptDataOpts=e.extras.scriptDataOpts,t.shadowDomShim=e.extras.shadowDomShim,t.attachStyles=!0,t.invisiblePrehydration=void 0===e.invisiblePrehydration||e.invisiblePrehydration,t.shadowDomShim&&(t.slotRelocation=t.slot),e.hydratedFlag?(t.hydratedAttribute="attribute"===e.hydratedFlag.selector,t.hydratedClass="class"===e.hydratedFlag.selector):(t.hydratedAttribute=!1,t.hydratedClass=!1)},sF=(e,t)=>{const r=iF(t);return r.lazyLoad=!1,r.hydrateClientSide=!1,r.hydrateServerSide=!1,r.asyncQueue="congestionAsync"===e.taskQueue,r.taskQueue="immediate"!==e.taskQueue,oF(e,r),r.devTools=!1,r},cF=new Set(["Component"]),lF=new Set(["Element","Event","Listen","Method","Prop","PropDidChange","PropWillChange","State","Watch"]),uF=e=>!(!e.modifiers||!e.modifiers.some((e=>e.kind===Fl.SyntaxKind.PrivateKeyword||e.kind===Fl.SyntaxKind.ProtectedKeyword))),dF=(e,t=null)=>(null==t&&(t=new WeakSet),e===String?Fl.createIdentifier("String"):e===Number?Fl.createIdentifier("Number"):e===Boolean?Fl.createIdentifier("Boolean"):void 0===e?Fl.createIdentifier("undefined"):null===e?Fl.createIdentifier("null"):Array.isArray(e)?pF(e,t):"object"==typeof e?e.__identifier&&e.__escapedText?Fl.createIdentifier(e.__escapedText):_F(e,t):Fl.createLiteral(e)),pF=(e,t)=>{const r=e.map((e=>dF(e,t)));return Fl.createArrayLiteral(r)},_F=(e,t)=>{if(t.has(e))return Fl.createIdentifier("undefined");t.add(e);const r=Object.keys(e).map((r=>Fl.createPropertyAssignment(Fl.createLiteral(r),dF(e[r],t))));return Fl.createObjectLiteral(r,!0)},fF=(e,t)=>Fl.createGetAccessor(void 0,[Fl.createToken(Fl.SyntaxKind.StaticKeyword)],e,void 0,void 0,Fl.createBlock([Fl.createReturn(t)])),mF=(e,t)=>{const r=e.find((e=>e.name.escapedText===t));if(!r||!r.body||!r.body.statements)return null;const n=r.body.statements.find((e=>e.kind===Fl.SyntaxKind.ReturnStatement));if(!n||!n.expression)return null;const i=n.expression.kind;if(i===Fl.SyntaxKind.StringLiteral)return n.expression.text;if(i===Fl.SyntaxKind.NoSubstitutionTemplateLiteral)return n.expression.text;if(i===Fl.SyntaxKind.TrueKeyword)return!0;if(i===Fl.SyntaxKind.FalseKeyword)return!1;if(i===Fl.SyntaxKind.ObjectLiteralExpression)return hF(n.expression);if(i===Fl.SyntaxKind.ArrayLiteralExpression&&n.expression.elements)return gF(n.expression);if(i===Fl.SyntaxKind.Identifier){const e=n.expression;if("string"==typeof e.escapedText)return yF(e.escapedText);if(e.escapedText){const t={};return Object.keys(e.escapedText).forEach((r=>{t[r]=yF(e.escapedText[r])})),t}}return null},gF=e=>e.elements.map((e=>{let t;switch(e.kind){case Fl.SyntaxKind.ObjectLiteralExpression:t=hF(e);break;case Fl.SyntaxKind.StringLiteral:t=e.text;break;case Fl.SyntaxKind.TrueKeyword:t=!0;break;case Fl.SyntaxKind.FalseKeyword:t=!1;break;case Fl.SyntaxKind.Identifier:const r=e.escapedText;"String"===r?t=String:"Number"===r?t=Number:"Boolean"===r&&(t=Boolean);break;case Fl.SyntaxKind.PropertyAccessExpression:default:t=e}return t})),hF=e=>{const t=e.properties,r={};for(const e of t){const t=vF(e.name);let n;if(Fl.isShorthandPropertyAssignment(e))n=yF(t);else if(Fl.isPropertyAssignment(e))switch(e.initializer.kind){case Fl.SyntaxKind.ArrayLiteralExpression:n=gF(e.initializer);break;case Fl.SyntaxKind.ObjectLiteralExpression:n=hF(e.initializer);break;case Fl.SyntaxKind.StringLiteral:case Fl.SyntaxKind.NoSubstitutionTemplateLiteral:n=e.initializer.text;break;case Fl.SyntaxKind.TrueKeyword:n=!0;break;case Fl.SyntaxKind.FalseKeyword:n=!1;break;case Fl.SyntaxKind.Identifier:const t=e.initializer.escapedText;n="String"===t?String:"Number"===t?Number:"Boolean"===t?Boolean:"undefined"===t?void 0:"null"===t?null:yF(e.initializer.escapedText);break;case Fl.SyntaxKind.PropertyAccessExpression:default:n=e.initializer}r[t]=n}return r},yF=e=>({__identifier:!0,__escapedText:e}),vF=e=>{switch(e.kind){case Fl.SyntaxKind.Identifier:return e.text;case Fl.SyntaxKind.StringLiteral:case Fl.SyntaxKind.NumericLiteral:return e.text;case Fl.SyntaxKind.ComputedPropertyName:const t=e.expression;if(Fl.isStringLiteral(t)||Fl.isNumericLiteral(t))return e.expression.text}},bF=(e,t)=>{const r={};return EF(e).forEach((e=>{r[e]=DF(e,t)})),r},xF=e=>Fl.isIdentifier(e)?e.escapedText.toString():xF(e.left),EF=e=>{const t=[],r=e=>(Fl.isTypeReferenceNode(e)&&(t.push(xF(e.typeName)),e.typeArguments&&e.typeArguments.filter((e=>Fl.isTypeReferenceNode(e))).forEach((e=>{const r=e.typeName;r&&r.escapedText&&t.push(r.escapedText.toString())}))),Fl.forEachChild(e,r));return r(e),t},SF=(e,t,r)=>{Object.keys(t).forEach((n=>{if("@stencil/core"===t[n].path&&lF.has(n)){const t=ee(e);Ee(t,r)}}))},DF=(e,t)=>{const r=t.getSourceFile(),n=r.statements.find((t=>!!(Fl.isImportDeclaration(t)&&t.importClause&&Fl.isImportClause(t.importClause)&&t.importClause.namedBindings&&Fl.isNamedImports(t.importClause.namedBindings)&&Array.isArray(t.importClause.namedBindings.elements)&&t.importClause.namedBindings.elements.find((t=>t.name.getText()===e)))));return n?{location:"import",path:n.moduleSpecifier.text}:r.statements.some((t=>{const r=Fl.isInterfaceDeclaration(t)&&t.name.getText()===e&&Array.isArray(t.modifiers)&&t.modifiers.some((e=>e.kind===Fl.SyntaxKind.ExportKeyword)),n=Fl.isTypeAliasDeclaration(t)&&t.name.getText()===e&&Array.isArray(t.modifiers)&&t.modifiers.some((e=>e.kind===Fl.SyntaxKind.ExportKeyword)),i=Fl.isExportDeclaration(t)&&Fl.isNamedExports(t.exportClause)&&t.exportClause.elements.some((t=>t.name.getText()===e));return r||n||i}))?{location:"local"}:{location:"global"}},TF=(e,t)=>{const r=new Set;kF(e,t,r);const n=r.delete("true"),i=r.delete("false");(n||i)&&r.add("boolean");let a=Array.from(r.keys()).sort();return a.length>1&&(a=a.map((e=>e.indexOf("=>")>=0?`(${e})`:e))),a.length>20?CF(e,t):a.join(" | ")},CF=(e,t)=>{const r=Fl.TypeFormatFlags.NoTruncation|Fl.TypeFormatFlags.InTypeAlias|Fl.TypeFormatFlags.InElementType;return e.typeToString(t,void 0,r)},kF=(e,t,r)=>{if(t.isUnion())t.types.forEach((t=>{kF(e,t,r)}));else{const n=CF(e,t);r.add(n)}},AF=(e,t)=>{const r=pe(t.fileName),n=e.moduleMap.get(r);return null!=n?n:Array.from(e.moduleMap.values()).find((e=>e.jsFilePath===r))},NF=(e,t,r)=>{const n=e.nodeMap.get(r);if(n)return n;const i=AF(e,t);if(null!=i&&null!=r.members){const e=r.members.filter(FF),t=wF(e);if("string"==typeof t)return i.cmps.find((e=>e.tagName===t))}},wF=e=>{if(e.length>0){const t=mF(e,"is");if("string"==typeof t&&t.includes("-"))return t}return null},FF=e=>e.kind===Fl.SyntaxKind.GetAccessor&&e.modifiers&&e.modifiers.some((({kind:e})=>e===Fl.SyntaxKind.StaticKeyword)),PF=(e,t)=>e&&t?{tags:IF(t.getJsDocTags()),text:Fl.displayPartsToString(t.getDocumentationComment(e))}:{tags:[],text:""},IF=e=>e.map((e=>{var t;return{...e,text:null===(t=e.text)||void 0===t?void 0:t.map((e=>e.text)).join("")}})),OF=e=>e&&e.tags.some((e=>"internal"===e.name)),MF=(e,t)=>Fl.isMethodDeclaration(e)&&e.name&&e.name.escapedText===t,RF=(e,t)=>{const r=e.map((e=>{const t=e.split(" as ");let r=e,n=e;return t.length>1&&(r=t[1],n=t[0]),Fl.factory.createImportSpecifier(!1,"string"==typeof n&&n!==r?Fl.factory.createIdentifier(n):void 0,Fl.factory.createIdentifier(r))}));return Fl.createImportDeclaration(void 0,void 0,Fl.createImportClause(void 0,Fl.createNamedImports(r)),Fl.createLiteral(t))},LF=(e,t,r,n)=>{if(0===r.length)return t;if("cjs"===e.module){const e=((e,t)=>{const r=Fl.createObjectBindingPattern(e.map((e=>{const t=e.split(" as ");let r=e,n=e;return t.length>1&&(r=t[1],n=t[0]),Fl.createBindingElement(void 0,n,r)})));return Fl.createVariableStatement(void 0,Fl.createVariableDeclarationList([Fl.createVariableDeclaration(r,void 0,Fl.createCall(Fl.createIdentifier("require"),[],[Fl.createLiteral(t)]))],Fl.NodeFlags.Const))})(r,n),i=t.statements.slice();return i.splice(2,0,e),Fl.updateSourceFileNode(t,i)}const i=RF(r,n),a=t.statements.slice();return a.unshift(i),Fl.updateSourceFileNode(t,a)},BF="__stencil_createEvent",jF="__stencil_defineCustomElement",UF="__stencil_getConnect",VF="__stencil_getContext",zF="__stencil_getElement",KF="__stencil_Host",WF="HTMLElement",HF="__stencil_proxyCustomElement",JF="__stencil_registerInstance",$F="__stencil_h",GF={attachShadow:"attachShadow as __stencil_attachShadow",createEvent:`createEvent as ${BF}`,defineCustomElement:`defineCustomElement as ${jF}`,getConnect:`getConnect as ${UF}`,getContext:`getContext as ${VF}`,getElement:`getElement as ${zF}`,h:`h as ${$F}`,legacyH:"h",Host:`Host as ${KF}`,HTMLElement:WF,proxyCustomElement:`proxyCustomElement as ${HF}`,registerHost:"registerHost as __stencil_registerHost",registerInstance:`registerInstance as ${JF}`},qF=(e,t)=>{e.coreRuntimeApis.includes(t)||e.coreRuntimeApis.push(t)},XF=e=>{qF(e,GF.legacyH)},YF=e=>Fl.createStatement(QF(e)),QF=e=>{const t=y(e,!0),r=Fl.factory.createIdentifier(e.componentClassName),n=dF(t);return Fl.factory.createCallExpression(Fl.factory.createIdentifier(HF),[],[r,n])},ZF=(e,t)=>{const r=y(e,!0),n=dF(r);return Fl.factory.createCallExpression(Fl.factory.createIdentifier(HF),[],[t,n])},eP=(e,t)=>{if("scoped"===e.encapsulation){const r=Kl(e.tagName,t.modeName);return Fl.createStringLiteral(ud(t.styleStr,r,!1))}return Fl.createStringLiteral(t.styleStr)},tP=(e,t)=>(t.styleIdentifier=P(e.tagName),t.styleIdentifier=t.styleIdentifier.charAt(0).toLowerCase()+t.styleIdentifier.substring(1),t.modeName!==g&&(t.styleIdentifier+=P(t.modeName)),t.styleIdentifier+="Style",t.externalStyles=[t.externalStyles[0]],Fl.createIdentifier(t.styleIdentifier)),rP=(e,t)=>{if(t.watchers.length>0){const r={};t.watchers.forEach((({propName:e,methodName:t})=>{r[e]=r[e]||[],r[e].push(t)})),e.push(fF("watchers",dF(r)))}},nP=e=>null==e.members?[]:e.members.filter((e=>{if(e.modifiers&&e.modifiers.some((e=>e.kind===Fl.SyntaxKind.StaticKeyword))){const t=e.name.escapedText;if(iP.has(t))return!1}return!0})),iP=new Set(["is","properties","encapsulation","elementRef","events","listeners","methods","states","originalStyleUrls","styleMode","style","styles","styleUrl","watchers","styleUrls","contextProps","connectProps"]),aP=(e,t)=>{if(e.some((e=>Fl.isMethodDeclaration(e)&&"hostData"===e.name.escapedText))){const r=e.findIndex((e=>Fl.isMethodDeclaration(e)&&"render"===e.name.escapedText));if(r>=0){const t=e[r];e[r]=Fl.updateMethod(t,t.decorators,t.modifiers,t.asteriskToken,Fl.createIdentifier(sP),t.questionToken,t.typeParameters,t.parameters,t.type,t.body)}e.push(oP(t,r>=0))}},oP=(e,t)=>{qF(e,GF.Host),qF(e,GF.h);const r=[Fl.createIdentifier(KF),Fl.createCall(Fl.createPropertyAccess(Fl.createThis(),"hostData"),void 0,void 0)];return t&&r.push(Fl.createCall(Fl.createPropertyAccess(Fl.createThis(),sP),void 0,void 0)),Fl.createMethod(void 0,void 0,void 0,"render",void 0,void 0,void 0,void 0,Fl.createBlock([Fl.createReturn(Fl.createCall(Fl.createIdentifier($F),void 0,r))]))},sP="__stencil_render",cP=(e,t,r,n)=>{let i=Array.isArray(t.modifiers)?t.modifiers.slice():[];return"cjs"===e.module?("customelement"===e.componentExport&&(i=i.filter((e=>e.kind!==Fl.SyntaxKind.ExportKeyword))),Fl.updateClassDeclaration(t,t.decorators,i,t.name,t.typeParameters,r,n)):lP(e,t,r,n)},lP=(e,t,r,n)=>{const i=t.name,a=(Array.isArray(t.modifiers)?t.modifiers:[]).filter((e=>e.kind!==Fl.SyntaxKind.ExportKeyword)),o=[];return"customelement"!==e.componentExport&&o.push(Fl.createModifier(Fl.SyntaxKind.ExportKeyword)),Fl.createVariableStatement(o,Fl.createVariableDeclarationList([Fl.createVariableDeclaration(i,void 0,Fl.createClassExpression(a,void 0,t.typeParameters,r,n))],Fl.NodeFlags.Const))},uP=(e,t)=>t.events.map((t=>(qF(e,GF.createEvent),Fl.createStatement(Fl.createAssignment(Fl.createPropertyAccess(Fl.createThis(),Fl.createIdentifier(t.method)),Fl.createCall(Fl.createIdentifier(BF),void 0,[Fl.createThis(),Fl.createLiteral(t.name),Fl.createLiteral(dP(t))])))))),dP=e=>{let t=0;return e.bubbles&&(t|=4),e.composed&&(t|=2),e.cancelable&&(t|=1),t},pP=(e,t)=>(t.legacyConnect.length>0&&qF(e,GF.getConnect),t.legacyContext.length>0&&qF(e,GF.getContext),[...t.legacyConnect.map((e=>_P(e.name,UF,e.connect))),...t.legacyContext.map((e=>_P(e.name,VF,e.context)))]),_P=(e,t,r)=>Fl.createExpressionStatement(Fl.createAssignment(Fl.createPropertyAccess(Fl.createThis(),e),Fl.createCall(Fl.createIdentifier(t),void 0,[Fl.createThis(),Fl.createLiteral(r)]))),fP=(e,t)=>{const r=[mP()];return"shadow"===t.encapsulation&&r.push(gP(e)),r},mP=()=>Fl.createStatement(Fl.createCall(Fl.createPropertyAccess(Fl.createThis(),Fl.createIdentifier("__registerHost")),void 0,void 0)),gP=e=>(qF(e,GF.attachShadow),Fl.factory.createExpressionStatement(Fl.factory.createCallExpression(Fl.factory.createPropertyAccessExpression(Fl.factory.createThis(),Fl.factory.createIdentifier("__attachShadow")),void 0,void 0))),hP=()=>Fl.createExpressionStatement(Fl.createCall(Fl.createIdentifier("super"),void 0,void 0)),yP=(e,t,r,n)=>{const i=nP(t);return((e,t,r,n)=>{if(r.isPlain)return;const i=e.findIndex((e=>e.kind===Fl.SyntaxKind.Constructor));if(i>=0){const n=e[i];let a=[...fP(t,r),...uP(t,r),...n.body.statements,...pP(t,r)];true,n.body.statements.some((e=>e.kind===Fl.SyntaxKind.SuperKeyword))||(a=[hP(),...a]),e[i]=Fl.updateConstructor(n,n.decorators,n.modifiers,n.parameters,Fl.updateBlock(n.body,a))}else{let n=[...fP(t,r),...uP(t,r),...pP(t,r)];true,n=[hP(),...n];const i=Fl.createConstructor(void 0,void 0,void 0,Fl.createBlock(n,!0));e.unshift(i)}})(i,r,n),((e,t)=>{if(t.isPlain&&t.hasRenderFn){const t=Fl.createExpressionStatement(Fl.createAssignment(Fl.createPropertyAccess(Fl.createThis(),"textContent"),Fl.createCall(Fl.createPropertyAccess(Fl.createThis(),"render"),void 0,void 0))),r=e.find((e=>Fl.isMethodDeclaration(e)&&"connectedCallback"===e.name.escapedText));if(null!=r){const n=Fl.createMethod(void 0,void 0,void 0,"connectedCallback",void 0,void 0,void 0,void 0,Fl.createBlock([t,...r.body.statements],!0)),i=e.indexOf(r);e[i]=n}else{const r=Fl.createMethod(void 0,void 0,void 0,"connectedCallback",void 0,void 0,void 0,void 0,Fl.createBlock([t],!0));e.push(r)}}})(i,n),((e,t)=>{t.elementRef&&e.push(Fl.createGetAccessor(void 0,void 0,t.elementRef,[],void 0,Fl.createBlock([Fl.createReturn(Fl.createThis())])))})(i,n),rP(i,n),n.isPlain&&((e,t)=>{e.push(fF("is",dF(t.tagName)))})(i,n),"static"===e.style&&((e,t)=>{Array.isArray(t.styles)&&t.styles.length>0&&(t.styles.length>1||1===t.styles.length&&t.styles[0].modeName!==g?((e,t,r)=>{const n=[];r.forEach((e=>{if("string"==typeof e.styleStr){const r=eP(t,e),i=Fl.createPropertyAssignment(e.modeName,r);n.push(i)}else if("string"==typeof e.styleIdentifier){const t=Fl.createIdentifier(e.styleIdentifier),r=Fl.createPropertyAssignment(e.modeName,t);n.push(r)}else if(Array.isArray(e.externalStyles)&&e.externalStyles.length>0){const r=tP(t,e),i=Fl.createPropertyAssignment(e.modeName,r);n.push(i)}}));const i=Fl.createObjectLiteral(n,!0);e.push(fF("style",i))})(e,t,t.styles):((e,t,r)=>{if("string"==typeof r.styleStr){const n=eP(t,r);e.push(fF("style",n))}else if("string"==typeof r.styleIdentifier){const t=Fl.createIdentifier(r.styleIdentifier);e.push(fF("style",t))}else if(Array.isArray(r.externalStyles)&&r.externalStyles.length>0){const n=tP(t,r);e.push(fF("style",n))}})(e,t,t.styles[0]))})(i,n),aP(i,r),i},vP=(e,t,r)=>"cjs"===e.module?SP(e,t,r):bP(e,t,r),bP=(e,t,r)=>{const n=[];let i=t.statements.slice(),a=!1;if(r.cmps.forEach((r=>{r.styles.forEach((o=>{"string"==typeof o.styleIdentifier&&(a=!0,o.externalStyles.length>0?n.push(EP(e,t,r,o)):i=xP(e,t,i,r,o))}))})),a){let e=-1;for(let t=0;t<i.length;t++)Fl.isImportDeclaration(i[t])&&(e=t);return i.splice(e+1,0,...n),Fl.updateSourceFileNode(t,i)}return t},xP=(e,t,r,n,i)=>{for(let a=0;a<r.length;a++){const o=r[a];if(Fl.isImportDeclaration(o)&&o.importClause&&o.moduleSpecifier&&Fl.isStringLiteral(o.moduleSpecifier)&&o.importClause.name&&o.importClause.name.escapedText===i.styleIdentifier){const s=o.moduleSpecifier.text,c=TP(e,t,n,i,s);r[a]=Fl.factory.updateImportDeclaration(o,o.decorators,o.modifiers,o.importClause,Fl.factory.createStringLiteral(c),void 0);break}}return r},EP=(e,t,r,n)=>{const i=Fl.createIdentifier(n.styleIdentifier),a=TP(e,t,r,n,n.externalStyles[0].absolutePath);return Fl.createImportDeclaration(void 0,void 0,Fl.createImportClause(i,void 0),Fl.createLiteral(a))},SP=(e,t,r)=>{const n=[];return r.cmps.forEach((r=>{r.styles.forEach((i=>{"string"==typeof i.styleIdentifier&&i.externalStyles.length>0&&n.push(DP(e,t,r,i))}))})),n.length>0?Fl.updateSourceFileNode(t,[...n,...t.statements]):t},DP=(e,t,r,n)=>{const i=Fl.createIdentifier(n.styleIdentifier),a=TP(e,t,r,n,n.externalStyles[0].absolutePath);return Fl.createVariableStatement(void 0,Fl.createVariableDeclarationList([Fl.createVariableDeclaration(i,void 0,Fl.createCall(Fl.createIdentifier("require"),[],[Fl.createLiteral(a)]))],Fl.NodeFlags.Const))},TP=(e,t,r,n,i)=>{const a={importeePath:i,importerPath:t.fileName,tag:r.tagName,encapsulation:r.encapsulation,mode:n.modeName};return dd(a,e.styleImportData)},CP=(e,t)=>r=>n=>{const i=AF(e,n),a=o=>{if(Fl.isClassDeclaration(o)){const r=NF(e,n,o);if(null!=r)return((e,t,r,n)=>{const i=((e,t)=>null!=e.heritageClauses&&e.heritageClauses.length>0?e.heritageClauses:(t.cmps.length>=1&&qF(t,GF.HTMLElement),[Fl.factory.createHeritageClause(Fl.SyntaxKind.ExtendsKeyword,[Fl.factory.createExpressionWithTypeArguments(Fl.factory.createIdentifier(WF),[])])]))(t,r),a=yP(e,t,r,n);return cP(e,t,i,a)})(t,o,i,r)}return Fl.visitEachChild(o,a,r)};return n=Fl.visitEachChild(n,a,r),i.cmps.length>0&&("customelement"===t.componentExport?n=((e,t,r)=>{let n=e.statements.slice();return n.push(...t.cmps.map((e=>((e,t)=>{if(t.isPlain)return Fl.createStatement(Fl.createCall(Fl.createPropertyAccess(Fl.createIdentifier("customElements"),Fl.createIdentifier("define")),[],[Fl.createLiteral(t.tagName),Fl.createIdentifier(t.componentClassName)]));qF(e,GF.defineCustomElement);const r=y(t,!0),n=Fl.createIdentifier(t.componentClassName),i=dF(r);return Fl.createStatement(Fl.createCall(Fl.createIdentifier(jF),[],[n,i]))})(t,e)))),"cjs"===r.module&&(n=((e,t)=>{const r=new Set(t.cmps.map((e=>e.componentClassName)));return e.filter((e=>{if(e.kind===Fl.SyntaxKind.ExpressionStatement){const t=e.expression;if(t&&t.kind===Fl.SyntaxKind.BinaryExpression){const e=t.left;if(e&&e.kind===Fl.SyntaxKind.PropertyAccessExpression&&e.expression&&e.expression.kind===Fl.SyntaxKind.Identifier&&"exports"===e.expression.text){const e=t.right;if(e&&r.has(e.text))return!1}}}return!0}))})(n,t)),Fl.updateSourceFileNode(e,n)})(n,i,t):"defineproperty"===t.proxy&&(n=((e,t)=>{const r=e.statements.slice();return qF(t,GF.proxyCustomElement),r.push(...t.cmps.map(YF)),Fl.updateSourceFileNode(e,r)})(n,i)),n=vP(t,n,i)),i.isLegacy&&XF(i),n=LF(t,n,i.coreRuntimeApis,t.coreImportPath)},kP=(e,t,r)=>()=>n=>{const i=AF(e,n),a=[],o=[],s=[];if(i.cmps.length){const e=i.cmps[0];s.push(e.tagName);const n=Fl.factory.createCallExpression(Fl.factory.createPropertyAccessExpression(Fl.factory.createIdentifier("customElements"),"define"),void 0,[Fl.factory.createIdentifier("tagName"),Fl.factory.createIdentifier(e.componentClassName)]);if(o.push(NP(e.tagName,n)),AP(i,t,a,o,s),wP(s,a,o),r.autoDefineCustomElements){const t=(c=e.componentClassName,Fl.factory.createExpressionStatement(Fl.factory.createCallExpression(Fl.factory.createIdentifier("defineCustomElement"),void 0,[Fl.factory.createIdentifier(c)])));a.push(t)}}var c;return Fl.factory.updateSourceFile(n,[...n.statements,...a])},AP=(e,t,r,n,i)=>{e.cmps.forEach((e=>{e.dependencies.forEach((e=>{const a=t.find((t=>t.tagName===e)),o=`$${P(a.tagName)}DefineCustomElement`;i.push(a.tagName),r.push(RF([`defineCustomElement as ${o}`],a.sourceFilePath));const s=Fl.factory.createCallExpression(Fl.factory.createIdentifier(o),void 0,[]);n.push(NP(a.tagName,s))}))}))},NP=(e,t)=>Fl.factory.createCaseClause(Fl.factory.createStringLiteral(e),[Fl.factory.createIfStatement(Fl.factory.createPrefixUnaryExpression(Fl.SyntaxKind.ExclamationToken,Fl.factory.createCallExpression(Fl.factory.createPropertyAccessExpression(Fl.factory.createIdentifier("customElements"),"get"),void 0,[Fl.factory.createIdentifier("tagName")])),Fl.factory.createBlock([Fl.factory.createExpressionStatement(t)])),Fl.factory.createBreakStatement()]),wP=(e,t,r)=>{const n=Fl.factory.createFunctionDeclaration(void 0,[Fl.factory.createModifier(Fl.SyntaxKind.ExportKeyword)],void 0,Fl.factory.createIdentifier("defineCustomElement"),void 0,void 0,void 0,Fl.factory.createBlock([Fl.factory.createIfStatement(Fl.factory.createStrictEquality(Fl.factory.createTypeOfExpression(Fl.factory.createIdentifier("customElements")),Fl.factory.createStringLiteral("undefined")),Fl.factory.createBlock([Fl.factory.createReturnStatement()])),Fl.factory.createVariableStatement(void 0,Fl.factory.createVariableDeclarationList([Fl.factory.createVariableDeclaration("components",void 0,void 0,Fl.factory.createArrayLiteralExpression(e.map((e=>Fl.factory.createStringLiteral(e)))))],Fl.NodeFlags.Const)),Fl.factory.createExpressionStatement(Fl.factory.createCallExpression(Fl.factory.createPropertyAccessExpression(Fl.factory.createIdentifier("components"),"forEach"),void 0,[Fl.factory.createArrowFunction(void 0,void 0,[Fl.factory.createParameterDeclaration(void 0,void 0,void 0,Fl.factory.createIdentifier("tagName"),void 0,void 0)],void 0,Fl.factory.createToken(Fl.SyntaxKind.EqualsGreaterThanToken),Fl.factory.createBlock([Fl.factory.createSwitchStatement(Fl.factory.createIdentifier("tagName"),Fl.factory.createCaseBlock(r))]))]))],!0));t.push(n)},FP=(e,t)=>()=>r=>{const n=AF(e,r);if(!n.cmps.length)return r;const i=n.cmps[0];for(let[e,n]of r.statements.entries())if(Fl.isVariableStatement(n))for(let[a,o]of n.declarationList.declarations.entries()){if(o.name.getText()!==i.componentClassName)continue;const s=ZF(i,o.initializer);Fl.addSyntheticLeadingComment(s,Fl.SyntaxKind.MultiLineCommentTrivia,"@__PURE__",!1);const c=Fl.factory.updateVariableDeclaration(o,o.name,o.exclamationToken,o.type,s),l=Fl.factory.updateVariableDeclarationList(n.declarationList,[...n.declarationList.declarations.slice(0,a),c,...n.declarationList.declarations.slice(a+1)]),u=Fl.factory.updateVariableStatement(n,[Fl.factory.createModifier(Fl.SyntaxKind.ExportKeyword)],l);return r=Fl.factory.updateSourceFile(r,[...r.statements.slice(0,e),u,...r.statements.slice(e+1)]),LF(t,r,[GF.proxyCustomElement],t.coreImportPath)}return r},PP=e=>()=>t=>{if(og===e)return t;let r=!1;const n=[];return t.statements.forEach((t=>{if(Fl.isImportDeclaration(t)&&null!=t.moduleSpecifier&&Fl.isStringLiteral(t.moduleSpecifier)&&t.moduleSpecifier.text===og){if(t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===Fl.SyntaxKind.NamedImports){const r=t.importClause.namedBindings.elements.map((e=>e.getText())).filter((e=>IP.has(e)));if(r.length>0){const i=Fl.factory.updateImportDeclaration(t,void 0,void 0,Fl.factory.createImportClause(!1,void 0,Fl.factory.createNamedImports(r.map((e=>Fl.factory.createImportSpecifier(!1,void 0,Fl.factory.createIdentifier(e)))))),Fl.factory.createStringLiteral(e),void 0);n.push(i)}}return r=!0,void 0}n.push(t)})),r?Fl.updateSourceFileNode(t,n,t.isDeclarationFile,t.referencedFiles,t.typeReferenceDirectives,t.hasNoDefaultLib,t.libReferenceDirectives):t},IP=new Set(["h","setMode","getMode","setPlatformHelpers","Build","Env","Host","Fragment","getAssetPath","writeTask","readTask","getElement","forceUpdate","getRenderingRef","forceModeUpdate","setErrorHandler"]),OP=async(e,t,r)=>{if(!e.buildDist)return;const n=e.outputTargets.filter(Md);if(0===n.length)return;const i="generate custom elements",a=r.createTimeSpan(`${i} started`);await Promise.all(n.map((n=>MP(e,t,r,n)))),a.finish(`${i} finished`)},MP=async(e,t,r,n)=>{try{const i={id:"customElements",platform:"client",conditionals:sF(e,r.components),customTransformers:BP(e,t,r.components,n),externalRuntime:!!n.externalRuntime,inlineWorkers:!0,inputs:{index:"\0core"},loader:{"\0core":LP(n)},inlineDynamicImports:n.inlineDynamicImports,preserveEntrySignatures:"allow-extension"};RP(r,i);const a=await tF(e,t,r,i);if(a){const i=await a.generate({banner:Ae(e),format:"esm",sourcemap:e.sourceMap,chunkFileNames:n.externalRuntime||!e.hashFileNames?"[name].js":"p-[hash].js",entryFileNames:"[name].js",hoistTransitiveImports:!1,preferConst:!0}),o=!n.externalRuntime&&!0===n.minify&&e.minifyJs,s=i.output.map((async i=>{if("chunk"===i.type){let a=i.code,s=Me(i.map);const c=await Ul(e,t,{input:a,isCore:i.isEntry,minify:o,sourceMap:s});r.diagnostics.push(...c.diagnostics),ie(c.diagnostics)||"string"!=typeof c.output||(a=c.output,s=c.sourceMap),s&&(a+=Re(i.fileName),await t.fs.writeFile(Ve(n.dir,i.fileName+".map"),JSON.stringify(s),{outputTargetType:n.type})),await t.fs.writeFile(Ve(n.dir,i.fileName),a,{outputTargetType:n.type})}}));await Promise.all(s)}}catch(e){ne(r.diagnostics,e)}},RP=(e,t)=>{e.components.forEach((e=>{const r=[],n=P(e.tagName),i=e.componentClassName,a=`$Cmp${n}`,o=`\0${n}`;e.isPlain?r.push(`export { ${i} as ${n} } from '${e.sourceFilePath}';`):(r.push(`import { ${i} as ${a}, defineCustomElement as cmpDefCustomEle } from '${e.sourceFilePath}';`),r.push(`export const ${n} = ${a};`),r.push("export const defineCustomElement = cmpDefCustomEle;")),t.inputs[e.tagName]=o,t.loader[o]=r.join("\n")}))},LP=e=>{const t=[];return t.push("export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';","export * from '@user-index-entrypoint';"),!1!==e.includeGlobalScripts&&t.push(`import { globalScripts } from '${cg}';`,"globalScripts();"),t.join("\n")+"\n"},BP=(e,t,r,n)=>{const i={coreImportPath:ug,componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[kP(t,r,n),PP(i.coreImportPath),CP(t,i),FP(t,i),ag(t)]},jP=async(e,t,r)=>{if(!e.buildDist)return;const n=e.outputTargets.filter(Rd);if(0===n.length)return;const i="generate custom elements bundle"+(e.sourceMap?" + source maps":""),a=r.createTimeSpan(`${i} started`);await Promise.all(n.map((n=>UP(e,t,r,n)))),a.finish(`${i} finished`)},UP=async(e,t,r,n)=>{try{const i={id:"customElementsBundle",platform:"client",conditionals:sF(e,r.components),customTransformers:zP(e,t),externalRuntime:!!n.externalRuntime,inlineWorkers:!0,inputs:{index:"\0core"},loader:{"\0core":VP(n,r)},inlineDynamicImports:n.inlineDynamicImports,preserveEntrySignatures:"allow-extension"},a=await tF(e,t,r,i);if(a){const i=await a.generate({banner:Ae(e),format:"esm",sourcemap:e.sourceMap,chunkFileNames:n.externalRuntime||!e.hashFileNames?"[name].js":"p-[hash].js",entryFileNames:"[name].js",hoistTransitiveImports:!1,preferConst:!0}),o=!n.externalRuntime&&!0===n.minify&&e.minifyJs,s=i.output.map((async i=>{if("chunk"===i.type){let a=i.code,s=Me(i.map);const c=await Ul(e,t,{input:a,isCore:i.isEntry,minify:o,sourceMap:s});r.diagnostics.push(...c.diagnostics),ie(c.diagnostics)||"string"!=typeof c.output||(a=c.output,s=c.sourceMap),s&&(a+=Re(i.fileName),await t.fs.writeFile(Ve(n.dir,i.fileName+".map"),JSON.stringify(s),{outputTargetType:n.type})),await t.fs.writeFile(Ve(n.dir,i.fileName),a,{outputTargetType:n.type})}}));await Promise.all(s)}}catch(e){ne(r.diagnostics,e)}},VP=(e,t)=>{const r=[],n=[],i=[];return r.push("import { proxyCustomElement } from '@stencil/core/internal/client';","export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';","export * from '@user-index-entrypoint';"),!1!==e.includeGlobalScripts&&r.push(`import { globalScripts } from '${cg}';`,"globalScripts();"),t.components.forEach((e=>{const t=P(e.tagName),a=e.componentClassName,o=`$Cmp${t}`;if(e.isPlain)n.push(`export { ${a} as ${t} } from '${e.sourceFilePath}';`);else{const i=v(y(e,!1));r.push(`import { ${a} as ${o} } from '${e.sourceFilePath}';`),n.push(`export const ${t} = /*@__PURE__*/proxyCustomElement(${o}, ${i});`)}i.push(t)})),n.push("export const defineCustomElements = (opts) => {"),n.push(" if (typeof customElements !== 'undefined') {"),n.push(" ["),n.push(` ${i.join(",\n ")}`),n.push(" ].forEach(cmp => {"),n.push(" if (!customElements.get(cmp.is)) {"),n.push(" customElements.define(cmp.is, cmp, opts);"),n.push(" }"),n.push(" });"),n.push(" }"),n.push("};"),[...r,...n].join("\n")+"\n"},zP=(e,t)=>{const r={coreImportPath:ug,componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[PP(r.coreImportPath),CP(t,r),ag(t)]},KP="\x3c!-- Auto Generated Below --\x3e",WP=async(e,t,r)=>{const n=await Promise.all(r.moduleFiles.map((async n=>{const i=n.sourceFilePath,a=pe(Be(i)),o=pe(Ve(a,"readme.md")),s=pe(Ve(a,"usage")),c=await aI(t,o),l=await sI(t,s);return n.cmps.filter((e=>!e.internal&&!e.isCollectionDependency)).map((t=>({dirPath:a,filePath:We(e.rootDir,i),fileName:Le(i),readmePath:o,usagesDir:s,tag:t.tagName,readme:c,usage:l,docs:oI(c,t.docs),docsTags:t.docs.tags,encapsulation:JP(t),dependents:t.directDependents,dependencies:t.directDependencies,dependencyGraph:HP(t,r.components),deprecation:tI(t.docs.tags),props:$P(t),methods:YP(t.methods),events:QP(t.events),styles:ZP(t),slots:rI(t.docs.tags),parts:nI(t.htmlParts,t.docs.tags),listeners:eI(t.listeners)})))})));return M(R(n),(e=>e.tag))},HP=(e,t)=>{const r={};return!function e(n){if(!r[n]){const i=t.find((e=>e.tagName===n)).directDependencies;i.length>0&&(r[n]=i,i.forEach(e))}}(e.tagName),e.directDependents.forEach((t=>{r[t]&&!r[t].includes(e.tagName)?r[t].push(e.tagName):r[t]=[e.tagName]})),r},JP=e=>"shadow"===e.encapsulation?"shadow":"scoped"===e.encapsulation?"scoped":"none",$P=e=>M([...GP(e.properties),...qP(e.virtualProperties)],(e=>e.name)),GP=e=>e.filter((e=>!e.internal)).map((e=>({name:e.name,type:e.complexType.resolved,mutable:e.mutable,attr:e.attribute,reflectToAttr:!!e.reflect,docs:e.docs.text,docsTags:e.docs.tags,default:e.defaultValue,deprecation:tI(e.docs.tags),values:XP(e.complexType.resolved),optional:e.optional,required:e.required}))),qP=e=>e.map((e=>({name:e.name,type:e.type,mutable:!1,attr:e.name,reflectToAttr:!1,docs:e.docs,docsTags:[],default:void 0,deprecation:void 0,values:XP(e.type),optional:!0,required:!1}))),XP=e=>{if("string"==typeof e){const t=e.split("|").map((e=>e.trim())),r=[];return t.forEach((e=>"true"===e?(r.push({value:"true",type:"boolean"}),void 0):"false"===e?(r.push({value:"false",type:"boolean"}),void 0):Number.isNaN(parseFloat(e))?/^("|').+("|')$/gm.test(e)?(r.push({value:e.slice(1,-1),type:"string"}),void 0):(r.push({type:e}),void 0):(r.push({value:e,type:"number"}),void 0))),r}return[]},YP=e=>M(e,(e=>e.name)).filter((e=>!e.internal)).map((e=>({name:e.name,returns:{type:e.complexType.return,docs:e.docs.tags.filter((e=>"return"===e.name||"returns"===e.name)).map((e=>e.text)).join("\n")},signature:`${e.name}${e.complexType.signature}`,parameters:[],docs:e.docs.text,docsTags:e.docs.tags,deprecation:tI(e.docs.tags)}))),QP=e=>M(e,(e=>e.name.toLowerCase())).filter((e=>!e.internal)).map((e=>({event:e.name,detail:e.complexType.resolved,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed,docs:e.docs.text,docsTags:e.docs.tags,deprecation:tI(e.docs.tags)}))),ZP=e=>e.styleDocs?M(e.styleDocs,(e=>e.name.toLowerCase())).map((e=>({name:e.name,annotation:e.annotation||"",docs:e.docs||""}))):[],eI=e=>e.map((e=>({event:e.name,target:e.target,capture:e.capture,passive:e.passive}))),tI=e=>{const t=e.find((e=>"deprecated"===e.name));if(t)return t.text||""},rI=e=>M(iI("slot",e).map((([e,t])=>({name:e,docs:t}))),(e=>e.name)),nI=(e,t)=>{const r=iI("part",t).map((([e,t])=>({name:e,docs:t}))),n=e.map((e=>({name:e,docs:""})));return M(L([...r,...n],(e=>e.name)),(e=>e.name))},iI=(e,t)=>t.filter((t=>t.name===e&&t.text)).map((({text:e})=>{const[t,...r]=(" "+e).split(" - ");return[t.trim(),r.join(" - ").trim()]})),aI=async(e,t)=>{try{const r=await e.fs.readFile(t),n=r.indexOf(KP)-1;if(n>=0)return r.substring(0,n)}catch(e){}},oI=(e,t)=>{const r=t.text;if(""!==r||!e)return r;let n=!1;const i=e.split("\n"),a=[];for(const e of i){const t=e.startsWith("#");if(t&&n)break;t||n||(n=!0),n&&a.push(e)}return a.join("\n").trim()},sI=async(e,t)=>{const r={};try{const n=await e.fs.readdir(t),i={};await Promise.all(n.map((async t=>{if(!t.isFile)return;const r=Le(t.relPath);if(!r.toLowerCase().endsWith(".md"))return;const n=r.split(".");n.pop();const a=n.join(".");i[a]=await e.fs.readFile(t.absPath)}))),Object.keys(i).sort().forEach((e=>{r[e]=i[e]}))}catch(e){}return r},cI=async(e,t,r)=>{const n=r.filter($d);0!==n.length&&await Promise.all(n.map((async r=>{try{await r.generator(t,e)}catch(t){e.logger.error(`uncaught custom docs error: ${t}`)}})))},lI=async(e,t,r,n)=>{const i=n.filter(Jd);if(0===i.length)return;const a=Ve(e.sys.getCompilerExecutingPath(),"..","..","internal","stencil-public-docs.d.ts"),o=`\n/**\n * This is an autogenerated file created by the Stencil compiler.\n * DO NOT MODIFY IT MANUALLY\n */\n${await t.fs.readFile(a)}\ndeclare const _default: JsonDocs;\nexport default _default;\n`,s={...r,components:r.components.map((e=>({filePath:e.filePath,encapsulation:e.encapsulation,tag:e.tag,readme:e.readme,docs:e.docs,docsTags:e.docsTags,usage:e.usage,props:e.props,methods:e.methods,events:e.events,listeners:e.listeners,styles:e.styles,slots:e.slots,parts:e.parts,dependents:e.dependents,dependencies:e.dependencies,dependencyGraph:e.dependencyGraph,deprecation:e.deprecation})))},c=JSON.stringify(s,null,2);await Promise.all(i.map((e=>uI(t,e,c,o))))},uI=async(e,t,r,n)=>Promise.all([e.fs.writeFile(t.file,r),t.typesFile?e.fs.writeFile(t.typesFile,n):Promise.resolve()]);class dI{constructor(){this.rows=[]}addHeader(e){this.addRow(e,!0)}addRow(e,t=!1){const r=[];e.forEach((e=>{const t={text:pI(e),width:e.length};r.push(t)})),this.rows.push({columns:r,isHeader:t})}toMarkdown(){return _I(this.rows)}}const pI=e=>(e=e.replace(/\r?\n/g," ")).replace(/\|/g,"\\|"),_I=e=>{const t=[];if(0===e.length)return t;gI(e),hI(e);const r=e.find((e=>e.isHeader));if(r){const e=mI(r);t.push(e),t.push(fI(r))}return e.filter((e=>!e.isHeader)).forEach((e=>{t.push(mI(e))})),t},fI=e=>{const t={columns:[],isHeader:!1};return e.columns.forEach((e=>{const r={text:"",width:e.width};for(;r.text.length<r.width;)r.text+="-";t.columns.push(r)})),mI(t)},mI=e=>{const t=["| "];return e.columns.forEach((e=>{t.push(e.text),t.push(" | ")})),t.join("").trim()},gI=e=>{let t=0;e.forEach((e=>{e.columns.length>t&&(t=e.columns.length)})),e.forEach((e=>{for(;e.columns.length<t;)e.columns.push({text:"",width:0})}))},hI=e=>{const t=e[0].columns.length;for(let r=0;r<t;r++){let t=0;e.forEach((e=>{const n=e.columns[r];n.text.length>t&&(t=n.text.length)})),e.forEach((e=>{const n=e.columns[r];for(n.width=t;n.text.length<t;)n.text+=" "}))}},yI=e=>{const t=[];if(0===e.length)return t;t.push("## Properties"),t.push("");const r=new dI;return r.addHeader(["Property","Attribute","Description","Type","Default"]),e.forEach((e=>{r.addRow([vI(e),bI(e),xI(e),`\`${e.type}\``,`\`${e.default}\``])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},vI=e=>`\`${e.name}\`${e.required?" _(required)_":""}`,bI=e=>e.attr?`\`${e.attr}\``:"--",xI=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,EI=e=>{const t=[];if(0===e.length)return t;t.push("## Events"),t.push("");const r=new dI;return r.addHeader(["Event","Description","Type"]),e.forEach((e=>{r.addRow([`\`${e.event}\``,SI(e),`\`CustomEvent<${e.detail}>\``])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},SI=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,DI=e=>{const t=[];return 0===e.length||(t.push("## Methods"),t.push(""),e.forEach((e=>{if(t.push(`### \`${e.signature}\``),t.push(""),t.push(TI(e)),t.push(""),e.parameters.length>0){const r=new dI;r.addHeader(["Name","Type","Description"]),e.parameters.forEach((({name:e,type:t,docs:n})=>{r.addRow(["`"+e+"`","`"+t+"`",n])})),t.push("#### Parameters"),t.push(""),t.push(...r.toMarkdown()),t.push("")}e.returns&&(t.push("#### Returns"),t.push(""),t.push(`Type: \`${e.returns.type}\``),t.push(""),t.push(e.returns.docs),t.push(""))})),t.push("")),t},TI=e=>`${void 0!==e.deprecation?`<span style="color:red">**[DEPRECATED]**</span> ${e.deprecation}<br/><br/>`:""}${e.docs}`,CI=e=>{const t=[],r=kI(e);return 0===r.length||(t.push("## Usage"),r.forEach((({name:e,text:r})=>{t.push(""),t.push(`### ${I(e)}`),t.push(""),t.push(r),t.push("")})),t.push(""),t.push("")),t},kI=e=>{const t=Object.keys(e),r=new Map;t.forEach((t=>{const n=e[t].trim(),i=r.get(n)||[];i.push(t),r.set(n,i)}));const n=[];return r.forEach(((e,t)=>{n.push({name:e.join(" / "),text:t})})),n},AI=e=>{const t=[];if(0===e.length)return t;t.push("## CSS Custom Properties"),t.push("");const r=new dI;return r.addHeader(["Name","Description"]),e.forEach((e=>{r.addRow([`\`${e.name}\``,e.docs])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},NI=e=>{const t=[];if(0===e.length)return t;t.push("## Slots"),t.push("");const r=new dI;return r.addHeader(["Slot","Description"]),e.forEach((e=>{r.addRow([""===e.name?"":`\`"${e.name}"\``,e.docs])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},wI=e=>{const t=[];if(0===e.length)return t;t.push("## Shadow Parts"),t.push("");const r=new dI;return r.addHeader(["Part","Description"]),e.forEach((e=>{r.addRow([""===e.name?"":`\`"${e.name}"\``,e.docs])})),t.push(...r.toMarkdown()),t.push(""),t.push(""),t},FI=(e,t,r)=>{const n=r.find((e=>e.tag===t));if(n){const r=pe(We(e.dirPath,n.dirPath));return`[${t}](${r})`}return t},PI=e=>void 0!==e.deprecation?[`> **[DEPRECATED]** ${e.deprecation}`,""]:[],II=async(e,t,r,n)=>{const i=n.filter(Hd);0!==i.length&&(i.some((e=>e.strict))&&OI(e,r),await Promise.all(r.components.map((n=>(async(e,t,r,n,i)=>{const a=!!n.readme,o=a?n.readme:(e=>[`# ${e.tag}`,"","",""].join("\n"))(n);await Promise.all(r.map((async r=>{if(r.dir){const s=((e,t,r,n)=>{const i=!1!==n.dependencies?((e,t)=>{const r=[],n=Object.entries(e.dependencyGraph);if(0===n.length)return r;if(r.push("## Dependencies"),r.push(""),e.dependents.length>0){const n=e.dependents.map((r=>" - "+FI(e,r,t)));r.push("### Used by"),r.push(""),r.push(...n),r.push("")}if(e.dependencies.length>0){const n=e.dependencies.map((r=>"- "+FI(e,r,t)));r.push("### Depends on"),r.push(""),r.push(...n),r.push("")}return r.push("### Graph"),r.push("```mermaid"),r.push("graph TD;"),n.forEach((([e,t])=>{t.forEach((t=>{r.push(` ${e} --\x3e ${t}`)}))})),r.push(` style ${e.tag} fill:#f9f,stroke:#333,stroke-width:4px`),r.push("```"),r.push(""),r})(t,r):[];return[e,KP,"","",...PI(t),...CI(t.usage),...yI(t.props),...EI(t.events),...DI(t.methods),...NI(t.slots),...wI(t.parts),...AI(t.styles),...i,"----------------------------------------------","",n.footer,""].join("\n")})(o,n,i,r),c=We(e.srcDir,n.readmePath),l=Ve(r.dir,c);(await t.fs.writeFile(l,s)).changedContent&&(a?e.logger.info(`updated readme docs: ${n.tag}`):e.logger.info(`created readme docs: ${n.tag}`))}})))})(e,t,i,n,r.components)))))},OI=(e,t)=>{t.components.forEach((t=>{t.props.forEach((r=>{r.docs||void 0!==r.deprecation||e.logger.warn(`Property "${r.name}" of "${t.tag}" is not documented. ${t.filePath}`)})),t.methods.forEach((r=>{r.docs||void 0!==r.deprecation||e.logger.warn(`Method "${r.name}" of "${t.tag}" is not documented. ${t.filePath}`)})),t.events.forEach((r=>{r.docs||void 0!==r.deprecation||e.logger.warn(`Event "${r.event}" of "${t.tag}" is not documented. ${t.filePath}`)})),t.parts.forEach((r=>{""===r.docs&&e.logger.warn(`Part "${r.name}" of "${t.tag}" is not documented. ${t.filePath}`)}))}))},MI=async(e,t,r)=>{const n=r.filter(Gd);0!==n.length&&await Promise.all(n.map((async r=>{const n={version:1.1,tags:t.components.map((e=>({name:e.tag,description:{kind:"markdown",value:e.docs},attributes:e.props.filter((e=>e.attr)).map(LI),references:RI(e,r.sourceCodeBaseUrl)})))},i=JSON.stringify(n,null,2);await e.fs.writeFile(r.file,i)})))},RI=(e,t)=>{const r=iI("reference",e.docsTags).map((([e,t])=>({name:e,url:t})));if(t&&r.push({name:"Source code",url:Ve(t,e.filePath)}),r.length>0)return r},LI=e=>{const t={name:e.attr,description:e.docs},r=e.values.filter((({type:e,value:t})=>"string"===e&&void 0!==t)).map((({value:e})=>({name:e})));return r.length>0&&(t.values=r),t},BI=async(e,t,r,n,i)=>{const a=i.filter(Kd);0!==a.length&&await Promise.all(a.map((async i=>{const a=r.createTimeSpan(`generating ${i.name} started`);try{await i.generator(e,t,r,n)}catch(e){ne(r.diagnostics,e)}a.finish(`generate ${i.name} finished`)})))},jI=e=>{const t=iF(e);return t.slotRelocation=!0,t.lazyLoad=!0,t.hydrateServerSide=!0,t.cssVarShim=!1,t.hydrateClientSide=!0,t.isDebug=!1,t.isDev=!1,t.isTesting=!1,t.devTools=!1,t.lifecycleDOMEvents=!1,t.profile=!1,t.hotModuleReplacement=!1,t.updatable=!0,t.member=!0,t.constructableCSS=!1,t.asyncLoading=!0,t.appendChildSlotFix=!1,t.slotChildNodesFix=!1,t.cloneNodeFix=!1,t.cssAnnotations=!0,t.shadowDomShim=!0,t.safari10=!1,t.hydratedAttribute=!1,t.hydratedClass=!0,t.scriptDataOpts=!1,t.dynamicImportShim=!1,t.attachStyles=!0,t},UI=(e,t,r)=>{r.elementRef&&(qF(t,GF.getElement),e.push(Fl.createGetAccessor(void 0,void 0,r.elementRef,[],void 0,Fl.createBlock([Fl.createReturn(Fl.createCall(Fl.createIdentifier(zF),void 0,[Fl.createThis()]))]))))},VI=(e,t)=>Array.isArray(e.styles)&&e.styles.length>0?e.styles.length>1||1===e.styles.length&&e.styles[0].modeName!==g?zI(e,e.styles,t):WI(e,e.styles[0],t):null,zI=(e,t,r)=>{const n=[];return t.forEach((t=>{if("string"==typeof t.styleStr){const i=HI(e,t,r),a=KI(t.modeName,i);n.push(a)}else if("string"==typeof t.styleIdentifier){const e=Fl.createIdentifier(t.styleIdentifier),r=KI(t.modeName,e);n.push(r)}else if(Array.isArray(t.externalStyles)&&t.externalStyles.length>0){const r=JI(e,t),i=KI(t.modeName,r);n.push(i)}})),Fl.createObjectLiteral(n,!0)},KI=(e,t)=>Fl.createPropertyAssignment(e,t),WI=(e,t,r)=>"string"==typeof t.styleStr?HI(e,t,r):"string"==typeof t.styleIdentifier?Fl.createIdentifier(t.styleIdentifier):Array.isArray(t.externalStyles)&&t.externalStyles.length>0?JI(e,t):null,HI=(e,t,r)=>{if("scoped"===e.encapsulation||r&&"shadow"===e.encapsulation){const n=Kl(e.tagName,t.modeName);return Fl.createStringLiteral(ud(t.styleStr,n,r))}return Fl.createStringLiteral(t.styleStr)},JI=(e,t)=>(t.styleIdentifier=P(e.tagName),t.styleIdentifier=t.styleIdentifier.charAt(0).toLowerCase()+t.styleIdentifier.substring(1),t.modeName!==g&&(t.styleIdentifier+=P(t.modeName)),t.styleIdentifier+="Style",t.externalStyles=[t.externalStyles[0]],Fl.createIdentifier(t.styleIdentifier)),$I=e=>"-",GI=e=>e.properties.reduce(((e,t)=>(t.reflect&&e.push([t.name,t.attribute]),e)),[]),qI=(e,t,r)=>{const n=[Fl.createParameter(void 0,void 0,void 0,Fl.createIdentifier(YI))],i=e.findIndex((e=>e.kind===Fl.SyntaxKind.Constructor));if(i>=0){const a=e[i],o=Fl.updateBlock(a.body,[XI(t),...uP(t,r),...a.body.statements,...pP(t,r)]);e[i]=Fl.updateConstructor(a,a.decorators,a.modifiers,n,o)}else{const i=Fl.createConstructor(void 0,void 0,n,Fl.createBlock([XI(t),...uP(t,r),...pP(t,r)],!0));e.unshift(i)}},XI=e=>(qF(e,GF.registerInstance),Fl.createStatement(Fl.createCall(Fl.createIdentifier(JF),void 0,[Fl.createThis(),Fl.createIdentifier(YI)]))),YI="hostRef",QI=(e,t,r)=>{const n=nP(e);return qI(n,t,r),UI(n,t,r),rP(n,r),((e,t)=>{const r=y(t,!0),n={$flags$:r[0],$tagName$:r[1],$members$:r[2],$listeners$:r[3],$lazyBundleId$:$I(),$attrsToReflect$:GI(t)};1&n.$flags$&&(n.$flags$|=8);const i=fF("cmpMeta",dF(n));((e,t,r)=>{const n=VI(t,r);n&&e.push(fF("style",n))})(e,t,"shadow"===t.encapsulation),e.push(i)})(n,r),aP(n,t),n},ZI=(e,t)=>r=>n=>{const i=AF(e,n),a=t=>{if(Fl.isClassDeclaration(t)){const r=NF(e,n,t);if(null!=r)return((e,t,r)=>Fl.updateClassDeclaration(e,e.decorators,e.modifiers,e.name,e.typeParameters,e.heritageClauses,QI(e,t,r)))(t,i,r)}return Fl.visitEachChild(t,a,r)};return n=Fl.visitEachChild(n,a,r),i.cmps.length>0&&(n=vP(t,n,i)),i.isLegacy&&XF(i),n=LF(t,n,i.coreRuntimeApis,t.coreImportPath)},eO=(e,t)=>{const r={coreImportPath:_g,componentExport:null,componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[PP(r.coreImportPath),ZI(t,r),ag(t)]},tO="/*hydrateAppClosure start*/",rO=async e=>{const t={filePath:e.sourceFilePath,exportLine:"",cmp:e,uniqueComponentClassName:"",importLine:""},r=P(I(e.tagName));return e.componentClassName!==r?(t.uniqueComponentClassName=r,t.importLine=`import { ${e.componentClassName} as ${t.uniqueComponentClassName} } from '${t.filePath}';`):(t.uniqueComponentClassName=e.componentClassName,t.importLine=`import { ${t.uniqueComponentClassName} } from '${t.filePath}';`),t},nO=(e,t,r,n)=>{const i={name:n,description:`${e.namespace} component hydration app.`,main:Le(t),types:Le(r)};return JSON.stringify(i,null,2)},iO=async(e,t)=>{try{const r=Ve(e.rootDir,"package.json"),n=await t.fs.readFile(r);return`${JSON.parse(n).name}/hydrate`}catch(e){}return`${e.fsNamespace}/hydrate`},aO=async(e,t,r)=>{const n=Ve(e.sys.getCompilerExecutingPath(),"..",".."),i=Ve(n,"internal","hydrate","runner.d.ts"),a=Ve(r,"index.d.ts");await t.fs.copyFile(i,a)},oO=async(e,t,r,n)=>{try{const i=Ve(e.sys.getCompilerExecutingPath(),"..",".."),a=Ve(i,"internal","hydrate","runner.js"),o=Ve(i,"mock-doc","index.js"),s={...e.rollupConfig.inputOptions,input:a,inlineDynamicImports:!0,plugins:[{name:"hydrateAppPlugin",resolveId(e){return e===lg?e:"@stencil/core/mock-doc"===e?o:null},load(n){return n===lg?sO(e,t,r):null}}],treeshake:!1,onwarn:ce(r.diagnostics)},c=await gT(s),l=await c.generate({banner:Ae(e),format:"cjs",file:"index.js"});await((e,t,r,n,i)=>Promise.all(n.map((n=>(async(e,t,r,n,i)=>{const a=await iO(e,t),o=n.dir,s=Ve(o,"index.js"),c=Ve(o,"index.d.ts"),l=Ve(o,"package.json"),u=nO(e,s,c,a);await Promise.all([aO(e,t,o),t.fs.writeFile(l,u)]),r.hydrateAppFilePath=s,await Promise.all(i.output.map((async r=>{if("chunk"===r.type){r.code=((e,t,r)=>{if(yg(e,t).length>0){const e=r.indexOf("/*hydrate context start*/");if(e>-1){const t=r.indexOf("/*hydrate context end*/")+"/*hydrate context end*/".length,n=r.substring(e,t);return(r=r.replace(n,"")).replace(tO,tO+"\n "+n)}}return r})(e,t,r.code);const n=Ve(o,r.fileName);await t.fs.writeFile(n,r.code,{immediateWrite:!0})}})))})(e,t,r,n,i)))))(e,t,r,n,l)}catch(n){r.hasError||se(e,t,r,n)}},sO=async(e,t,r)=>{if(!r.hasError)try{const n=r.components,i=(lO(e,n),await cO(r)),a=await(async(e,t,r,n,i)=>{try{const n={id:"hydrate",platform:"hydrate",conditionals:jI(r.components),customTransformers:eO(e,t),inlineDynamicImports:!0,inputs:{"@app-factory-entry":"@app-factory-entry"},loader:{"@app-factory-entry":i}};return await tF(e,t,r,n)}catch(n){r.hasError||se(e,t,r,n)}})(e,t,r,0,i);if(null!=a){const e=await a.generate({format:"cjs",esModule:!1,strict:!1,intro:"\nexport function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {\n var globalThis = $stencilWindow;\n var self = $stencilWindow;\n var top = $stencilWindow;\n var parent = $stencilWindow;\n\n var addEventListener = $stencilWindow.addEventListener.bind($stencilWindow);\n var alert = $stencilWindow.alert.bind($stencilWindow);\n var blur = $stencilWindow.blur.bind($stencilWindow);\n var cancelAnimationFrame = $stencilWindow.cancelAnimationFrame.bind($stencilWindow);\n var cancelIdleCallback = $stencilWindow.cancelIdleCallback.bind($stencilWindow);\n var clearInterval = $stencilWindow.clearInterval.bind($stencilWindow);\n var clearTimeout = $stencilWindow.clearTimeout.bind($stencilWindow);\n var close = () => {};\n var confirm = $stencilWindow.confirm.bind($stencilWindow);\n var dispatchEvent = $stencilWindow.dispatchEvent.bind($stencilWindow);\n var focus = $stencilWindow.focus.bind($stencilWindow);\n var getComputedStyle = $stencilWindow.getComputedStyle.bind($stencilWindow);\n var matchMedia = $stencilWindow.matchMedia.bind($stencilWindow);\n var open = $stencilWindow.open.bind($stencilWindow);\n var prompt = $stencilWindow.prompt.bind($stencilWindow);\n var removeEventListener = $stencilWindow.removeEventListener.bind($stencilWindow);\n var requestAnimationFrame = $stencilWindow.requestAnimationFrame.bind($stencilWindow);\n var requestIdleCallback = $stencilWindow.requestIdleCallback.bind($stencilWindow);\n var setInterval = $stencilWindow.setInterval.bind($stencilWindow);\n var setTimeout = $stencilWindow.setTimeout.bind($stencilWindow);\n\n var CharacterData = $stencilWindow.CharacterData;\n var CSS = $stencilWindow.CSS;\n var CustomEvent = $stencilWindow.CustomEvent;\n var Document = $stencilWindow.Document;\n var DocumentFragment = $stencilWindow.DocumentFragment;\n var DocumentType = $stencilWindow.DocumentType;\n var DOMTokenList = $stencilWindow.DOMTokenList;\n var Element = $stencilWindow.Element;\n var Event = $stencilWindow.Event;\n var HTMLAnchorElement = $stencilWindow.HTMLAnchorElement;\n var HTMLBaseElement = $stencilWindow.HTMLBaseElement;\n var HTMLButtonElement = $stencilWindow.HTMLButtonElement;\n var HTMLCanvasElement = $stencilWindow.HTMLCanvasElement;\n var HTMLElement = $stencilWindow.HTMLElement;\n var HTMLFormElement = $stencilWindow.HTMLFormElement;\n var HTMLImageElement = $stencilWindow.HTMLImageElement;\n var HTMLInputElement = $stencilWindow.HTMLInputElement;\n var HTMLLinkElement = $stencilWindow.HTMLLinkElement;\n var HTMLMetaElement = $stencilWindow.HTMLMetaElement;\n var HTMLScriptElement = $stencilWindow.HTMLScriptElement;\n var HTMLStyleElement = $stencilWindow.HTMLStyleElement;\n var HTMLTemplateElement = $stencilWindow.HTMLTemplateElement;\n var HTMLTitleElement = $stencilWindow.HTMLTitleElement;\n var IntersectionObserver = $stencilWindow.IntersectionObserver;\n var KeyboardEvent = $stencilWindow.KeyboardEvent;\n var MouseEvent = $stencilWindow.MouseEvent;\n var Node = $stencilWindow.Node;\n var NodeList = $stencilWindow.NodeList;\n var URL = $stencilWindow.URL;\n\n var console = $stencilWindow.console;\n var customElements = $stencilWindow.customElements;\n var history = $stencilWindow.history;\n var localStorage = $stencilWindow.localStorage;\n var location = $stencilWindow.location;\n var navigator = $stencilWindow.navigator;\n var performance = $stencilWindow.performance;\n var sessionStorage = $stencilWindow.sessionStorage;\n\n var devicePixelRatio = $stencilWindow.devicePixelRatio;\n var innerHeight = $stencilWindow.innerHeight;\n var innerWidth = $stencilWindow.innerWidth;\n var origin = $stencilWindow.origin;\n var pageXOffset = $stencilWindow.pageXOffset;\n var pageYOffset = $stencilWindow.pageYOffset;\n var screen = $stencilWindow.screen;\n var screenLeft = $stencilWindow.screenLeft;\n var screenTop = $stencilWindow.screenTop;\n var screenX = $stencilWindow.screenX;\n var screenY = $stencilWindow.screenY;\n var scrollX = $stencilWindow.scrollX;\n var scrollY = $stencilWindow.scrollY;\n var exports = {};\n\n var fetch, FetchError, Headers, Request, Response;\n\n if (typeof $stencilWindow.fetch === 'function') {\n fetch = $stencilWindow.fetch;\n } else {\n fetch = $stencilWindow.fetch = function() { throw new Error('fetch() is not implemented'); };\n }\n\n if (typeof $stencilWindow.FetchError === 'function') {\n FetchError = $stencilWindow.FetchError;\n } else {\n FetchError = $stencilWindow.FetchError = class FetchError { constructor() { throw new Error('FetchError is not implemented'); } };\n }\n\n if (typeof $stencilWindow.Headers === 'function') {\n Headers = $stencilWindow.Headers;\n } else {\n Headers = $stencilWindow.Headers = class Headers { constructor() { throw new Error('Headers is not implemented'); } };\n }\n\n if (typeof $stencilWindow.Request === 'function') {\n Request = $stencilWindow.Request;\n } else {\n Request = $stencilWindow.Request = class Request { constructor() { throw new Error('Request is not implemented'); } };\n }\n\n if (typeof $stencilWindow.Response === 'function') {\n Response = $stencilWindow.Response;\n } else {\n Response = $stencilWindow.Response = class Response { constructor() { throw new Error('Response is not implemented'); } };\n }\n\n function hydrateAppClosure($stencilWindow) {\n const window = $stencilWindow;\n const document = $stencilWindow.document;\n /*hydrateAppClosure start*/\n",outro:"\n /*hydrateAppClosure end*/\n hydrateApp(window, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve);\n }\n\n hydrateAppClosure($stencilWindow);\n}\n",preferConst:!1});if(!r.hasError&&null!=e&&Array.isArray(e.output))return e.output[0].code}}catch(e){ne(r.diagnostics,e)}return""},cO=async e=>{const t=e.components,r=await(async e=>{const t=await Promise.all(e.map(rO));return M(t,(e=>e.cmp.componentClassName))})(t),n=new Iu("");return n.append("import { hydrateApp, registerComponents, styles } from '@stencil/core/internal/hydrate';\n"),r.forEach((e=>n.append(e.importLine+"\n"))),n.append("registerComponents([\n"),r.forEach((e=>{n.append(` ${e.uniqueComponentClassName},\n`)})),n.append("]);\n"),n.append("export { hydrateApp }\n"),n.toString()},lO=(e,t)=>{const r=iF(t);return r.lazyLoad=!0,r.hydrateClientSide=!1,r.hydrateServerSide=!0,oF(e,r),r.lifecycleDOMEvents=!1,r.devTools=!1,r.hotModuleReplacement=!1,r.cloneNodeFix=!1,r.appendChildSlotFix=!1,r.slotChildNodesFix=!1,r.safari10=!1,r.shadowDomShim=!1,r},uO=async(e,t,r)=>{const n=e.outputTargets.filter(zd);if(n.length>0){const i=r.createTimeSpan("generate hydrate app started");await oO(e,t,r,n),i.finish("generate hydrate app finished")}},dO=(e,t)=>{const r=iF(t);r.lazyLoad=!0,r.hydrateServerSide=!1,r.cssVarShim=e.extras.cssVarsShim,r.transformTagName=e.extras.tagNameTransform,r.asyncQueue="congestionAsync"===e.taskQueue,r.taskQueue="immediate"!==e.taskQueue,r.initializeNextTick=e.extras.initializeNextTick;const n=e.outputTargets.some(zd);return r.hydrateClientSide=n,oF(e,r),r},pO=(e,t)=>r=>n=>{const i=[],a=AF(e,n),o=s=>{if(Fl.isClassDeclaration(s)){const r=NF(e,n,s);if(null!=r)return((e,t,r,n,i)=>{const a=((e,t,r,n,i)=>{const a=nP(r);return qI(a,n,i),UI(a,n,i),rP(a,i),aP(a,n),"static"===e.style&&((e,t,r)=>{const n=VI(t,!1);if(n){const r=Fl.createStatement(Fl.createAssignment(Fl.createPropertyAccess(Fl.createIdentifier(t.componentClassName),"style"),n));e.push(r)}})(t,i),a})(e,t,r,n,i);return cP(e,r,r.heritageClauses,a)})(t,i,s,a,r)}return Fl.visitEachChild(s,o,r)};return n=Fl.visitEachChild(n,o,r),a.cmps.length>0&&(n=vP(t,n,a)),a.isLegacy&&XF(a),n=LF(t,n,a.coreRuntimeApis,t.coreImportPath),i.length>0&&(n=Fl.updateSourceFileNode(n,[...n.statements,...i])),n},_O=async(e,t,r,n)=>{if(null==e)return null;const{output:i}=await e.generate(t);return i.map((e=>{if("chunk"===e.type){const i=Object.keys(e.modules).some((e=>e.includes("@stencil/core")));return{type:"chunk",fileName:e.fileName,map:e.map,code:e.code,moduleFormat:t.format,entryKey:e.name,imports:e.imports,isEntry:!!e.isEntry,isComponent:!!e.isEntry&&n.some((t=>t.entryKey===e.name)),isBrowserLoader:e.isEntry&&e.name===r.fsNamespace,isIndex:e.isEntry&&"index"===e.name,isCore:i}}return{type:"asset",fileName:e.fileName,content:e.source}}))},fO=async(e,t,r,n,i,a,o,s,c)=>{if(!Array.isArray(i)||0===i.length)return[];const l=e.minifyJs&&s,u=a.filter((e=>"chunk"===e.type)),d=u.filter((e=>e.isComponent)),p=u.filter((e=>!e.isComponent&&!e.isEntry)),[_]=await Promise.all([Promise.all(d.map((a=>mO(e,t,r,a,n,i,o,l,s,c)))),Promise.all(p.map((a=>gO(e,t,r,a,n,i,o,l,s))))]),f=yO(_),m=u.filter((e=>!e.isComponent&&e.isEntry));return await Promise.all(m.map((a=>hO(e,t,r,a,n,i,f,o,l,s)))),await Promise.all(a.filter((e=>"asset"===e.type)).map((e=>Promise.all(i.map((r=>t.fs.writeFile(Ve(r,e.fileName),e.content))))))),_},mO=async(e,t,r,n,i,a,o,s,c,l)=>{const u=r.entryModules.find((e=>e.entryKey===n.entryKey)),d=e.hashFileNames&&c,{code:p,sourceMap:_}=await EO(e,t,r,o,s,!1,c,n.code,n.map),f=await(async(e,t,r,n,i,a,o,s,c)=>{const l=await(async(e,t,r,n,i)=>{if(r)return`p-${await e.sys.generateContentHash(n,e.hashedFileNameLength)}${i}`;const a=t.split(".");let o=a[0];return a.length>2&&(o=`${o}_${a.length-1}`),o+i})(e,i.entryKey,a,o,c),u=`${l}.entry.js`;return s&&(o+=Re(u)),await Promise.all(n.map((e=>{t.fs.writeFile(Ve(e,u),o,{outputTargetType:r}),s&&t.fs.writeFile(Ve(e,u)+".map",JSON.stringify(s),{outputTargetType:r})}))),{bundleId:l,fileName:u,code:o}})(e,t,i,a,u,d,p,_,l);return{rollupResult:n,entryKey:n.entryKey,cmps:u.cmps,output:f}},gO=async(e,t,r,n,i,a,o,s,c)=>{const{code:l,sourceMap:u}=await EO(e,t,r,o,s,n.isCore,c,n.code,n.map);await Promise.all(a.map((e=>{const r=Ve(e,n.fileName);let a=l;n.map&&(a=l+Re(n.fileName),t.fs.writeFile(r+".map",JSON.stringify(u),{outputTargetType:i})),t.fs.writeFile(r,a,{outputTargetType:i})})))},hO=async(e,t,r,n,i,a,o,s,c,l)=>{if(l&&["loader"].includes(n.entryKey))return;let u=n.code.replace("[/*!__STENCIL_LAZY_DATA__*/]",`${o}`);const{code:d,sourceMap:p}=await EO(e,t,r,s,c,!1,l,u,n.map);await Promise.all(a.map((e=>{const r=Ve(e,n.fileName);let a=d;return p&&(a=d+Re(n.fileName),t.fs.writeFile(r+".map",JSON.stringify(p),{outputTargetType:i})),t.fs.writeFile(r,a,{outputTargetType:i})})))},yO=e=>{const t=e.slice().sort(bO).map(vO);return v(t)},vO=e=>[e.output.bundleId,e.cmps.slice().sort(xO).map((e=>y(e,!0)))],bO=(e,t)=>{const r=e.cmps.reduce(((e,t)=>(e.push(...t.dependents),e)),[]),n=t.cmps.reduce(((e,t)=>(e.push(...t.dependents),e)),[]);if(e.cmps.some((e=>n.includes(e.tagName))))return 1;if(t.cmps.some((e=>r.includes(e.tagName))))return-1;const i=e.cmps.reduce(((e,t)=>(e.push(...t.dependencies),e)),[]),a=t.cmps.reduce(((e,t)=>(e.push(...t.dependencies),e)),[]);if(e.cmps.some((e=>a.includes(e.tagName))))return-1;if(t.cmps.some((e=>i.includes(e.tagName))))return 1;if(r.length<n.length)return-1;if(r.length>n.length)return 1;if(i.length>a.length)return-1;if(i.length<a.length)return 1;const o=e.cmps.map((e=>e.tagName)),s=t.cmps.map((e=>e.tagName));if(o.length>s.length)return-1;if(o.length<s.length)return 1;const c=o.sort().join("."),l=s.sort().join(".");return c<l?-1:c>l?1:0},xO=(e,t)=>e.directDependents.includes(t.tagName)?1:t.directDependents.includes(e.tagName)?-1:e.directDependencies.includes(t.tagName)?1:t.directDependencies.includes(e.tagName)?-1:e.dependents.includes(t.tagName)?1:t.dependents.includes(e.tagName)?-1:e.dependencies.includes(t.tagName)?1:t.dependencies.includes(e.tagName)||e.dependents.length<t.dependents.length?-1:e.dependents.length>t.dependents.length?1:e.dependencies.length>t.dependencies.length?-1:e.dependencies.length<t.dependencies.length?1:e.tagName<t.tagName?-1:e.tagName>t.tagName?1:0,EO=async(e,t,r,n,i,a,o,s,c)=>{let l=Me(c);const u=o||!((e,t)=>(e=>null!=e.packageJson&&null!=e.packageJson.dependencies?Object.keys(e.packageJson.dependencies).filter((e=>!Ie.includes(e))):[])(e).includes(t))(r,"tslib"),d=await Ul(e,t,{input:s,sourceMap:l,isCore:a,sourceTarget:n,inlineHelpers:u,minify:i});return r.diagnostics.push(...d.diagnostics),"string"==typeof d.output&&(s=d.output,l=d.sourceMap),{code:s,sourceMap:l}},SO=async(e,t,r,n,i)=>{const a=i.filter((e=>!!e.cjsDir));if(a.length>0){const i=a[0].type,o={banner:Ae(e),format:"cjs",entryFileNames:"[name].cjs.js",assetFileNames:"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap},s=await _O(n,o,e,r.entryModules);if(null!=s){const n=a.map((e=>e.cjsDir));r.commonJsComponentBundle=await fO(e,t,r,i,n,s,"es2017",!1,".cjs"),await DO(t,s,a)}}return{name:"cjs",buildCtx:r}},DO=(e,t,r)=>{const n=t.find((e=>"chunk"===e.type&&e.isIndex)).fileName;return Promise.all(r.map((async t=>{if(t.cjsIndexFile){const r=Ve(t.cjsDir,n),i=`module.exports = require('${Fd(t.cjsIndexFile,r)}');\n`;await e.fs.writeFile(t.cjsIndexFile,i,{outputTargetType:t.type})}})))},TO=async(e,t,r,n,i)=>{const a=i.filter((e=>!!e.esmDir&&!!e.isBrowserBuild));if(a.length){const i=a[0].type,o={banner:Ae(e),format:"es",entryFileNames:"[name].esm.js",chunkFileNames:e.hashFileNames?"p-[hash].js":"[name]-[hash].js",assetFileNames:e.hashFileNames?"p-[hash][extname]":"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap};e.extras.dynamicImportShim&&(o.dynamicImportFunction=`__sc_import_${e.fsNamespace.replace(/\s|-/g,"_")}`);const s=await _O(n,o,e,r.entryModules);if(null!=s){const n=a.map((e=>e.esmDir));r.esmBrowserComponentBundle=await fO(e,t,r,i,n,s,"es2017",!0,"")}}return{name:"esm-browser",buildCtx:r}},CO=async(e,t,r,n,i)=>{const a=e.buildEs5?i.filter((e=>!!e.esmEs5Dir&&!e.isBrowserBuild)):[],o=i.filter((e=>!!e.esmDir&&!e.isBrowserBuild));if(o.length+a.length>0){const s={banner:Ae(e),format:"es",entryFileNames:"[name].js",assetFileNames:"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap},c=o[0].type,l=await _O(n,s,e,r.entryModules);if(null!=l){const n=o.map((e=>e.esmDir));r.esmComponentBundle=await fO(e,t,r,c,n,l,"es2017",!1,"");const s=a.map((e=>e.esmEs5Dir));r.es5ComponentBundle=await fO(e,t,r,c,s,l,"es5",!1,""),await kO(e,t,o),await AO(e,t,i,l)}}return{name:"esm",buildCtx:r}},kO=async(e,t,r)=>{const n=r.filter((e=>e.polyfills)).map((e=>e.esmDir));if(0===n.length)return;const i=Ve(e.sys.getCompilerExecutingPath(),"..","..","internal","client","polyfills"),a=await t.fs.readdir(i);await Promise.all(n.map((e=>Promise.all(a.map((r=>t.fs.copyFile(r.absPath,Ve(e,"polyfills",r.relPath))))))))},AO=(e,t,r,n)=>{const i=n.find((e=>"chunk"===e.type&&e.isIndex)).fileName;return Promise.all(r.map((async r=>{if(r.esmDir&&r.esmIndexFile){const n=e.buildEs5&&r.esmEs5Dir?Ve(r.esmEs5Dir,i):Ve(r.esmDir,i),a=`export * from '${Fd(r.esmIndexFile,n)}';`;await t.fs.writeFile(r.esmIndexFile,a,{outputTargetType:r.type})}})))},NO=async(e,t,r)=>{const n=Ve(e.sys.getCompilerExecutingPath(),"..","..","internal","client","polyfills",r);return t.fs.readFile(n)},wO=["core-js.js","dom.js","es5-html-element.js","system.js"],FO=async(e,t,r,n,i)=>{const a=i.filter((e=>!!e.systemDir));if(a.length>0){const o={banner:Ae(e),format:"system",entryFileNames:e.hashFileNames?"p-[hash].system.js":"[name].system.js",chunkFileNames:e.hashFileNames?"p-[hash].system.js":"[name]-[hash].system.js",assetFileNames:e.hashFileNames?"p-[hash][extname]":"[name]-[hash][extname]",preferConst:!0,sourcemap:e.sourceMap},s=await _O(n,o,e,r.entryModules);if(null!=s){const n=a.map((e=>e.esmDir));r.systemComponentBundle=await fO(e,t,r,i[0].type,n,s,"es5",!0,".system"),await PO(e,t,s,a)}}return{name:"system",buildCtx:r}},PO=(e,t,r,n)=>{const i=r.find((e=>"chunk"===e.type&&e.isBrowserLoader)).fileName;return Promise.all(n.map((r=>IO(e,t,i,r))))},IO=async(e,t,r,n)=>{if(n.systemLoaderFile){const i=Ve(n.systemDir,r),a=Fd(n.systemLoaderFile,i),o=await OO(e,t,a,n.polyfills);await t.fs.writeFile(n.systemLoaderFile,o,{outputTargetType:n.type})}},OO=async(e,t,r,n)=>`\n'use strict';\n(function () {\n var currentScript = document.currentScript;\n\n // Safari 10 support type="module" but still download and executes the nomodule script\n if (!currentScript || !currentScript.hasAttribute('nomodule') || !('onbeforeload' in currentScript)) {\n\n ${n?await(async(e,t)=>{const r=wO.slice();return e.extras.cssVarsShim&&r.push("css-shim.js"),(await Promise.all(r.map((r=>NO(e,t,r))))).join("\n").trim()})(e,t):"/* polyfills excluded */"}\n\n // Figure out currentScript (for IE11, since it does not support currentScript)\n var regex = /\\/${e.fsNamespace}(\\.esm)?\\.js($|\\?|#)/;\n var scriptElm = currentScript || Array.from(document.querySelectorAll('script')).find(function(s) {\n return regex.test(s.src) || s.getAttribute('data-stencil-namespace') === "${e.fsNamespace}";\n });\n\n var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';\n var start = function() {\n var url = new URL('${r}', new URL(resourcesUrl, window.location.origin));\n System.import(url.href);\n };\n\n if (window.__cssshim) {\n window.__cssshim.i().then(start);\n } else {\n start();\n }\n\n // Note: using .call(window) here because the self-executing function needs\n // to be scoped to the window object for the ES6Promise polyfill to work\n }\n}).call(window);\n`,MO=(e,t)=>{const r=new Set(t.map((e=>e.tagName.toUpperCase()))),n=[],i=e=>{r.has(e.tagName)&&n.push(e.tagName.toLowerCase());for(let t=0;t<e.childElementCount;t++)i(e.children[t])};return i(e.documentElement),n};function RO(e,t){const r=M(t.components,(e=>e.dependents.length)),n=function(e,t,r){const n=((e,t,r)=>{const n=new Set;return e.bundles.map((e=>e.components.map((e=>{const i=Oe(e);if(i){const e=ee(t.diagnostics);e.header="Stencil Config",e.messageText=i}const a=r.find((t=>t.tagName===e));if(!a){const r=te(t.diagnostics);r.header="Stencil Config",r.messageText=`Component tag "${e}" is defined in a bundle but no matching component was found within this app or its collections.`}if(n.has(e)){const r=te(t.diagnostics);r.header="Stencil Config",r.messageText=`Component tag "${e}" has been defined multiple times in the "bundles" config.`}return n.add(e),a})).sort()))})(e,t,r);if(n.length>0)return n;let i=e.entryComponentsHint;if(!i&&t.indexDoc&&(i=MO(t.indexDoc,r)),!i)return[];function a(e){return r.find((t=>t.tagName===e))}return[L([...i,...R(i.map(a).map((e=>e.dependencies)))]).map(a)]}(e,t,r),i=((e,t,r)=>{if(!e.excludeUnusedDependencies)return new Set(r.map((e=>e.tagName)));const n=new Set;return t.forEach((e=>{e.forEach((e=>n.add(e.tagName)))})),r.forEach((e=>{e.isCollectionDependency||n.add(e.tagName)})),r.forEach((e=>{e.isCollectionDependency&&e.dependents.some((e=>n.has(e)))&&n.add(e.tagName)})),n})(e,n,r);if(e.devMode)return r.filter((e=>i.has(e.tagName))).map((e=>[e]));const a=new Set;n.forEach((e=>{e.forEach((e=>a.add(e)))}));const o=r.filter((e=>i.has(e.tagName)&&!a.has(e))).map((e=>[e]));return[...n,...LO(o,.6)].filter((e=>e.length>0))}function LO(e,t){const r=new Map;e.forEach(((e,t)=>{e.forEach((e=>{r.set(e.tagName,t)}))}));const n=e.map((t=>{const n=new Uint8Array(e.length);return t.forEach((e=>{e.dependents.forEach((e=>{const t=r.get(e);void 0!==t&&(n[t]=1)}))})),t.forEach((e=>{const t=r.get(e.tagName);void 0!==t&&(n[t]=0)})),n})),i=[],a=new Uint8Array(e.length);for(let r=0;r<n.length;r++)if(0===a[r]){const o=[...e[r]];a[r]=1;for(let i=r+1;i<n.length;i++)0===a[i]&&BO(n[r],n[i])>=t&&(o.push(...e[i]),a[i]=1);i.push(o)}return i}function BO(e,t){let r=0,n=0;for(let i=0;i<e.length;i++)1!==e[i]&&1!==t[i]||(r++,e[i]===t[i]&&n++);return n/r}const jO=async(e,t,r)=>{const n=e.outputTargets.filter(Bd);if(0===n.length)return;const i="generate lazy"+(e.sourceMap?" + source maps":""),a=r.createTimeSpan(`${i} started`);try{const i={id:"lazy",platform:"client",conditionals:dO(e,r.components),customTransformers:UO(e,t),inlineWorkers:e.outputTargets.some(Id),inputs:{[e.fsNamespace]:fg,loader:mg,index:gg},loader:{[mg]:zO(!1),[fg]:zO(!0)}};!((e,t)=>{try{const r=RO(e,t);t.entryModules=r.map(VO)}catch(e){ne(t.diagnostics,e)}t.debug(`generateEntryModules, ${t.entryModules.length} entryModules`)})(e,r),r.entryModules.forEach((e=>{i.inputs[e.entryKey]=e.entryKey}));const a=await tF(e,t,r,i);null!=a&&((await Promise.all([TO(e,t,r,a,n),CO(e,t,r,a,n),FO(e,t,r,a,n),SO(e,t,r,a,n)])).forEach((e=>{"cjs"===e.name?r.commonJsComponentBundle=e.buildCtx.commonJsComponentBundle:"system"===e.name?r.systemComponentBundle=e.buildCtx.systemComponentBundle:"esm"===e.name?(r.esmComponentBundle=e.buildCtx.esmComponentBundle,r.es5ComponentBundle=e.buildCtx.es5ComponentBundle):"esm-browser"===e.name&&(r.esmBrowserComponentBundle=e.buildCtx.esmBrowserComponentBundle,r.buildResults=e.buildCtx.buildResults,r.components=e.buildCtx.components)})),null!=r.esmBrowserComponentBundle&&(r.componentGraph=((e,t)=>{const r=new Map;return e.forEach((e=>{const n=t.find((t=>t.cmps.includes(e)));n&&r.set(Kl(e.tagName),n.rollupResult.imports)})),r})(r.components,r.esmBrowserComponentBundle)))}catch(e){ne(r.diagnostics,e)}a.finish(`${i} finished`)},UO=(e,t)=>{const r={coreImportPath:og,componentExport:"lazy",componentMetadata:null,currentDirectory:e.sys.getCurrentDirectory(),proxy:null,style:"static",styleImportData:"queryparams"};return[PP(r.coreImportPath),pO(t,r),ag(t)]};function VO(e){const t=(e=M(e,(e=>e.tagName))).map((e=>e.tagName)).join(".")+".entry";return{cmps:e,entryKey:t}}const zO=e=>{const t=new Iu("");return t.append("import { bootstrapLazy } from '@stencil/core';\n"),e?(t.append("import { patchBrowser } from '@stencil/core/internal/client/patch-browser';\n"),t.append(`import { globalScripts } from '${cg}';\n`),t.append("patchBrowser().then(options => {\n"),t.append(" globalScripts();\n"),t.append(" return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n"),t.append("});\n")):(t.append("import { patchEsm } from '@stencil/core/internal/client/patch-esm';\n"),t.append(`import { globalScripts } from '${cg}';\n`),t.append("export const defineCustomElements = (win, options) => {\n"),t.append(" if (typeof window === 'undefined') return Promise.resolve();\n"),t.append(" return patchEsm().then(() => {\n"),t.append(" globalScripts();\n"),t.append(" return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n"),t.append(" });\n"),t.append("};\n")),t.toString()},KO=async(e,t)=>{const r=e.outputTargets.filter(Ud);0!==r.length&&await Promise.all(r.map((r=>WO(e,t,r))))},WO=async(e,t,r)=>{const n=r.dir,i=r.esmDir,a=r.esmEs5Dir||i,o=r.cjsDir;if(!n||!i||!o)return;const s=await NO(e,t,"es5-html-element.js"),c=JSON.stringify({name:e.fsNamespace+"-loader",typings:"./index.d.ts",module:"./index.js",main:"./index.cjs.js","jsnext:main":"./index.es2017.js",es2015:"./index.es2017.js",es2017:"./index.es2017.js",unpkg:"./cdn.js"},null,2),l=Ve(a,"loader.js"),u=Ve(i,"loader.js"),d=Ve(i,"polyfills/index.js"),p=Ve(o,"loader.cjs.js"),_=`export * from '${pe(We(n,d))}';`,f=`${Ae(e)}\n${s}\n${_}\nexport * from '${pe(We(n,l))}';\n`,m=`${Ae(e)}\n${_}\nexport * from '${pe(We(n,u))}';\n`,g=`${Ae(e)}\nmodule.exports = require('${pe(We(n,p))}');\nmodule.exports.applyPolyfills = function() { return Promise.resolve() };\n`,h=Ve(n,"index.d.ts");await Promise.all([t.fs.writeFile(Ve(n,"package.json"),c),t.fs.writeFile(Ve(n,"index.d.ts"),HO(h,r.componentDts)),t.fs.writeFile(Ve(n,"index.js"),f),t.fs.writeFile(Ve(n,"index.cjs.js"),g),t.fs.writeFile(Ve(n,"cdn.js"),g),t.fs.writeFile(Ve(n,"index.es2017.js"),m)])},HO=(e,t)=>`export * from '${Fd(e,t,".d.ts")}';\nexport interface CustomElementsDefineOptions {\n exclude?: string[];\n resourcesUrl?: string;\n syncQueue?: boolean;\n jmp?: (c: Function) => any;\n raf?: (c: FrameRequestCallback) => number;\n ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;\n rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;\n}\nexport declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;\nexport declare function applyPolyfills(): Promise<void>;\n`,JO=e=>e.replace(/\n/g,"\\n").replace(/\'/g,"\\'").trim(),$O=async(e,t,r)=>{try{const n=await t.fs.readFile(r),i=`p-${await e.sys.generateContentHash(n,e.hashedFileNameLength)}${je(r)}`;return await t.fs.writeFile(Ve(Be(r),i),n),i}catch(e){}},GO=async(e,t,r)=>{const n=e.createTimeSpan("copy service worker library started",!0);try{await r.copyWorkboxLibraries(t.appDir)}catch(t){te(e.diagnostics).messageText="Service worker library already exists"}n.finish("copy service worker library finished")},qO=async(e,t,r)=>{const n=e.createTimeSpan("inject manifest into service worker started");try{await r.injectManifest(t),n.finish("inject manifest into service worker finished")}catch(t){ne(e.diagnostics,t)}},XO=(e,t)=>e.startsWith("./")&&(e.endsWith(".js")||e.endsWith(".mjs"))?t+e.substring(2):null,YO=e=>()=>t=>(t.statements.filter(Fl.isImportDeclaration).filter((e=>null!=e.moduleSpecifier)).filter((e=>Fl.isStringLiteral(e.moduleSpecifier)&&e.moduleSpecifier.text)).forEach((t=>{Fl.isStringLiteral(t.moduleSpecifier)&&e.push(t.moduleSpecifier.text)})),t),QO=(e,t,r)=>{const n=e.createElement("script");return n.setAttribute("data-build",`${t.timestamp}`),n.innerHTML=(e=>`\nif ('serviceWorker' in navigator && location.protocol !== 'file:') {\n window.addEventListener('load', function() {\n navigator.serviceWorker.register('${e}')\n .then(function(reg) {\n reg.onupdatefound = function() {\n var installingWorker = reg.installing;\n installingWorker.onstatechange = function() {\n if (installingWorker.state === 'installed') {\n window.dispatchEvent(new Event('swUpdate'))\n }\n }\n }\n })\n .catch(function(err) { console.error('service worker error', err) });\n });\n}`)(r),n},ZO=async(e,t,r)=>{const n=e.outputTargets.filter(qd);if(0===n.length)return;const i=r.createTimeSpan("generate www started",!0),a=eM(r);await Promise.all(n.map((n=>tM(e,t,r,a,n)))),i.finish("generate www finished")},eM=e=>{const t=e.componentGraph;return e.indexDoc&&t?L(R(MO(e.indexDoc,e.components).map((e=>Kl(e))).map((t=>e.componentGraph.get(t)||[])))).sort():[]},tM=async(e,t,r,n,i)=>{e.buildEs5||await(async(e,t,r)=>{const n=`${e.fsNamespace}.js`,i=Ve(r.buildDir,n);return await t.fs.writeFile(i,(e=>{const t="\n<style>\nbody {\n display: block !important;\n font-family: sans-serif;\n padding: 20px;\n line-height:22px;\n}\nh1 {\n font-size: 18px;\n}\nh2 {\n font-size: 14px;\n margin-top: 40px;\n}\n</style>\n",r=`\n ${t}\n\n <h1>This Stencil app is disabled for this browser.</h1>\n\n <h2>Developers:</h2>\n <ul>\n <li>ES5 builds are disabled <strong>during development</strong> to take advantage of 2x faster build times.</li>\n <li>Please see the example below or our <a href="https://stenciljs.com/docs/stencil-config" target="_blank" rel="noopener noreferrer">config docs</a> if you would like to develop on a browser that does not fully support ES2017 and custom elements.</li>\n <li>Note that as of Stencil v2, ES5 builds and polyfills are <strong>disabled</strong> during production builds. You can enable these <a href="https://stenciljs.com/docs/config#buildes5" target="_blank" rel="noopener noreferrer">in your stencil.config.ts file</a>.</li>\n <li>When testing browsers it is recommended to always test in production mode, and ES5 builds should always be enabled during production builds.</li>\n <li><em>This is only an experiment and if it slows down app development then we will revert this and enable ES5 builds during dev.</em></li>\n </ul>\n\n\n <h2>Enabling ES5 builds during development:</h2>\n <pre>\n <code>npm run dev --es5</code>\n </pre>\n <p>For stencil-component-starter, use:</p>\n <pre>\n <code>npm start --es5</code>\n </pre>\n\n\n <h2>Enabling full production builds during development:</h2>\n <pre>\n <code>npm run dev --prod</code>\n </pre>\n <p>For stencil-component-starter, use:</p>\n <pre>\n <code>npm start --prod</code>\n </pre>\n\n <h2>Current Browser's Support:</h2>\n <ul>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import">ES Module Imports</a>: <span id="es-modules-test"></span></li>\n <li><a href="http://2ality.com/2017/01/import-operator.html">ES Dynamic Imports</a>: <span id="es-dynamic-modules-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements">Custom Elements</a>: <span id="custom-elements-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM">Shadow DOM</a>: <span id="shadow-dom-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">fetch</a>: <span id="fetch-test"></span></li>\n <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables">CSS Variables</a>: <span id="css-variables-test"></span></li>\n </ul>\n\n <h2>Current Browser:</h2>\n <pre>\n <code id="current-browser-output"></code>\n </pre>\n `,n=`\n ${t}\n\n <h1>Update src/index.html</h1>\n\n <p>Stencil recently changed how scripts are loaded in order to improve performance.</p>\n\n <h2>BEFORE:</h2>\n <p>Previously, a single script was included that handled loading the correct JavaScript based on browser support.</p>\n <pre>\n <code>${Q(`<script src="/build/${e.fsNamespace}.js"><\/script>\n`)}</code>\n </pre>\n\n <h2 style="margin-top:0">AFTER:</h2>\n <p>The index.html should now include two scripts using the modern ES Module script pattern.\n Note that only one file will actually be requested and loaded based on the browser's native support for ES Modules.\n For more info, please see <a href="https://developers.google.com/web/fundamentals/primers/modules#browser" target="_blank" rel="noopener noreferrer">Using JavaScript modules on the web</a>.\n </p>\n <pre>\n <code>${Q("<script")} <span style="background:yellow">type="module"</span> src="/build/${e.fsNamespace}<span style="background:yellow">.esm</span>.js"${Q("><\/script>")}\n ${Q("<script")} <span style="background:yellow">nomodule</span> ${Q(`src="/build/${e.fsNamespace}.js"><\/script>`)}</code>\n </pre>\n `;return`${Ae(e)}\n(function() {\n function checkSupport() {\n if (!document.body) {\n setTimeout(checkSupport);\n return;\n }\n function supportsDynamicImports() {\n try {\n new Function('import("")');\n return true;\n } catch (e) {}\n return false;\n }\n var supportsEsModules = !!('noModule' in document.createElement('script'));\n\n if (!supportsEsModules) {\n document.body.innerHTML = '${JO(r)}';\n\n document.getElementById('current-browser-output').textContent = window.navigator.userAgent;\n document.getElementById('es-modules-test').textContent = supportsEsModules;\n document.getElementById('es-dynamic-modules-test').textContent = supportsDynamicImports();\n document.getElementById('shadow-dom-test').textContent = !!(document.head.attachShadow);\n document.getElementById('custom-elements-test').textContent = !!(window.customElements);\n document.getElementById('css-variables-test').textContent = !!(window.CSS && window.CSS.supports && window.CSS.supports('color', 'var(--c)'));\n document.getElementById('fetch-test').textContent = !!(window.fetch);\n } else {\n document.body.innerHTML = '${JO(n)}';\n }\n }\n\n setTimeout(checkSupport);\n})();`})(e)),n})(e,t,i),r.indexDoc&&i.indexHtml&&await nM(e,t,r,n,i),await rM(t,i)},rM=(e,t)=>{const r=Wl(t),n=Ve(t.appDir,"host.config.json"),i=JSON.stringify({hosting:{headers:[{source:Ve(r,"/p-*"),headers:[{key:"Cache-Control",value:"max-age=31556952, s-maxage=31556952, immutable"}]}]}},null," ");return e.fs.writeFile(n,i,{outputTargetType:t.type})},nM=async(e,t,r,n,i)=>{if(!t.hasSuccessfulBuild||r.hasHtmlChanges)try{const o=null==(a=r.indexDoc)?null:((e,t={})=>{if(null==e)return null;const r=new mm(!1);if(t.customElementProxy||(e.customElements=null),null!=e.document){const t=new vm(!1,r);r.document=t,t.documentElement=e.document.documentElement.cloneNode(!0)}else r.document=new vm(null,r);return r})(a.defaultView).document;if(((e,t,r)=>{const n=Wl(r),i=`${e.fsNamespace}.esm.js`,a=`${e.fsNamespace}.js`,o=Ve(n,i),s=Ve(n,a),c=Array.from(t.querySelectorAll("script")),l=c.find((e=>e.getAttribute("src")===o)),u=c.find((e=>e.getAttribute("src")===s));l&&l.setAttribute("data-stencil",""),u&&u.setAttribute("data-stencil","")})(e,o,i),await(async(e,t,r,n)=>{const i=n.serviceWorker;!1!==i&&(i&&i.unregister||!i&&e.devMode?(e=>{const t=e.createElement("script");t.innerHTML="\nif ('serviceWorker' in navigator && location.protocol !== 'file:') {\n // auto-unregister service worker during dev mode\n navigator.serviceWorker.getRegistration().then(function(registration) {\n if (registration) {\n registration.unregister().then(function() { location.reload(true) });\n }\n });\n}\n",e.body.appendChild(t)})(r):i&&await(async(e,t,r)=>{const n=((e,t)=>{let r=pe(We(e.appDir,t.swDest));"/"!==r.charAt(0)&&(r="/"+r);let n=new URL(e.baseUrl,"http://config.stenciljs.com").pathname;return n.endsWith("/")||(n+="/"),r=n+r.substring(1),r})(t,t.serviceWorker),i=QO(r,e,n);r.body.appendChild(i)})(t,n,r))})(e,r,o,i),!e.watch&&!e.devMode){const r=await $O(e,t,Ve(i.buildDir,`${e.fsNamespace}.css`)),a=await(async(e,t,r,n)=>{const i=Wl(n),a=`${e.fsNamespace}.esm.js`,o=Ve(i,a),s=Array.from(r.querySelectorAll("script")).find((e=>"module"===e.getAttribute("type")&&!e.hasAttribute("crossorigin")&&e.getAttribute("src")===o));if(!s)return!1;s.setAttribute("data-resources-url",i),s.setAttribute("data-stencil-namespace",e.fsNamespace);const c=Ve(n.buildDir,a),l=await t.fs.readFile(c);if(K(l)){if(e.allowInlineScripts&&l.length<1024){const e=((e,t)=>{const r=[],n=Fl.createSourceFile("module.ts",e,Fl.ScriptTarget.Latest);return Fl.transform(n,[YO(r)]),r.forEach((r=>{const n=XO(r,t);n&&(e=(e=e.replace(`"${r}"`,`"${n}"`)).replace(`'${r}'`,`'${n}'`))})),{code:e,orgImportPaths:r}})(l,i);e.orgImportPaths.length>0&&(s.removeAttribute("src"),s.innerHTML=e.code)}else{const n=await $O(e,t,c);if(n){const e=Ve(i,n);s.setAttribute("src",e),Hl(r,[e])}}return!0}return!1})(e,t,o,i);await((e,t,r,n)=>{const i=Array.from(t.querySelectorAll("link[rel=stylesheet]"));return Promise.all(i.map((async i=>{const a=i.getAttribute("href");if("string"==typeof a&&a.startsWith("/")&&null===i.getAttribute("media"))try{const o=Ve(n.dir,a),s=await e.fs.readFile(o);if(s.length>r)return;const c=t.createElement("style");c.innerHTML=s,i.parentNode.insertBefore(c,i),i.remove()}catch(e){}})))})(t,o,iM,i),((e,t,r,n)=>{if(!r)return;const i=Wl(n),a=Ve(i,e.fsNamespace+".css"),o=Ve(i,r);if(a===o)return;const s=new RegExp(a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")+"$");Array.from(t.querySelectorAll("link")).forEach((e=>{const t=e.getAttribute("href");if(t){const r=t.replace(s,o);r!==t&&e.setAttribute("href",r)}}))})(e,o,r,i),a&&((e,t,r)=>{const n=Wl(r),i=t.map((e=>Ve(n,e)));Hl(e,i)})(o,n,i)}const s=$_(o);await t.fs.writeFile(i.indexHtml,s,{outputTargetType:i.type}),i.serviceWorker&&e.flags.prerender&&await t.fs.writeFile(Ve(i.appDir,"index-org.html"),s,{outputTargetType:i.type}),r.debug(`generateIndexHtml, write: ${We(e.rootDir,i.indexHtml)}`)}catch(e){ne(r.diagnostics,e)}var a},iM=3072,aM=async(e,t,r,n)=>{const i=e.outputTargets.filter(Od);if(0===i.length)return;const a="generate collections"+(e.sourceMap?" + source maps":""),o=r.createTimeSpan(`${a} started`,!0);try{await Promise.all(n.map((async r=>{let n=r.staticSourceFileText;e.preamble&&(n=`${Ae(e)}\n${n}`);const a=r.sourceMapFileText;await Promise.all(i.map((async i=>{const o=We(e.srcDir,r.jsFilePath),s=Ve(i.collectionDir,o);if(await t.fs.writeFile(s,n,{outputTargetType:i.type}),r.sourceMapPath){const n=We(e.srcDir,r.sourceMapPath),o=Ve(i.collectionDir,n);await t.fs.writeFile(o,a,{outputTargetType:i.type})}})))}))),await oM(e,t,r,i)}catch(e){ne(r.diagnostics,e)}o.finish(`${a} finished`)},oM=async(e,t,r,n)=>{const i=JSON.stringify(cM(e,t,r),null,2);return Promise.all(n.map((e=>sM(t,i,e))))},sM=async(e,t,r)=>{const n=pe(r.collectionDir),i=pe(Ve(n,h));await e.fs.writeFile(i,t)},cM=(e,t,r)=>{const n={entries:r.moduleFiles.filter((e=>!e.isCollectionDependency&&e.cmps.length>0)).map((t=>We(e.srcDir,t.jsFilePath))),compiler:{name:"@stencil/core",version:Kr,typescriptVersion:zr},collections:lM(t),bundles:e.bundles.map((e=>({components:e.components.slice().sort()})))};if(e.globalScript){const r=t.moduleMap.get(pe(e.globalScript));r&&(n.global=We(e.srcDir,r.jsFilePath))}return n},lM=e=>{const t=e.collections.map((e=>({name:e.collectionName,tags:R(e.moduleFiles.map((e=>e.cmps))).map((e=>e.tagName)).sort()})));return M(t,(e=>e.name))},uM=(e,t,r)=>{const n=Be(t),i=We(n,e);let a=Ve(i,dM);return a.startsWith(".")||(a=`./${a}`),a=pe(a),r.includes("@stencil/core")&&(r=(r=r.replace(/(from\s*(:?'|"))@stencil\/core\/internal('|")/g,`$1${a}$2`)).replace(/(from\s*(:?'|"))@stencil\/core('|")/g,`$1${a}$2`)),r},dM="stencil-public-runtime",pM=`${dM}.d.ts`,_M=(e,t)=>{const r=e.localName.toLowerCase(),n=t.localName.toLowerCase();return r<n?-1:r>n?1:e.localName<t.localName?-1:e.localName>t.localName?1:0},fM=(e,t,r)=>{const n=M(e,(e=>e.name)).filter((e=>!(t&&!r&&e.internal))).reduce(((e,r)=>{r.jsdoc&&(e.push(" /**"),e.push(...r.jsdoc.split("\n").map((e=>" * "+e))),e.push(" */"));const n=t?!r.required:r.optional;return e.push(` "${r.name}"${n?"?":""}: ${r.type};`),e}),[]).join("\n");return""!==n?`${n}\n`:""},mM=async(e,t,r,n)=>{const i=r.createTimeSpan("generated app types started",!0),a="src"===n;let o=gM(e,r,a),s=(e=>Ve(e.srcDir,hp))(e);a||(s=He(n,hp),o=uM(n,s,o));const c=(await t.fs.writeFile(s,o,{immediateWrite:!0})).changedContent,l=We(e.rootDir,s);return c&&e.logger.debug(`generateAppTypes: ${l} has changed`),i.finish(`generated app types finished: ${l}`),c},gM=(e,t,r)=>{let n={};const i=[],a=new Map,o=t.components.filter((e=>!e.isCollectionDependency)).map((e=>(n=((e,t,r,n)=>{const i=((e,t)=>(r,n)=>(Object.keys(n).map((e=>[e,n[e]])).forEach((([n,i])=>{let a;if("global"===i.location)return;if("local"===i.location?a=t:"import"===i.location&&(a=i.path),a.startsWith(".")&&(a=He(Be(t),a)),r[a]=r[a]||[],r[a].find((e=>e.localName===n)))return;const o=(t=>{const r=e.get(t);return void 0===r?(e.set(t,1),t):(e.set(t,r+1),`${t}${r}`)})(n);r[a].push({localName:n,importName:o})})),r))(t,n);return[...r.properties,...r.events,...r.methods].filter((e=>e.complexType&&e.complexType.references)).reduce(((e,t)=>i(e,t.complexType.references)),e)})(n,a,e,e.sourceFilePath),((e,t)=>{const r=e.tagName.toLowerCase(),n=P(r),i=`HTML${n}Element`,a=[...(o=e).properties.map((e=>({name:e.name,type:e.complexType.original,optional:e.optional,required:e.required,internal:e.internal,jsdoc:we(e.docs)}))),...o.virtualProperties.map((e=>({name:e.name,type:e.type,optional:!0,required:!1,jsdoc:e.docs,internal:!1})))];var o;const s=(e=>e.methods.map((e=>({name:e.name,type:e.complexType.signature,optional:!1,required:!1,internal:e.internal,jsdoc:we(e.docs)}))))(e),c=(e=>e.events.map((e=>({name:`on${I(e.name)}`,type:e.complexType.original?`(event: CustomEvent<${e.complexType.original}>) => void`:"CustomEvent",optional:!1,required:!1,internal:e.internal,jsdoc:we(e.docs)}))))(e),l=fM([...a,...s],!1,t);return{isDep:e.isCollectionDependency,tagName:r,tagNameAsPascal:n,htmlElementName:i,component:` interface ${n} {\n${l} }`,jsx:` interface ${n} {\n${fM([...a,...c],!0,t)} }`,element:[` interface ${i} extends Components.${n}, HTMLStencilElement {`," }",` var ${i}: {`,` prototype: ${i};`,` new (): ${i};`," };"].join("\n")}})(e,r))));return i.push("/* eslint-disable */\n/* tslint:disable */\n/**\n * This is an autogenerated file created by the Stencil compiler.\n * It contains typing information for all components that exist in this project.\n */"),i.push('import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";'),i.push(...Object.keys(n).map((t=>{const r=n[t];let i;return i=Ue(t)?pe("./"+We(e.srcDir,t)).replace(/\.(tsx|ts)$/,""):t,`import { ${r.sort(_M).map((e=>e.localName===e.importName?`${e.importName}`:`${e.localName} as ${e.importName}`)).join(", ")} } from "${i}";`}))),i.push(`export namespace Components {\n${o.map((e=>`${e.component}`)).join("\n")}\n}`),i.push("declare global {"),i.push(...o.map((e=>e.element))),i.push(" interface HTMLElementTagNameMap {"),i.push(...o.map((e=>` "${e.tagName}": ${e.htmlElementName};`))),i.push(" }"),i.push("}"),i.push("declare namespace LocalJSX {"),i.push(...o.map((e=>` ${e.jsx}`))),i.push(" interface IntrinsicElements {"),i.push(...o.map((e=>` "${e.tagName}": ${e.tagNameAsPascal};`))),i.push(" }"),i.push("}"),i.push("export { LocalJSX as JSX };"),i.push('declare module "@stencil/core" {'),i.push(" export namespace JSX {"),i.push(" interface IntrinsicElements {"),i.push(...o.map((e=>` "${e.tagName}": LocalJSX.${e.tagNameAsPascal} & JSXBase.HTMLAttributes<${e.htmlElementName}>;`))),i.push(" }"),i.push(" }"),i.push("}"),i.join("\n")+"\n"},hM=e=>{const t=P(e.tagName);return[`interface ${t} extends Components.${t}, HTMLElement {}`,`export const ${t}: {`,` prototype: ${t};`,` new (): ${t};`,"};",""].join("\n")},yM=(e,t)=>((t=We(e,t)).startsWith(".")||(t="."+t),pe(t.replace(".d.ts",""))),vM=(e,t)=>{const r=P(t.tagName);return[`import type { Components, JSX } from "${e}";`,"",`interface ${r} extends Components.${r}, HTMLElement {}`,`export const ${r}: {`,` prototype: ${r};`,` new (): ${r};`,"};","/**"," * Used to define this component and all nested components recursively."," */","export const defineCustomElement: () => void;",""].join("\n")},bM=(e,t)=>((t=We(e,t)).startsWith(".")||(t="."+t),pe(t.replace(".d.ts",""))),xM=async(e,t,r,n)=>{const i=(await t.fs.readdir(e.srcDir,{recursive:!1})).filter((e=>e.isFile&&(e=>{const t=e.toLowerCase().split(".");return t.length>2&&"d"===t[t.length-2]&&"ts"===t[t.length-1]})(e.absPath)));let a;await Promise.all(i.map((async r=>{const i=We(e.srcDir,r.absPath),o=Ve(n.typesDir,i),s=await t.fs.readFile(r.absPath),c=uM(n.typesDir,o,s);await t.fs.writeFile(o,c),a=o})));const o=n.typesDir;await mM(e,t,r,o),a&&(await(async(e,t,r,n)=>{const i=e.outputTargets.filter(Md);await Promise.all(i.map((i=>(async(e,t,r,n,i)=>{const a=Ve(i.dir,"index.d.ts"),o=bM(i.dir,n),s=[`/* ${e.namespace} custom elements */`,"",`import type { Components, JSX } from "${o}";`,"","/**"," * Used to manually set the base path where assets can be found.",' * If the script is used as "module", it\'s recommended to use "import.meta.url",',' * such as "setAssetPath(import.meta.url)". Other options include',' * "setAssetPath(document.currentScript.src)", or using a bundler\'s replace plugin to',' * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".'," * But do note that this configuration depends on how your script is bundled, or lack of"," * bundling, and where your assets can be loaded from. Additionally custom bundling"," * will have to ensure the static assets are copied to its build directory."," */","export declare const setAssetPath: (path: string) => void;","","export interface SetPlatformOptions {"," raf?: (c: FrameRequestCallback) => number;"," ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;"," rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;","}","export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;","","export type { Components, JSX };",""],c=Ve(e.srcDir,"index.ts");if(await t.fs.access(c)){const e=pe(Be(o));s.push(`export * from '${e}';`)}else s.push(`export * from '${o}';`);await t.fs.writeFile(a,s.join("\n")+"\n",{outputTargetType:i.type});const l=r.components.filter((e=>!e.isCollectionDependency));await Promise.all(l.map((async e=>{const r=vM(o,e),n=`${e.tagName}.d.ts`,a=Ve(i.dir,n);await t.fs.writeFile(a,r,{outputTargetType:i.type})})))})(e,t,r,n,i))))})(e,t,r,a),await(async(e,t,r,n)=>{const i=e.outputTargets.filter(Rd);await Promise.all(i.map((i=>(async(e,t,r,n,i)=>{const a=Ve(i.dir,"index.d.ts"),o=yM(i.dir,n),s=r.components.filter((e=>!e.isCollectionDependency)),c=[`/* ${e.namespace} custom elements bundle */`,"",`import type { Components, JSX } from "${o}";`,"",...s.map(hM),"/**"," * Utility to define all custom elements within this package using the tag name provided in the component's source. "," * When defining each custom element, it will also check it's safe to define by:"," *",' * 1. Ensuring the "customElements" registry is available in the global context (window).'," * 2. The component tag name is not already defined."," *"," * Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define) "," * method instead to define custom elements individually, or to provide a different tag name."," */","export declare const defineCustomElements: (opts?: any) => void;","","/**"," * Used to manually set the base path where assets can be found.",' * If the script is used as "module", it\'s recommended to use "import.meta.url",',' * such as "setAssetPath(import.meta.url)". Other options include',' * "setAssetPath(document.currentScript.src)", or using a bundler\'s replace plugin to',' * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".'," * But do note that this configuration depends on how your script is bundled, or lack of"," * bunding, and where your assets can be loaded from. Additionally custom bundling"," * will have to ensure the static assets are copied to its build directory."," */","export declare const setAssetPath: (path: string) => void;","","export interface SetPlatformOptions {"," raf?: (c: FrameRequestCallback) => number;"," ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;"," rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;"," ce?: (eventName: string, opts?: any) => CustomEvent;","}","export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;","","export type { Components, JSX };",""],l=Ve(e.srcDir,"index.ts");if(await t.fs.access(l)){const e=pe(Be(o));c.push(`export * from '${e}';`)}else c.push(`export * from '${o}';`);await t.fs.writeFile(a,c.join("\n")+"\n",{outputTargetType:i.type})})(e,t,r,n,i))))})(e,t,r,a))},EM=async(e,t,r)=>{const n=r.createTimeSpan("generate outputs started",!0),i=Array.from(t.changedModules).map((e=>t.moduleMap.get(e))).filter((e=>e&&!e.isCollectionDependency));t.changedModules.clear(),SM(t),await Promise.all([jm(e,t,r),tg(e,t,r),aM(e,t,r,i),OP(e,t,r),jP(e,t,r),uO(e,t,r),KO(e,t),jO(e,t,r),ZO(e,t,r)]),await(async(e,t,r)=>{if(!e.buildDocs)return;const n=e.outputTargets.filter((e=>Kd(e)||Hd(e)||Jd(e)||$d(e)||Gd(e)));if(0===n.length)return;await r.stylesPromise;const i=await(async(e,t,r)=>({timestamp:Qp(),compiler:{name:"@stencil/core",version:Kr,typescriptVersion:zr},components:await WP(e,t,r)}))(e,t,r);await Promise.all([II(e,t,i,n),lI(e,t,i,n),MI(t,i,n),cI(e,i,n),BI(e,t,r,i,n)])})(e,t,r),await(async(e,t,r)=>{const n=e.outputTargets.filter(Yd);if(0===n.length)return;const i=r.createTimeSpan("generate types started",!0);await Promise.all(n.map((n=>(async(e,t,r,n)=>{r.hasError||(await xM(e,t,r,n),await(async(e,t)=>{const r=e.outputTargets.filter(Yd).filter((e=>e.typesDir)),n=Ve(e.sys.getCompilerExecutingPath(),"..","..","internal",pM),i=await t.fs.readFile(n);return Promise.all(r.map((e=>{const r=Ve(e.typesDir,pM);return t.fs.writeFile(r,i,{outputTargetType:e.type})})))})(e,t))})(e,t,r,n)))),i.finish("generate types finished")})(e,t,r),n.finish("generate outputs finished")},SM=e=>{const t=e.changedFiles;e.rollupCache.forEach((e=>{e.modules.forEach((e=>{e.transformDependencies.some((e=>t.has(e)))&&(e.originalCode=null)}))}))},DM=e=>Fl.isCallExpression(e.expression)?e.expression.arguments.map(TM):[],TM=e=>{if(Fl.isObjectLiteralExpression(e))return hF(e);if(Fl.isStringLiteral(e))return e.text;throw new Error(`invalid decorator argument: ${e.getText()}`)},CM=e=>t=>Fl.isCallExpression(t.expression)&&t.expression.expression.getText()===e,kM=e=>{const t=Be(e),r=je(e),n=Le(e,r);return Ve(t,n+".css")},AM=e=>Array.isArray(e)?e:e?[e]:[],NM=(e,t,r,n,i,a)=>{const[o]=DM(a);if(!o)return;if(!wM(e,r,t,o,n,a))return;i.push(fF("is",dF(o.tag.trim()))),o.shadow?(i.push(fF("encapsulation",dF("shadow"))),"boolean"!=typeof o.shadow&&!0===o.shadow.delegatesFocus&&i.push(fF("delegatesFocus",dF(!0)))):o.scoped&&i.push(fF("encapsulation",dF("scoped"))),((e,t)=>{const r=[];t.styleUrls&&(Array.isArray(t.styleUrls)?r.push(...AM(t.styleUrls)):r.push(...AM(t.styleUrls.$))),t.styleUrl&&r.push(...AM(t.styleUrl));let n={};if(t.styleUrls&&!Array.isArray(t.styleUrls)&&(n=(e=>{const t={};return Object.keys(e).forEach((r=>{t[r]=AM(e[r])})),t})(t.styleUrls)),r.length>0&&(n.$=r),Object.keys(n).length>0){const t=dF(n);e.push(fF("originalStyleUrls",t));const r=(e=>{const t={};return Object.keys(e).forEach((r=>{t[r]=e[r].map((e=>kM(e)))})),t})(n),i=dF(r);e.push(fF("styleUrls",i))}if("string"==typeof t.styles){const r=t.styles.trim();r.length>0&&e.push(fF("styles",Fl.createLiteral(r)))}else if(t.styles){const r=t.styles;if(r.__identifier){const t=r.__escapedText;e.push(fF("styles",Fl.createIdentifier(t)))}else"object"==typeof r&&Object.keys(r).length>0&&e.push(fF("styles",dF(r)))}})(i,o);const s=o.assetsDirs||[];if(K(o.assetsDir)){s.push(o.assetsDir);const e=te(r);e.messageText='@Component option "assetsDir" should be renamed to "assetsDirs" and the value should be an array of strings.',Ee(e,a)}s.length>0&&i.push(fF("assetsDirs",dF(s)))},wM=(e,t,r,n,i,a)=>{const o=i.heritageClauses&&i.heritageClauses.find((e=>e.token===Fl.SyntaxKind.ExtendsKeyword));if(o){const e=ee(t);return e.messageText="Classes decorated with @Component can not extend from a base class.\n Stencil needs to be able to switch between different base classes in order to implement the different output targets such as: lazy and raw web components.",Ee(e,o),!1}if(n.shadow&&n.scoped){const e=ee(t);return e.messageText='Components cannot be "scoped" and "shadow" at the same time, they are mutually exclusive configurations.',Ee(e,FM("scoped",a)),!1}const s=i.members.find(Fl.isConstructorDeclaration);if(s&&s.parameters.length>0){const e=ee(t);return e.messageText='Classes decorated with @Component can not have a "constructor" that takes arguments.\n All data required by a component must be passed by using class properties decorated with @Prop()',Ee(e,s.parameters[0]),!1}const c=i.decorators&&i.decorators.find((e=>e!==a));if(c){const e=ee(t);return e.messageText="Classes decorated with @Component can not be decorated with more decorators.\n Stencil performs extensive static analysis on top of your components in order to generate the necessary metadata, runtime decorators at the components level make this task very hard.",Ee(e,c),!1}const l=n.tag;if("string"!=typeof l||0===l.trim().length){const e=ee(t);return e.messageText="tag missing in component decorator",Ee(e,a),!1}const u=Oe(l);if(u){const e=ee(t);return e.messageText=`${u}. Please refer to https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name for more info.`,Ee(e,FM("tag",a)),!1}if(!e._isTesting){const e=r.getExportsOfModule(r.getSymbolAtLocation(i.getSourceFile())).filter((e=>0==(e.flags&(Fl.SymbolFlags.Interface|Fl.SymbolFlags.TypeAlias)))).filter((e=>e.name!==i.name.text));if(e.forEach((e=>{const r=ee(t);r.messageText="To allow efficient bundling, modules using @Component() can only have a single export which is the component class itself.\n Any other exports should be moved to a separate file.\n For further information check out: https://stenciljs.com/docs/module-bundling";const n=e.valueDeclaration?e.valueDeclaration:e.declarations[0];Ee(r,n)})),e.length>0)return!1}return!0},FM=(e,t)=>{if(Fl.isDecorator(t)&&Fl.isCallExpression(t.expression)){const r=t.expression.arguments[0];Fl.isObjectLiteralExpression(r)&&r.properties.forEach((r=>{Fl.isPropertyAssignment(r)&&r.name.getText()===e&&(t=r.initializer)}))}return t},PM=(e,t)=>e&&"string"==typeof e.eventName&&e.eventName.trim().length>0?e.eventName.trim():t,IM=(e,t)=>{const r=t.getSourceFile(),n=t.type?OM(t.type):null;return{original:n?n.getText():"any",resolved:n?TF(e,e.getTypeFromTypeNode(n)):"any",references:n?bF(n,r):{}}},OM=e=>Fl.isTypeReferenceNode(e)&&Fl.isIdentifier(e.typeName)&&"EventEmitter"===e.typeName.text&&e.typeArguments&&e.typeArguments.length>0?e.typeArguments[0]:null,MM=(e,t,r)=>{if(/^[A-Z]/.test(r)){const r=te(e);return r.messageText=["In order to be compatible with all event listeners on elements, the event name ","cannot start with a capital letter. ","Please lowercase the first character for the event to best work with all listeners."].join(""),Ee(r,t),void 0}if(/^on[A-Z]/.test(r)){const n=te(e),i=r[2].toLowerCase()+r.slice(3);return n.messageText=`Events decorated with @Event() should describe the actual DOM event name, not the handler. In other words "${r}" would be better named as "${i}".`,Ee(n,t),void 0}if(RM.has(r.toLowerCase())){const n=te(e);return n.messageText=`The event name conflicts with the "${r}" native DOM event name.`,Ee(n,t),void 0}},RM=new Set(["CheckboxStateChange","DOMContentLoaded","DOMMenuItemActive","DOMMenuItemInactive","DOMMouseScroll","MSManipulationStateChanged","MSPointerHover","MozAudioAvailable","MozGamepadButtonDown","MozGamepadButtonUp","MozMousePixelScroll","MozOrientation","MozScrolledAreaChanged","RadioStateChange","SVGAbort","SVGError","SVGLoad","SVGResize","SVGScroll","SVGUnload","SVGZoom","abort","afterprint","afterscriptexecute","alerting","animationcancel","animationend","animationiteration","animationstart","appinstalled","audioend","audioprocess","audiostart","auxclick","beforeinstallprompt","beforeprint","beforescriptexecute","beforeunload","beginEvent","blur","boundary","broadcast","busy","callschanged","canplay","canplaythrough","cardstatechange","cfstatechange","change","chargingchange","chargingtimechange","checking","click","command","commandupdate","compassneedscalibration","complete","compositionend","compositionstart","compositionupdate","connected","connecting","connectionInfoUpdate","contextmenu","copy","cut","datachange","dataerror","dblclick","delivered","devicechange","devicemotion","deviceorientation","dialing","disabled","dischargingtimechange","disconnected","disconnecting","downloading","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","enabled","end","endEvent","ended","error","focus","focusin","focusout","fullscreenchange","fullscreenerror","gamepadconnected","gamepaddisconnected","gotpointercapture","hashchange","held","holding","icccardlockerror","iccinfochange","incoming","input","invalid","keydown","keypress","keyup","languagechange","levelchange","load","loadeddata","loadedmetadata","loadend","loadstart","localized","lostpointercapture","mark","message","messageerror","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","mozbrowseractivitydone","mozbrowserasyncscroll","mozbrowseraudioplaybackchange","mozbrowsercaretstatechanged","mozbrowserclose","mozbrowsercontextmenu","mozbrowserdocumentfirstpaint","mozbrowsererror","mozbrowserfindchange","mozbrowserfirstpaint","mozbrowsericonchange","mozbrowserloadend","mozbrowserloadstart","mozbrowserlocationchange","mozbrowsermanifestchange","mozbrowsermetachange","mozbrowseropensearch","mozbrowseropentab","mozbrowseropenwindow","mozbrowserresize","mozbrowserscroll","mozbrowserscrollareachanged","mozbrowserscrollviewchange","mozbrowsersecuritychange","mozbrowserselectionstatechanged","mozbrowsershowmodalprompt","mozbrowsertitlechange","mozbrowserusernameandpasswordrequired","mozbrowservisibilitychange","moztimechange","msContentZoom","nomatch","notificationclick","noupdate","obsolete","offline","online","orientationchange","overflow","pagehide","pageshow","paste","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","pointerlockerror","pointermove","pointerout","pointerover","pointerup","popstate","popuphidden","popuphiding","popupshowing","popupshown","progress","push","pushsubscriptionchange","ratechange","readystatechange","received","repeatEvent","reset","resize","resourcetimingbufferfull","result","resume","resuming","scroll","seeked","seeking","select","selectionchange","selectstart","sent","show","slotchange","smartcard-insert","smartcard-remove","soundend","soundstart","speechend","speechstart","stalled","start","statechange","statuschange","stkcommand","stksessionend","storage","submit","suspend","timeout","timeupdate","touchcancel","touchend","touchenter","touchleave","touchmove","touchstart","transitioncancel","transitionend","transitionrun","transitionstart","underflow","unload","updateready","userproximity","ussdreceived","visibilitychange","voicechange","voiceschanged","volumechange","vrdisplayactivate","vrdisplayblur","vrdisplayconnect","vrdisplaydeactivate","vrdisplaydisconnect","vrdisplayfocus","vrdisplaypresentchange","waiting","wheel"].map((e=>e.toLowerCase()))),LM=(e,t={},r)=>{const n=e.trim();return{name:n,method:r,target:t.target,capture:"boolean"==typeof t.capture&&t.capture,passive:"boolean"==typeof t.passive?t.passive:BM.has(n.toLowerCase())}},BM=new Set(["dragstart","drag","dragend","dragenter","dragover","dragleave","drop","mouseenter","mouseover","mousemove","mousedown","mouseup","mouseleave","mouseout","mousewheel","pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","resize","scroll","touchstart","touchmove","touchend","touchenter","touchleave","touchcancel","wheel"]),jM=(e,t,r,n,i)=>{if(VM.has(t.toLowerCase())){const a=te(e);return a.messageText=[`The ${r} name "${t}" is a reserved public name. `,`Please rename the "${t}" ${n} so it does not conflict with an existing standardized prototype member. `,`Reusing ${n} names that are already defined on the element's prototype may cause `,"unexpected runtime errors or user-interface issues on various browsers, so it's best to avoid them entirely."].join(""),Ee(a,i),void 0}},UM=["title","lang","translate","dir","tabIndex","accessKey","draggable","contentEditable","isContentEditable","offsetParent","offsetTop","offsetLeft","offsetWidth","offsetHeight","style","innerText","outerText","oncopy","oncut","onpaste","onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onseeked","onseeking","onselect","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","onvolumechange","onwaiting","onwheel","onauxclick","ongotpointercapture","onlostpointercapture","onpointerdown","onpointermove","onpointerup","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave","onselectstart","onselectionchange","nonce","click","focus","blur","namespaceURI","prefix","localName","tagName","id","className","classList","slot","attributes","shadowRoot","assignedSlot","innerHTML","outerHTML","scrollTop","scrollLeft","scrollWidth","scrollHeight","clientTop","clientLeft","clientWidth","clientHeight","attributeStyleMap","onbeforecopy","onbeforecut","onbeforepaste","onsearch","previousElementSibling","nextElementSibling","children","firstElementChild","lastElementChild","childElementCount","onfullscreenchange","onfullscreenerror","onwebkitfullscreenchange","onwebkitfullscreenerror","setPointerCapture","releasePointerCapture","hasPointerCapture","hasAttributes","getAttributeNames","getAttribute","getAttributeNS","setAttribute","setAttributeNS","removeAttribute","removeAttributeNS","hasAttribute","hasAttributeNS","toggleAttribute","getAttributeNode","getAttributeNodeNS","setAttributeNode","setAttributeNodeNS","removeAttributeNode","closest","matches","webkitMatchesSelector","attachShadow","getElementsByTagName","getElementsByTagNameNS","getElementsByClassName","insertAdjacentElement","insertAdjacentText","insertAdjacentHTML","requestPointerLock","getClientRects","getBoundingClientRect","scrollIntoView","scroll","scrollTo","scrollBy","scrollIntoViewIfNeeded","animate","computedStyleMap","before","after","replaceWith","remove","prepend","append","querySelector","querySelectorAll","requestFullscreen","webkitRequestFullScreen","webkitRequestFullscreen","part","createShadowRoot","getDestinationInsertionPoints","ELEMENT_NODE","ATTRIBUTE_NODE","TEXT_NODE","CDATA_SECTION_NODE","ENTITY_REFERENCE_NODE","ENTITY_NODE","PROCESSING_INSTRUCTION_NODE","COMMENT_NODE","DOCUMENT_NODE","DOCUMENT_TYPE_NODE","DOCUMENT_FRAGMENT_NODE","NOTATION_NODE","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_PRECEDING","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","nodeType","nodeName","baseURI","isConnected","ownerDocument","parentNode","parentElement","childNodes","firstChild","lastChild","previousSibling","nextSibling","nodeValue","textContent","hasChildNodes","getRootNode","normalize","cloneNode","isEqualNode","isSameNode","compareDocumentPosition","contains","lookupPrefix","lookupNamespaceURI","isDefaultNamespace","insertBefore","appendChild","replaceChild","removeChild","ref","key"].map((e=>e.toLowerCase())),VM=new Set(UM),zM=e=>/^Promise<.+>$/.test(e),KM=(e,t)=>{if(null!==t.attribute)return"string"==typeof t.attribute&&t.attribute.trim().length>0?t.attribute.trim().toLowerCase():F(e)},WM=(e,t,r)=>{if("boolean"==typeof r.reflect)return r.reflect;if("boolean"==typeof r.reflectToAttr){const n=ee(e);return n.header='Rename "reflectToAttr" to "reflect"',n.messageText='@Prop option "reflectToAttr" should be renamed to "reflect".',Ee(n,t),r.reflectToAttr}return!1},HM=(e,t,r)=>{const n=t.type;return{original:n?n.getText():CF(e,r),resolved:TF(e,r),references:bF(t,t.getSourceFile())}},JM=e=>{if($M(e,YM))return"any";const t=$M(e,XM),r=$M(e,qM),n=$M(e,GM);return Number(t)+Number(r)+Number(n)>1?"any":t?"string":r?"number":n?"boolean":"unknown"},$M=(e,t)=>!!(e.flags&Fl.TypeFlags.Union&&e.types.some((e=>$M(e,t))))||t(e),GM=e=>!!e&&!!(e.flags&(Fl.TypeFlags.Boolean|Fl.TypeFlags.BooleanLike)),qM=e=>!!e&&!!(e.flags&(Fl.TypeFlags.Number|Fl.TypeFlags.NumberLike|Fl.TypeFlags.NumberLiteral)),XM=e=>!!e&&!!(e.flags&(Fl.TypeFlags.String|Fl.TypeFlags.StringLike|Fl.TypeFlags.StringLiteral)),YM=e=>!!e&&!!(e.flags&Fl.TypeFlags.Any),QM=(e,t,r)=>n=>{const i=a=>Fl.isClassDeclaration(a)?ZM(e,t,r,a):Fl.visitEachChild(a,i,n);return e=>Fl.visitEachChild(e,i,n)},ZM=(e,t,r,n)=>{if(!n.decorators)return n;const i=n.decorators.find(CM("Component"));if(!i)return n;const a=n.members,o=a.filter((e=>Array.isArray(e.decorators)&&e.decorators.length>0)),s=eR(Array.from(a));NM(e,r,t,n,s,i);const c=new Set;return o.length>0&&(((e,t,r,n,i)=>{const a=t.filter(Fl.isPropertyDeclaration).map((t=>((e,t,r,n)=>{const i=r.decorators.find(CM("Prop"));if(null==i)return null;const a=DM(i)[0]||{},o=r.name.getText();if(uF(r)){const t=ee(e);t.messageText='Properties decorated with the @Prop() decorator cannot be "private" nor "protected". More info: https://stenciljs.com/docs/properties',Ee(t,r.modifiers[0])}if(/^on(-|[A-Z])/.test(o)){const t=te(e);t.messageText=`The @Prop() name "${o}" looks like an event. Please use the "@Event()" decorator to expose events instead, not properties or methods.`,Ee(t,r.name)}else jM(e,o,"@Prop()","prop",r.name);const s=t.getSymbolAtLocation(r.name),c=t.getTypeAtLocation(r),l=JM(c),u={type:l,mutable:!!a.mutable,complexType:HM(t,r,c),required:void 0!==r.exclamationToken&&"mode"!==o,optional:void 0!==r.questionToken,docs:PF(t,s)};SF(e,u.complexType.references,r.type),"unknown"!==l&&(u.attribute=KM(o,a),u.reflect=WM(e,i,a));const d=r.initializer;d&&(u.defaultValue=d.getText());const p=Fl.createPropertyAssignment(Fl.createLiteral(o),dF(u));return n.add(o),p})(e,r,t,n))).filter((e=>null!=e));a.length>0&&i.push(fF("properties",Fl.createObjectLiteral(a,!0)))})(t,o,r,c,s),((e,t,r)=>{const n=e.filter(Fl.isPropertyDeclaration).map((e=>((e,t)=>{if(null==e.decorators.find(CM("State")))return null;const r=e.name.getText();return t.add(r),Fl.createPropertyAssignment(Fl.createLiteral(r),Fl.createObjectLiteral([],!0))})(e,t))).filter((e=>!!e));n.length>0&&r.push(fF("states",Fl.createObjectLiteral(n,!0)))})(o,c,s),((e,t,r,n)=>{const i=t.filter(Fl.isPropertyDeclaration).map((t=>((e,t,r)=>{const n=r.decorators.find(CM("Event"));if(null==n)return null;const i=r.name.getText();if(!i)return null;const[a]=DM(n),o=t.getSymbolAtLocation(r.name),s=PM(a,i);MM(e,r.name,s);const c={method:i,name:s,bubbles:!a||"boolean"!=typeof a.bubbles||a.bubbles,cancelable:!a||"boolean"!=typeof a.cancelable||a.cancelable,composed:!a||"boolean"!=typeof a.composed||a.composed,docs:PF(t,o),complexType:IM(t,r)};return SF(e,c.complexType.references,r.type),c})(e,r,t))).filter((e=>!!e));i.length>0&&n.push(fF("events",dF(i)))})(t,o,r,s),((e,t,r,n,i,a)=>{const o=r.getSourceFile(),s=n.filter(Fl.isMethodDeclaration).map((r=>((e,t,r,n,i)=>{if(null==i.decorators.find(CM("Method")))return null;const a=i.name.getText(),o=Fl.TypeFormatFlags.WriteArrowStyleSignature|Fl.TypeFormatFlags.NoTruncation,s=n.getSignatureFromDeclaration(i),c=n.getReturnTypeOfSignature(s),l=n.typeToTypeNode(c,i,Fl.NodeBuilderFlags.NoTruncation|Fl.NodeBuilderFlags.NoTypeReduction);let u=CF(n,c),d=n.signatureToString(s,i,o,Fl.SignatureKind.Call);if(!e._isTesting)if("void"===u){const e=te(t);e.header="@Method requires async",e.messageText=`External @Method() ${a}() must return a Promise.\n\n Consider prefixing the method with async, such as @Method() async ${a}().`,Ee(e,i.name),u="Promise<void>",d=d.replace(/=> void$/,"=> Promise<void>")}else if(!zM(u)){const e=ee(t);e.header="@Method requires async",e.messageText=`External @Method() ${a}() must return a Promise.\n\n Consider prefixing the method with async, such as @Method() async ${a}().`,Ee(e,i.name)}if(uF(i)){const e=ee(t);e.messageText='Methods decorated with the @Method() decorator cannot be "private" nor "protected". More info: https://stenciljs.com/docs/methods',Ee(e,i.modifiers[0])}jM(t,a,"@Method()","method",i.name);const p={complexType:{signature:d,parameters:s.parameters.map((e=>PF(n,e))),references:{...bF(l,r),...bF(i,r)},return:u},docs:{text:Fl.displayPartsToString(s.getDocumentationComment(n)),tags:IF(s.getJsDocTags())}};return SF(t,p.complexType.references,i.type||i.name),Fl.createPropertyAssignment(Fl.createLiteral(a),dF(p))})(e,t,o,i,r))).filter((e=>!!e));s.length>0&&a.push(fF("methods",Fl.createObjectLiteral(s,!0)))})(e,t,n,o,r,s),((e,t,r,n)=>{const i=t.filter(Fl.isPropertyDeclaration).map((e=>((e,t,r)=>null==(r.decorators&&r.decorators.find(CM("Element")))?null:r.name.getText())(0,0,e))).filter((e=>!!e));i.length>0&&(n.push(fF("elementRef",Fl.createLiteral(i[0]))),i.length>1)&&(ee(e).messageText="It's not valid to add more than one Element() decorator")})(t,o,0,s),((e,t,r,n,i)=>{const a=r.filter(Fl.isMethodDeclaration).map((r=>((e,t,r,n)=>{const i=n.name.getText();return n.decorators.filter(CM("Watch")).map((n=>{const[a]=DM(n);if(!r.has(a)){const r=e.devMode?te(t):ee(t);r.messageText=`@Watch('${a}') is trying to watch for changes in a property that does not exist.\n Make sure only properties decorated with @State() or @Prop() are watched.`,Ee(r,n)}return{propName:a,methodName:i}}))})(e,t,n,r))),o=R(a);o.length>0&&i.push(fF("watchers",dF(o)))})(e,t,o,c,s),((e,t,r)=>{const n=t.filter(Fl.isMethodDeclaration).map((t=>((e,t)=>{const r=t.decorators.filter(CM("Listen"));return 0===r.length?[]:r.map((r=>{const n=t.name.getText(),[i,a]=DM(r),o=i.split(",");if(o.length>1){const t=ee(e);t.messageText="Please use multiple @Listen() decorators instead of comma-separated names.",Ee(t,r)}const s=LM(o[0],a,n);if("parent"===s.target){const t=ee(e);t.messageText='The "parent" target is no longer available as of Stencil 2. Please use "window", "document" or "body" instead.',Ee(t,r)}return s}))})(e,t))),i=R(n);i.length>0&&r.push(fF("listeners",dF(i)))})(t,o,s)),((e,t)=>{t.filter(Fl.isMethodDeclaration).map((t=>{if("componentDidUnload"===t.name.getText()){const r=ee(e);r.header='Replace "componentDidUnload()" with "disconnectedCallback()"',r.messageText='The "componentDidUnload()" method was removed in Stencil 2. Please use the "disconnectedCallback()" method instead.',Ee(r,t.name)}}))})(t,a),Fl.updateClassDeclaration(n,tR(n,cF),n.modifiers,n.name,n.typeParameters,n.heritageClauses,s)},eR=e=>e.map((e=>{const t=e.decorators,r=tR(e,lF);if(t!==r){if(Fl.isMethodDeclaration(e))return Fl.updateMethod(e,r,e.modifiers,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);if(Fl.isPropertyDeclaration(e))return Fl.updateProperty(e,r,e.modifiers,e.name,e.questionToken,e.type,e.initializer);console.log("unknown class node")}return e})),tR=(e,t)=>{if(e.decorators){const r=e.decorators.filter((e=>{const r=Fl.isCallExpression(e.expression)&&Fl.isIdentifier(e.expression.expression)&&e.expression.expression.text;return!t.has(r)}));if(0===r.length)return;if(r.length!==e.decorators.length)return Fl.createNodeArray(r)}return e.decorators};function rR(e){!(e=>{const t=new Set;e.forEach((r=>{nR(r,e,t),r.dependencies=L(r.dependencies).sort()}))})(e),(e=>{e.forEach((t=>{!((e,t)=>{e.dependents=t.filter((t=>t.dependencies.includes(e.tagName))).map((e=>e.tagName)).sort(),e.directDependents=t.filter((t=>t.directDependencies.includes(e.tagName))).map((e=>e.tagName)).sort()})(t,e)}))})(e)}function nR(e,t,r){if(r.has(e))return e.dependencies;r.add(e);const n=L(e.potentialCmpRefs.filter((e=>t.some((t=>t.tagName===e)))));e.dependencies=e.directDependencies=n;const i=R(n.map((e=>t.find((t=>t.tagName===e)))).map((e=>nR(e,t,r))));return e.dependencies=[...n,...i]}const iR=(e,t)=>{if(null!=t.arguments&&t.arguments.length>0)if(Fl.isIdentifier(t.expression))aR(e,t.expression,t.arguments);else if(Fl.isPropertyAccessExpression(t.expression)){const r=t.expression.name;Fl.isIdentifier(r)&&r&&aR(e,r,t.arguments)}},aR=(e,t,r)=>{const n=t.escapedText;if("h"===n||n===$F||"createElement"===n)oR(e,r[0]),"h"!==n&&n!==$F||((e,t)=>{e.hasVdomRender=!0;const r=t[0];if(Fl.isStringLiteral(r)||Fl.isIdentifier(r)&&"Host"===r.text||(e.hasVdomFunctional=!0),t.length>1){const r=t[1];Fl.isCallExpression(r)||Fl.isIdentifier(r)?(e.hasVdomAttribute=!0,e.hasVdomClass=!0,e.hasVdomKey=!0,e.hasVdomListener=!0,e.hasVdomPropOrAttr=!0,e.hasVdomRef=!0,e.hasVdomStyle=!0,e.hasVdomXlink=!0):Fl.isObjectLiteralExpression(r)&&r.properties.forEach((t=>{if(e.hasVdomAttribute=!0,Fl.isSpreadAssignment(t)||Fl.isComputedPropertyName(t.name))e.hasVdomClass=!0,e.hasVdomKey=!0,e.hasVdomListener=!0,e.hasVdomPropOrAttr=!0,e.hasVdomRef=!0,e.hasVdomStyle=!0,e.hasVdomXlink=!0;else if(t.name&&t.name.text&&t.name.text.length>0){const r=t.name.text;"key"===r?e.hasVdomKey=!0:"ref"===r?e.hasVdomRef=!0:"class"===r||"className"===r?e.hasVdomClass=!0:"style"===r?e.hasVdomStyle=!0:/^on(-|[A-Z])/.test(r)?e.hasVdomListener=!0:r.startsWith("xlink")?(e.hasVdomXlink=!0,e.hasVdomPropOrAttr=!0):e.hasVdomPropOrAttr=!0,"part"===r&&Fl.isPropertyAssignment(t)&&Fl.isStringLiteral(t.initializer)&&e.htmlParts.push(...t.initializer.text.toLowerCase().split(" ").filter((e=>e.length>0))),e.htmlAttrNames.push(r)}}))}if(!e.hasVdomText)for(let r=2;r<t.length;r++){const n=t[r];if(!Fl.isCallExpression(n)||!Fl.isIdentifier(n.expression)||"h"!==n.expression.text){e.hasVdomText=!0;break}}})(e,r);else if(r.length>1&&"createElementNS"===n)oR(e,r[1]);else if("require"===n&&r.length>0&&e.originalImports){const t=r[0];Fl.isStringLiteral(t)&&(e.originalImports.includes(t.text)||e.originalImports.push(t.text))}},oR=(e,t)=>{if(Fl.isStringLiteral(t)){let r=t.text;"string"==typeof r&&(r=r.toLowerCase(),e.htmlTagNames.push(r),r.includes("-")&&e.potentialCmpRefs.push(r))}},sR=(e,t,r,n,i)=>{const a=t.fs.readFileSync(i),o=Fl.createSourceFile(i,a,Fl.ScriptTarget.ES2017,!0,Fl.ScriptKind.JS);return wR(e,t,r,o,a,i,void 0,n)},cR=e=>(e.collections||[]).map((e=>e.name)),lR=(e,t,r,n,i,a)=>{if("string"!=typeof i.global)return;const o=pe(Ve(n,i.global)),s=sR(e,t,r,a,o);a.global=s},uR=e=>dR(e.bundles)?[]:e.bundles.map((e=>({components:e.components.slice().sort()}))),dR=e=>!e||!Array.isArray(e)||0===e.length,pR=(e,t,r,n,i,a,o)=>{if(n.externalImports.includes(a)||(n.externalImports.push(a),n.externalImports.sort()),!o||t.resolvedCollections.has(a))return;let s=((e,t,r,n)=>{try{const i=WT(e,t,r,n);if(i&&i.resolvedModule&&i.resolvedModule.resolvedFileName){const t=He("/");let r=i.resolvedModule.resolvedFileName;for(let n=0;n<30;n++){if(t===r)return null;r=Be(r);const n=Ve(r,"package.json");if(e.sys.accessSync(n))return pe(n)}}}catch(t){e.logger.error(t)}return null})(e,t,a,i);if(t.resolvedCollections.add(a),null==s)return;const c=e.sys.realpathSync(s);if(c.path&&(s=c.path),s===e.packageJsonFilePath)return;const l=t.fs.readFileSync(s);if(null==l)return;const u=Fe(l,s);if(u.diagnostic)return r.diagnostics.push(u.diagnostic),void 0;if(!K(u.data.collection)||!u.data.collection.endsWith(".json"))return;if(!K(u.data.types)||!u.data.types.endsWith(".d.ts"))return;const d=((e,t,r,n,i,a)=>{const o=a.name;let s=t.collections.find((e=>e.collectionName===o));if(null!=s)return s;const c=Be(i),l=Ve(c,a.collection),u=We(e.rootDir,l);e.logger.debug(`load collection: ${o}, ${u}`);const d=t.fs.readFileSync(l);if(!d)return null;const p=pe(Be(l));return s=((e,t,r,n,i,a)=>{const o=JSON.parse(a),s=o.compiler||{},c={collectionName:n,moduleId:n,moduleFiles:[],dependencies:cR(o),compiler:{name:s.name||"",version:s.version||"",typescriptVersion:s.typescriptVersion||""},bundles:uR(o)};return lR(e,t,r,i,o,c),((e,t,r,n,i,a)=>{i.entries&&i.entries.forEach((i=>{const o=Ve(n,i);sR(e,t,r,a,o)}))})(e,t,r,i,o,c),c})(e,t,r,o,p,d),s.moduleId=n,a.module&&a.module!==a.main&&(s.hasExports=!0),s.moduleDir=c,t.collections.push(s),s})(e,t,r,a,u.filePath,u.data);d&&(r.collections.some((e=>e.collectionName===d.collectionName))||(r.collections.push(d),Array.isArray(d.dependencies)&&d.dependencies.forEach((i=>{const a=Be(s);pR(e,t,r,n,a,i,o)}))))},_R=(e,t,r,n,i,a,o)=>{if(a.moduleSpecifier&&Fl.isStringLiteral(a.moduleSpecifier)){let s=a.moduleSpecifier.text;n.originalImports.includes(s)||n.originalImports.push(s),Ue(s)?(s=pe(s),n.localImports.push(s)):s.startsWith(".")?(s=pe(He(i,s)),n.localImports.push(s)):pR(e,t,r,n,n.sourceFilePath,s,o)}},fR=e=>{const t=Object.assign({},e);return delete t.assetsDirs,delete t.dependencies,delete t.excludeFromCollection,delete t.isCollectionDependency,delete t.docs,delete t.jsFilePath,delete t.potentialCmpRefs,delete t.styleDocs,delete t.sourceFilePath,t},mR=e=>{const t=mF(e,"methods");if(!t)return[];const r=Object.keys(t);return 0===r.length?[]:r.map((e=>({name:e,docs:t[e].docs,complexType:t[e].complexType,internal:OF(t[e].docs)})))},gR=e=>{const t=mF(e,"listeners");return t&&0!==t.length?t.map((e=>({name:e.name,method:e.method,capture:!!e.capture,passive:!!e.passive,target:e.target}))):[]},hR=e=>{const t=mF(e,"elementRef");return"string"==typeof t?t:null},yR=(e,t)=>"shadow"===e?!!mF(t,"delegatesFocus"):null,vR=e=>{const t=mF(e,"events");return t&&0!==t.length?t.map((e=>({name:e.name,method:e.method,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed,docs:e.docs,complexType:e.complexType,internal:OF(e.docs)}))):[]},bR=e=>{const t=mF(e,"properties");if(!t)return[];const r=Object.keys(t);return 0===r.length?[]:r.map((e=>{const r=t[e];return{name:e,type:r.type,attribute:r.attribute?r.attribute.toLowerCase():void 0,reflect:"boolean"==typeof r.reflect&&r.reflect,mutable:!!r.mutable,required:!!r.required,optional:!!r.optional,defaultValue:r.defaultValue,complexType:r.complexType,docs:r.docs,internal:OF(r.docs)}}))},xR=e=>{const t=mF(e,"states");if(!t)return[];const r=Object.keys(t);return 0===r.length?[]:r.map((e=>({name:e})))},ER=e=>{const t=mF(e,"watchers");return t&&0!==t.length?t.map((e=>({propName:e.propName,methodName:e.methodName}))):[]},SR=(e,t,r,n,i)=>{const a=[],o=mF(i,n?"styleUrls":"originalStyleUrls");let s=mF(i,"styles");return s&&("string"==typeof s?(s=s.trim(),s.length>0&&(a.push({modeName:g,styleId:null,styleStr:s,styleIdentifier:null,externalStyles:[]}),e.styleModeNames.add(g))):s.__identifier?(a.push(DR(s,g)),e.styleModeNames.add(g)):"object"==typeof s&&Object.keys(s).forEach((t=>{const r=s[t];"string"==typeof r?a.push({modeName:t,styleId:null,styleStr:r,styleIdentifier:null,externalStyles:[]}):a.push(DR(r,t)),e.styleModeNames.add(t)}))),o&&"object"==typeof o&&Object.keys(o).forEach((t=>{const r=[];if(o[t].forEach((e=>{"string"==typeof e&&e.trim().length>0&&r.push({absolutePath:null,relativePath:null,originalComponentPath:e.trim()})})),r.length>0){const n={modeName:t,styleId:null,styleStr:null,styleIdentifier:null,externalStyles:r};a.push(n),e.styleModeNames.add(t)}})),((e,t,r)=>{r.forEach((r=>{r.modeName===g?r.styleId=e.toUpperCase():r.styleId=`${e.toUpperCase()}#${r.modeName}`,Array.isArray(r.externalStyles)&&r.externalStyles.forEach((e=>{((e,t)=>{if("string"!=typeof t.originalComponentPath||0===t.originalComponentPath.trim().length)return;const r=Be(e);Ue(t.originalComponentPath)?(t.absolutePath=pe(t.originalComponentPath),t.relativePath=pe(We(r,t.originalComponentPath))):(t.relativePath=pe(t.originalComponentPath),t.absolutePath=pe(Ve(r,t.originalComponentPath)))})(t,e)}))}))})(t,r,a),M(a,(e=>e.modeName))},DR=(e,t)=>({modeName:t,styleId:null,styleStr:null,styleIdentifier:e.__escapedText,externalStyles:[]}),TR=(e,t)=>{"string"==typeof t.text&&t.text.includes("</")&&(t.text.includes("<slot")&&e.htmlTagNames.push("slot"),t.text.includes("<svg")&&e.htmlTagNames.push("svg"))},CR=(e,t,r,n,i,a)=>{if(null==r.members)return r;const o=r.members.filter(FF),s=wF(o);if(null==s)return r;const c=t?t.getSymbolAtLocation(r.name):void 0,l=PF(t,c),u=n.isCollectionDependency,d=(e=>{let t=mF(e,"encapsulation");return"string"==typeof t&&(t=t.toLowerCase().trim(),"shadow"===t||"scoped"===t)?t:"none"})(o),p={tagName:s,excludeFromCollection:n.excludeFromCollection,isCollectionDependency:u,componentClassName:r.name?r.name.text:"",elementRef:hR(o),encapsulation:d,shadowDelegatesFocus:yR(d,o),properties:bR(o),virtualProperties:kR(l),states:xR(o),methods:mR(o),listeners:gR(o),events:vR(o),watchers:ER(o),styles:SR(e,s,n.sourceFilePath,u,o),legacyConnect:mF(o,"connectProps")||[],legacyContext:mF(o,"contextProps")||[],internal:OF(l),assetsDirs:NR(o,n.jsFilePath),styleDocs:[],docs:l,jsFilePath:n.jsFilePath,sourceFilePath:n.sourceFilePath,sourceMapPath:n.sourceMapPath,hasAttributeChangedCallbackFn:!1,hasComponentWillLoadFn:!1,hasComponentDidLoadFn:!1,hasComponentShouldUpdateFn:!1,hasComponentWillUpdateFn:!1,hasComponentDidUpdateFn:!1,hasComponentWillRenderFn:!1,hasComponentDidRenderFn:!1,hasComponentDidUnloadFn:!1,hasConnectedCallbackFn:!1,hasDisconnectedCallbackFn:!1,hasElement:!1,hasEvent:!1,hasLifecycle:!1,hasListener:!1,hasListenerTarget:!1,hasListenerTargetWindow:!1,hasListenerTargetDocument:!1,hasListenerTargetBody:!1,hasListenerTargetParent:!1,hasMember:!1,hasMethod:!1,hasMode:!1,hasAttribute:!1,hasProp:!1,hasPropNumber:!1,hasPropBoolean:!1,hasPropString:!1,hasPropMutable:!1,hasReflect:!1,hasRenderFn:!1,hasState:!1,hasStyle:!1,hasVdomAttribute:!1,hasVdomXlink:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,hasWatchCallback:!1,isPlain:!1,htmlAttrNames:[],htmlTagNames:[],htmlParts:[],isUpdateable:!1,potentialCmpRefs:[]},_=e=>{Fl.isCallExpression(e)?iR(p,e):Fl.isStringLiteral(e)&&TR(p,e),e.forEachChild(_)};var f;return _(r),((e,t)=>{const r=e.members;if(!r||0===r.length)return;const n=r.filter((e=>Fl.isMethodDeclaration(e)));if(0===n.length)return;const i=n.some((e=>MF(e,"hostData")));t.hasAttributeChangedCallbackFn=n.some((e=>MF(e,"attributeChangedCallback"))),t.hasConnectedCallbackFn=n.some((e=>MF(e,"connectedCallback"))),t.hasDisconnectedCallbackFn=n.some((e=>MF(e,"disconnectedCallback"))),t.hasComponentWillLoadFn=n.some((e=>MF(e,"componentWillLoad"))),t.hasComponentWillUpdateFn=n.some((e=>MF(e,"componentWillUpdate"))),t.hasComponentWillRenderFn=n.some((e=>MF(e,"componentWillRender"))),t.hasComponentDidRenderFn=n.some((e=>MF(e,"componentDidRender"))),t.hasComponentDidLoadFn=n.some((e=>MF(e,"componentDidLoad"))),t.hasComponentShouldUpdateFn=n.some((e=>MF(e,"componentShouldUpdate"))),t.hasComponentDidUpdateFn=n.some((e=>MF(e,"componentDidUpdate"))),t.hasComponentDidUnloadFn=n.some((e=>MF(e,"componentDidUnload"))),t.hasLifecycle=t.hasComponentWillLoadFn||t.hasComponentDidLoadFn||t.hasComponentWillUpdateFn||t.hasComponentDidUpdateFn,t.hasRenderFn=n.some((e=>MF(e,"render")))||i,t.hasVdomRender=t.hasVdomRender||i})(r,p),p.legacyConnect.forEach((({connect:e})=>{p.htmlTagNames.push(e),e.includes("-")&&p.potentialCmpRefs.push(e)})),p.htmlAttrNames=L(p.htmlAttrNames),p.htmlTagNames=L(p.htmlTagNames),p.potentialCmpRefs=L(p.potentialCmpRefs),(f=p).properties.length>0&&(f.hasProp=!0,f.hasPropMutable=f.properties.some((e=>e.mutable)),f.hasReflect=f.properties.some((e=>e.reflect)),f.hasAttribute=f.properties.some((e=>"string"==typeof e.attribute)),f.hasPropBoolean=f.properties.some((e=>"boolean"===e.type)),f.hasPropNumber=f.properties.some((e=>"number"===e.type)),f.hasPropString=f.properties.some((e=>"string"===e.type))),f.states.length>0&&(f.hasState=!0),f.watchers.length>0&&(f.hasWatchCallback=!0),f.methods.length>0&&(f.hasMethod=!0),f.events.length>0&&(f.hasEvent=!0),f.listeners.length>0&&(f.hasListener=!0,f.hasListenerTargetWindow=f.listeners.some((e=>"window"===e.target)),f.hasListenerTargetDocument=f.listeners.some((e=>"document"===e.target)),f.hasListenerTargetBody=f.listeners.some((e=>"body"===e.target)),f.hasListenerTargetParent=f.listeners.some((e=>"parent"===e.target)),f.hasListenerTarget=f.listeners.some((e=>!!e.target))),f.hasMember=f.hasProp||f.hasState||f.hasElement||f.hasMethod,f.isUpdateable=f.hasProp||f.hasState,f.styles.length>0&&(f.hasStyle=!0,f.hasMode=f.styles.some((e=>e.modeName!==g))),f.hasLifecycle=f.hasComponentWillLoadFn||f.hasComponentDidLoadFn||f.hasComponentShouldUpdateFn||f.hasComponentWillUpdateFn||f.hasComponentDidUpdateFn||f.hasComponentWillRenderFn||f.hasComponentDidRenderFn,f.isPlain=!(f.hasMember||f.hasStyle||f.hasLifecycle||f.hasListener||f.hasVdomRender),a&&"compilerstatic"===a.componentMetadata&&(r=((e,t)=>{const r=fR(t),n=fF("COMPILER_META",dF(r)),i=[...e.members,n];return Fl.updateClassDeclaration(e,e.decorators,e.modifiers,e.name,e.typeParameters,e.heritageClauses,i)})(r,p)),n.cmps.push(p),i.set(r,p),r},kR=e=>e.tags.filter((({name:e})=>"virtualProp"===e)).map(AR).filter((e=>!!e)),AR=e=>{const t=/^\s*(?:\{([^}]+)\}\s+)?(\w+)\s+-\s+(.*)$/.exec(e.text);if(!t)return;const[,r,n,i]=t;return{type:null==r?"any":r.trim(),name:n.trim(),docs:i.trim()}},NR=(e,t)=>{const r=mF(e,"assetsDirs")||[],n=pe(Be(t));return r.map((e=>{let t=e=pe(e.trim()),r=e;return Ue(e)?r=We(n,e):t=Ve(n,e),{absolutePath:t,cmpRelativePath:r,originalComponentPath:e}}))},wR=(e,t,r,n,i,a,o,s)=>{const c=pe(n.fileName),l=MT(t,c);if(l&&l.staticSourceFileText===i)return l;const u=Be(c),d=Le(a),p=(f=i,m=a=pe(Ve(u,d)),{sourceFilePath:pe((_=n).fileName),jsFilePath:m,staticSourceFile:_,staticSourceFileText:f,cmps:[],coreRuntimeApis:[],collectionName:null,dtsFilePath:null,excludeFromCollection:!1,externalImports:[],hasVdomAttribute:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,hasVdomXlink:!1,htmlAttrNames:[],htmlParts:[],htmlTagNames:[],isCollectionDependency:!1,isLegacy:!1,localImports:[],originalCollectionComponentPath:null,originalImports:[],potentialCmpRefs:[],sourceMapPath:null,sourceMapFileText:null});var _,f,m;a.endsWith(".js.map")?(p.sourceMapPath=a,p.sourceMapFileText=i):l&&l.sourceMapPath&&(p.sourceMapPath=l.sourceMapPath,p.sourceMapFileText=l.sourceMapFileText);const g=pe(p.sourceFilePath);t.moduleMap.set(g,p),t.changedModules.add(p.sourceFilePath);const h=n=>Fl.isClassDeclaration(n)?(CR(t,o,n,p,t.nodeMap),void 0):Fl.isImportDeclaration(n)?(_R(e,t,r,p,u,n,!0),void 0):(Fl.isCallExpression(n)?iR(p,n):Fl.isStringLiteral(n)&&TR(p,n),n.forEachChild(h),void 0);return null!=s&&(p.isCollectionDependency=!0,p.collectionName=s.collectionName,s.moduleFiles.push(p)),h(n),p.cmps.length>0&&(p.staticSourceFile=Fl.createSourceFile(c,i,n.languageVersion,!0,Fl.ScriptKind.JS)),p},FR=(e,t,r)=>{const n=r.tagName,i=t.components.filter((e=>e.tagName===n));if(i.length>1){const r=ee(t.diagnostics);r.header=`Component Tag Name "${n}" Must Be Unique`,r.messageText=`Please update the components so "${n}" is only used once: ${i.map((t=>We(e.rootDir,t.sourceFilePath))).join(" ")}`}},PR=(e,t,r)=>{const n=[];for(let i=0;i<30&&e.srcDir!==t;i++){const e=Le(r);n.push(e),r=Ve(r,".."),t=pe(Ve(t,".."))}return Ve.apply(null,n.reverse())},IR=async(e,t)=>{const r=e.outputTargets.filter(qd).filter((e=>"string"==typeof e.indexHtml&&!!e.serviceWorker));if(0===r.length||null==e.sys.lazyRequire)return;const n=await e.sys.lazyRequire.ensure(e.rootDir,["workbox-build"]);if(n.length>0)t.diagnostics.push(...n);else{const n=e.sys.lazyRequire.require(e.rootDir,"workbox-build");await Promise.all(r.map((r=>(async(e,t,r,n)=>{const i=await(async e=>{if(!e.serviceWorker)return;const t={...e.serviceWorker};return!0!==t.unregister&&delete t.unregister,t})(n);if(!i.unregister)return i.swSrc?Promise.all([GO(t,n,r),qO(t,i,r)]):(async(e,t,r)=>{const n=e.createTimeSpan("generate service worker started");try{await r.generateSW(t),n.finish("generate service worker finished")}catch(t){ne(e.diagnostics,t)}})(t,i,r);await e.sys.writeFile(i.swDest,"\nself.addEventListener('install', function(e) {\n self.skipWaiting();\n});\n\nself.addEventListener('activate', function(e) {\n self.registration.unregister()\n .then(function() {\n return self.clients.matchAll();\n })\n .then(function(clients) {\n clients.forEach(client => client.navigate(client.url))\n });\n});\n")})(e,t,n,r))))}},OR=async(e,t,r)=>{if(e.watch)return;if(null==r.packageJson)return;const n=e.outputTargets.filter(Od),i=e.outputTargets.filter(Yd);await Promise.all([...n.map((n=>MR(e,t,r,n))),...i.map((n=>jR(e,t,r,n)))])},MR=async(e,t,r,n)=>{await Promise.all([RR(e,t,r,n),LR(e,t,r,n),BR(e,t,r,n),UR(e,t,r,n),VR(e,t,r)])},RR=async(e,t,r,n)=>{if(!e.devMode&&Array.isArray(r.packageJson.files)){const i=pe(We(e.rootDir,n.dir)),a=[`${i}`,`${i}/`,`./${i}`,`./${i}/`];if(!r.packageJson.files.some((e=>a.some((t=>pe(e)===t)))))return KR(e,t,r,`package.json "files" array must contain the distribution directory "${i}/" when generating a distribution.`,'"files"'),void 0;await Promise.all(r.packageJson.files.map((async n=>{if(!J(n)){const i=Be(e.packageJsonFilePath),a=Ve(i,n);await t.fs.access(a)||zR(e,t,r,`Unable to find "${n}" within the package.json "files" array.`,`"${n}"`)}})))}},LR=(e,t,r,n)=>{const i=Ve(n.dir,"index.cjs.js"),a=We(e.rootDir,i);if(K(r.packageJson.main)&&""!==r.packageJson.main){if(pe(r.packageJson.main)!==pe(a)){const n=`package.json "main" property is set to "${r.packageJson.main}". It's recommended to set the "main" property to: ${a}`;KR(e,t,r,n,'"main"')}}else KR(e,t,r,`package.json "main" property is required when generating a distribution. It's recommended to set the "main" property to: ${a}`,'"main"')},BR=(e,t,r,n)=>{const i=e.outputTargets.find(Rd),a=r.packageJson.module,o=Ve(n.dir,"index.js"),s=We(e.rootDir,o);let c=s;if(i){const t=Ve(i.dir,"index.js");c=We(e.rootDir,t)}K(a)?pe(a)!==pe(c)&&pe(a)!==pe(s)&&KR(e,t,r,`package.json "module" property is set to "${a}". It's recommended to set the "module" property to: ${c}`,'"module"'):KR(e,t,r,`package.json "module" property is required when generating a distribution. It's recommended to set the "module" property to: ${c}`,'"module"')},jR=async(e,t,r,n)=>{const i=Pd(n),a=We(e.rootDir,i);if(K(r.packageJson.types)&&""!==r.packageJson.types)if(r.packageJson.types.endsWith(".d.ts")){const n=Ve(e.rootDir,r.packageJson.types);if(!await t.fs.access(n)){let n=`package.json "types" property is set to "${r.packageJson.types}" but cannot be found.`;pe(r.packageJson.types)!==pe(a)&&(n+=` It's recommended to set the "types" property to: ${a}`),zR(e,t,r,n,'"types"')}}else{const n=`package.json "types" file must have a ".d.ts" extension: ${r.packageJson.types}`;KR(e,t,r,n,'"types"')}else KR(e,t,r,`package.json "types" property is required when generating a distribution. It's recommended to set the "types" property to: ${a}`,'"types"')},UR=(e,t,r,n)=>{if(n.collectionDir){const i=Ve(We(e.rootDir,n.collectionDir),h);r.packageJson.collection&&pe(r.packageJson.collection)===i||KR(e,t,r,`package.json "collection" property is required when generating a distribution and must be set to: ${i}`,'"collection"')}},VR=(e,t,r)=>{if(K(r.packageJson.browser)){const n=`package.json "browser" property is set to "${r.packageJson.browser}". However, for maximum compatibility with all bundlers it's recommended to not set the "browser" property and instead ensure both "module" and "main" properties are set.`;KR(e,t,r,n,'"browser"')}},zR=(e,t,r,n,i)=>{const a=re(t,r.diagnostics,e.packageJsonFilePath,n,i);return a.header="Package Json",a},KR=(e,t,r,n,i)=>{const a=re(t,r.diagnostics,e.packageJsonFilePath,n,i);return a.header="Package Json",a.level="warn",a},WR=(e,t,r)=>{if(e.devMode)return null;const n=e.outputTargets.filter(qd);return Promise.all(n.map((async e=>{const n=Ve(e.dir,"manifest.json");try{const e=await t.fs.readFile(n);if(e)try{const i=JSON.parse(e);await HR(t,r,n,i)}catch(e){const t=ee(r.diagnostics);t.header=`Invalid manifest.json: ${e}`,t.absFilePath=n}}catch(e){}})))},HR=async(e,t,r,n)=>{Array.isArray(n.icons)&&await Promise.all(n.icons.map((n=>JR(e,t,r,n))))},JR=async(e,t,r,n)=>{let i=n.src;if("string"!=typeof i){const n='Manifest icon missing "src"';return re(e,t.diagnostics,r,n,'"icons"'),void 0}i.startsWith("/")&&(i=i.slice(1));const a=Be(r),o=Ve(a,i);if(!await e.fs.access(o)){const i=`Unable to find manifest icon "${n.src}"`;re(e,t.diagnostics,r,i,`"${n.src}"`)}},$R=async(e,t,n,i)=>{try{if(r.chdir(e.rootDir),await(async(e,t,r)=>{if(r.isRebuild)return;const n=e.outputTargets.filter(Tm).filter((e=>!0===e.empty)).map((e=>e.dir||e.esmDir)).filter(K);if(0===n.length)return;const i=r.createTimeSpan(`cleaning ${n.length} dirs`,!0);await t.fs.emptyDirs(n),i.finish("cleaning dirs finished")})(e,t,n),n.hasError)return c_(n);if(e.srcIndexHtml){const r=await t.fs.readFile(e.srcIndexHtml);K(r)&&(n.indexDoc=bm(r))}if(await(async(e,t,r)=>{try{const n=await t.fs.readFile(e.packageJsonFilePath);if(n){const t=Fe(n,e.packageJsonFilePath);t.diagnostic?r.diagnostics.push(t.diagnostic):r.packageJson=t.data}}catch(t){if(!e.outputTargets.some((e=>e.type.includes("dist")))){const t=ee(r.diagnostics);t.header='Missing "package.json"',t.messageText=`Valid "package.json" file is required for distribution: ${e.packageJsonFilePath}`}}})(e,t,n),n.hasError)return c_(n);const a=n.createTimeSpan("transpile started"),o=await(async(e,t,r,n)=>{const i=Se(n.getSyntacticDiagnostics()),a=Se(n.getGlobalDiagnostics()),o=Se(n.getOptionsDiagnostics());if(r.diagnostics.push(...i),r.diagnostics.push(...a),r.diagnostics.push(...o),r.hasError)return!1;const s=n.getProgram(),c=s.getTypeChecker(),l=e.outputTargets.filter(Yd),u=[];n.emit(void 0,((n,i,a,o,s)=>{if(n.endsWith(".js")||n.endsWith("js.map"))wR(e,t,r,s[0],i,n,c,null);else if(n.endsWith(".d.ts")){const r=pe(s[0].fileName),a=PR(e,r,n);u.push(r),l.forEach((e=>{const r=Ve(e.typesDir,a);i=uM(e.typesDir,r,i),t.fs.writeFile(r,i)}))}}),void 0,!1,{before:[QM(e,r.diagnostics,c)]});const d=Array.from(t.changedModules.keys());var p,_;if(r.debug("Transpiled modules: "+JSON.stringify(d,null,"\n")),r.moduleFiles=Array.from(t.moduleMap.values()),r.components=(p=r.moduleFiles,M(R(p.map((e=>e.cmps))),(e=>e.tagName))),_=t.moduleMap,r.components.forEach((e=>{aF(_,e.sourceFilePath,[]).forEach((t=>{e.hasVdomAttribute=e.hasVdomAttribute||t.hasVdomAttribute,e.hasVdomPropOrAttr=e.hasVdomPropOrAttr||t.hasVdomPropOrAttr,e.hasVdomXlink=e.hasVdomXlink||t.hasVdomXlink,e.hasVdomClass=e.hasVdomClass||t.hasVdomClass,e.hasVdomFunctional=e.hasVdomFunctional||t.hasVdomFunctional,e.hasVdomKey=e.hasVdomKey||t.hasVdomKey,e.hasVdomListener=e.hasVdomListener||t.hasVdomListener,e.hasVdomRef=e.hasVdomRef||t.hasVdomRef,e.hasVdomRender=e.hasVdomRender||t.hasVdomRender,e.hasVdomStyle=e.hasVdomStyle||t.hasVdomStyle,e.hasVdomText=e.hasVdomText||t.hasVdomText,e.htmlAttrNames.push(...t.htmlAttrNames),e.htmlTagNames.push(...t.htmlTagNames),e.potentialCmpRefs.push(...t.potentialCmpRefs)})),e.htmlAttrNames=L(e.htmlAttrNames),e.htmlTagNames=L(e.htmlTagNames),e.potentialCmpRefs=L(e.potentialCmpRefs)})),rR(r.components),((e,t)=>{for(const r of t.components)FR(e,t,r)})(e,r),r.hasError)return!1;if(await mM(e,t,r,"src"))return!0;if(l.length>0){const r=s.getRootFileNames().filter((e=>e.endsWith(".d.ts")&&!e.endsWith("components.d.ts"))).map(pe).filter((e=>!u.includes(e))).map((r=>{const n=We(e.srcDir,r);return Promise.all(l.map((async e=>{const i=Ve(e.typesDir,n);let a=await t.fs.readFile(r);a=uM(e.typesDir,i,a),await t.fs.writeFile(i,a)})))}));await Promise.all(r)}if(e.validateTypes){const t=Se(n.getSemanticDiagnostics());e.devMode&&t.forEach((e=>{"6133"!==e.code&&"6192"!==e.code||(e.level="warn")})),r.diagnostics.push(...t)}return!1})(e,t,n,i);if(a.finish("transpile finished"),n.hasError)return c_(n);if(e.watch&&o)return null;if(n.stylesPromise=(async(e,t,r)=>{const n=e.outputTargets.filter(Vd);if(0===n.length)return;const i=await Mm(e,t,r);i&&await Promise.all(n.map((e=>t.fs.writeFile(e.file,i))))})(e,t,n),n.hasError)return c_(n);if(await EM(e,t,n),n.hasError)return c_(n);await n.stylesPromise,await(async(e,t,r)=>{const n=r.createTimeSpan("writeBuildFiles started",!0);let i=0;try{const n=await t.fs.commit();r.filesWritten=n.filesWritten,r.filesDeleted=n.filesDeleted,r.dirsDeleted=n.dirsDeleted,r.dirsAdded=n.dirsAdded,i=n.filesWritten.length,r.debug(`in-memory-fs: ${t.fs.getMemoryStats()}`),await IR(e,r),await((e,t,r)=>r.hasError?null:Promise.all([OR(e,t,r),WR(e,t,r)]))(e,t,r)}catch(e){ne(r.diagnostics,e)}n.finish(`writeBuildFiles finished, files wrote: ${i}`)})(e,t,n)}catch(e){ne(n.diagnostics,e)}return t.changedFiles.clear(),(async e=>{const t=await l_(e.config,e.compilerCtx,e,!1),r={buildId:e.buildId,messages:e.buildMessages.slice(),progress:1};return e.compilerCtx.events.emit("buildLog",r),t})(n)},GR=e=>({experimentalDecorators:!0,declaration:e.outputTargets.some(Yd),module:Fl.ModuleKind.ESNext,moduleResolution:Fl.ModuleResolutionKind.NodeJs,noEmitOnError:!1,outDir:e.cacheDir||e.sys.tmpDirSync(),sourceMap:e.sourceMap,inlineSources:e.sourceMap}),qR=e=>{const t=new Map,r=new Map,n=async e=>{const t=g(e);if("boolean"==typeof t.exists)return{exists:t.exists,isDirectory:t.isDirectory,isFile:t.isFile};const r={exists:!1,isDirectory:!1,isFile:!1},n=await c(e);return n?(t.exists=n.exists,t.isDirectory=n.isDirectory,t.isFile=n.isFile,r.exists=t.exists,r.isDirectory=t.isDirectory,r.isFile=t.isFile):t.exists=!1,r},i=async(e,r={})=>{e=pe(e);const n=[];if(!0===r.inMemoryOnly){let i=e;i.endsWith("/")||(i+="/");const a=e.split("/");t.forEach(((t,i)=>{if(!i.startsWith(e))return;const s=i.split("/");if((s.length===a.length+1||r.recursive&&s.length>a.length)&&t.exists){const e={absPath:i,relPath:s[a.length],isDirectory:t.isDirectory,isFile:t.isFile};o(r,e)||n.push(e)}}))}else await a(e,e,r,n);return n.sort(((e,t)=>e.absPath<t.absPath?-1:e.absPath>t.absPath?1:0))},a=async(t,r,n,i)=>{const s=await e.readDir(r);if(s.length>0){const e=g(r);e.exists=!0,e.isFile=!1,e.isDirectory=!0,await Promise.all(s.map((async e=>{const r=pe(e),s=pe(We(t,r)),l=await c(r),u={absPath:r,relPath:s,isDirectory:l.isDirectory,isFile:l.isFile};o(n,u)||(i.push(u),!0===n.recursive&&!0===l.isDirectory&&await a(t,r,n,i))})))}},o=(e,t)=>{if(t.isDirectory){if(Array.isArray(e.excludeDirNames)){const r=Le(t.absPath);if(e.excludeDirNames.some((e=>r===e)))return!0}}else if(Array.isArray(e.excludeExtensions)){const r=t.relPath.toLowerCase();if(e.excludeExtensions.some((e=>r.endsWith(e))))return!0}return!1},s=async e=>{const t=g(e);t.queueWriteToDisk||(t.queueDeleteFromDisk=!0)},c=async t=>{const r=g(t);if("boolean"!=typeof r.isDirectory||"boolean"!=typeof r.isFile){const n=await e.stat(t);n.error?r.exists=!1:(r.exists=!0,n.isFile?(r.isFile=!0,r.isDirectory=!1,r.size=n.size):n.isDirectory?(r.isFile=!1,r.isDirectory=!0,r.size=n.size):(r.isFile=!1,r.isDirectory=!1,r.size=null))}return{exists:!!r.exists,isFile:!!r.isFile,isDirectory:!!r.isDirectory,size:"number"==typeof r.size?r.size:0}},l=t=>{const r=g(t);if("boolean"!=typeof r.isDirectory||"boolean"!=typeof r.isFile){const n=e.statSync(t);n.error?r.exists=!1:(r.exists=!0,n.isFile?(r.isFile=!0,r.isDirectory=!1,r.size=n.size):n.isDirectory?(r.isFile=!1,r.isDirectory=!0,r.size=n.size):(r.isFile=!1,r.isDirectory=!1,r.size=null))}return{exists:!!r.exists,isFile:!!r.isFile,isDirectory:!!r.isDirectory}},u=async(t,n,i)=>{if("string"!=typeof t)throw new Error(`writeFile, invalid filePath: ${t}`);if("string"!=typeof n)throw new Error(`writeFile, invalid content: ${t}`);const a={ignored:!1,changedContent:!1,queuedWrite:!1};if(!0===YR(t))return a.ignored=!0,a;const o=g(t);if(o.exists=!0,o.isFile=!0,o.isDirectory=!1,o.queueDeleteFromDisk=!1,"string"==typeof o.fileText?a.changedContent=o.fileText.replace(/\r/g,"")!==n.replace(/\r/g,""):a.changedContent=!0,o.fileText=n,a.queuedWrite=!1,null!=i&&("string"==typeof i.outputTargetType&&r.set(t,i.outputTargetType),!1===i.useCache&&(o.useCache=!1)),null!=i&&!0===i.inMemoryOnly)o.queueWriteToDisk?a.queuedWrite=!0:o.queueWriteToDisk=!1,await d(t,!0);else if(null!=i&&!0===i.immediateWrite){if(a.changedContent||!0!==i.useCache){const r=await e.readFile(t);"string"==typeof r&&(a.changedContent=o.fileText.replace(/\r/g,"")!==r.replace(/\r/g,"")),a.changedContent&&(await d(t,!1),await e.writeFile(t,o.fileText))}}else o.queueWriteToDisk||!0!==a.changedContent||(o.queueWriteToDisk=!0,a.queuedWrite=!0);return a},d=async(e,t)=>{const r=[];for(;"string"==typeof(e=Be(e))&&e.length>0&&"/"!==e&&!1===e.endsWith(":/")&&!1===e.endsWith(":\\");)r.push(e);r.reverse(),await p(r,t)},p=async(t,r)=>{const n=[];for(const i of t){const t=g(i);if(!0!==t.exists||!0!==t.isDirectory)try{t.exists=!0,t.isDirectory=!0,t.isFile=!1,r||await e.createDir(i),n.push(i)}catch(e){}}return n},_=async t=>{const r=g(t);if(null==r.fileText)throw new Error(`unable to find item fileText to write: ${t}`);return await e.writeFile(t,r.fileText),!1===r.useCache&&m(t),t},f=e=>{e=pe(e),t.forEach(((t,r)=>{const n=We(e,r).split("/")[0];n.startsWith(".")||n.startsWith("/")||m(r)}))},m=e=>{e=pe(e);const r=t.get(e);null==r||r.queueWriteToDisk||t.delete(e)},g=e=>{e=pe(e);let r=t.get(e);return null!=r||t.set(e,r={exists:null,fileText:null,size:null,mtimeMs:null,isDirectory:null,isFile:null,queueCopyFileToDest:null,queueDeleteFromDisk:null,queueWriteToDisk:null,useCache:null}),r},h=5242880;return{access:async e=>(await n(e)).exists,accessSync(e){const t=g(e);if("boolean"!=typeof t.exists){const r=l(e);t.exists=r.exists,t.isDirectory=r.isDirectory,t.isFile=r.isFile}return t.exists},accessData:n,cancelDeleteDirectoriesFromDisk(e){for(const t of e){const e=g(t);!0===e.queueDeleteFromDisk&&(e.queueDeleteFromDisk=!1)}},cancelDeleteFilesFromDisk(e){for(const t of e){const e=g(t);!0===e.isFile&&!0===e.queueDeleteFromDisk&&(e.queueDeleteFromDisk=!1)}},clearCache:()=>t.clear(),clearDirCache:f,clearFileCache:m,async commit(){const r=XR(t),n=await p(r.dirsToEnsure,!1),i=await(l=r.filesToWrite,Promise.all(l.map((async e=>{if("string"!=typeof e)throw new Error("unable to writeFile without filePath");return _(e)})))),a=await(c=r.filesToCopy,Promise.all(c.map((async t=>{const r=t[0],n=t[1];return await e.copyFile(r,n),[r,n]})))),o=await(async t=>await Promise.all(t.map((async t=>{if("string"!=typeof t)throw new Error("unable to unlink without filePath");return await e.removeFile(t),t}))))(r.filesToDelete),s=await(async t=>{const r=[];for(const n of t)await e.removeDir(n),r.push(n);return r})(r.dirsToDelete);var c,l;return r.filesToDelete.forEach(m),r.dirsToDelete.forEach(f),{filesCopied:a,filesWritten:i,filesDeleted:o,dirsDeleted:s,dirsAdded:n}},async copyFile(e,t){g(e).queueCopyFileToDest=t},async emptyDirs(e){e=e.filter(K).map(pe).reduce(((e,t)=>(e.includes(t)||e.push(t),e)),[]);const t=await Promise.all(e.map((e=>i(e,{recursive:!0})))),r=[];for(const e of t)for(const t of e)r.includes(t.absPath)||r.push(t.absPath);r.sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?1:r>n?-1:0})),await Promise.all(r.map(s)),e.forEach((e=>{const t=g(e);t.isFile=!1,t.isDirectory=!0,t.queueWriteToDisk=!0,t.queueDeleteFromDisk=!1}))},getBuildOutputs(){const e=[];return r.forEach(((t,r)=>{const n=e.find((e=>e.type===t));n?n.files.push(r):e.push({type:t,files:[r]})})),e.forEach((e=>e.files.sort())),e.sort(((e,t)=>e.type<t.type?-1:e.type>t.type?1:0))},getItem:g,getMemoryStats:()=>`data length: ${t.size}`,keys:()=>Array.from(t.keys()).sort(),async readFile(t,r){if(null==r||!0===r.useCache||void 0===r.useCache){const e=g(t);if(e.exists&&"string"==typeof e.fileText)return e.fileText}const n=await e.readFile(t),i=g(t);return"string"==typeof n?n.length<h&&(i.exists=!0,i.isFile=!0,i.isDirectory=!1,i.fileText=n):i.exists=!1,n},readFileSync(t,r){if(null==r||!0===r.useCache||void 0===r.useCache){const e=g(t);if(e.exists&&"string"==typeof e.fileText)return e.fileText}const n=e.readFileSync(t),i=g(t);return"string"==typeof n?n.length<h&&(i.exists=!0,i.isFile=!0,i.isDirectory=!1,i.fileText=n):i.exists=!1,n},readdir:i,async remove(e){const t=await c(e);!0===t.isDirectory?await(async e=>{const t=g(e);t.isFile=!1,t.isDirectory=!0,t.queueWriteToDisk||(t.queueDeleteFromDisk=!0);try{const t=await i(e,{recursive:!0});await Promise.all(t.map((e=>e.relPath.endsWith(".gitkeep")?null:s(e.absPath))))}catch(e){}})(e):!0===t.isFile&&await s(e)},stat:c,statSync:l,sys:e,writeFile:u,writeFiles(e,t){const r=[];return W(e)?e.forEach(((e,n)=>{r.push(u(n,e,t))})):Object.keys(e).map((n=>{r.push(u(n,e[n],t))})),Promise.all(r)}}},XR=e=>{const t={filesToDelete:[],filesToWrite:[],filesToCopy:[],dirsToDelete:[],dirsToEnsure:[]};e.forEach(((e,r)=>{if(!0===e.queueWriteToDisk){if(!0===e.isFile){t.filesToWrite.push(r);const e=pe(Be(r));t.dirsToEnsure.includes(e)||t.dirsToEnsure.push(e);const n=t.dirsToDelete.indexOf(e);n>-1&&t.dirsToDelete.splice(n,1);const i=t.filesToDelete.indexOf(r);i>-1&&t.filesToDelete.splice(i,1)}else if(!0===e.isDirectory){t.dirsToEnsure.includes(r)||t.dirsToEnsure.push(r);const e=t.dirsToDelete.indexOf(r);e>-1&&t.dirsToDelete.splice(e,1)}}else if(!0===e.queueDeleteFromDisk)e.isDirectory&&!t.dirsToEnsure.includes(r)?t.dirsToDelete.push(r):e.isFile&&!t.filesToWrite.includes(r)&&t.filesToDelete.push(r);else if("string"==typeof e.queueCopyFileToDest){const n=r,i=e.queueCopyFileToDest;t.filesToCopy.push([n,i]);const a=pe(Be(i));t.dirsToEnsure.includes(a)||t.dirsToEnsure.push(a);const o=t.dirsToDelete.indexOf(a);o>-1&&t.dirsToDelete.splice(o,1);const s=t.filesToDelete.indexOf(i);s>-1&&t.filesToDelete.splice(s,1)}e.queueDeleteFromDisk=!1,e.queueWriteToDisk=!1}));for(let e=0,r=t.dirsToEnsure.length;e<r;e++){const r=t.dirsToEnsure[e].split("/");for(let e=2;e<r.length;e++){const n=r.slice(0,e).join("/");!1===t.dirsToEnsure.includes(n)&&t.dirsToEnsure.push(n)}}t.dirsToEnsure.sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?-1:r>n?1:e.length<t.length?-1:e.length>t.length?1:0})),t.dirsToDelete.sort(((e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?1:r>n?-1:e.length<t.length?1:e.length>t.length?-1:0}));for(const e of t.dirsToEnsure){const r=t.dirsToDelete.indexOf(e);r>-1&&t.dirsToDelete.splice(r,1)}return t.dirsToDelete=t.dirsToDelete.filter((e=>"/"!==e&&!0!==e.endsWith(":/"))),t.dirsToEnsure=t.dirsToEnsure.filter((t=>{const r=e.get(t);return(null==r||!0!==r.exists||!0!==r.isDirectory)&&"/"!==t&&!t.endsWith(":/")})),t},YR=e=>(e=e.trim().toLowerCase(),QR.some((t=>e.endsWith(t)))),QR=[".ds_store",".gitignore","desktop.ini","thumbs.db"],ZR=e=>({optimizeCss:e.handler("optimizeCss"),prepareModule:e.handler("prepareModule"),prerenderWorker:e.handler("prerenderWorker"),transformCssToEsm:e.handler("transformCssToEsm")}),eL=e=>e.split(".").pop().toLowerCase(),tL=["ts","tsx","js","jsx"],rL=["css","scss","sass","pcss","styl","stylus","less"],nL=(e,t)=>{if(K(t)){if(e.watchIgnoredRegex.some((e=>e.test(t))))return!0;const r=e.outputTargets;if([...r.filter(Jd).map((e=>e.file)),...r.filter(Jd).map((e=>e.typesFile)),...r.filter(Xd).map((e=>e.file)),...r.filter(Gd).map((e=>e.file))].includes(t))return!0}return!1},iL=async(e,t)=>{let r,n,i=!1;const a=new Promise((e=>n=e)),o=new Set,s=new Set,c=new Set,l=new Set,u=new Set,d=async r=>{const n=new Yp(e,t);n.isRebuild=i,n.requiresFullBuild=!i,n.dirsAdded=Array.from(o.keys()).sort(),n.dirsDeleted=Array.from(s.keys()).sort(),n.filesAdded=Array.from(c.keys()).sort(),n.filesUpdated=Array.from(l.keys()).sort(),n.filesDeleted=Array.from(u.keys()).sort(),n.filesChanged=(e=>L([...e.filesUpdated,...e.filesAdded,...e.filesDeleted]).sort())(n),n.scriptsAdded=(e=>e.filesAdded.filter((e=>tL.some((t=>e.endsWith(t.toLowerCase()))))).map((e=>Le(e))))(n),n.scriptsDeleted=(e=>e.filesDeleted.filter((e=>tL.some((t=>e.endsWith(t.toLowerCase()))))).map((e=>Le(e))))(n),n.hasScriptChanges=(e=>e.filesChanged.some((e=>{const t=eL(e);return tL.includes(t)})))(n),n.hasStyleChanges=(e=>e.filesChanged.some((e=>{const t=eL(e);return rL.includes(t)})))(n),n.hasHtmlChanges=((e,t)=>!!t.filesChanged.some((e=>e.toLowerCase().endsWith(".html")))||t.filesChanged.some((t=>t===e.srcIndexHtml)))(e,n),n.hasServiceWorkerChanges=((e,t)=>!(e.devMode&&!e.flags.serviceWorker)&&e.outputTargets.filter(qd).filter((e=>e.serviceWorker&&e.serviceWorker.swSrc)).some((e=>t.filesChanged.some((t=>!!e.serviceWorker&&Le(t).toLowerCase()===Le(e.serviceWorker.swSrc).toLowerCase())))))(e,n),o.clear(),s.clear(),c.clear(),l.clear(),u.clear(),sL(t,n),n.start();const a=await $R(e,t,n,r);a&&!a.hasError&&(i=!0)},p=new Map,_=new Map,f=(n,i)=>{if(r&&!nL(e,n)){switch(cL(e,t,n,i),i){case"dirAdd":o.add(n);break;case"dirDelete":s.add(n);break;case"fileAdd":c.add(n);break;case"fileUpdate":l.add(n);break;case"fileDelete":u.add(n)}e.logger.debug(`onFsChange ${i}: ${n}`),r.rebuild()}},m=(e,t)=>{null!=t&&f(e,t)},g=async()=>{p.forEach((e=>e.close())),_.forEach((e=>e.close())),p.clear(),_.clear(),r&&(r.program.close(),r=null);const e={exitCode:0};return n(e),e};return t.addWatchFile=t=>{!K(t)||_.has(t)||nL(e,t)||_.set(t,e.sys.watchFile(t,f))},t.addWatchDir=(t,r)=>{!K(t)||p.has(t)||nL(e,t)||p.set(t,e.sys.watchDirectory(t,m,r))},e.sys.addDestory(g),{async start(){const n=aL(e,t),i=oL(e,t);return await n,await i,r=await(async(e,t)=>{let r,n,i,a=!1;const o=GR(e),s={...Fl.sys,setTimeout(t,r){clearInterval(i);const o=n=setInterval((()=>{a||(t(),clearInterval(o),n=i=null)}),e.sys.watchTimeout||r);return o},clearTimeout:e=>clearInterval(e)};e.sys.addDestory((()=>s.clearTimeout(n)));const c=Fl.createWatchCompilerHost(e.tsconfig,o,s,Fl.createEmitAndSemanticDiagnosticsBuilderProgram,(t=>{e.logger.debug("watch reportDiagnostic:"+t.messageText)}),(t=>{e.logger.debug(t.messageText)}));return c.afterProgramCreate=async e=>{r=e,a=!0,await t(e),a=!1},{program:Fl.createWatchProgram(c),rebuild(){r&&!n&&(i=s.setTimeout((()=>c.afterProgramCreate(r)),300))}}})(e,d),a},close:g,on:t.events.on,request:async r=>(async(e,t,r)=>{const n={path:r.path,nodeModuleId:null,nodeModuleVersion:null,nodeResolvedPath:null,cachePath:null,cacheHit:!1,content:"",status:404};try{const i=((e,t)=>{const r={nodeModuleId:null,nodeModuleVersion:null,nodeResolvedPath:null};if(t&&t.includes(ST)&&t.endsWith(".js")){const n=new URL(t,"https://stenciljs.com");let i=Le(n.pathname);i=i.substring(0,i.length-3);let a=i.split("@");2===a.length&&(r.nodeModuleId=decodeURIComponent(a[0]),r.nodeModuleVersion=decodeURIComponent(a[1]),r.nodeResolvedPath=n.searchParams.get("p"),r.nodeResolvedPath&&(r.nodeResolvedPath=decodeURIComponent(r.nodeResolvedPath),r.nodeResolvedPath=Ve(e.rootDir,r.nodeResolvedPath)))}return r})(e,r.path);if(Object.assign(n,i),!i.nodeModuleId)return n.content="/* invalid dev module */",n.status=400,n;{if(!i.nodeModuleVersion)return n.content="/* invalid module version */",n.status=400,n;if(!i.nodeResolvedPath)return n.content="/* invalid resolved path */",n.status=400,n;const r=await(async(e,t)=>{if(e.enableCache)for(let r=0;r<10;r++){if("node_modules"===Le(t))return!0;if(await e.sys.isSymbolicLink(t))return!1;t=Be(t)}return!1})(e,i.nodeResolvedPath);let a=null;if(r){a=((e,t)=>Ve(e.cacheDir,`dev_module_${t.nodeModuleId}_${t.nodeModuleVersion}_${ET}.log`))(e,i);const t=await e.sys.readFile(a);if("string"==typeof t)return n.content=t,n.cachePath=a,n.cacheHit=!0,n.status=200,n}await(async(e,t,r,n)=>{const i=new Yp(e,t);try{const a=rF(e,t,i,{id:r.nodeModuleId,platform:"client",inputs:{index:r.nodeResolvedPath}}),o=await gT(a),s={banner:Ae(e),format:"es"};if(r.nodeModuleId){const t=We(e.rootDir,r.nodeResolvedPath);s.intro=`/**\n * Dev Node Module: ${r.nodeModuleId}, v${r.nodeModuleVersion}\n * Entry: ${t}\n * DEVELOPMENT PURPOSES ONLY!!\n */`,a.input=r.nodeResolvedPath}const c=await o.generate(s);i.hasError?(n.status=500,n.content=`console.error(${JSON.stringify(i.diagnostics)})`):c&&c.output&&c.output.length>0&&(n.content=c.output[0].code,n.status=200)}catch(e){n.status=500;const t=e instanceof Error?e.stack:e+"";n.content=`console.error(${JSON.stringify(t)})`}})(e,t,i,n),200===n.status&&r&&(n.cachePath=a,(async(e,t)=>{try{await e.sys.createDir(e.cacheDir),e.sys.writeFile(t.cachePath,t.content)}catch(e){console.error(e)}})(e,n))}}catch(e){e&&(e instanceof Error&&e.stack?n.content=`/*\n${e.stack}\n*/`:n.content=`/*\n${e}\n*/`),n.status=500}return n})(e,t,r)}},aL=async(e,t)=>{(await t.fs.readdir(e.srcDir,{recursive:!0,excludeDirNames:[".cache",".git",".github",".stencil",".vscode","node_modules"],excludeExtensions:[".md",".markdown",".txt",".spec.ts",".spec.tsx",".e2e.ts",".e2e.tsx",".gitignore",".editorconfig"]})).filter((({isFile:e})=>e)).forEach((({absPath:e})=>t.addWatchFile(e))),t.addWatchDir(e.srcDir,!0)},oL=async(e,t)=>{(await t.fs.readdir(e.rootDir,{recursive:!1,excludeDirNames:[".cache",".git",".github",".stencil",".vscode","node_modules"]})).filter((({isFile:e})=>e)).forEach((({absPath:e})=>t.addWatchFile(e)))},sL=(e,t)=>{(t.dirsAdded.length>0||t.dirsDeleted.length>0||t.filesUpdated.length>0||t.filesAdded.length>0||t.filesDeleted.length>0)&&e.events.emit("fsChange",{dirsAdded:t.dirsAdded.slice(),dirsDeleted:t.dirsDeleted.slice(),filesUpdated:t.filesUpdated.slice(),filesAdded:t.filesAdded.slice(),filesDeleted:t.filesDeleted.slice()})},cL=(e,t,r,n)=>{if(t.fs.clearFileCache(r),t.changedFiles.add(r),"fileDelete"===n)t.moduleMap.delete(r);else if("dirDelete"===n){const n=He("/");t.moduleMap.forEach(((i,a)=>{let o=Be(a);for(let i=0;i<50&&o!==e.rootDir&&o!==n;i++){if(o===r){t.fs.clearFileCache(a),t.moduleMap.delete(a),t.changedFiles.add(a);break}o=Be(o)}}))}},lL=(e,t)=>{const r=new URL(e.outputTarget.baseUrl,e.devServerHostUrl).pathname.toLowerCase(),n=new URL(t,e.devServerHostUrl).pathname.toLowerCase(),i=r.split("/"),a=n.split("/");let o;o=r===n?Xe.basename(e.outputTarget.indexHtml):"index.html";const s=[];for(let e=0;e<a.length;e++){const t=i[e],r=a[e];if("string"!=typeof t||t!==r){if(e===a.length-1){const t=a[e].toLowerCase();if(t.endsWith(".html")||t.endsWith(".htm")){o=a[e];break}}s.push(r)}}return s.push(o),Xe.join(e.outputTarget.appDir,...s)},uL=(e,t,r)=>{if(K(t)&&""!==t&&!e.urlsPending.has(t)&&!e.urlsProcessing.has(t)&&!e.urlsCompleted.has(t)&&(e.urlsPending.add(t),e.isDebug)){const n=new URL(t,e.outputTarget.baseUrl).pathname,i=r.startsWith("#")?r:new URL(r,e.outputTarget.baseUrl).pathname;e.config.logger.debug(`prerender queue: ${n} (from ${i})`)}},dL=(e,t)=>{const r=t.urlsPending.values().next();if(!r.done)if(t.urlsProcessing.size>t.maxConcurrency)setTimeout((()=>dL(e,t)));else{const n=r.value;t.urlsPending.delete(n),t.urlsProcessing.add(n),pL(e,t,n),t.urlsProcessing.size<t.maxConcurrency&&t.config.sys.nextTick((()=>dL(e,t)))}0===t.urlsProcessing.size&&0===t.urlsPending.size&&U(t.resolve)&&(t.resolve(),t.resolve=null)},pL=async(e,t,r)=>{let n=r;try{let i;n=new URL(r).pathname,t.isDebug&&(i=t.config.logger.createTimeSpan(`prerender start: ${n}`,!0));const a={appDir:t.outputTarget.appDir,baseUrl:t.outputTarget.baseUrl,buildId:e.buildId,componentGraphPath:t.componentGraphPath,devServerHostUrl:t.devServerHostUrl,hydrateAppFilePath:t.hydrateAppFilePath,isDebug:t.isDebug,prerenderConfigPath:t.prerenderConfigPath,staticSite:t.staticSite,templateId:t.templateId,url:r,writeToFilePath:lL(t,r)},o=await t.prerenderUrlWorker(a);if(t.isDebug){const e=We(t.config.rootDir,o.filePath);o.diagnostics.some((e=>"error"===e.level))?i.finish(`prerender failed: ${n}, ${e}`,"red"):i.finish(`prerender finish: ${n}, ${e}`)}if(t.diagnostics.push(...o.diagnostics),Array.isArray(o.anchorUrls))for(const e of o.anchorUrls)uL(t,e,r)}catch(e){ne(t.diagnostics,e)}t.urlsProcessing.delete(r),t.urlsCompleted.add(r),e.urls++;const i=t.urlsCompleted.size;t.progressLogger&&i>1&&t.progressLogger.update(` prerendered ${i} urls: ${t.config.logger.dim(n)}`),t.config.sys.nextTick((()=>dL(e,t)))},_L=e=>{const t=[];if("function"==typeof e.prerenderConfig.canonicalUrl)for(const r of e.urlsCompleted){const n=e.prerenderConfig.canonicalUrl(new URL(r));"string"==typeof n&&""!==n.trim()&&t.push(n)}else for(const r of e.urlsCompleted)"string"==typeof r&&t.push(r);return t.sort(fL)},fL=(e,t)=>{const r=e.split("/").length,n=t.split("/").length;return r<n?-1:r>n?1:e<t?-1:e>t?1:0},mL=async(e,t,r,n,i,a,o,s,c)=>{try{const l=n.logger.createTimeSpan("prerendering started"),u=new URL(i.browserUrl),d=u.origin,p=yu(r,c.prerenderConfig),_=gu(p,u,r);if(n.logger.debug(`prerender hydrate app: ${a}`),n.logger.debug(`prerender dev server: ${d}`),ie(r))return;const f=[],m={prerenderUrlWorker:t=>e.prerenderWorker(t),componentGraphPath:null,config:n,diagnostics:f,devServerHostUrl:d,hydrateAppFilePath:a,isDebug:"debug"===n.logLevel,logCount:0,maxConcurrency:Math.max(20,10*n.maxConcurrentWorkers),outputTarget:c,prerenderConfig:p,prerenderConfigPath:c.prerenderConfig,staticSite:!1,templateId:null,urlsCompleted:new Set,urlsPending:new Set,urlsProcessing:new Set,resolve:null};if(n.flags.ci||m.isDebug||(m.progressLogger=await n.logger.createLineUpdater()),((e,t)=>{const r=[];if(Array.isArray(t.prerenderConfig.entryUrls))for(const e of t.prerenderConfig.entryUrls){const t={href:e};r.push(t)}else{const e={href:t.outputTarget.baseUrl};r.push(e)}for(const n of r)try{new URL(n.href,t.outputTarget.baseUrl)}catch(t){const r=ee(e.diagnostics);return r.header=`Invalid Prerender Entry Url: ${n.href}`,r.messageText="Entry Urls must include the protocol and domain of the site being prerendered.",void 0}const n=new URL(t.outputTarget.baseUrl),i=ou(t.prerenderConfig,e.diagnostics,n,n,r);for(const e of i)uL(t,e,"#entryUrl")})(t,m),0===m.urlsPending.size)return ee(r).messageText="prerendering failed: no urls found in the prerender config",void 0;const g=await(async(e,t,r,n,i,a,o,s)=>{try{let c;if(K(i)||(i=a.indexHtml),U(t.loadTemplate)){const e=t.loadTemplate(i);c=H(e)?await e:e}else c=await e.sys.readFile(i);let l=bm(c),u=!1;if(t.staticSite?(Ql(l),u=!0):u=!(e=>!!e.querySelector("script[data-stencil]"))(l),l.documentElement.classList.add("hydrated"),o.inlineExternalStyleSheets&&!n)try{await(async(e,t,r)=>{const n=Array.from(r.querySelectorAll("link[rel=stylesheet]"));0!==n.length&&await Promise.all(n.map((async n=>{const i=n.getAttribute("href");if(!i.startsWith("/")||null!==n.getAttribute("media"))return;const a=Ve(t,i);try{let t=await e.readFile(a);t=(await vn({input:t})).output;const i=r.createElement("style");i.innerHTML=t,n.parentNode.insertBefore(i,n),n.remove(),i.setAttribute("data-styles",""),n.setAttribute("media","(max-width: 0px)"),n.setAttribute("importance","low"),n.setAttribute("onload","this.media=''"),r.body.appendChild(n)}catch(e){}})))})(e.sys,a.appDir,l)}catch(e){ne(r,e)}if(o.minifyScriptElements&&!n)try{await Gl(l,!0)}catch(e){ne(r,e)}if(o.minifyStyleElements&&!n)try{const t=new URL(a.baseUrl,s.devServerHostUrl);await ql(e.sys,a.appDir,l,t,!0)}catch(e){ne(r,e)}if(U(t.beforeSerializeTemplate)){const e=t.beforeSerializeTemplate(l);l=H(e)?await e:e}let d=$_(l);if(U(t.afterSerializeTemplate)){const e=t.afterSerializeTemplate(d);d=H(e)?await e:e}return{html:d,staticSite:u}}catch(e){ne(r,e)}})(n,p,r,m.isDebug,s,c,_,m);if(r.length>0||!g||!K(g.html))return;if(m.templateId=await gL(n,g.html),m.staticSite=g.staticSite,m.componentGraphPath=await hL(n,o,c),await new Promise((e=>{m.resolve=e,n.sys.nextTick((()=>dL(t,m)))})),m.isDebug){const e=f.filter((e=>"debug"===e.level));e.length>0&&n.logger.printDiagnostics(e)}const h=l.duration(),y=await(async e=>{if(null===e.prerenderConfig.sitemapXml)return null;try{"function"!=typeof e.prerenderConfig.sitemapXml&&(e.prerenderConfig.sitemapXml=e=>{const t=[];t.push('<?xml version="1.0" encoding="UTF-8"?>'),t.push('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');for(const r of e.urls)t.push(`<url><loc>${r}</loc></url>`);return t.push("</urlset>"),t.join("\n")});const t={urls:_L(e),baseUrl:e.outputTarget.baseUrl,dir:e.outputTarget.appDir},r=e.prerenderConfig.sitemapXml(t);if(null==r)return null;const n={content:null,filePath:null,url:null};if("string"==typeof r?n.content=r:(n.content=r.content,n.filePath=r.filePath),"string"!=typeof n.content)return null;if("string"!=typeof n.filePath&&(n.filePath=Ve(e.outputTarget.appDir,"sitemap.xml")),"string"!=typeof n.url){const t=new URL("sitemap.xml",e.outputTarget.baseUrl);n.url=t.href}return await e.config.sys.writeFile(n.filePath,n.content),n}catch(t){return ne(e.diagnostics,t),null}})(m);await(async(e,t)=>{if(null===e.prerenderConfig.robotsTxt)return null;try{"function"!=typeof e.prerenderConfig.robotsTxt&&(e.prerenderConfig.robotsTxt=e=>{const t=["User-agent: *","Disallow:"];return"string"==typeof e.sitemapUrl&&t.push(`Sitemap: ${e.sitemapUrl}`),t.join("\n")});const r={urls:_L(e),baseUrl:e.outputTarget.baseUrl,sitemapUrl:t?t.url:null,dir:e.outputTarget.dir},n=e.prerenderConfig.robotsTxt(r);if(null==n)return null;const i={content:null,filePath:null,url:null};if("string"==typeof n?i.content=n:(i.content=n.content,i.filePath=n.filePath),"string"!=typeof i.content)return null;const a=i.content.replace(/\r/g,"\n").split("\n");if(i.content=a.map((e=>e.trim())).join("\n"),"string"!=typeof i.filePath&&(i.filePath=Ve(e.outputTarget.dir,"robots.txt")),"string"!=typeof i.url){const t=new URL("/robots.txt",e.outputTarget.baseUrl);i.url=t.href}return await e.config.sys.writeFile(i.filePath,i.content),i}catch(t){return ne(e.diagnostics,t),null}})(m,y);const v=f.filter((e=>"error"===e.level)),b=f.filter((e=>"runtime"===e.type));if(v.length>0){for(const e of v)e.type="runtime";r.push(...v)}r.push(...b),m.progressLogger&&await m.progressLogger.stop();const x=m.urlsCompleted.size;if(x>1){const e=Math.round(h/x);n.logger.info(`prerendered ${x} urls, averaging ${e} ms per url`)}const E=v.length>0?"failed":"finished",S=v.length>0?"red":"green";l.finish(`prerendering ${E}`,S,!0)}catch(e){ne(r,e)}},gL=async(e,t)=>{const r=`prerender-${await e.sys.generateContentHash(t,12)}.html`,n=Ve(e.sys.tmpDirSync(),r);return e.logger.debug(`prerender template: ${n}`),e.sys.writeFileSync(n,t),n},hL=async(e,t,r)=>{if(t){const n=yL(t,r),i=`prerender-component-graph-${await e.sys.generateContentHash(n)}.json`,a=Ve(e.sys.tmpDirSync(),i);return e.sys.writeFileSync(a,n),a}return null},yL=(e,t)=>{const r=Wl(t),n={},i=Object.entries(e);for(const[e,t]of i)n[e]=t.map((e=>Ve(r,e)));return JSON.stringify(n)},vL=(e,t)=>(Ue(t)||(t=Ve(e.rootDir,t)),t),bL=(e,t,r,n)=>{r&&"boolean"==typeof e.flags[r]&&(e[t]=e.flags[r]);const i=xL(e,t);"function"==typeof e[i]&&(e[i]=!!e[i]()),"boolean"==typeof e[i]?e[t]=e[i]:e[t]=n},xL=(e,t)=>{const r=Object.keys(e);for(const n of r)if(n.toLowerCase()===t.toLowerCase()){if(n!==t)return e.logger.warn(`config "${n}" should be "${t}"`),n;break}return t},EL=(e,t)=>t.filter(Od).map((t=>({...t,dir:vL(e,t.dir||"dist/collection")}))),SL=(e,t=[])=>{if(null===e||!1===e)return[];Array.isArray(e)||(e=[]),e=e.slice();for(const r of t)e.every((e=>e.src!==r.src))&&e.push(r);return L(e,(e=>`${e.src}:${e.dest}:${e.keepDirStructure}`))},DL=(e,t)=>{const r="dist";return t.filter(Md).reduce(((t,n)=>{const i={...n,dir:vL(e,n.dir||Ve(r,"components"))};if(j(i.empty)||(i.empty=!0),j(i.externalRuntime)||(i.externalRuntime=!0),i.generateTypeDeclarations){const n=vL(e,Ve(r,"types"));t.push({type:ap,dir:i.dir,typesDir:n})}return i.copy=SL(i.copy,[]),i.copy.length>0&&t.push({type:Zd,dir:e.rootDir,copy:[...i.copy]}),t.push(i),t}),[])},TL=(e,t,r)=>r.filter(Kd).map((r=>{if(r.validate){const n=[];try{r.validate(e,t)}catch(e){ne(n,e)}r.copy&&r.copy.length>0&&e.outputTargets.push({type:Zd,dir:e.rootDir,copy:[...r.copy]}),t.push(...n)}return r})),CL=(e,t)=>t.filter(Id).reduce(((t,r)=>{const n=kL(e,r);t.push(n);const i=e.fsNamespace||"app",a=Ve(n.buildDir,i);if(t.push({type:sp,esmDir:a,systemDir:e.buildEs5?a:void 0,systemLoaderFile:e.buildEs5?Ve(a,i+".js"):void 0,legacyLoaderFile:Ve(n.buildDir,i+".js"),polyfills:void 0===n.polyfills||!!n.polyfills,isBrowserBuild:!0,empty:n.empty}),t.push({type:Zd,dir:a,copyAssets:"dist",copy:[...n.copy]}),t.push({type:lp,file:Ve(a,`${e.fsNamespace}.css`)}),t.push({type:ap,dir:n.dir,typesDir:n.typesDir,empty:n.empty}),e.buildDist){n.collectionDir&&(t.push({type:rp,dir:n.dir,collectionDir:n.collectionDir,empty:n.empty}),t.push({type:Zd,dir:n.collectionDir,copyAssets:"collection",copy:[...n.copy,{src:"**/*.svg"},{src:"**/*.js"}]}));const r=Ve(n.dir,"esm"),i=e.buildEs5?Ve(n.dir,"esm-es5"):void 0,a=Ve(n.dir,"cjs");t.push({type:sp,esmDir:r,esmEs5Dir:i,cjsDir:a,cjsIndexFile:Ve(n.dir,"index.cjs.js"),esmIndexFile:Ve(n.dir,"index.js"),polyfills:!0,empty:n.empty}),t.push({type:cp,dir:n.esmLoaderPath,esmDir:r,esmEs5Dir:i,cjsDir:a,componentDts:Pd(n),empty:n.empty})}return t}),[]),kL=(e,t)=>{const r={...t,dir:vL(e,t.dir||AL)};return K(r.buildDir)||(r.buildDir=NL),Ue(r.buildDir)||(r.buildDir=Ve(r.dir,r.buildDir)),void 0===r.collectionDir&&(r.collectionDir=wL),r.collectionDir&&!Ue(r.collectionDir)&&(r.collectionDir=Ve(r.dir,r.collectionDir)),r.esmLoaderPath||(r.esmLoaderPath=PL),Ue(r.esmLoaderPath)||(r.esmLoaderPath=He(r.dir,r.esmLoaderPath)),r.typesDir||(r.typesDir=FL),Ue(r.typesDir)||(r.typesDir=Ve(r.dir,r.typesDir)),j(r.empty)||(r.empty=!0),r.copy=SL(r.copy,[]),r},AL="dist",NL="",wL="collection",FL="types",PL="loader",IL=(e,t,r)=>{const n=[];return K(e.flags.docsJson)&&n.push(ML(e,t,{type:"docs-json",file:e.flags.docsJson})),r.filter(Jd).forEach((r=>{n.push(ML(e,t,r))})),(e.flags.docs||"docs"===e.flags.task)&&(r.some(Hd)||n.push(OL(e,{type:"docs-readme"}))),r.filter(Hd).forEach((t=>{n.push(OL(e,t))})),r.filter($d).forEach((e=>{n.push(RL(t,e))})),r.filter(Gd).forEach((e=>{n.push(LL(t,e))})),n},OL=(e,t)=>(K(t.dir)||(t.dir=e.srcDir),Ue(t.dir)||(t.dir=Ve(e.rootDir,t.dir)),null==t.footer&&(t.footer="*Built with [StencilJS](https://stenciljs.com/)*"),t.strict=!!t.strict,t),ML=(e,t,r)=>(K(r.file)||(ee(t).messageText='docs-json outputTarget missing the "file" option'),r.file=Ve(e.rootDir,r.file),K(r.typesFile)?r.typesFile=Ve(e.rootDir,r.typesFile):null!==r.typesFile&&r.file.endsWith(".json")&&(r.typesFile=r.file.replace(/\.json$/,".d.ts")),r.strict=!!r.strict,r),RL=(e,t)=>(U(t.generator)||(ee(e).messageText='docs-custom outputTarget missing the "generator" function'),t.strict=!!t.strict,t),LL=(e,t)=>(K(t.file)||(ee(e).messageText='docs-vscode outputTarget missing the "file" path'),t),BL=(e,t)=>t.filter(jd).map((t=>{let r=t.directivesProxyFile;r&&!Ue(r)&&(r=Ve(e.rootDir,r));let n=t.directivesArrayFile;n&&!Ue(n)&&(n=Ve(e.rootDir,n));let i=t.directivesUtilsFile;return i&&!Ue(i)&&(i=Ve(e.rootDir,i)),{type:"angular",componentCorePackage:t.componentCorePackage,directivesProxyFile:r,directivesArrayFile:n,directivesUtilsFile:i,excludeComponents:t.excludeComponents||[]}})),jL=(e,t)=>{const r=[];if(!t.some(zd)){const r=t.filter(qd).some((e=>K(e.indexHtml))),n=(null==e?void 0:e.flags.prerender)||(null==e?void 0:e.flags.ssr);if(r&&n){let e;const r=t.find(Id);e=null!=r&&K(r.dir)?Ve(r.dir,"hydrate"):"dist/hydrate";const n={type:op,dir:e};t.push(n)}}return t.filter(zd).forEach((t=>{K(t.dir)||(t.dir="hydrate"),Ue(t.dir)||(t.dir=Ve(e.rootDir,t.dir)),j(t.empty)||(t.empty=!0),t.external=t.external||[],t.external.push(...QT),r.push(t)})),r},UL=(e,t)=>t.filter(Bd).map((t=>{const r=vL(e,t.dir||Ve("dist",e.fsNamespace));return{type:sp,esmDir:r,systemDir:e.buildEs5?r:void 0,systemLoaderFile:e.buildEs5?Ve(r,`${e.fsNamespace}.js`):void 0,polyfills:!!t.polyfills,isBrowserBuild:!0,empty:!j(t.empty)||t.empty}})),VL=(e,t)=>{const r=[];return e.flags.stats&&(t.some(Xd)||r.push({type:fp})),r.push(...t.filter(Xd)),r.forEach((t=>{t.file||(t.file="stencil-stats.json"),Ue(t.file)||(t.file=Ve(e.rootDir,t.file))})),r},zL=["*.html","**/*.{js,css,json}"],KL=(e,t,r)=>{const n=r.length>0,i=!(!e.flags||!e.flags.e2e),a=r.filter(qd);return n&&(!i||r.some(qd)||r.some(Id))||a.push({type:mp}),e.flags.prerender&&0===a.length&&(ee(t).messageText='You need at least one "www" output target configured in your stencil.config.ts, when the "--prerender" flag is used'),a.reduce(((r,n)=>{const i=WL(e,n,t);r.push(i);const a=i.buildDir;return r.push({type:sp,dir:a,esmDir:a,systemDir:e.buildEs5?a:void 0,systemLoaderFile:e.buildEs5?Ve(a,`${e.fsNamespace}.js`):void 0,polyfills:i.polyfills,isBrowserBuild:!0}),r.push({type:Zd,dir:a,copyAssets:"dist"}),r.push({type:Zd,dir:i.appDir,copy:SL(i.copy,[{src:"assets",warn:!1},{src:"manifest.json",warn:!1}])}),r.push({type:lp,file:Ve(a,`${e.fsNamespace}.css`)}),r}),[])},WL=(e,t,r)=>{K(t.baseUrl)||(t.baseUrl="/"),t.baseUrl.endsWith("/")||(t.baseUrl+="/"),t.dir=vL(e,t.dir||"www");const n=new URL(t.baseUrl,"http://localhost/").pathname;return t.appDir=Ve(t.dir,n),(t.appDir.endsWith("/")||t.appDir.endsWith("\\"))&&(t.appDir=t.appDir.substring(0,t.appDir.length-1)),K(t.buildDir)||(t.buildDir="build"),Ue(t.buildDir)||(t.buildDir=Ve(t.appDir,t.buildDir)),K(t.indexHtml)||(t.indexHtml="index.html"),Ue(t.indexHtml)||(t.indexHtml=Ve(t.appDir,t.indexHtml)),j(t.empty)||(t.empty=!0),((e,t,r)=>{if(e.flags&&(e.flags.ssr||e.flags.prerender||"prerender"===e.flags.task)){r.baseUrl=pe(r.baseUrl),r.baseUrl.startsWith("http://")||r.baseUrl.startsWith("https://")||(ee(t).messageText='When prerendering, the "baseUrl" output target config must be a full URL and start with either "http://" or "https://". The config can be updated in the "www" output target within the stencil config.');try{new URL(r.baseUrl)}catch(e){ee(t).messageText=`invalid "baseUrl": ${e}`}r.baseUrl.endsWith("/")||(r.baseUrl+="/"),K(r.prerenderConfig)&&(Ue(r.prerenderConfig)||(r.prerenderConfig=Ve(e.rootDir,r.prerenderConfig)))}})(e,r,t),((e,t)=>{if(!1!==t.serviceWorker){if(e.devMode&&!e.flags.serviceWorker)return t.serviceWorker=null,void 0;if(null===t.serviceWorker)return t.serviceWorker=null,void 0;if(!0===t.serviceWorker)t.serviceWorker={};else if(!t.serviceWorker&&e.devMode)return t.serviceWorker=null,void 0;"object"!=typeof t.serviceWorker&&(t.serviceWorker={}),Array.isArray(t.serviceWorker.globPatterns)||("string"==typeof t.serviceWorker.globPatterns?t.serviceWorker.globPatterns=[t.serviceWorker.globPatterns]:"string"!=typeof t.serviceWorker.globPatterns&&(t.serviceWorker.globPatterns=zL.slice())),"string"!=typeof t.serviceWorker.globDirectory&&(t.serviceWorker.globDirectory=t.appDir),"string"==typeof t.serviceWorker.globIgnores&&(t.serviceWorker.globIgnores=[t.serviceWorker.globIgnores]),t.serviceWorker.globIgnores=t.serviceWorker.globIgnores||[],((e,t)=>{t.push("**/host.config.json","**/*.system.entry.js","**/*.system.js",`**/${e.fsNamespace}.js`,`**/${e.fsNamespace}.esm.js`,`**/${e.fsNamespace}.css`)})(e,t.serviceWorker.globIgnores),t.serviceWorker.dontCacheBustURLsMatching=/p-\w{8}/,K(t.serviceWorker.swSrc)&&!Ue(t.serviceWorker.swSrc)&&(t.serviceWorker.swSrc=Ve(e.rootDir,t.serviceWorker.swSrc)),K(t.serviceWorker.swDest)||(t.serviceWorker.swDest=Ve(t.appDir,"sw.js")),Ue(t.serviceWorker.swDest)||(t.serviceWorker.swDest=Ve(t.appDir,t.serviceWorker.swDest))}})(e,t),void 0===t.polyfills&&(t.polyfills=!0),t.polyfills=!!t.polyfills,t},HL=(e,t)=>t.filter(Rd).reduce(((t,r)=>{const n={...r,dir:vL(e,r.dir||"dist/custom-elements")};return j(n.empty)||(n.empty=!0),j(n.externalRuntime)||(n.externalRuntime=!0),n.copy=SL(n.copy,[]),n.copy.length>0&&t.push({type:Zd,dir:e.rootDir,copy:[...n.copy]}),t.push(n),t}),[]),JL={inputOptions:{},outputOptions:{}},$L=(e,t)=>{e.includes(t)||e.push(t)},GL=[".vscode",".stencil","node_modules"],qL=e=>{const t=Object.assign({},e||{}),r=[];return t.flags=JSON.parse(JSON.stringify(t.flags||{})),t.flags.prod?t.devMode=!1:t.flags.dev?t.devMode=!0:j(t.devMode)||(t.devMode=XL),t.extras=t.extras||{},t.extras.appendChildSlotFix=!!t.extras.appendChildSlotFix,t.extras.cloneNodeFix=!!t.extras.cloneNodeFix,t.extras.cssVarsShim=!!t.extras.cssVarsShim,t.extras.dynamicImportShim=!!t.extras.dynamicImportShim,t.extras.lifecycleDOMEvents=!!t.extras.lifecycleDOMEvents,t.extras.safari10=!!t.extras.safari10,t.extras.scriptDataOpts=!!t.extras.scriptDataOpts,t.extras.shadowDomShim=!!t.extras.shadowDomShim,t.extras.slotChildNodesFix=!!t.extras.slotChildNodesFix,t.extras.initializeNextTick=!!t.extras.initializeNextTick,t.extras.tagNameTransform=!!t.extras.tagNameTransform,t.buildEs5=!0===t.buildEs5||!t.devMode&&"prod"===t.buildEs5,bL(t,"minifyCss",null,!t.devMode),bL(t,"minifyJs",null,!t.devMode),bL(t,"sourceMap",null,void 0!==t.sourceMap&&t.sourceMap),bL(t,"watch","watch",!1),bL(t,"buildDocs","docs",!t.devMode),bL(t,"buildDist","esm",!t.devMode||t.buildEs5),bL(t,"profile","profile",t.devMode),bL(t,"writeLog","log",!1),bL(t,"buildAppCore",null,!0),bL(t,"autoprefixCss",null,t.buildEs5),bL(t,"validateTypes",null,!t._isTesting),bL(t,"allowInlineScripts",null,!0),K(t.taskQueue)||(t.taskQueue="async"),j(t.hashFileNames)||(t.hashFileNames=!t.devMode),V(t.hashedFileNameLength)||(t.hashedFileNameLength=YL),t.hashedFileNameLength<QL&&(ee(r).messageText=`config.hashedFileNameLength must be at least ${QL} characters`),t.hashedFileNameLength>ZL&&(ee(r).messageText=`config.hashedFileNameLength cannot be more than ${ZL} characters`),t.env||(t.env={}),((e,t)=>{e.namespace=K(e.namespace)?e.namespace:"App",e.namespace=e.namespace.trim();const r=e.namespace.replace(/(\w)|(\-)|(\$)/g,"");""!==r&&(ee(t).messageText=`Namespace "${e.namespace}" contains invalid characters: ${r}`),e.namespace.length<3&&(ee(t).messageText=`Namespace "${e.namespace}" must be at least 3 characters`),/^\d+$/.test(e.namespace.charAt(0))&&(ee(t).messageText=`Namespace "${e.namespace}" cannot have a number for the first character`),"-"===e.namespace.charAt(0)&&(ee(t).messageText=`Namespace "${e.namespace}" cannot have a dash for the first character`),"-"===e.namespace.charAt(e.namespace.length-1)&&(ee(t).messageText=`Namespace "${e.namespace}" cannot have a dash for the last character`),K(e.fsNamespace)||(e.fsNamespace=e.namespace.toLowerCase().trim()),e.namespace.includes("-")&&(e.namespace=P(e.namespace))})(t,r),(e=>{"string"!=typeof e.rootDir&&(e.rootDir="/"),"string"!=typeof e.srcDir&&(e.srcDir="src"),Ue(e.srcDir)||(e.srcDir=Ve(e.rootDir,e.srcDir)),"string"!=typeof e.cacheDir&&(e.cacheDir=".stencil"),Ue(e.cacheDir)||(e.cacheDir=Ve(e.rootDir,e.cacheDir)),"string"!=typeof e.srcIndexHtml&&(e.srcIndexHtml=Ve(e.srcDir,"index.html")),Ue(e.srcIndexHtml)||(e.srcIndexHtml=Ve(e.rootDir,e.srcIndexHtml)),"string"!=typeof e.globalScript||Ue(e.globalScript)||Ue(e.globalScript)||(e.globalScript=Ve(e.rootDir,e.globalScript)),"string"==typeof e.globalStyle&&(Ue(e.globalStyle)||(e.globalStyle=Ve(e.rootDir,e.globalStyle))),e.writeLog&&("string"!=typeof e.buildLogFilePath&&(e.buildLogFilePath="stencil-build.log"),Ue(e.buildLogFilePath)||(e.buildLogFilePath=Ve(e.rootDir,e.buildLogFilePath))),e.packageJsonFilePath=Ve(e.rootDir,"package.json")})(t),((e,t)=>{const r=(e.outputTargets||[]).slice();r.forEach((e=>{gp.includes(e.type)?e.type===ip&&(te(t).messageText='dist-custom-elements-bundle is deprecated and will be removed in a future major version release. Use "dist-custom-elements" instead. If "dist-custom-elements" does not meet your needs, please add a comment to https://github.com/ionic-team/stencil/issues/3136.'):ee(t).messageText=`Invalid outputTarget type "${e.type}". Valid outputTarget types include: ${gp.map((e=>`"${e}"`)).join(", ")}`})),e.outputTargets=[...EL(e,r),...DL(e,r),...HL(e,r),...TL(e,t,r),...UL(e,r),...KL(e,t,r),...CL(e,r),...IL(e,t,r),...BL(e,r),...VL(e,r)],e.outputTargets=[...e.outputTargets,...jL(e,[...r,...e.outputTargets])]})(t,r),((e,t)=>{const r=e.plugins;if(e.rollupPlugins||(e.rollupPlugins={}),!Array.isArray(r))return e.plugins=[],void 0;const n=r.filter((e=>!(!e||"object"!=typeof e||e.pluginType))),i=n.some((e=>"node-resolve"===e.name));n.some((e=>"commonjs"===e.name))&&(te(t).messageText='Stencil already uses "@rollup/plugin-commonjs", please remove it from your "stencil.config.ts" plugins.\n You can configure the commonjs settings using the "commonjs" property in "stencil.config.ts'),i&&(te(t).messageText='Stencil already uses "@rollup/plugin-commonjs", please remove it from your "stencil.config.ts" plugins.\n You can configure the commonjs settings using the "commonjs" property in "stencil.config.ts'),e.rollupPlugins.before=[...e.rollupPlugins.before||[],...n.filter((({name:e})=>"node-resolve"!==e&&"commonjs"!==e))],e.plugins=r.filter((e=>!(!e||"object"!=typeof e||!e.pluginType)))})(t,r),(e=>{const t=(e=>{let t=JL;return e&&z(e)?(e.inputOptions&&z(e.inputOptions)&&(t={...t,inputOptions:B(e.inputOptions,["context","moduleContext","treeshake"])}),e.outputOptions&&z(e.outputOptions)&&(t={...t,outputOptions:B(e.outputOptions,["globals"])}),t):t})(e.rollupConfig);e.rollupConfig=t})(t),t.devServer=((e,t)=>{var r;if(!1===(null===e.devServer||e.devServer))return null;const n=e.flags,i={...e.devServer};let a,o;K(n.address)?i.address=n.address:K(i.address)||(i.address="0.0.0.0"),i.address.toLowerCase().startsWith("http://")?(i.address=i.address.substring(7),a="http"):i.address.toLowerCase().startsWith("https://")&&(i.address=i.address.substring(8),a="https"),i.address=i.address.split("/")[0];const s=i.address.split(":");if(s.length>1&&(isNaN(s[1])||(i.address=s[0],o=parseInt(s[1],10))),V(n.port)?i.port=n.port:null===i.port||V(i.port)||(V(o)?i.port=o:"localhost"!==i.address&&isNaN(i.address.split(".")[0])?i.port=null:i.port=3333),void 0===i.reloadStrategy?i.reloadStrategy="hmr":"hmr"!==i.reloadStrategy&&"pageReload"!==i.reloadStrategy&&null!==i.reloadStrategy&&(ee(t).messageText=`Invalid devServer reloadStrategy "${i.reloadStrategy}". Valid configs include "hmr", "pageReload" and null.`),j(i.gzip)||(i.gzip=!0),j(i.openBrowser)||(i.openBrowser=!0),j(i.websocket)||(i.websocket=!0),(null===(r=null==e?void 0:e.flags)||void 0===r?void 0:r.ssr)?i.ssr=!0:i.ssr=!!i.ssr,i.ssr){const t=e.outputTargets.find(qd);i.prerenderConfig=null==t?void 0:t.prerenderConfig}K(e.srcIndexHtml)&&(i.srcIndexHtml=pe(e.srcIndexHtml)),"http"!==i.protocol&&"https"!==i.protocol&&(i.protocol=i.https?"https":a||"http"),null!==i.historyApiFallback&&!1!==i.historyApiFallback&&(i.historyApiFallback=i.historyApiFallback||{},K(i.historyApiFallback.index)||(i.historyApiFallback.index="index.html"),j(i.historyApiFallback.disableDotRule)||(i.historyApiFallback.disableDotRule=!1)),(!1===n.open||n.prerender&&!e.watch)&&(i.openBrowser=!1);let c=null,l=null;const u=e.outputTargets.find(qd);return u?(l=new URL(u.baseUrl,"http://config.stenciljs.com").pathname,c=u.appDir):c=e.rootDir,K(l)&&""!==l.trim()||(l="/"),l=pe(l),l.startsWith("/")||(l="/"+l),l.endsWith("/")||(l+="/"),j(i.logRequests)||(i.logRequests="debug"===e.logLevel),K(i.root)||(i.root=c),K(i.basePath)||(i.basePath=l),K(i.baseUrl)&&(ee(t).messageText='devServer config "baseUrl" has been renamed to "basePath", and should not include a domain or protocol.'),Ue(i.root)||(i.root=Ve(e.rootDir,i.root)),i.root=pe(i.root),i.excludeHmr?Array.isArray(i.excludeHmr)||(ee(t).messageText="dev server excludeHmr must be an array of glob strings"):i.excludeHmr=[],!e.devMode||e.buildEs5?i.experimentalDevModules=!1:i.experimentalDevModules=!!i.experimentalDevModules,i})(t,r),((e,t)=>{const r=e.testing=Object.assign({},e.testing||{});if(!e.flags||!e.flags.e2e&&!e.flags.spec)return;let n=e.configPath;K(n)?Le(n).includes(".")&&(n=Be(n)):n=e.rootDir,"boolean"==typeof e.flags.headless?r.browserHeadless=e.flags.headless:"boolean"!=typeof r.browserHeadless&&(r.browserHeadless=!0),r.browserWaitUntil||(r.browserWaitUntil="load"),r.browserArgs=r.browserArgs||[],$L(r.browserArgs,"--font-render-hinting=medium"),$L(r.browserArgs,"--incognito"),e.flags.ci&&($L(r.browserArgs,"--no-sandbox"),$L(r.browserArgs,"--disable-setuid-sandbox"),$L(r.browserArgs,"--disable-dev-shm-usage"),r.browserHeadless=!0),"string"==typeof r.rootDir?Ue(r.rootDir)||(r.rootDir=Ve(e.rootDir,r.rootDir)):r.rootDir=e.rootDir,e.flags&&"string"==typeof e.flags.screenshotConnector&&(r.screenshotConnector=e.flags.screenshotConnector),"string"==typeof r.screenshotConnector?Ue(r.screenshotConnector)||(r.screenshotConnector=Ve(e.rootDir,r.screenshotConnector)):r.screenshotConnector=Ve(e.sys.getCompilerExecutingPath(),"..","..","screenshot","local-connector.js"),Array.isArray(r.testPathIgnorePatterns)||(r.testPathIgnorePatterns=GL.map((e=>Ve(r.rootDir,e))),e.outputTargets.filter((e=>(Id(e)||qd(e))&&e.dir)).forEach((e=>{r.testPathIgnorePatterns.push(e.dir)}))),"string"!=typeof r.preset?r.preset=Ve(e.sys.getCompilerExecutingPath(),"..","..","testing"):Ue(r.preset)||(r.preset=Ve(n,r.preset)),Array.isArray(r.setupFilesAfterEnv)||(r.setupFilesAfterEnv=[]),r.setupFilesAfterEnv.unshift(Ve(e.sys.getCompilerExecutingPath(),"..","..","testing","jest-setuptestframework.js")),K(r.testEnvironment)&&!Ue(r.testEnvironment)&&vt(r.testEnvironment)&&(r.testEnvironment=Ve(n,r.testEnvironment)),"number"==typeof r.allowableMismatchedPixels?r.allowableMismatchedPixels<0&&(ee(t).messageText="allowableMismatchedPixels must be a value that is 0 or greater"):r.allowableMismatchedPixels=100,"number"==typeof r.allowableMismatchedRatio&&(r.allowableMismatchedRatio<0||r.allowableMismatchedRatio>1)&&(ee(t).messageText="allowableMismatchedRatio must be a value ranging from 0 to 1"),"number"==typeof r.pixelmatchThreshold?(r.pixelmatchThreshold<0||r.pixelmatchThreshold>1)&&(ee(t).messageText="pixelmatchThreshold must be a value ranging from 0 to 1"):r.pixelmatchThreshold=.1,void 0===r.testRegex&&(r.testRegex="(/__tests__/.*|(\\.|/)(test|spec|e2e))\\.[jt]sx?$"),Array.isArray(r.testMatch)?delete r.testRegex:"string"==typeof r.testRegex&&delete r.testMatch,"string"!=typeof r.runner&&(r.runner=Ve(e.sys.getCompilerExecutingPath(),"..","..","testing","jest-runner.js")),"number"==typeof r.waitBeforeScreenshot?r.waitBeforeScreenshot<0&&(ee(t).messageText="waitBeforeScreenshot must be a value that is 0 or greater"):r.waitBeforeScreenshot=10,Array.isArray(r.emulate)&&0!==r.emulate.length||(r.emulate=[{userAgent:"default",viewport:{width:600,height:600,deviceScaleFactor:1,isMobile:!1,hasTouch:!1,isLandscape:!1}}])})(t,r),t.hydratedFlag=(e=>{if(null===e.hydratedFlag||!1===e.hydratedFlag)return null;const t={...e.hydratedFlag};return K(t.name)&&""!==t.property||(t.name="hydrated"),"attribute"===t.selector?t.selector="attribute":t.selector="class",K(t.property)&&""!==t.property||(t.property="visibility"),K(t.initialValue)||null===t.initialValue||(t.initialValue="hidden"),K(t.hydratedValue)||null===t.initialValue||(t.hydratedValue="inherit"),t})(t),Array.isArray(t.bundles)?t.bundles=M(t.bundles,(e=>e.components.length)):t.bundles=[],(e=>{"number"!=typeof e.maxConcurrentWorkers&&(e.maxConcurrentWorkers=8),e.flags&&("number"==typeof e.flags.maxWorkers?e.maxConcurrentWorkers=e.flags.maxWorkers:e.flags.ci&&(e.maxConcurrentWorkers=4)),e.maxConcurrentWorkers=Math.max(Math.min(e.maxConcurrentWorkers,16),0),e.devServer&&(e.devServer.worker=e.maxConcurrentWorkers>0)})(t),bL(t,"devInspector",null,t.devMode),t._isTesting||((e,t)=>{!e.outputTargets.some(Id)||K(e.namespace)&&"app"!==e.namespace.toLowerCase()||(ee(t).messageText='When generating a distribution it is recommended to choose a unique namespace rather than the default setting "App". Please updated the "namespace" config property within the stencil config.')})(t,r),bL(t,"enableCache","cache",!0),Array.isArray(t.watchIgnoredRegex)||null==t.watchIgnoredRegex||(t.watchIgnoredRegex=[t.watchIgnoredRegex]),t.watchIgnoredRegex=(t.watchIgnoredRegex||[]).reduce(((e,t)=>(t instanceof RegExp&&e.push(t),e)),[]),{config:t,diagnostics:r}},XL=!1,YL=8,QL=4,ZL=32,eB=e=>JSON.stringify({compilerOptions:{allowSyntheticDefaultImports:!0,experimentalDecorators:!0,lib:["dom","es2015"],moduleResolution:"node",module:"esnext",target:"es2017",jsx:"react",jsxFactory:"h",jsxFragmentFactory:"Fragment",sourceMap:e.sourceMap,inlineSources:e.sourceMap},include:[We(e.rootDir,e.srcDir)]},null,2),tB=async(e,t,r)=>{let n=null;try{if(c){const e=hu(r);t.push(...e.diagnostics),n=e.module}else{let i=await e.readFile(r);if(i=rB(t,i,r),ie(t))return n;n=new Function(`const exports = {}; ${i}; return exports;`)()}}catch(e){ne(t,e)}return n},rB=(e,t,r)=>{if(ie(e))return t;const n={fileName:r,compilerOptions:{module:Fl.ModuleKind.CommonJS,moduleResolution:Fl.ModuleResolutionKind.NodeJs,esModuleInterop:!0,target:Fl.ScriptTarget.ES2015,allowJs:!0},reportDiagnostics:!1};return Fl.transpileModule(t,n).outputText},nB=(e,t)=>{K(t.file)||(t.file="module.tsx");const r=pd(t.file),n={code:"string"==typeof e?e:"",data:[],diagnostics:[],inputFileExtension:r.ext,inputFilePath:t.file,imports:[],map:null,outputFilePath:null};return{importData:r.data,results:n}},iB={sys:null},aB=e=>{e.sys?iB.sys=e.sys:iB.sys||(iB.sys=c?f("../sys/node/index.js").createNodeSys():Hr());const t={componentExport:sB(e.componentExport,cB,"customelement"),componentMetadata:sB(e.componentMetadata,lB,null),coreImportPath:K(e.coreImportPath)?e.coreImportPath:ug,currentDirectory:K(e.currentDirectory)?e.currentDirectory:iB.sys.getCurrentDirectory(),file:e.file,proxy:sB(e.proxy,dB,"defineproperty"),module:sB(e.module,uB,"esm"),sourceMap:"inline"===e.sourceMap?"inline":!1!==e.sourceMap,style:sB(e.style,pB,"static"),styleImportData:sB(e.styleImportData,_B,"queryparams"),target:sB(e.target,fB,"latest")},r={allowSyntheticDefaultImports:!0,esModuleInterop:!0,sourceMap:!1!==t.sourceMap,isolatedModules:!0,suppressOutputPathCheck:!0,allowNonTsExtensions:!0,noLib:!0,noResolve:!0};K(e.baseUrl)&&(t.baseUrl=e.baseUrl,r.baseUrl=t.baseUrl),e.paths&&(t.paths={...e.paths},r.paths={...t.paths});const n={coreImportPath:t.coreImportPath,componentExport:t.componentExport,componentMetadata:t.componentMetadata,currentDirectory:t.currentDirectory,isolatedModules:!0,module:t.module,proxy:t.proxy,file:t.file,style:t.style,styleImportData:t.styleImportData,target:t.target};return{compileOpts:t,config:{rootDir:t.currentDirectory,srcDir:t.currentDirectory,devMode:!0,minifyCss:!0,minifyJs:!1,_isTesting:!0,validateTypes:!1,enableCache:!1,sys:iB.sys,tsCompilerOptions:r},transformOpts:n}},oB=(e,t,r)=>({file:r.inputFilePath,input:r.code,tag:t&&t.tag,encapsulation:t&&t.encapsulation,mode:t&&t.mode,sourceMap:!1!==e.sourceMap,commentOriginalSelector:!1,minify:!1,autoprefixer:!1,module:e.module,styleImportData:e.styleImportData}),sB=(e,t,r)=>null===e||"null"===e?null:(e=K(e)?e.toLowerCase().trim():null,t.has(e)?e:r),cB=new Set(["customelement","module"]),lB=new Set(["compilerstatic",null]),uB=new Set(["cjs","esm"]),dB=new Set(["defineproperty",null]),pB=new Set(["static"]),_B=new Set(["queryparams"]),fB=new Set(["latest","esnext","es2020","es2019","es2018","es2017","es2016","es2015","es5"]),mB=(e,t,r,n,i,a)=>o=>{let s,c;const l=i=>Fl.isClassDeclaration(i)?CR(t,n,i,c,t.nodeMap,a):(Fl.isImportDeclaration(i)?_R(e,t,r,c,s,i,!a.isolatedModules):Fl.isCallExpression(i)?iR(c,i):Fl.isStringLiteral(i)&&TR(c,i),Fl.visitEachChild(i,l,o));return e=>(s=Be(e.fileName),c=((e,t,r)=>{r=pe(r);const n=t.moduleMap.get(r);if(null!=n)return n;{const e=Be(r),n=je(r),i=Le(r,n),a={sourceFilePath:r,jsFilePath:Ve(e,i+".js"),cmps:[],coreRuntimeApis:[],collectionName:null,dtsFilePath:null,excludeFromCollection:!1,externalImports:[],hasVdomAttribute:!1,hasVdomXlink:!1,hasVdomClass:!1,hasVdomFunctional:!1,hasVdomKey:!1,hasVdomListener:!1,hasVdomPropOrAttr:!1,hasVdomRef:!1,hasVdomRender:!1,hasVdomStyle:!1,hasVdomText:!1,htmlAttrNames:[],htmlTagNames:[],htmlParts:[],isCollectionDependency:!1,isLegacy:!1,localImports:[],originalCollectionComponentPath:null,originalImports:[],potentialCmpRefs:[],staticSourceFile:null,staticSourceFileText:"",sourceMapPath:null,sourceMapFileText:null};return t.moduleMap.set(r,a),a}})(0,t,e.fileName),(e=>{e.cmps.length=0,e.coreRuntimeApis.length=0,e.collectionName=null,e.dtsFilePath=null,e.excludeFromCollection=!1,e.externalImports.length=0,e.isCollectionDependency=!1,e.localImports.length=0,e.originalCollectionComponentPath=null,e.originalImports.length=0,e.hasVdomXlink=!1,e.hasVdomAttribute=!1,e.hasVdomClass=!1,e.hasVdomFunctional=!1,e.hasVdomKey=!1,e.hasVdomListener=!1,e.hasVdomRef=!1,e.hasVdomRender=!1,e.hasVdomStyle=!1,e.hasVdomText=!1,e.htmlAttrNames.length=0,e.htmlTagNames.length=0,e.potentialCmpRefs.length=0})(c),null!=i?(c.isCollectionDependency=!0,c.collectionName=i.collectionName,i.moduleFiles.push(c)):(c.isCollectionDependency=!1,c.collectionName=null),l(e))},gB=(e,r,n,i)=>{const a=((e,t,r)=>{e.logger||(e={...e,logger:it()});const n=new wd,i=new Yp(e,n),a={...e.tsCompilerOptions};let o=r.file;o=K(o)?pe(o):a.jsx?"module.tsx":"module.ts";const s={sourceFilePath:o,code:null,map:null,diagnostics:[],moduleFile:null};"cjs"===r.module?a.module=Fl.ModuleKind.CommonJS:a.module=Fl.ModuleKind.ESNext,a.target=(e=>{const t=e.target&&e.target.toUpperCase();return V(Fl.ScriptTarget[t])?Fl.ScriptTarget[t]:Fl.ScriptTarget.Latest})(r),(o.endsWith(".tsx")||o.endsWith(".jsx"))&&null==a.jsx&&(a.jsx=Fl.JsxEmit.React),null==a.jsx||K(a.jsxFactory)||(a.jsxFactory="h"),null==a.jsx||K(a.jsxFragmentFactory)||(a.jsxFragmentFactory="Fragment"),a.paths&&!K(a.baseUrl)&&(a.baseUrl=".");const c=Fl.createSourceFile(o,t,a.target),l={getSourceFile(e){return pe(e)===pe(o)?c:void 0},writeFile(e,t){e.endsWith(".js.map")?s.map=t:e.endsWith(".js")&&(s.code=t)},getDefaultLibFileName(){return"lib.d.ts"},useCaseSensitiveFileNames(){return!1},getCanonicalFileName(e){return e},getCurrentDirectory(){return r.currentDirectory||m()},getNewLine(){return Fl.sys.newLine||"\n"},fileExists(e){return pe(e)===pe(o)},readFile(){return""},directoryExists(){return!0},getDirectories(){return[]}},u=Fl.createProgram([o],a,l),d=u.getTypeChecker(),p=[mB(e,n,i,d,null,r)];"customelement"===r.componentExport||"module"===r.componentExport?p.push(CP(n,r)):p.push(pO(n,r)),u.emit(void 0,void 0,void 0,!1,{before:[QM(e,i.diagnostics,d),PP(r.coreImportPath)],after:p});const _=[...u.getSyntacticDiagnostics()];return e.validateTypes&&_.push(...u.getOptionsDiagnostics()),i.diagnostics.push(...Se(_)),s.diagnostics.push(...i.diagnostics),s.moduleFile=n.moduleMap.get(s.sourceFilePath),s})(e,i.code,n);if(i.diagnostics.push(...a.diagnostics),"string"==typeof a.code&&(i.code=a.code,i.map=a.map,"inline"===r.sourceMap))try{const e=JSON.parse(a.map);e.file=r.file,e.sources=[r.file],delete e.sourceRoot;const n=i.code.lastIndexOf("//#");i.code=i.code.slice(0,n)+(o=JSON.stringify(e),`//# sourceMappingURL=data:application/json;charset=utf-8;base64,${t.from(o,"utf8").toString("base64")}`)}catch(e){console.error(e)}var o;K(a.sourceFilePath)&&(i.inputFilePath=a.sourceFilePath);const s=a.moduleFile;s&&(i.outputFilePath=s.jsFilePath,s.cmps.forEach((e=>{i.data.push(fR(e))})),s.originalImports.forEach((e=>{i.imports.push({path:e})})))},hB=e=>{e.code=((e,t={})=>{const r=t.compact?"":"indent"in t?t.indent:"\t",n=t.compact?"":" ",i=t.compact?"":"\n",a=t.preferConst?"const":"var";if(!1===t.namedExports||"object"!=typeof e||Array.isArray(e)||e instanceof Date||e instanceof RegExp||null===e){const i=Iw(e,t.compact?null:r,"");return`export default${n||(/^[{[\-\/]/.test(i)?"":" ")}${i};`}let o="";const s=[];for(const[c,l]of Object.entries(e))c===Fw(c)?(t.objectShorthand?s.push(c):s.push(`${c}:${n}${c}`),o+=`export ${a} ${c}${n}=${n}${Iw(l,t.compact?null:r,"")};${i}`):s.push(`${Pw(c)}:${n}${Iw(l,t.compact?null:r,"")}`);return`${o}export default${n}{${i}${r}${s.join(`,${i}${r}`)}${i}};${i}`})(JSON.parse(e.code),{preferConst:!0,compact:!1,indent:" "}),e.map={mappings:""}},yB=e=>["tsx","ts","mjs","jsx","js"].includes(e);d&&(e=>{let t=!1;const r=Promise.resolve(),n=[],i=()=>{t=!1,self.postMessage(n),n.length=0},a=e=>{n.push(e),t||(t=!0,r.then(i))},o=(e,t)=>{const r={stencilId:e,stencilRtnValue:null,stencilRtnError:"Error"};K(t)?r.stencilRtnError+=": "+t:t&&(t.stack?r.stencilRtnError+=": "+t.stack:t.message&&(r.stencilRtnError+=": "+t.message)),a(r)},s=async t=>{if(t&&V(t.stencilId))try{const r={stencilId:t.stencilId,stencilRtnValue:await e(t),stencilRtnError:null};a(r)}catch(e){o(t.stencilId,e)}};self.onmessage=e=>{const t=e.data;if(Array.isArray(t))for(const e of t)s(e)},self.onerror=e=>{o(-1,e)}})(Sd(Hr())),e.buildId="20220418164701",e.createCompiler=async e=>{const t=(e=(e=>{const t={...e};return t.logger||(t.logger=it()),t.sys||(t.sys=Hr({logger:t.logger})),Ye(t.sys.platformPath),t.flags=t.flags||{},t.flags.debug||t.flags.verbose?t.logLevel="debug":t.flags.logLevel?t.logLevel=t.flags.logLevel:"string"!=typeof t.logLevel&&(t.logLevel="info"),t.logger.setLevel(t.logLevel),t})(e)).sys,r=new wd;U(e.sys.setupCompiler)&&e.sys.setupCompiler({ts:Fl}),(e=>{const t=jt;Object.assign(t.__sys,e)})(t),r.fs=qR(t),r.cache=new Dd(e,qR(t)),await r.cache.initCacheDir(),t.resolveModuleId=e=>Ur(t,r.fs,e),r.worker=(e=>{if(U(e.sys.createWorkerController)&&e.maxConcurrentWorkers>0&&e.sys.hardwareConcurrency>1){const t=e.sys.createWorkerController(e.maxConcurrentWorkers);return e.sys.addDestory((()=>t.destroy())),e.logger.debug(`create workers, maxWorkers: ${t.maxWorkers}`),ZR(t)}return e.logger.debug(`no workers, maxConcurrentWorkers: ${e.maxConcurrentWorkers}, hardwareConcurrency: ${e.sys.hardwareConcurrency}`),Ed(e.sys)})(e),t.events&&t.events.on(r.events.emit),jT(e,r.fs);const n={build:()=>(async(e,t)=>new Promise((r=>{let n=null;t.events.on("fileUpdate",(r=>{e.logger.debug(`fileUpdate: ${r}`),t.fs.clearFileCache(r)})),(async(e,t)=>{let r,n=!1;const i=GR(e),a={...Fl.sys,watchFile(e,t){return e.endsWith(`/${hp}`)?Fl.sys.watchFile(e,t):{close(){}}},watchDirectory(){return{close(){}}},setTimeout(t,i){return r=setInterval((()=>{n||(t(),clearInterval(r))}),e.sys.watchTimeout||i),r},clearTimeout(e){return clearInterval(e)}};e.sys.addDestory((()=>a.clearTimeout(r)));const o=Fl.createWatchCompilerHost(e.tsconfig,i,a,Fl.createEmitAndSemanticDiagnosticsBuilderProgram,(t=>{e.logger.debug("watch reportDiagnostic:"+t.messageText)}),(t=>{e.logger.debug(t.messageText)}));return o.afterProgramCreate=async e=>{n=!0,await t(e),n=!1},Fl.createWatchProgram(o)})(e,(async i=>{const a=new Yp(e,t);a.isRebuild=!1,a.requiresFullBuild=!0,a.start();const o=await $R(e,t,a,i);null!==o&&(n&&(n.close(),n=null),r(o))})).then((e=>{n=e}))})))(e,r),createWatcher:()=>iL(e,r),async destroy(){r.reset(),r.events.unsubscribeAll(),await t.destroy()},sys:t};return e.logger.printDiagnostics([]),n},e.createPrerenderer=async e=>({start:t=>(async(e,t,r,n,i)=>{const a=Date.now(),o=[],s={buildId:i,diagnostics:o,urls:0,duration:0,average:0},c=e.outputTargets.filter(qd).filter((e=>K(e.indexHtml)));if(K(s.buildId)||(s.buildId=(()=>{let e="abcdefghijklmnopqrstuvwxyz",t="";for(;t.length<8;)t+=e[Math.floor(Math.random()*e.length)],1===t.length&&(e+="0123456789");return t})()),0===c.length)return s;if(K(t)){if(Ue(t)||(t=Ve(e.sys.getCurrentDirectory(),t)),!await e.sys.access(t)){const e=ee(o);e.header="Prerender Error",e.messageText=`Unable to open "hydrateAppFilePath": ${t}`}}else{const e=ee(o);e.header="Prerender Error",e.messageText='Build results missing "hydrateAppFilePath"'}if(!ie(o)){let i,a;null==e.sys.createWorkerController||e.maxConcurrentWorkers<1?i=Ed(e.sys):(a=e.sys.createWorkerController(e.maxConcurrentWorkers),i=ZR(a));const l={...e.devServer};l.openBrowser=!1,l.gzip=!1,l.logRequests=!1,l.reloadStrategy=null;const u=e.sys.getDevServerExecutingPath(),{start:d}=await e.sys.dynamicImport(u),p=await d(l,e.logger);try{await Promise.all(c.map((a=>mL(i,s,o,e,p,t,r,n,a))))}catch(e){ne(o,e)}a&&a.destroy(),p&&await p.close()}return s.duration=Date.now()-a,s.urls>0&&(s.average=s.duration/s.urls),s})(e,t.hydrateAppFilePath,t.componentGraph,t.srcIndexHtmlPath,t.buildId)}),e.createSystem=Hr,e.createWorkerContext=Ed,e.createWorkerMessageHandler=Sd,e.dependencies=[{name:"@stencil/core",version:"2.15.1",main:"compiler/stencil.js",resources:["package.json","compiler/lib.d.ts","compiler/lib.dom.d.ts","compiler/lib.dom.iterable.d.ts","compiler/lib.es2015.collection.d.ts","compiler/lib.es2015.core.d.ts","compiler/lib.es2015.d.ts","compiler/lib.es2015.generator.d.ts","compiler/lib.es2015.iterable.d.ts","compiler/lib.es2015.promise.d.ts","compiler/lib.es2015.proxy.d.ts","compiler/lib.es2015.reflect.d.ts","compiler/lib.es2015.symbol.d.ts","compiler/lib.es2015.symbol.wellknown.d.ts","compiler/lib.es2016.array.include.d.ts","compiler/lib.es2016.d.ts","compiler/lib.es2016.full.d.ts","compiler/lib.es2017.d.ts","compiler/lib.es2017.full.d.ts","compiler/lib.es2017.intl.d.ts","compiler/lib.es2017.object.d.ts","compiler/lib.es2017.sharedmemory.d.ts","compiler/lib.es2017.string.d.ts","compiler/lib.es2017.typedarrays.d.ts","compiler/lib.es2018.asyncgenerator.d.ts","compiler/lib.es2018.asynciterable.d.ts","compiler/lib.es2018.d.ts","compiler/lib.es2018.full.d.ts","compiler/lib.es2018.intl.d.ts","compiler/lib.es2018.promise.d.ts","compiler/lib.es2018.regexp.d.ts","compiler/lib.es2019.array.d.ts","compiler/lib.es2019.d.ts","compiler/lib.es2019.full.d.ts","compiler/lib.es2019.object.d.ts","compiler/lib.es2019.string.d.ts","compiler/lib.es2019.symbol.d.ts","compiler/lib.es2020.bigint.d.ts","compiler/lib.es2020.d.ts","compiler/lib.es2020.full.d.ts","compiler/lib.es2020.intl.d.ts","compiler/lib.es2020.promise.d.ts","compiler/lib.es2020.sharedmemory.d.ts","compiler/lib.es2020.string.d.ts","compiler/lib.es2020.symbol.wellknown.d.ts","compiler/lib.es2021.d.ts","compiler/lib.es2021.full.d.ts","compiler/lib.es2021.intl.d.ts","compiler/lib.es2021.promise.d.ts","compiler/lib.es2021.string.d.ts","compiler/lib.es2021.weakref.d.ts","compiler/lib.es5.d.ts","compiler/lib.es6.d.ts","compiler/lib.esnext.d.ts","compiler/lib.esnext.full.d.ts","compiler/lib.esnext.intl.d.ts","compiler/lib.esnext.promise.d.ts","compiler/lib.esnext.string.d.ts","compiler/lib.esnext.weakref.d.ts","compiler/lib.scripthost.d.ts","compiler/lib.webworker.d.ts","compiler/lib.webworker.importscripts.d.ts","compiler/lib.webworker.iterable.d.ts","internal/index.d.ts","internal/index.js","internal/package.json","internal/stencil-ext-modules.d.ts","internal/stencil-private.d.ts","internal/stencil-public-compiler.d.ts","internal/stencil-public-docs.d.ts","internal/stencil-public-runtime.d.ts","mock-doc/index.js","mock-doc/package.json","internal/client/css-shim.js","internal/client/dom.js","internal/client/index.js","internal/client/package.json","internal/client/patch-browser.js","internal/client/patch-esm.js","internal/client/shadow-css.js","internal/hydrate/index.js","internal/hydrate/package.json","internal/hydrate/runner.js","internal/hydrate/shadow-css.js","internal/stencil-core/index.d.ts","internal/stencil-core/index.js"]},{name:"rollup",version:"2.42.3",main:"dist/es/rollup.browser.js"},{name:"terser",version:"5.6.1",main:"dist/bundle.min.js"},{name:"typescript",version:"4.5.4",main:"lib/typescript.js"}],e.loadConfig=async(e={})=>{const t={config:null,diagnostics:[],tsconfig:{path:null,compilerOptions:null,files:null,include:null,exclude:null,extends:null}};try{const r=e.sys||Hr(),n=e.config||{};let i=e.configPath||n.configPath;const a=await(async(e,t,r)=>{let n=null;if(K(r)){const i=await tB(e,t,r);if(ie(t))return n;if(!i.config){const e=ee(t);return e.messageText=`Invalid Stencil configuration file "${r}". Missing "config" property.`,e.absFilePath=r,n}n=i.config,n.configPath=pe(r)}return n})(r,t.diagnostics,i);if(ie(t.diagnostics))return t;null!=a?(i=a.configPath,t.config={...a,...n},t.config.configPath=i,t.config.rootDir=pe(Be(i))):(t.config={...n},t.config.configPath=null,t.config.rootDir=pe(r.getCurrentDirectory())),t.config.sys=r;const o=qL(t.config);if(t.diagnostics.push(...o.diagnostics),ie(t.diagnostics))return t;if(t.config=o.config,t.config.flags.debug||t.config.flags.verbose?t.config.logLevel="debug":t.config.flags.logLevel?t.config.logLevel=t.config.flags.logLevel:"string"!=typeof t.config.logLevel&&(t.config.logLevel="info"),t.config.logger=e.logger||t.config.logger||it(),t.config.logger.setLevel(t.config.logLevel),!ie(t.diagnostics)){const n=await(async(e,t,r)=>{var n;const i={path:null,compilerOptions:null,files:null,include:null,exclude:null,extends:null,diagnostics:[]};try{const o=await(async(e,t,r)=>{const n={path:null,content:null};if(K(e.tsconfig)?Ue(e.tsconfig)?n.path=e.tsconfig:n.path=Ve(e.rootDir,e.tsconfig):n.path=Ve(e.rootDir,"tsconfig.json"),n.content=await t.readFile(n.path),!K(n.content)){if(!r.initTsConfig)return null;n.path=Ve(e.rootDir,"tsconfig.json"),n.content=eB(e),await t.writeFile(n.path,n.content)}return n.path=pe(n.path),n})(e,t,r);if(o){i.path=o.path;const r={...Fl.sys,readFile(e){return e===i.path?o.content:t.readFileSync(e)},readDirectory(e){return t.readDirSync(e)},fileExists(e){return t.accessSync(e)},onUnRecoverableConfigFileDiagnostic(e){return console.error(e)}},s=Fl.getParsedCommandLineOfConfigFile(i.path,{},r);if(s.errors&&s.errors.length>0)s.errors.forEach((e=>{const t=De(e);"18003"===t.code&&(t.level="warn"),t.absFilePath=i.path,i.diagnostics.push(t)}));else{if(s.raw){const t=We(e.rootDir,e.srcDir);if(!((e,t)=>Array.isArray(e)&&e.includes(t))(s.raw.include,t)){const e=te(i.diagnostics);e.header='tsconfig.json "include" required',e.messageText=`In order for TypeScript to improve watch performance, it's recommended the "tsconfig.json" file should have the "include" property, with at least the app's "${t}" directory listed. For example: "include": ["${t}"]`}if(a=s.raw.include,Array.isArray(a)&&a.includes("stencil.config.ts")){const e=te(i.diagnostics);e.header="tsconfig.json should not reference stencil.config.ts",e.messageText="stencil.config.ts is not part of the output build, it should not be included."}Array.isArray(s.raw.files)&&(i.files=s.raw.files.slice()),Array.isArray(s.raw.include)&&(i.include=s.raw.include.slice()),Array.isArray(s.raw.exclude)&&(i.exclude=s.raw.exclude.slice()),K(s.raw.extends)&&(i.extends=s.raw.extends)}if(s.options){i.compilerOptions=s.options;const t=null!==(n=i.compilerOptions.target)&&void 0!==n?n:Fl.ScriptTarget.ES5;[Fl.ScriptTarget.ES3,Fl.ScriptTarget.ES5,Fl.ScriptTarget.ES2015,Fl.ScriptTarget.ES2016].includes(t)&&(te(i.diagnostics).messageText='To improve bundling, it is always recommended to set the tsconfig.json “target” setting to "es2017". Note that the compiler will automatically handle transpilation for ES5-only browsers.'),i.compilerOptions.module===Fl.ModuleKind.ESNext||e._isTesting||(te(i.diagnostics).messageText="To improve bundling, it is always recommended to set the tsconfig.json “module” setting to “esnext”. Note that the compiler will automatically handle bundling both modern and legacy builds."),i.compilerOptions.sourceMap=e.sourceMap,i.compilerOptions.inlineSources=e.sourceMap}}}else{const t=ee(i.diagnostics);t.header="Missing tsconfig.json",t.messageText=`Unable to load TypeScript config file. Please create a "tsconfig.json" file within the "${e.rootDir}" directory.`}}catch(e){ne(i.diagnostics,e)}var a;return i})(t.config,r,e);t.diagnostics.push(...n.diagnostics),t.config.tsconfig=n.path,t.config.tsCompilerOptions=n.compilerOptions,t.tsconfig.path=n.path,t.tsconfig.compilerOptions=JSON.parse(JSON.stringify(n.compilerOptions)),t.tsconfig.files=n.files,t.tsconfig.include=n.include,t.tsconfig.exclude=n.exclude,t.tsconfig.extends=n.extends}}catch(e){ne(t.diagnostics,e)}return t},e.nodeRequire=hu,e.optimizeCss=vn,e.optimizeJs=$l,e.path=Xe,e.transpile=async(e,t={})=>{const{importData:r,results:n}=nB(e,t);try{if(yB(n.inputFileExtension)){const{config:e,compileOpts:r,transformOpts:i}=aB(t);jT(e,null),gB(e,r,i,n)}else if("d.ts"===n.inputFileExtension)n.code="";else if("css"===n.inputFileExtension){const e=oB(t,r,n);await(async(e,t)=>{const r=await fd(e);t.code=r.output,t.map=r.map,t.imports=r.imports.map((e=>({path:e.importPath}))),t.diagnostics.push(...r.diagnostics)})(e,n)}else"json"===n.inputFileExtension&&hB(n)}catch(e){ne(n.diagnostics,e)}return n},e.transpileSync=(e,t={})=>{const{importData:r,results:n}=nB(e,t);try{if(yB(n.inputFileExtension)){const{config:e,compileOpts:r,transformOpts:i}=aB(t);jT(e,null),gB(e,r,i,n)}else if("d.ts"===n.inputFileExtension)n.code="";else if("css"===n.inputFileExtension){((e,t)=>{const r=(e=>{const t=md(e);return gd(e,t)})(e);t.code=r.output,t.map=r.map,t.imports=r.imports.map((e=>({path:e.importPath}))),t.diagnostics.push(...r.diagnostics)})(oB(t,r,n),n)}else"json"===n.inputFileExtension&&hB(n)}catch(e){ne(n.diagnostics,e)}return n},e.ts=Fl,e.vermoji="🐼",e.version=Kr,e.versions=Wr,"undefined"!=typeof module&&module.exports&&(module.exports=e),globalThis.stencil=e}({});