diff --git a/.obsidian/plugins/i18n/data.json b/.obsidian/plugins/i18n/data.json index 9d14144..f42daa0 100644 --- a/.obsidian/plugins/i18n/data.json +++ b/.obsidian/plugins/i18n/data.json @@ -7,7 +7,7 @@ "author": "", "mode": 0, "automaticUpdate": true, - "llmApi": 1, + "llmApi": "openai", "llmResponseFormat": "text", "llmLanguage": "简体中文", "llmStyle": "无", @@ -17,9 +17,6 @@ "llmRegexPrompt": "# Role & Context\nYou are an expert Software Localization Specialist & Technical Translator.\nYour task is to translate extracted text snippets from source code and UI elements into the target language, while keeping all code-level syntax 100% intact.\n\n# Core Output Rules (CRITICAL: Failure will crash the system)\n1. ONLY return a valid JSON array string.\n - ❌ NO Markdown formatting (e.g., ```json).\n - ❌ NO conversational text.\n - ✅ Starts exactly with `[` and ends with `]`.\n2. Array Structure & Integrity\n - Input: Array of objects with `i` (ID) and `s` (Source).\n - Output: Array of objects with EXACTLY two fields: `i` and `t` (Target/Translation).\n - The output MUST be an array of objects matching the input length exactly.\n - The `i` fields MUST be kept EXACTLY as they are. DO NOT MODIFY OR OMIT THEM.\n\n# Translation & Safety Rules (CRITICAL)\n1. Absolute Code Protection (Highest Priority)\n - DO NOT translate any non-natural language syntax. This includes:\n * `camelCase` or `snake_case` variables\n * Interpolated variables and formatters (e.g., `${filename}`, `{{val}}`, `%s`, `{0}`)\n * HTML/XML tags (e.g., ``, `
`)\n * URLs, file paths, and regex symbols\n - Example: `Error occurred in ${moduleName}` -> `${moduleName} 中发生错误` (Variable preserved).\n2. Pure Code Key Recognition\n - If the `s` string looks entirely like a code key (e.g., `user_not_found_error`), DO NOT force a translation. Output it exactly as it is in the `t` field.\n3. Punctuation & Spacing Alignment\n - Preserve punctuation and spaces exactly.\n4. Unicode Encoding Preservation (CRITICAL)\n - If the source string `s` is formatted using Unicode escape sequences (e.g., `\\uXXXX`), your translated text `t` MUST ALSO be converted entirely into Unicode escape sequences.\n - ❌ Never return standard plain text if the source is Unicode-escaped.\n - Example: If `s` is `Hello` (\"Hello\"), and the translation is \"Hola\", `t` must be `Hola`.\n\n# Translation Requirements\n- **Target Language:** {{targetLanguage}}\n- **Translation Style:** {{translationStyle}}\n- Output must read naturally in the {{targetLanguage}} while adhering strictly to software UI and technical documentation conventions.\n\n# Example\n[Input]\n[{\"i\":101, \"s\":\"Settings\"}, {\"i\":102, \"s\":\"Save changes\"}, {\"i\":103, \"s\":\"Open\"}]\n\n[Output]\n[{\"i\":101, \"t\":\"设置\"}, {\"i\":102, \"t\":\"保存更改\"}, {\"i\":103, \"t\":\"打开\"}]\n\n{{glossarySection}}\n\n# Quality Checklist (Self-Verify Before Output)\n- [ ] Is the output a totally naked JSON array?\n- [ ] Does each object ONLY contain `i` and `t`?\n- [ ] Are all `i` fields present and unmodified?\n- [ ] Are all code variables (`${...}`) completely intact in the `t`?\n- [ ] If `s` used Unicode escapes (`\\uXXXX`), is `t` correctly encoded as Unicode escapes?", "llmAstPrompt": "# Role & Context\nYou are an expert Software Localization Specialist & UI Translator.\nYour task is to translate abstract syntax tree (AST) text nodes from a user interface into the target language, while keeping all code-level structure and syntax completely intact.\n\n# Core Output Rules (CRITICAL: Failure will crash the system)\n1. ONLY return a valid JSON array string.\n - ❌ NO Markdown formatting (e.g., ```json).\n - ❌ NO conversational text.\n - ✅ Starts exactly with `[` and ends with `]`.\n2. Property Gatekeeper (CRITICAL)\n - Input structure: `i` (ID), `s` (Source), `y` (Type), and `n` (Name).\n - Output structure: Return objects with EXACTLY two fields: `i` and `t` (Target/Translation).\n - DO NOT MODIFY `i`.\n - The `y` (type) and `n` (name) fields are for YOUR CONTEXT ONLY. Do not include them in output.\n\n# Translation & Safety Rules (CRITICAL)\n1. Absolute Code Protection\n - DO NOT translate any non-natural language syntax (e.g., `{{count}}`, ``, `\\n`).\n2. Context Awareness via y & n Fields\n - Use the `y` (node type) and `n` (node name) fields to infer context.\n - Example: `y=\"Button\"`, `n=\"submit\"` -> Translate as an action verb.\n3. Pure Code Key Handling\n - If `s` is a code key, return it as-is in `t`.\n\n# Translation Requirements\n- **Target Language:** {{targetLanguage}}\n- **Translation Style:** {{translationStyle}}\n\n{{glossarySection}}\n\n# Example\n[Input]\n[{\"i\":50, \"s\":\"Open\", \"y\":\"Button\", \"n\":\"openFile\"}, {\"i\":51, \"s\":\"⇧ Shift\", \"y\":\"Text\", \"n\":\"shortcut\"}]\n\n[Output]\n[{\"i\":50, \"t\":\"打开\"}, {\"i\":51, \"t\":\"⇧ Shift\"}]\n\n# Quality Checklist (Self-Verify Before Output)\n- [ ] Is the output a totally naked JSON array?\n- [ ] Does each object ONLY contain `i` and `t`?\n- [ ] Are `i` fields unaltered?\n- [ ] Are code variables/tags intact in `t`?", "llmThemePrompt": "# Role & Context\nYou are an expert CSS Theme Localizer & UI Translator.\nYour task is to translate Obsidian theme setting labels and descriptions into the target language.\n\n# Core Output Rules (CRITICAL: Failure will crash the system)\n1. ONLY return a valid JSON array string.\n - ❌ NO Markdown formatting (e.g., ```json).\n - ❌ NO conversational text.\n - ✅ Starts exactly with `[` and ends with `]`.\n2. Property Gatekeeper (CRITICAL)\n - Input structure: `i` (ID), `s` (Source), `y` (Type).\n - Output structure: Return objects with EXACTLY two fields: `i` and `t` (Target/Translation).\n - DO NOT MODIFY `i`.\n - The `y` (type) field is for YOUR CONTEXT ONLY. Do not include it in output.\n\n# Translation & Safety Rules (CRITICAL)\n1. Context Awareness via y Field\n - `y` value tells you if text is a `name`, `title`, `description`, `label`, or `markdown`.\n2. Code Protection\n - DO NOT translate CSS class names or variables.\n3. Brevity for UI\n - Keep translations concise for settings UI.\n4. Unicode Encoding Preservation (CRITICAL)\n - If the source string `s` is formatted using Unicode escape sequences (e.g., `\\uXXXX`), your translated text `t` MUST ALSO be converted entirely into Unicode escape sequences.\n - ❌ Never return standard plain text if the source is Unicode-escaped.\n - Example: If `s` is `\\u0048\\u0065\\u006c\\u006c\\u006f` (\"Hello\"), and the translation is \"Hola\", `t` must be `\\u0048\\u006f\\u006c\\u0061`.\n\n# Translation Requirements\n- **Target Language:** {{targetLanguage}}\n- **Translation Style:** {{translationStyle}}\n\n{{glossarySection}}\n\n# Example\n[Input]\n[{\"i\":201, \"s\":\"Accent color\", \"y\":\"name\"}, {\"i\":202, \"s\":\"The color of active elements.\", \"y\":\"description\"}]\n\n[Output]\n[{\"i\":201, \"t\":\"强调色\"}, {\"i\":202, \"t\":\"激活状态元素的颜色。\"}]\n\n# Quality Checklist (Self-Verify Before Output)\n- [ ] Is the output a totally naked JSON array?\n- [ ] Does each object ONLY contain `i` and `t`?\n- [ ] Are `i` fields unaltered?\n- [ ] If `s` used Unicode escapes (`\\uXXXX`), is `t` correctly encoded as Unicode escapes?", - "llmOpenaiUrl": "", - "llmOpenaiKey": "", - "llmOpenaiModel": "gpt-4o-mini", "llmOpenaiProfiles": [ { "id": "default", @@ -33,11 +30,6 @@ } ], "llmOpenaiActiveProfileId": "default", - "llmUseCustomPrice": true, - "llmPriceInputCustom": 0, - "llmPriceOutputCustom": 0, - "llmGeminiKey": "", - "llmGeminiModel": "gemini-2.0-flash", "llmGeminiProfiles": [ { "id": "default", @@ -51,8 +43,6 @@ } ], "llmGeminiActiveProfileId": "default", - "llmOllamaUrl": "http://localhost:11434", - "llmOllamaModel": "", "llmOllamaProfiles": [ { "id": "default", @@ -66,8 +56,6 @@ } ], "llmOllamaActiveProfileId": "default", - "llmDeepseekKey": "", - "llmDeepseekModel": "deepseek-chat", "llmDeepseekProfiles": [ { "id": "default", @@ -81,8 +69,6 @@ } ], "llmDeepseekActiveProfileId": "default", - "llmZhipuKey": "", - "llmZhipuModel": "glm-4-flash", "llmZhipuProfiles": [ { "id": "default", @@ -96,8 +82,6 @@ } ], "llmZhipuActiveProfileId": "default", - "llmMoonshotKey": "", - "llmMoonshotModel": "moonshot-v1-8k", "llmMoonshotProfiles": [ { "id": "default", @@ -111,8 +95,6 @@ } ], "llmMoonshotActiveProfileId": "default", - "llmAliyunKey": "", - "llmAliyunModel": "qwen-plus", "llmAliyunProfiles": [ { "id": "default", @@ -126,8 +108,6 @@ } ], "llmAliyunActiveProfileId": "default", - "llmBaiduKey": "", - "llmBaiduModel": "ernie-4.0-8k-preview", "llmBaiduProfiles": [ { "id": "default", @@ -141,8 +121,6 @@ } ], "llmBaiduActiveProfileId": "default", - "llmBytedanceKey": "", - "llmBytedanceModel": "doubao-pro-4k", "llmBytedanceProfiles": [ { "id": "default", @@ -156,8 +134,6 @@ } ], "llmBytedanceActiveProfileId": "default", - "llmGroqKey": "", - "llmGroqModel": "llama-3.3-70b-versatile", "llmGroqProfiles": [ { "id": "default", @@ -171,8 +147,6 @@ } ], "llmGroqActiveProfileId": "default", - "llmSiliconflowKey": "", - "llmSiliconflowModel": "deepseek-ai/DeepSeek-V3", "llmSiliconflowProfiles": [ { "id": "default", @@ -186,8 +160,6 @@ } ], "llmSiliconflowActiveProfileId": "default", - "llmOpenrouterKey": "", - "llmOpenrouterModel": "anthropic/claude-3.5-sonnet", "llmOpenrouterProfiles": [ { "id": "default", @@ -201,8 +173,6 @@ } ], "llmOpenrouterActiveProfileId": "default", - "llmDeepinfraKey": "", - "llmDeepinfraModel": "meta-llama/Llama-3.3-70B-Instruct", "llmDeepinfraProfiles": [ { "id": "default", @@ -216,8 +186,6 @@ } ], "llmDeepinfraActiveProfileId": "default", - "llmMistralKey": "", - "llmMistralModel": "mistral-small-latest", "llmMistralProfiles": [ { "id": "default", @@ -231,8 +199,6 @@ } ], "llmMistralActiveProfileId": "default", - "llmMinimaxKey": "", - "llmMinimaxModel": "abab6.5-chat", "llmMinimaxProfiles": [ { "id": "default", @@ -246,8 +212,6 @@ } ], "llmMinimaxActiveProfileId": "default", - "llmStepfunKey": "", - "llmStepfunModel": "step-1-8k", "llmStepfunProfiles": [ { "id": "default", diff --git a/.obsidian/plugins/i18n/main.js b/.obsidian/plugins/i18n/main.js index cce18b4..f1e76aa 100644 --- a/.obsidian/plugins/i18n/main.js +++ b/.obsidian/plugins/i18n/main.js @@ -1,68 +1,68 @@ -var Kme=Object.create;var VC=Object.defineProperty;var Wme=Object.getOwnPropertyDescriptor;var Xme=Object.getOwnPropertyNames;var Yme=Object.getPrototypeOf,Jme=Object.prototype.hasOwnProperty;var de=(e,t)=>()=>(e&&(t=e(e=0)),t);var ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xl=(e,t)=>{for(var r in t)VC(e,r,{get:t[r],enumerable:!0})},SU=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Xme(t))!Jme.call(e,a)&&a!==r&&VC(e,a,{get:()=>t[a],enumerable:!(n=Wme(t,a))||n.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Kme(Yme(e)):{},SU(t||!e||!e.__esModule?VC(r,"default",{value:e,enumerable:!0}):r,e)),Zme=e=>SU(VC({},"__esModule",{value:!0}),e);var TU=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var ds=(e,t,r)=>(TU(e,t,"read from private field"),r?r.call(e):t.get(e)),wU=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},C_=(e,t,r,n)=>(TU(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);function che(){let e=[],t=Object.create(null),r;return t.get=(n,a)=>(r?.revoke?.(),a===FU?e:(e.push(a),r=Proxy.revocable(n,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}function KC(e,t){let{[FU]:r}=e(che());return r.join(t?.keySeparator??".")}var ir,Jv,CU,Qme,ehe,PU,EU,Zv,IU,the,HC,rhe,MU,ry,nhe,ahe,I_,ihe,she,ohe,A_,Qv,lhe,ny,Hc,ay,GC,OU,FU,AU,P_,iy,WC,NU,kU,N_,_U,E_,XC,uhe,LU,dhe,k_,fhe,__,RU,DU,qC,phe,Dm,Gi,But,$ut,jut,zut,Uut,Vut,qut,Hut,Gut,Kut,Wut,Xut,Yut,Jut,L_=de(()=>{ir=e=>typeof e=="string",Jv=()=>{let e,t,r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r},CU=e=>e==null?"":""+e,Qme=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},ehe=/###/g,PU=e=>e&&e.indexOf("###")>-1?e.replace(ehe,"."):e,EU=e=>!e||ir(e),Zv=(e,t,r)=>{let n=ir(t)?t.split("."):t,a=0;for(;a{let{obj:n,k:a}=Zv(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let i=t[t.length-1],s=t.slice(0,t.length-1),o=Zv(e,s,Object);for(;o.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),o=Zv(e,s,Object),o?.obj&&typeof o.obj[`${o.k}.${i}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${i}`]=r},the=(e,t,r,n)=>{let{obj:a,k:i}=Zv(e,t,Object);a[i]=a[i]||[],a[i].push(r)},HC=(e,t)=>{let{obj:r,k:n}=Zv(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},rhe=(e,t,r)=>{let n=HC(e,r);return n!==void 0?n:HC(t,r)},MU=(e,t,r)=>{for(let n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?ir(e[n])||e[n]instanceof String||ir(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):MU(e[n],t[n],r):e[n]=t[n]);return e},ry=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),nhe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},ahe=e=>ir(e)?e.replace(/[&<>"'\/]/g,t=>nhe[t]):e,I_=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let r=this.regExpMap.get(t);if(r!==void 0)return r;let n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}},ihe=[" ",",","?","!",";"],she=new I_(20),ohe=(e,t,r)=>{t=t||"",r=r||"";let n=ihe.filter(s=>t.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;let a=she.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`),i=!a.test(e);if(!i){let s=e.indexOf(r);s>0&&!a.test(e.substring(0,s))&&(i=!0)}return i},A_=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let n=t.split(r),a=e;for(let i=0;i-1&&le?.replace("_","-"),lhe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},ny=class{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||lhe,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,a){return a&&!this.debug?null:(ir(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new ny(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ny(this.logger,t)}},Hc=new ny,ay=class{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);let a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,i])=>{for(let s=0;s{for(let s=0;s-1&&this.options.ns.splice(r,1)}getResource(t,r,n,a={}){let i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,o;t.indexOf(".")>-1?o=t.split("."):(o=[t,r],n&&(Array.isArray(n)?o.push(...n):ir(n)&&i?o.push(...n.split(i)):o.push(n)));let l=HC(this.data,o);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=o[0],r=o[1],n=o.slice(2).join(".")),l||!s||!ir(n)?l:A_(this.data?.[t]?.[r],n,i)}addResource(t,r,n,a,i={silent:!1}){let s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=[t,r];n&&(o=o.concat(s?n.split(s):n)),t.indexOf(".")>-1&&(o=t.split("."),a=r,r=o[1]),this.addNamespaces(r),IU(this.data,o,a),i.silent||this.emit("added",t,r,n,a)}addResources(t,r,n,a={silent:!1}){for(let i in n)(ir(n[i])||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,i,s={silent:!1,skipCopy:!1}){let o=[t,r];t.indexOf(".")>-1&&(o=t.split("."),a=n,n=r,r=o[1]),this.addNamespaces(r);let l=HC(this.data,o)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?MU(l,n,i):l={...l,...n},IU(this.data,o,l),s.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(a=>r[a]&&Object.keys(r[a]).length>0)}toJSON(){return this.data}},OU={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(i=>{t=this.processors[i]?.process(t,r,n,a)??t}),t}},FU=Symbol("i18next/PATH_KEY");AU={},P_=e=>!ir(e)&&typeof e!="boolean"&&typeof e!="number",iy=class extends ay{constructor(t,r={}){super(),Qme(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Hc.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){let n={...r};if(t==null)return!1;let a=this.resolve(t,n);if(a?.res===void 0)return!1;let i=P_(a.res);return!(n.returnObjects===!1&&i)}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");let a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ns||this.options.defaultNS||[],s=n&&t.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!ohe(t,n,a);if(s&&!o){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:ir(i)?[i]:i};let c=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(a)}return{key:t,namespaces:ir(i)?[i]:i}}translate(t,r,n){let a=typeof r=="object"?{...r}:r;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=KC(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);let i=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],a),c=l[l.length-1],u=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");let d=a.lng||this.language,f=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return f?i?{res:`${c}${u}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(a)}:`${c}${u}${o}`:i?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(a)}:o;let p=this.resolve(t,a),m=p?.res,h=p?.usedKey||o,x=p?.exactUsedKey||o,g=["[object Number]","[object Function]","[object RegExp]"],y=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,S=a.count!==void 0&&!ir(a.count),w=iy.hasDefaultValue(a),E=S?this.pluralResolver.getSuffix(d,a.count,a):"",C=a.ordinal&&S?this.pluralResolver.getSuffix(d,a.count,{ordinal:!1}):"",N=S&&!a.ordinal&&a.count===0,_=N&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${E}`]||a[`defaultValue${C}`]||a.defaultValue,O=m;b&&!m&&w&&(O=_);let D=P_(O),W=Object.prototype.toString.apply(O);if(b&&O&&D&&g.indexOf(W)<0&&!(ir(y)&&Array.isArray(O))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let Z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,O,{...a,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(p.res=Z,p.usedParams=this.getUsedParamsDetails(a),p):Z}if(s){let Z=Array.isArray(O),me=Z?[]:{},Q=Z?x:h;for(let V in O)if(Object.prototype.hasOwnProperty.call(O,V)){let U=`${Q}${s}${V}`;w&&!m?me[V]=this.translate(U,{...a,defaultValue:P_(_)?_[V]:void 0,joinArrays:!1,ns:l}):me[V]=this.translate(U,{...a,joinArrays:!1,ns:l}),me[V]===U&&(me[V]=O[V])}m=me}}else if(b&&ir(y)&&Array.isArray(m))m=m.join(y),m&&(m=this.extendTranslation(m,t,a,n));else{let Z=!1,me=!1;!this.isValidLookup(m)&&w&&(Z=!0,m=_),this.isValidLookup(m)||(me=!0,m=o);let V=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&me?void 0:m,U=w&&_!==m&&this.options.updateMissing;if(me||Z||U){if(this.logger.log(U?"updateKey":"missingKey",d,c,o,U?_:m),s){let ee=this.resolve(o,{...a,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let k=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&L&&L[0])for(let ee=0;ee{let ge=w&&ne!==m?ne:V;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,c,se,ge,U,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ee,c,se,ge,U,a),this.emit("missingKey",ee,c,se,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?k.forEach(ee=>{let se=this.pluralResolver.getSuffixes(ee,a);N&&a[`defaultValue${this.options.pluralSeparator}zero`]&&se.indexOf(`${this.options.pluralSeparator}zero`)<0&&se.push(`${this.options.pluralSeparator}zero`),se.forEach(ne=>{M([ee],o+ne,a[`defaultValue${ne}`]||_)})}):M(k,o,_))}m=this.extendTranslation(m,t,a,p,n),me&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${c}${u}${o}`),(me||Z)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${o}`:o,Z?m:void 0,a))}return i?(p.res=m,p.usedParams=this.getUsedParamsDetails(a),p):m}extendTranslation(t,r,n,a,i){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l=ir(t)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(l){let d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let u=n.replace&&!ir(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,n.lng||this.language||a.usedLng,n),l){let d=t.match(this.interpolator.nestingRegexp),f=d&&d.length;ci?.[0]===d[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${r[0]}`),null):this.translate(...d,r),n)),n.interpolation&&this.interpolator.reset()}let s=n.postProcess||this.options.postProcess,o=ir(s)?[s]:s;return t!=null&&o?.length&&n.applyPostProcessor!==!1&&(t=OU.handle(o,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t,r={}){let n,a,i,s,o;return ir(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;let c=this.extractFromKey(l,r),u=c.key;a=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let f=r.count!==void 0&&!ir(r.count),p=f&&!r.ordinal&&r.count===0,m=r.context!==void 0&&(ir(r.context)||typeof r.context=="number")&&r.context!=="",h=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(x=>{this.isValidLookup(n)||(o=x,!AU[`${h[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(AU[`${h[0]}-${x}`]=!0,this.logger.warn(`key "${a}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(g=>{if(this.isValidLookup(n))return;s=g;let y=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(y,u,g,x,r);else{let S;f&&(S=this.pluralResolver.getSuffix(g,r.count,r));let w=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(r.ordinal&&S.indexOf(E)===0&&y.push(u+S.replace(E,this.options.pluralSeparator)),y.push(u+S),p&&y.push(u+w)),m){let C=`${u}${this.options.contextSeparator||"_"}${r.context}`;y.push(C),f&&(r.ordinal&&S.indexOf(E)===0&&y.push(C+S.replace(E,this.options.pluralSeparator)),y.push(C+S),p&&y.push(C+w))}}let b;for(;b=y.pop();)this.isValidLookup(n)||(i=b,n=this.getResource(g,x,b,r))}))})}),{res:n,usedKey:a,exactUsedKey:i,usedLng:s,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n,a={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,r,n,a):this.resourceStore.getResource(t,r,n,a)}getUsedParamsDetails(t={}){let r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!ir(t.replace),a=n?t.replace:t;if(n&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(let i of r)delete a[i]}return a}static hasDefaultValue(t){let r="defaultValue";for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}},WC=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Hc.create("languageUtils")}getScriptPartFromCode(t){if(t=Qv(t),!t||t.indexOf("-")<0)return null;let r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Qv(t),!t||t.indexOf("-")<0)return t;let r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(ir(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;let a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;let a=this.getScriptPartFromCode(n);if(this.isSupportedCode(a))return r=a;let i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&(s.indexOf("-")>0&&i.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===i||s.indexOf(i)===0&&i.length>1))return s})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),ir(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){let n=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),a=[],i=s=>{s&&(this.isSupportedCode(s)?a.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return ir(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):ir(t)&&i(this.formatLanguageCode(t)),n.forEach(s=>{a.indexOf(s)<0&&i(this.formatLanguageCode(s))}),a}},NU={zero:0,one:1,two:2,few:3,many:4,other:5},kU={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},N_=class{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=Hc.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){let n=Qv(t==="dev"?"en":t),a=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(n,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),kU;if(!t.match(/-|_/))return kU;let l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,r)}return this.pluralRulesCache[i]=s,s}needsPlural(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,r,n={}){return this.getSuffixes(t,n).map(a=>`${r}${a}`)}getSuffixes(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((a,i)=>NU[a]-NU[i]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,r,n={}){let a=this.getRule(t,n);return a?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}},_U=(e,t,r,n=".",a=!0)=>{let i=rhe(e,t,r);return!i&&a&&ir(r)&&(i=A_(e,r,n),i===void 0&&(i=A_(t,r,n))),i},E_=e=>e.replace(/\$/g,"$$$$"),XC=class{constructor(t={}){this.logger=Hc.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:r,escapeValue:n,useRawValueToEscape:a,prefix:i,prefixEscaped:s,suffix:o,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:h,nestingOptionsSeparator:x,maxReplaces:g,alwaysFormat:y}=t.interpolation;this.escape=r!==void 0?r:ahe,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?ry(i):s||"{{",this.suffix=o?ry(o):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?ry(f):p||ry("$t("),this.nestingSuffix=m?ry(m):h||ry(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=g||1e3,this.alwaysFormat=y!==void 0?y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(r,n)=>r?.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,n,a){let i,s,o,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(p.indexOf(this.formatSeparator)<0){let g=_U(r,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,n,{...a,...r,interpolationkey:p}):g}let m=p.split(this.formatSeparator),h=m.shift().trim(),x=m.join(this.formatSeparator).trim();return this.format(_U(r,l,h,this.options.keySeparator,this.options.ignoreJSONStructure),x,n,{...a,...r,interpolationkey:h})};this.resetRegExp();let u=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>E_(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?E_(this.escape(p)):E_(p)}].forEach(p=>{for(o=0;i=p.regex.exec(t);){let m=i[1].trim();if(s=c(m),s===void 0)if(typeof u=="function"){let x=u(t,i,a);s=ir(x)?x:""}else if(a&&Object.prototype.hasOwnProperty.call(a,m))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),s="";else!ir(s)&&!this.useRawValueToEscape&&(s=CU(s));let h=p.safeValue(s);if(t=t.replace(i[0],h),d?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,r,n={}){let a,i,s,o=(l,c)=>{let u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;let d=l.split(new RegExp(`${u}[ ]*{`)),f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);let p=f.match(/'/g),m=f.match(/"/g);((p?.length??0)%2===0&&!m||m.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),c&&(s={...c,...s})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,h),`${l}${u}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];s={...n},s=s.replace&&!ir(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(c!==-1&&(l=a[1].slice(c).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),a[1]=a[1].slice(0,c)),i=r(o.call(this,a[1].trim(),s),s),i&&a[0]===t&&!ir(i))return i;ir(i)||(i=CU(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),i=""),l.length&&(i=l.reduce((u,d)=>this.format(u,d,n.lng,{...n,interpolationkey:a[1].trim()}),i.trim())),t=t.replace(a[0],i),this.regexp.lastIndex=0}return t}},uhe=e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let a=n[1].substring(0,n[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(s=>{if(s){let[o,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=o.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},LU=e=>{let t={};return(r,n,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});let s=n+JSON.stringify(i),o=t[s];return o||(o=e(Qv(n),a),t[s]=o),o(r)}},dhe=e=>(t,r,n)=>e(Qv(r),n)(t),k_=class{constructor(t={}){this.logger=Hc.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";let n=r.cacheInBuiltFormats?LU:dhe;this.formats={number:n((a,i)=>{let s=new Intl.NumberFormat(a,{...i});return o=>s.format(o)}),currency:n((a,i)=>{let s=new Intl.NumberFormat(a,{...i,style:"currency"});return o=>s.format(o)}),datetime:n((a,i)=>{let s=new Intl.DateTimeFormat(a,{...i});return o=>s.format(o)}),relativetime:n((a,i)=>{let s=new Intl.RelativeTimeFormat(a,{...i});return o=>s.format(o,i.range||"day")}),list:n((a,i)=>{let s=new Intl.ListFormat(a,{...i});return o=>s.format(o)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=LU(r)}format(t,r,n,a={}){let i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(o=>o.indexOf(")")>-1)){let o=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,o)].join(this.formatSeparator)}return i.reduce((o,l)=>{let{formatName:c,formatOptions:u}=uhe(l);if(this.formats[c]){let d=o;try{let f=a?.formatParams?.[a.interpolationkey]||{},p=f.locale||f.lng||a.locale||a.lng||n;d=this.formats[c](o,p,{...u,...a,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return o},t)}},fhe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},__=class extends ay{constructor(t,r,n,a={}){super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=Hc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,a.backend,a)}queueLoad(t,r,n,a){let i={},s={},o={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{let f=`${c}|${d}`;!n.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,u=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(o[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){let a=t.split("|"),i=a[0],s=a[1];r&&this.emit("failedLoading",i,s,r),!r&&n&&this.store.addResourceBundle(i,s,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);let o={};this.queue.forEach(l=>{the(l.loaded,[i],s),fhe(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{o[c]||(o[c]={});let u=l.loaded[c];u.length&&u.forEach(d=>{o[c][d]===void 0&&(o[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n,a=0,i=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:a,wait:i,callback:s});return}this.readingCalls++;let o=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&a{this.read.call(this,t,r,n,a+1,i*2,s)},i);return}s(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{let c=l(t,r);c&&typeof c.then=="function"?c.then(u=>o(null,u)).catch(o):o(null,c)}catch(c){o(c)}return}return l(t,r,o)}prepareLoading(t,r,n={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();ir(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ir(r)&&(r=[r]);let i=this.queueLoad(t,r,n,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t,r=""){let n=t.split("|"),a=n[0],i=n[1];this.read(a,i,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${a} failed`,s),!s&&o&&this.logger.log(`${r}loaded namespace ${i} for language ${a}`,o),this.loaded(t,s,o)})}saveMissing(t,r,n,a,i,s={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend?.create){let l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,n,a,l):u=c(t,r,n,a),u&&typeof u.then=="function"?u.then(d=>o(null,d)).catch(o):o(null,u)}catch(u){o(u)}else c(t,r,n,a,o,l)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}},RU=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ir(e[1])&&(t.defaultValue=e[1]),ir(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),DU=e=>(ir(e.ns)&&(e.ns=[e.ns]),ir(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ir(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),qC=()=>{},phe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})},Dm=class extends ay{constructor(t={},r){if(super(),this.options=DU(t),this.services={},this.logger=Hc,this.modules={external:[]},phe(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(ir(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let n=RU();this.options={...n,...this.options,...DU(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let a=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Hc.init(a(this.modules.logger),this.options):Hc.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=k_;let u=new WC(this.options);this.store=new GC(this.options.resources,this.options);let d=this.services;d.logger=Hc,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new N_(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),c&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(d.formatter=a(c),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new XC(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new __(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(p,...m)=>{this.emit(p,...m)}),this.modules.languageDetector&&(d.languageDetector=a(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=a(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new iy(this.services,this.options),this.translator.on("*",(p,...m)=>{this.emit(p,...m)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=qC),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...u)=>this.store[c](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...u)=>(this.store[c](...u),this)});let o=Jv(),l=()=>{let c=(u,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(d),r(u,d)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(t,r=qC){let n=r,a=ir(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();let i=[],s=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};a?s(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload?.forEach?.(o=>s(o)),this.services.backendConnector.load(i,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(o)})}else n(null)}reloadResources(t,r,n){let a=Jv();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=qC),this.services.backendConnector.reload(t,r,i=>{a.resolve(),n(i)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&OU.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;let n=Jv();this.emit("languageChanging",t);let a=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},i=(o,l)=>{l?this.isLanguageChangingTo===t&&(a(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,n.resolve((...c)=>this.t(...c)),r&&r(o,(...c)=>this.t(...c))},s=o=>{!t&&!o&&this.services.languageDetector&&(o=[]);let l=ir(o)?o:o&&o[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(ir(o)?[o]:o);c&&(this.language||a(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,u=>{i(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),n}getFixedT(t,r,n){let a=(i,s,...o)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([i,s].concat(o)):l={...s},l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||a.keyPrefix);let c=this.options.keySeparator||".",u;return l.keyPrefix&&Array.isArray(i)?u=i.map(d=>(typeof d=="function"&&(d=KC(d,{...this.options,...s})),`${l.keyPrefix}${c}${d}`)):(typeof i=="function"&&(i=KC(i,{...this.options,...s})),u=l.keyPrefix?`${l.keyPrefix}${c}${i}`:i),this.t(u,l)};return ir(t)?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;let s=(o,l)=>{let c=this.services.backendConnector.state[`${o}|${l}`];return c===-1||c===0||c===2};if(r.precheck){let o=r.precheck(this,s);if(o!==void 0)return o}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,t)&&(!a||s(i,t)))}loadNamespaces(t,r){let n=Jv();return this.options.ns?(ir(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){let n=Jv();ir(t)&&(t=[t]);let a=this.options.preload||[],i=t.filter(s=>a.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=a.concat(i),this.loadResources(s=>{n.resolve(),r&&r(s)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let a=new Intl.Locale(t);if(a&&a.getTextInfo){let i=a.getTextInfo();if(i&&i.direction)return i.direction}}catch{}let r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services?.languageUtils||new WC(RU());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){let n=new Dm(t,r);return n.createInstance=Dm.createInstance,n}cloneInstance(t={},r=qC){let n=t.forkResourceStore;n&&delete t.forkResourceStore;let a={...this.options,...t,isClone:!0},i=new Dm(a);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(o=>{i[o]=this[o]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){let o=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((u,d)=>(u[d]={...l[c][d]},u),l[c]),l),{});i.store=new GC(o,a),i.services.resourceStore=i.store}return t.interpolation&&(i.services.interpolator=new XC(a)),i.translator=new iy(i.services,a),i.translator.on("*",(o,...l)=>{i.emit(o,...l)}),i.init(a,r),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Gi=Dm.createInstance(),But=Gi.createInstance,$ut=Gi.dir,jut=Gi.init,zut=Gi.loadResources,Uut=Gi.reloadResources,Vut=Gi.use,qut=Gi.changeLanguage,Hut=Gi.getFixedT,Gut=Gi.t,Kut=Gi.exists,Wut=Gi.setDefaultNamespace,Xut=Gi.hasLoadedNamespace,Yut=Gi.loadNamespaces,Jut=Gi.loadLanguages});var WU=ae(pr=>{"use strict";var M_=Symbol.for("react.transitional.element"),mhe=Symbol.for("react.portal"),hhe=Symbol.for("react.fragment"),ghe=Symbol.for("react.strict_mode"),yhe=Symbol.for("react.profiler"),xhe=Symbol.for("react.consumer"),bhe=Symbol.for("react.context"),vhe=Symbol.for("react.forward_ref"),She=Symbol.for("react.suspense"),The=Symbol.for("react.memo"),UU=Symbol.for("react.lazy"),whe=Symbol.for("react.activity"),BU=Symbol.iterator;function Che(e){return e===null||typeof e!="object"?null:(e=BU&&e[BU]||e["@@iterator"],typeof e=="function"?e:null)}var VU={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qU=Object.assign,HU={};function oy(e,t,r){this.props=e,this.context=t,this.refs=HU,this.updater=r||VU}oy.prototype.isReactComponent={};oy.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oy.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function GU(){}GU.prototype=oy.prototype;function O_(e,t,r){this.props=e,this.context=t,this.refs=HU,this.updater=r||VU}var F_=O_.prototype=new GU;F_.constructor=O_;qU(F_,oy.prototype);F_.isPureReactComponent=!0;var $U=Array.isArray;function D_(){}var Gn={H:null,A:null,T:null,S:null},KU=Object.prototype.hasOwnProperty;function B_(e,t,r){var n=r.ref;return{$$typeof:M_,type:e,key:t,ref:n!==void 0?n:null,props:r}}function Phe(e,t){return B_(e.type,t,e.props)}function $_(e){return typeof e=="object"&&e!==null&&e.$$typeof===M_}function Ehe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var jU=/\/+/g;function R_(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ehe(""+e.key):t.toString(36)}function Ihe(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(D_,D_):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function sy(e,t,r,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case M_:case mhe:s=!0;break;case UU:return s=e._init,sy(s(e._payload),t,r,n,a)}}if(s)return a=a(e),s=n===""?"."+R_(e,0):n,$U(a)?(r="",s!=null&&(r=s.replace(jU,"$&/")+"/"),sy(a,t,r,"",function(c){return c})):a!=null&&($_(a)&&(a=Phe(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(jU,"$&/")+"/")+s)),t.push(a)),1;s=0;var o=n===""?".":n+":";if($U(e))for(var l=0;l{"use strict";XU.exports=WU()});var JU=ae((tdt,YU)=>{YU.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}});var khe,ZU=de(()=>{khe=A(JU())});var JC,QU,ly,e8,ZC,j_,t8,dc,z_,cy=de(()=>{JC=(e,t,r,n)=>{let a=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);dc(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),e?.services?.logger?.warn&&e.services.logger.warn(...a)},QU={},ly=(e,t,r,n)=>{dc(r)&&QU[r]||(dc(r)&&(QU[r]=new Date),JC(e,t,r,n))},e8=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},ZC=(e,t,r)=>{e.loadNamespaces(t,e8(e,r))},j_=(e,t,r,n)=>{if(dc(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return ZC(e,r,n);r.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,e8(e,n))},t8=(e,t,r={})=>!t.languages||!t.languages.length?(ly(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(n,a)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e))return!1}}),dc=e=>typeof e=="string",z_=e=>typeof e=="object"&&e!==null});var _he,Lhe,Rhe,U_,V_=de(()=>{_he=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Lhe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},Rhe=e=>Lhe[e],U_=e=>e.replace(_he,Rhe)});var q_,QC,e0,t0=de(()=>{V_();q_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:U_,transDefaultProps:void 0},QC=(e={})=>{q_={...q_,...e}},e0=()=>q_});var r8,e1,fc,uy=de(()=>{e1=e=>{r8=e},fc=()=>r8});var r0,H_=de(()=>{r0=A(Le(),1);L_();ZU();cy();t0();uy();V_()});var t1,G_=de(()=>{t0();uy();t1={type:"3rdParty",init(e){QC(e.options.react),e1(e)}}});var n8,Tf,r1,wf=de(()=>{n8=A(Le(),1);t0();uy();G_();Tf=(0,n8.createContext)(),r1=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}});var Mhe,a8=de(()=>{Mhe=A(Le(),1);H_();wf()});var Cf,K_=de(()=>{Cf=class extends Error{constructor(t,r,n){super(t),this.name="TranslationParserError",this.position=r,this.translationString=n,Error.captureStackTrace&&Error.captureStackTrace(this,Cf)}}});var i8,Ohe,s8,W_=de(()=>{i8={" ":"\xA0","&":"&","<":"<",">":">",""":'"',"'":"'","©":"\xA9","®":"\xAE","™":"\u2122","…":"\u2026","–":"\u2013","—":"\u2014","‘":"\u2018","’":"\u2019","‚":"\u201A","“":"\u201C","”":"\u201D","„":"\u201E","†":"\u2020","‡":"\u2021","•":"\u2022","′":"\u2032","″":"\u2033","‹":"\u2039","›":"\u203A","§":"\xA7","¶":"\xB6","·":"\xB7"," ":"\u2002"," ":"\u2003"," ":"\u2009","€":"\u20AC","£":"\xA3","¥":"\xA5","¢":"\xA2","¤":"\xA4","×":"\xD7","÷":"\xF7","−":"\u2212","±":"\xB1","≠":"\u2260","≤":"\u2264","≥":"\u2265","≈":"\u2248","≡":"\u2261","∞":"\u221E","∫":"\u222B","∑":"\u2211","∏":"\u220F","√":"\u221A","∂":"\u2202","‰":"\u2030","°":"\xB0","µ":"\xB5","←":"\u2190","↑":"\u2191","→":"\u2192","↓":"\u2193","↔":"\u2194","↵":"\u21B5","⇐":"\u21D0","⇑":"\u21D1","⇒":"\u21D2","⇓":"\u21D3","⇔":"\u21D4","α":"\u03B1","β":"\u03B2","γ":"\u03B3","δ":"\u03B4","ε":"\u03B5","ζ":"\u03B6","η":"\u03B7","θ":"\u03B8","ι":"\u03B9","κ":"\u03BA","λ":"\u03BB","μ":"\u03BC","ν":"\u03BD","ξ":"\u03BE","ο":"\u03BF","π":"\u03C0","ρ":"\u03C1","σ":"\u03C3","τ":"\u03C4","υ":"\u03C5","φ":"\u03C6","χ":"\u03C7","ψ":"\u03C8","ω":"\u03C9","Α":"\u0391","Β":"\u0392","Γ":"\u0393","Δ":"\u0394","Ε":"\u0395","Ζ":"\u0396","Η":"\u0397","Θ":"\u0398","Ι":"\u0399","Κ":"\u039A","Λ":"\u039B","Μ":"\u039C","Ν":"\u039D","Ξ":"\u039E","Ο":"\u039F","Π":"\u03A0","Ρ":"\u03A1","Σ":"\u03A3","Τ":"\u03A4","Υ":"\u03A5","Φ":"\u03A6","Χ":"\u03A7","Ψ":"\u03A8","Ω":"\u03A9","À":"\xC0","Á":"\xC1","Â":"\xC2","Ã":"\xC3","Ä":"\xC4","Å":"\xC5","Æ":"\xC6","Ç":"\xC7","È":"\xC8","É":"\xC9","Ê":"\xCA","Ë":"\xCB","Ì":"\xCC","Í":"\xCD","Î":"\xCE","Ï":"\xCF","Ð":"\xD0","Ñ":"\xD1","Ò":"\xD2","Ó":"\xD3","Ô":"\xD4","Õ":"\xD5","Ö":"\xD6","Ø":"\xD8","Ù":"\xD9","Ú":"\xDA","Û":"\xDB","Ü":"\xDC","Ý":"\xDD","Þ":"\xDE","ß":"\xDF","à":"\xE0","á":"\xE1","â":"\xE2","ã":"\xE3","ä":"\xE4","å":"\xE5","æ":"\xE6","ç":"\xE7","è":"\xE8","é":"\xE9","ê":"\xEA","ë":"\xEB","ì":"\xEC","í":"\xED","î":"\xEE","ï":"\xEF","ð":"\xF0","ñ":"\xF1","ò":"\xF2","ó":"\xF3","ô":"\xF4","õ":"\xF5","ö":"\xF6","ø":"\xF8","ù":"\xF9","ú":"\xFA","û":"\xFB","ü":"\xFC","ý":"\xFD","þ":"\xFE","ÿ":"\xFF","¡":"\xA1","¿":"\xBF","ƒ":"\u0192","ˆ":"\u02C6","˜":"\u02DC","Œ":"\u0152","œ":"\u0153","Š":"\u0160","š":"\u0161","Ÿ":"\u0178","ª":"\xAA","º":"\xBA","¯":"\xAF","´":"\xB4","¸":"\xB8","¹":"\xB9","²":"\xB2","³":"\xB3","¼":"\xBC","½":"\xBD","¾":"\xBE","♠":"\u2660","♣":"\u2663","♥":"\u2665","♦":"\u2666","◊":"\u25CA","‾":"\u203E","⁄":"\u2044","℘":"\u2118","ℑ":"\u2111","ℜ":"\u211C","ℵ":"\u2135"},Ohe=new RegExp(Object.keys(i8).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),s8=e=>e.replace(Ohe,t=>i8[t]).replace(/&#(\d+);/g,(t,r)=>String.fromCharCode(parseInt(r,10))).replace(/&#x([0-9a-fA-F]+);/g,(t,r)=>String.fromCharCode(parseInt(r,16)))});var o8,X_=de(()=>{o8=e=>{let t=[],r=0,n="",a=()=>{n&&(t.push({type:"Text",value:n,position:r-n.length}),n="")};for(;r/);if(s)a(),t.push({type:"TagOpen",value:s[0],position:r,tagNumber:parseInt(s[1],10)}),r+=s[0].length;else{let o=e.slice(r).match(/^<\/(\d+)>/);o?(a(),t.push({type:"TagClose",value:o[0],position:r,tagNumber:parseInt(o[1],10)}),r+=o[0].length):(n+=i,r+=1)}}else n+=i,r+=1}return a(),t}});var n0,Fhe,l8,c8=de(()=>{n0=A(Le(),1);K_();X_();W_();Fhe=(e,t,r)=>{let{type:n,props:a={}}=e;if(a.children&&Array.isArray(a.children)&&r){let{children:i,...s}=a;return n0.default.createElement(n,s,...t)}return t.length===0?n0.default.createElement(n,a):t.length===1?n0.default.createElement(n,a,t[0]):n0.default.createElement(n,a,...t)},l8=(e,t=[])=>{if(!e)return[];let r=o8(e),n=[],a=[],i=new Set,s=()=>{if(a.length===0)return t;let o=a[a.length-1];return o.declaration.props?.children&&Array.isArray(o.declaration.props.children)?o.declaration.props.children:o.declarations};if(r.forEach(o=>{switch(o.type){case"Text":{let l=s8(o.value);(a.length>0?a[a.length-1].children:n).push(l)}break;case"TagOpen":{let{tagNumber:l}=o,c=s(),u=c[l];if(!u){i.add(l);let d=`<${l}>`;(a.length>0?a[a.length-1].children:n).push(d);break}a.push({tagNumber:l,children:[],position:o.position,declaration:u,declarations:c})}break;case"TagClose":{let{tagNumber:l}=o;if(i.has(l)){let f=``;(a.length>0?a[a.length-1].children:n).push(f),i.delete(l);break}if(a.length===0)throw new Cf(`Unexpected closing tag at position ${o.position}`,o.position,e);let c=a.pop();if(c.tagNumber!==l)throw new Cf(`Mismatched tags: expected but got at position ${o.position}`,o.position,e);let u=Fhe(c.declaration,c.children,c.declarations);(a.length>0?a[a.length-1].children:n).push(u)}break}}),a.length>0){let o=a[a.length-1];throw new Cf(`Unclosed tag <${o.tagNumber}> at position ${o.position}`,o.position,e)}return n}});var u8=de(()=>{K_();W_();X_();c8()});function n1({i18nKey:e,defaultTranslation:t,content:r,ns:n,values:a={},i18n:i,t:s}){let o=i||fc();if(!o)return ly(o,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),Mm.default.createElement(Mm.default.Fragment,{},t);let l=s||o.t?.bind(o)||(f=>f),c=n||l.ns||o.options?.defaultNS;c=dc(c)?[c]:c||["translation"];let u=a;o.options?.interpolation?.defaultVariables&&(u=a&&Object.keys(a).length>0?{...a,...o.options.interpolation.defaultVariables}:{...o.options.interpolation.defaultVariables});let d=l(e,{defaultValue:t,...u,ns:c});try{let f=l8(d,r);return Mm.default.createElement(Mm.default.Fragment,{},...f)}catch(f){return JC(o,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${f.message}`,{i18nKey:e,error:f}),Mm.default.createElement(Mm.default.Fragment,{},d)}}var Mm,Y_=de(()=>{Mm=A(Le(),1);cy();uy();u8();n1.displayName="IcuTransWithoutContext"});function f8({i18nKey:e,defaultTranslation:t,content:r,ns:n,values:a={},i18n:i,t:s}){let{i18n:o,defaultNS:l}=(0,d8.useContext)(Tf)||{},c=i||o||fc(),u=s||c?.t.bind(c);return n1({i18nKey:e,defaultTranslation:t,content:r,ns:n||u?.ns||l||c?.options?.defaultNS,values:a,i18n:c,t:s})}var d8,p8=de(()=>{d8=A(Le(),1);Y_();wf();f8.displayName="IcuTrans"});var h8=ae(m8=>{"use strict";var dy=Le();function Bhe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $he=typeof Object.is=="function"?Object.is:Bhe,jhe=dy.useState,zhe=dy.useEffect,Uhe=dy.useLayoutEffect,Vhe=dy.useDebugValue;function qhe(e,t){var r=t(),n=jhe({inst:{value:r,getSnapshot:t}}),a=n[0].inst,i=n[1];return Uhe(function(){a.value=r,a.getSnapshot=t,J_(a)&&i({inst:a})},[e,r,t]),zhe(function(){return J_(a)&&i({inst:a}),e(function(){J_(a)&&i({inst:a})})},[e]),Vhe(r),r}function J_(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!$he(e,r)}catch{return!0}}function Hhe(e,t){return t()}var Ghe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hhe:qhe;m8.useSyncExternalStore=dy.useSyncExternalStore!==void 0?dy.useSyncExternalStore:Ghe});var y8=ae((Kdt,g8)=>{"use strict";g8.exports=h8()});var ki,x8,Khe,Whe,Xhe,Ve,a1=de(()=>{ki=A(Le(),1),x8=A(y8(),1);wf();cy();Khe=(e,t)=>dc(t)?t:z_(t)&&dc(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,Whe={t:Khe,ready:!1},Xhe=()=>()=>{},Ve=(e,t={})=>{let{i18n:r}=t,{i18n:n,defaultNS:a}=(0,ki.useContext)(Tf)||{},i=r||n||fc();i&&!i.reportNamespaces&&(i.reportNamespaces=new r1),i||ly(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let s=(0,ki.useMemo)(()=>({...e0(),...i?.options?.react,...t}),[i,t]),{useSuspense:o,keyPrefix:l}=s,c=e||a||i?.options?.defaultNS,u=dc(c)?[c]:c||["translation"],d=(0,ki.useMemo)(()=>u,u);i?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,ki.useRef)(0),p=(0,ki.useCallback)(_=>{if(!i)return Xhe;let{bindI18n:O,bindI18nStore:D}=s,W=()=>{f.current+=1,_()};return O&&i.on(O,W),D&&i.store.on(D,W),()=>{O&&O.split(" ").forEach(Z=>i.off(Z,W)),D&&D.split(" ").forEach(Z=>i.store.off(Z,W))}},[i,s]),m=(0,ki.useRef)(),h=(0,ki.useCallback)(()=>{if(!i)return Whe;let _=!!(i.isInitialized||i.initializedStoreOnce)&&d.every(Q=>t8(Q,i,s)),O=t.lng||i.language,D=f.current,W=m.current;if(W&&W.ready===_&&W.lng===O&&W.keyPrefix===l&&W.revision===D)return W;let me={t:i.getFixedT(O,s.nsMode==="fallback"?d:d[0],l),ready:_,lng:O,keyPrefix:l,revision:D};return m.current=me,me},[i,d,l,s,t.lng]),[x,g]=(0,ki.useState)(0),{t:y,ready:b}=(0,x8.useSyncExternalStore)(p,h,h);(0,ki.useEffect)(()=>{if(i&&!b&&!o){let _=()=>g(O=>O+1);t.lng?j_(i,t.lng,d,_):ZC(i,d,_)}},[i,t.lng,d,b,o,x]);let S=i||{},w=(0,ki.useRef)(null),E=(0,ki.useRef)(),C=_=>{let O=Object.getOwnPropertyDescriptors(_);O.__original&&delete O.__original;let D=Object.create(Object.getPrototypeOf(_),O);if(!Object.prototype.hasOwnProperty.call(D,"__original"))try{Object.defineProperty(D,"__original",{value:_,writable:!1,enumerable:!1,configurable:!1})}catch{}return D},N=(0,ki.useMemo)(()=>{let _=S,O=_?.language,D=_;_&&(w.current&&w.current.__original===_?E.current!==O?(D=C(_),w.current=D,E.current=O):D=w.current:(D=C(_),w.current=D,E.current=O));let W=[y,D,b];return W.t=y,W.i18n=D,W.ready=b,W},[y,S,b,S.resolvedLanguage,S.language,S.languages]);if(i&&o&&!b)throw new Promise(_=>{let O=()=>_();t.lng?j_(i,t.lng,d,O):ZC(i,d,O)});return N}});var b8,v8=de(()=>{b8=A(Le(),1);a1();cy()});var S8=de(()=>{a1()});var T8,w8=de(()=>{T8=A(Le(),1);wf()});var Jhe,Z_=de(()=>{Jhe=A(Le(),1);wf()});var ege,C8=de(()=>{ege=A(Le(),1);Z_();wf();cy()});var tr=de(()=>{a8();H_();p8();Y_();a1();v8();S8();w8();C8();Z_();G_();t0();uy();wf()});var P8,E8=de(()=>{P8={Actions:{Save:"\u4FDD\u5B58",Cancel:"\u53D6\u6D88",Confirm:"\u786E\u5B9A",Refresh:"\u5237\u65B0",Edit:"\u7F16\u8F91",Back:"\u8FD4\u56DE",Update:"\u66F4\u65B0",Clear:"\u6E05\u9664",Delete:"\u5220\u9664",StopTranslate:"\u505C\u6B62\u7FFB\u8BD1"},Status:{Success:"\u6210\u529F",Failure:"\u5931\u8D25",Loading:"\u52A0\u8F7D\u4E2D...",Reloading:"\u91CD\u8F7D\u4E2D...",Unknown:"\u672A\u77E5",Error:"\u9519\u8BEF",Ready:"\u5C31\u7EEA"},Labels:{I18n:"I18N",Themes:"\u4E3B\u9898",Plugins:"\u63D2\u4EF6",GithubUser:"GitHub \u7528\u6237",Mtime:"\u4FEE\u6539\u65F6\u95F4",Optional:"\u53EF\u9009",Or:"\u6216",NoPlugins:"\u6682\u65E0\u63D2\u4EF6",UpdatePrefix:"\u66F4\u65B0\u4E8E",Filter:"\u7B5B\u9009"},Filters:{All:"\u5168\u90E8",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",Applied:"\u5DF2\u5E94\u7528"},Notices:{Success:"\u6210\u529F",Failure:"\u5931\u8D25",Clear:"\u6E05\u7A7A",SaveSuccess:"\u4FDD\u5B58\u6210\u529F",SaveFail:"\u4FDD\u5B58\u5931\u8D25",SaveFailPath:"\u4FDD\u5B58\u5931\u8D25\uFF1A\u672A\u627E\u5230\u6709\u6548\u7684\u5B58\u50A8\u8DEF\u5F84",DeleteSuccess:"\u5220\u9664\u6210\u529F",TaskStopped:"\u4EFB\u52A1\u5DF2\u505C\u6B62",BatchTranslateSuccess:"\u6279\u91CF\u7FFB\u8BD1\u5B8C\u6210\uFF01",TranslateFail:"\u7FFB\u8BD1\u5931\u8D25: {{message}}",NoItemsToTranslate:"\u6CA1\u6709\u9700\u8981\u7FFB\u8BD1\u7684\u6761\u76EE",ThemeNotFound:"\u672A\u627E\u5230\u4E3B\u9898",MainNotFound:"\u672A\u627E\u5230\u6587\u4EF6 {{file}}",TaskCancelled:"\u7FFB\u8BD1\u4EFB\u52A1\u5DF2\u53D6\u6D88",Perfect:"\u72B6\u6001\u826F\u597D",NoErrors:"\u6682\u672A\u53D1\u73B0\u95EE\u9898"},Placeholders:{Search:"\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD..."},Data:{SortAsc:"\u6B63\u5E8F",SortDesc:"\u5012\u5E8F"},Pagination:{Label:"\u5206\u9875\u5BFC\u822A",Prev:"\u4E0A\u4E00\u9875",Next:"\u4E0B\u4E00\u9875"},MoreExpect:"\u66F4\u591A\u671F\u5F85"}});var I8,A8=de(()=>{I8={Common:{Titles:{Main:"i18n \u7BA1\u7406\u4E2D\u5FC3"},Actions:{Search:"\u641C\u7D22",MoreActions:"\u66F4\u591A\u9009\u9879",Sponsor:"\u652F\u6301\u4F5C\u8005",Help:"\u4F7F\u7528\u5E2E\u52A9",HelpDoc:"\u5B98\u65B9\u6587\u6863\u6559\u7A0B",Cloud:"\u4E91\u7AEF\u8BD1\u6587",Settings:"\u7EFC\u5408\u8BBE\u7F6E",SelectSource:"\u9009\u62E9\u6570\u636E\u6E90",Apply:"\u5E94\u7528",Restore:"\u8FD8\u539F",Edit:"\u7F16\u8F91\u8BD1\u6587",Delete:"\u5220\u9664\u8BD1\u6587",OpenFolder:"\u6D4F\u89C8\u76EE\u5F55"},Placeholders:{SearchPlaceholder:"\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD..."},Filters:{All:"\u5168\u90E8"},Labels:{Author:"\u4F5C\u8005"},Status:{Labels:{pending:"\u7B49\u5F85\u4E2D",processing:"\u5904\u7406\u4E2D",success:"\u5E94\u7528\u6210\u529F",found:"\u5DF2\u53D1\u73B0\u5339\u914D",skipped:"\u5DF2\u8DF3\u8FC7",error:"\u4EFB\u52A1\u5931\u8D25",discovered:"\u5F85\u5BA1\u9605",discovered_new:"\u53D1\u73B0\u65B0\u8BD1\u6587",discovered_update:"\u53D1\u73B0\u7248\u672C\u66F4\u65B0",up_to_date:"\u5DF2\u662F\u6700\u65B0",applied:"\u5DF2\u5E94\u7528",plugin:"\u63D2\u4EF6",theme:"\u4E3B\u9898",DiscoveryNotice:"\u53D1\u73B0\u66F4\u65B0\u65F6\u901A\u77E5",AutoApply:"\u627E\u5230\u5339\u914D\u540E\u81EA\u52A8\u5E94\u7528 (\u4E0D\u63A8\u8350)",SilentMode:"\u5B8C\u5168\u9759\u9ED8\u6A21\u5F0F",MatchStrategy:"\u5339\u914D\u4F18\u9009\u7B56\u7565",MatchStrategies:{comprehensive:"\u7EFC\u5408\u4F18\u9009 (\u63A8\u8350)",version_first:"\u7248\u672C\u6700\u63A5\u8FD1\u4F18\u5148",popularity:"\u793E\u533A\u70ED\u5EA6\u4F18\u5148",latest_update:"\u6700\u65B0\u7FFB\u8BD1\u4F18\u5148"}}},Errors:{Error:"\u9519\u8BEF",ErrorDesc:"\u8BD1\u6587\u89E3\u6790\u5F02\u5E38",FetchCommunityDataFailed:"\u83B7\u53D6\u793E\u533A\u6CE8\u518C\u8868\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC",SyncFailed:"\u4E2D\u5FC3\u5E93\u540C\u6B65\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216 Token \u6743\u9650",InvalidRepo:"\u65E0\u6548\u7684\u4ED3\u5E93\u5730\u5740\uFF0C\u8BF7\u786E\u4FDD\u683C\u5F0F\u4E3A owner/repo"},Notices:{ApplySuccess:"\u7FFB\u8BD1\u5E94\u7528\u6210\u529F",CopySuccess:"Registry JSON \u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",SyncSuccess:"\u4E2D\u5FC3\u5E93\u6CE8\u518C\u8868\u540C\u6B65\u6210\u529F\uFF01"}},Plugins:{TabName:"\u63D2\u4EF6",Actions:{Extract:"\u63D0\u53D6\u8BD1\u6587",OpenSettings:"\u63D2\u4EF6\u8BBE\u7F6E",Reload:"\u91CD\u8F7D\u63D2\u4EF6",GoToEditor:"\u524D\u5F80\u7F16\u8F91\u5668",ContinueApply:"\u575A\u6301\u5E94\u7528"},Placeholders:{SearchPlugins:"\u641C\u7D22\u63D2\u4EF6..."},Filters:{Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6"},Labels:{Auto:"\u81EA\u52A8",Admin:"\u7BA1\u7406",Mtime:"\u6700\u540E\u66F4\u65B0",SupportVer:"\u652F\u6301\u7248\u672C"},Status:{NoPlugins:"\u672A\u53D1\u73B0\u63D2\u4EF6",On:"\u5DF2\u542F\u7528",Off:"\u5DF2\u7981\u7528",Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6",NoTrans:"\u672A\u7FFB\u8BD1",Reloading:"\u91CD\u8F7D\u4E2D..."},Dialogs:{EmptyTranslationTitle:"\u672A\u68C0\u6D4B\u5230\u7FFB\u8BD1\u5185\u5BB9",EmptyTranslationDesc:"\u5F53\u524D\u9009\u62E9\u7684\u7FFB\u8BD1\u6E90\u5C1A\u672A\u8FDB\u884C\u4EFB\u4F55\u5B9E\u8D28\u6027\u7FFB\u8BD1\uFF08\u8BD1\u6587\u4E0E\u539F\u6587\u5B8C\u5168\u4E00\u81F4\uFF09\u3002\u5E94\u7528\u6B64\u6587\u4EF6\u540E\uFF0C\u63D2\u4EF6\u754C\u9762\u8BED\u8A00\u5C06\u4E0D\u4F1A\u53D1\u751F\u4EFB\u4F55\u53D8\u5316\u3002\u5EFA\u8BAE\u60A8\u5148\u5728\u7F16\u8F91\u5668\u4E2D\u5B8C\u6210\u7FFB\u8BD1\u540E\u518D\u5E94\u7528\u3002"},Hints:{NoTransDesc:"\u6682\u65E0\u672C\u5730\u8BED\u8A00\u6570\u636E",ExtractSuccessDesc:"\u5DF2\u751F\u6210\u5F53\u524D\u7248\u672C\u7684\u7FFB\u8BD1\u6A21\u677F"},Errors:{ReloadPluginFailed:"\u63D2\u4EF6\u91CD\u542F\u5931\u8D25: {{error}}",ReloadFailed:"\u63D2\u4EF6\u91CD\u8F7D\u5931\u8D25: {{error}}",PluginNotEnabled:"\u63D2\u4EF6\u672A\u542F\u7528",LoadFailedAfterApply:"\u63D2\u4EF6\u91CD\u8F7D\u5931\u8D25\uFF0C\u53EF\u80FD\u662F\u6E90\u7801\u5B58\u5728\u8FD0\u884C\u65F6\u9519\u8BEF\u3002\u8BF7\u6309 Ctrl+Shift+I \u6253\u5F00\u63A7\u5236\u53F0\u67E5\u770B\u5177\u4F53\u62A5\u9519\u5806\u6808\u3002",SyntaxError:"JavaScript \u8BED\u6CD5\u635F\u574F\uFF0C\u5DF2\u7EC8\u6B62\u5E94\u7528: {{file}}",MainNotFound:"\u672A\u627E\u5230 main.js \u6587\u4EF6",BackupNotFound:"\u5907\u4EFD\u6587\u4EF6\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u8FD8\u539F",PluginProcessFailed:"\u5904\u7406\u63D2\u4EF6 {{id}} \u65F6\u51FA\u9519"},Notices:{ApplyPluginSuccess:"{{id}} \u7FFB\u8BD1\u5E94\u7528\u6210\u529F",ReloadPlugin:"\u51C6\u5907\u91CD\u542F\u63D2\u4EF6: {{id}}",ReloadSuccess:"\u63D2\u4EF6\u91CD\u8F7D\u6210\u529F",ExtractSuccess:"\u63D0\u53D6\u6210\u529F"}},Themes:{TabName:"\u4E3B\u9898",Placeholders:{SearchThemes:"\u641C\u7D22\u4E3B\u9898..."},Labels:{ThemeActive:"\u5F53\u524D\u4E3B\u9898",Auto:"\u81EA\u52A8",Admin:"\u7BA1\u7406",Mtime:"\u6700\u540E\u66F4\u65B0",SupportVer:"\u652F\u6301\u7248\u672C"},Filters:{Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6"},Status:{NoThemes:"\u672A\u53D1\u73B0\u4E3B\u9898",On:"\u5DF2\u542F\u7528",Off:"\u5DF2\u7981\u7528",Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6",NoTrans:"\u672A\u7FFB\u8BD1",Reloading:"\u91CD\u8F7D\u4E2D..."},Dialogs:{EmptyTranslationTitle:"\u672A\u68C0\u6D4B\u5230\u7FFB\u8BD1\u5185\u5BB9",EmptyTranslationDesc:"\u5F53\u524D\u9009\u62E9\u7684\u7FFB\u8BD1\u6E90\u5C1A\u672A\u8FDB\u884C\u4EFB\u4F55\u5B9E\u8D28\u6027\u7FFB\u8BD1\uFF08\u8BD1\u6587\u4E0E\u539F\u6587\u5B8C\u5168\u4E00\u81F4\uFF09\u3002\u5E94\u7528\u6B64\u6587\u4EF6\u540E\uFF0C\u63D2\u4EF6\u754C\u9762\u8BED\u8A00\u5C06\u4E0D\u4F1A\u53D1\u751F\u4EFB\u4F55\u53D8\u5316\u3002\u5EFA\u8BAE\u60A8\u5148\u5728\u7F16\u8F91\u5668\u4E2D\u5B8C\u6210\u7FFB\u8BD1\u540E\u518D\u5E94\u7528\u3002"},Errors:{ThemeCssNotFound:"\u672A\u627E\u5230 theme.css \u6587\u4EF6",NoSettingsBlock:"\u672A\u627E\u5230 @settings \u5757\uFF0C\u65E0\u53EF\u7FFB\u8BD1\u5185\u5BB9",BackupNotFound:"\u5907\u4EFD\u6587\u4EF6\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u8FD8\u539F"},Notices:{ThemeExtractPrefix:"\u63D0\u53D6\u8BD1\u6587",ThemeApplyPrefix:"\u4E3B\u9898\u5E94\u7528",ThemeRestorePrefix:"\u4E3B\u9898\u8FD8\u539F"}},Sources:{TabName:"\u7BA1\u7406",Table:{Name:"\u7FFB\u8BD1\u540D\u79F0/\u63D2\u4EF6",Id:"\u6E90 ID",Origin:"\u6765\u6E90",Mtime:"\u66F4\u65B0\u65F6\u95F4",Type:"\u7C7B\u578B",Actions:"\u64CD\u4F5C"},Status:{NotInstalled:"\u63D2\u4EF6\u7F3A\u5931",ThemeNotInstalled:"\u4E3B\u9898\u7F3A\u5931"},Actions:{Export:"\u5BFC\u51FA",Import:"\u5BFC\u5165",BatchDelete:"\u5220\u9664",SelectUninstalled:"\u5F02\u5E38\u9879",DeleteConfirm:"\u786E\u5B9A\u8981\u5220\u9664\u9009\u4E2D\u7684 {{count}} \u9879\u8BD1\u6587\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u64A4\u9500\u3002",ImportSuccess:"\u6210\u529F\u5BFC\u5165 {{count}} \u9879\u8BD1\u6587",ExportSuccess:"\u8BD1\u6587\u5BFC\u51FA\u6210\u529F",SelectAll:"\u5168\u9009"},Filters:{SearchPlaceholder:"\u641C\u7D22\u7FFB\u8BD1\u6216\u63D2\u4EF6...",OriginLocal:"\u672C\u5730\u63D0\u53D6",OriginCloud:"\u4E91\u7AEF\u4E0B\u8F7D"},Stats:{Total:"\u603B\u8BD1\u6587\u6570",Selected:"\u5DF2\u9009\u4E2D"}},Auto:{TabName:"\u81EA\u52A8\u5316",Title:"\u81EA\u52A8\u5316\u670D\u52A1",Desc:"\u667A\u80FD\u63A2\u6D4B\u53EF\u7528\u7684\u63D2\u4EF6\u7FFB\u8BD1\u5E76\u8FDB\u884C\u5B89\u5168\u5BA1\u9605\u3002",Discovery:{Title:"\u53D1\u73B0\u66F4\u65B0",ReviewAction:"\u5BA1\u9605\u5E76\u5E94\u7528",IgnoreAction:"\u5FFD\u7565\u6B64\u66F4\u65B0",SafetyWarning:"\u5B89\u5168\u63D0\u9192\uFF1A\u6B64\u7FFB\u8BD1\u6765\u81EA\u793E\u533A\u4ED3\u5E93\uFF0C\u5EFA\u8BAE\u5728\u5E94\u7528\u524D\u786E\u8BA4\u6765\u6E90\u53EF\u9760\u6027\u3002",NewSource:"\u65B0\u6765\u6E90 (\u9996\u6B21\u53D1\u73B0)",HashChanged:"\u5185\u5BB9\u5DF2\u53D8\u66F4 (Hash \u4E0D\u4E00\u81F4)",TrustScore:"\u6C49\u5316\u4FE1\u8A89\u8BC4\u5206",ScoreBreakdown:{Title:"\u5339\u914D\u8D28\u91CF\u8BC4\u5206",Version:"\u7248\u672C\u517C\u5BB9",Popularity:"\u793E\u533A\u8BA4\u53EF",Freshness:"\u66F4\u65B0\u9C9C\u6D3B"}},Filters:{Title:"\u4EFB\u52A1\u7B5B\u9009"},Scoping:{Title:"\u63A2\u6D4B\u8303\u56F4"},History:{Title:"\u5B89\u5168\u5BA1\u8BA1\u65E5\u5FD7",Empty:"\u6682\u65E0\u64CD\u4F5C\u8BB0\u5F55",BatchHeader:"\u6267\u884C\u6279\u6B21\uFF1A{{id}}",TriggerDiscovery:"\u540E\u53F0\u63A2\u6D4B",TriggerManual:"\u624B\u52A8\u6267\u884C",TriggerStartup:"\u542F\u52A8\u81EA\u68C0"},Actions:{StartAuto:"\u63A2\u6D4B\u626B\u63CF",ReviewAll:"\u5168\u90E8\u5BA1\u9605\u5E76\u5E94\u7528",OneClickReview:"\u4E00\u952E\u5BA1\u9605"},Modes:{Incremental:"\u589E\u91CF\u63A2\u6D4B",Full:"\u5168\u91CF\u626B\u63CF"},Status:{Analyzing:"\u6B63\u5728\u5206\u6790\u4E91\u7AEF\u4ED3\u5E93...",AutoStarting:"\u6B63\u5728\u542F\u52A8\u5B89\u5168\u63A2\u6D4B...",ScanningInstalled:"\u6B63\u5728\u626B\u63CF\u5DF2\u5B89\u88C5\u9879 ({{count}})...",Running:"\u6B63\u5728\u63A2\u6D4B\u66F4\u65B0...",DiscoveryComplete:"\u63A2\u6D4B\u5B8C\u6210\uFF0C\u53D1\u73B0 {{count}} \u9879\u5F85\u5BA1\u9605",NoLogs:"\u6682\u65E0\u626B\u63CF\u7ED3\u679C\u8BB0\u5F55",AutoRollbacked:"\u8FD0\u884C\u5F02\u5E38\u5DF2\u81EA\u52A8\u56DE\u6EDA",BatchApply:"\u6279\u91CF\u5E94\u7528\u53D1\u73B0",BatchComplete:"\u6279\u91CF\u4EFB\u52A1\u5DF2\u7ED3\u675F: \u6210\u529F {{success}}, \u5931\u8D25 {{fail}}",SkipReasons:{Exclusion:"\u63D2\u4EF6\u5DF2\u52A0\u5165\u6392\u9664\u540D\u5355",NoMatch:"\u6240\u6709\u4FE1\u4EFB\u6E90\u4E2D\u5747\u65E0\u8BE5\u63D2\u4EF6\u8BB0\u5F55",NoVersion:"\u672A\u627E\u5230\u7B26\u5408\u8FC7\u6EE4\u6761\u4EF6\u7684\u6C49\u5316\u7248\u672C"}},QuickSettings:{Title:"\u81EA\u52A8\u5316\u7B56\u7565",AutoApply:"\u81EA\u52A8\u5E94\u7528\u7FFB\u8BD1",DiscoveryNotice:"\u540E\u53F0\u63A2\u6D4B\u4E0E\u901A\u77E5",CheckInterval:"\u63A2\u6D4B\u5468\u671F",Hours:"\u5C0F\u65F6"},Stats:{Health:"\u6C49\u5316\u5065\u5EB7\u5EA6",VaultStatus:"\u6C49\u5316\u72B6\u6001",TotalInstalled:"\u5DF2\u5B89\u88C5\u603B\u6570",AppliedCount:"\u7D2F\u8BA1\u7FFB\u8BD1\u5E94\u7528",CurrentSuccess:"\u672C\u6B21\u6210\u529F",CurrentSkipped:"\u672C\u6B21\u8DF3\u8FC7/\u5931\u8D25",Plugins:"\u63D2\u4EF6",Themes:"\u4E3B\u9898",LastCheckTime:"\u4E0A\u6B21\u68C0\u67E5\uFF1A{{time}}"},Errors:{NoCachedManifest:"\u672A\u627E\u5230\u8BE5\u63D2\u4EF6\u7684\u7F13\u5B58\u6E05\u5355",NoBestMatch:"\u6700\u4F73\u5339\u914D\u5DF2\u4E0D\u53EF\u7528",LocalApplyFailed:"\u672C\u5730\u5E94\u7528\u5931\u8D25",DownloadApplyFailed:"\u4E0B\u8F7D\u6216\u5E94\u7528\u5931\u8D25",BatchApplyFailed:"\u6279\u91CF\u5E94\u7528\u5931\u8D25"},Repos:{Title:"\u53D7\u4FE1\u4EFB\u7684\u4ED3\u5E93",AddPlaceholder:"\u6DFB\u52A0\u4ED3\u5E93 (owner/repo)...",Empty:"\u6682\u65E0\u53D7\u4FE1\u4EFB\u4ED3\u5E93",RemoveConfirm:"\u786E\u5B9A\u79FB\u9664\u8BE5\u4ED3\u5E93\u5417\uFF1F",ScanRegistry:"\u626B\u63CF\u6CE8\u518C\u8868"},Tips:{Title:"\u63D0\u793A",Desc:'\u81EA\u52A8\u5316\u626B\u63CF\u4EC5\u4F1A\u4ECE\u60A8\u4FE1\u4EFB\u7684\u4ED3\u5E93\u4E2D\u68C0\u67E5\u7FFB\u8BD1 Registry\u3002\u786E\u4FDD\u4ED3\u5E93\u5730\u5740\u683C\u5F0F\u4E3A owner/repo\u3002'}},Credits:{TabName:"\u9E23\u8C22",Title:"\u81F4\u8C22\u6240\u6709\u8D21\u732E\u8005",Subtitle:"\u611F\u8C22\u6BCF\u4E00\u4F4D\u4EE5\u4E0D\u540C\u65B9\u5F0F\u4E3A\u672C\u9879\u76EE\u4ED8\u51FA\u52AA\u529B\u7684\u4EBA\u3002",NoData:"\u6682\u672A\u52A0\u8F7D\u5230\u793E\u533A\u521B\u4F5C\u8005\u6570\u636E",StatCreators:"\u4F4D\u521B\u4F5C\u8005",StatStars:"\u4E2A\u661F\u6807",StatTranslations:"\u4EFD\u8BD1\u6587",UnitRepos:"\u4ED3\u5E93",UnitPlugins:"\u63D2\u4EF6",Footer:"\u611F\u8C22\u6240\u6709\u8D21\u732E\u8005\u7684\u65E0\u79C1\u4ED8\u51FA",ComingSoon:"\u6682\u65E0\u6570\u636E\uFF0C\u656C\u8BF7\u671F\u5F85",CatTranslation:"\u7FFB\u8BD1\u8D21\u732E\u8005",CatTranslationDesc:"\u4E3A\u63D2\u4EF6\u4E0E\u4E3B\u9898\u63D0\u4F9B\u591A\u8BED\u8A00\u7FFB\u8BD1\u7684\u793E\u533A\u6210\u5458",CatCode:"\u4EE3\u7801\u8D21\u732E\u8005",CatCodeDesc:"\u4E3A\u9879\u76EE\u63D0\u4F9B\u4EE3\u7801\u8D21\u732E\u7684\u5F00\u53D1\u8005",CatVideo:"\u89C6\u9891\u521B\u4F5C\u8005",CatVideoDesc:"\u5236\u4F5C\u6559\u7A0B\u3001\u4ECB\u7ECD\u89C6\u9891\u7684\u521B\u4F5C\u8005",CatTesting:"\u6D4B\u8BD5\u8D21\u732E\u8005",CatTestingDesc:"\u5E2E\u52A9\u53D1\u73B0\u548C\u53CD\u9988\u95EE\u9898\u7684\u6D4B\u8BD5\u4EBA\u5458",CatSuggestion:"\u5EFA\u8BAE\u8D21\u732E\u8005",CatSuggestionDesc:"\u63D0\u4F9B\u5B9D\u8D35\u610F\u89C1\u4E0E\u5EFA\u8BAE\u7684\u793E\u533A\u6210\u5458",CatSponsor:"\u7231\u53D1\u7535\u6301\u7EED\u8D5E\u52A9",CatSponsorDesc:"\u4E3A\u9879\u76EE\u6301\u7EED\u63D0\u4F9B\u7535\u529B\u7684\u91D1\u4E3B\u7238\u7238"},Admin:{TabName:"\u7BA1\u7406\u5458",Title:"\u793E\u533A\u6570\u636E\u770B\u677F",AdminControl:"\u7BA1\u7406\u5458\u63A7\u5236",Subtitle:"\u6DF1\u5EA6\u76D1\u63A7\u793E\u533A\u52A8\u6001\u4E0E\u6CE8\u518C\u8868\u6743\u91CD\u5206\u914D\u7CFB\u7EDF",SearchPlaceholder:"\u641C\u7D22\u4ED3\u5E93\u5730\u5740\u6216\u4F5C\u8005\u52CB\u7AE0...",PushToCloud:"\u63A8\u9001\u81F3\u4E91\u7AEF",ExportJson:"\u5BFC\u51FA\u6CE8\u518C\u8868 JSON",Stats:{Repos:"\u4ED3\u5E93",Stars:"\u661F\u6807",Contribs:"\u8D21\u732E\u8005",Plugins:"\u63D2\u4EF6",Translations:"\u8BCD\u6761\u7FFB\u8BD1",Commits30d:"30\u5929\u63D0\u4EA4",Langs:"\u6DB5\u76D6\u8BED\u8A00",ActivityIndex:"\u6D3B\u8DC3\u6307\u6570",Forks:"\u6D3E\u751F (Forks)",OpenIssues:"\u5F00\u653E\u8BAE\u9898",LastUpdate:"\u6700\u540E\u63A8\u9001",Size:"\u8D44\u6E90\u5360\u7528"},Leaderboard:{Title:"\u6D3B\u8DC3\u8D21\u732E\u699C",Subtitle:"\u9876\u5C16\u8D21\u732E\u8005\u4E0E\u9AD8\u6D3B\u8DC3\u5EA6\u9879\u76EE"},LanguageDistribution:{Title:"\u8BED\u8A00\u5206\u5E03\u6982\u89C8",TotalTranslations:"{{count}} \u9879\u7FFB\u8BD1"},Management:{Title:"\u4ED3\u5E93\u6CE8\u518C\u8868\u7BA1\u7406",ShowingStats:"\u5F53\u524D\u5C55\u793A {{filtered}} / {{total}} \u4E2A\u4ED3\u5E93",SyncingData:"\u6B63\u5728\u540C\u6B65\u6570\u636E\u5C42...",NoData:"\u5F53\u524D\u8F68\u9053\u672A\u53D1\u73B0\u6570\u636E",NoLicense:"\u65E0\u8BB8\u53EF\u8BC1"},Fields:{AuthorReputation:"\u4F5C\u8005\u58F0\u671B/\u52CB\u7AE0",AuthorReputationPlaceholder:"\u4F8B\u5982\uFF1A\u7FFB\u8BD1\u5DE8\u5320, \u793E\u533A\u65B0\u661F...",RegistryBadges:"\u6CE8\u518C\u8868\u6807\u7B7E (JSON)",RegistryBadgesPlaceholder:'["\u7CBE\u9009", "\u70ED\u95E8"]',FeaturedContext:"\u6DF1\u5EA6\u63A8\u8350\u7406\u7531",FeaturedContextPlaceholder:"\u5C55\u793A\u5728\u4E91\u7AEF\u9996\u9875\u7684\u6DF1\u5EA6\u63A8\u8350\u7406\u7531..."},Controls:{Official:"\u5B98\u65B9\u8BA4\u8BC1",VerifiedNode:"\u5DF2\u9A8C\u8BC1\u8282\u70B9",Featured:"\u7CBE\u9009\u63A8\u8350",HighlightedContent:"\u9AD8\u5149\u5185\u5BB9\u5C55\u793A"},ContributorsManagement:{Title:"\u8D21\u732E\u8005\u7BA1\u7406",PushToCloud:"\u63A8\u9001\u8D21\u732E\u8005",AddNew:"\u6DFB\u52A0\u8D21\u732E\u8005",Name:"\u540D\u79F0",Category:"\u7C7B\u522B",Url:"\u94FE\u63A5 URL",Github:"GitHub \u7528\u6237\u540D",Description:"\u8D21\u732E\u63CF\u8FF0",Add:"\u6DFB\u52A0",RemoveSuccess:"\u5DF2\u79FB\u9664\u8D21\u732E\u8005: {{name}}",AddSuccess:"\u5DF2\u6DFB\u52A0\u8D21\u732E\u8005: {{name}}"}}}});var N8,k8=de(()=>{N8={Titles:{Main:"\u7F16\u8F91\u5668",Sidebar:"\u64CD\u4F5C\u9762\u677F",Files:"\u8D44\u6E90\u7BA1\u7406\u5668",Stats:"\u6761\u76EE\u7EDF\u8BA1",Insert:"\u65B0\u589E\u9879",QuickActions:"\u5FEB\u6377\u64CD\u4F5C",Ai:"AI \u667A\u80FD\u7FFB\u8BD1",Ast:"AST \u7F16\u8F91",Regex:"\u8BED\u6CD5\u6821\u9A8C",Metadata:"\u5143\u6570\u636E",ContextPreview:"\u6E90\u7801\u9884\u89C8"},Labels:{SidebarViewOptions:"\u89C6\u56FE\u9009\u9879",SidebarShowCards:"\u663E\u793A\u5361\u7247",SelectLang:"\u9009\u62E9\u8BED\u8A00",CustomLang:"\u81EA\u5B9A\u4E49\u8BED\u8A00",SelectStyle:"\u9009\u62E9\u98CE\u683C",CustomStyle:"\u81EA\u5B9A\u4E49\u98CE\u683C",PluginId:"\u63D2\u4EF6ID",ThemeName:"\u4E3B\u9898\u540D\u79F0",PathLabel:"\u6587\u4EF6\u8DEF\u5F84",PathPlaceholder:"\u5982\uFF1Astyles.css \u6216 sub/file.js",Name:"\u540D\u79F0",NamePlaceholder:"\u540D\u79F0",Desc:"\u63CF\u8FF0",DescPlaceholder:"\u63CF\u8FF0",Author:"\u4F5C\u8005",Lang:"\u8BED\u8A00",SupportedVer:"\u652F\u6301\u7248\u672C",Ver:"\u7248\u672C",Source:"\u6765\u6E90",SourceCloud:"\u4E91\u7AEF",SourceLocal:"\u672C\u5730",Checksum:"\u6821\u9A8C",BatchSize:"\u6BCF\u6279\u6570\u91CF",Concurrency:"\u5E76\u53D1\u9650\u5236",Timeout:"\u8D85\u65F6 (ms)",Overwrite:"\u8986\u76D6\u73B0\u6709\u8BD1\u6587",ClickToJump:"\u70B9\u51FB\u8DF3\u8F6C\u5230\u8BE5\u884C",RealtimeCheck:"\u5B9E\u65F6\u6821\u9A8C",AutoSave:"\u81EA\u52A8\u4FDD\u5B58",FontSize:"\u5B57\u4F53\u5927\u5C0F",ParenthesesCheck:"\u62EC\u53F7\u5339\u914D",VariableCheck:"\u53D8\u91CF\u6821\u9A8C",PunctuationCheck:"\u6807\u70B9\u68C0\u67E5",ExpectedConsumption:"\u9884\u671F\u6D88\u8017",LineNumber:"\u884C {{line}}"},Actions:{BatchTranslate:"\u5F00\u59CB\u6279\u91CF\u7FFB\u8BD1 ({{count}})",Save:"\u4FDD\u5B58",IncrementalExtract:"\u589E\u91CF\u63D0\u53D6",IncrementalExtractTip:"\u4EC5\u63D0\u53D6\u65B0\u589E\u7FFB\u8BD1\u9879",IncrementalExtractDisabledTip:"\u5F53\u524D\u8BD1\u6587\u5DF2\u5E94\u7528\uFF0C\u65E0\u6CD5\u8FDB\u884C\u589E\u91CF\u63D0\u53D6",OpenFile:"\u6253\u5F00\u5F53\u524D\u6587\u4EF6",OpenFileTip:"\u5728\u5916\u90E8\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u5F53\u524D\u6587\u4EF6",Add:"\u65B0\u589E",DeleteUntranslated:"\u6E05\u7A7A\u672A\u7FFB\u8BD1\u9879",DeleteUntranslatedTip:"\u4E00\u952E\u5220\u9664\u6240\u6709\u5C1A\u672A\u586B\u5199\u8BD1\u6587\u7684\u6761\u76EE",Source:"\u6E90\u7801",Trans:"\u8BD1\u6587",Restore:"\u8FD8\u539F",RestoreAllErrors:"\u8FD8\u539F\u6240\u6709\u5F02\u5E38\u9879",Settings:"\u914D\u7F6E",Diagnose:"\u8BED\u6CD5\u8BCA\u65AD",UnusedDiagnose:"\u5197\u4F59\u8BCA\u65AD",SecurityDiagnose:"\u5B89\u5168\u626B\u63CF",ClearDiagnose:"\u6E05\u9664\u8BCA\u65AD",StartScan:"\u5F00\u59CB\u626B\u63CF",AiFix:"AI \u4FEE\u590D",AiFixTip:"\u8BA9 AI \u5C1D\u8BD5\u4FEE\u590D\u6B64\u8BD1\u6587\u7684\u8BED\u6CD5\u9519\u8BEF",ContextAware:"\u4E0A\u4E0B\u6587\u611F\u77E5",ContextAwareTip:"\u9644\u52A0\u6E90\u7801\u4E0A\u4E0B\u6587\u4EE5\u63D0\u5347\u7FFB\u8BD1\u51C6\u786E\u5EA6"},Stats:{Title:"\u6761\u76EE\u7EDF\u8BA1",Progress:"\u7FFB\u8BD1\u8FDB\u5EA6",Overview:"\u7FFB\u8BD1\u7EDF\u8BA1",TotalItems:"\u603B\u6761\u76EE\u6570",Translated:"\u5DF2\u7FFB\u8BD1\u9879",Untranslated:"\u672A\u7FFB\u8BD1\u9879"},Ast:{Title:"AST \u7F16\u8F91",AddRule:"\u65B0\u589E AST \u89C4\u5219",SelectTypePlaceholder:"\u9009\u62E9\u8282\u70B9\u7C7B\u578B",InputNamePlaceholder:"\u8F93\u5165\u53D8\u91CF\u540D\u6216\u952E\u540D",InputSourcePlaceholder:"\u8F93\u5165\u4EE3\u7801\u539F\u6587",InputTargetPlaceholder:"\u8F93\u5165\u7FFB\u8BD1\u540E\u6587\u672C",DefaultPlaceholder:"\u9ED8\u8BA4\u4E3A\u539F\u6587: {{source}}",NodeVariable:"\u53D8\u91CF\u7533\u660E",NodeAssignment:"\u8D4B\u503C\u8BED\u53E5",NodeProperty:"\u5BF9\u8C61\u5C5E\u6027",NodeCall:"\u65B9\u6CD5\u8C03\u7528",NodeNew:"\u5B9E\u4F8B\u5316"},Regex:{Title:"\u8BED\u6CD5\u6821\u9A8C",Overview:"\u6B63\u5219\u7EDF\u8BA1",TotalItems:"\u5339\u914D\u603B\u6570",Translated:"\u5DF2\u5904\u7406\u9879",Untranslated:"\u5F85\u5904\u7406\u9879",AddRule:"\u65B0\u589E\u6B63\u5219\u89C4\u5219",InputRegexPlaceholder:"\u8F93\u5165\u6B63\u5219\u8868\u8FBE\u5F0F",InputTargetPlaceholder:"\u8F93\u5165\u66FF\u6362\u76EE\u6807",DefaultPlaceholder:"\u9ED8\u8BA4\u4E3A\u539F\u6587: {{source}}"},Table:{EmptyState:"\u6682\u65E0\u7FFB\u8BD1\u6761\u76EE",EmptyStateAst:"\u6CA1\u6709\u627E\u5230\u5339\u914D\u7684 AST \u6761\u76EE",EmptyStateRegex:"\u672A\u53D1\u73B0\u5F85\u6821\u9A8C\u7684\u8BED\u6CD5\u6761\u76EE",ColumnType:"\u7C7B\u578B",ColumnName:"\u540D\u79F0",ColumnSource:"\u539F\u6587",ColumnTarget:"\u8BD1\u6587",ColumnActions:"\u64CD\u4F5C"},Status:{ProcessingBatch:"\u6B63\u5728\u7FFB\u8BD1\u7B2C {{current}}/{{total}} \u6279...",Diagnosing:"\u6B63\u5728\u8FDB\u884C\u8BED\u6CD5\u8BCA\u65AD...",DiagnosingUnused:"\u6B63\u5728\u8FDB\u884C\u5197\u4F59\u8BCA\u65AD...",DiagnosingSecurity:"\u6B63\u5728\u8FDB\u884C\u5B89\u5168\u5BA1\u8BA1...",Applied:"\u5DF2\u5E94\u7528",NotApplied:"\u672A\u5E94\u7528",Empty:"\u6682\u65E0\u6761\u76EE",IssueCount:"\u53D1\u73B0 {{count}} \u4E2A\u95EE\u9898"},Hints:{ExtractSummary:"\u589E\u91CF\u63D0\u53D6\u5B8C\u6210\uFF0C\u65B0\u589E {{count}} \u4E2A\u6761\u76EE",DiagnosisSuccess:"\u8BCA\u65AD\u5B8C\u6210\uFF1A\u672A\u53D1\u73B0\u5BFC\u81F4\u8BED\u6CD5\u9519\u8BEF\u7684\u6761\u76EE",NoItems:"\u65E0\u53EF\u7FFB\u8BD1\u9879",NoNewItems:"\u672A\u53D1\u73B0\u65B0\u7684\u7FFB\u8BD1\u6761\u76EE",SelectItemToPreview:"\u9009\u4E2D\u7FFB\u8BD1\u6761\u76EE\u4EE5\u9884\u89C8\u5176\u5728\u6E90\u7801\u4E2D\u7684\u4F4D\u7F6E",NoSourceCache:"\u5F53\u524D\u6587\u4EF6\u6682\u65E0\u6E90\u7801\u7F13\u5B58\uFF0C\u8BF7\u5148\u8FD0\u884C\u4E00\u6B21\u8BED\u6CD5\u8BCA\u65AD"},Notices:{NoticePrefix:"\u7F16\u8F91\u5668",SuccessAdd:"\u65B0\u589E\u6210\u529F",SuccessAi:"\u7FFB\u8BD1\u6210\u529F",SuccessRestore:"\u8FD8\u539F\u6210\u529F",SuccessDelete:"\u5220\u9664\u6210\u529F",SuccessIncrementalExtract:"\u589E\u91CF\u63D0\u53D6\u5B8C\u6210",DiagnosisSuccess:"\u8BED\u6CD5\u8BCA\u65AD\u901A\u8FC7",ConfirmDeleteUnused:"\u786E\u5B9A\u5220\u9664\u8FD9\u4E9B\u5197\u4F59\u9879\u5417\uFF1F\u8BE5\u64CD\u4F5C\u4E0D\u53EF\u64A4\u9500\u3002",AiFixSuccess:"AI \u4FEE\u590D\u6210\u529F"},Errors:{FailExists:`\u65B0\u589E\u5931\u8D25 -\u8BD1\u6587\u4E2D\u5DF2\u5B58\u5728\u6B64\u5185\u5BB9`,SyntaxErrorTotal:"\u8BCA\u65AD\u5B8C\u6210\uFF1A\u53D1\u73B0 {{count}} \u4E2A\u8BED\u6CD5\u9519\u8BEF",UnusedTotal:"\u8BCA\u65AD\u5B8C\u6210\uFF1A\u53D1\u73B0 {{count}} \u4E2A\u672A\u5339\u914D\u7684\u5197\u4F59\u6761\u76EE",SecurityRiskTotal:"\u5B89\u5168\u9884\u8B66\uFF1A\u53D1\u73B0 {{count}} \u4E2A\u6F5C\u5728\u7684\u5B89\u5168\u98CE\u9669",SyntaxError:"\u57FA\u7840\u8BED\u6CD5\u9519\u8BEF",Unused:"\u5197\u4F59\u9879 (\u672A\u5728\u6E90\u7801\u4E2D\u8BC6\u522B\u5230)",SecurityCritical:"\u4E25\u91CD\u5B89\u5168\u5A01\u80C1",SecurityWarning:"\u53EF\u7591\u884C\u4E3A\u9884\u8B66",BracketMismatch:"\u62EC\u53F7\u914D\u5BF9\u7F3A\u5931",VariableMismatch:"\u53D8\u91CF\u5360\u4F4D\u7B26\u4E22\u5931\u6216\u4E0D\u5339\u914D",SyntaxErrorAst:"AST \u63D0\u53D6\u5931\u8D25",SyntaxErrorRegex:"\u6B63\u5219\u63D0\u53D6\u5931\u8D25",NoMetadata:"\u672A\u627E\u5230\u5143\u6570\u636E\uFF0C\u65E0\u6CD5\u8FDB\u884C\u8BCA\u65AD\u3002",NoManifest:"\u672A\u627E\u5230\u5BF9\u5E94\u6E05\u5355\uFF0C\u65E0\u6CD5\u5B9A\u4F4D\u76EE\u5F55\u3002",NotJs:"\u5F53\u524D\u9009\u62E9\u7684\u6587\u4EF6\u4E0D\u662F .js \u811A\u672C\uFF0C\u6682\u4E0D\u652F\u6301\u8BED\u6CD5\u8BCA\u65AD\u3002",NoBackup:"\u8BCA\u65AD\u5F02\u5E38\uFF1A\u672A\u627E\u5230\u5BF9\u5E94\u7684\u5907\u4EFD\u6587\u4EF6\u3002\u8BF7\u5148\u70B9\u51FB\u4E00\u6B21\u201C\u66FF\u6362\u201D\u4EE5\u521B\u5EFA\u57FA\u51C6\u5907\u4EFD\u3002",SourceError:"\u6E90\u7801\u672C\u8EAB\u5B58\u5728\u8BED\u6CD5\u9519\u8BEF\uFF0C\u65E0\u6CD5\u8FDB\u884C\u8BCA\u65AD\u3002",FileNotFound:"\u6587\u4EF6\u4E0D\u5B58\u5728",SavePathMissing:"\u4FDD\u5B58\u8DEF\u5F84\u4E0D\u5B58\u5728",TotalCount:"\u5171 {{count}} \u9879",AiFixFail:"AI \u4FEE\u590D\u5931\u8D25"},Dialogs:{ConfirmDeletePath:"\u786E\u8BA4\u5220\u9664\u8BE5\u8DEF\u5F84\uFF1F",PromptNewPath:"\u65B0\u589E\u7FFB\u8BD1\u8DEF\u5F84"}}});var _8,L8=de(()=>{_8={Actions:{PublishToCloud:"\u53D1\u5E03\u5230\u4E91\u7AEF",BackupSync:"\u5168\u91CF\u4E91\u7AEF\u5907\u4EFD\u4E0E\u6062\u590D",InitPersonalRepo:"\u521D\u59CB\u5316\u4E2A\u4EBA\u4ED3\u5E93",UpdateTranslation:"\u66F4\u65B0\u7FFB\u8BD1",NewPublish:"\u6DFB\u52A0\u53D1\u5E03",ApplyForCommunity:"\u7533\u8BF7\u52A0\u5165 Obsidian i18n \u7FFB\u8BD1\u793E\u533A\u76EE\u5F55",ViewDiff:"\u5728\u7EBF\u5DEE\u5F02\u5BF9\u6BD4",Add:"\u6DFB\u52A0",Update:"\u66F4\u65B0",Unsubscribe:"\u53D6\u6D88\u8BA2\u9605",CheckAllUpdates:"\u5168\u91CF\u68C0\u67E5\u66F4\u65B0",Recheck:"\u91CD\u65B0\u68C0\u67E5",UpdateAll:"\u4E00\u952E\u66F4\u65B0\u6240\u6709",RegisterCommunity:"\u7533\u8BF7\u52A0\u5165\u793E\u533A\u7D22\u5F15",PublishNew:"\u53D1\u5E03\u65B0\u7FFB\u8BD1",ForceRefresh:"\u5F3A\u5236\u5237\u65B0\u4E91\u7AEF\u72B6\u6001",GoPublish:"\u524D\u5F80\u53D1\u5E03\u7B2C\u4E00\u4E2A\u7FFB\u8BD1",BackToManage:"\u8FD4\u56DE\u7BA1\u7406\u4E2D\u5FC3",CreateRepo:"\u521B\u5EFA\u65B0\u4ED3\u5E93",UseExistingRepo:"\u4F7F\u7528\u5DF2\u6709\u4ED3\u5E93",StartBackup:"\u5F00\u59CB\u5907\u4EFD",StartRestore:"\u5F00\u59CB\u6062\u590D",Download:"\u4E0B\u8F7D",Overwrite:"\u8986\u76D6\u5207\u6362",ClearFilters:"\u6E05\u9664\u6240\u6709\u8FC7\u6EE4\u5668",CreateNewRepo:"\u521B\u5EFA\u65B0\u4ED3\u5E93",Delete:"\u5220\u9664",Logout:"\u9000\u51FA\u767B\u5F55",ResumeLastBackup:"\u6062\u590D\u4E0A\u6B21\u5907\u4EFD"},Status:{Published:"\u5DF2\u53D1\u5E03",Local:"\u672C\u5730",Uploaded:"\u5DF2\u4E0A\u4F20",NotDownloaded:"\u672A\u4E0B\u8F7D",Reviewing:"\u6536\u5F55\u5BA1\u6838\u4E2D",Fetching:"\u72B6\u6001\u83B7\u53D6\u4E2D",Registered:"\u5DF2\u6536\u5F55\u4E8E\u793E\u533A",Unauthorized:"\u672A\u767B\u5F55",UpToDate:"\u6700\u65B0",UpdateAvailable:"\u6709\u66F4\u65B0",SyncWithCloud:"\u4E0E\u4E91\u7AEF\u540C\u6B65",CloudDifferent:"\u672C\u5730\u4E0E\u4E91\u7AEF\u4E0D\u540C",Latest:"\u6700\u65B0",Modified:"\u6709\u4FEE\u6539",RollingBack:"\u56DE\u6EDA\u4E2D...",BackupDone:"\u2728 \u5B8C\u6210",BackupError:"\u274C \u51FA\u9519",UploadingCloud:"\u2601\uFE0F \u4E0A\u4F20\u4E2D...",DownloadingCloud:"\u{1F4E5} \u4E0B\u8F7D\u4E2D...",VerifyingRepo:"\u6B63\u5728\u9A8C\u8BC1\u4ED3\u5E93\u662F\u5426\u5B58\u5728...",InitializingStructure:"\u6B63\u5728\u521D\u59CB\u5316\u4ED3\u5E93\u7ED3\u6784...",GeneratingReadme:"\u6B63\u5728\u751F\u6210 README.md...",Initializing:"\u6B63\u5728\u521D\u59CB\u5316",CreatingRepo:"\u6B63\u5728\u521B\u5EFA\u4E2A\u4EBA\u7FFB\u8BD1\u4ED3\u5E93...",Checking:"\u6B63\u5728\u68C0\u67E5",LoadingRepo:"\u6B63\u5728\u52A0\u8F7D\u4E2A\u4EBA\u4ED3\u5E93\u6570\u636E...",LoadingContent:"\u52A0\u8F7D\u7248\u672C\u5185\u5BB9...",LoadingDiff:"\u6B63\u5728\u52A0\u8F7D\u5E76\u5BF9\u6BD4\u6570\u636E...",UploadingFile:"\u6B63\u5728\u4E0A\u4F20\u7FFB\u8BD1\u6587\u4EF6...",UpdatingIndex:"\u6B63\u5728\u66F4\u65B0\u7D22\u5F15\u6587\u4EF6...",Processing:"\u6B63\u5728\u5904\u7406",PreparingData:"\u6B63\u5728\u51C6\u5907\u5F85\u5907\u4EFD\u6570\u636E...",BulkUploading:"\u6B63\u5728\u6279\u91CF\u4E0A\u4F20 {{count}} \u4E2A\u6587\u4EF6...",UploadingBatch:"\u6B63\u5728\u4E0A\u4F20\u7B2C {{current}}/{{total}} \u6279\u6B21...",UploadingBatchLog:"\u{1F4E4} \u6B63\u5728\u4E0A\u4F20\u7B2C {{current}}/{{total}} \u6279\u6B21 (\u5171 {{count}} \u4E2A\u6587\u4EF6)...",FetchingManifest:"\u6B63\u5728\u83B7\u53D6\u4E91\u7AEF\u6E05\u5355...",ResumingBackup:"\u6B63\u5728\u6062\u590D\u4E0A\u6B21\u4E2D\u65AD\u7684\u5907\u4EFD...",FinalizingLocal:"\u6B63\u5728\u540C\u6B65\u672C\u5730\u5143\u6570\u636E...",Downloading:"\u6B63\u5728\u4E0B\u8F7D\u7FFB\u8BD1: {{title}}...",Done:"\u2728 \u5B8C\u6210",ForkAvailable:"\u6765\u81EA\u5176\u4ED6\u5E93",Cloud:"\u4E91\u7AEF",Unknown:"\u672A\u77E5\u7248\u672C",Ready:"\u5C31\u7EEA",GuestMode:"\u8BBF\u5BA2\u6A21\u5F0F"},Titles:{NewPublish:"\u6DFB\u52A0\u53D1\u5E03",Homepage:"\u4ED3\u5E93\u4E3B\u9875",DiffViewer:"\u7248\u672C\u5DEE\u5F02\u5BF9\u6BD4"},Tabs:{Community:"\u793E\u533A\u76EE\u5F55",Explore:"\u63A2\u7D22\u8D44\u6E90",Manage:"\u7BA1\u7406\u4E2D\u5FC3",Resources:"\u53D1\u5E03\u8D44\u6E90",Readme:"\u4ED3\u5E93\u4ECB\u7ECD",History:"\u5386\u53F2\u7248\u672C",Browse:"\u6D4F\u89C8\u4ED3\u5E93",Updates:"\u53EF\u7528\u66F4\u65B0"},Steps:{SelectType:"\u9009\u62E9\u7FFB\u8BD1\u7C7B\u578B",SelectTarget:"\u9009\u62E9\u76EE\u6807 {{type}}",SelectSource:"\u9009\u62E9\u7FFB\u8BD1\u6E90",CheckFiles:"\u6838\u5BF9\u672C\u5730\u6587\u4EF6",CompleteInfo:"\u5B8C\u5584\u53D1\u5E03\u4FE1\u606F",VerifyAndPublish:"\u6838\u5BF9\u5E76\u53D1\u5E03"},Tips:{ReadmeDefault:"\u6807\u9898\u5C06\u4F5C\u4E3A\u8BE5\u7FFB\u8BD1\u5728\u793E\u533A\u4E2D\u7684\u4E3B\u540D\u79F0\u3002",SelectSourceDesc:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u5E03\u6216\u66F4\u65B0\u7684\u672C\u5730\u7FFB\u8BD1\u6E90\u6587\u4EF6\u3002",BackupToCloud:"\u4E00\u952E\u5907\u4EFD\u5230\u4E91\u7AEF",LocalToGithub:"\u5C06\u672C\u5730\u6240\u6709\u7FFB\u8BD1\u540C\u6B65\u81F3 GitHub",RestoreFromCloud:"\u4E00\u952E\u4ECE\u4E91\u7AEF\u6062\u590D",GithubToLocal:"\u4ECE GitHub \u62C9\u53D6\u6240\u6709\u7FFB\u8BD1\u8986\u76D6\u672C\u5730",GithubRepo:"GitHub \u4ED3\u5E93",BackupDesc:"\u5168\u91CF\u5907\u4EFD\u4F1A\u5C06\u60A8\u672C\u5730\u6240\u6709\u7684\u7FFB\u8BD1\u6E90\u6587\u4EF6\u4E0A\u4F20\u5230\u60A8\u7684 GitHub \u4ED3\u5E93\u4E2D\uFF0C\u5E76\u81EA\u52A8\u66F4\u65B0\u7D22\u5F15\u3002\u5168\u91CF\u6062\u590D\u5219\u4F1A\u5C06\u4E91\u7AEF\u7684\u6700\u65B0\u7248\u672C\u540C\u6B65\u5230\u672C\u5730\u3002",BackupStep1:"\u2022 \u626B\u63CF\u5E76\u6BD4\u8F83\u672C\u5730\u6240\u6709\u7FFB\u8BD1\u6E90",BackupStep2:"\u2022 \u4E0A\u4F20\u6709\u53D8\u52A8\u7684\u6587\u4EF6\u5230 GitHub",BackupStep3:"\u2022 \u81EA\u52A8\u7EF4\u62A4 metadata.json \u7D22\u5F15",RestoreStep1:"\u2022 \u83B7\u53D6\u4E91\u7AEF metadata.json \u5217\u8868",RestoreStep2:"\u2022 \u4E0B\u8F7D\u6240\u6709\u672C\u5730\u7F3A\u5931\u6216\u65E7\u7684\u6587\u4EF6",RestoreStep3:"\u2022 \u81EA\u52A8\u5728\u672C\u5730\u6CE8\u518C\u5E76\u5E94\u7528\u4E0B\u8F7D\u7684\u7FFB\u8BD1",InitRepoDesc:"\u5728 GitHub \u4E0A\u521B\u5EFA\u4E00\u4E2A\u4E13\u95E8\u5B58\u50A8\u7FFB\u8BD1\u6587\u4EF6\u7684\u516C\u5F00\u4ED3\u5E93\uFF0C\u4EE5\u4FBF\u4E8E\u5907\u4EFD\u3001\u5171\u4EAB\u548C\u5728\u4E0D\u540C\u8BBE\u5907\u95F4\u540C\u6B65\u3002\u60A8\u53EF\u4EE5\u4F7F\u7528\u9ED8\u8BA4\u540D\u79F0\u6216\u81EA\u5B9A\u4E49\u540D\u79F0\u3002",UseExistingDesc:"\u5982\u679C\u60A8\u5DF2\u7ECF\u5728 GitHub \u4E0A\u624B\u52A8\u521B\u5EFA\u4E86\u4ED3\u5E93\uFF0C\u8BF7\u8F93\u5165\u5176\u540D\u79F0\u4EE5\u8FDB\u884C\u8FDE\u63A5\u3002\u7A0B\u5E8F\u5C06\u5C1D\u8BD5\u5728\u5176\u4E0A\u521D\u59CB\u5316\u5FC5\u8981\u7684\u76EE\u5F55\u7ED3\u6784\u3002",CheckFailRepo:"\u68C0\u67E5\u4ED3\u5E93 {{address}} \u5931\u8D25",CheckFail:"\u68C0\u67E5\u66F4\u65B0\u5931\u8D25",RepoFormatTip:"\u8BF7\u4F7F\u7528 owner/repo \u683C\u5F0F",NoSelfExplore:"\u4E0D\u80FD\u5728\u63A2\u7D22\u9875\u9762\u6D4F\u89C8\u81EA\u5DF1\u7684\u7FFB\u8BD1\u4ED3\u5E93\uFF0C\u8BF7\u524D\u5F80\u7BA1\u7406\u9875\u9762",NoTranslations:"\u8BE5\u4ED3\u5E93\u6682\u672A\u53D1\u5E03\u4EFB\u4F55\u7FFB\u8BD1\u8D44\u6E90",ManifestNotFound:"\u672A\u627E\u5230 metadata.json \u6216\u6587\u4EF6\u65E0\u6548",FetchFailManifest:"\u83B7\u53D6\u4ED3\u5E93\u6E05\u5355\u5931\u8D25",FetchCommitsFail:"\u83B7\u53D6\u63D0\u4EA4\u5386\u53F2\u5931\u8D25",UpdatedItem:"\u5DF2\u6210\u529F\u66F4\u65B0 {{title}}",AddedAndActive:"\u5DF2\u6DFB\u52A0 {{title}} \u5E76\u8BBE\u4E3A\u5F53\u524D\u6D3B\u52A8\u6E90",AddedSource:"\u5DF2\u6210\u529F\u6DFB\u52A0 {{title}}",DiscoverDesc:"\u8F93\u5165 GitHub \u4ED3\u5E93\u5730\u5740\uFF08\u5982: owner/repo\uFF09\uFF0C\u5373\u53EF\u6D4F\u89C8\u5E76\u4E0B\u8F7D\u5176\u4E2D\u5206\u4EAB\u7684 i18n \u8D44\u6E90\u3002",NoMatchesInRepo:"\u5F53\u524D\u4ED3\u5E93\u4E2D\u6CA1\u6709\u5339\u914D\u8FC7\u6EE4\u6761\u4EF6\u7684\u8D44\u6E90",NoReadme:"\u672A\u627E\u5230 README.md\u6216\u8005\u6587\u4EF6\u4E3A\u7A7A",NoReadmeDesc:"\u8BE5\u4ED3\u5E93\u4F5C\u8005\u5C1A\u672A\u63D0\u4F9B\u4ECB\u7ECD\u6587\u6863",AllLatestDesc:"\u60A8\u8BA2\u9605\u7684\u6240\u6709\u7FFB\u8BD1\u5E93\u5185\u5BB9\u5728\u672C\u5730\u5747\u4E3A\u6700\u65B0\u7248\u672C",SelectHistoryEntry:"\u8BF7\u4ECE\u6211\u7684\u7FFB\u8BD1\u5217\u8868\u4E2D\u9009\u62E9\u4E00\u4E2A\u6761\u76EE\u67E5\u770B\u5386\u53F2",LoadingCommits:"\u6B63\u5728\u83B7\u53D6\u63D0\u4EA4\u5386\u53F2...",NoCommits:"\u8BE5\u6587\u4EF6\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55",RollbackSuccessLocal:"\u56DE\u6EDA\u6210\u529F\uFF0C\u672C\u5730\u6587\u4EF6\u5DF2\u540C\u6B65\u66F4\u65B0",VersionCompareDesc:"\u5BF9\u6BD4\u672C\u5730\u6700\u65B0\u7FFB\u8BD1\u4E0E\u4E91\u7AEF\u7248\u672C\u7684\u5DEE\u5F02",PublishNoticePrefix:"\u53D1\u5E03\u63D0\u4EA4\u5C06\u76F4\u63A5\u63A8\u9001\u5230",PublishNoticeSuffix:"\u4ED3\u5E93\uFF0C\u8BF7\u786E\u4FDD\u60A8\u7684\u6388\u6743\u6709\u6548\u3002"},Labels:{ResourceCenter:"\u8D44\u6E90\u7BA1\u7406\u4E2D\u5FC3",ManageCenter:"\u4E91\u7AEF\u7BA1\u7406\u4E2D\u5FC3",PendingUpdates:"\u5F85\u5904\u7406\u7684\u66F4\u65B0",CloudCentral:"\u4E91\u7AEF\u7FFB\u8BD1\u4E2D\u5FC3",TranslationHistory:"\u7FFB\u8BD1\u5386\u53F2\u7248\u672C",BackupRestore:"\u4E91\u7AEF\u5168\u91CF\u5907\u4EFD / \u6062\u590D",Feedback:"\u53CD\u9988",AccessLimit:"\u8BBF\u95EE\u9650\u5236",Permission:"\u6743\u9650",DefaultRepoDesc:"\u8FD9\u662F\u4E00\u4E2A\u7528\u4E8E\u7FFB\u8BD1 Obsidian \u63D2\u4EF6\u7684\u5171\u5EFA\u4ED3\u5E93\u3002",Followers:"\u5173\u6CE8\u8005 (Followers)",PublicRepos:"\u516C\u5F00\u4ED3\u5E93 (Public Repos)",UploadTypePlugin:"\u63D2\u4EF6\u7FFB\u8BD1",UploadTypePluginDesc:"\u53D1\u5E03\u6216\u66F4\u65B0\u5404\u4E2A\u63D2\u4EF6\u7684 i18n \u8D44\u6E90",UploadTypeTheme:"\u4E3B\u9898\u7FFB\u8BD1",UploadTypeThemeDesc:"\u4E3A Obsidian \u4E3B\u9898\u63D0\u4F9B\u6C49\u5316\u652F\u6301",Target:"\u76EE\u6807 {{type}}",Source:"\u7FFB\u8BD1\u6E90\u6587\u4EF6",TranslationTitle:"\u663E\u793A\u540D\u79F0 (Title)",Version:"\u9002\u7528\u7248\u672C (Version)",Language:"\u8BED\u79CD",Description:"\u8BE6\u7EC6\u63CF\u8FF0 (Description)",LocalFile:"\u672C\u5730\u6587\u4EF6",RepoName:"\u4ED3\u5E93\u540D\u79F0",RepoUrlPrefix:"\u4ED3\u5E93\u9884\u89C8:",RepoDesc:"\u4ED3\u5E93\u7B80\u4ECB",RegistrationLabel:"\u{1F4CB} \u7533\u8BF7\u4FE1\u606F",RepoInfo:"\u4ED3\u5E93\u6982\u51B5",RepoAddress:"\u4ED3\u5E93\u5730\u5740",ManifestFile:"\u7D22\u5F15\u6587\u4EF6",TranslationCountLabel:"\u7FFB\u8BD1\u5305\u6570\u91CF",UnitPlugins:"\u4E2A",LanguagesCovered:"\u6DB5\u76D6\u8BED\u79CD",ReviewHelper:"\u5BA1\u6838\u8F85\u52A9",ReviewerNotes:"\u5BA1\u6838\u89C4\u5219\u8BF4\u660E",ReviewerNote1:"\u4ED3\u5E93\u5FC5\u987B\u5305\u542B\u6709\u6548\u7684 metadata.json",ReviewerNote2:"\u6587\u4EF6\u7ED3\u6784\u9700\u7B26\u5408\u6807\u51C6\uFF08/plugins/ID/zh-CN.json\uFF09",ReviewerNote3:"\u6240\u6709\u4E0A\u4F20\u7684\u6587\u4EF6\u5FC5\u987B\u80FD\u901A\u8FC7\u54C8\u5E0C\u9A8C\u8BC1",CheckManifestData:"\u67E5\u770B\u539F\u59CB manifest \u6570\u636E",IssueAutoGenerated:"\u6B64\u5DE5\u5355\u7531 i18n \u63D2\u4EF6\u81EA\u52A8\u751F\u6210",ApplyRegistration:"\u7533\u8BF7\u6536\u5F55",UpdateReadmeMsg:"chore: update README.md via i18n plugin",RemoveTranslation:"chore: remove translation",DeleteEntry:"chore: delete manifest entry",StatAssets:"\u8D44\u6E90",StatStars:"\u661F\u6807",StatForks:"\u5206\u53C9",StatIssues:"\u53CD\u9988",PublishedResources:"\u5DF2\u53D1\u5E03\u7684\u8D44\u6E90",ReadmeCustomPage:"\u4ED3\u5E93\u4ECB\u7ECD\u9884\u89C8 (README.md)",CloudActions:"\u4E91\u7AEF\u64CD\u4F5C",LocalTranslation:"\u672C\u5730\u7FFB\u8BD1",UnnamedTranslation:"\u672A\u547D\u540D\u7FFB\u8BD1",InitReadmeMsg:"chore: initial repository structure",AddTranslationMsg:"feat: add translation {{title}} for {{plugin}}",UpdateTranslationMsg:"feat: update translation {{title}} for {{plugin}}",UpdateManifestMsg:"chore: update manifest for {{plugin}}",UpdateManifestGlobalMsg:"chore: update metadata.json (global update)",BackupCommitMsg:"backup: {{title}} ({{plugin}})",BulkBackupMsg:"batch backup: {{count}} items synced",BulkBackupMsgBatch:"batch backup: (chunk {{current}}/{{total}})",ViewOnGithubTitle:"\u5728 GitHub \u4E0A\u67E5\u770B {{repo}}",NoReadmeAdded:"\u6682\u65E0 README \u4ECB\u7ECD",NoReadmeAddedDesc:"\u60A8\u53EF\u4EE5\u70B9\u51FB\u53F3\u4E0A\u89D2\u7684\u7F16\u8F91\u6309\u94AE\uFF0C\u4E3A\u60A8\u7684\u7FFB\u8BD1\u5E93\u6DFB\u52A0\u8BE6\u7EC6\u7684\u4ECB\u7ECD\u3001\u4F7F\u7528\u8BF4\u660E\u6216\u8D21\u732E\u6307\u5357\u3002",ViewHistory:"\u67E5\u770B\u5386\u53F2\u7248\u672C",DeleteCloudPkg:"\u4ECE\u4E91\u7AEF\u6C38\u4E45\u5220\u9664\u8FD9\u4E2A\u7FFB\u8BD1\u5305",FetchingResources:"\u6B63\u5728\u83B7\u53D6\u4E91\u7AEF\u8D44\u6E90...",NoRegistry:"\u6682\u65E0\u793E\u533A\u6536\u5F55",NoRegistryDesc:"\u793E\u533A\u76EE\u5F55\u76EE\u524D\u4E3A\u7A7A\uFF0C\u60A8\u53EF\u4EE5\u6210\u4E3A\u7B2C\u4E00\u4E2A\u7533\u8BF7\u52A0\u5165\u7684\u4EBA\uFF01",Leaderboard:"\u6D3B\u8DC3\u8D21\u732E\u699C",TopStars:"\u6700\u9AD8\u4EBA\u6C14\u699C",TopActive:"\u8FD1\u671F\u6D3B\u8DC3\u699C",TopPlugins:"\u9AD8\u4EA7\u4F5C\u8005\u699C",TopAuthors:"\u6D3B\u8DC3\u8BD1\u8005\u699C",Rank1:"\u7B2C\u4E00\u540D",Rank2:"\u7B2C\u4E8C\u540D",Rank3:"\u7B2C\u4E09\u540D",LeaderboardTip:"\u6392\u884C\u699C\u6570\u636E\u6BCF 24 \u5C0F\u65F6\u81EA\u52A8\u66F4\u65B0\u4E00\u6B21",DiscoverTranslations:"\u53D1\u73B0\u4E91\u7AEF\u7FFB\u8BD1\u5E93",SubscriptionRepo:"\u4E2A\u5DF2\u6536\u5F55\u4ED3\u5E93",ExploreThisRepo:"\u6D4F\u89C8\u6B64\u4ED3\u5E93\u8D44\u6E90",NoDesc:"\u6682\u65E0\u63CF\u8FF0",SubscriptionList:"\u8BA2\u9605\u5217\u8868",WaitingFetch:"\u7B49\u5F85\u83B7\u53D6...",ViewOnGithub:"\u5728 GitHub \u4E0A\u67E5\u770B {{repo}}",PleaseWait:"\u6B63\u5728\u52A0\u8F7D\uFF0C\u8BF7\u7A0D\u5019...",SourceFrom:"\u8D44\u6E90\u6765\u6E90",Commits:"\u63D0\u4EA4\u8BB0\u5F55",VersionPreview:"\u7248\u672C\u5185\u5BB9\u9884\u89C8",SelectCommitToPreview:"\u8BF7\u5728\u5DE6\u4FA7\u9009\u62E9\u4E00\u4E2A\u7248\u672C\u8FDB\u884C\u9884\u89C8",RollbackToVersion:"\u56DE\u6EDA\u5230\u6B64\u7248\u672C",RollbackTranslationMsg:"\u56DE\u6EDA\u7FFB\u8BD1: {{plugin}} \u5230\u7248\u672C {{sha}}",UpdateManifestRollbackMsg:"\u540C\u6B65\u56DE\u6EDA manifest: {{plugin}}",Added:"\u65B0\u589E",Deleted:"\u79FB\u9664",Old:"\u65E7\u503C",New:"\u65B0\u503C",TotalDiffs:"\u5171\u53D1\u73B0 {{count}} \u5904\u5DEE\u5F02",ShowingCount:" (\u5DF2\u8FC7\u6EE4\u663E\u793A {{count}} \u5904)",FileSize:"\u6587\u4EF6\u5927\u5C0F",ContentHash:"\u5185\u5BB9\u6307\u7EB9",ReportIssue:"\u62A5\u544A\u95EE\u9898",IssueTemplateBody:"\u53D1\u73B0 {{plugin}} \u7684\u7FFB\u8BD1\u5B58\u5728\u95EE\u9898...",SupportedVersions:"\u652F\u6301\u7248\u672C\u53F7",TotalTranslations:"\u5168\u5C40\u603B\u7FFB\u8BD1\u6570",TotalContributors:"\u5168\u5C40\u603B\u8D21\u732E\u8005",TotalStars:"\u661F\u6807\u603B\u8BA1",LocalResource:"\u672C\u5730\u5DF2\u5B89\u88C5\u8D44\u6E90",Official:"\u5B98\u65B9\u63A8\u8350",Featured:"\u793E\u533A\u7CBE\u9009",RecommendReason:"\u63A8\u8350\u7406\u7531",MasterTranslator:"\u7FFB\u8BD1\u5DE8\u5320",RisingStar:"\u793E\u533A\u65B0\u661F",LegendaryRepo:"\u4E07\u4F17\u77A9\u76EE"},Placeholders:{RepoName:"\u4F8B\u5982: my-obsidian-i18n-resources",SelectTarget:"\u70B9\u51FB\u9009\u62E9\u76EE\u6807 {{type}}...",InputRepoPlaceholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u8DEF\u5F84 (owner/repo)",SelectSource:"\u8BF7\u9009\u62E9\u672C\u5730\u6E90...",SearchPublished:"\u641C\u7D22\u5DF2\u53D1\u5E03\u7684\u7FFB\u8BD1 (\u63D2\u4EF6 ID \u6216\u6807\u9898)...",ReadmeEdit:"\u53EF\u652F\u6301\u6807\u51C6\u7684 Markdown \u8BED\u6CD5...",SearchRepo:"\u641C\u7D22\u4ED3\u5E93\u3001\u4F5C\u8005\u6216\u63CF\u8FF0...",Repo:"GitHub \u4ED3\u5E93 (owner/repo)",SearchPlugins:"\u5FEB\u6377\u641C\u7D22\u5F53\u524D\u5217\u8868...",SearchDiff:"\u641C\u7D22\u5DEE\u5F02\u8BB0\u5F55..."},Dialogs:{ConfirmUpdateAll:"\u786E\u5B9A\u8981\u66F4\u65B0\u8FD9 {{count}} \u4E2A\u7FFB\u8BD1\u5417\uFF1F",ConfirmOverwrite:`\u68C0\u6D4B\u5230\u672C\u5730\u5DF2\u5B58\u5728 {{owner}} \u7684\u540C\u6E90\u7FFB\u8BD1\u5305\u3002 +var Tse=Object.create;var WT=Object.defineProperty;var wse=Object.getOwnPropertyDescriptor;var Cse=Object.getOwnPropertyNames;var Ese=Object.getPrototypeOf,Pse=Object.prototype.hasOwnProperty;var de=(e,t)=>()=>(e&&(t=e(e=0)),t);var ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qb=(e,t)=>{for(var r in t)WT(e,r,{get:t[r],enumerable:!0})},u5=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Cse(t))!Pse.call(e,n)&&n!==r&&WT(e,n,{get:()=>t[n],enumerable:!(a=wse(t,n))||a.enumerable});return e};var I=(e,t,r)=>(r=e!=null?Tse(Ese(e)):{},u5(t||!e||!e.__esModule?WT(r,"default",{value:e,enumerable:!0}):r,e)),Ase=e=>u5(WT({},"__esModule",{value:!0}),e);var d5=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Ys=(e,t,r)=>(d5(e,t,"read from private field"),r?r.call(e):t.get(e)),f5=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},SI=(e,t,r,a)=>(d5(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r);function Bse(){let e=[],t=Object.create(null),r;return t.get=(a,n)=>(r?.revoke?.(),n===P5?e:(e.push(n),r=Proxy.revocable(a,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}function QT(e,t){let{[P5]:r}=e(Bse());return r.join(t?.keySeparator??".")}var Zt,Hb,p5,Ise,Nse,m5,h5,$b,g5,Lse,YT,Rse,C5,lg,kse,Mse,CI,Dse,_se,Ose,EI,Gb,Fse,cg,xc,ug,JT,E5,P5,y5,TI,dg,ZT,x5,b5,PI,v5,wI,ew,Use,S5,jse,AI,zse,II,T5,w5,XT,Vse,Xp,Rs,iJe,oJe,lJe,cJe,uJe,dJe,fJe,pJe,mJe,hJe,gJe,yJe,xJe,bJe,NI=de(()=>{Zt=e=>typeof e=="string",Hb=()=>{let e,t,r=new Promise((a,n)=>{e=a,t=n});return r.resolve=e,r.reject=t,r},p5=e=>e==null?"":""+e,Ise=(e,t,r)=>{e.forEach(a=>{t[a]&&(r[a]=t[a])})},Nse=/###/g,m5=e=>e&&e.indexOf("###")>-1?e.replace(Nse,"."):e,h5=e=>!e||Zt(e),$b=(e,t,r)=>{let a=Zt(t)?t.split("."):t,n=0;for(;n{let{obj:a,k:n}=$b(e,t,Object);if(a!==void 0||t.length===1){a[n]=r;return}let s=t[t.length-1],i=t.slice(0,t.length-1),o=$b(e,i,Object);for(;o.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),o=$b(e,i,Object),o?.obj&&typeof o.obj[`${o.k}.${s}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=r},Lse=(e,t,r,a)=>{let{obj:n,k:s}=$b(e,t,Object);n[s]=n[s]||[],n[s].push(r)},YT=(e,t)=>{let{obj:r,k:a}=$b(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,a))return r[a]},Rse=(e,t,r)=>{let a=YT(e,r);return a!==void 0?a:YT(t,r)},C5=(e,t,r)=>{for(let a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?Zt(e[a])||e[a]instanceof String||Zt(t[a])||t[a]instanceof String?r&&(e[a]=t[a]):C5(e[a],t[a],r):e[a]=t[a]);return e},lg=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),kse={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Mse=e=>Zt(e)?e.replace(/[&<>"'\/]/g,t=>kse[t]):e,CI=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let r=this.regExpMap.get(t);if(r!==void 0)return r;let a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}},Dse=[" ",",","?","!",";"],_se=new CI(20),Ose=(e,t,r)=>{t=t||"",r=r||"";let a=Dse.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(a.length===0)return!0;let n=_se.getRegExp(`(${a.map(i=>i==="?"?"\\?":i).join("|")})`),s=!n.test(e);if(!s){let i=e.indexOf(r);i>0&&!n.test(e.substring(0,i))&&(s=!0)}return s},EI=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let a=t.split(r),n=e;for(let s=0;s-1&&le?.replace("_","-"),Fse={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},cg=class{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||Fse,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,a,n){return n&&!this.debug?null:(Zt(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new cg(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new cg(this.logger,t)}},xc=new cg,ug=class{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let n=this.observers[a].get(r)||0;this.observers[a].set(r,n+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([n,s])=>{for(let i=0;i{for(let i=0;i-1&&this.options.ns.splice(r,1)}getResource(t,r,a,n={}){let s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,i=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure,o;t.indexOf(".")>-1?o=t.split("."):(o=[t,r],a&&(Array.isArray(a)?o.push(...a):Zt(a)&&s?o.push(...a.split(s)):o.push(a)));let l=YT(this.data,o);return!l&&!r&&!a&&t.indexOf(".")>-1&&(t=o[0],r=o[1],a=o.slice(2).join(".")),l||!i||!Zt(a)?l:EI(this.data?.[t]?.[r],a,s)}addResource(t,r,a,n,s={silent:!1}){let i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=[t,r];a&&(o=o.concat(i?a.split(i):a)),t.indexOf(".")>-1&&(o=t.split("."),n=r,r=o[1]),this.addNamespaces(r),g5(this.data,o,n),s.silent||this.emit("added",t,r,a,n)}addResources(t,r,a,n={silent:!1}){for(let s in a)(Zt(a[s])||Array.isArray(a[s]))&&this.addResource(t,r,s,a[s],{silent:!0});n.silent||this.emit("added",t,r,a)}addResourceBundle(t,r,a,n,s,i={silent:!1,skipCopy:!1}){let o=[t,r];t.indexOf(".")>-1&&(o=t.split("."),n=a,a=r,r=o[1]),this.addNamespaces(r);let l=YT(this.data,o)||{};i.skipCopy||(a=JSON.parse(JSON.stringify(a))),n?C5(l,a,s):l={...l,...a},g5(this.data,o,l),i.silent||this.emit("added",t,r,a)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(n=>r[n]&&Object.keys(r[n]).length>0)}toJSON(){return this.data}},E5={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,a,n){return e.forEach(s=>{t=this.processors[s]?.process(t,r,a,n)??t}),t}},P5=Symbol("i18next/PATH_KEY");y5={},TI=e=>!Zt(e)&&typeof e!="boolean"&&typeof e!="number",dg=class extends ug{constructor(t,r={}){super(),Ise(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xc.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){let a={...r};if(t==null)return!1;let n=this.resolve(t,a);if(n?.res===void 0)return!1;let s=TI(n.res);return!(a.returnObjects===!1&&s)}extractFromKey(t,r){let a=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");let n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ns||this.options.defaultNS||[],i=a&&t.indexOf(a)>-1,o=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Ose(t,a,n);if(i&&!o){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Zt(s)?[s]:s};let c=t.split(a);(a!==n||a===n&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(n)}return{key:t,namespaces:Zt(s)?[s]:s}}translate(t,r,a){let n=typeof r=="object"?{...r}:r;if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";typeof t=="function"&&(t=QT(t,{...this.options,...n})),Array.isArray(t)||(t=[String(t)]);let s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],n),c=l[l.length-1],u=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");let d=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return f?s?{res:`${c}${u}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${u}${o}`:s?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o;let p=this.resolve(t,n),m=p?.res,h=p?.usedKey||o,x=p?.exactUsedKey||o,g=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,S=n.count!==void 0&&!Zt(n.count),w=dg.hasDefaultValue(n),P=S?this.pluralResolver.getSuffix(d,n.count,n):"",C=n.ordinal&&S?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",N=S&&!n.ordinal&&n.count===0,R=N&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${P}`]||n[`defaultValue${C}`]||n.defaultValue,O=m;v&&!m&&w&&(O=R);let D=TI(O),W=Object.prototype.toString.apply(O);if(v&&O&&D&&g.indexOf(W)<0&&!(Zt(y)&&Array.isArray(O))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let J=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,O,{...n,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(p.res=J,p.usedParams=this.getUsedParamsDetails(n),p):J}if(i){let J=Array.isArray(O),me=J?[]:{},Z=J?x:h;for(let q in O)if(Object.prototype.hasOwnProperty.call(O,q)){let V=`${Z}${i}${q}`;w&&!m?me[q]=this.translate(V,{...n,defaultValue:TI(R)?R[q]:void 0,joinArrays:!1,ns:l}):me[q]=this.translate(V,{...n,joinArrays:!1,ns:l}),me[q]===V&&(me[q]=O[q])}m=me}}else if(v&&Zt(y)&&Array.isArray(m))m=m.join(y),m&&(m=this.extendTranslation(m,t,n,a));else{let J=!1,me=!1;!this.isValidLookup(m)&&w&&(J=!0,m=R),this.isValidLookup(m)||(me=!0,m=o);let q=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&me?void 0:m,V=w&&R!==m&&this.options.updateMissing;if(me||J||V){if(this.logger.log(V?"updateKey":"missingKey",d,c,o,V?R:m),i){let ee=this.resolve(o,{...n,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let L=[],k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let ee=0;ee{let ge=w&&ae!==m?ae:q;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,c,ie,ge,V,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ee,c,ie,ge,V,n),this.emit("missingKey",ee,c,ie,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?L.forEach(ee=>{let ie=this.pluralResolver.getSuffixes(ee,n);N&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&ie.push(`${this.options.pluralSeparator}zero`),ie.forEach(ae=>{_([ee],o+ae,n[`defaultValue${ae}`]||R)})}):_(L,o,R))}m=this.extendTranslation(m,t,n,p,a),me&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${c}${u}${o}`),(me||J)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${o}`:o,J?m:void 0,n))}return s?(p.res=m,p.usedParams=this.getUsedParamsDetails(n),p):m}extendTranslation(t,r,a,n,s){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});let l=Zt(t)&&(a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(l){let d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let u=a.replace&&!Zt(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,a.lng||this.language||n.usedLng,a),l){let d=t.match(this.interpolator.nestingRegexp),f=d&&d.length;cs?.[0]===d[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${r[0]}`),null):this.translate(...d,r),a)),a.interpolation&&this.interpolator.reset()}let i=a.postProcess||this.options.postProcess,o=Zt(i)?[i]:i;return t!=null&&o?.length&&a.applyPostProcessor!==!1&&(t=E5.handle(o,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,r={}){let a,n,s,i,o;return Zt(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(a))return;let c=this.extractFromKey(l,r),u=c.key;n=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let f=r.count!==void 0&&!Zt(r.count),p=f&&!r.ordinal&&r.count===0,m=r.context!==void 0&&(Zt(r.context)||typeof r.context=="number")&&r.context!=="",h=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(x=>{this.isValidLookup(a)||(o=x,!y5[`${h[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(y5[`${h[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(g=>{if(this.isValidLookup(a))return;i=g;let y=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(y,u,g,x,r);else{let S;f&&(S=this.pluralResolver.getSuffix(g,r.count,r));let w=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(r.ordinal&&S.indexOf(P)===0&&y.push(u+S.replace(P,this.options.pluralSeparator)),y.push(u+S),p&&y.push(u+w)),m){let C=`${u}${this.options.contextSeparator||"_"}${r.context}`;y.push(C),f&&(r.ordinal&&S.indexOf(P)===0&&y.push(C+S.replace(P,this.options.pluralSeparator)),y.push(C+S),p&&y.push(C+w))}}let v;for(;v=y.pop();)this.isValidLookup(a)||(s=v,a=this.getResource(g,x,v,r))}))})}),{res:a,usedKey:n,exactUsedKey:s,usedLng:i,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,a,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,r,a,n):this.resourceStore.getResource(t,r,a,n)}getUsedParamsDetails(t={}){let r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!Zt(t.replace),n=a?t.replace:t;if(a&&typeof t.count<"u"&&(n.count=t.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!a){n={...n};for(let s of r)delete n[s]}return n}static hasDefaultValue(t){let r="defaultValue";for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&r===a.substring(0,r.length)&&t[a]!==void 0)return!0;return!1}},ZT=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xc.create("languageUtils")}getScriptPartFromCode(t){if(t=Gb(t),!t||t.indexOf("-")<0)return null;let r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Gb(t),!t||t.indexOf("-")<0)return t;let r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(Zt(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(a=>{if(r)return;let n=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(n))&&(r=n)}),!r&&this.options.supportedLngs&&t.forEach(a=>{if(r)return;let n=this.getScriptPartFromCode(a);if(this.isSupportedCode(n))return r=n;let s=this.getLanguagePartFromCode(a);if(this.isSupportedCode(s))return r=s;r=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),Zt(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let a=t[r];return a||(a=t[this.getScriptPartFromCode(r)]),a||(a=t[this.formatLanguageCode(r)]),a||(a=t[this.getLanguagePartFromCode(r)]),a||(a=t.default),a||[]}toResolveHierarchy(t,r){let a=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),n=[],s=i=>{i&&(this.isSupportedCode(i)?n.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Zt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Zt(t)&&s(this.formatLanguageCode(t)),a.forEach(i=>{n.indexOf(i)<0&&s(this.formatLanguageCode(i))}),n}},x5={zero:0,one:1,two:2,few:3,many:4,other:5},b5={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},PI=class{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=xc.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){let a=Gb(t==="dev"?"en":t),n=r.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:a,type:n});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(a,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),b5;if(!t.match(/-|_/))return b5;let l=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(l,r)}return this.pluralRulesCache[s]=i,i}needsPlural(t,r={}){let a=this.getRule(t,r);return a||(a=this.getRule("dev",r)),a?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,r,a={}){return this.getSuffixes(t,a).map(n=>`${r}${n}`)}getSuffixes(t,r={}){let a=this.getRule(t,r);return a||(a=this.getRule("dev",r)),a?a.resolvedOptions().pluralCategories.sort((n,s)=>x5[n]-x5[s]).map(n=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(t,r,a={}){let n=this.getRule(t,a);return n?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${n.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,a))}},v5=(e,t,r,a=".",n=!0)=>{let s=Rse(e,t,r);return!s&&n&&Zt(r)&&(s=EI(e,r,a),s===void 0&&(s=EI(t,r,a))),s},wI=e=>e.replace(/\$/g,"$$$$"),ew=class{constructor(t={}){this.logger=xc.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:r,escapeValue:a,useRawValueToEscape:n,prefix:s,prefixEscaped:i,suffix:o,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:h,nestingOptionsSeparator:x,maxReplaces:g,alwaysFormat:y}=t.interpolation;this.escape=r!==void 0?r:Mse,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=s?lg(s):i||"{{",this.suffix=o?lg(o):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?lg(f):p||lg("$t("),this.nestingSuffix=m?lg(m):h||lg(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=g||1e3,this.alwaysFormat=y!==void 0?y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(r,a)=>r?.source===a?(r.lastIndex=0,r):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,a,n){let s,i,o,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(p.indexOf(this.formatSeparator)<0){let g=v5(r,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,a,{...n,...r,interpolationkey:p}):g}let m=p.split(this.formatSeparator),h=m.shift().trim(),x=m.join(this.formatSeparator).trim();return this.format(v5(r,l,h,this.options.keySeparator,this.options.ignoreJSONStructure),x,a,{...n,...r,interpolationkey:h})};this.resetRegExp();let u=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>wI(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?wI(this.escape(p)):wI(p)}].forEach(p=>{for(o=0;s=p.regex.exec(t);){let m=s[1].trim();if(i=c(m),i===void 0)if(typeof u=="function"){let x=u(t,s,n);i=Zt(x)?x:""}else if(n&&Object.prototype.hasOwnProperty.call(n,m))i="";else if(d){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),i="";else!Zt(i)&&!this.useRawValueToEscape&&(i=p5(i));let h=p.safeValue(i);if(t=t.replace(s[0],h),d?(p.regex.lastIndex+=i.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,r,a={}){let n,s,i,o=(l,c)=>{let u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;let d=l.split(new RegExp(`${u}[ ]*{`)),f=`{${d[1]}`;l=d[0],f=this.interpolate(f,i);let p=f.match(/'/g),m=f.match(/"/g);((p?.length??0)%2===0&&!m||m.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),c&&(i={...c,...i})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,h),`${l}${u}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;n=this.nestingRegexp.exec(t);){let l=[];i={...a},i=i.replace&&!Zt(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(c!==-1&&(l=n[1].slice(c).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),n[1]=n[1].slice(0,c)),s=r(o.call(this,n[1].trim(),i),i),s&&n[0]===t&&!Zt(s))return s;Zt(s)||(s=p5(s)),s||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),s=""),l.length&&(s=l.reduce((u,d)=>this.format(u,d,a.lng,{...a,interpolationkey:n[1].trim()}),s.trim())),t=t.replace(n[0],s),this.regexp.lastIndex=0}return t}},Use=e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let a=e.split("(");t=a[0].toLowerCase().trim();let n=a[1].substring(0,a[1].length-1);t==="currency"&&n.indexOf(":")<0?r.currency||(r.currency=n.trim()):t==="relativetime"&&n.indexOf(":")<0?r.range||(r.range=n.trim()):n.split(";").forEach(i=>{if(i){let[o,...l]=i.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=o.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},S5=e=>{let t={};return(r,a,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={...s,[n.interpolationkey]:void 0});let i=a+JSON.stringify(s),o=t[i];return o||(o=e(Gb(a),n),t[i]=o),o(r)}},jse=e=>(t,r,a)=>e(Gb(r),a)(t),AI=class{constructor(t={}){this.logger=xc.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";let a=r.cacheInBuiltFormats?S5:jse;this.formats={number:a((n,s)=>{let i=new Intl.NumberFormat(n,{...s});return o=>i.format(o)}),currency:a((n,s)=>{let i=new Intl.NumberFormat(n,{...s,style:"currency"});return o=>i.format(o)}),datetime:a((n,s)=>{let i=new Intl.DateTimeFormat(n,{...s});return o=>i.format(o)}),relativetime:a((n,s)=>{let i=new Intl.RelativeTimeFormat(n,{...s});return o=>i.format(o,s.range||"day")}),list:a((n,s)=>{let i=new Intl.ListFormat(n,{...s});return o=>i.format(o)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=S5(r)}format(t,r,a,n={}){let s=r.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(o=>o.indexOf(")")>-1)){let o=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,o)].join(this.formatSeparator)}return s.reduce((o,l)=>{let{formatName:c,formatOptions:u}=Use(l);if(this.formats[c]){let d=o;try{let f=n?.formatParams?.[n.interpolationkey]||{},p=f.locale||f.lng||n.locale||n.lng||a;d=this.formats[c](o,p,{...u,...n,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return o},t)}},zse=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},II=class extends ug{constructor(t,r,a,n={}){super(),this.backend=t,this.store=r,this.services=a,this.languageUtils=a.languageUtils,this.options=n,this.logger=xc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(a,n.backend,n)}queueLoad(t,r,a,n){let s={},i={},o={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{let f=`${c}|${d}`;!a.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,u=!1,i[f]===void 0&&(i[f]=!0),s[f]===void 0&&(s[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(o[c]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(t,r,a){let n=t.split("|"),s=n[0],i=n[1];r&&this.emit("failedLoading",s,i,r),!r&&a&&this.store.addResourceBundle(s,i,a,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&a&&(this.state[t]=0);let o={};this.queue.forEach(l=>{Lse(l.loaded,[s],i),zse(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{o[c]||(o[c]={});let u=l.loaded[c];u.length&&u.forEach(d=>{o[c][d]===void 0&&(o[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(t,r,a,n=0,s=this.retryTimeout,i){if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:a,tried:n,wait:s,callback:i});return}this.readingCalls++;let o=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&n{this.read.call(this,t,r,a,n+1,s*2,i)},s);return}i(c,u)},l=this.backend[a].bind(this.backend);if(l.length===2){try{let c=l(t,r);c&&typeof c.then=="function"?c.then(u=>o(null,u)).catch(o):o(null,c)}catch(c){o(c)}return}return l(t,r,o)}prepareLoading(t,r,a={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();Zt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Zt(r)&&(r=[r]);let s=this.queueLoad(t,r,a,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,a){this.prepareLoading(t,r,{},a)}reload(t,r,a){this.prepareLoading(t,r,{reload:!0},a)}loadOne(t,r=""){let a=t.split("|"),n=a[0],s=a[1];this.read(n,s,"read",void 0,void 0,(i,o)=>{i&&this.logger.warn(`${r}loading namespace ${s} for language ${n} failed`,i),!i&&o&&this.logger.log(`${r}loaded namespace ${s} for language ${n}`,o),this.loaded(t,i,o)})}saveMissing(t,r,a,n,s,i={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${a}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend?.create){let l={...i,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,a,n,l):u=c(t,r,a,n),u&&typeof u.then=="function"?u.then(d=>o(null,d)).catch(o):o(null,u)}catch(u){o(u)}else c(t,r,a,n,o,l)}!t||!t[0]||this.store.addResource(t[0],r,a,n)}}},T5=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Zt(e[1])&&(t.defaultValue=e[1]),Zt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let r=e[3]||e[2];Object.keys(r).forEach(a=>{t[a]=r[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),w5=e=>(Zt(e.ns)&&(e.ns=[e.ns]),Zt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Zt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),XT=()=>{},Vse=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})},Xp=class extends ug{constructor(t={},r){if(super(),this.options=w5(t),this.services={},this.logger=xc,this.modules={external:[]},Vse(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(Zt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let a=T5();this.options={...a,...this.options,...w5(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler);let n=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?xc.init(n(this.modules.logger),this.options):xc.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=AI;let u=new ZT(this.options);this.store=new JT(this.options.resources,this.options);let d=this.services;d.logger=xc,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new PI(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),c&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=n(c),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new ew(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new II(n(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(p,...m)=>{this.emit(p,...m)}),this.modules.languageDetector&&(d.languageDetector=n(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=n(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new dg(this.services,this.options),this.translator.on("*",(p,...m)=>{this.emit(p,...m)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=XT),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...u)=>this.store[c](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...u)=>(this.store[c](...u),this)});let o=Hb(),l=()=>{let c=(u,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(d),r(u,d)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(t,r=XT){let a=r,n=Zt(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();let s=[],i=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>i(l)),this.options.preload?.forEach?.(o=>i(o)),this.services.backendConnector.load(s,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(o)})}else a(null)}reloadResources(t,r,a){let n=Hb();return typeof t=="function"&&(a=t,t=void 0),typeof r=="function"&&(a=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),a||(a=XT),this.services.backendConnector.reload(t,r,s=>{n.resolve(),a(s)}),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&E5.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;let a=Hb();this.emit("languageChanging",t);let n=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},s=(o,l)=>{l?this.isLanguageChangingTo===t&&(n(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,a.resolve((...c)=>this.t(...c)),r&&r(o,(...c)=>this.t(...c))},i=o=>{!t&&!o&&this.services.languageDetector&&(o=[]);let l=Zt(o)?o:o&&o[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Zt(o)?[o]:o);c&&(this.language||n(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,u=>{s(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t),a}getFixedT(t,r,a){let n=(s,i,...o)=>{let l;typeof i!="object"?l=this.options.overloadTranslationOptionHandler([s,i].concat(o)):l={...i},l.lng=l.lng||n.lng,l.lngs=l.lngs||n.lngs,l.ns=l.ns||n.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||a||n.keyPrefix);let c=this.options.keySeparator||".",u;return l.keyPrefix&&Array.isArray(s)?u=s.map(d=>(typeof d=="function"&&(d=QT(d,{...this.options,...i})),`${l.keyPrefix}${c}${d}`)):(typeof s=="function"&&(s=QT(s,{...this.options,...i})),u=l.keyPrefix?`${l.keyPrefix}${c}${s}`:s),this.t(u,l)};return Zt(t)?n.lng=t:n.lngs=t,n.ns=r,n.keyPrefix=a,n}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let a=r.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;let i=(o,l)=>{let c=this.services.backendConnector.state[`${o}|${l}`];return c===-1||c===0||c===2};if(r.precheck){let o=r.precheck(this,i);if(o!==void 0)return o}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(a,t)&&(!n||i(s,t)))}loadNamespaces(t,r){let a=Hb();return this.options.ns?(Zt(t)&&(t=[t]),t.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{a.resolve(),r&&r(n)}),a):(r&&r(),Promise.resolve())}loadLanguages(t,r){let a=Hb();Zt(t)&&(t=[t]);let n=this.options.preload||[],s=t.filter(i=>n.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=n.concat(s),this.loadResources(i=>{a.resolve(),r&&r(i)}),a):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let n=new Intl.Locale(t);if(n&&n.getTextInfo){let s=n.getTextInfo();if(s&&s.direction)return s.direction}}catch{}let r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services?.languageUtils||new ZT(T5());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){let a=new Xp(t,r);return a.createInstance=Xp.createInstance,a}cloneInstance(t={},r=XT){let a=t.forkResourceStore;a&&delete t.forkResourceStore;let n={...this.options,...t,isClone:!0},s=new Xp(n);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},a){let o=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((u,d)=>(u[d]={...l[c][d]},u),l[c]),l),{});s.store=new JT(o,n),s.services.resourceStore=s.store}return t.interpolation&&(s.services.interpolator=new ew(n)),s.translator=new dg(s.services,n),s.translator.on("*",(o,...l)=>{s.emit(o,...l)}),s.init(n,r),s.translator.options=n,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Rs=Xp.createInstance(),iJe=Rs.createInstance,oJe=Rs.dir,lJe=Rs.init,cJe=Rs.loadResources,uJe=Rs.reloadResources,dJe=Rs.use,fJe=Rs.changeLanguage,pJe=Rs.getFixedT,mJe=Rs.t,hJe=Rs.exists,gJe=Rs.setDefaultNamespace,yJe=Rs.hasLoadedNamespace,xJe=Rs.loadNamespaces,bJe=Rs.loadLanguages});var F5=ne(or=>{"use strict";var kI=Symbol.for("react.transitional.element"),qse=Symbol.for("react.portal"),Hse=Symbol.for("react.fragment"),$se=Symbol.for("react.strict_mode"),Gse=Symbol.for("react.profiler"),Kse=Symbol.for("react.consumer"),Wse=Symbol.for("react.context"),Xse=Symbol.for("react.forward_ref"),Yse=Symbol.for("react.suspense"),Jse=Symbol.for("react.memo"),R5=Symbol.for("react.lazy"),Qse=Symbol.for("react.activity"),A5=Symbol.iterator;function Zse(e){return e===null||typeof e!="object"?null:(e=A5&&e[A5]||e["@@iterator"],typeof e=="function"?e:null)}var k5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M5=Object.assign,D5={};function pg(e,t,r){this.props=e,this.context=t,this.refs=D5,this.updater=r||k5}pg.prototype.isReactComponent={};pg.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _5(){}_5.prototype=pg.prototype;function MI(e,t,r){this.props=e,this.context=t,this.refs=D5,this.updater=r||k5}var DI=MI.prototype=new _5;DI.constructor=MI;M5(DI,pg.prototype);DI.isPureReactComponent=!0;var I5=Array.isArray;function RI(){}var ka={H:null,A:null,T:null,S:null},O5=Object.prototype.hasOwnProperty;function _I(e,t,r){var a=r.ref;return{$$typeof:kI,type:e,key:t,ref:a!==void 0?a:null,props:r}}function eie(e,t){return _I(e.type,t,e.props)}function OI(e){return typeof e=="object"&&e!==null&&e.$$typeof===kI}function tie(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var N5=/\/+/g;function LI(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tie(""+e.key):t.toString(36)}function rie(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(RI,RI):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function fg(e,t,r,a,n){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case kI:case qse:i=!0;break;case R5:return i=e._init,fg(i(e._payload),t,r,a,n)}}if(i)return n=n(e),i=a===""?"."+LI(e,0):a,I5(n)?(r="",i!=null&&(r=i.replace(N5,"$&/")+"/"),fg(n,t,r,"",function(c){return c})):n!=null&&(OI(n)&&(n=eie(n,r+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(N5,"$&/")+"/")+i)),t.push(n)),1;i=0;var o=a===""?".":a+":";if(I5(e))for(var l=0;l{"use strict";B5.exports=F5()});var j5=ne((wJe,U5)=>{U5.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}});var sie,z5=de(()=>{sie=I(j5())});var rw,V5,mg,q5,aw,FI,H5,Ul,BI,hg=de(()=>{rw=(e,t,r,a)=>{let n=[r,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(n,"warn","react-i18next::",!0);Ul(n[0])&&(n[0]=`react-i18next:: ${n[0]}`),e?.services?.logger?.warn&&e.services.logger.warn(...n)},V5={},mg=(e,t,r,a)=>{Ul(r)&&V5[r]||(Ul(r)&&(V5[r]=new Date),rw(e,t,r,a))},q5=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},aw=(e,t,r)=>{e.loadNamespaces(t,q5(e,r))},FI=(e,t,r,a)=>{if(Ul(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return aw(e,r,a);r.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(t,q5(e,a))},H5=(e,t,r={})=>!t.languages||!t.languages.length?(mg(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(a,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!n(a.isLanguageChangingTo,e))return!1}}),Ul=e=>typeof e=="string",BI=e=>typeof e=="object"&&e!==null});var iie,oie,lie,UI,jI=de(()=>{iie=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,oie={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},lie=e=>oie[e],UI=e=>e.replace(iie,lie)});var zI,nw,Kb,Wb=de(()=>{jI();zI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:UI,transDefaultProps:void 0},nw=(e={})=>{zI={...zI,...e}},Kb=()=>zI});var $5,sw,jl,gg=de(()=>{sw=e=>{$5=e},jl=()=>$5});var Xb,VI=de(()=>{Xb=I(Le(),1);NI();z5();hg();Wb();gg();jI()});var iw,qI=de(()=>{Wb();gg();iw={type:"3rdParty",init(e){nw(e.options.react),sw(e)}}});var G5,zd,ow,Vd=de(()=>{G5=I(Le(),1);Wb();gg();qI();zd=(0,G5.createContext)(),ow=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}});var uie,K5=de(()=>{uie=I(Le(),1);VI();Vd()});var qd,HI=de(()=>{qd=class extends Error{constructor(t,r,a){super(t),this.name="TranslationParserError",this.position=r,this.translationString=a,Error.captureStackTrace&&Error.captureStackTrace(this,qd)}}});var W5,die,X5,$I=de(()=>{W5={" ":"\xA0","&":"&","<":"<",">":">",""":'"',"'":"'","©":"\xA9","®":"\xAE","™":"\u2122","…":"\u2026","–":"\u2013","—":"\u2014","‘":"\u2018","’":"\u2019","‚":"\u201A","“":"\u201C","”":"\u201D","„":"\u201E","†":"\u2020","‡":"\u2021","•":"\u2022","′":"\u2032","″":"\u2033","‹":"\u2039","›":"\u203A","§":"\xA7","¶":"\xB6","·":"\xB7"," ":"\u2002"," ":"\u2003"," ":"\u2009","€":"\u20AC","£":"\xA3","¥":"\xA5","¢":"\xA2","¤":"\xA4","×":"\xD7","÷":"\xF7","−":"\u2212","±":"\xB1","≠":"\u2260","≤":"\u2264","≥":"\u2265","≈":"\u2248","≡":"\u2261","∞":"\u221E","∫":"\u222B","∑":"\u2211","∏":"\u220F","√":"\u221A","∂":"\u2202","‰":"\u2030","°":"\xB0","µ":"\xB5","←":"\u2190","↑":"\u2191","→":"\u2192","↓":"\u2193","↔":"\u2194","↵":"\u21B5","⇐":"\u21D0","⇑":"\u21D1","⇒":"\u21D2","⇓":"\u21D3","⇔":"\u21D4","α":"\u03B1","β":"\u03B2","γ":"\u03B3","δ":"\u03B4","ε":"\u03B5","ζ":"\u03B6","η":"\u03B7","θ":"\u03B8","ι":"\u03B9","κ":"\u03BA","λ":"\u03BB","μ":"\u03BC","ν":"\u03BD","ξ":"\u03BE","ο":"\u03BF","π":"\u03C0","ρ":"\u03C1","σ":"\u03C3","τ":"\u03C4","υ":"\u03C5","φ":"\u03C6","χ":"\u03C7","ψ":"\u03C8","ω":"\u03C9","Α":"\u0391","Β":"\u0392","Γ":"\u0393","Δ":"\u0394","Ε":"\u0395","Ζ":"\u0396","Η":"\u0397","Θ":"\u0398","Ι":"\u0399","Κ":"\u039A","Λ":"\u039B","Μ":"\u039C","Ν":"\u039D","Ξ":"\u039E","Ο":"\u039F","Π":"\u03A0","Ρ":"\u03A1","Σ":"\u03A3","Τ":"\u03A4","Υ":"\u03A5","Φ":"\u03A6","Χ":"\u03A7","Ψ":"\u03A8","Ω":"\u03A9","À":"\xC0","Á":"\xC1","Â":"\xC2","Ã":"\xC3","Ä":"\xC4","Å":"\xC5","Æ":"\xC6","Ç":"\xC7","È":"\xC8","É":"\xC9","Ê":"\xCA","Ë":"\xCB","Ì":"\xCC","Í":"\xCD","Î":"\xCE","Ï":"\xCF","Ð":"\xD0","Ñ":"\xD1","Ò":"\xD2","Ó":"\xD3","Ô":"\xD4","Õ":"\xD5","Ö":"\xD6","Ø":"\xD8","Ù":"\xD9","Ú":"\xDA","Û":"\xDB","Ü":"\xDC","Ý":"\xDD","Þ":"\xDE","ß":"\xDF","à":"\xE0","á":"\xE1","â":"\xE2","ã":"\xE3","ä":"\xE4","å":"\xE5","æ":"\xE6","ç":"\xE7","è":"\xE8","é":"\xE9","ê":"\xEA","ë":"\xEB","ì":"\xEC","í":"\xED","î":"\xEE","ï":"\xEF","ð":"\xF0","ñ":"\xF1","ò":"\xF2","ó":"\xF3","ô":"\xF4","õ":"\xF5","ö":"\xF6","ø":"\xF8","ù":"\xF9","ú":"\xFA","û":"\xFB","ü":"\xFC","ý":"\xFD","þ":"\xFE","ÿ":"\xFF","¡":"\xA1","¿":"\xBF","ƒ":"\u0192","ˆ":"\u02C6","˜":"\u02DC","Œ":"\u0152","œ":"\u0153","Š":"\u0160","š":"\u0161","Ÿ":"\u0178","ª":"\xAA","º":"\xBA","¯":"\xAF","´":"\xB4","¸":"\xB8","¹":"\xB9","²":"\xB2","³":"\xB3","¼":"\xBC","½":"\xBD","¾":"\xBE","♠":"\u2660","♣":"\u2663","♥":"\u2665","♦":"\u2666","◊":"\u25CA","‾":"\u203E","⁄":"\u2044","℘":"\u2118","ℑ":"\u2111","ℜ":"\u211C","ℵ":"\u2135"},die=new RegExp(Object.keys(W5).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),X5=e=>e.replace(die,t=>W5[t]).replace(/&#(\d+);/g,(t,r)=>String.fromCharCode(parseInt(r,10))).replace(/&#x([0-9a-fA-F]+);/g,(t,r)=>String.fromCharCode(parseInt(r,16)))});var Y5,GI=de(()=>{Y5=e=>{let t=[],r=0,a="",n=()=>{a&&(t.push({type:"Text",value:a,position:r-a.length}),a="")};for(;r/);if(i)n(),t.push({type:"TagOpen",value:i[0],position:r,tagNumber:parseInt(i[1],10)}),r+=i[0].length;else{let o=e.slice(r).match(/^<\/(\d+)>/);o?(n(),t.push({type:"TagClose",value:o[0],position:r,tagNumber:parseInt(o[1],10)}),r+=o[0].length):(a+=s,r+=1)}}else a+=s,r+=1}return n(),t}});var Yb,fie,J5,Q5=de(()=>{Yb=I(Le(),1);HI();GI();$I();fie=(e,t,r)=>{let{type:a,props:n={}}=e;if(n.children&&Array.isArray(n.children)&&r){let{children:s,...i}=n;return Yb.default.createElement(a,i,...t)}return t.length===0?Yb.default.createElement(a,n):t.length===1?Yb.default.createElement(a,n,t[0]):Yb.default.createElement(a,n,...t)},J5=(e,t=[])=>{if(!e)return[];let r=Y5(e),a=[],n=[],s=new Set,i=()=>{if(n.length===0)return t;let o=n[n.length-1];return o.declaration.props?.children&&Array.isArray(o.declaration.props.children)?o.declaration.props.children:o.declarations};if(r.forEach(o=>{switch(o.type){case"Text":{let l=X5(o.value);(n.length>0?n[n.length-1].children:a).push(l)}break;case"TagOpen":{let{tagNumber:l}=o,c=i(),u=c[l];if(!u){s.add(l);let d=`<${l}>`;(n.length>0?n[n.length-1].children:a).push(d);break}n.push({tagNumber:l,children:[],position:o.position,declaration:u,declarations:c})}break;case"TagClose":{let{tagNumber:l}=o;if(s.has(l)){let f=``;(n.length>0?n[n.length-1].children:a).push(f),s.delete(l);break}if(n.length===0)throw new qd(`Unexpected closing tag at position ${o.position}`,o.position,e);let c=n.pop();if(c.tagNumber!==l)throw new qd(`Mismatched tags: expected but got at position ${o.position}`,o.position,e);let u=fie(c.declaration,c.children,c.declarations);(n.length>0?n[n.length-1].children:a).push(u)}break}}),n.length>0){let o=n[n.length-1];throw new qd(`Unclosed tag <${o.tagNumber}> at position ${o.position}`,o.position,e)}return a}});var Z5=de(()=>{HI();$I();GI();Q5()});function lw({i18nKey:e,defaultTranslation:t,content:r,ns:a,values:n={},i18n:s,t:i}){let o=s||jl();if(!o)return mg(o,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),Yp.default.createElement(Yp.default.Fragment,{},t);let l=i||o.t?.bind(o)||(f=>f),c=a||l.ns||o.options?.defaultNS;c=Ul(c)?[c]:c||["translation"];let u=n;o.options?.interpolation?.defaultVariables&&(u=n&&Object.keys(n).length>0?{...n,...o.options.interpolation.defaultVariables}:{...o.options.interpolation.defaultVariables});let d=l(e,{defaultValue:t,...u,ns:c});try{let f=J5(d,r);return Yp.default.createElement(Yp.default.Fragment,{},...f)}catch(f){return rw(o,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${f.message}`,{i18nKey:e,error:f}),Yp.default.createElement(Yp.default.Fragment,{},d)}}var Yp,KI=de(()=>{Yp=I(Le(),1);hg();gg();Z5();lw.displayName="IcuTransWithoutContext"});function tB({i18nKey:e,defaultTranslation:t,content:r,ns:a,values:n={},i18n:s,t:i}){let{i18n:o,defaultNS:l}=(0,eB.useContext)(zd)||{},c=s||o||jl(),u=i||c?.t.bind(c);return lw({i18nKey:e,defaultTranslation:t,content:r,ns:a||u?.ns||l||c?.options?.defaultNS,values:n,i18n:c,t:i})}var eB,rB=de(()=>{eB=I(Le(),1);KI();Vd();tB.displayName="IcuTrans"});var nB=ne(aB=>{"use strict";var yg=Le();function pie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mie=typeof Object.is=="function"?Object.is:pie,hie=yg.useState,gie=yg.useEffect,yie=yg.useLayoutEffect,xie=yg.useDebugValue;function bie(e,t){var r=t(),a=hie({inst:{value:r,getSnapshot:t}}),n=a[0].inst,s=a[1];return yie(function(){n.value=r,n.getSnapshot=t,WI(n)&&s({inst:n})},[e,r,t]),gie(function(){return WI(n)&&s({inst:n}),e(function(){WI(n)&&s({inst:n})})},[e]),xie(r),r}function WI(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!mie(e,r)}catch{return!0}}function vie(e,t){return t()}var Sie=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vie:bie;aB.useSyncExternalStore=yg.useSyncExternalStore!==void 0?yg.useSyncExternalStore:Sie});var iB=ne((hQe,sB)=>{"use strict";sB.exports=nB()});var gs,oB,Tie,wie,Cie,ze,cw=de(()=>{gs=I(Le(),1),oB=I(iB(),1);Vd();hg();Tie=(e,t)=>Ul(t)?t:BI(t)&&Ul(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,wie={t:Tie,ready:!1},Cie=()=>()=>{},ze=(e,t={})=>{let{i18n:r}=t,{i18n:a,defaultNS:n}=(0,gs.useContext)(zd)||{},s=r||a||jl();s&&!s.reportNamespaces&&(s.reportNamespaces=new ow),s||mg(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let i=(0,gs.useMemo)(()=>({...Kb(),...s?.options?.react,...t}),[s,t]),{useSuspense:o,keyPrefix:l}=i,c=e||n||s?.options?.defaultNS,u=Ul(c)?[c]:c||["translation"],d=(0,gs.useMemo)(()=>u,u);s?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,gs.useRef)(0),p=(0,gs.useCallback)(R=>{if(!s)return Cie;let{bindI18n:O,bindI18nStore:D}=i,W=()=>{f.current+=1,R()};return O&&s.on(O,W),D&&s.store.on(D,W),()=>{O&&O.split(" ").forEach(J=>s.off(J,W)),D&&D.split(" ").forEach(J=>s.store.off(J,W))}},[s,i]),m=(0,gs.useRef)(),h=(0,gs.useCallback)(()=>{if(!s)return wie;let R=!!(s.isInitialized||s.initializedStoreOnce)&&d.every(Z=>H5(Z,s,i)),O=t.lng||s.language,D=f.current,W=m.current;if(W&&W.ready===R&&W.lng===O&&W.keyPrefix===l&&W.revision===D)return W;let me={t:s.getFixedT(O,i.nsMode==="fallback"?d:d[0],l),ready:R,lng:O,keyPrefix:l,revision:D};return m.current=me,me},[s,d,l,i,t.lng]),[x,g]=(0,gs.useState)(0),{t:y,ready:v}=(0,oB.useSyncExternalStore)(p,h,h);(0,gs.useEffect)(()=>{if(s&&!v&&!o){let R=()=>g(O=>O+1);t.lng?FI(s,t.lng,d,R):aw(s,d,R)}},[s,t.lng,d,v,o,x]);let S=s||{},w=(0,gs.useRef)(null),P=(0,gs.useRef)(),C=R=>{let O=Object.getOwnPropertyDescriptors(R);O.__original&&delete O.__original;let D=Object.create(Object.getPrototypeOf(R),O);if(!Object.prototype.hasOwnProperty.call(D,"__original"))try{Object.defineProperty(D,"__original",{value:R,writable:!1,enumerable:!1,configurable:!1})}catch{}return D},N=(0,gs.useMemo)(()=>{let R=S,O=R?.language,D=R;R&&(w.current&&w.current.__original===R?P.current!==O?(D=C(R),w.current=D,P.current=O):D=w.current:(D=C(R),w.current=D,P.current=O));let W=[y,D,v];return W.t=y,W.i18n=D,W.ready=v,W},[y,S,v,S.resolvedLanguage,S.language,S.languages]);if(s&&o&&!v)throw new Promise(R=>{let O=()=>R();t.lng?FI(s,t.lng,d,O):aw(s,d,O)});return N}});var lB,cB=de(()=>{lB=I(Le(),1);cw();hg()});var uB=de(()=>{cw()});var dB,fB=de(()=>{dB=I(Le(),1);Vd()});var Pie,XI=de(()=>{Pie=I(Le(),1);Vd()});var Nie,pB=de(()=>{Nie=I(Le(),1);XI();Vd();hg()});var er=de(()=>{K5();VI();rB();KI();cw();cB();uB();fB();pB();XI();qI();Wb();gg();Vd()});var mB,hB=de(()=>{mB={Actions:{Save:"\u4FDD\u5B58",Cancel:"\u53D6\u6D88",Confirm:"\u786E\u5B9A",Refresh:"\u5237\u65B0",Edit:"\u7F16\u8F91",Back:"\u8FD4\u56DE",Update:"\u66F4\u65B0",Clear:"\u6E05\u9664",Delete:"\u5220\u9664",StopTranslate:"\u505C\u6B62\u7FFB\u8BD1"},Status:{Success:"\u6210\u529F",Failure:"\u5931\u8D25",Loading:"\u52A0\u8F7D\u4E2D...",Reloading:"\u91CD\u8F7D\u4E2D...",Unknown:"\u672A\u77E5",Error:"\u9519\u8BEF",Ready:"\u5C31\u7EEA"},Labels:{I18n:"I18N",Themes:"\u4E3B\u9898",Plugins:"\u63D2\u4EF6",GithubUser:"GitHub \u7528\u6237",Mtime:"\u4FEE\u6539\u65F6\u95F4",Optional:"\u53EF\u9009",Or:"\u6216",NoPlugins:"\u6682\u65E0\u63D2\u4EF6",UpdatePrefix:"\u66F4\u65B0\u4E8E",Filter:"\u7B5B\u9009"},Filters:{All:"\u5168\u90E8",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",Applied:"\u5DF2\u5E94\u7528"},Notices:{Success:"\u6210\u529F",Failure:"\u5931\u8D25",Clear:"\u6E05\u7A7A",SaveSuccess:"\u4FDD\u5B58\u6210\u529F",SaveFail:"\u4FDD\u5B58\u5931\u8D25",SaveFailPath:"\u4FDD\u5B58\u5931\u8D25\uFF1A\u672A\u627E\u5230\u6709\u6548\u7684\u5B58\u50A8\u8DEF\u5F84",DeleteSuccess:"\u5220\u9664\u6210\u529F",TaskStopped:"\u4EFB\u52A1\u5DF2\u505C\u6B62",BatchTranslateSuccess:"\u6279\u91CF\u7FFB\u8BD1\u5B8C\u6210\uFF01",TranslateFail:"\u7FFB\u8BD1\u5931\u8D25: {{message}}",NoItemsToTranslate:"\u6CA1\u6709\u9700\u8981\u7FFB\u8BD1\u7684\u6761\u76EE",ThemeNotFound:"\u672A\u627E\u5230\u4E3B\u9898",MainNotFound:"\u672A\u627E\u5230\u6587\u4EF6 {{file}}",TaskCancelled:"\u7FFB\u8BD1\u4EFB\u52A1\u5DF2\u53D6\u6D88",Perfect:"\u72B6\u6001\u826F\u597D",NoErrors:"\u6682\u672A\u53D1\u73B0\u95EE\u9898"},Placeholders:{Search:"\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD..."},Data:{SortAsc:"\u6B63\u5E8F",SortDesc:"\u5012\u5E8F"},Pagination:{Label:"\u5206\u9875\u5BFC\u822A",Prev:"\u4E0A\u4E00\u9875",Next:"\u4E0B\u4E00\u9875"},MoreExpect:"\u66F4\u591A\u671F\u5F85"}});var gB,yB=de(()=>{gB={Common:{Titles:{Main:"i18n \u7BA1\u7406\u4E2D\u5FC3"},Actions:{Search:"\u641C\u7D22",MoreActions:"\u66F4\u591A\u9009\u9879",Sponsor:"\u652F\u6301\u4F5C\u8005",Help:"\u4F7F\u7528\u5E2E\u52A9",HelpDoc:"\u5B98\u65B9\u6587\u6863\u6559\u7A0B",Cloud:"\u4E91\u7AEF\u8BD1\u6587",Settings:"\u7EFC\u5408\u8BBE\u7F6E",SelectSource:"\u9009\u62E9\u6570\u636E\u6E90",Apply:"\u5E94\u7528",Restore:"\u8FD8\u539F",Edit:"\u7F16\u8F91\u8BD1\u6587",Delete:"\u5220\u9664\u8BD1\u6587",OpenFolder:"\u6D4F\u89C8\u76EE\u5F55"},Placeholders:{SearchPlaceholder:"\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD..."},Filters:{All:"\u5168\u90E8"},Labels:{Author:"\u4F5C\u8005"},Status:{Labels:{pending:"\u7B49\u5F85\u4E2D",processing:"\u5904\u7406\u4E2D",success:"\u5E94\u7528\u6210\u529F",found:"\u5DF2\u53D1\u73B0\u5339\u914D",skipped:"\u5DF2\u8DF3\u8FC7",error:"\u4EFB\u52A1\u5931\u8D25",discovered:"\u5F85\u5BA1\u9605",discovered_new:"\u53D1\u73B0\u65B0\u8BD1\u6587",discovered_update:"\u53D1\u73B0\u7248\u672C\u66F4\u65B0",up_to_date:"\u5DF2\u662F\u6700\u65B0",applied:"\u5DF2\u5E94\u7528",plugin:"\u63D2\u4EF6",theme:"\u4E3B\u9898",DiscoveryNotice:"\u53D1\u73B0\u66F4\u65B0\u65F6\u901A\u77E5",AutoApply:"\u627E\u5230\u5339\u914D\u540E\u81EA\u52A8\u5E94\u7528 (\u4E0D\u63A8\u8350)",SilentMode:"\u5B8C\u5168\u9759\u9ED8\u6A21\u5F0F",MatchStrategy:"\u5339\u914D\u4F18\u9009\u7B56\u7565",MatchStrategies:{comprehensive:"\u7EFC\u5408\u4F18\u9009 (\u63A8\u8350)",version_first:"\u7248\u672C\u6700\u63A5\u8FD1\u4F18\u5148",popularity:"\u793E\u533A\u70ED\u5EA6\u4F18\u5148",latest_update:"\u6700\u65B0\u7FFB\u8BD1\u4F18\u5148"}}},Errors:{Error:"\u9519\u8BEF",ErrorDesc:"\u8BD1\u6587\u89E3\u6790\u5F02\u5E38",FetchCommunityDataFailed:"\u83B7\u53D6\u793E\u533A\u6CE8\u518C\u8868\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC",SyncFailed:"\u4E2D\u5FC3\u5E93\u540C\u6B65\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216 Token \u6743\u9650",InvalidRepo:"\u65E0\u6548\u7684\u4ED3\u5E93\u5730\u5740\uFF0C\u8BF7\u786E\u4FDD\u683C\u5F0F\u4E3A owner/repo"},Notices:{ApplySuccess:"\u7FFB\u8BD1\u5E94\u7528\u6210\u529F",CopySuccess:"Registry JSON \u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",SyncSuccess:"\u4E2D\u5FC3\u5E93\u6CE8\u518C\u8868\u540C\u6B65\u6210\u529F\uFF01"}},Plugins:{TabName:"\u63D2\u4EF6",Actions:{Extract:"\u63D0\u53D6\u8BD1\u6587",OpenSettings:"\u63D2\u4EF6\u8BBE\u7F6E",Reload:"\u91CD\u8F7D\u63D2\u4EF6",GoToEditor:"\u524D\u5F80\u7F16\u8F91\u5668",ContinueApply:"\u575A\u6301\u5E94\u7528"},Placeholders:{SearchPlugins:"\u641C\u7D22\u63D2\u4EF6..."},Filters:{Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6"},Labels:{Auto:"\u81EA\u52A8",Admin:"\u7BA1\u7406",Mtime:"\u6700\u540E\u66F4\u65B0",SupportVer:"\u652F\u6301\u7248\u672C"},Status:{NoPlugins:"\u672A\u53D1\u73B0\u63D2\u4EF6",On:"\u5DF2\u542F\u7528",Off:"\u5DF2\u7981\u7528",Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6",NoTrans:"\u672A\u7FFB\u8BD1",Reloading:"\u91CD\u8F7D\u4E2D..."},Dialogs:{EmptyTranslationTitle:"\u672A\u68C0\u6D4B\u5230\u7FFB\u8BD1\u5185\u5BB9",EmptyTranslationDesc:"\u5F53\u524D\u9009\u62E9\u7684\u7FFB\u8BD1\u6E90\u5C1A\u672A\u8FDB\u884C\u4EFB\u4F55\u5B9E\u8D28\u6027\u7FFB\u8BD1\uFF08\u8BD1\u6587\u4E0E\u539F\u6587\u5B8C\u5168\u4E00\u81F4\uFF09\u3002\u5E94\u7528\u6B64\u6587\u4EF6\u540E\uFF0C\u63D2\u4EF6\u754C\u9762\u8BED\u8A00\u5C06\u4E0D\u4F1A\u53D1\u751F\u4EFB\u4F55\u53D8\u5316\u3002\u5EFA\u8BAE\u60A8\u5148\u5728\u7F16\u8F91\u5668\u4E2D\u5B8C\u6210\u7FFB\u8BD1\u540E\u518D\u5E94\u7528\u3002"},Hints:{NoTransDesc:"\u6682\u65E0\u672C\u5730\u8BED\u8A00\u6570\u636E",ExtractSuccessDesc:"\u5DF2\u751F\u6210\u5F53\u524D\u7248\u672C\u7684\u7FFB\u8BD1\u6A21\u677F"},Errors:{ReloadPluginFailed:"\u63D2\u4EF6\u91CD\u542F\u5931\u8D25: {{error}}",ReloadFailed:"\u63D2\u4EF6\u91CD\u8F7D\u5931\u8D25: {{error}}",PluginNotEnabled:"\u63D2\u4EF6\u672A\u542F\u7528",LoadFailedAfterApply:"\u63D2\u4EF6\u91CD\u8F7D\u5931\u8D25\uFF0C\u53EF\u80FD\u662F\u6E90\u7801\u5B58\u5728\u8FD0\u884C\u65F6\u9519\u8BEF\u3002\u8BF7\u6309 Ctrl+Shift+I \u6253\u5F00\u63A7\u5236\u53F0\u67E5\u770B\u5177\u4F53\u62A5\u9519\u5806\u6808\u3002",SyntaxError:"JavaScript \u8BED\u6CD5\u635F\u574F\uFF0C\u5DF2\u7EC8\u6B62\u5E94\u7528: {{file}}",MainNotFound:"\u672A\u627E\u5230 main.js \u6587\u4EF6",BackupNotFound:"\u5907\u4EFD\u6587\u4EF6\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u8FD8\u539F",PluginProcessFailed:"\u5904\u7406\u63D2\u4EF6 {{id}} \u65F6\u51FA\u9519"},Notices:{ApplyPluginSuccess:"{{id}} \u7FFB\u8BD1\u5E94\u7528\u6210\u529F",ReloadPlugin:"\u51C6\u5907\u91CD\u542F\u63D2\u4EF6: {{id}}",ReloadSuccess:"\u63D2\u4EF6\u91CD\u8F7D\u6210\u529F",ExtractSuccess:"\u63D0\u53D6\u6210\u529F"}},Themes:{TabName:"\u4E3B\u9898",Placeholders:{SearchThemes:"\u641C\u7D22\u4E3B\u9898..."},Labels:{ThemeActive:"\u5F53\u524D\u4E3B\u9898",Auto:"\u81EA\u52A8",Admin:"\u7BA1\u7406",Mtime:"\u6700\u540E\u66F4\u65B0",SupportVer:"\u652F\u6301\u7248\u672C"},Filters:{Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6"},Status:{NoThemes:"\u672A\u53D1\u73B0\u4E3B\u9898",On:"\u5DF2\u542F\u7528",Off:"\u5DF2\u7981\u7528",Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6",NoTrans:"\u672A\u7FFB\u8BD1",Reloading:"\u91CD\u8F7D\u4E2D..."},Dialogs:{EmptyTranslationTitle:"\u672A\u68C0\u6D4B\u5230\u7FFB\u8BD1\u5185\u5BB9",EmptyTranslationDesc:"\u5F53\u524D\u9009\u62E9\u7684\u7FFB\u8BD1\u6E90\u5C1A\u672A\u8FDB\u884C\u4EFB\u4F55\u5B9E\u8D28\u6027\u7FFB\u8BD1\uFF08\u8BD1\u6587\u4E0E\u539F\u6587\u5B8C\u5168\u4E00\u81F4\uFF09\u3002\u5E94\u7528\u6B64\u6587\u4EF6\u540E\uFF0C\u63D2\u4EF6\u754C\u9762\u8BED\u8A00\u5C06\u4E0D\u4F1A\u53D1\u751F\u4EFB\u4F55\u53D8\u5316\u3002\u5EFA\u8BAE\u60A8\u5148\u5728\u7F16\u8F91\u5668\u4E2D\u5B8C\u6210\u7FFB\u8BD1\u540E\u518D\u5E94\u7528\u3002"},Errors:{ThemeCssNotFound:"\u672A\u627E\u5230 theme.css \u6587\u4EF6",NoSettingsBlock:"\u672A\u627E\u5230 @settings \u5757\uFF0C\u65E0\u53EF\u7FFB\u8BD1\u5185\u5BB9",BackupNotFound:"\u5907\u4EFD\u6587\u4EF6\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u8FD8\u539F"},Notices:{ThemeExtractPrefix:"\u63D0\u53D6\u8BD1\u6587",ThemeApplyPrefix:"\u4E3B\u9898\u5E94\u7528",ThemeRestorePrefix:"\u4E3B\u9898\u8FD8\u539F"}},Sources:{TabName:"\u7BA1\u7406",Table:{Name:"\u7FFB\u8BD1\u540D\u79F0/\u63D2\u4EF6",Id:"\u6E90 ID",Origin:"\u6765\u6E90",Mtime:"\u66F4\u65B0\u65F6\u95F4",Type:"\u7C7B\u578B",Actions:"\u64CD\u4F5C"},Status:{NotInstalled:"\u63D2\u4EF6\u7F3A\u5931",ThemeNotInstalled:"\u4E3B\u9898\u7F3A\u5931"},Actions:{Export:"\u5BFC\u51FA",Import:"\u5BFC\u5165",BatchDelete:"\u5220\u9664",SelectUninstalled:"\u5F02\u5E38\u9879",DeleteConfirm:"\u786E\u5B9A\u8981\u5220\u9664\u9009\u4E2D\u7684 {{count}} \u9879\u8BD1\u6587\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u64A4\u9500\u3002",ImportSuccess:"\u6210\u529F\u5BFC\u5165 {{count}} \u9879\u8BD1\u6587",ExportSuccess:"\u8BD1\u6587\u5BFC\u51FA\u6210\u529F",SelectAll:"\u5168\u9009"},Filters:{SearchPlaceholder:"\u641C\u7D22\u7FFB\u8BD1\u6216\u63D2\u4EF6...",OriginLocal:"\u672C\u5730\u63D0\u53D6",OriginCloud:"\u4E91\u7AEF\u4E0B\u8F7D"},Stats:{Total:"\u603B\u8BD1\u6587\u6570",Selected:"\u5DF2\u9009\u4E2D"}},Auto:{TabName:"\u81EA\u52A8\u5316",Title:"\u81EA\u52A8\u5316\u670D\u52A1",Desc:"\u667A\u80FD\u63A2\u6D4B\u53EF\u7528\u7684\u63D2\u4EF6\u7FFB\u8BD1\u5E76\u8FDB\u884C\u5B89\u5168\u5BA1\u9605\u3002",Discovery:{Title:"\u53D1\u73B0\u66F4\u65B0",ReviewAction:"\u5BA1\u9605\u5E76\u5E94\u7528",IgnoreAction:"\u5FFD\u7565\u6B64\u66F4\u65B0",SafetyWarning:"\u5B89\u5168\u63D0\u9192\uFF1A\u6B64\u7FFB\u8BD1\u6765\u81EA\u793E\u533A\u4ED3\u5E93\uFF0C\u5EFA\u8BAE\u5728\u5E94\u7528\u524D\u786E\u8BA4\u6765\u6E90\u53EF\u9760\u6027\u3002",NewSource:"\u65B0\u6765\u6E90 (\u9996\u6B21\u53D1\u73B0)",HashChanged:"\u5185\u5BB9\u5DF2\u53D8\u66F4 (Hash \u4E0D\u4E00\u81F4)",TrustScore:"\u6C49\u5316\u4FE1\u8A89\u8BC4\u5206",ScoreBreakdown:{Title:"\u5339\u914D\u8D28\u91CF\u8BC4\u5206",Version:"\u7248\u672C\u517C\u5BB9",Popularity:"\u793E\u533A\u8BA4\u53EF",Freshness:"\u66F4\u65B0\u9C9C\u6D3B"}},Filters:{Title:"\u4EFB\u52A1\u7B5B\u9009"},Scoping:{Title:"\u63A2\u6D4B\u8303\u56F4"},History:{Title:"\u5B89\u5168\u5BA1\u8BA1\u65E5\u5FD7",Empty:"\u6682\u65E0\u64CD\u4F5C\u8BB0\u5F55",BatchHeader:"\u6267\u884C\u6279\u6B21\uFF1A{{id}}",TriggerDiscovery:"\u540E\u53F0\u63A2\u6D4B",TriggerManual:"\u624B\u52A8\u6267\u884C",TriggerStartup:"\u542F\u52A8\u81EA\u68C0"},Actions:{StartAuto:"\u63A2\u6D4B\u626B\u63CF",ReviewAll:"\u5168\u90E8\u5BA1\u9605\u5E76\u5E94\u7528",OneClickReview:"\u4E00\u952E\u5BA1\u9605"},Modes:{Incremental:"\u589E\u91CF\u63A2\u6D4B",Full:"\u5168\u91CF\u626B\u63CF"},Status:{Analyzing:"\u6B63\u5728\u5206\u6790\u4E91\u7AEF\u4ED3\u5E93...",AutoStarting:"\u6B63\u5728\u542F\u52A8\u5B89\u5168\u63A2\u6D4B...",ScanningInstalled:"\u6B63\u5728\u626B\u63CF\u5DF2\u5B89\u88C5\u9879 ({{count}})...",Running:"\u6B63\u5728\u63A2\u6D4B\u66F4\u65B0...",DiscoveryComplete:"\u63A2\u6D4B\u5B8C\u6210\uFF0C\u53D1\u73B0 {{count}} \u9879\u5F85\u5BA1\u9605",NoLogs:"\u6682\u65E0\u626B\u63CF\u7ED3\u679C\u8BB0\u5F55",AutoRollbacked:"\u8FD0\u884C\u5F02\u5E38\u5DF2\u81EA\u52A8\u56DE\u6EDA",BatchApply:"\u6279\u91CF\u5E94\u7528\u53D1\u73B0",BatchComplete:"\u6279\u91CF\u4EFB\u52A1\u5DF2\u7ED3\u675F: \u6210\u529F {{success}}, \u5931\u8D25 {{fail}}",SkipReasons:{Exclusion:"\u63D2\u4EF6\u5DF2\u52A0\u5165\u6392\u9664\u540D\u5355",NoMatch:"\u6240\u6709\u4FE1\u4EFB\u6E90\u4E2D\u5747\u65E0\u8BE5\u63D2\u4EF6\u8BB0\u5F55",NoVersion:"\u672A\u627E\u5230\u7B26\u5408\u8FC7\u6EE4\u6761\u4EF6\u7684\u6C49\u5316\u7248\u672C"}},QuickSettings:{Title:"\u81EA\u52A8\u5316\u7B56\u7565",AutoApply:"\u81EA\u52A8\u5E94\u7528\u7FFB\u8BD1",DiscoveryNotice:"\u540E\u53F0\u63A2\u6D4B\u4E0E\u901A\u77E5",CheckInterval:"\u63A2\u6D4B\u5468\u671F",Hours:"\u5C0F\u65F6"},Stats:{Health:"\u6C49\u5316\u5065\u5EB7\u5EA6",VaultStatus:"\u6C49\u5316\u72B6\u6001",TotalInstalled:"\u5DF2\u5B89\u88C5\u603B\u6570",AppliedCount:"\u7D2F\u8BA1\u7FFB\u8BD1\u5E94\u7528",CurrentSuccess:"\u672C\u6B21\u6210\u529F",CurrentSkipped:"\u672C\u6B21\u8DF3\u8FC7/\u5931\u8D25",Plugins:"\u63D2\u4EF6",Themes:"\u4E3B\u9898",LastCheckTime:"\u4E0A\u6B21\u68C0\u67E5\uFF1A{{time}}"},Errors:{NoCachedManifest:"\u672A\u627E\u5230\u8BE5\u63D2\u4EF6\u7684\u7F13\u5B58\u6E05\u5355",NoBestMatch:"\u6700\u4F73\u5339\u914D\u5DF2\u4E0D\u53EF\u7528",LocalApplyFailed:"\u672C\u5730\u5E94\u7528\u5931\u8D25",DownloadApplyFailed:"\u4E0B\u8F7D\u6216\u5E94\u7528\u5931\u8D25",BatchApplyFailed:"\u6279\u91CF\u5E94\u7528\u5931\u8D25"},Repos:{Title:"\u53D7\u4FE1\u4EFB\u7684\u4ED3\u5E93",AddPlaceholder:"\u6DFB\u52A0\u4ED3\u5E93 (owner/repo)...",Empty:"\u6682\u65E0\u53D7\u4FE1\u4EFB\u4ED3\u5E93",RemoveConfirm:"\u786E\u5B9A\u79FB\u9664\u8BE5\u4ED3\u5E93\u5417\uFF1F",ScanRegistry:"\u626B\u63CF\u6CE8\u518C\u8868"},Tips:{Title:"\u63D0\u793A",Desc:'\u81EA\u52A8\u5316\u626B\u63CF\u4EC5\u4F1A\u4ECE\u60A8\u4FE1\u4EFB\u7684\u4ED3\u5E93\u4E2D\u68C0\u67E5\u7FFB\u8BD1 Registry\u3002\u786E\u4FDD\u4ED3\u5E93\u5730\u5740\u683C\u5F0F\u4E3A owner/repo\u3002'}},Credits:{TabName:"\u9E23\u8C22",Title:"\u81F4\u8C22\u6240\u6709\u8D21\u732E\u8005",Subtitle:"\u611F\u8C22\u6BCF\u4E00\u4F4D\u4EE5\u4E0D\u540C\u65B9\u5F0F\u4E3A\u672C\u9879\u76EE\u4ED8\u51FA\u52AA\u529B\u7684\u4EBA\u3002",NoData:"\u6682\u672A\u52A0\u8F7D\u5230\u793E\u533A\u521B\u4F5C\u8005\u6570\u636E",StatCreators:"\u4F4D\u521B\u4F5C\u8005",StatStars:"\u4E2A\u661F\u6807",StatTranslations:"\u4EFD\u8BD1\u6587",UnitRepos:"\u4ED3\u5E93",UnitPlugins:"\u63D2\u4EF6",Footer:"\u611F\u8C22\u6240\u6709\u8D21\u732E\u8005\u7684\u65E0\u79C1\u4ED8\u51FA",ComingSoon:"\u6682\u65E0\u6570\u636E\uFF0C\u656C\u8BF7\u671F\u5F85",CatTranslation:"\u7FFB\u8BD1\u8D21\u732E\u8005",CatTranslationDesc:"\u4E3A\u63D2\u4EF6\u4E0E\u4E3B\u9898\u63D0\u4F9B\u591A\u8BED\u8A00\u7FFB\u8BD1\u7684\u793E\u533A\u6210\u5458",CatCode:"\u4EE3\u7801\u8D21\u732E\u8005",CatCodeDesc:"\u4E3A\u9879\u76EE\u63D0\u4F9B\u4EE3\u7801\u8D21\u732E\u7684\u5F00\u53D1\u8005",CatVideo:"\u89C6\u9891\u521B\u4F5C\u8005",CatVideoDesc:"\u5236\u4F5C\u6559\u7A0B\u3001\u4ECB\u7ECD\u89C6\u9891\u7684\u521B\u4F5C\u8005",CatTesting:"\u6D4B\u8BD5\u8D21\u732E\u8005",CatTestingDesc:"\u5E2E\u52A9\u53D1\u73B0\u548C\u53CD\u9988\u95EE\u9898\u7684\u6D4B\u8BD5\u4EBA\u5458",CatSuggestion:"\u5EFA\u8BAE\u8D21\u732E\u8005",CatSuggestionDesc:"\u63D0\u4F9B\u5B9D\u8D35\u610F\u89C1\u4E0E\u5EFA\u8BAE\u7684\u793E\u533A\u6210\u5458",CatSponsor:"\u7231\u53D1\u7535\u6301\u7EED\u8D5E\u52A9",CatSponsorDesc:"\u4E3A\u9879\u76EE\u6301\u7EED\u63D0\u4F9B\u7535\u529B\u7684\u91D1\u4E3B\u7238\u7238"},Admin:{TabName:"\u7BA1\u7406\u5458",Title:"\u793E\u533A\u6570\u636E\u770B\u677F",AdminControl:"\u7BA1\u7406\u5458\u63A7\u5236",Subtitle:"\u6DF1\u5EA6\u76D1\u63A7\u793E\u533A\u52A8\u6001\u4E0E\u6CE8\u518C\u8868\u6743\u91CD\u5206\u914D\u7CFB\u7EDF",SearchPlaceholder:"\u641C\u7D22\u4ED3\u5E93\u5730\u5740\u6216\u4F5C\u8005\u52CB\u7AE0...",PushToCloud:"\u63A8\u9001\u81F3\u4E91\u7AEF",ExportJson:"\u5BFC\u51FA\u6CE8\u518C\u8868 JSON",Stats:{Repos:"\u4ED3\u5E93",Stars:"\u661F\u6807",Contribs:"\u8D21\u732E\u8005",Plugins:"\u63D2\u4EF6",Translations:"\u8BCD\u6761\u7FFB\u8BD1",Commits30d:"30\u5929\u63D0\u4EA4",Langs:"\u6DB5\u76D6\u8BED\u8A00",ActivityIndex:"\u6D3B\u8DC3\u6307\u6570",Forks:"\u6D3E\u751F (Forks)",OpenIssues:"\u5F00\u653E\u8BAE\u9898",LastUpdate:"\u6700\u540E\u63A8\u9001",Size:"\u8D44\u6E90\u5360\u7528"},Leaderboard:{Title:"\u6D3B\u8DC3\u8D21\u732E\u699C",Subtitle:"\u9876\u5C16\u8D21\u732E\u8005\u4E0E\u9AD8\u6D3B\u8DC3\u5EA6\u9879\u76EE"},LanguageDistribution:{Title:"\u8BED\u8A00\u5206\u5E03\u6982\u89C8",TotalTranslations:"{{count}} \u9879\u7FFB\u8BD1"},Management:{Title:"\u4ED3\u5E93\u6CE8\u518C\u8868\u7BA1\u7406",ShowingStats:"\u5F53\u524D\u5C55\u793A {{filtered}} / {{total}} \u4E2A\u4ED3\u5E93",SyncingData:"\u6B63\u5728\u540C\u6B65\u6570\u636E\u5C42...",NoData:"\u5F53\u524D\u8F68\u9053\u672A\u53D1\u73B0\u6570\u636E",NoLicense:"\u65E0\u8BB8\u53EF\u8BC1"},Fields:{AuthorReputation:"\u4F5C\u8005\u58F0\u671B/\u52CB\u7AE0",AuthorReputationPlaceholder:"\u4F8B\u5982\uFF1A\u7FFB\u8BD1\u5DE8\u5320, \u793E\u533A\u65B0\u661F...",RegistryBadges:"\u6CE8\u518C\u8868\u6807\u7B7E (JSON)",RegistryBadgesPlaceholder:'["\u7CBE\u9009", "\u70ED\u95E8"]',FeaturedContext:"\u6DF1\u5EA6\u63A8\u8350\u7406\u7531",FeaturedContextPlaceholder:"\u5C55\u793A\u5728\u4E91\u7AEF\u9996\u9875\u7684\u6DF1\u5EA6\u63A8\u8350\u7406\u7531..."},Controls:{Official:"\u5B98\u65B9\u8BA4\u8BC1",VerifiedNode:"\u5DF2\u9A8C\u8BC1\u8282\u70B9",Featured:"\u7CBE\u9009\u63A8\u8350",HighlightedContent:"\u9AD8\u5149\u5185\u5BB9\u5C55\u793A"},ContributorsManagement:{Title:"\u8D21\u732E\u8005\u7BA1\u7406",PushToCloud:"\u63A8\u9001\u8D21\u732E\u8005",AddNew:"\u6DFB\u52A0\u8D21\u732E\u8005",Name:"\u540D\u79F0",Category:"\u7C7B\u522B",Url:"\u94FE\u63A5 URL",Github:"GitHub \u7528\u6237\u540D",Description:"\u8D21\u732E\u63CF\u8FF0",Add:"\u6DFB\u52A0",RemoveSuccess:"\u5DF2\u79FB\u9664\u8D21\u732E\u8005: {{name}}",AddSuccess:"\u5DF2\u6DFB\u52A0\u8D21\u732E\u8005: {{name}}"}}}});var xB,bB=de(()=>{xB={Titles:{Main:"\u7F16\u8F91\u5668",Sidebar:"\u64CD\u4F5C\u9762\u677F",Files:"\u8D44\u6E90\u7BA1\u7406\u5668",Stats:"\u6761\u76EE\u7EDF\u8BA1",Insert:"\u65B0\u589E\u9879",QuickActions:"\u5FEB\u6377\u64CD\u4F5C",Ai:"AI \u667A\u80FD\u7FFB\u8BD1",Ast:"AST \u7F16\u8F91",Regex:"\u8BED\u6CD5\u6821\u9A8C",Metadata:"\u5143\u6570\u636E"},Labels:{SidebarViewOptions:"\u89C6\u56FE\u9009\u9879",SidebarShowCards:"\u663E\u793A\u5361\u7247",SelectLang:"\u9009\u62E9\u8BED\u8A00",CustomLang:"\u81EA\u5B9A\u4E49\u8BED\u8A00",SelectStyle:"\u9009\u62E9\u98CE\u683C",CustomStyle:"\u81EA\u5B9A\u4E49\u98CE\u683C",PluginId:"\u63D2\u4EF6ID",ThemeName:"\u4E3B\u9898\u540D\u79F0",PathLabel:"\u6587\u4EF6\u8DEF\u5F84",PathPlaceholder:"\u5982\uFF1Astyles.css \u6216 sub/file.js",Name:"\u540D\u79F0",NamePlaceholder:"\u540D\u79F0",Desc:"\u63CF\u8FF0",DescPlaceholder:"\u63CF\u8FF0",Author:"\u4F5C\u8005",Lang:"\u8BED\u8A00",SupportedVer:"\u652F\u6301\u7248\u672C",Ver:"\u7248\u672C",Source:"\u6765\u6E90",SourceCloud:"\u4E91\u7AEF",SourceLocal:"\u672C\u5730",Checksum:"\u6821\u9A8C",BatchSize:"\u6BCF\u6279\u6570\u91CF",Concurrency:"\u5E76\u53D1\u9650\u5236",Timeout:"\u8D85\u65F6 (ms)",Overwrite:"\u8986\u76D6\u73B0\u6709\u8BD1\u6587",ClickToJump:"\u70B9\u51FB\u8DF3\u8F6C\u5230\u8BE5\u884C",RealtimeCheck:"\u5B9E\u65F6\u6821\u9A8C",AutoSave:"\u81EA\u52A8\u4FDD\u5B58",FontSize:"\u5B57\u4F53\u5927\u5C0F",ParenthesesCheck:"\u62EC\u53F7\u5339\u914D",VariableCheck:"\u53D8\u91CF\u6821\u9A8C",PunctuationCheck:"\u6807\u70B9\u68C0\u67E5",ExpectedConsumption:"\u9884\u671F\u6D88\u8017",LineNumber:"\u884C {{line}}"},Actions:{BatchTranslate:"\u5F00\u59CB\u6279\u91CF\u7FFB\u8BD1 ({{count}})",Save:"\u4FDD\u5B58",IncrementalExtract:"\u589E\u91CF\u63D0\u53D6",IncrementalExtractTip:"\u4EC5\u63D0\u53D6\u65B0\u589E\u7FFB\u8BD1\u9879",IncrementalExtractDisabledTip:"\u5F53\u524D\u8BD1\u6587\u5DF2\u5E94\u7528\uFF0C\u65E0\u6CD5\u8FDB\u884C\u589E\u91CF\u63D0\u53D6",OpenFile:"\u6253\u5F00\u5F53\u524D\u6587\u4EF6",OpenFileTip:"\u5728\u5916\u90E8\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u5F53\u524D\u6587\u4EF6",Add:"\u65B0\u589E",DeleteUntranslated:"\u6E05\u7A7A\u672A\u7FFB\u8BD1\u9879",DeleteUntranslatedTip:"\u4E00\u952E\u5220\u9664\u6240\u6709\u5C1A\u672A\u586B\u5199\u8BD1\u6587\u7684\u6761\u76EE",Source:"\u6E90\u7801",Trans:"\u8BD1\u6587",Restore:"\u8FD8\u539F",RestoreAllErrors:"\u8FD8\u539F\u6240\u6709\u5F02\u5E38\u9879",Settings:"\u914D\u7F6E",Diagnose:"\u8BED\u6CD5\u8BCA\u65AD",UnusedDiagnose:"\u5197\u4F59\u8BCA\u65AD",SecurityDiagnose:"\u5B89\u5168\u626B\u63CF",ClearDiagnose:"\u6E05\u9664\u8BCA\u65AD",StartScan:"\u5F00\u59CB\u626B\u63CF",AiFix:"AI \u4FEE\u590D",AiFixTip:"\u8BA9 AI \u5C1D\u8BD5\u4FEE\u590D\u6B64\u8BD1\u6587\u7684\u8BED\u6CD5\u9519\u8BEF",ContextAware:"\u4E0A\u4E0B\u6587\u611F\u77E5",ContextAwareTip:"\u9644\u52A0\u6E90\u7801\u4E0A\u4E0B\u6587\u4EE5\u63D0\u5347\u7FFB\u8BD1\u51C6\u786E\u5EA6"},Stats:{Title:"\u6761\u76EE\u7EDF\u8BA1",Progress:"\u7FFB\u8BD1\u8FDB\u5EA6",Overview:"\u7FFB\u8BD1\u7EDF\u8BA1",TotalItems:"\u603B\u6761\u76EE\u6570",Translated:"\u5DF2\u7FFB\u8BD1\u9879",Untranslated:"\u672A\u7FFB\u8BD1\u9879"},Ast:{Title:"AST \u7F16\u8F91",AddRule:"\u65B0\u589E AST \u89C4\u5219",SelectTypePlaceholder:"\u9009\u62E9\u8282\u70B9\u7C7B\u578B",InputNamePlaceholder:"\u8F93\u5165\u53D8\u91CF\u540D\u6216\u952E\u540D",InputSourcePlaceholder:"\u8F93\u5165\u4EE3\u7801\u539F\u6587",InputTargetPlaceholder:"\u8F93\u5165\u7FFB\u8BD1\u540E\u6587\u672C",DefaultPlaceholder:"\u9ED8\u8BA4\u4E3A\u539F\u6587: {{source}}",NodeVariable:"\u53D8\u91CF\u7533\u660E",NodeAssignment:"\u8D4B\u503C\u8BED\u53E5",NodeProperty:"\u5BF9\u8C61\u5C5E\u6027",NodeCall:"\u65B9\u6CD5\u8C03\u7528",NodeNew:"\u5B9E\u4F8B\u5316"},Regex:{Title:"\u8BED\u6CD5\u6821\u9A8C",Overview:"\u6B63\u5219\u7EDF\u8BA1",TotalItems:"\u5339\u914D\u603B\u6570",Translated:"\u5DF2\u5904\u7406\u9879",Untranslated:"\u5F85\u5904\u7406\u9879",AddRule:"\u65B0\u589E\u6B63\u5219\u89C4\u5219",InputRegexPlaceholder:"\u8F93\u5165\u6B63\u5219\u8868\u8FBE\u5F0F",InputTargetPlaceholder:"\u8F93\u5165\u66FF\u6362\u76EE\u6807",DefaultPlaceholder:"\u9ED8\u8BA4\u4E3A\u539F\u6587: {{source}}"},Table:{EmptyState:"\u6682\u65E0\u7FFB\u8BD1\u6761\u76EE",EmptyStateAst:"\u6CA1\u6709\u627E\u5230\u5339\u914D\u7684 AST \u6761\u76EE",EmptyStateRegex:"\u672A\u53D1\u73B0\u5F85\u6821\u9A8C\u7684\u8BED\u6CD5\u6761\u76EE",ColumnType:"\u7C7B\u578B",ColumnName:"\u540D\u79F0",ColumnSource:"\u539F\u6587",ColumnTarget:"\u8BD1\u6587",ColumnActions:"\u64CD\u4F5C"},Status:{ProcessingBatch:"\u6B63\u5728\u7FFB\u8BD1\u7B2C {{current}}/{{total}} \u6279...",Diagnosing:"\u6B63\u5728\u8FDB\u884C\u8BED\u6CD5\u8BCA\u65AD...",DiagnosingUnused:"\u6B63\u5728\u8FDB\u884C\u5197\u4F59\u8BCA\u65AD...",DiagnosingSecurity:"\u6B63\u5728\u8FDB\u884C\u5B89\u5168\u5BA1\u8BA1...",Applied:"\u5DF2\u5E94\u7528",NotApplied:"\u672A\u5E94\u7528",Empty:"\u6682\u65E0\u6761\u76EE",IssueCount:"\u53D1\u73B0 {{count}} \u4E2A\u95EE\u9898"},Hints:{ExtractSummary:"\u589E\u91CF\u63D0\u53D6\u5B8C\u6210\uFF0C\u65B0\u589E {{count}} \u4E2A\u6761\u76EE",DiagnosisSuccess:"\u8BCA\u65AD\u5B8C\u6210\uFF1A\u672A\u53D1\u73B0\u5BFC\u81F4\u8BED\u6CD5\u9519\u8BEF\u7684\u6761\u76EE",NoItems:"\u65E0\u53EF\u7FFB\u8BD1\u9879",NoNewItems:"\u672A\u53D1\u73B0\u65B0\u7684\u7FFB\u8BD1\u6761\u76EE"},Notices:{NoticePrefix:"\u7F16\u8F91\u5668",SuccessAdd:"\u65B0\u589E\u6210\u529F",SuccessAi:"\u7FFB\u8BD1\u6210\u529F",SuccessRestore:"\u8FD8\u539F\u6210\u529F",SuccessDelete:"\u5220\u9664\u6210\u529F",SuccessIncrementalExtract:"\u589E\u91CF\u63D0\u53D6\u5B8C\u6210",DiagnosisSuccess:"\u8BED\u6CD5\u8BCA\u65AD\u901A\u8FC7",ConfirmDeleteUnused:"\u786E\u5B9A\u5220\u9664\u8FD9\u4E9B\u5197\u4F59\u9879\u5417\uFF1F\u8BE5\u64CD\u4F5C\u4E0D\u53EF\u64A4\u9500\u3002",AiFixSuccess:"AI \u4FEE\u590D\u6210\u529F"},Errors:{FailExists:`\u65B0\u589E\u5931\u8D25 +\u8BD1\u6587\u4E2D\u5DF2\u5B58\u5728\u6B64\u5185\u5BB9`,SyntaxErrorTotal:"\u8BCA\u65AD\u5B8C\u6210\uFF1A\u53D1\u73B0 {{count}} \u4E2A\u8BED\u6CD5\u9519\u8BEF",UnusedTotal:"\u8BCA\u65AD\u5B8C\u6210\uFF1A\u53D1\u73B0 {{count}} \u4E2A\u672A\u5339\u914D\u7684\u5197\u4F59\u6761\u76EE",SecurityRiskTotal:"\u5B89\u5168\u9884\u8B66\uFF1A\u53D1\u73B0 {{count}} \u4E2A\u6F5C\u5728\u7684\u5B89\u5168\u98CE\u9669",SyntaxError:"\u57FA\u7840\u8BED\u6CD5\u9519\u8BEF",Unused:"\u5197\u4F59\u9879 (\u672A\u5728\u6E90\u7801\u4E2D\u8BC6\u522B\u5230)",SecurityCritical:"\u4E25\u91CD\u5B89\u5168\u5A01\u80C1",SecurityWarning:"\u53EF\u7591\u884C\u4E3A\u9884\u8B66",BracketMismatch:"\u62EC\u53F7\u914D\u5BF9\u7F3A\u5931",VariableMismatch:"\u53D8\u91CF\u5360\u4F4D\u7B26\u4E22\u5931\u6216\u4E0D\u5339\u914D",SyntaxErrorAst:"AST \u63D0\u53D6\u5931\u8D25",SyntaxErrorRegex:"\u6B63\u5219\u63D0\u53D6\u5931\u8D25",NoMetadata:"\u672A\u627E\u5230\u5143\u6570\u636E\uFF0C\u65E0\u6CD5\u8FDB\u884C\u8BCA\u65AD\u3002",NoManifest:"\u672A\u627E\u5230\u5BF9\u5E94\u6E05\u5355\uFF0C\u65E0\u6CD5\u5B9A\u4F4D\u76EE\u5F55\u3002",NotJs:"\u5F53\u524D\u9009\u62E9\u7684\u6587\u4EF6\u4E0D\u662F .js \u811A\u672C\uFF0C\u6682\u4E0D\u652F\u6301\u8BED\u6CD5\u8BCA\u65AD\u3002",NoBackup:"\u8BCA\u65AD\u5F02\u5E38\uFF1A\u672A\u627E\u5230\u5BF9\u5E94\u7684\u5907\u4EFD\u6587\u4EF6\u3002\u8BF7\u5148\u70B9\u51FB\u4E00\u6B21\u201C\u66FF\u6362\u201D\u4EE5\u521B\u5EFA\u57FA\u51C6\u5907\u4EFD\u3002",SourceError:"\u6E90\u7801\u672C\u8EAB\u5B58\u5728\u8BED\u6CD5\u9519\u8BEF\uFF0C\u65E0\u6CD5\u8FDB\u884C\u8BCA\u65AD\u3002",FileNotFound:"\u6587\u4EF6\u4E0D\u5B58\u5728",SavePathMissing:"\u4FDD\u5B58\u8DEF\u5F84\u4E0D\u5B58\u5728",TotalCount:"\u5171 {{count}} \u9879",AiFixFail:"AI \u4FEE\u590D\u5931\u8D25"},Dialogs:{ConfirmDeletePath:"\u786E\u8BA4\u5220\u9664\u8BE5\u8DEF\u5F84\uFF1F",PromptNewPath:"\u65B0\u589E\u7FFB\u8BD1\u8DEF\u5F84"}}});var vB,SB=de(()=>{vB={Actions:{PublishToCloud:"\u53D1\u5E03\u5230\u4E91\u7AEF",BackupSync:"\u5168\u91CF\u4E91\u7AEF\u5907\u4EFD\u4E0E\u6062\u590D",InitPersonalRepo:"\u521D\u59CB\u5316\u4E2A\u4EBA\u4ED3\u5E93",UpdateTranslation:"\u66F4\u65B0\u7FFB\u8BD1",NewPublish:"\u6DFB\u52A0\u53D1\u5E03",ApplyForCommunity:"\u7533\u8BF7\u52A0\u5165 Obsidian i18n \u7FFB\u8BD1\u793E\u533A\u76EE\u5F55",ViewDiff:"\u5728\u7EBF\u5DEE\u5F02\u5BF9\u6BD4",Add:"\u6DFB\u52A0",Update:"\u66F4\u65B0",Unsubscribe:"\u53D6\u6D88\u8BA2\u9605",CheckAllUpdates:"\u5168\u91CF\u68C0\u67E5\u66F4\u65B0",Recheck:"\u91CD\u65B0\u68C0\u67E5",UpdateAll:"\u4E00\u952E\u66F4\u65B0\u6240\u6709",RegisterCommunity:"\u7533\u8BF7\u52A0\u5165\u793E\u533A\u7D22\u5F15",PublishNew:"\u53D1\u5E03\u65B0\u7FFB\u8BD1",ForceRefresh:"\u5F3A\u5236\u5237\u65B0\u4E91\u7AEF\u72B6\u6001",GoPublish:"\u524D\u5F80\u53D1\u5E03\u7B2C\u4E00\u4E2A\u7FFB\u8BD1",BackToManage:"\u8FD4\u56DE\u7BA1\u7406\u4E2D\u5FC3",CreateRepo:"\u521B\u5EFA\u65B0\u4ED3\u5E93",UseExistingRepo:"\u4F7F\u7528\u5DF2\u6709\u4ED3\u5E93",StartBackup:"\u5F00\u59CB\u5907\u4EFD",StartRestore:"\u5F00\u59CB\u6062\u590D",Download:"\u4E0B\u8F7D",Overwrite:"\u8986\u76D6\u5207\u6362",ClearFilters:"\u6E05\u9664\u6240\u6709\u8FC7\u6EE4\u5668",CreateNewRepo:"\u521B\u5EFA\u65B0\u4ED3\u5E93",Delete:"\u5220\u9664",Logout:"\u9000\u51FA\u767B\u5F55",ResumeLastBackup:"\u6062\u590D\u4E0A\u6B21\u5907\u4EFD"},Status:{Published:"\u5DF2\u53D1\u5E03",Local:"\u672C\u5730",Uploaded:"\u5DF2\u4E0A\u4F20",NotDownloaded:"\u672A\u4E0B\u8F7D",Reviewing:"\u6536\u5F55\u5BA1\u6838\u4E2D",Fetching:"\u72B6\u6001\u83B7\u53D6\u4E2D",Registered:"\u5DF2\u6536\u5F55\u4E8E\u793E\u533A",Unauthorized:"\u672A\u767B\u5F55",UpToDate:"\u6700\u65B0",UpdateAvailable:"\u6709\u66F4\u65B0",SyncWithCloud:"\u4E0E\u4E91\u7AEF\u540C\u6B65",CloudDifferent:"\u672C\u5730\u4E0E\u4E91\u7AEF\u4E0D\u540C",Latest:"\u6700\u65B0",Modified:"\u6709\u4FEE\u6539",RollingBack:"\u56DE\u6EDA\u4E2D...",BackupDone:"\u2728 \u5B8C\u6210",BackupError:"\u274C \u51FA\u9519",UploadingCloud:"\u2601\uFE0F \u4E0A\u4F20\u4E2D...",DownloadingCloud:"\u{1F4E5} \u4E0B\u8F7D\u4E2D...",VerifyingRepo:"\u6B63\u5728\u9A8C\u8BC1\u4ED3\u5E93\u662F\u5426\u5B58\u5728...",InitializingStructure:"\u6B63\u5728\u521D\u59CB\u5316\u4ED3\u5E93\u7ED3\u6784...",GeneratingReadme:"\u6B63\u5728\u751F\u6210 README.md...",Initializing:"\u6B63\u5728\u521D\u59CB\u5316",CreatingRepo:"\u6B63\u5728\u521B\u5EFA\u4E2A\u4EBA\u7FFB\u8BD1\u4ED3\u5E93...",Checking:"\u6B63\u5728\u68C0\u67E5",LoadingRepo:"\u6B63\u5728\u52A0\u8F7D\u4E2A\u4EBA\u4ED3\u5E93\u6570\u636E...",LoadingContent:"\u52A0\u8F7D\u7248\u672C\u5185\u5BB9...",LoadingDiff:"\u6B63\u5728\u52A0\u8F7D\u5E76\u5BF9\u6BD4\u6570\u636E...",UploadingFile:"\u6B63\u5728\u4E0A\u4F20\u7FFB\u8BD1\u6587\u4EF6...",UpdatingIndex:"\u6B63\u5728\u66F4\u65B0\u7D22\u5F15\u6587\u4EF6...",Processing:"\u6B63\u5728\u5904\u7406",PreparingData:"\u6B63\u5728\u51C6\u5907\u5F85\u5907\u4EFD\u6570\u636E...",BulkUploading:"\u6B63\u5728\u6279\u91CF\u4E0A\u4F20 {{count}} \u4E2A\u6587\u4EF6...",UploadingBatch:"\u6B63\u5728\u4E0A\u4F20\u7B2C {{current}}/{{total}} \u6279\u6B21...",UploadingBatchLog:"\u{1F4E4} \u6B63\u5728\u4E0A\u4F20\u7B2C {{current}}/{{total}} \u6279\u6B21 (\u5171 {{count}} \u4E2A\u6587\u4EF6)...",FetchingManifest:"\u6B63\u5728\u83B7\u53D6\u4E91\u7AEF\u6E05\u5355...",ResumingBackup:"\u6B63\u5728\u6062\u590D\u4E0A\u6B21\u4E2D\u65AD\u7684\u5907\u4EFD...",FinalizingLocal:"\u6B63\u5728\u540C\u6B65\u672C\u5730\u5143\u6570\u636E...",Downloading:"\u6B63\u5728\u4E0B\u8F7D\u7FFB\u8BD1: {{title}}...",Done:"\u2728 \u5B8C\u6210",ForkAvailable:"\u6765\u81EA\u5176\u4ED6\u5E93",Cloud:"\u4E91\u7AEF",Unknown:"\u672A\u77E5\u7248\u672C",Ready:"\u5C31\u7EEA",GuestMode:"\u8BBF\u5BA2\u6A21\u5F0F"},Titles:{NewPublish:"\u6DFB\u52A0\u53D1\u5E03",Homepage:"\u4ED3\u5E93\u4E3B\u9875",DiffViewer:"\u7248\u672C\u5DEE\u5F02\u5BF9\u6BD4"},Tabs:{Community:"\u793E\u533A\u76EE\u5F55",Explore:"\u63A2\u7D22\u8D44\u6E90",Manage:"\u7BA1\u7406\u4E2D\u5FC3",Resources:"\u53D1\u5E03\u8D44\u6E90",Readme:"\u4ED3\u5E93\u4ECB\u7ECD",History:"\u5386\u53F2\u7248\u672C",Browse:"\u6D4F\u89C8\u4ED3\u5E93",Updates:"\u53EF\u7528\u66F4\u65B0"},Steps:{SelectType:"\u9009\u62E9\u7FFB\u8BD1\u7C7B\u578B",SelectTarget:"\u9009\u62E9\u76EE\u6807 {{type}}",SelectSource:"\u9009\u62E9\u7FFB\u8BD1\u6E90",CheckFiles:"\u6838\u5BF9\u672C\u5730\u6587\u4EF6",CompleteInfo:"\u5B8C\u5584\u53D1\u5E03\u4FE1\u606F",VerifyAndPublish:"\u6838\u5BF9\u5E76\u53D1\u5E03"},Tips:{ReadmeDefault:"\u6807\u9898\u5C06\u4F5C\u4E3A\u8BE5\u7FFB\u8BD1\u5728\u793E\u533A\u4E2D\u7684\u4E3B\u540D\u79F0\u3002",SelectSourceDesc:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u5E03\u6216\u66F4\u65B0\u7684\u672C\u5730\u7FFB\u8BD1\u6E90\u6587\u4EF6\u3002",BackupToCloud:"\u4E00\u952E\u5907\u4EFD\u5230\u4E91\u7AEF",LocalToGithub:"\u5C06\u672C\u5730\u6240\u6709\u7FFB\u8BD1\u540C\u6B65\u81F3 GitHub",RestoreFromCloud:"\u4E00\u952E\u4ECE\u4E91\u7AEF\u6062\u590D",GithubToLocal:"\u4ECE GitHub \u62C9\u53D6\u6240\u6709\u7FFB\u8BD1\u8986\u76D6\u672C\u5730",GithubRepo:"GitHub \u4ED3\u5E93",BackupDesc:"\u5168\u91CF\u5907\u4EFD\u4F1A\u5C06\u60A8\u672C\u5730\u6240\u6709\u7684\u7FFB\u8BD1\u6E90\u6587\u4EF6\u4E0A\u4F20\u5230\u60A8\u7684 GitHub \u4ED3\u5E93\u4E2D\uFF0C\u5E76\u81EA\u52A8\u66F4\u65B0\u7D22\u5F15\u3002\u5168\u91CF\u6062\u590D\u5219\u4F1A\u5C06\u4E91\u7AEF\u7684\u6700\u65B0\u7248\u672C\u540C\u6B65\u5230\u672C\u5730\u3002",BackupStep1:"\u2022 \u626B\u63CF\u5E76\u6BD4\u8F83\u672C\u5730\u6240\u6709\u7FFB\u8BD1\u6E90",BackupStep2:"\u2022 \u4E0A\u4F20\u6709\u53D8\u52A8\u7684\u6587\u4EF6\u5230 GitHub",BackupStep3:"\u2022 \u81EA\u52A8\u7EF4\u62A4 metadata.json \u7D22\u5F15",RestoreStep1:"\u2022 \u83B7\u53D6\u4E91\u7AEF metadata.json \u5217\u8868",RestoreStep2:"\u2022 \u4E0B\u8F7D\u6240\u6709\u672C\u5730\u7F3A\u5931\u6216\u65E7\u7684\u6587\u4EF6",RestoreStep3:"\u2022 \u81EA\u52A8\u5728\u672C\u5730\u6CE8\u518C\u5E76\u5E94\u7528\u4E0B\u8F7D\u7684\u7FFB\u8BD1",InitRepoDesc:"\u5728 GitHub \u4E0A\u521B\u5EFA\u4E00\u4E2A\u4E13\u95E8\u5B58\u50A8\u7FFB\u8BD1\u6587\u4EF6\u7684\u516C\u5F00\u4ED3\u5E93\uFF0C\u4EE5\u4FBF\u4E8E\u5907\u4EFD\u3001\u5171\u4EAB\u548C\u5728\u4E0D\u540C\u8BBE\u5907\u95F4\u540C\u6B65\u3002\u60A8\u53EF\u4EE5\u4F7F\u7528\u9ED8\u8BA4\u540D\u79F0\u6216\u81EA\u5B9A\u4E49\u540D\u79F0\u3002",UseExistingDesc:"\u5982\u679C\u60A8\u5DF2\u7ECF\u5728 GitHub \u4E0A\u624B\u52A8\u521B\u5EFA\u4E86\u4ED3\u5E93\uFF0C\u8BF7\u8F93\u5165\u5176\u540D\u79F0\u4EE5\u8FDB\u884C\u8FDE\u63A5\u3002\u7A0B\u5E8F\u5C06\u5C1D\u8BD5\u5728\u5176\u4E0A\u521D\u59CB\u5316\u5FC5\u8981\u7684\u76EE\u5F55\u7ED3\u6784\u3002",CheckFailRepo:"\u68C0\u67E5\u4ED3\u5E93 {{address}} \u5931\u8D25",CheckFail:"\u68C0\u67E5\u66F4\u65B0\u5931\u8D25",RepoFormatTip:"\u8BF7\u4F7F\u7528 owner/repo \u683C\u5F0F",NoSelfExplore:"\u4E0D\u80FD\u5728\u63A2\u7D22\u9875\u9762\u6D4F\u89C8\u81EA\u5DF1\u7684\u7FFB\u8BD1\u4ED3\u5E93\uFF0C\u8BF7\u524D\u5F80\u7BA1\u7406\u9875\u9762",NoTranslations:"\u8BE5\u4ED3\u5E93\u6682\u672A\u53D1\u5E03\u4EFB\u4F55\u7FFB\u8BD1\u8D44\u6E90",ManifestNotFound:"\u672A\u627E\u5230 metadata.json \u6216\u6587\u4EF6\u65E0\u6548",FetchFailManifest:"\u83B7\u53D6\u4ED3\u5E93\u6E05\u5355\u5931\u8D25",FetchCommitsFail:"\u83B7\u53D6\u63D0\u4EA4\u5386\u53F2\u5931\u8D25",UpdatedItem:"\u5DF2\u6210\u529F\u66F4\u65B0 {{title}}",AddedAndActive:"\u5DF2\u6DFB\u52A0 {{title}} \u5E76\u8BBE\u4E3A\u5F53\u524D\u6D3B\u52A8\u6E90",AddedSource:"\u5DF2\u6210\u529F\u6DFB\u52A0 {{title}}",DiscoverDesc:"\u8F93\u5165 GitHub \u4ED3\u5E93\u5730\u5740\uFF08\u5982: owner/repo\uFF09\uFF0C\u5373\u53EF\u6D4F\u89C8\u5E76\u4E0B\u8F7D\u5176\u4E2D\u5206\u4EAB\u7684 i18n \u8D44\u6E90\u3002",NoMatchesInRepo:"\u5F53\u524D\u4ED3\u5E93\u4E2D\u6CA1\u6709\u5339\u914D\u8FC7\u6EE4\u6761\u4EF6\u7684\u8D44\u6E90",NoReadme:"\u672A\u627E\u5230 README.md\u6216\u8005\u6587\u4EF6\u4E3A\u7A7A",NoReadmeDesc:"\u8BE5\u4ED3\u5E93\u4F5C\u8005\u5C1A\u672A\u63D0\u4F9B\u4ECB\u7ECD\u6587\u6863",AllLatestDesc:"\u60A8\u8BA2\u9605\u7684\u6240\u6709\u7FFB\u8BD1\u5E93\u5185\u5BB9\u5728\u672C\u5730\u5747\u4E3A\u6700\u65B0\u7248\u672C",SelectHistoryEntry:"\u8BF7\u4ECE\u6211\u7684\u7FFB\u8BD1\u5217\u8868\u4E2D\u9009\u62E9\u4E00\u4E2A\u6761\u76EE\u67E5\u770B\u5386\u53F2",LoadingCommits:"\u6B63\u5728\u83B7\u53D6\u63D0\u4EA4\u5386\u53F2...",NoCommits:"\u8BE5\u6587\u4EF6\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55",RollbackSuccessLocal:"\u56DE\u6EDA\u6210\u529F\uFF0C\u672C\u5730\u6587\u4EF6\u5DF2\u540C\u6B65\u66F4\u65B0",VersionCompareDesc:"\u5BF9\u6BD4\u672C\u5730\u6700\u65B0\u7FFB\u8BD1\u4E0E\u4E91\u7AEF\u7248\u672C\u7684\u5DEE\u5F02",PublishNoticePrefix:"\u53D1\u5E03\u63D0\u4EA4\u5C06\u76F4\u63A5\u63A8\u9001\u5230",PublishNoticeSuffix:"\u4ED3\u5E93\uFF0C\u8BF7\u786E\u4FDD\u60A8\u7684\u6388\u6743\u6709\u6548\u3002"},Labels:{ResourceCenter:"\u8D44\u6E90\u7BA1\u7406\u4E2D\u5FC3",ManageCenter:"\u4E91\u7AEF\u7BA1\u7406\u4E2D\u5FC3",PendingUpdates:"\u5F85\u5904\u7406\u7684\u66F4\u65B0",CloudCentral:"\u4E91\u7AEF\u7FFB\u8BD1\u4E2D\u5FC3",TranslationHistory:"\u7FFB\u8BD1\u5386\u53F2\u7248\u672C",BackupRestore:"\u4E91\u7AEF\u5168\u91CF\u5907\u4EFD / \u6062\u590D",Feedback:"\u53CD\u9988",AccessLimit:"\u8BBF\u95EE\u9650\u5236",Permission:"\u6743\u9650",DefaultRepoDesc:"\u8FD9\u662F\u4E00\u4E2A\u7528\u4E8E\u7FFB\u8BD1 Obsidian \u63D2\u4EF6\u7684\u5171\u5EFA\u4ED3\u5E93\u3002",Followers:"\u5173\u6CE8\u8005 (Followers)",PublicRepos:"\u516C\u5F00\u4ED3\u5E93 (Public Repos)",UploadTypePlugin:"\u63D2\u4EF6\u7FFB\u8BD1",UploadTypePluginDesc:"\u53D1\u5E03\u6216\u66F4\u65B0\u5404\u4E2A\u63D2\u4EF6\u7684 i18n \u8D44\u6E90",UploadTypeTheme:"\u4E3B\u9898\u7FFB\u8BD1",UploadTypeThemeDesc:"\u4E3A Obsidian \u4E3B\u9898\u63D0\u4F9B\u6C49\u5316\u652F\u6301",Target:"\u76EE\u6807 {{type}}",Source:"\u7FFB\u8BD1\u6E90\u6587\u4EF6",TranslationTitle:"\u663E\u793A\u540D\u79F0 (Title)",Version:"\u9002\u7528\u7248\u672C (Version)",Language:"\u8BED\u79CD",Description:"\u8BE6\u7EC6\u63CF\u8FF0 (Description)",LocalFile:"\u672C\u5730\u6587\u4EF6",RepoName:"\u4ED3\u5E93\u540D\u79F0",RepoUrlPrefix:"\u4ED3\u5E93\u9884\u89C8:",RepoDesc:"\u4ED3\u5E93\u7B80\u4ECB",RegistrationLabel:"\u{1F4CB} \u7533\u8BF7\u4FE1\u606F",RepoInfo:"\u4ED3\u5E93\u6982\u51B5",RepoAddress:"\u4ED3\u5E93\u5730\u5740",ManifestFile:"\u7D22\u5F15\u6587\u4EF6",TranslationCountLabel:"\u7FFB\u8BD1\u5305\u6570\u91CF",UnitPlugins:"\u4E2A",LanguagesCovered:"\u6DB5\u76D6\u8BED\u79CD",ReviewHelper:"\u5BA1\u6838\u8F85\u52A9",ReviewerNotes:"\u5BA1\u6838\u89C4\u5219\u8BF4\u660E",ReviewerNote1:"\u4ED3\u5E93\u5FC5\u987B\u5305\u542B\u6709\u6548\u7684 metadata.json",ReviewerNote2:"\u6587\u4EF6\u7ED3\u6784\u9700\u7B26\u5408\u6807\u51C6\uFF08/plugins/ID/zh-CN.json\uFF09",ReviewerNote3:"\u6240\u6709\u4E0A\u4F20\u7684\u6587\u4EF6\u5FC5\u987B\u80FD\u901A\u8FC7\u54C8\u5E0C\u9A8C\u8BC1",CheckManifestData:"\u67E5\u770B\u539F\u59CB manifest \u6570\u636E",IssueAutoGenerated:"\u6B64\u5DE5\u5355\u7531 i18n \u63D2\u4EF6\u81EA\u52A8\u751F\u6210",ApplyRegistration:"\u7533\u8BF7\u6536\u5F55",UpdateReadmeMsg:"chore: update README.md via i18n plugin",RemoveTranslation:"chore: remove translation",DeleteEntry:"chore: delete manifest entry",StatAssets:"\u8D44\u6E90",StatStars:"\u661F\u6807",StatForks:"\u5206\u53C9",StatIssues:"\u53CD\u9988",PublishedResources:"\u5DF2\u53D1\u5E03\u7684\u8D44\u6E90",ReadmeCustomPage:"\u4ED3\u5E93\u4ECB\u7ECD\u9884\u89C8 (README.md)",CloudActions:"\u4E91\u7AEF\u64CD\u4F5C",LocalTranslation:"\u672C\u5730\u7FFB\u8BD1",UnnamedTranslation:"\u672A\u547D\u540D\u7FFB\u8BD1",InitReadmeMsg:"chore: initial repository structure",AddTranslationMsg:"feat: add translation {{title}} for {{plugin}}",UpdateTranslationMsg:"feat: update translation {{title}} for {{plugin}}",UpdateManifestMsg:"chore: update manifest for {{plugin}}",UpdateManifestGlobalMsg:"chore: update metadata.json (global update)",BackupCommitMsg:"backup: {{title}} ({{plugin}})",BulkBackupMsg:"batch backup: {{count}} items synced",BulkBackupMsgBatch:"batch backup: (chunk {{current}}/{{total}})",ViewOnGithubTitle:"\u5728 GitHub \u4E0A\u67E5\u770B {{repo}}",NoReadmeAdded:"\u6682\u65E0 README \u4ECB\u7ECD",NoReadmeAddedDesc:"\u60A8\u53EF\u4EE5\u70B9\u51FB\u53F3\u4E0A\u89D2\u7684\u7F16\u8F91\u6309\u94AE\uFF0C\u4E3A\u60A8\u7684\u7FFB\u8BD1\u5E93\u6DFB\u52A0\u8BE6\u7EC6\u7684\u4ECB\u7ECD\u3001\u4F7F\u7528\u8BF4\u660E\u6216\u8D21\u732E\u6307\u5357\u3002",ViewHistory:"\u67E5\u770B\u5386\u53F2\u7248\u672C",DeleteCloudPkg:"\u4ECE\u4E91\u7AEF\u6C38\u4E45\u5220\u9664\u8FD9\u4E2A\u7FFB\u8BD1\u5305",FetchingResources:"\u6B63\u5728\u83B7\u53D6\u4E91\u7AEF\u8D44\u6E90...",NoRegistry:"\u6682\u65E0\u793E\u533A\u6536\u5F55",NoRegistryDesc:"\u793E\u533A\u76EE\u5F55\u76EE\u524D\u4E3A\u7A7A\uFF0C\u60A8\u53EF\u4EE5\u6210\u4E3A\u7B2C\u4E00\u4E2A\u7533\u8BF7\u52A0\u5165\u7684\u4EBA\uFF01",Leaderboard:"\u6D3B\u8DC3\u8D21\u732E\u699C",TopStars:"\u6700\u9AD8\u4EBA\u6C14\u699C",TopActive:"\u8FD1\u671F\u6D3B\u8DC3\u699C",TopPlugins:"\u9AD8\u4EA7\u4F5C\u8005\u699C",TopAuthors:"\u6D3B\u8DC3\u8BD1\u8005\u699C",Rank1:"\u7B2C\u4E00\u540D",Rank2:"\u7B2C\u4E8C\u540D",Rank3:"\u7B2C\u4E09\u540D",LeaderboardTip:"\u6392\u884C\u699C\u6570\u636E\u6BCF 24 \u5C0F\u65F6\u81EA\u52A8\u66F4\u65B0\u4E00\u6B21",DiscoverTranslations:"\u53D1\u73B0\u4E91\u7AEF\u7FFB\u8BD1\u5E93",SubscriptionRepo:"\u4E2A\u5DF2\u6536\u5F55\u4ED3\u5E93",ExploreThisRepo:"\u6D4F\u89C8\u6B64\u4ED3\u5E93\u8D44\u6E90",NoDesc:"\u6682\u65E0\u63CF\u8FF0",SubscriptionList:"\u8BA2\u9605\u5217\u8868",WaitingFetch:"\u7B49\u5F85\u83B7\u53D6...",ViewOnGithub:"\u5728 GitHub \u4E0A\u67E5\u770B {{repo}}",PleaseWait:"\u6B63\u5728\u52A0\u8F7D\uFF0C\u8BF7\u7A0D\u5019...",SourceFrom:"\u8D44\u6E90\u6765\u6E90",Commits:"\u63D0\u4EA4\u8BB0\u5F55",VersionPreview:"\u7248\u672C\u5185\u5BB9\u9884\u89C8",SelectCommitToPreview:"\u8BF7\u5728\u5DE6\u4FA7\u9009\u62E9\u4E00\u4E2A\u7248\u672C\u8FDB\u884C\u9884\u89C8",RollbackToVersion:"\u56DE\u6EDA\u5230\u6B64\u7248\u672C",RollbackTranslationMsg:"\u56DE\u6EDA\u7FFB\u8BD1: {{plugin}} \u5230\u7248\u672C {{sha}}",UpdateManifestRollbackMsg:"\u540C\u6B65\u56DE\u6EDA manifest: {{plugin}}",Added:"\u65B0\u589E",Deleted:"\u79FB\u9664",Old:"\u65E7\u503C",New:"\u65B0\u503C",TotalDiffs:"\u5171\u53D1\u73B0 {{count}} \u5904\u5DEE\u5F02",ShowingCount:" (\u5DF2\u8FC7\u6EE4\u663E\u793A {{count}} \u5904)",FileSize:"\u6587\u4EF6\u5927\u5C0F",ContentHash:"\u5185\u5BB9\u6307\u7EB9",ReportIssue:"\u62A5\u544A\u95EE\u9898",IssueTemplateBody:"\u53D1\u73B0 {{plugin}} \u7684\u7FFB\u8BD1\u5B58\u5728\u95EE\u9898...",SupportedVersions:"\u652F\u6301\u7248\u672C\u53F7",TotalTranslations:"\u5168\u5C40\u603B\u7FFB\u8BD1\u6570",TotalContributors:"\u5168\u5C40\u603B\u8D21\u732E\u8005",TotalStars:"\u661F\u6807\u603B\u8BA1",LocalResource:"\u672C\u5730\u5DF2\u5B89\u88C5\u8D44\u6E90",Official:"\u5B98\u65B9\u63A8\u8350",Featured:"\u793E\u533A\u7CBE\u9009",RecommendReason:"\u63A8\u8350\u7406\u7531",MasterTranslator:"\u7FFB\u8BD1\u5DE8\u5320",RisingStar:"\u793E\u533A\u65B0\u661F",LegendaryRepo:"\u4E07\u4F17\u77A9\u76EE"},Placeholders:{RepoName:"\u4F8B\u5982: my-obsidian-i18n-resources",SelectTarget:"\u70B9\u51FB\u9009\u62E9\u76EE\u6807 {{type}}...",InputRepoPlaceholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u8DEF\u5F84 (owner/repo)",SelectSource:"\u8BF7\u9009\u62E9\u672C\u5730\u6E90...",SearchPublished:"\u641C\u7D22\u5DF2\u53D1\u5E03\u7684\u7FFB\u8BD1 (\u63D2\u4EF6 ID \u6216\u6807\u9898)...",ReadmeEdit:"\u53EF\u652F\u6301\u6807\u51C6\u7684 Markdown \u8BED\u6CD5...",SearchRepo:"\u641C\u7D22\u4ED3\u5E93\u3001\u4F5C\u8005\u6216\u63CF\u8FF0...",Repo:"GitHub \u4ED3\u5E93 (owner/repo)",SearchPlugins:"\u5FEB\u6377\u641C\u7D22\u5F53\u524D\u5217\u8868...",SearchDiff:"\u641C\u7D22\u5DEE\u5F02\u8BB0\u5F55..."},Dialogs:{ConfirmUpdateAll:"\u786E\u5B9A\u8981\u66F4\u65B0\u8FD9 {{count}} \u4E2A\u7FFB\u8BD1\u5417\uFF1F",ConfirmOverwrite:`\u68C0\u6D4B\u5230\u672C\u5730\u5DF2\u5B58\u5728 {{owner}} \u7684\u540C\u6E90\u7FFB\u8BD1\u5305\u3002 \u662F\u5426\u4F7F\u7528\u5F53\u524D {{newOwner}} \u7684\u7248\u672C\u8986\u76D6\u672C\u5730\u7FFB\u8BD1\uFF1F`,DeleteConfirm:`\u786E\u5B9A\u8981\u4ECE\u4E91\u7AEF\u5220\u9664\u3010{{plugin}}\u3011({{title}}) \u7684\u7FFB\u8BD1\u5305\u5417\uFF1F \u5220\u9664\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u3002`,DeleteConfirmSingle:`\u786E\u5B9A\u8981\u4ECE\u4E91\u7AEF\u5220\u9664\u6B64\u7FFB\u8BD1\u5305\u5417\uFF1F \u5220\u9664\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u3002`,RollbackConfirm:"\u786E\u5B9A\u8981\u5C06\u6B64\u6587\u4EF6\u56DE\u6EDA\u5230\u9009\u5B9A\u7684\u5386\u53F2\u7248\u672C\u5417\uFF1F\u8FD9\u4F1A\u4EA7\u751F\u4E00\u6761\u65B0\u7684\u63D0\u4EA4\u8BB0\u5F55\u5E76\u8986\u76D6\u5F53\u524D\u4E91\u7AEF\u7248\u672C\u3002",ConfirmUpdate:"\u786E\u8BA4\u8981\u66F4\u65B0\u6B64\u7FFB\u8BD1\u5305\u5417\uFF1F",ConfirmRestoreAll:`\u786E\u5B9A\u8981\u4ECE\u4E91\u7AEF\u6062\u590D\u5168\u90E8\u7FFB\u8BD1\u5417\uFF1F -\u672C\u5730\u5DF2\u6709\u7684\u540C\u540D\u7FFB\u8BD1\u6E90\u5C06\u88AB\u8986\u76D6\u3002`},Errors:{ManifestFormatError:"metadata.json \u683C\u5F0F\u9519\u8BEF",ManifestNotFound:"\u65E0\u6CD5\u89E3\u6790 metadata.json \u6216\u6587\u4EF6\u4E0D\u5B58\u5728",UserNotFound:"\u672A\u83B7\u53D6\u5230\u7528\u6237\u4FE1\u606F",CannotRegister:"\u65E0\u6CD5\u6CE8\u518C",RegistryAddrMissing:"\u793E\u533A\u7D22\u5F15\u4ED3\u5E93\u5730\u5740\u672A\u914D\u7F6E",RegistryAddrFormatError:"\u793E\u533A\u7D22\u5F15\u4ED3\u5E93\u5730\u5740\u683C\u5F0F\u9519\u8BEF",InitRepoStructFail:"\u521D\u59CB\u5316\u4ED3\u5E93\u7ED3\u6784\u5931\u8D25",CreateRepoFail:"\u521B\u5EFA\u4ED3\u5E93\u5931\u8D25",RepoNotExistOnGithub:"\u4ED3\u5E93 {{repo}} \u4E0D\u5B58\u5728\uFF0C\u8BF7\u5148\u5728 GitHub \u4E0A\u521B\u5EFA",InvalidSourceConfig:"\u672A\u627E\u5230\u6709\u6548\u7684\u7FFB\u8BD1\u6E90\u914D\u7F6E",UploadFileFail:"\u4E0A\u4F20\u6587\u4EF6\u5931\u8D25",UpdateManifestFail:"\u66F4\u65B0\u6E05\u5355\u6587\u4EF6\u5931\u8D25",UpdateIndexFail:"\u66F4\u65B0\u7D22\u5F15\u6587\u4EF6\u5931\u8D25",InitStructureFail:"\u521D\u59CB\u5316\u4ED3\u5E93\u7ED3\u6784\u5931\u8D25",CreateFail:"\u521B\u5EFA\u4ED3\u5E93\u5931\u8D25",RollbackFail:"\u56DE\u6EDA\u5931\u8D25",GetFileFail:"\u65E0\u6CD5\u83B7\u53D6\u6587\u4EF6\u5185\u5BB9",InitFailed:"\u521D\u59CB\u5316\u5931\u8D25",NoGithubUser:"\u65E0\u6CD5\u83B7\u53D6 GitHub \u7528\u6237\u4FE1\u606F",NoCreateRepoPerm:"\u6743\u9650\u4E0D\u8DB3",UploadFailed:"\u4E0A\u4F20\u5931\u8D25",LocalFileMissing:"\u672C\u5730\u7FFB\u8BD1\u6587\u4EF6\u4E22\u5931",RepoNotFound:"\u672A\u627E\u5230\u4E2A\u4EBA\u7FFB\u8BD1\u4ED3\u5E93",GetManifestFail:"\u83B7\u53D6\u4E3B\u6E05\u5355\u5931\u8D25",BackupErrorMsg:"\u{1F4A5} \u5907\u4EFD\u51FA\u9519: {{error}}",RestoreErrorMsg:"\u{1F4A5} \u6062\u590D\u51FA\u9519: {{error}}",FetchFail:"\u83B7\u53D6\u5931\u8D25",DownloadFail:"\u4E0B\u8F7D\u5931\u8D25",UploadFailItem:"\u274C {{title}} \u4E0A\u4F20\u5931\u8D25",DownloadFailItem:"\u274C {{title}} \u4E0B\u8F7D\u5931\u8D25\uFF1A\u6587\u4EF6\u4E0D\u5B58\u5728",ProcessingFailItem:"\u274C {{title}} \u5904\u7406\u5931\u8D25: {{error}}",UpdateFail:"\u66F4\u65B0 {{title}} \u5931\u8D25:",LoadDiffFail:"\u52A0\u8F7D\u5DEE\u5F02\u6570\u636E\u5931\u8D25:",BackupFail:"\u5907\u4EFD\u5931\u8D25:",RestoreFail:"\u6062\u590D\u5931\u8D25:",CheckPendingFail:"\u68C0\u67E5\u5F85\u5904\u7406\u7533\u8BF7\u5931\u8D25",ParseRegistryFail:"\u89E3\u6790\u793E\u533A\u7D22\u5F15\u5931\u8D25",RegisterFail:"\u7533\u8BF7\u6536\u5F55\u5931\u8D25",SaveReadmeFail:"\u4FDD\u5B58 README \u5931\u8D25",DeleteFail:"\u5220\u9664\u5931\u8D25",DeleteFileProblem:"\u64CD\u4F5C\u6587\u4EF6\u65F6\u9047\u5230\u95EE\u9898",CreateReadmeFail:"\u521B\u5EFA README \u5931\u8D25",FetchCommitsFail:"\u83B7\u53D6\u63D0\u4EA4\u8BB0\u5F55\u5931\u8D25",PreviewFail:"\u9884\u89C8\u8BF7\u6C42\u5931\u8D25",RepoNotExist:"\u4ED3\u5E93 {{address}} \u4E0D\u5B58\u5728",AddFail:"\u6DFB\u52A0\u5931\u8D25"},Hints:{InputRepoPlaceholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u5730\u5740",RepoFormatTip:"\u8BF7\u8F93\u5165\u683C\u5F0F\u4E3A owner/repo \u7684\u4ED3\u5E93\u5730\u5740",NoSelfExplore:"\u4E0D\u652F\u6301\u5728\u201C\u63A2\u7D22\u201D\u9875\u6DFB\u52A0\u6216\u62C9\u53D6\u81EA\u5DF1\u7684\u5F53\u524D\u4E91\u7AEF\u4ED3\u5E93\u3002\u8BF7\u524D\u5F80\u201C\u7BA1\u7406\u201D\u9875\u64CD\u4F5C\u81EA\u5DF1\u7684\u7FFB\u8BD1\u5305\u3002",NoPublished:"\u6682\u65E0\u5DF2\u53D1\u5E03\u7684\u7FFB\u8BD1\u8D44\u6E90",NoPublishedDesc:"\u60A8\u7684\u7FFB\u8BD1\u4ED3\u5E93\u76EE\u524D\u662F\u7A7A\u7684\u3002\u60A8\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5F00\u59CB\u53D1\u5E03\u60A8\u7684\u7B2C\u4E00\u4E2A\u7FFB\u8BD1\u5305\uFF0C\u6216\u8005\u5728\u4E91\u7AEF\u9762\u677F\u8FDB\u884C\u5907\u4EFD\u4E0E\u6062\u590D\u3002",RepoNameRequired:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0",RepoAlreadyInCommunity:"\u4F60\u7684\u4ED3\u5E93\u5DF2\u5728\u793E\u533A\u76EE\u5F55\u4E2D",PublishBeforeRegister:"\u8BF7\u5148\u53D1\u5E03\u81F3\u5C11\u4E00\u4E2A\u7FFB\u8BD1\u540E\u518D\u6CE8\u518C",RegistrationIntercept:"\u6CE8\u518C\u62E6\u622A",RepoAlreadyRegistered:"\u60A8\u7684\u4ED3\u5E93\u5DF2\u88AB\u793E\u533A\u6536\u5F55\uFF0C\u8BF7\u52FF\u91CD\u8907\u7533\u8BF7",RegistrationPending:"\u6B63\u5728\u7533\u8BF7\u6536\u5F55\u7684\u5DE5\u5355\u5DF2\u7ECF\u5B58\u5728\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85\u5BA1\u6838",NoLocalSourcesTip:"\u672A\u68C0\u6D4B\u5230\u5DF2\u6709\u7684\u672C\u5730{{type}}\u7FFB\u8BD1\u6E90\u6587\u4EF6\u3002\u8BF7\u5148\u4F7F\u7528\u7FFB\u8BD1\u5DE5\u5177\u751F\u6210\u7FFB\u8BD1\u3002",NoSourcesForTarget:"\u8BE5{{type}}\u4E0B\u6CA1\u6709\u4EFB\u4F55\u7FFB\u8BD1\u6E90\u6587\u4EF6",RepoNotInit:'\u5C1A\u672A\u521B\u5EFA\u4E2A\u4EBA\u4ED3\u5E93\uFF0C\u8BF7\u5148\u524D\u5F80"\u53D1\u5E03"\u9875\u521D\u59CB\u5316',NoLocalSourcesBackup:"\u672A\u53D1\u73B0\u53EF\u4F9B\u5907\u4EFD\u7684\u672C\u5730\u7FFB\u8BD1\u6E90",NoCloudData:"\u4E91\u7AEF\u4ED3\u5E93\u4E2D\u6682\u65E0\u5907\u4EFD\u6570\u636E",FetchingManifest:"\u6B63\u5728\u83B7\u53D6\u4E91\u7AEF\u6E05\u5355...",TokenRequired:"\u8BF7\u5148\u5728\u8BBE\u7F6E\u4E2D\u914D\u7F6E GitHub Token\uFF08\u5171\u5EFA\u4E91\u7AEF \u2192 \u63D0\u4EA4 Token\uFF09",LoginRequired:"\u9700\u8981\u767B\u5F55\u4EE5\u8BBF\u95EE\u4E91\u7AEF\u529F\u80FD",LoginRequiredDesc:"\u8BF7\u5728\u63D2\u4EF6\u8BBE\u7F6E\u4E2D\u914D\u7F6E\u5177\u5907 public_repo \u6743\u9650\u7684 GitHub Token\u3002\u914D\u7F6E\u5B8C\u6210\u540E\uFF0C\u60A8\u5C06\u53EF\u4EE5\u63A2\u7D22\u793E\u533A\u8D44\u6E90\u3001\u53D1\u5E03\u7FFB\u8BD1\u5E76\u53C2\u4E0E\u5171\u5EFA\u3002",GoToSettings:"\u524D\u5F80\u8BBE\u7F6E",RateLimitTitle:"GitHub \u8BBF\u95EE\u53D7\u9650",RateLimitDesc:"\u7531\u4E8E GitHub \u7684\u533F\u540D\u8BBF\u95EE\u9891\u7387\u9650\u5236\uFF08\u6BCF\u5C0F\u65F6 60 \u6B21\uFF09\uFF0C\u60A8\u76EE\u524D\u7684\u8BBF\u95EE\u5DF2\u8FBE\u4E0A\u9650\u3002\u8BF7\u5728\u8BBE\u7F6E\u4E2D\u914D\u7F6E GitHub Token \u4EE5\u83B7\u5F97\u7A33\u5B9A\u4E0D\u9650\u901F\u7684\u4F53\u9A8C\u3002",RateLimitGuide:"\u914D\u7F6E Token \u5373\u53EF\u89E3\u51B3"},Notices:{UploadSuccess:"\u4E0A\u4F20\u6210\u529F",UploadCompleteDesc:"\u5DF2\u6210\u529F\u5C06\u7FFB\u8BD1\u6587\u4EF6\u540C\u6B65\u81F3\u60A8\u7684\u4ED3\u5E93\u3002",SubmitSuccess:"\u63D0\u4EA4\u6210\u529F",RegistrationSubmittedDesc:"\u5DF2\u63D0\u4EA4\u7533\u8BF7\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002",FetchSuccess:"\u83B7\u53D6\u6210\u529F",FoundTranslations:"\u5171\u627E\u5230 {{count}} \u4E2A\u8BD1\u6587\u8D44\u6E90",RepoUnsubscribed:"\u5DF2\u53D6\u6D88\u8BA2\u9605\u8BE5\u4ED3\u5E93",UpdateSuccess:"\u66F4\u65B0\u6210\u529F",DownloadSuccess:"\u4E0B\u8F7D\u6210\u529F",AllUpToDate:"\u672C\u5730\u5DF2\u662F\u6700\u65B0\u7248\u672C",UpdateComplete:"\u66F4\u65B0\u5B8C\u6210",UpdateSuccessCount:"\u6210\u529F\u66F4\u65B0\u4E86 {{count}} \u4E2A\u8BED\u8A00\u5305",RepoReadyPrefix:"\u60A8\u7684\u4ED3\u5E93\u5DF2\u5C31\u7EEA\uFF1A",FoundLocalSources:"\u53D1\u73B0 {{count}} \u4E2A\u672C\u5730\u7FFB\u8BD1\u6E90",SkipFileNotFound:"\u8DF3\u8FC7 {{title}}: \u672C\u5730\u6587\u4EF6\u4E0D\u5B58\u5728",SkipUpToDate:"\u8DF3\u8FC7 {{title}}: \u4E91\u7AEF\u5DF2\u662F\u6700\u65B0",BackupNoChanges:"\u6CA1\u6709\u53D1\u73B0\u9700\u8981\u5907\u4EFD\u7684\u65B0\u53D8\u52A8",UploadSuccessItem:"\u2705 {{title}} \u4E0A\u4F20\u6210\u529F",BackupCompleteStat:"\u5907\u4EFD\u5B8C\u6210: \u5DF2\u4E0A\u4F20 {{uploaded}} \u4E2A\uFF0C\u8DF3\u8FC7 {{skipped}} \u4E2A",BackupSuccessCount:"\u6210\u529F\u5907\u4EFD\u4E86 {{count}} \u4E2A\u7FFB\u8BD1\u5305",FoundCheckpoint:"\u53D1\u73B0\u4E0A\u6B21\u672A\u5B8C\u6210\u7684\u5907\u4EFD ({{date}})",FoundCloudSources:"\u5728\u4E91\u7AEF\u53D1\u73B0 {{count}} \u4E2A\u7FFB\u8BD1\u6E90",ItemsToUpload:"\u68C0\u6D4B\u5230\u6709 {{count}} \u4E2A\u9879\u76EE\u9700\u8981\u4E0A\u4F20\u5230\u4E91\u7AEF",SkipLocalLatest:"\u8DF3\u8FC7 {{title}}: \u672C\u5730\u5DF2\u662F\u6700\u65B0",RestoreSuccessItem:"\u2705 {{title}} \u6062\u590D\u6210\u529F",RestoreCompleteStat:"\u6062\u590D\u5B8C\u6210: \u5DF2\u540C\u6B65 {{restored}} \u4E2A\uFF0C\u8DF3\u8FC7 {{skipped}} \u4E2A",RestoreSuccessCount:"\u6210\u529F\u6062\u590D\u4E86 {{count}} \u4E2A\u7FFB\u8BD1\u5305",NoFile:"\u6587\u4EF6\u4E0D\u5B58\u5728"}}});var R8,D8=de(()=>{R8={MainTitle:"\u4F7F\u7528\u5E2E\u52A9",VideoTitle:"\u5B98\u65B9\u89C6\u9891\u6559\u7A0B",VideoDesc:"\u6F14\u793A\u63D2\u4EF6\u5168\u5957\u64CD\u4F5C\u6D41\u7A0B\uFF0C\u964D\u4F4E\u4E0A\u624B\u95E8\u69DB\uFF0C\u5FEB\u901F\u7CBE\u901A\u672C\u5730\u5316\u5DE5\u4F5C\u6D41\u3002",DocTitle:"\u5B98\u65B9\u6587\u6863\u6559\u7A0B",DocDesc:"\u5168\u65B9\u4F4D\u89E3\u6790\u5404\u9879\u529F\u80FD\u53C2\u6570\u4E0E\u8FDB\u9636\u914D\u7F6E\uFF0C\u63D0\u4F9B\u8BE6\u5C3D\u7684\u64CD\u4F5C\u4E0E\u6392\u9519\u6307\u5357\u3002",GithubTitle:"\u5F00\u6E90\u95EE\u9898\u53CD\u9988",GithubDesc:"\u8FFD\u8E2A\u9879\u76EE\u4EE3\u7801\u8FDB\u5C55\uFF0C\u63D0\u4EA4\u7F3A\u9677\u62A5\u544A\u6216\u7279\u6027\u9700\u6C42\uFF0C\u4E0E\u5F00\u53D1\u8005\u6DF1\u5EA6\u534F\u529B\u3002",PluginTitle:"\u672C\u5730\u7FFB\u8BD1\u7BA1\u7406",PluginDesc:"\u96C6\u4E2D\u7BA1\u7406\u672C\u5730\u5DF2\u88C5\u63D2\u4EF6\u7684\u7FFB\u8BD1\u7247\u6BB5\uFF0C\u4E00\u952E\u5E94\u7528\u5E76\u65E0\u7F1D\u638C\u63A7\u754C\u9762\u8BED\u8A00\u3002",CloudTitle:"\u4E91\u7AEF\u7FFB\u8BD1\u4E2D\u5FC3",CloudDesc:"\u63A5\u5165\u5168\u7403\u7FFB\u8BD1\u7F51\u7EDC\uFF0C\u53D1\u6398\u5E76\u83B7\u53D6\u7531\u793E\u533A\u6301\u7EED\u7EF4\u62A4\u7684\u7CBE\u6821\u4F18\u9009\u8BD1\u6587\u3002",TaskTitle:"\u793E\u533A\u7FFB\u8BD1\u4EFB\u52A1",TaskDesc:"\u53C2\u4E0E\u5F00\u6E90\u5171\u5EFA\u751F\u6001\uFF0C\u8BA4\u9886\u5E76\u653B\u514B\u672A\u51B3\u7684\u7FFB\u8BD1\u4EFB\u52A1\uFF0C\u5171\u4EAB\u672C\u5730\u5316\u6210\u679C\u3002",QqTitle:"QQ \u5B98\u65B9\u4EA4\u6D41\u7FA4",QqDesc:"\u56FD\u5185\u6D3B\u8DC3\u521B\u4F5C\u8005\u9635\u5730\uFF0C\u5206\u4EAB\u7FFB\u8BD1\u5FC3\u5F97\u3001\u6781\u901F\u83B7\u53D6\u4E00\u624B\u66F4\u65B0\u4E0E\u6280\u672F\u7B54\u7591\u3002",DiscordTitle:"Discord \u4EA4\u6D41\u7FA4",DiscordDesc:"\u52A0\u5165\u5168\u7403\u5316\u7684\u73A9\u5BB6\u4E0E\u5F00\u53D1\u8005\u793E\u533A\uFF0C\u5206\u4EAB\u63D2\u4EF6\u7ECF\u9A8C\uFF0C\u83B7\u53D6\u5373\u65F6\u89E3\u7B54\u3002",AfdianTitle:"\u652F\u6301\u4E0E\u8D5E\u52A9",AfdianDesc:"\u901A\u8FC7\u7231\u53D1\u7535\u8D5E\u52A9\u5F00\u53D1\u8005\uFF0C\u52A9\u529B\u63D2\u4EF6\u6301\u7EED\u8FED\u4EE3\u4E0E\u751F\u6001\u7E41\u8363\u3002",CoreFeaturesLabel:"\u6838\u5FC3\u529F\u80FD",CommunityLabel:"\u793E\u533A\u52A8\u6001",SupportLabel:"\u53CD\u9988\u4E0E\u652F\u6301",VerLabel:"\u7248\u672C",BrowseAction:"\u6D4F\u89C8",JoinAction:"\u52A0\u5165",MoreExpect:"\u66F4\u591A\u786C\u6838\u80FD\u529B\u6B63\u5728\u6301\u7EED\u6784\u5EFA\u4E2D\uFF0C\u656C\u8BF7\u671F\u5F85\u2026\u2026"}});var M8,O8=de(()=>{M8={Titles:{Tab:"\u767B\u5F55/\u6CE8\u518C",Welcome:"\u6B22\u8FCE",WelcomeBack:"\u6B22\u8FCE\u56DE\u6765"},Labels:{AccountStatus:"\u8D26\u6237\u72B6\u6001",ConnectedCloud:"\u5DF2\u8FDE\u63A5\u4E91\u7AEF",RememberMe:"\u8BB0\u4F4F\u8D26\u53F7\u5BC6\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801",Email:"\u90AE\u7BB1",Code:"\u9A8C\u8BC1\u7801",ConfirmPassword:"\u786E\u8BA4\u5BC6\u7801",DefaultUser:"\u7528\u6237",UserId:"\u7528\u6237 ID"},Actions:{Login:"\u767B\u5F55",Logout:"\u9000\u51FA\u767B\u5F55",Register:"\u6CE8\u518C",SendCode:"\u53D1\u9001\u9A8C\u8BC1\u7801",CreateAccount:"\u521B\u5EFA\u8D26\u6237"},Status:{LoggingIn:"\u767B\u5F55\u4E2D...",Registering:"\u6CE8\u518C\u4E2D..."},Hints:{LoginDesc:"\u767B\u5F55\u60A8\u7684\u8D26\u6237\u4EE5\u8BBF\u95EE\u4E91\u7AEF\u529F\u80FD",RegisterDesc:"\u6CE8\u518C\u65B0\u8D26\u6237\u4EE5\u5F00\u59CB\u4F7F\u7528"},Notices:{SendSuccess:"\u53D1\u9001\u6210\u529F",RegSuccess:"\u6CE8\u518C\u6210\u529F\uFF0C\u8BF7\u767B\u5F55",LoggedOut:"\u5DF2\u9000\u51FA\u767B\u5F55"},Errors:{SendFail:"\u53D1\u9001\u5931\u8D25",LoginFail:"\u767B\u5F55\u5931\u8D25",RegFail:"\u6CE8\u518C\u5931\u8D25",PassMismatch:"\u4E24\u6B21\u5BC6\u7801\u4E0D\u4E00\u81F4",NoEmail:"\u672A\u8BBE\u7F6E\u90AE\u7BB1",InputEmail:"\u8BF7\u8F93\u5165\u90AE\u7BB1",InputUserPass:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u548C\u5BC6\u7801",InputEmailCode:"\u8BF7\u8F93\u5165\u90AE\u7BB1\u548C\u9A8C\u8BC1\u7801"}}});var F8,B8=de(()=>{F8={Titles:{Tab:"\u7528\u6237\u534F\u8BAE",Main:"I18N \u63D2\u4EF6\u7528\u6237\u534F\u8BAE"},Hints:{Desc:"\u4F7F\u7528\u524D\u8BF7\u4ED4\u7EC6\u9605\u8BFB\u4EE5\u4E0B\u6761\u6B3E",End:"-- \u534F\u8BAE\u7ED3\u675F --",ReadThanks:"\u611F\u8C22\u60A8\u7684\u9605\u8BFB\u3002",Scroll:"\u8BF7\u5411\u4E0B\u6EDA\u52A8\u9605\u8BFB\u5B8C\u6574\u534F\u8BAE",ReadReminder:"\u8BF7\u9605\u8BFB\u5B8C\u534F\u8BAE\u4EE5\u7EE7\u7EED\u3002"},Actions:{Agree:"\u5DF2\u9605\u8BFB\u5E76\u540C\u610F",Disagree:"\u4E0D\u540C\u610F (\u9000\u51FA)"}}});var $8,j8=de(()=>{$8={Tabs:{Basis:"\u7EFC\u5408\u8BBE\u7F6E",Re:"RE \u914D\u7F6E",Ast:"AST \u914D\u7F6E",Immersive:"\u6C89\u6D78\u7FFB\u8BD1",Ai:"\u8BED\u8A00\u6A21\u578B",Share:"\u5171\u5EFA\u751F\u6001"},Basis:{UpdateHeader:"\u68C0\u67E5\u66F4\u65B0",BasisHeader:"\u57FA\u7840\u914D\u7F6E",AutoHeader:"\u81EA\u52A8\u5316\u4EFB\u52A1",ExternalHeader:"\u63A8\u8350\u63D2\u4EF6",CloudHeader:"\u4E91\u7AEF\u4E0E\u7F51\u7EDC",ResetHeader:"\u5371\u9669\u64CD\u4F5C",UpdateTitle:"\u68C0\u67E5\u66F4\u65B0",UpdateDesc:"\u542F\u52A8\u65F6\u9759\u9ED8\u68C0\u67E5\u65B0\u7248\u672C\uFF0C\u6709\u66F4\u65B0\u65F6\u5F39\u7A97\u63D0\u9192\u3002",CheckUpdatePrefix:"\u66F4\u65B0\u68C0\u67E5",CheckUpdateNotice:"\u53D1\u73B0\u65B0\u7248\u672C",SmartUpdateTitle:"\u667A\u80FD\u66F4\u65B0",SmartUpdateDesc:"\u5176\u4ED6\u63D2\u4EF6\u66F4\u65B0\u7248\u672C\u540E\uFF0C\u81EA\u52A8\u5C06\u5DF2\u6709\u8BD1\u6587\u91CD\u65B0\u5E94\u7528\uFF0C\u65E0\u9700\u624B\u52A8\u64CD\u4F5C\u3002",SmartTitle:"\u667A\u80FD\u66F4\u65B0",SmartUpdate:"\u5DF2\u81EA\u52A8\u91CD\u8F7D ",SmartPlugins:" \u4E2A\u63D2\u4EF6",LangTitle:"\u76EE\u6807\u8BED\u8A00",LangDesc:"\u4E91\u7AEF\u4E0B\u8F7D\u4E0E AI \u7FFB\u8BD1\u65F6\u9ED8\u8BA4\u4F7F\u7528\u7684\u8BED\u8A00\u3002",AutoSaveTitle:"\u81EA\u52A8\u4FDD\u5B58",AutoSaveDesc:"\u5728\u7FFB\u8BD1\u7F16\u8F91\u5668\u4E2D\u6BCF\u9694\u4E00\u6BB5\u65F6\u95F4\u81EA\u52A8\u4FDD\u5B58\u4FEE\u6539\uFF0C\u9632\u6B62\u610F\u5916\u4E22\u5931\u3002",AuthorTitle:"\u4F5C\u8005\u7F72\u540D",AuthorDesc:"\u63D0\u53D6\u8BD1\u6587\u65F6\u81EA\u52A8\u9644\u5E26\u7684\u7F72\u540D\uFF0C\u7559\u7A7A\u5219\u4E0D\u7F72\u540D\u3002",AuthorPlaceholder:"\u4F8B: Eondr",AutoApplyTitle:"\u81EA\u52A8\u5E94\u7528",AutoApplyDesc:"\u5339\u914D\u5230\u53EF\u7528\u7FFB\u8BD1\u540E\u81EA\u52A8\u6CE8\u5165\u5E76\u91CD\u8F7D\u76EE\u6807\u63D2\u4EF6\uFF0C\u5168\u7A0B\u65E0\u9700\u624B\u52A8\u5E72\u9884\u3002",AutoSilentTitle:"\u9759\u9ED8\u8FD0\u884C",AutoSilentDesc:"\u540E\u53F0\u6267\u884C\u65F6\u4E0D\u5F39\u51FA\u8FDB\u5EA6\u901A\u77E5\uFF0C\u53EA\u5728\u5B9E\u9645\u5B8C\u6210\u66F4\u65B0\u65F6\u7B80\u8981\u63D0\u9192\u3002",AutoTrustedReposTitle:"\u53D7\u4FE1\u4EFB\u6E90",AutoTrustedReposDesc:"\u4EC5\u4ECE\u8FD9\u4E9B\u4ED3\u5E93\u81EA\u52A8\u62C9\u53D6\u7FFB\u8BD1\u6587\u4EF6\uFF0C\u6BCF\u884C\u4E00\u4E2A\u5730\u5740\u3002",AutoTrustedReposPlaceholder:"\u4F8B: owner/repo",ManagerTitle:"Better Plugins Manager (BPM)",ManagerDesc:"\u5EF6\u8FDF\u52A0\u8F7D \xB7 \u5206\u7EC4\u7BA1\u7406 \xB7 GitHub \u76F4\u88C5 \xB7 \u51B2\u7A81\u68C0\u6D4B \u2014\u2014 \u4E3A\u91CD\u5EA6 Obsidian \u7528\u6237\u8BBE\u8BA1\u7684\u5168\u80FD\u63D2\u4EF6\u7BA1\u7406\u5668\u3002",ManagerBtn:"\u67E5\u770B BPM \u8BE6\u60C5",DefaultCloudRepoTitle:"\u4E91\u7AEF\u4ED3\u5E93",DefaultCloudRepoDesc:"\u7BA1\u7406\u5668\u7684\u300C\u4E91\u7AEF\u7248\u672C\u300D\u4E0B\u62C9\u6846\u5C06\u4F18\u5148\u4ECE\u6B64\u4ED3\u5E93\u83B7\u53D6\u53EF\u7528\u7FFB\u8BD1\u3002",DefaultCloudRepoPlaceholder:"\u4F8B: owner/repo",GithubProxyTitle:"\u52A0\u901F\u8282\u70B9",GithubProxyDesc:"\u4E3A\u4E0B\u8F7D\u8D44\u6E90\u9009\u4E00\u4E2A\u4EE3\u7406\uFF0C\u4E0D\u7A33\u5B9A\u5C31\u6362\u3002",ProxyDirect:"\u76F4\u8FDE",ProxyNode1:"ghp.ci",ProxyNode2:"ghproxy.net",ProxyNode5:"gh-proxy.com",ProxyNode7:"jsDelivr CDN",ProxyNode8:"jsDelivr Fastly",ProxyNode9:"jsDelivr GCore",ProxyNode10:"Statically",ProxyTestBtn:"\u6D4B\u901F",ProxyTestTooltip:"\u6D4B\u8BD5\u5F53\u524D\u8282\u70B9\u5EF6\u8FDF",ProxyTesting:"\u6D4B\u8BD5\u4E2D\u2026",ProxyTestSuccess:"\u53EF\u7528 \xB7 {{ms}}ms",ProxyTestFail:"\u4E0D\u53EF\u7528",ProxyTestErrorNotice:"\u8282\u70B9\u8D85\u65F6\u6216\u4E0D\u53EF\u8FBE",ProxySecurityNotice:"\u26A0\uFE0F \u4EE3\u7406\u4EC5\u52A0\u901F\u516C\u5171\u8D44\u6E90\u3002Token \u4E0E\u79C1\u6709\u540C\u6B65\u59CB\u7EC8\u76F4\u8FDE\uFF0C\u4E0D\u7ECF\u7B2C\u4E09\u65B9\u3002",GithubApiTimeoutHint:"\u8BF7\u6C42\u8D85\u65F6\uFF0CToken \u64CD\u4F5C\u65E0\u6CD5\u8D70\u4EE3\u7406\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216\u5F00\u542F\u7CFB\u7EDF\u4EE3\u7406\u3002",GithubApiTokenMissing:"\u8BF7\u5148\u914D\u7F6E GitHub Token",GithubApiFileNotFound:"\u6587\u4EF6\u4E0D\u5B58\u5728",GithubApiCheckFailed:"\u8FDE\u63A5\u5931\u8D25",GithubApiCheckSuccess:"\u8FDE\u63A5\u6210\u529F",ResetTitle:"\u91CD\u7F6E\u63D2\u4EF6\u65B9\u6848",ResetDesc:"\u5C06\u6240\u6709\u914D\u7F6E\u6062\u590D\u81F3\u51FA\u5382\u72B6\u6001\u3002\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002",ResetBtn:"\u91CD\u7F6E\u914D\u7F6E",ResetConfirm:"\u786E\u5B9A\u8981\u91CD\u7F6E\u6240\u6709\u63D2\u4EF6\u914D\u7F6E\u5417\uFF1F\u8FD9\u5C06\u6E05\u9664\u6240\u6709\u5DF2\u4FDD\u5B58\u7684\u8BBE\u7F6E\uFF08\u5305\u62EC API Key\u3001\u6B63\u5219\u8868\u8FBE\u5F0F\u7B49\uFF09\u3002",ResetSuccess:"\u914D\u7F6E\u5DF2\u91CD\u7F6E"},Re:{ParamsHeader:"\u6B63\u5219\u53C2\u6570",FlagTitle:"\u5339\u914D\u6807\u5FD7",FlagDesc:"\u6B63\u5219\u4FEE\u9970\u7B26\uFF0C\u5982 g(\u5168\u5C40) s(\u5355\u884C)\u3002\u5F71\u54CD\u6240\u6709\u63D0\u53D6\u89C4\u5219\u7684\u5339\u914D\u884C\u4E3A\u3002",FlagPlaceholder:"\u4F8B: gs",LenTitle:"\u957F\u5EA6\u4E0A\u9650",LenDesc:"\u8D85\u8FC7\u6B64\u957F\u5EA6\u7684\u5339\u914D\u7ED3\u679C\u5C06\u88AB\u4E22\u5F03\uFF0C\u907F\u514D\u8BEF\u6355\u5927\u6BB5\u4EE3\u7801\u3002",DataHeader:"\u63D0\u53D6\u89C4\u5219",DataEditTitle:"\u63D0\u53D6\u89C4\u5219",DataEditDesc:"\u7528\u4E8E\u4ECE\u63D2\u4EF6\u6E90\u7801\u4E2D\u6355\u83B7\u53EF\u7FFB\u8BD1\u6587\u672C\u7684\u6B63\u5219\u5217\u8868\u3002",DataPlaceholder:"\u4E00\u884C\u4E00\u6761\u6B63\u5219",RegexHeader:"\u5185\u5BB9\u8FC7\u6EE4",RejectReTitle:"\u6392\u9664\u89C4\u5219",RejectReDesc:"\u5339\u914D\u5230\u7684\u6587\u672C\u5C06\u88AB\u8DF3\u8FC7\uFF0C\u4E0D\u8FDB\u5165\u7FFB\u8BD1\u6D41\u7A0B\u3002",RejectPlaceholder:"\u4E00\u884C\u4E00\u6761\u6392\u9664\u6B63\u5219",ValidReTitle:"\u4FDD\u7559\u89C4\u5219",ValidReDesc:"\u53EA\u6709\u5339\u914D\u5230\u7684\u6587\u672C\u624D\u4F1A\u88AB\u63D0\u53D6\uFF0C\u5176\u4F59\u5168\u90E8\u5FFD\u7565\u3002",ValidPlaceholder:"\u4E00\u884C\u4E00\u6761\u4FDD\u7559\u6B63\u5219",PromptHeader:"\u7FFB\u8BD1\u63D0\u793A",PromptTitle:"\u7FFB\u8BD1 Prompt",PromptDesc:"\u6B63\u5219\u6A21\u5F0F\u4E0B\u53D1\u9001\u7ED9 LLM \u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",PromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F"},Ast:{ConfigHeader:"\u63D0\u53D6\u89C4\u5219",AssignTitle:"\u8D4B\u503C\u5C5E\u6027",AssignDesc:"\u5B57\u7B26\u4E32\u8D4B\u503C\u7ED9\u8FD9\u4E9B\u5C5E\u6027\u65F6\u4F1A\u88AB\u6355\u83B7\uFF0C\u5982 name\u3001description\u3002",AssignPlaceholder:"\u4E00\u884C\u4E00\u4E2A\u5C5E\u6027\u540D",FuncTitle:"\u51FD\u6570\u53C2\u6570",FuncDesc:"\u4F20\u5165\u8FD9\u4E9B\u51FD\u6570\u7684\u5B57\u7B26\u4E32\u53C2\u6570\u4F1A\u88AB\u6355\u83B7\uFF0C\u5982 setText\u3001setName\u3002",FuncPlaceholder:"\u4E00\u884C\u4E00\u4E2A\u51FD\u6570\u540D",KeyTitle:"\u5BF9\u8C61\u952E\u540D",KeyDesc:"\u5BF9\u8C61\u4E2D\u8FD9\u4E9B\u952E\u5BF9\u5E94\u7684\u503C\u4F1A\u88AB\u6355\u83B7\uFF0C\u5982 text\u3001label\u3002",KeyPlaceholder:"\u4E00\u884C\u4E00\u4E2A\u952E\u540D",RegexHeader:"\u5185\u5BB9\u8FC7\u6EE4",RejectReTitle:"\u6392\u9664\u89C4\u5219",RejectReDesc:"\u5339\u914D\u5230\u7684\u6587\u672C\u5C06\u88AB\u8DF3\u8FC7\uFF0C\u4E0D\u8FDB\u5165\u7FFB\u8BD1\u6D41\u7A0B\u3002",RejectPlaceholder:"\u4E00\u884C\u4E00\u6761\u6392\u9664\u6B63\u5219",ValidReTitle:"\u4FDD\u7559\u89C4\u5219",ValidReDesc:"\u53EA\u6709\u5339\u914D\u5230\u7684\u6587\u672C\u624D\u4F1A\u88AB\u63D0\u53D6\uFF0C\u5176\u4F59\u5168\u90E8\u5FFD\u7565\u3002",ValidPlaceholder:"\u4E00\u884C\u4E00\u6761\u4FDD\u7559\u6B63\u5219",PromptHeader:"\u7FFB\u8BD1\u63D0\u793A",PromptTitle:"\u7FFB\u8BD1 Prompt",PromptDesc:"AST \u6A21\u5F0F\u4E0B\u53D1\u9001\u7ED9 LLM \u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",PromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F"},Immersive:{Title:"\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",Desc:"\u5F00\u542F\u540E\uFF0C\u63D2\u4EF6\u5C06\u5BF9\u754C\u9762\u5143\u7D20\u8FDB\u884C\u5B9E\u65F6\u7FFB\u8BD1\u3002",CoreControl:"\u6C89\u6D78\u5F0F\u6E32\u67D3\u63A7\u5236",CoreControlDesc:"\u914D\u7F6E\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5168\u5C40\u53C2\u6570\u3002",MatchTitle:"\u5305\u542B\u9009\u62E9\u5668",MatchDesc:"\u7CBE\u786E\u6307\u5B9A\u9700\u8981\u7FFB\u8BD1\u7684\u9875\u9762\u5143\u7D20 (CSS Selectors)\u3002",MatchNotice:"\u66F4\u6539\u540E\u53EF\u80FD\u9700\u8981\u91CD\u542F\u6216\u91CD\u65B0\u52A0\u8F7D\u9875\u9762\u751F\u6548\u3002",ExcludeTitle:"\u6392\u9664\u9009\u62E9\u5668",ExcludeDesc:"\u7CBE\u786E\u6307\u5B9A\u9700\u8981\u6392\u9664\u7684\u9875\u9762\u5143\u7D20\u3002",RestartNotice:"\u914D\u7F6E\u5DF2\u66F4\u65B0\uFF0C\u90E8\u5206\u4FEE\u6539\u53EF\u80FD\u9700\u8981\u91CD\u542F\u63D2\u4EF6\u540E\u751F\u6548\u3002",DescLabel:"\u63CF\u8FF0\uFF1A",MainFrameTitle:"\u6839\u8282\u70B9\u8303\u56F4",MainFrameDesc:"\u6307\u5B9A\u7FFB\u8BD1\u7684\u6839\u8282\u70B9\u8303\u56F4 (\u5982\u6307\u5B9A\u6574\u4E2A\u6587\u7AE0\u7684\u5BB9\u5668)",StayOriginalTitle:"\u4FDD\u6301\u539F\u6837\u9009\u62E9\u5668",StayOriginalDesc:"\u5339\u914D\u7684\u5143\u7D20\u5C06\u4FDD\u6301\u539F\u6837\uFF0C\u5E38\u7528\u4E8E\u8BBA\u575B\u7F51\u7AD9\u7684\u4EE3\u7801\u5757\u6216\u6807\u7B7E\u3002",ExtraBlockTitle:"\u5757\u7EA7\u5143\u7D20\u9009\u62E9\u5668",ExtraBlockDesc:"\u5339\u914D\u7684\u5143\u7D20\u5C06\u88AB\u5F53\u4F5C block \u5757\u7EA7\u5143\u7D20\u5904\u7406\uFF0C\u72EC\u5360\u4E00\u884C\u3002",ExtraInlineTitle:"\u884C\u5185\u5143\u7D20\u9009\u62E9\u5668",ExtraInlineDesc:"\u5339\u914D\u7684\u5143\u7D20\u5C06\u88AB\u5F53\u4F5C inline \u884C\u5185\u5143\u7D20\u5904\u7406\u3002",TranslationClassesTitle:"\u8BD1\u6587\u7C7B\u540D (Class)",TranslationClassesDesc:"\u4E3A\u751F\u6210\u7684\u8BD1\u6587\u5143\u7D20\u6DFB\u52A0\u989D\u5916\u7684 CSS \u7C7B\u540D\u3002",InjectedCssTitle:"\u6CE8\u5165\u81EA\u5B9A\u4E49 CSS",InjectedCssDesc:"\u5728\u9875\u9762\u4E2D\u5D4C\u5165\u989D\u5916\u7684 CSS \u6837\u5F0F\u4EE3\u7801\u3002"},Ai:{ConfigHeader:"\u670D\u52A1\u914D\u7F6E",Provider:"\u670D\u52A1\u5546",ProviderDesc:"\u9009\u62E9 LLM \u63D0\u4F9B\u5546\u3002",HomepageBtn:"\u83B7\u53D6 API Key (\u5B98\u7F51)",ProfileSelectTitle:"\u914D\u7F6E\u65B9\u6848",ProfileSelectDesc:"\u5207\u6362\u4E0D\u540C API \u65B9\u6848\uFF0C\u5982 OpenAI\u3001DeepSeek\u3001\u7845\u57FA\u6D41\u52A8\u3002",ProfileAddBtn:"\u65B0\u589E",ProfileDelBtn:"\u5220\u9664",ProfileRenameBtn:"\u91CD\u547D\u540D",ProfileNamePlaceholder:"\u65B9\u6848\u540D\u79F0",ProfileAddNotice:"\u65B9\u6848\u5DF2\u521B\u5EFA",ProfileDelConfirm:"\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\uFF0C\u786E\u8BA4\uFF1F",ProfileRenameNotice:"\u8F93\u5165\u65B0\u540D\u79F0",ProfileNameTitle:"\u65B9\u6848\u540D\u79F0",ProfileNameDesc:"\u5F53\u524D\u65B9\u6848\u7684\u663E\u793A\u540D\u79F0\u3002",OpenaiUrlTitle:"\u63A5\u53E3\u5730\u5740",OpenaiUrlDesc:"API \u57FA\u7840\u8DEF\u5F84\uFF0C\u5982 https://api.openai.com",OpenaiUrlPlaceholder:"https://api.openai.com",OpenaiKeyTitle:"API \u5BC6\u94A5",OpenaiKeyDescTip:"\u5BC6\u94A5\u52A0\u5BC6\u5B58\u50A8\u5728\u672C\u5730\uFF0C\u4E0D\u4F1A\u4E0A\u4F20\u3002",OpenaiKeyPlaceholder:"sk-...",ResponseFormatTitle:"\u54CD\u5E94\u683C\u5F0F",ResponseFormatDesc:"LLM \u8FD4\u56DE\u6570\u636E\u7684\u89E3\u6790\u65B9\u5F0F\u3002",ResponseFormatText:"Text (\u901A\u7528)",ResponseFormatJsonObject:"JSON Object",ResponseFormatJsonSchema:"JSON Schema",ModelTitle:"\u6A21\u578B",ModelDesc:"\u7528\u4E8E\u7FFB\u8BD1\u7684\u6A21\u578B\u540D\u79F0\u3002",ModelSelectPlaceholder:"\u9009\u62E9\u5185\u7F6E\u6A21\u578B",ModelInputPlaceholder:"\u6216\u624B\u52A8\u8F93\u5165",TestHeader:"\u8FDE\u901A\u6D4B\u8BD5",TestTitle:"\u6D4B\u8BD5\u8FDE\u63A5",TestDesc:"\u9A8C\u8BC1\u5F53\u524D\u914D\u7F6E\u80FD\u5426\u6B63\u5E38\u8FDE\u63A5 AI \u670D\u52A1\u3002",TestBtn:"\u6D4B\u8BD5",TestLoading:"\u6D4B\u8BD5\u4E2D\u2026",TestStageNetwork:"\u68C0\u67E5\u7F51\u7EDC\u2026",TestStageAuth:"\u9A8C\u8BC1\u5BC6\u94A5\u2026",TestStageModel:"\u9A8C\u8BC1\u6A21\u578B\u2026",TestSuccess:"\u8FDE\u63A5\u6210\u529F\uFF0C\u914D\u7F6E\u6B63\u5E38\u3002",TestSuccessBtn:"\u901A\u8FC7",TestNoticeMissing:"\u8BF7\u586B\u5199\u63A5\u53E3\u5730\u5740\u548C\u5BC6\u94A5",TestFail:"\u8FDE\u63A5\u5931\u8D25",TestFail401:"\u5BC6\u94A5\u65E0\u6548 (401)\uFF1A\u8BF7\u68C0\u67E5 API Key\u3002",TestFail404:"\u5730\u5740\u9519\u8BEF (404)\uFF1A\u8BF7\u68C0\u67E5\u63A5\u53E3\u8DEF\u5F84\u3002",TestFail403:"\u65E0\u6743\u9650 (403)\uFF1A\u8BF7\u68C0\u67E5\u8D26\u53F7\u6743\u9650\u3002",TestFail429:"\u9891\u7387\u9650\u5236 (429)\uFF1A\u989D\u5EA6\u4E0D\u8DB3\u6216\u8BF7\u6C42\u8FC7\u5FEB\u3002",TestFail500:"\u670D\u52A1\u7AEF\u5F02\u5E38 (500)\uFF1A\u63D0\u4F9B\u5546\u670D\u52A1\u5668\u6545\u969C\u3002",TestFailTimeout:"\u8BF7\u6C42\u8D85\u65F6\uFF1A\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002",TestFailNetwork:"\u7F51\u7EDC\u4E0D\u901A\uFF1A\u65E0\u6CD5\u8BBF\u95EE\u76EE\u6807\u670D\u52A1\u5668\u3002",TestFailModel:"\u6A21\u578B\u4E0D\u5B58\u5728\u6216\u65E0\u6743\u8BBF\u95EE\u3002",TestFailUnknown:"\u672A\u77E5\u9519\u8BEF",DiagModalTitle:"\u6DF1\u5EA6\u8BCA\u65AD\u62A5\u544A",DiagStatusHealthy:"\u5065\u5EB7",DiagStatusWarning:"\u8B66\u544A",DiagStatusFailed:"\u6545\u969C",DiagItemEndpoint:"\u63A5\u53E3\u7AEF\u70B9",DiagItemAuth:"\u8EAB\u4EFD\u9A8C\u8BC1",DiagItemModel:"\u6A21\u578B\u53EF\u7528\u6027",DiagItemJsonMode:"JSON \u6A21\u5F0F",DiagItemJsonSchema:"\u7ED3\u6784\u5316\u8F93\u51FA",DiagLatency:"\u5EF6\u8FDF",DiagStep:"\u8BCA\u65AD\u6B65\u9AA4",DiagResult:"\u7ED3\u679C",DiagRecommendation:"\u5EFA\u8BAE",DiagTipUrlV1:"\u8FDE\u63A5\u5F02\u5E38\uFF0C\u5DF2\u5C1D\u8BD5\u81EA\u52A8\u4FEE\u6B63 URL\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u3002",DiagTipModelFallback:"\u5F53\u524D\u6A21\u578B\u4E0D\u652F\u6301\u7ED3\u6784\u5316\u8F93\u51FA\u3002",DiagTipQuota:"\u914D\u989D\u53EF\u80FD\u5DF2\u8017\u5C3D\uFF0C\u8BF7\u68C0\u67E5\u670D\u52A1\u5546\u8D26\u5355\u3002",DiagItemSystemRole:"\u7CFB\u7EDF\u89D2\u8272",DiagItemTranslation:"\u7FFB\u8BD1\u6A21\u62DF",DiagStageSystemRole:"\u9A8C\u8BC1\u7CFB\u7EDF\u89D2\u8272\u2026",DiagStageTranslation:"\u6A21\u62DF\u7FFB\u8BD1\u2026",DiagTipSystemRole:"\u5F53\u524D\u6A21\u578B\u4E0D\u652F\u6301 system \u89D2\u8272\u3002",DiagTipTranslationFail:"\u7FFB\u8BD1\u6A21\u62DF\u5931\u8D25\uFF0C\u8FD4\u56DE\u683C\u5F0F\u5F02\u5E38\u3002",DiagTipLatencyWarn:"\u54CD\u5E94\u5EF6\u8FDF\u63A5\u8FD1\u8D85\u65F6\u9608\u503C\uFF0C\u6279\u91CF\u7FFB\u8BD1\u65F6\u53EF\u80FD\u8D85\u65F6\u3002",PromptHeader:"\u7FFB\u8BD1\u63D0\u793A",RegexPromptTitle:"\u6B63\u5219 Prompt",RegexPromptDesc:"\u6B63\u5219\u63D0\u53D6\u6A21\u5F0F\u4E0B\u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",RegexPromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F",AstPromptTitle:"AST Prompt",AstPromptDesc:"AST \u63D0\u53D6\u6A21\u5F0F\u4E0B\u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",AstPromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F",ThemePromptTitle:"\u4E3B\u9898 Prompt",ThemePromptDesc:"\u4E3B\u9898\u7FFB\u8BD1\u6A21\u5F0F\u4E0B\u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",ThemePromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F",PriceHeader:"\u8D39\u7528\u4F30\u7B97",CustomPriceTitle:"\u81EA\u5B9A\u4E49\u5355\u4EF7",CustomPriceDesc:"\u5173\u95ED\u65F6\u6309\u5185\u7F6E\u6A21\u578B\u4EF7\u683C\u4F30\u7B97\uFF087.3 \u6C47\u7387\u6298\u4EBA\u6C11\u5E01\uFF09\u3002",PriceInputTitle:"\u8F93\u5165\u5355\u4EF7 (\xA5/1M tokens)",PriceInputDesc:"\u6BCF\u767E\u4E07\u8F93\u5165 Token \u7684\u4EBA\u6C11\u5E01\u4EF7\u683C\uFF0C\u5982 gpt-4o-mini \u2248 1.1\u3002",PriceOutputTitle:"\u8F93\u51FA\u5355\u4EF7 (\xA5/1M tokens)",PriceOutputDesc:"\u6BCF\u767E\u4E07\u8F93\u51FA Token \u7684\u4EBA\u6C11\u5E01\u4EF7\u683C\uFF0C\u652F\u6301 4 \u4F4D\u5C0F\u6570\u3002",GeminiKeyTitle:"Gemini API \u5BC6\u94A5",GeminiKeyDesc:"Google AI Studio \u7684 API Key\uFF0C\u5BC6\u94A5\u52A0\u5BC6\u5B58\u50A8\u5728\u672C\u5730\u3002",GeminiKeyMissing:"\u8BF7\u5148\u914D\u7F6E Gemini API Key",OllamaUrlTitle:"Ollama \u7AEF\u70B9\u5730\u5740",OllamaUrlDesc:"\u672C\u5730 Ollama \u670D\u52A1\u7684 HTTP \u5730\u5740\uFF0C\u9ED8\u8BA4\u4E3A http://localhost:11434\u3002",OllamaModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u5DF2\u5B89\u88C5\u7684 Ollama \u6A21\u578B\u540D\u79F0\u3002",OllamaModelPlaceholder:"\u4F8B: qwen2.5 \u6216 llama3",OllamaFetchModelsBtn:"\u5237\u65B0\u6A21\u578B\u5217\u8868",OllamaNoModels:"\u672A\u68C0\u6D4B\u5230\u5DF2\u5B89\u88C5\u6A21\u578B\uFF0C\u8BF7\u5148\u901A\u8FC7 Ollama \u4E0B\u8F7D\u6A21\u578B\u3002",OllamaModelsLoaded:"\u5DF2\u52A0\u8F7D {{count}} \u4E2A\u6A21\u578B",OllamaFetchFailed:"\u65E0\u6CD5\u8FDE\u63A5 Ollama \u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u5DF2\u542F\u52A8\u3002",OllamaConnectFail:"\u65E0\u6CD5\u8FDE\u63A5 Ollama",OllamaModelNotFound:"\u6A21\u578B {{model}} \u672A\u627E\u5230\uFF0C\u8BF7\u5148\u6267\u884C ollama pull {{model}}",DeepseekKeyTitle:"DeepSeek API \u5BC6\u94A5",DeepseekModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 DeepSeek \u6A21\u578B\u540D\u79F0\u3002",ZhipuKeyTitle:"\u667A\u8C31 AI \u5BC6\u94A5 (API Key)",ZhipuModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u667A\u8C31 GLM \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",MoonshotKeyTitle:"\u6708\u4E4B\u6697\u9762 (Kimi) \u5BC6\u94A5",MoonshotModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Moonshot \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",AliyunKeyTitle:"\u901A\u4E49\u5343\u95EE (DashScope) \u5BC6\u94A5",AliyunModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Qwen \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",BaiduKeyTitle:"\u767E\u5EA6\u5343\u5E06 (Qianfan) \u5BC6\u94A5",BaiduModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u767E\u5EA6\u6587\u5FC3\u4E00\u8A00 (ERNIE) \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",BytedanceKeyTitle:"\u5B57\u8282\u8DF3\u52A8 (\u8C46\u5305/Ark) \u5BC6\u94A5",BytedanceModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u8C46\u5305\u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",GroqKeyTitle:"Groq API \u5BC6\u94A5",GroqModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Groq \u652F\u6301\u7684\u6A21\u578B (\u5982 Llama 3)\u3002",SiliconflowKeyTitle:"SiliconFlow (\u7845\u57FA\u6D41\u52A8) \u5BC6\u94A5",SiliconflowModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 SiliconFlow \u652F\u6301\u7684\u6A21\u578B (\u5982 DeepSeek-V3)\u3002",OpenrouterKeyTitle:"OpenRouter API \u5BC6\u94A5",OpenrouterModelDesc:"\u8F93\u5165 OpenRouter \u6A21\u578B\u6807\u8BC6\u7B26 (\u5982 anthropic/claude-3.5-sonnet)\u3002",DeepinfraKeyTitle:"DeepInfra API \u5BC6\u94A5",DeepinfraModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 DeepInfra \u652F\u6301\u7684\u6A21\u578B (\u5982 Llama-3.3)\u3002",MistralKeyTitle:"Mistral AI API \u5BC6\u94A5",MistralModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Mistral \u5B98\u65B9\u6A21\u578B (\u5982 mistral-large-latest)\u3002",MinimaxKeyTitle:"MiniMax (\u6D77\u87BA AI) \u5BC6\u94A5",MinimaxModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 MiniMax \u6A21\u578B (\u5982 abab6.5-chat)\u3002",StepfunKeyTitle:"\u9636\u8DC3\u661F\u8FB0 (StepFun) \u5BC6\u94A5",StepfunModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u9636\u8DC3\u661F\u8FB0\u6A21\u578B (\u5982 step-1-8k)\u3002"},Share:{AuthTitle:"\u8FDC\u7A0B\u4ED3\u5E93",ModeTitle:"\u8BBF\u95EE\u4EE4\u724C (Token)",ModeDesc:"\u914D\u7F6E\u7528\u4E8E\u540C\u6B65\u4E0E\u63D0\u4EA4\u7FFB\u8BD1\u7684\u4E2A\u4EBA\u8BBF\u95EE\u4EE4\u724C (PAT)\u3002",LoginSuccess:"\u5DF2\u8FDE\u63A5",TokenPlaceholder:"\u8BF7\u8F93\u5165 Token",Verifying:"\u6B63\u5728\u9A8C\u8BC1...",VerifyInsufficient:"\u6743\u9650\u4E0D\u8DB3 (\u9700 repo \u6743\u9650)",VerifyError:"\u9A8C\u8BC1\u5931\u8D25",TutorialTitle:"\u83B7\u53D6\u4EE4\u724C",TutorialTip:"\u63A8\u8350\u751F\u6210\u4EC5\u5305\u542B\u5FC5\u9700\u6743\u9650\u7684 Fine-grained Token (\u9700\u6388\u6743\u5BF9\u5E94\u6216\u5168\u90E8\u4ED3\u5E93\u7684 Contents \u8BFB\u5199\u6743\u9650)\u3002",SyncTitle:"\u540C\u6B65\u914D\u7F6E",RepoTitle:"\u76EE\u6807\u4ED3\u5E93",RepoDesc:"\u7528\u4E8E\u5B58\u50A8\u548C\u5206\u4EAB\u7FFB\u8BD1\u7684\u8FDC\u7A0B\u4ED3\u5E93\u540D\u3002",AccountTitle:"\u8D26\u6237\u7BA1\u7406",LogoutTitle:"\u9000\u51FA\u767B\u5F55",LogoutDesc:"\u6E05\u9664\u672C\u5730\u5B58\u50A8\u7684\u8EAB\u4EFD\u9A8C\u8BC1\u4FE1\u606F\u3002",LogoutBtn:"\u9000\u51FA\u767B\u5F55",LogoutSuccess:"\u5DF2\u9000\u51FA\u767B\u5F55",ProfileSelectTitle:"\u8D26\u53F7\u65B9\u6848 (Account Profile)",ProfileSelectDesc:"\u7BA1\u7406\u5E76\u5FEB\u901F\u5207\u6362\u4E0D\u540C\u7684 GitHub \u8D26\u53F7\u53CA\u5BF9\u5E94\u7684\u7FFB\u8BD1\u4ED3\u5E93\u65B9\u6848\u3002",ProfileAddBtn:"\u65B0\u589E\u8D26\u53F7",ProfileDelBtn:"\u5220\u9664\u8D26\u53F7",ProfileDelConfirm:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u8D26\u53F7\u65B9\u6848\u5417\uFF1F\u64CD\u4F5C\u65E0\u6CD5\u6062\u590D\u3002",ProfileNameTitle:"\u65B9\u6848\u6807\u8BC6\u540D",ProfileNameDesc:"\u4E3A\u5F53\u524D\u8D26\u53F7\u65B9\u6848\u81EA\u5B9A\u4E49\u4E00\u4E2A\u663E\u793A\u540D\u79F0\u4EE5\u4FBF\u533A\u5206\uFF08\u5982\uFF1A\u5DE5\u4F5C\u5F20\u53F7\u3001\u4E3B\u8D26\u53F7\u7B49\uFF09\u3002",ProfileNamePlaceholder:"\u8BF7\u8F93\u5165\u540D\u79F0...",ProfileAddNotice:"\u8D26\u53F7\u65B9\u6848\u5DF2\u521B\u5EFA"}}});var z8,U8=de(()=>{E8();A8();k8();L8();D8();O8();B8();j8();z8={Common:P8,Manager:I8,Editor:N8,Cloud:_8,Wizard:R8,Account:M8,Agreement:F8,Settings:$8}});var V8,tge,v,$r=de(()=>{L_();tr();V8=require("obsidian");U8();tge=()=>(V8.moment.locale()||"en").toLowerCase().startsWith("zh")?"zhCN":"en";Gi.use(t1).init({lng:tge(),fallbackLng:"zhCN",debug:!1,interpolation:{escapeValue:!1},resources:{zhCN:{translation:z8}}});v=(e,t)=>Gi.t(e,t)});var Pf,rL,Gc,i1=de(()=>{Pf={assignments:["overwriteName","innerHTML","outerHTML","title","alt","placeholder","textContent","innerText","ariaLabel","nodeValue","buttonText","confirmText","cancelText","labelText"],functions:["Notice","setTitle","setContent","setName","setDesc","setButtonText","setPlaceholder","setTooltip","addOption","addOptions","addHeading","addText","setHint","setWarning","setText","appendText","createEl","createDiv","createSpan","addCommand","insertText","replaceRange","replaceSelection","log","error","warn","info","alert","confirm","prompt","renderMarkdown","setLabel","setConfirmText","setCancelText"],keys:["name","description","text","placeholder","label","tooltip","title","header","desc","message","buttontext","aria-label","heading","content","tab","caption","subtitle","summary","info","warning","error","success","hint","instructions","link","selection","annotation","search","speech","page","empty","detail","body","option","notice","confirmText","cancelText","ariaLabel","buttonText"]},rL={REJECT_PATTERNS:[/^\s*$/,/^\d+$/,/^[\w-]+\.[\w-]+\.\w+$/,/^https?:\/\//i,/^data:image\//i,/^#([0-9a-f]{3}|[0-9a-f]{6})$/i,/^[a-z0-9]+-[a-z0-9-]+$/,/^[a-z]+[A-Z][a-zA-Z0-9]*$/,/^[A-Z_][A-Z0-9_]{3,}$/,/^(px|em|rem|vh|vw|auto)$/i,/^rgba?\(/i,/^\./,/\.(png|jpg|gif|svg|css|js|ts|md|json)$/i,/^[\w.\/\\-]+\/[\w.\/\\-]+$/],VALID_PATTERNS:[/\s/,/[^\x00-\x7F]/,/[!?,;:。!?,;:]\s*$/]},Gc={patterns:["(Notice|log|error|setText|setButtonText|setName|setDesc|setPlaceholder|setTooltip|appendText|setTitle|addHeading|renderMarkdown)\\(\\s*(['\"`])((?:[^\\\\2\\\\\\\\]|\\\\\\\\.)*?)\\2\\s*\\)","(textContent|innerText|name|description|selection|annotation|link|text|search|speech|page|settings)\\s*[:=]\\s*(['\"`])((?:[^\\\\2\\\\\\\\]|\\\\\\\\.)*?)\\2"],rejectPatterns:["^\\s*$","^\\d+$","^[\\w-]+\\.[\\w-]+\\.\\w+$","^https?:\\/\\/","^data:image\\/","^#([0-9a-f]{3}|[0-9a-f]{6})$","^[a-z0-9]+-[a-z0-9-]+$","^[a-z]+[A-Z][a-zA-Z0-9]*$","^[A-Z_][A-Z0-9_]{3,}$","^(px|em|rem|vh|vw|auto)$","^rgba?\\(","^\\.","\\.(png|jpg|gif|svg|css|js|ts|md|json)$","^[\\w.\\/\\\\-]+\\/[\\w.\\/\\\\-]+$"],validPatterns:["\\s","[^\\x00-\\x7F]","[!?,;:\u3002\uFF01\uFF1F\uFF0C\uFF1B\uFF1A]\\s*$"]}});var v1=ae(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});function nge(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Yc=class{constructor(t,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=n}},hy=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function Cs(e,t){let{line:r,column:n,index:a}=e;return new Yc(r,n+t,a+t)}var G8="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",age={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:G8},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:G8}},K8={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},p1=e=>e.type==="UpdateExpression"?K8.UpdateExpression[`${e.prefix}`]:K8[e.type],ige={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. +\u672C\u5730\u5DF2\u6709\u7684\u540C\u540D\u7FFB\u8BD1\u6E90\u5C06\u88AB\u8986\u76D6\u3002`},Errors:{ManifestFormatError:"metadata.json \u683C\u5F0F\u9519\u8BEF",ManifestNotFound:"\u65E0\u6CD5\u89E3\u6790 metadata.json \u6216\u6587\u4EF6\u4E0D\u5B58\u5728",UserNotFound:"\u672A\u83B7\u53D6\u5230\u7528\u6237\u4FE1\u606F",CannotRegister:"\u65E0\u6CD5\u6CE8\u518C",RegistryAddrMissing:"\u793E\u533A\u7D22\u5F15\u4ED3\u5E93\u5730\u5740\u672A\u914D\u7F6E",RegistryAddrFormatError:"\u793E\u533A\u7D22\u5F15\u4ED3\u5E93\u5730\u5740\u683C\u5F0F\u9519\u8BEF",InitRepoStructFail:"\u521D\u59CB\u5316\u4ED3\u5E93\u7ED3\u6784\u5931\u8D25",CreateRepoFail:"\u521B\u5EFA\u4ED3\u5E93\u5931\u8D25",RepoNotExistOnGithub:"\u4ED3\u5E93 {{repo}} \u4E0D\u5B58\u5728\uFF0C\u8BF7\u5148\u5728 GitHub \u4E0A\u521B\u5EFA",InvalidSourceConfig:"\u672A\u627E\u5230\u6709\u6548\u7684\u7FFB\u8BD1\u6E90\u914D\u7F6E",UploadFileFail:"\u4E0A\u4F20\u6587\u4EF6\u5931\u8D25",UpdateManifestFail:"\u66F4\u65B0\u6E05\u5355\u6587\u4EF6\u5931\u8D25",UpdateIndexFail:"\u66F4\u65B0\u7D22\u5F15\u6587\u4EF6\u5931\u8D25",InitStructureFail:"\u521D\u59CB\u5316\u4ED3\u5E93\u7ED3\u6784\u5931\u8D25",CreateFail:"\u521B\u5EFA\u4ED3\u5E93\u5931\u8D25",RollbackFail:"\u56DE\u6EDA\u5931\u8D25",GetFileFail:"\u65E0\u6CD5\u83B7\u53D6\u6587\u4EF6\u5185\u5BB9",InitFailed:"\u521D\u59CB\u5316\u5931\u8D25",NoGithubUser:"\u65E0\u6CD5\u83B7\u53D6 GitHub \u7528\u6237\u4FE1\u606F",NoCreateRepoPerm:"\u6743\u9650\u4E0D\u8DB3",UploadFailed:"\u4E0A\u4F20\u5931\u8D25",LocalFileMissing:"\u672C\u5730\u7FFB\u8BD1\u6587\u4EF6\u4E22\u5931",RepoNotFound:"\u672A\u627E\u5230\u4E2A\u4EBA\u7FFB\u8BD1\u4ED3\u5E93",GetManifestFail:"\u83B7\u53D6\u4E3B\u6E05\u5355\u5931\u8D25",BackupErrorMsg:"\u{1F4A5} \u5907\u4EFD\u51FA\u9519: {{error}}",RestoreErrorMsg:"\u{1F4A5} \u6062\u590D\u51FA\u9519: {{error}}",FetchFail:"\u83B7\u53D6\u5931\u8D25",DownloadFail:"\u4E0B\u8F7D\u5931\u8D25",UploadFailItem:"\u274C {{title}} \u4E0A\u4F20\u5931\u8D25",DownloadFailItem:"\u274C {{title}} \u4E0B\u8F7D\u5931\u8D25\uFF1A\u6587\u4EF6\u4E0D\u5B58\u5728",ProcessingFailItem:"\u274C {{title}} \u5904\u7406\u5931\u8D25: {{error}}",UpdateFail:"\u66F4\u65B0 {{title}} \u5931\u8D25:",LoadDiffFail:"\u52A0\u8F7D\u5DEE\u5F02\u6570\u636E\u5931\u8D25:",BackupFail:"\u5907\u4EFD\u5931\u8D25:",RestoreFail:"\u6062\u590D\u5931\u8D25:",CheckPendingFail:"\u68C0\u67E5\u5F85\u5904\u7406\u7533\u8BF7\u5931\u8D25",ParseRegistryFail:"\u89E3\u6790\u793E\u533A\u7D22\u5F15\u5931\u8D25",RegisterFail:"\u7533\u8BF7\u6536\u5F55\u5931\u8D25",SaveReadmeFail:"\u4FDD\u5B58 README \u5931\u8D25",DeleteFail:"\u5220\u9664\u5931\u8D25",DeleteFileProblem:"\u64CD\u4F5C\u6587\u4EF6\u65F6\u9047\u5230\u95EE\u9898",CreateReadmeFail:"\u521B\u5EFA README \u5931\u8D25",FetchCommitsFail:"\u83B7\u53D6\u63D0\u4EA4\u8BB0\u5F55\u5931\u8D25",PreviewFail:"\u9884\u89C8\u8BF7\u6C42\u5931\u8D25",RepoNotExist:"\u4ED3\u5E93 {{address}} \u4E0D\u5B58\u5728",AddFail:"\u6DFB\u52A0\u5931\u8D25"},Hints:{InputRepoPlaceholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u5730\u5740",RepoFormatTip:"\u8BF7\u8F93\u5165\u683C\u5F0F\u4E3A owner/repo \u7684\u4ED3\u5E93\u5730\u5740",NoSelfExplore:"\u4E0D\u652F\u6301\u5728\u201C\u63A2\u7D22\u201D\u9875\u6DFB\u52A0\u6216\u62C9\u53D6\u81EA\u5DF1\u7684\u5F53\u524D\u4E91\u7AEF\u4ED3\u5E93\u3002\u8BF7\u524D\u5F80\u201C\u7BA1\u7406\u201D\u9875\u64CD\u4F5C\u81EA\u5DF1\u7684\u7FFB\u8BD1\u5305\u3002",NoPublished:"\u6682\u65E0\u5DF2\u53D1\u5E03\u7684\u7FFB\u8BD1\u8D44\u6E90",NoPublishedDesc:"\u60A8\u7684\u7FFB\u8BD1\u4ED3\u5E93\u76EE\u524D\u662F\u7A7A\u7684\u3002\u60A8\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5F00\u59CB\u53D1\u5E03\u60A8\u7684\u7B2C\u4E00\u4E2A\u7FFB\u8BD1\u5305\uFF0C\u6216\u8005\u5728\u4E91\u7AEF\u9762\u677F\u8FDB\u884C\u5907\u4EFD\u4E0E\u6062\u590D\u3002",RepoNameRequired:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0",RepoAlreadyInCommunity:"\u4F60\u7684\u4ED3\u5E93\u5DF2\u5728\u793E\u533A\u76EE\u5F55\u4E2D",PublishBeforeRegister:"\u8BF7\u5148\u53D1\u5E03\u81F3\u5C11\u4E00\u4E2A\u7FFB\u8BD1\u540E\u518D\u6CE8\u518C",RegistrationIntercept:"\u6CE8\u518C\u62E6\u622A",RepoAlreadyRegistered:"\u60A8\u7684\u4ED3\u5E93\u5DF2\u88AB\u793E\u533A\u6536\u5F55\uFF0C\u8BF7\u52FF\u91CD\u8907\u7533\u8BF7",RegistrationPending:"\u6B63\u5728\u7533\u8BF7\u6536\u5F55\u7684\u5DE5\u5355\u5DF2\u7ECF\u5B58\u5728\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85\u5BA1\u6838",NoLocalSourcesTip:"\u672A\u68C0\u6D4B\u5230\u5DF2\u6709\u7684\u672C\u5730{{type}}\u7FFB\u8BD1\u6E90\u6587\u4EF6\u3002\u8BF7\u5148\u4F7F\u7528\u7FFB\u8BD1\u5DE5\u5177\u751F\u6210\u7FFB\u8BD1\u3002",NoSourcesForTarget:"\u8BE5{{type}}\u4E0B\u6CA1\u6709\u4EFB\u4F55\u7FFB\u8BD1\u6E90\u6587\u4EF6",RepoNotInit:'\u5C1A\u672A\u521B\u5EFA\u4E2A\u4EBA\u4ED3\u5E93\uFF0C\u8BF7\u5148\u524D\u5F80"\u53D1\u5E03"\u9875\u521D\u59CB\u5316',NoLocalSourcesBackup:"\u672A\u53D1\u73B0\u53EF\u4F9B\u5907\u4EFD\u7684\u672C\u5730\u7FFB\u8BD1\u6E90",NoCloudData:"\u4E91\u7AEF\u4ED3\u5E93\u4E2D\u6682\u65E0\u5907\u4EFD\u6570\u636E",FetchingManifest:"\u6B63\u5728\u83B7\u53D6\u4E91\u7AEF\u6E05\u5355...",TokenRequired:"\u8BF7\u5148\u5728\u8BBE\u7F6E\u4E2D\u914D\u7F6E GitHub Token\uFF08\u5171\u5EFA\u4E91\u7AEF \u2192 \u63D0\u4EA4 Token\uFF09",LoginRequired:"\u9700\u8981\u767B\u5F55\u4EE5\u8BBF\u95EE\u4E91\u7AEF\u529F\u80FD",LoginRequiredDesc:"\u8BF7\u5728\u63D2\u4EF6\u8BBE\u7F6E\u4E2D\u914D\u7F6E\u5177\u5907 public_repo \u6743\u9650\u7684 GitHub Token\u3002\u914D\u7F6E\u5B8C\u6210\u540E\uFF0C\u60A8\u5C06\u53EF\u4EE5\u63A2\u7D22\u793E\u533A\u8D44\u6E90\u3001\u53D1\u5E03\u7FFB\u8BD1\u5E76\u53C2\u4E0E\u5171\u5EFA\u3002",GoToSettings:"\u524D\u5F80\u8BBE\u7F6E",RateLimitTitle:"GitHub \u8BBF\u95EE\u53D7\u9650",RateLimitDesc:"\u7531\u4E8E GitHub \u7684\u533F\u540D\u8BBF\u95EE\u9891\u7387\u9650\u5236\uFF08\u6BCF\u5C0F\u65F6 60 \u6B21\uFF09\uFF0C\u60A8\u76EE\u524D\u7684\u8BBF\u95EE\u5DF2\u8FBE\u4E0A\u9650\u3002\u8BF7\u5728\u8BBE\u7F6E\u4E2D\u914D\u7F6E GitHub Token \u4EE5\u83B7\u5F97\u7A33\u5B9A\u4E0D\u9650\u901F\u7684\u4F53\u9A8C\u3002",RateLimitGuide:"\u914D\u7F6E Token \u5373\u53EF\u89E3\u51B3"},Notices:{UploadSuccess:"\u4E0A\u4F20\u6210\u529F",UploadCompleteDesc:"\u5DF2\u6210\u529F\u5C06\u7FFB\u8BD1\u6587\u4EF6\u540C\u6B65\u81F3\u60A8\u7684\u4ED3\u5E93\u3002",SubmitSuccess:"\u63D0\u4EA4\u6210\u529F",RegistrationSubmittedDesc:"\u5DF2\u63D0\u4EA4\u7533\u8BF7\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002",FetchSuccess:"\u83B7\u53D6\u6210\u529F",FoundTranslations:"\u5171\u627E\u5230 {{count}} \u4E2A\u8BD1\u6587\u8D44\u6E90",RepoUnsubscribed:"\u5DF2\u53D6\u6D88\u8BA2\u9605\u8BE5\u4ED3\u5E93",UpdateSuccess:"\u66F4\u65B0\u6210\u529F",DownloadSuccess:"\u4E0B\u8F7D\u6210\u529F",AllUpToDate:"\u672C\u5730\u5DF2\u662F\u6700\u65B0\u7248\u672C",UpdateComplete:"\u66F4\u65B0\u5B8C\u6210",UpdateSuccessCount:"\u6210\u529F\u66F4\u65B0\u4E86 {{count}} \u4E2A\u8BED\u8A00\u5305",RepoReadyPrefix:"\u60A8\u7684\u4ED3\u5E93\u5DF2\u5C31\u7EEA\uFF1A",FoundLocalSources:"\u53D1\u73B0 {{count}} \u4E2A\u672C\u5730\u7FFB\u8BD1\u6E90",SkipFileNotFound:"\u8DF3\u8FC7 {{title}}: \u672C\u5730\u6587\u4EF6\u4E0D\u5B58\u5728",SkipUpToDate:"\u8DF3\u8FC7 {{title}}: \u4E91\u7AEF\u5DF2\u662F\u6700\u65B0",BackupNoChanges:"\u6CA1\u6709\u53D1\u73B0\u9700\u8981\u5907\u4EFD\u7684\u65B0\u53D8\u52A8",UploadSuccessItem:"\u2705 {{title}} \u4E0A\u4F20\u6210\u529F",BackupCompleteStat:"\u5907\u4EFD\u5B8C\u6210: \u5DF2\u4E0A\u4F20 {{uploaded}} \u4E2A\uFF0C\u8DF3\u8FC7 {{skipped}} \u4E2A",BackupSuccessCount:"\u6210\u529F\u5907\u4EFD\u4E86 {{count}} \u4E2A\u7FFB\u8BD1\u5305",FoundCheckpoint:"\u53D1\u73B0\u4E0A\u6B21\u672A\u5B8C\u6210\u7684\u5907\u4EFD ({{date}})",FoundCloudSources:"\u5728\u4E91\u7AEF\u53D1\u73B0 {{count}} \u4E2A\u7FFB\u8BD1\u6E90",ItemsToUpload:"\u68C0\u6D4B\u5230\u6709 {{count}} \u4E2A\u9879\u76EE\u9700\u8981\u4E0A\u4F20\u5230\u4E91\u7AEF",SkipLocalLatest:"\u8DF3\u8FC7 {{title}}: \u672C\u5730\u5DF2\u662F\u6700\u65B0",RestoreSuccessItem:"\u2705 {{title}} \u6062\u590D\u6210\u529F",RestoreCompleteStat:"\u6062\u590D\u5B8C\u6210: \u5DF2\u540C\u6B65 {{restored}} \u4E2A\uFF0C\u8DF3\u8FC7 {{skipped}} \u4E2A",RestoreSuccessCount:"\u6210\u529F\u6062\u590D\u4E86 {{count}} \u4E2A\u7FFB\u8BD1\u5305",NoFile:"\u6587\u4EF6\u4E0D\u5B58\u5728"}}});var TB,wB=de(()=>{TB={MainTitle:"\u4F7F\u7528\u5E2E\u52A9",VideoTitle:"\u5B98\u65B9\u89C6\u9891\u6559\u7A0B",VideoDesc:"\u6F14\u793A\u63D2\u4EF6\u5168\u5957\u64CD\u4F5C\u6D41\u7A0B\uFF0C\u964D\u4F4E\u4E0A\u624B\u95E8\u69DB\uFF0C\u5FEB\u901F\u7CBE\u901A\u672C\u5730\u5316\u5DE5\u4F5C\u6D41\u3002",DocTitle:"\u5B98\u65B9\u6587\u6863\u6559\u7A0B",DocDesc:"\u5168\u65B9\u4F4D\u89E3\u6790\u5404\u9879\u529F\u80FD\u53C2\u6570\u4E0E\u8FDB\u9636\u914D\u7F6E\uFF0C\u63D0\u4F9B\u8BE6\u5C3D\u7684\u64CD\u4F5C\u4E0E\u6392\u9519\u6307\u5357\u3002",GithubTitle:"\u5F00\u6E90\u95EE\u9898\u53CD\u9988",GithubDesc:"\u8FFD\u8E2A\u9879\u76EE\u4EE3\u7801\u8FDB\u5C55\uFF0C\u63D0\u4EA4\u7F3A\u9677\u62A5\u544A\u6216\u7279\u6027\u9700\u6C42\uFF0C\u4E0E\u5F00\u53D1\u8005\u6DF1\u5EA6\u534F\u529B\u3002",PluginTitle:"\u672C\u5730\u7FFB\u8BD1\u7BA1\u7406",PluginDesc:"\u96C6\u4E2D\u7BA1\u7406\u672C\u5730\u5DF2\u88C5\u63D2\u4EF6\u7684\u7FFB\u8BD1\u7247\u6BB5\uFF0C\u4E00\u952E\u5E94\u7528\u5E76\u65E0\u7F1D\u638C\u63A7\u754C\u9762\u8BED\u8A00\u3002",CloudTitle:"\u4E91\u7AEF\u7FFB\u8BD1\u4E2D\u5FC3",CloudDesc:"\u63A5\u5165\u5168\u7403\u7FFB\u8BD1\u7F51\u7EDC\uFF0C\u53D1\u6398\u5E76\u83B7\u53D6\u7531\u793E\u533A\u6301\u7EED\u7EF4\u62A4\u7684\u7CBE\u6821\u4F18\u9009\u8BD1\u6587\u3002",TaskTitle:"\u793E\u533A\u7FFB\u8BD1\u4EFB\u52A1",TaskDesc:"\u53C2\u4E0E\u5F00\u6E90\u5171\u5EFA\u751F\u6001\uFF0C\u8BA4\u9886\u5E76\u653B\u514B\u672A\u51B3\u7684\u7FFB\u8BD1\u4EFB\u52A1\uFF0C\u5171\u4EAB\u672C\u5730\u5316\u6210\u679C\u3002",QqTitle:"QQ \u5B98\u65B9\u4EA4\u6D41\u7FA4",QqDesc:"\u56FD\u5185\u6D3B\u8DC3\u521B\u4F5C\u8005\u9635\u5730\uFF0C\u5206\u4EAB\u7FFB\u8BD1\u5FC3\u5F97\u3001\u6781\u901F\u83B7\u53D6\u4E00\u624B\u66F4\u65B0\u4E0E\u6280\u672F\u7B54\u7591\u3002",DiscordTitle:"Discord \u4EA4\u6D41\u7FA4",DiscordDesc:"\u52A0\u5165\u5168\u7403\u5316\u7684\u73A9\u5BB6\u4E0E\u5F00\u53D1\u8005\u793E\u533A\uFF0C\u5206\u4EAB\u63D2\u4EF6\u7ECF\u9A8C\uFF0C\u83B7\u53D6\u5373\u65F6\u89E3\u7B54\u3002",AfdianTitle:"\u652F\u6301\u4E0E\u8D5E\u52A9",AfdianDesc:"\u901A\u8FC7\u7231\u53D1\u7535\u8D5E\u52A9\u5F00\u53D1\u8005\uFF0C\u52A9\u529B\u63D2\u4EF6\u6301\u7EED\u8FED\u4EE3\u4E0E\u751F\u6001\u7E41\u8363\u3002",CoreFeaturesLabel:"\u6838\u5FC3\u529F\u80FD",CommunityLabel:"\u793E\u533A\u52A8\u6001",SupportLabel:"\u53CD\u9988\u4E0E\u652F\u6301",VerLabel:"\u7248\u672C",BrowseAction:"\u6D4F\u89C8",JoinAction:"\u52A0\u5165",MoreExpect:"\u66F4\u591A\u786C\u6838\u80FD\u529B\u6B63\u5728\u6301\u7EED\u6784\u5EFA\u4E2D\uFF0C\u656C\u8BF7\u671F\u5F85\u2026\u2026"}});var CB,EB=de(()=>{CB={Titles:{Tab:"\u767B\u5F55/\u6CE8\u518C",Welcome:"\u6B22\u8FCE",WelcomeBack:"\u6B22\u8FCE\u56DE\u6765"},Labels:{AccountStatus:"\u8D26\u6237\u72B6\u6001",ConnectedCloud:"\u5DF2\u8FDE\u63A5\u4E91\u7AEF",RememberMe:"\u8BB0\u4F4F\u8D26\u53F7\u5BC6\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801",Email:"\u90AE\u7BB1",Code:"\u9A8C\u8BC1\u7801",ConfirmPassword:"\u786E\u8BA4\u5BC6\u7801",DefaultUser:"\u7528\u6237",UserId:"\u7528\u6237 ID"},Actions:{Login:"\u767B\u5F55",Logout:"\u9000\u51FA\u767B\u5F55",Register:"\u6CE8\u518C",SendCode:"\u53D1\u9001\u9A8C\u8BC1\u7801",CreateAccount:"\u521B\u5EFA\u8D26\u6237"},Status:{LoggingIn:"\u767B\u5F55\u4E2D...",Registering:"\u6CE8\u518C\u4E2D..."},Hints:{LoginDesc:"\u767B\u5F55\u60A8\u7684\u8D26\u6237\u4EE5\u8BBF\u95EE\u4E91\u7AEF\u529F\u80FD",RegisterDesc:"\u6CE8\u518C\u65B0\u8D26\u6237\u4EE5\u5F00\u59CB\u4F7F\u7528"},Notices:{SendSuccess:"\u53D1\u9001\u6210\u529F",RegSuccess:"\u6CE8\u518C\u6210\u529F\uFF0C\u8BF7\u767B\u5F55",LoggedOut:"\u5DF2\u9000\u51FA\u767B\u5F55"},Errors:{SendFail:"\u53D1\u9001\u5931\u8D25",LoginFail:"\u767B\u5F55\u5931\u8D25",RegFail:"\u6CE8\u518C\u5931\u8D25",PassMismatch:"\u4E24\u6B21\u5BC6\u7801\u4E0D\u4E00\u81F4",NoEmail:"\u672A\u8BBE\u7F6E\u90AE\u7BB1",InputEmail:"\u8BF7\u8F93\u5165\u90AE\u7BB1",InputUserPass:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u548C\u5BC6\u7801",InputEmailCode:"\u8BF7\u8F93\u5165\u90AE\u7BB1\u548C\u9A8C\u8BC1\u7801"}}});var PB,AB=de(()=>{PB={Titles:{Tab:"\u7528\u6237\u534F\u8BAE",Main:"I18N \u63D2\u4EF6\u7528\u6237\u534F\u8BAE"},Hints:{Desc:"\u4F7F\u7528\u524D\u8BF7\u4ED4\u7EC6\u9605\u8BFB\u4EE5\u4E0B\u6761\u6B3E",End:"-- \u534F\u8BAE\u7ED3\u675F --",ReadThanks:"\u611F\u8C22\u60A8\u7684\u9605\u8BFB\u3002",Scroll:"\u8BF7\u5411\u4E0B\u6EDA\u52A8\u9605\u8BFB\u5B8C\u6574\u534F\u8BAE",ReadReminder:"\u8BF7\u9605\u8BFB\u5B8C\u534F\u8BAE\u4EE5\u7EE7\u7EED\u3002"},Actions:{Agree:"\u5DF2\u9605\u8BFB\u5E76\u540C\u610F",Disagree:"\u4E0D\u540C\u610F (\u9000\u51FA)"}}});var IB,NB=de(()=>{IB={Tabs:{Basis:"\u7EFC\u5408\u8BBE\u7F6E",Re:"RE \u914D\u7F6E",Ast:"AST \u914D\u7F6E",Immersive:"\u6C89\u6D78\u7FFB\u8BD1",Ai:"\u8BED\u8A00\u6A21\u578B",Share:"\u5171\u5EFA\u751F\u6001"},Basis:{UpdateHeader:"\u68C0\u67E5\u66F4\u65B0",BasisHeader:"\u57FA\u7840\u914D\u7F6E",AutoHeader:"\u81EA\u52A8\u5316\u4EFB\u52A1",ExternalHeader:"\u63A8\u8350\u63D2\u4EF6",CloudHeader:"\u4E91\u7AEF\u4E0E\u7F51\u7EDC",ResetHeader:"\u5371\u9669\u64CD\u4F5C",UpdateTitle:"\u68C0\u67E5\u66F4\u65B0",UpdateDesc:"\u542F\u52A8\u65F6\u9759\u9ED8\u68C0\u67E5\u65B0\u7248\u672C\uFF0C\u6709\u66F4\u65B0\u65F6\u5F39\u7A97\u63D0\u9192\u3002",CheckUpdatePrefix:"\u66F4\u65B0\u68C0\u67E5",CheckUpdateNotice:"\u53D1\u73B0\u65B0\u7248\u672C",SmartUpdateTitle:"\u667A\u80FD\u66F4\u65B0",SmartUpdateDesc:"\u5176\u4ED6\u63D2\u4EF6\u66F4\u65B0\u7248\u672C\u540E\uFF0C\u81EA\u52A8\u5C06\u5DF2\u6709\u8BD1\u6587\u91CD\u65B0\u5E94\u7528\uFF0C\u65E0\u9700\u624B\u52A8\u64CD\u4F5C\u3002",SmartTitle:"\u667A\u80FD\u66F4\u65B0",SmartUpdate:"\u5DF2\u81EA\u52A8\u91CD\u8F7D ",SmartPlugins:" \u4E2A\u63D2\u4EF6",LangTitle:"\u76EE\u6807\u8BED\u8A00",LangDesc:"\u4E91\u7AEF\u4E0B\u8F7D\u4E0E AI \u7FFB\u8BD1\u65F6\u9ED8\u8BA4\u4F7F\u7528\u7684\u8BED\u8A00\u3002",AutoSaveTitle:"\u81EA\u52A8\u4FDD\u5B58",AutoSaveDesc:"\u5728\u7FFB\u8BD1\u7F16\u8F91\u5668\u4E2D\u6BCF\u9694\u4E00\u6BB5\u65F6\u95F4\u81EA\u52A8\u4FDD\u5B58\u4FEE\u6539\uFF0C\u9632\u6B62\u610F\u5916\u4E22\u5931\u3002",AuthorTitle:"\u4F5C\u8005\u7F72\u540D",AuthorDesc:"\u63D0\u53D6\u8BD1\u6587\u65F6\u81EA\u52A8\u9644\u5E26\u7684\u7F72\u540D\uFF0C\u7559\u7A7A\u5219\u4E0D\u7F72\u540D\u3002",AuthorPlaceholder:"\u4F8B: Eondr",AutoApplyTitle:"\u81EA\u52A8\u5E94\u7528",AutoApplyDesc:"\u5339\u914D\u5230\u53EF\u7528\u7FFB\u8BD1\u540E\u81EA\u52A8\u6CE8\u5165\u5E76\u91CD\u8F7D\u76EE\u6807\u63D2\u4EF6\uFF0C\u5168\u7A0B\u65E0\u9700\u624B\u52A8\u5E72\u9884\u3002",AutoSilentTitle:"\u9759\u9ED8\u8FD0\u884C",AutoSilentDesc:"\u540E\u53F0\u6267\u884C\u65F6\u4E0D\u5F39\u51FA\u8FDB\u5EA6\u901A\u77E5\uFF0C\u53EA\u5728\u5B9E\u9645\u5B8C\u6210\u66F4\u65B0\u65F6\u7B80\u8981\u63D0\u9192\u3002",AutoTrustedReposTitle:"\u53D7\u4FE1\u4EFB\u6E90",AutoTrustedReposDesc:"\u4EC5\u4ECE\u8FD9\u4E9B\u4ED3\u5E93\u81EA\u52A8\u62C9\u53D6\u7FFB\u8BD1\u6587\u4EF6\uFF0C\u6BCF\u884C\u4E00\u4E2A\u5730\u5740\u3002",AutoTrustedReposPlaceholder:"\u4F8B: owner/repo",ManagerTitle:"Better Plugins Manager (BPM)",ManagerDesc:"\u5EF6\u8FDF\u52A0\u8F7D \xB7 \u5206\u7EC4\u7BA1\u7406 \xB7 GitHub \u76F4\u88C5 \xB7 \u51B2\u7A81\u68C0\u6D4B \u2014\u2014 \u4E3A\u91CD\u5EA6 Obsidian \u7528\u6237\u8BBE\u8BA1\u7684\u5168\u80FD\u63D2\u4EF6\u7BA1\u7406\u5668\u3002",ManagerBtn:"\u67E5\u770B BPM \u8BE6\u60C5",DefaultCloudRepoTitle:"\u4E91\u7AEF\u4ED3\u5E93",DefaultCloudRepoDesc:"\u7BA1\u7406\u5668\u7684\u300C\u4E91\u7AEF\u7248\u672C\u300D\u4E0B\u62C9\u6846\u5C06\u4F18\u5148\u4ECE\u6B64\u4ED3\u5E93\u83B7\u53D6\u53EF\u7528\u7FFB\u8BD1\u3002",DefaultCloudRepoPlaceholder:"\u4F8B: owner/repo",GithubProxyTitle:"\u52A0\u901F\u8282\u70B9",GithubProxyDesc:"\u4E3A\u4E0B\u8F7D\u8D44\u6E90\u9009\u4E00\u4E2A\u4EE3\u7406\uFF0C\u4E0D\u7A33\u5B9A\u5C31\u6362\u3002",ProxyDirect:"\u76F4\u8FDE",ProxyNode1:"ghp.ci",ProxyNode2:"ghproxy.net",ProxyNode5:"gh-proxy.com",ProxyNode7:"jsDelivr CDN",ProxyNode8:"jsDelivr Fastly",ProxyNode9:"jsDelivr GCore",ProxyNode10:"Statically",ProxyTestBtn:"\u6D4B\u901F",ProxyTestTooltip:"\u6D4B\u8BD5\u5F53\u524D\u8282\u70B9\u5EF6\u8FDF",ProxyTesting:"\u6D4B\u8BD5\u4E2D\u2026",ProxyTestSuccess:"\u53EF\u7528 \xB7 {{ms}}ms",ProxyTestFail:"\u4E0D\u53EF\u7528",ProxyTestErrorNotice:"\u8282\u70B9\u8D85\u65F6\u6216\u4E0D\u53EF\u8FBE",ProxySecurityNotice:"\u26A0\uFE0F \u4EE3\u7406\u4EC5\u52A0\u901F\u516C\u5171\u8D44\u6E90\u3002Token \u4E0E\u79C1\u6709\u540C\u6B65\u59CB\u7EC8\u76F4\u8FDE\uFF0C\u4E0D\u7ECF\u7B2C\u4E09\u65B9\u3002",GithubApiTimeoutHint:"\u8BF7\u6C42\u8D85\u65F6\uFF0CToken \u64CD\u4F5C\u65E0\u6CD5\u8D70\u4EE3\u7406\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216\u5F00\u542F\u7CFB\u7EDF\u4EE3\u7406\u3002",GithubApiTokenMissing:"\u8BF7\u5148\u914D\u7F6E GitHub Token",GithubApiFileNotFound:"\u6587\u4EF6\u4E0D\u5B58\u5728",GithubApiCheckFailed:"\u8FDE\u63A5\u5931\u8D25",GithubApiCheckSuccess:"\u8FDE\u63A5\u6210\u529F",ResetTitle:"\u91CD\u7F6E\u63D2\u4EF6\u65B9\u6848",ResetDesc:"\u5C06\u6240\u6709\u914D\u7F6E\u6062\u590D\u81F3\u51FA\u5382\u72B6\u6001\u3002\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002",ResetBtn:"\u91CD\u7F6E\u914D\u7F6E",ResetConfirm:"\u786E\u5B9A\u8981\u91CD\u7F6E\u6240\u6709\u63D2\u4EF6\u914D\u7F6E\u5417\uFF1F\u8FD9\u5C06\u6E05\u9664\u6240\u6709\u5DF2\u4FDD\u5B58\u7684\u8BBE\u7F6E\uFF08\u5305\u62EC API Key\u3001\u6B63\u5219\u8868\u8FBE\u5F0F\u7B49\uFF09\u3002",ResetSuccess:"\u914D\u7F6E\u5DF2\u91CD\u7F6E"},Re:{ParamsHeader:"\u6B63\u5219\u53C2\u6570",FlagTitle:"\u5339\u914D\u6807\u5FD7",FlagDesc:"\u6B63\u5219\u4FEE\u9970\u7B26\uFF0C\u5982 g(\u5168\u5C40) s(\u5355\u884C)\u3002\u5F71\u54CD\u6240\u6709\u63D0\u53D6\u89C4\u5219\u7684\u5339\u914D\u884C\u4E3A\u3002",FlagPlaceholder:"\u4F8B: gs",LenTitle:"\u957F\u5EA6\u4E0A\u9650",LenDesc:"\u8D85\u8FC7\u6B64\u957F\u5EA6\u7684\u5339\u914D\u7ED3\u679C\u5C06\u88AB\u4E22\u5F03\uFF0C\u907F\u514D\u8BEF\u6355\u5927\u6BB5\u4EE3\u7801\u3002",DataHeader:"\u63D0\u53D6\u89C4\u5219",DataEditTitle:"\u63D0\u53D6\u89C4\u5219",DataEditDesc:"\u7528\u4E8E\u4ECE\u63D2\u4EF6\u6E90\u7801\u4E2D\u6355\u83B7\u53EF\u7FFB\u8BD1\u6587\u672C\u7684\u6B63\u5219\u5217\u8868\u3002",DataPlaceholder:"\u4E00\u884C\u4E00\u6761\u6B63\u5219",RegexHeader:"\u5185\u5BB9\u8FC7\u6EE4",RejectReTitle:"\u6392\u9664\u89C4\u5219",RejectReDesc:"\u5339\u914D\u5230\u7684\u6587\u672C\u5C06\u88AB\u8DF3\u8FC7\uFF0C\u4E0D\u8FDB\u5165\u7FFB\u8BD1\u6D41\u7A0B\u3002",RejectPlaceholder:"\u4E00\u884C\u4E00\u6761\u6392\u9664\u6B63\u5219",ValidReTitle:"\u4FDD\u7559\u89C4\u5219",ValidReDesc:"\u53EA\u6709\u5339\u914D\u5230\u7684\u6587\u672C\u624D\u4F1A\u88AB\u63D0\u53D6\uFF0C\u5176\u4F59\u5168\u90E8\u5FFD\u7565\u3002",ValidPlaceholder:"\u4E00\u884C\u4E00\u6761\u4FDD\u7559\u6B63\u5219",PromptHeader:"\u7FFB\u8BD1\u63D0\u793A",PromptTitle:"\u7FFB\u8BD1 Prompt",PromptDesc:"\u6B63\u5219\u6A21\u5F0F\u4E0B\u53D1\u9001\u7ED9 LLM \u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",PromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F"},Ast:{ConfigHeader:"\u63D0\u53D6\u89C4\u5219",AssignTitle:"\u8D4B\u503C\u5C5E\u6027",AssignDesc:"\u5B57\u7B26\u4E32\u8D4B\u503C\u7ED9\u8FD9\u4E9B\u5C5E\u6027\u65F6\u4F1A\u88AB\u6355\u83B7\uFF0C\u5982 name\u3001description\u3002",AssignPlaceholder:"\u4E00\u884C\u4E00\u4E2A\u5C5E\u6027\u540D",FuncTitle:"\u51FD\u6570\u53C2\u6570",FuncDesc:"\u4F20\u5165\u8FD9\u4E9B\u51FD\u6570\u7684\u5B57\u7B26\u4E32\u53C2\u6570\u4F1A\u88AB\u6355\u83B7\uFF0C\u5982 setText\u3001setName\u3002",FuncPlaceholder:"\u4E00\u884C\u4E00\u4E2A\u51FD\u6570\u540D",KeyTitle:"\u5BF9\u8C61\u952E\u540D",KeyDesc:"\u5BF9\u8C61\u4E2D\u8FD9\u4E9B\u952E\u5BF9\u5E94\u7684\u503C\u4F1A\u88AB\u6355\u83B7\uFF0C\u5982 text\u3001label\u3002",KeyPlaceholder:"\u4E00\u884C\u4E00\u4E2A\u952E\u540D",RegexHeader:"\u5185\u5BB9\u8FC7\u6EE4",RejectReTitle:"\u6392\u9664\u89C4\u5219",RejectReDesc:"\u5339\u914D\u5230\u7684\u6587\u672C\u5C06\u88AB\u8DF3\u8FC7\uFF0C\u4E0D\u8FDB\u5165\u7FFB\u8BD1\u6D41\u7A0B\u3002",RejectPlaceholder:"\u4E00\u884C\u4E00\u6761\u6392\u9664\u6B63\u5219",ValidReTitle:"\u4FDD\u7559\u89C4\u5219",ValidReDesc:"\u53EA\u6709\u5339\u914D\u5230\u7684\u6587\u672C\u624D\u4F1A\u88AB\u63D0\u53D6\uFF0C\u5176\u4F59\u5168\u90E8\u5FFD\u7565\u3002",ValidPlaceholder:"\u4E00\u884C\u4E00\u6761\u4FDD\u7559\u6B63\u5219",PromptHeader:"\u7FFB\u8BD1\u63D0\u793A",PromptTitle:"\u7FFB\u8BD1 Prompt",PromptDesc:"AST \u6A21\u5F0F\u4E0B\u53D1\u9001\u7ED9 LLM \u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",PromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F"},Immersive:{Title:"\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",Desc:"\u5F00\u542F\u540E\uFF0C\u63D2\u4EF6\u5C06\u5BF9\u754C\u9762\u5143\u7D20\u8FDB\u884C\u5B9E\u65F6\u7FFB\u8BD1\u3002",CoreControl:"\u6C89\u6D78\u5F0F\u6E32\u67D3\u63A7\u5236",CoreControlDesc:"\u914D\u7F6E\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5168\u5C40\u53C2\u6570\u3002",MatchTitle:"\u5305\u542B\u9009\u62E9\u5668",MatchDesc:"\u7CBE\u786E\u6307\u5B9A\u9700\u8981\u7FFB\u8BD1\u7684\u9875\u9762\u5143\u7D20 (CSS Selectors)\u3002",MatchNotice:"\u66F4\u6539\u540E\u53EF\u80FD\u9700\u8981\u91CD\u542F\u6216\u91CD\u65B0\u52A0\u8F7D\u9875\u9762\u751F\u6548\u3002",ExcludeTitle:"\u6392\u9664\u9009\u62E9\u5668",ExcludeDesc:"\u7CBE\u786E\u6307\u5B9A\u9700\u8981\u6392\u9664\u7684\u9875\u9762\u5143\u7D20\u3002",RestartNotice:"\u914D\u7F6E\u5DF2\u66F4\u65B0\uFF0C\u90E8\u5206\u4FEE\u6539\u53EF\u80FD\u9700\u8981\u91CD\u542F\u63D2\u4EF6\u540E\u751F\u6548\u3002",DescLabel:"\u63CF\u8FF0\uFF1A",MainFrameTitle:"\u6839\u8282\u70B9\u8303\u56F4",MainFrameDesc:"\u6307\u5B9A\u7FFB\u8BD1\u7684\u6839\u8282\u70B9\u8303\u56F4 (\u5982\u6307\u5B9A\u6574\u4E2A\u6587\u7AE0\u7684\u5BB9\u5668)",StayOriginalTitle:"\u4FDD\u6301\u539F\u6837\u9009\u62E9\u5668",StayOriginalDesc:"\u5339\u914D\u7684\u5143\u7D20\u5C06\u4FDD\u6301\u539F\u6837\uFF0C\u5E38\u7528\u4E8E\u8BBA\u575B\u7F51\u7AD9\u7684\u4EE3\u7801\u5757\u6216\u6807\u7B7E\u3002",ExtraBlockTitle:"\u5757\u7EA7\u5143\u7D20\u9009\u62E9\u5668",ExtraBlockDesc:"\u5339\u914D\u7684\u5143\u7D20\u5C06\u88AB\u5F53\u4F5C block \u5757\u7EA7\u5143\u7D20\u5904\u7406\uFF0C\u72EC\u5360\u4E00\u884C\u3002",ExtraInlineTitle:"\u884C\u5185\u5143\u7D20\u9009\u62E9\u5668",ExtraInlineDesc:"\u5339\u914D\u7684\u5143\u7D20\u5C06\u88AB\u5F53\u4F5C inline \u884C\u5185\u5143\u7D20\u5904\u7406\u3002",TranslationClassesTitle:"\u8BD1\u6587\u7C7B\u540D (Class)",TranslationClassesDesc:"\u4E3A\u751F\u6210\u7684\u8BD1\u6587\u5143\u7D20\u6DFB\u52A0\u989D\u5916\u7684 CSS \u7C7B\u540D\u3002",InjectedCssTitle:"\u6CE8\u5165\u81EA\u5B9A\u4E49 CSS",InjectedCssDesc:"\u5728\u9875\u9762\u4E2D\u5D4C\u5165\u989D\u5916\u7684 CSS \u6837\u5F0F\u4EE3\u7801\u3002"},Ai:{ConfigHeader:"\u670D\u52A1\u914D\u7F6E",Provider:"\u670D\u52A1\u5546",ProviderDesc:"\u9009\u62E9 LLM \u63D0\u4F9B\u5546\u3002",HomepageBtn:"\u83B7\u53D6 API Key (\u5B98\u7F51)",ProfileSelectTitle:"\u914D\u7F6E\u65B9\u6848",ProfileSelectDesc:"\u5207\u6362\u4E0D\u540C API \u65B9\u6848\uFF0C\u5982 OpenAI\u3001DeepSeek\u3001\u7845\u57FA\u6D41\u52A8\u3002",ProfileAddBtn:"\u65B0\u589E",ProfileDelBtn:"\u5220\u9664",ProfileRenameBtn:"\u91CD\u547D\u540D",ProfileNamePlaceholder:"\u65B9\u6848\u540D\u79F0",ProfileAddNotice:"\u65B9\u6848\u5DF2\u521B\u5EFA",ProfileDelConfirm:"\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\uFF0C\u786E\u8BA4\uFF1F",ProfileRenameNotice:"\u8F93\u5165\u65B0\u540D\u79F0",ProfileNameTitle:"\u65B9\u6848\u540D\u79F0",ProfileNameDesc:"\u5F53\u524D\u65B9\u6848\u7684\u663E\u793A\u540D\u79F0\u3002",OpenaiUrlTitle:"\u63A5\u53E3\u5730\u5740",OpenaiUrlDesc:"API \u57FA\u7840\u8DEF\u5F84\uFF0C\u5982 https://api.openai.com",OpenaiUrlPlaceholder:"https://api.openai.com",OpenaiKeyTitle:"API \u5BC6\u94A5",OpenaiKeyDescTip:"\u5BC6\u94A5\u52A0\u5BC6\u5B58\u50A8\u5728\u672C\u5730\uFF0C\u4E0D\u4F1A\u4E0A\u4F20\u3002",OpenaiKeyPlaceholder:"sk-...",ResponseFormatTitle:"\u54CD\u5E94\u683C\u5F0F",ResponseFormatDesc:"LLM \u8FD4\u56DE\u6570\u636E\u7684\u89E3\u6790\u65B9\u5F0F\u3002",ResponseFormatText:"Text (\u901A\u7528)",ResponseFormatJsonObject:"JSON Object",ResponseFormatJsonSchema:"JSON Schema",ModelTitle:"\u6A21\u578B",ModelDesc:"\u7528\u4E8E\u7FFB\u8BD1\u7684\u6A21\u578B\u540D\u79F0\u3002",ModelSelectPlaceholder:"\u9009\u62E9\u5185\u7F6E\u6A21\u578B",ModelInputPlaceholder:"\u6216\u624B\u52A8\u8F93\u5165",TestHeader:"\u8FDE\u901A\u6D4B\u8BD5",TestTitle:"\u6D4B\u8BD5\u8FDE\u63A5",TestDesc:"\u9A8C\u8BC1\u5F53\u524D\u914D\u7F6E\u80FD\u5426\u6B63\u5E38\u8FDE\u63A5 AI \u670D\u52A1\u3002",TestBtn:"\u6D4B\u8BD5",TestLoading:"\u6D4B\u8BD5\u4E2D\u2026",TestStageNetwork:"\u68C0\u67E5\u7F51\u7EDC\u2026",TestStageAuth:"\u9A8C\u8BC1\u5BC6\u94A5\u2026",TestStageModel:"\u9A8C\u8BC1\u6A21\u578B\u2026",TestSuccess:"\u8FDE\u63A5\u6210\u529F\uFF0C\u914D\u7F6E\u6B63\u5E38\u3002",TestSuccessBtn:"\u901A\u8FC7",TestNoticeMissing:"\u8BF7\u586B\u5199\u63A5\u53E3\u5730\u5740\u548C\u5BC6\u94A5",TestFail:"\u8FDE\u63A5\u5931\u8D25",TestFail401:"\u5BC6\u94A5\u65E0\u6548 (401)\uFF1A\u8BF7\u68C0\u67E5 API Key\u3002",TestFail404:"\u5730\u5740\u9519\u8BEF (404)\uFF1A\u8BF7\u68C0\u67E5\u63A5\u53E3\u8DEF\u5F84\u3002",TestFail403:"\u65E0\u6743\u9650 (403)\uFF1A\u8BF7\u68C0\u67E5\u8D26\u53F7\u6743\u9650\u3002",TestFail429:"\u9891\u7387\u9650\u5236 (429)\uFF1A\u989D\u5EA6\u4E0D\u8DB3\u6216\u8BF7\u6C42\u8FC7\u5FEB\u3002",TestFail500:"\u670D\u52A1\u7AEF\u5F02\u5E38 (500)\uFF1A\u63D0\u4F9B\u5546\u670D\u52A1\u5668\u6545\u969C\u3002",TestFailTimeout:"\u8BF7\u6C42\u8D85\u65F6\uFF1A\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002",TestFailNetwork:"\u7F51\u7EDC\u4E0D\u901A\uFF1A\u65E0\u6CD5\u8BBF\u95EE\u76EE\u6807\u670D\u52A1\u5668\u3002",TestFailModel:"\u6A21\u578B\u4E0D\u5B58\u5728\u6216\u65E0\u6743\u8BBF\u95EE\u3002",TestFailUnknown:"\u672A\u77E5\u9519\u8BEF",DiagModalTitle:"\u6DF1\u5EA6\u8BCA\u65AD\u62A5\u544A",DiagStatusHealthy:"\u5065\u5EB7",DiagStatusWarning:"\u8B66\u544A",DiagStatusFailed:"\u6545\u969C",DiagStatusPass:"\u901A\u8FC7",DiagStatusFail:"\u5931\u8D25",DiagStatusWarn:"\u8B66\u544A",DiagStatusNA:"\u2014",DiagItemEndpoint:"\u63A5\u53E3\u7AEF\u70B9",DiagItemAuth:"\u8EAB\u4EFD\u9A8C\u8BC1",DiagItemModel:"\u6A21\u578B\u53EF\u7528\u6027",DiagItemJsonMode:"JSON \u6A21\u5F0F",DiagItemJsonSchema:"\u7ED3\u6784\u5316\u8F93\u51FA",DiagItemConcurrency:"\u5E76\u53D1\u6297\u538B",DiagLatency:"\u5EF6\u8FDF",DiagStep:"\u8BCA\u65AD\u6B65\u9AA4",DiagResult:"\u7ED3\u679C",DiagRecommendation:"\u5EFA\u8BAE",DiagTipUrlV1:"\u8FDE\u63A5\u5F02\u5E38\uFF0C\u5DF2\u5C1D\u8BD5\u81EA\u52A8\u4FEE\u6B63 URL\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u3002",DiagTipModelFallback:"\u5F53\u524D\u6A21\u578B\u4E0D\u652F\u6301\u7ED3\u6784\u5316\u8F93\u51FA\u3002",DiagTipQuota:"\u914D\u989D\u53EF\u80FD\u5DF2\u8017\u5C3D\uFF0C\u8BF7\u68C0\u67E5\u670D\u52A1\u5546\u8D26\u5355\u3002",DiagItemSystemRole:"\u7CFB\u7EDF\u89D2\u8272",DiagItemTranslation:"\u7FFB\u8BD1\u6A21\u62DF",DiagStageSystemRole:"\u9A8C\u8BC1\u7CFB\u7EDF\u89D2\u8272\u2026",DiagStageTranslation:"\u6A21\u62DF\u7FFB\u8BD1\u2026",DiagStageConcurrency:"\u5E76\u53D1\u6781\u9650\u6297\u538B\u2026",DiagTipSystemRole:"\u5F53\u524D\u6A21\u578B\u4E0D\u652F\u6301 system \u89D2\u8272\u3002",DiagTipTranslationFail:"\u7FFB\u8BD1\u6A21\u62DF\u5931\u8D25\uFF0C\u8FD4\u56DE\u683C\u5F0F\u5F02\u5E38\u3002",DiagTipLatencyWarn:"\u54CD\u5E94\u5EF6\u8FDF\u63A5\u8FD1\u8D85\u65F6\u9608\u503C\uFF0C\u6279\u91CF\u7FFB\u8BD1\u65F6\u53EF\u80FD\u8D85\u65F6\u3002",DiagTipConcurrency:"\u906D\u9047\u9891\u7387\u9650\u5236 (429)\u3002\u7531\u4E8E\u5E76\u53D1\u7387\u8FC7\u9AD8\uFF0C\u5EFA\u8BAE\u5728\u57FA\u7840\u914D\u7F6E\u4E2D\u5C06\u5E76\u53D1\u6570\u964D\u81F3 1 \u6216 2\u3002",PromptHeader:"\u7FFB\u8BD1\u63D0\u793A",RegexPromptTitle:"\u6B63\u5219 Prompt",RegexPromptDesc:"\u6B63\u5219\u63D0\u53D6\u6A21\u5F0F\u4E0B\u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",RegexPromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F",AstPromptTitle:"AST Prompt",AstPromptDesc:"AST \u63D0\u53D6\u6A21\u5F0F\u4E0B\u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",AstPromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F",ThemePromptTitle:"\u4E3B\u9898 Prompt",ThemePromptDesc:"\u4E3B\u9898\u7FFB\u8BD1\u6A21\u5F0F\u4E0B\u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",ThemePromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F",PriceHeader:"\u8D39\u7528\u4F30\u7B97",CustomPriceTitle:"\u81EA\u5B9A\u4E49\u5355\u4EF7",CustomPriceDesc:"\u5173\u95ED\u65F6\u6309\u5185\u7F6E\u6A21\u578B\u4EF7\u683C\u4F30\u7B97\uFF087.3 \u6C47\u7387\u6298\u4EBA\u6C11\u5E01\uFF09\u3002",PriceInputTitle:"\u8F93\u5165\u5355\u4EF7 (\xA5/1M tokens)",PriceInputDesc:"\u6BCF\u767E\u4E07\u8F93\u5165 Token \u7684\u4EBA\u6C11\u5E01\u4EF7\u683C\uFF0C\u5982 gpt-4o-mini \u2248 1.1\u3002",PriceOutputTitle:"\u8F93\u51FA\u5355\u4EF7 (\xA5/1M tokens)",PriceOutputDesc:"\u6BCF\u767E\u4E07\u8F93\u51FA Token \u7684\u4EBA\u6C11\u5E01\u4EF7\u683C\uFF0C\u652F\u6301 4 \u4F4D\u5C0F\u6570\u3002",GeminiKeyTitle:"Gemini API \u5BC6\u94A5",GeminiKeyDesc:"Google AI Studio \u7684 API Key\uFF0C\u5BC6\u94A5\u52A0\u5BC6\u5B58\u50A8\u5728\u672C\u5730\u3002",GeminiKeyMissing:"\u8BF7\u5148\u914D\u7F6E Gemini API Key",OllamaUrlTitle:"Ollama \u7AEF\u70B9\u5730\u5740",OllamaUrlDesc:"\u672C\u5730 Ollama \u670D\u52A1\u7684 HTTP \u5730\u5740\uFF0C\u9ED8\u8BA4\u4E3A http://localhost:11434\u3002",OllamaModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u5DF2\u5B89\u88C5\u7684 Ollama \u6A21\u578B\u540D\u79F0\u3002",OllamaModelPlaceholder:"\u4F8B: qwen2.5 \u6216 llama3",OllamaFetchModelsBtn:"\u5237\u65B0\u6A21\u578B\u5217\u8868",OllamaNoModels:"\u672A\u68C0\u6D4B\u5230\u5DF2\u5B89\u88C5\u6A21\u578B\uFF0C\u8BF7\u5148\u901A\u8FC7 Ollama \u4E0B\u8F7D\u6A21\u578B\u3002",OllamaModelsLoaded:"\u5DF2\u52A0\u8F7D {{count}} \u4E2A\u6A21\u578B",OllamaFetchFailed:"\u65E0\u6CD5\u8FDE\u63A5 Ollama \u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u5DF2\u542F\u52A8\u3002",OllamaConnectFail:"\u65E0\u6CD5\u8FDE\u63A5 Ollama",OllamaModelNotFound:"\u6A21\u578B {{model}} \u672A\u627E\u5230\uFF0C\u8BF7\u5148\u6267\u884C ollama pull {{model}}",DeepseekKeyTitle:"DeepSeek API \u5BC6\u94A5",DeepseekModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 DeepSeek \u6A21\u578B\u540D\u79F0\u3002",ZhipuKeyTitle:"\u667A\u8C31 AI \u5BC6\u94A5 (API Key)",ZhipuModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u667A\u8C31 GLM \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",MoonshotKeyTitle:"\u6708\u4E4B\u6697\u9762 (Kimi) \u5BC6\u94A5",MoonshotModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Moonshot \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",AliyunKeyTitle:"\u901A\u4E49\u5343\u95EE (DashScope) \u5BC6\u94A5",AliyunModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Qwen \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",BaiduKeyTitle:"\u767E\u5EA6\u5343\u5E06 (Qianfan) \u5BC6\u94A5",BaiduModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u767E\u5EA6\u6587\u5FC3\u4E00\u8A00 (ERNIE) \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",BytedanceKeyTitle:"\u5B57\u8282\u8DF3\u52A8 (\u8C46\u5305/Ark) \u5BC6\u94A5",BytedanceModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u8C46\u5305\u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",GroqKeyTitle:"Groq API \u5BC6\u94A5",GroqModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Groq \u652F\u6301\u7684\u6A21\u578B (\u5982 Llama 3)\u3002",SiliconflowKeyTitle:"SiliconFlow (\u7845\u57FA\u6D41\u52A8) \u5BC6\u94A5",SiliconflowModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 SiliconFlow \u652F\u6301\u7684\u6A21\u578B (\u5982 DeepSeek-V3)\u3002",OpenrouterKeyTitle:"OpenRouter API \u5BC6\u94A5",OpenrouterModelDesc:"\u8F93\u5165 OpenRouter \u6A21\u578B\u6807\u8BC6\u7B26 (\u5982 anthropic/claude-3.5-sonnet)\u3002",DeepinfraKeyTitle:"DeepInfra API \u5BC6\u94A5",DeepinfraModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 DeepInfra \u652F\u6301\u7684\u6A21\u578B (\u5982 Llama-3.3)\u3002",MistralKeyTitle:"Mistral AI API \u5BC6\u94A5",MistralModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Mistral \u5B98\u65B9\u6A21\u578B (\u5982 mistral-large-latest)\u3002",MinimaxKeyTitle:"MiniMax (\u6D77\u87BA AI) \u5BC6\u94A5",MinimaxModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 MiniMax \u6A21\u578B (\u5982 abab6.5-chat)\u3002",StepfunKeyTitle:"\u9636\u8DC3\u661F\u8FB0 (StepFun) \u5BC6\u94A5",StepfunModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u9636\u8DC3\u661F\u8FB0\u6A21\u578B (\u5982 step-1-8k)\u3002"},Share:{AuthTitle:"\u8FDC\u7A0B\u4ED3\u5E93",ModeTitle:"\u8BBF\u95EE\u4EE4\u724C (Token)",ModeDesc:"\u914D\u7F6E\u7528\u4E8E\u540C\u6B65\u4E0E\u63D0\u4EA4\u7FFB\u8BD1\u7684\u4E2A\u4EBA\u8BBF\u95EE\u4EE4\u724C (PAT)\u3002",LoginSuccess:"\u5DF2\u8FDE\u63A5",TokenPlaceholder:"\u8BF7\u8F93\u5165 Token",Verifying:"\u6B63\u5728\u9A8C\u8BC1...",VerifyInsufficient:"\u6743\u9650\u4E0D\u8DB3 (\u9700 repo \u6743\u9650)",VerifyError:"\u9A8C\u8BC1\u5931\u8D25",TutorialTitle:"\u83B7\u53D6\u4EE4\u724C",TutorialTip:"\u63A8\u8350\u751F\u6210\u4EC5\u5305\u542B\u5FC5\u9700\u6743\u9650\u7684 Fine-grained Token (\u9700\u6388\u6743\u5BF9\u5E94\u6216\u5168\u90E8\u4ED3\u5E93\u7684 Contents \u8BFB\u5199\u6743\u9650)\u3002",SyncTitle:"\u540C\u6B65\u914D\u7F6E",RepoTitle:"\u76EE\u6807\u4ED3\u5E93",RepoDesc:"\u7528\u4E8E\u5B58\u50A8\u548C\u5206\u4EAB\u7FFB\u8BD1\u7684\u8FDC\u7A0B\u4ED3\u5E93\u540D\u3002",AccountTitle:"\u8D26\u6237\u7BA1\u7406",LogoutTitle:"\u9000\u51FA\u767B\u5F55",LogoutDesc:"\u6E05\u9664\u672C\u5730\u5B58\u50A8\u7684\u8EAB\u4EFD\u9A8C\u8BC1\u4FE1\u606F\u3002",LogoutBtn:"\u9000\u51FA\u767B\u5F55",LogoutSuccess:"\u5DF2\u9000\u51FA\u767B\u5F55",ProfileSelectTitle:"\u8D26\u53F7\u65B9\u6848 (Account Profile)",ProfileSelectDesc:"\u7BA1\u7406\u5E76\u5FEB\u901F\u5207\u6362\u4E0D\u540C\u7684 GitHub \u8D26\u53F7\u53CA\u5BF9\u5E94\u7684\u7FFB\u8BD1\u4ED3\u5E93\u65B9\u6848\u3002",ProfileAddBtn:"\u65B0\u589E\u8D26\u53F7",ProfileDelBtn:"\u5220\u9664\u8D26\u53F7",ProfileDelConfirm:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u8D26\u53F7\u65B9\u6848\u5417\uFF1F\u64CD\u4F5C\u65E0\u6CD5\u6062\u590D\u3002",ProfileNameTitle:"\u65B9\u6848\u6807\u8BC6\u540D",ProfileNameDesc:"\u4E3A\u5F53\u524D\u8D26\u53F7\u65B9\u6848\u81EA\u5B9A\u4E49\u4E00\u4E2A\u663E\u793A\u540D\u79F0\u4EE5\u4FBF\u533A\u5206\uFF08\u5982\uFF1A\u5DE5\u4F5C\u5F20\u53F7\u3001\u4E3B\u8D26\u53F7\u7B49\uFF09\u3002",ProfileNamePlaceholder:"\u8BF7\u8F93\u5165\u540D\u79F0...",ProfileAddNotice:"\u8D26\u53F7\u65B9\u6848\u5DF2\u521B\u5EFA"}}});var LB,RB=de(()=>{hB();yB();bB();SB();wB();EB();AB();NB();LB={Common:mB,Manager:gB,Editor:xB,Cloud:vB,Wizard:TB,Account:CB,Agreement:PB,Settings:IB}});var kB,Lie,b,Rr=de(()=>{NI();er();kB=require("obsidian");RB();Lie=()=>(kB.moment.locale()||"en").toLowerCase().startsWith("zh")?"zhCN":"en";Rs.use(iw).init({lng:Lie(),fallbackLng:"zhCN",debug:!1,interpolation:{escapeValue:!1},resources:{zhCN:{translation:LB}}});b=(e,t)=>Rs.t(e,t)});var Hd,ZI,bc,uw=de(()=>{Hd={assignments:["overwriteName","innerHTML","outerHTML","title","alt","placeholder","textContent","innerText","ariaLabel","nodeValue","buttonText","confirmText","cancelText","labelText"],functions:["Notice","setTitle","setContent","setName","setDesc","setButtonText","setPlaceholder","setTooltip","addOption","addOptions","addHeading","addText","setHint","setWarning","setText","appendText","createEl","createDiv","createSpan","addCommand","insertText","replaceRange","replaceSelection","log","error","warn","info","alert","confirm","prompt","renderMarkdown","setLabel","setConfirmText","setCancelText"],keys:["name","description","text","placeholder","label","tooltip","title","header","desc","message","buttontext","aria-label","heading","content","tab","caption","subtitle","summary","info","warning","error","success","hint","instructions","link","selection","annotation","search","speech","page","empty","detail","body","option","notice","confirmText","cancelText","ariaLabel","buttonText"]},ZI={REJECT_PATTERNS:[/^\s*$/,/^\d+$/,/^[\w-]+\.[\w-]+\.\w+$/,/^https?:\/\//i,/^data:image\//i,/^#([0-9a-f]{3}|[0-9a-f]{6})$/i,/^[a-z0-9]+-[a-z0-9-]+$/,/^[a-z]+[A-Z][a-zA-Z0-9]*$/,/^[A-Z_][A-Z0-9_]{3,}$/,/^(px|em|rem|vh|vw|auto)$/i,/^rgba?\(/i,/^\./,/\.(png|jpg|gif|svg|css|js|ts|md|json)$/i,/^[\w.\/\\-]+\/[\w.\/\\-]+$/],VALID_PATTERNS:[/\s/,/[^\x00-\x7F]/,/[!?,;:。!?,;:]\s*$/]},bc={patterns:["(Notice|log|error|setText|setButtonText|setName|setDesc|setPlaceholder|setTooltip|appendText|setTitle|addHeading|renderMarkdown)\\(\\s*(['\"`])((?:[^\\\\2\\\\\\\\]|\\\\\\\\.)*?)\\2\\s*\\)","(textContent|innerText|name|description|selection|annotation|link|text|search|speech|page|settings)\\s*[:=]\\s*(['\"`])((?:[^\\\\2\\\\\\\\]|\\\\\\\\.)*?)\\2"],rejectPatterns:["^\\s*$","^\\d+$","^[\\w-]+\\.[\\w-]+\\.\\w+$","^https?:\\/\\/","^data:image\\/","^#([0-9a-f]{3}|[0-9a-f]{6})$","^[a-z0-9]+-[a-z0-9-]+$","^[a-z]+[A-Z][a-zA-Z0-9]*$","^[A-Z_][A-Z0-9_]{3,}$","^(px|em|rem|vh|vw|auto)$","^rgba?\\(","^\\.","\\.(png|jpg|gif|svg|css|js|ts|md|json)$","^[\\w.\\/\\\\-]+\\/[\\w.\\/\\\\-]+$"],validPatterns:["\\s","[^\\x00-\\x7F]","[!?,;:\u3002\uFF01\uFF1F\uFF0C\uFF1B\uFF1A]\\s*$"]}});var Pw=ne(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});function Mie(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var wc=class{constructor(t,r,a){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=a}},Tg=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function ui(e,t){let{line:r,column:a,index:n}=e;return new wc(r,a+t,n+t)}var _B="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Die={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:_B},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:_B}},OB={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},bw=e=>e.type==="UpdateExpression"?OB.UpdateExpression[`${e.prefix}`]:OB[e.type],_ie={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding. -- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${p1(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${p1(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${p1(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},sge={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},oge={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},lge=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),cge=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${p1({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),uge=["message"];function W8(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function dge({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let a=r==="MissingPlugin"||r==="MissingOneOfPlugins";{let i={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};i[r]&&(r=i[r])}return function i(s,o){let l=new SyntaxError;return l.code=t,l.reasonCode=r,l.loc=s,l.pos=s.index,l.syntaxPlugin=n,a&&(l.missingPlugin=o.missingPlugin),W8(l,"clone",function(u={}){var d;let{line:f,column:p,index:m}=(d=u.loc)!=null?d:s;return i(new Yc(f,p,m),Object.assign({},o,u.details))}),W8(l,"details",o),Object.defineProperty(l,"message",{configurable:!0,get(){let c=`${e(o)} (${s.line}:${s.column})`;return this.message=c,c},set(c){Object.defineProperty(this,"message",{value:c,writable:!0})}}),l}}function Wc(e,t){if(Array.isArray(e))return n=>Wc(n,e[0]);let r={};for(let n of Object.keys(e)){let a=e[n],i=typeof a=="string"?{message:()=>a}:typeof a=="function"?{message:a}:a,{message:s}=i,o=nge(i,uge),l=typeof s=="string"?()=>s:s;r[n]=dge(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var Y=Object.assign({},Wc(age),Wc(ige),Wc(sge),Wc(oge),Wc`pipelineOperator`(cge));function fge(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function pge(e){let t=fge();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:mge}=Object,X8=(e,t)=>{e&&mge(e,t,{enumerable:!1,value:e[t]})};function d0(e){return X8(e.loc.start,"index"),X8(e.loc.end,"index"),e}var hge=e=>class extends e{parse(){let r=d0(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(d0)),r}parseRegExpLiteral({pattern:r,flags:n}){let a=null;try{a=new RegExp(r,n)}catch{}let i=this.estreeParseLiteral(a);return i.regex={pattern:r,flags:n},i}parseBigIntLiteral(r){let n;try{n=BigInt(r)}catch{n=null}let a=this.estreeParseLiteral(n);return a.bigint=String(a.value||r),a}parseDecimalLiteral(r){let a=this.estreeParseLiteral(null);return a.decimal=String(a.value||r),a}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,n){let a=this.startNodeAtNode(r);return a.expression=r,this.finishNodeAt(a,"ChainExpression",n)}directiveToStmt(r){let n=r.value;delete r.value,this.castNodeTo(n,"Literal"),n.raw=n.extra.raw,n.value=n.extra.expressionValue;let a=this.castNodeTo(r,"ExpressionStatement");return a.expression=n,a.directive=n.extra.rawValue,delete n.extra,a}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:n,end:a,loc:i,range:s,raw:o,value:l}=r,c=Object.create(r.constructor.prototype);return c.type="Literal",c.start=n,c.end=a,c.loc=i,c.range=s,c.raw=o,c.value=l,c}initFunction(r,n){super.initFunction(r,n),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var n;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((n=r.expression.extra)!=null&&n.parenthesized)}parseBlockBody(r,n,a,i,s){super.parseBlockBody(r,n,a,i,s);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let n=super.getPrivateNameSV(r);return delete r.id,r.name=n,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,n){let a=super.parseLiteral(r,n);return a.raw=a.extra.raw,delete a.extra,a}parseFunctionBody(r,n,a=!1){super.parseFunctionBody(r,n,a),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,n,a,i,s,o,l=!1){let c=this.startNode();c.kind=r.kind,c=super.parseMethod(c,n,a,i,s,o,l),delete c.kind;let{typeParameters:u}=r;u&&(delete r.typeParameters,c.typeParameters=u,this.resetStartLocationFromNode(c,u));let d=this.castNodeTo(c,"FunctionExpression");return r.value=d,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let n=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(n,"PropertyDefinition"),n}parseClassPrivateProperty(...r){let n=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(n,"PropertyDefinition"),n.computed=!1),n}parseClassAccessorProperty(r){let n=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(n.abstract&&this.hasPlugin("typescript")?(delete n.abstract,this.castNodeTo(n,"TSAbstractAccessorProperty")):this.castNodeTo(n,"AccessorProperty")),n}parseObjectProperty(r,n,a,i){let s=super.parseObjectProperty(r,n,a,i);return s&&(s.kind="init",this.castNodeTo(s,"Property")),s}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,n,a,i){return r==="Property"?"value":super.isValidLVal(r,n,a,i)}isAssignable(r,n){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,n):super.isAssignable(r,n)}toAssignable(r,n=!1){if(r!=null&&this.isObjectProperty(r)){let{key:a,value:i}=r;this.isPrivateName(a)&&this.classScope.usePrivateName(this.getPrivateNameSV(a),a.loc.start),this.toAssignable(i,n)}else super.toAssignable(r,n)}toAssignableObjectExpressionProp(r,n,a){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(Y.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(Y.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,n,a)}finishCallExpression(r,n){let a=super.finishCallExpression(r,n);if(a.callee.type==="Import"){var i;this.castNodeTo(a,"ImportExpression"),a.source=a.arguments[0],a.options=(i=a.arguments[1])!=null?i:null;{var s;a.attributes=(s=a.arguments[1])!=null?s:null}delete a.arguments,delete a.callee}else a.type==="OptionalCallExpression"?this.castNodeTo(a,"CallExpression"):a.optional=!1;return a}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,n){let a=this.state.lastTokStartLoc,i=super.parseExport(r,n);switch(i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":i.specifiers.length===1&&i.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(i,"ExportAllDeclaration"),i.exported=i.specifiers[0].exported,delete i.specifiers);case"ExportDefaultDeclaration":{var s;let{declaration:o}=i;o?.type==="ClassDeclaration"&&((s=o.decorators)==null?void 0:s.length)>0&&o.start===i.start&&this.resetStartLocation(i,a)}break}return i}stopParseSubscript(r,n){let a=super.stopParseSubscript(r,n);return n.optionalChainMember?this.estreeParseChainExpression(a,r.loc.end):a}parseMember(r,n,a,i,s){let o=super.parseMember(r,n,a,i,s);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,n){let a=super.castNodeTo(r,n);return this.fillOptionalPropertiesForTSESLint(a),a}cloneIdentifier(r){let n=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(n),n}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,n,a){return d0(super.finishNodeAt(r,n,a))}finishNode(r,n){let a=super.finishNode(r,n);return this.fillOptionalPropertiesForTSESLint(a),a}resetStartLocation(r,n){super.resetStartLocation(r,n),d0(r)}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),d0(r)}},Fm=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},tn={brace:new Fm("{"),j_oTag:new Fm("...",!0)};tn.template=new Fm("`",!0);var Cr=!0,at=!0,nL=!0,f0=!0,If=!0,gge=!0,g1=class{constructor(t,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},NL=new Map;function Ur(e,t={}){t.keyword=e;let r=_t(e,t);return NL.set(e,r),r}function ws(e,t){return _t(e,{beforeExpr:Cr,binop:t})}var g0=-1,Yu=[],kL=[],_L=[],LL=[],RL=[],DL=[];function _t(e,t={}){var r,n,a,i;return++g0,kL.push(e),_L.push((r=t.binop)!=null?r:-1),LL.push((n=t.beforeExpr)!=null?n:!1),RL.push((a=t.startsExpr)!=null?a:!1),DL.push((i=t.prefix)!=null?i:!1),Yu.push(new g1(e,t)),g0}function Nr(e,t={}){var r,n,a,i;return++g0,NL.set(e,g0),kL.push(e),_L.push((r=t.binop)!=null?r:-1),LL.push((n=t.beforeExpr)!=null?n:!1),RL.push((a=t.startsExpr)!=null?a:!1),DL.push((i=t.prefix)!=null?i:!1),Yu.push(new g1("name",t)),g0}var yge={bracketL:_t("[",{beforeExpr:Cr,startsExpr:at}),bracketHashL:_t("#[",{beforeExpr:Cr,startsExpr:at}),bracketBarL:_t("[|",{beforeExpr:Cr,startsExpr:at}),bracketR:_t("]"),bracketBarR:_t("|]"),braceL:_t("{",{beforeExpr:Cr,startsExpr:at}),braceBarL:_t("{|",{beforeExpr:Cr,startsExpr:at}),braceHashL:_t("#{",{beforeExpr:Cr,startsExpr:at}),braceR:_t("}"),braceBarR:_t("|}"),parenL:_t("(",{beforeExpr:Cr,startsExpr:at}),parenR:_t(")"),comma:_t(",",{beforeExpr:Cr}),semi:_t(";",{beforeExpr:Cr}),colon:_t(":",{beforeExpr:Cr}),doubleColon:_t("::",{beforeExpr:Cr}),dot:_t("."),question:_t("?",{beforeExpr:Cr}),questionDot:_t("?."),arrow:_t("=>",{beforeExpr:Cr}),template:_t("template"),ellipsis:_t("...",{beforeExpr:Cr}),backQuote:_t("`",{startsExpr:at}),dollarBraceL:_t("${",{beforeExpr:Cr,startsExpr:at}),templateTail:_t("...`",{startsExpr:at}),templateNonTail:_t("...${",{beforeExpr:Cr,startsExpr:at}),at:_t("@"),hash:_t("#",{startsExpr:at}),interpreterDirective:_t("#!..."),eq:_t("=",{beforeExpr:Cr,isAssign:f0}),assign:_t("_=",{beforeExpr:Cr,isAssign:f0}),slashAssign:_t("_=",{beforeExpr:Cr,isAssign:f0}),xorAssign:_t("_=",{beforeExpr:Cr,isAssign:f0}),moduloAssign:_t("_=",{beforeExpr:Cr,isAssign:f0}),incDec:_t("++/--",{prefix:If,postfix:gge,startsExpr:at}),bang:_t("!",{beforeExpr:Cr,prefix:If,startsExpr:at}),tilde:_t("~",{beforeExpr:Cr,prefix:If,startsExpr:at}),doubleCaret:_t("^^",{startsExpr:at}),doubleAt:_t("@@",{startsExpr:at}),pipeline:ws("|>",0),nullishCoalescing:ws("??",1),logicalOR:ws("||",1),logicalAND:ws("&&",2),bitwiseOR:ws("|",3),bitwiseXOR:ws("^",4),bitwiseAND:ws("&",5),equality:ws("==/!=/===/!==",6),lt:ws("/<=/>=",7),gt:ws("/<=/>=",7),relational:ws("/<=/>=",7),bitShift:ws("<>/>>>",8),bitShiftL:ws("<>/>>>",8),bitShiftR:ws("<>/>>>",8),plusMin:_t("+/-",{beforeExpr:Cr,binop:9,prefix:If,startsExpr:at}),modulo:_t("%",{binop:10,startsExpr:at}),star:_t("*",{binop:10}),slash:ws("/",10),exponent:_t("**",{beforeExpr:Cr,binop:11,rightAssociative:!0}),_in:Ur("in",{beforeExpr:Cr,binop:7}),_instanceof:Ur("instanceof",{beforeExpr:Cr,binop:7}),_break:Ur("break"),_case:Ur("case",{beforeExpr:Cr}),_catch:Ur("catch"),_continue:Ur("continue"),_debugger:Ur("debugger"),_default:Ur("default",{beforeExpr:Cr}),_else:Ur("else",{beforeExpr:Cr}),_finally:Ur("finally"),_function:Ur("function",{startsExpr:at}),_if:Ur("if"),_return:Ur("return",{beforeExpr:Cr}),_switch:Ur("switch"),_throw:Ur("throw",{beforeExpr:Cr,prefix:If,startsExpr:at}),_try:Ur("try"),_var:Ur("var"),_const:Ur("const"),_with:Ur("with"),_new:Ur("new",{beforeExpr:Cr,startsExpr:at}),_this:Ur("this",{startsExpr:at}),_super:Ur("super",{startsExpr:at}),_class:Ur("class",{startsExpr:at}),_extends:Ur("extends",{beforeExpr:Cr}),_export:Ur("export"),_import:Ur("import",{startsExpr:at}),_null:Ur("null",{startsExpr:at}),_true:Ur("true",{startsExpr:at}),_false:Ur("false",{startsExpr:at}),_typeof:Ur("typeof",{beforeExpr:Cr,prefix:If,startsExpr:at}),_void:Ur("void",{beforeExpr:Cr,prefix:If,startsExpr:at}),_delete:Ur("delete",{beforeExpr:Cr,prefix:If,startsExpr:at}),_do:Ur("do",{isLoop:nL,beforeExpr:Cr}),_for:Ur("for",{isLoop:nL}),_while:Ur("while",{isLoop:nL}),_as:Nr("as",{startsExpr:at}),_assert:Nr("assert",{startsExpr:at}),_async:Nr("async",{startsExpr:at}),_await:Nr("await",{startsExpr:at}),_defer:Nr("defer",{startsExpr:at}),_from:Nr("from",{startsExpr:at}),_get:Nr("get",{startsExpr:at}),_let:Nr("let",{startsExpr:at}),_meta:Nr("meta",{startsExpr:at}),_of:Nr("of",{startsExpr:at}),_sent:Nr("sent",{startsExpr:at}),_set:Nr("set",{startsExpr:at}),_source:Nr("source",{startsExpr:at}),_static:Nr("static",{startsExpr:at}),_using:Nr("using",{startsExpr:at}),_yield:Nr("yield",{startsExpr:at}),_asserts:Nr("asserts",{startsExpr:at}),_checks:Nr("checks",{startsExpr:at}),_exports:Nr("exports",{startsExpr:at}),_global:Nr("global",{startsExpr:at}),_implements:Nr("implements",{startsExpr:at}),_intrinsic:Nr("intrinsic",{startsExpr:at}),_infer:Nr("infer",{startsExpr:at}),_is:Nr("is",{startsExpr:at}),_mixins:Nr("mixins",{startsExpr:at}),_proto:Nr("proto",{startsExpr:at}),_require:Nr("require",{startsExpr:at}),_satisfies:Nr("satisfies",{startsExpr:at}),_keyof:Nr("keyof",{startsExpr:at}),_readonly:Nr("readonly",{startsExpr:at}),_unique:Nr("unique",{startsExpr:at}),_abstract:Nr("abstract",{startsExpr:at}),_declare:Nr("declare",{startsExpr:at}),_enum:Nr("enum",{startsExpr:at}),_module:Nr("module",{startsExpr:at}),_namespace:Nr("namespace",{startsExpr:at}),_interface:Nr("interface",{startsExpr:at}),_type:Nr("type",{startsExpr:at}),_opaque:Nr("opaque",{startsExpr:at}),name:_t("name",{startsExpr:at}),placeholder:_t("%%",{startsExpr:at}),string:_t("string",{startsExpr:at}),num:_t("num",{startsExpr:at}),bigint:_t("bigint",{startsExpr:at}),decimal:_t("decimal",{startsExpr:at}),regexp:_t("regexp",{startsExpr:at}),privateName:_t("#name",{startsExpr:at}),eof:_t("eof"),jsxName:_t("jsxName"),jsxText:_t("jsxText",{beforeExpr:Cr}),jsxTagStart:_t("jsxTagStart",{startsExpr:at}),jsxTagEnd:_t("jsxTagEnd")};function ln(e){return e>=93&&e<=133}function xge(e){return e<=92}function pc(e){return e>=58&&e<=133}function oV(e){return e>=58&&e<=137}function bge(e){return LL[e]}function m0(e){return RL[e]}function vge(e){return e>=29&&e<=33}function Y8(e){return e>=129&&e<=131}function Sge(e){return e>=90&&e<=92}function ML(e){return e>=58&&e<=92}function Tge(e){return e>=39&&e<=59}function wge(e){return e===34}function Cge(e){return DL[e]}function Pge(e){return e>=121&&e<=123}function Ege(e){return e>=124&&e<=130}function kf(e){return kL[e]}function m1(e){return _L[e]}function Ige(e){return e===57}function y1(e){return e>=24&&e<=25}function Xu(e){return Yu[e]}Yu[8].updateContext=e=>{e.pop()},Yu[5].updateContext=Yu[7].updateContext=Yu[23].updateContext=e=>{e.push(tn.brace)},Yu[22].updateContext=e=>{e[e.length-1]===tn.template?e.pop():e.push(tn.template)},Yu[143].updateContext=e=>{e.push(tn.j_expr,tn.j_oTag)};var OL="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u09FC\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",lV="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Age=new RegExp("["+OL+"]"),Nge=new RegExp("["+OL+lV+"]");OL=lV=null;var cV=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],kge=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function cL(e,t){let r=65536;for(let n=0,a=t.length;ne)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Xc(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Age.test(String.fromCharCode(e)):cL(e,cV)}function Bm(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Nge.test(String.fromCharCode(e)):cL(e,cV)||cL(e,kge)}var FL={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},_ge=new Set(FL.keyword),Lge=new Set(FL.strict),Rge=new Set(FL.strictBind);function uV(e,t){return t&&e==="await"||e==="enum"}function dV(e,t){return uV(e,t)||Lge.has(e)}function fV(e){return Rge.has(e)}function pV(e,t){return dV(e,t)||fV(e)}function Dge(e){return _ge.has(e)}function Mge(e,t,r){return e===64&&t===64&&Xc(r)}var Oge=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Fge(e){return Oge.has(e)}var y0=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},x0=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new y0(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,n){let a=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(a,t,r,n);let i=a.names.get(t)||0;r&16?i=i|4:(a.firstLexicalName||(a.firstLexicalName=t),i=i|2),a.names.set(t,i),r&8&&this.maybeExportDefined(a,t)}else if(r&4)for(let i=this.scopeStack.length-1;i>=0&&(a=this.scopeStack[i],this.checkRedeclarationInScope(a,t,r,n),a.names.set(t,(a.names.get(t)||0)|1),this.maybeExportDefined(a,t),!(a.flags&1667));--i);this.parser.inModule&&a.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,n,a){this.isRedeclaredInScope(t,r,n)&&this.parser.raise(Y.VarRedeclaration,a,{identifierName:r})}isRedeclaredInScope(t,r,n){if(!(n&1))return!1;if(n&8)return t.names.has(r);let a=t.names.get(r)||0;return n&16?(a&2)>0||!this.treatFunctionsAsVarInScope(t)&&(a&1)>0:(a&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(a&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},uL=class extends y0{constructor(...t){super(...t),this.declareFunctions=new Set}},dL=class extends x0{createScope(t){return new uL(t)}declareName(t,r,n){let a=this.currentScope();if(r&2048){this.checkRedeclarationInScope(a,t,r,n),this.maybeExportDefined(a,t),a.declareFunctions.add(t);return}super.declareName(t,r,n)}isRedeclaredInScope(t,r,n){if(super.isRedeclaredInScope(t,r,n))return!0;if(n&2048&&!t.declareFunctions.has(r)){let a=t.names.get(r);return(a&4)>0||(a&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},Bge=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Ut=Wc`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function $ge(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function J8(e){return e.importKind==="type"||e.importKind==="typeof"}var jge={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function zge(e,t){let r=[],n=[];for(let a=0;aclass extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return dL}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,n){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,n)}addComment(r){if(this.flowPragma===void 0){let n=Uge.exec(r.value);if(n)if(n[1]==="flow")this.flowPragma="flow";else if(n[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let n=this.state.inType;this.state.inType=!0,this.expect(r||14);let a=this.flowParseType();return this.state.inType=n,a}flowParsePredicate(){let r=this.startNode(),n=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>n.index+1&&this.raise(Ut.UnexpectedSpaceBetweenModuloChecks,n),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let n=null,a=null;return this.match(54)?(this.state.inType=r,a=this.flowParsePredicate()):(n=this.flowParseType(),this.state.inType=r,this.match(54)&&(a=this.flowParsePredicate())),[n,a]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let n=r.id=this.parseIdentifier(),a=this.startNode(),i=this.startNode();this.match(47)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,this.expect(10);let s=this.flowParseFunctionTypeParams();return a.params=s.params,a.rest=s.rest,a.this=s._this,this.expect(11),[a.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(a,"FunctionTypeAnnotation"),n.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(n),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,n){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(n&&this.raise(Ut.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,n);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let n=r.body=this.startNode(),a=n.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Ut.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),a.push(super.parseImport(o))):(this.expectContextual(125,Ut.UnsupportedStatementInDeclareModule),a.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(n,"BlockStatement");let i=null,s=!1;return a.forEach(o=>{$ge(o)?(i==="CommonJS"&&this.raise(Ut.AmbiguousDeclareModuleKind,o),i="ES"):o.type==="DeclareModuleExports"&&(s&&this.raise(Ut.DuplicateDeclareModuleExports,o),i==="ES"&&this.raise(Ut.AmbiguousDeclareModuleKind,o),i="CommonJS",s=!0)}),r.kind=i||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,n){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!n){let a=this.state.value;throw this.raise(Ut.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:a,suggestion:jge[a]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let n=this.flowParseTypeAlias(r);return this.castNodeTo(n,"DeclareTypeAlias"),n}flowParseDeclareOpaqueType(r){this.next();let n=this.flowParseOpaqueType(r,!0);return this.castNodeTo(n,"DeclareOpaqueType"),n}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,n){if(r.id=this.flowParseRestrictedIdentifier(!n,!0),this.scope.declareName(r.id.name,n?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!n&&this.eat(12));if(n){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:n,allowExact:!1,allowSpread:!1,allowProto:n,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(Ut.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,n,a){Bge.has(r)&&this.raise(a?Ut.AssignReservedType:Ut.UnexpectedReservedType,n,{reservedType:r})}flowParseRestrictedIdentifier(r,n){return this.checkReservedType(this.state.value,this.state.startLoc,n),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,n){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,n||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let n=this.state.startLoc,a=this.startNode(),i=this.flowParseVariance(),s=this.flowParseTypeAnnotatableIdentifier();return a.name=s.name,a.variance=i,a.bound=s.typeAnnotation,this.match(29)?(this.eat(29),a.default=this.flowParseType()):r&&this.raise(Ut.MissingTypeParamDefault,n),this.finishNode(a,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let a=!1;do{let i=this.flowParseTypeParameter(a);n.params.push(i),i.default&&(a=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(n,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==tn.brace){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),n=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let a=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=a}),this.state.inType=n,!this.state.inType&&this.curContext()===tn.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),n=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,n,a){return r.static=n,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=a,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,n){return r.static=n,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,n){let a=this.startNode();return r.static=n,r.value=this.flowParseObjectTypeMethodish(a),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:n,allowSpread:a,allowProto:i,allowInexact:s}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let c,u,d=!1;for(n&&this.match(6)?(this.expect(6),c=9,u=!0):(this.expect(5),c=8,u=!1),l.exact=u;!this.match(c);){let p=!1,m=null,h=null,x=this.startNode();if(i&&this.isContextual(118)){let y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),m=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),p=!0)}let g=this.flowParseVariance();if(this.eat(0))m!=null&&this.unexpected(m),this.eat(0)?(g&&this.unexpected(g.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(x,p))):l.indexers.push(this.flowParseObjectTypeIndexer(x,p,g));else if(this.match(10)||this.match(47))m!=null&&this.unexpected(m),g&&this.unexpected(g.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(x,p));else{let y="init";if(this.isContextual(99)||this.isContextual(104)){let S=this.lookahead();oV(S.type)&&(y=this.state.value,this.next())}let b=this.flowParseObjectTypeProperty(x,p,m,g,y,a,s??!u);b===null?(d=!0,h=this.state.lastTokStartLoc):l.properties.push(b)}this.flowObjectTypeSemicolon(),h&&!this.match(8)&&!this.match(9)&&this.raise(Ut.UnexpectedExplicitInexactInObject,h)}this.expect(c),a&&(l.inexact=d);let f=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,f}flowParseObjectTypeProperty(r,n,a,i,s,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(Ut.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Ut.InexactInsideNonObject,this.state.lastTokStartLoc),i&&this.raise(Ut.InexactVariance,i),null):(o||this.raise(Ut.UnexpectedSpreadType,this.state.lastTokStartLoc),a!=null&&this.unexpected(a),i&&this.raise(Ut.SpreadVariance,i),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=n,r.proto=a!=null,r.kind=s;let c=!1;return this.match(47)||this.match(10)?(r.method=!0,a!=null&&this.unexpected(a),i&&this.unexpected(i.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(s==="get"||s==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(Ut.ThisParamBannedInConstructor,r.value.this)):(s!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(c=!0),r.value=this.flowParseTypeInitialiser(),r.variance=i),r.optional=c,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let n=r.kind==="get"?0:1,a=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?Ut.GetterMayNotHaveThisParam:Ut.SetterMayNotHaveThisParam,r.value.this),a!==n&&this.raise(r.kind==="get"?Y.BadGetterArity:Y.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(Y.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,n){r??(r=this.state.startLoc);let a=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let i=this.startNodeAt(r);i.qualification=a,i.id=this.flowParseRestrictedIdentifier(!0),a=this.finishNode(i,"QualifiedTypeIdentifier")}return a}flowParseGenericType(r,n){let a=this.startNodeAt(r);return a.typeParameters=null,a.id=this.flowParseQualifiedTypeIdentifier(r,n),this.match(47)&&(a.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(a,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.possuper.parseFunctionBody(r,!0,a));return}super.parseFunctionBody(r,!1,a)}parseFunctionBodyAndFinish(r,n,a=!1){if(this.match(14)){let i=this.startNode();[i.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=i.typeAnnotation?this.finishNode(i,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,n,a)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let a=this.lookahead();if(pc(a.type)){let i=this.startNode();return this.next(),this.flowParseInterface(i)}}else if(this.isContextual(126)){let a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}let n=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(n)&&(this.flowPragma=null),n}parseExpressionStatement(r,n,a){if(n.type==="Identifier"){if(n.name==="declare"){if(this.match(80)||ln(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(ln(this.state.type)){if(n.name==="interface")return this.flowParseInterface(r);if(n.name==="type")return this.flowParseTypeAlias(r);if(n.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,n,a)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||Y8(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Y8(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,n,a){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(a),r}this.expect(17);let i=this.state.clone(),s=this.state.noArrowAt,o=this.startNodeAt(n),{consequent:l,failed:c}=this.tryParseConditionalConsequent(),[u,d]=this.getArrowLikeExpressions(l);if(c||d.length>0){let f=[...s];if(d.length>0){this.state=i,this.state.noArrowAt=f;for(let p=0;p1&&this.raise(Ut.AmbiguousConditionalArrow,i.startLoc),c&&u.length===1&&(this.state=i,f.push(u[0].start),this.state.noArrowAt=f,{consequent:l,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=s,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),n=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:n}}getArrowLikeExpressions(r,n){let a=[r],i=[];for(;a.length!==0;){let s=a.pop();s.type==="ArrowFunctionExpression"&&s.body.type!=="BlockStatement"?(s.typeParameters||!s.returnType?this.finishArrowValidation(s):i.push(s),a.push(s.body)):s.type==="ConditionalExpression"&&(a.push(s.consequent),a.push(s.alternate))}return n?(i.forEach(s=>this.finishArrowValidation(s)),[i,[]]):zge(i,s=>s.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var n;this.toAssignableList(r.params,(n=r.extra)==null?void 0:n.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,n){let a;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),a=n(),this.state.noArrowParamsConversionAt.pop()):a=n(),a}parseParenItem(r,n){let a=super.parseParenItem(r,n);if(this.eat(17)&&(a.optional=!0,this.resetEndLocation(r)),this.match(14)){let i=this.startNodeAt(n);return i.expression=a,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return a}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let n=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(n)}else if(this.isContextual(131)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}else if(this.isContextual(129)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseInterface(n)}else if(this.isContextual(126)){r.exportKind="value";let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:n}=this.state,a=super.maybeParseExportNamespaceSpecifier(r);return a&&r.exportKind==="type"&&this.unexpected(n),a}parseClassId(r,n,a){super.parseClassId(r,n,a),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,n,a){let{startLoc:i}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,n))return;n.declare=!0}super.parseClassMember(r,n,a),n.declare&&(n.type!=="ClassProperty"&&n.type!=="ClassPrivateProperty"&&n.type!=="PropertyDefinition"?this.raise(Ut.DeclareClassElement,i):n.value&&this.raise(Ut.DeclareClassFieldInitializer,n.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),n="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(Y.InvalidIdentifier,this.state.curPosition(),{identifierName:n}),this.finishToken(132,n)}getTokenFromCode(r){let n=this.input.charCodeAt(this.state.pos+1);r===123&&n===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?n===46?this.finishOp(18,2):this.finishOp(17,1):Mge(r,n,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,n){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,n):super.isAssignable(r,n)}toAssignable(r,n=!1){!n&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,n)}toAssignableList(r,n,a){for(let i=0;i1||!n)&&this.raise(Ut.TypeCastInPattern,s.typeAnnotation)}return r}parseArrayLike(r,n,a){let i=super.parseArrayLike(r,n,a);return a!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(r,n,a,i){return r==="TypeCastExpression"||super.isValidLVal(r,n,a,i)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,n,a,i,s,o){if(n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,n,a,i,s,o),n.params&&s){let l=n.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Ut.ThisParamBannedInConstructor,n)}else if(n.type==="MethodDefinition"&&s&&n.value.params){let l=n.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Ut.ThisParamBannedInConstructor,n)}}pushClassPrivateMethod(r,n,a,i){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,n,a,i)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let n=r.implements=[];do{let a=this.startNode();a.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,n.push(this.finishNode(a,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let n=this.getObjectOrClassMethodParams(r);if(n.length>0){let a=n[0];this.isThisParam(a)&&r.kind==="get"?this.raise(Ut.GetterMayNotHaveThisParam,a):this.isThisParam(a)&&this.raise(Ut.SetterMayNotHaveThisParam,a)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,n,a,i,s,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let c;this.match(47)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let u=super.parseObjPropValue(r,n,a,i,s,o,l);return c&&((u.value||u).typeParameters=c),u}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(Ut.PatternIsOptional,r),this.isThisParam(r)&&this.raise(Ut.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(Ut.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(Ut.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,n){let a=super.parseMaybeDefault(r,n);return a.type==="AssignmentPattern"&&a.typeAnnotation&&a.right.startsuper.parseMaybeAssign(r,n),i),!s.error)return s.node;let{context:c}=this.state,u=c[c.length-1];(u===tn.j_oTag||u===tn.j_expr)&&c.pop()}if((a=s)!=null&&a.error||this.match(47)){var o,l;i=i||this.state.clone();let c,u=this.tryParse(f=>{var p;c=this.flowParseTypeParameterDeclaration();let m=this.forwardNoArrowParamsConversionAt(c,()=>{let x=super.parseMaybeAssign(r,n);return this.resetStartLocationFromNode(x,c),x});(p=m.extra)!=null&&p.parenthesized&&f();let h=this.maybeUnwrapTypeCastExpression(m);return h.type!=="ArrowFunctionExpression"&&f(),h.typeParameters=c,this.resetStartLocationFromNode(h,c),m},i),d=null;if(u.node&&this.maybeUnwrapTypeCastExpression(u.node).type==="ArrowFunctionExpression"){if(!u.error&&!u.aborted)return u.node.async&&this.raise(Ut.UnexpectedTypeParameterBeforeAsyncArrowFunction,c),u.node;d=u.node}if((o=s)!=null&&o.node)return this.state=s.failState,s.node;if(d)return this.state=u.failState,d;throw(l=s)!=null&&l.thrown?s.error:u.thrown?u.error:this.raise(Ut.UnexpectedTokenAfterTypeParameter,c)}return super.parseMaybeAssign(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(()=>{let a=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let i=this.startNode();return[i.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=a,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),i});if(n.thrown)return null;n.error&&(this.state=n.failState),r.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,n){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=n:super.setArrowFunctionParameters(r,n)}checkParams(r,n,a,i=!0){if(!(a&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let s=0;s0&&this.raise(Ut.ThisParamMustBeFirst,r.params[s]);super.checkParams(r,n,a,i)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,n,a){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(n.index)){this.next();let i=this.startNodeAt(n);i.callee=r,i.arguments=super.parseCallExpressionArguments(),r=this.finishNode(i,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let i=this.state.clone(),s=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(n)||l(),i);if(!s.error&&!s.aborted)return s.node;let o=this.tryParse(()=>super.parseSubscripts(r,n,a),i);if(o.node&&!o.error)return o.node;if(s.node)return this.state=s.failState,s.node;if(o.node)return this.state=o.failState,o.node;throw s.error||o.error}return super.parseSubscripts(r,n,a)}parseSubscript(r,n,a,i){if(this.match(18)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,a)return i.stop=!0,r;this.next();let s=this.startNodeAt(n);return s.callee=r,s.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),s.arguments=this.parseCallExpressionArguments(),s.optional=!0,this.finishCallExpression(s,!0)}else if(!a&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let s=this.startNodeAt(n);s.callee=r;let o=this.tryParse(()=>(s.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),s.arguments=super.parseCallExpressionArguments(),i.optionalChainMember&&(s.optional=!1),this.finishCallExpression(s,i.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,n,a,i)}parseNewCallee(r){super.parseNewCallee(r);let n=null;this.shouldParseTypes()&&this.match(47)&&(n=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=n}parseAsyncArrowWithTypeParameters(r){let n=this.startNodeAt(r);if(this.parseFunctionParams(n,!1),!!this.parseArrow(n))return super.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===42&&n===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===124&&n===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,n){let a=super.parseTopLevel(r,n);return this.state.hasFlowComment&&this.raise(Ut.UnterminatedFlowComment,this.state.curPosition()),a}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Ut.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,n=2;for(;[32,9].includes(this.input.charCodeAt(r+n));)n++;let a=this.input.charCodeAt(n+r),i=this.input.charCodeAt(n+r+1);return a===58&&i===58?n+2:this.input.slice(n+r,n+r+12)==="flow-include"?n+12:a===58&&i!==58?n:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(Y.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:a}){this.raise(Ut.EnumBooleanMemberNotInitialized,r,{memberName:a,enumName:n})}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?Ut.EnumInvalidMemberInitializerSymbolType:Ut.EnumInvalidMemberInitializerPrimaryType:Ut.EnumInvalidMemberInitializerUnknownType,r,n)}flowEnumErrorNumberMemberNotInitialized(r,n){this.raise(Ut.EnumNumberMemberNotInitialized,r,n)}flowEnumErrorStringMemberInconsistentlyInitialized(r,n){this.raise(Ut.EnumStringMemberInconsistentlyInitialized,r,n)}flowEnumMemberInit(){let r=this.state.startLoc,n=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let a=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:a.loc.start,value:a}:{type:"invalid",loc:r}}case 134:{let a=this.parseStringLiteral(this.state.value);return n()?{type:"string",loc:a.loc.start,value:a}:{type:"invalid",loc:r}}case 85:case 86:{let a=this.parseBooleanLiteral(this.match(85));return n()?{type:"boolean",loc:a.loc.start,value:a}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,n=this.parseIdentifier(!0),a=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:n,init:a}}flowEnumCheckExplicitTypeMismatch(r,n,a){let{explicitType:i}=n;i!==null&&i!==a&&this.flowEnumErrorInvalidMemberInitializer(r,n)}flowEnumMembers({enumName:r,explicitType:n}){let a=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;for(;!this.match(8);){if(this.eat(21)){s=!0;break}let o=this.startNode(),{id:l,init:c}=this.flowEnumMemberRaw(),u=l.name;if(u==="")continue;/^[a-z]/.test(u)&&this.raise(Ut.EnumInvalidMemberName,l,{memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:r}),a.has(u)&&this.raise(Ut.EnumDuplicateMemberName,l,{memberName:u,enumName:r}),a.add(u);let d={enumName:r,explicitType:n,memberName:u};switch(o.id=l,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"boolean"),o.init=c.value,i.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"number"),o.init=c.value,i.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"string"),o.init=c.value,i.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,d);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,d);break;default:i.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:s}}flowEnumStringMembers(r,n,{enumName:a}){if(r.length===0)return n;if(n.length===0)return r;if(n.length>r.length){for(let i of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(i,{enumName:a});return n}else{for(let i of n)this.flowEnumErrorStringMemberInconsistentlyInitialized(i,{enumName:a});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!ln(this.state.type))throw this.raise(Ut.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(Ut.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:n}),n}flowEnumBody(r,n){let a=n.name,i=n.loc.start,s=this.flowEnumParseExplicitType({enumName:a});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:a,explicitType:s});switch(r.hasUnknownMembers=l,s){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:a}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let c=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let u=o.booleanMembers.length,d=o.numberMembers.length,f=o.stringMembers.length,p=o.defaultedMembers.length;if(!u&&!d&&!f&&!p)return c();if(!u&&!d)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:a}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!d&&!f&&u>=p){for(let m of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(m.loc.start,{enumName:a,memberName:m.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!u&&!f&&d>=p){for(let m of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(m.loc.start,{enumName:a,memberName:m.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(Ut.EnumInconsistentMemberValues,i,{enumName:a}),c()}}}flowParseEnumDeclaration(r){let n=this.parseIdentifier();return r.id=n,r.body=this.flowEnumBody(this.startNode(),n),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let n=this.input.charCodeAt(r+1);return n!==60&&n!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},qge={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Hge=/\r\n|[\r\n\u2028\u2029]/,d1=new RegExp(Hge.source,"g");function py(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Z8(e,t,r){for(let n=t;n`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function Af(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function fy(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return fy(e.object)+"."+fy(e.property);throw new Error("Node had unexpected type: "+e.type)}var Kge=e=>class extends e{jsxReadToken(){let r="",n=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Om.UnterminatedJsxContent,this.state.startLoc);let a=this.input.charCodeAt(this.state.pos);switch(a){case 60:case 123:if(this.state.pos===this.state.start){a===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(a);return}r+=this.input.slice(n,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos;break;case 62:case 125:default:py(a)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!0),n=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let n=this.input.charCodeAt(this.state.pos),a;return++this.state.pos,n===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,a=r?` +- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${bw(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${bw(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${bw(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Oie={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Fie={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},Bie=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Uie=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${bw({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),jie=["message"];function FB(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function zie({toMessage:e,code:t,reasonCode:r,syntaxPlugin:a}){let n=r==="MissingPlugin"||r==="MissingOneOfPlugins";{let s={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};s[r]&&(r=s[r])}return function s(i,o){let l=new SyntaxError;return l.code=t,l.reasonCode=r,l.loc=i,l.pos=i.index,l.syntaxPlugin=a,n&&(l.missingPlugin=o.missingPlugin),FB(l,"clone",function(u={}){var d;let{line:f,column:p,index:m}=(d=u.loc)!=null?d:i;return s(new wc(f,p,m),Object.assign({},o,u.details))}),FB(l,"details",o),Object.defineProperty(l,"message",{configurable:!0,get(){let c=`${e(o)} (${i.line}:${i.column})`;return this.message=c,c},set(c){Object.defineProperty(this,"message",{value:c,writable:!0})}}),l}}function Sc(e,t){if(Array.isArray(e))return a=>Sc(a,e[0]);let r={};for(let a of Object.keys(e)){let n=e[a],s=typeof n=="string"?{message:()=>n}:typeof n=="function"?{message:n}:n,{message:i}=s,o=Mie(s,jie),l=typeof i=="string"?()=>i:i;r[a]=zie(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:a,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var X=Object.assign({},Sc(Die),Sc(_ie),Sc(Oie),Sc(Fie),Sc`pipelineOperator`(Uie));function Vie(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function qie(e){let t=Vie();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:Hie}=Object,BB=(e,t)=>{e&&Hie(e,t,{enumerable:!1,value:e[t]})};function a0(e){return BB(e.loc.start,"index"),BB(e.loc.end,"index"),e}var $ie=e=>class extends e{parse(){let r=a0(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(a0)),r}parseRegExpLiteral({pattern:r,flags:a}){let n=null;try{n=new RegExp(r,a)}catch{}let s=this.estreeParseLiteral(n);return s.regex={pattern:r,flags:a},s}parseBigIntLiteral(r){let a;try{a=BigInt(r)}catch{a=null}let n=this.estreeParseLiteral(a);return n.bigint=String(n.value||r),n}parseDecimalLiteral(r){let n=this.estreeParseLiteral(null);return n.decimal=String(n.value||r),n}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,a){let n=this.startNodeAtNode(r);return n.expression=r,this.finishNodeAt(n,"ChainExpression",a)}directiveToStmt(r){let a=r.value;delete r.value,this.castNodeTo(a,"Literal"),a.raw=a.extra.raw,a.value=a.extra.expressionValue;let n=this.castNodeTo(r,"ExpressionStatement");return n.expression=a,n.directive=a.extra.rawValue,delete a.extra,n}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:a,end:n,loc:s,range:i,raw:o,value:l}=r,c=Object.create(r.constructor.prototype);return c.type="Literal",c.start=a,c.end=n,c.loc=s,c.range=i,c.raw=o,c.value=l,c}initFunction(r,a){super.initFunction(r,a),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var a;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((a=r.expression.extra)!=null&&a.parenthesized)}parseBlockBody(r,a,n,s,i){super.parseBlockBody(r,a,n,s,i);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let a=super.getPrivateNameSV(r);return delete r.id,r.name=a,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,a){let n=super.parseLiteral(r,a);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(r,a,n=!1){super.parseFunctionBody(r,a,n),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,a,n,s,i,o,l=!1){let c=this.startNode();c.kind=r.kind,c=super.parseMethod(c,a,n,s,i,o,l),delete c.kind;let{typeParameters:u}=r;u&&(delete r.typeParameters,c.typeParameters=u,this.resetStartLocationFromNode(c,u));let d=this.castNodeTo(c,"FunctionExpression");return r.value=d,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let a=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(a,"PropertyDefinition"),a}parseClassPrivateProperty(...r){let a=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(a,"PropertyDefinition"),a.computed=!1),a}parseClassAccessorProperty(r){let a=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(a.abstract&&this.hasPlugin("typescript")?(delete a.abstract,this.castNodeTo(a,"TSAbstractAccessorProperty")):this.castNodeTo(a,"AccessorProperty")),a}parseObjectProperty(r,a,n,s){let i=super.parseObjectProperty(r,a,n,s);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,a,n,s){return r==="Property"?"value":super.isValidLVal(r,a,n,s)}isAssignable(r,a){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,a):super.isAssignable(r,a)}toAssignable(r,a=!1){if(r!=null&&this.isObjectProperty(r)){let{key:n,value:s}=r;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(s,a)}else super.toAssignable(r,a)}toAssignableObjectExpressionProp(r,a,n){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(X.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(X.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,a,n)}finishCallExpression(r,a){let n=super.finishCallExpression(r,a);if(n.callee.type==="Import"){var s;this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=(s=n.arguments[1])!=null?s:null;{var i;n.attributes=(i=n.arguments[1])!=null?i:null}delete n.arguments,delete n.callee}else n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1;return n}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,a){let n=this.state.lastTokStartLoc,s=super.parseExport(r,a);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(s,"ExportAllDeclaration"),s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var i;let{declaration:o}=s;o?.type==="ClassDeclaration"&&((i=o.decorators)==null?void 0:i.length)>0&&o.start===s.start&&this.resetStartLocation(s,n)}break}return s}stopParseSubscript(r,a){let n=super.stopParseSubscript(r,a);return a.optionalChainMember?this.estreeParseChainExpression(n,r.loc.end):n}parseMember(r,a,n,s,i){let o=super.parseMember(r,a,n,s,i);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,a){let n=super.castNodeTo(r,a);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(r){let a=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(a),a}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,a,n){return a0(super.finishNodeAt(r,a,n))}finishNode(r,a){let n=super.finishNode(r,a);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(r,a){super.resetStartLocation(r,a),a0(r)}resetEndLocation(r,a=this.state.lastTokEndLoc){super.resetEndLocation(r,a),a0(r)}},Qp=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},Gr={brace:new Qp("{"),j_oTag:new Qp("...",!0)};Gr.template=new Qp("`",!0);var xr=!0,Ze=!0,eN=!0,n0=!0,Gd=!0,Gie=!0,Tw=class{constructor(t,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},PN=new Map;function Dr(e,t={}){t.keyword=e;let r=Pt(e,t);return PN.set(e,r),r}function ci(e,t){return Pt(e,{beforeExpr:xr,binop:t})}var l0=-1,vu=[],AN=[],IN=[],NN=[],LN=[],RN=[];function Pt(e,t={}){var r,a,n,s;return++l0,AN.push(e),IN.push((r=t.binop)!=null?r:-1),NN.push((a=t.beforeExpr)!=null?a:!1),LN.push((n=t.startsExpr)!=null?n:!1),RN.push((s=t.prefix)!=null?s:!1),vu.push(new Tw(e,t)),l0}function Tr(e,t={}){var r,a,n,s;return++l0,PN.set(e,l0),AN.push(e),IN.push((r=t.binop)!=null?r:-1),NN.push((a=t.beforeExpr)!=null?a:!1),LN.push((n=t.startsExpr)!=null?n:!1),RN.push((s=t.prefix)!=null?s:!1),vu.push(new Tw("name",t)),l0}var Kie={bracketL:Pt("[",{beforeExpr:xr,startsExpr:Ze}),bracketHashL:Pt("#[",{beforeExpr:xr,startsExpr:Ze}),bracketBarL:Pt("[|",{beforeExpr:xr,startsExpr:Ze}),bracketR:Pt("]"),bracketBarR:Pt("|]"),braceL:Pt("{",{beforeExpr:xr,startsExpr:Ze}),braceBarL:Pt("{|",{beforeExpr:xr,startsExpr:Ze}),braceHashL:Pt("#{",{beforeExpr:xr,startsExpr:Ze}),braceR:Pt("}"),braceBarR:Pt("|}"),parenL:Pt("(",{beforeExpr:xr,startsExpr:Ze}),parenR:Pt(")"),comma:Pt(",",{beforeExpr:xr}),semi:Pt(";",{beforeExpr:xr}),colon:Pt(":",{beforeExpr:xr}),doubleColon:Pt("::",{beforeExpr:xr}),dot:Pt("."),question:Pt("?",{beforeExpr:xr}),questionDot:Pt("?."),arrow:Pt("=>",{beforeExpr:xr}),template:Pt("template"),ellipsis:Pt("...",{beforeExpr:xr}),backQuote:Pt("`",{startsExpr:Ze}),dollarBraceL:Pt("${",{beforeExpr:xr,startsExpr:Ze}),templateTail:Pt("...`",{startsExpr:Ze}),templateNonTail:Pt("...${",{beforeExpr:xr,startsExpr:Ze}),at:Pt("@"),hash:Pt("#",{startsExpr:Ze}),interpreterDirective:Pt("#!..."),eq:Pt("=",{beforeExpr:xr,isAssign:n0}),assign:Pt("_=",{beforeExpr:xr,isAssign:n0}),slashAssign:Pt("_=",{beforeExpr:xr,isAssign:n0}),xorAssign:Pt("_=",{beforeExpr:xr,isAssign:n0}),moduloAssign:Pt("_=",{beforeExpr:xr,isAssign:n0}),incDec:Pt("++/--",{prefix:Gd,postfix:Gie,startsExpr:Ze}),bang:Pt("!",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),tilde:Pt("~",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),doubleCaret:Pt("^^",{startsExpr:Ze}),doubleAt:Pt("@@",{startsExpr:Ze}),pipeline:ci("|>",0),nullishCoalescing:ci("??",1),logicalOR:ci("||",1),logicalAND:ci("&&",2),bitwiseOR:ci("|",3),bitwiseXOR:ci("^",4),bitwiseAND:ci("&",5),equality:ci("==/!=/===/!==",6),lt:ci("/<=/>=",7),gt:ci("/<=/>=",7),relational:ci("/<=/>=",7),bitShift:ci("<>/>>>",8),bitShiftL:ci("<>/>>>",8),bitShiftR:ci("<>/>>>",8),plusMin:Pt("+/-",{beforeExpr:xr,binop:9,prefix:Gd,startsExpr:Ze}),modulo:Pt("%",{binop:10,startsExpr:Ze}),star:Pt("*",{binop:10}),slash:ci("/",10),exponent:Pt("**",{beforeExpr:xr,binop:11,rightAssociative:!0}),_in:Dr("in",{beforeExpr:xr,binop:7}),_instanceof:Dr("instanceof",{beforeExpr:xr,binop:7}),_break:Dr("break"),_case:Dr("case",{beforeExpr:xr}),_catch:Dr("catch"),_continue:Dr("continue"),_debugger:Dr("debugger"),_default:Dr("default",{beforeExpr:xr}),_else:Dr("else",{beforeExpr:xr}),_finally:Dr("finally"),_function:Dr("function",{startsExpr:Ze}),_if:Dr("if"),_return:Dr("return",{beforeExpr:xr}),_switch:Dr("switch"),_throw:Dr("throw",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),_try:Dr("try"),_var:Dr("var"),_const:Dr("const"),_with:Dr("with"),_new:Dr("new",{beforeExpr:xr,startsExpr:Ze}),_this:Dr("this",{startsExpr:Ze}),_super:Dr("super",{startsExpr:Ze}),_class:Dr("class",{startsExpr:Ze}),_extends:Dr("extends",{beforeExpr:xr}),_export:Dr("export"),_import:Dr("import",{startsExpr:Ze}),_null:Dr("null",{startsExpr:Ze}),_true:Dr("true",{startsExpr:Ze}),_false:Dr("false",{startsExpr:Ze}),_typeof:Dr("typeof",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),_void:Dr("void",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),_delete:Dr("delete",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),_do:Dr("do",{isLoop:eN,beforeExpr:xr}),_for:Dr("for",{isLoop:eN}),_while:Dr("while",{isLoop:eN}),_as:Tr("as",{startsExpr:Ze}),_assert:Tr("assert",{startsExpr:Ze}),_async:Tr("async",{startsExpr:Ze}),_await:Tr("await",{startsExpr:Ze}),_defer:Tr("defer",{startsExpr:Ze}),_from:Tr("from",{startsExpr:Ze}),_get:Tr("get",{startsExpr:Ze}),_let:Tr("let",{startsExpr:Ze}),_meta:Tr("meta",{startsExpr:Ze}),_of:Tr("of",{startsExpr:Ze}),_sent:Tr("sent",{startsExpr:Ze}),_set:Tr("set",{startsExpr:Ze}),_source:Tr("source",{startsExpr:Ze}),_static:Tr("static",{startsExpr:Ze}),_using:Tr("using",{startsExpr:Ze}),_yield:Tr("yield",{startsExpr:Ze}),_asserts:Tr("asserts",{startsExpr:Ze}),_checks:Tr("checks",{startsExpr:Ze}),_exports:Tr("exports",{startsExpr:Ze}),_global:Tr("global",{startsExpr:Ze}),_implements:Tr("implements",{startsExpr:Ze}),_intrinsic:Tr("intrinsic",{startsExpr:Ze}),_infer:Tr("infer",{startsExpr:Ze}),_is:Tr("is",{startsExpr:Ze}),_mixins:Tr("mixins",{startsExpr:Ze}),_proto:Tr("proto",{startsExpr:Ze}),_require:Tr("require",{startsExpr:Ze}),_satisfies:Tr("satisfies",{startsExpr:Ze}),_keyof:Tr("keyof",{startsExpr:Ze}),_readonly:Tr("readonly",{startsExpr:Ze}),_unique:Tr("unique",{startsExpr:Ze}),_abstract:Tr("abstract",{startsExpr:Ze}),_declare:Tr("declare",{startsExpr:Ze}),_enum:Tr("enum",{startsExpr:Ze}),_module:Tr("module",{startsExpr:Ze}),_namespace:Tr("namespace",{startsExpr:Ze}),_interface:Tr("interface",{startsExpr:Ze}),_type:Tr("type",{startsExpr:Ze}),_opaque:Tr("opaque",{startsExpr:Ze}),name:Pt("name",{startsExpr:Ze}),placeholder:Pt("%%",{startsExpr:Ze}),string:Pt("string",{startsExpr:Ze}),num:Pt("num",{startsExpr:Ze}),bigint:Pt("bigint",{startsExpr:Ze}),decimal:Pt("decimal",{startsExpr:Ze}),regexp:Pt("regexp",{startsExpr:Ze}),privateName:Pt("#name",{startsExpr:Ze}),eof:Pt("eof"),jsxName:Pt("jsxName"),jsxText:Pt("jsxText",{beforeExpr:xr}),jsxTagStart:Pt("jsxTagStart",{startsExpr:Ze}),jsxTagEnd:Pt("jsxTagEnd")};function Qr(e){return e>=93&&e<=133}function Wie(e){return e<=92}function zl(e){return e>=58&&e<=133}function YB(e){return e>=58&&e<=137}function Xie(e){return NN[e]}function i0(e){return LN[e]}function Yie(e){return e>=29&&e<=33}function UB(e){return e>=129&&e<=131}function Jie(e){return e>=90&&e<=92}function kN(e){return e>=58&&e<=92}function Qie(e){return e>=39&&e<=59}function Zie(e){return e===34}function eoe(e){return RN[e]}function toe(e){return e>=121&&e<=123}function roe(e){return e>=124&&e<=130}function Xd(e){return AN[e]}function vw(e){return IN[e]}function aoe(e){return e===57}function ww(e){return e>=24&&e<=25}function bu(e){return vu[e]}vu[8].updateContext=e=>{e.pop()},vu[5].updateContext=vu[7].updateContext=vu[23].updateContext=e=>{e.push(Gr.brace)},vu[22].updateContext=e=>{e[e.length-1]===Gr.template?e.pop():e.push(Gr.template)},vu[143].updateContext=e=>{e.push(Gr.j_expr,Gr.j_oTag)};var MN="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u09FC\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",JB="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",noe=new RegExp("["+MN+"]"),soe=new RegExp("["+MN+JB+"]");MN=JB=null;var QB=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],ioe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function iN(e,t){let r=65536;for(let a=0,n=t.length;ae)return!1;if(r+=t[a+1],r>=e)return!0}return!1}function Tc(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&noe.test(String.fromCharCode(e)):iN(e,QB)}function Zp(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&soe.test(String.fromCharCode(e)):iN(e,QB)||iN(e,ioe)}var DN={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},ooe=new Set(DN.keyword),loe=new Set(DN.strict),coe=new Set(DN.strictBind);function ZB(e,t){return t&&e==="await"||e==="enum"}function e4(e,t){return ZB(e,t)||loe.has(e)}function t4(e){return coe.has(e)}function r4(e,t){return e4(e,t)||t4(e)}function uoe(e){return ooe.has(e)}function doe(e,t,r){return e===64&&t===64&&Tc(r)}var foe=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function poe(e){return foe.has(e)}var c0=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},u0=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new c0(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,a){let n=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(n,t,r,a);let s=n.names.get(t)||0;r&16?s=s|4:(n.firstLexicalName||(n.firstLexicalName=t),s=s|2),n.names.set(t,s),r&8&&this.maybeExportDefined(n,t)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(n=this.scopeStack[s],this.checkRedeclarationInScope(n,t,r,a),n.names.set(t,(n.names.get(t)||0)|1),this.maybeExportDefined(n,t),!(n.flags&1667));--s);this.parser.inModule&&n.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,a,n){this.isRedeclaredInScope(t,r,a)&&this.parser.raise(X.VarRedeclaration,n,{identifierName:r})}isRedeclaredInScope(t,r,a){if(!(a&1))return!1;if(a&8)return t.names.has(r);let n=t.names.get(r)||0;return a&16?(n&2)>0||!this.treatFunctionsAsVarInScope(t)&&(n&1)>0:(n&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(n&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},oN=class extends c0{constructor(...t){super(...t),this.declareFunctions=new Set}},lN=class extends u0{createScope(t){return new oN(t)}declareName(t,r,a){let n=this.currentScope();if(r&2048){this.checkRedeclarationInScope(n,t,r,a),this.maybeExportDefined(n,t),n.declareFunctions.add(t);return}super.declareName(t,r,a)}isRedeclaredInScope(t,r,a){if(super.isRedeclaredInScope(t,r,a))return!0;if(a&2048&&!t.declareFunctions.has(r)){let n=t.names.get(r);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},moe=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Ft=Sc`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function hoe(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function jB(e){return e.importKind==="type"||e.importKind==="typeof"}var goe={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function yoe(e,t){let r=[],a=[];for(let n=0;nclass extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return lN}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,a){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,a)}addComment(r){if(this.flowPragma===void 0){let a=xoe.exec(r.value);if(a)if(a[1]==="flow")this.flowPragma="flow";else if(a[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let a=this.state.inType;this.state.inType=!0,this.expect(r||14);let n=this.flowParseType();return this.state.inType=a,n}flowParsePredicate(){let r=this.startNode(),a=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>a.index+1&&this.raise(Ft.UnexpectedSpaceBetweenModuloChecks,a),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let a=null,n=null;return this.match(54)?(this.state.inType=r,n=this.flowParsePredicate()):(a=this.flowParseType(),this.state.inType=r,this.match(54)&&(n=this.flowParsePredicate())),[a,n]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let a=r.id=this.parseIdentifier(),n=this.startNode(),s=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),a.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(a),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,a){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(a&&this.raise(Ft.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,a);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let a=r.body=this.startNode(),n=a.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Ft.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(o))):(this.expectContextual(125,Ft.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(a,"BlockStatement");let s=null,i=!1;return n.forEach(o=>{hoe(o)?(s==="CommonJS"&&this.raise(Ft.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(i&&this.raise(Ft.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(Ft.AmbiguousDeclareModuleKind,o),s="CommonJS",i=!0)}),r.kind=s||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,a){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!a){let n=this.state.value;throw this.raise(Ft.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:goe[n]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let a=this.flowParseTypeAlias(r);return this.castNodeTo(a,"DeclareTypeAlias"),a}flowParseDeclareOpaqueType(r){this.next();let a=this.flowParseOpaqueType(r,!0);return this.castNodeTo(a,"DeclareOpaqueType"),a}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,a){if(r.id=this.flowParseRestrictedIdentifier(!a,!0),this.scope.declareName(r.id.name,a?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!a&&this.eat(12));if(a){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:a,allowExact:!1,allowSpread:!1,allowProto:a,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(Ft.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,a,n){moe.has(r)&&this.raise(n?Ft.AssignReservedType:Ft.UnexpectedReservedType,a,{reservedType:r})}flowParseRestrictedIdentifier(r,a){return this.checkReservedType(this.state.value,this.state.startLoc,a),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,a){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,a||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let a=this.state.startLoc,n=this.startNode(),s=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=s,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):r&&this.raise(Ft.MissingTypeParamDefault,a),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,a=this.startNode();a.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let s=this.flowParseTypeParameter(n);a.params.push(s),s.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(a,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==Gr.brace){let a=this.state.context;this.state.context=[a[0]];try{return r()}finally{this.state.context=a}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),a=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=n}),this.state.inType=a,!this.state.inType&&this.curContext()===Gr.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),a=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=a,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,a,n){return r.static=a,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=n,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,a){return r.static=a,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,a){let n=this.startNode();return r.static=a,r.value=this.flowParseObjectTypeMethodish(n),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:a,allowSpread:n,allowProto:s,allowInexact:i}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let c,u,d=!1;for(a&&this.match(6)?(this.expect(6),c=9,u=!0):(this.expect(5),c=8,u=!1),l.exact=u;!this.match(c);){let p=!1,m=null,h=null,x=this.startNode();if(s&&this.isContextual(118)){let y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),m=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),p=!0)}let g=this.flowParseVariance();if(this.eat(0))m!=null&&this.unexpected(m),this.eat(0)?(g&&this.unexpected(g.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(x,p))):l.indexers.push(this.flowParseObjectTypeIndexer(x,p,g));else if(this.match(10)||this.match(47))m!=null&&this.unexpected(m),g&&this.unexpected(g.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(x,p));else{let y="init";if(this.isContextual(99)||this.isContextual(104)){let S=this.lookahead();YB(S.type)&&(y=this.state.value,this.next())}let v=this.flowParseObjectTypeProperty(x,p,m,g,y,n,i??!u);v===null?(d=!0,h=this.state.lastTokStartLoc):l.properties.push(v)}this.flowObjectTypeSemicolon(),h&&!this.match(8)&&!this.match(9)&&this.raise(Ft.UnexpectedExplicitInexactInObject,h)}this.expect(c),n&&(l.inexact=d);let f=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,f}flowParseObjectTypeProperty(r,a,n,s,i,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(Ft.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Ft.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(Ft.InexactVariance,s),null):(o||this.raise(Ft.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),s&&this.raise(Ft.SpreadVariance,s),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=a,r.proto=n!=null,r.kind=i;let c=!1;return this.match(47)||this.match(10)?(r.method=!0,n!=null&&this.unexpected(n),s&&this.unexpected(s.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(i==="get"||i==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(Ft.ThisParamBannedInConstructor,r.value.this)):(i!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(c=!0),r.value=this.flowParseTypeInitialiser(),r.variance=s),r.optional=c,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let a=r.kind==="get"?0:1,n=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?Ft.GetterMayNotHaveThisParam:Ft.SetterMayNotHaveThisParam,r.value.this),n!==a&&this.raise(r.kind==="get"?X.BadGetterArity:X.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(X.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,a){r??(r=this.state.startLoc);let n=a||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let s=this.startNodeAt(r);s.qualification=n,s.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(s,"QualifiedTypeIdentifier")}return n}flowParseGenericType(r,a){let n=this.startNodeAt(r);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(r,a),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.possuper.parseFunctionBody(r,!0,n));return}super.parseFunctionBody(r,!1,n)}parseFunctionBodyAndFinish(r,a,n=!1){if(this.match(14)){let s=this.startNode();[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,a,n)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let n=this.lookahead();if(zl(n.type)){let s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.isContextual(126)){let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}let a=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(a)&&(this.flowPragma=null),a}parseExpressionStatement(r,a,n){if(a.type==="Identifier"){if(a.name==="declare"){if(this.match(80)||Qr(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Qr(this.state.type)){if(a.name==="interface")return this.flowParseInterface(r);if(a.name==="type")return this.flowParseTypeAlias(r);if(a.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,a,n)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||UB(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||UB(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,a,n){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(n),r}this.expect(17);let s=this.state.clone(),i=this.state.noArrowAt,o=this.startNodeAt(a),{consequent:l,failed:c}=this.tryParseConditionalConsequent(),[u,d]=this.getArrowLikeExpressions(l);if(c||d.length>0){let f=[...i];if(d.length>0){this.state=s,this.state.noArrowAt=f;for(let p=0;p1&&this.raise(Ft.AmbiguousConditionalArrow,s.startLoc),c&&u.length===1&&(this.state=s,f.push(u[0].start),this.state.noArrowAt=f,{consequent:l,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=i,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),a=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:a}}getArrowLikeExpressions(r,a){let n=[r],s=[];for(;n.length!==0;){let i=n.pop();i.type==="ArrowFunctionExpression"&&i.body.type!=="BlockStatement"?(i.typeParameters||!i.returnType?this.finishArrowValidation(i):s.push(i),n.push(i.body)):i.type==="ConditionalExpression"&&(n.push(i.consequent),n.push(i.alternate))}return a?(s.forEach(i=>this.finishArrowValidation(i)),[s,[]]):yoe(s,i=>i.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var a;this.toAssignableList(r.params,(a=r.extra)==null?void 0:a.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,a){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=a(),this.state.noArrowParamsConversionAt.pop()):n=a(),n}parseParenItem(r,a){let n=super.parseParenItem(r,a);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(a);return s.expression=n,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return n}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let a=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(a)}else if(this.isContextual(131)){r.exportKind="type";let a=this.startNode();return this.next(),this.flowParseOpaqueType(a,!1)}else if(this.isContextual(129)){r.exportKind="type";let a=this.startNode();return this.next(),this.flowParseInterface(a)}else if(this.isContextual(126)){r.exportKind="value";let a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:a}=this.state,n=super.maybeParseExportNamespaceSpecifier(r);return n&&r.exportKind==="type"&&this.unexpected(a),n}parseClassId(r,a,n){super.parseClassId(r,a,n),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,a,n){let{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,a))return;a.declare=!0}super.parseClassMember(r,a,n),a.declare&&(a.type!=="ClassProperty"&&a.type!=="ClassPrivateProperty"&&a.type!=="PropertyDefinition"?this.raise(Ft.DeclareClassElement,s):a.value&&this.raise(Ft.DeclareClassFieldInitializer,a.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),a="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(X.InvalidIdentifier,this.state.curPosition(),{identifierName:a}),this.finishToken(132,a)}getTokenFromCode(r){let a=this.input.charCodeAt(this.state.pos+1);r===123&&a===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?a===46?this.finishOp(18,2):this.finishOp(17,1):doe(r,a,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,a){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,a):super.isAssignable(r,a)}toAssignable(r,a=!1){!a&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,a)}toAssignableList(r,a,n){for(let s=0;s1||!a)&&this.raise(Ft.TypeCastInPattern,i.typeAnnotation)}return r}parseArrayLike(r,a,n){let s=super.parseArrayLike(r,a,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s}isValidLVal(r,a,n,s){return r==="TypeCastExpression"||super.isValidLVal(r,a,n,s)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,a,n,s,i,o){if(a.variance&&this.unexpected(a.variance.loc.start),delete a.variance,this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,a,n,s,i,o),a.params&&i){let l=a.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Ft.ThisParamBannedInConstructor,a)}else if(a.type==="MethodDefinition"&&i&&a.value.params){let l=a.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Ft.ThisParamBannedInConstructor,a)}}pushClassPrivateMethod(r,a,n,s){a.variance&&this.unexpected(a.variance.loc.start),delete a.variance,this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,a,n,s)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let a=r.implements=[];do{let n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,a.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let a=this.getObjectOrClassMethodParams(r);if(a.length>0){let n=a[0];this.isThisParam(n)&&r.kind==="get"?this.raise(Ft.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Ft.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,a,n,s,i,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let c;this.match(47)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let u=super.parseObjPropValue(r,a,n,s,i,o,l);return c&&((u.value||u).typeParameters=c),u}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(Ft.PatternIsOptional,r),this.isThisParam(r)&&this.raise(Ft.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(Ft.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(Ft.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,a){let n=super.parseMaybeDefault(r,a);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.startsuper.parseMaybeAssign(r,a),s),!i.error)return i.node;let{context:c}=this.state,u=c[c.length-1];(u===Gr.j_oTag||u===Gr.j_expr)&&c.pop()}if((n=i)!=null&&n.error||this.match(47)){var o,l;s=s||this.state.clone();let c,u=this.tryParse(f=>{var p;c=this.flowParseTypeParameterDeclaration();let m=this.forwardNoArrowParamsConversionAt(c,()=>{let x=super.parseMaybeAssign(r,a);return this.resetStartLocationFromNode(x,c),x});(p=m.extra)!=null&&p.parenthesized&&f();let h=this.maybeUnwrapTypeCastExpression(m);return h.type!=="ArrowFunctionExpression"&&f(),h.typeParameters=c,this.resetStartLocationFromNode(h,c),m},s),d=null;if(u.node&&this.maybeUnwrapTypeCastExpression(u.node).type==="ArrowFunctionExpression"){if(!u.error&&!u.aborted)return u.node.async&&this.raise(Ft.UnexpectedTypeParameterBeforeAsyncArrowFunction,c),u.node;d=u.node}if((o=i)!=null&&o.node)return this.state=i.failState,i.node;if(d)return this.state=u.failState,d;throw(l=i)!=null&&l.thrown?i.error:u.thrown?u.error:this.raise(Ft.UnexpectedTokenAfterTypeParameter,c)}return super.parseMaybeAssign(r,a)}parseArrow(r){if(this.match(14)){let a=this.tryParse(()=>{let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let s=this.startNode();return[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(a.thrown)return null;a.error&&(this.state=a.failState),r.returnType=a.node.typeAnnotation?this.finishNode(a.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,a){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=a:super.setArrowFunctionParameters(r,a)}checkParams(r,a,n,s=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let i=0;i0&&this.raise(Ft.ThisParamMustBeFirst,r.params[i]);super.checkParams(r,a,n,s)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,a,n){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(a.index)){this.next();let s=this.startNodeAt(a);s.callee=r,s.arguments=super.parseCallExpressionArguments(),r=this.finishNode(s,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let s=this.state.clone(),i=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(a)||l(),s);if(!i.error&&!i.aborted)return i.node;let o=this.tryParse(()=>super.parseSubscripts(r,a,n),s);if(o.node&&!o.error)return o.node;if(i.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,o.node;throw i.error||o.error}return super.parseSubscripts(r,a,n)}parseSubscript(r,a,n,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,n)return s.stop=!0,r;this.next();let i=this.startNodeAt(a);return i.callee=r,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let i=this.startNodeAt(a);i.callee=r;let o=this.tryParse(()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),i.arguments=super.parseCallExpressionArguments(),s.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,s.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,a,n,s)}parseNewCallee(r){super.parseNewCallee(r);let a=null;this.shouldParseTypes()&&this.match(47)&&(a=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=a}parseAsyncArrowWithTypeParameters(r){let a=this.startNodeAt(r);if(this.parseFunctionParams(a,!1),!!this.parseArrow(a))return super.parseArrowExpression(a,void 0,!0)}readToken_mult_modulo(r){let a=this.input.charCodeAt(this.state.pos+1);if(r===42&&a===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let a=this.input.charCodeAt(this.state.pos+1);if(r===124&&a===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,a){let n=super.parseTopLevel(r,a);return this.state.hasFlowComment&&this.raise(Ft.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Ft.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,a=2;for(;[32,9].includes(this.input.charCodeAt(r+a));)a++;let n=this.input.charCodeAt(a+r),s=this.input.charCodeAt(a+r+1);return n===58&&s===58?a+2:this.input.slice(a+r,a+r+12)==="flow-include"?a+12:n===58&&s!==58?a:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(X.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:a,memberName:n}){this.raise(Ft.EnumBooleanMemberNotInitialized,r,{memberName:n,enumName:a})}flowEnumErrorInvalidMemberInitializer(r,a){return this.raise(a.explicitType?a.explicitType==="symbol"?Ft.EnumInvalidMemberInitializerSymbolType:Ft.EnumInvalidMemberInitializerPrimaryType:Ft.EnumInvalidMemberInitializerUnknownType,r,a)}flowEnumErrorNumberMemberNotInitialized(r,a){this.raise(Ft.EnumNumberMemberNotInitialized,r,a)}flowEnumErrorStringMemberInconsistentlyInitialized(r,a){this.raise(Ft.EnumStringMemberInconsistentlyInitialized,r,a)}flowEnumMemberInit(){let r=this.state.startLoc,a=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return a()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}case 134:{let n=this.parseStringLiteral(this.state.value);return a()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return a()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,a=this.parseIdentifier(!0),n=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:a,init:n}}flowEnumCheckExplicitTypeMismatch(r,a,n){let{explicitType:s}=a;s!==null&&s!==n&&this.flowEnumErrorInvalidMemberInitializer(r,a)}flowEnumMembers({enumName:r,explicitType:a}){let n=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let o=this.startNode(),{id:l,init:c}=this.flowEnumMemberRaw(),u=l.name;if(u==="")continue;/^[a-z]/.test(u)&&this.raise(Ft.EnumInvalidMemberName,l,{memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:r}),n.has(u)&&this.raise(Ft.EnumDuplicateMemberName,l,{memberName:u,enumName:r}),n.add(u);let d={enumName:r,explicitType:a,memberName:u};switch(o.id=l,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"boolean"),o.init=c.value,s.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"number"),o.init=c.value,s.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"string"),o.init=c.value,s.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,d);case"none":switch(a){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,d);break;default:s.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:i}}flowEnumStringMembers(r,a,{enumName:n}){if(r.length===0)return a;if(a.length===0)return r;if(a.length>r.length){for(let s of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:n});return a}else{for(let s of a)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:n});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Qr(this.state.type))throw this.raise(Ft.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:a}=this.state;return this.next(),a!=="boolean"&&a!=="number"&&a!=="string"&&a!=="symbol"&&this.raise(Ft.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:a}),a}flowEnumBody(r,a){let n=a.name,s=a.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:n,explicitType:i});switch(r.hasUnknownMembers=l,i){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let c=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let u=o.booleanMembers.length,d=o.numberMembers.length,f=o.stringMembers.length,p=o.defaultedMembers.length;if(!u&&!d&&!f&&!p)return c();if(!u&&!d)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!d&&!f&&u>=p){for(let m of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(m.loc.start,{enumName:n,memberName:m.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!u&&!f&&d>=p){for(let m of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(m.loc.start,{enumName:n,memberName:m.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(Ft.EnumInconsistentMemberValues,s,{enumName:n}),c()}}}flowParseEnumDeclaration(r){let a=this.parseIdentifier();return r.id=a,r.body=this.flowEnumBody(this.startNode(),a),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let a=this.input.charCodeAt(r+1);return a!==60&&a!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},voe={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Soe=/\r\n|[\r\n\u2028\u2029]/,yw=new RegExp(Soe.source,"g");function vg(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function zB(e,t,r){for(let a=t;a`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function Kd(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function bg(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return bg(e.object)+"."+bg(e.property);throw new Error("Node had unexpected type: "+e.type)}var woe=e=>class extends e{jsxReadToken(){let r="",a=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Jp.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}r+=this.input.slice(a,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(a,this.state.pos),r+=this.jsxReadEntity(),a=this.state.pos;break;case 62:case 125:default:vg(n)?(r+=this.input.slice(a,this.state.pos),r+=this.jsxReadNewLine(!0),a=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let a=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,a===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=r?` `:`\r -`):a=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,a}jsxReadString(r){let n="",a=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Y.UnterminatedString,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);if(i===r)break;i===38?(n+=this.input.slice(a,this.state.pos),n+=this.jsxReadEntity(),a=this.state.pos):py(i)?(n+=this.input.slice(a,this.state.pos),n+=this.jsxReadNewLine(!1),a=this.state.pos):++this.state.pos}n+=this.input.slice(a,this.state.pos++),this.finishToken(134,n)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let n=10;this.codePointAtPos(this.state.pos)===120&&(n=16,++this.state.pos);let a=this.readInt(n,void 0,!1,"bail");if(a!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(a)}else{let n=0,a=!1;for(;n++<10&&this.state.pos1){for(let a=0;a0){if(n&256){let i=!!(n&512),s=(a&4)>0;return i!==s}return!0}return n&128&&(a&8)>0?t.names.get(r)&2?!!(n&1):!1:n&2&&(a&1)>0?!0:super.isRedeclaredInScope(t,r,n)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let n=this.scopeStack.length;for(let a=n-1;a>=0;a--){let s=this.scopeStack[a].tsNames.get(r);if((s&1)>0||(s&16)>0)return}super.checkLocalExport(t)}},mL=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function h1(e,t){return(e?2:0)|(t?1:0)}var hL=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,n]=t;if(!this.hasPlugin(r))return!1;let a=this.plugins.get(r);for(let i of Object.keys(n))if(a?.[i]!==n[i])return!1;return!0}}getPluginOption(t,r){var n;return(n=this.plugins.get(t))==null?void 0:n[r]}};function mV(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function Wge(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function b0(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Nf(e,t,r){let n=null,a=t.length;for(;n===null&&a>0;)n=t[--a];n===null||n.start>r.start?b0(e,r.comments):mV(n,r.comments)}var gL=class extends hL{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let a=n-1,i=r[a];i.start===t.end&&(i.leadingNode=t,a--);let{start:s}=t;for(;a>=0;a--){let o=r[a],l=o.end;if(l>s)o.containingNode=t,this.finalizeComment(o),r.splice(a,1);else{l===s&&(o.trailingNode=t);break}}}finalizeComment(t){var r;let{comments:n}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&mV(t.leadingNode,n),t.trailingNode!==null&&Wge(t.trailingNode,n);else{let a=t.containingNode,i=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(i)-1)===44)switch(a.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Nf(a,a.properties,t);break;case"CallExpression":case"OptionalCallExpression":Nf(a,a.arguments,t);break;case"ImportExpression":Nf(a,[a.source,(r=a.options)!=null?r:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Nf(a,a.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Nf(a,a.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Nf(a,a.specifiers,t);break;case"TSEnumDeclaration":Nf(a,a.members,t);break;case"TSEnumBody":Nf(a,a.members,t);break;default:b0(a,n)}else b0(a,n)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let a=r[n-1];a.leadingNode===t&&(a.leadingNode=null)}takeSurroundingComments(t,r,n){let{commentStack:a}=this.state,i=a.length;if(i===0)return;let s=i-1;for(;s>=0;s--){let o=a[s],l=o.end;if(o.start===n)o.leadingNode=t;else if(l===r)o.trailingNode=t;else if(l0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:n,startLine:a,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=n,this.curLine=a,this.lineStart=-i,this.startLoc=this.endLoc=new Yc(a,i,n)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new Yc(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new v0;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},Xge=function(t){return t>=48&&t<=57},Q8={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},f1={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function eV(e,t,r,n,a,i){let s=r,o=n,l=a,c="",u=null,d=r,{length:f}=t;for(;;){if(r>=f){i.unterminated(s,o,l),c+=t.slice(d,r);break}let p=t.charCodeAt(r);if(Yge(e,p,t,r)){c+=t.slice(d,r);break}if(p===92){c+=t.slice(d,r);let m=Jge(t,r,n,a,e==="template",i);m.ch===null&&!u?u={pos:r,lineStart:n,curLine:a}:c+=m.ch,{pos:r,lineStart:n,curLine:a}=m,d=r}else p===8232||p===8233?(++r,++a,n=r):p===10||p===13?e==="template"?(c+=t.slice(d,r)+` -`,++r,p===13&&t.charCodeAt(r)===10&&++r,++a,d=n=r):i.unterminated(s,o,l):++r}return{pos:r,str:c,firstInvalidLoc:u,lineStart:n,curLine:a,containsInvalid:!!u}}function Yge(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function Jge(e,t,r,n,a,i){let s=!a;t++;let o=c=>({pos:t,ch:c,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o(` -`);case 114:return o("\r");case 120:{let c;return{code:c,pos:t}=yL(e,t,r,n,2,!1,s,i),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:t}=gV(e,t,r,n,s,i),o(c===null?null:String.fromCodePoint(c))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(a)return o(null);i.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){let c=t-1,d=/^[0-7]+/.exec(e.slice(c,t+2))[0],f=parseInt(d,8);f>255&&(d=d.slice(0,-1),f=parseInt(d,8)),t+=d.length-1;let p=e.charCodeAt(t);if(d!=="0"||p===56||p===57){if(a)return o(null);i.strictNumericEscape(c,r,n)}return o(String.fromCharCode(f))}return o(String.fromCharCode(l))}}function yL(e,t,r,n,a,i,s,o){let l=t,c;return{n:c,pos:t}=hV(e,t,r,n,16,a,i,!1,o,!s),c===null&&(s?o.invalidEscapeSequence(l,r,n):t=l-1),{code:c,pos:t}}function hV(e,t,r,n,a,i,s,o,l,c){let u=t,d=a===16?Q8.hex:Q8.decBinOct,f=a===16?f1.hex:a===10?f1.dec:a===8?f1.oct:f1.bin,p=!1,m=0;for(let h=0,x=i??1/0;h=97?y=g-97+10:g>=65?y=g-65+10:Xge(g)?y=g-48:y=1/0,y>=a){if(y<=9&&c)return{n:null,pos:t};if(y<=9&&l.invalidDigit(t,r,n,a))y=0;else if(s)y=0,p=!0;else break}++t,m=m*a+y}return t===u||i!=null&&t-u!==i||p?{n:null,pos:t}:{n:m,pos:t}}function gV(e,t,r,n,a,i){let s=e.charCodeAt(t),o;if(s===123){if(++t,{code:o,pos:t}=yL(e,t,r,n,e.indexOf("}",t)-t,!0,a,i),++t,o!==null&&o>1114111)if(a)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=yL(e,t,r,n,4,!1,a,i));return{code:o,pos:t}}function p0(e,t,r){return new Yc(r,e-t,e)}var Zge=new Set([103,109,115,105,121,117,100,118]),Kc=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new hy(t.startLoc,t.endLoc)}},xL=class extends gL{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(n,a,i,s)=>this.optionFlags&2048?(this.raise(Y.InvalidDigit,p0(n,a,i),{radix:s}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(Y.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Y.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Y.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Y.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(n,a,i)=>{this.recordStrictModeErrors(Y.StrictNumericEscape,p0(n,a,i))},unterminated:(n,a,i)=>{throw this.raise(Y.UnterminatedString,p0(n-1,a,i))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Y.StrictNumericEscape),unterminated:(n,a,i)=>{throw this.raise(Y.UnterminatedTemplate,p0(n,a,i))}}),this.state=new v0,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Kc(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return aL.lastIndex=t,aL.test(this.input)?aL.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return iL.lastIndex=t,iL.test(this.input)?iL.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++tthis.raise(r,n)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let n=this.state.pos,a=this.input.indexOf(t,n+2);if(a===-1)throw this.raise(Y.UnterminatedComment,this.state.curPosition());for(this.state.pos=a+t.length,d1.lastIndex=n+2;d1.test(this.input)&&d1.lastIndex<=a;)++this.state.curLine,this.state.lineStart=d1.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(n+2,a),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(a+t.length),loc:new hy(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(i),i}skipLineComment(t){let r=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let a=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let i=this.skipLineComment(3);i!==void 0&&(this.addComment(i),r?.push(i))}else break e}else if(n===60&&!this.inModule&&this.optionFlags&8192){let a=this.state.pos;if(this.input.charCodeAt(a+1)===33&&this.input.charCodeAt(a+2)===45&&this.input.charCodeAt(a+3)===45){let i=this.skipLineComment(4);i!==void 0&&(this.addComment(i),r?.push(i))}else break e}else break e}}if(r?.length>0){let n=this.state.pos,a={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(n),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(a)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(n)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(Y.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?Y.RecordExpressionHashIncorrectStartSyntaxType:Y.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Xc(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!py(t)&&++this.state.pos=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Y.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Y.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Xc(t)){this.readWord(t);return}}throw this.raise(Y.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let n=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,n)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,n,a,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(Y.UnterminatedRegExp,Cs(t,1));let c=this.input.charCodeAt(i);if(py(c))throw this.raise(Y.UnterminatedRegExp,Cs(t,1));if(n)n=!1;else{if(c===91)a=!0;else if(c===93&&a)a=!1;else if(c===47&&!a)break;n=c===92}}let s=this.input.slice(r,i);++i;let o="",l=()=>Cs(t,i+2-r);for(;i=2&&this.input.charCodeAt(r)===48;if(l){let p=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(Y.StrictOctalLiteral,n),!this.state.strict){let m=p.indexOf("_");m>0&&this.raise(Y.ZeroDigitNumericSeparator,Cs(n,m))}o=l&&!/[89]/.test(p)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!o&&(++this.state.pos,this.readInt(10),a=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!o&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(Y.InvalidOrMissingExponent,n),a=!0,s=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((a||l)&&this.raise(Y.InvalidBigIntLiteral,n),++this.state.pos,i=!0),c===109){this.expectPlugin("decimal",this.state.curPosition()),(s||l)&&this.raise(Y.InvalidDecimal,n),++this.state.pos;var u=!0}if(Xc(this.codePointAtPos(this.state.pos)))throw this.raise(Y.NumberIdentifier,this.state.curPosition());let d=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(i){this.finishToken(136,d);return}if(u){this.finishToken(137,d);return}let f=o?parseInt(d,8):parseFloat(d);this.finishToken(135,f)}readCodePoint(t){let{code:r,pos:n}=gV(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=n,r}readString(t){let{str:r,pos:n,curLine:a,lineStart:i}=eV(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=a,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:n,pos:a,curLine:i,lineStart:s}=eV("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=a+1,this.state.lineStart=s,this.state.curLine=i,n&&(this.state.firstInvalidTemplateEscapePos=new Yc(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(n.pos))),this.input.codePointAt(a)===96?this.finishToken(24,n?null:t+r+"`"):(this.state.pos++,this.finishToken(25,n?null:t+r+"${"))}recordStrictModeErrors(t,r){let n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(t,r):this.state.strictErrors.set(n,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",n=this.state.pos,a=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;o--){let l=s[o];if(l.loc.index===i)return s[o]=t(a,n);if(l.loc.indexthis.hasPlugin(r)))throw this.raise(Y.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,n,a)=>{this.raise(t,p0(r,n,a))}}},bL=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},vL=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new bL)}exit(){let t=this.stack.pop(),r=this.current();for(let[n,a]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(n)||r.undefinedPrivateNames.set(n,a):this.parser.raise(Y.InvalidPrivateFieldResolution,a,{identifierName:n})}declarePrivateName(t,r,n){let{privateNames:a,loneAccessors:i,undefinedPrivateNames:s}=this.current(),o=a.has(t);if(r&3){let l=o&&i.get(t);if(l){let c=l&4,u=r&4,d=l&3,f=r&3;o=d===f||c!==u,o||i.delete(t)}else o||i.set(t,r)}o&&this.parser.raise(Y.PrivateNameRedeclaration,n,{identifierName:t}),a.add(t),s.delete(t)}usePrivateName(t,r){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,r):this.parser.raise(Y.InvalidPrivateFieldResolution,r,{identifierName:t})}},gy=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},x1=class extends gy{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){let n=r.index;this.declarationErrors.set(n,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},SL=class{constructor(t){this.parser=void 0,this.stack=[new gy],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let n=r.loc.start,{stack:a}=this,i=a.length-1,s=a[i];for(;!s.isCertainlyParameterDeclaration();){if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(t,n);else return;s=a[--i]}this.parser.raise(t,n)}recordArrowParameterBindingError(t,r){let{stack:n}=this,a=n[n.length-1],i=r.loc.start;if(a.isCertainlyParameterDeclaration())this.parser.raise(t,i);else if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,i);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,n=r.length-1,a=r[n];for(;a.canBeArrowParameterDeclaration();)a.type===2&&a.recordDeclarationError(Y.AwaitBindingIdentifier,t),a=r[--n]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,a])=>{this.parser.raise(n,a);let i=t.length-2,s=t[i];for(;s.canBeArrowParameterDeclaration();)s.clearDeclarationError(a.index),s=t[--i]})}};function Qge(){return new gy(3)}function eye(){return new x1(1)}function tye(){return new x1(2)}function yV(){return new gy}var TL=class extends xL{addExtra(t,r,n,a=!0){if(!t)return;let{extra:i}=t;i==null&&(i={},t.extra=i),a?i[r]=n:Object.defineProperty(i,r,{enumerable:a,value:n})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let n=this.input.charCodeAt(t+r.length);return!(Bm(n)||(n&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Z8(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Z8(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(Y.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let n={node:null};try{let a=t((i=null)=>{throw n.node=i,n});if(this.state.errors.length>r.errors.length){let i=this.state;return this.state=r,this.state.tokensLength=i.tokensLength,{node:a,error:i.errors[r.errors.length],thrown:!1,aborted:!1,failState:i}}return{node:a,error:null,thrown:!1,aborted:!1,failState:null}}catch(a){let i=this.state;if(this.state=r,a instanceof SyntaxError)return{node:null,error:a,thrown:!0,aborted:!1,failState:i};if(a===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:i};throw a}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:a,privateKeyLoc:i,optionalParametersLoc:s,voidPatternLoc:o}=t,l=!!n||!!a||!!s||!!i||!!o;if(!r)return l;n!=null&&this.raise(Y.InvalidCoverInitializedName,n),a!=null&&this.raise(Y.DuplicateProto,a),i!=null&&this.raise(Y.UnexpectedPrivateField,i),s!=null&&this.unexpected(s),o!=null&&this.raise(Y.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return oV(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let a=this.inModule;this.inModule=t;let i=this.scope,s=this.getScopeHandler();this.scope=new s(this,t);let o=this.prodParam;this.prodParam=new mL;let l=this.classScope;this.classScope=new vL(this);let c=this.expressionScope;return this.expressionScope=new SL(this),()=>{this.state.labels=r,this.exportedIdentifiers=n,this.inModule=a,this.scope=i,this.prodParam=o,this.classScope=l,this.expressionScope=c}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let n=r?514:1;this.optionFlags&4&&(n|=512),this.scope.enter(n)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},my=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},yy=class{constructor(t,r,n){this.type="",this.start=r,this.end=0,this.loc=new hy(n),t?.optionFlags&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},wL=yy.prototype;wL.__clone=function(){let e=new yy(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;re.type==="ParenthesizedExpression"?PL(e.expression):e,EL=class extends CL{toAssignable(t,r=!1){var n,a;let i;switch((t.type==="ParenthesizedExpression"||(n=t.extra)!=null&&n.parenthesized)&&(i=PL(t),r?i.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(Y.InvalidParenthesizedAssignment,t):i.type!=="CallExpression"&&i.type!=="MemberExpression"&&!this.isOptionalMemberExpression(i)&&this.raise(Y.InvalidParenthesizedAssignment,t):this.raise(Y.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let o=0,l=t.properties.length,c=l-1;oa.type!=="ObjectMethod"&&(i===n||a.type!=="SpreadElement")&&this.isAssignable(a))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let n of t)n?.type==="ArrayExpression"&&this.toReferencedListDeep(n.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(Y.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,n){let a=n&1,i=[],s=!0;for(;!this.eat(t);)if(s?s=!1:this.expect(12),a&&this.match(12))i.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||n&2)&&(o=this.parseFunctionParamType(o)),i.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(n&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(Y.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());i.push(this.parseBindingElement(n,o))}}return i}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(Y.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,r,!1,!1,!0,!1)}parseBindingElement(t,r){let n=this.parseMaybeDefault();return(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(n),r.length&&(n.decorators=r,this.resetStartLocationFromNode(n,r[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let n=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(Y.VoidPatternInitializer,r),n.left=r,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(t,r,n,a){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,n=64,a=!1,i=!1,s=!1,o=!1){var l;let c=t.type;if(this.isObjectMethod(t))return;let u=this.isOptionalMemberExpression(t);if(u||c==="MemberExpression"){u&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(Y.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(Y.InvalidPropertyBindingPattern,t);return}if(c==="Identifier"){this.checkIdentifier(t,n,i);let{name:g}=t;a&&(a.has(g)?this.raise(Y.ParamDupe,t):a.add(g));return}else c==="VoidPattern"&&r.type==="CatchClause"&&this.raise(Y.VoidPatternCatchClauseParam,t);let d=PL(t);o||(o=d.type==="CallExpression"&&(d.callee.type==="Import"||d.callee.type==="Super"));let f=this.isValidLVal(c,o,!(s||(l=t.extra)!=null&&l.parenthesized)&&r.type==="AssignmentExpression",n);if(f===!0)return;if(f===!1){let g=n===64?Y.InvalidLhs:Y.InvalidLhsBinding;this.raise(g,t,{ancestor:r});return}let p,m;typeof f=="string"?(p=f,m=c==="ParenthesizedExpression"):[p,m]=f;let h=c==="ArrayPattern"||c==="ObjectPattern"?{type:c}:r,x=t[p];if(Array.isArray(x))for(let g of x)g&&this.checkLVal(g,h,n,a,i,m,!0);else x&&this.checkLVal(x,h,n,a,i,m,o)}checkIdentifier(t,r,n=!1){this.state.strict&&(n?pV(t.name,this.inModule):fV(t.name))&&(r===64?this.raise(Y.StrictEvalArguments,t,{referenceName:t.name}):this.raise(Y.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(Y.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(Y.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?Y.RestTrailingComma:Y.ElementAfterRest,this.state.startLoc),!0):!1}},sL=/in(?:stanceof)?|as|satisfies/y;function rye(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function tV(e){if(!e)throw new Error("Assert fail")}var Tt=Wc`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function nye(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function rV(e){return e==="private"||e==="public"||e==="protected"}function aye(e){return e==="in"||e==="out"}var iye=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Tt.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Tt.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Tt.InvalidModifierOnTypeParameter})}getScopeHandler(){return pL}tsIsIdentifier(){return ln(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,n,a){if(!ln(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(r.includes(i)){if(a&&this.match(106)||n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:a,errorTemplate:i=Tt.InvalidModifierOnTypeMember},s){let o=(c,u,d,f)=>{u===d&&s[f]&&this.raise(Tt.InvalidModifiersOrder,c,{orderedModifiers:[d,f]})},l=(c,u,d,f)=>{(s[d]&&u===f||s[f]&&u===d)&&this.raise(Tt.IncompatibleModifiers,c,{modifiers:[d,f]})};for(;;){let{startLoc:c}=this.state,u=this.tsParseModifier(r.concat(n??[]),a,s.static);if(!u)break;rV(u)?s.accessibility?this.raise(Tt.DuplicateAccessibilityModifier,c,{modifier:u}):(o(c,u,u,"override"),o(c,u,u,"static"),o(c,u,u,"readonly"),s.accessibility=u):aye(u)?(s[u]&&this.raise(Tt.DuplicateModifier,c,{modifier:u}),s[u]=!0,o(c,u,"in","out")):(hasOwnProperty.call(s,u)?this.raise(Tt.DuplicateModifier,c,{modifier:u}):(o(c,u,"static","readonly"),o(c,u,"static","override"),o(c,u,"override","readonly"),o(c,u,"abstract","override"),l(c,u,"declare","override"),l(c,u,"static","abstract")),s[u]=!0),n!=null&&n.includes(u)&&this.raise(i,c,{modifier:u})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,n){let a=[];for(;!this.tsIsListTerminator(r);)a.push(n());return a}tsParseDelimitedList(r,n,a){return rye(this.tsParseDelimitedListWorker(r,n,!0,a))}tsParseDelimitedListWorker(r,n,a,i){let s=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=n();if(l==null)return;if(s.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;a&&this.expect(12);return}return i&&(i.value=o),s}tsParseBracketedList(r,n,a,i,s){i||(a?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,n,s);return a?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(Tt.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let n=this.startNode();return this.isContextual(76)?(n.method=!1,n.key=this.parseIdentifier(!0),n.computed=!1,n.shorthand=!1):this.unexpected(null,76),this.expect(14),n.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(n)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),n=[];for(this.expect(5);!this.match(8);){let a=this.state.type;ln(a)||a===134?n.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=n,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let n;if(r&1&&this.match(78))if(r&2)n=this.parseIdentifier(!0);else{let a=this.startNode();this.next(),n=this.finishNode(a,"ThisExpression")}else n=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let a=this.startNodeAtNode(n);a.left=n,a.right=this.parseIdentifier(!!(r&1)),n=this.finishNode(a,"TSQualifiedName")}return n}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let n=this.startNodeAtNode(r);return n.parameterName=r,n.typeAnnotation=this.tsParseTypeAnnotation(!1),n.asserts=!1,this.finishNode(n,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let n=this.startNode();return r(n),n.name=this.tsParseTypeParameterName(),n.constraint=this.tsEatThenParseType(81),n.default=this.tsEatThenParseType(29),this.finishNode(n,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let n=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let a={value:-1};return n.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,a),n.params.length===0&&this.raise(Tt.EmptyTypeParameters,n),a.value!==-1&&this.addExtra(n,"trailingComma",a.value),this.finishNode(n,"TSTypeParameterDeclaration")}tsFillSignature(r,n){let a=r===19,i="parameters",s="typeAnnotation";n.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),n[i]=this.tsParseBindingListForSignature(),a?n[s]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(n[s]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let n of r){let{type:a}=n;(a==="AssignmentPattern"||a==="TSParameterProperty")&&this.raise(Tt.UnsupportedSignatureParameterKind,n,{type:a})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,n){return this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon(),this.finishNode(n,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),ln(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let n=this.parseIdentifier();n.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(n),this.expect(3),r.parameters=[n];let a=this.tsTryParseTypeAnnotation();return a&&(r.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,n){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){n&&this.raise(Tt.ReadonlyForMethodSignature,r);let a=r;a.kind&&this.match(47)&&this.raise(Tt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,a),this.tsParseTypeMemberSemicolon();let i="parameters",s="typeAnnotation";if(a.kind==="get")a[i].length>0&&(this.raise(Y.BadGetterArity,this.state.curPosition()),this.isThisParam(a[i][0])&&this.raise(Tt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(a.kind==="set"){if(a[i].length!==1)this.raise(Y.BadSetterArity,this.state.curPosition());else{let o=a[i][0];this.isThisParam(o)&&this.raise(Tt.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(Tt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(Tt.SetAccessorCannotHaveRestParameter,this.state.curPosition())}a[s]&&this.raise(Tt.SetAccessorCannotHaveReturnType,a[s])}else a.kind="method";return this.finishNode(a,"TSMethodSignature")}else{let a=r;n&&(a.readonly=!0);let i=this.tsTryParseTypeAnnotation();return i&&(a.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let a=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(a,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let n=this.tsTryParseIndexSignature(r);return n||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);{let n=this.startNode();n.name=this.tsParseTypeParameterName(),n.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(n,"TSTypeParameter")}return r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let n=!1;return r.elementTypes.forEach(a=>{let{type:i}=a;n&&i!=="TSRestType"&&i!=="TSOptionalType"&&!(i==="TSNamedTupleMember"&&a.optional)&&this.raise(Tt.OptionalTypeBeforeRequired,a),n||(n=i==="TSNamedTupleMember"&&a.optional||i==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,n=this.eat(21),{startLoc:a}=this.state,i,s,o,l,u=pc(this.state.type)?this.lookaheadCharCode():null;if(u===58)i=!0,o=!1,s=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(u===63){o=!0;let d=this.state.value,f=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,s=this.createIdentifier(this.startNodeAt(a),d),this.expect(17),this.expect(14),l=this.tsParseType()):(i=!1,l=f,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),i=this.eat(14);if(i){let d;s?(d=this.startNodeAt(a),d.optional=o,d.label=s,d.elementType=l,this.eat(17)&&(d.optional=!0,this.raise(Tt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(d=this.startNodeAt(a),d.optional=o,this.raise(Tt.InvalidTupleMemberLabel,l),d.label=l,d.elementType=this.tsParseType()),l=this.finishNode(d,"TSNamedTupleMember")}else if(o){let d=this.startNodeAt(a);d.typeAnnotation=l,l=this.finishNode(d,"TSOptionalType")}if(n){let d=this.startNodeAt(r);d.typeAnnotation=l,l=this.finishNode(d,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,n){let a=this.startNode();return r==="TSConstructorType"&&(a.abstract=!!n,n&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,a)),this.finishNode(a,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),n=this.lookahead();return n.type!==135&&n.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(ln(r)||r===88||r===84){let n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":nye(this.state.value);if(n!==void 0&&this.lookaheadCharCode()!==46){let a=this.startNode();return this.next(),this.finishNode(a,n)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,n=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let a=this.startNodeAt(r);a.elementType=n,this.expect(3),n=this.finishNode(a,"TSArrayType")}else{let a=this.startNodeAt(r);a.objectType=n,a.indexType=this.tsParseType(),this.expect(3),n=this.finishNode(a,"TSIndexedAccessType")}return n}tsParseTypeOperator(){let r=this.startNode(),n=this.state.value;return this.next(),r.operator=n,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),n==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Tt.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(n,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return Pge(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,n,a){let i=this.startNode(),s=this.eat(a),o=[];do o.push(n());while(this.eat(a));return o.length===1&&!s?o[0]:(i.types=o,this.finishNode(i,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(ln(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,n=r.length;try{return this.parseObjectLike(8,!0),r.length===n}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,n=r.length;try{return super.parseBindingList(3,93,1),r.length===n}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let n=this.startNode();this.expect(r);let a=this.startNode(),i=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(i&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(a.parameterName=l,a.asserts=!0,a.typeAnnotation=null,l=this.finishNode(a,"TSTypePredicate")):(this.resetStartLocationFromNode(l,a),l.asserts=!0),n.typeAnnotation=l,this.finishNode(n,"TSTypeAnnotation")}let s=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!s)return i?(a.parameterName=this.parseIdentifier(),a.asserts=i,a.typeAnnotation=null,n.typeAnnotation=this.finishNode(a,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,n);let o=this.tsParseTypeAnnotation(!1);return a.parameterName=s,a.typeAnnotation=o,a.asserts=i,n.typeAnnotation=this.finishNode(a,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!ln(this.state.type)&&!this.match(78)?!1:(r&&this.raise(Y.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,n=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),n.typeAnnotation=this.tsParseType()}),this.finishNode(n,"TSTypeAnnotation")}tsParseType(){tV(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let n=this.startNodeAtNode(r);return n.checkType=r,n.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),n.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),n.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(n,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Tt.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let n=this.state.startLoc,a=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let i=this.startNode();return i.expression=this.tsParseEntityName(3),this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSExpressionWithTypeArguments")}});return a.length||this.raise(Tt.EmptyHeritageClauseType,n,{token:r}),a}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),ln(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(Tt.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let a=this.startNode();return a.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(a,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==tn.brace){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}else return r()}tsInType(r){let n=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=n}}tsInDisallowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsInAllowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,n={}){return n.const&&(r.const=!0),n.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,n=!1){if(r.id=this.parseIdentifier(),n||this.checkIdentifier(r.id,1024),this.eat(16)){let a=this.startNode();this.tsParseModuleOrNamespaceDeclaration(a,!0),r.body=a}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,n,a){r.isExport=a||!1,r.id=n||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let i=this.tsParseModuleReference();return r.importKind==="type"&&i.type!=="TSExternalModuleReference"&&this.raise(Tt.ImportAliasHasImportType,i),r.moduleReference=i,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let n=this.state.clone(),a=r();return this.state=n,a}tsTryParseAndCatch(r){let n=this.tryParse(a=>r()||a());if(!(n.aborted||!n.node))return n.error&&(this.state=n.failState),n.node}tsTryParse(r){let n=this.state.clone(),a=r();if(a!==void 0&&a!==!1)return a;this.state=n}tsTryParseDeclare(r){if(this.isLineTerminator())return;let n=this.state.type;return this.tsInAmbientContext(()=>{switch(n){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(Tt.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(Tt.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let a=this.tsParseInterfaceDeclaration(r,{declare:!0});if(a)return a}default:if(ln(n))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,n,a,i){switch(n){case 124:if(this.tsCheckLineTerminator(a)&&(this.match(80)||ln(this.state.type)))return this.tsParseAbstractDeclaration(r,i);break;case 127:if(this.tsCheckLineTerminator(a)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(ln(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(a)&&ln(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(a)&&ln(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let a=this.tsTryParseAndCatch(()=>{let i=this.startNodeAt(r);return i.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(i),i.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),i});if(this.state.maybeInArrowParameters=n,!!a)return super.parseArrowExpression(a,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(Tt.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===tn.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Ege(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,n){let a=n.length?n[0].loc.start:this.state.startLoc,i={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},i);let s=i.accessibility,o=i.override,l=i.readonly;!(r&4)&&(s||l||o)&&this.raise(Tt.UnexpectedParameterModifier,a);let c=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(c);let u=this.parseMaybeDefault(c.loc.start,c);if(s||l||o){let d=this.startNodeAt(a);return n.length&&(d.decorators=n),s&&(d.accessibility=s),l&&(d.readonly=l),o&&(d.override=o),u.type!=="Identifier"&&u.type!=="AssignmentPattern"&&this.raise(Tt.UnsupportedParameterPropertyKind,d),d.parameter=u,this.finishNode(d,"TSParameterProperty")}return n.length&&(c.decorators=n),u}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let n of r.params)n.type!=="Identifier"&&n.optional&&!this.state.isAmbientContext&&this.raise(Tt.PatternIsOptional,n)}setArrowFunctionParameters(r,n,a){super.setArrowFunctionParameters(r,n,a),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,n,a=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let i=n==="FunctionDeclaration"?"TSDeclareFunction":n==="ClassMethod"||n==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return i&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,i):i==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(Tt.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,i,a):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,n,a))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(n=>{n?.type==="TSTypeCastExpression"&&this.raise(Tt.UnexpectedTypeAnnotation,n.typeAnnotation)})}toReferencedList(r,n){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,n,a){let i=super.parseArrayLike(r,n,a);return i.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(r,n,a,i){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(n);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let s=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(a)return i.stop=!0,r;i.optionalChainMember=s=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!a&&this.atPossibleAsyncArrow(r)){let f=this.tsTryParseGenericAsyncArrowFunction(n);if(f)return i.stop=!0,f}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(s&&!this.match(10)){o=this.state.curPosition();return}if(y1(this.state.type)){let f=super.parseTaggedTemplateExpression(r,n,i);return f.typeParameters=c,f}if(!a&&this.eat(10)){let f=this.startNodeAt(n);return f.callee=r,f.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeParameters=c,i.optionalChainMember&&(f.optional=s),this.finishCallExpression(f,i.optionalChainMember)}let u=this.state.type;if(u===48||u===52||u!==10&&m0(u)&&!this.hasPrecedingLineBreak())return;let d=this.startNodeAt(n);return d.expression=r,d.typeParameters=c,this.finishNode(d,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Tt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(l.expression=super.stopParseSubscript(r,i))),l}return super.parseSubscript(r,n,a,i)}parseNewCallee(r){var n;super.parseNewCallee(r);let{callee:a}=r;a.type==="TSInstantiationExpression"&&!((n=a.extra)!=null&&n.parenthesized)&&(r.typeParameters=a.typeParameters,r.callee=a.expression)}parseExprOp(r,n,a){let i;if(m1(58)>a&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(i=this.isContextual(120)))){let s=this.startNodeAt(n);return s.expression=r,s.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(i&&this.raise(Y.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(s,i?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(s,n,a)}return super.parseExprOp(r,n,a)}checkReservedWord(r,n,a,i){this.state.isAmbientContext||super.checkReservedWord(r,n,a,i)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(Tt.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let n=this.lookaheadCharCode();return r?n===123||n===42:n!==61}return!r&&this.isContextual(87)}applyImportPhase(r,n,a,i){super.applyImportPhase(r,n,a,i),n?r.exportKind=a==="type"?"type":"value":r.importKind=a==="type"||a==="typeof"?a:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let n;if(ln(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let a=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,a);n=super.parseImportSpecifiersAndAfter(r,a)}else n=super.parseImport(r);return n.importKind==="type"&&n.specifiers.length>1&&n.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(Tt.TypeImportCannotSpecifyDefaultAndNamed,n),n}parseExport(r,n){if(this.match(83)){let a=r;this.next();let i=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(a,!1):a.importKind="value",this.tsParseImportEqualsDeclaration(a,i,!0)}else if(this.eat(29)){let a=r;return a.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(a,"TSExportAssignment")}else if(this.eatContextual(93)){let a=r;return this.expectContextual(128),a.id=this.parseIdentifier(),this.semicolon(),this.finishNode(a,"TSNamespaceExportDeclaration")}else return super.parseExport(r,n)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,n,a=!1){let{isAmbientContext:i}=this.state,s=super.parseVarStatement(r,n,a||i);if(!i)return s;if(!r.declare&&(n==="using"||n==="await using"))return this.raiseOverwrite(Tt.UsingDeclarationInAmbientContext,r,n),s;for(let{id:o,init:l}of s.declarations)l&&(n==="var"||n==="let"||o.typeAnnotation?this.raise(Tt.InitializerNotAllowedInAmbientContext,l):oye(l,this.hasPlugin("estree"))||this.raise(Tt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return s}parseStatementContent(r,n){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let a=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(a,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let a=this.state.type,i=this.startNode();this.next();let s=a===125?this.tsTryParseDeclare(i):this.tsParseAbstractDeclaration(i,n);return s?(a===125&&(s.declare=!0),s):(i.expression=this.createIdentifier(this.startNodeAt(i.loc.start),a===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(i,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let i=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(i)}break}case 129:{let a=this.tsParseInterfaceDeclaration(this.startNode());if(a)return a;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let a=this.startNode();return this.next(),this.tsParseDeclaration(a,127,!1,n)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let a=this.startNode();return this.next(),this.tsParseDeclaration(a,128,!1,n)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let a=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(a)}break}}return super.parseStatementContent(r,n)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,n){return n.some(a=>rV(a)?r.accessibility===a:!!r[a])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,n,a){let i=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:i,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Tt.InvalidModifierOnTypeParameterPositions},n);let s=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,i)&&this.raise(Tt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,n)):this.parseClassMemberWithIsStatic(r,n,a,!!n.static)};n.declare?this.tsInAmbientContext(s):s()}parseClassMemberWithIsStatic(r,n,a,i){let s=this.tsTryParseIndexSignature(n);if(s){r.body.push(s),n.abstract&&this.raise(Tt.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(Tt.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(Tt.IndexSignatureHasDeclare,n),n.override&&this.raise(Tt.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(Tt.NonAbstractClassHasAbstractMethod,n),n.override&&(a.hadSuperClass||this.raise(Tt.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(r,n,a,i)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(Tt.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(Tt.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,n,a){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let i=this.lookaheadCharCode();if(i===44||i===61||i===58||i===41)return this.setOptionalParametersError(a),r}return super.parseConditional(r,n,a)}parseParenItem(r,n){let a=super.parseParenItem(r,n);if(this.eat(17)&&(a.optional=!0,this.resetEndLocation(r)),this.match(14)){let i=this.startNodeAt(n);return i.expression=r,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let n=this.state.startLoc,a=this.eatContextual(125);if(a&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Tt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let s=ln(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return s?((s.type==="TSInterfaceDeclaration"||s.type==="TSTypeAliasDeclaration"||a)&&(r.exportKind="type"),a&&s.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(s,n),s.declare=!0),s):null}parseClassId(r,n,a,i){if((!n||a)&&this.isContextual(113))return;super.parseClassId(r,n,a,r.declare?1024:8331);let s=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);s&&(r.typeParameters=s)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let n=this.tsTryParseTypeAnnotation();n&&(r.typeAnnotation=n)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(Tt.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:n}=r;this.raise(Tt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:n.type==="Identifier"&&!r.computed?n.name:`[${this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(Tt.PrivateElementHasAbstract,r),r.accessibility&&this.raise(Tt.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(Tt.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,a,i,s,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&s&&this.raise(Tt.ConstructorHasTypeParameters,l);let{declare:c=!1,kind:u}=n;c&&(u==="get"||u==="set")&&this.raise(Tt.DeclareAccessor,n,{kind:u}),l&&(n.typeParameters=l),super.pushClassMethod(r,n,a,i,s,o)}pushClassPrivateMethod(r,n,a,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(n.typeParameters=s),super.pushClassPrivateMethod(r,n,a,i)}declareClassPrivateMethodInScope(r,n){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,n))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,n,a,i,s,o,l){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(r.typeParameters=c),super.parseObjPropValue(r,n,a,i,s,o,l)}parseFunctionParams(r,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(r.typeParameters=a),super.parseFunctionParams(r,n)}parseVarId(r,n){super.parseVarId(r,n),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let a=this.tsTryParseTypeAnnotation();a&&(r.id.typeAnnotation=a,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,n){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,n)}parseMaybeAssign(r,n){var a,i,s,o,l;let c,u,d;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(c=this.state.clone(),u=this.tryParse(()=>super.parseMaybeAssign(r,n),c),!u.error)return u.node;let{context:m}=this.state,h=m[m.length-1];(h===tn.j_oTag||h===tn.j_expr)&&m.pop()}if(!((a=u)!=null&&a.error)&&!this.match(47))return super.parseMaybeAssign(r,n);(!c||c===this.state)&&(c=this.state.clone());let f,p=this.tryParse(m=>{var h,x;f=this.tsParseTypeParameters(this.tsParseConstModifier);let g=super.parseMaybeAssign(r,n);return(g.type!=="ArrowFunctionExpression"||(h=g.extra)!=null&&h.parenthesized)&&m(),((x=f)==null?void 0:x.params.length)!==0&&this.resetStartLocationFromNode(g,f),g.typeParameters=f,g},c);if(!p.error&&!p.aborted)return f&&this.reportReservedArrowTypeParam(f),p.node;if(!u&&(tV(!this.hasPlugin("jsx")),d=this.tryParse(()=>super.parseMaybeAssign(r,n),c),!d.error))return d.node;if((i=u)!=null&&i.node)return this.state=u.failState,u.node;if(p.node)return this.state=p.failState,f&&this.reportReservedArrowTypeParam(f),p.node;if((s=d)!=null&&s.node)return this.state=d.failState,d.node;throw((o=u)==null?void 0:o.error)||p.error||((l=d)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var n;r.params.length===1&&!r.params[0].constraint&&!((n=r.extra)!=null&&n.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Tt.ReservedArrowTypeParam,r)}parseMaybeUnary(r,n){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(a=>{let i=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&a(),i});if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),r.returnType=n.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.resetEndLocation(r),r}isAssignable(r,n){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,n);case"TSParameterProperty":return!0;default:return super.isAssignable(r,n)}}toAssignable(r,n=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,n);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":n?this.expressionScope.recordArrowParameterBindingError(Tt.UnexpectedTypeCastInParameter,r):this.raise(Tt.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,n);break;case"AssignmentExpression":!n&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,n)}}toAssignableParenthesizedExpression(r,n){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,n);break;default:super.toAssignable(r,n)}}checkToRestConversion(r,n){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,n)}}isValidLVal(r,n,a,i){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(i!==64||!a)&&["expression",!0];default:return super.isValidLVal(r,n,a,i)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,n){if(this.match(47)||this.match(51)){let a=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(r,n);return i.typeParameters=a,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,n)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,n){let a=super.parseMaybeDefault(r,n);return a.type==="AssignmentPattern"&&a.typeAnnotation&&a.right.startthis.isAssignable(n,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let n=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());n&&(r.typeParameters=n)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let n=super.getGetterSetterExpectedParamCount(r),i=this.getObjectOrClassMethodParams(r)[0];return i&&this.isThisParam(i)?n+1:n}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:n,strict:a}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=n,this.state.strict=a}}parseClass(r,n,a){let i=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,n,a)}finally{this.state.inAbstractClass=i}}tsParseAbstractDeclaration(r,n){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(n,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(Tt.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,n,a,i,s,o,l){let c=super.parseMethod(r,n,a,i,s,o,l);if((c.abstract||c.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?c.value:c).body){let{key:f}=c;this.raise(Tt.AbstractMethodHasImplementation,c,{methodName:f.type==="Identifier"&&!c.computed?f.name:`[${this.input.slice(this.offsetToSourcePos(f.start),this.offsetToSourcePos(f.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,n,a,i){return!n&&i?(this.parseTypeOnlyImportExportSpecifier(r,!1,a),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,n,a,i))}parseImportSpecifier(r,n,a,i,s){return!n&&i?(this.parseTypeOnlyImportExportSpecifier(r,!0,a),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,n,a,i,a?4098:4096))}parseTypeOnlyImportExportSpecifier(r,n,a){let i=n?"imported":"local",s=n?"local":"exported",o=r[i],l,c=!1,u=!0,d=o.loc.start;if(this.isContextual(93)){let p=this.parseIdentifier();if(this.isContextual(93)){let m=this.parseIdentifier();pc(this.state.type)?(c=!0,o=p,l=n?this.parseIdentifier():this.parseModuleExportName(),u=!1):(l=m,u=!1)}else pc(this.state.type)?(u=!1,l=n?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=p)}else pc(this.state.type)&&(c=!0,n?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());c&&a&&this.raise(n?Tt.TypeModifierIsUsedInTypeImports:Tt.TypeModifierIsUsedInTypeExports,d),r[i]=o,r[s]=l;let f=n?"importKind":"exportKind";r[f]=c?"type":"value",u&&this.eatContextual(93)&&(r[s]=n?this.parseIdentifier():this.parseModuleExportName()),r[s]||(r[s]=this.cloneIdentifier(r[i])),n&&this.checkIdentifier(r[s],c?4098:4096)}fillOptionalPropertiesForTSESLint(r){var n,a,i,s,o,l,c,u,d,f,p,m,h,x,g,y,b,S,w,E,C,N,_,O,D,W,Z,me,Q,V,U,k,L,M,ee,se,ne,ge,ue,H,I,K,he,q,be,Ie,Ne,He;switch(r.type){case"ExpressionStatement":(n=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(a=r.decorators)!=null||(r.decorators=[]),(i=r.optional)!=null||(r.optional=!1),(s=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(o=r.accessibility)!=null||(r.accessibility=void 0),(l=r.decorators)!=null||(r.decorators=[]),(c=r.override)!=null||(r.override=!1),(u=r.readonly)!=null||(r.readonly=!1),(d=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(f=r.declare)!=null||(r.declare=!1),(p=r.returnType)!=null||(r.returnType=void 0),(m=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(h=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(x=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(g=r.accessibility)!=null||(r.accessibility=void 0),(y=r.readonly)!=null||(r.readonly=!1),(b=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(S=r.declare)!=null||(r.declare=!1),(w=r.definite)!=null||(r.definite=!1),(E=r.readonly)!=null||(r.readonly=!1),(C=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(N=r.accessibility)!=null||(r.accessibility=void 0),(_=r.decorators)!=null||(r.decorators=[]),(O=r.override)!=null||(r.override=!1),(D=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(W=r.id)!=null||(r.id=null);case"ClassDeclaration":(Z=r.abstract)!=null||(r.abstract=!1),(me=r.declare)!=null||(r.declare=!1),(Q=r.decorators)!=null||(r.decorators=[]),(V=r.implements)!=null||(r.implements=[]),(U=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(k=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(L=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(M=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(ee=r.const)!=null||(r.const=!1),(se=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(ne=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(ge=r.qualifier)!=null||(r.qualifier=null),(ue=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(H=r.declare)!=null||(r.declare=!1),(I=r.extends)!=null||(r.extends=[]);return;case"TSMappedType":(K=r.optional)!=null||(r.optional=!1),(he=r.readonly)!=null||(r.readonly=void 0);return;case"TSModuleDeclaration":(q=r.declare)!=null||(r.declare=!1),(be=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":(Ie=r.const)!=null||(r.const=!1),(Ne=r.in)!=null||(r.in=!1),(He=r.out)!=null||(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,n){if(Xc(r)){if(sL.lastIndex=n,sL.test(this.input)){let a=this.codePointAtPos(sL.lastIndex);if(!Bm(a)&&a!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),n=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(n,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),n=this.codePointAtPos(r);return this.chStartsBindingIdentifier(n,r)||n===34||n===39}};function sye(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:bV(e.object)}function oye(e,t){var r;let{type:n}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(n==="Literal"){let{value:a}=e;if(typeof a=="string"||typeof a=="boolean")return!0}}else if(n==="StringLiteral"||n==="BooleanLiteral")return!0;return!!(xV(e,t)||lye(e,t)||n==="TemplateLiteral"&&e.expressions.length===0||sye(e))}function xV(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function lye(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&xV(n,t))return!0}return!1}function bV(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:bV(e.object)}var nV=Wc`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),cye=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let n=this.startNode();return this.next(),this.assertNoSpace(),n.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(n,r)}}finishPlaceholder(r,n){let a=r;return(!a.expectedNode||!a.type)&&(a=this.finishNode(a,"Placeholder")),a.expectedNode=n,a}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,n,a,i){r!==void 0&&super.checkReservedWord(r,n,a,i)}cloneIdentifier(r){let n=super.cloneIdentifier(r);return n.type==="Placeholder"&&(n.expectedNode=r.expectedNode),n}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,n,a,i){return r==="Placeholder"||super.isValidLVal(r,n,a,i)}toAssignable(r,n){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,n)}chStartsBindingIdentifier(r,n){if(super.chStartsBindingIdentifier(r,n))return!0;let a=this.nextTokenStart();return this.input.charCodeAt(a)===37&&this.input.charCodeAt(a+1)===37}verifyBreakContinue(r,n){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,n)}parseExpressionStatement(r,n){var a;if(n.type!=="Placeholder"||(a=n.extra)!=null&&a.parenthesized)return super.parseExpressionStatement(r,n);if(this.match(14)){let s=r;return s.label=this.finishPlaceholder(n,"Identifier"),this.next(),s.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(s,"LabeledStatement")}this.semicolon();let i=r;return i.name=n.name,this.finishPlaceholder(i,"Statement")}parseBlock(r,n,a){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,n,a)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,n,a){let i=n?"ClassDeclaration":"ClassExpression";this.next();let s=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))r.id=o;else{if(a||!n)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,i);throw this.raise(nV.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,n,a);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,s),this.finishNode(r,i)}parseExport(r,n){let a=this.parsePlaceholder("Identifier");if(!a)return super.parseExport(r,n);let i=r;if(!this.isContextual(98)&&!this.match(12))return i.specifiers=[],i.source=null,i.declaration=this.finishPlaceholder(a,"Declaration"),this.finishNode(i,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let s=this.startNode();return s.exported=a,i.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],super.parseExport(i,n)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(kf(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,n){var a;return(a=r.specifiers)!=null&&a.length?!0:super.maybeParseExportDefaultSpecifier(r,n)}checkExport(r){let{specifiers:n}=r;n!=null&&n.length&&(r.specifiers=n.filter(a=>a.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=n}parseImport(r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(n,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let a=this.startNodeAtNode(n);return a.local=n,r.specifiers.push(this.finishNode(a,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(nV.UnexpectedSpace,this.state.lastTokEndLoc)}},uye=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,n=this.startNode();if(this.next(),ln(this.state.type)){let a=this.parseIdentifierName(),i=this.createIdentifier(n,a);if(this.castNodeTo(i,"V8IntrinsicIdentifier"),this.match(10))return i}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},aV=["minimal","fsharp","hack","smart"],iV=["^^","@@","^","%","#"];function dye(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let n=e.get("decorators").decoratorsBeforeExport;if(n!=null&&typeof n!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let a=e.get("decorators").allowCallParenthesized;if(a!=null&&typeof a!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let n=e.get("pipelineOperator").proposal;if(!aV.includes(n)){let a=aV.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${a}.`)}if(n==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let a=e.get("pipelineOperator").topicToken;if(!iV.includes(a)){let i=iV.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${i}.`)}{var r;if(a==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}}else if(n==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){let n=e.get("recordAndTuple").syntaxType;if(n!=null){let a=["hash","bar"];if(!a.includes(n))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+a.map(i=>`'${i}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let n=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw n.missingPlugins="doExpressions",n}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var vV={estree:hge,jsx:Kge,flow:Vge,typescript:iye,v8intrinsic:uye,placeholders:cye},fye=Object.keys(vV),IL=class extends EL{checkProto(t,r,n,a){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return n;let i=t.key;return(i.type==="Identifier"?i.name:i.value)==="__proto__"?r?(this.raise(Y.RecordNoProto,i),!0):(n&&(a?a.doubleProtoLoc===null&&(a.doubleProtoLoc=i.loc.start):this.raise(Y.DuplicateProto,i)),!0):n}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(Y.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(Y.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){let a=this.startNodeAt(r);for(a.expressions=[n];this.eat(12);)a.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let n=this.state.startLoc,a=this.isContextual(108);if(a&&this.prodParam.hasYield){this.next();let l=this.parseYield(n);return r&&(l=r.call(this,l,n)),l}let i;t?i=!1:(t=new my,i=!0);let{type:s}=this.state;(s===10||ln(s))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,n)),vge(this.state.type)){let l=this.startNodeAt(n),c=this.state.value;if(l.operator=c,this.match(29)){this.toAssignable(o,!0),l.left=o;let u=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=u&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=u&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=u&&(t.voidPatternLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(l,"AssignmentExpression"),void 0,void 0,void 0,void 0,c==="||="||c==="&&="||c==="??="),l}else i&&this.checkExpressionErrors(t,!0);if(a){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?m0(l):m0(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(Y.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,a=this.parseExprOps(t);return this.shouldExitDescending(a,n)?a:this.parseConditional(a,r,t)}parseConditional(t,r,n){if(this.eat(17)){let a=this.startNodeAt(r);return a.test=t,a.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),a.alternate=this.parseMaybeAssign(),this.finishNode(a,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,a=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(a,n)?a:this.parseExprOp(a,r,-1)}parseExprOp(t,r,n){if(this.isPrivateName(t)){let i=this.getPrivateNameSV(t);(n>=m1(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(Y.PrivateInExpectedIn,t,{identifierName:i}),this.classScope.usePrivateName(i,t.loc.start)}let a=this.state.type;if(Tge(a)&&(this.prodParam.hasIn||!this.match(58))){let i=m1(a);if(i>n){if(a===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let s=this.startNodeAt(r);s.left=t,s.operator=this.state.value;let o=a===41||a===42,l=a===40;if(l&&(i=m1(42)),this.next(),a===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(Y.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);s.right=this.parseExprOpRightExpr(a,i);let c=this.finishNode(s,o||l?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(l&&(u===41||u===42)||o&&u===40)throw this.raise(Y.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,r,n)}}return t}parseExprOpRightExpr(t,r){let n=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(Y.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),n)});default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,Ige(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,n=this.parseMaybeAssign();return lge.has(n.type)&&!((t=n.extra)!=null&&t.parenthesized)&&this.raise(Y.PipeUnparenthesizedBody,r,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(Y.PipeTopicUnused,r),n}checkExponentialAfterUnary(t){this.match(57)&&this.raise(Y.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let n=this.state.startLoc,a=this.isContextual(96);if(a&&this.recordAwaitIfAllowed()){this.next();let l=this.parseAwait(n);return r||this.checkExponentialAfterUnary(l),l}let i=this.match(34),s=this.startNode();if(Cge(this.state.type)){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&l){let c=s.argument;c.type==="Identifier"?this.raise(Y.StrictDelete,s):this.hasPropertyAsPrivateName(c)&&this.raise(Y.DeletePrivateField,s)}if(!i)return r||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}let o=this.parseUpdate(s,i,t);if(a){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?m0(l):m0(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(Y.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(t,r,n){if(r){let s=t;return this.checkLVal(s.argument,this.finishNode(s,"UpdateExpression")),t}let a=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;wge(this.state.type)&&!this.canInsertSemicolon();){let s=this.startNodeAt(a);s.operator=this.state.value,s.prefix=!1,s.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(s,"UpdateExpression"))}return i}parseExprSubscripts(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,a=this.parseExprAtom(t);return this.shouldExitDescending(a,n)?a:this.parseSubscripts(a,r)}parseSubscripts(t,r,n){let a={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,n,a),a.maybeAsyncArrow=!1;while(!a.stop);return t}parseSubscript(t,r,n,a){let{type:i}=this.state;if(!n&&i===15)return this.parseBind(t,r,n,a);if(y1(i))return this.parseTaggedTemplateExpression(t,r,a);let s=!1;if(i===18){if(n&&(this.raise(Y.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,a);a.optionalChainMember=s=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,a,s);{let o=this.eat(0);return o||s||this.eat(16)?this.parseMember(t,r,a,o,s):this.stopParseSubscript(t,a)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,n,a,i){let s=this.startNodeAt(r);return s.object=t,s.computed=a,a?(s.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(Y.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),n.optionalChainMember?(s.optional=i,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(t,r,n,a){let i=this.startNodeAt(r);return i.object=t,this.next(),i.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),r,n)}parseCoverCallAndAsyncArrowHead(t,r,n,a){let i=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:l,optionalChainMember:c}=n;l&&(this.expressionScope.enter(tye()),s=new my),c&&(o.optional=a),a?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,s);let u=this.finishCallExpression(o,c);return l&&this.shouldParseAsyncArrow()&&!a?(n.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),u)):(l&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=i,u}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,n){let a=this.startNodeAt(r);return a.tag=t,a.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(Y.OptionalChainingNoTemplate,r),this.finishNode(a,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(Y.ImportCallArity,t);else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise(Y.ImportCallSpreadArgument,n);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,n){let a=[],i=!0,s=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}a.push(this.parseExprListItem(11,!1,n,t))}return this.state.inFSharpPipelineDirectBody=s,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var n;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(n=r.extra)==null?void 0:n.trailingCommaLoc),r.innerComments&&b0(t,r.innerComments),r.callee.trailingComments&&b0(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,n=null,{type:a}=this.state;switch(a){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(Y.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let i=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(i)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let i=r.callee=this.parseNoCallExpr();if(i.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(Y.UnsupportedBind,i)}case 139:return this.raise(Y.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.parseTopicReference(i);throw this.unexpected()}case 47:{let i=this.input.codePointAt(this.nextTokenStart());throw Xc(i)||i===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:{if(a===137)return this.parseDecimalLiteral(this.state.value);if(a===2||a===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(a===6||a===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0)}if(ln(a)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let i=this.state.potentialArrowAt===this.state.start,s=this.state.containsEsc,o=this.parseIdentifier();if(!s&&o.name==="async"&&!this.canInsertSemicolon()){let{type:l}=this.state;if(l===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(ln(l))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return i&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=Cs(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),n=this.state.startLoc,a=this.state.type;return this.next(),this.finishTopicReference(r,n,t,a)}finishTopicReference(t,r,n,a){if(this.testTopicReferenceConfiguration(n,r,a))return n==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(Y.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(Y.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(Y.PipeTopicUnconfiguredToken,r,{token:kf(a)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:kf(n)}]);case"smart":return n===27;default:throw this.raise(Y.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(h1(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(Y.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let n=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(Y.SuperNotAllowed,t):this.scope.allowSuper||this.optionFlags&16||this.raise(Y.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(Y.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(Cs(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(r,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,n){t.meta=r;let a=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||a)&&this.raise(Y.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(Y.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=t,this.next(),this.finishNode(n,r)}parseLiteral(t,r){let n=this.startNode();return this.parseLiteralAtNode(t,r,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,n;this.next(),this.expressionScope.enter(eye());let a=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let s=this.state.startLoc,o=[],l=new my,c=!0,u,d;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let m=this.state.startLoc;if(u=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),m)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,l,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=a,this.state.inFSharpPipelineDirectBody=i;let p=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(p=this.parseArrow(p))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(p,o,!1),p):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),u&&this.unexpected(u),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(s),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,f)):n=o[0],this.wrapParenthesis(r,n))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let n=this.startNodeAt(t);return n.expression=r,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let n=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(Y.UnexpectedNewTarget,n),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),n=this.parseNoCallExpr();t.callee=n,r&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise(Y.ImportCallNotNewExpression,n)}parseTemplateElement(t){let{start:r,startLoc:n,end:a,value:i}=this.state,s=r+1,o=this.startNodeAt(Cs(n,1));i===null&&(t||this.raise(Y.InvalidEscapeSequenceTemplate,Cs(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),c=l?-1:-2,u=a+c;o.value={raw:this.input.slice(s,u).replace(/\r\n?/g,` -`),cooked:i===null?null:i.slice(1,c)},o.tail=l,this.next();let d=this.finishNode(o,"TemplateElement");return this.resetEndLocation(d,Cs(this.state.lastTokEndLoc,c)),d}parseTemplate(t){let r=this.startNode(),n=this.parseTemplateElement(t),a=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),a.push(n=this.parseTemplateElement(t));return r.expressions=i,r.quasis=a,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,a){n&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let u;r?u=this.parseBindingProperty():(u=this.parsePropertyDefinition(a),s=this.checkProto(u,n,s,a)),n&&!this.isObjectProperty(u)&&u.type!=="SpreadElement"&&this.raise(Y.InvalidRecordProperty,u),u.shorthand&&this.addExtra(u,"shorthand",!0),l.properties.push(u)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c="ObjectExpression";return r?c="ObjectPattern":n&&(c="RecordExpression"),this.finishNode(l,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Y.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let n=this.startNode(),a=!1,i=!1,s;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(s=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let l=this.state.containsEsc;if(this.parsePropertyName(n,t),!o&&!l&&this.maybeAsyncOrAccessorProp(n)){let{key:c}=n,u=c.name;u==="async"&&!this.hasPrecedingLineBreak()&&(a=!0,this.resetPreviousNodeTrailingComments(c),o=this.eat(55),this.parsePropertyName(n)),(u==="get"||u==="set")&&(i=!0,this.resetPreviousNodeTrailingComments(c),n.kind=u,this.match(55)&&(o=!0,this.raise(Y.AccessorIsGenerator,this.state.curPosition(),{kind:u}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,s,o,a,!1,i,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let n=this.getGetterSetterExpectedParamCount(t),a=this.getObjectOrClassMethodParams(t);a.length!==n&&this.raise(t.kind==="get"?Y.BadGetterArity:Y.BadSetterArity,t),t.kind==="set"&&((r=a[a.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(Y.BadSetterRestParameter,t)}parseObjectMethod(t,r,n,a,i){if(i){let s=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(s),s}if(n||r||this.match(10))return a&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,a){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,a),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let i=this.state.startLoc;a!=null?a.shorthandAssignLoc===null&&(a.shorthandAssignLoc=i):this.raise(Y.InvalidCoverInitializedName,i),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,n,a,i,s,o){let l=this.parseObjectMethod(t,n,a,i,s)||this.parseObjectProperty(t,r,i,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:a}=this.state,i;if(pc(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(a);break;case 134:i=this.parseStringLiteral(a);break;case 136:i=this.parseBigIntLiteral(a);break;case 139:{let s=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=s):this.raise(Y.UnexpectedPrivateField,s),i=this.parsePrivateName();break}default:if(n===137){i=this.parseDecimalLiteral(a);break}this.unexpected()}t.key=i,n!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,n,a,i,s,o=!1){this.initFunction(t,n),t.generator=r,this.scope.enter(530|(o?576:0)|(i?32:0)),this.prodParam.enter(h1(n,t.generator)),this.parseFunctionParams(t,a);let l=this.parseFunctionBodyAndFinish(t,s,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(t,r,n){r&&this.expectPlugin("recordAndTuple");let a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=this.startNode();return this.next(),i.elements=this.parseExprList(t,!r,n,i),this.state.inFSharpPipelineDirectBody=a,this.finishNode(i,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,n,a){this.scope.enter(518);let i=h1(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(t,n);let s=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,a)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,n){this.toAssignableList(r,n,!1),t.params=r}parseFunctionBodyAndFinish(t,r,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,r)}parseFunctionBody(t,r,n=!1){let a=r&&!this.match(5);if(this.expressionScope.enter(yV()),a)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let i=this.state.strict,s=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(t.params);o&&l&&this.raise(Y.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let c=!i&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!n&&!l,r,c),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,c)}),this.prodParam.exit(),this.state.labels=s}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,n=t.length;r10||!Fge(t))return;if(n&&Dge(t)){this.raise(Y.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?a?pV:dV:uV)(t,this.inModule)){this.raise(Y.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(Y.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(Y.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(Y.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(Y.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(Y.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(Y.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||y1(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(Y.YieldInParameter,r);let n=!1,a=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:a=this.parseMaybeAssign()}return r.delegate=n,r.argument=a,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(Y.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(Y.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let n=this.startNodeAt(r);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}else{let n=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(Y.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(Y.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let a=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=n,a}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{n()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,n){if(r!=null&&this.match(88)){let a=this.lookaheadCharCode();if(a===44||a===(t===3?93:t===8?125:41)||a===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,n)}parsePropertyNamePrefixOperator(t){}},oL={kind:1},pye={kind:2},mye=/[\uD800-\uDFFF]/u,lL=/in(?:stanceof)?/y;function hye(e,t,r){for(let n=0;n0)for(let[i,s]of Array.from(this.scope.undefinedExports))this.raise(Y.ModuleExportUndefined,s,{localName:i});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let a;return r===140?a=this.finishNode(t,"Program"):a=this.finishNodeAt(t,"Program",Cs(this.state.startLoc,-1)),a}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),n=this.castNodeTo(t.expression,"DirectiveLiteral"),a=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),s=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",s),this.addExtra(n,"expressionValue",a),r.value=n,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let n=this.lookaheadCharCodeSince(t+2);if(n!==61&&n!==58&&n!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(Xc(t)){if(lL.lastIndex=r,lL.test(this.input)){let n=this.codePointAtPos(lL.lastIndex);if(!Bm(n)&&n!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let n=this.state.type,a=this.startNode(),i=!!(t&2),s=!!(t&4),o=t&1;switch(n){case 60:return this.parseBreakContinueStatement(a,!0);case 63:return this.parseBreakContinueStatement(a,!1);case 64:return this.parseDebuggerStatement(a);case 90:return this.parseDoWhileStatement(a);case 91:return this.parseForStatement(a);case 68:if(this.lookaheadCharCode()===46)break;return s||this.raise(this.state.strict?Y.StrictFunction:this.options.annexB?Y.SloppyFunctionAnnexB:Y.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(a,!1,!i&&s);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,a),!0);case 69:return this.parseIfStatement(a);case 70:return this.parseReturnStatement(a);case 71:return this.parseSwitchStatement(a);case 72:return this.parseThrowStatement(a);case 73:return this.parseTryStatement(a);case 96:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(Y.AwaitUsingNotInAsyncContext,a):this.raise(Y.UnexpectedLexicalDeclaration,a):this.raise(Y.UnexpectedUsingDeclaration,a),this.next(),this.parseVarStatement(a,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(Y.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(Y.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(a,"using");case 100:{if(this.state.containsEsc)break;let u=this.nextTokenStart(),d=this.codePointAtPos(u);if(d!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,u)&&d!==123))break}case 75:i||this.raise(Y.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let u=this.state.value;return this.parseVarStatement(a,u)}case 92:return this.parseWhileStatement(a);case 76:return this.parseWithStatement(a);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(a);case 83:{let u=this.lookaheadCharCode();if(u===40||u===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(Y.UnexpectedImportExport,this.state.startLoc),this.next();let u;return n===83?u=this.parseImport(a):u=this.parseExport(a,r),this.assertModuleNodeAllowed(u),u}default:if(this.isAsyncFunction())return i||this.raise(Y.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(a,!0,!i&&s)}let l=this.state.value,c=this.parseExpression();return ln(n)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(a,l,c,t):this.parseExpressionStatement(a,c,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(Y.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,n){if(t){var a;(a=r.decorators)!=null&&a.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(Y.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),n&&this.resetStartLocationFromNode(n,r)}return r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(Y.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(Y.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,n;if(this.match(10)){let a=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(a,n);let i=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n,a),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise(Y.DecoratorArgumentsOutsideParentheses,i)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let a=this.startNodeAt(r);a.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),a.computed=!1,n=this.finishNode(a,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(n,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let n=this.startNodeAt(r);return n.callee=t,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let n;for(n=0;nthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(oL);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let n=this.isContextual(100);{let l=this.isAwaitUsing(),c=l||this.isForUsing(),u=n&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||u){let d=this.startNode(),f;l?(f="await using",this.recordAwaitIfAllowed()||this.raise(Y.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):f=this.state.value,this.next(),this.parseVar(d,!0,f);let p=this.finishNode(d,"VariableDeclaration"),m=this.match(58);return m&&c&&this.raise(Y.ForInUsing,p),(m||this.isContextual(102))&&p.declarations.length===1?this.parseForIn(t,p,r):(r!==null&&this.unexpected(r),this.parseFor(t,p))}}let a=this.isContextual(95),i=new my,s=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(Y.ForOfLet,s),r===null&&a&&s.type==="Identifier"&&this.raise(Y.ForOfAsync,s)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(s,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(s,{type:l}),this.parseForIn(t,s,r)}else this.checkExpressionErrors(i,!0);return r!==null&&this.unexpected(r),this.parseFor(t,s)}parseFunctionStatement(t,r,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(Y.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(pye),this.scope.enter(256);let n;for(let a;!this.match(8);)if(this.match(61)||this.match(65)){let i=this.match(61);n&&this.finishNode(n,"SwitchCase"),r.push(n=this.startNode()),n.consequent=[],this.next(),i?n.test=this.parseExpression():(a&&this.raise(Y.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),a=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(Y.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(Y.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,n=!1){return this.next(),this.parseVar(t,!1,r,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(oL),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(Y.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,n,a){for(let s of this.state.labels)s.name===r&&this.raise(Y.LabelRedeclaration,n,{labelName:r});let i=Sge(this.state.type)?1:this.match(71)?2:null;for(let s=this.state.labels.length-1;s>=0;s--){let o=this.state.labels[s];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=i;else break}return this.state.labels.push({name:r,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=a&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,n){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,n){let a=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(a,t,!1,8,n),r&&this.scope.exit(),this.finishNode(a,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,n,a,i){let s=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(s,r?o:void 0,n,a,i)}parseBlockOrModuleBlockBody(t,r,n,a,i){let s=this.state.strict,o=!1,l=!1;for(;!this.match(a);){let c=n?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(c)){let u=this.stmtToDirective(c);r.push(u),!o&&u.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}t.push(c)}i?.call(this,o),s||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,n){let a=this.match(58);return this.next(),a?n!==null&&this.unexpected(n):t.await=n!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!a||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(Y.ForInOfLoopInitializer,r,{type:a?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(Y.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=a?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,a?"ForInStatement":"ForOfStatement")}parseVar(t,r,n,a=!1){let i=t.declarations=[];for(t.kind=n;;){let s=this.startNode();if(this.parseVarId(s,n),s.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,s.init===null&&!a&&(s.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(Y.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(Y.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(s,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let n=this.parseBindingAtom();r==="using"||r==="await using"?(n.type==="ArrayPattern"||n.type==="ObjectPattern")&&this.raise(Y.UsingDeclarationHasBindingPattern,n.loc.start):n.type==="VoidPattern"&&this.raise(Y.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=n}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let n=r&2,a=!!(r&1),i=a&&!(r&4),s=!!(r&8);this.initFunction(t,s),this.match(55)&&(n&&this.raise(Y.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),a&&(t.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(h1(s,t.generator)),a||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,a?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),a&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||ln(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(Qge()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,n){this.next();let a=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,a),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:t},a=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(a.length>0)throw this.raise(Y.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){a.push(this.parseDecorator());continue}let s=this.startNode();a.length&&(s.decorators=a,this.resetStartLocationFromNode(s,a[0]),a=[]),this.parseClassMember(i,s,n),s.kind==="constructor"&&s.decorators&&s.decorators.length>0&&this.raise(Y.DecoratorConstructor,s)}}),this.state.strict=r,this.next(),a.length)throw this.raise(Y.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(t,r){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let a=r;return a.kind="method",a.computed=!1,a.key=n,a.static=!1,this.pushClassMethod(t,a,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let a=r;return a.computed=!1,a.key=n,a.static=!1,t.body.push(this.parseClassProperty(a)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,r,n){let a=this.isContextual(106);if(a){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,n,a)}parseClassMemberWithIsStatic(t,r,n,a){let i=r,s=r,o=r,l=r,c=r,u=i,d=i;if(r.static=a,this.parsePropertyNamePrefixOperator(r),this.eat(55)){u.kind="method";let g=this.match(139);if(this.parseClassElementName(u),this.parsePostMemberNameModifiers(u),g){this.pushClassPrivateMethod(t,s,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(Y.ConstructorIsGenerator,i.key),this.pushClassMethod(t,i,!0,!1,!1,!1);return}let f=!this.state.containsEsc&&ln(this.state.type),p=this.parseClassElementName(r),m=f?p.name:null,h=this.isPrivateName(p),x=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(u.kind="method",h){this.pushClassPrivateMethod(t,s,!1,!1);return}let g=this.isNonstaticConstructor(i),y=!1;g&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(Y.DuplicateConstructor,p),g&&this.hasPlugin("typescript")&&r.override&&this.raise(Y.OverrideOnConstructor,p),n.hadConstructor=!0,y=n.hadSuperClass),this.pushClassMethod(t,i,!1,!1,g,y)}else if(this.isClassProperty())h?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o);else if(m==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(p);let g=this.eat(55);d.optional&&this.unexpected(x),u.kind="method";let y=this.match(139);this.parseClassElementName(u),this.parsePostMemberNameModifiers(d),y?this.pushClassPrivateMethod(t,s,g,!0):(this.isNonstaticConstructor(i)&&this.raise(Y.ConstructorIsAsync,i.key),this.pushClassMethod(t,i,g,!0,!1,!1))}else if((m==="get"||m==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(p),u.kind=m;let g=this.match(139);this.parseClassElementName(i),g?this.pushClassPrivateMethod(t,s,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(Y.ConstructorIsAccessor,i.key),this.pushClassMethod(t,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(m==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(p);let g=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,c,g)}else this.isLineTerminator()?h?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:n}=this.state;if((r===132||r===134)&&t.static&&n==="prototype"&&this.raise(Y.StaticPrototype,this.state.startLoc),r===139){n==="constructor"&&this.raise(Y.ConstructorClassPrivateField,this.state.startLoc);let a=this.parsePrivateName();return t.key=a,a}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var n;this.scope.enter(720);let a=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=r.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=a,t.body.push(this.finishNode(r,"StaticBlock")),(n=r.decorators)!=null&&n.length&&this.raise(Y.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(Y.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let n=this.parseClassPrivateProperty(r);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(t,r,n){!n&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(Y.ConstructorClassField,r.key);let a=this.parseClassAccessorProperty(r);t.body.push(a),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),0,a.key.loc.start)}pushClassMethod(t,r,n,a,i,s){t.body.push(this.parseMethod(r,n,a,i,s,"ClassMethod",!0))}pushClassPrivateMethod(t,r,n,a){let i=this.parseMethod(r,n,a,!1,!1,"ClassPrivateMethod",!0);t.body.push(i);let s=i.kind==="get"?i.static?6:2:i.kind==="set"?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,s)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(yV()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,n,a=8331){if(ln(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,a);else if(n||!r)t.id=null;else throw this.raise(Y.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let n=this.parseMaybeImportPhase(t,!0),a=this.maybeParseExportDefaultSpecifier(t,n),i=!a||this.eat(12),s=i&&this.eatExportStar(t),o=s&&this.maybeParseExportNamespaceSpecifier(t),l=i&&(!o||this.eat(12)),c=a||s;if(s&&!o){if(a&&this.unexpected(),r)throw this.raise(Y.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let u=this.maybeParseExportNamedSpecifiers(t);a&&i&&!s&&!u&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let d;if(c||u){if(d=!1,r)throw this.raise(Y.UnsupportedDecoratorExport,t);this.parseExportFrom(t,c)}else d=this.maybeParseExportDeclaration(t);if(c||u||d){var f;let p=t;if(this.checkExport(p,!0,!1,!!p.source),((f=p.declaration)==null?void 0:f.type)==="ClassDeclaration")this.maybeTakeDecorators(r,p.declaration,p);else if(r)throw this.raise(Y.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(p,"ExportNamedDeclaration")}if(this.eat(65)){let p=t,m=this.parseExportDefaultExpression();if(p.declaration=m,m.type==="ClassDeclaration")this.maybeTakeDecorators(r,m,p);else if(r)throw this.raise(Y.UnsupportedDecoratorExport,t);return this.checkExport(p,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(p,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let n=r||this.parseIdentifier(!0),a=this.startNodeAtNode(n);return a.exported=n,t.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,n;(n=(r=t).specifiers)!=null||(r.specifiers=[]);let a=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),a.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(a,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let n=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(n)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Y.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(Y.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(ln(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let a=this.nextTokenStart(),i=this.input.charCodeAt(a);if(i===123||this.chStartsBindingIdentifier(i,a)&&!this.input.startsWith("from",a))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||ln(this.state.type)&&n)return!0;if(this.match(65)&&n){let a=this.input.charCodeAt(this.nextTokenStartSince(r+4));return a===34||a===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Y.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(Y.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(Y.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,n,a){if(r){var i;if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var s;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((s=o.extra)!=null&&s.parenthesized)&&this.raise(Y.ExportDefaultFromAsIdentifier,o)}}else if((i=t.specifiers)!=null&&i.length)for(let o of t.specifiers){let{exported:l}=o,c=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,c),!a&&o.local){let{local:u}=o;u.type!=="Identifier"?this.raise(Y.ExportBindingIsString,o,{localName:u.value,exportName:c}):(this.checkReservedWord(u.name,u.loc.start,!0,!1),this.scope.checkLocalExport(u))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(t,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(Y.DuplicateDefaultExport,t):this.raise(Y.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let a=this.isContextual(130),i=this.match(134),s=this.startNode();s.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(s,i,t,a))}return r}parseExportSpecifier(t,r,n,a){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=mye.exec(t.value);return r&&this.raise(Y.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:n})=>n.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,n=r.length===1?r[0].type:null;if(t.phase==="source")n!=="ImportDefaultSpecifier"&&this.raise(Y.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")n!=="ImportNamespaceSpecifier"&&this.raise(Y.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var a;n!=="ImportDefaultSpecifier"&&this.raise(Y.ImportReflectionNotBinding,r[0].loc.start),((a=t.assertions)==null?void 0:a.length)>0&&this.raise(Y.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let n=r.find(a=>{let i;if(a.type==="ExportSpecifier"?i=a.local:a.type==="ImportSpecifier"&&(i=a.imported),i!==void 0)return i.type==="Identifier"?i.name!=="default":i.value!=="default"});n!==void 0&&this.raise(Y.ImportJSONBindingNotDefault,n.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,n,a){r||(n==="module"?(this.expectPlugin("importReflection",a),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",a),t.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",a),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let n=this.startNode(),a=this.parseIdentifierName(!0),{type:i}=this.state;return(pc(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.applyImportPhase(t,r,a,n.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(n,a))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return ln(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let a=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),i=a&&this.maybeParseStarImportSpecifier(t);return a&&!i&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,n){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,n))}finishImportSpecifier(t,r,n=8201){return this.checkLVal(t.local,{type:r},n),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let n=this.startNode(),a=this.state.value;if(r.has(a)&&this.raise(Y.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:a}),r.add(a),this.match(134)?n.key=this.parseStringLiteral(a):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(Y.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(Y.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(Y.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(Y.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(Y.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!n&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if(pc(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(Y.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),a=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();let s=this.parseImportSpecifier(n,a,t.importKind==="type"||t.importKind==="typeof",i,void 0);t.specifiers.push(s)}}parseImportSpecifier(t,r,n,a,i){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:s}=t;if(r)throw this.raise(Y.ImportBindingIsString,t,{importName:s.value});this.checkReservedWord(s.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(s))}return this.finishImportSpecifier(t,"ImportSpecifier",i)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},b1=class extends AL{constructor(t,r,n){let a=pge(t);super(a,r),this.options=a,this.initializeScopes(),this.plugins=n,this.filename=a.sourceFilename,this.startIndex=a.startIndex;let i=0;a.allowAwaitOutsideFunction&&(i|=1),a.allowReturnOutsideFunction&&(i|=2),a.allowImportExportEverywhere&&(i|=8),a.allowSuperOutsideMethod&&(i|=16),a.allowUndeclaredExports&&(i|=64),a.allowNewTargetOutsideFunction&&(i|=4),a.allowYieldOutsideFunction&&(i|=32),a.ranges&&(i|=128),a.tokens&&(i|=256),a.createImportExpressions&&(i|=512),a.createParenthesizedExpressions&&(i|=1024),a.errorRecovery&&(i|=2048),a.attachComment&&(i|=4096),a.annexB&&(i|=8192),this.optionFlags=i}getScopeHandler(){return x0}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let n=this.parseTopLevel(t,r);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}};function gye(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let n=h0(t,e),a=n.parse();if(n.sawUnambiguousESM)return a;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",h0(t,e).parse()}catch{}else a.program.sourceType="script";return a}catch(n){try{return t.sourceType="script",h0(t,e).parse()}catch{}throw n}}else return h0(t,e).parse()}function yye(e,t){let r=h0(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function xye(e){let t={};for(let r of Object.keys(e))t[r]=Xu(e[r]);return t}var bye=xye(yge);function h0(e,t){let r=b1,n=new Map;if(e!=null&&e.plugins){for(let a of e.plugins){let i,s;typeof a=="string"?i=a:[i,s]=a,n.has(i)||n.set(i,s||{})}dye(n),r=vye(n)}return new r(e,t,n)}var sV=new Map;function vye(e){let t=[];for(let a of fye)e.has(a)&&t.push(a);let r=t.join("|"),n=sV.get(r);if(!n){n=b1;for(let a of t)n=vV[a](n);sV.set(r,n)}return n}S0.parse=gye;S0.parseExpression=yye;S0.tokTypes=bye});var BL=ae(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.Var=Lr.User=Lr.Statement=Lr.SpreadProperty=Lr.Scope=Lr.RestProperty=Lr.ReferencedMemberExpression=Lr.ReferencedIdentifier=Lr.Referenced=Lr.Pure=Lr.NumericLiteralTypeAnnotation=Lr.Generated=Lr.ForAwaitStatement=Lr.Flow=Lr.Expression=Lr.ExistentialTypeParam=Lr.BlockScoped=Lr.BindingIdentifier=void 0;var Lpt=Lr.ReferencedIdentifier=["Identifier","JSXIdentifier"],Rpt=Lr.ReferencedMemberExpression=["MemberExpression"],Dpt=Lr.BindingIdentifier=["Identifier"],Mpt=Lr.Statement=["Statement"],Opt=Lr.Expression=["Expression"],Fpt=Lr.Scope=["Scopable","Pattern"],Bpt=Lr.Referenced=null,$pt=Lr.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],jpt=Lr.Var=["VariableDeclaration"],zpt=Lr.User=null,Upt=Lr.Generated=null,Vpt=Lr.Pure=null,qpt=Lr.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],Hpt=Lr.RestProperty=["RestElement"],Gpt=Lr.SpreadProperty=["RestElement"],Kpt=Lr.ExistentialTypeParam=["ExistsTypeAnnotation"],Wpt=Lr.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],Xpt=Lr.ForAwaitStatement=["ForOfStatement"]});var TV=ae((Jpt,SV)=>{var xy=1e3,by=xy*60,vy=by*60,$m=vy*24,Sye=$m*7,Tye=$m*365.25;SV.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return wye(e);if(r==="number"&&isFinite(e))return t.long?Pye(e):Cye(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function wye(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Tye;case"weeks":case"week":case"w":return r*Sye;case"days":case"day":case"d":return r*$m;case"hours":case"hour":case"hrs":case"hr":case"h":return r*vy;case"minutes":case"minute":case"mins":case"min":case"m":return r*by;case"seconds":case"second":case"secs":case"sec":case"s":return r*xy;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Cye(e){var t=Math.abs(e);return t>=$m?Math.round(e/$m)+"d":t>=vy?Math.round(e/vy)+"h":t>=by?Math.round(e/by)+"m":t>=xy?Math.round(e/xy)+"s":e+"ms"}function Pye(e){var t=Math.abs(e);return t>=$m?S1(e,t,$m,"day"):t>=vy?S1(e,t,vy,"hour"):t>=by?S1(e,t,by,"minute"):t>=xy?S1(e,t,xy,"second"):e+" ms"}function S1(e,t,r,n){var a=t>=r*1.5;return Math.round(e/r)+" "+n+(a?"s":"")}});var CV=ae((Zpt,wV)=>{function Eye(e){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=a,r.enabled=o,r.humanize=TV(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f{if(E==="%%")return"%";S++;let N=r.formatters[C];if(typeof N=="function"){let _=x[S];E=N.call(g,_),x.splice(S,1),S--}return E}),r.formatArgs.call(g,x),(g.log||r.log).apply(g,x)}return h.namespace=u,h.useColors=r.useColors(),h.color=r.selectColor(u),h.extend=n,h.destroy=r.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(u)),m),set:x=>{f=x}}),typeof r.init=="function"&&r.init(h),h}function n(u,d){let f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function a(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function i(u,d){let f=0,p=0,m=-1,h=0;for(;f"-"+d)].join(",");return r.enable(""),u}function o(u){for(let d of r.skips)if(i(u,d))return!1;for(let d of r.names)if(i(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){}return r.enable(r.load()),r}wV.exports=Eye});var PV=ae((ro,T1)=>{ro.formatArgs=Aye;ro.save=Nye;ro.load=kye;ro.useColors=Iye;ro.storage=_ye();ro.destroy=(()=>{let e=!1;return()=>{e||(e=!0)}})();ro.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Iye(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Aye(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+T1.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(r++,a==="%c"&&(n=r))}),e.splice(n,0,t)}ro.log=console.debug||console.log||(()=>{});function Nye(e){try{e?ro.storage.setItem("debug",e):ro.storage.removeItem("debug")}catch{}}function kye(){let e;try{e=ro.storage.getItem("debug")||ro.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function _ye(){try{return localStorage}catch{}}T1.exports=CV()(ro);var{formatters:Lye}=T1.exports;Lye.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var w1=ae($L=>{"use strict";Object.defineProperty($L,"__esModule",{value:!0});$L.default=Rye;function Rye(e,t){let r=Object.keys(t);for(let n of r)if(e[n]!==t[n])return!1;return!0}});var Sy=ae(jL=>{"use strict";Object.defineProperty(jL,"__esModule",{value:!0});jL.default=Dye;var EV=new Set;function Dye(e,t,r="",n=e){if(EV.has(n))return;EV.add(n);let{internal:a,trace:i}=Mye(1,2)}function Mye(e,t){let{stackTraceLimit:r,prepareStackTrace:n}=Error,a;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(s,o){a=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!a)return{internal:!1,trace:""};let i=a.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(i[1].getFileName()),trace:i.map(s=>` at ${s}`).join(` -`)}}});var va=ae(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.isAccessor=QSe;F.isAnyTypeAnnotation=ybe;F.isArgumentPlaceholder=Gve;F.isArrayExpression=Oye;F.isArrayPattern=Dxe;F.isArrayTypeAnnotation=xbe;F.isArrowFunctionExpression=Mxe;F.isAssignmentExpression=Fye;F.isAssignmentPattern=Rxe;F.isAwaitExpression=abe;F.isBigIntLiteral=sbe;F.isBinary=SSe;F.isBinaryExpression=Bye;F.isBindExpression=Kve;F.isBlock=CSe;F.isBlockParent=wSe;F.isBlockStatement=Uye;F.isBooleanLiteral=cxe;F.isBooleanLiteralTypeAnnotation=vbe;F.isBooleanTypeAnnotation=bbe;F.isBreakStatement=Vye;F.isCallExpression=qye;F.isCatchClause=Hye;F.isClass=YSe;F.isClassAccessorProperty=dbe;F.isClassBody=Oxe;F.isClassDeclaration=Bxe;F.isClassExpression=Fxe;F.isClassImplements=Tbe;F.isClassMethod=Yxe;F.isClassPrivateMethod=pbe;F.isClassPrivateProperty=fbe;F.isClassProperty=ube;F.isCompletionStatement=ISe;F.isConditional=ASe;F.isConditionalExpression=Gye;F.isContinueStatement=Kye;F.isDebuggerStatement=Wye;F.isDecimalLiteral=Qve;F.isDeclaration=FSe;F.isDeclareClass=wbe;F.isDeclareExportAllDeclaration=Lbe;F.isDeclareExportDeclaration=_be;F.isDeclareFunction=Cbe;F.isDeclareInterface=Pbe;F.isDeclareModule=Ebe;F.isDeclareModuleExports=Ibe;F.isDeclareOpaqueType=Nbe;F.isDeclareTypeAlias=Abe;F.isDeclareVariable=kbe;F.isDeclaredPredicate=Rbe;F.isDecorator=Wve;F.isDirective=jye;F.isDirectiveLiteral=zye;F.isDoExpression=Xve;F.isDoWhileStatement=Xye;F.isEmptyStatement=Yye;F.isEmptyTypeAnnotation=qbe;F.isEnumBody=sTe;F.isEnumBooleanBody=xve;F.isEnumBooleanMember=Tve;F.isEnumDeclaration=yve;F.isEnumDefaultedMember=Pve;F.isEnumMember=oTe;F.isEnumNumberBody=bve;F.isEnumNumberMember=wve;F.isEnumStringBody=vve;F.isEnumStringMember=Cve;F.isEnumSymbolBody=Sve;F.isExistsTypeAnnotation=Dbe;F.isExportAllDeclaration=$xe;F.isExportDeclaration=JSe;F.isExportDefaultDeclaration=jxe;F.isExportDefaultSpecifier=Yve;F.isExportNamedDeclaration=zxe;F.isExportNamespaceSpecifier=obe;F.isExportSpecifier=Uxe;F.isExpression=vSe;F.isExpressionStatement=Jye;F.isExpressionWrapper=_Se;F.isFile=Zye;F.isFlow=tTe;F.isFlowBaseAnnotation=nTe;F.isFlowDeclaration=aTe;F.isFlowPredicate=iTe;F.isFlowType=rTe;F.isFor=LSe;F.isForInStatement=Qye;F.isForOfStatement=Vxe;F.isForStatement=exe;F.isForXStatement=RSe;F.isFunction=DSe;F.isFunctionDeclaration=txe;F.isFunctionExpression=rxe;F.isFunctionParameter=BSe;F.isFunctionParent=MSe;F.isFunctionTypeAnnotation=Mbe;F.isFunctionTypeParam=Obe;F.isGenericTypeAnnotation=Fbe;F.isIdentifier=nxe;F.isIfStatement=axe;F.isImmutable=VSe;F.isImport=ibe;F.isImportAttribute=gbe;F.isImportDeclaration=qxe;F.isImportDefaultSpecifier=Hxe;F.isImportExpression=Wxe;F.isImportNamespaceSpecifier=Gxe;F.isImportOrExportDeclaration=IV;F.isImportSpecifier=Kxe;F.isIndexedAccessType=Eve;F.isInferredPredicate=Bbe;F.isInterfaceDeclaration=jbe;F.isInterfaceExtends=$be;F.isInterfaceTypeAnnotation=zbe;F.isInterpreterDirective=$ye;F.isIntersectionTypeAnnotation=Ube;F.isJSX=lTe;F.isJSXAttribute=Ave;F.isJSXClosingElement=Nve;F.isJSXClosingFragment=Uve;F.isJSXElement=kve;F.isJSXEmptyExpression=_ve;F.isJSXExpressionContainer=Lve;F.isJSXFragment=jve;F.isJSXIdentifier=Dve;F.isJSXMemberExpression=Mve;F.isJSXNamespacedName=Ove;F.isJSXOpeningElement=Fve;F.isJSXOpeningFragment=zve;F.isJSXSpreadAttribute=Bve;F.isJSXSpreadChild=Rve;F.isJSXText=$ve;F.isLVal=jSe;F.isLabeledStatement=ixe;F.isLiteral=USe;F.isLogicalExpression=dxe;F.isLoop=NSe;F.isMemberExpression=fxe;F.isMetaProperty=Xxe;F.isMethod=HSe;F.isMiscellaneous=cTe;F.isMixedTypeAnnotation=Vbe;F.isModuleDeclaration=xTe;F.isModuleExpression=e0e;F.isModuleSpecifier=ZSe;F.isNewExpression=pxe;F.isNoop=Vve;F.isNullLiteral=lxe;F.isNullLiteralTypeAnnotation=Sbe;F.isNullableTypeAnnotation=Hbe;F.isNumberLiteral=mTe;F.isNumberLiteralTypeAnnotation=Gbe;F.isNumberTypeAnnotation=Kbe;F.isNumericLiteral=oxe;F.isObjectExpression=hxe;F.isObjectMember=GSe;F.isObjectMethod=gxe;F.isObjectPattern=Jxe;F.isObjectProperty=yxe;F.isObjectTypeAnnotation=Wbe;F.isObjectTypeCallProperty=Ybe;F.isObjectTypeIndexer=Jbe;F.isObjectTypeInternalSlot=Xbe;F.isObjectTypeProperty=Zbe;F.isObjectTypeSpreadProperty=Qbe;F.isOpaqueType=eve;F.isOptionalCallExpression=cbe;F.isOptionalIndexedAccessType=Ive;F.isOptionalMemberExpression=lbe;F.isParenthesizedExpression=Sxe;F.isPattern=XSe;F.isPatternLike=$Se;F.isPipelineBareFunction=n0e;F.isPipelinePrimaryTopicReference=a0e;F.isPipelineTopicExpression=r0e;F.isPlaceholder=qve;F.isPrivate=eTe;F.isPrivateName=mbe;F.isProgram=mxe;F.isProperty=KSe;F.isPureish=OSe;F.isQualifiedTypeIdentifier=tve;F.isRecordExpression=Jve;F.isRegExpLiteral=uxe;F.isRegexLiteral=hTe;F.isRestElement=xxe;F.isRestProperty=gTe;F.isReturnStatement=bxe;F.isScopable=TSe;F.isSequenceExpression=vxe;F.isSpreadElement=Zxe;F.isSpreadProperty=yTe;F.isStandardized=bSe;F.isStatement=PSe;F.isStaticBlock=hbe;F.isStringLiteral=sxe;F.isStringLiteralTypeAnnotation=rve;F.isStringTypeAnnotation=nve;F.isSuper=Qxe;F.isSwitchCase=Txe;F.isSwitchStatement=wxe;F.isSymbolTypeAnnotation=ave;F.isTSAnyKeyword=h0e;F.isTSArrayType=M0e;F.isTSAsExpression=tSe;F.isTSBaseType=pTe;F.isTSBigIntKeyword=y0e;F.isTSBooleanKeyword=g0e;F.isTSCallSignatureDeclaration=u0e;F.isTSConditionalType=U0e;F.isTSConstructSignatureDeclaration=d0e;F.isTSConstructorType=k0e;F.isTSDeclareFunction=o0e;F.isTSDeclareMethod=l0e;F.isTSEntityName=zSe;F.isTSEnumBody=aSe;F.isTSEnumDeclaration=iSe;F.isTSEnumMember=sSe;F.isTSExportAssignment=pSe;F.isTSExpressionWithTypeArguments=Y0e;F.isTSExternalModuleReference=dSe;F.isTSFunctionType=N0e;F.isTSImportEqualsDeclaration=uSe;F.isTSImportType=cSe;F.isTSIndexSignature=m0e;F.isTSIndexedAccessType=G0e;F.isTSInferType=V0e;F.isTSInstantiationExpression=eSe;F.isTSInterfaceBody=Z0e;F.isTSInterfaceDeclaration=J0e;F.isTSIntersectionType=z0e;F.isTSIntrinsicKeyword=x0e;F.isTSLiteralType=X0e;F.isTSMappedType=K0e;F.isTSMethodSignature=p0e;F.isTSModuleBlock=lSe;F.isTSModuleDeclaration=oSe;F.isTSNamedTupleMember=$0e;F.isTSNamespaceExportDeclaration=mSe;F.isTSNeverKeyword=b0e;F.isTSNonNullExpression=fSe;F.isTSNullKeyword=v0e;F.isTSNumberKeyword=S0e;F.isTSObjectKeyword=T0e;F.isTSOptionalType=F0e;F.isTSParameterProperty=s0e;F.isTSParenthesizedType=q0e;F.isTSPropertySignature=f0e;F.isTSQualifiedName=c0e;F.isTSRestType=B0e;F.isTSSatisfiesExpression=rSe;F.isTSStringKeyword=w0e;F.isTSSymbolKeyword=C0e;F.isTSTemplateLiteralType=W0e;F.isTSThisType=A0e;F.isTSTupleType=O0e;F.isTSType=fTe;F.isTSTypeAliasDeclaration=Q0e;F.isTSTypeAnnotation=hSe;F.isTSTypeAssertion=nSe;F.isTSTypeElement=dTe;F.isTSTypeLiteral=D0e;F.isTSTypeOperator=H0e;F.isTSTypeParameter=xSe;F.isTSTypeParameterDeclaration=ySe;F.isTSTypeParameterInstantiation=gSe;F.isTSTypePredicate=L0e;F.isTSTypeQuery=R0e;F.isTSTypeReference=_0e;F.isTSUndefinedKeyword=P0e;F.isTSUnionType=j0e;F.isTSUnknownKeyword=E0e;F.isTSVoidKeyword=I0e;F.isTaggedTemplateExpression=ebe;F.isTemplateElement=tbe;F.isTemplateLiteral=rbe;F.isTerminatorless=ESe;F.isThisExpression=Cxe;F.isThisTypeAnnotation=ive;F.isThrowStatement=Pxe;F.isTopicReference=t0e;F.isTryStatement=Exe;F.isTupleExpression=Zve;F.isTupleTypeAnnotation=sve;F.isTypeAlias=lve;F.isTypeAnnotation=cve;F.isTypeCastExpression=uve;F.isTypeParameter=dve;F.isTypeParameterDeclaration=fve;F.isTypeParameterInstantiation=pve;F.isTypeScript=uTe;F.isTypeofTypeAnnotation=ove;F.isUnaryExpression=Ixe;F.isUnaryLike=WSe;F.isUnionTypeAnnotation=mve;F.isUpdateExpression=Axe;F.isUserWhitespacable=qSe;F.isV8IntrinsicIdentifier=Hve;F.isVariableDeclaration=Nxe;F.isVariableDeclarator=kxe;F.isVariance=hve;F.isVoidPattern=i0e;F.isVoidTypeAnnotation=gve;F.isWhile=kSe;F.isWhileStatement=_xe;F.isWithStatement=Lxe;F.isYieldExpression=nbe;var j=w1(),T0=Sy();function Oye(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,j.default)(e,t)}function Fye(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,j.default)(e,t)}function Bye(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,j.default)(e,t)}function $ye(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,j.default)(e,t)}function jye(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,j.default)(e,t)}function zye(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,j.default)(e,t)}function Uye(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,j.default)(e,t)}function Vye(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,j.default)(e,t)}function qye(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,j.default)(e,t)}function Hye(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,j.default)(e,t)}function Gye(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,j.default)(e,t)}function Kye(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,j.default)(e,t)}function Wye(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,j.default)(e,t)}function Xye(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,j.default)(e,t)}function Yye(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,j.default)(e,t)}function Jye(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,j.default)(e,t)}function Zye(e,t){return!e||e.type!=="File"?!1:t==null||(0,j.default)(e,t)}function Qye(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,j.default)(e,t)}function exe(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,j.default)(e,t)}function txe(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,j.default)(e,t)}function rxe(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,j.default)(e,t)}function nxe(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,j.default)(e,t)}function axe(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,j.default)(e,t)}function ixe(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,j.default)(e,t)}function sxe(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,j.default)(e,t)}function oxe(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,j.default)(e,t)}function lxe(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,j.default)(e,t)}function cxe(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,j.default)(e,t)}function uxe(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,j.default)(e,t)}function dxe(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,j.default)(e,t)}function fxe(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,j.default)(e,t)}function pxe(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,j.default)(e,t)}function mxe(e,t){return!e||e.type!=="Program"?!1:t==null||(0,j.default)(e,t)}function hxe(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,j.default)(e,t)}function gxe(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,j.default)(e,t)}function yxe(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,j.default)(e,t)}function xxe(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,j.default)(e,t)}function bxe(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,j.default)(e,t)}function vxe(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,j.default)(e,t)}function Sxe(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,j.default)(e,t)}function Txe(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,j.default)(e,t)}function wxe(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,j.default)(e,t)}function Cxe(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,j.default)(e,t)}function Pxe(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,j.default)(e,t)}function Exe(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,j.default)(e,t)}function Ixe(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,j.default)(e,t)}function Axe(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,j.default)(e,t)}function Nxe(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,j.default)(e,t)}function kxe(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,j.default)(e,t)}function _xe(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,j.default)(e,t)}function Lxe(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,j.default)(e,t)}function Rxe(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,j.default)(e,t)}function Dxe(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,j.default)(e,t)}function Mxe(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,j.default)(e,t)}function Oxe(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,j.default)(e,t)}function Fxe(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,j.default)(e,t)}function Bxe(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,j.default)(e,t)}function $xe(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,j.default)(e,t)}function jxe(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,j.default)(e,t)}function zxe(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,j.default)(e,t)}function Uxe(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,j.default)(e,t)}function Vxe(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,j.default)(e,t)}function qxe(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,j.default)(e,t)}function Hxe(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,j.default)(e,t)}function Gxe(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,j.default)(e,t)}function Kxe(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,j.default)(e,t)}function Wxe(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,j.default)(e,t)}function Xxe(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,j.default)(e,t)}function Yxe(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,j.default)(e,t)}function Jxe(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,j.default)(e,t)}function Zxe(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,j.default)(e,t)}function Qxe(e,t){return!e||e.type!=="Super"?!1:t==null||(0,j.default)(e,t)}function ebe(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,j.default)(e,t)}function tbe(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,j.default)(e,t)}function rbe(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,j.default)(e,t)}function nbe(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,j.default)(e,t)}function abe(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,j.default)(e,t)}function ibe(e,t){return!e||e.type!=="Import"?!1:t==null||(0,j.default)(e,t)}function sbe(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,j.default)(e,t)}function obe(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,j.default)(e,t)}function lbe(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,j.default)(e,t)}function cbe(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,j.default)(e,t)}function ube(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,j.default)(e,t)}function dbe(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,j.default)(e,t)}function fbe(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,j.default)(e,t)}function pbe(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,j.default)(e,t)}function mbe(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,j.default)(e,t)}function hbe(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,j.default)(e,t)}function gbe(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,j.default)(e,t)}function ybe(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function xbe(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function bbe(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function vbe(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Sbe(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Tbe(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,j.default)(e,t)}function wbe(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,j.default)(e,t)}function Cbe(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,j.default)(e,t)}function Pbe(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,j.default)(e,t)}function Ebe(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,j.default)(e,t)}function Ibe(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,j.default)(e,t)}function Abe(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,j.default)(e,t)}function Nbe(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,j.default)(e,t)}function kbe(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,j.default)(e,t)}function _be(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,j.default)(e,t)}function Lbe(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,j.default)(e,t)}function Rbe(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,j.default)(e,t)}function Dbe(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Mbe(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Obe(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,j.default)(e,t)}function Fbe(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Bbe(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,j.default)(e,t)}function $be(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,j.default)(e,t)}function jbe(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,j.default)(e,t)}function zbe(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Ube(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Vbe(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function qbe(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Hbe(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Gbe(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Kbe(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Wbe(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Xbe(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,j.default)(e,t)}function Ybe(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,j.default)(e,t)}function Jbe(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,j.default)(e,t)}function Zbe(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,j.default)(e,t)}function Qbe(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,j.default)(e,t)}function eve(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,j.default)(e,t)}function tve(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,j.default)(e,t)}function rve(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function nve(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function ave(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function ive(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function sve(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function ove(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function lve(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,j.default)(e,t)}function cve(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function uve(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,j.default)(e,t)}function dve(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,j.default)(e,t)}function fve(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,j.default)(e,t)}function pve(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,j.default)(e,t)}function mve(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function hve(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,j.default)(e,t)}function gve(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function yve(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,j.default)(e,t)}function xve(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,j.default)(e,t)}function bve(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,j.default)(e,t)}function vve(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,j.default)(e,t)}function Sve(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,j.default)(e,t)}function Tve(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,j.default)(e,t)}function wve(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,j.default)(e,t)}function Cve(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,j.default)(e,t)}function Pve(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,j.default)(e,t)}function Eve(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,j.default)(e,t)}function Ive(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,j.default)(e,t)}function Ave(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,j.default)(e,t)}function Nve(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,j.default)(e,t)}function kve(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,j.default)(e,t)}function _ve(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,j.default)(e,t)}function Lve(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,j.default)(e,t)}function Rve(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,j.default)(e,t)}function Dve(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,j.default)(e,t)}function Mve(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,j.default)(e,t)}function Ove(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,j.default)(e,t)}function Fve(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,j.default)(e,t)}function Bve(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,j.default)(e,t)}function $ve(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,j.default)(e,t)}function jve(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,j.default)(e,t)}function zve(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,j.default)(e,t)}function Uve(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,j.default)(e,t)}function Vve(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,j.default)(e,t)}function qve(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,j.default)(e,t)}function Hve(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,j.default)(e,t)}function Gve(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,j.default)(e,t)}function Kve(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,j.default)(e,t)}function Wve(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,j.default)(e,t)}function Xve(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,j.default)(e,t)}function Yve(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,j.default)(e,t)}function Jve(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,j.default)(e,t)}function Zve(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,j.default)(e,t)}function Qve(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,j.default)(e,t)}function e0e(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,j.default)(e,t)}function t0e(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,j.default)(e,t)}function r0e(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,j.default)(e,t)}function n0e(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,j.default)(e,t)}function a0e(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,j.default)(e,t)}function i0e(e,t){return!e||e.type!=="VoidPattern"?!1:t==null||(0,j.default)(e,t)}function s0e(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,j.default)(e,t)}function o0e(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,j.default)(e,t)}function l0e(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,j.default)(e,t)}function c0e(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,j.default)(e,t)}function u0e(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,j.default)(e,t)}function d0e(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,j.default)(e,t)}function f0e(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,j.default)(e,t)}function p0e(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,j.default)(e,t)}function m0e(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,j.default)(e,t)}function h0e(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,j.default)(e,t)}function g0e(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,j.default)(e,t)}function y0e(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,j.default)(e,t)}function x0e(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,j.default)(e,t)}function b0e(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,j.default)(e,t)}function v0e(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,j.default)(e,t)}function S0e(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,j.default)(e,t)}function T0e(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,j.default)(e,t)}function w0e(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,j.default)(e,t)}function C0e(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,j.default)(e,t)}function P0e(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,j.default)(e,t)}function E0e(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,j.default)(e,t)}function I0e(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,j.default)(e,t)}function A0e(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,j.default)(e,t)}function N0e(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,j.default)(e,t)}function k0e(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,j.default)(e,t)}function _0e(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,j.default)(e,t)}function L0e(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,j.default)(e,t)}function R0e(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,j.default)(e,t)}function D0e(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,j.default)(e,t)}function M0e(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,j.default)(e,t)}function O0e(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,j.default)(e,t)}function F0e(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,j.default)(e,t)}function B0e(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,j.default)(e,t)}function $0e(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,j.default)(e,t)}function j0e(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,j.default)(e,t)}function z0e(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,j.default)(e,t)}function U0e(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,j.default)(e,t)}function V0e(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,j.default)(e,t)}function q0e(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,j.default)(e,t)}function H0e(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,j.default)(e,t)}function G0e(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,j.default)(e,t)}function K0e(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,j.default)(e,t)}function W0e(e,t){return!e||e.type!=="TSTemplateLiteralType"?!1:t==null||(0,j.default)(e,t)}function X0e(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,j.default)(e,t)}function Y0e(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,j.default)(e,t)}function J0e(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,j.default)(e,t)}function Z0e(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,j.default)(e,t)}function Q0e(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,j.default)(e,t)}function eSe(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,j.default)(e,t)}function tSe(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,j.default)(e,t)}function rSe(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,j.default)(e,t)}function nSe(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,j.default)(e,t)}function aSe(e,t){return!e||e.type!=="TSEnumBody"?!1:t==null||(0,j.default)(e,t)}function iSe(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,j.default)(e,t)}function sSe(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,j.default)(e,t)}function oSe(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,j.default)(e,t)}function lSe(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,j.default)(e,t)}function cSe(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,j.default)(e,t)}function uSe(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,j.default)(e,t)}function dSe(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,j.default)(e,t)}function fSe(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,j.default)(e,t)}function pSe(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,j.default)(e,t)}function mSe(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,j.default)(e,t)}function hSe(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function gSe(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,j.default)(e,t)}function ySe(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,j.default)(e,t)}function xSe(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,j.default)(e,t)}function bSe(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,j.default)(e,t)}function vSe(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,j.default)(e,t)}function SSe(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,j.default)(e,t)}function TSe(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,j.default)(e,t)}function wSe(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,j.default)(e,t)}function CSe(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,j.default)(e,t)}function PSe(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,j.default)(e,t)}function ESe(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,j.default)(e,t)}function ISe(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function ASe(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function NSe(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function kSe(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function _Se(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,j.default)(e,t)}function LSe(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function RSe(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function DSe(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,j.default)(e,t)}function MSe(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,j.default)(e,t)}function OSe(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,j.default)(e,t)}function FSe(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,j.default)(e,t)}function BSe(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,j.default)(e,t)}function $Se(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,j.default)(e,t)}function jSe(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,j.default)(e,t)}function zSe(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,j.default)(e,t)}function USe(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,j.default)(e,t)}function VSe(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,j.default)(e,t)}function qSe(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,j.default)(e,t)}function HSe(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,j.default)(e,t)}function GSe(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,j.default)(e,t)}function KSe(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,j.default)(e,t)}function WSe(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,j.default)(e,t)}function XSe(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,j.default)(e,t)}function YSe(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,j.default)(e,t)}function IV(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,j.default)(e,t)}function JSe(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,j.default)(e,t)}function ZSe(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,j.default)(e,t)}function QSe(e,t){if(!e)return!1;switch(e.type){case"ClassAccessorProperty":break;default:return!1}return t==null||(0,j.default)(e,t)}function eTe(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,j.default)(e,t)}function tTe(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,j.default)(e,t)}function rTe(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,j.default)(e,t)}function nTe(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,j.default)(e,t)}function aTe(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,j.default)(e,t)}function iTe(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,j.default)(e,t)}function sTe(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,j.default)(e,t)}function oTe(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,j.default)(e,t)}function lTe(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,j.default)(e,t)}function cTe(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,j.default)(e,t)}function uTe(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,j.default)(e,t)}function dTe(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,j.default)(e,t)}function fTe(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,j.default)(e,t)}function pTe(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return t==null||(0,j.default)(e,t)}function mTe(e,t){return(0,T0.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,j.default)(e,t)}function hTe(e,t){return(0,T0.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,j.default)(e,t)}function gTe(e,t){return(0,T0.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,j.default)(e,t)}function yTe(e,t){return(0,T0.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,j.default)(e,t)}function xTe(e,t){return(0,T0.default)("isModuleDeclaration","isImportOrExportDeclaration"),IV(e,t)}});var UL=ae(zL=>{"use strict";Object.defineProperty(zL,"__esModule",{value:!0});zL.default=bTe;var jm=va();function AV(e){return(0,jm.isMemberExpression)(e)||(0,jm.isMetaProperty)(e)}function bTe(e,t,r){if(!AV(e))return!1;let n=Array.isArray(t)?t:t.split("."),a=[],i;for(i=e;AV(i);i=(s=i.object)!=null?s:i.meta){var s;a.push(i.property)}if(a.push(i),a.lengthn.length)return!1;for(let o=0,l=a.length-1;o{"use strict";Object.defineProperty(VL,"__esModule",{value:!0});VL.default=STe;var vTe=UL();function STe(e,t){let r=e.split(".");return n=>(0,vTe.default)(n,r,t)}});var NV=ae(C1=>{"use strict";Object.defineProperty(C1,"__esModule",{value:!0});C1.default=void 0;var TTe=qL(),wTe=(0,TTe.default)("React.Component"),amt=C1.default=wTe});var kV=ae(HL=>{"use strict";Object.defineProperty(HL,"__esModule",{value:!0});HL.default=CTe;function CTe(e){return!!e&&/^[a-z]/.test(e)}});var P1=ae(GL=>{"use strict";Object.defineProperty(GL,"__esModule",{value:!0});GL.default=PTe;var _V=bl();function PTe(e,t){if(e===t)return!0;if(e==null||_V.ALIAS_KEYS[t])return!1;let r=_V.FLIPPED_ALIAS_KEYS[t];return!!(r!=null&&r.includes(e))}});var WL=ae(KL=>{"use strict";Object.defineProperty(KL,"__esModule",{value:!0});KL.default=ITe;var ETe=bl();function ITe(e,t){if(e===t)return!0;let r=ETe.PLACEHOLDERS_ALIAS[e];return!!(r!=null&&r.includes(t))}});var Ty=ae(XL=>{"use strict";Object.defineProperty(XL,"__esModule",{value:!0});XL.default=LTe;var ATe=w1(),NTe=P1(),kTe=WL(),_Te=bl();function LTe(e,t,r){return t?(0,NTe.default)(t.type,e)?r===void 0?!0:(0,ATe.default)(t,r):!r&&t.type==="Placeholder"&&e in _Te.FLIPPED_ALIAS_KEYS?(0,kTe.default)(t.expectedNode,e):!1:!1}});var OV=ae(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.isIdentifierChar=MV;w0.isIdentifierName=OTe;w0.isIdentifierStart=DV;var JL="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u09FC\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",LV="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",RTe=new RegExp("["+JL+"]"),DTe=new RegExp("["+JL+LV+"]");JL=LV=null;var RV=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],MTe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function YL(e,t){let r=65536;for(let n=0,a=t.length;ne)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function DV(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&RTe.test(String.fromCharCode(e)):YL(e,RV)}function MV(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&DTe.test(String.fromCharCode(e)):YL(e,RV)||YL(e,MTe)}function OTe(e){let t=!0;for(let r=0;r{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.isKeyword=zTe;zm.isReservedWord=FV;zm.isStrictBindOnlyReservedWord=$V;zm.isStrictBindReservedWord=jTe;zm.isStrictReservedWord=BV;var ZL={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},FTe=new Set(ZL.keyword),BTe=new Set(ZL.strict),$Te=new Set(ZL.strictBind);function FV(e,t){return t&&e==="await"||e==="enum"}function BV(e,t){return FV(e,t)||BTe.has(e)}function $V(e){return $Te.has(e)}function jTe(e,t){return BV(e,t)||$V(e)}function zTe(e){return FTe.has(e)}});var P0=ae(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Object.defineProperty(Jc,"isIdentifierChar",{enumerable:!0,get:function(){return QL.isIdentifierChar}});Object.defineProperty(Jc,"isIdentifierName",{enumerable:!0,get:function(){return QL.isIdentifierName}});Object.defineProperty(Jc,"isIdentifierStart",{enumerable:!0,get:function(){return QL.isIdentifierStart}});Object.defineProperty(Jc,"isKeyword",{enumerable:!0,get:function(){return C0.isKeyword}});Object.defineProperty(Jc,"isReservedWord",{enumerable:!0,get:function(){return C0.isReservedWord}});Object.defineProperty(Jc,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return C0.isStrictBindOnlyReservedWord}});Object.defineProperty(Jc,"isStrictBindReservedWord",{enumerable:!0,get:function(){return C0.isStrictBindReservedWord}});Object.defineProperty(Jc,"isStrictReservedWord",{enumerable:!0,get:function(){return C0.isStrictReservedWord}});var QL=OV(),C0=jV()});var wy=ae(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});tR.default=UTe;var eR=P0();function UTe(e,t=!0){return typeof e!="string"||t&&((0,eR.isKeyword)(e)||(0,eR.isStrictReservedWord)(e,!0))?!1:(0,eR.isIdentifierName)(e)}});var qV=ae(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});E0.readCodePoint=VV;E0.readInt=UV;E0.readStringContents=qTe;var VTe=function(t){return t>=48&&t<=57},zV={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},E1={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function qTe(e,t,r,n,a,i){let s=r,o=n,l=a,c="",u=null,d=r,{length:f}=t;for(;;){if(r>=f){i.unterminated(s,o,l),c+=t.slice(d,r);break}let p=t.charCodeAt(r);if(HTe(e,p,t,r)){c+=t.slice(d,r);break}if(p===92){c+=t.slice(d,r);let m=GTe(t,r,n,a,e==="template",i);m.ch===null&&!u?u={pos:r,lineStart:n,curLine:a}:c+=m.ch,{pos:r,lineStart:n,curLine:a}=m,d=r}else p===8232||p===8233?(++r,++a,n=r):p===10||p===13?e==="template"?(c+=t.slice(d,r)+` -`,++r,p===13&&t.charCodeAt(r)===10&&++r,++a,d=n=r):i.unterminated(s,o,l):++r}return{pos:r,str:c,firstInvalidLoc:u,lineStart:n,curLine:a,containsInvalid:!!u}}function HTe(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function GTe(e,t,r,n,a,i){let s=!a;t++;let o=c=>({pos:t,ch:c,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o(` -`);case 114:return o("\r");case 120:{let c;return{code:c,pos:t}=rR(e,t,r,n,2,!1,s,i),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:t}=VV(e,t,r,n,s,i),o(c===null?null:String.fromCodePoint(c))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(a)return o(null);i.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){let c=t-1,d=/^[0-7]+/.exec(e.slice(c,t+2))[0],f=parseInt(d,8);f>255&&(d=d.slice(0,-1),f=parseInt(d,8)),t+=d.length-1;let p=e.charCodeAt(t);if(d!=="0"||p===56||p===57){if(a)return o(null);i.strictNumericEscape(c,r,n)}return o(String.fromCharCode(f))}return o(String.fromCharCode(l))}}function rR(e,t,r,n,a,i,s,o){let l=t,c;return{n:c,pos:t}=UV(e,t,r,n,16,a,i,!1,o,!s),c===null&&(s?o.invalidEscapeSequence(l,r,n):t=l-1),{code:c,pos:t}}function UV(e,t,r,n,a,i,s,o,l,c){let u=t,d=a===16?zV.hex:zV.decBinOct,f=a===16?E1.hex:a===10?E1.dec:a===8?E1.oct:E1.bin,p=!1,m=0;for(let h=0,x=i??1/0;h=97?y=g-97+10:g>=65?y=g-65+10:VTe(g)?y=g-48:y=1/0,y>=a){if(y<=9&&c)return{n:null,pos:t};if(y<=9&&l.invalidDigit(t,r,n,a))y=0;else if(s)y=0,p=!0;else break}++t,m=m*a+y}return t===u||i!=null&&t-u!==i||p?{n:null,pos:t}:{n:m,pos:t}}function VV(e,t,r,n,a,i){let s=e.charCodeAt(t),o;if(s===123){if(++t,{code:o,pos:t}=rR(e,t,r,n,e.indexOf("}",t)-t,!0,a,i),++t,o!==null&&o>1114111)if(a)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=rR(e,t,r,n,4,!1,a,i));return{code:o,pos:t}}});var Cy=ae(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.UPDATE_OPERATORS=Pr.UNARY_OPERATORS=Pr.STRING_UNARY_OPERATORS=Pr.STATEMENT_OR_BLOCK_KEYS=Pr.NUMBER_UNARY_OPERATORS=Pr.NUMBER_BINARY_OPERATORS=Pr.LOGICAL_OPERATORS=Pr.INHERIT_KEYS=Pr.FOR_INIT_KEYS=Pr.FLATTENABLE_KEYS=Pr.EQUALITY_BINARY_OPERATORS=Pr.COMPARISON_BINARY_OPERATORS=Pr.COMMENT_KEYS=Pr.BOOLEAN_UNARY_OPERATORS=Pr.BOOLEAN_NUMBER_BINARY_OPERATORS=Pr.BOOLEAN_BINARY_OPERATORS=Pr.BINARY_OPERATORS=Pr.ASSIGNMENT_OPERATORS=void 0;var hmt=Pr.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],gmt=Pr.FLATTENABLE_KEYS=["body","expressions"],ymt=Pr.FOR_INIT_KEYS=["left","init"],xmt=Pr.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],KTe=Pr.LOGICAL_OPERATORS=["||","&&","??"],bmt=Pr.UPDATE_OPERATORS=["++","--"],WTe=Pr.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],XTe=Pr.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],YTe=Pr.COMPARISON_BINARY_OPERATORS=[...XTe,"in","instanceof"],JTe=Pr.BOOLEAN_BINARY_OPERATORS=[...YTe,...WTe],HV=Pr.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],vmt=Pr.BINARY_OPERATORS=["+",...HV,...JTe,"|>"],Smt=Pr.ASSIGNMENT_OPERATORS=["=","+=",...HV.map(e=>e+"="),...KTe.map(e=>e+"=")],ZTe=Pr.BOOLEAN_UNARY_OPERATORS=["delete","!"],QTe=Pr.NUMBER_UNARY_OPERATORS=["+","-","~"],ewe=Pr.STRING_UNARY_OPERATORS=["typeof"],Tmt=Pr.UNARY_OPERATORS=["void","throw",...ZTe,...QTe,...ewe],wmt=Pr.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};Pr.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),Pr.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var Zc=ae(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.allExpandedTypes=Rr.VISITOR_KEYS=Rr.NODE_UNION_SHAPES__PRIVATE=Rr.NODE_PARENT_VALIDATIONS=Rr.NODE_FIELDS=Rr.FLIPPED_ALIAS_KEYS=Rr.DEPRECATED_KEYS=Rr.BUILDER_KEYS=Rr.ALIAS_KEYS=void 0;Rr.arrayOf=KV;Rr.arrayOfType=WV;Rr.assertEach=XV;Rr.assertNodeOrValueType=mwe;Rr.assertNodeType=A1;Rr.assertOneOf=fwe;Rr.assertOptionalChainStart=gwe;Rr.assertShape=hwe;Rr.assertValueType=sR;Rr.chain=YV;Rr.default=JV;Rr.defineAliasedType=bwe;Rr.validate=iR;Rr.validateArrayOfType=dwe;Rr.validateOptional=cwe;Rr.validateOptionalType=uwe;Rr.validateType=lwe;var GV=Ty(),I0=N1(),twe=Rr.VISITOR_KEYS={},rwe=Rr.ALIAS_KEYS={},nR=Rr.FLIPPED_ALIAS_KEYS={},nwe=Rr.NODE_FIELDS={},awe=Rr.BUILDER_KEYS={},iwe=Rr.DEPRECATED_KEYS={},swe=Rr.NODE_PARENT_VALIDATIONS={},owe=Rr.NODE_UNION_SHAPES__PRIVATE={};function I1(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function iR(e){return{validate:e}}function lwe(...e){return iR(A1(...e))}function cwe(e){return{validate:e,optional:!0}}function uwe(...e){return{validate:A1(...e),optional:!0}}function KV(e){return YV(sR("array"),XV(e))}function WV(...e){return KV(A1(...e))}function dwe(...e){return iR(WV(...e))}function XV(e){let t=process.env.BABEL_TYPES_8_BREAKING?I0.validateChild:()=>{};function r(n,a,i){if(!Array.isArray(i))return;let s=0,o={toString(){return`${a}[${s}]`}};for(;s=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var ywe=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),xwe=new Set(["default","optional","deprecated","validate"]),aR={};function bwe(...e){return(t,r={})=>{let n=r.aliases;if(!n){var a;r.inherits&&(n=(a=aR[r.inherits].aliases)==null?void 0:a.slice()),n??(n=[]),r.aliases=n}let i=e.filter(s=>!n.includes(s));n.unshift(...i),JV(t,r)}}function JV(e,t={}){let r=t.inherits&&aR[t.inherits]||{},n=t.fields;if(!n&&(n={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let c=r.fields[l],u=c.default;if(Array.isArray(u)?u.length>0:u&&typeof u=="object")throw new Error("field defaults can only be primitives or empty arrays currently");n[l]={default:Array.isArray(u)?[]:u,optional:c.optional,deprecated:c.deprecated,validate:c.validate}}}let a=t.visitor||r.visitor||[],i=t.aliases||r.aliases||[],s=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!ywe.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(iwe[t.deprecatedAlias]=e);for(let o of a.concat(s))n[o]=n[o]||{};for(let o of Object.keys(n)){let l=n[o];l.default!==void 0&&!s.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=sR(I1(l.default)));for(let c of Object.keys(l))if(!xwe.has(c))throw new Error(`Unknown field key "${c}" on ${e}.${o}`)}twe[e]=t.visitor=a,awe[e]=t.builder=s,nwe[e]=t.fields=n,rwe[e]=t.aliases=i,i.forEach(o=>{nR[o]=nR[o]||[],nR[o].push(e)}),t.validate&&(swe[e]=t.validate),t.unionShape&&(owe[e]=t.unionShape),aR[e]=t}});var N0=ae(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.patternLikeCommon=_i.importAttributes=_i.functionTypeAnnotationCommon=_i.functionDeclarationCommon=_i.functionCommon=_i.classMethodOrPropertyUnionShapeCommon=_i.classMethodOrPropertyCommon=_i.classMethodOrDeclareMethodCommon=void 0;var Ps=Ty(),vwe=wy(),ZV=P0(),Swe=qV(),Py=Cy(),z=Zc(),A0=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,z.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});_i.classMethodOrPropertyUnionShapeCommon=A0;var Je=(0,z.defineAliasedType)("Standardized");Je("ArrayExpression",{fields:{elements:{validate:(0,z.arrayOf)((0,z.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});Je("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){let e=(0,z.assertOneOf)(...Py.ASSIGNMENT_OPERATORS),t=(0,z.assertOneOf)("=");return function(r,n,a){((0,Ps.default)("Pattern",r.left)?t:e)(r,n,a)}}(),{oneOf:Py.ASSIGNMENT_OPERATORS}):(0,z.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,z.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,z.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});Je("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,z.assertOneOf)(...Py.BINARY_OPERATORS)},left:{validate:function(){let e=(0,z.assertNodeType)("Expression"),t=(0,z.assertNodeType)("Expression","PrivateName");return Object.assign(function(n,a,i){(n.operator==="in"?t:e)(n,a,i)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,z.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});Je("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,z.assertValueType)("string")}}});Je("Directive",{visitor:["value"],fields:{value:{validate:(0,z.assertNodeType)("DirectiveLiteral")}}});Je("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,z.assertValueType)("string")}}});Je("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,z.arrayOfType)("Directive"),default:[]},body:(0,z.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});Je("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,z.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Je("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,z.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,z.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,z.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,z.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,z.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Je("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,z.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,z.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});Je("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,z.assertNodeType)("Expression")},consequent:{validate:(0,z.assertNodeType)("Expression")},alternate:{validate:(0,z.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});Je("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,z.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Je("DebuggerStatement",{aliases:["Statement"]});Je("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,z.assertNodeType)("Expression")},body:{validate:(0,z.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});Je("EmptyStatement",{aliases:["Statement"]});Je("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,z.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});Je("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,z.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertEach)((0,z.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,z.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});Je("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,z.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,z.assertNodeType)("Expression")},body:{validate:(0,z.assertNodeType)("Statement")}}});Je("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,z.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,z.assertNodeType)("Expression"),optional:!0},update:{validate:(0,z.assertNodeType)("Expression"),optional:!0},body:{validate:(0,z.assertNodeType)("Statement")}}});var Ey=()=>({params:(0,z.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});_i.functionCommon=Ey;var Um=()=>({returnType:{validate:(0,z.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,z.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});_i.functionTypeAnnotationCommon=Um;var QV=()=>Object.assign({},Ey(),{declare:{validate:(0,z.assertValueType)("boolean"),optional:!0},id:{validate:(0,z.assertNodeType)("Identifier"),optional:!0}});_i.functionDeclarationCommon=QV;Je("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},QV(),Um(),{body:{validate:(0,z.assertNodeType)("BlockStatement")},predicate:{validate:(0,z.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,z.assertNodeType)("Identifier");return function(t,r,n){(0,Ps.default)("ExportDefaultDeclaration",t)||e(n,"id",n.id)}}():void 0});Je("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Ey(),Um(),{id:{validate:(0,z.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,z.assertNodeType)("BlockStatement")},predicate:{validate:(0,z.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var Iy=()=>({typeAnnotation:{validate:(0,z.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,z.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0}});_i.patternLikeCommon=Iy;Je("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Iy(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,vwe.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,z.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let n=/\.(\w+)$/.exec(t.toString());if(!n)return;let[,a]=n,i={computed:!1};if(a==="property"){if((0,Ps.default)("MemberExpression",e,i)||(0,Ps.default)("OptionalMemberExpression",e,i))return}else if(a==="key"){if((0,Ps.default)("Property",e,i)||(0,Ps.default)("Method",e,i))return}else if(a==="exported"){if((0,Ps.default)("ExportSpecifier",e))return}else if(a==="imported"){if((0,Ps.default)("ImportSpecifier",e,{imported:r}))return}else if(a==="meta"&&(0,Ps.default)("MetaProperty",e,{meta:r}))return;if(((0,ZV.isKeyword)(r.name)||(0,ZV.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});Je("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,z.assertNodeType)("Expression")},consequent:{validate:(0,z.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,z.assertNodeType)("Statement")}}});Je("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,z.assertNodeType)("Identifier")},body:{validate:(0,z.assertNodeType)("Statement")}}});Je("StringLiteral",{builder:["value"],fields:{value:{validate:(0,z.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Je("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,z.chain)((0,z.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let n=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});Je("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});Je("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,z.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});Je("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,z.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("string"),Object.assign(function(e,t,r){let n=/[^dgimsuvy]/.exec(r);if(n)throw new TypeError(`"${n[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,z.assertValueType)("string"),default:""}}});Je("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,z.assertOneOf)(...Py.LOGICAL_OPERATORS)},left:{validate:(0,z.assertNodeType)("Expression")},right:{validate:(0,z.assertNodeType)("Expression")}}});Je("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,z.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,z.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,z.assertNodeType)("Expression","Super")},property:{validate:function(){let e=(0,z.assertNodeType)("Identifier","PrivateName"),t=(0,z.assertNodeType)("Expression"),r=function(n,a,i){(n.computed?t:e)(n,a,i)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,z.assertValueType)("boolean"),optional:!0}})});Je("NewExpression",{inherits:"CallExpression"});Je("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,z.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,z.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,z.arrayOfType)("Directive"),default:[]},body:(0,z.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});Je("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,z.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});Je("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},A0(),{fields:Object.assign({},Ey(),Um(),{kind:Object.assign({validate:(0,z.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let e=(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,z.assertNodeType)("Expression"),r=function(n,a,i){(n.computed?t:e)(n,a,i)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,z.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));Je("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,z.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:function(){let e=(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,z.assertNodeType)("Expression");return Object.assign(function(n,a,i){(n.computed?t:e)(n,a,i)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,z.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,Ps.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,z.assertValueType)("boolean"),default:!1},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,z.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,z.assertNodeType)("Expression");return function(r,n,a){((0,Ps.default)("ObjectPattern",r)?e:t)(a,"value",a.value)}}():void 0});Je("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},Iy(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,z.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");let[,n,a]=r;if(e[n].length>+a+1)throw new TypeError(`RestElement must be last element of ${n}`)}:void 0});Je("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,z.assertNodeType)("Expression"),optional:!0}}});Je("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,z.validateArrayOfType)("Expression")},aliases:["Expression"]});Je("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,z.assertNodeType)("Expression")}}});Je("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,z.assertNodeType)("Expression"),optional:!0},consequent:(0,z.validateArrayOfType)("Statement")}});Je("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,z.assertNodeType)("Expression")},cases:(0,z.validateArrayOfType)("SwitchCase")}});Je("ThisExpression",{aliases:["Expression"]});Je("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,z.assertNodeType)("Expression")}}});Je("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,z.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,z.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,z.assertNodeType)("BlockStatement")}}});Je("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,z.assertNodeType)("Expression")},operator:{validate:(0,z.assertOneOf)(...Py.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});Je("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertNodeType)("Identifier","MemberExpression"):(0,z.assertNodeType)("Expression")},operator:{validate:(0,z.assertOneOf)(...Py.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});Je("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,z.assertValueType)("boolean"),optional:!0},kind:{validate:(0,z.assertOneOf)("var","let","const","using","await using")},declarations:(0,z.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,z.assertNodeType)("Identifier","Placeholder"),t=(0,z.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,z.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(n,a,i){let{kind:s,declarations:o}=i,l=(0,Ps.default)("ForXStatement",n,{left:i});if(l&&o.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${n.type}`);for(let c of o)s==="const"||s==="let"||s==="var"?!l&&!c.init?e(c,"id",c.id):t(c,"id",c.id):r(c,"id",c.id)}})():void 0});Je("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,z.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,z.assertValueType)("boolean")},init:{optional:!0,validate:(0,z.assertNodeType)("Expression")}}});Je("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,z.assertNodeType)("Expression")},body:{validate:(0,z.assertNodeType)("Statement")}}});Je("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,z.assertNodeType)("Expression")},body:{validate:(0,z.assertNodeType)("Statement")}}});Je("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Iy(),{left:{validate:(0,z.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,z.assertNodeType)("Expression")},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0}})});Je("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Iy(),{elements:{validate:(0,z.chain)((0,z.assertValueType)("array"),(0,z.assertEach)((0,z.assertNodeOrValueType)("null","PatternLike")))}})});Je("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Ey(),Um(),{expression:{validate:(0,z.assertValueType)("boolean")},body:{validate:(0,z.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,z.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});Je("ClassBody",{visitor:["body"],fields:{body:(0,z.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});Je("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,z.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,z.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,z.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,z.assertNodeType)("Expression")},superTypeParameters:{validate:(0,z.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,z.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,z.assertNodeType)("InterfaceExtends"),optional:!0}}});Je("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,z.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,z.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,z.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,z.assertNodeType)("Expression")},superTypeParameters:{validate:(0,z.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,z.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,z.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,z.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,z.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,z.assertNodeType)("Identifier");return function(t,r,n){(0,Ps.default)("ExportDefaultDeclaration",t)||e(n,"id",n.id)}}():void 0});var oR=_i.importAttributes={attributes:{optional:!0,validate:(0,z.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,z.arrayOfType)("ImportAttribute")}};Je("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,z.assertNodeType)("StringLiteral")},exportKind:(0,z.validateOptional)((0,z.assertOneOf)("type","value"))},oR)});Je("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,z.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,z.validateOptional)((0,z.assertOneOf)("value"))}});Je("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,z.assertNodeType)("Declaration")}},oR,{specifiers:{default:[],validate:(0,z.arrayOf)(function(){let e=(0,z.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,z.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,n,a){(r.source?e:t)(r,n,a)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:(0,z.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,z.validateOptional)((0,z.assertOneOf)("type","value"))})});Je("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,z.assertNodeType)("Identifier")},exported:{validate:(0,z.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,z.assertOneOf)("type","value"),optional:!0}}});Je("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,z.assertNodeType)("VariableDeclaration","LVal");let e=(0,z.assertNodeType)("VariableDeclaration"),t=(0,z.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,n,a){(0,Ps.default)("VariableDeclaration",a)?e(r,n,a):t(r,n,a)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,z.assertNodeType)("Expression")},body:{validate:(0,z.assertNodeType)("Statement")},await:{default:!1}}});Je("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},oR,{module:{optional:!0,validate:(0,z.assertValueType)("boolean")},phase:{default:null,validate:(0,z.assertOneOf)("source","defer")},specifiers:(0,z.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,z.assertNodeType)("StringLiteral")},importKind:{validate:(0,z.assertOneOf)("type","typeof","value"),optional:!0}})});Je("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,z.assertNodeType)("Identifier")}}});Je("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,z.assertNodeType)("Identifier")}}});Je("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,z.assertNodeType)("Identifier")},imported:{validate:(0,z.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,z.assertOneOf)("type","typeof","value"),optional:!0}}});Je("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,z.assertOneOf)("source","defer")},source:{validate:(0,z.assertNodeType)("Expression")},options:{validate:(0,z.assertNodeType)("Expression"),optional:!0}}});Je("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let n;switch(r.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta";break}if(!(0,Ps.default)("Identifier",e.property,{name:n}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,z.assertNodeType)("Identifier")},property:{validate:(0,z.assertNodeType)("Identifier")}}});var k1=()=>({abstract:{validate:(0,z.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,z.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,z.assertValueType)("boolean"),optional:!0},key:{validate:(0,z.chain)(function(){let e=(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,z.assertNodeType)("Expression");return function(r,n,a){(r.computed?t:e)(r,n,a)}}(),(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});_i.classMethodOrPropertyCommon=k1;var lR=()=>Object.assign({},Ey(),k1(),{params:(0,z.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,z.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,z.chain)((0,z.assertValueType)("string"),(0,z.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0}});_i.classMethodOrDeclareMethodCommon=lR;Je("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},A0(),{fields:Object.assign({},lR(),Um(),{body:{validate:(0,z.assertNodeType)("BlockStatement")}})}));Je("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Iy(),{properties:(0,z.validateArrayOfType)("RestElement","ObjectProperty")})});Je("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,z.assertNodeType)("Expression")}}});Je("Super",{aliases:["Expression"]});Je("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,z.assertNodeType)("Expression")},quasi:{validate:(0,z.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,z.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Je("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,z.chain)((0,z.assertShape)({raw:{validate:(0,z.assertValueType)("string")},cooked:{validate:(0,z.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,n=!1,a=()=>{throw new Error("Internal @babel/types error.")},{str:i,firstInvalidLoc:s}=(0,Swe.readStringContents)("template",r,0,0,0,{unterminated(){n=!0},strictNumericEscape:a,invalidEscapeSequence:a,numericSeparatorInEscapeSequence:a,unexpectedNumericSeparator:a,invalidDigit:a,invalidCodePoint:a});if(!n)throw new Error("Invalid raw");t.value.cooked=s?null:i})},tail:{default:!1}}});Je("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,z.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,z.chain)((0,z.assertValueType)("array"),(0,z.assertEach)((0,z.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions. -Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Je("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,z.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,z.assertNodeType)("Expression")}}});Je("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,z.assertNodeType)("Expression")}}});Je("Import",{aliases:["Expression"]});Je("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,z.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Je("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,z.assertNodeType)("Identifier")}}});Je("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,z.assertNodeType)("Expression")},property:{validate:function(){let e=(0,z.assertNodeType)("Identifier"),t=(0,z.assertNodeType)("Expression");return Object.assign(function(n,a,i){(n.computed?t:e)(n,a,i)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("boolean"),(0,z.assertOptionalChainStart)()):(0,z.assertValueType)("boolean")}}});Je("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,z.assertNodeType)("Expression")},arguments:(0,z.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("boolean"),(0,z.assertOptionalChainStart)()):(0,z.assertValueType)("boolean")},typeArguments:{validate:(0,z.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,z.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Je("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},A0(),{fields:Object.assign({},k1(),{value:{validate:(0,z.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,z.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,z.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,z.assertValueType)("boolean"),optional:!0},declare:{validate:(0,z.assertValueType)("boolean"),optional:!0},variance:{validate:(0,z.assertNodeType)("Variance"),optional:!0}})}));Je("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},A0(!0),{fields:Object.assign({},k1(),{key:{validate:(0,z.chain)(function(){let e=(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,z.assertNodeType)("Expression");return function(r,n,a){(r.computed?t:e)(r,n,a)}}(),(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,z.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,z.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,z.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,z.assertValueType)("boolean"),optional:!0},declare:{validate:(0,z.assertValueType)("boolean"),optional:!0},variance:{validate:(0,z.assertNodeType)("Variance"),optional:!0}})}));Je("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,z.assertNodeType)("PrivateName")},value:{validate:(0,z.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,z.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,z.assertValueType)("boolean"),default:!1},readonly:{validate:(0,z.assertValueType)("boolean"),optional:!0},optional:{validate:(0,z.assertValueType)("boolean"),optional:!0},definite:{validate:(0,z.assertValueType)("boolean"),optional:!0},variance:{validate:(0,z.assertNodeType)("Variance"),optional:!0}}});Je("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},lR(),Um(),{kind:{validate:(0,z.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,z.assertNodeType)("PrivateName")},body:{validate:(0,z.assertNodeType)("BlockStatement")}})});Je("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,z.assertNodeType)("Identifier")}}});Je("StaticBlock",{visitor:["body"],fields:{body:(0,z.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});Je("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,z.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,z.assertNodeType)("StringLiteral")}}})});var t9=ae(()=>{"use strict";var e9=N0(),Se=Zc(),At=(0,Se.defineAliasedType)("Flow"),cR=e=>{let t=e==="DeclareClass";At(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,Se.validateType)("Identifier"),typeParameters:(0,Se.validateOptionalType)("TypeParameterDeclaration"),extends:(0,Se.validateOptional)((0,Se.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,Se.validateOptional)((0,Se.arrayOfType)("InterfaceExtends")),implements:(0,Se.validateOptional)((0,Se.arrayOfType)("ClassImplements"))}:{},{body:(0,Se.validateType)("ObjectTypeAnnotation")})})};At("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});At("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,Se.validateType)("FlowType")}});At("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});At("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,Se.validate)((0,Se.assertValueType)("boolean"))}});At("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});At("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,Se.validateType)("Identifier"),typeParameters:(0,Se.validateOptionalType)("TypeParameterInstantiation")}});cR("DeclareClass");At("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,Se.validateType)("Identifier"),predicate:(0,Se.validateOptionalType)("DeclaredPredicate")}});cR("DeclareInterface");At("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,Se.validateType)("Identifier","StringLiteral"),body:(0,Se.validateType)("BlockStatement"),kind:(0,Se.validateOptional)((0,Se.assertOneOf)("CommonJS","ES"))}});At("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,Se.validateType)("TypeAnnotation")}});At("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,Se.validateType)("Identifier"),typeParameters:(0,Se.validateOptionalType)("TypeParameterDeclaration"),right:(0,Se.validateType)("FlowType")}});At("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,Se.validateType)("Identifier"),typeParameters:(0,Se.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,Se.validateOptionalType)("FlowType"),impltype:(0,Se.validateOptionalType)("FlowType")}});At("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,Se.validateType)("Identifier")}});At("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,Se.validateOptionalType)("Flow"),specifiers:(0,Se.validateOptional)((0,Se.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,Se.validateOptionalType)("StringLiteral"),default:(0,Se.validateOptional)((0,Se.assertValueType)("boolean"))},e9.importAttributes)});At("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,Se.validateType)("StringLiteral"),exportKind:(0,Se.validateOptional)((0,Se.assertOneOf)("type","value"))},e9.importAttributes)});At("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,Se.validateType)("Flow")}});At("ExistsTypeAnnotation",{aliases:["FlowType"]});At("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,Se.validateOptionalType)("TypeParameterDeclaration"),params:(0,Se.validateArrayOfType)("FunctionTypeParam"),rest:(0,Se.validateOptionalType)("FunctionTypeParam"),this:(0,Se.validateOptionalType)("FunctionTypeParam"),returnType:(0,Se.validateType)("FlowType")}});At("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,Se.validateOptionalType)("Identifier"),typeAnnotation:(0,Se.validateType)("FlowType"),optional:(0,Se.validateOptional)((0,Se.assertValueType)("boolean"))}});At("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,Se.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,Se.validateOptionalType)("TypeParameterInstantiation")}});At("InferredPredicate",{aliases:["FlowPredicate"]});At("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,Se.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,Se.validateOptionalType)("TypeParameterInstantiation")}});cR("InterfaceDeclaration");At("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,Se.validateOptional)((0,Se.arrayOfType)("InterfaceExtends")),body:(0,Se.validateType)("ObjectTypeAnnotation")}});At("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,Se.validate)((0,Se.arrayOfType)("FlowType"))}});At("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});At("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});At("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,Se.validateType)("FlowType")}});At("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,Se.validate)((0,Se.assertValueType)("number"))}});At("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});At("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,Se.validate)((0,Se.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,Se.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,Se.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,Se.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,Se.assertValueType)("boolean"),default:!1},inexact:(0,Se.validateOptional)((0,Se.assertValueType)("boolean"))}});At("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,Se.validateType)("Identifier"),value:(0,Se.validateType)("FlowType"),optional:(0,Se.validate)((0,Se.assertValueType)("boolean")),static:(0,Se.validate)((0,Se.assertValueType)("boolean")),method:(0,Se.validate)((0,Se.assertValueType)("boolean"))}});At("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,Se.validateType)("FlowType"),static:(0,Se.validate)((0,Se.assertValueType)("boolean"))}});At("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,Se.validateOptionalType)("Identifier"),key:(0,Se.validateType)("FlowType"),value:(0,Se.validateType)("FlowType"),static:(0,Se.validate)((0,Se.assertValueType)("boolean")),variance:(0,Se.validateOptionalType)("Variance")}});At("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,Se.validateType)("Identifier","StringLiteral"),value:(0,Se.validateType)("FlowType"),kind:(0,Se.validate)((0,Se.assertOneOf)("init","get","set")),static:(0,Se.validate)((0,Se.assertValueType)("boolean")),proto:(0,Se.validate)((0,Se.assertValueType)("boolean")),optional:(0,Se.validate)((0,Se.assertValueType)("boolean")),variance:(0,Se.validateOptionalType)("Variance"),method:(0,Se.validate)((0,Se.assertValueType)("boolean"))}});At("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,Se.validateType)("FlowType")}});At("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,Se.validateType)("Identifier"),typeParameters:(0,Se.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,Se.validateOptionalType)("FlowType"),impltype:(0,Se.validateType)("FlowType")}});At("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,Se.validateType)("Identifier"),qualification:(0,Se.validateType)("Identifier","QualifiedTypeIdentifier")}});At("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,Se.validate)((0,Se.assertValueType)("string"))}});At("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});At("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});At("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});At("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,Se.validate)((0,Se.arrayOfType)("FlowType"))}});At("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,Se.validateType)("FlowType")}});At("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,Se.validateType)("Identifier"),typeParameters:(0,Se.validateOptionalType)("TypeParameterDeclaration"),right:(0,Se.validateType)("FlowType")}});At("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,Se.validateType)("FlowType")}});At("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,Se.validateType)("Expression"),typeAnnotation:(0,Se.validateType)("TypeAnnotation")}});At("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,Se.validate)((0,Se.assertValueType)("string")),bound:(0,Se.validateOptionalType)("TypeAnnotation"),default:(0,Se.validateOptionalType)("FlowType"),variance:(0,Se.validateOptionalType)("Variance")}});At("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,Se.validate)((0,Se.arrayOfType)("TypeParameter"))}});At("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,Se.validate)((0,Se.arrayOfType)("FlowType"))}});At("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,Se.validate)((0,Se.arrayOfType)("FlowType"))}});At("Variance",{builder:["kind"],fields:{kind:(0,Se.validate)((0,Se.assertOneOf)("minus","plus"))}});At("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});At("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,Se.validateType)("Identifier"),body:(0,Se.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});At("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,Se.validate)((0,Se.assertValueType)("boolean")),members:(0,Se.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,Se.validate)((0,Se.assertValueType)("boolean"))}});At("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,Se.validate)((0,Se.assertValueType)("boolean")),members:(0,Se.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,Se.validate)((0,Se.assertValueType)("boolean"))}});At("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,Se.validate)((0,Se.assertValueType)("boolean")),members:(0,Se.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,Se.validate)((0,Se.assertValueType)("boolean"))}});At("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,Se.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,Se.validate)((0,Se.assertValueType)("boolean"))}});At("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,Se.validateType)("Identifier"),init:(0,Se.validateType)("BooleanLiteral")}});At("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,Se.validateType)("Identifier"),init:(0,Se.validateType)("NumericLiteral")}});At("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,Se.validateType)("Identifier"),init:(0,Se.validateType)("StringLiteral")}});At("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,Se.validateType)("Identifier")}});At("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,Se.validateType)("FlowType"),indexType:(0,Se.validateType)("FlowType")}});At("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,Se.validateType)("FlowType"),indexType:(0,Se.validateType)("FlowType"),optional:(0,Se.validate)((0,Se.assertValueType)("boolean"))}})});var r9=ae(()=>{"use strict";var ea=Zc(),Es=(0,ea.defineAliasedType)("JSX");Es("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,ea.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,ea.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});Es("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,ea.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});Es("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,ea.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,ea.assertNodeType)("JSXClosingElement")},children:(0,ea.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,ea.assertValueType)("boolean"),optional:!0}})});Es("JSXEmptyExpression",{});Es("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,ea.assertNodeType)("Expression","JSXEmptyExpression")}}});Es("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,ea.assertNodeType)("Expression")}}});Es("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,ea.assertValueType)("string")}}});Es("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,ea.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,ea.assertNodeType)("JSXIdentifier")}}});Es("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,ea.assertNodeType)("JSXIdentifier")},name:{validate:(0,ea.assertNodeType)("JSXIdentifier")}}});Es("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,ea.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,ea.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,ea.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,ea.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Es("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,ea.assertNodeType)("Expression")}}});Es("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,ea.assertValueType)("string")}}});Es("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,ea.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,ea.assertNodeType)("JSXClosingFragment")},children:(0,ea.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});Es("JSXOpeningFragment",{aliases:["Immutable"]});Es("JSXClosingFragment",{aliases:["Immutable"]})});var fR=ae(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.PLACEHOLDERS_FLIPPED_ALIAS=_f.PLACEHOLDERS_ALIAS=_f.PLACEHOLDERS=void 0;var Twe=Zc(),wwe=_f.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],dR=_f.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of wwe){let t=Twe.ALIAS_KEYS[e];t!=null&&t.length&&(dR[e]=t)}var uR=_f.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(dR).forEach(e=>{dR[e].forEach(t=>{hasOwnProperty.call(uR,t)||(uR[t]=[]),uR[t].push(e)})})});var n9=ae(()=>{"use strict";var _1=Zc(),Cwe=fR(),Pwe=N0(),pR=(0,_1.defineAliasedType)("Miscellaneous");pR("Noop",{visitor:[]});pR("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,_1.assertNodeType)("Identifier")},expectedNode:{validate:(0,_1.assertOneOf)(...Cwe.PLACEHOLDERS)}},(0,Pwe.patternLikeCommon)())});pR("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,_1.assertValueType)("string")}}})});var a9=ae(()=>{"use strict";var Dn=Zc();(0,Dn.default)("ArgumentPlaceholder",{});(0,Dn.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,Dn.assertNodeType)("Expression")},callee:{validate:(0,Dn.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,Dn.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Dn.assertNodeType)("Expression")}}});(0,Dn.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Dn.assertNodeType)("BlockStatement")},async:{validate:(0,Dn.assertValueType)("boolean"),default:!1}}});(0,Dn.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Dn.assertNodeType)("Identifier")}}});(0,Dn.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,Dn.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,Dn.default)("TupleExpression",{fields:{elements:{validate:(0,Dn.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Dn.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Dn.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Dn.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Dn.assertNodeType)("Program")}},aliases:["Expression"]});(0,Dn.default)("TopicReference",{aliases:["Expression"]});(0,Dn.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Dn.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Dn.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Dn.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Dn.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,Dn.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var d9=ae(()=>{"use strict";var Oe=Zc(),mR=N0(),Ewe=Ty(),Vt=(0,Oe.defineAliasedType)("TypeScript"),no=(0,Oe.assertValueType)("boolean"),i9=()=>({returnType:{validate:(0,Oe.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,Oe.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});Vt("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,Oe.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,Oe.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,Oe.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,Oe.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,Oe.arrayOfType)("Decorator"),optional:!0}}});Vt("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,mR.functionDeclarationCommon)(),i9())});Vt("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,mR.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,mR.classMethodOrDeclareMethodCommon)(),i9())}));Vt("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,Oe.validateType)("TSEntityName"),right:(0,Oe.validateType)("Identifier")}});var L1=()=>({typeParameters:(0,Oe.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,Oe.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,Oe.validateOptionalType)("TSTypeAnnotation")}),s9={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:L1()};Vt("TSCallSignatureDeclaration",s9);Vt("TSConstructSignatureDeclaration",s9);var o9=()=>({key:(0,Oe.validateType)("Expression"),computed:{default:!1},optional:(0,Oe.validateOptional)(no)});Vt("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},o9(),{readonly:(0,Oe.validateOptional)(no),typeAnnotation:(0,Oe.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,Oe.assertOneOf)("get","set")}})});Vt("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},L1(),o9(),{kind:{validate:(0,Oe.assertOneOf)("method","get","set")}})});Vt("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,Oe.validateOptional)(no),static:(0,Oe.validateOptional)(no),parameters:(0,Oe.validateArrayOfType)("Identifier"),typeAnnotation:(0,Oe.validateOptionalType)("TSTypeAnnotation")}});var Iwe=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of Iwe)Vt(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});Vt("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var l9={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};Vt("TSFunctionType",Object.assign({},l9,{fields:L1()}));Vt("TSConstructorType",Object.assign({},l9,{fields:Object.assign({},L1(),{abstract:(0,Oe.validateOptional)(no)})}));Vt("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,Oe.validateType)("TSEntityName"),typeParameters:(0,Oe.validateOptionalType)("TSTypeParameterInstantiation")}});Vt("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,Oe.validateType)("Identifier","TSThisType"),typeAnnotation:(0,Oe.validateOptionalType)("TSTypeAnnotation"),asserts:(0,Oe.validateOptional)(no)}});Vt("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,Oe.validateType)("TSEntityName","TSImportType"),typeParameters:(0,Oe.validateOptionalType)("TSTypeParameterInstantiation")}});Vt("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,Oe.validateArrayOfType)("TSTypeElement")}});Vt("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,Oe.validateType)("TSType")}});Vt("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,Oe.validateArrayOfType)("TSType","TSNamedTupleMember")}});Vt("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,Oe.validateType)("TSType")}});Vt("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,Oe.validateType)("TSType")}});Vt("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,Oe.validateType)("Identifier"),optional:{validate:no,default:!1},elementType:(0,Oe.validateType)("TSType")}});var c9={aliases:["TSType"],visitor:["types"],fields:{types:(0,Oe.validateArrayOfType)("TSType")}};Vt("TSUnionType",c9);Vt("TSIntersectionType",c9);Vt("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,Oe.validateType)("TSType"),extendsType:(0,Oe.validateType)("TSType"),trueType:(0,Oe.validateType)("TSType"),falseType:(0,Oe.validateType)("TSType")}});Vt("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,Oe.validateType)("TSTypeParameter")}});Vt("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,Oe.validateType)("TSType")}});Vt("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,Oe.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,Oe.validateType)("TSType")}});Vt("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,Oe.validateType)("TSType"),indexType:(0,Oe.validateType)("TSType")}});Vt("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,Oe.validateType)("TSTypeParameter")},{readonly:(0,Oe.validateOptional)((0,Oe.assertOneOf)(!0,!1,"+","-")),optional:(0,Oe.validateOptional)((0,Oe.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,Oe.validateOptionalType)("TSType"),nameType:(0,Oe.validateOptionalType)("TSType")})});Vt("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,Oe.validateArrayOfType)("TemplateElement"),types:{validate:(0,Oe.chain)((0,Oe.assertValueType)("array"),(0,Oe.assertEach)((0,Oe.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types. -Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Vt("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let e=(0,Oe.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,Oe.assertOneOf)("-"),r=(0,Oe.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),n=function(i,s,o){(0,Ewe.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):r(i,s,o)};return n.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],n}()}}});Vt("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,Oe.validateType)("TSEntityName"),typeParameters:(0,Oe.validateOptionalType)("TSTypeParameterInstantiation")}});Vt("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,Oe.validateOptional)(no),id:(0,Oe.validateType)("Identifier"),typeParameters:(0,Oe.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,Oe.validateOptional)((0,Oe.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,Oe.validateType)("TSInterfaceBody")}});Vt("TSInterfaceBody",{visitor:["body"],fields:{body:(0,Oe.validateArrayOfType)("TSTypeElement")}});Vt("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,Oe.validateOptional)(no),id:(0,Oe.validateType)("Identifier"),typeParameters:(0,Oe.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,Oe.validateType)("TSType")}});Vt("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,Oe.validateType)("Expression"),typeParameters:(0,Oe.validateOptionalType)("TSTypeParameterInstantiation")}});var u9={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,Oe.validateType)("Expression"),typeAnnotation:(0,Oe.validateType)("TSType")}};Vt("TSAsExpression",u9);Vt("TSSatisfiesExpression",u9);Vt("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,Oe.validateType)("TSType"),expression:(0,Oe.validateType)("Expression")}});Vt("TSEnumBody",{visitor:["members"],fields:{members:(0,Oe.validateArrayOfType)("TSEnumMember")}});Vt("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,Oe.validateOptional)(no),const:(0,Oe.validateOptional)(no),id:(0,Oe.validateType)("Identifier"),members:(0,Oe.validateArrayOfType)("TSEnumMember"),initializer:(0,Oe.validateOptionalType)("Expression"),body:(0,Oe.validateOptionalType)("TSEnumBody")}});Vt("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,Oe.validateType)("Identifier","StringLiteral"),initializer:(0,Oe.validateOptionalType)("Expression")}});Vt("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,Oe.assertOneOf)("global","module","namespace")},declare:(0,Oe.validateOptional)(no)},{global:(0,Oe.validateOptional)(no)},{id:(0,Oe.validateType)("Identifier","StringLiteral"),body:(0,Oe.validateType)("TSModuleBlock","TSModuleDeclaration")})});Vt("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,Oe.validateArrayOfType)("Statement")}});Vt("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,Oe.validateType)("StringLiteral"),qualifier:(0,Oe.validateOptionalType)("TSEntityName"),typeParameters:(0,Oe.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,Oe.assertNodeType)("ObjectExpression"),optional:!0}}});Vt("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,Oe.validate)(no)},{id:(0,Oe.validateType)("Identifier"),moduleReference:(0,Oe.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,Oe.assertOneOf)("type","value"),optional:!0}})});Vt("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,Oe.validateType)("StringLiteral")}});Vt("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,Oe.validateType)("Expression")}});Vt("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,Oe.validateType)("Expression")}});Vt("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,Oe.validateType)("Identifier")}});Vt("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,Oe.assertNodeType)("TSType")}}});Vt("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,Oe.validateArrayOfType)("TSType")}});Vt("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,Oe.validateArrayOfType)("TSTypeParameter")}});Vt("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,Oe.assertValueType)("string")},in:{validate:(0,Oe.assertValueType)("boolean"),optional:!0},out:{validate:(0,Oe.assertValueType)("boolean"),optional:!0},const:{validate:(0,Oe.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,Oe.assertNodeType)("TSType"),optional:!0},default:{validate:(0,Oe.assertNodeType)("TSType"),optional:!0}}})});var f9=ae(R1=>{"use strict";Object.defineProperty(R1,"__esModule",{value:!0});R1.DEPRECATED_ALIASES=void 0;var Bmt=R1.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var bl=ae(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});Object.defineProperty(fs,"ALIAS_KEYS",{enumerable:!0,get:function(){return Is.ALIAS_KEYS}});Object.defineProperty(fs,"BUILDER_KEYS",{enumerable:!0,get:function(){return Is.BUILDER_KEYS}});Object.defineProperty(fs,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return hR.DEPRECATED_ALIASES}});Object.defineProperty(fs,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return Is.DEPRECATED_KEYS}});Object.defineProperty(fs,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return Is.FLIPPED_ALIAS_KEYS}});Object.defineProperty(fs,"NODE_FIELDS",{enumerable:!0,get:function(){return Is.NODE_FIELDS}});Object.defineProperty(fs,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return Is.NODE_PARENT_VALIDATIONS}});Object.defineProperty(fs,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return Is.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(fs,"PLACEHOLDERS",{enumerable:!0,get:function(){return gR.PLACEHOLDERS}});Object.defineProperty(fs,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return gR.PLACEHOLDERS_ALIAS}});Object.defineProperty(fs,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return gR.PLACEHOLDERS_FLIPPED_ALIAS}});fs.TYPES=void 0;Object.defineProperty(fs,"VISITOR_KEYS",{enumerable:!0,get:function(){return Is.VISITOR_KEYS}});N0();t9();r9();n9();a9();d9();var Is=Zc(),gR=fR(),hR=f9();Object.keys(hR.DEPRECATED_ALIASES).forEach(e=>{Is.FLIPPED_ALIAS_KEYS[e]=Is.FLIPPED_ALIAS_KEYS[hR.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of Is.allExpandedTypes)for(let r of e){let n=Is.FLIPPED_ALIAS_KEYS[r];n?n.forEach(t.add,t):t.add(r)}var jmt=fs.TYPES=[].concat(Object.keys(Is.VISITOR_KEYS),Object.keys(Is.FLIPPED_ALIAS_KEYS),Object.keys(Is.DEPRECATED_KEYS))});var N1=ae(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});Ay.default=Awe;Ay.validateChild=m9;Ay.validateField=p9;Ay.validateInternal=Nwe;var k0=bl();function Awe(e,t,r){if(!e)return;let n=k0.NODE_FIELDS[e.type];if(!n)return;let a=n[t];p9(e,t,r,a),m9(e,t,r)}function Nwe(e,t,r,n,a){if(e!=null&&e.validate&&!(e.optional&&n==null)&&(e.validate(t,r,n),a)){var i;let s=n.type;if(s==null)return;(i=k0.NODE_PARENT_VALIDATIONS[s])==null||i.call(k0.NODE_PARENT_VALIDATIONS,t,r,n)}}function p9(e,t,r,n){n!=null&&n.validate&&(n.optional&&r==null||n.validate(e,t,r))}function m9(e,t,r){var n;let a=r?.type;a!=null&&((n=k0.NODE_PARENT_VALIDATIONS[a])==null||n.call(k0.NODE_PARENT_VALIDATIONS,e,t,r))}});var yR=ae(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.anyTypeAnnotation=c1e;R.argumentPlaceholder=BPe;R.arrayExpression=Rwe;R.arrayPattern=ACe;R.arrayTypeAnnotation=u1e;R.arrowFunctionExpression=NCe;R.assignmentExpression=Dwe;R.assignmentPattern=ICe;R.awaitExpression=JCe;R.bigIntLiteral=Lwe;R.binaryExpression=Mwe;R.bindExpression=$Pe;R.blockStatement=$we;R.booleanLiteral=iCe;R.booleanLiteralTypeAnnotation=f1e;R.booleanTypeAnnotation=d1e;R.breakStatement=jwe;R.callExpression=zwe;R.catchClause=Uwe;R.classAccessorProperty=n1e;R.classBody=kCe;R.classDeclaration=LCe;R.classExpression=_Ce;R.classImplements=m1e;R.classMethod=qCe;R.classPrivateMethod=i1e;R.classPrivateProperty=a1e;R.classProperty=r1e;R.conditionalExpression=Vwe;R.continueStatement=qwe;R.debuggerStatement=Hwe;R.decimalLiteral=HPe;R.declareClass=h1e;R.declareExportAllDeclaration=C1e;R.declareExportDeclaration=w1e;R.declareFunction=g1e;R.declareInterface=y1e;R.declareModule=x1e;R.declareModuleExports=b1e;R.declareOpaqueType=S1e;R.declareTypeAlias=v1e;R.declareVariable=T1e;R.declaredPredicate=P1e;R.decorator=jPe;R.directive=Fwe;R.directiveLiteral=Bwe;R.doExpression=zPe;R.doWhileStatement=Gwe;R.emptyStatement=Kwe;R.emptyTypeAnnotation=O1e;R.enumBooleanBody=uPe;R.enumBooleanMember=mPe;R.enumDeclaration=cPe;R.enumDefaultedMember=yPe;R.enumNumberBody=dPe;R.enumNumberMember=hPe;R.enumStringBody=fPe;R.enumStringMember=gPe;R.enumSymbolBody=pPe;R.existsTypeAnnotation=E1e;R.exportAllDeclaration=RCe;R.exportDefaultDeclaration=DCe;R.exportDefaultSpecifier=UPe;R.exportNamedDeclaration=MCe;R.exportNamespaceSpecifier=QCe;R.exportSpecifier=OCe;R.expressionStatement=Wwe;R.file=Xwe;R.forInStatement=Ywe;R.forOfStatement=FCe;R.forStatement=Jwe;R.functionDeclaration=Zwe;R.functionExpression=Qwe;R.functionTypeAnnotation=I1e;R.functionTypeParam=A1e;R.genericTypeAnnotation=N1e;R.identifier=eCe;R.ifStatement=tCe;R.import=ZCe;R.importAttribute=l1e;R.importDeclaration=BCe;R.importDefaultSpecifier=$Ce;R.importExpression=UCe;R.importNamespaceSpecifier=jCe;R.importSpecifier=zCe;R.indexedAccessType=xPe;R.inferredPredicate=k1e;R.interfaceDeclaration=L1e;R.interfaceExtends=_1e;R.interfaceTypeAnnotation=R1e;R.interpreterDirective=Owe;R.intersectionTypeAnnotation=D1e;R.jSXAttribute=R.jsxAttribute=vPe;R.jSXClosingElement=R.jsxClosingElement=SPe;R.jSXClosingFragment=R.jsxClosingFragment=DPe;R.jSXElement=R.jsxElement=TPe;R.jSXEmptyExpression=R.jsxEmptyExpression=wPe;R.jSXExpressionContainer=R.jsxExpressionContainer=CPe;R.jSXFragment=R.jsxFragment=LPe;R.jSXIdentifier=R.jsxIdentifier=EPe;R.jSXMemberExpression=R.jsxMemberExpression=IPe;R.jSXNamespacedName=R.jsxNamespacedName=APe;R.jSXOpeningElement=R.jsxOpeningElement=NPe;R.jSXOpeningFragment=R.jsxOpeningFragment=RPe;R.jSXSpreadAttribute=R.jsxSpreadAttribute=kPe;R.jSXSpreadChild=R.jsxSpreadChild=PPe;R.jSXText=R.jsxText=_Pe;R.labeledStatement=rCe;R.logicalExpression=sCe;R.memberExpression=oCe;R.metaProperty=VCe;R.mixedTypeAnnotation=M1e;R.moduleExpression=GPe;R.newExpression=lCe;R.noop=MPe;R.nullLiteral=aCe;R.nullLiteralTypeAnnotation=p1e;R.nullableTypeAnnotation=F1e;R.numberLiteral=dIe;R.numberLiteralTypeAnnotation=B1e;R.numberTypeAnnotation=$1e;R.numericLiteral=h9;R.objectExpression=uCe;R.objectMethod=dCe;R.objectPattern=HCe;R.objectProperty=fCe;R.objectTypeAnnotation=j1e;R.objectTypeCallProperty=U1e;R.objectTypeIndexer=V1e;R.objectTypeInternalSlot=z1e;R.objectTypeProperty=q1e;R.objectTypeSpreadProperty=H1e;R.opaqueType=G1e;R.optionalCallExpression=t1e;R.optionalIndexedAccessType=bPe;R.optionalMemberExpression=e1e;R.parenthesizedExpression=hCe;R.pipelineBareFunction=XPe;R.pipelinePrimaryTopicReference=YPe;R.pipelineTopicExpression=WPe;R.placeholder=OPe;R.privateName=s1e;R.program=cCe;R.qualifiedTypeIdentifier=K1e;R.recordExpression=VPe;R.regExpLiteral=g9;R.regexLiteral=fIe;R.restElement=y9;R.restProperty=pIe;R.returnStatement=pCe;R.sequenceExpression=mCe;R.spreadElement=x9;R.spreadProperty=mIe;R.staticBlock=o1e;R.stringLiteral=nCe;R.stringLiteralTypeAnnotation=W1e;R.stringTypeAnnotation=X1e;R.super=GCe;R.switchCase=gCe;R.switchStatement=yCe;R.symbolTypeAnnotation=Y1e;R.taggedTemplateExpression=KCe;R.templateElement=WCe;R.templateLiteral=XCe;R.thisExpression=xCe;R.thisTypeAnnotation=J1e;R.throwStatement=bCe;R.topicReference=KPe;R.tryStatement=vCe;R.tSAnyKeyword=R.tsAnyKeyword=oEe;R.tSArrayType=R.tsArrayType=IEe;R.tSAsExpression=R.tsAsExpression=KEe;R.tSBigIntKeyword=R.tsBigIntKeyword=cEe;R.tSBooleanKeyword=R.tsBooleanKeyword=lEe;R.tSCallSignatureDeclaration=R.tsCallSignatureDeclaration=rEe;R.tSConditionalType=R.tsConditionalType=DEe;R.tSConstructSignatureDeclaration=R.tsConstructSignatureDeclaration=nEe;R.tSConstructorType=R.tsConstructorType=TEe;R.tSDeclareFunction=R.tsDeclareFunction=QPe;R.tSDeclareMethod=R.tsDeclareMethod=eEe;R.tSEnumBody=R.tsEnumBody=YEe;R.tSEnumDeclaration=R.tsEnumDeclaration=JEe;R.tSEnumMember=R.tsEnumMember=ZEe;R.tSExportAssignment=R.tsExportAssignment=iIe;R.tSExpressionWithTypeArguments=R.tsExpressionWithTypeArguments=UEe;R.tSExternalModuleReference=R.tsExternalModuleReference=nIe;R.tSFunctionType=R.tsFunctionType=SEe;R.tSImportEqualsDeclaration=R.tsImportEqualsDeclaration=rIe;R.tSImportType=R.tsImportType=tIe;R.tSIndexSignature=R.tsIndexSignature=sEe;R.tSIndexedAccessType=R.tsIndexedAccessType=BEe;R.tSInferType=R.tsInferType=MEe;R.tSInstantiationExpression=R.tsInstantiationExpression=GEe;R.tSInterfaceBody=R.tsInterfaceBody=qEe;R.tSInterfaceDeclaration=R.tsInterfaceDeclaration=VEe;R.tSIntersectionType=R.tsIntersectionType=REe;R.tSIntrinsicKeyword=R.tsIntrinsicKeyword=uEe;R.tSLiteralType=R.tsLiteralType=zEe;R.tSMappedType=R.tsMappedType=$Ee;R.tSMethodSignature=R.tsMethodSignature=iEe;R.tSModuleBlock=R.tsModuleBlock=eIe;R.tSModuleDeclaration=R.tsModuleDeclaration=QEe;R.tSNamedTupleMember=R.tsNamedTupleMember=_Ee;R.tSNamespaceExportDeclaration=R.tsNamespaceExportDeclaration=sIe;R.tSNeverKeyword=R.tsNeverKeyword=dEe;R.tSNonNullExpression=R.tsNonNullExpression=aIe;R.tSNullKeyword=R.tsNullKeyword=fEe;R.tSNumberKeyword=R.tsNumberKeyword=pEe;R.tSObjectKeyword=R.tsObjectKeyword=mEe;R.tSOptionalType=R.tsOptionalType=NEe;R.tSParameterProperty=R.tsParameterProperty=ZPe;R.tSParenthesizedType=R.tsParenthesizedType=OEe;R.tSPropertySignature=R.tsPropertySignature=aEe;R.tSQualifiedName=R.tsQualifiedName=tEe;R.tSRestType=R.tsRestType=kEe;R.tSSatisfiesExpression=R.tsSatisfiesExpression=WEe;R.tSStringKeyword=R.tsStringKeyword=hEe;R.tSSymbolKeyword=R.tsSymbolKeyword=gEe;R.tSTemplateLiteralType=R.tsTemplateLiteralType=jEe;R.tSThisType=R.tsThisType=vEe;R.tSTupleType=R.tsTupleType=AEe;R.tSTypeAliasDeclaration=R.tsTypeAliasDeclaration=HEe;R.tSTypeAnnotation=R.tsTypeAnnotation=oIe;R.tSTypeAssertion=R.tsTypeAssertion=XEe;R.tSTypeLiteral=R.tsTypeLiteral=EEe;R.tSTypeOperator=R.tsTypeOperator=FEe;R.tSTypeParameter=R.tsTypeParameter=uIe;R.tSTypeParameterDeclaration=R.tsTypeParameterDeclaration=cIe;R.tSTypeParameterInstantiation=R.tsTypeParameterInstantiation=lIe;R.tSTypePredicate=R.tsTypePredicate=CEe;R.tSTypeQuery=R.tsTypeQuery=PEe;R.tSTypeReference=R.tsTypeReference=wEe;R.tSUndefinedKeyword=R.tsUndefinedKeyword=yEe;R.tSUnionType=R.tsUnionType=LEe;R.tSUnknownKeyword=R.tsUnknownKeyword=xEe;R.tSVoidKeyword=R.tsVoidKeyword=bEe;R.tupleExpression=qPe;R.tupleTypeAnnotation=Z1e;R.typeAlias=ePe;R.typeAnnotation=tPe;R.typeCastExpression=rPe;R.typeParameter=nPe;R.typeParameterDeclaration=aPe;R.typeParameterInstantiation=iPe;R.typeofTypeAnnotation=Q1e;R.unaryExpression=SCe;R.unionTypeAnnotation=sPe;R.updateExpression=TCe;R.v8IntrinsicIdentifier=FPe;R.variableDeclaration=wCe;R.variableDeclarator=CCe;R.variance=oPe;R.voidPattern=JPe;R.voidTypeAnnotation=lPe;R.whileStatement=PCe;R.withStatement=ECe;R.yieldExpression=YCe;var kwe=N1(),D1=Sy(),_we=Zc(),{validateInternal:P}=kwe,{NODE_FIELDS:te}=_we;function Lwe(e){typeof e=="bigint"&&(e=e.toString());let t={type:"BigIntLiteral",value:e},r=te.BigIntLiteral;return P(r.value,t,"value",e),t}function Rwe(e=[]){let t={type:"ArrayExpression",elements:e},r=te.ArrayExpression;return P(r.elements,t,"elements",e,1),t}function Dwe(e,t,r){let n={type:"AssignmentExpression",operator:e,left:t,right:r},a=te.AssignmentExpression;return P(a.operator,n,"operator",e),P(a.left,n,"left",t,1),P(a.right,n,"right",r,1),n}function Mwe(e,t,r){let n={type:"BinaryExpression",operator:e,left:t,right:r},a=te.BinaryExpression;return P(a.operator,n,"operator",e),P(a.left,n,"left",t,1),P(a.right,n,"right",r,1),n}function Owe(e){let t={type:"InterpreterDirective",value:e},r=te.InterpreterDirective;return P(r.value,t,"value",e),t}function Fwe(e){let t={type:"Directive",value:e},r=te.Directive;return P(r.value,t,"value",e,1),t}function Bwe(e){let t={type:"DirectiveLiteral",value:e},r=te.DirectiveLiteral;return P(r.value,t,"value",e),t}function $we(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},n=te.BlockStatement;return P(n.body,r,"body",e,1),P(n.directives,r,"directives",t,1),r}function jwe(e=null){let t={type:"BreakStatement",label:e},r=te.BreakStatement;return P(r.label,t,"label",e,1),t}function zwe(e,t){let r={type:"CallExpression",callee:e,arguments:t},n=te.CallExpression;return P(n.callee,r,"callee",e,1),P(n.arguments,r,"arguments",t,1),r}function Uwe(e=null,t){let r={type:"CatchClause",param:e,body:t},n=te.CatchClause;return P(n.param,r,"param",e,1),P(n.body,r,"body",t,1),r}function Vwe(e,t,r){let n={type:"ConditionalExpression",test:e,consequent:t,alternate:r},a=te.ConditionalExpression;return P(a.test,n,"test",e,1),P(a.consequent,n,"consequent",t,1),P(a.alternate,n,"alternate",r,1),n}function qwe(e=null){let t={type:"ContinueStatement",label:e},r=te.ContinueStatement;return P(r.label,t,"label",e,1),t}function Hwe(){return{type:"DebuggerStatement"}}function Gwe(e,t){let r={type:"DoWhileStatement",test:e,body:t},n=te.DoWhileStatement;return P(n.test,r,"test",e,1),P(n.body,r,"body",t,1),r}function Kwe(){return{type:"EmptyStatement"}}function Wwe(e){let t={type:"ExpressionStatement",expression:e},r=te.ExpressionStatement;return P(r.expression,t,"expression",e,1),t}function Xwe(e,t=null,r=null){let n={type:"File",program:e,comments:t,tokens:r},a=te.File;return P(a.program,n,"program",e,1),P(a.comments,n,"comments",t,1),P(a.tokens,n,"tokens",r),n}function Ywe(e,t,r){let n={type:"ForInStatement",left:e,right:t,body:r},a=te.ForInStatement;return P(a.left,n,"left",e,1),P(a.right,n,"right",t,1),P(a.body,n,"body",r,1),n}function Jwe(e=null,t=null,r=null,n){let a={type:"ForStatement",init:e,test:t,update:r,body:n},i=te.ForStatement;return P(i.init,a,"init",e,1),P(i.test,a,"test",t,1),P(i.update,a,"update",r,1),P(i.body,a,"body",n,1),a}function Zwe(e=null,t,r,n=!1,a=!1){let i={type:"FunctionDeclaration",id:e,params:t,body:r,generator:n,async:a},s=te.FunctionDeclaration;return P(s.id,i,"id",e,1),P(s.params,i,"params",t,1),P(s.body,i,"body",r,1),P(s.generator,i,"generator",n),P(s.async,i,"async",a),i}function Qwe(e=null,t,r,n=!1,a=!1){let i={type:"FunctionExpression",id:e,params:t,body:r,generator:n,async:a},s=te.FunctionExpression;return P(s.id,i,"id",e,1),P(s.params,i,"params",t,1),P(s.body,i,"body",r,1),P(s.generator,i,"generator",n),P(s.async,i,"async",a),i}function eCe(e){let t={type:"Identifier",name:e},r=te.Identifier;return P(r.name,t,"name",e),t}function tCe(e,t,r=null){let n={type:"IfStatement",test:e,consequent:t,alternate:r},a=te.IfStatement;return P(a.test,n,"test",e,1),P(a.consequent,n,"consequent",t,1),P(a.alternate,n,"alternate",r,1),n}function rCe(e,t){let r={type:"LabeledStatement",label:e,body:t},n=te.LabeledStatement;return P(n.label,r,"label",e,1),P(n.body,r,"body",t,1),r}function nCe(e){let t={type:"StringLiteral",value:e},r=te.StringLiteral;return P(r.value,t,"value",e),t}function h9(e){let t={type:"NumericLiteral",value:e},r=te.NumericLiteral;return P(r.value,t,"value",e),t}function aCe(){return{type:"NullLiteral"}}function iCe(e){let t={type:"BooleanLiteral",value:e},r=te.BooleanLiteral;return P(r.value,t,"value",e),t}function g9(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},n=te.RegExpLiteral;return P(n.pattern,r,"pattern",e),P(n.flags,r,"flags",t),r}function sCe(e,t,r){let n={type:"LogicalExpression",operator:e,left:t,right:r},a=te.LogicalExpression;return P(a.operator,n,"operator",e),P(a.left,n,"left",t,1),P(a.right,n,"right",r,1),n}function oCe(e,t,r=!1,n=null){let a={type:"MemberExpression",object:e,property:t,computed:r,optional:n},i=te.MemberExpression;return P(i.object,a,"object",e,1),P(i.property,a,"property",t,1),P(i.computed,a,"computed",r),P(i.optional,a,"optional",n),a}function lCe(e,t){let r={type:"NewExpression",callee:e,arguments:t},n=te.NewExpression;return P(n.callee,r,"callee",e,1),P(n.arguments,r,"arguments",t,1),r}function cCe(e,t=[],r="script",n=null){let a={type:"Program",body:e,directives:t,sourceType:r,interpreter:n},i=te.Program;return P(i.body,a,"body",e,1),P(i.directives,a,"directives",t,1),P(i.sourceType,a,"sourceType",r),P(i.interpreter,a,"interpreter",n,1),a}function uCe(e){let t={type:"ObjectExpression",properties:e},r=te.ObjectExpression;return P(r.properties,t,"properties",e,1),t}function dCe(e="method",t,r,n,a=!1,i=!1,s=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:a,generator:i,async:s},l=te.ObjectMethod;return P(l.kind,o,"kind",e),P(l.key,o,"key",t,1),P(l.params,o,"params",r,1),P(l.body,o,"body",n,1),P(l.computed,o,"computed",a),P(l.generator,o,"generator",i),P(l.async,o,"async",s),o}function fCe(e,t,r=!1,n=!1,a=null){let i={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:a},s=te.ObjectProperty;return P(s.key,i,"key",e,1),P(s.value,i,"value",t,1),P(s.computed,i,"computed",r),P(s.shorthand,i,"shorthand",n),P(s.decorators,i,"decorators",a,1),i}function y9(e){let t={type:"RestElement",argument:e},r=te.RestElement;return P(r.argument,t,"argument",e,1),t}function pCe(e=null){let t={type:"ReturnStatement",argument:e},r=te.ReturnStatement;return P(r.argument,t,"argument",e,1),t}function mCe(e){let t={type:"SequenceExpression",expressions:e},r=te.SequenceExpression;return P(r.expressions,t,"expressions",e,1),t}function hCe(e){let t={type:"ParenthesizedExpression",expression:e},r=te.ParenthesizedExpression;return P(r.expression,t,"expression",e,1),t}function gCe(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},n=te.SwitchCase;return P(n.test,r,"test",e,1),P(n.consequent,r,"consequent",t,1),r}function yCe(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},n=te.SwitchStatement;return P(n.discriminant,r,"discriminant",e,1),P(n.cases,r,"cases",t,1),r}function xCe(){return{type:"ThisExpression"}}function bCe(e){let t={type:"ThrowStatement",argument:e},r=te.ThrowStatement;return P(r.argument,t,"argument",e,1),t}function vCe(e,t=null,r=null){let n={type:"TryStatement",block:e,handler:t,finalizer:r},a=te.TryStatement;return P(a.block,n,"block",e,1),P(a.handler,n,"handler",t,1),P(a.finalizer,n,"finalizer",r,1),n}function SCe(e,t,r=!0){let n={type:"UnaryExpression",operator:e,argument:t,prefix:r},a=te.UnaryExpression;return P(a.operator,n,"operator",e),P(a.argument,n,"argument",t,1),P(a.prefix,n,"prefix",r),n}function TCe(e,t,r=!1){let n={type:"UpdateExpression",operator:e,argument:t,prefix:r},a=te.UpdateExpression;return P(a.operator,n,"operator",e),P(a.argument,n,"argument",t,1),P(a.prefix,n,"prefix",r),n}function wCe(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},n=te.VariableDeclaration;return P(n.kind,r,"kind",e),P(n.declarations,r,"declarations",t,1),r}function CCe(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},n=te.VariableDeclarator;return P(n.id,r,"id",e,1),P(n.init,r,"init",t,1),r}function PCe(e,t){let r={type:"WhileStatement",test:e,body:t},n=te.WhileStatement;return P(n.test,r,"test",e,1),P(n.body,r,"body",t,1),r}function ECe(e,t){let r={type:"WithStatement",object:e,body:t},n=te.WithStatement;return P(n.object,r,"object",e,1),P(n.body,r,"body",t,1),r}function ICe(e,t){let r={type:"AssignmentPattern",left:e,right:t},n=te.AssignmentPattern;return P(n.left,r,"left",e,1),P(n.right,r,"right",t,1),r}function ACe(e){let t={type:"ArrayPattern",elements:e},r=te.ArrayPattern;return P(r.elements,t,"elements",e,1),t}function NCe(e,t,r=!1){let n={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},a=te.ArrowFunctionExpression;return P(a.params,n,"params",e,1),P(a.body,n,"body",t,1),P(a.async,n,"async",r),n}function kCe(e){let t={type:"ClassBody",body:e},r=te.ClassBody;return P(r.body,t,"body",e,1),t}function _Ce(e=null,t=null,r,n=null){let a={type:"ClassExpression",id:e,superClass:t,body:r,decorators:n},i=te.ClassExpression;return P(i.id,a,"id",e,1),P(i.superClass,a,"superClass",t,1),P(i.body,a,"body",r,1),P(i.decorators,a,"decorators",n,1),a}function LCe(e=null,t=null,r,n=null){let a={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:n},i=te.ClassDeclaration;return P(i.id,a,"id",e,1),P(i.superClass,a,"superClass",t,1),P(i.body,a,"body",r,1),P(i.decorators,a,"decorators",n,1),a}function RCe(e){let t={type:"ExportAllDeclaration",source:e},r=te.ExportAllDeclaration;return P(r.source,t,"source",e,1),t}function DCe(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=te.ExportDefaultDeclaration;return P(r.declaration,t,"declaration",e,1),t}function MCe(e=null,t=[],r=null){let n={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r},a=te.ExportNamedDeclaration;return P(a.declaration,n,"declaration",e,1),P(a.specifiers,n,"specifiers",t,1),P(a.source,n,"source",r,1),n}function OCe(e,t){let r={type:"ExportSpecifier",local:e,exported:t},n=te.ExportSpecifier;return P(n.local,r,"local",e,1),P(n.exported,r,"exported",t,1),r}function FCe(e,t,r,n=!1){let a={type:"ForOfStatement",left:e,right:t,body:r,await:n},i=te.ForOfStatement;return P(i.left,a,"left",e,1),P(i.right,a,"right",t,1),P(i.body,a,"body",r,1),P(i.await,a,"await",n),a}function BCe(e,t){let r={type:"ImportDeclaration",specifiers:e,source:t},n=te.ImportDeclaration;return P(n.specifiers,r,"specifiers",e,1),P(n.source,r,"source",t,1),r}function $Ce(e){let t={type:"ImportDefaultSpecifier",local:e},r=te.ImportDefaultSpecifier;return P(r.local,t,"local",e,1),t}function jCe(e){let t={type:"ImportNamespaceSpecifier",local:e},r=te.ImportNamespaceSpecifier;return P(r.local,t,"local",e,1),t}function zCe(e,t){let r={type:"ImportSpecifier",local:e,imported:t},n=te.ImportSpecifier;return P(n.local,r,"local",e,1),P(n.imported,r,"imported",t,1),r}function UCe(e,t=null){let r={type:"ImportExpression",source:e,options:t},n=te.ImportExpression;return P(n.source,r,"source",e,1),P(n.options,r,"options",t,1),r}function VCe(e,t){let r={type:"MetaProperty",meta:e,property:t},n=te.MetaProperty;return P(n.meta,r,"meta",e,1),P(n.property,r,"property",t,1),r}function qCe(e="method",t,r,n,a=!1,i=!1,s=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:n,computed:a,static:i,generator:s,async:o},c=te.ClassMethod;return P(c.kind,l,"kind",e),P(c.key,l,"key",t,1),P(c.params,l,"params",r,1),P(c.body,l,"body",n,1),P(c.computed,l,"computed",a),P(c.static,l,"static",i),P(c.generator,l,"generator",s),P(c.async,l,"async",o),l}function HCe(e){let t={type:"ObjectPattern",properties:e},r=te.ObjectPattern;return P(r.properties,t,"properties",e,1),t}function x9(e){let t={type:"SpreadElement",argument:e},r=te.SpreadElement;return P(r.argument,t,"argument",e,1),t}function GCe(){return{type:"Super"}}function KCe(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},n=te.TaggedTemplateExpression;return P(n.tag,r,"tag",e,1),P(n.quasi,r,"quasi",t,1),r}function WCe(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},n=te.TemplateElement;return P(n.value,r,"value",e),P(n.tail,r,"tail",t),r}function XCe(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},n=te.TemplateLiteral;return P(n.quasis,r,"quasis",e,1),P(n.expressions,r,"expressions",t,1),r}function YCe(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},n=te.YieldExpression;return P(n.argument,r,"argument",e,1),P(n.delegate,r,"delegate",t),r}function JCe(e){let t={type:"AwaitExpression",argument:e},r=te.AwaitExpression;return P(r.argument,t,"argument",e,1),t}function ZCe(){return{type:"Import"}}function QCe(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=te.ExportNamespaceSpecifier;return P(r.exported,t,"exported",e,1),t}function e1e(e,t,r=!1,n){let a={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:n},i=te.OptionalMemberExpression;return P(i.object,a,"object",e,1),P(i.property,a,"property",t,1),P(i.computed,a,"computed",r),P(i.optional,a,"optional",n),a}function t1e(e,t,r){let n={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},a=te.OptionalCallExpression;return P(a.callee,n,"callee",e,1),P(a.arguments,n,"arguments",t,1),P(a.optional,n,"optional",r),n}function r1e(e,t=null,r=null,n=null,a=!1,i=!1){let s={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:a,static:i},o=te.ClassProperty;return P(o.key,s,"key",e,1),P(o.value,s,"value",t,1),P(o.typeAnnotation,s,"typeAnnotation",r,1),P(o.decorators,s,"decorators",n,1),P(o.computed,s,"computed",a),P(o.static,s,"static",i),s}function n1e(e,t=null,r=null,n=null,a=!1,i=!1){let s={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:a,static:i},o=te.ClassAccessorProperty;return P(o.key,s,"key",e,1),P(o.value,s,"value",t,1),P(o.typeAnnotation,s,"typeAnnotation",r,1),P(o.decorators,s,"decorators",n,1),P(o.computed,s,"computed",a),P(o.static,s,"static",i),s}function a1e(e,t=null,r=null,n=!1){let a={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:n},i=te.ClassPrivateProperty;return P(i.key,a,"key",e,1),P(i.value,a,"value",t,1),P(i.decorators,a,"decorators",r,1),P(i.static,a,"static",n),a}function i1e(e="method",t,r,n,a=!1){let i={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:n,static:a},s=te.ClassPrivateMethod;return P(s.kind,i,"kind",e),P(s.key,i,"key",t,1),P(s.params,i,"params",r,1),P(s.body,i,"body",n,1),P(s.static,i,"static",a),i}function s1e(e){let t={type:"PrivateName",id:e},r=te.PrivateName;return P(r.id,t,"id",e,1),t}function o1e(e){let t={type:"StaticBlock",body:e},r=te.StaticBlock;return P(r.body,t,"body",e,1),t}function l1e(e,t){let r={type:"ImportAttribute",key:e,value:t},n=te.ImportAttribute;return P(n.key,r,"key",e,1),P(n.value,r,"value",t,1),r}function c1e(){return{type:"AnyTypeAnnotation"}}function u1e(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=te.ArrayTypeAnnotation;return P(r.elementType,t,"elementType",e,1),t}function d1e(){return{type:"BooleanTypeAnnotation"}}function f1e(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=te.BooleanLiteralTypeAnnotation;return P(r.value,t,"value",e),t}function p1e(){return{type:"NullLiteralTypeAnnotation"}}function m1e(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},n=te.ClassImplements;return P(n.id,r,"id",e,1),P(n.typeParameters,r,"typeParameters",t,1),r}function h1e(e,t=null,r=null,n){let a={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:n},i=te.DeclareClass;return P(i.id,a,"id",e,1),P(i.typeParameters,a,"typeParameters",t,1),P(i.extends,a,"extends",r,1),P(i.body,a,"body",n,1),a}function g1e(e){let t={type:"DeclareFunction",id:e},r=te.DeclareFunction;return P(r.id,t,"id",e,1),t}function y1e(e,t=null,r=null,n){let a={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:n},i=te.DeclareInterface;return P(i.id,a,"id",e,1),P(i.typeParameters,a,"typeParameters",t,1),P(i.extends,a,"extends",r,1),P(i.body,a,"body",n,1),a}function x1e(e,t,r=null){let n={type:"DeclareModule",id:e,body:t,kind:r},a=te.DeclareModule;return P(a.id,n,"id",e,1),P(a.body,n,"body",t,1),P(a.kind,n,"kind",r),n}function b1e(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=te.DeclareModuleExports;return P(r.typeAnnotation,t,"typeAnnotation",e,1),t}function v1e(e,t=null,r){let n={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},a=te.DeclareTypeAlias;return P(a.id,n,"id",e,1),P(a.typeParameters,n,"typeParameters",t,1),P(a.right,n,"right",r,1),n}function S1e(e,t=null,r=null){let n={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},a=te.DeclareOpaqueType;return P(a.id,n,"id",e,1),P(a.typeParameters,n,"typeParameters",t,1),P(a.supertype,n,"supertype",r,1),n}function T1e(e){let t={type:"DeclareVariable",id:e},r=te.DeclareVariable;return P(r.id,t,"id",e,1),t}function w1e(e=null,t=null,r=null,n=null){let a={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:n},i=te.DeclareExportDeclaration;return P(i.declaration,a,"declaration",e,1),P(i.specifiers,a,"specifiers",t,1),P(i.source,a,"source",r,1),P(i.attributes,a,"attributes",n,1),a}function C1e(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},n=te.DeclareExportAllDeclaration;return P(n.source,r,"source",e,1),P(n.attributes,r,"attributes",t,1),r}function P1e(e){let t={type:"DeclaredPredicate",value:e},r=te.DeclaredPredicate;return P(r.value,t,"value",e,1),t}function E1e(){return{type:"ExistsTypeAnnotation"}}function I1e(e=null,t,r=null,n){let a={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:n},i=te.FunctionTypeAnnotation;return P(i.typeParameters,a,"typeParameters",e,1),P(i.params,a,"params",t,1),P(i.rest,a,"rest",r,1),P(i.returnType,a,"returnType",n,1),a}function A1e(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},n=te.FunctionTypeParam;return P(n.name,r,"name",e,1),P(n.typeAnnotation,r,"typeAnnotation",t,1),r}function N1e(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},n=te.GenericTypeAnnotation;return P(n.id,r,"id",e,1),P(n.typeParameters,r,"typeParameters",t,1),r}function k1e(){return{type:"InferredPredicate"}}function _1e(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},n=te.InterfaceExtends;return P(n.id,r,"id",e,1),P(n.typeParameters,r,"typeParameters",t,1),r}function L1e(e,t=null,r=null,n){let a={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},i=te.InterfaceDeclaration;return P(i.id,a,"id",e,1),P(i.typeParameters,a,"typeParameters",t,1),P(i.extends,a,"extends",r,1),P(i.body,a,"body",n,1),a}function R1e(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},n=te.InterfaceTypeAnnotation;return P(n.extends,r,"extends",e,1),P(n.body,r,"body",t,1),r}function D1e(e){let t={type:"IntersectionTypeAnnotation",types:e},r=te.IntersectionTypeAnnotation;return P(r.types,t,"types",e,1),t}function M1e(){return{type:"MixedTypeAnnotation"}}function O1e(){return{type:"EmptyTypeAnnotation"}}function F1e(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=te.NullableTypeAnnotation;return P(r.typeAnnotation,t,"typeAnnotation",e,1),t}function B1e(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=te.NumberLiteralTypeAnnotation;return P(r.value,t,"value",e),t}function $1e(){return{type:"NumberTypeAnnotation"}}function j1e(e,t=[],r=[],n=[],a=!1){let i={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:n,exact:a},s=te.ObjectTypeAnnotation;return P(s.properties,i,"properties",e,1),P(s.indexers,i,"indexers",t,1),P(s.callProperties,i,"callProperties",r,1),P(s.internalSlots,i,"internalSlots",n,1),P(s.exact,i,"exact",a),i}function z1e(e,t,r,n,a){let i={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:n,method:a},s=te.ObjectTypeInternalSlot;return P(s.id,i,"id",e,1),P(s.value,i,"value",t,1),P(s.optional,i,"optional",r),P(s.static,i,"static",n),P(s.method,i,"method",a),i}function U1e(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=te.ObjectTypeCallProperty;return P(r.value,t,"value",e,1),t}function V1e(e=null,t,r,n=null){let a={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:n,static:null},i=te.ObjectTypeIndexer;return P(i.id,a,"id",e,1),P(i.key,a,"key",t,1),P(i.value,a,"value",r,1),P(i.variance,a,"variance",n,1),a}function q1e(e,t,r=null){let n={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},a=te.ObjectTypeProperty;return P(a.key,n,"key",e,1),P(a.value,n,"value",t,1),P(a.variance,n,"variance",r,1),n}function H1e(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=te.ObjectTypeSpreadProperty;return P(r.argument,t,"argument",e,1),t}function G1e(e,t=null,r=null,n){let a={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:n},i=te.OpaqueType;return P(i.id,a,"id",e,1),P(i.typeParameters,a,"typeParameters",t,1),P(i.supertype,a,"supertype",r,1),P(i.impltype,a,"impltype",n,1),a}function K1e(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},n=te.QualifiedTypeIdentifier;return P(n.id,r,"id",e,1),P(n.qualification,r,"qualification",t,1),r}function W1e(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=te.StringLiteralTypeAnnotation;return P(r.value,t,"value",e),t}function X1e(){return{type:"StringTypeAnnotation"}}function Y1e(){return{type:"SymbolTypeAnnotation"}}function J1e(){return{type:"ThisTypeAnnotation"}}function Z1e(e){let t={type:"TupleTypeAnnotation",types:e},r=te.TupleTypeAnnotation;return P(r.types,t,"types",e,1),t}function Q1e(e){let t={type:"TypeofTypeAnnotation",argument:e},r=te.TypeofTypeAnnotation;return P(r.argument,t,"argument",e,1),t}function ePe(e,t=null,r){let n={type:"TypeAlias",id:e,typeParameters:t,right:r},a=te.TypeAlias;return P(a.id,n,"id",e,1),P(a.typeParameters,n,"typeParameters",t,1),P(a.right,n,"right",r,1),n}function tPe(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=te.TypeAnnotation;return P(r.typeAnnotation,t,"typeAnnotation",e,1),t}function rPe(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},n=te.TypeCastExpression;return P(n.expression,r,"expression",e,1),P(n.typeAnnotation,r,"typeAnnotation",t,1),r}function nPe(e=null,t=null,r=null){let n={type:"TypeParameter",bound:e,default:t,variance:r,name:null},a=te.TypeParameter;return P(a.bound,n,"bound",e,1),P(a.default,n,"default",t,1),P(a.variance,n,"variance",r,1),n}function aPe(e){let t={type:"TypeParameterDeclaration",params:e},r=te.TypeParameterDeclaration;return P(r.params,t,"params",e,1),t}function iPe(e){let t={type:"TypeParameterInstantiation",params:e},r=te.TypeParameterInstantiation;return P(r.params,t,"params",e,1),t}function sPe(e){let t={type:"UnionTypeAnnotation",types:e},r=te.UnionTypeAnnotation;return P(r.types,t,"types",e,1),t}function oPe(e){let t={type:"Variance",kind:e},r=te.Variance;return P(r.kind,t,"kind",e),t}function lPe(){return{type:"VoidTypeAnnotation"}}function cPe(e,t){let r={type:"EnumDeclaration",id:e,body:t},n=te.EnumDeclaration;return P(n.id,r,"id",e,1),P(n.body,r,"body",t,1),r}function uPe(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=te.EnumBooleanBody;return P(r.members,t,"members",e,1),t}function dPe(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=te.EnumNumberBody;return P(r.members,t,"members",e,1),t}function fPe(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=te.EnumStringBody;return P(r.members,t,"members",e,1),t}function pPe(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=te.EnumSymbolBody;return P(r.members,t,"members",e,1),t}function mPe(e){let t={type:"EnumBooleanMember",id:e,init:null},r=te.EnumBooleanMember;return P(r.id,t,"id",e,1),t}function hPe(e,t){let r={type:"EnumNumberMember",id:e,init:t},n=te.EnumNumberMember;return P(n.id,r,"id",e,1),P(n.init,r,"init",t,1),r}function gPe(e,t){let r={type:"EnumStringMember",id:e,init:t},n=te.EnumStringMember;return P(n.id,r,"id",e,1),P(n.init,r,"init",t,1),r}function yPe(e){let t={type:"EnumDefaultedMember",id:e},r=te.EnumDefaultedMember;return P(r.id,t,"id",e,1),t}function xPe(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},n=te.IndexedAccessType;return P(n.objectType,r,"objectType",e,1),P(n.indexType,r,"indexType",t,1),r}function bPe(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},n=te.OptionalIndexedAccessType;return P(n.objectType,r,"objectType",e,1),P(n.indexType,r,"indexType",t,1),r}function vPe(e,t=null){let r={type:"JSXAttribute",name:e,value:t},n=te.JSXAttribute;return P(n.name,r,"name",e,1),P(n.value,r,"value",t,1),r}function SPe(e){let t={type:"JSXClosingElement",name:e},r=te.JSXClosingElement;return P(r.name,t,"name",e,1),t}function TPe(e,t=null,r,n=null){let a={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:n},i=te.JSXElement;return P(i.openingElement,a,"openingElement",e,1),P(i.closingElement,a,"closingElement",t,1),P(i.children,a,"children",r,1),P(i.selfClosing,a,"selfClosing",n),a}function wPe(){return{type:"JSXEmptyExpression"}}function CPe(e){let t={type:"JSXExpressionContainer",expression:e},r=te.JSXExpressionContainer;return P(r.expression,t,"expression",e,1),t}function PPe(e){let t={type:"JSXSpreadChild",expression:e},r=te.JSXSpreadChild;return P(r.expression,t,"expression",e,1),t}function EPe(e){let t={type:"JSXIdentifier",name:e},r=te.JSXIdentifier;return P(r.name,t,"name",e),t}function IPe(e,t){let r={type:"JSXMemberExpression",object:e,property:t},n=te.JSXMemberExpression;return P(n.object,r,"object",e,1),P(n.property,r,"property",t,1),r}function APe(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},n=te.JSXNamespacedName;return P(n.namespace,r,"namespace",e,1),P(n.name,r,"name",t,1),r}function NPe(e,t,r=!1){let n={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},a=te.JSXOpeningElement;return P(a.name,n,"name",e,1),P(a.attributes,n,"attributes",t,1),P(a.selfClosing,n,"selfClosing",r),n}function kPe(e){let t={type:"JSXSpreadAttribute",argument:e},r=te.JSXSpreadAttribute;return P(r.argument,t,"argument",e,1),t}function _Pe(e){let t={type:"JSXText",value:e},r=te.JSXText;return P(r.value,t,"value",e),t}function LPe(e,t,r){let n={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},a=te.JSXFragment;return P(a.openingFragment,n,"openingFragment",e,1),P(a.closingFragment,n,"closingFragment",t,1),P(a.children,n,"children",r,1),n}function RPe(){return{type:"JSXOpeningFragment"}}function DPe(){return{type:"JSXClosingFragment"}}function MPe(){return{type:"Noop"}}function OPe(e,t){let r={type:"Placeholder",expectedNode:e,name:t},n=te.Placeholder;return P(n.expectedNode,r,"expectedNode",e),P(n.name,r,"name",t,1),r}function FPe(e){let t={type:"V8IntrinsicIdentifier",name:e},r=te.V8IntrinsicIdentifier;return P(r.name,t,"name",e),t}function BPe(){return{type:"ArgumentPlaceholder"}}function $Pe(e,t){let r={type:"BindExpression",object:e,callee:t},n=te.BindExpression;return P(n.object,r,"object",e,1),P(n.callee,r,"callee",t,1),r}function jPe(e){let t={type:"Decorator",expression:e},r=te.Decorator;return P(r.expression,t,"expression",e,1),t}function zPe(e,t=!1){let r={type:"DoExpression",body:e,async:t},n=te.DoExpression;return P(n.body,r,"body",e,1),P(n.async,r,"async",t),r}function UPe(e){let t={type:"ExportDefaultSpecifier",exported:e},r=te.ExportDefaultSpecifier;return P(r.exported,t,"exported",e,1),t}function VPe(e){let t={type:"RecordExpression",properties:e},r=te.RecordExpression;return P(r.properties,t,"properties",e,1),t}function qPe(e=[]){let t={type:"TupleExpression",elements:e},r=te.TupleExpression;return P(r.elements,t,"elements",e,1),t}function HPe(e){let t={type:"DecimalLiteral",value:e},r=te.DecimalLiteral;return P(r.value,t,"value",e),t}function GPe(e){let t={type:"ModuleExpression",body:e},r=te.ModuleExpression;return P(r.body,t,"body",e,1),t}function KPe(){return{type:"TopicReference"}}function WPe(e){let t={type:"PipelineTopicExpression",expression:e},r=te.PipelineTopicExpression;return P(r.expression,t,"expression",e,1),t}function XPe(e){let t={type:"PipelineBareFunction",callee:e},r=te.PipelineBareFunction;return P(r.callee,t,"callee",e,1),t}function YPe(){return{type:"PipelinePrimaryTopicReference"}}function JPe(){return{type:"VoidPattern"}}function ZPe(e){let t={type:"TSParameterProperty",parameter:e},r=te.TSParameterProperty;return P(r.parameter,t,"parameter",e,1),t}function QPe(e=null,t=null,r,n=null){let a={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:n},i=te.TSDeclareFunction;return P(i.id,a,"id",e,1),P(i.typeParameters,a,"typeParameters",t,1),P(i.params,a,"params",r,1),P(i.returnType,a,"returnType",n,1),a}function eEe(e=null,t,r=null,n,a=null){let i={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:n,returnType:a},s=te.TSDeclareMethod;return P(s.decorators,i,"decorators",e,1),P(s.key,i,"key",t,1),P(s.typeParameters,i,"typeParameters",r,1),P(s.params,i,"params",n,1),P(s.returnType,i,"returnType",a,1),i}function tEe(e,t){let r={type:"TSQualifiedName",left:e,right:t},n=te.TSQualifiedName;return P(n.left,r,"left",e,1),P(n.right,r,"right",t,1),r}function rEe(e=null,t,r=null){let n={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},a=te.TSCallSignatureDeclaration;return P(a.typeParameters,n,"typeParameters",e,1),P(a.parameters,n,"parameters",t,1),P(a.typeAnnotation,n,"typeAnnotation",r,1),n}function nEe(e=null,t,r=null){let n={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},a=te.TSConstructSignatureDeclaration;return P(a.typeParameters,n,"typeParameters",e,1),P(a.parameters,n,"parameters",t,1),P(a.typeAnnotation,n,"typeAnnotation",r,1),n}function aEe(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},n=te.TSPropertySignature;return P(n.key,r,"key",e,1),P(n.typeAnnotation,r,"typeAnnotation",t,1),r}function iEe(e,t=null,r,n=null){let a={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:n,kind:null},i=te.TSMethodSignature;return P(i.key,a,"key",e,1),P(i.typeParameters,a,"typeParameters",t,1),P(i.parameters,a,"parameters",r,1),P(i.typeAnnotation,a,"typeAnnotation",n,1),a}function sEe(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},n=te.TSIndexSignature;return P(n.parameters,r,"parameters",e,1),P(n.typeAnnotation,r,"typeAnnotation",t,1),r}function oEe(){return{type:"TSAnyKeyword"}}function lEe(){return{type:"TSBooleanKeyword"}}function cEe(){return{type:"TSBigIntKeyword"}}function uEe(){return{type:"TSIntrinsicKeyword"}}function dEe(){return{type:"TSNeverKeyword"}}function fEe(){return{type:"TSNullKeyword"}}function pEe(){return{type:"TSNumberKeyword"}}function mEe(){return{type:"TSObjectKeyword"}}function hEe(){return{type:"TSStringKeyword"}}function gEe(){return{type:"TSSymbolKeyword"}}function yEe(){return{type:"TSUndefinedKeyword"}}function xEe(){return{type:"TSUnknownKeyword"}}function bEe(){return{type:"TSVoidKeyword"}}function vEe(){return{type:"TSThisType"}}function SEe(e=null,t,r=null){let n={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},a=te.TSFunctionType;return P(a.typeParameters,n,"typeParameters",e,1),P(a.parameters,n,"parameters",t,1),P(a.typeAnnotation,n,"typeAnnotation",r,1),n}function TEe(e=null,t,r=null){let n={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},a=te.TSConstructorType;return P(a.typeParameters,n,"typeParameters",e,1),P(a.parameters,n,"parameters",t,1),P(a.typeAnnotation,n,"typeAnnotation",r,1),n}function wEe(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},n=te.TSTypeReference;return P(n.typeName,r,"typeName",e,1),P(n.typeParameters,r,"typeParameters",t,1),r}function CEe(e,t=null,r=null){let n={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},a=te.TSTypePredicate;return P(a.parameterName,n,"parameterName",e,1),P(a.typeAnnotation,n,"typeAnnotation",t,1),P(a.asserts,n,"asserts",r),n}function PEe(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},n=te.TSTypeQuery;return P(n.exprName,r,"exprName",e,1),P(n.typeParameters,r,"typeParameters",t,1),r}function EEe(e){let t={type:"TSTypeLiteral",members:e},r=te.TSTypeLiteral;return P(r.members,t,"members",e,1),t}function IEe(e){let t={type:"TSArrayType",elementType:e},r=te.TSArrayType;return P(r.elementType,t,"elementType",e,1),t}function AEe(e){let t={type:"TSTupleType",elementTypes:e},r=te.TSTupleType;return P(r.elementTypes,t,"elementTypes",e,1),t}function NEe(e){let t={type:"TSOptionalType",typeAnnotation:e},r=te.TSOptionalType;return P(r.typeAnnotation,t,"typeAnnotation",e,1),t}function kEe(e){let t={type:"TSRestType",typeAnnotation:e},r=te.TSRestType;return P(r.typeAnnotation,t,"typeAnnotation",e,1),t}function _Ee(e,t,r=!1){let n={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},a=te.TSNamedTupleMember;return P(a.label,n,"label",e,1),P(a.elementType,n,"elementType",t,1),P(a.optional,n,"optional",r),n}function LEe(e){let t={type:"TSUnionType",types:e},r=te.TSUnionType;return P(r.types,t,"types",e,1),t}function REe(e){let t={type:"TSIntersectionType",types:e},r=te.TSIntersectionType;return P(r.types,t,"types",e,1),t}function DEe(e,t,r,n){let a={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:n},i=te.TSConditionalType;return P(i.checkType,a,"checkType",e,1),P(i.extendsType,a,"extendsType",t,1),P(i.trueType,a,"trueType",r,1),P(i.falseType,a,"falseType",n,1),a}function MEe(e){let t={type:"TSInferType",typeParameter:e},r=te.TSInferType;return P(r.typeParameter,t,"typeParameter",e,1),t}function OEe(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=te.TSParenthesizedType;return P(r.typeAnnotation,t,"typeAnnotation",e,1),t}function FEe(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},n=te.TSTypeOperator;return P(n.typeAnnotation,r,"typeAnnotation",e,1),P(n.operator,r,"operator",t),r}function BEe(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},n=te.TSIndexedAccessType;return P(n.objectType,r,"objectType",e,1),P(n.indexType,r,"indexType",t,1),r}function $Ee(e,t=null,r=null){let n={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},a=te.TSMappedType;return P(a.typeParameter,n,"typeParameter",e,1),P(a.typeAnnotation,n,"typeAnnotation",t,1),P(a.nameType,n,"nameType",r,1),n}function jEe(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},n=te.TSTemplateLiteralType;return P(n.quasis,r,"quasis",e,1),P(n.types,r,"types",t,1),r}function zEe(e){let t={type:"TSLiteralType",literal:e},r=te.TSLiteralType;return P(r.literal,t,"literal",e,1),t}function UEe(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},n=te.TSExpressionWithTypeArguments;return P(n.expression,r,"expression",e,1),P(n.typeParameters,r,"typeParameters",t,1),r}function VEe(e,t=null,r=null,n){let a={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},i=te.TSInterfaceDeclaration;return P(i.id,a,"id",e,1),P(i.typeParameters,a,"typeParameters",t,1),P(i.extends,a,"extends",r,1),P(i.body,a,"body",n,1),a}function qEe(e){let t={type:"TSInterfaceBody",body:e},r=te.TSInterfaceBody;return P(r.body,t,"body",e,1),t}function HEe(e,t=null,r){let n={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},a=te.TSTypeAliasDeclaration;return P(a.id,n,"id",e,1),P(a.typeParameters,n,"typeParameters",t,1),P(a.typeAnnotation,n,"typeAnnotation",r,1),n}function GEe(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},n=te.TSInstantiationExpression;return P(n.expression,r,"expression",e,1),P(n.typeParameters,r,"typeParameters",t,1),r}function KEe(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},n=te.TSAsExpression;return P(n.expression,r,"expression",e,1),P(n.typeAnnotation,r,"typeAnnotation",t,1),r}function WEe(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},n=te.TSSatisfiesExpression;return P(n.expression,r,"expression",e,1),P(n.typeAnnotation,r,"typeAnnotation",t,1),r}function XEe(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},n=te.TSTypeAssertion;return P(n.typeAnnotation,r,"typeAnnotation",e,1),P(n.expression,r,"expression",t,1),r}function YEe(e){let t={type:"TSEnumBody",members:e},r=te.TSEnumBody;return P(r.members,t,"members",e,1),t}function JEe(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},n=te.TSEnumDeclaration;return P(n.id,r,"id",e,1),P(n.members,r,"members",t,1),r}function ZEe(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},n=te.TSEnumMember;return P(n.id,r,"id",e,1),P(n.initializer,r,"initializer",t,1),r}function QEe(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},n=te.TSModuleDeclaration;return P(n.id,r,"id",e,1),P(n.body,r,"body",t,1),r}function eIe(e){let t={type:"TSModuleBlock",body:e},r=te.TSModuleBlock;return P(r.body,t,"body",e,1),t}function tIe(e,t=null,r=null){let n={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},a=te.TSImportType;return P(a.argument,n,"argument",e,1),P(a.qualifier,n,"qualifier",t,1),P(a.typeParameters,n,"typeParameters",r,1),n}function rIe(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},n=te.TSImportEqualsDeclaration;return P(n.id,r,"id",e,1),P(n.moduleReference,r,"moduleReference",t,1),r}function nIe(e){let t={type:"TSExternalModuleReference",expression:e},r=te.TSExternalModuleReference;return P(r.expression,t,"expression",e,1),t}function aIe(e){let t={type:"TSNonNullExpression",expression:e},r=te.TSNonNullExpression;return P(r.expression,t,"expression",e,1),t}function iIe(e){let t={type:"TSExportAssignment",expression:e},r=te.TSExportAssignment;return P(r.expression,t,"expression",e,1),t}function sIe(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=te.TSNamespaceExportDeclaration;return P(r.id,t,"id",e,1),t}function oIe(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=te.TSTypeAnnotation;return P(r.typeAnnotation,t,"typeAnnotation",e,1),t}function lIe(e){let t={type:"TSTypeParameterInstantiation",params:e},r=te.TSTypeParameterInstantiation;return P(r.params,t,"params",e,1),t}function cIe(e){let t={type:"TSTypeParameterDeclaration",params:e},r=te.TSTypeParameterDeclaration;return P(r.params,t,"params",e,1),t}function uIe(e=null,t=null,r){let n={type:"TSTypeParameter",constraint:e,default:t,name:r},a=te.TSTypeParameter;return P(a.constraint,n,"constraint",e,1),P(a.default,n,"default",t,1),P(a.name,n,"name",r),n}function dIe(e){return(0,D1.default)("NumberLiteral","NumericLiteral","The node type "),h9(e)}function fIe(e,t=""){return(0,D1.default)("RegexLiteral","RegExpLiteral","The node type "),g9(e,t)}function pIe(e){return(0,D1.default)("RestProperty","RestElement","The node type "),y9(e)}function mIe(e){return(0,D1.default)("SpreadProperty","SpreadElement","The node type "),x9(e)}});var b9=ae(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.JSXIdentifier=T.JSXFragment=T.JSXExpressionContainer=T.JSXEmptyExpression=T.JSXElement=T.JSXClosingFragment=T.JSXClosingElement=T.JSXAttribute=T.IntersectionTypeAnnotation=T.InterpreterDirective=T.InterfaceTypeAnnotation=T.InterfaceExtends=T.InterfaceDeclaration=T.InferredPredicate=T.IndexedAccessType=T.ImportSpecifier=T.ImportNamespaceSpecifier=T.ImportExpression=T.ImportDefaultSpecifier=T.ImportDeclaration=T.ImportAttribute=T.Import=T.IfStatement=T.Identifier=T.GenericTypeAnnotation=T.FunctionTypeParam=T.FunctionTypeAnnotation=T.FunctionExpression=T.FunctionDeclaration=T.ForStatement=T.ForOfStatement=T.ForInStatement=T.File=T.ExpressionStatement=T.ExportSpecifier=T.ExportNamespaceSpecifier=T.ExportNamedDeclaration=T.ExportDefaultSpecifier=T.ExportDefaultDeclaration=T.ExportAllDeclaration=T.ExistsTypeAnnotation=T.EnumSymbolBody=T.EnumStringMember=T.EnumStringBody=T.EnumNumberMember=T.EnumNumberBody=T.EnumDefaultedMember=T.EnumDeclaration=T.EnumBooleanMember=T.EnumBooleanBody=T.EmptyTypeAnnotation=T.EmptyStatement=T.DoWhileStatement=T.DoExpression=T.DirectiveLiteral=T.Directive=T.Decorator=T.DeclaredPredicate=T.DeclareVariable=T.DeclareTypeAlias=T.DeclareOpaqueType=T.DeclareModuleExports=T.DeclareModule=T.DeclareInterface=T.DeclareFunction=T.DeclareExportDeclaration=T.DeclareExportAllDeclaration=T.DeclareClass=T.DecimalLiteral=T.DebuggerStatement=T.ContinueStatement=T.ConditionalExpression=T.ClassProperty=T.ClassPrivateProperty=T.ClassPrivateMethod=T.ClassMethod=T.ClassImplements=T.ClassExpression=T.ClassDeclaration=T.ClassBody=T.ClassAccessorProperty=T.CatchClause=T.CallExpression=T.BreakStatement=T.BooleanTypeAnnotation=T.BooleanLiteralTypeAnnotation=T.BooleanLiteral=T.BlockStatement=T.BindExpression=T.BinaryExpression=T.BigIntLiteral=T.AwaitExpression=T.AssignmentPattern=T.AssignmentExpression=T.ArrowFunctionExpression=T.ArrayTypeAnnotation=T.ArrayPattern=T.ArrayExpression=T.ArgumentPlaceholder=T.AnyTypeAnnotation=void 0;T.TSNumberKeyword=T.TSNullKeyword=T.TSNonNullExpression=T.TSNeverKeyword=T.TSNamespaceExportDeclaration=T.TSNamedTupleMember=T.TSModuleDeclaration=T.TSModuleBlock=T.TSMethodSignature=T.TSMappedType=T.TSLiteralType=T.TSIntrinsicKeyword=T.TSIntersectionType=T.TSInterfaceDeclaration=T.TSInterfaceBody=T.TSInstantiationExpression=T.TSInferType=T.TSIndexedAccessType=T.TSIndexSignature=T.TSImportType=T.TSImportEqualsDeclaration=T.TSFunctionType=T.TSExternalModuleReference=T.TSExpressionWithTypeArguments=T.TSExportAssignment=T.TSEnumMember=T.TSEnumDeclaration=T.TSEnumBody=T.TSDeclareMethod=T.TSDeclareFunction=T.TSConstructorType=T.TSConstructSignatureDeclaration=T.TSConditionalType=T.TSCallSignatureDeclaration=T.TSBooleanKeyword=T.TSBigIntKeyword=T.TSAsExpression=T.TSArrayType=T.TSAnyKeyword=T.SymbolTypeAnnotation=T.SwitchStatement=T.SwitchCase=T.Super=T.StringTypeAnnotation=T.StringLiteralTypeAnnotation=T.StringLiteral=T.StaticBlock=T.SpreadProperty=T.SpreadElement=T.SequenceExpression=T.ReturnStatement=T.RestProperty=T.RestElement=T.RegexLiteral=T.RegExpLiteral=T.RecordExpression=T.QualifiedTypeIdentifier=T.Program=T.PrivateName=T.Placeholder=T.PipelineTopicExpression=T.PipelinePrimaryTopicReference=T.PipelineBareFunction=T.ParenthesizedExpression=T.OptionalMemberExpression=T.OptionalIndexedAccessType=T.OptionalCallExpression=T.OpaqueType=T.ObjectTypeSpreadProperty=T.ObjectTypeProperty=T.ObjectTypeInternalSlot=T.ObjectTypeIndexer=T.ObjectTypeCallProperty=T.ObjectTypeAnnotation=T.ObjectProperty=T.ObjectPattern=T.ObjectMethod=T.ObjectExpression=T.NumericLiteral=T.NumberTypeAnnotation=T.NumberLiteralTypeAnnotation=T.NumberLiteral=T.NullableTypeAnnotation=T.NullLiteralTypeAnnotation=T.NullLiteral=T.Noop=T.NewExpression=T.ModuleExpression=T.MixedTypeAnnotation=T.MetaProperty=T.MemberExpression=T.LogicalExpression=T.LabeledStatement=T.JSXText=T.JSXSpreadChild=T.JSXSpreadAttribute=T.JSXOpeningFragment=T.JSXOpeningElement=T.JSXNamespacedName=T.JSXMemberExpression=void 0;T.YieldExpression=T.WithStatement=T.WhileStatement=T.VoidTypeAnnotation=T.VoidPattern=T.Variance=T.VariableDeclarator=T.VariableDeclaration=T.V8IntrinsicIdentifier=T.UpdateExpression=T.UnionTypeAnnotation=T.UnaryExpression=T.TypeofTypeAnnotation=T.TypeParameterInstantiation=T.TypeParameterDeclaration=T.TypeParameter=T.TypeCastExpression=T.TypeAnnotation=T.TypeAlias=T.TupleTypeAnnotation=T.TupleExpression=T.TryStatement=T.TopicReference=T.ThrowStatement=T.ThisTypeAnnotation=T.ThisExpression=T.TemplateLiteral=T.TemplateElement=T.TaggedTemplateExpression=T.TSVoidKeyword=T.TSUnknownKeyword=T.TSUnionType=T.TSUndefinedKeyword=T.TSTypeReference=T.TSTypeQuery=T.TSTypePredicate=T.TSTypeParameterInstantiation=T.TSTypeParameterDeclaration=T.TSTypeParameter=T.TSTypeOperator=T.TSTypeLiteral=T.TSTypeAssertion=T.TSTypeAnnotation=T.TSTypeAliasDeclaration=T.TSTupleType=T.TSThisType=T.TSTemplateLiteralType=T.TSSymbolKeyword=T.TSStringKeyword=T.TSSatisfiesExpression=T.TSRestType=T.TSQualifiedName=T.TSPropertySignature=T.TSParenthesizedType=T.TSParameterProperty=T.TSOptionalType=T.TSObjectKeyword=void 0;var _0=yR(),qmt=Sy();function G(e){return _0[e]}var Hmt=T.ArrayExpression=G("arrayExpression"),Gmt=T.AssignmentExpression=G("assignmentExpression"),Kmt=T.BinaryExpression=G("binaryExpression"),Wmt=T.InterpreterDirective=G("interpreterDirective"),Xmt=T.Directive=G("directive"),Ymt=T.DirectiveLiteral=G("directiveLiteral"),Jmt=T.BlockStatement=G("blockStatement"),Zmt=T.BreakStatement=G("breakStatement"),Qmt=T.CallExpression=G("callExpression"),eht=T.CatchClause=G("catchClause"),tht=T.ConditionalExpression=G("conditionalExpression"),rht=T.ContinueStatement=G("continueStatement"),nht=T.DebuggerStatement=G("debuggerStatement"),aht=T.DoWhileStatement=G("doWhileStatement"),iht=T.EmptyStatement=G("emptyStatement"),sht=T.ExpressionStatement=G("expressionStatement"),oht=T.File=G("file"),lht=T.ForInStatement=G("forInStatement"),cht=T.ForStatement=G("forStatement"),uht=T.FunctionDeclaration=G("functionDeclaration"),dht=T.FunctionExpression=G("functionExpression"),fht=T.Identifier=G("identifier"),pht=T.IfStatement=G("ifStatement"),mht=T.LabeledStatement=G("labeledStatement"),hht=T.StringLiteral=G("stringLiteral"),ght=T.NumericLiteral=G("numericLiteral"),yht=T.NullLiteral=G("nullLiteral"),xht=T.BooleanLiteral=G("booleanLiteral"),bht=T.RegExpLiteral=G("regExpLiteral"),vht=T.LogicalExpression=G("logicalExpression"),Sht=T.MemberExpression=G("memberExpression"),Tht=T.NewExpression=G("newExpression"),wht=T.Program=G("program"),Cht=T.ObjectExpression=G("objectExpression"),Pht=T.ObjectMethod=G("objectMethod"),Eht=T.ObjectProperty=G("objectProperty"),Iht=T.RestElement=G("restElement"),Aht=T.ReturnStatement=G("returnStatement"),Nht=T.SequenceExpression=G("sequenceExpression"),kht=T.ParenthesizedExpression=G("parenthesizedExpression"),_ht=T.SwitchCase=G("switchCase"),Lht=T.SwitchStatement=G("switchStatement"),Rht=T.ThisExpression=G("thisExpression"),Dht=T.ThrowStatement=G("throwStatement"),Mht=T.TryStatement=G("tryStatement"),Oht=T.UnaryExpression=G("unaryExpression"),Fht=T.UpdateExpression=G("updateExpression"),Bht=T.VariableDeclaration=G("variableDeclaration"),$ht=T.VariableDeclarator=G("variableDeclarator"),jht=T.WhileStatement=G("whileStatement"),zht=T.WithStatement=G("withStatement"),Uht=T.AssignmentPattern=G("assignmentPattern"),Vht=T.ArrayPattern=G("arrayPattern"),qht=T.ArrowFunctionExpression=G("arrowFunctionExpression"),Hht=T.ClassBody=G("classBody"),Ght=T.ClassExpression=G("classExpression"),Kht=T.ClassDeclaration=G("classDeclaration"),Wht=T.ExportAllDeclaration=G("exportAllDeclaration"),Xht=T.ExportDefaultDeclaration=G("exportDefaultDeclaration"),Yht=T.ExportNamedDeclaration=G("exportNamedDeclaration"),Jht=T.ExportSpecifier=G("exportSpecifier"),Zht=T.ForOfStatement=G("forOfStatement"),Qht=T.ImportDeclaration=G("importDeclaration"),egt=T.ImportDefaultSpecifier=G("importDefaultSpecifier"),tgt=T.ImportNamespaceSpecifier=G("importNamespaceSpecifier"),rgt=T.ImportSpecifier=G("importSpecifier"),ngt=T.ImportExpression=G("importExpression"),agt=T.MetaProperty=G("metaProperty"),igt=T.ClassMethod=G("classMethod"),sgt=T.ObjectPattern=G("objectPattern"),ogt=T.SpreadElement=G("spreadElement"),lgt=T.Super=G("super"),cgt=T.TaggedTemplateExpression=G("taggedTemplateExpression"),ugt=T.TemplateElement=G("templateElement"),dgt=T.TemplateLiteral=G("templateLiteral"),fgt=T.YieldExpression=G("yieldExpression"),pgt=T.AwaitExpression=G("awaitExpression"),mgt=T.Import=G("import"),hgt=T.BigIntLiteral=G("bigIntLiteral"),ggt=T.ExportNamespaceSpecifier=G("exportNamespaceSpecifier"),ygt=T.OptionalMemberExpression=G("optionalMemberExpression"),xgt=T.OptionalCallExpression=G("optionalCallExpression"),bgt=T.ClassProperty=G("classProperty"),vgt=T.ClassAccessorProperty=G("classAccessorProperty"),Sgt=T.ClassPrivateProperty=G("classPrivateProperty"),Tgt=T.ClassPrivateMethod=G("classPrivateMethod"),wgt=T.PrivateName=G("privateName"),Cgt=T.StaticBlock=G("staticBlock"),Pgt=T.ImportAttribute=G("importAttribute"),Egt=T.AnyTypeAnnotation=G("anyTypeAnnotation"),Igt=T.ArrayTypeAnnotation=G("arrayTypeAnnotation"),Agt=T.BooleanTypeAnnotation=G("booleanTypeAnnotation"),Ngt=T.BooleanLiteralTypeAnnotation=G("booleanLiteralTypeAnnotation"),kgt=T.NullLiteralTypeAnnotation=G("nullLiteralTypeAnnotation"),_gt=T.ClassImplements=G("classImplements"),Lgt=T.DeclareClass=G("declareClass"),Rgt=T.DeclareFunction=G("declareFunction"),Dgt=T.DeclareInterface=G("declareInterface"),Mgt=T.DeclareModule=G("declareModule"),Ogt=T.DeclareModuleExports=G("declareModuleExports"),Fgt=T.DeclareTypeAlias=G("declareTypeAlias"),Bgt=T.DeclareOpaqueType=G("declareOpaqueType"),$gt=T.DeclareVariable=G("declareVariable"),jgt=T.DeclareExportDeclaration=G("declareExportDeclaration"),zgt=T.DeclareExportAllDeclaration=G("declareExportAllDeclaration"),Ugt=T.DeclaredPredicate=G("declaredPredicate"),Vgt=T.ExistsTypeAnnotation=G("existsTypeAnnotation"),qgt=T.FunctionTypeAnnotation=G("functionTypeAnnotation"),Hgt=T.FunctionTypeParam=G("functionTypeParam"),Ggt=T.GenericTypeAnnotation=G("genericTypeAnnotation"),Kgt=T.InferredPredicate=G("inferredPredicate"),Wgt=T.InterfaceExtends=G("interfaceExtends"),Xgt=T.InterfaceDeclaration=G("interfaceDeclaration"),Ygt=T.InterfaceTypeAnnotation=G("interfaceTypeAnnotation"),Jgt=T.IntersectionTypeAnnotation=G("intersectionTypeAnnotation"),Zgt=T.MixedTypeAnnotation=G("mixedTypeAnnotation"),Qgt=T.EmptyTypeAnnotation=G("emptyTypeAnnotation"),eyt=T.NullableTypeAnnotation=G("nullableTypeAnnotation"),tyt=T.NumberLiteralTypeAnnotation=G("numberLiteralTypeAnnotation"),ryt=T.NumberTypeAnnotation=G("numberTypeAnnotation"),nyt=T.ObjectTypeAnnotation=G("objectTypeAnnotation"),ayt=T.ObjectTypeInternalSlot=G("objectTypeInternalSlot"),iyt=T.ObjectTypeCallProperty=G("objectTypeCallProperty"),syt=T.ObjectTypeIndexer=G("objectTypeIndexer"),oyt=T.ObjectTypeProperty=G("objectTypeProperty"),lyt=T.ObjectTypeSpreadProperty=G("objectTypeSpreadProperty"),cyt=T.OpaqueType=G("opaqueType"),uyt=T.QualifiedTypeIdentifier=G("qualifiedTypeIdentifier"),dyt=T.StringLiteralTypeAnnotation=G("stringLiteralTypeAnnotation"),fyt=T.StringTypeAnnotation=G("stringTypeAnnotation"),pyt=T.SymbolTypeAnnotation=G("symbolTypeAnnotation"),myt=T.ThisTypeAnnotation=G("thisTypeAnnotation"),hyt=T.TupleTypeAnnotation=G("tupleTypeAnnotation"),gyt=T.TypeofTypeAnnotation=G("typeofTypeAnnotation"),yyt=T.TypeAlias=G("typeAlias"),xyt=T.TypeAnnotation=G("typeAnnotation"),byt=T.TypeCastExpression=G("typeCastExpression"),vyt=T.TypeParameter=G("typeParameter"),Syt=T.TypeParameterDeclaration=G("typeParameterDeclaration"),Tyt=T.TypeParameterInstantiation=G("typeParameterInstantiation"),wyt=T.UnionTypeAnnotation=G("unionTypeAnnotation"),Cyt=T.Variance=G("variance"),Pyt=T.VoidTypeAnnotation=G("voidTypeAnnotation"),Eyt=T.EnumDeclaration=G("enumDeclaration"),Iyt=T.EnumBooleanBody=G("enumBooleanBody"),Ayt=T.EnumNumberBody=G("enumNumberBody"),Nyt=T.EnumStringBody=G("enumStringBody"),kyt=T.EnumSymbolBody=G("enumSymbolBody"),_yt=T.EnumBooleanMember=G("enumBooleanMember"),Lyt=T.EnumNumberMember=G("enumNumberMember"),Ryt=T.EnumStringMember=G("enumStringMember"),Dyt=T.EnumDefaultedMember=G("enumDefaultedMember"),Myt=T.IndexedAccessType=G("indexedAccessType"),Oyt=T.OptionalIndexedAccessType=G("optionalIndexedAccessType"),Fyt=T.JSXAttribute=G("jsxAttribute"),Byt=T.JSXClosingElement=G("jsxClosingElement"),$yt=T.JSXElement=G("jsxElement"),jyt=T.JSXEmptyExpression=G("jsxEmptyExpression"),zyt=T.JSXExpressionContainer=G("jsxExpressionContainer"),Uyt=T.JSXSpreadChild=G("jsxSpreadChild"),Vyt=T.JSXIdentifier=G("jsxIdentifier"),qyt=T.JSXMemberExpression=G("jsxMemberExpression"),Hyt=T.JSXNamespacedName=G("jsxNamespacedName"),Gyt=T.JSXOpeningElement=G("jsxOpeningElement"),Kyt=T.JSXSpreadAttribute=G("jsxSpreadAttribute"),Wyt=T.JSXText=G("jsxText"),Xyt=T.JSXFragment=G("jsxFragment"),Yyt=T.JSXOpeningFragment=G("jsxOpeningFragment"),Jyt=T.JSXClosingFragment=G("jsxClosingFragment"),Zyt=T.Noop=G("noop"),Qyt=T.Placeholder=G("placeholder"),ext=T.V8IntrinsicIdentifier=G("v8IntrinsicIdentifier"),txt=T.ArgumentPlaceholder=G("argumentPlaceholder"),rxt=T.BindExpression=G("bindExpression"),nxt=T.Decorator=G("decorator"),axt=T.DoExpression=G("doExpression"),ixt=T.ExportDefaultSpecifier=G("exportDefaultSpecifier"),sxt=T.RecordExpression=G("recordExpression"),oxt=T.TupleExpression=G("tupleExpression"),lxt=T.DecimalLiteral=G("decimalLiteral"),cxt=T.ModuleExpression=G("moduleExpression"),uxt=T.TopicReference=G("topicReference"),dxt=T.PipelineTopicExpression=G("pipelineTopicExpression"),fxt=T.PipelineBareFunction=G("pipelineBareFunction"),pxt=T.PipelinePrimaryTopicReference=G("pipelinePrimaryTopicReference"),mxt=T.VoidPattern=G("voidPattern"),hxt=T.TSParameterProperty=G("tsParameterProperty"),gxt=T.TSDeclareFunction=G("tsDeclareFunction"),yxt=T.TSDeclareMethod=G("tsDeclareMethod"),xxt=T.TSQualifiedName=G("tsQualifiedName"),bxt=T.TSCallSignatureDeclaration=G("tsCallSignatureDeclaration"),vxt=T.TSConstructSignatureDeclaration=G("tsConstructSignatureDeclaration"),Sxt=T.TSPropertySignature=G("tsPropertySignature"),Txt=T.TSMethodSignature=G("tsMethodSignature"),wxt=T.TSIndexSignature=G("tsIndexSignature"),Cxt=T.TSAnyKeyword=G("tsAnyKeyword"),Pxt=T.TSBooleanKeyword=G("tsBooleanKeyword"),Ext=T.TSBigIntKeyword=G("tsBigIntKeyword"),Ixt=T.TSIntrinsicKeyword=G("tsIntrinsicKeyword"),Axt=T.TSNeverKeyword=G("tsNeverKeyword"),Nxt=T.TSNullKeyword=G("tsNullKeyword"),kxt=T.TSNumberKeyword=G("tsNumberKeyword"),_xt=T.TSObjectKeyword=G("tsObjectKeyword"),Lxt=T.TSStringKeyword=G("tsStringKeyword"),Rxt=T.TSSymbolKeyword=G("tsSymbolKeyword"),Dxt=T.TSUndefinedKeyword=G("tsUndefinedKeyword"),Mxt=T.TSUnknownKeyword=G("tsUnknownKeyword"),Oxt=T.TSVoidKeyword=G("tsVoidKeyword"),Fxt=T.TSThisType=G("tsThisType"),Bxt=T.TSFunctionType=G("tsFunctionType"),$xt=T.TSConstructorType=G("tsConstructorType"),jxt=T.TSTypeReference=G("tsTypeReference"),zxt=T.TSTypePredicate=G("tsTypePredicate"),Uxt=T.TSTypeQuery=G("tsTypeQuery"),Vxt=T.TSTypeLiteral=G("tsTypeLiteral"),qxt=T.TSArrayType=G("tsArrayType"),Hxt=T.TSTupleType=G("tsTupleType"),Gxt=T.TSOptionalType=G("tsOptionalType"),Kxt=T.TSRestType=G("tsRestType"),Wxt=T.TSNamedTupleMember=G("tsNamedTupleMember"),Xxt=T.TSUnionType=G("tsUnionType"),Yxt=T.TSIntersectionType=G("tsIntersectionType"),Jxt=T.TSConditionalType=G("tsConditionalType"),Zxt=T.TSInferType=G("tsInferType"),Qxt=T.TSParenthesizedType=G("tsParenthesizedType"),ebt=T.TSTypeOperator=G("tsTypeOperator"),tbt=T.TSIndexedAccessType=G("tsIndexedAccessType"),rbt=T.TSMappedType=G("tsMappedType"),nbt=T.TSTemplateLiteralType=G("tsTemplateLiteralType"),abt=T.TSLiteralType=G("tsLiteralType"),ibt=T.TSExpressionWithTypeArguments=G("tsExpressionWithTypeArguments"),sbt=T.TSInterfaceDeclaration=G("tsInterfaceDeclaration"),obt=T.TSInterfaceBody=G("tsInterfaceBody"),lbt=T.TSTypeAliasDeclaration=G("tsTypeAliasDeclaration"),cbt=T.TSInstantiationExpression=G("tsInstantiationExpression"),ubt=T.TSAsExpression=G("tsAsExpression"),dbt=T.TSSatisfiesExpression=G("tsSatisfiesExpression"),fbt=T.TSTypeAssertion=G("tsTypeAssertion"),pbt=T.TSEnumBody=G("tsEnumBody"),mbt=T.TSEnumDeclaration=G("tsEnumDeclaration"),hbt=T.TSEnumMember=G("tsEnumMember"),gbt=T.TSModuleDeclaration=G("tsModuleDeclaration"),ybt=T.TSModuleBlock=G("tsModuleBlock"),xbt=T.TSImportType=G("tsImportType"),bbt=T.TSImportEqualsDeclaration=G("tsImportEqualsDeclaration"),vbt=T.TSExternalModuleReference=G("tsExternalModuleReference"),Sbt=T.TSNonNullExpression=G("tsNonNullExpression"),Tbt=T.TSExportAssignment=G("tsExportAssignment"),wbt=T.TSNamespaceExportDeclaration=G("tsNamespaceExportDeclaration"),Cbt=T.TSTypeAnnotation=G("tsTypeAnnotation"),Pbt=T.TSTypeParameterInstantiation=G("tsTypeParameterInstantiation"),Ebt=T.TSTypeParameterDeclaration=G("tsTypeParameterDeclaration"),Ibt=T.TSTypeParameter=G("tsTypeParameter"),Abt=T.NumberLiteral=_0.numberLiteral,Nbt=T.RegexLiteral=_0.regexLiteral,kbt=T.RestProperty=_0.restProperty,_bt=T.SpreadProperty=_0.spreadProperty});var ao=ae(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var xR=yR();Object.keys(xR).forEach(function(e){e==="default"||e==="__esModule"||e in Lf&&Lf[e]===xR[e]||Object.defineProperty(Lf,e,{enumerable:!0,get:function(){return xR[e]}})});var bR=b9();Object.keys(bR).forEach(function(e){e==="default"||e==="__esModule"||e in Lf&&Lf[e]===bR[e]||Object.defineProperty(Lf,e,{enumerable:!0,get:function(){return bR[e]}})})});var v9=ae(vR=>{"use strict";Object.defineProperty(vR,"__esModule",{value:!0});vR.default=yIe;var hIe=ao(),gIe=xr();function yIe(e,t){let r=e.value.split(/\r\n|\n|\r/),n=0;for(let i=0;i{"use strict";Object.defineProperty(TR,"__esModule",{value:!0});TR.default=bIe;var SR=va(),xIe=v9();function bIe(e){let t=[];for(let r=0;r{"use strict";Object.defineProperty(wR,"__esModule",{value:!0});wR.default=SIe;var vIe=bl();function SIe(e){return!!(e&&vIe.VISITOR_KEYS[e.type])}});var T9=ae(PR=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0});PR.default=wIe;var TIe=CR();function wIe(e){if(!(0,TIe.default)(e)){var t;let r=(t=e?.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var w9=ae(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.assertAccessor=VLe;B.assertAnyTypeAnnotation=sNe;B.assertArgumentPlaceholder=Mke;B.assertArrayExpression=PIe;B.assertArrayPattern=wAe;B.assertArrayTypeAnnotation=oNe;B.assertArrowFunctionExpression=CAe;B.assertAssignmentExpression=EIe;B.assertAssignmentPattern=TAe;B.assertAwaitExpression=KAe;B.assertBigIntLiteral=XAe;B.assertBinary=uLe;B.assertBinaryExpression=IIe;B.assertBindExpression=Oke;B.assertBlock=pLe;B.assertBlockParent=fLe;B.assertBlockStatement=_Ie;B.assertBooleanLiteral=ZIe;B.assertBooleanLiteralTypeAnnotation=cNe;B.assertBooleanTypeAnnotation=lNe;B.assertBreakStatement=LIe;B.assertCallExpression=RIe;B.assertCatchClause=DIe;B.assertClass=$Le;B.assertClassAccessorProperty=eNe;B.assertClassBody=PAe;B.assertClassDeclaration=IAe;B.assertClassExpression=EAe;B.assertClassImplements=dNe;B.assertClassMethod=$Ae;B.assertClassPrivateMethod=rNe;B.assertClassPrivateProperty=tNe;B.assertClassProperty=QAe;B.assertCompletionStatement=gLe;B.assertConditional=yLe;B.assertConditionalExpression=MIe;B.assertContinueStatement=OIe;B.assertDebuggerStatement=FIe;B.assertDecimalLiteral=Uke;B.assertDeclaration=ELe;B.assertDeclareClass=fNe;B.assertDeclareExportAllDeclaration=SNe;B.assertDeclareExportDeclaration=vNe;B.assertDeclareFunction=pNe;B.assertDeclareInterface=mNe;B.assertDeclareModule=hNe;B.assertDeclareModuleExports=gNe;B.assertDeclareOpaqueType=xNe;B.assertDeclareTypeAlias=yNe;B.assertDeclareVariable=bNe;B.assertDeclaredPredicate=TNe;B.assertDecorator=Fke;B.assertDirective=NIe;B.assertDirectiveLiteral=kIe;B.assertDoExpression=Bke;B.assertDoWhileStatement=BIe;B.assertEmptyStatement=$Ie;B.assertEmptyTypeAnnotation=RNe;B.assertEnumBody=YLe;B.assertEnumBooleanBody=oke;B.assertEnumBooleanMember=dke;B.assertEnumDeclaration=ske;B.assertEnumDefaultedMember=mke;B.assertEnumMember=JLe;B.assertEnumNumberBody=lke;B.assertEnumNumberMember=fke;B.assertEnumStringBody=cke;B.assertEnumStringMember=pke;B.assertEnumSymbolBody=uke;B.assertExistsTypeAnnotation=wNe;B.assertExportAllDeclaration=AAe;B.assertExportDeclaration=zLe;B.assertExportDefaultDeclaration=NAe;B.assertExportDefaultSpecifier=$ke;B.assertExportNamedDeclaration=kAe;B.assertExportNamespaceSpecifier=YAe;B.assertExportSpecifier=_Ae;B.assertExpression=cLe;B.assertExpressionStatement=jIe;B.assertExpressionWrapper=vLe;B.assertFile=zIe;B.assertFlow=HLe;B.assertFlowBaseAnnotation=KLe;B.assertFlowDeclaration=WLe;B.assertFlowPredicate=XLe;B.assertFlowType=GLe;B.assertFor=SLe;B.assertForInStatement=UIe;B.assertForOfStatement=LAe;B.assertForStatement=VIe;B.assertForXStatement=TLe;B.assertFunction=wLe;B.assertFunctionDeclaration=qIe;B.assertFunctionExpression=HIe;B.assertFunctionParameter=ILe;B.assertFunctionParent=CLe;B.assertFunctionTypeAnnotation=CNe;B.assertFunctionTypeParam=PNe;B.assertGenericTypeAnnotation=ENe;B.assertIdentifier=GIe;B.assertIfStatement=KIe;B.assertImmutable=LLe;B.assertImport=WAe;B.assertImportAttribute=iNe;B.assertImportDeclaration=RAe;B.assertImportDefaultSpecifier=DAe;B.assertImportExpression=FAe;B.assertImportNamespaceSpecifier=MAe;B.assertImportOrExportDeclaration=jLe;B.assertImportSpecifier=OAe;B.assertIndexedAccessType=hke;B.assertInferredPredicate=INe;B.assertInterfaceDeclaration=NNe;B.assertInterfaceExtends=ANe;B.assertInterfaceTypeAnnotation=kNe;B.assertInterpreterDirective=AIe;B.assertIntersectionTypeAnnotation=_Ne;B.assertJSX=ZLe;B.assertJSXAttribute=yke;B.assertJSXClosingElement=xke;B.assertJSXClosingFragment=_ke;B.assertJSXElement=bke;B.assertJSXEmptyExpression=vke;B.assertJSXExpressionContainer=Ske;B.assertJSXFragment=Nke;B.assertJSXIdentifier=wke;B.assertJSXMemberExpression=Cke;B.assertJSXNamespacedName=Pke;B.assertJSXOpeningElement=Eke;B.assertJSXOpeningFragment=kke;B.assertJSXSpreadAttribute=Ike;B.assertJSXSpreadChild=Tke;B.assertJSXText=Ake;B.assertLVal=NLe;B.assertLabeledStatement=WIe;B.assertLiteral=_Le;B.assertLogicalExpression=eAe;B.assertLoop=xLe;B.assertMemberExpression=tAe;B.assertMetaProperty=BAe;B.assertMethod=DLe;B.assertMiscellaneous=QLe;B.assertMixedTypeAnnotation=LNe;B.assertModuleDeclaration=lRe;B.assertModuleExpression=Vke;B.assertModuleSpecifier=ULe;B.assertNewExpression=rAe;B.assertNoop=Lke;B.assertNullLiteral=JIe;B.assertNullLiteralTypeAnnotation=uNe;B.assertNullableTypeAnnotation=DNe;B.assertNumberLiteral=aRe;B.assertNumberLiteralTypeAnnotation=MNe;B.assertNumberTypeAnnotation=ONe;B.assertNumericLiteral=YIe;B.assertObjectExpression=aAe;B.assertObjectMember=MLe;B.assertObjectMethod=iAe;B.assertObjectPattern=jAe;B.assertObjectProperty=sAe;B.assertObjectTypeAnnotation=FNe;B.assertObjectTypeCallProperty=$Ne;B.assertObjectTypeIndexer=jNe;B.assertObjectTypeInternalSlot=BNe;B.assertObjectTypeProperty=zNe;B.assertObjectTypeSpreadProperty=UNe;B.assertOpaqueType=VNe;B.assertOptionalCallExpression=ZAe;B.assertOptionalIndexedAccessType=gke;B.assertOptionalMemberExpression=JAe;B.assertParenthesizedExpression=uAe;B.assertPattern=BLe;B.assertPatternLike=ALe;B.assertPipelineBareFunction=Gke;B.assertPipelinePrimaryTopicReference=Kke;B.assertPipelineTopicExpression=Hke;B.assertPlaceholder=Rke;B.assertPrivate=qLe;B.assertPrivateName=nNe;B.assertProgram=nAe;B.assertProperty=OLe;B.assertPureish=PLe;B.assertQualifiedTypeIdentifier=qNe;B.assertRecordExpression=jke;B.assertRegExpLiteral=QIe;B.assertRegexLiteral=iRe;B.assertRestElement=oAe;B.assertRestProperty=sRe;B.assertReturnStatement=lAe;B.assertScopable=dLe;B.assertSequenceExpression=cAe;B.assertSpreadElement=zAe;B.assertSpreadProperty=oRe;B.assertStandardized=lLe;B.assertStatement=mLe;B.assertStaticBlock=aNe;B.assertStringLiteral=XIe;B.assertStringLiteralTypeAnnotation=HNe;B.assertStringTypeAnnotation=GNe;B.assertSuper=UAe;B.assertSwitchCase=dAe;B.assertSwitchStatement=fAe;B.assertSymbolTypeAnnotation=KNe;B.assertTSAnyKeyword=a_e;B.assertTSArrayType=C_e;B.assertTSAsExpression=q_e;B.assertTSBaseType=nRe;B.assertTSBigIntKeyword=s_e;B.assertTSBooleanKeyword=i_e;B.assertTSCallSignatureDeclaration=Qke;B.assertTSConditionalType=__e;B.assertTSConstructSignatureDeclaration=e_e;B.assertTSConstructorType=b_e;B.assertTSDeclareFunction=Yke;B.assertTSDeclareMethod=Jke;B.assertTSEntityName=kLe;B.assertTSEnumBody=K_e;B.assertTSEnumDeclaration=W_e;B.assertTSEnumMember=X_e;B.assertTSExportAssignment=rLe;B.assertTSExpressionWithTypeArguments=$_e;B.assertTSExternalModuleReference=eLe;B.assertTSFunctionType=x_e;B.assertTSImportEqualsDeclaration=Q_e;B.assertTSImportType=Z_e;B.assertTSIndexSignature=n_e;B.assertTSIndexedAccessType=M_e;B.assertTSInferType=L_e;B.assertTSInstantiationExpression=V_e;B.assertTSInterfaceBody=z_e;B.assertTSInterfaceDeclaration=j_e;B.assertTSIntersectionType=k_e;B.assertTSIntrinsicKeyword=o_e;B.assertTSLiteralType=B_e;B.assertTSMappedType=O_e;B.assertTSMethodSignature=r_e;B.assertTSModuleBlock=J_e;B.assertTSModuleDeclaration=Y_e;B.assertTSNamedTupleMember=A_e;B.assertTSNamespaceExportDeclaration=nLe;B.assertTSNeverKeyword=l_e;B.assertTSNonNullExpression=tLe;B.assertTSNullKeyword=c_e;B.assertTSNumberKeyword=u_e;B.assertTSObjectKeyword=d_e;B.assertTSOptionalType=E_e;B.assertTSParameterProperty=Xke;B.assertTSParenthesizedType=R_e;B.assertTSPropertySignature=t_e;B.assertTSQualifiedName=Zke;B.assertTSRestType=I_e;B.assertTSSatisfiesExpression=H_e;B.assertTSStringKeyword=f_e;B.assertTSSymbolKeyword=p_e;B.assertTSTemplateLiteralType=F_e;B.assertTSThisType=y_e;B.assertTSTupleType=P_e;B.assertTSType=rRe;B.assertTSTypeAliasDeclaration=U_e;B.assertTSTypeAnnotation=aLe;B.assertTSTypeAssertion=G_e;B.assertTSTypeElement=tRe;B.assertTSTypeLiteral=w_e;B.assertTSTypeOperator=D_e;B.assertTSTypeParameter=oLe;B.assertTSTypeParameterDeclaration=sLe;B.assertTSTypeParameterInstantiation=iLe;B.assertTSTypePredicate=S_e;B.assertTSTypeQuery=T_e;B.assertTSTypeReference=v_e;B.assertTSUndefinedKeyword=m_e;B.assertTSUnionType=N_e;B.assertTSUnknownKeyword=h_e;B.assertTSVoidKeyword=g_e;B.assertTaggedTemplateExpression=VAe;B.assertTemplateElement=qAe;B.assertTemplateLiteral=HAe;B.assertTerminatorless=hLe;B.assertThisExpression=pAe;B.assertThisTypeAnnotation=WNe;B.assertThrowStatement=mAe;B.assertTopicReference=qke;B.assertTryStatement=hAe;B.assertTupleExpression=zke;B.assertTupleTypeAnnotation=XNe;B.assertTypeAlias=JNe;B.assertTypeAnnotation=ZNe;B.assertTypeCastExpression=QNe;B.assertTypeParameter=eke;B.assertTypeParameterDeclaration=tke;B.assertTypeParameterInstantiation=rke;B.assertTypeScript=eRe;B.assertTypeofTypeAnnotation=YNe;B.assertUnaryExpression=gAe;B.assertUnaryLike=FLe;B.assertUnionTypeAnnotation=nke;B.assertUpdateExpression=yAe;B.assertUserWhitespacable=RLe;B.assertV8IntrinsicIdentifier=Dke;B.assertVariableDeclaration=xAe;B.assertVariableDeclarator=bAe;B.assertVariance=ake;B.assertVoidPattern=Wke;B.assertVoidTypeAnnotation=ike;B.assertWhile=bLe;B.assertWhileStatement=vAe;B.assertWithStatement=SAe;B.assertYieldExpression=GAe;var CIe=Ty(),L0=Sy();function $(e,t,r){if(!(0,CIe.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function PIe(e,t){$("ArrayExpression",e,t)}function EIe(e,t){$("AssignmentExpression",e,t)}function IIe(e,t){$("BinaryExpression",e,t)}function AIe(e,t){$("InterpreterDirective",e,t)}function NIe(e,t){$("Directive",e,t)}function kIe(e,t){$("DirectiveLiteral",e,t)}function _Ie(e,t){$("BlockStatement",e,t)}function LIe(e,t){$("BreakStatement",e,t)}function RIe(e,t){$("CallExpression",e,t)}function DIe(e,t){$("CatchClause",e,t)}function MIe(e,t){$("ConditionalExpression",e,t)}function OIe(e,t){$("ContinueStatement",e,t)}function FIe(e,t){$("DebuggerStatement",e,t)}function BIe(e,t){$("DoWhileStatement",e,t)}function $Ie(e,t){$("EmptyStatement",e,t)}function jIe(e,t){$("ExpressionStatement",e,t)}function zIe(e,t){$("File",e,t)}function UIe(e,t){$("ForInStatement",e,t)}function VIe(e,t){$("ForStatement",e,t)}function qIe(e,t){$("FunctionDeclaration",e,t)}function HIe(e,t){$("FunctionExpression",e,t)}function GIe(e,t){$("Identifier",e,t)}function KIe(e,t){$("IfStatement",e,t)}function WIe(e,t){$("LabeledStatement",e,t)}function XIe(e,t){$("StringLiteral",e,t)}function YIe(e,t){$("NumericLiteral",e,t)}function JIe(e,t){$("NullLiteral",e,t)}function ZIe(e,t){$("BooleanLiteral",e,t)}function QIe(e,t){$("RegExpLiteral",e,t)}function eAe(e,t){$("LogicalExpression",e,t)}function tAe(e,t){$("MemberExpression",e,t)}function rAe(e,t){$("NewExpression",e,t)}function nAe(e,t){$("Program",e,t)}function aAe(e,t){$("ObjectExpression",e,t)}function iAe(e,t){$("ObjectMethod",e,t)}function sAe(e,t){$("ObjectProperty",e,t)}function oAe(e,t){$("RestElement",e,t)}function lAe(e,t){$("ReturnStatement",e,t)}function cAe(e,t){$("SequenceExpression",e,t)}function uAe(e,t){$("ParenthesizedExpression",e,t)}function dAe(e,t){$("SwitchCase",e,t)}function fAe(e,t){$("SwitchStatement",e,t)}function pAe(e,t){$("ThisExpression",e,t)}function mAe(e,t){$("ThrowStatement",e,t)}function hAe(e,t){$("TryStatement",e,t)}function gAe(e,t){$("UnaryExpression",e,t)}function yAe(e,t){$("UpdateExpression",e,t)}function xAe(e,t){$("VariableDeclaration",e,t)}function bAe(e,t){$("VariableDeclarator",e,t)}function vAe(e,t){$("WhileStatement",e,t)}function SAe(e,t){$("WithStatement",e,t)}function TAe(e,t){$("AssignmentPattern",e,t)}function wAe(e,t){$("ArrayPattern",e,t)}function CAe(e,t){$("ArrowFunctionExpression",e,t)}function PAe(e,t){$("ClassBody",e,t)}function EAe(e,t){$("ClassExpression",e,t)}function IAe(e,t){$("ClassDeclaration",e,t)}function AAe(e,t){$("ExportAllDeclaration",e,t)}function NAe(e,t){$("ExportDefaultDeclaration",e,t)}function kAe(e,t){$("ExportNamedDeclaration",e,t)}function _Ae(e,t){$("ExportSpecifier",e,t)}function LAe(e,t){$("ForOfStatement",e,t)}function RAe(e,t){$("ImportDeclaration",e,t)}function DAe(e,t){$("ImportDefaultSpecifier",e,t)}function MAe(e,t){$("ImportNamespaceSpecifier",e,t)}function OAe(e,t){$("ImportSpecifier",e,t)}function FAe(e,t){$("ImportExpression",e,t)}function BAe(e,t){$("MetaProperty",e,t)}function $Ae(e,t){$("ClassMethod",e,t)}function jAe(e,t){$("ObjectPattern",e,t)}function zAe(e,t){$("SpreadElement",e,t)}function UAe(e,t){$("Super",e,t)}function VAe(e,t){$("TaggedTemplateExpression",e,t)}function qAe(e,t){$("TemplateElement",e,t)}function HAe(e,t){$("TemplateLiteral",e,t)}function GAe(e,t){$("YieldExpression",e,t)}function KAe(e,t){$("AwaitExpression",e,t)}function WAe(e,t){$("Import",e,t)}function XAe(e,t){$("BigIntLiteral",e,t)}function YAe(e,t){$("ExportNamespaceSpecifier",e,t)}function JAe(e,t){$("OptionalMemberExpression",e,t)}function ZAe(e,t){$("OptionalCallExpression",e,t)}function QAe(e,t){$("ClassProperty",e,t)}function eNe(e,t){$("ClassAccessorProperty",e,t)}function tNe(e,t){$("ClassPrivateProperty",e,t)}function rNe(e,t){$("ClassPrivateMethod",e,t)}function nNe(e,t){$("PrivateName",e,t)}function aNe(e,t){$("StaticBlock",e,t)}function iNe(e,t){$("ImportAttribute",e,t)}function sNe(e,t){$("AnyTypeAnnotation",e,t)}function oNe(e,t){$("ArrayTypeAnnotation",e,t)}function lNe(e,t){$("BooleanTypeAnnotation",e,t)}function cNe(e,t){$("BooleanLiteralTypeAnnotation",e,t)}function uNe(e,t){$("NullLiteralTypeAnnotation",e,t)}function dNe(e,t){$("ClassImplements",e,t)}function fNe(e,t){$("DeclareClass",e,t)}function pNe(e,t){$("DeclareFunction",e,t)}function mNe(e,t){$("DeclareInterface",e,t)}function hNe(e,t){$("DeclareModule",e,t)}function gNe(e,t){$("DeclareModuleExports",e,t)}function yNe(e,t){$("DeclareTypeAlias",e,t)}function xNe(e,t){$("DeclareOpaqueType",e,t)}function bNe(e,t){$("DeclareVariable",e,t)}function vNe(e,t){$("DeclareExportDeclaration",e,t)}function SNe(e,t){$("DeclareExportAllDeclaration",e,t)}function TNe(e,t){$("DeclaredPredicate",e,t)}function wNe(e,t){$("ExistsTypeAnnotation",e,t)}function CNe(e,t){$("FunctionTypeAnnotation",e,t)}function PNe(e,t){$("FunctionTypeParam",e,t)}function ENe(e,t){$("GenericTypeAnnotation",e,t)}function INe(e,t){$("InferredPredicate",e,t)}function ANe(e,t){$("InterfaceExtends",e,t)}function NNe(e,t){$("InterfaceDeclaration",e,t)}function kNe(e,t){$("InterfaceTypeAnnotation",e,t)}function _Ne(e,t){$("IntersectionTypeAnnotation",e,t)}function LNe(e,t){$("MixedTypeAnnotation",e,t)}function RNe(e,t){$("EmptyTypeAnnotation",e,t)}function DNe(e,t){$("NullableTypeAnnotation",e,t)}function MNe(e,t){$("NumberLiteralTypeAnnotation",e,t)}function ONe(e,t){$("NumberTypeAnnotation",e,t)}function FNe(e,t){$("ObjectTypeAnnotation",e,t)}function BNe(e,t){$("ObjectTypeInternalSlot",e,t)}function $Ne(e,t){$("ObjectTypeCallProperty",e,t)}function jNe(e,t){$("ObjectTypeIndexer",e,t)}function zNe(e,t){$("ObjectTypeProperty",e,t)}function UNe(e,t){$("ObjectTypeSpreadProperty",e,t)}function VNe(e,t){$("OpaqueType",e,t)}function qNe(e,t){$("QualifiedTypeIdentifier",e,t)}function HNe(e,t){$("StringLiteralTypeAnnotation",e,t)}function GNe(e,t){$("StringTypeAnnotation",e,t)}function KNe(e,t){$("SymbolTypeAnnotation",e,t)}function WNe(e,t){$("ThisTypeAnnotation",e,t)}function XNe(e,t){$("TupleTypeAnnotation",e,t)}function YNe(e,t){$("TypeofTypeAnnotation",e,t)}function JNe(e,t){$("TypeAlias",e,t)}function ZNe(e,t){$("TypeAnnotation",e,t)}function QNe(e,t){$("TypeCastExpression",e,t)}function eke(e,t){$("TypeParameter",e,t)}function tke(e,t){$("TypeParameterDeclaration",e,t)}function rke(e,t){$("TypeParameterInstantiation",e,t)}function nke(e,t){$("UnionTypeAnnotation",e,t)}function ake(e,t){$("Variance",e,t)}function ike(e,t){$("VoidTypeAnnotation",e,t)}function ske(e,t){$("EnumDeclaration",e,t)}function oke(e,t){$("EnumBooleanBody",e,t)}function lke(e,t){$("EnumNumberBody",e,t)}function cke(e,t){$("EnumStringBody",e,t)}function uke(e,t){$("EnumSymbolBody",e,t)}function dke(e,t){$("EnumBooleanMember",e,t)}function fke(e,t){$("EnumNumberMember",e,t)}function pke(e,t){$("EnumStringMember",e,t)}function mke(e,t){$("EnumDefaultedMember",e,t)}function hke(e,t){$("IndexedAccessType",e,t)}function gke(e,t){$("OptionalIndexedAccessType",e,t)}function yke(e,t){$("JSXAttribute",e,t)}function xke(e,t){$("JSXClosingElement",e,t)}function bke(e,t){$("JSXElement",e,t)}function vke(e,t){$("JSXEmptyExpression",e,t)}function Ske(e,t){$("JSXExpressionContainer",e,t)}function Tke(e,t){$("JSXSpreadChild",e,t)}function wke(e,t){$("JSXIdentifier",e,t)}function Cke(e,t){$("JSXMemberExpression",e,t)}function Pke(e,t){$("JSXNamespacedName",e,t)}function Eke(e,t){$("JSXOpeningElement",e,t)}function Ike(e,t){$("JSXSpreadAttribute",e,t)}function Ake(e,t){$("JSXText",e,t)}function Nke(e,t){$("JSXFragment",e,t)}function kke(e,t){$("JSXOpeningFragment",e,t)}function _ke(e,t){$("JSXClosingFragment",e,t)}function Lke(e,t){$("Noop",e,t)}function Rke(e,t){$("Placeholder",e,t)}function Dke(e,t){$("V8IntrinsicIdentifier",e,t)}function Mke(e,t){$("ArgumentPlaceholder",e,t)}function Oke(e,t){$("BindExpression",e,t)}function Fke(e,t){$("Decorator",e,t)}function Bke(e,t){$("DoExpression",e,t)}function $ke(e,t){$("ExportDefaultSpecifier",e,t)}function jke(e,t){$("RecordExpression",e,t)}function zke(e,t){$("TupleExpression",e,t)}function Uke(e,t){$("DecimalLiteral",e,t)}function Vke(e,t){$("ModuleExpression",e,t)}function qke(e,t){$("TopicReference",e,t)}function Hke(e,t){$("PipelineTopicExpression",e,t)}function Gke(e,t){$("PipelineBareFunction",e,t)}function Kke(e,t){$("PipelinePrimaryTopicReference",e,t)}function Wke(e,t){$("VoidPattern",e,t)}function Xke(e,t){$("TSParameterProperty",e,t)}function Yke(e,t){$("TSDeclareFunction",e,t)}function Jke(e,t){$("TSDeclareMethod",e,t)}function Zke(e,t){$("TSQualifiedName",e,t)}function Qke(e,t){$("TSCallSignatureDeclaration",e,t)}function e_e(e,t){$("TSConstructSignatureDeclaration",e,t)}function t_e(e,t){$("TSPropertySignature",e,t)}function r_e(e,t){$("TSMethodSignature",e,t)}function n_e(e,t){$("TSIndexSignature",e,t)}function a_e(e,t){$("TSAnyKeyword",e,t)}function i_e(e,t){$("TSBooleanKeyword",e,t)}function s_e(e,t){$("TSBigIntKeyword",e,t)}function o_e(e,t){$("TSIntrinsicKeyword",e,t)}function l_e(e,t){$("TSNeverKeyword",e,t)}function c_e(e,t){$("TSNullKeyword",e,t)}function u_e(e,t){$("TSNumberKeyword",e,t)}function d_e(e,t){$("TSObjectKeyword",e,t)}function f_e(e,t){$("TSStringKeyword",e,t)}function p_e(e,t){$("TSSymbolKeyword",e,t)}function m_e(e,t){$("TSUndefinedKeyword",e,t)}function h_e(e,t){$("TSUnknownKeyword",e,t)}function g_e(e,t){$("TSVoidKeyword",e,t)}function y_e(e,t){$("TSThisType",e,t)}function x_e(e,t){$("TSFunctionType",e,t)}function b_e(e,t){$("TSConstructorType",e,t)}function v_e(e,t){$("TSTypeReference",e,t)}function S_e(e,t){$("TSTypePredicate",e,t)}function T_e(e,t){$("TSTypeQuery",e,t)}function w_e(e,t){$("TSTypeLiteral",e,t)}function C_e(e,t){$("TSArrayType",e,t)}function P_e(e,t){$("TSTupleType",e,t)}function E_e(e,t){$("TSOptionalType",e,t)}function I_e(e,t){$("TSRestType",e,t)}function A_e(e,t){$("TSNamedTupleMember",e,t)}function N_e(e,t){$("TSUnionType",e,t)}function k_e(e,t){$("TSIntersectionType",e,t)}function __e(e,t){$("TSConditionalType",e,t)}function L_e(e,t){$("TSInferType",e,t)}function R_e(e,t){$("TSParenthesizedType",e,t)}function D_e(e,t){$("TSTypeOperator",e,t)}function M_e(e,t){$("TSIndexedAccessType",e,t)}function O_e(e,t){$("TSMappedType",e,t)}function F_e(e,t){$("TSTemplateLiteralType",e,t)}function B_e(e,t){$("TSLiteralType",e,t)}function $_e(e,t){$("TSExpressionWithTypeArguments",e,t)}function j_e(e,t){$("TSInterfaceDeclaration",e,t)}function z_e(e,t){$("TSInterfaceBody",e,t)}function U_e(e,t){$("TSTypeAliasDeclaration",e,t)}function V_e(e,t){$("TSInstantiationExpression",e,t)}function q_e(e,t){$("TSAsExpression",e,t)}function H_e(e,t){$("TSSatisfiesExpression",e,t)}function G_e(e,t){$("TSTypeAssertion",e,t)}function K_e(e,t){$("TSEnumBody",e,t)}function W_e(e,t){$("TSEnumDeclaration",e,t)}function X_e(e,t){$("TSEnumMember",e,t)}function Y_e(e,t){$("TSModuleDeclaration",e,t)}function J_e(e,t){$("TSModuleBlock",e,t)}function Z_e(e,t){$("TSImportType",e,t)}function Q_e(e,t){$("TSImportEqualsDeclaration",e,t)}function eLe(e,t){$("TSExternalModuleReference",e,t)}function tLe(e,t){$("TSNonNullExpression",e,t)}function rLe(e,t){$("TSExportAssignment",e,t)}function nLe(e,t){$("TSNamespaceExportDeclaration",e,t)}function aLe(e,t){$("TSTypeAnnotation",e,t)}function iLe(e,t){$("TSTypeParameterInstantiation",e,t)}function sLe(e,t){$("TSTypeParameterDeclaration",e,t)}function oLe(e,t){$("TSTypeParameter",e,t)}function lLe(e,t){$("Standardized",e,t)}function cLe(e,t){$("Expression",e,t)}function uLe(e,t){$("Binary",e,t)}function dLe(e,t){$("Scopable",e,t)}function fLe(e,t){$("BlockParent",e,t)}function pLe(e,t){$("Block",e,t)}function mLe(e,t){$("Statement",e,t)}function hLe(e,t){$("Terminatorless",e,t)}function gLe(e,t){$("CompletionStatement",e,t)}function yLe(e,t){$("Conditional",e,t)}function xLe(e,t){$("Loop",e,t)}function bLe(e,t){$("While",e,t)}function vLe(e,t){$("ExpressionWrapper",e,t)}function SLe(e,t){$("For",e,t)}function TLe(e,t){$("ForXStatement",e,t)}function wLe(e,t){$("Function",e,t)}function CLe(e,t){$("FunctionParent",e,t)}function PLe(e,t){$("Pureish",e,t)}function ELe(e,t){$("Declaration",e,t)}function ILe(e,t){$("FunctionParameter",e,t)}function ALe(e,t){$("PatternLike",e,t)}function NLe(e,t){$("LVal",e,t)}function kLe(e,t){$("TSEntityName",e,t)}function _Le(e,t){$("Literal",e,t)}function LLe(e,t){$("Immutable",e,t)}function RLe(e,t){$("UserWhitespacable",e,t)}function DLe(e,t){$("Method",e,t)}function MLe(e,t){$("ObjectMember",e,t)}function OLe(e,t){$("Property",e,t)}function FLe(e,t){$("UnaryLike",e,t)}function BLe(e,t){$("Pattern",e,t)}function $Le(e,t){$("Class",e,t)}function jLe(e,t){$("ImportOrExportDeclaration",e,t)}function zLe(e,t){$("ExportDeclaration",e,t)}function ULe(e,t){$("ModuleSpecifier",e,t)}function VLe(e,t){$("Accessor",e,t)}function qLe(e,t){$("Private",e,t)}function HLe(e,t){$("Flow",e,t)}function GLe(e,t){$("FlowType",e,t)}function KLe(e,t){$("FlowBaseAnnotation",e,t)}function WLe(e,t){$("FlowDeclaration",e,t)}function XLe(e,t){$("FlowPredicate",e,t)}function YLe(e,t){$("EnumBody",e,t)}function JLe(e,t){$("EnumMember",e,t)}function ZLe(e,t){$("JSX",e,t)}function QLe(e,t){$("Miscellaneous",e,t)}function eRe(e,t){$("TypeScript",e,t)}function tRe(e,t){$("TSTypeElement",e,t)}function rRe(e,t){$("TSType",e,t)}function nRe(e,t){$("TSBaseType",e,t)}function aRe(e,t){(0,L0.default)("assertNumberLiteral","assertNumericLiteral"),$("NumberLiteral",e,t)}function iRe(e,t){(0,L0.default)("assertRegexLiteral","assertRegExpLiteral"),$("RegexLiteral",e,t)}function sRe(e,t){(0,L0.default)("assertRestProperty","assertRestElement"),$("RestProperty",e,t)}function oRe(e,t){(0,L0.default)("assertSpreadProperty","assertSpreadElement"),$("SpreadProperty",e,t)}function lRe(e,t){(0,L0.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),$("ModuleDeclaration",e,t)}});var C9=ae(M1=>{"use strict";Object.defineProperty(M1,"__esModule",{value:!0});M1.default=void 0;var mc=ao(),$bt=M1.default=cRe;function cRe(e){switch(e){case"string":return(0,mc.stringTypeAnnotation)();case"number":return(0,mc.numberTypeAnnotation)();case"undefined":return(0,mc.voidTypeAnnotation)();case"boolean":return(0,mc.booleanTypeAnnotation)();case"function":return(0,mc.genericTypeAnnotation)((0,mc.identifier)("Function"));case"object":return(0,mc.genericTypeAnnotation)((0,mc.identifier)("Object"));case"symbol":return(0,mc.genericTypeAnnotation)((0,mc.identifier)("Symbol"));case"bigint":return(0,mc.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var IR=ae(ER=>{"use strict";Object.defineProperty(ER,"__esModule",{value:!0});ER.default=E9;var R0=va();function P9(e){return(0,R0.isIdentifier)(e)?e.name:`${e.id.name}.${P9(e.qualification)}`}function E9(e){let t=Array.from(e),r=new Map,n=new Map,a=new Set,i=[];for(let s=0;s{"use strict";Object.defineProperty(AR,"__esModule",{value:!0});AR.default=fRe;var uRe=ao(),dRe=IR();function fRe(e){let t=(0,dRe.default)(e);return t.length===1?t[0]:(0,uRe.unionTypeAnnotation)(t)}});var k9=ae(NR=>{"use strict";Object.defineProperty(NR,"__esModule",{value:!0});NR.default=N9;var Ny=va();function A9(e){return(0,Ny.isIdentifier)(e)?e.name:(0,Ny.isThisExpression)(e)?"this":`${e.right.name}.${A9(e.left)}`}function N9(e){let t=Array.from(e),r=new Map,n=new Map,a=new Set,i=[];for(let s=0;s{"use strict";Object.defineProperty(kR,"__esModule",{value:!0});kR.default=gRe;var pRe=ao(),mRe=k9(),hRe=va();function gRe(e){let t=e.map(n=>(0,hRe.isTSTypeAnnotation)(n)?n.typeAnnotation:n),r=(0,mRe.default)(t);return r.length===1?r[0]:(0,pRe.tsUnionType)(r)}});var LR=ae(_R=>{"use strict";Object.defineProperty(_R,"__esModule",{value:!0});_R.buildUndefinedNode=yRe;var L9=ao();function yRe(){return(0,L9.unaryExpression)("void",(0,L9.numericLiteral)(0),!0)}});var Rf=ae(DR=>{"use strict";Object.defineProperty(DR,"__esModule",{value:!0});DR.default=xRe;var R9=bl(),D9=va(),{hasOwn:Qc}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function M9(e,t,r,n){return e&&typeof e.type=="string"?O9(e,t,r,n):e}function RR(e,t,r,n){return Array.isArray(e)?e.map(a=>M9(a,t,r,n)):M9(e,t,r,n)}function xRe(e,t=!0,r=!1){return O9(e,t,r,new Map)}function O9(e,t=!0,r=!1,n){if(!e)return e;let{type:a}=e,i={type:e.type};if((0,D9.isIdentifier)(e))i.name=e.name,Qc(e,"optional")&&typeof e.optional=="boolean"&&(i.optional=e.optional),Qc(e,"typeAnnotation")&&(i.typeAnnotation=t?RR(e.typeAnnotation,!0,r,n):e.typeAnnotation),Qc(e,"decorators")&&(i.decorators=t?RR(e.decorators,!0,r,n):e.decorators);else if(Qc(R9.NODE_FIELDS,a))for(let s of Object.keys(R9.NODE_FIELDS[a]))Qc(e,s)&&(t?i[s]=(0,D9.isFile)(e)&&s==="comments"?O1(e.comments,t,r,n):RR(e[s],!0,r,n):i[s]=e[s]);else throw new Error(`Unknown node type: "${a}"`);return Qc(e,"loc")&&(r?i.loc=null:i.loc=e.loc),Qc(e,"leadingComments")&&(i.leadingComments=O1(e.leadingComments,t,r,n)),Qc(e,"innerComments")&&(i.innerComments=O1(e.innerComments,t,r,n)),Qc(e,"trailingComments")&&(i.trailingComments=O1(e.trailingComments,t,r,n)),Qc(e,"extra")&&(i.extra=Object.assign({},e.extra)),i}function O1(e,t,r,n){return!e||!t?e:e.map(a=>{let i=n.get(a);if(i)return i;let{type:s,value:o,loc:l}=a,c={type:s,value:o,loc:l};return r&&(c.loc=null),n.set(a,c),c})}});var F9=ae(MR=>{"use strict";Object.defineProperty(MR,"__esModule",{value:!0});MR.default=vRe;var bRe=Rf();function vRe(e){return(0,bRe.default)(e,!1)}});var B9=ae(OR=>{"use strict";Object.defineProperty(OR,"__esModule",{value:!0});OR.default=TRe;var SRe=Rf();function TRe(e){return(0,SRe.default)(e)}});var $9=ae(FR=>{"use strict";Object.defineProperty(FR,"__esModule",{value:!0});FR.default=CRe;var wRe=Rf();function CRe(e){return(0,wRe.default)(e,!0,!0)}});var j9=ae(BR=>{"use strict";Object.defineProperty(BR,"__esModule",{value:!0});BR.default=ERe;var PRe=Rf();function ERe(e){return(0,PRe.default)(e,!1,!0)}});var jR=ae($R=>{"use strict";Object.defineProperty($R,"__esModule",{value:!0});$R.default=IRe;function IRe(e,t,r){if(!r||!e)return e;let n=`${t}Comments`;return e[n]?t==="leading"?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r,e}});var z9=ae(zR=>{"use strict";Object.defineProperty(zR,"__esModule",{value:!0});zR.default=NRe;var ARe=jR();function NRe(e,t,r,n){return(0,ARe.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}});var F1=ae(UR=>{"use strict";Object.defineProperty(UR,"__esModule",{value:!0});UR.default=kRe;function kRe(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}});var qR=ae(VR=>{"use strict";Object.defineProperty(VR,"__esModule",{value:!0});VR.default=LRe;var _Re=F1();function LRe(e,t){(0,_Re.default)("innerComments",e,t)}});var GR=ae(HR=>{"use strict";Object.defineProperty(HR,"__esModule",{value:!0});HR.default=DRe;var RRe=F1();function DRe(e,t){(0,RRe.default)("leadingComments",e,t)}});var WR=ae(KR=>{"use strict";Object.defineProperty(KR,"__esModule",{value:!0});KR.default=ORe;var MRe=F1();function ORe(e,t){(0,MRe.default)("trailingComments",e,t)}});var YR=ae(XR=>{"use strict";Object.defineProperty(XR,"__esModule",{value:!0});XR.default=jRe;var FRe=WR(),BRe=GR(),$Re=qR();function jRe(e,t){return(0,FRe.default)(e,t),(0,BRe.default)(e,t),(0,$Re.default)(e,t),e}});var U9=ae(JR=>{"use strict";Object.defineProperty(JR,"__esModule",{value:!0});JR.default=URe;var zRe=Cy();function URe(e){return zRe.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}});var V9=ae(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.WHILE_TYPES=ze.USERWHITESPACABLE_TYPES=ze.UNARYLIKE_TYPES=ze.TYPESCRIPT_TYPES=ze.TSTYPE_TYPES=ze.TSTYPEELEMENT_TYPES=ze.TSENTITYNAME_TYPES=ze.TSBASETYPE_TYPES=ze.TERMINATORLESS_TYPES=ze.STATEMENT_TYPES=ze.STANDARDIZED_TYPES=ze.SCOPABLE_TYPES=ze.PUREISH_TYPES=ze.PROPERTY_TYPES=ze.PRIVATE_TYPES=ze.PATTERN_TYPES=ze.PATTERNLIKE_TYPES=ze.OBJECTMEMBER_TYPES=ze.MODULESPECIFIER_TYPES=ze.MODULEDECLARATION_TYPES=ze.MISCELLANEOUS_TYPES=ze.METHOD_TYPES=ze.LVAL_TYPES=ze.LOOP_TYPES=ze.LITERAL_TYPES=ze.JSX_TYPES=ze.IMPORTOREXPORTDECLARATION_TYPES=ze.IMMUTABLE_TYPES=ze.FUNCTION_TYPES=ze.FUNCTIONPARENT_TYPES=ze.FUNCTIONPARAMETER_TYPES=ze.FOR_TYPES=ze.FORXSTATEMENT_TYPES=ze.FLOW_TYPES=ze.FLOWTYPE_TYPES=ze.FLOWPREDICATE_TYPES=ze.FLOWDECLARATION_TYPES=ze.FLOWBASEANNOTATION_TYPES=ze.EXPRESSION_TYPES=ze.EXPRESSIONWRAPPER_TYPES=ze.EXPORTDECLARATION_TYPES=ze.ENUMMEMBER_TYPES=ze.ENUMBODY_TYPES=ze.DECLARATION_TYPES=ze.CONDITIONAL_TYPES=ze.COMPLETIONSTATEMENT_TYPES=ze.CLASS_TYPES=ze.BLOCK_TYPES=ze.BLOCKPARENT_TYPES=ze.BINARY_TYPES=ze.ACCESSOR_TYPES=void 0;var Zt=bl(),ivt=ze.STANDARDIZED_TYPES=Zt.FLIPPED_ALIAS_KEYS.Standardized,svt=ze.EXPRESSION_TYPES=Zt.FLIPPED_ALIAS_KEYS.Expression,ovt=ze.BINARY_TYPES=Zt.FLIPPED_ALIAS_KEYS.Binary,lvt=ze.SCOPABLE_TYPES=Zt.FLIPPED_ALIAS_KEYS.Scopable,cvt=ze.BLOCKPARENT_TYPES=Zt.FLIPPED_ALIAS_KEYS.BlockParent,uvt=ze.BLOCK_TYPES=Zt.FLIPPED_ALIAS_KEYS.Block,dvt=ze.STATEMENT_TYPES=Zt.FLIPPED_ALIAS_KEYS.Statement,fvt=ze.TERMINATORLESS_TYPES=Zt.FLIPPED_ALIAS_KEYS.Terminatorless,pvt=ze.COMPLETIONSTATEMENT_TYPES=Zt.FLIPPED_ALIAS_KEYS.CompletionStatement,mvt=ze.CONDITIONAL_TYPES=Zt.FLIPPED_ALIAS_KEYS.Conditional,hvt=ze.LOOP_TYPES=Zt.FLIPPED_ALIAS_KEYS.Loop,gvt=ze.WHILE_TYPES=Zt.FLIPPED_ALIAS_KEYS.While,yvt=ze.EXPRESSIONWRAPPER_TYPES=Zt.FLIPPED_ALIAS_KEYS.ExpressionWrapper,xvt=ze.FOR_TYPES=Zt.FLIPPED_ALIAS_KEYS.For,bvt=ze.FORXSTATEMENT_TYPES=Zt.FLIPPED_ALIAS_KEYS.ForXStatement,vvt=ze.FUNCTION_TYPES=Zt.FLIPPED_ALIAS_KEYS.Function,Svt=ze.FUNCTIONPARENT_TYPES=Zt.FLIPPED_ALIAS_KEYS.FunctionParent,Tvt=ze.PUREISH_TYPES=Zt.FLIPPED_ALIAS_KEYS.Pureish,wvt=ze.DECLARATION_TYPES=Zt.FLIPPED_ALIAS_KEYS.Declaration,Cvt=ze.FUNCTIONPARAMETER_TYPES=Zt.FLIPPED_ALIAS_KEYS.FunctionParameter,Pvt=ze.PATTERNLIKE_TYPES=Zt.FLIPPED_ALIAS_KEYS.PatternLike,Evt=ze.LVAL_TYPES=Zt.FLIPPED_ALIAS_KEYS.LVal,Ivt=ze.TSENTITYNAME_TYPES=Zt.FLIPPED_ALIAS_KEYS.TSEntityName,Avt=ze.LITERAL_TYPES=Zt.FLIPPED_ALIAS_KEYS.Literal,Nvt=ze.IMMUTABLE_TYPES=Zt.FLIPPED_ALIAS_KEYS.Immutable,kvt=ze.USERWHITESPACABLE_TYPES=Zt.FLIPPED_ALIAS_KEYS.UserWhitespacable,_vt=ze.METHOD_TYPES=Zt.FLIPPED_ALIAS_KEYS.Method,Lvt=ze.OBJECTMEMBER_TYPES=Zt.FLIPPED_ALIAS_KEYS.ObjectMember,Rvt=ze.PROPERTY_TYPES=Zt.FLIPPED_ALIAS_KEYS.Property,Dvt=ze.UNARYLIKE_TYPES=Zt.FLIPPED_ALIAS_KEYS.UnaryLike,Mvt=ze.PATTERN_TYPES=Zt.FLIPPED_ALIAS_KEYS.Pattern,Ovt=ze.CLASS_TYPES=Zt.FLIPPED_ALIAS_KEYS.Class,VRe=ze.IMPORTOREXPORTDECLARATION_TYPES=Zt.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,Fvt=ze.EXPORTDECLARATION_TYPES=Zt.FLIPPED_ALIAS_KEYS.ExportDeclaration,Bvt=ze.MODULESPECIFIER_TYPES=Zt.FLIPPED_ALIAS_KEYS.ModuleSpecifier,$vt=ze.ACCESSOR_TYPES=Zt.FLIPPED_ALIAS_KEYS.Accessor,jvt=ze.PRIVATE_TYPES=Zt.FLIPPED_ALIAS_KEYS.Private,zvt=ze.FLOW_TYPES=Zt.FLIPPED_ALIAS_KEYS.Flow,Uvt=ze.FLOWTYPE_TYPES=Zt.FLIPPED_ALIAS_KEYS.FlowType,Vvt=ze.FLOWBASEANNOTATION_TYPES=Zt.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,qvt=ze.FLOWDECLARATION_TYPES=Zt.FLIPPED_ALIAS_KEYS.FlowDeclaration,Hvt=ze.FLOWPREDICATE_TYPES=Zt.FLIPPED_ALIAS_KEYS.FlowPredicate,Gvt=ze.ENUMBODY_TYPES=Zt.FLIPPED_ALIAS_KEYS.EnumBody,Kvt=ze.ENUMMEMBER_TYPES=Zt.FLIPPED_ALIAS_KEYS.EnumMember,Wvt=ze.JSX_TYPES=Zt.FLIPPED_ALIAS_KEYS.JSX,Xvt=ze.MISCELLANEOUS_TYPES=Zt.FLIPPED_ALIAS_KEYS.Miscellaneous,Yvt=ze.TYPESCRIPT_TYPES=Zt.FLIPPED_ALIAS_KEYS.TypeScript,Jvt=ze.TSTYPEELEMENT_TYPES=Zt.FLIPPED_ALIAS_KEYS.TSTypeElement,Zvt=ze.TSTYPE_TYPES=Zt.FLIPPED_ALIAS_KEYS.TSType,Qvt=ze.TSBASETYPE_TYPES=Zt.FLIPPED_ALIAS_KEYS.TSBaseType,e0t=ze.MODULEDECLARATION_TYPES=VRe});var eD=ae(QR=>{"use strict";Object.defineProperty(QR,"__esModule",{value:!0});QR.default=qRe;var B1=va(),ZR=ao();function qRe(e,t){if((0,B1.isBlockStatement)(e))return e;let r=[];return(0,B1.isEmptyStatement)(e)?r=[]:((0,B1.isStatement)(e)||((0,B1.isFunction)(t)?e=(0,ZR.returnStatement)(e):e=(0,ZR.expressionStatement)(e)),r=[e]),(0,ZR.blockStatement)(r)}});var q9=ae(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.default=GRe;var HRe=eD();function GRe(e,t="body"){let r=(0,HRe.default)(e[t],e);return e[t]=r,r}});var nD=ae(rD=>{"use strict";Object.defineProperty(rD,"__esModule",{value:!0});rD.default=XRe;var KRe=wy(),WRe=P0();function XRe(e){e=e+"";let t="";for(let r of e)t+=(0,WRe.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,n){return n?n.toUpperCase():""}),(0,KRe.default)(t)||(t=`_${t}`),t||"_"}});var H9=ae(aD=>{"use strict";Object.defineProperty(aD,"__esModule",{value:!0});aD.default=JRe;var YRe=nD();function JRe(e){return e=(0,YRe.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var G9=ae(iD=>{"use strict";Object.defineProperty(iD,"__esModule",{value:!0});iD.default=eDe;var ZRe=va(),QRe=ao();function eDe(e,t=e.key||e.property){return!e.computed&&(0,ZRe.isIdentifier)(t)&&(t=(0,QRe.stringLiteral)(t.name)),t}});var K9=ae($1=>{"use strict";Object.defineProperty($1,"__esModule",{value:!0});$1.default=void 0;var D0=va(),o0t=$1.default=tDe;function tDe(e){if((0,D0.isExpressionStatement)(e)&&(e=e.expression),(0,D0.isExpression)(e))return e;if((0,D0.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,D0.isFunction)(e)&&(e.type="FunctionExpression"),!(0,D0.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var oD=ae(sD=>{"use strict";Object.defineProperty(sD,"__esModule",{value:!0});sD.default=M0;var rDe=bl(),W9=Symbol(),X9=Symbol();function M0(e,t,r){if(!e)return!1;let n=rDe.VISITOR_KEYS[e.type];if(!n)return!1;r=r||{};let a=t(e,r);if(a!==void 0)switch(a){case W9:return!1;case X9:return!0}for(let i of n){let s=e[i];if(s){if(Array.isArray(s)){for(let o of s)if(M0(o,t,r))return!0}else if(M0(s,t,r))return!0}}return!1}M0.skip=W9;M0.stop=X9});var cD=ae(lD=>{"use strict";Object.defineProperty(lD,"__esModule",{value:!0});lD.default=iDe;var nDe=Cy(),Y9=["tokens","start","end","loc","raw","rawValue"],aDe=[...nDe.COMMENT_KEYS,"comments",...Y9];function iDe(e,t={}){let r=t.preserveComments?Y9:aDe;for(let a of r)e[a]!=null&&(e[a]=void 0);for(let a of Object.keys(e))a[0]==="_"&&e[a]!=null&&(e[a]=void 0);let n=Object.getOwnPropertySymbols(e);for(let a of n)e[a]=null}});var dD=ae(uD=>{"use strict";Object.defineProperty(uD,"__esModule",{value:!0});uD.default=lDe;var sDe=oD(),oDe=cD();function lDe(e,t){return(0,sDe.default)(e,oDe.default,t),e}});var Z9=ae(fD=>{"use strict";Object.defineProperty(fD,"__esModule",{value:!0});fD.default=Vm;var J9=va(),cDe=Rf(),uDe=dD();function Vm(e,t=e.key){let r;return e.kind==="method"?Vm.increment()+"":((0,J9.isIdentifier)(t)?r=t.name:(0,J9.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,uDe.default)((0,cDe.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}Vm.uid=0;Vm.increment=function(){return Vm.uid>=Number.MAX_SAFE_INTEGER?Vm.uid=0:Vm.uid++}});var Q9=ae(z1=>{"use strict";Object.defineProperty(z1,"__esModule",{value:!0});z1.default=void 0;var j1=va(),dDe=ao(),p0t=z1.default=fDe;function fDe(e,t){if((0,j1.isStatement)(e))return e;let r=!1,n;if((0,j1.isClass)(e))r=!0,n="ClassDeclaration";else if((0,j1.isFunction)(e))r=!0,n="FunctionDeclaration";else if((0,j1.isAssignmentExpression)(e))return(0,dDe.expressionStatement)(e);if(r&&!e.id&&(n=!1),!n){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e}});var eq=ae(U1=>{"use strict";Object.defineProperty(U1,"__esModule",{value:!0});U1.default=void 0;var pDe=wy(),Ha=ao(),h0t=U1.default=pD,mDe=Function.call.bind(Object.prototype.toString);function hDe(e){return mDe(e)==="[object RegExp]"}function gDe(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function pD(e){if(e===void 0)return(0,Ha.identifier)("undefined");if(e===!0||e===!1)return(0,Ha.booleanLiteral)(e);if(e===null)return(0,Ha.nullLiteral)();if(typeof e=="string")return(0,Ha.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0,Ha.numericLiteral)(Math.abs(e));else{let r;Number.isNaN(e)?r=(0,Ha.numericLiteral)(0):r=(0,Ha.numericLiteral)(1),t=(0,Ha.binaryExpression)("/",r,(0,Ha.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,Ha.unaryExpression)("-",t)),t}if(typeof e=="bigint")return e<0?(0,Ha.unaryExpression)("-",(0,Ha.bigIntLiteral)(-e)):(0,Ha.bigIntLiteral)(e);if(hDe(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,Ha.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,Ha.arrayExpression)(e.map(pD));if(gDe(e)){let t=[];for(let r of Object.keys(e)){let n,a=!1;(0,pDe.default)(r)?r==="__proto__"?(a=!0,n=(0,Ha.stringLiteral)(r)):n=(0,Ha.identifier)(r):n=(0,Ha.stringLiteral)(r),t.push((0,Ha.objectProperty)(n,pD(e[r]),a))}return(0,Ha.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var tq=ae(mD=>{"use strict";Object.defineProperty(mD,"__esModule",{value:!0});mD.default=xDe;var yDe=ao();function xDe(e,t,r=!1){return e.object=(0,yDe.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var nq=ae(hD=>{"use strict";Object.defineProperty(hD,"__esModule",{value:!0});hD.default=vDe;var rq=Cy(),bDe=YR();function vDe(e,t){if(!e||!t)return e;for(let r of rq.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r[0]==="_"&&r!=="__clone"&&(e[r]=t[r]);for(let r of rq.INHERIT_KEYS.force)e[r]=t[r];return(0,bDe.default)(e,t),e}});var aq=ae(gD=>{"use strict";Object.defineProperty(gD,"__esModule",{value:!0});gD.default=wDe;var SDe=ao(),TDe=xr();function wDe(e,t){if((0,TDe.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,SDe.memberExpression)(t,e.object),e}});var iq=ae(yD=>{"use strict";Object.defineProperty(yD,"__esModule",{value:!0});yD.default=CDe;function CDe(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let n=t.pop();if(n)switch(n.type){case"ArrayPattern":t.push(...n.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(n.left);break;case"ObjectPattern":t.push(...n.properties);break;case"ObjectProperty":t.push(n.value);break;case"RestElement":case"UpdateExpression":t.push(n.argument);break;case"UnaryExpression":n.operator==="delete"&&t.push(n.argument);break;case"Identifier":r[n.name]=n;break;default:break}}return r}});var O0=ae(bD=>{"use strict";Object.defineProperty(bD,"__esModule",{value:!0});bD.default=xD;var Ju=va();function xD(e,t,r,n){let a=[].concat(e),i=Object.create(null);for(;a.length;){let s=a.shift();if(!s||n&&((0,Ju.isAssignmentExpression)(s)||(0,Ju.isUnaryExpression)(s)||(0,Ju.isUpdateExpression)(s)))continue;if((0,Ju.isIdentifier)(s)){t?(i[s.name]=i[s.name]||[]).push(s):i[s.name]=s;continue}if((0,Ju.isExportDeclaration)(s)&&!(0,Ju.isExportAllDeclaration)(s)){(0,Ju.isDeclaration)(s.declaration)&&a.push(s.declaration);continue}if(r){if((0,Ju.isFunctionDeclaration)(s)){a.push(s.id);continue}if((0,Ju.isFunctionExpression)(s))continue}let o=xD.keys[s.type];if(o)for(let l=0;l{"use strict";Object.defineProperty(V1,"__esModule",{value:!0});V1.default=void 0;var EDe=O0(),T0t=V1.default=IDe;function IDe(e,t){return(0,EDe.default)(e,t,!0)}});var lq=ae(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.default=NDe;var vl=va();function ADe(e){return(0,vl.isNullLiteral)(e)?"null":(0,vl.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,vl.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function oq(e){if(!e.computed||(0,vl.isLiteral)(e.key))return e.key}function NDe(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",n;if((0,vl.isObjectProperty)(t,{value:e})?n=oq(t):(0,vl.isObjectMethod)(e)||(0,vl.isClassMethod)(e)?(n=oq(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,vl.isVariableDeclarator)(t,{init:e})?n=t.id:(0,vl.isAssignmentExpression)(t,{operator:"=",right:e})&&(n=t.left),!n)return null;let a=(0,vl.isLiteral)(n)?ADe(n):(0,vl.isIdentifier)(n)?n.name:(0,vl.isPrivateName)(n)?n.id.name:null;return a==null?null:{name:r+a,originalNode:n}}});var cq=ae(TD=>{"use strict";Object.defineProperty(TD,"__esModule",{value:!0});TD.default=_De;var kDe=bl();function _De(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:n,exit:a}=t;SD(e,n,a,r,[])}function SD(e,t,r,n,a){let i=kDe.VISITOR_KEYS[e.type];if(i){t&&t(e,a,n);for(let s of i){let o=e[s];if(Array.isArray(o))for(let l=0;l{"use strict";Object.defineProperty(wD,"__esModule",{value:!0});wD.default=RDe;var LDe=O0();function RDe(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let n=LDe.default.keys[t.type];if(n)for(let a=0;a{"use strict";Object.defineProperty(CD,"__esModule",{value:!0});CD.default=MDe;var DDe=va();dq=Symbol.for("var used to be block scoped");var dq;function MDe(e){return(0,DDe.isVariableDeclaration)(e)&&(e.kind!=="var"||e[dq])}});var pq=ae(ED=>{"use strict";Object.defineProperty(ED,"__esModule",{value:!0});ED.default=FDe;var fq=va(),ODe=PD();function FDe(e){return(0,fq.isFunctionDeclaration)(e)||(0,fq.isClassDeclaration)(e)||(0,ODe.default)(e)}});var mq=ae(ID=>{"use strict";Object.defineProperty(ID,"__esModule",{value:!0});ID.default=jDe;var BDe=P1(),$De=va();function jDe(e){return(0,BDe.default)(e.type,"Immutable")?!0:(0,$De.isIdentifier)(e)?e.name==="undefined":!1}});var gq=ae(ND=>{"use strict";Object.defineProperty(ND,"__esModule",{value:!0});ND.default=AD;var hq=bl();function AD(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(hq.NODE_FIELDS[e.type]||e.type),n=hq.VISITOR_KEYS[e.type];for(let a of r){let i=e[a],s=t[a];if(typeof i!=typeof s)return!1;if(!(i==null&&s==null)){if(i==null||s==null)return!1;if(Array.isArray(i)){if(!Array.isArray(s)||i.length!==s.length)return!1;for(let o=0;o{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.default=zDe;function zDe(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}});var xq=ae(_D=>{"use strict";Object.defineProperty(_D,"__esModule",{value:!0});_D.default=UDe;var qm=va();function UDe(e,t){return(0,qm.isBlockStatement)(e)&&((0,qm.isFunction)(t)||(0,qm.isCatchClause)(t))?!1:(0,qm.isPattern)(e)&&((0,qm.isFunction)(t)||(0,qm.isCatchClause)(t))?!0:(0,qm.isScopable)(e)}});var vq=ae(LD=>{"use strict";Object.defineProperty(LD,"__esModule",{value:!0});LD.default=VDe;var bq=va();function VDe(e){return(0,bq.isImportDefaultSpecifier)(e)||(0,bq.isIdentifier)(e.imported||e.exported,{name:"default"})}});var Sq=ae(RD=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});RD.default=GDe;var qDe=wy(),HDe=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function GDe(e){return(0,qDe.default)(e)&&!HDe.has(e)}});var wq=ae(DD=>{"use strict";Object.defineProperty(DD,"__esModule",{value:!0});DD.default=WDe;var KDe=va();Tq=Symbol.for("var used to be block scoped");var Tq;function WDe(e){return(0,KDe.isVariableDeclaration)(e,{kind:"var"})&&!e[Tq]}});var Cq=ae(FD=>{"use strict";Object.defineProperty(FD,"__esModule",{value:!0});FD.default=q1;var XDe=O0(),Hm=va(),MD=ao(),OD=LR(),YDe=Rf();function q1(e,t){let r=[],n=!0;for(let a of e)if((0,Hm.isEmptyStatement)(a)||(n=!1),(0,Hm.isExpression)(a))r.push(a);else if((0,Hm.isExpressionStatement)(a))r.push(a.expression);else if((0,Hm.isVariableDeclaration)(a)){if(a.kind!=="var")return;for(let i of a.declarations){let s=(0,XDe.default)(i);for(let o of Object.keys(s))t.push({kind:a.kind,id:(0,YDe.default)(s[o])});i.init&&r.push((0,MD.assignmentExpression)("=",i.id,i.init))}n=!0}else if((0,Hm.isIfStatement)(a)){let i=a.consequent?q1([a.consequent],t):(0,OD.buildUndefinedNode)(),s=a.alternate?q1([a.alternate],t):(0,OD.buildUndefinedNode)();if(!i||!s)return;r.push((0,MD.conditionalExpression)(a.test,i,s))}else if((0,Hm.isBlockStatement)(a)){let i=q1(a.body,t);if(!i)return;r.push(i)}else if((0,Hm.isEmptyStatement)(a))e.indexOf(a)===0&&(n=!0);else return;return n&&r.push((0,OD.buildUndefinedNode)()),r.length===1?r[0]:(0,MD.sequenceExpression)(r)}});var Pq=ae(BD=>{"use strict";Object.defineProperty(BD,"__esModule",{value:!0});BD.default=ZDe;var JDe=Cq();function ZDe(e,t){if(!(e!=null&&e.length))return;let r=[],n=(0,JDe.default)(e,r);if(n){for(let a of r)t.push(a);return n}}});var xr=ae(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var Df={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(et,"__internal__deprecationWarning",{enumerable:!0,get:function(){return rMe.default}});Object.defineProperty(et,"addComment",{enumerable:!0,get:function(){return u2e.default}});Object.defineProperty(et,"addComments",{enumerable:!0,get:function(){return d2e.default}});Object.defineProperty(et,"appendToMemberExpression",{enumerable:!0,get:function(){return E2e.default}});Object.defineProperty(et,"assertNode",{enumerable:!0,get:function(){return r2e.default}});Object.defineProperty(et,"buildMatchMemberExpression",{enumerable:!0,get:function(){return tMe.default}});Object.defineProperty(et,"clone",{enumerable:!0,get:function(){return s2e.default}});Object.defineProperty(et,"cloneDeep",{enumerable:!0,get:function(){return o2e.default}});Object.defineProperty(et,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return l2e.default}});Object.defineProperty(et,"cloneNode",{enumerable:!0,get:function(){return i2e.default}});Object.defineProperty(et,"cloneWithoutLoc",{enumerable:!0,get:function(){return c2e.default}});Object.defineProperty(et,"createFlowUnionType",{enumerable:!0,get:function(){return Eq.default}});Object.defineProperty(et,"createTSUnionType",{enumerable:!0,get:function(){return a2e.default}});Object.defineProperty(et,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return n2e.default}});Object.defineProperty(et,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return Eq.default}});Object.defineProperty(et,"ensureBlock",{enumerable:!0,get:function(){return y2e.default}});Object.defineProperty(et,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return L2e.default}});Object.defineProperty(et,"getBindingIdentifiers",{enumerable:!0,get:function(){return R2e.default}});Object.defineProperty(et,"getFunctionName",{enumerable:!0,get:function(){return M2e.default}});Object.defineProperty(et,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return D2e.default}});Object.defineProperty(et,"inheritInnerComments",{enumerable:!0,get:function(){return f2e.default}});Object.defineProperty(et,"inheritLeadingComments",{enumerable:!0,get:function(){return p2e.default}});Object.defineProperty(et,"inheritTrailingComments",{enumerable:!0,get:function(){return h2e.default}});Object.defineProperty(et,"inherits",{enumerable:!0,get:function(){return I2e.default}});Object.defineProperty(et,"inheritsComments",{enumerable:!0,get:function(){return m2e.default}});Object.defineProperty(et,"is",{enumerable:!0,get:function(){return B2e.default}});Object.defineProperty(et,"isBinding",{enumerable:!0,get:function(){return $2e.default}});Object.defineProperty(et,"isBlockScoped",{enumerable:!0,get:function(){return j2e.default}});Object.defineProperty(et,"isImmutable",{enumerable:!0,get:function(){return z2e.default}});Object.defineProperty(et,"isLet",{enumerable:!0,get:function(){return U2e.default}});Object.defineProperty(et,"isNode",{enumerable:!0,get:function(){return V2e.default}});Object.defineProperty(et,"isNodesEquivalent",{enumerable:!0,get:function(){return q2e.default}});Object.defineProperty(et,"isPlaceholderType",{enumerable:!0,get:function(){return H2e.default}});Object.defineProperty(et,"isReferenced",{enumerable:!0,get:function(){return G2e.default}});Object.defineProperty(et,"isScope",{enumerable:!0,get:function(){return K2e.default}});Object.defineProperty(et,"isSpecifierDefault",{enumerable:!0,get:function(){return W2e.default}});Object.defineProperty(et,"isType",{enumerable:!0,get:function(){return X2e.default}});Object.defineProperty(et,"isValidES3Identifier",{enumerable:!0,get:function(){return Y2e.default}});Object.defineProperty(et,"isValidIdentifier",{enumerable:!0,get:function(){return J2e.default}});Object.defineProperty(et,"isVar",{enumerable:!0,get:function(){return Z2e.default}});Object.defineProperty(et,"matchesPattern",{enumerable:!0,get:function(){return Q2e.default}});Object.defineProperty(et,"prependToMemberExpression",{enumerable:!0,get:function(){return A2e.default}});et.react=void 0;Object.defineProperty(et,"removeComments",{enumerable:!0,get:function(){return g2e.default}});Object.defineProperty(et,"removeProperties",{enumerable:!0,get:function(){return N2e.default}});Object.defineProperty(et,"removePropertiesDeep",{enumerable:!0,get:function(){return k2e.default}});Object.defineProperty(et,"removeTypeDuplicates",{enumerable:!0,get:function(){return _2e.default}});Object.defineProperty(et,"shallowEqual",{enumerable:!0,get:function(){return F2e.default}});Object.defineProperty(et,"toBindingIdentifierName",{enumerable:!0,get:function(){return x2e.default}});Object.defineProperty(et,"toBlock",{enumerable:!0,get:function(){return b2e.default}});Object.defineProperty(et,"toComputedKey",{enumerable:!0,get:function(){return v2e.default}});Object.defineProperty(et,"toExpression",{enumerable:!0,get:function(){return S2e.default}});Object.defineProperty(et,"toIdentifier",{enumerable:!0,get:function(){return T2e.default}});Object.defineProperty(et,"toKeyAlias",{enumerable:!0,get:function(){return w2e.default}});Object.defineProperty(et,"toStatement",{enumerable:!0,get:function(){return C2e.default}});Object.defineProperty(et,"traverse",{enumerable:!0,get:function(){return H1.default}});Object.defineProperty(et,"traverseFast",{enumerable:!0,get:function(){return O2e.default}});Object.defineProperty(et,"validate",{enumerable:!0,get:function(){return eMe.default}});Object.defineProperty(et,"valueToNode",{enumerable:!0,get:function(){return P2e.default}});var QDe=NV(),e2e=kV(),t2e=S9(),r2e=T9(),$D=w9();Object.keys($D).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Df,e)||e in et&&et[e]===$D[e]||Object.defineProperty(et,e,{enumerable:!0,get:function(){return $D[e]}})});var n2e=C9(),Eq=I9(),a2e=_9(),jD=LR();Object.keys(jD).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Df,e)||e in et&&et[e]===jD[e]||Object.defineProperty(et,e,{enumerable:!0,get:function(){return jD[e]}})});var zD=ao();Object.keys(zD).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Df,e)||e in et&&et[e]===zD[e]||Object.defineProperty(et,e,{enumerable:!0,get:function(){return zD[e]}})});var i2e=Rf(),s2e=F9(),o2e=B9(),l2e=$9(),c2e=j9(),u2e=z9(),d2e=jR(),f2e=qR(),p2e=GR(),m2e=YR(),h2e=WR(),g2e=U9(),UD=V9();Object.keys(UD).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Df,e)||e in et&&et[e]===UD[e]||Object.defineProperty(et,e,{enumerable:!0,get:function(){return UD[e]}})});var VD=Cy();Object.keys(VD).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Df,e)||e in et&&et[e]===VD[e]||Object.defineProperty(et,e,{enumerable:!0,get:function(){return VD[e]}})});var y2e=q9(),x2e=H9(),b2e=eD(),v2e=G9(),S2e=K9(),T2e=nD(),w2e=Z9(),C2e=Q9(),P2e=eq(),qD=bl();Object.keys(qD).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Df,e)||e in et&&et[e]===qD[e]||Object.defineProperty(et,e,{enumerable:!0,get:function(){return qD[e]}})});var E2e=tq(),I2e=nq(),A2e=aq(),N2e=cD(),k2e=dD(),_2e=IR(),L2e=iq(),R2e=O0(),D2e=sq(),M2e=lq(),H1=cq();Object.keys(H1).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Df,e)||e in et&&et[e]===H1[e]||Object.defineProperty(et,e,{enumerable:!0,get:function(){return H1[e]}})});var O2e=oD(),F2e=w1(),B2e=Ty(),$2e=uq(),j2e=pq(),z2e=mq(),U2e=PD(),V2e=CR(),q2e=gq(),H2e=WL(),G2e=yq(),K2e=xq(),W2e=vq(),X2e=P1(),Y2e=Sq(),J2e=wy(),Z2e=wq(),Q2e=UL(),eMe=N1(),tMe=qL(),HD=va();Object.keys(HD).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Df,e)||e in et&&et[e]===HD[e]||Object.defineProperty(et,e,{enumerable:!0,get:function(){return HD[e]}})});var rMe=Sy(),nMe=Pq(),B0t=et.react={isReactComponent:QDe.default,isCompatTag:e2e.default,buildChildren:t2e.default};et.toSequenceExpression=nMe.default;process.env.BABEL_TYPES_8_BREAKING});var GD=ae(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.isBindingIdentifier=EMe;Ga.isBlockScoped=_Me;Ga.isExpression=AMe;Ga.isFlow=OMe;Ga.isForAwaitStatement=$Me;Ga.isGenerated=DMe;Ga.isPure=MMe;Ga.isReferenced=kMe;Ga.isReferencedIdentifier=CMe;Ga.isReferencedMemberExpression=PMe;Ga.isRestProperty=FMe;Ga.isScope=NMe;Ga.isSpreadProperty=BMe;Ga.isStatement=IMe;Ga.isUser=RMe;Ga.isVar=LMe;var aMe=xr(),{isBinding:iMe,isBlockScoped:sMe,isExportDeclaration:oMe,isExpression:lMe,isFlow:cMe,isForStatement:uMe,isForXStatement:dMe,isIdentifier:Iq,isImportDeclaration:fMe,isImportSpecifier:pMe,isJSXIdentifier:mMe,isJSXMemberExpression:hMe,isMemberExpression:gMe,isRestElement:Aq,isReferenced:G1,isScope:yMe,isStatement:xMe,isVar:bMe,isVariableDeclaration:vMe,react:SMe,isForOfStatement:TMe}=aMe,{isCompatTag:wMe}=SMe;function CMe(e){let{node:t,parent:r}=this;return Iq(t,e)?G1(t,r,this.parentPath.parent):mMe(t,e)?!hMe(r)&&wMe(t.name)?!1:G1(t,r,this.parentPath.parent):!1}function PMe(){let{node:e,parent:t}=this;return gMe(e)&&G1(e,t)}function EMe(){let{node:e,parent:t}=this,r=this.parentPath.parent;return Iq(e)&&iMe(e,t,r)}function IMe(){let{node:e,parent:t}=this;return xMe(e)?!(vMe(e)&&(dMe(t,{left:e})||uMe(t,{init:e}))):!1}function AMe(){return this.isIdentifier()?this.isReferencedIdentifier():lMe(this.node)}function NMe(){return yMe(this.node,this.parent)}function kMe(){return G1(this.node,this.parent)}function _Me(){return sMe(this.node)}function LMe(){return bMe(this.node)}function RMe(){var e;return!!((e=this.node)!=null&&e.loc)}function DMe(){return!this.isUser()}function MMe(e){return this.scope.isPure(this.node,e)}function OMe(){let{node:e}=this;return cMe(e)?!0:fMe(e)?e.importKind==="type"||e.importKind==="typeof":oMe(e)?e.exportKind==="type":pMe(e)?e.importKind==="type"||e.importKind==="typeof":!1}function FMe(){var e;return Aq(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function BMe(){var e;return Aq(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function $Me(){return TMe(this.node,{await:!0})}Ga.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},Ga.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var B0=ae(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.environmentVisitor=KMe;Km.explode=$q;Km.isExplodedVisitor=Bq;Km.merge=zq;Km.verify=jq;var Fq=BL(),jMe=GD(),zMe=xr(),Nq=Sl(),{DEPRECATED_KEYS:kq,DEPRECATED_ALIASES:_q,FLIPPED_ALIAS_KEYS:Lq,TYPES:UMe,__internal__deprecationWarning:Rq}=zMe;function VMe(e){return e in Fq}function Bq(e){return e?._exploded}function $q(e){if(Bq(e))return e;e._exploded=!0;for(let r of Object.keys(e)){if(Gm(r))continue;let n=r.split("|");if(n.length===1)continue;let a=e[r];delete e[r];for(let i of n)e[i]=a}jq(e),delete e.__esModule,qMe(e),Oq(e);for(let r of Object.keys(e)){if(Gm(r)||!VMe(r))continue;let n=e[r];for(let i of Object.keys(n))n[i]=HMe(r,n[i]);delete e[r];let a=Fq[r];if(a!==null)for(let i of a){var t;(t=e[i])!=null||(e[i]={}),F0(e[i],n)}else F0(e,n)}for(let r of Object.keys(e)){if(Gm(r))continue;let n=Lq[r];if(r in kq){let i=kq[r];Rq(r,i,"Visitor "),n=[i]}else if(r in _q){let i=_q[r];Rq(r,i,"Visitor "),n=Lq[i]}if(!n)continue;let a=e[r];delete e[r];for(let i of n){let s=e[i];s?F0(s,a):e[i]=Object.assign({},a)}}for(let r of Object.keys(e))Gm(r)||Oq(e[r]);return e}function jq(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&Dq(t,e[t]),Gm(t))continue;if(!UMe.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.28.5`);let r=e[t];if(typeof r=="object")for(let n of Object.keys(r))if(n==="enter"||n==="exit")Dq(`${t}.${n}`,r[n]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${n}`)}e._verified=!0}}function Dq(e,t){let r=[].concat(t);for(let n of r)if(typeof n!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof n}`)}function zq(e,t=[],r){let n={_verified:!0,_exploded:!0};Object.defineProperty(n,"_exploded",{enumerable:!1}),Object.defineProperty(n,"_verified",{enumerable:!1});for(let a=0;as.toString()),o}),n[a]=i)}return n}function qMe(e){for(let t of Object.keys(e)){if(Gm(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r})}}function Oq(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function HMe(e,t){let r=`is${e}`,n=jMe[r],a=function(i){if(n.call(i))return t.apply(this,arguments)};return a.toString=()=>t.toString(),a}function Gm(e){return e[0]==="_"||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist"}function F0(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var GMe={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():Nq.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():Nq.requeueComputedKeyAndDecorators.call(e))}};function KMe(e){return zq([GMe,e])}});var Uq=ae(W1=>{"use strict";Object.defineProperty(W1,"__esModule",{value:!0});W1.default=void 0;var K1=xr(),WMe=K1,XMe=X1(),YMe=B0(),JMe=Sl(),{getAssignmentIdentifiers:ZMe}=WMe,QMe={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():JMe.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},r){let{name:n}=e.key;if(e.shorthand&&(n===r.oldName||n===r.newName)&&t.getBindingIdentifier(n)===r.binding.identifier){e.shorthand=!1;{var a;(a=e.extra)!=null&&a.shorthand&&(e.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?ZMe(e.node):e.getOuterBindingIdentifiers();for(let n in r)n===t.oldName&&(r[n].name=t.newName)}},KD=class{constructor(t,r,n){this.newName=n,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:n}=r.node;if(K1.isDeclaration(n)&&!n.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:n}=this,{scope:a,path:i}=t,s=i.find(c=>c.isDeclaration()||c.isFunctionExpression()||c.isClassExpression());s&&s.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(s);let o=arguments[0]||a.block,l={discriminant:!0};K1.isMethod(o)&&(o.computed&&(l.key=!0),K1.isObjectMethod(o)||(l.decorators=!0)),(0,XMe.traverseNode)(o,(0,YMe.explode)(QMe),a,this,a.path,l),arguments[0]||(a.removeOwnBinding(r),a.bindings[n]=t,this.binding.identifier.name=n),s&&(this.maybeConvertFromClassFunctionDeclaration(i),this.maybeConvertFromClassFunctionExpression(i))}};W1.default=KD});var Vq=ae(WD=>{"use strict";Object.defineProperty(WD,"__esModule",{value:!0});WD.default=iOe;var eOe=xr(),tOe=ky(),rOe=B0(),nOe=Sl(),{VISITOR_KEYS:aOe}=eOe;function iOe(e,t,r){let n=(0,rOe.explode)(t);if(n.enter||n.exit)throw new Error("Should not be used with enter/exit visitors.");a(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e);function a(i,s,o,l,c,u,d,f){if(!o)return;let p=f||tOe.NodePath.get({hub:d,parentPath:i,parent:s,container:l,listKey:u,key:c});nOe.setScope.call(p);let m=n[o.type];if(m){if(m.enter)for(let x of m.enter)x.call(r,p,r);if(m.exit)for(let x of m.exit)x.call(r,p,r)}if(p.shouldSkip)return;let h=aOe[o.type];if(h!=null&&h.length)for(let x of h){let g=o[x];if(g)if(Array.isArray(g))for(let y=0;y{"use strict";Object.defineProperty(Y1,"__esModule",{value:!0});Y1.default=void 0;var XD=class{constructor({identifier:t,scope:r,path:n,kind:a}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=n,this.kind=a,(a==="var"||a==="hoisted")&&sOe(n)&&this.reassign(n),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}};Y1.default=XD;function sOe(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:n}=e;r;{parentPath:r,key:n}=r){if(r.isFunctionParent())return!1;if(n==="left"&&r.isForXStatement()||t&&n==="body"&&r.isLoop())return!0}return!1}});var Wm=ae(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.clear=lOe;Mo.clearPath=Hq;Mo.clearScope=Gq;Mo.getCachedPaths=cOe;Mo.getOrCreateCachedPaths=uOe;Mo.scope=Mo.path=void 0;var J1=Mo.path=new WeakMap,oOe=Mo.scope=new WeakMap;function lOe(){Hq(),Gq()}function Hq(){Mo.path=J1=new WeakMap}function Gq(){Mo.scope=oOe=new WeakMap}function cOe(e){let{parent:t,parentPath:r}=e;return J1.get(t)}function uOe(e,t){let r=J1.get(e);return r||J1.set(e,r=new Map),r}});var Kq=ae((G0t,dOe)=>{dOe.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var Wq=ae((K0t,fOe)=>{fOe.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var e2=ae(Q1=>{"use strict";Object.defineProperty(Q1,"__esModule",{value:!0});Q1.default=void 0;var pOe=Uq(),nH=ky(),W0t=Vq(),mOe=qq(),aH=xr(),iH=aH,Xq=Wm(),hOe=Kq(),gOe=Wq(),{assignmentExpression:yOe,callExpression:Yq,cloneNode:Jq,getBindingIdentifiers:sH,identifier:Ym,isArrayExpression:oH,isBinary:xOe,isCallExpression:Zq,isClass:bOe,isClassBody:vOe,isClassDeclaration:SOe,isExportAllDeclaration:lH,isExportDefaultDeclaration:TOe,isExportNamedDeclaration:YD,isFunctionDeclaration:wOe,isIdentifier:Xm,isImportDeclaration:JD,isLiteral:COe,isMemberExpression:POe,isMethod:EOe,isModuleSpecifier:IOe,isNullLiteral:AOe,isObjectExpression:NOe,isProperty:kOe,isPureish:_Oe,isRegExpLiteral:LOe,isSuper:ROe,isTaggedTemplateExpression:DOe,isTemplateLiteral:cH,isThisExpression:Qq,isUnaryExpression:MOe,isVariableDeclaration:OOe,expressionStatement:FOe,matchesPattern:eH,memberExpression:ZD,numericLiteral:BOe,toIdentifier:$Oe,variableDeclaration:jOe,variableDeclarator:zOe,isRecordExpression:UOe,isTupleExpression:VOe,isObjectProperty:qOe,isTopicReference:tH,isMetaProperty:HOe,isPrivateName:GOe,isExportDeclaration:KOe,buildUndefinedNode:WOe,sequenceExpression:XOe}=aH;function Mn(e,t){switch(e?.type){default:if(JD(e)||KOe(e)){var r;if((lH(e)||YD(e)||JD(e))&&e.source)Mn(e.source,t);else if((YD(e)||JD(e))&&(r=e.specifiers)!=null&&r.length)for(let n of e.specifiers)Mn(n,t);else(TOe(e)||YD(e))&&e.declaration&&Mn(e.declaration,t)}else IOe(e)?Mn(e.local,t):COe(e)&&!AOe(e)&&!LOe(e)&&!cH(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Mn(e.object,t),Mn(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Mn(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let n of e.properties)Mn(n,t);break;case"SpreadElement":case"RestElement":Mn(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Mn(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),Mn(e.argument,t);break;case"AwaitExpression":t.push("await"),Mn(e.argument,t);break;case"AssignmentExpression":Mn(e.left,t);break;case"VariableDeclarator":Mn(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Mn(e.id,t);break;case"PrivateName":Mn(e.id,t);break;case"ParenthesizedExpression":Mn(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":Mn(e.argument,t);break;case"MetaProperty":Mn(e.meta,t),Mn(e.property,t);break;case"JSXElement":Mn(e.openingElement,t);break;case"JSXOpeningElement":Mn(e.name,t);break;case"JSXFragment":Mn(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":Mn(e.namespace,t),Mn(e.name,t);break}}function rH(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}function YOe(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}QD=Symbol.for("should not be considered a local binding");var QD,JOe={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){iH.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:n}=e;(n.getFunctionParent()||n.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(lH(t))return;let n=t.declaration;if(SOe(n)||wOe(n)){let a=n.id;if(!a)return;let i=r.getBinding(a.name);i?.reference(e)}else if(OOe(n))for(let a of n.declarations)for(let i of Object.keys(sH(a))){let s=r.getBinding(i);s?.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){e.node.operator==="delete"&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let a=e.node.id.name;e.scope.bindings[a]=e.scope.parent.getBinding(a)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[QD]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[QD]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},Z1,ZOe=0,io=class{constructor(t){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=t,n=Xq.scope.get(r);if(n?.path===t)return n;Xq.scope.set(r,this),this.uid=ZOe++,this.block=r,this.path=t,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var t;let r,n=this.path;do{var a;let i=n.key==="key"||n.listKey==="decorators";n=n.parentPath,i&&n.isMethod()&&(n=n.parentPath),(a=n)!=null&&a.isScope()&&(r=n)}while(n&&!r);return(t=r)==null?void 0:t.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),Jq(r)}generateUidIdentifier(t){return Ym(this.generateUid(t))}generateUid(t="temp"){t=$Oe(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,n=0;do r=`_${t}`,n>=11?r+=n-1:n>=9?r+=n-9:n>=1&&(r+=n+1),n++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let a=this.getProgramParent();return a.references[r]=!0,a.uids[r]=!0,r}generateUidBasedOnNode(t,r){let n=[];Mn(t,n);let a=n.join("$");return a=a.replace(/^_/,"")||r||"ref",this.generateUid(a.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return Ym(this.generateUidBasedOnNode(t,r))}isStatic(t){if(Qq(t)||ROe(t)||tH(t))return!0;if(Xm(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return!1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let n=this.generateUidIdentifierBasedOnNode(t);return r?n:(this.push({id:n}),Jq(n))}}checkBlockScopedCollisions(t,r,n,a){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.path.hub.buildError(a,`Duplicate declaration "${n}"`,TypeError)}rename(t,r){let n=this.getBinding(t);n&&(r||(r=this.generateUidIdentifier(t).name),new pOe.default(n,t,r).rename(arguments[2]))}dump(){let t="-".repeat(60),r=this;do for(let n of Object.keys(r.bindings)){let a=r.bindings[n]}while(r=r.parent)}hasLabel(t){return!!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t)}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:n}=t.node;for(let a of r)this.registerBinding(n==="using"||n==="await using"?"const":n,a)}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t)}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",n=t.get("specifiers");for(let a of n){let i=r||a.isImportSpecifier()&&(a.node.importKind==="type"||a.node.importKind==="typeof");this.registerBinding(i?"unknown":"module",a)}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",t)}buildUndefinedNode(){return WOe()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let a of Object.keys(r)){var n;(n=this.getBinding(a))==null||n.reassign(t)}}registerBinding(t,r,n=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let s=r.get("declarations");for(let o of s)this.registerBinding(t,o);return}let a=this.getProgramParent(),i=r.getOuterBindingIdentifiers(!0);for(let s of Object.keys(i)){a.references[s]=!0;for(let o of i[s]){let l=this.getOwnBinding(s);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,t,s,o)}l?l.reassign(n):this.bindings[s]=new mOe.default({identifier:o,scope:this,path:n,kind:t})}}}addGlobal(t){this.globals[t.name]=t}hasUid(t){{let r=this;do if(r.uids[t])return!0;while(r=r.parent);return!1}}hasGlobal(t){let r=this;do if(r.globals[t])return!0;while(r=r.parent);return!1}hasReference(t){return!!this.getProgramParent().references[t]}isPure(t,r){if(Xm(t)){let s=this.getBinding(t.name);return s?r?s.constant:!0:!1}else{if(Qq(t)||HOe(t)||tH(t)||GOe(t))return!0;if(bOe(t)){var n;return t.superClass&&!this.isPure(t.superClass,r)||((n=t.decorators)==null?void 0:n.length)>0?!1:this.isPure(t.body,r)}else if(vOe(t)){for(let s of t.body)if(!this.isPure(s,r))return!1;return!0}else{if(xOe(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(oH(t)||VOe(t)){for(let s of t.elements)if(s!==null&&!this.isPure(s,r))return!1;return!0}else if(NOe(t)||UOe(t)){for(let s of t.properties)if(!this.isPure(s,r))return!1;return!0}else if(EOe(t)){var a;return!(t.computed&&!this.isPure(t.key,r)||((a=t.decorators)==null?void 0:a.length)>0)}else if(kOe(t)){var i;return!(t.computed&&!this.isPure(t.key,r)||((i=t.decorators)==null?void 0:i.length)>0||(qOe(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else{if(MOe(t))return this.isPure(t.argument,r);if(cH(t)){for(let s of t.expressions)if(!this.isPure(s,r))return!1;return!0}else return DOe(t)?eH(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):POe(t)?!t.computed&&Xm(t.object)&&t.object.name==="Symbol"&&Xm(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):Zq(t)?eH(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&iH.isStringLiteral(t.arguments[0]):_Oe(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let n=r.data[t];if(n!=null)return n}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let t=this.path;rH(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let n=r,a={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,Z1||(Z1=nH.default.visitors.merge([{Scope(i){rH(i.scope)}},JOe])),t.type!=="Program"){let i=Z1[t.type];if(i)for(let s of i.enter)s.call(a,t,a)}t.traverse(Z1,a),this.crawling=!1;for(let i of a.assignments){let s=i.getAssignmentIdentifiers();for(let o of Object.keys(s))i.scope.getBinding(o)||n.addGlobal(s[o]);i.scope.registerConstantViolation(i)}for(let i of a.references){let s=i.scope.getBinding(i.node.name);s?s.reference(i):n.addGlobal(i.node)}for(let i of a.constantViolations)i.scope.registerConstantViolation(i)}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:n,unique:a,kind:i="var",id:s}=t;if(!n&&!a&&(i==="var"||i==="let")&&YOe(r)&&Zq(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&Xm(s)){r.pushContainer("params",s),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,l=`declaration:${i}:${o}`,c=!a&&r.getData(l);if(!c){let f=jOe(i,[]);f._blockHoist=o,[c]=r.unshiftContainer("body",[f]),a||r.setData(l,c)}let u=zOe(s,n),d=c.node.declarations.push(u);r.scope.registerBinding(i,c.get("declarations")[d-1])}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let n of Object.keys(r.bindings))n in t||(t[n]=r.bindings[n]);r=r.parent}while(r);return t}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,n;do{let i=r.getOwnBinding(t);if(i){var a;if(!((a=n)!=null&&a.isPattern()&&i.kind!=="param"&&i.kind!=="local"))return i}else if(!i&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;n=r.path}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return(r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r?.identifier}hasOwnBinding(t){return!!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return!1;let n,a,i;typeof r=="object"?(n=r.noGlobals,a=r.noUids,i=r.upToScope):typeof r=="boolean"&&(n=r);let s=this;do{if(i===s)break;if(s.hasOwnBinding(t))return!0}while(s=s.parent);return!!(!a&&this.hasUid(t)||!n&&io.globals.includes(t)||!n&&io.contextVariables.includes(t))}parentHasBinding(t,r){var n;return(n=this.parent)==null?void 0:n.hasBinding(t,r)}moveBindingTo(t,r){let n=this.getBinding(t);n&&(n.scope.removeOwnBinding(t),n.scope=r,r.bindings[t]=n)}removeOwnBinding(t){delete this.bindings[t]}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);{let n=this;do n.uids[t]&&(n.uids[t]=!1);while(n=n.parent)}}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let n of Object.keys(this.bindings)){let a=this.bindings[n];if(!a)continue;let{path:i}=a;if(!i.isVariableDeclarator())continue;let{parent:s,parentPath:o}=i;if(s.kind!=="var"||r.has(s))continue;r.add(i.parent);let l,c=[];for(let u of s.declarations){l??(l=u.id),u.init&&c.push(yOe("=",u.id,u.init));let d=Object.keys(sH(u,!1,!0,!0));for(let f of d)t(Ym(f),u.init!=null)}if(o.parentPath.isForXStatement({left:s}))o.replaceWith(l);else if(c.length===0)o.remove();else{let u=c.length===1?c[0]:XOe(c);o.parentPath.isForStatement({init:s})?o.replaceWith(u):o.replaceWith(FOe(u))}}}};Q1.default=io;io.globals=[...hOe,...gOe];io.contextVariables=["arguments","undefined","Infinity","NaN"];io.prototype._renameFromMap=function(t,r,n,a){t[r]&&(t[n]=a,t[r]=null)},io.prototype.traverse=function(e,t,r){(0,nH.default)(e,t,this,r,this.path)},io.prototype._generateUid=function(t,r){let n=t;return r>1&&(n+=r),`_${n}`},io.prototype.toArray=function(t,r,n){if(Xm(t)){let s=this.getBinding(t.name);if(s!=null&&s.constant&&s.path.isGenericType("Array"))return t}if(oH(t))return t;if(Xm(t,{name:"arguments"}))return Yq(ZD(ZD(ZD(Ym("Array"),Ym("prototype")),Ym("slice")),Ym("call")),[t]);let a,i=[t];return r===!0?a="toConsumableArray":typeof r=="number"?(i.push(BOe(r)),a="slicedToArray"):a="toArray",n&&(i.unshift(this.path.hub.addHelper(a)),a="maybeArrayLike"),Yq(this.path.hub.addHelper(a),i)},io.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let n of t){let a=this;do{for(let i of Object.keys(a.bindings)){let s=a.bindings[i];s.kind===n&&(r[i]=s)}a=a.parent}while(a)}return r},Object.defineProperties(io.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var r2=ae((t2,$0)=>{(function(e,t){if(typeof t2=="object"&&typeof $0<"u")t($0),$0.exports=r($0);else if(typeof define=="function"&&define.amd)define(["module"],function(n){t.apply(this,arguments),n.exports=r(n)});else{let n={exports:{}};t(n),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=r(n)}function r(n){return"default"in n.exports?n.exports.default:n.exports}})(t2,function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=(U,k)=>{for(var L in k)t(U,L,{get:k[L],enumerable:!0})},s=(U,k,L,M)=>{if(k&&typeof k=="object"||typeof k=="function")for(let ee of n(k))!a.call(U,ee)&&ee!==L&&t(U,ee,{get:()=>k[ee],enumerable:!(M=r(k,ee))||M.enumerable});return U},o=U=>s(t({},"__esModule",{value:!0}),U),l={};i(l,{decode:()=>Z,decodeGeneratedRanges:()=>_,decodeOriginalScopes:()=>E,encode:()=>V,encodeGeneratedRanges:()=>O,encodeOriginalScopes:()=>C}),e.exports=o(l);var c=",".charCodeAt(0),u=";".charCodeAt(0),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=new Uint8Array(64),p=new Uint8Array(128);for(let U=0;U>>=1,se&&(L=-2147483648|-L),k+L}function h(U,k,L){let M=k-L;M=M<0?-M<<1|1:M<<1;do{let ee=M&31;M>>>=5,M>0&&(ee|=32),U.write(f[ee])}while(M>0);return k}function x(U,k){return U.pos>=k?!1:U.peek()!==c}var g=1024*16,y=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(U){return Buffer.from(U.buffer,U.byteOffset,U.byteLength).toString()}}:{decode(U){let k="";for(let L=0;L0?k+y.decode(U.subarray(0,L)):k}},S=class{constructor(U){this.pos=0,this.buffer=U}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(U){let{buffer:k,pos:L}=this,M=k.indexOf(U,L);return M===-1?k.length:M}},w=[];function E(U){let{length:k}=U,L=new S(U),M=[],ee=[],se=0;for(;L.pos0&&L.write(c),M[0]=h(L,se,M[0]),h(L,ne,0),h(L,H,0);let K=ee.length===6?1:0;h(L,K,0),ee.length===6&&h(L,ee[5],0);for(let he of I)h(L,he,0);for(k++;kge||q===ge&&be>=ue)break;k=N(U,k,L,M)}return L.write(c),M[0]=h(L,ge,M[0]),h(L,ue,0),k}function _(U){let{length:k}=U,L=new S(U),M=[],ee=[],se=0,ne=0,ge=0,ue=0,H=0,I=0,K=0,he=0;do{let q=L.indexOf(";"),be=0;for(;L.posot;It--){let ar=K;K=m(L,K),he=m(L,K===ar?he:0);let Wr=m(L,0);Nt.push([Wr,K,he])}}else Nt=[[ot]];ke.push(Nt)}while(x(L,q))}je.bindings=ke,M.push(je),ee.push(je)}se++,L.pos=q+1}while(L.pos0&&L.write(c),M[1]=h(L,ee[1],M[1]);let he=(ee.length===6?1:0)|(I?2:0)|(H?4:0);if(h(L,he,0),ee.length===6){let{4:q,5:be}=ee;q!==M[2]&&(M[3]=0),M[2]=h(L,q,M[2]),M[3]=h(L,be,M[3])}if(I){let{0:q,1:be,2:Ie}=ee.callsite;q!==M[4]?(M[5]=0,M[6]=0):be!==M[5]&&(M[6]=0),M[4]=h(L,q,M[4]),M[5]=h(L,be,M[5]),M[6]=h(L,Ie,M[6])}if(K)for(let q of K){q.length>1&&h(L,-q.length,0);let be=q[0][0];h(L,be,0);let Ie=se,Ne=ne;for(let He=1;Hege||be===ge&&Ie>=ue)break;k=D(U,k,L,M)}return M[0]0&&k.write(u),ge.length===0)continue;let ue=0;for(let H=0;H0&&k.write(c),ue=h(k,I[0],ue),I.length!==1&&(L=h(k,I[1],L),M=h(k,I[2],M),ee=h(k,I[3],ee),I.length!==4&&(se=h(k,I[4],se)))}}return k.flush()}})});var uH=ae((n2,a2)=>{(function(e,t){typeof n2=="object"&&typeof a2<"u"?a2.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(n2,function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function n(x){return e.test(x)}function a(x){return x.startsWith("//")}function i(x){return x.startsWith("/")}function s(x){return x.startsWith("file:")}function o(x){return/^[.?#]/.test(x)}function l(x){let g=t.exec(x);return u(g[1],g[2]||"",g[3],g[4]||"",g[5]||"/",g[6]||"",g[7]||"")}function c(x){let g=r.exec(x),y=g[2];return u("file:","",g[1]||"","",i(y)?y:"/"+y,g[3]||"",g[4]||"")}function u(x,g,y,b,S,w,E){return{scheme:x,user:g,host:y,port:b,path:S,query:w,hash:E,type:7}}function d(x){if(a(x)){let y=l("http:"+x);return y.scheme="",y.type=6,y}if(i(x)){let y=l("http://foo.com"+x);return y.scheme="",y.host="",y.type=5,y}if(s(x))return c(x);if(n(x))return l(x);let g=l("http://foo.com/"+x);return g.scheme="",g.host="",g.type=x?x.startsWith("?")?3:x.startsWith("#")?2:4:1,g}function f(x){if(x.endsWith("/.."))return x;let g=x.lastIndexOf("/");return x.slice(0,g+1)}function p(x,g){m(g,g.type),x.path==="/"?x.path=g.path:x.path=f(g.path)+x.path}function m(x,g){let y=g<=4,b=x.path.split("/"),S=1,w=0,E=!1;for(let N=1;Nb&&(b=E)}m(y,b);let S=y.query+y.hash;switch(b){case 2:case 3:return S;case 4:{let w=y.path.slice(1);return w?o(g||x)&&!o(w)?"./"+w+S:w+S:S||"."}case 5:return y.path+S;default:return y.scheme+"//"+y.user+y.host+y.port+y.path+S}}return h})});var s2=ae((i2,j0)=>{(function(e,t){if(typeof i2=="object"&&typeof j0<"u")t(j0,uH(),r2()),j0.exports=r(j0);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(n){t.apply(this,arguments),n.exports=r(n)});else{let n={exports:{}};t(n,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=r(n)}function r(n){return"default"in n.exports?n.exports.default:n.exports}})(i2,function(e,t,r){"use strict";var n=Object.create,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(ye,De)=>function(){return De||(0,ye[s(ye)[0]])((De={exports:{}}).exports,De),De.exports},u=(ye,De)=>{for(var Me in De)a(ye,Me,{get:De[Me],enumerable:!0})},d=(ye,De,Me,qe)=>{if(De&&typeof De=="object"||typeof De=="function")for(let st of s(De))!l.call(ye,st)&&st!==Me&&a(ye,st,{get:()=>De[st],enumerable:!(qe=i(De,st))||qe.enumerable});return ye},f=(ye,De,Me)=>(Me=ye!=null?n(o(ye)):{},d(De||!ye||!ye.__esModule?a(Me,"default",{value:ye,enumerable:!0}):Me,ye)),p=ye=>d(a({},"__esModule",{value:!0}),ye),m=c({"umd:@jridgewell/sourcemap-codec"(ye,De){De.exports=r}}),h=c({"umd:@jridgewell/resolve-uri"(ye,De){De.exports=t}}),x={};u(x,{AnyMap:()=>ue,FlattenMap:()=>ue,GREATEST_LOWER_BOUND:()=>Ne,LEAST_UPPER_BOUND:()=>Ie,TraceMap:()=>He,allGeneratedPositionsFor:()=>It,decodedMap:()=>Ge,decodedMappings:()=>ke,eachMapping:()=>ar,encodedMap:()=>ht,encodedMappings:()=>Ce,generatedPositionFor:()=>Nt,isIgnored:()=>We,originalPositionFor:()=>ot,presortedDecodedMap:()=>ct,sourceContentFor:()=>pe,traceSegment:()=>je}),e.exports=p(x);var g=f(m()),y=f(h());function b(ye){if(!ye)return"";let De=ye.lastIndexOf("/");return ye.slice(0,De+1)}function S(ye,De){let Me=b(ye),qe=De?De+"/":"";return st=>(0,y.default)(qe+(st||""),Me)}var w=0,E=1,C=2,N=3,_=4,O=1,D=2;function W(ye,De){let Me=Z(ye,0);if(Me===ye.length)return ye;De||(ye=ye.slice());for(let qe=Me;qe[]);for(let qe=0;qe>1),ft=ye[st][w]-De;if(ft===0)return k=!0,st;ft<0?Me=st+1:qe=st-1}return k=!1,Me-1}function M(ye,De,Me){for(let qe=Me+1;qe=0&&ye[qe][w]===De;Me=qe--);return Me}function se(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ne(ye,De,Me,qe){let{lastKey:st,lastNeedle:ft,lastIndex:cr}=Me,Br=0,wr=ye.length-1;if(qe===st){if(De===ft)return k=cr!==-1&&ye[cr][w]===De,cr;De>=ft?Br=cr===-1?0:cr:wr=cr}return Me.lastKey=qe,Me.lastNeedle=De,Me.lastIndex=L(ye,De,Br,wr)}function ge(ye){return typeof ye=="string"?JSON.parse(ye):ye}var ue=function(ye,De){let Me=ge(ye);if(!("sections"in Me))return new He(Me,De);let qe=[],st=[],ft=[],cr=[],Br=[];H(Me,De,qe,st,ft,cr,Br,0,0,1/0,1/0);let wr={version:3,file:Me.file,names:cr,sources:st,sourcesContent:ft,mappings:qe,ignoreList:Br};return ct(wr)};function H(ye,De,Me,qe,st,ft,cr,Br,wr,pa,xa){let{sections:Va}=ye;for(let _r=0;_rpa)return;let gU=he(Me,T_),Gme=yl===0?wr:0,yU=eo[yl];for(let w_=0;w_=xa)return;if(Rm.length===1){gU.push([UC]);continue}let xU=ma+Rm[E],bU=Rm[C],vU=Rm[N];gU.push(Rm.length===4?[UC,xU,bU,vU]:[UC,xU,bU,vU,Xr+Rm[_]])}}}function K(ye,De){for(let Me=0;Me=qe.length)return null;let st=qe[De],ft=fa(st,ye._decodedMemo,De,Me,Ne);return ft===-1?null:st[ft]}function ot(ye,De){let{line:Me,column:qe,bias:st}=De;if(Me--,Me<0)throw new Error(q);if(qe<0)throw new Error(be);let ft=ke(ye);if(Me>=ft.length)return ut(null,null,null,null);let cr=ft[Me],Br=fa(cr,ye._decodedMemo,Me,qe,st||Ne);if(Br===-1)return ut(null,null,null,null);let wr=cr[Br];if(wr.length===1)return ut(null,null,null,null);let{names:pa,resolvedSources:xa}=ye;return ut(xa[wr[E]],wr[C]+1,wr[N],wr.length===5?pa[wr[_]]:null)}function Nt(ye,De){let{source:Me,line:qe,column:st,bias:ft}=De;return Fr(ye,Me,qe,st,ft||Ne,!1)}function It(ye,De){let{source:Me,line:qe,column:st,bias:ft}=De;return Fr(ye,Me,qe,st,ft||Ie,!0)}function ar(ye,De){let Me=ke(ye),{names:qe,resolvedSources:st}=ye;for(let ft=0;ft{(function(e,t){if(typeof o2=="object"&&typeof z0<"u")t(z0,r2(),s2()),z0.exports=r(z0);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(n){t.apply(this,arguments),n.exports=r(n)});else{let n={exports:{}};t(n,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=r(n)}function r(n){return"default"in n.exports?n.exports.default:n.exports}})(o2,function(e,t,r){"use strict";var n=Object.create,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(Ce,ke)=>function(){return ke||(0,Ce[s(Ce)[0]])((ke={exports:{}}).exports,ke),ke.exports},u=(Ce,ke)=>{for(var je in ke)a(Ce,je,{get:ke[je],enumerable:!0})},d=(Ce,ke,je,ot)=>{if(ke&&typeof ke=="object"||typeof ke=="function")for(let Nt of s(ke))!l.call(Ce,Nt)&&Nt!==je&&a(Ce,Nt,{get:()=>ke[Nt],enumerable:!(ot=i(ke,Nt))||ot.enumerable});return Ce},f=(Ce,ke,je)=>(je=Ce!=null?n(o(Ce)):{},d(ke||!Ce||!Ce.__esModule?a(je,"default",{value:Ce,enumerable:!0}):je,Ce)),p=Ce=>d(a({},"__esModule",{value:!0}),Ce),m=c({"umd:@jridgewell/sourcemap-codec"(Ce,ke){ke.exports=t}}),h=c({"umd:@jridgewell/trace-mapping"(Ce,ke){ke.exports=r}}),x={};u(x,{GenMapping:()=>me,addMapping:()=>U,addSegment:()=>V,allMappings:()=>ue,fromMap:()=>ge,maybeAddMapping:()=>L,maybeAddSegment:()=>k,setIgnore:()=>ee,setSourceContent:()=>M,toDecodedMap:()=>se,toEncodedMap:()=>ne}),e.exports=p(x);var g=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function y(Ce){return Ce}function b(Ce,ke){return Ce._indexes[ke]}function S(Ce,ke){let je=b(Ce,ke);if(je!==void 0)return je;let{array:ot,_indexes:Nt}=Ce,It=ot.push(ke);return Nt[ke]=It-1}function w(Ce,ke){let je=b(Ce,ke);if(je===void 0)return;let{array:ot,_indexes:Nt}=Ce;for(let It=je+1;ItH(!0,Ce,ke,je,ot,Nt,It,ar,Wr),L=(Ce,ke)=>xt(!0,Ce,ke);function M(Ce,ke,je){let{_sources:ot,_sourcesContent:Nt}=Ce,It=S(ot,ke);Nt[It]=je}function ee(Ce,ke,je=!0){let{_sources:ot,_sourcesContent:Nt,_ignoreList:It}=Ce,ar=S(ot,ke);ar===Nt.length&&(Nt[ar]=null),je?S(It,ar):w(It,ar)}function se(Ce){let{_mappings:ke,_sources:je,_sourcesContent:ot,_names:Nt,_ignoreList:It}=Ce;return be(ke),{version:3,file:Ce.file||void 0,names:Nt.array,sourceRoot:Ce.sourceRoot||void 0,sources:je.array,sourcesContent:ot,mappings:ke,ignoreList:It.array}}function ne(Ce){let ke=se(Ce);return Object.assign({},ke,{mappings:(0,E.encode)(ke.mappings)})}function ge(Ce){let ke=new C.TraceMap(Ce),je=new me({file:ke.file,sourceRoot:ke.sourceRoot});return Ie(je._names,ke.names),Ie(je._sources,ke.sources),je._sourcesContent=ke.sourcesContent||ke.sources.map(()=>null),je._mappings=(0,C.decodedMappings)(ke),ke.ignoreList&&Ie(je._ignoreList,ke.ignoreList),je}function ue(Ce){let ke=[],{_mappings:je,_sources:ot,_names:Nt}=Ce;for(let It=0;It=0;je=ot--){let Nt=Ce[ot];if(ke>=Nt[N])break}return je}function q(Ce,ke,je){for(let ot=Ce.length;ot>ke;ot--)Ce[ot]=Ce[ot-1];Ce[ke]=je}function be(Ce){let{length:ke}=Ce,je=ke;for(let ot=je-1;ot>=0&&!(Ce[ot].length>0);je=ot,ot--);je{"use strict";Object.defineProperty(eP,"__esModule",{value:!0});eP.default=void 0;var Mf=dH(),l2=s2(),c2=class{constructor(t,r){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let a=this._map=new Mf.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(n=t.sourceFileName)==null?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new l2.TraceMap(t.inputSourceMap);let s=this._inputMap.resolvedSources;if(s.length)for(let o=0;o{"use strict";Object.defineProperty(tP,"__esModule",{value:!0});tP.default=void 0;var u2=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r;for(let n=0;n<64;n++)this._fastIndentations.push(r.repeat(n));this._allocQueue()}_allocQueue(){let t=this._queue;for(let r=0;r<16;r++)t.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(t,r,n,a,i){let s=this._queueCursor;s===this._queue.length&&this._allocQueue();let o=this._queue[s];o.char=t,o.repeat=r,o.line=n,o.column=a,o.filename=i,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let t=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:t?.getDecoded(),get __mergedMap(){return this.map},get map(){let n=t?t.get():null;return r.map=n,n},set map(n){Object.defineProperty(r,"map",{value:n,writable:!0})},get rawMappings(){let n=t?.getRawMappings();return r.rawMappings=n,n},set rawMappings(n){Object.defineProperty(r,"rawMappings",{value:n,writable:!0})}};return r}append(t,r){this._flush(),this._append(t,this._sourcePosition,r)}appendChar(t){this._flush(),this._appendChar(t,1,this._sourcePosition)}queue(t){if(t===10)for(;this._queueCursor!==0;){let n=this._queue[this._queueCursor-1].char;if(n!==32&&n!==9)break;this._queueCursor--}let r=this._sourcePosition;this._pushQueue(t,1,r.line,r.column,r.filename)}queueIndentation(t){t!==0&&this._pushQueue(-1,t,void 0,void 0,void 0)}_flush(){let t=this._queueCursor,r=this._queue;for(let n=0;n1?this._indentChar.repeat(r):this._indentChar}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);t!==10?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0)}_append(t,r,n){let a=t.length,i=this._position;if(this._last=t.charCodeAt(a-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t,!n&&!this._map){i.column+=a;return}let{column:s,identifierName:o,identifierNamePos:l,filename:c}=r,u=r.line;(o!=null||l!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let d=t.indexOf(` -`),f=0;for(d!==0&&this._mark(u,s,o,l,c);d!==-1;)i.line++,i.column=0,f=d+1,f=0&&this._queue[n].char===10;n--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){let t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let n=t.identifierName,a=this._sourcePosition;n&&(this._canMarkIdName=!1,a.identifierName=n),r(),n&&(this._canMarkIdName=!0,a.identifierName=void 0,a.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,n){this._map&&this._normalizePosition(t,r,n)}_normalizePosition(t,r,n){let a=r[t],i=this._sourcePosition;a&&(i.line=a.line,i.column=Math.max(a.column+n,0),i.filename=r.filename)}getCurrentColumn(){let t=this._queue,r=this._queueCursor,n=-1,a=0;for(let i=0;i{"use strict";Object.defineProperty(nP,"__esModule",{value:!0});nP.nodes=void 0;var QOe=xr(),{FLIPPED_ALIAS_KEYS:eFe,isArrayExpression:tFe,isAssignmentExpression:hH,isBinary:gH,isBlockStatement:rFe,isCallExpression:yH,isFunction:U0,isIdentifier:rP,isLiteral:nFe,isMemberExpression:d2,isObjectExpression:aFe,isOptionalCallExpression:iFe,isOptionalMemberExpression:sFe,isStringLiteral:oFe}=QOe;function _y(e,t){return e&&(d2(e)||sFe(e)?(_y(e.object,t),e.computed&&_y(e.property,t)):gH(e)||hH(e)?(_y(e.left,t),_y(e.right,t)):yH(e)||iFe(e)?(t.hasCall=!0,_y(e.callee,t)):U0(e)?t.hasFunction=!0:rP(e)&&(t.hasHelper=t.hasHelper||e.callee&&Zu(e.callee))),t}function mH(e){return _y(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Zu(e){return e?d2(e)?Zu(e.object)||Zu(e.property):rP(e)?e.name==="require"||e.name.charCodeAt(0)===95:yH(e)?Zu(e.callee):gH(e)||hH(e)?rP(e.left)&&Zu(e.left)||Zu(e.right):!1:!1}function lFe(e){return nFe(e)||aFe(e)||tFe(e)||rP(e)||d2(e)}var Jm=nP.nodes={AssignmentExpression(e){let t=mH(e.right);return t.hasCall&&t.hasHelper||t.hasFunction?t.hasFunction?3:2:0},SwitchCase(e,t){return(e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){return U0(e.left)||U0(e.right)?2:0},Literal(e){return oFe(e)&&e.value==="use strict"?2:0},CallExpression(e){return U0(e.callee)||Zu(e)?3:0},OptionalCallExpression(e){return U0(e.callee)?3:0},VariableDeclaration(e){for(let t=0;tn})})});var EH=ae(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.AssignmentExpression=jFe;jr.Binary=wH;jr.BinaryExpression=DFe;jr.ClassExpression=FFe;jr.ArrowFunctionExpression=jr.ConditionalExpression=PH;jr.DoExpression=wFe;jr.FunctionExpression=BFe;jr.FunctionTypeAnnotation=vFe;jr.Identifier=UFe;jr.LogicalExpression=zFe;jr.NullableTypeAnnotation=bFe;jr.ObjectExpression=TFe;jr.OptionalIndexedAccessType=PFe;jr.OptionalCallExpression=jr.OptionalMemberExpression=$Fe;jr.SequenceExpression=MFe;jr.TSSatisfiesExpression=jr.TSAsExpression=EFe;jr.TSConditionalType=IFe;jr.TSConstructorType=jr.TSFunctionType=RFe;jr.TSInferType=kFe;jr.TSInstantiationExpression=LFe;jr.TSIntersectionType=NFe;jr.UnaryLike=jr.TSTypeAssertion=CH;jr.TSTypeOperator=_Fe;jr.TSUnionType=AFe;jr.IntersectionTypeAnnotation=jr.UnionTypeAnnotation=CFe;jr.UpdateExpression=SFe;jr.AwaitExpression=jr.YieldExpression=OFe;var cFe=xr(),Oo=Zm(),{isArrayTypeAnnotation:uFe,isBinaryExpression:dFe,isCallExpression:fFe,isForOfStatement:pFe,isIndexedAccessType:mFe,isMemberExpression:SH,isObjectPattern:hFe,isOptionalMemberExpression:gFe,isYieldExpression:yFe,isStatement:xFe}=cFe,bH=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function vH(e,t){if(t==="BinaryExpression"||t==="LogicalExpression")return bH.get(e.operator);if(t==="TSAsExpression"||t==="TSSatisfiesExpression")return bH.get("in")}function f2(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}var aP=(e,t)=>{let r=t.type;return(r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e},iP=(e,t)=>{let r=t.type;return(r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function bFe(e,t){return uFe(t)}function vFe(e,t,r){let n=t.type;return n==="UnionTypeAnnotation"||n==="IntersectionTypeAnnotation"||n==="ArrayTypeAnnotation"||Boolean(r&Oo.TokenContext.arrowFlowReturnType)}function SFe(e,t){return iP(e,t)||aP(e,t)}function TH(e){return Boolean(e&(Oo.TokenContext.expressionStatement|Oo.TokenContext.arrowBody))}function TFe(e,t,r){return TH(r)}function wFe(e,t,r){return!e.async&&Boolean(r&Oo.TokenContext.expressionStatement)}function wH(e,t){let r=t.type;if(e.type==="BinaryExpression"&&e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**")return t.left===e;if(aP(e,t)||iP(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression")return!0;let n=vH(t,r);if(n!=null){let a=vH(e,e.type);if(n===a&&r==="BinaryExpression"&&t.right===e||n>a)return!0}}function CFe(e,t){let r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function PFe(e,t){return mFe(t)&&t.objectType===e}function EFe(e,t){return(t.type==="AssignmentExpression"||t.type==="AssignmentPattern")&&t.left===e||t.type==="BinaryExpression"&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:wH(e,t)}function IFe(e,t){let r=t.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"||r==="TSTypeOperator"||r==="TSTypeParameter"||(r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e||r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)}function AFe(e,t){let r=t.type;return r==="TSIntersectionType"||r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function NFe(e,t){let r=t.type;return r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function kFe(e,t){let r=t.type;return!!(r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"||e.typeParameter.constraint&&(r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e)}function _Fe(e,t){let r=t.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function LFe(e,t){let r=t.type;return(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function RFe(e,t){let r=t.type;return r==="TSIntersectionType"||r==="TSUnionType"||r==="TSTypeOperator"||r==="TSOptionalType"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)}function DFe(e,t,r){return e.operator==="in"&&Boolean(r&Oo.TokenContext.forInOrInitHeadAccumulate)}function MFe(e,t){let r=t.type;return r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&t.property===e||r==="OptionalMemberExpression"&&t.property===e||r==="TemplateLiteral"?!1:r==="ClassDeclaration"?!0:r==="ForOfStatement"?t.right===e:r==="ExportDefaultDeclaration"?!0:!xFe(t)}function OFe(e,t){let r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||iP(e,t)||r==="AwaitExpression"&&yFe(e)||r==="ConditionalExpression"&&e===t.test||aP(e,t)||f2(r)}function FFe(e,t,r){return Boolean(r&(Oo.TokenContext.expressionStatement|Oo.TokenContext.exportDefault))}function CH(e,t){return iP(e,t)||dFe(t)&&t.operator==="**"&&t.left===e||aP(e,t)}function BFe(e,t,r){return Boolean(r&(Oo.TokenContext.expressionStatement|Oo.TokenContext.exportDefault))}function PH(e,t){let r=t.type;return r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||f2(r)?!0:CH(e,t)}function $Fe(e,t){return fFe(t)&&t.callee===e||SH(t)&&t.object===e}function jFe(e,t,r){return TH(r)&&hFe(e.left)?!0:PH(e,t)}function zFe(e,t){let r=t.type;if(f2(r))return!0;if(r!=="LogicalExpression")return!1;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function UFe(e,t,r,n){var a;let i=t.type;if((a=e.extra)!=null&&a.parenthesized&&i==="AssignmentExpression"&&t.left===e){let s=t.right.type;if((s==="FunctionExpression"||s==="ClassExpression")&&t.right.id==null)return!0}return n&&n(e)!==e.name?!1:e.name==="let"?(SH(t,{object:e,computed:!0})||gFe(t,{object:e,computed:!0,optional:!1}))&&r&(Oo.TokenContext.expressionStatement|Oo.TokenContext.forInitHead|Oo.TokenContext.forInHead)?!0:Boolean(r&Oo.TokenContext.forOfHead):e.name==="async"&&pFe(t,{left:e,await:!1})}});var Zm=ae(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.TokenContext=void 0;Qu.isLastChild=a3e;Qu.needsParens=n3e;Qu.needsWhitespace=m2;Qu.needsWhitespaceAfter=r3e;Qu.needsWhitespaceBefore=t3e;var VFe=xH(),qFe=EH(),HFe=xr(),{FLIPPED_ALIAS_KEYS:GFe,VISITOR_KEYS:KFe,isCallExpression:IH,isDecorator:WFe,isExpressionStatement:XFe,isMemberExpression:YFe,isNewExpression:JFe,isParenthesizedExpression:ZFe}=HFe,iSt=Qu.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};function AH(e){let t=new Map;function r(n,a){let i=t.get(n);t.set(n,i?function(s,o,l,c){var u;return(u=i(s,o,l,c))!=null?u:a(s,o,l,c)}:a)}for(let n of Object.keys(e)){let a=GFe[n];if(a)for(let i of a)r(i,e[n]);else r(n,e[n])}return t}var QFe=AH(qFe),e3e=AH(VFe.nodes);function NH(e){return IH(e)?!0:YFe(e)&&NH(e.object)}function m2(e,t,r){var n;if(!e)return!1;XFe(e)&&(e=e.expression);let a=(n=e3e.get(e.type))==null?void 0:n(e,t);return typeof a=="number"?(a&r)!==0:!1}function t3e(e,t){return m2(e,t,1)}function r3e(e,t){return m2(e,t,2)}function n3e(e,t,r,n){var a;return t?JFe(t)&&t.callee===e&&NH(e)?!0:WFe(t)?!p2(e)&&!(IH(e)&&p2(e.callee))&&!ZFe(e):((a=QFe.get(e.type))==null?void 0:a(e,t,r,n))||!1:!1}function p2(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&p2(e.object);default:return!1}}function a3e(e,t){let r=KFe[e.type];for(let n=r.length-1;n>=0;n--){let a=e[r[n]];if(a===t)return!0;if(Array.isArray(a)){let i=a.length-1;for(;i>=0&&a[i]===null;)i--;return i>=0&&a[i]===t}else if(a)return!1}return!1}});var kH=ae(sP=>{"use strict";Object.defineProperty(sP,"__esModule",{value:!0});sP.TokenMap=void 0;var i3e=xr(),{traverseFast:s3e,VISITOR_KEYS:o3e}=i3e,h2=class{constructor(t,r,n){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=r,this._source=n,s3e(t,a=>{let i=this._getTokensIndexesOfNode(a);i.length>0&&this._nodesToTokenIndexes.set(a,i)}),this._tokensCache.clear()}has(t){return this._nodesToTokenIndexes.has(t)}getIndexes(t){return this._nodesToTokenIndexes.get(t)}find(t,r){let n=this._nodesToTokenIndexes.get(t);if(n)for(let a=0;a=0;a--){let i=n[a],s=this._tokens[i];if(r(s,i))return i}return-1}findMatching(t,r,n=0){let a=this._nodesToTokenIndexes.get(t);if(a){let i=0,s=n;if(s>1){let o=this._nodesOccurrencesCountCache.get(t);o&&o.test===r&&o.count0&&this._nodesOccurrencesCountCache.set(t,{test:r,count:s,i}),o;n--}}}return null}matchesOriginal(t,r){return t.end-t.start!==r.length?!1:t.value!=null?t.value===r:this._source.startsWith(r,t.start)}startMatches(t,r){let n=this._nodesToTokenIndexes.get(t);if(!n)return!1;let a=this._tokens[n[0]];return a.start!==t.start?!1:this.matchesOriginal(a,r)}endMatches(t,r){let n=this._nodesToTokenIndexes.get(t);if(!n)return!1;let a=this._tokens[n[n.length-1]];return a.end!==t.end?!1:this.matchesOriginal(a,r)}_getTokensIndexesOfNode(t){if(t.start==null||t.end==null)return[];let{first:r,last:n}=this._findTokensOfNode(t,0,this._tokens.length-1),a=r,i=l3e(t);(t.type==="ExportNamedDeclaration"||t.type==="ExportDefaultDeclaration")&&t.declaration&&t.declaration.type==="ClassDeclaration"&&i.next();let s=[];for(let o of i){if(o==null||o.start==null||o.end==null)continue;let l=this._findTokensOfNode(o,a,n),c=l.first;for(let u=a;u>1;if(tthis._tokens[a].start)r=a+1;else return a}return r}_findLastTokenOfNode(t,r,n){for(;r<=n;){let a=n+r>>1;if(tthis._tokens[a].end)r=a+1;else return a}return n}};sP.TokenMap=h2;function*l3e(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});Ly.TaggedTemplateExpression=c3e;Ly.TemplateElement=u3e;Ly.TemplateLiteral=f3e;Ly._printTemplate=d3e;function c3e(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function u3e(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function d3e(e,t){let r=e.quasis,n="`";for(let a=0;a{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.LogicalExpression=cn.BinaryExpression=cn.AssignmentExpression=B3e;cn.AssignmentPattern=F3e;cn.AwaitExpression=R3e;cn.BindExpression=$3e;cn.CallExpression=_3e;cn.ConditionalExpression=T3e;cn.Decorator=A3e;cn.DoExpression=b3e;cn.EmptyStatement=M3e;cn.ExpressionStatement=O3e;cn.Import=L3e;cn.MemberExpression=j3e;cn.MetaProperty=z3e;cn.ModuleExpression=q3e;cn.NewExpression=w3e;cn.OptionalCallExpression=k3e;cn.OptionalMemberExpression=N3e;cn.ParenthesizedExpression=v3e;cn.PrivateName=U3e;cn.SequenceExpression=C3e;cn.Super=E3e;cn.ThisExpression=P3e;cn.UnaryExpression=x3e;cn.UpdateExpression=S3e;cn.V8IntrinsicIdentifier=V3e;cn.YieldExpression=D3e;cn._shouldPrintDecoratorsBeforeExport=I3e;var p3e=xr(),m3e=Zm(),{isCallExpression:h3e,isLiteral:LH,isMemberExpression:g2,isNewExpression:g3e,isPattern:y3e}=p3e;function x3e(e){let{operator:t}=e;t==="void"||t==="delete"||t==="typeof"||t==="throw"?(this.word(t),this.space()):this.token(t),this.print(e.argument)}function b3e(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)}function v3e(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)}function S3e(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))}function T3e(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function w3e(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!h3e(t,{callee:e})&&!g2(t)&&!g3e(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),r(),this.rightParens(e)}function C3e(e){this.printList(e.expressions)}function P3e(){this.word("this")}function E3e(){this.word("super")}function I3e(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function A3e(e){this.tokenChar(64),this.print(e.expression),this.newline()}function N3e(e){let{computed:t}=e,{optional:r,property:n}=e;if(this.print(e.object),!t&&g2(n))throw new TypeError("Got a MemberExpression for MemberExpression property");LH(n)&&typeof n.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(n),this.tokenChar(93)):(r||this.tokenChar(46),this.print(n))}function k3e(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)}function _3e(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)}function L3e(){this.word("import")}function R3e(e){this.word("await"),this.space(),this.print(e.argument)}function D3e(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")}function M3e(){this.semicolon(!0)}function O3e(e){this.tokenContext|=m3e.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function F3e(e){this.print(e.left),(e.left.type==="Identifier"||y3e(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function B3e(e){this.print(e.left),this.space(),e.operator==="in"||e.operator==="instanceof"?this.word(e.operator):(this.token(e.operator),this._endsWithDiv=e.operator==="/"),this.space(),this.print(e.right)}function $3e(e){this.print(e.object),this.token("::"),this.print(e.callee)}function j3e(e){if(this.print(e.object),!e.computed&&g2(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(LH(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),r()}else this.tokenChar(46),this.print(e.property)}function z3e(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function U3e(e){this.tokenChar(35),this.print(e.id)}function V3e(e){this.tokenChar(37),this.word(e.name)}function q3e(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)}});var FH=ae(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.BreakStatement=e5e;ha.CatchClause=s5e;ha.ContinueStatement=t5e;ha.DebuggerStatement=c5e;ha.DoWhileStatement=Q3e;ha.ForOfStatement=ha.ForInStatement=void 0;ha.ForStatement=J3e;ha.IfStatement=Y3e;ha.LabeledStatement=a5e;ha.ReturnStatement=r5e;ha.SwitchCase=l5e;ha.SwitchStatement=o5e;ha.ThrowStatement=n5e;ha.TryStatement=i5e;ha.VariableDeclaration=u5e;ha.VariableDeclarator=d5e;ha.WhileStatement=Z3e;ha.WithStatement=X3e;var H3e=xr(),{isFor:DH,isForStatement:G3e,isIfStatement:K3e,isStatement:W3e}=H3e;function X3e(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)}function Y3e(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&K3e(MH(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))}function MH(e){let{body:t}=e;return W3e(t)===!1?e:MH(t)}function J3e(e){this.word("for"),this.space(),this.tokenChar(40);{let t=this.enterForStatementInit();this.print(e.init),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.token(";",!1,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e)}function Z3e(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)}function OH(e){this.word("for"),this.space();let t=e.type==="ForOfStatement";t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{let r=this.enterForXStatementInit(t);this.print(e.left),r?.()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}var uSt=ha.ForInStatement=OH,dSt=ha.ForOfStatement=OH;function Q3e(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function oP(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function e5e(e){this.word("break"),oP(this,e.label)}function t5e(e){this.word("continue"),oP(this,e.label)}function r5e(e){this.word("return"),oP(this,e.argument)}function n5e(e){this.word("throw"),oP(this,e.argument)}function a5e(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function i5e(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))}function s5e(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)}function o5e(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)}function l5e(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))}function c5e(){this.word("debugger"),this.semicolon()}function u5e(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;r==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word(r,r==="using"),this.space();let n=!1;if(!DH(t))for(let a of e.declarations)a.init&&(n=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,n?function(a){this.token(",",!1,a),this.newline()}:void 0),DH(t)){if(G3e(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon()}function d5e(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}});var BH=ae(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.ClassAccessorProperty=b5e;Tl.ClassBody=g5e;Tl.ClassExpression=Tl.ClassDeclaration=h5e;Tl.ClassMethod=S5e;Tl.ClassPrivateMethod=T5e;Tl.ClassPrivateProperty=v5e;Tl.ClassProperty=x5e;Tl.StaticBlock=C5e;Tl._classMethodHead=w5e;var f5e=xr(),{isExportDefaultDeclaration:p5e,isExportNamedDeclaration:m5e}=f5e;function h5e(e,t){(!(p5e(t)||m5e(t))||!this._shouldPrintDecoratorsBeforeExport(t))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function g5e(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{this.newline();let t=y5e(this,e);t?.(-1);let r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function y5e(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let n=1,a=0,i=0,s=()=>{for(;i{i<=o&&(i=o+1,s());let l=i===t.body.length?t.end:t.body[i].start,c;for(;n{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.ArrowFunctionExpression=M5e;wl.FunctionDeclaration=wl.FunctionExpression=D5e;wl._functionHead=R5e;wl._methodHead=_5e;wl._param=k5e;wl._parameters=N5e;wl._params=A5e;wl._predicate=L5e;wl._shouldPrintArrowParamsParens=O5e;var P5e=xr(),E5e=Zm(),{isIdentifier:I5e}=P5e;function A5e(e,t,r){this.print(e.typeParameters);let n=F5e.call(this,t,r);n&&this.sourceIdentifierName(n.name,n.pos),this.tokenChar(40),this._parameters(e.params,")");let a=e.type==="ArrowFunctionExpression";this.print(e.returnType,a),this._noLineTerminator=a}function N5e(e,t){let r=this.enterDelimited(),n=this.shouldPrintTrailingComma(t),a=e.length;for(let i=0;i"),this.space(),this.tokenContext|=E5e.TokenContext.arrowBody,this.print(e.body)}function O5e(e){var t,r;if(e.params.length!==1||e.typeParameters||e.returnType||e.predicate)return!0;let n=e.params[0];if(!I5e(n)||n.typeAnnotation||n.optional||(t=n.leadingComments)!=null&&t.length||(r=n.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null||this.tokenMap.findMatching(e,"(")!==null)return!0;let a=this.tokenMap.findMatching(e,"=>");return a?.loc==null?!0:a.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function F5e(e,t){let r=e;if(!r&&t){let l=t.type;l==="VariableDeclarator"?r=t.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=t.left:l==="ObjectProperty"||l==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let n;if(r.type==="Identifier"){var a,i;n={pos:(a=r.loc)==null?void 0:a.start,name:((i=r.loc)==null?void 0:i.identifierName)||r.name}}else if(r.type==="PrivateName"){var s;n={pos:(s=r.loc)==null?void 0:s.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;n={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return n}});var y2=ae(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ExportAllDeclaration=J5e;As.ExportDefaultDeclaration=Q5e;As.ExportDefaultSpecifier=K5e;As.ExportNamedDeclaration=Z5e;As.ExportNamespaceSpecifier=X5e;As.ExportSpecifier=W5e;As.ImportAttribute=tBe;As.ImportDeclaration=eBe;As.ImportDefaultSpecifier=G5e;As.ImportExpression=nBe;As.ImportNamespaceSpecifier=rBe;As.ImportSpecifier=H5e;As._printAttributes=Y5e;var B5e=xr(),$5e=Zm(),{isClassDeclaration:j5e,isExportDefaultSpecifier:z5e,isExportNamespaceSpecifier:U5e,isImportDefaultSpecifier:V5e,isImportNamespaceSpecifier:q5e,isStatement:zH}=B5e;function H5e(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function G5e(e){this.print(e.local)}function K5e(e){this.print(e.exported)}function W5e(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function X5e(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var jH=!1;function Y5e(e,t){var r;let{importAttributesKeyword:n}=this.format,{attributes:a,assertions:i}=e;a&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!jH&&(jH=!0);let s=n==="assert"||!n&&i;if(this.word(s?"assert":"with"),this.space(),!s&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(a||i);return}let o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(a||i,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)}function J5e(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()}function UH(e,t){j5e(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}function Z5e(e){if(UH(this,e),this.word("export"),this.space(),e.declaration){let n=e.declaration;this.print(n),zH(n)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());let n=e.specifiers.slice(0),a=!1;for(;;){let s=n[0];if(z5e(s)||U5e(s))a=!0,this.print(n.shift()),n.length&&(this.tokenChar(44),this.space());else break}let i=!1;if((n.length||!n.length&&!a)&&(i=!0,this.tokenChar(123),n.length&&(this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,i)):this.print(e.source)}this.semicolon()}}function Q5e(e){UH(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=$5e.TokenContext.exportDefault;let t=e.declaration;this.print(t),zH(t)||this.semicolon()}function eBe(e){var t,r;this.word("import"),this.space();let n=e.importKind==="type"||e.importKind==="typeof";n?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let a=e.specifiers.slice(0),i=!!a.length;for(;i;){let o=a[0];if(V5e(o)||q5e(o))this.print(a.shift()),a.length&&(this.tokenChar(44),this.space());else break}let s=!1;a.length?(s=!0,this.tokenChar(123),this.space(),this.printList(a,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):n&&!i&&(s=!0,this.tokenChar(123),this.tokenChar(125)),(i||n)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,s)):this.print(e.source),this.semicolon()}function tBe(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function rBe(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function nBe(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)}});var GH=ae((gSt,HH)=>{"use strict";var VH={},aBe=VH.hasOwnProperty,qH=(e,t)=>{for(let r in e)aBe.call(e,r)&&t(r,e[r])},iBe=(e,t)=>(t&&qH(t,(r,n)=>{e[r]=n}),e),sBe=(e,t)=>{let r=e.length,n=-1;for(;++n"\\u"+("0000"+e).slice(-4),V0=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},q0=VH.toString,oBe=Array.isArray,lBe=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),cBe=e=>q0.call(e)=="[object Object]",uBe=e=>typeof e=="string"||q0.call(e)=="[object String]",dBe=e=>typeof e=="number"||q0.call(e)=="[object Number]",x2=e=>typeof e=="bigint",fBe=e=>typeof e=="function",pBe=e=>q0.call(e)=="[object Map]",mBe=e=>q0.call(e)=="[object Set]",hBe={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},gBe=/[\\\b\f\n\r\t]/,yBe=/[0-9]/,xBe=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,bBe=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,vBe=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,Of=(e,t)=>{let r=()=>{c=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},a=t&&t.json;a&&(n.quotes="double",n.wrap=!0),t=iBe(n,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let i=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",s=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),c="",u=t.__inline1__,d=t.__inline2__,f=s?"":` -`,p,m=!0,h=t.numbers=="binary",x=t.numbers=="octal",g=t.numbers=="decimal",y=t.numbers=="hexadecimal";if(a&&e&&fBe(e.toJSON)&&(e=e.toJSON()),!uBe(e)){if(pBe(e))return e.size==0?"new Map()":(s||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Of(Array.from(e),t)+")");if(mBe(e))return e.size==0?"new Set()":"new Set("+Of(Array.from(e),t)+")";if(lBe(e))return e.length==0?"Buffer.from([])":"Buffer.from("+Of(Array.from(e),t)+")";if(oBe(e))return p=[],t.wrap=!0,u&&(t.__inline1__=!1,t.__inline2__=!0),d||r(),sBe(e,S=>{m=!1,d&&(t.__inline2__=!1),p.push((s||d?"":l)+Of(S,t))}),m?"[]":d?"["+p.join(", ")+"]":"["+f+p.join(","+f)+f+(s?"":c)+"]";if(dBe(e)||x2(e)){if(a)return JSON.stringify(Number(e));let S;if(g)S=String(e);else if(y){let w=e.toString(16);o||(w=w.toUpperCase()),S="0x"+w}else h?S="0b"+e.toString(2):x&&(S="0o"+e.toString(8));return x2(e)?S+"n":S}else return x2(e)?a?JSON.stringify(Number(e)):e+"n":cBe(e)?(p=[],t.wrap=!0,r(),qH(e,(S,w)=>{m=!1,p.push((s?"":l)+Of(S,t)+":"+(s?"":" ")+Of(w,t))}),m?"{}":"{"+f+p.join(","+f)+f+(s?"":c)+"}"):a?JSON.stringify(e)||"null":String(e)}let b=t.escapeEverything?bBe:vBe;return p=e.replace(b,(S,w,E,C,N,_)=>{if(w){if(t.minimal)return w;let D=w.charCodeAt(0),W=w.charCodeAt(1);if(t.es6){let Z=(D-55296)*1024+W-56320+65536;return"\\u{"+V0(Z,o)+"}"}return lP(V0(D,o))+lP(V0(W,o))}if(E)return lP(V0(E.charCodeAt(0),o));if(S=="\0"&&!a&&!yBe.test(_.charAt(N+1)))return"\\0";if(C)return C==i||t.escapeEverything?"\\"+C:C;if(gBe.test(S))return hBe[S];if(t.minimal&&!xBe.test(S))return S;let O=V0(S.charCodeAt(0),o);return a||O.length>2?lP(O):"\\x"+("00"+O).slice(-2)}),i=="`"&&(p=p.replace(/\$\{/g,"\\${")),t.isScriptContext&&(p=p.replace(/<\/(script|style)/gi,"<\\/$1").replace(/"),e.content}function Mi(t,e){var r=ne;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function fe(t,e){var r=(e&1)!==0,n=(e&2)!==0,i,s=!t.startsWith("");return()=>{if(re)return Mi(ge,null),ge;i===void 0&&(i=um(s?t:""+t),r||(i=Zt(i)));var a=n||sf?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=Zt(a),l=a.lastChild;Mi(o,l)}else Mi(a,a);return a}}function ds(){if(re)return Mi(ge,null),ge;var t=document.createDocumentFragment(),e=document.createComment(""),r=It();return t.append(e,r),Mi(e,r),t}function ae(t,e){if(re){var r=ne;(!(r.f&32768)||r.nodes.end===null)&&(r.nodes.end=ge),er();return}t!==null&&t.before(e)}p();var JV=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var Tce=[...JV,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var e9=["touchstart","touchmove"];function nD(t){return e9.includes(t)}var t9=["$state","$state.raw","$derived","$derived.by"],Pce=[...t9,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var fm=!0;function He(t,e){var n;var r=e==null?"":typeof e=="object"?e+"":e;r!==((n=t.__t)!=null?n:t.__t=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function ia(t,e){return iD(t,e)}function mb(t,e){var a;im(),e.intro=(a=e.intro)!=null?a:!1;let r=e.target,n=re,i=ge;try{for(var s=Zt(r);s&&(s.nodeType!==Or||s.data!==tf);)s=Yt(s);if(!s)throw ns;Bt(!0),Ge(s);let o=iD(t,{...e,anchor:s});return Bt(!1),o}catch(o){if(o instanceof Error&&o.message.split(` -`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==ns&&console.warn("Failed to hydrate: ",o),e.recover===!1&&aM(),im(),hc(r),Bt(!1),ia(t,e)}finally{Bt(n),Ge(i)}}var mc=new Map;function iD(t,{target:e,anchor:r,props:n={},events:i,context:s,intro:a=!0}){im();var o=new Set,l=f=>{for(var d=0;d{var f=r!=null?r:e.appendChild(It());return Ky(f,{pending:()=>{}},d=>{at({});var h=ke;if(s&&(h.c=s),i&&(n.$$events=i),re&&Mi(d,null),fm=a,c=t(d,n)||{},fm=!0,re&&(ne.nodes.end=ge,ge===null||ge.nodeType!==Or||ge.data!==Va))throw Ya(),ns;ot()}),()=>{var m;for(var d of o){e.removeEventListener(d,pc);var h=mc.get(d);--h===0?(document.removeEventListener(d,pc),mc.delete(d)):mc.set(d,h)}cm.delete(l),f!==r&&((m=f.parentNode)==null||m.removeChild(f))}});return pb.set(c,u),c}var pb=new WeakMap;function hs(t,e){let r=pb.get(t);return r?(pb.delete(t),r(e)):(L&&(Wt in t?gM():mM()),Promise.resolve())}p();p();p();var Qn,Di,ln,fo,wf,yf,dm,ps=class{constructor(e,r=!0){qe(this,"anchor");me(this,Qn,new Map);me(this,Di,new Map);me(this,ln,new Map);me(this,fo,new Set);me(this,wf,!0);me(this,yf,()=>{var e=ye;if($(this,Qn).has(e)){var r=$(this,Qn).get(e),n=$(this,Di).get(r);if(n)gf(n),$(this,fo).delete(r);else{var i=$(this,ln).get(r);i&&($(this,Di).set(r,i.effect),$(this,ln).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(let[s,a]of $(this,Qn)){if($(this,Qn).delete(s),s===e)break;let o=$(this,ln).get(a);o&&(ut(o.effect),$(this,ln).delete(a))}for(let[s,a]of $(this,Di)){if(s===r||$(this,fo).has(s))continue;let o=()=>{if(Array.from($(this,Qn).values()).includes(s)){var c=document.createDocumentFragment();Qp(a,c),c.append(It()),$(this,ln).set(s,{effect:a,fragment:c})}else ut(a);$(this,fo).delete(s),$(this,Di).delete(s)};$(this,wf)||!n?($(this,fo).add(s),Fi(a,o,!1)):o()}}});me(this,dm,e=>{$(this,Qn).delete(e);let r=Array.from($(this,Qn).values());for(let[n,i]of $(this,ln))r.includes(n)||(ut(i.effect),$(this,ln).delete(n))});this.anchor=e,de(this,wf,r)}ensure(e,r){var n=ye,i=sm();if(r&&!$(this,Di).has(e)&&!$(this,ln).has(e))if(i){var s=document.createDocumentFragment(),a=It();s.append(a),$(this,ln).set(e,{effect:Ht(()=>r(a)),fragment:s})}else $(this,Di).set(e,Ht(()=>r(this.anchor)));if($(this,Qn).set(n,e),i){for(let[o,l]of $(this,Di))o===e?n.unskip_effect(l):n.skip_effect(l);for(let[o,l]of $(this,ln))o===e?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit($(this,yf)),n.ondiscard($(this,dm))}else re&&(this.anchor=ge),$(this,yf).call(this)}};Qn=new WeakMap,Di=new WeakMap,ln=new WeakMap,fo=new WeakMap,wf=new WeakMap,yf=new WeakMap,dm=new WeakMap;if(L){let t=function(e){if(!(e in globalThis)){let r;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(r!==void 0)return r;lM(e)},set:n=>{r=n}})}};t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}function ho(t){ke===null&&Dp("onMount"),as&&ke.l!==null?i9(ke).m.push(t):sr(()=>{let e=ze(t);if(typeof e=="function")return e})}function i9(t){var r;var e=t.l;return(r=e.u)!=null?r:e.u={a:[],b:[],m:[]}}p();p();var oD=new Map;function lD(t,e){var r=oD.get(t);r||(r=new Set,oD.set(t,r)),r.add(e)}p();p();p();p();p();p();p();p();p();function Ae(t,e,r=!1){re&&er();var n=new ps(t),i=r?65536:0;function s(a,o){if(re){let c=Np(t)===bi;if(a===c){var l=ss();Ge(l),n.anchor=l,Bt(!1),n.ensure(a,o),Bt(!0);return}}n.ensure(a,o)}rn(()=>{var a=!1;e((o,l=!0)=>{a=!0,s(l,o)}),a||s(!1,null)},i)}p();var Cde=Symbol("NaN");p();p();function cn(t,e){return e}function f9(t,e,r){var f;for(var n=[],i=e.length,s,a=e.length,o=0;o{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var h=t.outrogroups;gb(Zl(s.done)),h.delete(s),h.size===0&&(t.outrogroups=null)}}else a-=1},!1)}if(a===0){var l=n.length===0&&r!==null;if(l){var c=r,u=c.parentNode;hc(u),u.append(c),t.items.clear()}gb(e,!l)}else s={pending:new Set(e),done:new Set},((f=t.outrogroups)!=null?f:t.outrogroups=new Set).add(s)}function gb(t,e=!0){for(var r=0;r{var w=r();return is(w)?w:w==null?[]:Zl(w)}),d,h=!0;function m(){v.fallback=u,d9(v,d,a,e,n),u!==null&&(d.length===0?u.f&33554432?(u.f^=33554432,_f(u,null,a)):gf(u):Fi(u,()=>{u=null}))}var g=rn(()=>{d=R(f);var w=d.length;let b=!1;if(re){var k=Np(a)===bi;k!==(w===0)&&(a=ss(),Ge(a),Bt(!1),b=!0)}for(var x=new Set,E=ye,A=sm(),y=0;ys(a)):(u=Ht(()=>s(gc!=null?gc:gc=It())),u.f|=33554432)),w>x.size&&(L?p9(d,n):Ly("","","")),re&&w>0&&Ge(ss()),!h)if(A){for(let[P,N]of o)x.has(P)||E.skip_effect(N.e);E.oncommit(m),E.ondiscard(()=>{})}else m();b&&Bt(!0),R(f)}),v={effect:g,flags:e,items:o,outrogroups:null,fallback:u};h=!1,re&&(a=ge)}function bf(t){for(;t!==null&&!(t.f&32);)t=t.next;return t}function d9(t,e,r,n,i){var C,P,N,B,H,ce,Pe,ve,ie;var s=(n&8)!==0,a=e.length,o=t.items,l=bf(t.effect.first),c,u=null,f,d=[],h=[],m,g,v,w;if(s)for(w=0;w0){var _=n&4&&a===0?r:null;if(s){for(w=0;w{var xe,we;if(f!==void 0)for(v of f)(we=(xe=v.nodes)==null?void 0:xe.a)==null||we.apply()})}function h9(t,e,r,n,i,s,a,o){var l=a&1?a&16?nr(r):lo(r,!1,!1):null,c=a&2?nr(i):null;return L&&l&&(l.trace=()=>{var u;o()[(u=c==null?void 0:c.v)!=null?u:i]}),{v:l,i:c,e:Ht(()=>(s(e,l!=null?l:r,c!=null?c:i,o),()=>{t.delete(n)}))}}function _f(t,e,r){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end,s=e&&!(e.f&33554432)?e.nodes.start:r;n!==null;){var a=Yt(n);if(s.before(n),n===i)return;n=a}}function sa(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function p9(t,e){let r=new Map,n=t.length;for(let i=0;iperformance.now():()=>Date.now(),Jn={tick:t=>(Ip?requestAnimationFrame:Fr)(t),now:()=>m9(),tasks:new Set};function uD(){let t=Jn.now();Jn.tasks.forEach(e=>{e.c(t)||(Jn.tasks.delete(e),e.f())}),Jn.tasks.size!==0&&Jn.tick(uD)}function fD(t){let e;return Jn.tasks.size===0&&Jn.tick(uD),{promise:new Promise(r=>{Jn.tasks.add(e={c:t,f:r})}),abort(){Jn.tasks.delete(e)}}}function hm(t,e){Kn(()=>{t.dispatchEvent(new CustomEvent(e))})}function y9(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function dD(t){let e={},r=t.split(";");for(let n of r){let[i,s]=n.split(":");if(!i||s===void 0)break;let a=y9(i.trim());e[a]=s.trim()}return e}var b9=t=>t;function ei(t,e,r,n){var k,x;var i=(t&1)!==0,s=(t&2)!==0,a=i&&s,o=(t&4)!==0,l=a?"both":i?"in":"out",c,u=e.inert,f=e.style.overflow,d,h;function m(){return Kn(()=>{var E;return c!=null?c:c=r()(e,(E=n==null?void 0:n())!=null?E:{},{direction:l})})}var g={is_global:o,in(){var E;if(e.inert=u,!i){h==null||h.abort(),(E=h==null?void 0:h.reset)==null||E.call(h);return}s||d==null||d.abort(),d=vb(e,m(),h,1,()=>{hm(e,"introend"),d==null||d.abort(),d=c=void 0,e.style.overflow=f})},out(E){if(!s){E==null||E(),c=void 0;return}e.inert=!0,h=vb(e,m(),d,0,()=>{hm(e,"outroend"),E==null||E()})},stop:()=>{d==null||d.abort(),h==null||h.abort()}},v=ne;if(((x=(k=v.nodes).t)!=null?x:k.t=[]).push(g),i&&fm){var w=o;if(!w){for(var b=v.parent;b&&b.f&65536;)for(;(b=b.parent)&&!(b.f&16););w=!b||(b.f&32768)!==0}w&&Wr(()=>{ze(()=>g.in())})}}function vb(t,e,r,n,i){var s=n===1;if(My(e)){var a,o=!1;return vt(()=>{if(!o){var v=e({direction:s?"in":"out"});a=vb(t,v,r,n,i)}}),{abort:()=>{o=!0,a==null||a.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(r==null||r.deactivate(),!(e!=null&&e.duration)&&!(e!=null&&e.delay))return hm(t,s?"introstart":"outrostart"),i(),{abort:Fr,deactivate:Fr,reset:Fr,t:()=>n};let{delay:l=0,css:c,tick:u,easing:f=b9}=e;var d=[];if(s&&r===void 0&&(u&&u(0,1),c)){var h=dD(c(0,1));d.push(h,h)}var m=()=>1-n,g=t.animate(d,{duration:l,fill:"forwards"});return g.onfinish=()=>{var _;g.cancel(),hm(t,s?"introstart":"outrostart");var v=(_=r==null?void 0:r.t())!=null?_:1-n;r==null||r.abort();var w=n-v,b=e.duration*Math.abs(w),k=[];if(b>0){var x=!1;if(c)for(var E=Math.ceil(b/16.666666666666668),A=0;A<=E;A+=1){var y=v+w*f(A/E),S=dD(c(y,1-y));k.push(S),x||(x=S.overflow==="hidden")}x&&(t.style.overflow="hidden"),m=()=>{var C=g.currentTime;return v+w*f(C/b)},u&&fD(()=>{if(g.playState!=="running")return!1;var C=m();return u(C,1-C),!0})}g=t.animate(k,{duration:b,fill:"forwards"}),g.onfinish=()=>{m=()=>n,u==null||u(n,1-n),i()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=Fr)},deactivate:()=>{i=Fr},reset:()=>{n===0&&(u==null||u(1,0))},t:()=>m()}}p();p();function ti(t,e){Wr(()=>{var i;var r=t.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){let s=document.createElement("style");s.id=e.hash,s.textContent=e.code,n.appendChild(s),L&&lD(e.hash,s)}})}p();p();p();p();p();p();var pD=[...` -\r\f\xA0\v\uFEFF`];function mD(t,e,r){var n=t==null?"":""+t;if(e&&(n=n?n+" "+e:e),r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,a=0;(a=n.indexOf(i,a))>=0;){var o=a+s;(a===0||pD.includes(n[a-1]))&&(o===n.length||pD.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}p();function ft(t,e,r,n,i,s){var a=t.__className;if(re||a!==r||a===void 0){var o=mD(r,n,s);(!re||o!==t.getAttribute("class"))&&(o==null?t.removeAttribute("class"):e?t.className=o:t.setAttribute("class",o)),t.__className=r}else if(s&&i!==s)for(var l in s){var c=!!s[l];(i==null||c!==!!i[l])&&t.classList.toggle(l,c)}return s}p();p();var T9=Symbol("class"),P9=Symbol("style"),R9=Symbol("is custom element"),$9=Symbol("is html");function _e(t,e,r,n){var i=I9(t);if(re&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){n||O9(t,e,r!=null?r:"");return}i[e]!==(i[e]=r)&&(e==="loading"&&(t[JO]=r),r==null?t.removeAttribute(e):typeof r!="string"&&F9(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function I9(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[R9]:t.nodeName.includes("-"),[$9]:t.namespaceURI===ZO}}var gD=new Map;function F9(t){var e=t.getAttribute("is")||t.nodeName,r=gD.get(e);if(r)return r;gD.set(e,r=[]);for(var n,i=t,s=Element.prototype;s!==i;){n=Iy(i);for(var a in n)n[a].set&&r.push(a);i=Kl(i)}return r}function O9(t,e,r){var n;L&&(e==="srcset"&&M9(t,r)||wb((n=t.getAttribute(e))!=null?n:"",r)||pM(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(r)))}function wb(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function vD(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function M9(t,e){var r=vD(t.srcset),n=vD(e);return n.length===r.length&&n.every(([i,s],a)=>s===r[a][1]&&(wb(r[a][0],i)||wb(i,r[a][0])))}p();p();p();function _b(t,e,r=e){var n=new WeakSet;ob(t,"input",async i=>{L&&t.type==="checkbox"&&Dy();var s=i?t.defaultValue:t.value;if(s=yb(t)?bb(s):s,r(s),ye!==null&&n.add(ye),await lm(),s!==(s=e())){var a=t.selectionStart,o=t.selectionEnd,l=t.value.length;if(t.value=s!=null?s:"",o!==null){var c=t.value.length;a===o&&o===l&&c>l?(t.selectionStart=c,t.selectionEnd=c):(t.selectionStart=a,t.selectionEnd=Math.min(o,c))}}}),(re&&t.defaultValue!==t.value||ze(e)==null&&t.value)&&(r(yb(t)?bb(t.value):t.value),ye!==null&&n.add(ye)),Xt(()=>{var a;L&&t.type==="checkbox"&&Dy();var i=e();if(t===document.activeElement){var s=(a=lf)!=null?a:ye;if(n.has(s))return}yb(t)&&i===bb(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i!=null?i:"")})}function yb(t){var e=t.type;return e==="number"||e==="range"}function bb(t){return t===""?null:+t}p();p();p();p();p();function yD(t,e){return t===e||(t==null?void 0:t[Wt])===e}function it(t={},e,r,n){return Wr(()=>{var i,s;return Xt(()=>{i=s,s=(n==null?void 0:n())||[],ze(()=>{t!==r(...s)&&(e(t,...s),i&&yD(r(...i),t)&&e(null,...i))})}),()=>{vt(()=>{s&&yD(r(...s),t)&&e(null,...s)})}}),t}p();p();p();p();p();p();p();p();p();var mm=!1,Vge=Symbol();function Sb(t){var e=mm;try{return mm=!1,[t(),mm]}finally{mm=e}}function Pn(t,e,r,n){var k,x;var i=!as||(r&2)!==0,s=(r&8)!==0,a=(r&16)!==0,o=n,l=!0,c=()=>(l&&(l=!1,o=a?ze(n):n),o),u;if(s){var f=Wt in t||rf in t;u=(x=(k=Ir(t,e))==null?void 0:k.set)!=null?x:f&&e in t?E=>t[e]=E:void 0}var d,h=!1;s?[d,h]=Sb(()=>t[e]):d=t[e],d===void 0&&n!==void 0&&(d=c(),u&&(i&&oM(e),u(d)));var m;if(i?m=()=>{var E=t[e];return E===void 0?c():(l=!0,E)}:m=()=>{var E=t[e];return E!==void 0&&(o=void 0),E===void 0?o:E},i&&!(r&4))return m;if(u){var g=t.$$legacy;return function(E,A){return arguments.length>0?((!i||!A||g||h)&&u(A?m():E),E):m()}}var v=!1,w=(r&1?so:ao)(()=>(v=!1,m()));L&&(w.label=e),s&&R(w);var b=ne;return function(E,A){if(arguments.length>0){let y=A?R(w):i&&s?Ye(E):E;return se(w,y),v=!0,o!==void 0&&(o=y),E}return Tn&&v||b.f&16384?w.v:R(w)}}p();p();p();function bD(t){return new Eb(t)}var gs,Rn,Eb=class{constructor(e){me(this,gs);me(this,Rn);var s,a;var r=new Map,n=(o,l)=>{var c=lo(l,!1,!1);return r.set(o,c),c};let i=new Proxy({...e.props||{},$$events:{}},{get(o,l){var c;return R((c=r.get(l))!=null?c:n(l,Reflect.get(o,l)))},has(o,l){var c;return l===rf?!0:(R((c=r.get(l))!=null?c:n(l,Reflect.get(o,l))),Reflect.has(o,l))},set(o,l,c){var u;return se((u=r.get(l))!=null?u:n(l,c),c),Reflect.set(o,l,c)}});de(this,Rn,(e.hydrate?mb:ia)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),!tr&&(!((a=e==null?void 0:e.props)!=null&&a.$$host)||e.sync===!1)&&eo(),de(this,gs,i.$$events);for(let o of Object.keys($(this,Rn)))o==="$set"||o==="$destroy"||o==="$on"||Jt(this,o,{get(){return $(this,Rn)[o]},set(l){$(this,Rn)[o]=l},enumerable:!0});$(this,Rn).$set=o=>{Object.assign(i,o)},$(this,Rn).$destroy=()=>{hs($(this,Rn))}}$set(e){$(this,Rn).$set(e)}$on(e,r){$(this,gs)[e]=$(this,gs)[e]||[];let n=(...i)=>r.call(this,...i);return $(this,gs)[e].push(n),()=>{$(this,gs)[e]=$(this,gs)[e].filter(i=>i!==n)}}$destroy(){$(this,Rn).$destroy()}};gs=new WeakMap,Rn=new WeakMap;var X9;typeof HTMLElement=="function"&&(X9=class extends HTMLElement{constructor(e,r,n){super();qe(this,"$$ctor");qe(this,"$$s");qe(this,"$$c");qe(this,"$$cn",!1);qe(this,"$$d",{});qe(this,"$$r",!1);qe(this,"$$p_d",{});qe(this,"$$l",{});qe(this,"$$l_u",new Map);qe(this,"$$me");qe(this,"$$shadowRoot",null);this.$$ctor=e,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){let i=this.$$c.$on(e,r);this.$$l_u.set(r,i)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){let i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(i){return s=>{let a=document.createElement("slot");i!=="default"&&(a.name=i),ae(s,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let r={},n=Z9(this);for(let i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=e(i),r.default=!0):r[i]=e(i));for(let i of this.attributes){let s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=kb(s,i.value,this.$$p_d,"toProp"))}for(let i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=bD({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=cb(()=>{Xt(()=>{var i;this.$$r=!0;for(let s of $y(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];let a=kb(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1})});for(let i in this.$$l)for(let s of this.$$l[i]){let a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,r,n){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=kb(e,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return $y(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function kb(t,e,r,n){var s;let i=(s=r[t])==null?void 0:s.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Z9(t){let e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}p();p();function po(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?s(u.value):i(u.value).then(o,l)}c((n=n.apply(t,e||[])).next())})}var Pb=require("obsidian");p();var Cb=require("obsidian");p();function K9(t){let e=t-1;return e*e*e+1}var Ab=!1;function Ni(t,{delay:e=0,duration:r=400,easing:n=K9,axis:i="y"}={}){let s=getComputedStyle(t);L&&!Ab&&/(contents|inline|table)/.test(s.display)&&(Ab=!0,Promise.resolve().then(()=>Ab=!1),wM(s.display));let a=+s.opacity,o=i==="y"?"height":"width",l=parseFloat(s[o]),c=i==="y"?["top","bottom"]:["left","right"],u=c.map(w=>`${w[0].toUpperCase()}${w.slice(1)}`),f=parseFloat(s[`padding${u[0]}`]),d=parseFloat(s[`padding${u[1]}`]),h=parseFloat(s[`margin${u[0]}`]),m=parseFloat(s[`margin${u[1]}`]),g=parseFloat(s[`border${u[0]}Width`]),v=parseFloat(s[`border${u[1]}Width`]);return{delay:e,duration:r,easing:n,css:w=>`overflow: hidden;opacity: ${Math.min(w*20,1)*a};${o}: ${w*l}px;padding-${c[0]}: ${w*f}px;padding-${c[1]}: ${w*d}px;margin-${c[0]}: ${w*h}px;margin-${c[1]}: ${w*m}px;border-${c[0]}-width: ${w*g}px;border-${c[1]}-width: ${w*v}px;min-${o}: 0`}}p();var gm=require("obsidian");var Q9=fe('
'),J9=fe('
'),e7={hash:"svelte-1c0jiav",code:"main.svelte-1c0jiav .nav-file-title:where(.svelte-1c0jiav) {align-items:center;}"};function xf(t,e){at(e,!0),ti(t,e7);let r=Ye([]),n=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");sr(()=>{for(let w of r)w&&(0,gm.setIcon)(w,w.getAttr("data-icon"))});function i(w){w.stopPropagation(),ml(e.diff.path)?s(w):a(w)}function s(w){var b;w.stopPropagation();let k=e.view.app.vault.getAbstractFileByPath(e.diff.vaultPath);k instanceof gm.TFile&&((b=Bn(e.view.app,w))===null||b===void 0||b.openFile(k).catch(x=>e.view.plugin.displayError(x)))}function a(w){var b;e.view.plugin.tools.openDiff({event:w,aFile:(b=e.diff.fromPath)!==null&&b!==void 0?b:e.diff.path,aRef:`${e.diff.hash}^`,bFile:e.diff.path,bRef:e.diff.hash})}var o=J9();o.__click=i;var l=j(o),c=j(l),u=j(c,!0);G(c);var f=ee(c,2),d=j(f),h=j(d);{var m=w=>{var b=Q9();b.__click=s,it(b,k=>r[0]=k,()=>r==null?void 0:r[0]),on("auxclick",b,s),ae(w,b)};Ae(h,w=>{gl(e.diff.vaultPath,e.view.app)&&w(m)})}G(d);var g=ee(d,2),v=j(g,!0);G(g),G(f),G(l),G(o),Ne(w=>{_e(l,"data-path",e.diff.vaultPath),_e(l,"data-tooltip-position",R(n)),_e(l,"aria-label",e.diff.vaultPath),He(u,w),_e(g,"data-type",e.diff.status),He(v,e.diff.status)},[()=>vi(e.diff.vaultPath)]),on("auxclick",o,w=>{w.stopPropagation(),w.button==2?gi(e.view.app,w,e.diff.vaultPath,e.view.leaf,"git-history"):i(w)}),ae(t,o),ot()}Et(["click"]);p();var t7=fe("
"),r7=fe(''),n7=fe('
'),i7=fe("
"),s7={hash:"svelte-d9h7mp",code:"main.svelte-d9h7mp .nav-folder-title-content:where(.svelte-d9h7mp) {display:flex;align-items:center;}"};function Sf(t,e){at(e,!0),ti(t,s7);let r=Pn(e,"topLevel",3,!1),n=Pn(e,"closed",15),i=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");function s(l,c){l.stopPropagation(),n(n()[c.path]=!n()[c.path],!0)}var a=i7();let o;un(a,21,()=>e.hierarchy.children,cn,(l,c)=>{var u=ds(),f=qr(u);{var d=m=>{var g=t7(),v=j(g);xf(v,{get diff(){return R(c).data},get view(){return e.view}}),G(g),ae(m,g)},h=m=>{var g=n7();let v;var w=j(g);w.__click=S=>s(S,R(c));var b=ee(j(w),2);let k;var x=ee(b,2),E=j(x,!0);G(x),G(w);var A=ee(w,2);{var y=S=>{var _=r7(),C=j(_);Sf(C,{get hierarchy(){return R(c)},get plugin(){return e.plugin},get view(){return e.view},get closed(){return n()},set closed(P){n(P)}}),G(_),ei(3,_,()=>Ni,()=>({duration:150})),ae(S,_)};Ae(A,S=>{n()[R(c).path]||S(y)})}G(g),Ne(()=>{v=ft(g,1,"tree-item nav-folder",null,v,{"is-collapsed":n()[R(c).path]}),_e(w,"data-tooltip-position",R(i)),_e(w,"aria-label",R(c).vaultPath),k=ft(b,1,"tree-item-icon nav-folder-collapse-indicator collapse-icon",null,k,{"is-collapsed":n()[R(c).path]}),He(E,R(c).title)}),ae(m,g)};Ae(f,m=>{R(c).data?m(d):m(h,!1)})}ae(l,u)}),G(a),Ne(()=>o=ft(a,1,"svelte-d9h7mp",null,o,{topLevel:r()})),ae(t,a),ot()}Et(["click"]);var a7=fe('
'),o7=fe('
'),l7=fe('
'),c7=fe(''),u7=fe('
'),f7={hash:"svelte-1edsiy5",code:""};function Tb(t,e){at(e,!0),ti(t,f7);let r=St(()=>({title:"",path:"",vaultPath:"",children:e.plugin.gitManager.getTreeStructure(e.log.diff.files)})),n=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left"),i=Me(!0),s=Me(Ye({}));function a(S){let _=S.author.name;if(e.plugin.settings.authorInHistoryView=="full")return _;if(e.plugin.settings.authorInHistoryView=="initials")return _.split(" ").filter(P=>P.length>0).map(P=>P[0].toUpperCase()).join("")}var o=u7(),l=j(o);let c;var u=j(l);u.__click=()=>se(i,!R(i));var f=j(u);let d;var h=ee(f,2),m=j(h);{var g=S=>{var _=a7(),C=j(_,!0);G(_),Ne(P=>He(C,P),[()=>e.log.refs.join(", ")]),ae(S,_)};Ae(m,S=>{e.log.refs.length>0&&S(g)})}var v=ee(m,2);{var w=S=>{var _=o7(),C=j(_,!0);G(_),Ne(P=>He(C,P),[()=>a(e.log)]),ae(S,_)};Ae(v,S=>{var _;e.plugin.settings.authorInHistoryView!="hide"&&((_=e.log.author)!=null&&_.name)&&S(w)})}var b=ee(v,2);{var k=S=>{var _=l7(),C=j(_,!0);G(_),Ne(P=>He(C,P),[()=>(0,Cb.moment)(e.log.date).format(e.plugin.settings.commitDateFormat)]),ae(S,_)};Ae(b,S=>{e.plugin.settings.dateInHistoryView&&S(k)})}var x=ee(b,2),E=j(x,!0);G(x),G(h),G(u);var A=ee(u,2);{var y=S=>{var _=c7(),C=j(_);{var P=B=>{Sf(B,{get hierarchy(){return R(r)},get plugin(){return e.plugin},get view(){return e.view},topLevel:!0,get closed(){return R(s)},set closed(H){se(s,H,!0)}})},N=B=>{var H=ds(),ce=qr(H);un(ce,17,()=>e.log.diff.files,cn,(Pe,ve)=>{xf(Pe,{get view(){return e.view},get diff(){return R(ve)}})}),ae(B,H)};Ae(C,B=>{e.showTree?B(P):B(N,!1)})}G(_),ei(3,_,()=>Ni,()=>({duration:150})),ae(S,_)};Ae(A,S=>{R(i)||S(y)})}G(l),G(o),Ne(S=>{c=ft(l,1,"tree-item nav-folder",null,c,{"is-collapsed":R(i)}),_e(u,"aria-label",S),_e(u,"data-tooltip-position",R(n)),d=ft(f,1,"tree-item-icon nav-folder-collapse-indicator collapse-icon",null,d,{"is-collapsed":R(i)}),He(E,e.log.message)},[()=>{var S;return`${e.log.refs.length>0?e.log.refs.join(", ")+` +`)}}}function xM(t){let e=Uy.get(t);e&&(Jt(t,"message",{value:e.message}),Jt(t,"stack",{value:e.stack}))}p();p();var MV=-7169;function Le(t,e){t.f=t.f&MV|e}function tc(t){t.f&512||t.deps===null?Le(t,1024):Le(t,4096)}function SM(t){if(t!==null)for(let e of t)!(e.f&2)||!(e.f&32768)||(e.f^=32768,SM(e.deps))}function qp(t,e,r){t.f&2048?e.add(t):t.f&4096&&r.add(t),SM(t.deps),Le(t,1024)}var rc=new Set,ye=null,lf=null,Rt=null,Lr=[],zp=null,Gy=!1,Ka=!1,nc,ic,Qa,sc,cf,uf,Ja,ls,ac,Ci,jy,qy,kM,zy=class zy{constructor(){me(this,Ci);qe(this,"committed",!1);qe(this,"current",new Map);qe(this,"previous",new Map);me(this,nc,new Set);me(this,ic,new Set);me(this,Qa,0);me(this,sc,0);me(this,cf,null);me(this,uf,new Set);me(this,Ja,new Set);me(this,ls,new Map);qe(this,"is_fork",!1);me(this,ac,!1)}is_deferred(){return this.is_fork||$(this,sc)>0}skip_effect(e){$(this,ls).has(e)||$(this,ls).set(e,{d:[],m:[]})}unskip_effect(e){var r=$(this,ls).get(e);if(r){$(this,ls).delete(e);for(var n of r.d)Le(n,2048),gr(n);for(n of r.m)Le(n,4096),gr(n)}}process(e){var i;Lr=[],this.apply();var r=[],n=[];for(let s of e)wt(this,Ci,jy).call(this,s,r,n);if(this.is_deferred()){wt(this,Ci,qy).call(this,n),wt(this,Ci,qy).call(this,r);for(let[s,a]of $(this,ls))TM(s,a)}else{for(let s of $(this,nc))s();$(this,nc).clear(),$(this,Qa)===0&&wt(this,Ci,kM).call(this),lf=this,ye=null,EM(n),EM(r),lf=null,(i=$(this,cf))==null||i.resolve()}Rt=null}capture(e,r){r!==Ke&&!this.previous.has(e)&&this.previous.set(e,r),e.f&8388608||(this.current.set(e,e.v),Rt==null||Rt.set(e,e.v))}activate(){ye=this,this.apply()}deactivate(){ye===this&&(ye=null,Rt=null)}flush(){if(this.activate(),Lr.length>0){if(Wy(),ye!==null&&ye!==this)return}else $(this,Qa)===0&&this.process([]);this.deactivate()}discard(){for(let e of $(this,ic))e(this);$(this,ic).clear()}increment(e){de(this,Qa,$(this,Qa)+1),e&&de(this,sc,$(this,sc)+1)}decrement(e){de(this,Qa,$(this,Qa)-1),e&&de(this,sc,$(this,sc)-1),!$(this,ac)&&(de(this,ac,!0),vt(()=>{de(this,ac,!1),this.is_deferred()?Lr.length>0&&this.flush():this.revive()}))}revive(){for(let e of $(this,uf))$(this,Ja).delete(e),Le(e,2048),gr(e);for(let e of $(this,Ja))Le(e,4096),gr(e);this.flush()}oncommit(e){$(this,nc).add(e)}ondiscard(e){$(this,ic).add(e)}settled(){var e;return((e=$(this,cf))!=null?e:de(this,cf,Op())).promise}static ensure(){if(ye===null){let e=ye=new zy;rc.add(ye),Ka||vt(()=>{ye===e&&e.flush()})}return ye}apply(){if(!(!tr||!this.is_fork&&rc.size===1)){Rt=new Map(this.current);for(let e of rc)if(e!==this)for(let[r,n]of e.previous)Rt.has(r)||Rt.set(r,n)}}};nc=new WeakMap,ic=new WeakMap,Qa=new WeakMap,sc=new WeakMap,cf=new WeakMap,uf=new WeakMap,Ja=new WeakMap,ls=new WeakMap,ac=new WeakMap,Ci=new WeakSet,jy=function(e,r,n){var d;e.f^=1024;for(var i=e.first,s=null;i!==null;){var a=i.f,o=(a&96)!==0,l=o&&(a&1024)!==0,c=l||(a&8192)!==0||$(this,ls).has(i);if(tr&&s===null&&a&128&&(d=i.b)!=null&&d.is_pending&&(s=i),!c&&i.fn!==null){o?i.f^=1024:s!==null&&a&16777228?s.b.defer_effect(i):a&4?r.push(i):tr&&a&16777224?n.push(i):ta(i)&&(a&16&&$(this,Ja).add(i),ea(i));var u=i.first;if(u!==null){i=u;continue}}var f=i.parent;for(i=i.next;i===null&&f!==null;)f===s&&(s=null),i=f.next,f=f.parent}},qy=function(e){for(var r=0;r1){this.previous.clear();var e=Rt,r=!0;for(let s of rc){if(s===this){r=!1;continue}let a=[];for(let[l,c]of this.current){if(s.current.has(l))if(r&&c!==s.current.get(l))s.current.set(l,c);else continue;a.push(l)}if(a.length===0)continue;let o=[...s.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){var n=Lr;Lr=[];let l=new Set,c=new Map;for(let u of a)AM(u,o,l,c);if(Lr.length>0){ye=s,s.apply();for(let u of Lr)wt(i=s,Ci,jy).call(i,u,[],[]);s.deactivate()}Lr=n}}ye=null,Rt=e}this.committed=!0,rc.delete(this)};var Br=zy;function eo(t){var e=Ka;Ka=!0;try{var r;for(t&&(ye!==null&&Wy(),r=t());;){if(_M(),Lr.length===0&&(ye==null||ye.flush(),Lr.length===0))return zp=null,r;Wy()}}finally{Ka=e}}function Wy(){var s;Gy=!0;var t=L?new Set:null;try{for(var e=0;Lr.length>0;){var r=Br.ensure();if(e++>1e3){if(L){var n=new Map;for(let a of r.current.keys())for(let[o,l]of(s=a.updated)!=null?s:[]){var i=n.get(o);i||(i={error:l.error,count:0},n.set(o,i)),i.count+=l.count}for(let a of n.values())a.error&&console.error(a.error)}LV()}if(r.process(Lr),Ti.clear(),L)for(let a of r.current.keys())t.add(a)}}finally{if(Lr=[],Gy=!1,zp=null,L)for(let a of t)a.updated=null}}function LV(){try{sM()}catch(t){L&&Jt(t,"stack",{value:""}),Ai(t,zp)}}var Dr=null;function EM(t){var e=t.length;if(e!==0){for(var r=0;r0)){Ti.clear();for(let i of Dr){if(i.f&24576)continue;let s=[i],a=i.parent;for(;a!==null;)Dr.has(a)&&(Dr.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){let l=s[o];l.f&24576||ea(l)}}Dr.clear()}}Dr=null}}function AM(t,e,r,n){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(let i of t.reactions){let s=i.f;s&2?AM(i,e,r,n):s&4194320&&!(s&2048)&&CM(i,e,n)&&(Le(i,2048),gr(i))}}function CM(t,e,r){let n=r.get(t);if(n!==void 0)return n;if(t.deps!==null)for(let i of t.deps){if(qn.call(e,i))return!0;if(i.f&2&&CM(i,e,r))return r.set(i,!0),!0}return r.set(t,!1),!1}function gr(t){for(var e=zp=t;e.parent!==null;){e=e.parent;var r=e.f;if(Gy&&e===ne&&r&16&&!(r&262144))return;if(r&96){if(!(r&1024))return;e.f^=1024}}Lr.push(e)}function TM(t,e){if(!(t.f&32&&t.f&1024)){t.f&2048?e.d.push(t):t.f&4096&&e.m.push(t),Le(t,1024);for(var r=t.first;r!==null;)TM(r,e),r=r.next}}p();p();p();function RM(t){let e=0,r=nr(0),n;return L&&Mr(r,"createSubscriber version"),()=>{Js()&&(R(r),Xt(()=>(e===0&&(n=ze(()=>t(()=>to(r)))),e+=1,()=>{vt(()=>{e-=1,e===0&&(n==null||n(),n=void 0,to(r))})})))}}var BV=589952;function Ky(t,e,r){new Yy(t,e,r)}var tn,ff,Pi,ro,Ri,Cn,Ur,$i,cs,ra,no,us,uc,io,fc,dc,Ii,Kp,xt,$M,IM,Xy,Xp,Zp,Zy,Yy=class{constructor(e,r,n){me(this,xt);qe(this,"parent");qe(this,"is_pending",!1);me(this,tn);me(this,ff,re?ge:null);me(this,Pi);me(this,ro);me(this,Ri);me(this,Cn,null);me(this,Ur,null);me(this,$i,null);me(this,cs,null);me(this,ra,null);me(this,no,0);me(this,us,0);me(this,uc,!1);me(this,io,!1);me(this,fc,new Set);me(this,dc,new Set);me(this,Ii,null);me(this,Kp,RM(()=>(de(this,Ii,nr($(this,no))),L&&Mr($(this,Ii),"$effect.pending()"),()=>{de(this,Ii,null)})));de(this,tn,e),de(this,Pi,r),de(this,ro,n),this.parent=ne.b,this.is_pending=!!$(this,Pi).pending,de(this,Ri,rn(()=>{if(ne.b=this,re){let s=$(this,ff);er(),s.nodeType===Or&&s.data===bi?wt(this,xt,IM).call(this):(wt(this,xt,$M).call(this),$(this,us)===0&&(this.is_pending=!1))}else{var i=wt(this,xt,Xy).call(this);try{de(this,Cn,Ht(()=>n(i)))}catch(s){this.error(s)}$(this,us)>0?wt(this,xt,Zp).call(this):this.is_pending=!1}return()=>{var s;(s=$(this,ra))==null||s.remove()}},BV)),re&&de(this,tn,ge)}defer_effect(e){qp(e,$(this,fc),$(this,dc))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!$(this,Pi).pending}update_pending_count(e){wt(this,xt,Zy).call(this,e),de(this,no,$(this,no)+e),!(!$(this,Ii)||$(this,uc))&&(de(this,uc,!0),vt(()=>{de(this,uc,!1),$(this,Ii)&&Zn($(this,Ii),$(this,no))}))}get_effect_pending(){return $(this,Kp).call(this),R($(this,Ii))}error(e){var r=$(this,Pi).onerror;let n=$(this,Pi).failed;if($(this,io)||!r&&!n)throw e;$(this,Cn)&&(ut($(this,Cn)),de(this,Cn,null)),$(this,Ur)&&(ut($(this,Ur)),de(this,Ur,null)),$(this,$i)&&(ut($(this,$i)),de(this,$i,null)),re&&(Ge($(this,ff)),Xa(),Ge(ss()));var i=!1,s=!1;let a=()=>{if(i){vM();return}i=!0,s&&dM(),Br.ensure(),de(this,no,0),$(this,$i)!==null&&Fi($(this,$i),()=>{de(this,$i,null)}),this.is_pending=this.has_pending_snippet(),de(this,Cn,wt(this,xt,Xp).call(this,()=>(de(this,io,!1),Ht(()=>$(this,ro).call(this,$(this,tn)))))),$(this,us)>0?wt(this,xt,Zp).call(this):this.is_pending=!1};vt(()=>{try{s=!0,r==null||r(e,a),s=!1}catch(o){Ai(o,$(this,Ri)&&$(this,Ri).parent)}n&&de(this,$i,wt(this,xt,Xp).call(this,()=>{Br.ensure(),de(this,io,!0);try{return Ht(()=>{n($(this,tn),()=>e,()=>a)})}catch(o){return Ai(o,$(this,Ri).parent),null}finally{de(this,io,!1)}}))})}};tn=new WeakMap,ff=new WeakMap,Pi=new WeakMap,ro=new WeakMap,Ri=new WeakMap,Cn=new WeakMap,Ur=new WeakMap,$i=new WeakMap,cs=new WeakMap,ra=new WeakMap,no=new WeakMap,us=new WeakMap,uc=new WeakMap,io=new WeakMap,fc=new WeakMap,dc=new WeakMap,Ii=new WeakMap,Kp=new WeakMap,xt=new WeakSet,$M=function(){try{de(this,Cn,Ht(()=>$(this,ro).call(this,$(this,tn))))}catch(e){this.error(e)}},IM=function(){let e=$(this,Pi).pending;e&&(de(this,Ur,Ht(()=>e($(this,tn)))),vt(()=>{var r=wt(this,xt,Xy).call(this);de(this,Cn,wt(this,xt,Xp).call(this,()=>(Br.ensure(),Ht(()=>$(this,ro).call(this,r))))),$(this,us)>0?wt(this,xt,Zp).call(this):(Fi($(this,Ur),()=>{de(this,Ur,null)}),this.is_pending=!1)}))},Xy=function(){var e=$(this,tn);return this.is_pending&&(de(this,ra,It()),$(this,tn).before($(this,ra)),e=$(this,ra)),e},Xp=function(e){var r=ne,n=le,i=ke;Ut($(this,Ri)),$t($(this,Ri)),os($(this,Ri).ctx);try{return e()}catch(s){return jp(s),null}finally{Ut(r),$t(n),os(i)}},Zp=function(){let e=$(this,Pi).pending;$(this,Cn)!==null&&(de(this,cs,document.createDocumentFragment()),$(this,cs).append($(this,ra)),Qp($(this,Cn),$(this,cs))),$(this,Ur)===null&&de(this,Ur,Ht(()=>e($(this,tn))))},Zy=function(e){var r;if(!this.has_pending_snippet()){this.parent&&wt(r=this.parent,xt,Zy).call(r,e);return}if(de(this,us,$(this,us)+e),$(this,us)===0){this.is_pending=!1;for(let n of $(this,fc))Le(n,2048),gr(n);for(let n of $(this,dc))Le(n,4096),gr(n);$(this,fc).clear(),$(this,dc).clear(),$(this,Ur)&&Fi($(this,Ur),()=>{de(this,Ur,null)}),$(this,cs)&&($(this,tn).before($(this,cs)),de(this,cs,null))}};p();function Jp(t,e,r,n){let i=Ei()?so:ao;var s=t.filter(d=>!d.settled);if(r.length===0&&s.length===0){n(e.map(i));return}var a=ye,o=ne,l=FM(),c=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function u(d){l();try{n(d)}catch(h){o.f&16384||Ai(h,o)}a==null||a.deactivate(),df()}if(r.length===0){c.then(()=>u(e.map(i)));return}function f(){l(),Promise.all(r.map(d=>Jy(d))).then(d=>u([...e.map(i),...d])).catch(d=>Ai(d,o))}c?c.then(f):f()}function FM(){var t=ne,e=le,r=ke,n=ye;if(L)var i=Si;return function(a=!0){Ut(t),$t(e),os(r),a&&(n==null||n.activate()),L&&(Qy(null),Jl(i))}}function df(){Ut(null),$t(null),os(null),L&&(Qy(null),Jl(null))}var hf=null;function Qy(t){hf=t}var pf=new Set;function so(t){var e=2050,r=le!==null&&le.f&2?le:null;ne!==null&&(ne.f|=524288);let n={ctx:ke,deps:null,effects:null,equals:Bp,f:e,fn:t,reactions:null,rv:0,v:Ke,wv:0,parent:r!=null?r:ne,ac:null};return L&&Wn&&(n.created=xi("created at")),n}function Jy(t,e,r){let n=ne;n===null&&eM();var i=n.b,s=void 0,a=nr(Ke);L&&(a.label=e);var o=!le,l=new Map;return OM(()=>{var h;L&&(hf=ne);var c=Op();s=c.promise;try{Promise.resolve(t()).then(c.resolve,c.reject).then(()=>{u===ye&&u.committed&&u.deactivate(),df()})}catch(m){c.reject(m),df()}L&&(hf=null);var u=ye;if(o){var f=i.is_rendered();i.update_pending_count(1),u.increment(f),(h=l.get(u))==null||h.reject(_i),l.delete(u),l.set(u,c)}let d=(m,g=void 0)=>{if(hf=null,u.activate(),g)g!==_i&&(a.f|=8388608,Zn(a,g));else{a.f&8388608&&(a.f^=8388608),Zn(a,m);for(let[v,w]of l){if(l.delete(v),v===u)break;w.reject(_i)}L&&r!==void 0&&(pf.add(a),setTimeout(()=>{pf.has(a)&&(hM(a.label,r),pf.delete(a))}))}o&&(i.update_pending_count(-1),u.decrement(f))};c.promise.then(d,m=>d(null,m||"unknown"))}),ir(()=>{for(let c of l.values())c.reject(_i)}),L&&(a.f|=4194304),new Promise(c=>{function u(f){function d(){f===s?c(a):u(s)}f.then(d,d)}u(s)})}function St(t){let e=so(t);return tr||rm(e),e}function ao(t){let e=so(t);return e.equals=Hp,e}function em(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r5){let l=xi("updated at");if(l!==null){let c=t.updated.get(l.stack);c||(c={error:l,count:0},t.updated.set(l.stack,c)),c.count++}}}ne!==null&&(t.set_during_effect=!0)}if(t.f&2){let o=t;t.f&2048&&mf(o),tc(o)}t.wv=cc(),DM(t,2048),Ei()&&ne!==null&&ne.f&1024&&!(ne.f&96)&&(sn===null?LM([t]):sn.push(t)),!n.is_fork&&oo.size>0&&!rb&&Yp()}return e}function Yp(){rb=!1;for(let t of oo)t.f&1024&&Le(t,4096),ta(t)&&ea(t);oo.clear()}function to(t){se(t,t.v+1)}function DM(t,e){var u;var r=t.reactions;if(r!==null)for(var n=Ei(),i=r.length,s=0;s{if(na===a)return f();var d=le,h=na;$t(null),nb(a);var m=f();return $t(d),nb(h),m};n&&(r.set("length",Me(t.length,s)),L&&(t=WV(t)));var l="";let c=!1;function u(f){if(!c){c=!0,l=f,Mr(i,`${l} version`);for(let[d,h]of r)Mr(h,co(l,d));c=!1}}return new Proxy(t,{defineProperty(f,d,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&cM();var m=r.get(d);return m===void 0?m=o(()=>{var g=Me(h.value,s);return r.set(d,g),L&&typeof d=="string"&&Mr(g,co(l,d)),g}):se(m,h.value,!0),!0},deleteProperty(f,d){var h=r.get(d);if(h===void 0){if(d in f){let m=o(()=>Me(Ke,s));r.set(d,m),to(i),L&&Mr(m,co(l,d))}}else se(h,Ke),to(i);return!0},get(f,d,h){var w;if(d===Wt)return t;if(L&&d===Mp)return u;var m=r.get(d),g=d in f;if(m===void 0&&(!g||(w=Ir(f,d))!=null&&w.writable)&&(m=o(()=>{var b=Ye(g?f[d]:Ke),k=Me(b,s);return L&&Mr(k,co(l,d)),k}),r.set(d,m)),m!==void 0){var v=R(m);return v===Ke?void 0:v}return Reflect.get(f,d,h)},getOwnPropertyDescriptor(f,d){var h=Reflect.getOwnPropertyDescriptor(f,d);if(h&&"value"in h){var m=r.get(d);m&&(h.value=R(m))}else if(h===void 0){var g=r.get(d),v=g==null?void 0:g.v;if(g!==void 0&&v!==Ke)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return h},has(f,d){var v;if(d===Wt)return!0;var h=r.get(d),m=h!==void 0&&h.v!==Ke||Reflect.has(f,d);if(h!==void 0||ne!==null&&(!m||(v=Ir(f,d))!=null&&v.writable)){h===void 0&&(h=o(()=>{var w=m?Ye(f[d]):Ke,b=Me(w,s);return L&&Mr(b,co(l,d)),b}),r.set(d,h));var g=R(h);if(g===Ke)return!1}return m},set(f,d,h,m){var y;var g=r.get(d),v=d in f;if(n&&d==="length")for(var w=h;wMe(Ke,s)),r.set(w+"",b),L&&Mr(b,co(l,w)))}if(g===void 0)(!v||(y=Ir(f,d))!=null&&y.writable)&&(g=o(()=>Me(void 0,s)),L&&Mr(g,co(l,d)),se(g,Ye(h)),r.set(d,g));else{v=g.v!==Ke;var k=o(()=>Ye(h));se(g,k)}var x=Reflect.getOwnPropertyDescriptor(f,d);if(x!=null&&x.set&&x.set.call(m,h),!v){if(n&&typeof d=="string"){var E=r.get("length"),A=Number(d);Number.isInteger(A)&&A>=E.v&&se(E,A+1)}to(i)}return!0},ownKeys(f){R(i);var d=Reflect.ownKeys(f).filter(g=>{var v=r.get(g);return v===void 0||v.v!==Ke});for(var[h,m]of r)m.v!==Ke&&!(h in f)&&d.push(h);return d},setPrototypeOf(){uM()}})}function co(t,e){var r;return typeof e=="symbol"?`${t}[Symbol(${(r=e.description)!=null?r:""})]`:jV.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function nm(t){try{if(t!==null&&typeof t=="object"&&Wt in t)return t[Wt]}catch(e){}return t}var qV=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);function WV(t){return new Proxy(t,{get(e,r,n){var i=Reflect.get(e,r,n);return qV.has(r)?function(...s){MM();var a=i.apply(this,s);return Yp(),a}:i}})}function NM(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:r,lastIndexOf:n,includes:i}=t;t.indexOf=function(s,a){let o=r.call(this,s,a);if(o===-1){for(let l=a!=null?a:0;l{t.indexOf=r,t.lastIndexOf=n,t.includes=i}}var ib,BM,sf,HM,UM;function im(){if(ib===void 0){ib=window,BM=document,sf=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;HM=Ir(e,"firstChild").get,UM=Ir(e,"nextSibling").get,Oy(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Oy(r)&&(r.__t=void 0),L&&(t.__svelte_meta=null,NM())}}function It(t=""){return document.createTextNode(t)}function Zt(t){return HM.call(t)}function Yt(t){return UM.call(t)}function j(t,e){if(!re)return Zt(t);var r=Zt(ge);if(r===null)r=ge.appendChild(It());else if(e&&r.nodeType!==Ql){var n=It();return r==null||r.before(n),Ge(n),n}return e&&am(r),Ge(r),r}function qr(t,e=!1){var i,s;if(!re){var r=Zt(t);return r instanceof Comment&&r.data===""?Yt(r):r}if(e){if(((i=ge)==null?void 0:i.nodeType)!==Ql){var n=It();return(s=ge)==null||s.before(n),Ge(n),n}am(ge)}return ge}function ee(t,e=1,r=!1){let n=re?ge:t;for(var i;e--;)i=n,n=Yt(n);if(!re)return n;if(r){if((n==null?void 0:n.nodeType)!==Ql){var s=It();return n===null?i==null||i.after(s):n.before(s),Ge(s),s}am(n)}return Ge(n),n}function hc(t){t.textContent=""}function sm(){if(!tr||Dr!==null)return!1;var t=ne.f;return(t&32768)!==0}function am(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===Ql;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}p();p();function sb(t){re&&Zt(t)!==null&&hc(t)}var GM=!1;function ab(){GM||(GM=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(let r of t.target.elements)(e=r.__on_r)==null||e.call(r)})},{capture:!0}))}function Kn(t){var e=le,r=ne;$t(null),Ut(null);try{return t()}finally{$t(e),Ut(r)}}function ob(t,e,r,n=r){t.addEventListener(e,()=>Kn(r));let i=t.__on_r;i?t.__on_r=()=>{i(),n(!0)}:t.__on_r=()=>n(!0),ab()}function jM(t){ne===null&&(le===null&&iM(t),nM()),Tn&&rM(t)}function VV(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function Oi(t,e,r){var o;var n=ne;if(L)for(;n!==null&&n.f&131072;)n=n.parent;n!==null&&n.f&8192&&(t|=8192);var i={ctx:ke,deps:null,nodes:null,f:t|2048|512,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};if(L&&(i.component_function=zn),r)try{ea(i),i.f|=32768}catch(l){throw ut(i),l}else e!==null&&gr(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&524288)&&(s=s.first,t&16&&t&65536&&s!==null&&(s.f|=65536)),s!==null&&(s.parent=n,n!==null&&VV(s,n),le!==null&&le.f&2&&!(t&64))){var a=le;((o=a.effects)!=null?o:a.effects=[]).push(s)}return i}function Js(){return le!==null&&!jr}function ir(t){let e=Oi(8,null,!1);return Le(e,1024),e.teardown=t,e}function sr(t){var i;jM("$effect"),L&&Jt(t,"name",{value:"$effect"});var e=ne.f,r=!le&&(e&32)!==0&&(e&32768)===0;if(r){var n=ke;((i=n.e)!=null?i:n.e=[]).push(t)}else return Hy(t)}function Hy(t){return Oi(1048580,t,!1)}function cb(t){Br.ensure();let e=Oi(524352,t,!0);return()=>{ut(e)}}function qM(t){Br.ensure();let e=Oi(524352,t,!0);return(r={})=>new Promise(n=>{r.outro?Fi(e,()=>{ut(e),n(void 0)}):(ut(e),n(void 0))})}function Wr(t){return Oi(4,t,!1)}function OM(t){return Oi(4718592,t,!0)}function Xt(t,e=0){return Oi(8|e,t,!0)}function Ne(t,e=[],r=[],n=[]){Jp(n,e,r,i=>{Oi(8,()=>t(...i.map(R)),!0)})}function rn(t,e=0){var r=Oi(16|e,t,!0);return L&&(r.dev_stack=Si),r}function Ht(t){return Oi(524320,t,!0)}function ub(t){var e=t.teardown;if(e!==null){let r=Tn,n=le;lb(!0),$t(null);try{e.call(null)}finally{lb(r),$t(n)}}}function fb(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){let i=r.ac;i!==null&&Kn(()=>{i.abort(_i)});var n=r.next;r.f&64?r.parent=null:ut(r,e),r=n}}function WM(t){for(var e=t.first;e!==null;){var r=e.next;e.f&32||ut(e),e=r}}function ut(t,e=!0){var r=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(zM(t.nodes.start,t.nodes.end),r=!0),fb(t,e&&!r),vf(t,0),Le(t,16384);var n=t.nodes&&t.nodes.t;if(n!==null)for(let s of n)s.stop();ub(t);var i=t.parent;i!==null&&i.first!==null&&Vy(t),L&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=null}function zM(t,e){for(;t!==null;){var r=t===e?null:Yt(t);t.remove(),t=r}}function Vy(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Fi(t,e,r=!0){var n=[];VM(t,n,!0);var i=()=>{r&&ut(t),e&&e()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function VM(t,e,r){if(!(t.f&8192)){t.f^=8192;var n=t.nodes&&t.nodes.t;if(n!==null)for(let o of n)(o.is_global||r)&&e.push(o);for(var i=t.first;i!==null;){var s=i.next,a=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;VM(i,e,a?r:!1),i=s}}}function gf(t){YM(t,!0)}function YM(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(Le(t,2048),gr(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;YM(r,i?e:!1),r=n}var s=t.nodes&&t.nodes.t;if(s!==null)for(let a of s)(a.is_global||e)&&a.in()}}function Qp(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var i=r===n?null:Yt(r);e.append(r),r=i}}p();var XM=null;var om=!1,Tn=!1;function lb(t){Tn=t}var le=null,jr=!1;function $t(t){le=t}var ne=null;function Ut(t){ne=t}var nn=null;function rm(t){le!==null&&(!tr||le.f&2)&&(nn===null?nn=[t]:nn.push(t))}var zr=null,an=0,sn=null;function LM(t){sn=t}var ZM=1,uo=0,na=uo;function nb(t){na=t}function cc(){return++ZM}function ta(t){var e=t.f;if(e&2048)return!0;if(e&2&&(t.f&=-32769),e&4096){for(var r=t.deps,n=r.length,i=0;it.wv)return!0}e&512&&Rt===null&&Le(t,1024)}return!1}function KM(t,e,r=!0){var n=t.reactions;if(n!==null&&!(!tr&&nn!==null&&qn.call(nn,t)))for(var i=0;i{t.ac.abort(_i)}),t.ac=null);try{t.f|=2097152;var u=t.fn,f=u(),d=t.deps,h=(g=ye)==null?void 0:g.is_fork;if(zr!==null){var m;if(h||vf(t,an),d!==null&&an>0)for(d.length=an+zr.length,m=0;m{requestAnimationFrame(()=>t()),setTimeout(()=>t())});await Promise.resolve(),eo()}function R(t){var h,m,g;var e=t.f,r=(e&2)!==0;if((h=XM)==null||h.add(t),le!==null&&!jr){var n=ne!==null&&(ne.f&16384)!==0;if(!n&&(nn===null||!qn.call(nn,t))){var i=le.deps;if(le.f&2097152)t.rvr==null?void 0:r.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?vt(()=>{e.addEventListener(t,i,n)}):e.addEventListener(t,i,n),i}function on(t,e,r,n,i){var s={capture:n,passive:i},a=tD(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ir(()=>{e.removeEventListener(t,a,s)})}function Et(t){for(var e=0;e{throw w});throw d}}finally{t.__root=e,delete t.currentTarget,$t(u),Ut(f)}}}p();p();function um(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("",""),e.content}function Mi(t,e){var r=ne;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function fe(t,e){var r=(e&1)!==0,n=(e&2)!==0,i,s=!t.startsWith("");return()=>{if(re)return Mi(ge,null),ge;i===void 0&&(i=um(s?t:""+t),r||(i=Zt(i)));var a=n||sf?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=Zt(a),l=a.lastChild;Mi(o,l)}else Mi(a,a);return a}}function ds(){if(re)return Mi(ge,null),ge;var t=document.createDocumentFragment(),e=document.createComment(""),r=It();return t.append(e,r),Mi(e,r),t}function ae(t,e){if(re){var r=ne;(!(r.f&32768)||r.nodes.end===null)&&(r.nodes.end=ge),er();return}t!==null&&t.before(e)}p();var JV=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var Tce=[...JV,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var e9=["touchstart","touchmove"];function nD(t){return e9.includes(t)}var t9=["$state","$state.raw","$derived","$derived.by"],Pce=[...t9,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var fm=!0;function He(t,e){var n;var r=e==null?"":typeof e=="object"?e+"":e;r!==((n=t.__t)!=null?n:t.__t=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function ia(t,e){return iD(t,e)}function mb(t,e){var a;im(),e.intro=(a=e.intro)!=null?a:!1;let r=e.target,n=re,i=ge;try{for(var s=Zt(r);s&&(s.nodeType!==Or||s.data!==tf);)s=Yt(s);if(!s)throw ns;Bt(!0),Ge(s);let o=iD(t,{...e,anchor:s});return Bt(!1),o}catch(o){if(o instanceof Error&&o.message.split(` +`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==ns&&console.warn("水合失败:",o),e.recover===!1&&aM(),im(),hc(r),Bt(!1),ia(t,e)}finally{Bt(n),Ge(i)}}var mc=new Map;function iD(t,{target:e,anchor:r,props:n={},events:i,context:s,intro:a=!0}){im();var o=new Set,l=f=>{for(var d=0;d{var f=r!=null?r:e.appendChild(It());return Ky(f,{pending:()=>{}},d=>{at({});var h=ke;if(s&&(h.c=s),i&&(n.$$events=i),re&&Mi(d,null),fm=a,c=t(d,n)||{},fm=!0,re&&(ne.nodes.end=ge,ge===null||ge.nodeType!==Or||ge.data!==Va))throw Ya(),ns;ot()}),()=>{var m;for(var d of o){e.removeEventListener(d,pc);var h=mc.get(d);--h===0?(document.removeEventListener(d,pc),mc.delete(d)):mc.set(d,h)}cm.delete(l),f!==r&&((m=f.parentNode)==null||m.removeChild(f))}});return pb.set(c,u),c}var pb=new WeakMap;function hs(t,e){let r=pb.get(t);return r?(pb.delete(t),r(e)):(L&&(Wt in t?gM():mM()),Promise.resolve())}p();p();p();var Qn,Di,ln,fo,wf,yf,dm,ps=class{constructor(e,r=!0){qe(this,"anchor");me(this,Qn,new Map);me(this,Di,new Map);me(this,ln,new Map);me(this,fo,new Set);me(this,wf,!0);me(this,yf,()=>{var e=ye;if($(this,Qn).has(e)){var r=$(this,Qn).get(e),n=$(this,Di).get(r);if(n)gf(n),$(this,fo).delete(r);else{var i=$(this,ln).get(r);i&&($(this,Di).set(r,i.effect),$(this,ln).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(let[s,a]of $(this,Qn)){if($(this,Qn).delete(s),s===e)break;let o=$(this,ln).get(a);o&&(ut(o.effect),$(this,ln).delete(a))}for(let[s,a]of $(this,Di)){if(s===r||$(this,fo).has(s))continue;let o=()=>{if(Array.from($(this,Qn).values()).includes(s)){var c=document.createDocumentFragment();Qp(a,c),c.append(It()),$(this,ln).set(s,{effect:a,fragment:c})}else ut(a);$(this,fo).delete(s),$(this,Di).delete(s)};$(this,wf)||!n?($(this,fo).add(s),Fi(a,o,!1)):o()}}});me(this,dm,e=>{$(this,Qn).delete(e);let r=Array.from($(this,Qn).values());for(let[n,i]of $(this,ln))r.includes(n)||(ut(i.effect),$(this,ln).delete(n))});this.anchor=e,de(this,wf,r)}ensure(e,r){var n=ye,i=sm();if(r&&!$(this,Di).has(e)&&!$(this,ln).has(e))if(i){var s=document.createDocumentFragment(),a=It();s.append(a),$(this,ln).set(e,{effect:Ht(()=>r(a)),fragment:s})}else $(this,Di).set(e,Ht(()=>r(this.anchor)));if($(this,Qn).set(n,e),i){for(let[o,l]of $(this,Di))o===e?n.unskip_effect(l):n.skip_effect(l);for(let[o,l]of $(this,ln))o===e?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit($(this,yf)),n.ondiscard($(this,dm))}else re&&(this.anchor=ge),$(this,yf).call(this)}};Qn=new WeakMap,Di=new WeakMap,ln=new WeakMap,fo=new WeakMap,wf=new WeakMap,yf=new WeakMap,dm=new WeakMap;if(L){let t=function(e){if(!(e in globalThis)){let r;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(r!==void 0)return r;lM(e)},set:n=>{r=n}})}};t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}function ho(t){ke===null&&Dp("onMount"),as&&ke.l!==null?i9(ke).m.push(t):sr(()=>{let e=ze(t);if(typeof e=="function")return e})}function i9(t){var r;var e=t.l;return(r=e.u)!=null?r:e.u={a:[],b:[],m:[]}}p();p();var oD=new Map;function lD(t,e){var r=oD.get(t);r||(r=new Set,oD.set(t,r)),r.add(e)}p();p();p();p();p();p();p();p();p();function Ae(t,e,r=!1){re&&er();var n=new ps(t),i=r?65536:0;function s(a,o){if(re){let c=Np(t)===bi;if(a===c){var l=ss();Ge(l),n.anchor=l,Bt(!1),n.ensure(a,o),Bt(!0);return}}n.ensure(a,o)}rn(()=>{var a=!1;e((o,l=!0)=>{a=!0,s(l,o)}),a||s(!1,null)},i)}p();var Cde=Symbol("NaN");p();p();function cn(t,e){return e}function f9(t,e,r){var f;for(var n=[],i=e.length,s,a=e.length,o=0;o{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var h=t.outrogroups;gb(Zl(s.done)),h.delete(s),h.size===0&&(t.outrogroups=null)}}else a-=1},!1)}if(a===0){var l=n.length===0&&r!==null;if(l){var c=r,u=c.parentNode;hc(u),u.append(c),t.items.clear()}gb(e,!l)}else s={pending:new Set(e),done:new Set},((f=t.outrogroups)!=null?f:t.outrogroups=new Set).add(s)}function gb(t,e=!0){for(var r=0;r{var w=r();return is(w)?w:w==null?[]:Zl(w)}),d,h=!0;function m(){v.fallback=u,d9(v,d,a,e,n),u!==null&&(d.length===0?u.f&33554432?(u.f^=33554432,_f(u,null,a)):gf(u):Fi(u,()=>{u=null}))}var g=rn(()=>{d=R(f);var w=d.length;let b=!1;if(re){var k=Np(a)===bi;k!==(w===0)&&(a=ss(),Ge(a),Bt(!1),b=!0)}for(var x=new Set,E=ye,A=sm(),y=0;ys(a)):(u=Ht(()=>s(gc!=null?gc:gc=It())),u.f|=33554432)),w>x.size&&(L?p9(d,n):Ly("","","")),re&&w>0&&Ge(ss()),!h)if(A){for(let[P,N]of o)x.has(P)||E.skip_effect(N.e);E.oncommit(m),E.ondiscard(()=>{})}else m();b&&Bt(!0),R(f)}),v={effect:g,flags:e,items:o,outrogroups:null,fallback:u};h=!1,re&&(a=ge)}function bf(t){for(;t!==null&&!(t.f&32);)t=t.next;return t}function d9(t,e,r,n,i){var C,P,N,B,H,ce,Pe,ve,ie;var s=(n&8)!==0,a=e.length,o=t.items,l=bf(t.effect.first),c,u=null,f,d=[],h=[],m,g,v,w;if(s)for(w=0;w0){var _=n&4&&a===0?r:null;if(s){for(w=0;w{var xe,we;if(f!==void 0)for(v of f)(we=(xe=v.nodes)==null?void 0:xe.a)==null||we.apply()})}function h9(t,e,r,n,i,s,a,o){var l=a&1?a&16?nr(r):lo(r,!1,!1):null,c=a&2?nr(i):null;return L&&l&&(l.trace=()=>{var u;o()[(u=c==null?void 0:c.v)!=null?u:i]}),{v:l,i:c,e:Ht(()=>(s(e,l!=null?l:r,c!=null?c:i,o),()=>{t.delete(n)}))}}function _f(t,e,r){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end,s=e&&!(e.f&33554432)?e.nodes.start:r;n!==null;){var a=Yt(n);if(s.before(n),n===i)return;n=a}}function sa(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function p9(t,e){let r=new Map,n=t.length;for(let i=0;iperformance.now():()=>Date.now(),Jn={tick:t=>(Ip?requestAnimationFrame:Fr)(t),now:()=>m9(),tasks:new Set};function uD(){let t=Jn.now();Jn.tasks.forEach(e=>{e.c(t)||(Jn.tasks.delete(e),e.f())}),Jn.tasks.size!==0&&Jn.tick(uD)}function fD(t){let e;return Jn.tasks.size===0&&Jn.tick(uD),{promise:new Promise(r=>{Jn.tasks.add(e={c:t,f:r})}),abort(){Jn.tasks.delete(e)}}}function hm(t,e){Kn(()=>{t.dispatchEvent(new CustomEvent(e))})}function y9(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function dD(t){let e={},r=t.split(";");for(let n of r){let[i,s]=n.split(":");if(!i||s===void 0)break;let a=y9(i.trim());e[a]=s.trim()}return e}var b9=t=>t;function ei(t,e,r,n){var k,x;var i=(t&1)!==0,s=(t&2)!==0,a=i&&s,o=(t&4)!==0,l=a?"both":i?"in":"out",c,u=e.inert,f=e.style.overflow,d,h;function m(){return Kn(()=>{var E;return c!=null?c:c=r()(e,(E=n==null?void 0:n())!=null?E:{},{direction:l})})}var g={is_global:o,in(){var E;if(e.inert=u,!i){h==null||h.abort(),(E=h==null?void 0:h.reset)==null||E.call(h);return}s||d==null||d.abort(),d=vb(e,m(),h,1,()=>{hm(e,"introend"),d==null||d.abort(),d=c=void 0,e.style.overflow=f})},out(E){if(!s){E==null||E(),c=void 0;return}e.inert=!0,h=vb(e,m(),d,0,()=>{hm(e,"outroend"),E==null||E()})},stop:()=>{d==null||d.abort(),h==null||h.abort()}},v=ne;if(((x=(k=v.nodes).t)!=null?x:k.t=[]).push(g),i&&fm){var w=o;if(!w){for(var b=v.parent;b&&b.f&65536;)for(;(b=b.parent)&&!(b.f&16););w=!b||(b.f&32768)!==0}w&&Wr(()=>{ze(()=>g.in())})}}function vb(t,e,r,n,i){var s=n===1;if(My(e)){var a,o=!1;return vt(()=>{if(!o){var v=e({direction:s?"in":"out"});a=vb(t,v,r,n,i)}}),{abort:()=>{o=!0,a==null||a.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(r==null||r.deactivate(),!(e!=null&&e.duration)&&!(e!=null&&e.delay))return hm(t,s?"introstart":"outrostart"),i(),{abort:Fr,deactivate:Fr,reset:Fr,t:()=>n};let{delay:l=0,css:c,tick:u,easing:f=b9}=e;var d=[];if(s&&r===void 0&&(u&&u(0,1),c)){var h=dD(c(0,1));d.push(h,h)}var m=()=>1-n,g=t.animate(d,{duration:l,fill:"forwards"});return g.onfinish=()=>{var _;g.cancel(),hm(t,s?"introstart":"outrostart");var v=(_=r==null?void 0:r.t())!=null?_:1-n;r==null||r.abort();var w=n-v,b=e.duration*Math.abs(w),k=[];if(b>0){var x=!1;if(c)for(var E=Math.ceil(b/16.666666666666668),A=0;A<=E;A+=1){var y=v+w*f(A/E),S=dD(c(y,1-y));k.push(S),x||(x=S.overflow==="hidden")}x&&(t.style.overflow="hidden"),m=()=>{var C=g.currentTime;return v+w*f(C/b)},u&&fD(()=>{if(g.playState!=="running")return!1;var C=m();return u(C,1-C),!0})}g=t.animate(k,{duration:b,fill:"forwards"}),g.onfinish=()=>{m=()=>n,u==null||u(n,1-n),i()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=Fr)},deactivate:()=>{i=Fr},reset:()=>{n===0&&(u==null||u(1,0))},t:()=>m()}}p();p();function ti(t,e){Wr(()=>{var i;var r=t.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){let s=document.createElement("style");s.id=e.hash,s.textContent=e.code,n.appendChild(s),L&&lD(e.hash,s)}})}p();p();p();p();p();p();var pD=[...` +\r\f\xA0\v\uFEFF`];function mD(t,e,r){var n=t==null?"":""+t;if(e&&(n=n?n+" "+e:e),r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,a=0;(a=n.indexOf(i,a))>=0;){var o=a+s;(a===0||pD.includes(n[a-1]))&&(o===n.length||pD.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}p();function ft(t,e,r,n,i,s){var a=t.__className;if(re||a!==r||a===void 0){var o=mD(r,n,s);(!re||o!==t.getAttribute("class"))&&(o==null?t.removeAttribute("class"):e?t.className=o:t.setAttribute("class",o)),t.__className=r}else if(s&&i!==s)for(var l in s){var c=!!s[l];(i==null||c!==!!i[l])&&t.classList.toggle(l,c)}return s}p();p();var T9=Symbol("class"),P9=Symbol("style"),R9=Symbol("is custom element"),$9=Symbol("is html");function _e(t,e,r,n){var i=I9(t);if(re&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){n||O9(t,e,r!=null?r:"");return}i[e]!==(i[e]=r)&&(e==="loading"&&(t[JO]=r),r==null?t.removeAttribute(e):typeof r!="string"&&F9(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function I9(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[R9]:t.nodeName.includes("-"),[$9]:t.namespaceURI===ZO}}var gD=new Map;function F9(t){var e=t.getAttribute("is")||t.nodeName,r=gD.get(e);if(r)return r;gD.set(e,r=[]);for(var n,i=t,s=Element.prototype;s!==i;){n=Iy(i);for(var a in n)n[a].set&&r.push(a);i=Kl(i)}return r}function O9(t,e,r){var n;L&&(e==="srcset"&&M9(t,r)||wb((n=t.getAttribute(e))!=null?n:"",r)||pM(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(r)))}function wb(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function vD(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function M9(t,e){var r=vD(t.srcset),n=vD(e);return n.length===r.length&&n.every(([i,s],a)=>s===r[a][1]&&(wb(r[a][0],i)||wb(i,r[a][0])))}p();p();p();function _b(t,e,r=e){var n=new WeakSet;ob(t,"input",async i=>{L&&t.type==="checkbox"&&Dy();var s=i?t.defaultValue:t.value;if(s=yb(t)?bb(s):s,r(s),ye!==null&&n.add(ye),await lm(),s!==(s=e())){var a=t.selectionStart,o=t.selectionEnd,l=t.value.length;if(t.value=s!=null?s:"",o!==null){var c=t.value.length;a===o&&o===l&&c>l?(t.selectionStart=c,t.selectionEnd=c):(t.selectionStart=a,t.selectionEnd=Math.min(o,c))}}}),(re&&t.defaultValue!==t.value||ze(e)==null&&t.value)&&(r(yb(t)?bb(t.value):t.value),ye!==null&&n.add(ye)),Xt(()=>{var a;L&&t.type==="checkbox"&&Dy();var i=e();if(t===document.activeElement){var s=(a=lf)!=null?a:ye;if(n.has(s))return}yb(t)&&i===bb(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i!=null?i:"")})}function yb(t){var e=t.type;return e==="number"||e==="range"}function bb(t){return t===""?null:+t}p();p();p();p();p();function yD(t,e){return t===e||(t==null?void 0:t[Wt])===e}function it(t={},e,r,n){return Wr(()=>{var i,s;return Xt(()=>{i=s,s=(n==null?void 0:n())||[],ze(()=>{t!==r(...s)&&(e(t,...s),i&&yD(r(...i),t)&&e(null,...i))})}),()=>{vt(()=>{s&&yD(r(...s),t)&&e(null,...s)})}}),t}p();p();p();p();p();p();p();p();p();var mm=!1,Vge=Symbol();function Sb(t){var e=mm;try{return mm=!1,[t(),mm]}finally{mm=e}}function Pn(t,e,r,n){var k,x;var i=!as||(r&2)!==0,s=(r&8)!==0,a=(r&16)!==0,o=n,l=!0,c=()=>(l&&(l=!1,o=a?ze(n):n),o),u;if(s){var f=Wt in t||rf in t;u=(x=(k=Ir(t,e))==null?void 0:k.set)!=null?x:f&&e in t?E=>t[e]=E:void 0}var d,h=!1;s?[d,h]=Sb(()=>t[e]):d=t[e],d===void 0&&n!==void 0&&(d=c(),u&&(i&&oM(e),u(d)));var m;if(i?m=()=>{var E=t[e];return E===void 0?c():(l=!0,E)}:m=()=>{var E=t[e];return E!==void 0&&(o=void 0),E===void 0?o:E},i&&!(r&4))return m;if(u){var g=t.$$legacy;return function(E,A){return arguments.length>0?((!i||!A||g||h)&&u(A?m():E),E):m()}}var v=!1,w=(r&1?so:ao)(()=>(v=!1,m()));L&&(w.label=e),s&&R(w);var b=ne;return function(E,A){if(arguments.length>0){let y=A?R(w):i&&s?Ye(E):E;return se(w,y),v=!0,o!==void 0&&(o=y),E}return Tn&&v||b.f&16384?w.v:R(w)}}p();p();p();function bD(t){return new Eb(t)}var gs,Rn,Eb=class{constructor(e){me(this,gs);me(this,Rn);var s,a;var r=new Map,n=(o,l)=>{var c=lo(l,!1,!1);return r.set(o,c),c};let i=new Proxy({...(e.props||{}),$$events:{}},{get(o,l){var c;return R((c=r.get(l))!=null?c:n(l,Reflect.get(o,l)))},has(o,l){var c;return l===rf?!0:(R((c=r.get(l))!=null?c:n(l,Reflect.get(o,l))),Reflect.has(o,l))},set(o,l,c){var u;return se((u=r.get(l))!=null?u:n(l,c),c),Reflect.set(o,l,c)}});de(this,Rn,(e.hydrate?mb:ia)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),!tr&&(!((a=e==null?void 0:e.props)!=null&&a.$$host)||e.sync===!1)&&eo(),de(this,gs,i.$$events);for(let o of Object.keys($(this,Rn)))o==="$set"||o==="$destroy"||o==="$on"||Jt(this,o,{get(){return $(this,Rn)[o]},set(l){$(this,Rn)[o]=l},enumerable:!0});$(this,Rn).$set=o=>{Object.assign(i,o)},$(this,Rn).$destroy=()=>{hs($(this,Rn))}}$set(e){$(this,Rn).$set(e)}$on(e,r){$(this,gs)[e]=$(this,gs)[e]||[];let n=(...i)=>r.call(this,...i);return $(this,gs)[e].push(n),()=>{$(this,gs)[e]=$(this,gs)[e].filter(i=>i!==n)}}$destroy(){$(this,Rn).$destroy()}};gs=new WeakMap,Rn=new WeakMap;var X9;typeof HTMLElement=="function"&&(X9=class extends HTMLElement{constructor(e,r,n){super();qe(this,"$$ctor");qe(this,"$$s");qe(this,"$$c");qe(this,"$$cn",!1);qe(this,"$$d",{});qe(this,"$$r",!1);qe(this,"$$p_d",{});qe(this,"$$l",{});qe(this,"$$l_u",new Map);qe(this,"$$me");qe(this,"$$shadowRoot",null);this.$$ctor=e,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){let i=this.$$c.$on(e,r);this.$$l_u.set(r,i)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){let i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(i){return s=>{let a=document.createElement("slot");i!=="default"&&(a.name=i),ae(s,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let r={},n=Z9(this);for(let i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=e(i),r.default=!0):r[i]=e(i));for(let i of this.attributes){let s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=kb(s,i.value,this.$$p_d,"toProp"))}for(let i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=bD({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=cb(()=>{Xt(()=>{var i;this.$$r=!0;for(let s of $y(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];let a=kb(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1})});for(let i in this.$$l)for(let s of this.$$l[i]){let a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,r,n){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=kb(e,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return $y(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function kb(t,e,r,n){var s;let i=(s=r[t])==null?void 0:s.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Z9(t){let e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}p();p();function po(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?s(u.value):i(u.value).then(o,l)}c((n=n.apply(t,e||[])).next())})}var Pb=require("obsidian");p();var Cb=require("obsidian");p();function K9(t){let e=t-1;return e*e*e+1}var Ab=!1;function Ni(t,{delay:e=0,duration:r=400,easing:n=K9,axis:i="y"}={}){let s=getComputedStyle(t);L&&!Ab&&/(contents|inline|table)/.test(s.display)&&(Ab=!0,Promise.resolve().then(()=>Ab=!1),wM(s.display));let a=+s.opacity,o=i==="y"?"height":"width",l=parseFloat(s[o]),c=i==="y"?["top","bottom"]:["left","right"],u=c.map(w=>`${w[0].toUpperCase()}${w.slice(1)}`),f=parseFloat(s[`padding${u[0]}`]),d=parseFloat(s[`padding${u[1]}`]),h=parseFloat(s[`margin${u[0]}`]),m=parseFloat(s[`margin${u[1]}`]),g=parseFloat(s[`border${u[0]}Width`]),v=parseFloat(s[`border${u[1]}Width`]);return{delay:e,duration:r,easing:n,css:w=>`overflow: hidden;opacity: ${Math.min(w*20,1)*a};${o}: ${w*l}px;padding-${c[0]}: ${w*f}px;padding-${c[1]}: ${w*d}px;margin-${c[0]}: ${w*h}px;margin-${c[1]}: ${w*m}px;border-${c[0]}-width: ${w*g}px;border-${c[1]}-width: ${w*v}px;min-${o}: 0`}}p();var gm=require("obsidian");var Q9=fe("
"),J9=fe("
"),e7={hash:"svelte-1c0jiav",code:"main.svelte-1c0jiav .nav-file-title:where(.svelte-1c0jiav) {align-items:center;}"};function xf(t,e){at(e,!0),ti(t,e7);let r=Ye([]),n=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");sr(()=>{for(let w of r)w&&(0,gm.setIcon)(w,w.getAttr("data-icon"))});function i(w){w.stopPropagation(),ml(e.diff.path)?s(w):a(w)}function s(w){var b;w.stopPropagation();let k=e.view.app.vault.getAbstractFileByPath(e.diff.vaultPath);k instanceof gm.TFile&&((b=Bn(e.view.app,w))===null||b===void 0||b.openFile(k).catch(x=>e.view.plugin.displayError(x)))}function a(w){var b;e.view.plugin.tools.openDiff({event:w,aFile:(b=e.diff.fromPath)!==null&&b!==void 0?b:e.diff.path,aRef:`${e.diff.hash}^`,bFile:e.diff.path,bRef:e.diff.hash})}var o=J9();o.__click=i;var l=j(o),c=j(l),u=j(c,!0);G(c);var f=ee(c,2),d=j(f),h=j(d);{var m=w=>{var b=Q9();b.__click=s,it(b,k=>r[0]=k,()=>r==null?void 0:r[0]),on("auxclick",b,s),ae(w,b)};Ae(h,w=>{gl(e.diff.vaultPath,e.view.app)&&w(m)})}G(d);var g=ee(d,2),v=j(g,!0);G(g),G(f),G(l),G(o),Ne(w=>{_e(l,"data-path",e.diff.vaultPath),_e(l,"data-tooltip-position",R(n)),_e(l,"aria-label",e.diff.vaultPath),He(u,w),_e(g,"data-type",e.diff.status),He(v,e.diff.status)},[()=>vi(e.diff.vaultPath)]),on("auxclick",o,w=>{w.stopPropagation(),w.button==2?gi(e.view.app,w,e.diff.vaultPath,e.view.leaf,"git-history"):i(w)}),ae(t,o),ot()}Et(["click"]);p();var t7=fe("
"),r7=fe("
"),n7=fe("
"),i7=fe("
"),s7={hash:"svelte-d9h7mp",code:"main.svelte-d9h7mp .nav-folder-title-content:where(.svelte-d9h7mp) {display:flex;align-items:center;}"};function Sf(t,e){at(e,!0),ti(t,s7);let r=Pn(e,"topLevel",3,!1),n=Pn(e,"closed",15),i=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");function s(l,c){l.stopPropagation(),n(n()[c.path]=!n()[c.path],!0)}var a=i7();let o;un(a,21,()=>e.hierarchy.children,cn,(l,c)=>{var u=ds(),f=qr(u);{var d=m=>{var g=t7(),v=j(g);xf(v,{get diff(){return R(c).data},get view(){return e.view}}),G(g),ae(m,g)},h=m=>{var g=n7();let v;var w=j(g);w.__click=S=>s(S,R(c));var b=ee(j(w),2);let k;var x=ee(b,2),E=j(x,!0);G(x),G(w);var A=ee(w,2);{var y=S=>{var _=r7(),C=j(_);Sf(C,{get hierarchy(){return R(c)},get plugin(){return e.plugin},get view(){return e.view},get closed(){return n()},set closed(P){n(P)}}),G(_),ei(3,_,()=>Ni,()=>({duration:150})),ae(S,_)};Ae(A,S=>{n()[R(c).path]||S(y)})}G(g),Ne(()=>{v=ft(g,1,"tree-item nav-folder",null,v,{"is-collapsed":n()[R(c).path]}),_e(w,"data-tooltip-position",R(i)),_e(w,"aria-label",R(c).vaultPath),k=ft(b,1,"tree-item-icon nav-folder-collapse-indicator collapse-icon",null,k,{"is-collapsed":n()[R(c).path]}),He(E,R(c).title)}),ae(m,g)};Ae(f,m=>{R(c).data?m(d):m(h,!1)})}ae(l,u)}),G(a),Ne(()=>o=ft(a,1,"svelte-d9h7mp",null,o,{topLevel:r()})),ae(t,a),ot()}Et(["click"]);var a7=fe("
"),o7=fe("
"),l7=fe("
"),c7=fe("
"),u7=fe("
"),f7={hash:"svelte-1edsiy5",code:""};function Tb(t,e){at(e,!0),ti(t,f7);let r=St(()=>({title:"",path:"",vaultPath:"",children:e.plugin.gitManager.getTreeStructure(e.log.diff.files)})),n=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left"),i=Me(!0),s=Me(Ye({}));function a(S){let _=S.author.name;if(e.plugin.settings.authorInHistoryView=="full")return _;if(e.plugin.settings.authorInHistoryView=="initials")return _.split(" ").filter(P=>P.length>0).map(P=>P[0].toUpperCase()).join("")}var o=u7(),l=j(o);let c;var u=j(l);u.__click=()=>se(i,!R(i));var f=j(u);let d;var h=ee(f,2),m=j(h);{var g=S=>{var _=a7(),C=j(_,!0);G(_),Ne(P=>He(C,P),[()=>e.log.refs.join(", ")]),ae(S,_)};Ae(m,S=>{e.log.refs.length>0&&S(g)})}var v=ee(m,2);{var w=S=>{var _=o7(),C=j(_,!0);G(_),Ne(P=>He(C,P),[()=>a(e.log)]),ae(S,_)};Ae(v,S=>{var _;e.plugin.settings.authorInHistoryView!="hide"&&(_=e.log.author)!=null&&_.name&&S(w)})}var b=ee(v,2);{var k=S=>{var _=l7(),C=j(_,!0);G(_),Ne(P=>He(C,P),[()=>(0,Cb.moment)(e.log.date).format(e.plugin.settings.commitDateFormat)]),ae(S,_)};Ae(b,S=>{e.plugin.settings.dateInHistoryView&&S(k)})}var x=ee(b,2),E=j(x,!0);G(x),G(h),G(u);var A=ee(u,2);{var y=S=>{var _=c7(),C=j(_);{var P=B=>{Sf(B,{get hierarchy(){return R(r)},get plugin(){return e.plugin},get view(){return e.view},topLevel:!0,get closed(){return R(s)},set closed(H){se(s,H,!0)}})},N=B=>{var H=ds(),ce=qr(H);un(ce,17,()=>e.log.diff.files,cn,(Pe,ve)=>{xf(Pe,{get view(){return e.view},get diff(){return R(ve)}})}),ae(B,H)};Ae(C,B=>{e.showTree?B(P):B(N,!1)})}G(_),ei(3,_,()=>Ni,()=>({duration:150})),ae(S,_)};Ae(A,S=>{R(i)||S(y)})}G(l),G(o),Ne(S=>{c=ft(l,1,"tree-item nav-folder",null,c,{"is-collapsed":R(i)}),_e(u,"aria-label",S),_e(u,"data-tooltip-position",R(n)),d=ft(f,1,"tree-item-icon nav-folder-collapse-indicator collapse-icon",null,d,{"is-collapsed":R(i)}),He(E,e.log.message)},[()=>{var S;return`${e.log.refs.length>0?e.log.refs.join(", ")+` `:""}${(S=e.log.author)==null?void 0:S.name} ${(0,Cb.moment)(e.log.date).format(e.plugin.settings.commitDateFormat)} -${e.log.message}`}]),ae(t,o),ot()}Et(["click"]);var d7=fe(''),h7=fe('
'),p7={hash:"svelte-12n6twc",code:""};function Rb(t,e){at(e,!0),ti(t,p7);let r=Pn(e,"plugin",15),n=Me(!1),i=Ye([]),s=Me(void 0),a=Me(Ye(r().settings.treeStructure)),o;sr(()=>{o&&o.empty()}),ho(()=>{e.view.registerEvent(e.view.app.workspace.on("obsidian-git:head-change",()=>void c().catch(console.error)))}),sr(()=>{i.forEach(x=>(0,Pb.setIcon)(x,x.getAttr("data-icon")))}),ho(()=>{let x=new IntersectionObserver(A=>{A[0].isIntersecting&&!R(n)&&u().catch(console.error)}),E=document.querySelector("#sentinel");return E&&x.observe(E),()=>{x.disconnect()}}),c().catch(console.error);function l(){c().catch(console.error)}function c(){return po(this,void 0,void 0,function*(){var x;if(!r().gitReady){se(s,void 0);return}se(n,!0);let E=r().gitManager instanceof Se,A;((x=R(s)===null||R(s)===void 0?void 0:R(s).length)!==null&&x!==void 0?x:0)==0?A=E?50:10:A=R(s).length,se(s,yield r().gitManager.log(void 0,!1,A),!0),se(n,!1)})}function u(){return po(this,void 0,void 0,function*(){var x;if(!r().gitReady||R(s)===void 0)return;se(n,!0);let A=r().gitManager instanceof Se?50:10,y=yield r().gitManager.log(void 0,!1,A,(x=R(s).last())===null||x===void 0?void 0:x.hash);R(s).push(...y.slice(1)),se(n,!1)})}var f=h7(),d=j(f),h=j(d),m=j(h);m.__click=()=>{se(a,!R(a)),(0,Pb.setIcon)(i[0],R(a)?"list":"folder"),r(r().settings.treeStructure=R(a),!0),r().saveSettings()},it(m,x=>i[0]=x,()=>i==null?void 0:i[0]);var g=ee(m,2);let v;g.__click=l,it(g,x=>i[1]=x,()=>i==null?void 0:i[1]),G(h),G(d);var w=ee(d,2),b=j(w);{var k=x=>{var E=d7();un(E,21,()=>R(s),cn,(A,y)=>{Tb(A,{get view(){return e.view},get showTree(){return R(a)},get log(){return R(y)},get plugin(){return r()}})}),G(E),ae(x,E)};Ae(b,x=>{R(s)&&x(k)})}Xa(4),G(w),G(f),Ne(()=>{_e(m,"data-icon",R(a)?"list":"folder"),v=ft(g,1,"clickable-icon nav-action-button",null,v,{loading:R(n)})}),ae(t,f),ot()}Et(["click"]);var Ef=class extends _D.ItemView{constructor(e,r){super(e),this.plugin=r,this.hoverPopover=null}getViewType(){return gn.type}getDisplayText(){return gn.name}getIcon(){return gn.icon}onClose(){return this._view&&hs(this._view),super.onClose()}reload(){this._view&&hs(this._view),this._view=ia(Rb,{target:this.contentEl,props:{plugin:this.plugin,view:this}})}onOpen(){return this.reload(),super.onOpen()}};p();var xD=require("obsidian"),vm=class extends xD.FuzzySuggestModal{constructor(r,n){super(r.app);this.branches=n;this.setPlaceholder("选择要检出的分支")}getItems(){return this.branches}getItemText(r){return r}onChooseItem(r,n){this.resolve(r)}openAndGetReslt(){return new Promise(r=>{this.resolve=r,this.open()})}onClose(){new Promise(r=>setTimeout(r,10)).then(()=>{this.resolve&&this.resolve(void 0)})}};p();var kD=require("obsidian");p();var vo=require("obsidian");p();var kf=require("obsidian");p();var SD=require("obsidian");var vc=class extends SD.Modal{constructor({app:r,path:n,filesToDeleteCount:i,filesToDiscardCount:s}){super(r);this.resolve=null;this.path=n,this.deleteCount=i,this.discardCount=s}openAndGetResult(){return this.open(),new Promise(r=>{this.resolve=r})}onOpen(){let r=this.deleteCount+this.discardCount,{contentEl:n,titleEl:i}=this,s="";this.path!=""&&(r>1?s=`files in "${this.path}"`:s=`"${this.path}"`),i.setText(`${this.discardCount==0?"Delete":"Discard"} ${s}`),this.deleteCount>0&&n.createEl("p").setText(`Are you sure you want to DELETE the ${Pu(this.deleteCount,"untracked file")}? They are deleted according to your Obsidian trash settting.`),this.discardCount>0&&n.createEl("p").setText(`Are you sure you want to discard ALL changes in ${Pu(this.discardCount,"tracked file")}?`);let a=n.createDiv({cls:"modal-button-container"});if(this.deleteCount>0){let l=a.createEl("button",{cls:"mod-warning",text:`${this.discardCount>0?"Discard":"Delete"} all ${Pu(r,"file")}`});l.addEventListener("click",()=>{this.resolve&&this.resolve("delete"),this.close()}),l.addEventListener("keypress",()=>{this.resolve&&this.resolve("delete"),this.close()})}if(this.discardCount>0){let l=a.createEl("button",{cls:"mod-warning",text:`Discard all ${Pu(this.discardCount,"tracked file")}`});l.addEventListener("click",()=>{this.resolve&&this.resolve("discard"),this.close()}),l.addEventListener("keypress",()=>{this.resolve&&this.resolve("discard"),this.close()})}let o=a.createEl("button",{text:"取消"});o.addEventListener("click",()=>(this.resolve&&this.resolve(!1),this.close())),o.addEventListener("keypress",()=>(this.resolve&&this.resolve(!1),this.close()))}onClose(){let{contentEl:r}=this;r.empty()}};var m7=fe('
'),g7=fe('
');function Af(t,e){at(e,!0);let r=Ye([]),n=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");sr(()=>{for(let A of r)A&&(0,kf.setIcon)(A,A.getAttr("data-icon"))});function i(A){A.stopPropagation(),ml(e.change.path)?a(A):l(A)}function s(A){e.view.app.vault.getAbstractFileByPath(e.change.vaultPath)&&vl(e.view.app,A,e.view,e.change.vaultPath)}function a(A){var y;A.stopPropagation();let S=e.view.app.vault.getAbstractFileByPath(e.change.vaultPath);S instanceof kf.TFile&&((y=Bn(e.view.app,A))===null||y===void 0||y.openFile(S).catch(_=>e.view.plugin.displayError(_)))}function o(A){A.stopPropagation(),e.manager.stage(e.change.path,!1).catch(y=>e.view.plugin.displayError(y)).finally(()=>{e.view.app.workspace.trigger("obsidian-git:refresh")})}function l(A){A.stopPropagation(),e.view.plugin.tools.openDiff({aFile:e.change.path,aRef:"",event:A})}function c(A){A.stopPropagation();let y=e.change.workingDir=="U";new vc({app:e.view.app,filesToDeleteCount:y?1:0,filesToDiscardCount:y?0:1,path:e.change.vaultPath}).openAndGetResult().then(S=>po(this,void 0,void 0,function*(){if(S=="delete"){let _=e.view.app.vault.getAbstractFileByPath(e.change.vaultPath);_ instanceof kf.TFile?yield e.view.app.fileManager.trashFile(_):yield e.view.app.vault.adapter.remove(e.change.vaultPath)}else S=="discard"&&(yield e.manager.discard(e.change.path).finally(()=>{e.view.app.workspace.trigger("obsidian-git:refresh")}));e.view.app.workspace.trigger("obsidian-git:refresh")}),S=>e.view.plugin.displayError(S))}var u=g7();u.__mouseover=s,u.__click=i;var f=j(u),d=j(f),h=j(d,!0);G(d);var m=ee(d,2),g=j(m),v=j(g);{var w=A=>{var y=m7();y.__click=a,it(y,S=>r[0]=S,()=>r==null?void 0:r[0]),on("auxclick",y,a),ae(A,y)};Ae(v,A=>{gl(e.change.vaultPath,e.view.app)&&A(w)})}var b=ee(v,2);b.__click=c,it(b,A=>r[1]=A,()=>r==null?void 0:r[1]);var k=ee(b,2);k.__click=o,it(k,A=>r[2]=A,()=>r==null?void 0:r[2]),G(g);var x=ee(g,2),E=j(x,!0);G(x),G(m),G(f),G(u),Ne(A=>{_e(f,"data-path",e.change.vaultPath),_e(f,"data-tooltip-position",R(n)),_e(f,"aria-label",e.change.vaultPath),He(h,A),_e(x,"data-type",e.change.workingDir),He(E,e.change.workingDir)},[()=>vi(e.change.vaultPath)]),on("auxclick",u,A=>{A.stopPropagation(),A.button==2?gi(e.view.app,A,e.change.vaultPath,e.view.leaf,"git-source-control"):i(A)}),ae(t,u),ot()}Et(["mouseover","click"]);p();var ED=require("obsidian");var v7=fe('
');function Cf(t,e){at(e,!0);let r=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");function n(d){e.view.app.vault.getAbstractFileByPath(e.change.vaultPath)&&vl(e.view.app,d,e.view,e.change.vaultPath)}function i(d){var h;d.stopPropagation();let m=e.view.app.vault.getAbstractFileByPath(e.change.vaultPath);m instanceof ED.TFile&&((h=Bn(e.view.app,d))===null||h===void 0||h.openFile(m).catch(g=>e.view.plugin.displayError(g)))}var s=v7();s.__mouseover=n,s.__click=i;var a=j(s),o=j(a),l=j(o,!0);G(o);var c=ee(o,2),u=j(c),f=j(u,!0);G(u),G(c),G(a),G(s),Ne(d=>{_e(a,"data-path",e.change.vaultPath),_e(a,"data-tooltip-position",R(r)),_e(a,"aria-label",e.change.vaultPath),He(l,d),_e(u,"data-type",e.change.workingDir),He(f,e.change.workingDir)},[()=>vi(e.change.vaultPath)]),on("auxclick",s,d=>{d.stopPropagation(),d.button==2?gi(e.view.app,d,e.change.vaultPath,e.view.leaf,"git-source-control"):i(d)}),ae(t,s),ot()}Et(["mouseover","click"]);p();var wm=require("obsidian");var w7=fe('
'),y7=fe('
');function Tf(t,e){at(e,!0);let r=Ye([]),n=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");sr(()=>{for(let x of r)x&&(0,wm.setIcon)(x,x.getAttr("data-icon"))});function i(x){x.stopPropagation(),ml(e.change.path)?a(x):o(x)}function s(x){e.view.app.vault.getFileByPath(e.change.vaultPath)&&vl(e.view.app,x,e.view,e.change.vaultPath)}function a(x){var E;x.stopPropagation();let A=e.view.app.vault.getAbstractFileByPath(e.change.vaultPath);A instanceof wm.TFile&&((E=Bn(e.view.app,x))===null||E===void 0||E.openFile(A).catch(y=>e.view.plugin.displayError(y)))}function o(x){var E;x.stopPropagation(),e.view.plugin.tools.openDiff({aFile:(E=e.change.from)!==null&&E!==void 0?E:e.change.path,bFile:e.change.path,aRef:"HEAD",bRef:"",event:x})}function l(x){x.stopPropagation(),e.manager.unstage(e.change.path,!1).catch(E=>e.view.plugin.displayError(E)).finally(()=>{e.view.app.workspace.trigger("obsidian-git:refresh")})}var c=y7();c.__mouseover=s,c.__click=i;var u=j(c),f=j(u),d=j(f,!0);G(f);var h=ee(f,2),m=j(h),g=j(m);{var v=x=>{var E=w7();E.__click=a,it(E,A=>r[0]=A,()=>r==null?void 0:r[0]),ae(x,E)};Ae(g,x=>{gl(e.change.vaultPath,e.view.app)&&x(v)})}var w=ee(g,2);w.__click=l,it(w,x=>r[1]=x,()=>r==null?void 0:r[1]),G(m);var b=ee(m,2),k=j(b,!0);G(b),G(h),G(u),G(c),Ne(x=>{_e(u,"data-path",e.change.vaultPath),_e(u,"data-tooltip-position",R(n)),_e(u,"aria-label",e.change.vaultPath),He(d,x),_e(b,"data-type",e.change.index),He(k,e.change.index)},[()=>vi(e.change.vaultPath)]),on("auxclick",c,x=>{x.stopPropagation(),x.button==2?gi(e.view.app,x,e.change.vaultPath,e.view.leaf,"git-source-control"):i(x)}),ae(t,c),ot()}Et(["mouseover","click"]);p();p();var b7=fe(''),_7=fe("
");function mo(t,e){at(e,!0);var r=_7(),n=j(r);{var i=s=>{var a=b7(),o=j(a),l=j(o),c=j(l,!0);G(l),G(o),G(a),Ne(()=>{_e(o,"aria-label","And "+(e.files.length-500)+" more files"),He(c,"And "+(e.files.length-500)+" more files")}),ae(s,a)};Ae(n,s=>{e.files.length>500&&s(i)})}G(r),ae(t,r),ot()}var S7=fe("
"),E7=fe('
'),k7=fe('
',1),A7=fe(''),C7=fe('
'),T7=fe("
");function go(t,e){at(e,!0);let r=Pn(e,"topLevel",3,!1),n=Pn(e,"closed",15);ho(()=>{var h,m;for(let g of e.hierarchy.children)((m=(h=g.children)===null||h===void 0?void 0:h.length)!==null&&m!==void 0?m:0)>100&&n(n()[g.title]=!0,!0)});let i=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");function s(h,m){h.stopPropagation(),e.plugin.gitManager.stageAll({dir:m}).catch(g=>e.plugin.displayError(g)).finally(()=>{e.view.app.workspace.trigger("obsidian-git:refresh")})}function a(h,m){h.stopPropagation(),e.plugin.gitManager.unstageAll({dir:m}).catch(g=>e.plugin.displayError(g)).finally(()=>{e.view.app.workspace.trigger("obsidian-git:refresh")})}function o(h,m){h.stopPropagation(),e.plugin.discardAll(m.vaultPath)}function l(h,m){h.stopPropagation(),n(n()[m.path]=!n()[m.path],!0)}var c=T7();let u;var f=j(c);un(f,17,()=>Ru(e.hierarchy.children,500),cn,(h,m)=>{var g=ds(),v=qr(g);{var w=k=>{var x=S7(),E=j(x);{var A=S=>{Tf(S,{get change(){return R(m).data},get manager(){return e.plugin.gitManager},get view(){return e.view}})},y=S=>{var _=ds(),C=qr(_);{var P=B=>{Af(B,{get change(){return R(m).data},get manager(){return e.plugin.gitManager},get view(){return e.view}})},N=B=>{var H=ds(),ce=qr(H);{var Pe=ve=>{Cf(ve,{get change(){return R(m).data},get view(){return e.view}})};Ae(ce,ve=>{e.fileType==2&&ve(Pe)},!0)}ae(B,H)};Ae(C,B=>{e.fileType==1?B(P):B(N,!1)},!0)}ae(S,_)};Ae(E,S=>{e.fileType==0?S(A):S(y,!1)})}G(x),ae(k,x)},b=k=>{var x=C7();let E;var A=j(x);A.__click=ie=>l(ie,R(m));var y=ee(j(A),2);let S;var _=ee(y,2),C=j(_,!0);G(_);var P=ee(_,2),N=j(P),B=j(N);{var H=ie=>{var xe=E7();xe.__click=we=>a(we,R(m).path),ae(ie,xe)},ce=ie=>{var xe=k7(),we=qr(xe);we.__click=X=>o(X,R(m));var W=ee(we,2);W.__click=X=>s(X,R(m).path),ae(ie,xe)};Ae(B,ie=>{e.fileType==0?ie(H):ie(ce,!1)})}Xa(2),G(N),G(P),G(A);var Pe=ee(A,2);{var ve=ie=>{var xe=A7(),we=j(xe);go(we,{get hierarchy(){return R(m)},get plugin(){return e.plugin},get view(){return e.view},get fileType(){return e.fileType},get closed(){return n()},set closed(W){n(W)}}),G(xe),ei(3,xe,()=>Ni,()=>({duration:150})),ae(ie,xe)};Ae(Pe,ie=>{n()[R(m).path]||ie(ve)})}G(x),Ne(()=>{E=ft(x,1,"tree-item nav-folder",null,E,{"is-collapsed":n()[R(m).path]}),_e(A,"data-tooltip-position",R(i)),_e(A,"aria-label",R(m).vaultPath),S=ft(y,1,"tree-item-icon nav-folder-collapse-indicator collapse-icon",null,S,{"is-collapsed":n()[R(m).path]}),He(C,R(m).title)}),on("auxclick",x,ie=>gi(e.view.app,ie,R(m).vaultPath,e.view.leaf,"git-source-control")),ae(k,x)};Ae(v,k=>{R(m).data?k(w):k(b,!1)})}ae(h,g)});var d=ee(f,2);mo(d,{get files(){return e.hierarchy.children}}),G(c),Ne(()=>u=ft(c,1,"",null,u,{topLevel:r()})),ae(t,c),ot()}Et(["click"]);var P7=fe('
'),R7=fe(" ",1),$7=fe(''),I7=fe(" ",1),F7=fe(''),O7=fe(" ",1),M7=fe(''),D7=fe('
'),L7=fe(''),N7=fe('
'),B7={hash:"svelte-5wq9p",code:`.commit-msg-input.svelte-5wq9p {width:100%;overflow:hidden;resize:none;padding:7px 5px;background-color:var(--background-modifier-form-field);}.git-commit-msg.svelte-5wq9p {position:relative;padding:0;width:calc(100% - var(--size-4-8));margin:4px auto;}main.svelte-5wq9p .git-tools:where(.svelte-5wq9p) .files-count:where(.svelte-5wq9p) {padding-left:var(--size-2-1);width:11px;display:flex;align-items:center;justify-content:center;}.nav-folder-title.svelte-5wq9p {align-items:center;}.git-commit-msg-clear-button.svelte-5wq9p {position:absolute;background:transparent;border-radius:50%;color:var(--search-clear-button-color);cursor:var(--cursor);top:-4px;right:2px;bottom:0px;line-height:0;height:var(--input-height);width:28px;margin:auto;padding:0 0;text-align:center;display:flex;justify-content:center;align-items:center;transition:color 0.15s ease-in-out;}.git-commit-msg-clear-button.svelte-5wq9p:after {content:"";height:var(--search-clear-button-size);width:var(--search-clear-button-size);display:block;background-color:currentColor;mask-image:url("data:image/svg+xml,");mask-repeat:no-repeat;-webkit-mask-image:url("data:image/svg+xml,");-webkit-mask-repeat:no-repeat;}`};function $b(t,e){at(e,!0),ti(t,B7);let r=Pn(e,"plugin",7),n=Pn(e,"view",7),i=Me(!1),s=Me(void 0),a=Me(Ye([])),o=St(()=>r().settings.commitMessage),l=Ye([]),c=Me(void 0),u=Me(void 0),f=Me(void 0),d=Me(!0),h=Me(!0),m=Me(!0),g=Me(0),v=Me(Ye({})),w=Me(Ye({})),b=Me(Ye({})),k=St(()=>r().settings.treeStructure);ho(()=>{n().registerEvent(n().app.workspace.on("obsidian-git:loading-status",()=>se(i,!0))),n().registerEvent(n().app.workspace.on("obsidian-git:status-changed",()=>void A().catch(console.error))),n().plugin.cachedStatus==null?n().plugin.refresh().catch(console.error):A().catch(console.error),n().scope=new vo.Scope(r().app.scope),n().scope.register(["Ctrl"],"Enter",O=>E())}),sr(()=>{l.forEach(O=>(0,vo.setIcon)(O,O.getAttr("data-icon")))}),sr(()=>{l.forEach(O=>{var oe,Ce;!O||O.id!="push"||(vo.Platform.isMobile?(O.removeClass("button-border"),R(g)>0&&O.addClass("button-border")):((oe=O.firstElementChild)===null||oe===void 0||oe.removeAttribute("color"),R(g)>0&&((Ce=O.firstElementChild)===null||Ce===void 0||Ce.setAttr("color","var(--text-accent)"))))})});function x(){if(se(i,!0),R(s)){let O=R(s).staged.length>0;r().promiseQueue.addTask(()=>r().commit({fromAuto:!1,commitMessage:R(o),onlyStaged:O}).then(()=>se(o,r().settings.commitMessage)).finally(y))}}function E(){if(se(i,!0),R(s)){let O=R(s).staged.length>0;r().promiseQueue.addTask(()=>r().commitAndSync({fromAutoBackup:!1,commitMessage:R(o),onlyStaged:O}).then(()=>{se(o,r().settings.commitMessage)}).finally(y))}}function A(){return po(this,void 0,void 0,function*(){if(!r().gitReady){se(s,void 0);return}if(se(g,yield r().gitManager.getUnpushedCommits(),!0),se(s,r().cachedStatus,!0),se(i,!1),r().lastPulledFiles&&r().lastPulledFiles!=R(a)&&(se(a,r().lastPulledFiles,!0),se(f,{title:"",path:"",vaultPath:"",children:r().gitManager.getTreeStructure(R(a))},!0)),R(s)){let O=(oe,Ce)=>oe.vaultPath.split("/").last().localeCompare(vi(Ce.vaultPath));R(s).changed.sort(O),R(s).staged.sort(O),se(c,{title:"",path:"",vaultPath:"",children:r().gitManager.getTreeStructure(R(s).changed)},!0),se(u,{title:"",path:"",vaultPath:"",children:r().gitManager.getTreeStructure(R(s).staged)},!0)}else se(c,void 0),se(u,void 0)})}function y(){n().app.workspace.trigger("obsidian-git:refresh")}function S(O){O.stopPropagation(),se(i,!0),r().promiseQueue.addTask(()=>r().gitManager.stageAll({status:R(s)}).finally(y))}function _(O){O.stopPropagation(),se(i,!0),r().promiseQueue.addTask(()=>r().gitManager.unstageAll({status:R(s)}).finally(y))}function C(){se(i,!0),r().promiseQueue.addTask(()=>r().push().finally(y))}function P(){se(i,!0),r().promiseQueue.addTask(()=>r().pullChangesFromRemote().finally(y))}function N(O){O.stopPropagation(),r().discardAll()}let B=St(()=>(R(o).match(/\n/g)||[]).length+1||1);var H=N7(),ce=j(H),Pe=j(ce),ve=j(Pe);ve.__click=E,it(ve,O=>l[0]=O,()=>l==null?void 0:l[0]);var ie=ee(ve,2);ie.__click=x,it(ie,O=>l[1]=O,()=>l==null?void 0:l[1]);var xe=ee(ie,2);xe.__click=S,it(xe,O=>l[2]=O,()=>l==null?void 0:l[2]);var we=ee(xe,2);we.__click=_,it(we,O=>l[3]=O,()=>l==null?void 0:l[3]);var W=ee(we,2);W.__click=C,it(W,O=>l[4]=O,()=>l==null?void 0:l[4]);var X=ee(W,2);X.__click=P,it(X,O=>l[5]=O,()=>l==null?void 0:l[5]);var q=ee(X,2);q.__click=()=>{se(k,!R(k)),(0,vo.setIcon)(l[6],R(k)?"list":"folder"),r().settings.treeStructure=R(k),r().saveSettings()},it(q,O=>l[6]=O,()=>l==null?void 0:l[6]);var De=ee(q,2);let ar;De.__click=y,it(De,O=>l[7]=O,()=>l==null?void 0:l[7]),G(Pe),G(ce);var Ft=ee(ce,2),Ie=j(Ft);sb(Ie);var kt=ee(Ie,2);{var At=O=>{var oe=P7();oe.__click=()=>se(o,""),_e(oe,"aria-label","Clear"),ae(O,oe)};Ae(kt,O=>{R(o)&&O(At)})}G(Ft);var je=ee(Ft,2),Z=j(je);{var M=O=>{var oe=L7(),Ce=j(oe);let Ot;var wr=j(Ce);wr.__click=()=>se(h,!R(h));var bo=j(wr);let Db;var Lb=ee(bo,4),$m=j(Lb),Nb=j($m);Nb.__click=_,it(Nb,or=>l[8]=or,()=>l==null?void 0:l[8]),G($m);var Bb=ee($m,2),OD=j(Bb,!0);G(Bb),G(Lb),G(wr);var MD=ee(wr,2);{var DD=or=>{var yr=$7(),_o=j(yr);{var vs=lr=>{go(lr,{get hierarchy(){return R(u)},get plugin(){return r()},get view(){return n()},get fileType(){return 0},topLevel:!0,get closed(){return R(v)},set closed($n){se(v,$n,!0)}})},xo=lr=>{var $n=R7(),aa=qr($n);un(aa,17,()=>Ru(R(s).staged,500),cn,(ws,yc)=>{Tf(ws,{get change(){return R(yc)},get view(){return n()},get manager(){return r().gitManager}})});var oa=ee(aa,2);mo(oa,{get files(){return R(s).staged}}),ae(lr,$n)};Ae(_o,lr=>{R(k)?lr(vs):lr(xo,!1)})}G(yr),ei(3,yr,()=>Ni,()=>({duration:150})),ae(or,yr)};Ae(MD,or=>{R(h)&&or(DD)})}G(Ce);var Rf=ee(Ce,2);let Hb;var $f=j(Rf);$f.__click=()=>se(d,!R(d));var Ub=j($f);let Gb;var jb=ee(Ub,4),Im=j(jb),qb=j(Im);qb.__click=N;var Wb=ee(qb,2);Wb.__click=S,it(Wb,or=>l[9]=or,()=>l==null?void 0:l[9]),G(Im);var zb=ee(Im,2),LD=j(zb,!0);G(zb),G(jb),G($f);var ND=ee($f,2);{var BD=or=>{var yr=F7(),_o=j(yr);{var vs=lr=>{go(lr,{get hierarchy(){return R(c)},get plugin(){return r()},get view(){return n()},get fileType(){return 1},topLevel:!0,get closed(){return R(w)},set closed($n){se(w,$n,!0)}})},xo=lr=>{var $n=I7(),aa=qr($n);un(aa,17,()=>Ru(R(s).changed,500),cn,(ws,yc)=>{Af(ws,{get change(){return R(yc)},get view(){return n()},get manager(){return r().gitManager}})});var oa=ee(aa,2);mo(oa,{get files(){return R(s).changed}}),ae(lr,$n)};Ae(_o,lr=>{R(k)?lr(vs):lr(xo,!1)})}G(yr),ei(3,yr,()=>Ni,()=>({duration:150})),ae(or,yr)};Ae(ND,or=>{R(d)&&or(BD)})}G(Rf);var HD=ee(Rf,2);{var UD=or=>{var yr=D7();let _o;var vs=j(yr);vs.__click=()=>se(m,!R(m));var xo=ee(j(vs),4),lr=j(xo,!0);G(xo),G(vs);var $n=ee(vs,2);{var aa=oa=>{var ws=M7(),yc=j(ws);{var GD=So=>{go(So,{get hierarchy(){return R(f)},get plugin(){return r()},get view(){return n()},get fileType(){return 2},topLevel:!0,get closed(){return R(b)},set closed(If){se(b,If,!0)}})},jD=So=>{var If=O7(),Vb=qr(If);un(Vb,17,()=>R(a),cn,(WD,zD)=>{Cf(WD,{get change(){return R(zD)},get view(){return n()}})});var qD=ee(Vb,2);mo(qD,{get files(){return R(a)}}),ae(So,If)};Ae(yc,So=>{R(k)?So(GD):So(jD,!1)})}G(ws),ei(3,ws,()=>Ni,()=>({duration:150})),ae(oa,ws)};Ae($n,oa=>{R(m)&&oa(aa)})}G(yr),Ne(()=>{_o=ft(yr,1,"pulled nav-folder",null,_o,{"is-collapsed":!R(m)}),He(lr,R(a).length)}),ae(or,yr)};Ae(HD,or=>{R(a).length>0&&R(f)&&or(UD)})}G(oe),Ne(()=>{Ot=ft(Ce,1,"staged tree-item nav-folder",null,Ot,{"is-collapsed":!R(h)}),Db=ft(bo,1,"tree-item-icon nav-folder-collapse-indicator collapse-icon",null,Db,{"is-collapsed":!R(h)}),He(OD,R(s).staged.length),Hb=ft(Rf,1,"changes tree-item nav-folder",null,Hb,{"is-collapsed":!R(d)}),Gb=ft(Ub,1,"tree-item-icon nav-folder-collapse-indicator collapse-icon",null,Gb,{"is-collapsed":!R(d)}),He(LD,R(s).changed.length)}),ae(O,oe)};Ae(Z,O=>{R(s)&&R(u)&&R(c)&&O(M)})}G(je),G(H),Ne(()=>{_e(H,"data-type",jt.type),_e(q,"data-icon",R(k)?"list":"folder"),ar=ft(De,1,"clickable-icon nav-action-button",null,ar,{loading:R(i)}),_e(Ie,"rows",R(B))}),_b(Ie,()=>R(o),O=>se(o,O)),ae(t,H),ot()}Et(["click"]);var Pf=class extends kD.ItemView{constructor(e,r){super(e),this.plugin=r,this.hoverPopover=null}getViewType(){return jt.type}getDisplayText(){return jt.name}getIcon(){return jt.icon}onClose(){return this._view&&hs(this._view),super.onClose()}reload(){this._view&&hs(this._view),this._view=ia($b,{target:this.contentEl,props:{plugin:this.plugin,view:this}})}onOpen(){return this.reload(),super.onOpen()}};p();var ym=class{constructor(e,r){this.statusBarEl=e;this.plugin=r;this.statusBarEl.addClass("mod-clickable"),this.statusBarEl.onClickEvent(n=>{this.plugin.switchBranch().catch(i=>r.displayError(i))})}async display(){if(this.plugin.gitReady){let e=await this.plugin.gitManager.branchInfo();e.current!=null?this.statusBarEl.setText(e.current):this.statusBarEl.empty()}else this.statusBarEl.empty()}remove(){this.statusBarEl.remove()}};p();var AD=require("obsidian");var bm=class{constructor(e){this.plugin=e}get editor(){var n;let e=(n=this.plugin.app.workspace.activeEditor)==null?void 0:n.editor,r=e==null?void 0:e.cm;if(!(!e||!Gn.hasHunksData(r.state)))return{editor:r,obEditor:e}}get gitManager(){return this.plugin.gitManager}resetHunk(e){if(!this.editor)return;let{editor:r,obEditor:n}=this.editor,i=Gn.getHunk(r.state,!1,e);if(i){let s,a;i.type==="delete"?(s=i.added.start+1,a=i.added.start+1):(s=i.added.start-0,a=i.added.start-1+i.added.count);let o=r.state.doc.line(s).from,l=i.type==="delete"?r.state.doc.line(a).from:r.state.doc.line(a).to+1,c=i.removed.lines.join(` +${e.log.message}`}]),ae(t,o),ot()}Et(["click"]);var d7=fe("
"),h7=fe("
"),p7={hash:"svelte-12n6twc",code:""};function Rb(t,e){at(e,!0),ti(t,p7);let r=Pn(e,"plugin",15),n=Me(!1),i=Ye([]),s=Me(void 0),a=Me(Ye(r().settings.treeStructure)),o;sr(()=>{o&&o.empty()}),ho(()=>{e.view.registerEvent(e.view.app.workspace.on("obsidian-git:head-change",()=>void c().catch(console.error)))}),sr(()=>{i.forEach(x=>(0,Pb.setIcon)(x,x.getAttr("data-icon")))}),ho(()=>{let x=new IntersectionObserver(A=>{A[0].isIntersecting&&!R(n)&&u().catch(console.error)}),E=document.querySelector("#sentinel");return E&&x.observe(E),()=>{x.disconnect()}}),c().catch(console.error);function l(){c().catch(console.error)}function c(){return po(this,void 0,void 0,function*(){var x;if(!r().gitReady){se(s,void 0);return}se(n,!0);let E=r().gitManager instanceof Se,A;((x=R(s)===null||R(s)===void 0?void 0:R(s).length)!==null&&x!==void 0?x:0)==0?A=E?50:10:A=R(s).length,se(s,yield r().gitManager.log(void 0,!1,A),!0),se(n,!1)})}function u(){return po(this,void 0,void 0,function*(){var x;if(!r().gitReady||R(s)===void 0)return;se(n,!0);let A=r().gitManager instanceof Se?50:10,y=yield r().gitManager.log(void 0,!1,A,(x=R(s).last())===null||x===void 0?void 0:x.hash);R(s).push(...y.slice(1)),se(n,!1)})}var f=h7(),d=j(f),h=j(d),m=j(h);m.__click=()=>{se(a,!R(a)),(0,Pb.setIcon)(i[0],R(a)?"list":"folder"),r(r().settings.treeStructure=R(a),!0),r().saveSettings()},it(m,x=>i[0]=x,()=>i==null?void 0:i[0]);var g=ee(m,2);let v;g.__click=l,it(g,x=>i[1]=x,()=>i==null?void 0:i[1]),G(h),G(d);var w=ee(d,2),b=j(w);{var k=x=>{var E=d7();un(E,21,()=>R(s),cn,(A,y)=>{Tb(A,{get view(){return e.view},get showTree(){return R(a)},get log(){return R(y)},get plugin(){return r()}})}),G(E),ae(x,E)};Ae(b,x=>{R(s)&&x(k)})}Xa(4),G(w),G(f),Ne(()=>{_e(m,"data-icon",R(a)?"list":"folder"),v=ft(g,1,"clickable-icon nav-action-button",null,v,{loading:R(n)})}),ae(t,f),ot()}Et(["click"]);var Ef=class extends _D.ItemView{constructor(e,r){super(e),this.plugin=r,this.hoverPopover=null}getViewType(){return gn.type}getDisplayText(){return gn.name}getIcon(){return gn.icon}onClose(){return this._view&&hs(this._view),super.onClose()}reload(){this._view&&hs(this._view),this._view=ia(Rb,{target:this.contentEl,props:{plugin:this.plugin,view:this}})}onOpen(){return this.reload(),super.onOpen()}};p();var xD=require("obsidian"),vm=class extends xD.FuzzySuggestModal{constructor(r,n){super(r.app);this.branches=n;this.setPlaceholder("选择要检出的分支")}getItems(){return this.branches}getItemText(r){return r}onChooseItem(r,n){this.resolve(r)}openAndGetReslt(){return new Promise(r=>{this.resolve=r,this.open()})}onClose(){new Promise(r=>setTimeout(r,10)).then(()=>{this.resolve&&this.resolve(void 0)})}};p();var kD=require("obsidian");p();var vo=require("obsidian");p();var kf=require("obsidian");p();var SD=require("obsidian");var vc=class extends SD.Modal{constructor({app:r,path:n,filesToDeleteCount:i,filesToDiscardCount:s}){super(r);this.resolve=null;this.path=n,this.deleteCount=i,this.discardCount=s}openAndGetResult(){return this.open(),new Promise(r=>{this.resolve=r})}onOpen(){let r=this.deleteCount+this.discardCount,{contentEl:n,titleEl:i}=this,s="";this.path!=""&&(r>1?s=`files in "${this.path}"`:s=`"${this.path}"`),i.setText(`${this.discardCount==0?"Delete":"Discard"} ${s}`),this.deleteCount>0&&n.createEl("p").setText(`Are you sure you want to DELETE the ${Pu(this.deleteCount,"untracked file")}? They are deleted according to your Obsidian trash settting.`),this.discardCount>0&&n.createEl("p").setText(`Are you sure you want to discard ALL changes in ${Pu(this.discardCount,"tracked file")}?`);let a=n.createDiv({cls:"modal-button-container"});if(this.deleteCount>0){let l=a.createEl("button",{cls:"mod-warning",text:`${this.discardCount>0?"Discard":"Delete"} all ${Pu(r,"file")}`});l.addEventListener("click",()=>{this.resolve&&this.resolve("delete"),this.close()}),l.addEventListener("keypress",()=>{this.resolve&&this.resolve("delete"),this.close()})}if(this.discardCount>0){let l=a.createEl("button",{cls:"mod-warning",text:`Discard all ${Pu(this.discardCount,"tracked file")}`});l.addEventListener("click",()=>{this.resolve&&this.resolve("discard"),this.close()}),l.addEventListener("keypress",()=>{this.resolve&&this.resolve("discard"),this.close()})}let o=a.createEl("button",{text:"取消"});o.addEventListener("click",()=>(this.resolve&&this.resolve(!1),this.close())),o.addEventListener("keypress",()=>(this.resolve&&this.resolve(!1),this.close()))}onClose(){let{contentEl:r}=this;r.empty()}};var m7=fe("
"),g7=fe("
");function Af(t,e){at(e,!0);let r=Ye([]),n=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");sr(()=>{for(let A of r)A&&(0,kf.setIcon)(A,A.getAttr("data-icon"))});function i(A){A.stopPropagation(),ml(e.change.path)?a(A):l(A)}function s(A){e.view.app.vault.getAbstractFileByPath(e.change.vaultPath)&&vl(e.view.app,A,e.view,e.change.vaultPath)}function a(A){var y;A.stopPropagation();let S=e.view.app.vault.getAbstractFileByPath(e.change.vaultPath);S instanceof kf.TFile&&((y=Bn(e.view.app,A))===null||y===void 0||y.openFile(S).catch(_=>e.view.plugin.displayError(_)))}function o(A){A.stopPropagation(),e.manager.stage(e.change.path,!1).catch(y=>e.view.plugin.displayError(y)).finally(()=>{e.view.app.workspace.trigger("obsidian-git:refresh")})}function l(A){A.stopPropagation(),e.view.plugin.tools.openDiff({aFile:e.change.path,aRef:"",event:A})}function c(A){A.stopPropagation();let y=e.change.workingDir=="U";new vc({app:e.view.app,filesToDeleteCount:y?1:0,filesToDiscardCount:y?0:1,path:e.change.vaultPath}).openAndGetResult().then(S=>po(this,void 0,void 0,function*(){if(S=="delete"){let _=e.view.app.vault.getAbstractFileByPath(e.change.vaultPath);_ instanceof kf.TFile?yield e.view.app.fileManager.trashFile(_):yield e.view.app.vault.adapter.remove(e.change.vaultPath)}else S=="discard"&&(yield e.manager.discard(e.change.path).finally(()=>{e.view.app.workspace.trigger("obsidian-git:refresh")}));e.view.app.workspace.trigger("obsidian-git:refresh")}),S=>e.view.plugin.displayError(S))}var u=g7();u.__mouseover=s,u.__click=i;var f=j(u),d=j(f),h=j(d,!0);G(d);var m=ee(d,2),g=j(m),v=j(g);{var w=A=>{var y=m7();y.__click=a,it(y,S=>r[0]=S,()=>r==null?void 0:r[0]),on("auxclick",y,a),ae(A,y)};Ae(v,A=>{gl(e.change.vaultPath,e.view.app)&&A(w)})}var b=ee(v,2);b.__click=c,it(b,A=>r[1]=A,()=>r==null?void 0:r[1]);var k=ee(b,2);k.__click=o,it(k,A=>r[2]=A,()=>r==null?void 0:r[2]),G(g);var x=ee(g,2),E=j(x,!0);G(x),G(m),G(f),G(u),Ne(A=>{_e(f,"data-path",e.change.vaultPath),_e(f,"data-tooltip-position",R(n)),_e(f,"aria-label",e.change.vaultPath),He(h,A),_e(x,"data-type",e.change.workingDir),He(E,e.change.workingDir)},[()=>vi(e.change.vaultPath)]),on("auxclick",u,A=>{A.stopPropagation(),A.button==2?gi(e.view.app,A,e.change.vaultPath,e.view.leaf,"git-source-control"):i(A)}),ae(t,u),ot()}Et(["mouseover","click"]);p();var ED=require("obsidian");var v7=fe("
");function Cf(t,e){at(e,!0);let r=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");function n(d){e.view.app.vault.getAbstractFileByPath(e.change.vaultPath)&&vl(e.view.app,d,e.view,e.change.vaultPath)}function i(d){var h;d.stopPropagation();let m=e.view.app.vault.getAbstractFileByPath(e.change.vaultPath);m instanceof ED.TFile&&((h=Bn(e.view.app,d))===null||h===void 0||h.openFile(m).catch(g=>e.view.plugin.displayError(g)))}var s=v7();s.__mouseover=n,s.__click=i;var a=j(s),o=j(a),l=j(o,!0);G(o);var c=ee(o,2),u=j(c),f=j(u,!0);G(u),G(c),G(a),G(s),Ne(d=>{_e(a,"data-path",e.change.vaultPath),_e(a,"data-tooltip-position",R(r)),_e(a,"aria-label",e.change.vaultPath),He(l,d),_e(u,"data-type",e.change.workingDir),He(f,e.change.workingDir)},[()=>vi(e.change.vaultPath)]),on("auxclick",s,d=>{d.stopPropagation(),d.button==2?gi(e.view.app,d,e.change.vaultPath,e.view.leaf,"git-source-control"):i(d)}),ae(t,s),ot()}Et(["mouseover","click"]);p();var wm=require("obsidian");var w7=fe("
"),y7=fe("
");function Tf(t,e){at(e,!0);let r=Ye([]),n=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");sr(()=>{for(let x of r)x&&(0,wm.setIcon)(x,x.getAttr("data-icon"))});function i(x){x.stopPropagation(),ml(e.change.path)?a(x):o(x)}function s(x){e.view.app.vault.getFileByPath(e.change.vaultPath)&&vl(e.view.app,x,e.view,e.change.vaultPath)}function a(x){var E;x.stopPropagation();let A=e.view.app.vault.getAbstractFileByPath(e.change.vaultPath);A instanceof wm.TFile&&((E=Bn(e.view.app,x))===null||E===void 0||E.openFile(A).catch(y=>e.view.plugin.displayError(y)))}function o(x){var E;x.stopPropagation(),e.view.plugin.tools.openDiff({aFile:(E=e.change.from)!==null&&E!==void 0?E:e.change.path,bFile:e.change.path,aRef:"HEAD",bRef:"",event:x})}function l(x){x.stopPropagation(),e.manager.unstage(e.change.path,!1).catch(E=>e.view.plugin.displayError(E)).finally(()=>{e.view.app.workspace.trigger("obsidian-git:refresh")})}var c=y7();c.__mouseover=s,c.__click=i;var u=j(c),f=j(u),d=j(f,!0);G(f);var h=ee(f,2),m=j(h),g=j(m);{var v=x=>{var E=w7();E.__click=a,it(E,A=>r[0]=A,()=>r==null?void 0:r[0]),ae(x,E)};Ae(g,x=>{gl(e.change.vaultPath,e.view.app)&&x(v)})}var w=ee(g,2);w.__click=l,it(w,x=>r[1]=x,()=>r==null?void 0:r[1]),G(m);var b=ee(m,2),k=j(b,!0);G(b),G(h),G(u),G(c),Ne(x=>{_e(u,"data-path",e.change.vaultPath),_e(u,"data-tooltip-position",R(n)),_e(u,"aria-label",e.change.vaultPath),He(d,x),_e(b,"data-type",e.change.index),He(k,e.change.index)},[()=>vi(e.change.vaultPath)]),on("auxclick",c,x=>{x.stopPropagation(),x.button==2?gi(e.view.app,x,e.change.vaultPath,e.view.leaf,"git-source-control"):i(x)}),ae(t,c),ot()}Et(["mouseover","click"]);p();p();var b7=fe("
"),_7=fe("
");function mo(t,e){at(e,!0);var r=_7(),n=j(r);{var i=s=>{var a=b7(),o=j(a),l=j(o),c=j(l,!0);G(l),G(o),G(a),Ne(()=>{_e(o,"aria-label","And "+(e.files.length-500)+" more files"),He(c,"And "+(e.files.length-500)+" more files")}),ae(s,a)};Ae(n,s=>{e.files.length>500&&s(i)})}G(r),ae(t,r),ot()}var S7=fe("
"),E7=fe("
"),k7=fe("
",1),A7=fe("
"),C7=fe("
"),T7=fe("
");function go(t,e){at(e,!0);let r=Pn(e,"topLevel",3,!1),n=Pn(e,"closed",15);ho(()=>{var h,m;for(let g of e.hierarchy.children)((m=(h=g.children)===null||h===void 0?void 0:h.length)!==null&&m!==void 0?m:0)>100&&n(n()[g.title]=!0,!0)});let i=St(()=>e.view.leaf.getRoot().side=="left"?"right":"left");function s(h,m){h.stopPropagation(),e.plugin.gitManager.stageAll({dir:m}).catch(g=>e.plugin.displayError(g)).finally(()=>{e.view.app.workspace.trigger("obsidian-git:refresh")})}function a(h,m){h.stopPropagation(),e.plugin.gitManager.unstageAll({dir:m}).catch(g=>e.plugin.displayError(g)).finally(()=>{e.view.app.workspace.trigger("obsidian-git:refresh")})}function o(h,m){h.stopPropagation(),e.plugin.discardAll(m.vaultPath)}function l(h,m){h.stopPropagation(),n(n()[m.path]=!n()[m.path],!0)}var c=T7();let u;var f=j(c);un(f,17,()=>Ru(e.hierarchy.children,500),cn,(h,m)=>{var g=ds(),v=qr(g);{var w=k=>{var x=S7(),E=j(x);{var A=S=>{Tf(S,{get change(){return R(m).data},get manager(){return e.plugin.gitManager},get view(){return e.view}})},y=S=>{var _=ds(),C=qr(_);{var P=B=>{Af(B,{get change(){return R(m).data},get manager(){return e.plugin.gitManager},get view(){return e.view}})},N=B=>{var H=ds(),ce=qr(H);{var Pe=ve=>{Cf(ve,{get change(){return R(m).data},get view(){return e.view}})};Ae(ce,ve=>{e.fileType==2&&ve(Pe)},!0)}ae(B,H)};Ae(C,B=>{e.fileType==1?B(P):B(N,!1)},!0)}ae(S,_)};Ae(E,S=>{e.fileType==0?S(A):S(y,!1)})}G(x),ae(k,x)},b=k=>{var x=C7();let E;var A=j(x);A.__click=ie=>l(ie,R(m));var y=ee(j(A),2);let S;var _=ee(y,2),C=j(_,!0);G(_);var P=ee(_,2),N=j(P),B=j(N);{var H=ie=>{var xe=E7();xe.__click=we=>a(we,R(m).path),ae(ie,xe)},ce=ie=>{var xe=k7(),we=qr(xe);we.__click=X=>o(X,R(m));var W=ee(we,2);W.__click=X=>s(X,R(m).path),ae(ie,xe)};Ae(B,ie=>{e.fileType==0?ie(H):ie(ce,!1)})}Xa(2),G(N),G(P),G(A);var Pe=ee(A,2);{var ve=ie=>{var xe=A7(),we=j(xe);go(we,{get hierarchy(){return R(m)},get plugin(){return e.plugin},get view(){return e.view},get fileType(){return e.fileType},get closed(){return n()},set closed(W){n(W)}}),G(xe),ei(3,xe,()=>Ni,()=>({duration:150})),ae(ie,xe)};Ae(Pe,ie=>{n()[R(m).path]||ie(ve)})}G(x),Ne(()=>{E=ft(x,1,"tree-item nav-folder",null,E,{"is-collapsed":n()[R(m).path]}),_e(A,"data-tooltip-position",R(i)),_e(A,"aria-label",R(m).vaultPath),S=ft(y,1,"tree-item-icon nav-folder-collapse-indicator collapse-icon",null,S,{"is-collapsed":n()[R(m).path]}),He(C,R(m).title)}),on("auxclick",x,ie=>gi(e.view.app,ie,R(m).vaultPath,e.view.leaf,"git-source-control")),ae(k,x)};Ae(v,k=>{R(m).data?k(w):k(b,!1)})}ae(h,g)});var d=ee(f,2);mo(d,{get files(){return e.hierarchy.children}}),G(c),Ne(()=>u=ft(c,1,"",null,u,{topLevel:r()})),ae(t,c),ot()}Et(["click"]);var P7=fe("
"),R7=fe(" ",1),$7=fe("
"),I7=fe(" ",1),F7=fe("
"),O7=fe(" ",1),M7=fe("
"),D7=fe("
Recently Pulled Files
"),L7=fe("
Staged Changes
Changes
"),N7=fe("
"),B7={hash:"svelte-5wq9p",code:`.commit-msg-input.svelte-5wq9p {width:100%;overflow:hidden;resize:none;padding:7px 5px;background-color:var(--background-modifier-form-field);}.git-commit-msg.svelte-5wq9p {position:relative;padding:0;width:calc(100% - var(--size-4-8));margin:4px auto;}main.svelte-5wq9p .git-tools:where(.svelte-5wq9p) .files-count:where(.svelte-5wq9p) {padding-left:var(--size-2-1);width:11px;display:flex;align-items:center;justify-content:center;}.nav-folder-title.svelte-5wq9p {align-items:center;}.git-commit-msg-clear-button.svelte-5wq9p {position:absolute;background:transparent;border-radius:50%;color:var(--search-clear-button-color);cursor:var(--cursor);top:-4px;right:2px;bottom:0px;line-height:0;height:var(--input-height);width:28px;margin:auto;padding:0 0;text-align:center;display:flex;justify-content:center;align-items:center;transition:color 0.15s ease-in-out;}.git-commit-msg-clear-button.svelte-5wq9p:after {content:"";height:var(--search-clear-button-size);width:var(--search-clear-button-size);display:block;background-color:currentColor;mask-image:url("data:image/svg+xml,");mask-repeat:no-repeat;-webkit-mask-image:url("data:image/svg+xml,");-webkit-mask-repeat:no-repeat;}`};function $b(t,e){at(e,!0),ti(t,B7);let r=Pn(e,"plugin",7),n=Pn(e,"view",7),i=Me(!1),s=Me(void 0),a=Me(Ye([])),o=St(()=>r().settings.commitMessage),l=Ye([]),c=Me(void 0),u=Me(void 0),f=Me(void 0),d=Me(!0),h=Me(!0),m=Me(!0),g=Me(0),v=Me(Ye({})),w=Me(Ye({})),b=Me(Ye({})),k=St(()=>r().settings.treeStructure);ho(()=>{n().registerEvent(n().app.workspace.on("obsidian-git:loading-status",()=>se(i,!0))),n().registerEvent(n().app.workspace.on("obsidian-git:status-changed",()=>void A().catch(console.error))),n().plugin.cachedStatus==null?n().plugin.refresh().catch(console.error):A().catch(console.error),n().scope=new vo.Scope(r().app.scope),n().scope.register(["Ctrl"],"Enter",O=>E())}),sr(()=>{l.forEach(O=>(0,vo.setIcon)(O,O.getAttr("data-icon")))}),sr(()=>{l.forEach(O=>{var oe,Ce;!O||O.id!="push"||(vo.Platform.isMobile?(O.removeClass("button-border"),R(g)>0&&O.addClass("button-border")):((oe=O.firstElementChild)===null||oe===void 0||oe.removeAttribute("color"),R(g)>0&&((Ce=O.firstElementChild)===null||Ce===void 0||Ce.setAttr("color","var(--text-accent)"))))})});function x(){if(se(i,!0),R(s)){let O=R(s).staged.length>0;r().promiseQueue.addTask(()=>r().commit({fromAuto:!1,commitMessage:R(o),onlyStaged:O}).then(()=>se(o,r().settings.commitMessage)).finally(y))}}function E(){if(se(i,!0),R(s)){let O=R(s).staged.length>0;r().promiseQueue.addTask(()=>r().commitAndSync({fromAutoBackup:!1,commitMessage:R(o),onlyStaged:O}).then(()=>{se(o,r().settings.commitMessage)}).finally(y))}}function A(){return po(this,void 0,void 0,function*(){if(!r().gitReady){se(s,void 0);return}if(se(g,yield r().gitManager.getUnpushedCommits(),!0),se(s,r().cachedStatus,!0),se(i,!1),r().lastPulledFiles&&r().lastPulledFiles!=R(a)&&(se(a,r().lastPulledFiles,!0),se(f,{title:"",path:"",vaultPath:"",children:r().gitManager.getTreeStructure(R(a))},!0)),R(s)){let O=(oe,Ce)=>oe.vaultPath.split("/").last().localeCompare(vi(Ce.vaultPath));R(s).changed.sort(O),R(s).staged.sort(O),se(c,{title:"",path:"",vaultPath:"",children:r().gitManager.getTreeStructure(R(s).changed)},!0),se(u,{title:"",path:"",vaultPath:"",children:r().gitManager.getTreeStructure(R(s).staged)},!0)}else se(c,void 0),se(u,void 0)})}function y(){n().app.workspace.trigger("obsidian-git:refresh")}function S(O){O.stopPropagation(),se(i,!0),r().promiseQueue.addTask(()=>r().gitManager.stageAll({status:R(s)}).finally(y))}function _(O){O.stopPropagation(),se(i,!0),r().promiseQueue.addTask(()=>r().gitManager.unstageAll({status:R(s)}).finally(y))}function C(){se(i,!0),r().promiseQueue.addTask(()=>r().push().finally(y))}function P(){se(i,!0),r().promiseQueue.addTask(()=>r().pullChangesFromRemote().finally(y))}function N(O){O.stopPropagation(),r().discardAll()}let B=St(()=>(R(o).match(/\n/g)||[]).length+1||1);var H=N7(),ce=j(H),Pe=j(ce),ve=j(Pe);ve.__click=E,it(ve,O=>l[0]=O,()=>l==null?void 0:l[0]);var ie=ee(ve,2);ie.__click=x,it(ie,O=>l[1]=O,()=>l==null?void 0:l[1]);var xe=ee(ie,2);xe.__click=S,it(xe,O=>l[2]=O,()=>l==null?void 0:l[2]);var we=ee(xe,2);we.__click=_,it(we,O=>l[3]=O,()=>l==null?void 0:l[3]);var W=ee(we,2);W.__click=C,it(W,O=>l[4]=O,()=>l==null?void 0:l[4]);var X=ee(W,2);X.__click=P,it(X,O=>l[5]=O,()=>l==null?void 0:l[5]);var q=ee(X,2);q.__click=()=>{se(k,!R(k)),(0,vo.setIcon)(l[6],R(k)?"list":"folder"),r().settings.treeStructure=R(k),r().saveSettings()},it(q,O=>l[6]=O,()=>l==null?void 0:l[6]);var De=ee(q,2);let ar;De.__click=y,it(De,O=>l[7]=O,()=>l==null?void 0:l[7]),G(Pe),G(ce);var Ft=ee(ce,2),Ie=j(Ft);sb(Ie);var kt=ee(Ie,2);{var At=O=>{var oe=P7();oe.__click=()=>se(o,""),_e(oe,"aria-label","Clear"),ae(O,oe)};Ae(kt,O=>{R(o)&&O(At)})}G(Ft);var je=ee(Ft,2),Z=j(je);{var M=O=>{var oe=L7(),Ce=j(oe);let Ot;var wr=j(Ce);wr.__click=()=>se(h,!R(h));var bo=j(wr);let Db;var Lb=ee(bo,4),$m=j(Lb),Nb=j($m);Nb.__click=_,it(Nb,or=>l[8]=or,()=>l==null?void 0:l[8]),G($m);var Bb=ee($m,2),OD=j(Bb,!0);G(Bb),G(Lb),G(wr);var MD=ee(wr,2);{var DD=or=>{var yr=$7(),_o=j(yr);{var vs=lr=>{go(lr,{get hierarchy(){return R(u)},get plugin(){return r()},get view(){return n()},get fileType(){return 0},topLevel:!0,get closed(){return R(v)},set closed($n){se(v,$n,!0)}})},xo=lr=>{var $n=R7(),aa=qr($n);un(aa,17,()=>Ru(R(s).staged,500),cn,(ws,yc)=>{Tf(ws,{get change(){return R(yc)},get view(){return n()},get manager(){return r().gitManager}})});var oa=ee(aa,2);mo(oa,{get files(){return R(s).staged}}),ae(lr,$n)};Ae(_o,lr=>{R(k)?lr(vs):lr(xo,!1)})}G(yr),ei(3,yr,()=>Ni,()=>({duration:150})),ae(or,yr)};Ae(MD,or=>{R(h)&&or(DD)})}G(Ce);var Rf=ee(Ce,2);let Hb;var $f=j(Rf);$f.__click=()=>se(d,!R(d));var Ub=j($f);let Gb;var jb=ee(Ub,4),Im=j(jb),qb=j(Im);qb.__click=N;var Wb=ee(qb,2);Wb.__click=S,it(Wb,or=>l[9]=or,()=>l==null?void 0:l[9]),G(Im);var zb=ee(Im,2),LD=j(zb,!0);G(zb),G(jb),G($f);var ND=ee($f,2);{var BD=or=>{var yr=F7(),_o=j(yr);{var vs=lr=>{go(lr,{get hierarchy(){return R(c)},get plugin(){return r()},get view(){return n()},get fileType(){return 1},topLevel:!0,get closed(){return R(w)},set closed($n){se(w,$n,!0)}})},xo=lr=>{var $n=I7(),aa=qr($n);un(aa,17,()=>Ru(R(s).changed,500),cn,(ws,yc)=>{Af(ws,{get change(){return R(yc)},get view(){return n()},get manager(){return r().gitManager}})});var oa=ee(aa,2);mo(oa,{get files(){return R(s).changed}}),ae(lr,$n)};Ae(_o,lr=>{R(k)?lr(vs):lr(xo,!1)})}G(yr),ei(3,yr,()=>Ni,()=>({duration:150})),ae(or,yr)};Ae(ND,or=>{R(d)&&or(BD)})}G(Rf);var HD=ee(Rf,2);{var UD=or=>{var yr=D7();let _o;var vs=j(yr);vs.__click=()=>se(m,!R(m));var xo=ee(j(vs),4),lr=j(xo,!0);G(xo),G(vs);var $n=ee(vs,2);{var aa=oa=>{var ws=M7(),yc=j(ws);{var GD=So=>{go(So,{get hierarchy(){return R(f)},get plugin(){return r()},get view(){return n()},get fileType(){return 2},topLevel:!0,get closed(){return R(b)},set closed(If){se(b,If,!0)}})},jD=So=>{var If=O7(),Vb=qr(If);un(Vb,17,()=>R(a),cn,(WD,zD)=>{Cf(WD,{get change(){return R(zD)},get view(){return n()}})});var qD=ee(Vb,2);mo(qD,{get files(){return R(a)}}),ae(So,If)};Ae(yc,So=>{R(k)?So(GD):So(jD,!1)})}G(ws),ei(3,ws,()=>Ni,()=>({duration:150})),ae(oa,ws)};Ae($n,oa=>{R(m)&&oa(aa)})}G(yr),Ne(()=>{_o=ft(yr,1,"pulled nav-folder",null,_o,{"is-collapsed":!R(m)}),He(lr,R(a).length)}),ae(or,yr)};Ae(HD,or=>{R(a).length>0&&R(f)&&or(UD)})}G(oe),Ne(()=>{Ot=ft(Ce,1,"staged tree-item nav-folder",null,Ot,{"is-collapsed":!R(h)}),Db=ft(bo,1,"tree-item-icon nav-folder-collapse-indicator collapse-icon",null,Db,{"is-collapsed":!R(h)}),He(OD,R(s).staged.length),Hb=ft(Rf,1,"changes tree-item nav-folder",null,Hb,{"is-collapsed":!R(d)}),Gb=ft(Ub,1,"tree-item-icon nav-folder-collapse-indicator collapse-icon",null,Gb,{"is-collapsed":!R(d)}),He(LD,R(s).changed.length)}),ae(O,oe)};Ae(Z,O=>{R(s)&&R(u)&&R(c)&&O(M)})}G(je),G(H),Ne(()=>{_e(H,"data-type",jt.type),_e(q,"data-icon",R(k)?"list":"folder"),ar=ft(De,1,"clickable-icon nav-action-button",null,ar,{loading:R(i)}),_e(Ie,"rows",R(B))}),_b(Ie,()=>R(o),O=>se(o,O)),ae(t,H),ot()}Et(["click"]);var Pf=class extends kD.ItemView{constructor(e,r){super(e),this.plugin=r,this.hoverPopover=null}getViewType(){return jt.type}getDisplayText(){return jt.name}getIcon(){return jt.icon}onClose(){return this._view&&hs(this._view),super.onClose()}reload(){this._view&&hs(this._view),this._view=ia($b,{target:this.contentEl,props:{plugin:this.plugin,view:this}})}onOpen(){return this.reload(),super.onOpen()}};p();var ym=class{constructor(e,r){this.statusBarEl=e;this.plugin=r;this.statusBarEl.addClass("mod-clickable"),this.statusBarEl.onClickEvent(n=>{this.plugin.switchBranch().catch(i=>r.displayError(i))})}async display(){if(this.plugin.gitReady){let e=await this.plugin.gitManager.branchInfo();e.current!=null?this.statusBarEl.setText(e.current):this.statusBarEl.empty()}else this.statusBarEl.empty()}remove(){this.statusBarEl.remove()}};p();var AD=require("obsidian");var bm=class{constructor(e){this.plugin=e}get editor(){var n;let e=(n=this.plugin.app.workspace.activeEditor)==null?void 0:n.editor,r=e==null?void 0:e.cm;if(!(!e||!Gn.hasHunksData(r.state)))return{editor:r,obEditor:e}}get gitManager(){return this.plugin.gitManager}resetHunk(e){if(!this.editor)return;let{editor:r,obEditor:n}=this.editor,i=Gn.getHunk(r.state,!1,e);if(i){let s,a;i.type==="delete"?(s=i.added.start+1,a=i.added.start+1):(s=i.added.start-0,a=i.added.start-1+i.added.count);let o=r.state.doc.line(s).from,l=i.type==="delete"?r.state.doc.line(a).from:r.state.doc.line(a).to+1,c=i.removed.lines.join(` `);i.removed.lines.length>0&&!i.removed.no_nl_at_eof&&(c+=` -`),n.replaceRange(c,n.offsetToPos(o),n.offsetToPos(l)),n.setSelection(n.offsetToPos(o))}}async stageHunk(e){if(!await this.plugin.isAllInitialized()||!this.editor)return;let{editor:r}=this.editor,n=Gn.getHunk(r.state,!1,e),i=!1;if(n||(n=Gn.getHunk(r.state,!0,e),i=!0),!n)return;let s=r.state.field(AD.editorInfoField).file.path,a=Nt.createPatch(s,[n],"100644",i).join(` +`),n.replaceRange(c,n.offsetToPos(o),n.offsetToPos(l)),n.setSelection(n.offsetToPos(o))}}async stageHunk(e){if(!(await this.plugin.isAllInitialized())||!this.editor)return;let{editor:r}=this.editor,n=Gn.getHunk(r.state,!1,e),i=!1;if(n||(n=Gn.getHunk(r.state,!0,e),i=!0),!n)return;let s=r.state.field(AD.editorInfoField).file.path,a=Nt.createPatch(s,[n],"100644",i).join(` `)+` -`;await this.gitManager.applyPatch(a),this.plugin.app.workspace.trigger("obsidian-git:refresh")}goToHunk(e){if(!this.editor)return;let{editor:r,obEditor:n}=this.editor,i=Gn.getHunks(r.state,!1),s=n.getCursor().line+1,a=Nt.findNearestHunk(s,i,e,!0);if(a==null)return;let o=i[a];if(o){let l=o.added.start-1;n.setCursor(l,0),n.scrollIntoView({from:{line:l,ch:0},to:{line:l+1,ch:0}},!0)}}};p();p();var wo=require("obsidian");var _m=class{constructor(e){this.plg=e;this.codeMirrorExtensions=[];this.handleWorkspaceLeaf=e=>{if(!this.lineAuthorInfoProvider){console.warn("Git: undefined lineAuthorInfoProvider. Unexpected situation.");return}let r=e==null?void 0:e.view;!(r instanceof wo.MarkdownView)||r.file==null||(r==null?void 0:r.allowNoFile)===!0||this.lineAuthorInfoProvider.trackChanged(r.file).catch(console.error)}}onLoadPlugin(){this.plg.registerEditorExtension(this.codeMirrorExtensions),cF(()=>this.plg.settings.lineAuthor,e=>{this.plg.settings.lineAuthor=e,this.plg.saveSettings()})}conditionallyActivateBySettings(){this.plg.settings.lineAuthor.show&&this.activateFeature()}activateFeature(){try{if(!this.isAvailableOnCurrentPlatform().available)return;yF(this.plg.settings.lineAuthor),this.lineAuthorInfoProvider=new ap(this.plg),this.createEventHandlers(),this.activateCodeMirrorExtensions(),console.log(this.plg.manifest.name+": 启用行作者功能。")}catch(e){console.warn("Git: Error while loading line authoring feature.",e),this.deactivateFeature()}}deactivateFeature(){var e;this.destroyEventHandlers(),this.deactivateCodeMirrorExtensions(),(e=this.lineAuthorInfoProvider)==null||e.destroy(),this.lineAuthorInfoProvider=void 0,console.log(this.plg.manifest.name+": 禁用行作者功能。")}isAvailableOnCurrentPlatform(){return{available:this.plg.useSimpleGit&&wo.Platform.isDesktopApp,gitManager:this.plg.gitManager instanceof Se?this.plg.gitManager:void 0}}refreshLineAuthorViews(){this.plg.settings.lineAuthor.show&&(this.deactivateFeature(),this.activateFeature())}activateCodeMirrorExtensions(){this.codeMirrorExtensions.push(RF),this.plg.app.workspace.updateOptions(),this.plg.app.workspace.iterateAllLeaves(this.handleWorkspaceLeaf)}deactivateCodeMirrorExtensions(){for(let e of this.codeMirrorExtensions)this.codeMirrorExtensions.remove(e);this.plg.app.workspace.updateOptions()}createEventHandlers(){this.gutterContextMenuEvent=this.createGutterContextMenuHandler(),this.fileOpenEvent=this.createFileOpenEvent(),this.workspaceLeafChangeEvent=this.createWorkspaceLeafChangeEvent(),this.fileModificationEvent=this.createVaultFileModificationHandler(),this.headChangeEvent=this.createHeadChangeEvent(),this.refreshOnCssChangeEvent=this.createCssRefreshHandler(),this.fileRenameEvent=this.createFileRenameEvent(),pF(),this.plg.registerEvent(this.gutterContextMenuEvent),this.plg.registerEvent(this.refreshOnCssChangeEvent),this.plg.registerEvent(this.fileOpenEvent),this.plg.registerEvent(this.workspaceLeafChangeEvent),this.plg.registerEvent(this.fileModificationEvent),this.plg.registerEvent(this.headChangeEvent),this.plg.registerEvent(this.fileRenameEvent)}destroyEventHandlers(){this.plg.app.workspace.offref(this.gutterContextMenuEvent),this.plg.app.workspace.offref(this.refreshOnCssChangeEvent),this.plg.app.workspace.offref(this.fileOpenEvent),this.plg.app.workspace.offref(this.workspaceLeafChangeEvent),this.plg.app.workspace.offref(this.refreshOnCssChangeEvent),this.plg.app.vault.offref(this.fileModificationEvent),this.plg.app.workspace.offref(this.headChangeEvent),this.plg.app.vault.offref(this.fileRenameEvent)}createFileOpenEvent(){return this.plg.app.workspace.on("file-open",e=>{var r;return void((r=this.lineAuthorInfoProvider)==null?void 0:r.trackChanged(e).catch(console.error))})}createWorkspaceLeafChangeEvent(){return this.plg.app.workspace.on("active-leaf-change",this.handleWorkspaceLeaf)}createFileRenameEvent(){return this.plg.app.vault.on("rename",(e,r)=>{var n;return e instanceof wo.TFile&&((n=this.lineAuthorInfoProvider)==null?void 0:n.trackChanged(e))})}createVaultFileModificationHandler(){return this.plg.app.vault.on("modify",e=>{var r;return e instanceof wo.TFile&&((r=this.lineAuthorInfoProvider)==null?void 0:r.trackChanged(e))})}createHeadChangeEvent(){return this.plg.app.workspace.on("obsidian-git:head-change",()=>{this.refreshLineAuthorViews()})}createCssRefreshHandler(){return this.plg.app.workspace.on("css-change",()=>this.refreshLineAuthorViews())}createGutterContextMenuHandler(){return this.plg.app.workspace.on("editor-menu",vF)}};p();var wc=require("obsidian");p();p();var yo=require("@codemirror/state"),Sm=require("@codemirror/view");var xm=class extends Sm.GutterMarker{constructor(r,n){super();this.type=r;this.staged=n}toDOM(r){let n=document.createElement("div");return n.className=`git-gutter-marker git-${this.type} ${this.staged?"staged":"unstaged"}`,this.type=="changedelete"&&n.setText("~"),n}},Ib=yo.StateField.define({create:()=>yo.RangeSet.empty,update:(t,e)=>{let r=e.state.field($r,!1);if(!r)return yo.RangeSet.empty;let n=e.effects.some(s=>s.is(Vu)),i=e.effects.some(s=>s.is(Hl));if(n||i||(e.docChanged||t.size==0)&&r.isDirty==!1){let s=new Set,a=CD(e,r.hunks,!1,s),o=CD(e,r.stagedHunks,!0,s);return t=yo.RangeSet.of([...a,...o],!0),t}else e.docChanged&&(t=t.map(e.changes));return t}});function CD(t,e,r,n){let i=[];for(let a=0;a0?e[a-1]:void 0,l=a{var e;return(e=t.state.field(Ib,!1))!=null?e:yo.RangeSet.empty},initialSpacer:t=>new xm("delete",!1),domEventHandlers:{click:(t,e,r)=>{var i;return((i=Gn.getHunkAtPos(t.state,e.from,!1))!=null?i:Gn.getHunkAtPos(t.state,e.from,!0))&&(Xs(t,e.from),r.preventDefault()),!1}}});var Em=class{constructor(e){this.plugin=e}async trackChanged(e){return this.trackChangedHelper(e).catch(r=>(console.warn("Git: Error in trackChanged."+r),Promise.reject(r)))}async trackChangedHelper(e){if(e){if(e.path===void 0){console.warn("Git: Attempted to track change of undefined filepath. Unforeseen situation.");return}return this.computeSigns(e.path)}}destroy(){}async computeSigns(e){let n=await this.plugin.editorIntegration.lineAuthoringFeature.isAvailableOnCurrentPlatform().gitManager.show("",e).catch(()=>{});this.notifySignComputationResultToSubscribers(e,{compareText:n,compareTextHead:void 0})}notifySignComputationResultToSubscribers(e,r){es.ifFilepathDefinedTransformSubscribers(e,n=>n.forEach(i=>i.notifyGitCompare(r)))}},PD=[GO,jO,TD,Ib,Tp],RD=[$r,yy];p();var Fb=require("obsidian"),km=class{constructor(e,r){this.statusBarEl=e;this.plugin=r;e.addClass("git-changes-status-bar"),r.settings.hunks.statusBar==="colored"&&e.addClass("git-changes-status-bar-colored"),e.setAttr("aria-label","Git diff of the current editor"),this.statusBarEl.setAttribute("data-tooltip-position","top"),r.app.workspace.on("active-leaf-change",n=>{(!n||n.getRoot()==r.app.workspace.rootSplit&&!(n.view instanceof Fb.MarkdownView))&&this.statusBarEl.empty()})}display(e,r){var o;let n=this.plugin.app.workspace.getActiveViewOfType(Fb.MarkdownView);if(!n||((o=n.file)==null?void 0:o.path)!==(r==null?void 0:r.path))return;let i=0,s=0,a=0;for(let l of e)i+=Math.max(0,l.added.count-l.removed.count),s+=Math.min(l.added.count,l.removed.count),a+=Math.max(0,l.removed.count-l.added.count);this.statusBarEl.empty(),i>0&&this.statusBarEl.createSpan({text:`+${i} `,cls:"git-add"}),s>0&&this.statusBarEl.createSpan({text:`~${s} `,cls:"git-change"}),a>0&&this.statusBarEl.createSpan({text:`-${a}`,cls:"git-delete"})}remove(){this.statusBarEl.remove()}};var Am=class{constructor(e){this.plg=e;this.codeMirrorExtensions=[];this.handleWorkspaceLeaf=e=>{if(!this.signsProvider){console.warn("Git: undefined signsProvider. Unexpected situation.");return}let r=e==null?void 0:e.view;!(r instanceof wc.MarkdownView)||r.file==null||(r==null?void 0:r.allowNoFile)===!0||this.signsProvider.trackChanged(r.file).catch(console.error)}}onLoadPlugin(){this.plg.registerEditorExtension(this.codeMirrorExtensions)}conditionallyActivateBySettings(){(this.plg.settings.hunks.showSigns||this.plg.settings.hunks.statusBar!="disabled"||this.plg.settings.hunks.hunkCommands)&&this.activateFeature()}activateFeature(){try{if(!this.isAvailableOnCurrentPlatform().available)return;if(this.signsProvider=new Em(this.plg),this.createEventHandlers(),this.activateCodeMirrorExtensions(),this.plg.settings.hunks.statusBar!="disabled"){let e=this.plg.addStatusBarItem();this.changeStatusBar=new km(e,this.plg)}}catch(e){console.warn("Git: Error while loading signs feature.",e),this.deactivateFeature()}}deactivateFeature(){var e,r;this.destroyEventHandlers(),this.deactivateCodeMirrorExtensions(),(e=this.signsProvider)==null||e.destroy(),this.signsProvider=void 0,(r=this.changeStatusBar)==null||r.remove(),this.changeStatusBar=void 0}isAvailableOnCurrentPlatform(){return{available:this.plg.useSimpleGit&&wc.Platform.isDesktopApp,gitManager:this.plg.gitManager instanceof Se?this.plg.gitManager:void 0}}refresh(){this.plg.settings.hunks.showSigns&&this.plg.app.workspace.iterateAllLeaves(this.handleWorkspaceLeaf)}activateCodeMirrorExtensions(){this.codeMirrorExtensions.push(RD),this.plg.settings.hunks.showSigns&&this.codeMirrorExtensions.push(...PD),this.plg.app.workspace.updateOptions(),this.plg.app.workspace.iterateAllLeaves(this.handleWorkspaceLeaf)}deactivateCodeMirrorExtensions(){for(let e of this.codeMirrorExtensions)this.codeMirrorExtensions.remove(e);this.plg.app.workspace.updateOptions()}createEventHandlers(){this.workspaceLeafChangeEvent=this.createWorkspaceLeafChangeEvent(),this.fileRenameEvent=this.createFileRenameEvent(),this.pluginRefreshedEvent=this.createPluginRefreshedEvent(),this.intervalRefreshEvent=this.createIntervalRefreshEvent(),this.plg.registerEvent(this.workspaceLeafChangeEvent),this.plg.registerEvent(this.fileRenameEvent),this.plg.registerEvent(this.pluginRefreshedEvent),this.plg.registerInterval(this.intervalRefreshEvent)}destroyEventHandlers(){this.plg.app.workspace.offref(this.workspaceLeafChangeEvent),this.plg.app.vault.offref(this.fileRenameEvent),this.plg.app.workspace.offref(this.pluginRefreshedEvent),this.plg.app.workspace.offref(this.gutterContextMenuEvent),window.clearInterval(this.intervalRefreshEvent)}createWorkspaceLeafChangeEvent(){return this.plg.app.workspace.on("active-leaf-change",this.handleWorkspaceLeaf)}createFileRenameEvent(){return this.plg.app.vault.on("rename",(e,r)=>{var n;return es.ifFilepathDefinedTransformSubscribers(r,i=>i.forEach(s=>{s.changeToNewFilepath(e.path)})),e instanceof wc.TFile&&((n=this.signsProvider)==null?void 0:n.trackChanged(e))})}createPluginRefreshedEvent(){return this.plg.app.workspace.on("obsidian-git:refresh",()=>{this.refresh()})}createIntervalRefreshEvent(){return window.setInterval(()=>{var e,r;(e=this.plg.app.workspace.activeEditor)!=null&&e.file&&((r=this.signsProvider)==null||r.trackChanged(this.plg.app.workspace.activeEditor.file).catch(console.error))},10*1e3)}};p();var $D=require("@codemirror/state"),Cm=require("obsidian");var Ob=class{constructor(e){this.state=e;this.subscribeMe()}notifyLineAuthoring(e,r){if(this.view===void 0){console.warn(`Git: View is not defined for editor cache key. Unforeseen situation. id: ${e}`);return}let n=this.view.state,i=lF(e,r,n);this.view.dispatch(i)}notifyGitCompare(e){if(this.view===void 0){console.warn("Git: View is not defined for editor cache key. Unforeseen situation. id: ");return}if(this.removeIfStale())return;let r=this.view.state,n=r.field($r);if(!n||n.compareText!=e.compareText||n.compareTextHead!=e.compareTextHead){let i=_O(e,r);this.view.dispatch(i)}}updateToNewState(e){return this.state=e,!this.lastSeenPath&&this.filepath&&this.subscribeMe(),this}removeIfStale(){var e;return((e=this.view)==null?void 0:e.state.field(Mb,!1))!=this||this.view.destroyed?(this.unsubscribeMe(this.lastSeenPath),!0):!1}changeToNewFilepath(e){this.unsubscribeMe(this.lastSeenPath),this.subscribeMe(e)}subscribeMe(e){e!=null||(e=this.filepath),e!==void 0&&(es.ifFilepathDefinedTransformSubscribers(e,r=>r.add(this)),this.lastSeenPath=e)}unsubscribeMe(e){es.ifFilepathDefinedTransformSubscribers(e,r=>r.delete(this))}get filepath(){var e,r;return(r=(e=this.state.field(Cm.editorInfoField))==null?void 0:e.file)==null?void 0:r.path}get view(){return this.state.field(Cm.editorEditorField)}},Mb=$D.StateField.define({create:t=>new Ob(t),update:(t,e)=>t.updateToNewState(e.state),compare:(t,e)=>t===e});var Tm=class{constructor(e){this.plg=e;this.lineAuthoringFeature=new _m(this.plg);this.signsFeature=new Am(this.plg)}onUnloadPlugin(){this.lineAuthoringFeature.deactivateFeature(),this.signsFeature.deactivateFeature()}onLoadPlugin(){this.plg.registerEditorExtension(Mb),this.lineAuthoringFeature.onLoadPlugin(),this.signsFeature.onLoadPlugin()}onReady(){this.lineAuthoringFeature.conditionallyActivateBySettings(),this.signsFeature.conditionallyActivateBySettings()}activateLineAuthoring(){this.lineAuthoringFeature.activateFeature()}deactiveLineAuthoring(){this.lineAuthoringFeature.deactivateFeature()}refreshSignsSettings(){let e=this.plg.settings.hunks;e.showSigns||e.statusBar!="disabled"||e.hunkCommands?(this.signsFeature.deactivateFeature(),this.signsFeature.activateFeature()):this.signsFeature.deactivateFeature()}};var Pm=class extends be.Plugin{constructor(){super(...arguments);this.automaticsManager=new Gu(this);this.tools=new ef(this);this.localStorage=new Pp(this);this.state={gitAction:0,offlineMode:!1};this.gitReady=!1;this.promiseQueue=new Gd(this);this.intervalsToClear=[];this.editorIntegration=new Tm(this);this.hunkActions=new bm(this)}setPluginState(r){var n;this.state=Object.assign(this.state,r),(n=this.statusBar)==null||n.display()}async updateCachedStatus(){var r,n;return this.app.workspace.trigger("obsidian-git:loading-status"),this.cachedStatus=await this.gitManager.status(),this.cachedStatus.conflicted.length>0?(this.localStorage.setConflict(!0),await((r=this.branchBar)==null?void 0:r.display())):(this.localStorage.setConflict(!1),await((n=this.branchBar)==null?void 0:n.display())),this.app.workspace.trigger("obsidian-git:status-changed",this.cachedStatus),this.cachedStatus}async refresh(){if(!this.gitReady)return;let r=this.app.workspace.getLeavesOfType(jt.type),n=this.app.workspace.getLeavesOfType(gn.type);(this.settings.changedFilesInStatusBar||r.some(i=>{var s;return!((s=i.isDeferred)!=null&&s)})||n.some(i=>{var s;return!((s=i.isDeferred)!=null&&s)}))&&await this.updateCachedStatus().catch(i=>this.displayError(i)),this.app.workspace.trigger("obsidian-git:refreshed")}refreshUpdatedHead(){}async onload(){console.log("加载 "+this.manifest.name+" 插件:v"+this.manifest.version),Ln.plugin=this,this.localStorage.migrate(),await this.loadSettings(),await this.migrateSettings(),this.settingsTab=new op(this.app,this),this.addSettingTab(this.settingsTab),this.localStorage.getPluginDisabled()||(this.registerStuff(),this.app.workspace.onLayoutReady(()=>this.init({fromReload:!1}).catch(r=>this.displayError(r))))}onExternalSettingsChange(){this.reloadSettings().catch(r=>this.displayError(r))}async reloadSettings(){let r=JSON.stringify(this.settings);await this.loadSettings();let n=JSON.stringify(this.settings);r!==n&&(this.log("重新加载设置"),this.unloadPlugin(),await this.init({fromReload:!0}),this.app.workspace.getLeavesOfType(jt.type).forEach(i=>{var s;if(!((s=i.isDeferred)!=null&&s))return i.view.reload()}),this.app.workspace.getLeavesOfType(gn.type).forEach(i=>{var s;if(!((s=i.isDeferred)!=null&&s))return i.view.reload()}))}registerStuff(){this.registerEvent(this.app.workspace.on("obsidian-git:refresh",()=>{this.refresh().catch(r=>this.displayError(r))})),this.registerEvent(this.app.workspace.on("obsidian-git:head-change",()=>{this.refreshUpdatedHead()})),this.registerEvent(this.app.workspace.on("file-menu",(r,n,i)=>{this.handleFileMenu(r,n,i,"file-manu")})),this.registerEvent(this.app.workspace.on("obsidian-git:menu",(r,n,i)=>{this.handleFileMenu(r,n,i,"obsidian-git:menu")})),this.registerEvent(this.app.workspace.on("active-leaf-change",r=>{this.onActiveLeafChange(r)})),this.registerEvent(this.app.vault.on("modify",()=>{var r;this.debRefresh(),(r=this.autoCommitDebouncer)==null||r.call(this)})),this.registerEvent(this.app.vault.on("delete",()=>{var r;this.debRefresh(),(r=this.autoCommitDebouncer)==null||r.call(this)})),this.registerEvent(this.app.vault.on("create",()=>{var r;this.debRefresh(),(r=this.autoCommitDebouncer)==null||r.call(this)})),this.registerEvent(this.app.vault.on("rename",()=>{var r;this.debRefresh(),(r=this.autoCommitDebouncer)==null||r.call(this)})),this.registerView(jt.type,r=>new Pf(r,this)),this.registerView(gn.type,r=>new Ef(r,this)),this.registerView(Bs.type,r=>new Wa(r,this)),this.registerView(Ns.type,r=>new za(r,this)),this.addRibbonIcon("git-pull-request","打开Git源代码管理",async()=>{var i;let r=this.app.workspace.getLeavesOfType(jt.type),n;r.length===0?(n=(i=this.app.workspace.getRightLeaf(!1))!=null?i:this.app.workspace.getLeaf(),await n.setViewState({type:jt.type})):n=r.first(),await this.app.workspace.revealLeaf(n)}),this.registerHoverLinkSource(jt.type,{display:"Git View",defaultMod:!0}),this.editorIntegration.onLoadPlugin(),this.setRefreshDebouncer(),qO(this)}setRefreshDebouncer(){var r;(r=this.debRefresh)==null||r.cancel(),this.debRefresh=(0,be.debounce)(()=>{this.settings.refreshSourceControl&&this.refresh().catch(console.error)},this.settings.refreshSourceControlTimer,!0)}async addFileToGitignore(r,n){let i=this.gitManager.getRelativeRepoPath(r,!0),s=eR({isFolder:n,gitRelativePath:i});await this.app.vault.adapter.append(this.gitManager.getRelativeVaultPath(".gitignore"),` -`+s),this.app.workspace.trigger("obsidian-git:refresh")}handleFileMenu(r,n,i,s){if(!this.gitReady||!this.settings.showFileMenu||!n)return;let a;if(typeof n=="string"?a=n:a=n.path,i=="file-explorer-context-menu"&&(r.addItem(o=>{o.setTitle("Git: 暂存").setIcon("plus-circle").setSection("action").onClick(l=>{this.promiseQueue.addTask(async()=>{n instanceof be.TFile?await this.stageFile(n):(await this.gitManager.stageAll({dir:this.gitManager.getRelativeRepoPath(a,!0)}),this.app.workspace.trigger("obsidian-git:refresh"))})})}),r.addItem(o=>{o.setTitle("Git: 撤销暂存").setIcon("minus-circle").setSection("action").onClick(l=>{this.promiseQueue.addTask(async()=>{n instanceof be.TFile?await this.unstageFile(n):(await this.gitManager.unstageAll({dir:this.gitManager.getRelativeRepoPath(a,!0)}),this.app.workspace.trigger("obsidian-git:refresh"))})})}),r.addItem(o=>{o.setTitle("Git: 添加到 .gitignore").setIcon("file-x").setSection("action").onClick(l=>{this.addFileToGitignore(a,n instanceof be.TFolder).catch(c=>this.displayError(c))})})),i=="git-source-control"){r.addItem(l=>{l.setTitle("Git: 添加到 .gitignore").setIcon("file-x").setSection("action").onClick(c=>{this.addFileToGitignore(a,n instanceof be.TFolder).catch(u=>this.displayError(u))})});let o=this.app.vault.adapter;s==="obsidian-git:menu"&&o instanceof be.FileSystemAdapter&&(r.addItem(l=>{l.setTitle("Open in default app").setIcon("arrow-up-right").setSection("action").onClick(c=>{this.app.openWithDefaultApp(a)})}),r.addItem(l=>{l.setTitle("Show in system explorer").setIcon("arrow-up-right").setSection("action").onClick(c=>{window.electron.shell.showItemInFolder(FD.join(o.getBasePath(),a))})}))}}async migrateSettings(){this.settings.mergeOnPull!=null&&(this.settings.syncMethod=this.settings.mergeOnPull?"merge":"rebase",this.settings.mergeOnPull=void 0,await this.saveSettings()),this.settings.autoCommitMessage===void 0&&(this.settings.autoCommitMessage=this.settings.commitMessage,await this.saveSettings()),this.settings.gitPath!=null&&(this.localStorage.setGitPath(this.settings.gitPath),this.settings.gitPath=void 0,await this.saveSettings()),this.settings.username!=null&&(this.localStorage.setPassword(this.settings.username),this.settings.username=void 0,await this.saveSettings())}unloadPlugin(){var r,n;this.gitReady=!1,this.editorIntegration.onUnloadPlugin(),this.automaticsManager.unload(),(r=this.branchBar)==null||r.remove(),(n=this.statusBar)==null||n.remove(),this.statusBar=void 0,this.branchBar=void 0,this.gitManager.unload(),this.promiseQueue.clear();for(let i of this.intervalsToClear)window.clearInterval(i);this.intervalsToClear=[],this.debRefresh.cancel()}onunload(){this.unloadPlugin(),console.log("卸载 "+this.manifest.name+" 插件")}async loadSettings(){let r=await this.loadData();r==null&&(r={showedMobileNotice:!0}),this.settings=sC(et,r)}async saveSettings(){var r;(r=this.settingsTab)==null||r.beforeSaveSettings(),await this.saveData(this.settings)}get useSimpleGit(){return be.Platform.isDesktopApp}async init({fromReload:r=!1}){var n;if(this.settings.showStatusBar&&!this.statusBar){let i=this.addStatusBarItem();this.statusBar=new lp(i,this),this.intervalsToClear.push(window.setInterval(()=>{var s;return(s=this.statusBar)==null?void 0:s.display()},1e3))}try{this.useSimpleGit?(this.gitManager=new Se(this),await this.gitManager.setGitInstance()):this.gitManager=new Hn(this);let i=await this.gitManager.checkRequirements(),s=this.localStorage.getPausedAutomatics();switch(i){case"missing-git":this.displayError(`无法运行git命令。尝试运行: '${this.localStorage.getGitPath()||"git"}' .`);break;case"missing-repo":new be.Notice("无法找到有效的 Git 仓库。请通过给定的命令创建一个,或克隆一个现有的仓库。",1e4);break;case"valid":if(this.gitReady=!0,this.setPluginState({gitAction:0}),be.Platform.isDesktop&&this.settings.showBranchStatusBar&&!this.branchBar){let a=this.addStatusBarItem();this.branchBar=new ym(a,this),this.intervalsToClear.push(window.setInterval(()=>{var o;return void((o=this.branchBar)==null?void 0:o.display().catch(console.error))},6e4))}await((n=this.branchBar)==null?void 0:n.display()),this.editorIntegration.onReady(),this.app.workspace.trigger("obsidian-git:refresh"),this.app.workspace.trigger("obsidian-git:head-change"),!r&&this.settings.autoPullOnBoot&&!s&&this.promiseQueue.addTask(()=>this.pullChangesFromRemote()),s||await this.automaticsManager.init(),s&&new be.Notice("Automatic routines are currently paused.");break;default:this.log("发生了意料之外的错误“checkRequirements”结果是 "+i)}}catch(i){this.displayError(i),console.error(i)}}async createNewRepo(){try{await this.gitManager.init(),new be.Notice("初始化新仓库"),await this.init({fromReload:!0})}catch(r){this.displayError(r)}}async cloneNewRepo(){let n=await new Ze(this,{placeholder:"输入远程URL"}).openAndGetResult();if(n){let i="Vault Root",s=await new Ze(this,{options:this.gitManager instanceof Hn?[i]:[],placeholder:"输入克隆目录。目录必须为空或不存在。",allowEmpty:this.gitManager instanceof Hn}).openAndGetResult();if(s==null)return;if(s===i&&(s="."),s=(0,be.normalizePath)(s),s==="/"&&(s="."),s==="."){let f=await new Ze(this,{options:["NO","YES"],placeholder:`Does your remote repo contain a ${this.app.vault.configDir} directory at the root?`,onlySelection:!0}).openAndGetResult();if(f===void 0){new be.Notice("已终止克隆 clone");return}else if(f==="YES"){let d="DELETE ALL YOUR LOCAL CONFIG AND PLUGINS";if(await new Ze(this,{options:["Abort clone",d],placeholder:`To avoid conflicts, the local ${this.app.vault.configDir} directory needs to be deleted.`,onlySelection:!0}).openAndGetResult()===d)await this.app.vault.adapter.rmdir(this.app.vault.configDir,!0);else{new be.Notice("已终止克隆 clone");return}}}let a=await new Ze(this,{placeholder:"指定克隆的深度。留空则为完整克隆。",allowEmpty:!0}).openAndGetResult(),o;if(a===void 0){new be.Notice("已终止克隆 clone");return}if(a!==""&&(o=parseInt(a),isNaN(o))){new be.Notice("无效的深度。中止克隆。");return}new be.Notice(`Cloning new repo into "${s}"`);let l=this.settings.basePath,c=s&&s!==".";c&&(this.settings.basePath=s);try{await this.gitManager.clone(Kw(n),s,o),new be.Notice("克隆了新的仓库。"),new be.Notice("请重启 Obsidian"),c&&await this.saveSettings()}catch(u){this.displayError(u),this.settings.basePath=l,await this.saveSettings()}}}async isAllInitialized(){return this.gitReady||await this.init({fromReload:!0}),this.gitReady}async pullChangesFromRemote(){if(!await this.isAllInitialized())return;let r=await this.pull();if(r!==!1){if(r||this.displayMessage("Pull: Everything is up-to-date"),this.gitManager instanceof Se){let n=await this.updateCachedStatus();n.conflicted.length>0&&(this.displayError(`You have conflicts in ${n.conflicted.length} ${n.conflicted.length==1?"file":"files"}`),await this.handleConflict(n.conflicted))}this.app.workspace.trigger("obsidian-git:refresh"),this.setPluginState({gitAction:0})}}async commitAndSync({fromAutoBackup:r,requestCustomMessage:n=!1,commitMessage:i,onlyStaged:s=!1}){!await this.isAllInitialized()||(this.settings.syncMethod=="reset"&&this.settings.pullBeforePush&&await this.pull(),!await this.commit({fromAuto:r,requestCustomMessage:n,commitMessage:i,onlyStaged:s}))||(this.settings.syncMethod!="reset"&&this.settings.pullBeforePush&&await this.pull(),this.settings.disablePush||(await this.remotesAreSet()&&await this.gitManager.canPush()?await this.push():this.displayMessage("没有提交可以推送")),this.setPluginState({gitAction:0}))}async commit({fromAuto:r,requestCustomMessage:n=!1,onlyStaged:i=!1,commitMessage:s,amend:a=!1}){if(!await this.isAllInitialized())return!1;try{let o=this.localStorage.getConflict(),l,c=[],u=[];if(this.gitManager instanceof Se){if(await this.mayDeleteConflictFile(),l=await this.updateCachedStatus(),l.conflicted.length==0&&(o=!1),r&&l.conflicted.length>0)return this.displayError(`Did not commit, because you have conflicts in ${l.conflicted.length} ${l.conflicted.length==1?"file":"files"}. Please resolve them and commit per command.`),await this.handleConflict(l.conflicted),!1;c=l.staged,u=l.changed}else{if(r&&o)return this.displayError("未提交,因为您有冲突。请解决冲突后通过命令提交。"),!1;{o&&await this.mayDeleteConflictFile();let f=this.gitManager;i?c=await f.getStagedFiles():u=(await f.getUnstagedFiles()).map(({path:h,type:m})=>({vaultPath:this.gitManager.getRelativeVaultPath(h),path:h,type:m}))}}if(await this.tools.hasTooBigFiles(i?c:[...c,...u]))return this.setPluginState({gitAction:0}),!1;if(u.length+c.length!==0||o){let f=s!=null?s:s=r?this.settings.autoCommitMessage:this.settings.commitMessage;if(r&&this.settings.customMessageOnAutoBackup||n){!this.settings.disablePopups&&r&&new be.Notice("自动备份:请输入自定义提交信息。留空以中止");let m=await new cp(this).openAndGetResult();if(m!=null&&m!=""&&m!="...")f=m;else return this.setPluginState({gitAction:0}),!1}else if(this.gitManager instanceof Se&&this.settings.commitMessageScript){let m=this.settings.commitMessageScript,g=this.localStorage.getHostname()||"",v=m.replace("{{hostname}}",g);v=v.replace("{{date}}",(0,be.moment)().format(this.settings.commitDateFormat));let w="sh";if(be.Platform.isWin){w=process.env.PROGRAMFILES+"\\Git\\bin\\sh.exe";let k=!1;try{await Rm.access(w,Rm.constants.X_OK),k=!0}catch(x){k=!1}if(!k)return this.displayError(`Cannot find sh.exe at ${w}. Please make sure Git is properly installed.`),!1}let b=await $u(w,["-c",v],{cwd:this.gitManager.absoluteRepoPath});b.code!=0?this.displayError(b.stderr):b.stdout.trim().length==0?this.displayMessage("Stdout from commit message script is empty. Using default message."):f=b.stdout}if(!f||f.trim()==="")return new be.Notice("Commit aborted: No commit message provided"),this.setPluginState({gitAction:0}),!1;let d;i?d=await this.gitManager.commit({message:f,amend:a}):d=await this.gitManager.commitAll({message:f,status:l,unstagedFiles:u,amend:a}),this.gitManager instanceof Se&&await this.updateCachedStatus();let h=!1;d===void 0&&(h=!0,d=u.length+c.length||0),this.displayMessage(`Committed${h?" approx.":""} ${d} ${d==1?"file":"files"}`)}else this.displayMessage("没有更改可以提交");return this.app.workspace.trigger("obsidian-git:refresh"),!0}catch(o){return this.displayError(o),!1}}async push(){if(!await this.isAllInitialized()||!await this.remotesAreSet())return!1;let r=this.localStorage.getConflict();try{this.gitManager instanceof Se&&await this.mayDeleteConflictFile();let n;if(this.gitManager instanceof Se&&(n=await this.updateCachedStatus()).conflicted.length>0)return this.displayError(`Cannot push. You have conflicts in ${n.conflicted.length} ${n.conflicted.length==1?"file":"files"}`),await this.handleConflict(n.conflicted),!1;if(this.gitManager instanceof Hn&&r)return this.displayError("无法推送。您有冲突"),!1;this.log("推送中....");let i=await this.gitManager.push();return i!==void 0&&(i===null?this.displayMessage("Pushed to remote"):i>0?this.displayMessage(`已推送 ${i} ${i==1?"个文件":"个文件"} 到远程`) :this.displayMessage("没有提交可以推送")),this.setPluginState({offlineMode:!1}),this.app.workspace.trigger("obsidian-git:refresh"),!0}catch(n){return n instanceof ul?this.handleNoNetworkError(n):this.displayError(n),!1}}async pull(){if(!await this.remotesAreSet())return!1;try{this.log("拉取中....");let r=await this.gitManager.pull()||[];return this.setPluginState({offlineMode:!1}),r.length>0&&(this.displayMessage(`Pulled ${r.length} ${r.length==1?"file":"files"} from remote`),this.lastPulledFiles=r),r.length}catch(r){return this.displayError(r),!1}}async fetch(){if(await this.remotesAreSet())try{await this.gitManager.fetch(),this.displayMessage("已从远程获取"),this.setPluginState({offlineMode:!1}),this.app.workspace.trigger("obsidian-git:refresh")}catch(r){this.displayError(r)}}async mayDeleteConflictFile(){let r=this.app.vault.getAbstractFileByPath(ol);r&&(this.app.workspace.iterateAllLeaves(n=>{var i;n.view instanceof be.MarkdownView&&((i=n.view.file)==null?void 0:i.path)==r.path&&n.detach()}),await this.app.vault.delete(r))}async stageFile(r){return await this.isAllInitialized()?(await this.gitManager.stage(r.path,!0),this.app.workspace.trigger("obsidian-git:refresh"),this.setPluginState({gitAction:0}),!0):!1}async unstageFile(r){return await this.isAllInitialized()?(await this.gitManager.unstage(r.path,!0),this.app.workspace.trigger("obsidian-git:refresh"),this.setPluginState({gitAction:0}),!0):!1}async switchBranch(){var i;if(!await this.isAllInitialized())return;let r=await this.gitManager.branchInfo(),n=await new vm(this,r.branches).openAndGetReslt();if(n!=null)return await this.gitManager.checkout(n),this.displayMessage(`已切换到 ${n}`),this.app.workspace.trigger("obsidian-git:refresh"),await((i=this.branchBar)==null?void 0:i.display()),n}async switchRemoteBranch(){var s;if(!await this.isAllInitialized())return;let r=await this.selectRemoteBranch()||"",[n,i]=Qi(r);if(i!=null&&n!=null)return await this.gitManager.checkout(i,n),this.displayMessage(`已切换到 ${r}`),await((s=this.branchBar)==null?void 0:s.display()),r}async createBranch(){var n;if(!await this.isAllInitialized())return;let r=await new Ze(this,{placeholder:"创建新分支"}).openAndGetResult();if(r!=null)return await this.gitManager.createBranch(r),this.displayMessage(`Created new branch ${r}`),await((n=this.branchBar)==null?void 0:n.display()),r}async deleteBranch(){var i;if(!await this.isAllInitialized())return;let r=await this.gitManager.branchInfo();r.current&&r.branches.remove(r.current);let n=await new Ze(this,{options:r.branches,placeholder:"删除分支",onlySelection:!0}).openAndGetResult();if(n!=null){let s=!1;if(!await this.gitManager.branchIsMerged(n)){let o=await new Ze(this,{options:["YES","NO"],placeholder:"此分支尚未合并到HEAD中。强制删除?",onlySelection:!0}).openAndGetResult();if(o!=="YES")return;s=o==="YES"}return await this.gitManager.deleteBranch(n,s),this.displayMessage(`Deleted branch ${n}`),await((i=this.branchBar)==null?void 0:i.display()),n}}async remotesAreSet(){return this.settings.updateSubmodules||this.gitManager instanceof Se&&await this.gitManager.getConfig("push.autoSetupRemote","all")=="true"||(await this.gitManager.branchInfo()).tracking?!0:(new be.Notice("没有设置上游分支。请选择一个。"),await this.setUpstreamBranch())}async setUpstreamBranch(){let r=await this.selectRemoteBranch();return r==null?(this.displayError("操作已中止。未设置上游分支!",1e4),this.setPluginState({gitAction:0}),!1):(await this.gitManager.updateUpstreamBranch(r),this.displayMessage(`Set upstream branch to ${r}`),this.setPluginState({gitAction:0}),!0)}async discardAll(r){if(!await this.isAllInitialized())return!1;let n=await this.gitManager.status({path:r}),i=0,s=0;for(let o of n.changed)o.workingDir=="U"?i++:s++;if(i+s==0)return!1;let a=await new vc({app:this.app,filesToDeleteCount:i,filesToDiscardCount:s,path:r!=null?r:""}).openAndGetResult();switch(a){case!1:return a;case"discard":await this.gitManager.discardAll({dir:r,status:this.cachedStatus});break;case"delete":{await this.gitManager.discardAll({dir:r,status:this.cachedStatus});let o=await this.gitManager.getUntrackedPaths({path:r,status:this.cachedStatus});for(let l of o){let c=this.gitManager.getRelativeVaultPath(l),u=this.app.vault.getAbstractFileByPath(c);u?await this.app.fileManager.trashFile(u):l.endsWith("/")?await this.app.vault.adapter.rmdir(c,!0):await this.app.vault.adapter.remove(c)}break}default:Eh(a)}return this.app.workspace.trigger("obsidian-git:refresh"),a}async handleConflict(r){this.localStorage.setConflict(!0);let n;r!==void 0&&(n=["# Conflicts","Please resolve them and commit them using the commands `Git: Commit all changes` followed by `Git: Push`","(This file will automatically be deleted before commit)","[[#Additional Instructions]] available below file list","",...r.map(i=>{let s=this.app.vault.getAbstractFileByPath(i);return s instanceof be.TFile?`- [[${this.app.metadataCache.fileToLinktext(s,"/")}]]`:`- Not a file: ${i}`}),` +`;await this.gitManager.applyPatch(a),this.plugin.app.workspace.trigger("obsidian-git:refresh")}goToHunk(e){if(!this.editor)return;let{editor:r,obEditor:n}=this.editor,i=Gn.getHunks(r.state,!1),s=n.getCursor().line+1,a=Nt.findNearestHunk(s,i,e,!0);if(a==null)return;let o=i[a];if(o){let l=o.added.start-1;n.setCursor(l,0),n.scrollIntoView({from:{line:l,ch:0},to:{line:l+1,ch:0}},!0)}}};p();p();var wo=require("obsidian");var _m=class{constructor(e){this.plg=e;this.codeMirrorExtensions=[];this.handleWorkspaceLeaf=e=>{if(!this.lineAuthorInfoProvider){console.warn("Git:未定义 lineAuthorInfoProvider。异常情况。");return}let r=e==null?void 0:e.view;!(r instanceof wo.MarkdownView)||r.file==null||(r==null?void 0:r.allowNoFile)===!0||this.lineAuthorInfoProvider.trackChanged(r.file).catch(console.error)}}onLoadPlugin(){this.plg.registerEditorExtension(this.codeMirrorExtensions),cF(()=>this.plg.settings.lineAuthor,e=>{this.plg.settings.lineAuthor=e,this.plg.saveSettings()})}conditionallyActivateBySettings(){this.plg.settings.lineAuthor.show&&this.activateFeature()}activateFeature(){try{if(!this.isAvailableOnCurrentPlatform().available)return;yF(this.plg.settings.lineAuthor),this.lineAuthorInfoProvider=new ap(this.plg),this.createEventHandlers(),this.activateCodeMirrorExtensions(),console.log(this.plg.manifest.name+": 启用行作者功能。")}catch(e){console.warn("Git:加载行作者功能时出错。",e),this.deactivateFeature()}}deactivateFeature(){var e;this.destroyEventHandlers(),this.deactivateCodeMirrorExtensions(),(e=this.lineAuthorInfoProvider)==null||e.destroy(),this.lineAuthorInfoProvider=void 0,console.log(this.plg.manifest.name+": 禁用行作者功能。")}isAvailableOnCurrentPlatform(){return{available:this.plg.useSimpleGit&&wo.Platform.isDesktopApp,gitManager:this.plg.gitManager instanceof Se?this.plg.gitManager:void 0}}refreshLineAuthorViews(){this.plg.settings.lineAuthor.show&&(this.deactivateFeature(),this.activateFeature())}activateCodeMirrorExtensions(){this.codeMirrorExtensions.push(RF),this.plg.app.workspace.updateOptions(),this.plg.app.workspace.iterateAllLeaves(this.handleWorkspaceLeaf)}deactivateCodeMirrorExtensions(){for(let e of this.codeMirrorExtensions)this.codeMirrorExtensions.remove(e);this.plg.app.workspace.updateOptions()}createEventHandlers(){this.gutterContextMenuEvent=this.createGutterContextMenuHandler(),this.fileOpenEvent=this.createFileOpenEvent(),this.workspaceLeafChangeEvent=this.createWorkspaceLeafChangeEvent(),this.fileModificationEvent=this.createVaultFileModificationHandler(),this.headChangeEvent=this.createHeadChangeEvent(),this.refreshOnCssChangeEvent=this.createCssRefreshHandler(),this.fileRenameEvent=this.createFileRenameEvent(),pF(),this.plg.registerEvent(this.gutterContextMenuEvent),this.plg.registerEvent(this.refreshOnCssChangeEvent),this.plg.registerEvent(this.fileOpenEvent),this.plg.registerEvent(this.workspaceLeafChangeEvent),this.plg.registerEvent(this.fileModificationEvent),this.plg.registerEvent(this.headChangeEvent),this.plg.registerEvent(this.fileRenameEvent)}destroyEventHandlers(){this.plg.app.workspace.offref(this.gutterContextMenuEvent),this.plg.app.workspace.offref(this.refreshOnCssChangeEvent),this.plg.app.workspace.offref(this.fileOpenEvent),this.plg.app.workspace.offref(this.workspaceLeafChangeEvent),this.plg.app.workspace.offref(this.refreshOnCssChangeEvent),this.plg.app.vault.offref(this.fileModificationEvent),this.plg.app.workspace.offref(this.headChangeEvent),this.plg.app.vault.offref(this.fileRenameEvent)}createFileOpenEvent(){return this.plg.app.workspace.on("file-open",e=>{var r;return void((r=this.lineAuthorInfoProvider)==null?void 0:r.trackChanged(e).catch(console.error))})}createWorkspaceLeafChangeEvent(){return this.plg.app.workspace.on("active-leaf-change",this.handleWorkspaceLeaf)}createFileRenameEvent(){return this.plg.app.vault.on("rename",(e,r)=>{var n;return e instanceof wo.TFile&&((n=this.lineAuthorInfoProvider)==null?void 0:n.trackChanged(e))})}createVaultFileModificationHandler(){return this.plg.app.vault.on("modify",e=>{var r;return e instanceof wo.TFile&&((r=this.lineAuthorInfoProvider)==null?void 0:r.trackChanged(e))})}createHeadChangeEvent(){return this.plg.app.workspace.on("obsidian-git:head-change",()=>{this.refreshLineAuthorViews()})}createCssRefreshHandler(){return this.plg.app.workspace.on("css-change",()=>this.refreshLineAuthorViews())}createGutterContextMenuHandler(){return this.plg.app.workspace.on("editor-menu",vF)}};p();var wc=require("obsidian");p();p();var yo=require("@codemirror/state"),Sm=require("@codemirror/view");var xm=class extends Sm.GutterMarker{constructor(r,n){super();this.type=r;this.staged=n}toDOM(r){let n=document.createElement("div");return n.className=`git-gutter-marker git-${this.type} ${this.staged?"staged":"unstaged"}`,this.type=="changedelete"&&n.setText("~"),n}},Ib=yo.StateField.define({create:()=>yo.RangeSet.empty,update:(t,e)=>{let r=e.state.field($r,!1);if(!r)return yo.RangeSet.empty;let n=e.effects.some(s=>s.is(Vu)),i=e.effects.some(s=>s.is(Hl));if(n||i||(e.docChanged||t.size==0)&&r.isDirty==!1){let s=new Set,a=CD(e,r.hunks,!1,s),o=CD(e,r.stagedHunks,!0,s);return t=yo.RangeSet.of([...a,...o],!0),t}else e.docChanged&&(t=t.map(e.changes));return t}});function CD(t,e,r,n){let i=[];for(let a=0;a0?e[a-1]:void 0,l=a{var e;return(e=t.state.field(Ib,!1))!=null?e:yo.RangeSet.empty},initialSpacer:t=>new xm("delete",!1),domEventHandlers:{click:(t,e,r)=>{var i;return((i=Gn.getHunkAtPos(t.state,e.from,!1))!=null?i:Gn.getHunkAtPos(t.state,e.from,!0))&&(Xs(t,e.from),r.preventDefault()),!1}}});var Em=class{constructor(e){this.plugin=e}async trackChanged(e){return this.trackChangedHelper(e).catch(r=>(console.warn("Git: Error in trackChanged."+r),Promise.reject(r)))}async trackChangedHelper(e){if(e){if(e.path===void 0){console.warn("Git: Attempted to track change of undefined filepath. Unforeseen situation.");return}return this.computeSigns(e.path)}}destroy(){}async computeSigns(e){let n=await this.plugin.editorIntegration.lineAuthoringFeature.isAvailableOnCurrentPlatform().gitManager.show("",e).catch(()=>{});this.notifySignComputationResultToSubscribers(e,{compareText:n,compareTextHead:void 0})}notifySignComputationResultToSubscribers(e,r){es.ifFilepathDefinedTransformSubscribers(e,n=>n.forEach(i=>i.notifyGitCompare(r)))}},PD=[GO,jO,TD,Ib,Tp],RD=[$r,yy];p();var Fb=require("obsidian"),km=class{constructor(e,r){this.statusBarEl=e;this.plugin=r;e.addClass("git-changes-status-bar"),r.settings.hunks.statusBar==="colored"&&e.addClass("git-changes-status-bar-colored"),e.setAttr("aria-label","Git diff of the current editor"),this.statusBarEl.setAttribute("data-tooltip-position","top"),r.app.workspace.on("active-leaf-change",n=>{(!n||n.getRoot()==r.app.workspace.rootSplit&&!(n.view instanceof Fb.MarkdownView))&&this.statusBarEl.empty()})}display(e,r){var o;let n=this.plugin.app.workspace.getActiveViewOfType(Fb.MarkdownView);if(!n||((o=n.file)==null?void 0:o.path)!==(r==null?void 0:r.path))return;let i=0,s=0,a=0;for(let l of e)i+=Math.max(0,l.added.count-l.removed.count),s+=Math.min(l.added.count,l.removed.count),a+=Math.max(0,l.removed.count-l.added.count);this.statusBarEl.empty(),i>0&&this.statusBarEl.createSpan({text:`+${i} `,cls:"git-add"}),s>0&&this.statusBarEl.createSpan({text:`~${s} `,cls:"git-change"}),a>0&&this.statusBarEl.createSpan({text:`-${a}`,cls:"git-delete"})}remove(){this.statusBarEl.remove()}};var Am=class{constructor(e){this.plg=e;this.codeMirrorExtensions=[];this.handleWorkspaceLeaf=e=>{if(!this.signsProvider){console.warn("Git:未定义 signsProvider。异常情况。");return}let r=e==null?void 0:e.view;!(r instanceof wc.MarkdownView)||r.file==null||(r==null?void 0:r.allowNoFile)===!0||this.signsProvider.trackChanged(r.file).catch(console.error)}}onLoadPlugin(){this.plg.registerEditorExtension(this.codeMirrorExtensions)}conditionallyActivateBySettings(){(this.plg.settings.hunks.showSigns||this.plg.settings.hunks.statusBar!="disabled"||this.plg.settings.hunks.hunkCommands)&&this.activateFeature()}activateFeature(){try{if(!this.isAvailableOnCurrentPlatform().available)return;if(this.signsProvider=new Em(this.plg),this.createEventHandlers(),this.activateCodeMirrorExtensions(),this.plg.settings.hunks.statusBar!="disabled"){let e=this.plg.addStatusBarItem();this.changeStatusBar=new km(e,this.plg)}}catch(e){console.warn("Git:加载标记功能时出错。",e),this.deactivateFeature()}}deactivateFeature(){var e,r;this.destroyEventHandlers(),this.deactivateCodeMirrorExtensions(),(e=this.signsProvider)==null||e.destroy(),this.signsProvider=void 0,(r=this.changeStatusBar)==null||r.remove(),this.changeStatusBar=void 0}isAvailableOnCurrentPlatform(){return{available:this.plg.useSimpleGit&&wc.Platform.isDesktopApp,gitManager:this.plg.gitManager instanceof Se?this.plg.gitManager:void 0}}refresh(){this.plg.settings.hunks.showSigns&&this.plg.app.workspace.iterateAllLeaves(this.handleWorkspaceLeaf)}activateCodeMirrorExtensions(){this.codeMirrorExtensions.push(RD),this.plg.settings.hunks.showSigns&&this.codeMirrorExtensions.push(...PD),this.plg.app.workspace.updateOptions(),this.plg.app.workspace.iterateAllLeaves(this.handleWorkspaceLeaf)}deactivateCodeMirrorExtensions(){for(let e of this.codeMirrorExtensions)this.codeMirrorExtensions.remove(e);this.plg.app.workspace.updateOptions()}createEventHandlers(){this.workspaceLeafChangeEvent=this.createWorkspaceLeafChangeEvent(),this.fileRenameEvent=this.createFileRenameEvent(),this.pluginRefreshedEvent=this.createPluginRefreshedEvent(),this.intervalRefreshEvent=this.createIntervalRefreshEvent(),this.plg.registerEvent(this.workspaceLeafChangeEvent),this.plg.registerEvent(this.fileRenameEvent),this.plg.registerEvent(this.pluginRefreshedEvent),this.plg.registerInterval(this.intervalRefreshEvent)}destroyEventHandlers(){this.plg.app.workspace.offref(this.workspaceLeafChangeEvent),this.plg.app.vault.offref(this.fileRenameEvent),this.plg.app.workspace.offref(this.pluginRefreshedEvent),this.plg.app.workspace.offref(this.gutterContextMenuEvent),window.clearInterval(this.intervalRefreshEvent)}createWorkspaceLeafChangeEvent(){return this.plg.app.workspace.on("active-leaf-change",this.handleWorkspaceLeaf)}createFileRenameEvent(){return this.plg.app.vault.on("rename",(e,r)=>{var n;return es.ifFilepathDefinedTransformSubscribers(r,i=>i.forEach(s=>{s.changeToNewFilepath(e.path)})),e instanceof wc.TFile&&((n=this.signsProvider)==null?void 0:n.trackChanged(e))})}createPluginRefreshedEvent(){return this.plg.app.workspace.on("obsidian-git:refresh",()=>{this.refresh()})}createIntervalRefreshEvent(){return window.setInterval(()=>{var e,r;(e=this.plg.app.workspace.activeEditor)!=null&&e.file&&((r=this.signsProvider)==null||r.trackChanged(this.plg.app.workspace.activeEditor.file).catch(console.error))},10*1e3)}};p();var $D=require("@codemirror/state"),Cm=require("obsidian");var Ob=class{constructor(e){this.state=e;this.subscribeMe()}notifyLineAuthoring(e,r){if(this.view===void 0){console.warn(`Git: View is not defined for editor cache key. Unforeseen situation. id: ${e}`);return}let n=this.view.state,i=lF(e,r,n);this.view.dispatch(i)}notifyGitCompare(e){if(this.view===void 0){console.warn("Git:编辑器缓存键的 View 未定义。意外情况。id: ");return}if(this.removeIfStale())return;let r=this.view.state,n=r.field($r);if(!n||n.compareText!=e.compareText||n.compareTextHead!=e.compareTextHead){let i=_O(e,r);this.view.dispatch(i)}}updateToNewState(e){return this.state=e,!this.lastSeenPath&&this.filepath&&this.subscribeMe(),this}removeIfStale(){var e;return((e=this.view)==null?void 0:e.state.field(Mb,!1))!=this||this.view.destroyed?(this.unsubscribeMe(this.lastSeenPath),!0):!1}changeToNewFilepath(e){this.unsubscribeMe(this.lastSeenPath),this.subscribeMe(e)}subscribeMe(e){e!=null||(e=this.filepath),e!==void 0&&(es.ifFilepathDefinedTransformSubscribers(e,r=>r.add(this)),this.lastSeenPath=e)}unsubscribeMe(e){es.ifFilepathDefinedTransformSubscribers(e,r=>r.delete(this))}get filepath(){var e,r;return(r=(e=this.state.field(Cm.editorInfoField))==null?void 0:e.file)==null?void 0:r.path}get view(){return this.state.field(Cm.editorEditorField)}},Mb=$D.StateField.define({create:t=>new Ob(t),update:(t,e)=>t.updateToNewState(e.state),compare:(t,e)=>t===e});var Tm=class{constructor(e){this.plg=e;this.lineAuthoringFeature=new _m(this.plg);this.signsFeature=new Am(this.plg)}onUnloadPlugin(){this.lineAuthoringFeature.deactivateFeature(),this.signsFeature.deactivateFeature()}onLoadPlugin(){this.plg.registerEditorExtension(Mb),this.lineAuthoringFeature.onLoadPlugin(),this.signsFeature.onLoadPlugin()}onReady(){this.lineAuthoringFeature.conditionallyActivateBySettings(),this.signsFeature.conditionallyActivateBySettings()}activateLineAuthoring(){this.lineAuthoringFeature.activateFeature()}deactiveLineAuthoring(){this.lineAuthoringFeature.deactivateFeature()}refreshSignsSettings(){let e=this.plg.settings.hunks;e.showSigns||e.statusBar!="disabled"||e.hunkCommands?(this.signsFeature.deactivateFeature(),this.signsFeature.activateFeature()):this.signsFeature.deactivateFeature()}};var Pm=class extends be.Plugin{constructor(){super(...arguments);this.automaticsManager=new Gu(this);this.tools=new ef(this);this.localStorage=new Pp(this);this.state={gitAction:0,offlineMode:!1};this.gitReady=!1;this.promiseQueue=new Gd(this);this.intervalsToClear=[];this.editorIntegration=new Tm(this);this.hunkActions=new bm(this)}setPluginState(r){var n;this.state=Object.assign(this.state,r),(n=this.statusBar)==null||n.display()}async updateCachedStatus(){var r,n;return this.app.workspace.trigger("obsidian-git:loading-status"),this.cachedStatus=await this.gitManager.status(),this.cachedStatus.conflicted.length>0?(this.localStorage.setConflict(!0),await((r=this.branchBar)==null?void 0:r.display())):(this.localStorage.setConflict(!1),await((n=this.branchBar)==null?void 0:n.display())),this.app.workspace.trigger("obsidian-git:status-changed",this.cachedStatus),this.cachedStatus}async refresh(){if(!this.gitReady)return;let r=this.app.workspace.getLeavesOfType(jt.type),n=this.app.workspace.getLeavesOfType(gn.type);(this.settings.changedFilesInStatusBar||r.some(i=>{var s;return!((s=i.isDeferred)!=null&&s)})||n.some(i=>{var s;return!((s=i.isDeferred)!=null&&s)}))&&(await this.updateCachedStatus().catch(i=>this.displayError(i))),this.app.workspace.trigger("obsidian-git:refreshed")}refreshUpdatedHead(){}async onload(){console.log("加载 "+this.manifest.name+" 插件:v"+this.manifest.version),Ln.plugin=this,this.localStorage.migrate(),await this.loadSettings(),await this.migrateSettings(),this.settingsTab=new op(this.app,this),this.addSettingTab(this.settingsTab),this.localStorage.getPluginDisabled()||(this.registerStuff(),this.app.workspace.onLayoutReady(()=>this.init({fromReload:!1}).catch(r=>this.displayError(r))))}onExternalSettingsChange(){this.reloadSettings().catch(r=>this.displayError(r))}async reloadSettings(){let r=JSON.stringify(this.settings);await this.loadSettings();let n=JSON.stringify(this.settings);r!==n&&(this.log("重新加载设置"),this.unloadPlugin(),await this.init({fromReload:!0}),this.app.workspace.getLeavesOfType(jt.type).forEach(i=>{var s;if(!((s=i.isDeferred)!=null&&s))return i.view.reload()}),this.app.workspace.getLeavesOfType(gn.type).forEach(i=>{var s;if(!((s=i.isDeferred)!=null&&s))return i.view.reload()}))}registerStuff(){this.registerEvent(this.app.workspace.on("obsidian-git:refresh",()=>{this.refresh().catch(r=>this.displayError(r))})),this.registerEvent(this.app.workspace.on("obsidian-git:head-change",()=>{this.refreshUpdatedHead()})),this.registerEvent(this.app.workspace.on("file-menu",(r,n,i)=>{this.handleFileMenu(r,n,i,"file-manu")})),this.registerEvent(this.app.workspace.on("obsidian-git:menu",(r,n,i)=>{this.handleFileMenu(r,n,i,"obsidian-git:menu")})),this.registerEvent(this.app.workspace.on("active-leaf-change",r=>{this.onActiveLeafChange(r)})),this.registerEvent(this.app.vault.on("modify",()=>{var r;this.debRefresh(),(r=this.autoCommitDebouncer)==null||r.call(this)})),this.registerEvent(this.app.vault.on("delete",()=>{var r;this.debRefresh(),(r=this.autoCommitDebouncer)==null||r.call(this)})),this.registerEvent(this.app.vault.on("create",()=>{var r;this.debRefresh(),(r=this.autoCommitDebouncer)==null||r.call(this)})),this.registerEvent(this.app.vault.on("rename",()=>{var r;this.debRefresh(),(r=this.autoCommitDebouncer)==null||r.call(this)})),this.registerView(jt.type,r=>new Pf(r,this)),this.registerView(gn.type,r=>new Ef(r,this)),this.registerView(Bs.type,r=>new Wa(r,this)),this.registerView(Ns.type,r=>new za(r,this)),this.addRibbonIcon("git-pull-request","打开Git源代码管理",async()=>{var i;let r=this.app.workspace.getLeavesOfType(jt.type),n;r.length===0?(n=(i=this.app.workspace.getRightLeaf(!1))!=null?i:this.app.workspace.getLeaf(),await n.setViewState({type:jt.type})):n=r.first(),await this.app.workspace.revealLeaf(n)}),this.registerHoverLinkSource(jt.type,{display:"Git View",defaultMod:!0}),this.editorIntegration.onLoadPlugin(),this.setRefreshDebouncer(),qO(this)}setRefreshDebouncer(){var r;(r=this.debRefresh)==null||r.cancel(),this.debRefresh=(0,be.debounce)(()=>{this.settings.refreshSourceControl&&this.refresh().catch(console.error)},this.settings.refreshSourceControlTimer,!0)}async addFileToGitignore(r,n){let i=this.gitManager.getRelativeRepoPath(r,!0),s=eR({isFolder:n,gitRelativePath:i});await this.app.vault.adapter.append(this.gitManager.getRelativeVaultPath(".gitignore"),` +`+s),this.app.workspace.trigger("obsidian-git:refresh")}handleFileMenu(r,n,i,s){if(!this.gitReady||!this.settings.showFileMenu||!n)return;let a;if(typeof n=="string"?a=n:a=n.path,i=="file-explorer-context-menu"&&(r.addItem(o=>{o.setTitle("Git: 暂存").setIcon("plus-circle").setSection("action").onClick(l=>{this.promiseQueue.addTask(async()=>{n instanceof be.TFile?await this.stageFile(n):(await this.gitManager.stageAll({dir:this.gitManager.getRelativeRepoPath(a,!0)}),this.app.workspace.trigger("obsidian-git:refresh"))})})}),r.addItem(o=>{o.setTitle("Git: 撤销暂存").setIcon("minus-circle").setSection("action").onClick(l=>{this.promiseQueue.addTask(async()=>{n instanceof be.TFile?await this.unstageFile(n):(await this.gitManager.unstageAll({dir:this.gitManager.getRelativeRepoPath(a,!0)}),this.app.workspace.trigger("obsidian-git:refresh"))})})}),r.addItem(o=>{o.setTitle("Git: 添加到 .gitignore").setIcon("file-x").setSection("action").onClick(l=>{this.addFileToGitignore(a,n instanceof be.TFolder).catch(c=>this.displayError(c))})})),i=="git-source-control"){r.addItem(l=>{l.setTitle("Git: 添加到 .gitignore").setIcon("file-x").setSection("action").onClick(c=>{this.addFileToGitignore(a,n instanceof be.TFolder).catch(u=>this.displayError(u))})});let o=this.app.vault.adapter;s==="obsidian-git:menu"&&o instanceof be.FileSystemAdapter&&(r.addItem(l=>{l.setTitle("在默认应用中打开").setIcon("arrow-up-right").setSection("action").onClick(c=>{this.app.openWithDefaultApp(a)})}),r.addItem(l=>{l.setTitle("Show in system explorer").setIcon("arrow-up-right").setSection("action").onClick(c=>{window.electron.shell.showItemInFolder(FD.join(o.getBasePath(),a))})}))}}async migrateSettings(){this.settings.mergeOnPull!=null&&(this.settings.syncMethod=this.settings.mergeOnPull?"merge":"rebase",this.settings.mergeOnPull=void 0,await this.saveSettings()),this.settings.autoCommitMessage===void 0&&(this.settings.autoCommitMessage=this.settings.commitMessage,await this.saveSettings()),this.settings.gitPath!=null&&(this.localStorage.setGitPath(this.settings.gitPath),this.settings.gitPath=void 0,await this.saveSettings()),this.settings.username!=null&&(this.localStorage.setPassword(this.settings.username),this.settings.username=void 0,await this.saveSettings())}unloadPlugin(){var r,n;this.gitReady=!1,this.editorIntegration.onUnloadPlugin(),this.automaticsManager.unload(),(r=this.branchBar)==null||r.remove(),(n=this.statusBar)==null||n.remove(),this.statusBar=void 0,this.branchBar=void 0,this.gitManager.unload(),this.promiseQueue.clear();for(let i of this.intervalsToClear)window.clearInterval(i);this.intervalsToClear=[],this.debRefresh.cancel()}onunload(){this.unloadPlugin(),console.log("卸载 "+this.manifest.name+" 插件")}async loadSettings(){let r=await this.loadData();r==null&&(r={showedMobileNotice:!0}),this.settings=sC(et,r)}async saveSettings(){var r;(r=this.settingsTab)==null||r.beforeSaveSettings(),await this.saveData(this.settings)}get useSimpleGit(){return be.Platform.isDesktopApp}async init({fromReload:r=!1}){var n;if(this.settings.showStatusBar&&!this.statusBar){let i=this.addStatusBarItem();this.statusBar=new lp(i,this),this.intervalsToClear.push(window.setInterval(()=>{var s;return(s=this.statusBar)==null?void 0:s.display()},1e3))}try{this.useSimpleGit?(this.gitManager=new Se(this),await this.gitManager.setGitInstance()):this.gitManager=new Hn(this);let i=await this.gitManager.checkRequirements(),s=this.localStorage.getPausedAutomatics();switch(i){case"missing-git":this.displayError(`无法运行git命令。尝试运行: '${this.localStorage.getGitPath()||"git"}' .`);break;case"missing-repo":new be.Notice("无法找到有效的 Git 仓库。请通过给定的命令创建一个,或克隆一个现有的仓库。",1e4);break;case"valid":if(this.gitReady=!0,this.setPluginState({gitAction:0}),be.Platform.isDesktop&&this.settings.showBranchStatusBar&&!this.branchBar){let a=this.addStatusBarItem();this.branchBar=new ym(a,this),this.intervalsToClear.push(window.setInterval(()=>{var o;return void((o=this.branchBar)==null?void 0:o.display().catch(console.error))},6e4))}await((n=this.branchBar)==null?void 0:n.display()),this.editorIntegration.onReady(),this.app.workspace.trigger("obsidian-git:refresh"),this.app.workspace.trigger("obsidian-git:head-change"),!r&&this.settings.autoPullOnBoot&&!s&&this.promiseQueue.addTask(()=>this.pullChangesFromRemote()),s||(await this.automaticsManager.init()),s&&new be.Notice("自动例程当前已暂停。");break;default:this.log("发生了意料之外的错误“checkRequirements”结果是 "+i)}}catch(i){this.displayError(i),console.error(i)}}async createNewRepo(){try{await this.gitManager.init(),new be.Notice("初始化新仓库"),await this.init({fromReload:!0})}catch(r){this.displayError(r)}}async cloneNewRepo(){let n=await new Ze(this,{placeholder:"输入远程URL"}).openAndGetResult();if(n){let i="Vault Root",s=await new Ze(this,{options:this.gitManager instanceof Hn?[i]:[],placeholder:"输入克隆目录。目录必须为空或不存在。",allowEmpty:this.gitManager instanceof Hn}).openAndGetResult();if(s==null)return;if(s===i&&(s="."),s=(0,be.normalizePath)(s),s==="/"&&(s="."),s==="."){let f=await new Ze(this,{options:["NO","YES"],placeholder:`Does your remote repo contain a ${this.app.vault.configDir} directory at the root?`,onlySelection:!0}).openAndGetResult();if(f===void 0){new be.Notice("已终止克隆 clone");return}else if(f==="YES"){let d="DELETE ALL YOUR LOCAL CONFIG AND PLUGINS";if((await new Ze(this,{options:["Abort clone",d],placeholder:`To avoid conflicts, the local ${this.app.vault.configDir} directory needs to be deleted.`,onlySelection:!0}).openAndGetResult())===d)await this.app.vault.adapter.rmdir(this.app.vault.configDir,!0);else{new be.Notice("已终止克隆 clone");return}}}let a=await new Ze(this,{placeholder:"指定克隆的深度。留空则为完整克隆。",allowEmpty:!0}).openAndGetResult(),o;if(a===void 0){new be.Notice("已终止克隆 clone");return}if(a!==""&&(o=parseInt(a),isNaN(o))){new be.Notice("无效的深度。中止克隆。");return}new be.Notice(`Cloning new repo into "${s}"`);let l=this.settings.basePath,c=s&&s!==".";c&&(this.settings.basePath=s);try{await this.gitManager.clone(Kw(n),s,o),new be.Notice("克隆了新的仓库。"),new be.Notice("请重启 Obsidian"),c&&(await this.saveSettings())}catch(u){this.displayError(u),this.settings.basePath=l,await this.saveSettings()}}}async isAllInitialized(){return this.gitReady||(await this.init({fromReload:!0})),this.gitReady}async pullChangesFromRemote(){if(!(await this.isAllInitialized()))return;let r=await this.pull();if(r!==!1){if(r||this.displayMessage("Pull: Everything is up-to-date"),this.gitManager instanceof Se){let n=await this.updateCachedStatus();n.conflicted.length>0&&(this.displayError(`You have conflicts in ${n.conflicted.length} ${n.conflicted.length==1?"file":"files"}`),await this.handleConflict(n.conflicted))}this.app.workspace.trigger("obsidian-git:refresh"),this.setPluginState({gitAction:0})}}async commitAndSync({fromAutoBackup:r,requestCustomMessage:n=!1,commitMessage:i,onlyStaged:s=!1}){!(await this.isAllInitialized())||(this.settings.syncMethod=="reset"&&this.settings.pullBeforePush&&(await this.pull()),!(await this.commit({fromAuto:r,requestCustomMessage:n,commitMessage:i,onlyStaged:s})))||(this.settings.syncMethod!="reset"&&this.settings.pullBeforePush&&(await this.pull()),this.settings.disablePush||((await this.remotesAreSet())&&(await this.gitManager.canPush())?await this.push():this.displayMessage("没有提交可以推送")),this.setPluginState({gitAction:0}))}async commit({fromAuto:r,requestCustomMessage:n=!1,onlyStaged:i=!1,commitMessage:s,amend:a=!1}){if(!(await this.isAllInitialized()))return!1;try{let o=this.localStorage.getConflict(),l,c=[],u=[];if(this.gitManager instanceof Se){if(await this.mayDeleteConflictFile(),l=await this.updateCachedStatus(),l.conflicted.length==0&&(o=!1),r&&l.conflicted.length>0)return this.displayError(`Did not commit, because you have conflicts in ${l.conflicted.length} ${l.conflicted.length==1?"file":"files"}. Please resolve them and commit per command.`),await this.handleConflict(l.conflicted),!1;c=l.staged,u=l.changed}else{if(r&&o)return this.displayError("未提交,因为您有冲突。请解决冲突后通过命令提交。"),!1;{o&&(await this.mayDeleteConflictFile());let f=this.gitManager;i?c=await f.getStagedFiles():u=(await f.getUnstagedFiles()).map(({path:h,type:m})=>({vaultPath:this.gitManager.getRelativeVaultPath(h),path:h,type:m}))}}if(await this.tools.hasTooBigFiles(i?c:[...c,...u]))return this.setPluginState({gitAction:0}),!1;if(u.length+c.length!==0||o){let f=s!=null?s:s=r?this.settings.autoCommitMessage:this.settings.commitMessage;if(r&&this.settings.customMessageOnAutoBackup||n){!this.settings.disablePopups&&r&&new be.Notice("自动备份:请输入自定义提交信息。留空以中止");let m=await new cp(this).openAndGetResult();if(m!=null&&m!=""&&m!="...")f=m;else return this.setPluginState({gitAction:0}),!1}else if(this.gitManager instanceof Se&&this.settings.commitMessageScript){let m=this.settings.commitMessageScript,g=this.localStorage.getHostname()||"",v=m.replace("{{hostname}}",g);v=v.replace("{{date}}",(0,be.moment)().format(this.settings.commitDateFormat));let w="sh";if(be.Platform.isWin){w=process.env.PROGRAMFILES+"\\Git\\bin\\sh.exe";let k=!1;try{await Rm.access(w,Rm.constants.X_OK),k=!0}catch(x){k=!1}if(!k)return this.displayError(`Cannot find sh.exe at ${w}. Please make sure Git is properly installed.`),!1}let b=await $u(w,["-c",v],{cwd:this.gitManager.absoluteRepoPath});b.code!=0?this.displayError(b.stderr):b.stdout.trim().length==0?this.displayMessage("Stdout from commit message script is empty. Using default message."):f=b.stdout}if(!f||f.trim()==="")return new be.Notice("提交已中止:未提供提交说明"),this.setPluginState({gitAction:0}),!1;let d;i?d=await this.gitManager.commit({message:f,amend:a}):d=await this.gitManager.commitAll({message:f,status:l,unstagedFiles:u,amend:a}),this.gitManager instanceof Se&&(await this.updateCachedStatus());let h=!1;d===void 0&&(h=!0,d=u.length+c.length||0),this.displayMessage(`Committed${h?" approx.":""} ${d} ${d==1?"file":"files"}`)}else this.displayMessage("没有更改可以提交");return this.app.workspace.trigger("obsidian-git:refresh"),!0}catch(o){return this.displayError(o),!1}}async push(){if(!(await this.isAllInitialized())||!(await this.remotesAreSet()))return!1;let r=this.localStorage.getConflict();try{this.gitManager instanceof Se&&(await this.mayDeleteConflictFile());let n;if(this.gitManager instanceof Se&&(n=await this.updateCachedStatus()).conflicted.length>0)return this.displayError(`Cannot push. You have conflicts in ${n.conflicted.length} ${n.conflicted.length==1?"file":"files"}`),await this.handleConflict(n.conflicted),!1;if(this.gitManager instanceof Hn&&r)return this.displayError("无法推送。您有冲突"),!1;this.log("推送中....");let i=await this.gitManager.push();return i!==void 0&&(i===null?this.displayMessage("Pushed to remote"):i>0?this.displayMessage(`已推送 ${i} ${i==1?"个文件":"个文件"} 到远程`):this.displayMessage("没有提交可以推送")),this.setPluginState({offlineMode:!1}),this.app.workspace.trigger("obsidian-git:refresh"),!0}catch(n){return n instanceof ul?this.handleNoNetworkError(n):this.displayError(n),!1}}async pull(){if(!(await this.remotesAreSet()))return!1;try{this.log("拉取中....");let r=(await this.gitManager.pull())||[];return this.setPluginState({offlineMode:!1}),r.length>0&&(this.displayMessage(`Pulled ${r.length} ${r.length==1?"file":"files"} from remote`),this.lastPulledFiles=r),r.length}catch(r){return this.displayError(r),!1}}async fetch(){if(await this.remotesAreSet())try{await this.gitManager.fetch(),this.displayMessage("已从远程获取"),this.setPluginState({offlineMode:!1}),this.app.workspace.trigger("obsidian-git:refresh")}catch(r){this.displayError(r)}}async mayDeleteConflictFile(){let r=this.app.vault.getAbstractFileByPath(ol);r&&(this.app.workspace.iterateAllLeaves(n=>{var i;n.view instanceof be.MarkdownView&&((i=n.view.file)==null?void 0:i.path)==r.path&&n.detach()}),await this.app.vault.delete(r))}async stageFile(r){return(await this.isAllInitialized())?(await this.gitManager.stage(r.path,!0),this.app.workspace.trigger("obsidian-git:refresh"),this.setPluginState({gitAction:0}),!0):!1}async unstageFile(r){return(await this.isAllInitialized())?(await this.gitManager.unstage(r.path,!0),this.app.workspace.trigger("obsidian-git:refresh"),this.setPluginState({gitAction:0}),!0):!1}async switchBranch(){var i;if(!(await this.isAllInitialized()))return;let r=await this.gitManager.branchInfo(),n=await new vm(this,r.branches).openAndGetReslt();if(n!=null)return await this.gitManager.checkout(n),this.displayMessage(`已切换到 ${n}`),this.app.workspace.trigger("obsidian-git:refresh"),await((i=this.branchBar)==null?void 0:i.display()),n}async switchRemoteBranch(){var s;if(!(await this.isAllInitialized()))return;let r=(await this.selectRemoteBranch())||"",[n,i]=Qi(r);if(i!=null&&n!=null)return await this.gitManager.checkout(i,n),this.displayMessage(`已切换到 ${r}`),await((s=this.branchBar)==null?void 0:s.display()),r}async createBranch(){var n;if(!(await this.isAllInitialized()))return;let r=await new Ze(this,{placeholder:"创建新分支"}).openAndGetResult();if(r!=null)return await this.gitManager.createBranch(r),this.displayMessage(`Created new branch ${r}`),await((n=this.branchBar)==null?void 0:n.display()),r}async deleteBranch(){var i;if(!(await this.isAllInitialized()))return;let r=await this.gitManager.branchInfo();r.current&&r.branches.remove(r.current);let n=await new Ze(this,{options:r.branches,placeholder:"删除分支",onlySelection:!0}).openAndGetResult();if(n!=null){let s=!1;if(!(await this.gitManager.branchIsMerged(n))){let o=await new Ze(this,{options:["YES","NO"],placeholder:"此分支尚未合并到HEAD中。强制删除?",onlySelection:!0}).openAndGetResult();if(o!=="YES")return;s=o==="YES"}return await this.gitManager.deleteBranch(n,s),this.displayMessage(`Deleted branch ${n}`),await((i=this.branchBar)==null?void 0:i.display()),n}}async remotesAreSet(){return this.settings.updateSubmodules||this.gitManager instanceof Se&&(await this.gitManager.getConfig("push.autoSetupRemote","all"))=="true"||(await this.gitManager.branchInfo()).tracking?!0:(new be.Notice("没有设置上游分支。请选择一个。"),await this.setUpstreamBranch())}async setUpstreamBranch(){let r=await this.selectRemoteBranch();return r==null?(this.displayError("操作已中止。未设置上游分支!",1e4),this.setPluginState({gitAction:0}),!1):(await this.gitManager.updateUpstreamBranch(r),this.displayMessage(`Set upstream branch to ${r}`),this.setPluginState({gitAction:0}),!0)}async discardAll(r){if(!(await this.isAllInitialized()))return!1;let n=await this.gitManager.status({path:r}),i=0,s=0;for(let o of n.changed)o.workingDir=="U"?i++:s++;if(i+s==0)return!1;let a=await new vc({app:this.app,filesToDeleteCount:i,filesToDiscardCount:s,path:r!=null?r:""}).openAndGetResult();switch(a){case!1:return a;case"discard":await this.gitManager.discardAll({dir:r,status:this.cachedStatus});break;case"delete":{await this.gitManager.discardAll({dir:r,status:this.cachedStatus});let o=await this.gitManager.getUntrackedPaths({path:r,status:this.cachedStatus});for(let l of o){let c=this.gitManager.getRelativeVaultPath(l),u=this.app.vault.getAbstractFileByPath(c);u?await this.app.fileManager.trashFile(u):l.endsWith("/")?await this.app.vault.adapter.rmdir(c,!0):await this.app.vault.adapter.remove(c)}break}default:Eh(a)}return this.app.workspace.trigger("obsidian-git:refresh"),a}async handleConflict(r){this.localStorage.setConflict(!0);let n;r!==void 0&&(n=["# Conflicts","Please resolve them and commit them using the commands `Git: Commit all changes` followed by `Git: Push`","(This file will automatically be deleted before commit)","[[#Additional Instructions]] available below file list","",...r.map(i=>{let s=this.app.vault.getAbstractFileByPath(i);return s instanceof be.TFile?`- [[${this.app.metadataCache.fileToLinktext(s,"/")}]]`:`- Not a file: ${i}`}),` # Additional Instructions I strongly recommend to use "Source mode" for viewing the conflicted files. For simple conflicts, in each file listed above replace every occurrence of the following text blocks with the desired text. @@ -408,42 +403,4 @@ I strongly recommend to use "Source mode" for viewing the conflicted files. For File changes in remote repository >>>>>>> origin/main \`\`\``]),await this.tools.writeAndOpenFile(n==null?void 0:n.join(` -`))}async editRemotes(){if(!await this.isAllInitialized())return;let r=await this.gitManager.getRemotes(),i=await new Ze(this,{options:r,placeholder:"通过输入名称并选择来选择或创建新的远程"}).openAndGetResult();if(i){let s=await this.gitManager.getRemoteUrl(i),o=await new Ze(this,{initialValue:s,placeholder:"输入远程URL"}).openAndGetResult();if(o)return await this.gitManager.setRemote(i,Kw(o)),i}}async selectRemoteBranch(){let r=await this.gitManager.getRemotes(),n;r.length===0&&(n=await this.editRemotes(),n==null&&(r=await this.gitManager.getRemotes()));let i=new Ze(this,{options:r,placeholder:"通过输入名称并选择来选择或创建新的远程"}),s=n!=null?n:await i.openAndGetResult();if(s){this.displayMessage("正在获取远程分支"),await this.gitManager.fetch(s);let a=await this.gitManager.getRemoteBranches(s),l=await new Ze(this,{options:a,placeholder:"通过输入名称并选择来选择或创建新的远程分支"}).openAndGetResult();return l==null?void 0:l.startsWith(s+"/")?l:`${s}/${l}`}}async removeRemote(){if(!await this.isAllInitialized())return;let r=await this.gitManager.getRemotes(),i=await new Ze(this,{options:r,placeholder:"选择一个远程"}).openAndGetResult();i&&await this.gitManager.removeRemote(i)}onActiveLeafChange(r){var a,o;let n=r==null?void 0:r.view;if(!(n!=null&&n.getState().file)&&!(n instanceof Wa||n instanceof za))return;let i=this.app.workspace.getLeavesOfType(jt.type).first(),s=this.app.workspace.getLeavesOfType(gn.type).first();if((a=i==null?void 0:i.view.containerEl.querySelector("div.tree-item-self.is-active"))==null||a.removeClass("is-active"),(o=s==null?void 0:s.view.containerEl.querySelector("div.tree-item-self.is-active"))==null||o.removeClass("is-active"),(r==null?void 0:r.view)instanceof Wa||(r==null?void 0:r.view)instanceof za){let c=r.view.state.bFile.replace(/["\\]/g,"\\$&");this.lastDiffViewState=r.view.getState();let u;i&&r.view.state.aRef=="HEAD"?u=i.view.containerEl.querySelector(`div.staged div.tree-item-self[data-path="${c}"]`):i&&r.view.state.aRef==""?u=i.view.containerEl.querySelector(`div.changes div.tree-item-self[data-path="${c}"]`):s&&(u=s.view.containerEl.querySelector(`div.tree-item-self[data-path='${c}']`)),u==null||u.addClass("is-active")}else this.lastDiffViewState=void 0}handleNoNetworkError(r){this.state.offlineMode?this.log("遇到网络错误,但已在离线模式"):this.displayError("Git:进入离线模式。未来的网络错误将不再显示。",2e3),this.setPluginState({gitAction:0,offlineMode:!0})}displayMessage(r,n=4*1e3){var i;(i=this.statusBar)==null||i.displayMessage(r.toLowerCase(),n),this.settings.disablePopups||(!this.settings.disablePopupsForNoChanges||!r.startsWith("No changes"))&&new be.Notice(r,5*1e3),this.log(r)}displayError(r,n=10*1e3){var s;if(r instanceof ID.Errors.UserCanceledError){new be.Notice("中止");return}let i;r instanceof Error?i=r:i=new Error(String(r)),this.setPluginState({gitAction:0}),this.settings.showErrorNotices&&new be.Notice(i.message,n),console.error(`${this.manifest.id}:`,i.stack),(s=this.statusBar)==null||s.displayMessage(i.message.toLowerCase(),n)}log(...r){console.log(`${this.manifest.id}:`,...r)}}; -/*! Bundled license information: - -ieee754/index.js: - (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) - -buffer/index.js: - (*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - *) - -safe-buffer/index.js: - (*! safe-buffer. MIT License. Feross Aboukhadijeh *) - -crc-32/crc32.js: - (*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *) - -isomorphic-git/index.cjs: - (*! - * This code for `path.join` is directly copied from @zenfs/core/path for bundle size improvements. - * SPDX-License-Identifier: LGPL-3.0-or-later - * Copyright (c) James Prevett and other ZenFS contributors. - *) - -js-sha256/src/sha256.js: - (** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.9.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2017 - * @license MIT - *) -*/ - -/* nosourcemap */ \ No newline at end of file +`))}async editRemotes(){if(!(await this.isAllInitialized()))return;let r=await this.gitManager.getRemotes(),i=await new Ze(this,{options:r,placeholder:"通过输入名称并选择来选择或创建新的远程"}).openAndGetResult();if(i){let s=await this.gitManager.getRemoteUrl(i),o=await new Ze(this,{initialValue:s,placeholder:"输入远程URL"}).openAndGetResult();if(o)return await this.gitManager.setRemote(i,Kw(o)),i}}async selectRemoteBranch(){let r=await this.gitManager.getRemotes(),n;r.length===0&&(n=await this.editRemotes(),n==null&&(r=await this.gitManager.getRemotes()));let i=new Ze(this,{options:r,placeholder:"通过输入名称并选择来选择或创建新的远程"}),s=n!=null?n:await i.openAndGetResult();if(s){this.displayMessage("正在获取远程分支"),await this.gitManager.fetch(s);let a=await this.gitManager.getRemoteBranches(s),l=await new Ze(this,{options:a,placeholder:"通过输入名称并选择来选择或创建新的远程分支"}).openAndGetResult();return l==null?void 0:l.startsWith(s+"/")?l:`${s}/${l}`}}async removeRemote(){if(!(await this.isAllInitialized()))return;let r=await this.gitManager.getRemotes(),i=await new Ze(this,{options:r,placeholder:"选择一个远程"}).openAndGetResult();i&&(await this.gitManager.removeRemote(i))}onActiveLeafChange(r){var a,o;let n=r==null?void 0:r.view;if(!(n!=null&&n.getState().file)&&!(n instanceof Wa||n instanceof za))return;let i=this.app.workspace.getLeavesOfType(jt.type).first(),s=this.app.workspace.getLeavesOfType(gn.type).first();if((a=i==null?void 0:i.view.containerEl.querySelector("div.tree-item-self.is-active"))==null||a.removeClass("is-active"),(o=s==null?void 0:s.view.containerEl.querySelector("div.tree-item-self.is-active"))==null||o.removeClass("is-active"),(r==null?void 0:r.view)instanceof Wa||(r==null?void 0:r.view)instanceof za){let c=r.view.state.bFile.replace(/["\\]/g,"\\$&");this.lastDiffViewState=r.view.getState();let u;i&&r.view.state.aRef=="HEAD"?u=i.view.containerEl.querySelector(`div.staged div.tree-item-self[data-path="${c}"]`):i&&r.view.state.aRef==""?u=i.view.containerEl.querySelector(`div.changes div.tree-item-self[data-path="${c}"]`):s&&(u=s.view.containerEl.querySelector(`div.tree-item-self[data-path='${c}']`)),u==null||u.addClass("is-active")}else this.lastDiffViewState=void 0}handleNoNetworkError(r){this.state.offlineMode?this.log("遇到网络错误,但已在离线模式"):this.displayError("Git:进入离线模式。未来的网络错误将不再显示。",2e3),this.setPluginState({gitAction:0,offlineMode:!0})}displayMessage(r,n=4*1e3){var i;(i=this.statusBar)==null||i.displayMessage(r.toLowerCase(),n),this.settings.disablePopups||(!this.settings.disablePopupsForNoChanges||!r.startsWith("No changes"))&&new be.Notice(r,5*1e3),this.log(r)}displayError(r,n=10*1e3){var s;if(r instanceof ID.Errors.UserCanceledError){new be.Notice("中止");return}let i;r instanceof Error?i=r:i=new Error(String(r)),this.setPluginState({gitAction:0}),this.settings.showErrorNotices&&new be.Notice(i.message,n),console.error(`${this.manifest.id}:`,i.stack),(s=this.statusBar)==null||s.displayMessage(i.message.toLowerCase(),n)}log(...r){console.log(`${this.manifest.id}:`,...r)}}; \ No newline at end of file diff --git a/.obsidian/plugins/obsidian-git/manifest.json b/.obsidian/plugins/obsidian-git/manifest.json index 3ee35e0..ac443e0 100644 --- a/.obsidian/plugins/obsidian-git/manifest.json +++ b/.obsidian/plugins/obsidian-git/manifest.json @@ -3,8 +3,8 @@ "authorUrl": "https://github.com/Vinzent03", "id": "obsidian-git", "name": "Git", - "description": "添加了在新版本中没有的部分翻译,优化了部分机翻语句", + "description": "Integrate Git version control with automatic backup and other advanced features.", "isDesktopOnly": false, "fundingUrl": "https://ko-fi.com/vinzent", - "version": "2.38.1" + "version": "2.38.2" } diff --git a/.obsidian/plugins/obsidian-style-settings/data.json b/.obsidian/plugins/obsidian-style-settings/data.json index 52bb367..83f630b 100644 --- a/.obsidian/plugins/obsidian-style-settings/data.json +++ b/.obsidian/plugins/obsidian-style-settings/data.json @@ -7,7 +7,7 @@ "Components@@file-names-untrim": false, "Editor@@line-hover-indicator": false, "Editor@@editor-grid-background-pattren": false, - "Appearance-light@@card-layout-open-light": true, + "Appearance-light@@card-layout-open-light": false, "Appearance-dark@@card-layout-open-dark": true, "Appearance-dark@@workspace-divider-transparent-dark": false, "Appearance-dark@@card-highlight-dark": false, @@ -15,8 +15,8 @@ "Components@@nav-header-autohide": false, "Components@@Ribbon-autohide": false, "Components@@status-bar-autohide": false, - "Components@@tab-autohide": true, - "Components@@vault-profile-autohide": true, + "Components@@tab-autohide": false, + "Components@@vault-profile-autohide": false, "Components@@file-icon-remove": false, "Components@@outline-enhanced": true, "Components@@media-embed-card-border-off": false, diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 0716d86..a3a3a81 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -103,9 +103,11 @@ "type": "leaf", "state": { "type": "file-properties", - "state": {}, + "state": { + "file": "Meta/🏡HOME.md" + }, "icon": "lucide-info", - "title": "笔记属性" + "title": "🏡HOME的笔记属性" } }, { @@ -260,14 +262,15 @@ "homepage:打开主页": false, "obsidian42-brat:BRAT": false, "i18n:common.i18n": false, - "obsidian-livesync:显示自定义同步": false + "obsidian-livesync:显示自定义同步": false, + "obsidian-git:Open Git source control": false } }, "active": "f3af307553b03e79", "lastOpenFiles": [ + "Meta/🏡HOME.md", "Bases/元数据列表.base", "Archive/Collection/连~都忘记了的小知识.md", - "Meta/🏡HOME.md", "Diary/2026/04/2026-04-18 周六.md", "Template/Diary.md", "Archive/配置备忘/Typecho插件Aplayer使用教程.md",