ai-client-sdk 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +91 -0
- package/dist/ai-client-sdk.mjs +42193 -0
- package/dist/ai-client-sdk.umd.js +328 -0
- package/dist/index.d.ts +33 -0
- package/dist/utils/agent.d.ts +168 -0
- package/dist/utils/time.d.ts +16 -0
- package/dist/utils/tools.d.ts +39 -0
- package/dist/view/dom.d.ts +55 -0
- package/dist/view/event.d.ts +30 -0
- package/dist/view/index.d.ts +16 -0
- package/dist/view/template.d.ts +17 -0
- package/package.json +94 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
(function(wt,Xs){typeof exports=="object"&&typeof module<"u"?Xs(exports):typeof define=="function"&&define.amd?define(["exports"],Xs):(wt=typeof globalThis<"u"?globalThis:wt||self,Xs(wt.AIClientSDK={}))})(this,(function(wt){"use strict";function Xs(t){if(t)throw t}function gl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kh,$D;function Rk(){if($D)return Kh;$D=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):e.call(l)==="[object Array]"},s=function(l){if(!l||e.call(l)!=="[object Object]")return!1;var c=t.call(l,"constructor"),p=l.constructor&&l.constructor.prototype&&t.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!p)return!1;var f;for(f in l);return typeof f>"u"||t.call(l,f)},a=function(l,c){r&&c.name==="__proto__"?r(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(t.call(l,c)){if(n)return n(l,c).value}else return;return l[c]};return Kh=function u(){var l,c,p,f,h,m,g=arguments[0],y=1,D=arguments.length,d=!1;for(typeof g=="boolean"&&(d=g,g=arguments[1]||{},y=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});y<D;++y)if(l=arguments[y],l!=null)for(c in l)p=o(g,c),f=o(l,c),g!==f&&(d&&f&&(s(f)||(h=i(f)))?(h?(h=!1,m=p&&i(p)?p:[]):m=p&&s(p)?p:{},a(g,{name:c,newValue:u(d,m,f)})):typeof f<"u"&&a(g,{name:c,newValue:f}));return g},Kh}var jk=Rk();const Yh=gl(jk);function ele(){}function Xh(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function qk(){const t=[],e={run:r,use:n};return e;function r(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(u,...l){const c=t[++s];let p=-1;if(u){a(u);return}for(;++p<i.length;)(l[p]===null||l[p]===void 0)&&(l[p]=i[p]);i=l,c?Uk(c,o)(...l):a(null,...l)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function Uk(t,e){let r;return n;function n(...a){const o=t.length>a.length;let u;o&&a.push(i);try{u=t.apply(this,a)}catch(l){const c=l;if(o&&r)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(s,i):u instanceof Error?i(u):s(u))}function i(a,...o){r||(r=!0,e(a,...o))}function s(a){i(null,a)}}function mo(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?ID(t.position):"start"in t||"end"in t?ID(t):"line"in t||"column"in t?Qh(t):""}function Qh(t){return OD(t&&t.line)+":"+OD(t&&t.column)}function ID(t){return Qh(t&&t.start)+"-"+Qh(t&&t.end)}function OD(t){return t&&typeof t=="number"?t:1}class yr extends Error{constructor(e,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",s={},a=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof e=="string"?i=e:!s.cause&&e&&(a=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof n=="string"){const u=n.indexOf(":");u===-1?s.ruleId=n:(s.source=n.slice(0,u),s.ruleId=n.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=mo(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}yr.prototype.file="",yr.prototype.name="",yr.prototype.reason="",yr.prototype.message="",yr.prototype.stack="",yr.prototype.column=void 0,yr.prototype.line=void 0,yr.prototype.ancestors=void 0,yr.prototype.cause=void 0,yr.prototype.fatal=void 0,yr.prototype.place=void 0,yr.prototype.ruleId=void 0,yr.prototype.source=void 0;const Cn={basename:zk,dirname:Vk,extname:Hk,join:Wk,sep:"/"};function zk(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');go(t);let r=0,n=-1,i=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(s){r=i+1;break}}else n<0&&(s=!0,n=i+1);return n<0?"":t.slice(r,n)}if(e===t)return"";let a=-1,o=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(s){r=i+1;break}}else a<0&&(s=!0,a=i+1),o>-1&&(t.codePointAt(i)===e.codePointAt(o--)?o<0&&(n=i):(o=-1,n=a));return r===n?n=a:n<0&&(n=t.length),t.slice(r,n)}function Vk(t){if(go(t),t.length===0)return".";let e=-1,r=t.length,n;for(;--r;)if(t.codePointAt(r)===47){if(n){e=r;break}}else n||(n=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function Hk(t){go(t);let e=t.length,r=-1,n=0,i=-1,s=0,a;for(;e--;){const o=t.codePointAt(e);if(o===47){if(a){n=e+1;break}continue}r<0&&(a=!0,r=e+1),o===46?i<0?i=e:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||r<0||s===0||s===1&&i===r-1&&i===n+1?"":t.slice(i,r)}function Wk(...t){let e=-1,r;for(;++e<t.length;)go(t[e]),t[e]&&(r=r===void 0?t[e]:r+"/"+t[e]);return r===void 0?".":Gk(r)}function Gk(t){go(t);const e=t.codePointAt(0)===47;let r=Jk(t,!e);return r.length===0&&!e&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}function Jk(t,e){let r="",n=0,i=-1,s=0,a=-1,o,u;for(;++a<=t.length;){if(a<t.length)o=t.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(u=r.lastIndexOf("/"),u!==r.length-1){u<0?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),i=a,s=0;continue}}else if(r.length>0){r="",n=0,i=a,s=0;continue}}e&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(i+1,a):r=t.slice(i+1,a),n=a-i-1;i=a,s=0}else o===46&&s>-1?s++:s=-1}return r}function go(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Kk={cwd:Yk};function Yk(){return"/"}function Zh(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Xk(t){if(typeof t=="string")t=new URL(t);else if(!Zh(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return Qk(t)}function Qk(t){if(t.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const e=t.pathname;let r=-1;for(;++r<e.length;)if(e.codePointAt(r)===37&&e.codePointAt(r+1)===50){const n=e.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const ef=["history","path","basename","stem","extname","dirname"];class Zk{constructor(e){let r;e?Zh(e)?r={path:e}:typeof e=="string"||e3(e)?r={value:e}:r=e:r={},this.cwd="cwd"in r?"":Kk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ef.length;){const s=ef[n];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let i;for(i in r)ef.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Cn.basename(this.path):void 0}set basename(e){rf(e,"basename"),tf(e,"basename"),this.path=Cn.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Cn.dirname(this.path):void 0}set dirname(e){LD(this.basename,"dirname"),this.path=Cn.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Cn.extname(this.path):void 0}set extname(e){if(tf(e,"extname"),LD(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Cn.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Zh(e)&&(e=Xk(e)),rf(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Cn.basename(this.path,this.extname):void 0}set stem(e){rf(e,"stem"),tf(e,"stem"),this.path=Cn.join(this.dirname||"",e+(this.extname||""))}fail(e,r,n){const i=this.message(e,r,n);throw i.fatal=!0,i}info(e,r,n){const i=this.message(e,r,n);return i.fatal=void 0,i}message(e,r,n){const i=new yr(e,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function tf(t,e){if(t&&t.includes(Cn.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Cn.sep+"`")}function rf(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function LD(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function e3(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const t3=(function(t){const n=this.constructor.prototype,i=n[t],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,n),s}),r3={}.hasOwnProperty;class nf extends t3{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qk()}copy(){const e=new nf;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];e.use(...n)}return e.data(Yh(!0,{},this.namespace)),e}data(e,r){return typeof e=="string"?arguments.length===2?(of("data",this.frozen),this.namespace[e]=r,this):r3.call(this.namespace,e)&&this.namespace[e]||void 0:e?(of("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(e,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const r=yl(e),n=this.parser||this.Parser;return sf("parse",n),n(String(r),r)}process(e,r){const n=this;return this.freeze(),sf("process",this.parser||this.Parser),af("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(s,a){const o=yl(e),u=n.parse(o);n.run(u,o,function(c,p,f){if(c||!p||!f)return l(c);const h=p,m=n.stringify(h,f);s3(m)?f.value=m:f.result=m,l(c,f)});function l(c,p){c||!p?a(c):s?s(p):r(void 0,p)}}}processSync(e){let r=!1,n;return this.freeze(),sf("processSync",this.parser||this.Parser),af("processSync",this.compiler||this.Compiler),this.process(e,i),RD("processSync","process",r),n;function i(s,a){r=!0,Xs(s),n=a}}run(e,r,n){MD(e),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?s(void 0,n):new Promise(s);function s(a,o){const u=yl(r);i.run(e,u,l);function l(c,p,f){const h=p||e;c?o(c):a?a(h):n(void 0,h,f)}}}runSync(e,r){let n=!1,i;return this.run(e,r,s),RD("runSync","run",n),i;function s(a,o){Xs(a),i=o,n=!0}}stringify(e,r){this.freeze();const n=yl(r),i=this.compiler||this.Compiler;return af("stringify",i),MD(e),i(e,n)}use(e,...r){const n=this.attachers,i=this.namespace;if(of("use",this.frozen),e!=null)if(typeof e=="function")u(e,r);else if(typeof e=="object")Array.isArray(e)?o(e):a(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...p]=l;u(c,p)}else a(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function a(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(i.settings=Yh(!0,i.settings,l.settings))}function o(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const p=l[c];s(p)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,c){let p=-1,f=-1;for(;++p<n.length;)if(n[p][0]===l){f=p;break}if(f===-1)n.push([l,...c]);else if(c.length>0){let[h,...m]=c;const g=n[f][1];Xh(g)&&Xh(h)&&(h=Yh(!0,g,h)),n[f]=[l,h,...m]}}}}const n3=new nf().freeze();function sf(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function af(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function of(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function MD(t){if(!Xh(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function RD(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function yl(t){return i3(t)?t:new Zk(t)}function i3(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function s3(t){return typeof t=="string"||a3(t)}function a3(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const o3={};function uf(t,e){const r=o3,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return jD(t,n,i)}function jD(t,e,r){if(u3(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return qD(t.children,e,r)}return Array.isArray(t)?qD(t,e,r):""}function qD(t,e,r){const n=[];let i=-1;for(;++i<t.length;)n[i]=jD(t[i],e,r);return n.join("")}function u3(t){return!!(t&&typeof t=="object")}const UD=document.createElement("i");function lf(t){const e="&"+t+";";UD.innerHTML=e;const r=UD.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===e?!1:r}function Nr(t,e,r,n){const i=t.length;let s=0,a;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(e,r),t.splice(...a);else for(r&&t.splice(e,r);s<n.length;)a=n.slice(s,s+1e4),a.unshift(e,0),t.splice(...a),s+=1e4,e+=1e4}function Hr(t,e){return t.length>0?(Nr(t,t.length,0,e),t):e}const zD={}.hasOwnProperty;function VD(t){const e={};let r=-1;for(;++r<t.length;)l3(e,t[r]);return e}function l3(t,e){let r;for(r in e){const i=(zD.call(t,r)?t[r]:void 0)||(t[r]={}),s=e[r];let a;if(s)for(a in s){zD.call(i,a)||(i[a]=[]);const o=s[a];c3(i[a],Array.isArray(o)?o:o?[o]:[])}}}function c3(t,e){let r=-1;const n=[];for(;++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);Nr(t,0,0,n)}function HD(t,e){const r=Number.parseInt(t,e);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function on(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const rr=Fi(/[A-Za-z]/),Kt=Fi(/[\dA-Za-z]/),p3=Fi(/[#-'*+\--9=?A-Z^-~]/);function Dl(t){return t!==null&&(t<32||t===127)}const cf=Fi(/\d/),h3=Fi(/[\dA-Fa-f]/),f3=Fi(/[!-/:-@[-`{-~]/);function Se(t){return t!==null&&t<-2}function at(t){return t!==null&&(t<0||t===32)}function ze(t){return t===-2||t===-1||t===32}const El=Fi(new RegExp("\\p{P}|\\p{S}","u")),ns=Fi(/\s/);function Fi(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Qs(t){const e=[];let r=-1,n=0,i=0;for(;++r<t.length;){const s=t.charCodeAt(r);let a="";if(s===37&&Kt(t.charCodeAt(r+1))&&Kt(t.charCodeAt(r+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const o=t.charCodeAt(r+1);s<56320&&o>56319&&o<57344?(a=String.fromCharCode(s,o),i=1):a="�"}else a=String.fromCharCode(s);a&&(e.push(t.slice(n,r),encodeURIComponent(a)),n=r+i+1,a=""),i&&(r+=i,i=0)}return e.join("")+t.slice(n)}function Ke(t,e,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(u){return ze(u)?(t.enter(r),o(u)):e(u)}function o(u){return ze(u)&&s++<i?(t.consume(u),o):(t.exit(r),e(u))}}const d3={tokenize:m3};function m3(t){const e=t.attempt(this.parser.constructs.contentInitial,n,i);let r;return e;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Ke(t,e,"linePrefix")}function i(o){return t.enter("paragraph"),s(o)}function s(o){const u=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,a(o)}function a(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return Se(o)?(t.consume(o),t.exit("chunkText"),s):(t.consume(o),a)}}const g3={tokenize:y3},WD={tokenize:D3};function y3(t){const e=this,r=[];let n=0,i,s,a;return o;function o(x){if(n<r.length){const A=r[n];return e.containerState=A[1],t.attempt(A[0].continuation,u,l)(x)}return l(x)}function u(x){if(n++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&d();const A=e.events.length;let E=A,C;for(;E--;)if(e.events[E][0]==="exit"&&e.events[E][1].type==="chunkFlow"){C=e.events[E][1].end;break}D(n);let b=A;for(;b<e.events.length;)e.events[b][1].end={...C},b++;return Nr(e.events,E+1,0,e.events.slice(A)),e.events.length=b,l(x)}return o(x)}function l(x){if(n===r.length){if(!i)return f(x);if(i.currentConstruct&&i.currentConstruct.concrete)return m(x);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(WD,c,p)(x)}function c(x){return i&&d(),D(n),f(x)}function p(x){return e.parser.lazy[e.now().line]=n!==r.length,a=e.now().offset,m(x)}function f(x){return e.containerState={},t.attempt(WD,h,m)(x)}function h(x){return n++,r.push([e.currentConstruct,e.containerState]),f(x)}function m(x){if(x===null){i&&d(),D(0),t.consume(x);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),g(x)}function g(x){if(x===null){y(t.exit("chunkFlow"),!0),D(0),t.consume(x);return}return Se(x)?(t.consume(x),y(t.exit("chunkFlow")),n=0,e.interrupt=void 0,o):(t.consume(x),g)}function y(x,A){const E=e.sliceStream(x);if(A&&E.push(null),x.previous=s,s&&(s.next=x),s=x,i.defineSkip(x.start),i.write(E),e.parser.lazy[x.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<a&&(!i.events[C][1].end||i.events[C][1].end.offset>a))return;const b=e.events.length;let w=b,P,F;for(;w--;)if(e.events[w][0]==="exit"&&e.events[w][1].type==="chunkFlow"){if(P){F=e.events[w][1].end;break}P=!0}for(D(n),C=b;C<e.events.length;)e.events[C][1].end={...F},C++;Nr(e.events,w+1,0,e.events.slice(b)),e.events.length=C}}function D(x){let A=r.length;for(;A-- >x;){const E=r[A];e.containerState=E[1],E[0].exit.call(e,t)}r.length=x}function d(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}function D3(t,e,r){return Ke(t,t.attempt(this.parser.constructs.document,e,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Zs(t){if(t===null||at(t)||ns(t))return 1;if(El(t))return 2}function xl(t,e,r){const n=[];let i=-1;for(;++i<t.length;){const s=t[i].resolveAll;s&&!n.includes(s)&&(e=s(e,r),n.push(s))}return e}const pf={name:"attention",resolveAll:E3,tokenize:x3};function E3(t,e){let r=-1,n,i,s,a,o,u,l,c;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(n=r;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[n][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;u=t[n][1].end.offset-t[n][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const p={...t[n][1].end},f={...t[r][1].start};GD(p,-u),GD(f,u),a={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...t[n][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:f},s={type:u>1?"strongText":"emphasisText",start:{...t[n][1].end},end:{...t[r][1].start}},i={type:u>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},t[n][1].end={...a.start},t[r][1].start={...o.end},l=[],t[n][1].end.offset-t[n][1].start.offset&&(l=Hr(l,[["enter",t[n][1],e],["exit",t[n][1],e]])),l=Hr(l,[["enter",i,e],["enter",a,e],["exit",a,e],["enter",s,e]]),l=Hr(l,xl(e.parser.constructs.insideSpan.null,t.slice(n+1,r),e)),l=Hr(l,[["exit",s,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[r][1].end.offset-t[r][1].start.offset?(c=2,l=Hr(l,[["enter",t[r][1],e],["exit",t[r][1],e]])):c=0,Nr(t,n-1,r-n+3,l),r=n+l.length-c-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function x3(t,e){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Zs(n);let s;return a;function a(u){return s=u,t.enter("attentionSequence"),o(u)}function o(u){if(u===s)return t.consume(u),o;const l=t.exit("attentionSequence"),c=Zs(u),p=!c||c===2&&i||r.includes(u),f=!i||i===2&&c||r.includes(n);return l._open=!!(s===42?p:p&&(i||!f)),l._close=!!(s===42?f:f&&(c||!p)),e(u)}}function GD(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const C3={name:"autolink",tokenize:A3};function A3(t,e,r){let n=0;return i;function i(h){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(h){return rr(h)?(t.consume(h),a):h===64?r(h):l(h)}function a(h){return h===43||h===45||h===46||Kt(h)?(n=1,o(h)):l(h)}function o(h){return h===58?(t.consume(h),n=0,u):(h===43||h===45||h===46||Kt(h))&&n++<32?(t.consume(h),o):(n=0,l(h))}function u(h){return h===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.exit("autolink"),e):h===null||h===32||h===60||Dl(h)?r(h):(t.consume(h),u)}function l(h){return h===64?(t.consume(h),c):p3(h)?(t.consume(h),l):r(h)}function c(h){return Kt(h)?p(h):r(h)}function p(h){return h===46?(t.consume(h),n=0,c):h===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.exit("autolink"),e):f(h)}function f(h){if((h===45||Kt(h))&&n++<63){const m=h===45?f:p;return t.consume(h),m}return r(h)}}const yo={partial:!0,tokenize:b3};function b3(t,e,r){return n;function n(s){return ze(s)?Ke(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||Se(s)?e(s):r(s)}}const JD={continuation:{tokenize:F3},exit:T3,name:"blockQuote",tokenize:v3};function v3(t,e,r){const n=this;return i;function i(a){if(a===62){const o=n.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),s}return r(a)}function s(a){return ze(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}function F3(t,e,r){const n=this;return i;function i(a){return ze(a)?Ke(t,s,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return t.attempt(JD,e,r)(a)}}function T3(t){t.exit("blockQuote")}const KD={name:"characterEscape",tokenize:w3};function w3(t,e,r){return n;function n(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return f3(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(s)}}const YD={name:"characterReference",tokenize:S3};function S3(t,e,r){const n=this;let i=0,s,a;return o;function o(p){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),u}function u(p){return p===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(p),t.exit("characterReferenceMarkerNumeric"),l):(t.enter("characterReferenceValue"),s=31,a=Kt,c(p))}function l(p){return p===88||p===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(p),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,a=h3,c):(t.enter("characterReferenceValue"),s=7,a=cf,c(p))}function c(p){if(p===59&&i){const f=t.exit("characterReferenceValue");return a===Kt&&!lf(n.sliceSerialize(f))?r(p):(t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(p)&&i++<s?(t.consume(p),c):r(p)}}const XD={partial:!0,tokenize:P3},QD={concrete:!0,name:"codeFenced",tokenize:k3};function k3(t,e,r){const n=this,i={partial:!0,tokenize:E};let s=0,a=0,o;return u;function u(C){return l(C)}function l(C){const b=n.events[n.events.length-1];return s=b&&b[1].type==="linePrefix"?b[2].sliceSerialize(b[1],!0).length:0,o=C,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(C)}function c(C){return C===o?(a++,t.consume(C),c):a<3?r(C):(t.exit("codeFencedFenceSequence"),ze(C)?Ke(t,p,"whitespace")(C):p(C))}function p(C){return C===null||Se(C)?(t.exit("codeFencedFence"),n.interrupt?e(C):t.check(XD,g,A)(C)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),f(C))}function f(C){return C===null||Se(C)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),p(C)):ze(C)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ke(t,h,"whitespace")(C)):C===96&&C===o?r(C):(t.consume(C),f)}function h(C){return C===null||Se(C)?p(C):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),m(C))}function m(C){return C===null||Se(C)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),p(C)):C===96&&C===o?r(C):(t.consume(C),m)}function g(C){return t.attempt(i,A,y)(C)}function y(C){return t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),D}function D(C){return s>0&&ze(C)?Ke(t,d,"linePrefix",s+1)(C):d(C)}function d(C){return C===null||Se(C)?t.check(XD,g,A)(C):(t.enter("codeFlowValue"),x(C))}function x(C){return C===null||Se(C)?(t.exit("codeFlowValue"),d(C)):(t.consume(C),x)}function A(C){return t.exit("codeFenced"),e(C)}function E(C,b,w){let P=0;return F;function F(_){return C.enter("lineEnding"),C.consume(_),C.exit("lineEnding"),S}function S(_){return C.enter("codeFencedFence"),ze(_)?Ke(C,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):I(_)}function I(_){return _===o?(C.enter("codeFencedFenceSequence"),B(_)):w(_)}function B(_){return _===o?(P++,C.consume(_),B):P>=a?(C.exit("codeFencedFenceSequence"),ze(_)?Ke(C,O,"whitespace")(_):O(_)):w(_)}function O(_){return _===null||Se(_)?(C.exit("codeFencedFence"),b(_)):w(_)}}}function P3(t,e,r){const n=this;return i;function i(a){return a===null?r(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s)}function s(a){return n.parser.lazy[n.now().line]?r(a):e(a)}}const hf={name:"codeIndented",tokenize:B3},_3={partial:!0,tokenize:N3};function B3(t,e,r){const n=this;return i;function i(l){return t.enter("codeIndented"),Ke(t,s,"linePrefix",5)(l)}function s(l){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(l):r(l)}function a(l){return l===null?u(l):Se(l)?t.attempt(_3,a,u)(l):(t.enter("codeFlowValue"),o(l))}function o(l){return l===null||Se(l)?(t.exit("codeFlowValue"),a(l)):(t.consume(l),o)}function u(l){return t.exit("codeIndented"),e(l)}}function N3(t,e,r){const n=this;return i;function i(a){return n.parser.lazy[n.now().line]?r(a):Se(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):Ke(t,s,"linePrefix",5)(a)}function s(a){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):Se(a)?i(a):r(a)}}const $3={name:"codeText",previous:O3,resolve:I3,tokenize:L3};function I3(t){let e=t.length-4,r=3,n,i;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[e][1].type="codeTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)i===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(i=n):(n===e||t[n][1].type==="lineEnding")&&(t[i][1].type="codeTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),e-=n-i-2,n=i+2),i=void 0);return t}function O3(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function L3(t,e,r){let n=0,i,s;return a;function a(p){return t.enter("codeText"),t.enter("codeTextSequence"),o(p)}function o(p){return p===96?(t.consume(p),n++,o):(t.exit("codeTextSequence"),u(p))}function u(p){return p===null?r(p):p===32?(t.enter("space"),t.consume(p),t.exit("space"),u):p===96?(s=t.enter("codeTextSequence"),i=0,c(p)):Se(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),u):(t.enter("codeTextData"),l(p))}function l(p){return p===null||p===32||p===96||Se(p)?(t.exit("codeTextData"),u(p)):(t.consume(p),l)}function c(p){return p===96?(t.consume(p),i++,c):i===n?(t.exit("codeTextSequence"),t.exit("codeText"),e(p)):(s.type="codeTextData",l(p))}}class M3{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,r,n){const i=r||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Do(this.left,n),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Do(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Do(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const r=this.left.splice(e,Number.POSITIVE_INFINITY);Do(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Do(this.left,r.reverse())}}}function Do(t,e){let r=0;if(e.length<1e4)t.push(...e);else for(;r<e.length;)t.push(...e.slice(r,r+1e4)),r+=1e4}function ZD(t){const e={};let r=-1,n,i,s,a,o,u,l;const c=new M3(t);for(;++r<c.length;){for(;r in e;)r=e[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(n[0]==="enter")n[1].contentType&&(Object.assign(e,R3(c,r)),r=e[r],l=!0);else if(n[1]._container){for(s=r,i=void 0;s--;)if(a=c.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(n[1].end={...c.get(i)[1].start},o=c.slice(i,r),o.unshift(n),c.splice(i,r-i+1,o))}}return Nr(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function R3(t,e){const r=t.get(e)[1],n=t.get(e)[2];let i=e-1;const s=[];let a=r._tokenizer;a||(a=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,u=[],l={};let c,p,f=-1,h=r,m=0,g=0;const y=[g];for(;h;){for(;t.get(++i)[1]!==h;);s.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),p&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=r;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(g=f+1,y.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),f=y.length;f--;){const D=o.slice(y[f],y[f+1]),d=s.pop();u.push([d,d+D.length-1]),t.splice(d,2,D)}for(u.reverse(),f=-1;++f<u.length;)l[m+u[f][0]]=m+u[f][1],m+=u[f][1]-u[f][0]-1;return l}const j3={resolve:U3,tokenize:z3},q3={partial:!0,tokenize:V3};function U3(t){return ZD(t),t}function z3(t,e){let r;return n;function n(o){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?s(o):Se(o)?t.check(q3,a,s)(o):(t.consume(o),i)}function s(o){return t.exit("chunkContent"),t.exit("content"),e(o)}function a(o){return t.consume(o),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function V3(t,e,r){const n=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Ke(t,s,"linePrefix")}function s(a){if(a===null||Se(a))return r(a);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):t.interrupt(n.parser.constructs.flow,r,e)(a)}}function e2(t,e,r,n,i,s,a,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return p;function p(D){return D===60?(t.enter(n),t.enter(i),t.enter(s),t.consume(D),t.exit(s),f):D===null||D===32||D===41||Dl(D)?r(D):(t.enter(n),t.enter(a),t.enter(o),t.enter("chunkString",{contentType:"string"}),g(D))}function f(D){return D===62?(t.enter(s),t.consume(D),t.exit(s),t.exit(i),t.exit(n),e):(t.enter(o),t.enter("chunkString",{contentType:"string"}),h(D))}function h(D){return D===62?(t.exit("chunkString"),t.exit(o),f(D)):D===null||D===60||Se(D)?r(D):(t.consume(D),D===92?m:h)}function m(D){return D===60||D===62||D===92?(t.consume(D),h):h(D)}function g(D){return!c&&(D===null||D===41||at(D))?(t.exit("chunkString"),t.exit(o),t.exit(a),t.exit(n),e(D)):c<l&&D===40?(t.consume(D),c++,g):D===41?(t.consume(D),c--,g):D===null||D===32||D===40||Dl(D)?r(D):(t.consume(D),D===92?y:g)}function y(D){return D===40||D===41||D===92?(t.consume(D),g):g(D)}}function t2(t,e,r,n,i,s){const a=this;let o=0,u;return l;function l(h){return t.enter(n),t.enter(i),t.consume(h),t.exit(i),t.enter(s),c}function c(h){return o>999||h===null||h===91||h===93&&!u||h===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):h===93?(t.exit(s),t.enter(i),t.consume(h),t.exit(i),t.exit(n),e):Se(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||Se(h)||o++>999?(t.exit("chunkString"),c(h)):(t.consume(h),u||(u=!ze(h)),h===92?f:p)}function f(h){return h===91||h===92||h===93?(t.consume(h),o++,p):p(h)}}function r2(t,e,r,n,i,s){let a;return o;function o(f){return f===34||f===39||f===40?(t.enter(n),t.enter(i),t.consume(f),t.exit(i),a=f===40?41:f,u):r(f)}function u(f){return f===a?(t.enter(i),t.consume(f),t.exit(i),t.exit(n),e):(t.enter(s),l(f))}function l(f){return f===a?(t.exit(s),u(a)):f===null?r(f):Se(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),Ke(t,l,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||Se(f)?(t.exit("chunkString"),l(f)):(t.consume(f),f===92?p:c)}function p(f){return f===a||f===92?(t.consume(f),c):c(f)}}function Eo(t,e){let r;return n;function n(i){return Se(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),r=!0,n):ze(i)?Ke(t,n,r?"linePrefix":"lineSuffix")(i):e(i)}}const H3={name:"definition",tokenize:G3},W3={partial:!0,tokenize:J3};function G3(t,e,r){const n=this;let i;return s;function s(h){return t.enter("definition"),a(h)}function a(h){return t2.call(n,t,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return i=on(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(t.enter("definitionMarker"),t.consume(h),t.exit("definitionMarker"),u):r(h)}function u(h){return at(h)?Eo(t,l)(h):l(h)}function l(h){return e2(t,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return t.attempt(W3,p,p)(h)}function p(h){return ze(h)?Ke(t,f,"whitespace")(h):f(h)}function f(h){return h===null||Se(h)?(t.exit("definition"),n.parser.defined.push(i),e(h)):r(h)}}function J3(t,e,r){return n;function n(o){return at(o)?Eo(t,i)(o):r(o)}function i(o){return r2(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return ze(o)?Ke(t,a,"whitespace")(o):a(o)}function a(o){return o===null||Se(o)?e(o):r(o)}}const K3={name:"hardBreakEscape",tokenize:Y3};function Y3(t,e,r){return n;function n(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return Se(s)?(t.exit("hardBreakEscape"),e(s)):r(s)}}const X3={name:"headingAtx",resolve:Q3,tokenize:Z3};function Q3(t,e){let r=t.length-2,n=3,i,s;return t[n][1].type==="whitespace"&&(n+=2),r-2>n&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&t[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:t[n][1].start,end:t[r][1].end},s={type:"chunkText",start:t[n][1].start,end:t[r][1].end,contentType:"text"},Nr(t,n,r-n+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}function Z3(t,e,r){let n=0;return i;function i(c){return t.enter("atxHeading"),s(c)}function s(c){return t.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&n++<6?(t.consume(c),a):c===null||at(c)?(t.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(t.enter("atxHeadingSequence"),u(c)):c===null||Se(c)?(t.exit("atxHeading"),e(c)):ze(c)?Ke(t,o,"whitespace")(c):(t.enter("atxHeadingText"),l(c))}function u(c){return c===35?(t.consume(c),u):(t.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||at(c)?(t.exit("atxHeadingText"),o(c)):(t.consume(c),l)}}const eP=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],n2=["pre","script","style","textarea"],tP={concrete:!0,name:"htmlFlow",resolveTo:iP,tokenize:sP},rP={partial:!0,tokenize:oP},nP={partial:!0,tokenize:aP};function iP(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function sP(t,e,r){const n=this;let i,s,a,o,u;return l;function l(v){return c(v)}function c(v){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(v),p}function p(v){return v===33?(t.consume(v),f):v===47?(t.consume(v),s=!0,g):v===63?(t.consume(v),i=3,n.interrupt?e:T):rr(v)?(t.consume(v),a=String.fromCharCode(v),y):r(v)}function f(v){return v===45?(t.consume(v),i=2,h):v===91?(t.consume(v),i=5,o=0,m):rr(v)?(t.consume(v),i=4,n.interrupt?e:T):r(v)}function h(v){return v===45?(t.consume(v),n.interrupt?e:T):r(v)}function m(v){const k="CDATA[";return v===k.charCodeAt(o++)?(t.consume(v),o===k.length?n.interrupt?e:I:m):r(v)}function g(v){return rr(v)?(t.consume(v),a=String.fromCharCode(v),y):r(v)}function y(v){if(v===null||v===47||v===62||at(v)){const k=v===47,N=a.toLowerCase();return!k&&!s&&n2.includes(N)?(i=1,n.interrupt?e(v):I(v)):eP.includes(a.toLowerCase())?(i=6,k?(t.consume(v),D):n.interrupt?e(v):I(v)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(v):s?d(v):x(v))}return v===45||Kt(v)?(t.consume(v),a+=String.fromCharCode(v),y):r(v)}function D(v){return v===62?(t.consume(v),n.interrupt?e:I):r(v)}function d(v){return ze(v)?(t.consume(v),d):F(v)}function x(v){return v===47?(t.consume(v),F):v===58||v===95||rr(v)?(t.consume(v),A):ze(v)?(t.consume(v),x):F(v)}function A(v){return v===45||v===46||v===58||v===95||Kt(v)?(t.consume(v),A):E(v)}function E(v){return v===61?(t.consume(v),C):ze(v)?(t.consume(v),E):x(v)}function C(v){return v===null||v===60||v===61||v===62||v===96?r(v):v===34||v===39?(t.consume(v),u=v,b):ze(v)?(t.consume(v),C):w(v)}function b(v){return v===u?(t.consume(v),u=null,P):v===null||Se(v)?r(v):(t.consume(v),b)}function w(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||at(v)?E(v):(t.consume(v),w)}function P(v){return v===47||v===62||ze(v)?x(v):r(v)}function F(v){return v===62?(t.consume(v),S):r(v)}function S(v){return v===null||Se(v)?I(v):ze(v)?(t.consume(v),S):r(v)}function I(v){return v===45&&i===2?(t.consume(v),$):v===60&&i===1?(t.consume(v),Y):v===62&&i===4?(t.consume(v),L):v===63&&i===3?(t.consume(v),T):v===93&&i===5?(t.consume(v),ee):Se(v)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(rP,H,B)(v)):v===null||Se(v)?(t.exit("htmlFlowData"),B(v)):(t.consume(v),I)}function B(v){return t.check(nP,O,H)(v)}function O(v){return t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),_}function _(v){return v===null||Se(v)?B(v):(t.enter("htmlFlowData"),I(v))}function $(v){return v===45?(t.consume(v),T):I(v)}function Y(v){return v===47?(t.consume(v),a="",V):I(v)}function V(v){if(v===62){const k=a.toLowerCase();return n2.includes(k)?(t.consume(v),L):I(v)}return rr(v)&&a.length<8?(t.consume(v),a+=String.fromCharCode(v),V):I(v)}function ee(v){return v===93?(t.consume(v),T):I(v)}function T(v){return v===62?(t.consume(v),L):v===45&&i===2?(t.consume(v),T):I(v)}function L(v){return v===null||Se(v)?(t.exit("htmlFlowData"),H(v)):(t.consume(v),L)}function H(v){return t.exit("htmlFlow"),e(v)}}function aP(t,e,r){const n=this;return i;function i(a){return Se(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s):r(a)}function s(a){return n.parser.lazy[n.now().line]?r(a):e(a)}}function oP(t,e,r){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(yo,e,r)}}const uP={name:"htmlText",tokenize:lP};function lP(t,e,r){const n=this;let i,s,a;return o;function o(T){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(T),u}function u(T){return T===33?(t.consume(T),l):T===47?(t.consume(T),E):T===63?(t.consume(T),x):rr(T)?(t.consume(T),w):r(T)}function l(T){return T===45?(t.consume(T),c):T===91?(t.consume(T),s=0,m):rr(T)?(t.consume(T),d):r(T)}function c(T){return T===45?(t.consume(T),h):r(T)}function p(T){return T===null?r(T):T===45?(t.consume(T),f):Se(T)?(a=p,Y(T)):(t.consume(T),p)}function f(T){return T===45?(t.consume(T),h):p(T)}function h(T){return T===62?$(T):T===45?f(T):p(T)}function m(T){const L="CDATA[";return T===L.charCodeAt(s++)?(t.consume(T),s===L.length?g:m):r(T)}function g(T){return T===null?r(T):T===93?(t.consume(T),y):Se(T)?(a=g,Y(T)):(t.consume(T),g)}function y(T){return T===93?(t.consume(T),D):g(T)}function D(T){return T===62?$(T):T===93?(t.consume(T),D):g(T)}function d(T){return T===null||T===62?$(T):Se(T)?(a=d,Y(T)):(t.consume(T),d)}function x(T){return T===null?r(T):T===63?(t.consume(T),A):Se(T)?(a=x,Y(T)):(t.consume(T),x)}function A(T){return T===62?$(T):x(T)}function E(T){return rr(T)?(t.consume(T),C):r(T)}function C(T){return T===45||Kt(T)?(t.consume(T),C):b(T)}function b(T){return Se(T)?(a=b,Y(T)):ze(T)?(t.consume(T),b):$(T)}function w(T){return T===45||Kt(T)?(t.consume(T),w):T===47||T===62||at(T)?P(T):r(T)}function P(T){return T===47?(t.consume(T),$):T===58||T===95||rr(T)?(t.consume(T),F):Se(T)?(a=P,Y(T)):ze(T)?(t.consume(T),P):$(T)}function F(T){return T===45||T===46||T===58||T===95||Kt(T)?(t.consume(T),F):S(T)}function S(T){return T===61?(t.consume(T),I):Se(T)?(a=S,Y(T)):ze(T)?(t.consume(T),S):P(T)}function I(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(t.consume(T),i=T,B):Se(T)?(a=I,Y(T)):ze(T)?(t.consume(T),I):(t.consume(T),O)}function B(T){return T===i?(t.consume(T),i=void 0,_):T===null?r(T):Se(T)?(a=B,Y(T)):(t.consume(T),B)}function O(T){return T===null||T===34||T===39||T===60||T===61||T===96?r(T):T===47||T===62||at(T)?P(T):(t.consume(T),O)}function _(T){return T===47||T===62||at(T)?P(T):r(T)}function $(T){return T===62?(t.consume(T),t.exit("htmlTextData"),t.exit("htmlText"),e):r(T)}function Y(T){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),V}function V(T){return ze(T)?Ke(t,ee,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):ee(T)}function ee(T){return t.enter("htmlTextData"),a(T)}}const ff={name:"labelEnd",resolveAll:fP,resolveTo:dP,tokenize:mP},cP={tokenize:gP},pP={tokenize:yP},hP={tokenize:DP};function fP(t){let e=-1;const r=[];for(;++e<t.length;){const n=t[e][1];if(r.push(t[e]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",e+=i}}return t.length!==r.length&&Nr(t,0,t.length,r),t}function dP(t,e){let r=t.length,n=0,i,s,a,o;for(;r--;)if(i=t[r][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(a=r);const u={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},l={type:"label",start:{...t[s][1].start},end:{...t[a][1].end}},c={type:"labelText",start:{...t[s+n+2][1].end},end:{...t[a-2][1].start}};return o=[["enter",u,e],["enter",l,e]],o=Hr(o,t.slice(s+1,s+n+3)),o=Hr(o,[["enter",c,e]]),o=Hr(o,xl(e.parser.constructs.insideSpan.null,t.slice(s+n+4,a-3),e)),o=Hr(o,[["exit",c,e],t[a-2],t[a-1],["exit",l,e]]),o=Hr(o,t.slice(a+1)),o=Hr(o,[["exit",u,e]]),Nr(t,s,t.length,o),t}function mP(t,e,r){const n=this;let i=n.events.length,s,a;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){s=n.events[i][1];break}return o;function o(f){return s?s._inactive?p(f):(a=n.parser.defined.includes(on(n.sliceSerialize({start:s.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelEnd"),u):r(f)}function u(f){return f===40?t.attempt(cP,c,a?c:p)(f):f===91?t.attempt(pP,c,a?l:p)(f):a?c(f):p(f)}function l(f){return t.attempt(hP,c,p)(f)}function c(f){return e(f)}function p(f){return s._balanced=!0,r(f)}}function gP(t,e,r){return n;function n(p){return t.enter("resource"),t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),i}function i(p){return at(p)?Eo(t,s)(p):s(p)}function s(p){return p===41?c(p):e2(t,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return at(p)?Eo(t,u)(p):c(p)}function o(p){return r(p)}function u(p){return p===34||p===39||p===40?r2(t,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):c(p)}function l(p){return at(p)?Eo(t,c)(p):c(p)}function c(p){return p===41?(t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),t.exit("resource"),e):r(p)}}function yP(t,e,r){const n=this;return i;function i(o){return t2.call(n,t,s,a,"reference","referenceMarker","referenceString")(o)}function s(o){return n.parser.defined.includes(on(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?e(o):r(o)}function a(o){return r(o)}}function DP(t,e,r){return n;function n(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):r(s)}}const EP={name:"labelStartImage",resolveAll:ff.resolveAll,tokenize:xP};function xP(t,e,r){const n=this;return i;function i(o){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(o),t.exit("labelImageMarker"),s}function s(o){return o===91?(t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelImage"),a):r(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):e(o)}}const CP={name:"labelStartLink",resolveAll:ff.resolveAll,tokenize:AP};function AP(t,e,r){const n=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):e(a)}}const df={name:"lineEnding",tokenize:bP};function bP(t,e){return r;function r(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),Ke(t,e,"linePrefix")}}const Cl={name:"thematicBreak",tokenize:vP};function vP(t,e,r){let n=0,i;return s;function s(l){return t.enter("thematicBreak"),a(l)}function a(l){return i=l,o(l)}function o(l){return l===i?(t.enter("thematicBreakSequence"),u(l)):n>=3&&(l===null||Se(l))?(t.exit("thematicBreak"),e(l)):r(l)}function u(l){return l===i?(t.consume(l),n++,u):(t.exit("thematicBreakSequence"),ze(l)?Ke(t,o,"whitespace")(l):o(l))}}const Dr={continuation:{tokenize:SP},exit:PP,name:"list",tokenize:wP},FP={partial:!0,tokenize:_P},TP={partial:!0,tokenize:kP};function wP(t,e,r){const n=this,i=n.events[n.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(h){const m=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:cf(h)){if(n.containerState.type||(n.containerState.type=m,t.enter(m,{_container:!0})),m==="listUnordered")return t.enter("listItemPrefix"),h===42||h===45?t.check(Cl,r,l)(h):l(h);if(!n.interrupt||h===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(h)}return r(h)}function u(h){return cf(h)&&++a<10?(t.consume(h),u):(!n.interrupt||a<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(t.exit("listItemValue"),l(h)):r(h)}function l(h){return t.enter("listItemMarker"),t.consume(h),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,t.check(yo,n.interrupt?r:c,t.attempt(FP,f,p))}function c(h){return n.containerState.initialBlankLine=!0,s++,f(h)}function p(h){return ze(h)?(t.enter("listItemPrefixWhitespace"),t.consume(h),t.exit("listItemPrefixWhitespace"),f):r(h)}function f(h){return n.containerState.size=s+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(h)}}function SP(t,e,r){const n=this;return n.containerState._closeFlow=void 0,t.check(yo,i,s);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Ke(t,e,"listItemIndent",n.containerState.size+1)(o)}function s(o){return n.containerState.furtherBlankLines||!ze(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(TP,e,a)(o))}function a(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,Ke(t,t.attempt(Dr,e,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function kP(t,e,r){const n=this;return Ke(t,i,"listItemIndent",n.containerState.size+1);function i(s){const a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?e(s):r(s)}}function PP(t){t.exit(this.containerState.type)}function _P(t,e,r){const n=this;return Ke(t,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=n.events[n.events.length-1];return!ze(s)&&a&&a[1].type==="listItemPrefixWhitespace"?e(s):r(s)}}const i2={name:"setextUnderline",resolveTo:BP,tokenize:NP};function BP(t,e){let r=t.length,n,i,s;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){n=r;break}t[r][1].type==="paragraph"&&(i=r)}else t[r][1].type==="content"&&t.splice(r,1),!s&&t[r][1].type==="definition"&&(s=r);const a={type:"setextHeading",start:{...t[n][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",a,e]),t.splice(s+1,0,["exit",t[n][1],e]),t[n][1].end={...t[s][1].end}):t[n][1]=a,t.push(["exit",a,e]),t}function NP(t,e,r){const n=this;let i;return s;function s(l){let c=n.events.length,p;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){p=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||p)?(t.enter("setextHeadingLine"),i=l,a(l)):r(l)}function a(l){return t.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(t.consume(l),o):(t.exit("setextHeadingLineSequence"),ze(l)?Ke(t,u,"lineSuffix")(l):u(l))}function u(l){return l===null||Se(l)?(t.exit("setextHeadingLine"),e(l)):r(l)}}const $P={tokenize:IP};function IP(t){const e=this,r=t.attempt(yo,n,t.attempt(this.parser.constructs.flowInitial,i,Ke(t,t.attempt(this.parser.constructs.flow,i,t.attempt(j3,i)),"linePrefix")));return r;function n(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,r}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,r}}const OP={resolveAll:a2()},LP=s2("string"),MP=s2("text");function s2(t){return{resolveAll:a2(t==="text"?RP:void 0),tokenize:e};function e(r){const n=this,i=this.parser.constructs[t],s=r.attempt(i,a,o);return a;function a(c){return l(c)?s(c):o(c)}function o(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),u}function u(c){return l(c)?(r.exit("data"),s(c)):(r.consume(c),u)}function l(c){if(c===null)return!0;const p=i[c];let f=-1;if(p)for(;++f<p.length;){const h=p[f];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function a2(t){return e;function e(r,n){let i=-1,s;for(;++i<=r.length;)s===void 0?r[i]&&r[i][1].type==="data"&&(s=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==s+2&&(r[s][1].end=r[i-1][1].end,r.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(r,n):r}}function RP(t,e){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const n=t[r-1][1],i=e.sliceStream(n);let s=i.length,a=-1,o=0,u;for(;s--;){const l=i[s];if(typeof l=="string"){for(a=l.length;l.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(l===-2)u=!0,o++;else if(l!==-1){s++;break}}if(e._contentTypeTextTrailing&&r===t.length&&(o=0),o){const l={type:r===t.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:n.start._bufferIndex+a,_index:n.start._index+s,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...l.start},n.start.offset===n.end.offset?Object.assign(n,l):(t.splice(r,0,["enter",l,e],["exit",l,e]),r+=2)}r++}return t}const jP=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:H3},disable:{null:[]},document:{42:Dr,43:Dr,45:Dr,48:Dr,49:Dr,50:Dr,51:Dr,52:Dr,53:Dr,54:Dr,55:Dr,56:Dr,57:Dr,62:JD},flow:{35:X3,42:Cl,45:[i2,Cl],60:tP,61:i2,95:Cl,96:QD,126:QD},flowInitial:{[-2]:hf,[-1]:hf,32:hf},insideSpan:{null:[pf,OP]},string:{38:YD,92:KD},text:{[-5]:df,[-4]:df,[-3]:df,33:EP,38:YD,42:pf,60:[C3,uP],91:CP,92:[K3,KD],93:ff,95:pf,96:$3}},Symbol.toStringTag,{value:"Module"}));function qP(t,e,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},s=[];let a=[],o=[];const u={attempt:b(E),check:b(C),consume:d,enter:x,exit:A,interrupt:b(C,{interrupt:!0})},l={code:null,containerState:{},defineSkip:g,events:[],now:m,parser:t,previous:null,sliceSerialize:f,sliceStream:h,write:p};let c=e.tokenize.call(l,u);return e.resolveAll&&s.push(e),l;function p(S){return a=Hr(a,S),y(),a[a.length-1]!==null?[]:(w(e,0),l.events=xl(s,l.events,l),l.events)}function f(S,I){return zP(h(S),I)}function h(S){return UP(a,S)}function m(){const{_bufferIndex:S,_index:I,line:B,column:O,offset:_}=n;return{_bufferIndex:S,_index:I,line:B,column:O,offset:_}}function g(S){i[S.line]=S.column,F()}function y(){let S;for(;n._index<a.length;){const I=a[n._index];if(typeof I=="string")for(S=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===S&&n._bufferIndex<I.length;)D(I.charCodeAt(n._bufferIndex));else D(I)}}function D(S){c=c(S)}function d(S){Se(S)?(n.line++,n.column=1,n.offset+=S===-3?2:1,F()):S!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),l.previous=S}function x(S,I){const B=I||{};return B.type=S,B.start=m(),l.events.push(["enter",B,l]),o.push(B),B}function A(S){const I=o.pop();return I.end=m(),l.events.push(["exit",I,l]),I}function E(S,I){w(S,I.from)}function C(S,I){I.restore()}function b(S,I){return B;function B(O,_,$){let Y,V,ee,T;return Array.isArray(O)?H(O):"tokenize"in O?H([O]):L(O);function L(j){return z;function z(R){const G=R!==null&&j[R],te=R!==null&&j.null,M=[...Array.isArray(G)?G:G?[G]:[],...Array.isArray(te)?te:te?[te]:[]];return H(M)(R)}}function H(j){return Y=j,V=0,j.length===0?$:v(j[V])}function v(j){return z;function z(R){return T=P(),ee=j,j.partial||(l.currentConstruct=j),j.name&&l.parser.constructs.disable.null.includes(j.name)?N():j.tokenize.call(I?Object.assign(Object.create(l),I):l,u,k,N)(R)}}function k(j){return S(ee,T),_}function N(j){return T.restore(),++V<Y.length?v(Y[V]):$}}}function w(S,I){S.resolveAll&&!s.includes(S)&&s.push(S),S.resolve&&Nr(l.events,I,l.events.length-I,S.resolve(l.events.slice(I),l)),S.resolveTo&&(l.events=S.resolveTo(l.events,l))}function P(){const S=m(),I=l.previous,B=l.currentConstruct,O=l.events.length,_=Array.from(o);return{from:O,restore:$};function $(){n=S,l.previous=I,l.currentConstruct=B,l.events.length=O,o=_,F()}}function F(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function UP(t,e){const r=e.start._index,n=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex;let a;if(r===i)a=[t[r].slice(n,s)];else{if(a=t.slice(r,i),n>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(n):a.shift()}s>0&&a.push(t[i].slice(0,s))}return a}function zP(t,e){let r=-1;const n=[];let i;for(;++r<t.length;){const s=t[r];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
|
|
2
|
+
`;break}case-3:{a=`\r
|
|
3
|
+
`;break}case-2:{a=e?" ":" ";break}case-1:{if(!e&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,n.push(a)}return n.join("")}function VP(t){const n={constructs:VD([jP,...(t||{}).extensions||[]]),content:i(d3),defined:[],document:i(g3),flow:i($P),lazy:{},string:i(LP),text:i(MP)};return n;function i(s){return a;function a(o){return qP(n,s,o)}}}function HP(t){for(;!ZD(t););return t}const o2=/[\0\t\n\r]/g;function WP(){let t=1,e="",r=!0,n;return i;function i(s,a,o){const u=[];let l,c,p,f,h;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),p=0,e="",r&&(s.charCodeAt(0)===65279&&p++,r=void 0);p<s.length;){if(o2.lastIndex=p,l=o2.exec(s),f=l&&l.index!==void 0?l.index:s.length,h=s.charCodeAt(f),!l){e=s.slice(p);break}if(h===10&&p===f&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),p<f&&(u.push(s.slice(p,f)),t+=f-p),h){case 0:{u.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,u.push(-2);t++<c;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:n=!0,t=1}p=f+1}return o&&(n&&u.push(-5),e&&u.push(e),u.push(null)),u}}const GP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function JP(t){return t.replace(GP,KP)}function KP(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),s=i===120||i===88;return HD(r.slice(s?2:1),s?16:10)}return lf(r)||t}const u2={}.hasOwnProperty;function YP(t,e,r){return typeof e!="string"&&(r=e,e=void 0),XP(r)(HP(VP(r).document().write(WP()(t,e,!0))))}function XP(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xe),autolinkProtocol:P,autolinkEmail:P,atxHeading:s(le),blockQuote:s(te),characterEscape:P,characterReference:P,codeFenced:s(M),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(M,a),codeText:s(J,a),codeTextData:P,data:P,codeFlowValue:P,definition:s(X),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(ne),hardBreakEscape:s(Ee),hardBreakTrailing:s(Ee),htmlFlow:s(ke,a),htmlFlowData:P,htmlText:s(ke,a),htmlTextData:P,image:s(ge),label:a,link:s(xe),listItem:s(Ge),listItemValue:f,listOrdered:s(Ne,p),listUnordered:s(Ne),paragraph:s(rt),reference:v,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(le),strong:s(Xe),thematicBreak:s(yt)},exit:{atxHeading:u(),atxHeadingSequence:E,autolink:u(),autolinkEmail:G,autolinkProtocol:R,blockQuote:u(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:N,characterReferenceMarkerNumeric:N,characterReferenceValue:j,characterReference:z,codeFenced:u(y),codeFencedFence:g,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:F,codeIndented:u(D),codeText:u(_),codeTextData:F,data:F,definition:u(),definitionDestinationString:A,definitionLabelString:d,definitionTitleString:x,emphasis:u(),hardBreakEscape:u(I),hardBreakTrailing:u(I),htmlFlow:u(B),htmlFlowData:F,htmlText:u(O),htmlTextData:F,image:u(Y),label:ee,labelText:V,lineEnding:S,link:u($),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:k,resourceDestinationString:T,resourceTitleString:L,resource:H,setextHeading:u(w),setextHeadingLineSequence:b,setextHeadingText:C,strong:u(),thematicBreak:u()}};l2(e,(t||{}).mdastExtensions||[]);const r={};return n;function n(Z){let ie={type:"root",children:[]};const ve={stack:[ie],tokenStack:[],config:e,enter:o,exit:l,buffer:a,resume:c,data:r},Ae=[];let we=-1;for(;++we<Z.length;)if(Z[we][1].type==="listOrdered"||Z[we][1].type==="listUnordered")if(Z[we][0]==="enter")Ae.push(we);else{const ft=Ae.pop();we=i(Z,ft,we)}for(we=-1;++we<Z.length;){const ft=e[Z[we][0]];u2.call(ft,Z[we][1].type)&&ft[Z[we][1].type].call(Object.assign({sliceSerialize:Z[we][2].sliceSerialize},ve),Z[we][1])}if(ve.tokenStack.length>0){const ft=ve.tokenStack[ve.tokenStack.length-1];(ft[1]||c2).call(ve,void 0,ft[0])}for(ie.position={start:Ti(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Ti(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},we=-1;++we<e.transforms.length;)ie=e.transforms[we](ie)||ie;return ie}function i(Z,ie,ve){let Ae=ie-1,we=-1,ft=!1,mr,qt,Ut,Ft;for(;++Ae<=ve;){const st=Z[Ae];switch(st[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{st[0]==="enter"?we++:we--,Ft=void 0;break}case"lineEndingBlank":{st[0]==="enter"&&(mr&&!Ft&&!we&&!Ut&&(Ut=Ae),Ft=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ft=void 0}if(!we&&st[0]==="enter"&&st[1].type==="listItemPrefix"||we===-1&&st[0]==="exit"&&(st[1].type==="listUnordered"||st[1].type==="listOrdered")){if(mr){let kt=Ae;for(qt=void 0;kt--;){const er=Z[kt];if(er[1].type==="lineEnding"||er[1].type==="lineEndingBlank"){if(er[0]==="exit")continue;qt&&(Z[qt][1].type="lineEndingBlank",ft=!0),er[1].type="lineEnding",qt=kt}else if(!(er[1].type==="linePrefix"||er[1].type==="blockQuotePrefix"||er[1].type==="blockQuotePrefixWhitespace"||er[1].type==="blockQuoteMarker"||er[1].type==="listItemIndent"))break}Ut&&(!qt||Ut<qt)&&(mr._spread=!0),mr.end=Object.assign({},qt?Z[qt][1].start:st[1].end),Z.splice(qt||Ae,0,["exit",mr,st[2]]),Ae++,ve++}if(st[1].type==="listItemPrefix"){const kt={type:"listItem",_spread:!1,start:Object.assign({},st[1].start),end:void 0};mr=kt,Z.splice(Ae,0,["enter",kt,st[2]]),Ae++,ve++,Ut=void 0,Ft=!0}}}return Z[ie][1]._spread=ft,ve}function s(Z,ie){return ve;function ve(Ae){o.call(this,Z(Ae),Ae),ie&&ie.call(this,Ae)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(Z,ie,ve){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([ie,ve||void 0]),Z.position={start:Ti(ie.start),end:void 0}}function u(Z){return ie;function ie(ve){Z&&Z.call(this,ve),l.call(this,ve)}}function l(Z,ie){const ve=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==Z.type&&(ie?ie.call(this,Z,Ae[0]):(Ae[1]||c2).call(this,Z,Ae[0]));else throw new Error("Cannot close `"+Z.type+"` ("+mo({start:Z.start,end:Z.end})+"): it’s not open");ve.position.end=Ti(Z.end)}function c(){return uf(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(Z){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function h(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=Z}function m(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=Z}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function D(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z.replace(/(\r?\n|\r)$/g,"")}function d(Z){const ie=this.resume(),ve=this.stack[this.stack.length-1];ve.label=ie,ve.identifier=on(this.sliceSerialize(Z)).toLowerCase()}function x(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.title=Z}function A(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.url=Z}function E(Z){const ie=this.stack[this.stack.length-1];if(!ie.depth){const ve=this.sliceSerialize(Z).length;ie.depth=ve}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function b(Z){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function P(Z){const ve=this.stack[this.stack.length-1].children;let Ae=ve[ve.length-1];(!Ae||Ae.type!=="text")&&(Ae=it(),Ae.position={start:Ti(Z.start),end:void 0},ve.push(Ae)),this.stack.push(Ae)}function F(Z){const ie=this.stack.pop();ie.value+=this.sliceSerialize(Z),ie.position.end=Ti(Z.end)}function S(Z){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ve=ie.children[ie.children.length-1];ve.position.end=Ti(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(ie.type)&&(P.call(this,Z),F.call(this,Z))}function I(){this.data.atHardBreak=!0}function B(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z}function O(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z}function _(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z}function $(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ie,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function Y(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ie,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function V(Z){const ie=this.sliceSerialize(Z),ve=this.stack[this.stack.length-2];ve.label=JP(ie),ve.identifier=on(ie).toLowerCase()}function ee(){const Z=this.stack[this.stack.length-1],ie=this.resume(),ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,ve.type==="link"){const Ae=Z.children;ve.children=Ae}else ve.alt=ie}function T(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.url=Z}function L(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.title=Z}function H(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function k(Z){const ie=this.resume(),ve=this.stack[this.stack.length-1];ve.label=ie,ve.identifier=on(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function N(Z){this.data.characterReferenceType=Z.type}function j(Z){const ie=this.sliceSerialize(Z),ve=this.data.characterReferenceType;let Ae;ve?(Ae=HD(ie,ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=lf(ie);const we=this.stack[this.stack.length-1];we.value+=Ae}function z(Z){const ie=this.stack.pop();ie.position.end=Ti(Z.end)}function R(Z){F.call(this,Z);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(Z)}function G(Z){F.call(this,Z);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(Z)}function te(){return{type:"blockquote",children:[]}}function M(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ne(){return{type:"emphasis",children:[]}}function le(){return{type:"heading",depth:0,children:[]}}function Ee(){return{type:"break"}}function ke(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function xe(){return{type:"link",title:null,url:"",children:[]}}function Ne(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Ge(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function rt(){return{type:"paragraph",children:[]}}function Xe(){return{type:"strong",children:[]}}function it(){return{type:"text",value:""}}function yt(){return{type:"thematicBreak"}}}function Ti(t){return{line:t.line,column:t.column,offset:t.offset}}function l2(t,e){let r=-1;for(;++r<e.length;){const n=e[r];Array.isArray(n)?l2(t,n):QP(t,n)}}function QP(t,e){let r;for(r in e)if(u2.call(e,r))switch(r){case"canContainEols":{const n=e[r];n&&t[r].push(...n);break}case"transforms":{const n=e[r];n&&t[r].push(...n);break}case"enter":case"exit":{const n=e[r];n&&Object.assign(t[r],n);break}}}function c2(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+mo({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+mo({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+mo({start:e.start,end:e.end})+") is still open")}function ZP(t){const e=this;e.parser=r;function r(n){return YP(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function Al(t,e){const r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(e);for(;i!==-1;)n++,i=r.indexOf(e,i+e.length);return n}function e_(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const bl=(function(t){if(t==null)return i_;if(typeof t=="function")return vl(t);if(typeof t=="object")return Array.isArray(t)?t_(t):r_(t);if(typeof t=="string")return n_(t);throw new Error("Expected function, string, or object as test")});function t_(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=bl(t[r]);return vl(n);function n(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}function r_(t){const e=t;return vl(r);function r(n){const i=n;let s;for(s in t)if(i[s]!==e[s])return!1;return!0}}function n_(t){return vl(e);function e(r){return r&&r.type===t}}function vl(t){return e;function e(r,n,i){return!!(s_(r)&&t.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function i_(){return!0}function s_(t){return t!==null&&typeof t=="object"&&"type"in t}function cle(t){return t}const p2=[],a_=!0,mf=!1,o_="skip";function h2(t,e,r,n){let i;typeof e=="function"&&typeof r!="function"?(n=r,r=e):i=e;const s=bl(i),a=n?-1:1;o(t,void 0,[])();function o(u,l,c){const p=u&&typeof u=="object"?u:{};if(typeof p.type=="string"){const h=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=p2,m,g,y;if((!e||s(u,l,c[c.length-1]||void 0))&&(h=u_(r(u,c)),h[0]===mf))return h;if("children"in u&&u.children){const D=u;if(D.children&&h[0]!==o_)for(g=(n?D.children.length:-1)+a,y=c.concat(D);g>-1&&g<D.children.length;){const d=D.children[g];if(m=o(d,g,y)(),m[0]===mf)return m;g=typeof m[1]=="number"?m[1]:g+a}}return h}}}function u_(t){return Array.isArray(t)?t:typeof t=="number"?[a_,t]:t==null?p2:[t]}function l_(t,e,r){const i=bl((r||{}).ignore||[]),s=c_(e);let a=-1;for(;++a<s.length;)h2(t,"text",o);function o(l,c){let p=-1,f;for(;++p<c.length;){const h=c[p],m=f?f.children:void 0;if(i(h,m?m.indexOf(h):void 0,f))return;f=h}if(f)return u(l,c)}function u(l,c){const p=c[c.length-1],f=s[a][0],h=s[a][1];let m=0;const y=p.children.indexOf(l);let D=!1,d=[];f.lastIndex=0;let x=f.exec(l.value);for(;x;){const A=x.index,E={index:x.index,input:x.input,stack:[...c,l]};let C=h(...x,E);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?f.lastIndex=A+1:(m!==A&&d.push({type:"text",value:l.value.slice(m,A)}),Array.isArray(C)?d.push(...C):C&&d.push(C),m=A+x[0].length,D=!0),!f.global)break;x=f.exec(l.value)}return D?(m<l.value.length&&d.push({type:"text",value:l.value.slice(m)}),p.children.splice(y,1,...d)):d=[l],y+d.length}}function c_(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let n=-1;for(;++n<r.length;){const i=r[n];e.push([p_(i[0]),h_(i[1])])}return e}function p_(t){return typeof t=="string"?new RegExp(e_(t),"g"):t}function h_(t){return typeof t=="function"?t:function(){return t}}const gf="phrasing",yf=["autolink","link","image","label"];function f_(){return{transforms:[x_],enter:{literalAutolink:m_,literalAutolinkEmail:Df,literalAutolinkHttp:Df,literalAutolinkWww:Df},exit:{literalAutolink:E_,literalAutolinkEmail:D_,literalAutolinkHttp:g_,literalAutolinkWww:y_}}}function d_(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gf,notInConstruct:yf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gf,notInConstruct:yf},{character:":",before:"[ps]",after:"\\/",inConstruct:gf,notInConstruct:yf}]}}function m_(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Df(t){this.config.enter.autolinkProtocol.call(this,t)}function g_(t){this.config.exit.autolinkProtocol.call(this,t)}function y_(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function D_(t){this.config.exit.autolinkEmail.call(this,t)}function E_(t){this.exit(t)}function x_(t){l_(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,C_],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),A_]],{ignore:["link","linkReference"]})}function C_(t,e,r,n,i){let s="";if(!f2(i)||(/^w/i.test(e)&&(r=e+r,e="",s="http://"),!b_(r)))return!1;const a=v_(r+n);if(!a[0])return!1;const o={type:"link",title:null,url:s+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function A_(t,e,r,n){return!f2(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+r,children:[{type:"text",value:e+"@"+r}]}}function b_(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function v_(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let r=e[0],n=r.indexOf(")");const i=Al(t,"(");let s=Al(t,")");for(;n!==-1&&i>s;)t+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),s++;return[t,r]}function f2(t,e){const r=t.input.charCodeAt(t.index-1);return(t.index===0||ns(r)||El(r))&&(!e||r!==47)}d2.peek=N_;function F_(){this.buffer()}function T_(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function w_(){this.buffer()}function S_(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function k_(t){const e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=on(this.sliceSerialize(t)).toLowerCase(),r.label=e}function P_(t){this.exit(t)}function __(t){const e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=on(this.sliceSerialize(t)).toLowerCase(),r.label=e}function B_(t){this.exit(t)}function N_(){return"["}function d2(t,e,r,n){const i=r.createTracker(n);let s=i.move("[^");const a=r.enter("footnoteReference"),o=r.enter("reference");return s+=i.move(r.safe(r.associationId(t),{after:"]",before:s})),o(),a(),s+=i.move("]"),s}function $_(){return{enter:{gfmFootnoteCallString:F_,gfmFootnoteCall:T_,gfmFootnoteDefinitionLabelString:w_,gfmFootnoteDefinition:S_},exit:{gfmFootnoteCallString:k_,gfmFootnoteCall:P_,gfmFootnoteDefinitionLabelString:__,gfmFootnoteDefinition:B_}}}function I_(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:r,footnoteReference:d2},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,s,a){const o=s.createTracker(a);let u=o.move("[^");const l=s.enter("footnoteDefinition"),c=s.enter("label");return u+=o.move(s.safe(s.associationId(n),{before:u,after:"]"})),c(),u+=o.move("]:"),n.children&&n.children.length>0&&(o.shift(4),u+=o.move((e?`
|
|
4
|
+
`:" ")+s.indentLines(s.containerFlow(n,o.current()),e?m2:O_))),l(),u}}function O_(t,e,r){return e===0?t:m2(t,e,r)}function m2(t,e,r){return(r?"":" ")+t}const L_=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];g2.peek=U_;function M_(){return{canContainEols:["delete"],enter:{strikethrough:j_},exit:{strikethrough:q_}}}function R_(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:L_}],handlers:{delete:g2}}}function j_(t){this.enter({type:"delete",children:[]},t)}function q_(t){this.exit(t)}function g2(t,e,r,n){const i=r.createTracker(n),s=r.enter("strikethrough");let a=i.move("~~");return a+=r.containerPhrasing(t,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function U_(){return"~"}function z_(t){return t.length}function V_(t,e){const r=e||{},n=(r.align||[]).concat(),i=r.stringLength||z_,s=[],a=[],o=[],u=[];let l=0,c=-1;for(;++c<t.length;){const g=[],y=[];let D=-1;for(t[c].length>l&&(l=t[c].length);++D<t[c].length;){const d=H_(t[c][D]);if(r.alignDelimiters!==!1){const x=i(d);y[D]=x,(u[D]===void 0||x>u[D])&&(u[D]=x)}g.push(d)}a[c]=g,o[c]=y}let p=-1;if(typeof n=="object"&&"length"in n)for(;++p<l;)s[p]=y2(n[p]);else{const g=y2(n);for(;++p<l;)s[p]=g}p=-1;const f=[],h=[];for(;++p<l;){const g=s[p];let y="",D="";g===99?(y=":",D=":"):g===108?y=":":g===114&&(D=":");let d=r.alignDelimiters===!1?1:Math.max(1,u[p]-y.length-D.length);const x=y+"-".repeat(d)+D;r.alignDelimiters!==!1&&(d=y.length+d+D.length,d>u[p]&&(u[p]=d),h[p]=d),f[p]=x}a.splice(1,0,f),o.splice(1,0,h),c=-1;const m=[];for(;++c<a.length;){const g=a[c],y=o[c];p=-1;const D=[];for(;++p<l;){const d=g[p]||"";let x="",A="";if(r.alignDelimiters!==!1){const E=u[p]-(y[p]||0),C=s[p];C===114?x=" ".repeat(E):C===99?E%2?(x=" ".repeat(E/2+.5),A=" ".repeat(E/2-.5)):(x=" ".repeat(E/2),A=x):A=" ".repeat(E)}r.delimiterStart!==!1&&!p&&D.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&d==="")&&(r.delimiterStart!==!1||p)&&D.push(" "),r.alignDelimiters!==!1&&D.push(x),D.push(d),r.alignDelimiters!==!1&&D.push(A),r.padding!==!1&&D.push(" "),(r.delimiterEnd!==!1||p!==l-1)&&D.push("|")}m.push(r.delimiterEnd===!1?D.join("").replace(/ +$/,""):D.join(""))}return m.join(`
|
|
5
|
+
`)}function H_(t){return t==null?"":String(t)}function y2(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}const D2={}.hasOwnProperty;function W_(t,e){const r=e||{};function n(i,...s){let a=n.invalid;const o=n.handlers;if(i&&D2.call(i,t)){const u=String(i[t]);a=D2.call(o,u)?o[u]:n.unknown}if(a)return a.call(this,i,...s)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}function G_(t,e,r,n){const i=r.enter("blockquote"),s=r.createTracker(n);s.move("> "),s.shift(2);const a=r.indentLines(r.containerFlow(t,s.current()),J_);return i(),a}function J_(t,e,r){return">"+(r?"":" ")+t}function K_(t,e){return E2(t,e.inConstruct,!0)&&!E2(t,e.notInConstruct,!1)}function E2(t,e,r){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return r;let n=-1;for(;++n<e.length;)if(t.includes(e[n]))return!0;return!1}function x2(t,e,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
|
|
6
|
+
`&&K_(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
7
|
+
`}function Y_(t,e){const r=String(t);let n=r.indexOf(e),i=n,s=0,a=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++s>a&&(a=s):s=1,i=n+e.length,n=r.indexOf(e,i);return a}function X_(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function Q_(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function Z_(t,e,r,n){const i=Q_(r),s=t.value||"",a=i==="`"?"GraveAccent":"Tilde";if(X_(t,r)){const p=r.enter("codeIndented"),f=r.indentLines(s,eB);return p(),f}const o=r.createTracker(n),u=i.repeat(Math.max(Y_(s,i)+1,3)),l=r.enter("codeFenced");let c=o.move(u);if(t.lang){const p=r.enter(`codeFencedLang${a}`);c+=o.move(r.safe(t.lang,{before:c,after:" ",encode:["`"],...o.current()})),p()}if(t.lang&&t.meta){const p=r.enter(`codeFencedMeta${a}`);c+=o.move(" "),c+=o.move(r.safe(t.meta,{before:c,after:`
|
|
8
|
+
`,encode:["`"],...o.current()})),p()}return c+=o.move(`
|
|
9
|
+
`),s&&(c+=o.move(s+`
|
|
10
|
+
`)),c+=o.move(u),l(),c}function eB(t,e,r){return(r?"":" ")+t}function Ef(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function tB(t,e,r,n){const i=Ef(r),s=i==='"'?"Quote":"Apostrophe",a=r.enter("definition");let o=r.enter("label");const u=r.createTracker(n);let l=u.move("[");return l+=u.move(r.safe(r.associationId(t),{before:l,after:"]",...u.current()})),l+=u.move("]: "),o(),!t.url||/[\0- \u007F]/.test(t.url)?(o=r.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(r.safe(t.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=r.enter("destinationRaw"),l+=u.move(r.safe(t.url,{before:l,after:t.title?" ":`
|
|
11
|
+
`,...u.current()}))),o(),t.title&&(o=r.enter(`title${s}`),l+=u.move(" "+i),l+=u.move(r.safe(t.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),a(),l}function rB(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function xo(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Fl(t,e,r){const n=Zs(t),i=Zs(e);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}C2.peek=nB;function C2(t,e,r,n){const i=rB(r),s=r.enter("emphasis"),a=r.createTracker(n),o=a.move(i);let u=a.move(r.containerPhrasing(t,{after:i,before:o,...a.current()}));const l=u.charCodeAt(0),c=Fl(n.before.charCodeAt(n.before.length-1),l,i);c.inside&&(u=xo(l)+u.slice(1));const p=u.charCodeAt(u.length-1),f=Fl(n.after.charCodeAt(0),p,i);f.inside&&(u=u.slice(0,-1)+xo(p));const h=a.move(i);return s(),r.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+u+h}function nB(t,e,r){return r.options.emphasis||"*"}function Tl(t,e,r,n){let i,s,a;typeof e=="function"&&typeof r!="function"?(s=void 0,a=e,i=r):(s=e,a=r,i=n),h2(t,s,o,i);function o(u,l){const c=l[l.length-1],p=c?c.children.indexOf(u):void 0;return a(u,p,c)}}function iB(t,e){let r=!1;return Tl(t,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,mf}),!!((!t.depth||t.depth<3)&&uf(t)&&(e.options.setext||r))}function sB(t,e,r,n){const i=Math.max(Math.min(6,t.depth||1),1),s=r.createTracker(n);if(iB(t,r)){const c=r.enter("headingSetext"),p=r.enter("phrasing"),f=r.containerPhrasing(t,{...s.current(),before:`
|
|
12
|
+
`,after:`
|
|
13
|
+
`});return p(),c(),f+`
|
|
14
|
+
`+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
15
|
+
`))+1))}const a="#".repeat(i),o=r.enter("headingAtx"),u=r.enter("phrasing");s.move(a+" ");let l=r.containerPhrasing(t,{before:"# ",after:`
|
|
16
|
+
`,...s.current()});return/^[\t ]/.test(l)&&(l=xo(l.charCodeAt(0))+l.slice(1)),l=l?a+" "+l:a,r.options.closeAtx&&(l+=" "+a),u(),o(),l}A2.peek=aB;function A2(t){return t.value||""}function aB(){return"<"}b2.peek=oB;function b2(t,e,r,n){const i=Ef(r),s=i==='"'?"Quote":"Apostrophe",a=r.enter("image");let o=r.enter("label");const u=r.createTracker(n);let l=u.move("![");return l+=u.move(r.safe(t.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(o=r.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(r.safe(t.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=r.enter("destinationRaw"),l+=u.move(r.safe(t.url,{before:l,after:t.title?" ":")",...u.current()}))),o(),t.title&&(o=r.enter(`title${s}`),l+=u.move(" "+i),l+=u.move(r.safe(t.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),a(),l}function oB(){return"!"}v2.peek=uB;function v2(t,e,r,n){const i=t.referenceType,s=r.enter("imageReference");let a=r.enter("label");const o=r.createTracker(n);let u=o.move("![");const l=r.safe(t.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),a();const c=r.stack;r.stack=[],a=r.enter("reference");const p=r.safe(r.associationId(t),{before:u,after:"]",...o.current()});return a(),r.stack=c,s(),i==="full"||!l||l!==p?u+=o.move(p+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function uB(){return"!"}F2.peek=lB;function F2(t,e,r){let n=t.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++s<r.unsafe.length;){const a=r.unsafe[s],o=r.compilePattern(a);let u;if(a.atBreak)for(;u=o.exec(n);){let l=u.index;n.charCodeAt(l)===10&&n.charCodeAt(l-1)===13&&l--,n=n.slice(0,l)+" "+n.slice(u.index+1)}}return i+n+i}function lB(){return"`"}function T2(t,e){const r=uf(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}w2.peek=cB;function w2(t,e,r,n){const i=Ef(r),s=i==='"'?"Quote":"Apostrophe",a=r.createTracker(n);let o,u;if(T2(t,r)){const c=r.stack;r.stack=[],o=r.enter("autolink");let p=a.move("<");return p+=a.move(r.containerPhrasing(t,{before:p,after:">",...a.current()})),p+=a.move(">"),o(),r.stack=c,p}o=r.enter("link"),u=r.enter("label");let l=a.move("[");return l+=a.move(r.containerPhrasing(t,{before:l,after:"](",...a.current()})),l+=a.move("]("),u(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(u=r.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(r.safe(t.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(u=r.enter("destinationRaw"),l+=a.move(r.safe(t.url,{before:l,after:t.title?" ":")",...a.current()}))),u(),t.title&&(u=r.enter(`title${s}`),l+=a.move(" "+i),l+=a.move(r.safe(t.title,{before:l,after:i,...a.current()})),l+=a.move(i),u()),l+=a.move(")"),o(),l}function cB(t,e,r){return T2(t,r)?"<":"["}S2.peek=pB;function S2(t,e,r,n){const i=t.referenceType,s=r.enter("linkReference");let a=r.enter("label");const o=r.createTracker(n);let u=o.move("[");const l=r.containerPhrasing(t,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),a();const c=r.stack;r.stack=[],a=r.enter("reference");const p=r.safe(r.associationId(t),{before:u,after:"]",...o.current()});return a(),r.stack=c,s(),i==="full"||!l||l!==p?u+=o.move(p+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function pB(){return"["}function xf(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function hB(t){const e=xf(t),r=t.options.bulletOther;if(!r)return e==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+r+"`) to be different");return r}function fB(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function k2(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function dB(t,e,r,n){const i=r.enter("list"),s=r.bulletCurrent;let a=t.ordered?fB(r):xf(r);const o=t.ordered?a==="."?")":".":hB(r);let u=e&&r.bulletLastUsed?a===r.bulletLastUsed:!1;if(!t.ordered){const c=t.children?t.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(u=!0),k2(r)===a&&c){let p=-1;for(;++p<t.children.length;){const f=t.children[p];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(a=o),r.bulletCurrent=a;const l=r.containerFlow(t,n);return r.bulletLastUsed=a,r.bulletCurrent=s,i(),l}function mB(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function gB(t,e,r,n){const i=mB(r);let s=r.bulletCurrent||xf(r);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>-1?e.start:1)+(r.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let a=s.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(a=Math.ceil(a/4)*4);const o=r.createTracker(n);o.move(s+" ".repeat(a-s.length)),o.shift(a);const u=r.enter("listItem"),l=r.indentLines(r.containerFlow(t,o.current()),c);return u(),l;function c(p,f,h){return f?(h?"":" ".repeat(a))+p:(h?s:s+" ".repeat(a-s.length))+p}}function yB(t,e,r,n){const i=r.enter("paragraph"),s=r.enter("phrasing"),a=r.containerPhrasing(t,n);return s(),i(),a}const DB=bl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function EB(t,e,r,n){return(t.children.some(function(a){return DB(a)})?r.containerPhrasing:r.containerFlow).call(r,t,n)}function xB(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}P2.peek=CB;function P2(t,e,r,n){const i=xB(r),s=r.enter("strong"),a=r.createTracker(n),o=a.move(i+i);let u=a.move(r.containerPhrasing(t,{after:i,before:o,...a.current()}));const l=u.charCodeAt(0),c=Fl(n.before.charCodeAt(n.before.length-1),l,i);c.inside&&(u=xo(l)+u.slice(1));const p=u.charCodeAt(u.length-1),f=Fl(n.after.charCodeAt(0),p,i);f.inside&&(u=u.slice(0,-1)+xo(p));const h=a.move(i+i);return s(),r.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+u+h}function CB(t,e,r){return r.options.strong||"*"}function AB(t,e,r,n){return r.safe(t.value,n)}function bB(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function vB(t,e,r){const n=(k2(r)+(r.options.ruleSpaces?" ":"")).repeat(bB(r));return r.options.ruleSpaces?n.slice(0,-1):n}const _2={blockquote:G_,break:x2,code:Z_,definition:tB,emphasis:C2,hardBreak:x2,heading:sB,html:A2,image:b2,imageReference:v2,inlineCode:F2,link:w2,linkReference:S2,list:dB,listItem:gB,paragraph:yB,root:EB,strong:P2,text:AB,thematicBreak:vB};function FB(){return{enter:{table:TB,tableData:B2,tableHeader:B2,tableRow:SB},exit:{codeText:kB,table:wB,tableData:Cf,tableHeader:Cf,tableRow:Cf}}}function TB(t){const e=t._align;this.enter({type:"table",align:e.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function wB(t){this.exit(t),this.data.inTable=void 0}function SB(t){this.enter({type:"tableRow",children:[]},t)}function Cf(t){this.exit(t)}function B2(t){this.enter({type:"tableCell",children:[]},t)}function kB(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,PB));const r=this.stack[this.stack.length-1];r.type,r.value=e,this.exit(t)}function PB(t,e){return e==="|"?e:t}function _B(t){const e=t||{},r=e.tableCellPadding,n=e.tablePipeAlign,i=e.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
17
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:a,tableCell:u,tableRow:o}};function a(h,m,g,y){return l(c(h,g,y),h.align)}function o(h,m,g,y){const D=p(h,g,y),d=l([D]);return d.slice(0,d.indexOf(`
|
|
18
|
+
`))}function u(h,m,g,y){const D=g.enter("tableCell"),d=g.enter("phrasing"),x=g.containerPhrasing(h,{...y,before:s,after:s});return d(),D(),x}function l(h,m){return V_(h,{align:m,alignDelimiters:n,padding:r,stringLength:i})}function c(h,m,g){const y=h.children;let D=-1;const d=[],x=m.enter("table");for(;++D<y.length;)d[D]=p(y[D],m,g);return x(),d}function p(h,m,g){const y=h.children;let D=-1;const d=[],x=m.enter("tableRow");for(;++D<y.length;)d[D]=u(y[D],h,m,g);return x(),d}function f(h,m,g){let y=_2.inlineCode(h,m,g);return g.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function BB(){return{exit:{taskListCheckValueChecked:N2,taskListCheckValueUnchecked:N2,paragraph:$B}}}function NB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:IB}}}function N2(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function $B(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const i=e.children;let s=-1,a;for(;++s<i.length;){const o=i[s];if(o.type==="paragraph"){a=o;break}}a===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(t)}function IB(t,e,r,n){const i=t.children[0],s=typeof t.checked=="boolean"&&i&&i.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",o=r.createTracker(n);s&&o.move(a);let u=_2.listItem(t,e,r,{...n,...o.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),u;function l(c){return c+a}}function OB(){return[f_(),$_(),M_(),FB(),BB()]}function LB(t){return{extensions:[d_(),I_(t),R_(),_B(t),NB()]}}const MB={tokenize:VB,partial:!0},$2={tokenize:HB,partial:!0},I2={tokenize:WB,partial:!0},O2={tokenize:GB,partial:!0},RB={tokenize:JB,partial:!0},L2={name:"wwwAutolink",tokenize:UB,previous:R2},M2={name:"protocolAutolink",tokenize:zB,previous:j2},Vn={name:"emailAutolink",tokenize:qB,previous:q2},An={};function jB(){return{text:An}}let is=48;for(;is<123;)An[is]=Vn,is++,is===58?is=65:is===91&&(is=97);An[43]=Vn,An[45]=Vn,An[46]=Vn,An[95]=Vn,An[72]=[Vn,M2],An[104]=[Vn,M2],An[87]=[Vn,L2],An[119]=[Vn,L2];function qB(t,e,r){const n=this;let i,s;return a;function a(p){return!Af(p)||!q2.call(n,n.previous)||bf(n.events)?r(p):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),o(p))}function o(p){return Af(p)?(t.consume(p),o):p===64?(t.consume(p),u):r(p)}function u(p){return p===46?t.check(RB,c,l)(p):p===45||p===95||Kt(p)?(s=!0,t.consume(p),u):c(p)}function l(p){return t.consume(p),i=!0,u}function c(p){return s&&i&&rr(n.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(p)):r(p)}}function UB(t,e,r){const n=this;return i;function i(a){return a!==87&&a!==119||!R2.call(n,n.previous)||bf(n.events)?r(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(MB,t.attempt($2,t.attempt(I2,s),r),r)(a))}function s(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(a)}}function zB(t,e,r){const n=this;let i="",s=!1;return a;function a(p){return(p===72||p===104)&&j2.call(n,n.previous)&&!bf(n.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(p),t.consume(p),o):r(p)}function o(p){if(rr(p)&&i.length<5)return i+=String.fromCodePoint(p),t.consume(p),o;if(p===58){const f=i.toLowerCase();if(f==="http"||f==="https")return t.consume(p),u}return r(p)}function u(p){return p===47?(t.consume(p),s?l:(s=!0,u)):r(p)}function l(p){return p===null||Dl(p)||at(p)||ns(p)||El(p)?r(p):t.attempt($2,t.attempt(I2,c),r)(p)}function c(p){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(p)}}function VB(t,e,r){let n=0;return i;function i(a){return(a===87||a===119)&&n<3?(n++,t.consume(a),i):a===46&&n===3?(t.consume(a),s):r(a)}function s(a){return a===null?r(a):e(a)}}function HB(t,e,r){let n,i,s;return a;function a(l){return l===46||l===95?t.check(O2,u,o)(l):l===null||at(l)||ns(l)||l!==45&&El(l)?u(l):(s=!0,t.consume(l),a)}function o(l){return l===95?n=!0:(i=n,n=void 0),t.consume(l),a}function u(l){return i||n||!s?r(l):e(l)}}function WB(t,e){let r=0,n=0;return i;function i(a){return a===40?(r++,t.consume(a),i):a===41&&n<r?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?t.check(O2,e,s)(a):a===null||at(a)||ns(a)?e(a):(t.consume(a),i)}function s(a){return a===41&&n++,t.consume(a),i}}function GB(t,e,r){return n;function n(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(t.consume(o),n):o===38?(t.consume(o),s):o===93?(t.consume(o),i):o===60||o===null||at(o)||ns(o)?e(o):r(o)}function i(o){return o===null||o===40||o===91||at(o)||ns(o)?e(o):n(o)}function s(o){return rr(o)?a(o):r(o)}function a(o){return o===59?(t.consume(o),n):rr(o)?(t.consume(o),a):r(o)}}function JB(t,e,r){return n;function n(s){return t.consume(s),i}function i(s){return Kt(s)?r(s):e(s)}}function R2(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||at(t)}function j2(t){return!rr(t)}function q2(t){return!(t===47||Af(t))}function Af(t){return t===43||t===45||t===46||t===95||Kt(t)}function bf(t){let e=t.length,r=!1;for(;e--;){const n=t[e][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const KB={tokenize:nN,partial:!0};function YB(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:eN,continuation:{tokenize:tN},exit:rN}},text:{91:{name:"gfmFootnoteCall",tokenize:ZB},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:XB,resolveTo:QB}}}}function XB(t,e,r){const n=this;let i=n.events.length;const s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;i--;){const u=n.events[i][1];if(u.type==="labelImage"){a=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!a||!a._balanced)return r(u);const l=on(n.sliceSerialize({start:a.end,end:n.now()}));return l.codePointAt(0)!==94||!s.includes(l.slice(1))?r(u):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(u),t.exit("gfmFootnoteCallLabelMarker"),e(u))}}function QB(t,e){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[t[r+1],t[r+2],["enter",n,e],t[r+3],t[r+4],["enter",i,e],["exit",i,e],["enter",s,e],["enter",a,e],["exit",a,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",n,e]];return t.splice(r,t.length-r+1,...o),t}function ZB(t,e,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s=0,a;return o;function o(p){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),u}function u(p){return p!==94?r(p):(t.enter("gfmFootnoteCallMarker"),t.consume(p),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",l)}function l(p){if(s>999||p===93&&!a||p===null||p===91||at(p))return r(p);if(p===93){t.exit("chunkString");const f=t.exit("gfmFootnoteCallString");return i.includes(on(n.sliceSerialize(f)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):r(p)}return at(p)||(a=!0),s++,t.consume(p),p===92?c:l}function c(p){return p===91||p===92||p===93?(t.consume(p),s++,l):l(p)}}function eN(t,e,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s,a=0,o;return u;function u(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",c):r(m)}function c(m){if(a>999||m===93&&!o||m===null||m===91||at(m))return r(m);if(m===93){t.exit("chunkString");const g=t.exit("gfmFootnoteDefinitionLabelString");return s=on(n.sliceSerialize(g)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),f}return at(m)||(o=!0),a++,t.consume(m),m===92?p:c}function p(m){return m===91||m===92||m===93?(t.consume(m),a++,c):c(m)}function f(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),i.includes(s)||i.push(s),Ke(t,h,"gfmFootnoteDefinitionWhitespace")):r(m)}function h(m){return e(m)}}function tN(t,e,r){return t.check(yo,e,t.attempt(KB,e,r))}function rN(t){t.exit("gfmFootnoteDefinition")}function nN(t,e,r){const n=this;return Ke(t,i,"gfmFootnoteDefinitionIndent",5);function i(s){const a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?e(s):r(s)}}function iN(t){let r=(t||{}).singleTilde;const n={name:"strikethrough",tokenize:s,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(a,o){let u=-1;for(;++u<a.length;)if(a[u][0]==="enter"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._close){let l=u;for(;l--;)if(a[l][0]==="exit"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._open&&a[u][1].end.offset-a[u][1].start.offset===a[l][1].end.offset-a[l][1].start.offset){a[u][1].type="strikethroughSequence",a[l][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[l][1].start),end:Object.assign({},a[u][1].end)},p={type:"strikethroughText",start:Object.assign({},a[l][1].end),end:Object.assign({},a[u][1].start)},f=[["enter",c,o],["enter",a[l][1],o],["exit",a[l][1],o],["enter",p,o]],h=o.parser.constructs.insideSpan.null;h&&Nr(f,f.length,0,xl(h,a.slice(l+1,u),o)),Nr(f,f.length,0,[["exit",p,o],["enter",a[u][1],o],["exit",a[u][1],o],["exit",c,o]]),Nr(a,l-1,u-l+3,f),u=l+f.length-2;break}}for(u=-1;++u<a.length;)a[u][1].type==="strikethroughSequenceTemporary"&&(a[u][1].type="data");return a}function s(a,o,u){const l=this.previous,c=this.events;let p=0;return f;function f(m){return l===126&&c[c.length-1][1].type!=="characterEscape"?u(m):(a.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const g=Zs(l);if(m===126)return p>1?u(m):(a.consume(m),p++,h);if(p<2&&!r)return u(m);const y=a.exit("strikethroughSequenceTemporary"),D=Zs(m);return y._open=!D||D===2&&!!g,y._close=!g||g===2&&!!D,o(m)}}}class sN{constructor(){this.map=[]}add(e,r,n){aN(this,e,r,n)}consume(e){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(e.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),e.length=this.map[r][0];n.push(e.slice()),e.length=0;let i=n.pop();for(;i;){for(const s of i)e.push(s);i=n.pop()}this.map.length=0}}function aN(t,e,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=r,t.map[i][2].push(...n);return}i+=1}t.map.push([e,r,n])}}function oN(t,e){let r=!1;const n=[];for(;e<t.length;){const i=t[e];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const s=n.length-1;n[s]=n[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);e+=1}return n}function uN(){return{flow:{null:{name:"table",tokenize:lN,resolveAll:cN}}}}function lN(t,e,r){const n=this;let i=0,s=0,a;return o;function o(F){let S=n.events.length-1;for(;S>-1;){const O=n.events[S][1].type;if(O==="lineEnding"||O==="linePrefix")S--;else break}const I=S>-1?n.events[S][1].type:null,B=I==="tableHead"||I==="tableRow"?C:u;return B===C&&n.parser.lazy[n.now().line]?r(F):B(F)}function u(F){return t.enter("tableHead"),t.enter("tableRow"),l(F)}function l(F){return F===124||(a=!0,s+=1),c(F)}function c(F){return F===null?r(F):Se(F)?s>1?(s=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(F),t.exit("lineEnding"),h):r(F):ze(F)?Ke(t,c,"whitespace")(F):(s+=1,a&&(a=!1,i+=1),F===124?(t.enter("tableCellDivider"),t.consume(F),t.exit("tableCellDivider"),a=!0,c):(t.enter("data"),p(F)))}function p(F){return F===null||F===124||at(F)?(t.exit("data"),c(F)):(t.consume(F),F===92?f:p)}function f(F){return F===92||F===124?(t.consume(F),p):p(F)}function h(F){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(F):(t.enter("tableDelimiterRow"),a=!1,ze(F)?Ke(t,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):m(F))}function m(F){return F===45||F===58?y(F):F===124?(a=!0,t.enter("tableCellDivider"),t.consume(F),t.exit("tableCellDivider"),g):E(F)}function g(F){return ze(F)?Ke(t,y,"whitespace")(F):y(F)}function y(F){return F===58?(s+=1,a=!0,t.enter("tableDelimiterMarker"),t.consume(F),t.exit("tableDelimiterMarker"),D):F===45?(s+=1,D(F)):F===null||Se(F)?A(F):E(F)}function D(F){return F===45?(t.enter("tableDelimiterFiller"),d(F)):E(F)}function d(F){return F===45?(t.consume(F),d):F===58?(a=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(F),t.exit("tableDelimiterMarker"),x):(t.exit("tableDelimiterFiller"),x(F))}function x(F){return ze(F)?Ke(t,A,"whitespace")(F):A(F)}function A(F){return F===124?m(F):F===null||Se(F)?!a||i!==s?E(F):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(F)):E(F)}function E(F){return r(F)}function C(F){return t.enter("tableRow"),b(F)}function b(F){return F===124?(t.enter("tableCellDivider"),t.consume(F),t.exit("tableCellDivider"),b):F===null||Se(F)?(t.exit("tableRow"),e(F)):ze(F)?Ke(t,b,"whitespace")(F):(t.enter("data"),w(F))}function w(F){return F===null||F===124||at(F)?(t.exit("data"),b(F)):(t.consume(F),F===92?P:w)}function P(F){return F===92||F===124?(t.consume(F),w):w(F)}}function cN(t,e){let r=-1,n=!0,i=0,s=[0,0,0,0],a=[0,0,0,0],o=!1,u=0,l,c,p;const f=new sN;for(;++r<t.length;){const h=t[r],m=h[1];h[0]==="enter"?m.type==="tableHead"?(o=!1,u!==0&&(U2(f,e,u,l,c),c=void 0,u=0),l={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(r,0,[["enter",l,e]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,p=void 0,s=[0,0,0,0],a=[0,r+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(r,0,[["enter",c,e]])),i=m.type==="tableDelimiterRow"?2:c?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],p=wl(f,e,s,i,void 0,p),s=[0,0,0,0]),a[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(s[1]!==0&&(a[0]=a[1],p=wl(f,e,s,i,void 0,p)),s=a,a=[s[1],r,0,0])):m.type==="tableHead"?(o=!0,u=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(u=r,s[1]!==0?(a[0]=a[1],p=wl(f,e,s,i,r,p)):a[1]!==0&&(p=wl(f,e,a,i,r,p)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(a[3]=r)}for(u!==0&&U2(f,e,u,l,c),f.consume(e.events),r=-1;++r<e.events.length;){const h=e.events[r];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=oN(e.events,r))}return t}function wl(t,e,r,n,i,s){const a=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(s.end=Object.assign({},ea(e.events,r[0])),t.add(r[0],0,[["exit",s,e]]));const u=ea(e.events,r[1]);if(s={type:a,start:Object.assign({},u),end:Object.assign({},u)},t.add(r[1],0,[["enter",s,e]]),r[2]!==0){const l=ea(e.events,r[2]),c=ea(e.events,r[3]),p={type:o,start:Object.assign({},l),end:Object.assign({},c)};if(t.add(r[2],0,[["enter",p,e]]),n!==2){const f=e.events[r[2]],h=e.events[r[3]];if(f[1].end=Object.assign({},h[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const m=r[2]+1,g=r[3]-r[2]-1;t.add(m,g,[])}}t.add(r[3]+1,0,[["exit",p,e]])}return i!==void 0&&(s.end=Object.assign({},ea(e.events,i)),t.add(i,0,[["exit",s,e]]),s=void 0),s}function U2(t,e,r,n,i){const s=[],a=ea(e.events,r);i&&(i.end=Object.assign({},a),s.push(["exit",i,e])),n.end=Object.assign({},a),s.push(["exit",n,e]),t.add(r+1,0,s)}function ea(t,e){const r=t[e],n=r[0]==="enter"?"start":"end";return r[1][n]}const pN={name:"tasklistCheck",tokenize:fN};function hN(){return{text:{91:pN}}}function fN(t,e,r){const n=this;return i;function i(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),s)}function s(u){return at(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),a):r(u)}function a(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),o):r(u)}function o(u){return Se(u)?e(u):ze(u)?t.check({tokenize:dN},e,r)(u):r(u)}}function dN(t,e,r){return Ke(t,n,"whitespace");function n(i){return i===null?r(i):e(i)}}function mN(t){return VD([jB(),YB(),iN(t),uN(),hN()])}const gN={};function yN(t){const e=this,r=t||gN,n=e.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(mN(r)),s.push(OB()),a.push(LB(r))}function DN(t,e){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,r),t.applyData(e,r)}function EN(t,e){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,r),[t.applyData(e,r),{type:"text",value:`
|
|
19
|
+
`}]}function xN(t,e){const r=e.value?e.value+`
|
|
20
|
+
`:"",n={},i=e.lang?e.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return e.meta&&(s.data={meta:e.meta}),t.patch(e,s),s=t.applyData(e,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(e,s),s}function CN(t,e){const r={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function AN(t,e){const r={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function bN(t,e){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=String(e.identifier).toUpperCase(),i=Qs(n.toLowerCase()),s=t.footnoteOrder.indexOf(n);let a,o=t.footnoteCounts.get(n);o===void 0?(o=0,t.footnoteOrder.push(n),a=t.footnoteOrder.length):a=s+1,o+=1,t.footnoteCounts.set(n,o);const u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};t.patch(e,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return t.patch(e,l),t.applyData(e,l)}function vN(t,e){const r={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function FN(t,e){if(t.options.allowDangerousHtml){const r={type:"raw",value:e.value};return t.patch(e,r),t.applyData(e,r)}}function z2(t,e){const r=e.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+n}];const i=t.all(e),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=n:i.push({type:"text",value:n}),i}function TN(t,e){const r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return z2(t,e);const i={src:Qs(n.url||""),alt:e.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const s={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,s),t.applyData(e,s)}function wN(t,e){const r={src:Qs(e.url)};e.alt!==null&&e.alt!==void 0&&(r.alt=e.alt),e.title!==null&&e.title!==void 0&&(r.title=e.title);const n={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,n),t.applyData(e,n)}function SN(t,e){const r={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(e,n),t.applyData(e,n)}function kN(t,e){const r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return z2(t,e);const i={href:Qs(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const s={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}function PN(t,e){const r={href:Qs(e.url)};e.title!==null&&e.title!==void 0&&(r.title=e.title);const n={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function _N(t,e,r){const n=t.all(e),i=r?BN(r):V2(e),s={},a=[];if(typeof e.checked=="boolean"){const c=n[0];let p;c&&c.type==="element"&&c.tagName==="p"?p=c:(p={type:"element",tagName:"p",properties:{},children:[]},n.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<n.length;){const c=n[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
|
|
21
|
+
`}),c.type==="element"&&c.tagName==="p"&&!i?a.push(...c.children):a.push(c)}const u=n[n.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
|
|
22
|
+
`});const l={type:"element",tagName:"li",properties:s,children:a};return t.patch(e,l),t.applyData(e,l)}function BN(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const r=t.children;let n=-1;for(;!e&&++n<r.length;)e=V2(r[n])}return e}function V2(t){const e=t.spread;return e??t.children.length>1}function NN(t,e){const r={},n=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(r.start=e.start);++i<n.length;){const a=n[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:r,children:t.wrap(n,!0)};return t.patch(e,s),t.applyData(e,s)}function $N(t,e){const r={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function IN(t,e){const r={type:"root",children:t.wrap(t.all(e))};return t.patch(e,r),t.applyData(e,r)}function ON(t,e){const r={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}const H2=G2("end"),W2=G2("start");function G2(t){return e;function e(r){const n=r&&r.position&&r.position[t]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function LN(t){const e=W2(t),r=H2(t);if(e&&r)return{start:e,end:r}}function MN(t,e){const r=t.all(e),n=r.shift(),i=[];if(n){const a={type:"element",tagName:"thead",properties:{},children:t.wrap([n],!0)};t.patch(e.children[0],a),i.push(a)}if(r.length>0){const a={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},o=W2(e.children[1]),u=H2(e.children[e.children.length-1]);o&&u&&(a.position={start:o,end:u}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}function RN(t,e,r){const n=r?r.children:void 0,s=(n?n.indexOf(e):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,o=a?a.length:e.children.length;let u=-1;const l=[];for(;++u<o;){const p=e.children[u],f={},h=a?a[u]:void 0;h&&(f.align=h);let m={type:"element",tagName:s,properties:f,children:[]};p&&(m.children=t.all(p),t.patch(p,m),m=t.applyData(p,m)),l.push(m)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(l,!0)};return t.patch(e,c),t.applyData(e,c)}function jN(t,e){const r={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}const J2=9,K2=32;function qN(t){const e=String(t),r=/\r?\n|\r/g;let n=r.exec(e),i=0;const s=[];for(;n;)s.push(Y2(e.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(e);return s.push(Y2(e.slice(i),i>0,!1)),s.join("")}function Y2(t,e,r){let n=0,i=t.length;if(e){let s=t.codePointAt(n);for(;s===J2||s===K2;)n++,s=t.codePointAt(n)}if(r){let s=t.codePointAt(i-1);for(;s===J2||s===K2;)i--,s=t.codePointAt(i-1)}return i>n?t.slice(n,i):""}function UN(t,e){const r={type:"text",value:qN(String(e.value))};return t.patch(e,r),t.applyData(e,r)}function zN(t,e){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,r),t.applyData(e,r)}const VN={blockquote:DN,break:EN,code:xN,delete:CN,emphasis:AN,footnoteReference:bN,heading:vN,html:FN,imageReference:TN,image:wN,inlineCode:SN,linkReference:kN,link:PN,listItem:_N,list:NN,paragraph:$N,root:IN,strong:ON,table:MN,tableCell:jN,tableRow:RN,text:UN,thematicBreak:zN,toml:Sl,yaml:Sl,definition:Sl,footnoteDefinition:Sl};function Sl(){}const X2=-1,kl=0,Co=1,Pl=2,vf=3,Ff=4,Tf=5,wf=6,Q2=7,Z2=8,e0=typeof self=="object"?self:globalThis,HN=(t,e)=>{const r=(i,s)=>(t.set(s,i),i),n=i=>{if(t.has(i))return t.get(i);const[s,a]=e[i];switch(s){case kl:case X2:return r(a,i);case Co:{const o=r([],i);for(const u of a)o.push(n(u));return o}case Pl:{const o=r({},i);for(const[u,l]of a)o[n(u)]=n(l);return o}case vf:return r(new Date(a),i);case Ff:{const{source:o,flags:u}=a;return r(new RegExp(o,u),i)}case Tf:{const o=r(new Map,i);for(const[u,l]of a)o.set(n(u),n(l));return o}case wf:{const o=r(new Set,i);for(const u of a)o.add(n(u));return o}case Q2:{const{name:o,message:u}=a;return r(new e0[o](u),i)}case Z2:return r(BigInt(a),i);case"BigInt":return r(Object(BigInt(a)),i);case"ArrayBuffer":return r(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return r(new DataView(o),a)}}return r(new e0[s](a),i)};return n},t0=t=>HN(new Map,t)(0),ta="",{toString:WN}={},{keys:GN}=Object,Ao=t=>{const e=typeof t;if(e!=="object"||!t)return[kl,e];const r=WN.call(t).slice(8,-1);switch(r){case"Array":return[Co,ta];case"Object":return[Pl,ta];case"Date":return[vf,ta];case"RegExp":return[Ff,ta];case"Map":return[Tf,ta];case"Set":return[wf,ta];case"DataView":return[Co,r]}return r.includes("Array")?[Co,r]:r.includes("Error")?[Q2,r]:[Pl,r]},_l=([t,e])=>t===kl&&(e==="function"||e==="symbol"),JN=(t,e,r,n)=>{const i=(a,o)=>{const u=n.push(a)-1;return r.set(o,u),u},s=a=>{if(r.has(a))return r.get(a);let[o,u]=Ao(a);switch(o){case kl:{let c=a;switch(u){case"bigint":o=Z2,c=a.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([X2],a)}return i([o,c],a)}case Co:{if(u){let f=a;return u==="DataView"?f=new Uint8Array(a.buffer):u==="ArrayBuffer"&&(f=new Uint8Array(a)),i([u,[...f]],a)}const c=[],p=i([o,c],a);for(const f of a)c.push(s(f));return p}case Pl:{if(u)switch(u){case"BigInt":return i([u,a.toString()],a);case"Boolean":case"Number":case"String":return i([u,a.valueOf()],a)}if(e&&"toJSON"in a)return s(a.toJSON());const c=[],p=i([o,c],a);for(const f of GN(a))(t||!_l(Ao(a[f])))&&c.push([s(f),s(a[f])]);return p}case vf:return i([o,a.toISOString()],a);case Ff:{const{source:c,flags:p}=a;return i([o,{source:c,flags:p}],a)}case Tf:{const c=[],p=i([o,c],a);for(const[f,h]of a)(t||!(_l(Ao(f))||_l(Ao(h))))&&c.push([s(f),s(h)]);return p}case wf:{const c=[],p=i([o,c],a);for(const f of a)(t||!_l(Ao(f)))&&c.push(s(f));return p}}const{message:l}=a;return i([o,{name:u,message:l}],a)};return s},r0=(t,{json:e,lossy:r}={})=>{const n=[];return JN(!(e||r),!!e,new Map,n)(t),n},Bl=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?t0(r0(t,e)):structuredClone(t):(t,e)=>t0(r0(t,e));function KN(t,e){const r=[{type:"text",value:"↩"}];return e>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),r}function YN(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function XN(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||KN,n=t.options.footnoteBackLabel||YN,i=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",a=t.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<t.footnoteOrder.length;){const l=t.footnoteById.get(t.footnoteOrder[u]);if(!l)continue;const c=t.all(l),p=String(l.identifier).toUpperCase(),f=Qs(p.toLowerCase());let h=0;const m=[],g=t.footnoteCounts.get(p);for(;g!==void 0&&++h<=g;){m.length>0&&m.push({type:"text",value:" "});let d=typeof r=="string"?r:r(u,h);typeof d=="string"&&(d={type:"text",value:d}),m.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(u,h),className:["data-footnote-backref"]},children:Array.isArray(d)?d:[d]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const d=y.children[y.children.length-1];d&&d.type==="text"?d.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...m)}else c.push(...m);const D={type:"element",tagName:"li",properties:{id:e+"fn-"+f},children:t.wrap(c,!0)};t.patch(l,D),o.push(D)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Bl(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
23
|
+
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(o,!0)},{type:"text",value:`
|
|
24
|
+
`}]}}const Sf={}.hasOwnProperty,QN={};function ZN(t,e){const r=e||QN,n=new Map,i=new Map,s=new Map,a={...VN,...r.handlers},o={all:l,applyData:t$,definitionById:n,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:u,options:r,patch:e$,wrap:n$};return Tl(t,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const p=c.type==="definition"?n:i,f=String(c.identifier).toUpperCase();p.has(f)||p.set(f,c)}}),o;function u(c,p){const f=c.type,h=o.handlers[f];if(Sf.call(o.handlers,f)&&h)return h(o,c,p);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in c){const{children:g,...y}=c,D=Bl(y);return D.children=o.all(c),D}return Bl(c)}return(o.options.unknownHandler||r$)(o,c,p)}function l(c){const p=[];if("children"in c){const f=c.children;let h=-1;for(;++h<f.length;){const m=o.one(f[h],c);if(m){if(h&&f[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=n0(m.value)),!Array.isArray(m)&&m.type==="element")){const g=m.children[0];g&&g.type==="text"&&(g.value=n0(g.value))}Array.isArray(m)?p.push(...m):p.push(m)}}}return p}}function e$(t,e){t.position&&(e.position=LN(t))}function t$(t,e){let r=e;if(t&&t.data){const n=t.data.hName,i=t.data.hChildren,s=t.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const a="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:a}}r.type==="element"&&s&&Object.assign(r.properties,Bl(s)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function r$(t,e){const r=e.data||{},n="value"in e&&!(Sf.call(r,"hProperties")||Sf.call(r,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function n$(t,e){const r=[];let n=-1;for(e&&r.push({type:"text",value:`
|
|
25
|
+
`});++n<t.length;)n&&r.push({type:"text",value:`
|
|
26
|
+
`}),r.push(t[n]);return e&&t.length>0&&r.push({type:"text",value:`
|
|
27
|
+
`}),r}function n0(t){let e=0,r=t.charCodeAt(e);for(;r===9||r===32;)e++,r=t.charCodeAt(e);return t.slice(e)}function i0(t,e){const r=ZN(t,e),n=r.one(t,void 0),i=XN(r),s=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
|
|
28
|
+
`},i),s}function i$(t,e){return t&&"run"in t?async function(r,n){const i=i0(r,{file:n,...e});await t.run(i,n)}:function(r,n){return i0(r,{file:n,...t||e})}}const s$=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class bo{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}}bo.prototype.normal={},bo.prototype.property={},bo.prototype.space=void 0;function s0(t,e){const r={},n={};for(const i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new bo(r,n,e)}function kf(t){return t.toLowerCase()}class Er{constructor(e,r){this.attribute=r,this.property=e}}Er.prototype.attribute="",Er.prototype.booleanish=!1,Er.prototype.boolean=!1,Er.prototype.commaOrSpaceSeparated=!1,Er.prototype.commaSeparated=!1,Er.prototype.defined=!1,Er.prototype.mustUseProperty=!1,Er.prototype.number=!1,Er.prototype.overloadedBoolean=!1,Er.prototype.property="",Er.prototype.spaceSeparated=!1,Er.prototype.space=void 0;let a$=0;const $e=ss(),St=ss(),Pf=ss(),ce=ss(),ot=ss(),ra=ss(),$r=ss();function ss(){return 2**++a$}const _f=Object.freeze(Object.defineProperty({__proto__:null,boolean:$e,booleanish:St,commaOrSpaceSeparated:$r,commaSeparated:ra,number:ce,overloadedBoolean:Pf,spaceSeparated:ot},Symbol.toStringTag,{value:"Module"})),Bf=Object.keys(_f);class Nf extends Er{constructor(e,r,n,i){let s=-1;if(super(e,r),a0(this,"space",i),typeof n=="number")for(;++s<Bf.length;){const a=Bf[s];a0(this,Bf[s],(n&_f[a])===_f[a])}}}Nf.prototype.defined=!0;function a0(t,e,r){r&&(t[e]=r)}function na(t){const e={},r={};for(const[n,i]of Object.entries(t.properties)){const s=new Nf(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),e[n]=s,r[kf(n)]=n,r[kf(s.attribute)]=n}return new bo(e,r,t.space)}const o0=na({properties:{ariaActiveDescendant:null,ariaAtomic:St,ariaAutoComplete:null,ariaBusy:St,ariaChecked:St,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:ot,ariaCurrent:null,ariaDescribedBy:ot,ariaDetails:null,ariaDisabled:St,ariaDropEffect:ot,ariaErrorMessage:null,ariaExpanded:St,ariaFlowTo:ot,ariaGrabbed:St,ariaHasPopup:null,ariaHidden:St,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ot,ariaLevel:ce,ariaLive:null,ariaModal:St,ariaMultiLine:St,ariaMultiSelectable:St,ariaOrientation:null,ariaOwns:ot,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:St,ariaReadOnly:St,ariaRelevant:null,ariaRequired:St,ariaRoleDescription:ot,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:St,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function u0(t,e){return e in t?t[e]:e}function l0(t,e){return u0(t,e.toLowerCase())}const o$=na({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ra,acceptCharset:ot,accessKey:ot,action:null,allow:null,allowFullScreen:$e,allowPaymentRequest:$e,allowUserMedia:$e,alt:null,as:null,async:$e,autoCapitalize:null,autoComplete:ot,autoFocus:$e,autoPlay:$e,blocking:ot,capture:null,charSet:null,checked:$e,cite:null,className:ot,cols:ce,colSpan:null,content:null,contentEditable:St,controls:$e,controlsList:ot,coords:ce|ra,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$e,defer:$e,dir:null,dirName:null,disabled:$e,download:Pf,draggable:St,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$e,formTarget:null,headers:ot,height:ce,hidden:Pf,high:ce,href:null,hrefLang:null,htmlFor:ot,httpEquiv:ot,id:null,imageSizes:null,imageSrcSet:null,inert:$e,inputMode:null,integrity:null,is:null,isMap:$e,itemId:null,itemProp:ot,itemRef:ot,itemScope:$e,itemType:ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$e,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:$e,muted:$e,name:null,nonce:null,noModule:$e,noValidate:$e,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$e,optimum:ce,pattern:null,ping:ot,placeholder:null,playsInline:$e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$e,referrerPolicy:null,rel:ot,required:$e,reversed:$e,rows:ce,rowSpan:ce,sandbox:ot,scope:null,scoped:$e,seamless:$e,selected:$e,shadowRootClonable:$e,shadowRootDelegatesFocus:$e,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:St,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:$e,useMap:null,value:St,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ot,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$e,declare:$e,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:$e,noHref:$e,noShade:$e,noWrap:$e,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:St,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$e,disableRemotePlayback:$e,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:l0}),u$=na({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:$r,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:ot,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:$e,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ra,g2:ra,glyphName:ra,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:$r,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ot,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$r,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$r,rev:$r,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$r,requiredFeatures:$r,requiredFonts:$r,requiredFormats:$r,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:$r,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$r,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$r,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:u0}),c0=na({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),p0=na({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:l0}),h0=na({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),l$=/[A-Z]/g,f0=/-[a-z]/g,c$=/^data[-\w.:]+$/i;function p$(t,e){const r=kf(e);let n=e,i=Er;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&c$.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(f0,f$);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!f0.test(s)){let a=s.replace(l$,h$);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=Nf}return new i(n,e)}function h$(t){return"-"+t.toLowerCase()}function f$(t){return t.charAt(1).toUpperCase()}const d$=s0([o0,o$,c0,p0,h0],"html"),d0=s0([o0,u$,c0,p0,h0],"svg"),m$=/["&'<>`]/g,g$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y$=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,D$=/[|\\{}()[\]^$+*?.]/g,m0=new WeakMap;function E$(t,e){if(t=t.replace(e.subset?x$(e.subset):m$,n),e.subset||e.escapeOnly)return t;return t.replace(g$,r).replace(y$,n);function r(i,s,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function n(i,s,a){return e.format(i.charCodeAt(0),a.charCodeAt(s+1),e)}}function x$(t){let e=m0.get(t);return e||(e=C$(t),m0.set(t,e)),e}function C$(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(D$,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const A$=/[\dA-Fa-f]/;function b$(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!A$.test(String.fromCharCode(e))?n:n+";"}const v$=/\d/;function F$(t,e,r){const n="&#"+String(t);return r&&e&&!v$.test(String.fromCharCode(e))?n:n+";"}const T$=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],$f={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},w$=["cent","copy","divide","gt","lt","not","para","times"],g0={}.hasOwnProperty,If={};let Nl;for(Nl in $f)g0.call($f,Nl)&&(If[$f[Nl]]=Nl);const S$=/[^\dA-Za-z]/;function k$(t,e,r,n){const i=String.fromCharCode(t);if(g0.call(If,i)){const s=If[i],a="&"+s;return r&&T$.includes(s)&&!w$.includes(s)&&(!n||e&&e!==61&&S$.test(String.fromCharCode(e)))?a:a+";"}return""}function P$(t,e,r){let n=b$(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=k$(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const s=F$(t,e,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function ia(t,e){return E$(t,Object.assign({format:P$},e))}const _$=/^>|^->|<!--|-->|--!>|<!-$/g,B$=[">"],N$=["<",">"];function $$(t,e,r,n){return n.settings.bogusComments?"<?"+ia(t.value,Object.assign({},n.settings.characterReferences,{subset:B$}))+">":"<!--"+t.value.replace(_$,i)+"-->";function i(s){return ia(s,Object.assign({},n.settings.characterReferences,{subset:N$}))}}function I$(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function O$(t,e){const r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function L$(t){return t.join(" ").trim()}const M$=/[ \t\n\f\r]/g;function Of(t){return typeof t=="object"?t.type==="text"?y0(t.value):!1:y0(t)}function y0(t){return t.replace(M$,"")===""}const Bt=E0(1),D0=E0(-1),R$=[];function E0(t){return e;function e(r,n,i){const s=r?r.children:R$;let a=(n||0)+t,o=s[a];if(!i)for(;o&&Of(o);)a+=t,o=s[a];return o}}const j$={}.hasOwnProperty;function x0(t){return e;function e(r,n,i){return j$.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const Lf=x0({body:U$,caption:Mf,colgroup:Mf,dd:W$,dt:H$,head:Mf,html:q$,li:V$,optgroup:G$,option:J$,p:z$,rp:C0,rt:C0,tbody:Y$,td:A0,tfoot:X$,th:A0,thead:K$,tr:Q$});function Mf(t,e,r){const n=Bt(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Of(n.value.charAt(0)))}function q$(t,e,r){const n=Bt(r,e);return!n||n.type!=="comment"}function U$(t,e,r){const n=Bt(r,e);return!n||n.type!=="comment"}function z$(t,e,r){const n=Bt(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function V$(t,e,r){const n=Bt(r,e);return!n||n.type==="element"&&n.tagName==="li"}function H$(t,e,r){const n=Bt(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function W$(t,e,r){const n=Bt(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function C0(t,e,r){const n=Bt(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function G$(t,e,r){const n=Bt(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function J$(t,e,r){const n=Bt(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function K$(t,e,r){const n=Bt(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Y$(t,e,r){const n=Bt(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function X$(t,e,r){return!Bt(r,e)}function Q$(t,e,r){const n=Bt(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function A0(t,e,r){const n=Bt(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Z$=x0({body:rI,colgroup:nI,head:tI,html:eI,tbody:iI});function eI(t){const e=Bt(t,-1);return!e||e.type!=="comment"}function tI(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function rI(t){const e=Bt(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Of(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function nI(t,e,r){const n=D0(r,e),i=Bt(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Lf(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function iI(t,e,r){const n=D0(r,e),i=Bt(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Lf(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const $l={name:[[`
|
|
29
|
+
\f\r &/=>`.split(""),`
|
|
30
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
31
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
32
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
33
|
+
\f\r &>`.split(""),`\0
|
|
34
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
35
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
36
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function sI(t,e,r,n){const i=n.schema,s=i.space==="svg"?!1:n.settings.omitOptionalTags;let a=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const o=[];let u;i.space==="html"&&t.tagName==="svg"&&(n.schema=d0);const l=aI(n,t.properties),c=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,c&&(a=!1),(l||!s||!Z$(t,e,r))&&(o.push("<",t.tagName,l?" "+l:""),a&&(i.space==="svg"||n.settings.closeSelfClosing)&&(u=l.charAt(l.length-1),(!n.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(c),!a&&(!s||!Lf(t,e,r))&&o.push("</"+t.tagName+">"),o.join("")}function aI(t,e){const r=[];let n=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const s=oI(t,i,e[i]);s&&r.push(s)}}for(;++n<r.length;){const s=t.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&s!=='"'&&s!=="'"&&(r[n]+=" ")}return r.join("")}function oI(t,e,r){const n=p$(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1;let a=t.quote,o;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const u=ia(n.attribute,Object.assign({},t.settings.characterReferences,{subset:$l.name[i][s]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?O$:L$)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?u:(t.settings.preferUnquoted&&(o=ia(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:$l.unquoted[i][s]}))),o!==r&&(t.settings.quoteSmart&&Al(r,a)>Al(r,t.alternative)&&(a=t.alternative),o=a+ia(r,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?$l.single:$l.double)[i][s],attribute:!0}))+a),u+(o&&"="+o))}const uI=["<","&"];function b0(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:ia(t.value,Object.assign({},n.settings.characterReferences,{subset:uI}))}function lI(t,e,r,n){return n.settings.allowDangerousHtml?t.value:b0(t,e,r,n)}function cI(t,e,r,n){return n.all(t)}const pI=W_("type",{invalid:hI,unknown:fI,handlers:{comment:$$,doctype:I$,element:sI,raw:lI,root:cI,text:b0}});function hI(t){throw new Error("Expected node, not `"+t+"`")}function fI(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const dI={},mI={},gI=[];function yI(t,e){const r=e||dI,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:DI,all:EI,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||s$,characterReferences:r.characterReferences||mI,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?d0:d$,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function DI(t,e,r){return pI(t,e,r,this)}function EI(t){const e=[],r=t&&t.children||gI;let n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}function xI(t){const e=this,r={...e.data("settings"),...t};e.compiler=n;function n(i){return yI(i,r)}}var CI=Object.create,Rf=Object.defineProperty,AI=Object.getOwnPropertyDescriptor,bI=Object.getOwnPropertyNames,vI=Object.getPrototypeOf,FI=Object.prototype.hasOwnProperty,TI=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),jf=(t,e)=>{for(var r in e)Rf(t,r,{get:e[r],enumerable:!0})},wI=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of bI(e))!FI.call(t,i)&&i!==r&&Rf(t,i,{get:()=>e[i],enumerable:!(n=AI(e,i))||n.enumerable});return t},SI=(t,e,r)=>(r=t!=null?CI(vI(t)):{},wI(Rf(r,"default",{value:t,enumerable:!0}),t)),kI=TI((t,e)=>{var r,n,i,s,a,o,u,l,c,p,f,h,m,g,y,D,d,x,A;m=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,h=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,y=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,f=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,D=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,A=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,g=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,a=/[^<>{}]+/y,x=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,d=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,p=RegExp(l.source),e.exports=function*(E,{jsx:C=!1}={}){var b,w,P,F,S,I,B,O,_,$,Y,V,ee,T;for({length:I}=E,F=0,S="",T=[{tag:"JS"}],b=[],Y=0,V=!1;F<I;){switch(O=T[T.length-1],O.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(E[F]==="/"&&(x.test(S)||o.test(S))&&(m.lastIndex=F,B=m.exec(E))){F=m.lastIndex,S=B[0],V=!0,yield{type:"RegularExpressionLiteral",value:B[0],closed:B[1]!==void 0&&B[1]!=="\\"};continue}if(h.lastIndex=F,B=h.exec(E)){switch(ee=B[0],_=h.lastIndex,$=ee,ee){case"(":S==="?NonExpressionParenKeyword"&&T.push({tag:"JSNonExpressionParen",nesting:Y}),Y++,V=!1;break;case")":Y--,V=!0,O.tag==="JSNonExpressionParen"&&Y===O.nesting&&(T.pop(),$="?NonExpressionParenEnd",V=!1);break;case"{":h.lastIndex=0,P=!d.test(S)&&(x.test(S)||o.test(S)),b.push(P),V=!1;break;case"}":switch(O.tag){case"InterpolationInTemplate":if(b.length===O.nesting){D.lastIndex=F,B=D.exec(E),F=D.lastIndex,S=B[0],B[1]==="${"?(S="?InterpolationInTemplate",V=!1,yield{type:"TemplateMiddle",value:B[0]}):(T.pop(),V=!0,yield{type:"TemplateTail",value:B[0],closed:B[1]==="`"});continue}break;case"InterpolationInJSX":if(b.length===O.nesting){T.pop(),F+=1,S="}",yield{type:"JSXPunctuator",value:"}"};continue}}V=b.pop(),$=V?"?ExpressionBraceEnd":"}";break;case"]":V=!0;break;case"++":case"--":$=V?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(C&&(x.test(S)||o.test(S))){T.push({tag:"JSXTag"}),F+=1,S="<",yield{type:"JSXPunctuator",value:ee};continue}V=!1;break;default:V=!1}F=_,S=$,yield{type:"Punctuator",value:ee};continue}if(r.lastIndex=F,B=r.exec(E)){switch(F=r.lastIndex,$=B[0],B[0]){case"for":case"if":case"while":case"with":S!=="."&&S!=="?."&&($="?NonExpressionParenKeyword")}S=$,V=!o.test(B[0]),yield{type:B[1]==="#"?"PrivateIdentifier":"IdentifierName",value:B[0]};continue}if(y.lastIndex=F,B=y.exec(E)){F=y.lastIndex,S=B[0],V=!0,yield{type:"StringLiteral",value:B[0],closed:B[2]!==void 0};continue}if(f.lastIndex=F,B=f.exec(E)){F=f.lastIndex,S=B[0],V=!0,yield{type:"NumericLiteral",value:B[0]};continue}if(D.lastIndex=F,B=D.exec(E)){F=D.lastIndex,S=B[0],B[1]==="${"?(S="?InterpolationInTemplate",T.push({tag:"InterpolationInTemplate",nesting:b.length}),V=!1,yield{type:"TemplateHead",value:B[0]}):(V=!0,yield{type:"NoSubstitutionTemplate",value:B[0],closed:B[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(i.lastIndex=F,B=i.exec(E)){switch(F=i.lastIndex,$=B[0],B[0]){case"<":T.push({tag:"JSXTag"});break;case">":T.pop(),S==="/"||O.tag==="JSXTagEnd"?($="?JSX",V=!0):T.push({tag:"JSXChildren"});break;case"{":T.push({tag:"InterpolationInJSX",nesting:b.length}),$="?InterpolationInJSX",V=!1;break;case"/":S==="<"&&(T.pop(),T[T.length-1].tag==="JSXChildren"&&T.pop(),T.push({tag:"JSXTagEnd"}))}S=$,yield{type:"JSXPunctuator",value:B[0]};continue}if(n.lastIndex=F,B=n.exec(E)){F=n.lastIndex,S=B[0],yield{type:"JSXIdentifier",value:B[0]};continue}if(s.lastIndex=F,B=s.exec(E)){F=s.lastIndex,S=B[0],yield{type:"JSXString",value:B[0],closed:B[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=F,B=a.exec(E)){F=a.lastIndex,S=B[0],yield{type:"JSXText",value:B[0]};continue}switch(E[F]){case"<":T.push({tag:"JSXTag"}),F++,S="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":T.push({tag:"InterpolationInJSX",nesting:b.length}),F++,S="?InterpolationInJSX",V=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(A.lastIndex=F,B=A.exec(E)){F=A.lastIndex,yield{type:"WhiteSpace",value:B[0]};continue}if(l.lastIndex=F,B=l.exec(E)){F=l.lastIndex,V=!1,u.test(S)&&(S="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:B[0]};continue}if(c.lastIndex=F,B=c.exec(E)){F=c.lastIndex,p.test(B[0])&&(V=!1,u.test(S)&&(S="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:B[0],closed:B[1]!==void 0};continue}if(g.lastIndex=F,B=g.exec(E)){F=g.lastIndex,V=!1,yield{type:"SingleLineComment",value:B[0]};continue}w=String.fromCodePoint(E.codePointAt(F)),F+=w.length,S=w,V=!1,yield{type:O.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:w}}}}),PI={};jf(PI,{__debug:()=>E9,check:()=>y9,doc:()=>V1,format:()=>Gl,formatWithCursor:()=>J1,getSupportInfo:()=>D9,util:()=>H1,version:()=>V4});var vo=(t,e)=>(r,n,...i)=>r|1&&n==null?void 0:(e.call(n)??n[t]).apply(n,i),_I=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},BI=vo("replaceAll",function(){if(typeof this=="string")return _I}),Il=BI,NI=class{diff(e,r,n={}){let i;typeof n=="function"?(i=n,n={}):"callback"in n&&(i=n.callback);let s=this.castInput(e,n),a=this.castInput(r,n),o=this.removeEmpty(this.tokenize(s,n)),u=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,u,n,i)}diffWithOptionsObj(e,r,n,i){var s;let a=d=>{if(d=this.postProcess(d,n),i){setTimeout(function(){i(d)},0);return}else return d},o=r.length,u=e.length,l=1,c=o+u;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let p=(s=n.timeout)!==null&&s!==void 0?s:1/0,f=Date.now()+p,h=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(h[0],r,e,0,n);if(h[0].oldPos+1>=u&&m+1>=o)return a(this.buildValues(h[0].lastComponent,r,e));let g=-1/0,y=1/0,D=()=>{for(let d=Math.max(g,-l);d<=Math.min(y,l);d+=2){let x,A=h[d-1],E=h[d+1];A&&(h[d-1]=void 0);let C=!1;if(E){let w=E.oldPos-d;C=E&&0<=w&&w<o}let b=A&&A.oldPos+1<u;if(!C&&!b){h[d]=void 0;continue}if(!b||C&&A.oldPos<E.oldPos?x=this.addToPath(E,!0,!1,0,n):x=this.addToPath(A,!1,!0,1,n),m=this.extractCommon(x,r,e,d,n),x.oldPos+1>=u&&m+1>=o)return a(this.buildValues(x.lastComponent,r,e))||!0;h[d]=x,x.oldPos+1>=u&&(y=Math.min(y,d-1)),m+1>=o&&(g=Math.max(g,d+1))}l++};if(i)(function d(){setTimeout(function(){if(l>c||Date.now()>f)return i(void 0);D()||d()},0)})();else for(;l<=c&&Date.now()<=f;){let d=D();if(d)return d}}addToPath(e,r,n,i,s){let a=e.lastComponent;return a&&!s.oneChangePerToken&&a.added===r&&a.removed===n?{oldPos:e.oldPos+i,lastComponent:{count:a.count+1,added:r,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:a}}}extractCommon(e,r,n,i,s){let a=r.length,o=n.length,u=e.oldPos,l=u-i,c=0;for(;l+1<a&&u+1<o&&this.equals(n[u+1],r[l+1],s);)l++,u++,c++,s.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!s.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=u,l}equals(e,r,n){return n.comparator?n.comparator(e,r):e===r||!!n.ignoreCase&&e.toLowerCase()===r.toLowerCase()}removeEmpty(e){let r=[];for(let n=0;n<e.length;n++)e[n]&&r.push(e[n]);return r}castInput(e,r){return e}tokenize(e,r){return Array.from(e)}join(e){return e.join("")}postProcess(e,r){return e}get useLongestToken(){return!1}buildValues(e,r,n){let i=[],s;for(;e;)i.push(e),s=e.previousComponent,delete e.previousComponent,e=s;i.reverse();let a=i.length,o=0,u=0,l=0;for(;o<a;o++){let c=i[o];if(c.removed)c.value=this.join(n.slice(l,l+c.count)),l+=c.count;else{if(!c.added&&this.useLongestToken){let p=r.slice(u,u+c.count);p=p.map(function(f,h){let m=n[l+h];return m.length>f.length?m:f}),c.value=this.join(p)}else c.value=this.join(r.slice(u,u+c.count));u+=c.count,c.added||(l+=c.count)}}return i}},$I=class extends NI{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}},II=new $I;function OI(t,e,r){return II.diff(t,e,r)}var LI=()=>{},MI=LI,v0="cr",F0="crlf",RI="lf",jI=RI,qf="\r",T0=`\r
|
|
37
|
+
`,Ol=`
|
|
38
|
+
`,qI=Ol;function UI(t){let e=t.indexOf(qf);return e!==-1?t.charAt(e+1)===Ol?F0:v0:jI}function Uf(t){return t===v0?qf:t===F0?T0:qI}var zI=new Map([[Ol,/\n/gu],[qf,/\r/gu],[T0,/\r\n/gu]]);function w0(t,e){let r=zI.get(e);return t.match(r)?.length??0}var VI=/\r\n?/gu;function HI(t){return Il(0,t,VI,Ol)}function WI(t){return this[t<0?this.length+t:t]}var GI=vo("at",function(){if(Array.isArray(this)||typeof this=="string")return WI}),Nt=GI,as="string",Hn="array",wi="cursor",Wn="indent",Gn="align",Jn="trim",xr="group",bn="fill",Ir="if-break",Kn="indent-if-break",Yn="line-suffix",Xn="line-suffix-boundary",zt="line",vn="label",Wr="break-parent",S0=new Set([wi,Wn,Gn,Jn,xr,bn,Ir,Kn,Yn,Xn,zt,vn,Wr]);function JI(t){let e=t.length;for(;e>0&&(t[e-1]==="\r"||t[e-1]===`
|
|
39
|
+
`);)e--;return e<t.length?t.slice(0,e):t}function KI(t){if(typeof t=="string")return as;if(Array.isArray(t))return Hn;if(!t)return;let{type:e}=t;if(S0.has(e))return e}var os=KI,YI=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function XI(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
40
|
+
Expected it to be 'string' or 'object'.`;if(os(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=YI([...S0].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
|
|
41
|
+
Expected it to be ${n}.`}var QI=class extends Error{name="InvalidDocError";constructor(e){super(XI(e)),this.doc=e}},sa=QI,k0={};function ZI(t,e,r,n){let i=[t];for(;i.length>0;){let s=i.pop();if(s===k0){r(i.pop());continue}r&&i.push(s,k0);let a=os(s);if(!a)throw new sa(s);if(e?.(s)!==!1)switch(a){case Hn:case bn:{let o=a===Hn?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case Ir:i.push(s.flatContents,s.breakContents);break;case xr:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case Gn:case Wn:case Kn:case vn:case Yn:i.push(s.contents);break;case as:case wi:case Jn:case Xn:case zt:case Wr:break;default:throw new sa(s)}}}var zf=ZI;function Ll(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(os(s)){case Hn:return e(s.map(n));case bn:return e({...s,parts:s.parts.map(n)});case Ir:return e({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case xr:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),e({...s,contents:o,expandedStates:a})}case Gn:case Wn:case Kn:case vn:case Yn:return e({...s,contents:n(s.contents)});case as:case wi:case Jn:case Xn:case zt:case Wr:return e(s);default:throw new sa(s)}}}function Vf(t,e,r){let n=r,i=!1;function s(a){if(i)return!1;let o=e(a);o!==void 0&&(i=!0,n=o)}return zf(t,s),n}function e8(t){if(t.type===xr&&t.break||t.type===zt&&t.hard||t.type===Wr)return!0}function t8(t){return Vf(t,e8,!1)}function P0(t){if(t.length>0){let e=Nt(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function r8(t){let e=new Set,r=[];function n(s){if(s.type===Wr&&P0(r),s.type===xr){if(r.push(s),e.has(s))return!1;e.add(s)}}function i(s){s.type===xr&&r.pop().break&&P0(r)}zf(t,n,i,!0)}function n8(t){return t.type===zt&&!t.hard?t.soft?"":" ":t.type===Ir?t.flatContents:t}function i8(t){return Ll(t,n8)}function _0(t){for(t=[...t];t.length>=2&&Nt(0,t,-2).type===zt&&Nt(0,t,-1).type===Wr;)t.length-=2;if(t.length>0){let e=Fo(Nt(0,t,-1));t[t.length-1]=e}return t}function Fo(t){switch(os(t)){case Wn:case Kn:case xr:case Yn:case vn:{let e=Fo(t.contents);return{...t,contents:e}}case Ir:return{...t,breakContents:Fo(t.breakContents),flatContents:Fo(t.flatContents)};case bn:return{...t,parts:_0(t.parts)};case Hn:return _0(t);case as:return JI(t);case Gn:case wi:case Jn:case Xn:case zt:case Wr:break;default:throw new sa(t)}return t}function B0(t){return Fo(a8(t))}function s8(t){switch(os(t)){case bn:if(t.parts.every(e=>e===""))return"";break;case xr:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===xr&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case Gn:case Wn:case Kn:case Yn:if(!t.contents)return"";break;case Ir:if(!t.flatContents&&!t.breakContents)return"";break;case Hn:{let e=[];for(let r of t){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Nt(0,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...i)}return e.length===0?"":e.length===1?e[0]:e}case as:case wi:case Jn:case Xn:case zt:case vn:case Wr:break;default:throw new sa(t)}return t}function a8(t){return Ll(t,e=>s8(e))}function o8(t,e=R0){return Ll(t,r=>typeof r=="string"?O0(e,r.split(`
|
|
42
|
+
`)):r)}function u8(t){if(t.type===zt)return!0}function l8(t){return Vf(t,u8,!1)}function Ml(t,e){return t.type===vn?{...t,contents:e(t.contents)}:e(t)}var c8=MI;function Rl(t){return{type:Wn,contents:t}}function aa(t,e){return{type:Gn,contents:e,n:t}}function p8(t){return aa(Number.NEGATIVE_INFINITY,t)}function N0(t){return aa({type:"root"},t)}function h8(t){return aa(-1,t)}function $0(t,e,r){let n=t;if(e>0){for(let i=0;i<Math.floor(e/r);++i)n=Rl(n);n=aa(e%r,n),n=aa(Number.NEGATIVE_INFINITY,n)}return n}var jl={type:Wr},us={type:wi};function f8(t){return{type:bn,parts:t}}function I0(t,e={}){return c8(e.expandedStates),{type:xr,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function d8(t,e){return I0(t[0],{...e,expandedStates:t})}function m8(t,e="",r={}){return{type:Ir,breakContents:t,flatContents:e,groupId:r.groupId}}function g8(t,e){return{type:Kn,contents:t,groupId:e.groupId,negate:e.negate}}function O0(t,e){let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}function y8(t,e){return t?{type:vn,label:t,contents:e}:e}var L0={type:zt},D8={type:zt,soft:!0},Hf={type:zt,hard:!0},Qn=[Hf,jl],M0={type:zt,hard:!0,literal:!0},R0=[M0,jl];function Wf(t){return{type:Yn,contents:t}}var E8={type:Xn},x8={type:Jn};function Zn(t){if(!t)return"";if(Array.isArray(t)){let e=[];for(let r of t)if(Array.isArray(r))e.push(...Zn(r));else{let n=Zn(r);n!==""&&e.push(n)}return e}return t.type===Ir?{...t,breakContents:Zn(t.breakContents),flatContents:Zn(t.flatContents)}:t.type===xr?{...t,contents:Zn(t.contents),expandedStates:t.expandedStates?.map(Zn)}:t.type===bn?{type:"fill",parts:t.parts.map(Zn)}:t.contents?{...t,contents:Zn(t.contents)}:t}function C8(t){let e=Object.create(null),r=new Set;return n(Zn(t));function n(s,a,o){if(typeof s=="string")return JSON.stringify(s);if(Array.isArray(s)){let u=s.map(n).filter(Boolean);return u.length===1?u[0]:`[${u.join(", ")}]`}if(s.type===zt){let u=o?.[a+1]?.type===Wr;return s.literal?u?"literalline":"literallineWithoutBreakParent":s.hard?u?"hardline":"hardlineWithoutBreakParent":s.soft?"softline":"line"}if(s.type===Wr)return o?.[a-1]?.type===zt&&o[a-1].hard?void 0:"breakParent";if(s.type===Jn)return"trim";if(s.type===Wn)return"indent("+n(s.contents)+")";if(s.type===Gn)return s.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(s.contents)+")":s.n<0?"dedent("+n(s.contents)+")":s.n.type==="root"?"markAsRoot("+n(s.contents)+")":"align("+JSON.stringify(s.n)+", "+n(s.contents)+")";if(s.type===Ir)return"ifBreak("+n(s.breakContents)+(s.flatContents?", "+n(s.flatContents):"")+(s.groupId?(s.flatContents?"":', ""')+`, { groupId: ${i(s.groupId)} }`:"")+")";if(s.type===Kn){let u=[];s.negate&&u.push("negate: true"),s.groupId&&u.push(`groupId: ${i(s.groupId)}`);let l=u.length>0?`, { ${u.join(", ")} }`:"";return`indentIfBreak(${n(s.contents)}${l})`}if(s.type===xr){let u=[];s.break&&s.break!=="propagated"&&u.push("shouldBreak: true"),s.id&&u.push(`id: ${i(s.id)}`);let l=u.length>0?`, { ${u.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(c=>n(c)).join(",")}]${l})`:`group(${n(s.contents)}${l})`}if(s.type===bn)return`fill([${s.parts.map(u=>n(u)).join(", ")}])`;if(s.type===Yn)return"lineSuffix("+n(s.contents)+")";if(s.type===Xn)return"lineSuffixBoundary";if(s.type===vn)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;if(s.type===wi)return"cursor";throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in e)return e[s];let a=s.description||"symbol";for(let o=0;;o++){let u=a+(o>0?` #${o}`:"");if(!r.has(u))return r.add(u),e[s]=`Symbol.for(${JSON.stringify(u)})`}}}var A8=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function b8(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function v8(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t>=94192&&t<=94198||t>=94208&&t<=101589||t>=101631&&t<=101662||t>=101760&&t<=101874||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128728||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129674||t>=129678&&t<=129734||t===129736||t>=129741&&t<=129756||t>=129759&&t<=129770||t>=129775&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}var F8="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",T8=/[^\x20-\x7F]/u,w8=new Set(F8);function S8(t){if(!t)return 0;if(!T8.test(t))return t.length;t=t.replace(A8(),r=>w8.has(r)?" ":" ");let e=0;for(let r of t){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(e+=b8(n)||v8(n)?2:1)}return e}var Gf=S8,k8={type:0},P8={type:1},j0={value:"",length:0,queue:[],get root(){return j0}};function q0(t,e,r){let n=e.type===1?t.queue.slice(0,-1):[...t.queue,e],i="",s=0,a=0,o=0;for(let m of n)switch(m.type){case 0:c(),r.useTabs?u(1):l(r.tabWidth);break;case 3:{let{string:g}=m;c(),i+=g,s+=g.length;break}case 2:{let{width:g}=m;a+=1,o+=g;break}default:throw new Error(`Unexpected indent comment '${m.type}'.`)}return f(),{...t,value:i,length:s,queue:n};function u(m){i+=" ".repeat(m),s+=r.tabWidth*m}function l(m){i+=" ".repeat(m),s+=m}function c(){r.useTabs?p():f()}function p(){a>0&&u(a),h()}function f(){o>0&&l(o),h()}function h(){a=0,o=0}}function _8(t,e,r){if(!e)return t;if(e.type==="root")return{...t,root:t};if(e===Number.NEGATIVE_INFINITY)return t.root;let n;return typeof e=="number"?e<0?n=P8:n={type:2,width:e}:n={type:3,string:e},q0(t,n,r)}function B8(t,e){return q0(t,k8,e)}function N8(t){let e=0;for(let r=t.length-1;r>=0;r--){let n=t[r];if(n===" "||n===" ")e++;else break}return e}function U0(t){let e=N8(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var Cr=Symbol("MODE_BREAK"),Fn=Symbol("MODE_FLAT"),Jf=Symbol("DOC_FILL_PRINTED_LENGTH");function ql(t,e,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=e.length,o=!1,u=[t],l="";for(;r>=0;){if(u.length===0){if(a===0)return!0;u.push(e[--a]);continue}let{mode:c,doc:p}=u.pop(),f=os(p);switch(f){case as:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=Gf(p));break;case Hn:case bn:{let h=f===Hn?p:p.parts,m=p[Jf]??0;for(let g=h.length-1;g>=m;g--)u.push({mode:c,doc:h[g]});break}case Wn:case Gn:case Kn:case vn:u.push({mode:c,doc:p.contents});break;case Jn:{let{text:h,count:m}=U0(l);l=h,r+=m;break}case xr:{if(s&&p.break)return!1;let h=p.break?Cr:c,m=p.expandedStates&&h===Cr?Nt(0,p.expandedStates,-1):p.contents;u.push({mode:h,doc:m});break}case Ir:{let h=(p.groupId?i[p.groupId]||Fn:c)===Cr?p.breakContents:p.flatContents;h&&u.push({mode:c,doc:h});break}case zt:if(c===Cr||p.hard)return!0;p.soft||(o=!0);break;case Yn:n=!0;break;case Xn:if(n)return!1;break}}return!1}function Ul(t,e){let r=Object.create(null),n=e.printWidth,i=Uf(e.endOfLine),s=0,a=[{indent:j0,mode:Cr,doc:t}],o="",u=!1,l=[],c=[],p=[],f=[],h=0;for(r8(t);a.length>0;){let{indent:d,mode:x,doc:A}=a.pop();switch(os(A)){case as:{let E=i!==`
|
|
43
|
+
`?Il(0,A,`
|
|
44
|
+
`,i):A;E&&(o+=E,a.length>0&&(s+=Gf(E)));break}case Hn:for(let E=A.length-1;E>=0;E--)a.push({indent:d,mode:x,doc:A[E]});break;case wi:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(h+o.length);break;case Wn:a.push({indent:B8(d,e),mode:x,doc:A.contents});break;case Gn:a.push({indent:_8(d,A.n,e),mode:x,doc:A.contents});break;case Jn:D();break;case xr:switch(x){case Fn:if(!u){a.push({indent:d,mode:A.break?Cr:Fn,doc:A.contents});break}case Cr:{u=!1;let E={indent:d,mode:Fn,doc:A.contents},C=n-s,b=l.length>0;if(!A.break&&ql(E,a,C,b,r))a.push(E);else if(A.expandedStates){let w=Nt(0,A.expandedStates,-1);if(A.break){a.push({indent:d,mode:Cr,doc:w});break}else for(let P=1;P<A.expandedStates.length+1;P++)if(P>=A.expandedStates.length){a.push({indent:d,mode:Cr,doc:w});break}else{let F=A.expandedStates[P],S={indent:d,mode:Fn,doc:F};if(ql(S,a,C,b,r)){a.push(S);break}}}else a.push({indent:d,mode:Cr,doc:A.contents});break}}A.id&&(r[A.id]=Nt(0,a,-1).mode);break;case bn:{let E=n-s,C=A[Jf]??0,{parts:b}=A,w=b.length-C;if(w===0)break;let P=b[C+0],F=b[C+1],S={indent:d,mode:Fn,doc:P},I={indent:d,mode:Cr,doc:P},B=ql(S,[],E,l.length>0,r,!0);if(w===1){B?a.push(S):a.push(I);break}let O={indent:d,mode:Fn,doc:F},_={indent:d,mode:Cr,doc:F};if(w===2){B?a.push(O,S):a.push(_,I);break}let $=b[C+2],Y={indent:d,mode:x,doc:{...A,[Jf]:C+2}},V=ql({indent:d,mode:Fn,doc:[P,F,$]},[],E,l.length>0,r,!0);a.push(Y),V?a.push(O,S):B?a.push(_,S):a.push(_,I);break}case Ir:case Kn:{let E=A.groupId?r[A.groupId]:x;if(E===Cr){let C=A.type===Ir?A.breakContents:A.negate?A.contents:Rl(A.contents);C&&a.push({indent:d,mode:x,doc:C})}if(E===Fn){let C=A.type===Ir?A.flatContents:A.negate?Rl(A.contents):A.contents;C&&a.push({indent:d,mode:x,doc:C})}break}case Yn:l.push({indent:d,mode:x,doc:A.contents});break;case Xn:l.length>0&&a.push({indent:d,mode:x,doc:Hf});break;case zt:switch(x){case Fn:if(A.hard)u=!0;else{A.soft||(o+=" ",s+=1);break}case Cr:if(l.length>0){a.push({indent:d,mode:x,doc:A},...l.reverse()),l.length=0;break}A.literal?(o+=i,s=0,d.root&&(d.root.value&&(o+=d.root.value),s=d.root.length)):(D(),o+=i+d.value,s=d.length);break}break;case vn:a.push({indent:d,mode:x,doc:A.contents});break;case Wr:break;default:throw new sa(A)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let m=p.join("")+o,g=[...f,...c];if(g.length!==2)return{formatted:m};let y=g[0];return{formatted:m,cursorNodeStart:y,cursorNodeText:m.slice(y,Nt(0,g,-1))};function D(){let{text:d,count:x}=U0(o);d&&(p.push(d),h+=d.length),o="",s-=x,c.length>0&&(f.push(...c.map(A=>Math.min(A,h))),c.length=0)}}function $8(t,e,r=0){let n=0;for(let i=r;i<t.length;++i)t[i]===" "?n=n+e-n%e:n++;return n}var Kf=$8,I8=class{constructor(e){this.stack=[e]}get key(){let{stack:e,siblings:r}=this;return Nt(0,e,r===null?-2:-4)??null}get index(){return this.siblings===null?null:Nt(0,this.stack,-2)}get node(){return Nt(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,r=Nt(0,e,-3);return Array.isArray(r)?r:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:r}=this;return e!==null&&r===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#t()]}getName(){let{stack:e}=this,{length:r}=e;return r>1?Nt(0,e,-2):null}getValue(){return Nt(0,this.stack,-1)}getNode(e=0){let r=this.#e(e);return r===-1?null:this.stack[r]}getParentNode(e=0){return this.getNode(e+1)}#e(e){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--e<0)return n;return-1}call(e,...r){let{stack:n}=this,{length:i}=n,s=Nt(0,n,-1);for(let a of r)s=s?.[a],n.push(a,s);try{return e(this)}finally{n.length=i}}callParent(e,r=0){let n=this.#e(r+1),i=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...i)}}each(e,...r){let{stack:n}=this,{length:i}=n,s=Nt(0,n,-1);for(let a of r)s=s[a],n.push(a,s);try{for(let a=0;a<s.length;++a)n.push(a,s[a]),e(this,a,s),n.length-=2}finally{n.length=i}}map(e,...r){let n=[];return this.each((i,s,a)=>{n[s]=e(i,s,a)},...r),n}match(...e){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let s of e){if(i===void 0)return!1;let a=null;if(typeof n=="number"&&(a=n,n=this.stack[r--],i=this.stack[r--]),s&&!s(i,n,a))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(e){for(let r of this.#t())if(e(r))return r}hasAncestor(e){for(let r of this.#t())if(e(r))return!0;return!1}*#t(){let{stack:e}=this;for(let r=e.length-3;r>=0;r-=2){let n=e[r];Array.isArray(n)||(yield n)}}},O8=I8;function L8(t){return t!==null&&typeof t=="object"}var Yf=L8;function To(t){return(e,r,n)=>{let i=!!n?.backwards;if(r===!1)return!1;let{length:s}=e,a=r;for(;a>=0&&a<s;){let o=e.charAt(a);if(t instanceof RegExp){if(!t.test(o))return a}else if(!t.includes(o))return a;i?a--:a++}return a===-1||a===s?a:!1}}var M8=To(/\s/u),Si=To(" "),z0=To(",; "),V0=To(/[^\n\r]/u),H0=t=>t===`
|
|
45
|
+
`||t==="\r"||t==="\u2028"||t==="\u2029";function R8(t,e,r){let n=!!r?.backwards;if(e===!1)return!1;let i=t.charAt(e);if(n){if(t.charAt(e-1)==="\r"&&i===`
|
|
46
|
+
`)return e-2;if(H0(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
|
|
47
|
+
`)return e+2;if(H0(i))return e+1}return e}var ls=R8;function j8(t,e,r={}){let n=Si(t,r.backwards?e-1:e,r),i=ls(t,n,r);return n!==i}var ki=j8;function q8(t){return Array.isArray(t)&&t.length>0}var U8=q8;function*zl(t,e){let{getVisitorKeys:r,filter:n=()=>!0}=e,i=s=>Yf(s)&&n(s);for(let s of r(t)){let a=t[s];if(Array.isArray(a))for(let o of a)i(o)&&(yield o);else i(a)&&(yield a)}}function*z8(t,e){let r=[t];for(let n=0;n<r.length;n++){let i=r[n];for(let s of zl(i,e))yield s,r.push(s)}}function V8(t,e){return zl(t,e).next().done}function W0(t,e,r){let{cache:n}=r;if(n.has(t))return n.get(t);let{filter:i}=r;if(!i)return[];let s,a=(r.getChildren?.(t,r)??[...zl(t,{getVisitorKeys:r.getVisitorKeys})]).flatMap(l=>(s??(s=[t,...e]),i(l,s)?[l]:W0(l,s,r))),{locStart:o,locEnd:u}=r;return a.sort((l,c)=>o(l)-o(c)||u(l)-u(c)),n.set(t,a),a}var G0=W0;function H8(t){let e=t.type||t.kind||"(unknown type)",r=String(t.name||t.id&&(typeof t.id=="object"?t.id.name:t.id)||t.key&&(typeof t.key=="object"?t.key.name:t.key)||t.value&&(typeof t.value=="object"?"":String(t.value))||t.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),e+(r?" "+r:"")}function Xf(t,e){(t.comments??(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=H8(t)}function wo(t,e){e.leading=!0,e.trailing=!1,Xf(t,e)}function cs(t,e,r){e.leading=!1,e.trailing=!1,r&&(e.marker=r),Xf(t,e)}function So(t,e){e.leading=!1,e.trailing=!0,Xf(t,e)}var J0=new WeakMap;function K0(t,e,r,n,i=[]){let{locStart:s,locEnd:a}=r,o=s(e),u=a(e),l=G0(t,i,{cache:J0,locStart:s,locEnd:a,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),c,p,f=0,h=l.length;for(;f<h;){let m=f+h>>1,g=l[m],y=s(g),D=a(g);if(y<=o&&u<=D)return K0(g,e,r,g,[g,...i]);if(D<=o){c=g,f=m+1;continue}if(u<=y){p=g,h=m;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:m}=n,g=Zf(m,e,r);c&&Zf(m,c,r)!==g&&(c=null),p&&Zf(m,p,r)!==g&&(p=null)}return{enclosingNode:n,precedingNode:c,followingNode:p}}var Qf=()=>!1;function W8(t,e){let{comments:r}=t;if(delete t.comments,!U8(r)||!e.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:s={}},originalText:a}=e,{ownLine:o=Qf,endOfLine:u=Qf,remaining:l=Qf}=s,c=r.map((p,f)=>({...K0(t,p,e),comment:p,text:a,options:e,ast:t,isLastComment:r.length-1===f}));for(let[p,f]of c.entries()){let{comment:h,precedingNode:m,enclosingNode:g,followingNode:y,text:D,options:d,ast:x,isLastComment:A}=f,E;if(i?E=[f]:(h.enclosingNode=g,h.precedingNode=m,h.followingNode=y,E=[h,D,d,x,A]),G8(D,d,c,p))h.placement="ownLine",o(...E)||(y?wo(y,h):m?So(m,h):cs(g||x,h));else if(J8(D,d,c,p))h.placement="endOfLine",u(...E)||(m?So(m,h):y?wo(y,h):cs(g||x,h));else if(h.placement="remaining",!l(...E))if(m&&y){let C=n.length;C>0&&n[C-1].followingNode!==y&&X0(n,d),n.push(f)}else m?So(m,h):y?wo(y,h):cs(g||x,h)}if(X0(n,e),!i)for(let p of r)delete p.precedingNode,delete p.enclosingNode,delete p.followingNode}var Y0=t=>!/[\S\n\u2028\u2029]/u.test(t);function G8(t,e,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:a,locEnd:o}=e,u=a(i);if(s)for(let l=n-1;l>=0;l--){let{comment:c,precedingNode:p}=r[l];if(p!==s||!Y0(t.slice(o(c),u)))break;u=a(c)}return ki(t,u,{backwards:!0})}function J8(t,e,r,n){let{comment:i,followingNode:s}=r[n],{locStart:a,locEnd:o}=e,u=o(i);if(s)for(let l=n+1;l<r.length;l++){let{comment:c,followingNode:p}=r[l];if(p!==s||!Y0(t.slice(u,a(c))))break;u=o(c)}return ki(t,u)}function X0(t,e){let r=t.length;if(r===0)return;let{precedingNode:n,followingNode:i}=t[0],s=e.locStart(i),a;for(a=r;a>0;--a){let{comment:o,precedingNode:u,followingNode:l}=t[a-1],c=e.originalText.slice(e.locEnd(o),s);if(e.printer.isGap?.(c,e)??/^[\s(]*$/u.test(c))s=e.locStart(o);else break}for(let[o,{comment:u}]of t.entries())o<a?So(n,u):wo(i,u);for(let o of[n,i])o.comments&&o.comments.length>1&&o.comments.sort((u,l)=>e.locStart(u)-e.locStart(l));t.length=0}function Zf(t,e,r){let n=r.locStart(e)-1;for(let i=1;i<t.length;++i)if(n<r.locStart(t[i]))return i-1;return 0}function K8(t,e){let r=e-1;r=Si(t,r,{backwards:!0}),r=ls(t,r,{backwards:!0}),r=Si(t,r,{backwards:!0});let n=ls(t,r,{backwards:!0});return r!==n}var ed=K8;function Q0(t,e){let r=t.node;return r.printed=!0,e.printer.printComment(t,e)}function Y8(t,e){let r=t.node,n=[Q0(t,e)],{printer:i,originalText:s,locStart:a,locEnd:o}=e;if(i.isBlockComment?.(r)){let l=ki(s,o(r))?ki(s,a(r),{backwards:!0})?Qn:L0:" ";n.push(l)}else n.push(Qn);let u=ls(s,Si(s,o(r)));return u!==!1&&ki(s,u)&&n.push(Qn),n}function X8(t,e,r){let n=t.node,i=Q0(t,e),{printer:s,originalText:a,locStart:o}=e,u=s.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||ki(a,o(n),{backwards:!0})){let l=ed(a,o(n));return{doc:Wf([Qn,l?Qn:"",i]),isBlock:u,hasLineSuffix:!0}}return!u||r?.hasLineSuffix?{doc:[Wf([" ",i]),jl],isBlock:u,hasLineSuffix:!0}:{doc:[" ",i],isBlock:u,hasLineSuffix:!1}}function Q8(t,e){let r=t.node;if(!r)return{};let n=e[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let i=[],s=[],a;return t.each(()=>{let o=t.node;if(n?.has(o))return;let{leading:u,trailing:l}=o;u?i.push(Y8(t,e)):l&&(a=X8(t,e,a),s.push(a.doc))},"comments"),{leading:i,trailing:s}}function Z8(t,e,r){let{leading:n,trailing:i}=Q8(t,r);return!n&&!i?e:Ml(e,s=>[n,s,i])}function e6(t){let{[Symbol.for("comments")]:e,[Symbol.for("printedComments")]:r}=t;for(let n of e){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var Z0=class extends Error{name="ConfigError"},e1=class extends Error{name="UndefinedParserError"},t6={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
48
|
+
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:t=>typeof t=="string"||typeof t=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:t=>typeof t=="string"||typeof t=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
49
|
+
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
50
|
+
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function t1({plugins:t=[],showDeprecated:e=!1}={}){let r=t.flatMap(i=>i.languages??[]),n=[];for(let i of n6(Object.assign({},...t.map(({options:s})=>s),t6)))!e&&i.deprecated||(Array.isArray(i.choices)&&(e||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...r6(i.choices,r,t)])),i.pluginDefaults=Object.fromEntries(t.filter(s=>s.defaultOptions?.[i.name]!==void 0).map(s=>[s.name,s.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*r6(t,e,r){let n=new Set(t.map(i=>i.value));for(let i of e)if(i.parsers){for(let s of i.parsers)if(!n.has(s)){n.add(s);let a=r.find(u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,s)),o=i.name;a?.name&&(o+=` (plugin: ${a.name})`),yield{value:s,description:o}}}}function n6(t){let e=[];for(let[r,n]of Object.entries(t)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=Nt(0,i.default,-1).value),e.push(i)}return e}var i6=Array.prototype.toReversed??function(){return[...this].reverse()},s6=vo("toReversed",function(){if(Array.isArray(this))return i6}),a6=s6;function o6(){let t=globalThis,e=t.Deno?.build?.os;return typeof e=="string"?e==="windows":t.navigator?.platform?.startsWith("Win")??t.process?.platform?.startsWith("win")??!1}var u6=o6();function r1(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function l6(t){return t=r1(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function c6(t){t=r1(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function p6(t){return u6?c6(t):l6(t)}var h6=t=>String(t).split(/[/\\]/u).pop(),f6=t=>String(t).startsWith("file:");function n1(t,e){if(!e)return;let r=h6(e).toLowerCase();return t.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??t.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function d6(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r?.includes(e))??t.find(({extensions:r})=>r?.includes(`.${e}`))}var m6=void 0;function i1(t,e){if(e){if(f6(e))try{e=p6(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function g6(t,e){let r=a6(0,t.plugins).flatMap(n=>n.languages??[]);return(d6(r,e.language)??n1(r,e.physicalFile)??n1(r,e.file)??i1(r,e.physicalFile)??i1(r,e.file)??m6?.(r,e.physicalFile))?.parsers[0]}var s1=g6,oa={key:t=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?t:JSON.stringify(t),value(t){if(t===null||typeof t!="object")return JSON.stringify(t);if(Array.isArray(t))return`[${t.map(r=>oa.value(r)).join(", ")}]`;let e=Object.keys(t);return e.length===0?"{}":`{ ${e.map(r=>`${oa.key(r)}: ${oa.value(t[r])}`).join(", ")} }`},pair:({key:t,value:e})=>oa.value({[t]:e})},td=new Proxy(String,{get:()=>td}),Tn=td,a1=()=>td,y6=(t,e,{descriptor:r})=>{let n=[`${Tn.yellow(typeof t=="string"?r.key(t):r.pair(t))} is deprecated`];return e&&n.push(`we now treat it as ${Tn.blue(typeof e=="string"?r.key(e):r.pair(e))}`),n.join("; ")+"."},o1=Symbol.for("vnopts.VALUE_NOT_EXIST"),Vl=Symbol.for("vnopts.VALUE_UNCHANGED"),u1=" ".repeat(2),D6=(t,e,r)=>{let{text:n,list:i}=r.normalizeExpectedResult(r.schemas[t].expected(r)),s=[];return n&&s.push(l1(t,e,n,r.descriptor)),i&&s.push([l1(t,e,i.title,r.descriptor)].concat(i.values.map(a=>c1(a,r.loggerPrintWidth))).join(`
|
|
51
|
+
`)),p1(s,r.loggerPrintWidth)};function l1(t,e,r,n){return[`Invalid ${Tn.red(n.key(t))} value.`,`Expected ${Tn.blue(r)},`,`but received ${e===o1?Tn.gray("nothing"):Tn.red(n.value(e))}.`].join(" ")}function c1({text:t,list:e},r){let n=[];return t&&n.push(`- ${Tn.blue(t)}`),e&&n.push([`- ${Tn.blue(e.title)}:`].concat(e.values.map(i=>c1(i,r-u1.length).replace(/^|\n/g,`$&${u1}`))).join(`
|
|
52
|
+
`)),p1(n,r)}function p1(t,e){if(t.length===1)return t[0];let[r,n]=t,[i,s]=t.map(a=>a.split(`
|
|
53
|
+
`,1)[0].length);return i>e&&i>s?n:r}var ua=[],rd=[];function nd(t,e,r){if(t===e)return 0;let n=r?.maxDistance,i=t;t.length>e.length&&(t=e,e=i);let s=t.length,a=e.length;for(;s>0&&t.charCodeAt(~-s)===e.charCodeAt(~-a);)s--,a--;let o=0;for(;o<s&&t.charCodeAt(o)===e.charCodeAt(o);)o++;if(s-=o,a-=o,n!==void 0&&a-s>n)return n;if(s===0)return n!==void 0&&a>n?n:a;let u,l,c,p,f=0,h=0;for(;f<s;)rd[f]=t.charCodeAt(o+f),ua[f]=++f;for(;h<a;){for(u=e.charCodeAt(o+h),c=h++,l=h,f=0;f<s;f++)p=u===rd[f]?c:c+1,c=ua[f],l=ua[f]=c>l?p>l?l+1:p:p>c?c+1:p;if(n!==void 0){let m=l;for(f=0;f<s;f++)ua[f]<m&&(m=ua[f]);if(m>n)return n}}return ua.length=s,rd.length=s,n!==void 0&&l>n?n:l}function E6(t,e,r){if(!Array.isArray(e)||e.length===0)return;let n=r?.maxDistance,i=t.length;for(let u of e)if(u===t)return u;let s,a=Number.POSITIVE_INFINITY,o=new Set;for(let u of e){if(o.has(u))continue;o.add(u);let l=Math.abs(u.length-i);if(l>=a||l>n)continue;let c=Number.isFinite(a)?Math.min(a,n):n,p=c===void 0?nd(t,u):nd(t,u,{maxDistance:c});if(p>n)continue;let f=p;if(c!==void 0&&p===c&&c===n&&(f=nd(t,u)),f<a&&(a=f,s=u,a===0))break}if(!(a>n))return s}var h1=(t,e,{descriptor:r,logger:n,schemas:i})=>{let s=[`Ignored unknown option ${Tn.yellow(r.pair({key:t,value:e}))}.`],a=E6(t,Object.keys(i),{maxDistance:3});a&&s.push(`Did you mean ${Tn.blue(r.key(a))}?`),n.warn(s.join(" "))},x6=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function C6(t,e){let r=new t(e),n=Object.create(r);for(let i of x6)i in e&&(n[i]=A6(e[i],r,Pi.prototype[i].length));return n}var Pi=class{static create(e){return C6(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,r){return!1}deprecated(e,r){return!1}forward(e,r){}redirect(e,r){}overlap(e,r,n){return e}preprocess(e,r){return e}postprocess(e,r){return Vl}};function A6(t,e,r){return typeof t=="function"?(...n)=>t(...n.slice(0,r-1),e,...n.slice(r-1)):()=>t}var b6=class extends Pi{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,r){return r.schemas[this._sourceName].validate(e,r)}redirect(e,r){return this._sourceName}},v6=class extends Pi{expected(){return"anything"}validate(){return!0}},F6=class extends Pi{constructor({valueSchema:e,name:r=e.name,...n}){super({...n,name:r}),this._valueSchema=e}expected(e){let{text:r,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,r){if(!Array.isArray(e))return!1;let n=[];for(let i of e){let s=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);s!==!0&&n.push(s.value)}return n.length===0?!0:{value:n}}deprecated(e,r){let n=[];for(let i of e){let s=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);s!==!1&&n.push(...s.map(({value:a})=>({value:[a]})))}return n}forward(e,r){let n=[];for(let i of e){let s=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);n.push(...s.map(f1))}return n}redirect(e,r){let n=[],i=[];for(let s of e){let a=r.normalizeRedirectResult(this._valueSchema.redirect(s,r),s);"remain"in a&&n.push(a.remain),i.push(...a.redirect.map(f1))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(e,r){return e.concat(r)}};function f1({from:t,to:e}){return{from:[t],to:e}}var T6=class extends Pi{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function w6(t,e){let r=Object.create(null);for(let n of t){let i=n[e];if(r[i])throw new Error(`Duplicate ${e} ${JSON.stringify(i)}`);r[i]=n}return r}function S6(t,e){let r=new Map;for(let n of t){let i=n[e];if(r.has(i))throw new Error(`Duplicate ${e} ${JSON.stringify(i)}`);r.set(i,n)}return r}function k6(){let t=Object.create(null);return e=>{let r=JSON.stringify(e);return t[r]?!0:(t[r]=!0,!1)}}function P6(t,e){let r=[],n=[];for(let i of t)e(i)?r.push(i):n.push(i);return[r,n]}function _6(t){return t===Math.floor(t)}function B6(t,e){if(t===e)return 0;let r=typeof t,n=typeof e,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(t)-Number(e):t.localeCompare(e)}function N6(t){return(...e)=>{let r=t(...e);return typeof r=="string"?new Error(r):r}}function d1(t){return t===void 0?{}:t}function m1(t){if(typeof t=="string")return{text:t};let{text:e,list:r}=t;return $6((e||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:e,list:{title:r.title,values:r.values.map(m1)}}:{text:e}}function g1(t,e){return t===!0?!0:t===!1?{value:e}:t}function y1(t,e,r=!1){return t===!1?!1:t===!0?r?!0:[{value:e}]:"value"in t?[t]:t.length===0?!1:t}function D1(t,e){return typeof t=="string"||"key"in t?{from:e,to:t}:"from"in t?{from:t.from,to:t.to}:{from:e,to:t.to}}function id(t,e){return t===void 0?[]:Array.isArray(t)?t.map(r=>D1(r,e)):[D1(t,e)]}function E1(t,e){let r=id(typeof t=="object"&&"redirect"in t?t.redirect:t,e);return r.length===0?{remain:e,redirect:r}:typeof t=="object"&&"remain"in t?{remain:t.remain,redirect:r}:{redirect:r}}function $6(t,e){if(!t)throw new Error(e)}var I6=class extends Pi{constructor(e){super(e),this._choices=S6(e.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:e}){let r=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(({hidden:s})=>!s).map(s=>s.value).sort(B6).map(e.value),n=r.slice(0,-2),i=r.slice(-2);return{text:n.concat(i.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(e){return this._choices.has(e)}deprecated(e){let r=this._choices.get(e);return r&&r.deprecated?{value:e}:!1}forward(e){let r=this._choices.get(e);return r?r.forward:void 0}redirect(e){let r=this._choices.get(e);return r?r.redirect:void 0}},O6=class extends Pi{expected(){return"a number"}validate(e,r){return typeof e=="number"}},L6=class extends O6{expected(){return"an integer"}validate(e,r){return r.normalizeValidateResult(super.validate(e,r),e)===!0&&_6(e)}},x1=class extends Pi{expected(){return"a string"}validate(e){return typeof e=="string"}},M6=oa,R6=h1,j6=D6,q6=y6,U6=class{constructor(e,r){let{logger:n=console,loggerPrintWidth:i=80,descriptor:s=M6,unknown:a=R6,invalid:o=j6,deprecated:u=q6,missing:l=()=>!1,required:c=()=>!1,preprocess:p=h=>h,postprocess:f=()=>Vl}=r||{};this._utils={descriptor:s,logger:n||{warn:()=>{}},loggerPrintWidth:i,schemas:w6(e,"name"),normalizeDefaultResult:d1,normalizeExpectedResult:m1,normalizeDeprecatedResult:y1,normalizeForwardResult:id,normalizeRedirectResult:E1,normalizeValidateResult:g1},this._unknownHandler=a,this._invalidHandler=N6(o),this._deprecatedHandler=u,this._identifyMissing=(h,m)=>!(h in m)||l(h,m),this._identifyRequired=c,this._preprocess=p,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=k6()}normalize(e){let r={},n=[this._preprocess(e,this._utils)],i=()=>{for(;n.length!==0;){let s=n.shift(),a=this._applyNormalization(s,r);n.push(...a)}};i();for(let s of Object.keys(this._utils.schemas)){let a=this._utils.schemas[s];if(!(s in r)){let o=d1(a.default(this._utils));"value"in o&&n.push({[s]:o.value})}}i();for(let s of Object.keys(this._utils.schemas)){if(!(s in r))continue;let a=this._utils.schemas[s],o=r[s],u=a.postprocess(o,this._utils);u!==Vl&&(this._applyValidation(u,s,a),r[s]=u)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(e,r){let n=[],{knownKeys:i,unknownKeys:s}=this._partitionOptionKeys(e);for(let a of i){let o=this._utils.schemas[a],u=o.preprocess(e[a],this._utils);this._applyValidation(u,a,o);let l=({from:f,to:h})=>{n.push(typeof h=="string"?{[h]:f}:{[h.key]:h.value})},c=({value:f,redirectTo:h})=>{let m=y1(o.deprecated(f,this._utils),u,!0);if(m!==!1)if(m===!0)this._hasDeprecationWarned(a)||this._utils.logger.warn(this._deprecatedHandler(a,h,this._utils));else for(let{value:g}of m){let y={key:a,value:g};if(!this._hasDeprecationWarned(y)){let D=typeof h=="string"?{key:h,value:g}:h;this._utils.logger.warn(this._deprecatedHandler(y,D,this._utils))}}};id(o.forward(u,this._utils),u).forEach(l);let p=E1(o.redirect(u,this._utils),u);if(p.redirect.forEach(l),"remain"in p){let f=p.remain;r[a]=a in r?o.overlap(r[a],f,this._utils):f,c({value:f})}for(let{from:f,to:h}of p.redirect)c({value:f,redirectTo:h})}for(let a of s){let o=e[a];this._applyUnknownHandler(a,o,r,(u,l)=>{n.push({[u]:l})})}return n}_applyRequiredCheck(e){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,e)&&this._identifyRequired(r))throw this._invalidHandler(r,o1,this._utils)}_partitionOptionKeys(e){let[r,n]=P6(Object.keys(e).filter(i=>!this._identifyMissing(i,e)),i=>i in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(e,r,n){let i=g1(n.validate(e,this._utils),e);if(i!==!0)throw this._invalidHandler(r,i.value,this._utils)}_applyUnknownHandler(e,r,n,i){let s=this._unknownHandler(e,r,this._utils);if(s)for(let a of Object.keys(s)){if(this._identifyMissing(a,s))continue;let o=s[a];a in this._utils.schemas?i(a,o):n[a]=o}}_applyPostprocess(e){let r=this._postprocess(e,this._utils);if(r!==Vl){if(r.delete)for(let n of r.delete)delete e[n];if(r.override){let{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(r.override);for(let s of n){let a=r.override[s];this._applyValidation(a,s,this._utils.schemas[s]),e[s]=a}for(let s of i){let a=r.override[s];this._applyUnknownHandler(s,a,e,(o,u)=>{let l=this._utils.schemas[o];this._applyValidation(u,o,l),e[o]=u})}}}}},sd;function z6(t,e,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:s,descriptor:a}={}){if(n){if(!s)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=oa;let o=i?Array.isArray(i)?(f,h)=>i.includes(f)?{[f]:h}:void 0:(f,h)=>({[f]:h}):(f,h,m)=>{let{_:g,...y}=m.schemas;return h1(f,h,{...m,schemas:y})},u=V6(e,{isCLI:n,FlagSchema:s}),l=new U6(u,{logger:r,unknown:o,descriptor:a}),c=r!==!1;c&&sd&&(l._hasDeprecationWarned=sd);let p=l.normalize(t);return c&&(sd=l._hasDeprecationWarned),p}function V6(t,{isCLI:e,FlagSchema:r}){let n=[];e&&n.push(v6.create({name:"_"}));for(let i of t)n.push(H6(i,{isCLI:e,optionInfos:t,FlagSchema:r})),i.alias&&e&&n.push(b6.create({name:i.alias,sourceName:i.name}));return n}function H6(t,{isCLI:e,optionInfos:r,FlagSchema:n}){let{name:i}=t,s={name:i},a,o={};switch(t.type){case"int":a=L6,e&&(s.preprocess=Number);break;case"string":a=x1;break;case"choice":a=I6,s.choices=t.choices.map(u=>u?.redirect?{...u,redirect:{to:{key:t.name,value:u.redirect}}}:u);break;case"boolean":a=T6;break;case"flag":a=n,s.flags=r.flatMap(u=>[u.alias,u.description&&u.name,u.oppositeDescription&&`no-${u.name}`].filter(Boolean));break;case"path":a=x1;break;default:throw new Error(`Unexpected type ${t.type}`)}if(t.exception?s.validate=(u,l,c)=>t.exception(u)||l.validate(u,c):s.validate=(u,l,c)=>u===void 0||l.validate(u,c),t.redirect&&(o.redirect=u=>u?{to:typeof t.redirect=="string"?t.redirect:{key:t.redirect.option,value:t.redirect.value}}:void 0),t.deprecated&&(o.deprecated=!0),e&&!t.array){let u=s.preprocess||(l=>l);s.preprocess=(l,c,p)=>c.preprocess(u(Array.isArray(l)?Nt(0,l,-1):l),p)}return t.array?F6.create({...e?{preprocess:u=>Array.isArray(u)?u:[u]}:{},...o,valueSchema:a.create(s)}):a.create({...s,...o})}var W6=z6,G6=Array.prototype.findLast??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return r}},J6=vo("findLast",function(){if(Array.isArray(this))return G6}),C1=J6,K6=Symbol.for("PRETTIER_IS_FRONT_MATTER"),Y6=[];function X6(t){return!!t?.[K6]}var ad=X6,A1=new Set(["yaml","toml"]),b1=({node:t})=>ad(t)&&A1.has(t.language);async function Q6(t,e,r,n){let{node:i}=r,{language:s}=i;if(!A1.has(s))return;let a=i.value.trim(),o;if(a){let u=s==="yaml"?s:s1(n,{language:s});if(!u)return;o=a?await t(a,{parser:u}):""}else o=a;return N0([i.startDelimiter,i.explicitLanguage??"",Qn,o,o?Qn:"",i.endDelimiter])}function Z6(t,e){return b1({node:t})&&(delete e.end,delete e.raw,delete e.value),e}var e4=Z6;function t4({node:t}){return t.raw}var r4=t4,v1=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),n4=t=>Object.keys(t).filter(e=>!v1.has(e));function i4(t,e){let r=t?n=>t(n,v1):n4;return e?new Proxy(r,{apply:(n,i,s)=>ad(s[0])?Y6:Reflect.apply(n,i,s)}):r}var F1=i4;function T1(t,e){if(!e)throw new Error("parserName is required.");let r=C1(0,t,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,e));if(r)return r;let n=`Couldn't resolve parser "${e}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Z0(n)}function s4(t,e){if(!e)throw new Error("astFormat is required.");let r=C1(0,t,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,e));if(r)return r;let n=`Couldn't find plugin for AST format "${e}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Z0(n)}function od({plugins:t,parser:e}){let r=T1(t,e);return w1(r,e)}function w1(t,e){let r=t.parsers[e];return typeof r=="function"?r():r}async function a4(t,e){let r=t.printers[e],n=typeof r=="function"?await r():r;return o4(n)}var ud=new WeakMap;function o4(t){if(ud.has(t))return ud.get(t);let{features:e,getVisitorKeys:r,embed:n,massageAstNode:i,print:s,...a}=t;e=p4(e);let o=e.experimental_frontMatterSupport;r=F1(r,o.massageAstNode||o.embed||o.print);let u=i;i&&o.massageAstNode&&(u=new Proxy(i,{apply(f,h,m){return e4(...m),Reflect.apply(f,h,m)}}));let l=n;if(n){let f;l=new Proxy(n,{get(h,m,g){return m==="getVisitorKeys"?(f??(f=n.getVisitorKeys?F1(n.getVisitorKeys,o.massageAstNode||o.embed):r),f):Reflect.get(h,m,g)},apply:(h,m,g)=>o.embed&&b1(...g)?Q6:Reflect.apply(h,m,g)})}let c=s;o.print&&(c=new Proxy(s,{apply(f,h,m){let[g]=m;return ad(g.node)?r4(g):Reflect.apply(f,h,m)}}));let p={features:e,getVisitorKeys:r,embed:l,massageAstNode:u,print:c,...a};return ud.set(t,p),p}var u4=["clean","embed","print"],l4=Object.fromEntries(u4.map(t=>[t,!1]));function c4(t){return{...l4,...t}}function p4(t){return{experimental_avoidAstMutation:!1,...t,experimental_frontMatterSupport:c4(t?.experimental_frontMatterSupport)}}var S1={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function h4(t,e={}){let r={...t};if(!r.parser)if(r.filepath){if(r.parser=s1(r,{physicalFile:r.filepath}),!r.parser)throw new e1(`No parser could be inferred for file "${r.filepath}".`)}else throw new e1("No parser and no file path given, couldn't infer a parser.");let n=t1({plugins:t.plugins,showDeprecated:!0}).options,i={...S1,...Object.fromEntries(n.filter(p=>p.default!==void 0).map(p=>[p.name,p.default]))},s=T1(r.plugins,r.parser),a=await w1(s,r.parser);r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;let o=s.printers?.[a.astFormat]?s:s4(r.plugins,a.astFormat),u=await a4(o,a.astFormat);r.printer=u,r.getVisitorKeys=u.getVisitorKeys;let l=o.defaultOptions?Object.fromEntries(Object.entries(o.defaultOptions).filter(([,p])=>p!==void 0)):{},c={...i,...l};for(let[p,f]of Object.entries(c))(r[p]===null||r[p]===void 0)&&(r[p]=f);return r.parser==="json"&&(r.trailingComma="none"),W6(r,n,{passThrough:Object.keys(S1),...e})}var la=h4;SI(kI());var ld={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"]};new Set(ld.keyword),new Set(ld.strict),new Set(ld.strictBind);var Hl=(t,e)=>r=>t(e(r));function k1(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:Hl(Hl(t.white,t.bgRed),t.bold),gutter:t.gray,marker:Hl(t.red,t.bold),message:Hl(t.red,t.bold),reset:t.reset}}k1(a1()),k1(a1());function f4(){return new Proxy({},{get:()=>t=>t})}var P1=/\r\n|[\n\r\u2028\u2029]/;function d4(t,e,r){let n=Object.assign({column:0,line:-1},t.start),i=Object.assign({},n,t.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=n.line,u=n.column,l=i.line,c=i.column,p=Math.max(o-(s+1),0),f=Math.min(e.length,l+a);o===-1&&(p=0),l===-1&&(f=e.length);let h=l-o,m={};if(h)for(let g=0;g<=h;g++){let y=g+o;if(!u)m[y]=!0;else if(g===0){let D=e[y-1].length;m[y]=[u,D-u+1]}else if(g===h)m[y]=[0,c];else{let D=e[y-g].length;m[y]=[0,D]}}else u===c?u?m[o]=[u,0]:m[o]=!0:m[o]=[u,c-u];return{start:p,end:f,markerLines:m}}function m4(t,e,r={}){let n=f4(),i=t.split(P1),{start:s,end:a,markerLines:o}=d4(e,i,r),u=e.start&&typeof e.start.column=="number",l=String(a).length,c=t.split(P1,a).slice(s,a).map((p,f)=>{let h=s+1+f,m=` ${` ${h}`.slice(-l)} |`,g=o[h],y=!o[h+1];if(g){let D="";if(Array.isArray(g)){let d=p.slice(0,Math.max(g[0]-1,0)).replace(/[^\t]/g," "),x=g[1]||1;D=[`
|
|
54
|
+
`,n.gutter(m.replace(/\d/g," "))," ",d,n.marker("^").repeat(x)].join(""),y&&r.message&&(D+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(m),p.length>0?` ${p}`:"",D].join("")}else return` ${n.gutter(m)}${p.length>0?` ${p}`:""}`}).join(`
|
|
55
|
+
`);return r.message&&!u&&(c=`${" ".repeat(l+1)}${r.message}
|
|
56
|
+
${c}`),c}async function g4(t,e){let r=await od(e),n=r.preprocess?await r.preprocess(t,e):t;e.originalText=n;let i;try{i=await r.parse(n,e,e)}catch(s){y4(s,t)}return{text:n,ast:i}}function y4(t,e){let{loc:r}=t;if(r){let n=m4(e,r,{});throw t.message+=`
|
|
57
|
+
`+n,t.codeFrame=n,t}throw t}var ko=g4;async function D4(t,e,r,n,i){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:s}=r,{embed:a}=s;if(!a)return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:o}=s,{getVisitorKeys:u}=a,l=[];f();let c=t.stack;for(let{print:h,node:m,pathStack:g}of l)try{t.stack=g;let y=await h(p,e,t,r);y&&i.set(m,y)}catch(y){if(globalThis.PRETTIER_DEBUG)throw y}t.stack=c;function p(h,m){return E4(h,m,r,n)}function f(){let{node:h}=t;if(h===null||typeof h!="object"||o?.(t))return;for(let g of u(h))Array.isArray(h[g])?t.each(f,g):t.call(f,g);let m=a(t,r);if(m){if(typeof m=="function"){l.push({print:m,node:h,pathStack:[...t.stack]});return}i.set(h,m)}}}async function E4(t,e,r,n){let i=await la({...r,...e,parentParser:r.parser,originalText:t,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:s}=await ko(t,i),a=await n(s,i);return B0(a)}function x4(t,e,r,n){let{originalText:i,[Symbol.for("comments")]:s,locStart:a,locEnd:o,[Symbol.for("printedComments")]:u}=e,{node:l}=t,c=a(l),p=o(l);for(let h of s)a(h)>=c&&o(h)<=p&&u.add(h);let{printPrettierIgnored:f}=e.printer;return f?f(t,e,r,n):i.slice(c,p)}var C4=x4;async function Wl(t,e){({ast:t}=await B1(t,e));let r=new Map,n=new O8(t),i=new Map;await D4(n,a,e,Wl,i);let s=await _1(n,e,a,void 0,i);if(e6(e),e.cursorOffset>=0){if(e.nodeAfterCursor&&!e.nodeBeforeCursor)return[us,s];if(e.nodeBeforeCursor&&!e.nodeAfterCursor)return[s,us]}return s;function a(u,l){return u===void 0||u===n?o(l):Array.isArray(u)?n.call(()=>o(l),...u):n.call(()=>o(l),u)}function o(u){let l=n.node;if(l==null)return"";let c=Yf(l)&&u===void 0;if(c&&r.has(l))return r.get(l);let p=_1(n,e,a,u,i);return c&&r.set(l,p),p}}function _1(t,e,r,n,i){let{node:s}=t,{printer:a}=e,o;switch(a.hasPrettierIgnore?.(t)?o=C4(t,e,r,n):i.has(s)?o=i.get(s):o=a.print(t,e,r,n),s){case e.cursorNode:o=Ml(o,u=>[us,u,us]);break;case e.nodeBeforeCursor:o=Ml(o,u=>[u,us]);break;case e.nodeAfterCursor:o=Ml(o,u=>[us,u]);break}return a.printComment&&!a.willPrintOwnComments?.(t,e)&&(o=Z8(t,o,e)),o}async function B1(t,e){let r=t.comments??[];e[Symbol.for("comments")]=r,e[Symbol.for("printedComments")]=new Set,W8(t,e);let{printer:{preprocess:n}}=e;return t=n?await n(t,e):t,{ast:t,comments:r}}function A4(t,e){let{cursorOffset:r,locStart:n,locEnd:i,getVisitorKeys:s}=e,a=h=>n(h)<=r&&i(h)>=r,o=t,u=[t];for(let h of z8(t,{getVisitorKeys:s,filter:a}))u.push(h),o=h;if(V8(o,{getVisitorKeys:s}))return{cursorNode:o};let l,c,p=-1,f=Number.POSITIVE_INFINITY;for(;u.length>0&&(l===void 0||c===void 0);){o=u.pop();let h=l!==void 0,m=c!==void 0;for(let g of zl(o,{getVisitorKeys:s})){if(!h){let y=i(g);y<=r&&y>p&&(l=g,p=y)}if(!m){let y=n(g);y>=r&&y<f&&(c=g,f=y)}}}return{nodeBeforeCursor:l,nodeAfterCursor:c}}var N1=A4;function b4(t,e){let{printer:r}=e,n=r.massageAstNode;if(!n)return t;let{getVisitorKeys:i}=r,{ignoredProperties:s}=n;return a(t);function a(o,u){if(!Yf(o))return o;if(Array.isArray(o))return o.map(f=>a(f,u)).filter(Boolean);let l={},c=new Set(i(o));for(let f in o)!Object.prototype.hasOwnProperty.call(o,f)||s?.has(f)||(c.has(f)?l[f]=a(o[f],o):l[f]=o[f]);let p=n(o,l,u);if(p!==null)return p??l}}var v4=b4,F4=Array.prototype.findLastIndex??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return e}return-1},T4=vo("findLastIndex",function(){if(Array.isArray(this))return F4}),w4=T4,S4=({parser:t})=>t==="json"||t==="json5"||t==="jsonc"||t==="json-stringify";function k4(t,e){return e=new Set(e),t.find(r=>I1.has(r.type)&&e.has(r))}function $1(t){let e=w4(0,t,r=>r.type!=="Program"&&r.type!=="File");return e===-1?t:t.slice(0,e+1)}function P4(t,e,{locStart:r,locEnd:n}){let[i,...s]=t,[a,...o]=e;if(i===a)return[i,a];let u=r(i);for(let c of $1(o))if(r(c)>=u)a=c;else break;let l=n(a);for(let c of $1(s)){if(n(c)<=l)i=c;else break;if(i===a)break}return[i,a]}function cd(t,e,r,n,i=[],s){let{locStart:a,locEnd:o}=r,u=a(t),l=o(t);if(e>l||e<u||s==="rangeEnd"&&e===u||s==="rangeStart"&&e===l)return;let c=[t,...i],p=G0(t,c,{cache:J0,locStart:a,locEnd:o,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes});for(let f of p){let h=cd(f,e,r,n,c,s);if(h)return h}if(n(t,i[0]))return c}function _4(t,e){return e!=="DeclareExportDeclaration"&&t!=="TypeParameterDeclaration"&&(t==="Directive"||t==="TypeAlias"||t==="TSExportAssignment"||t.startsWith("Declare")||t.startsWith("TSDeclare")||t.endsWith("Statement")||t.endsWith("Declaration"))}var I1=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),B4=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function O1(t,e,r){if(!e)return!1;switch(t.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return _4(e.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return I1.has(e.type);case"graphql":return B4.has(e.kind);case"vue":return e.tag!=="root"}return!1}function N4(t,e,r){let{rangeStart:n,rangeEnd:i,locStart:s,locEnd:a}=e,o=t.slice(n,i).search(/\S/u),u=o===-1;if(!u)for(n+=o;i>n&&!/\S/u.test(t[i-1]);--i);let l=cd(r,n,e,(h,m)=>O1(e,h,m),[],"rangeStart");if(!l)return;let c=u?l:cd(r,i,e,h=>O1(e,h),[],"rangeEnd");if(!c)return;let p,f;if(S4(e)){let h=k4(l,c);p=h,f=h}else[p,f]=P4(l,c,e);return[Math.min(s(p),s(f)),Math.max(a(p),a(f))]}var L1="\uFEFF",M1=Symbol("cursor");async function R1(t,e,r=0){if(!t||t.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await ko(t,e);e.cursorOffset>=0&&(e={...e,...N1(n,e)});let s=await Wl(n,e);r>0&&(s=$0([Qn,s],r,e.tabWidth));let a=Ul(s,e);if(r>0){let u=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(u),a.cursorNodeStart<0&&(a.cursorNodeStart=0,a.cursorNodeText=a.cursorNodeText.trimStart()),a.cursorNodeStart+a.cursorNodeText.length>u.length&&(a.cursorNodeText=a.cursorNodeText.trimEnd())),a.formatted=u+Uf(e.endOfLine)}let o=e[Symbol.for("comments")];if(e.cursorOffset>=0){let u,l,c,p;if((e.cursorNode||e.nodeBeforeCursor||e.nodeAfterCursor)&&a.cursorNodeText)if(c=a.cursorNodeStart,p=a.cursorNodeText,e.cursorNode)u=e.locStart(e.cursorNode),l=i.slice(u,e.locEnd(e.cursorNode));else{if(!e.nodeBeforeCursor&&!e.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");u=e.nodeBeforeCursor?e.locEnd(e.nodeBeforeCursor):0;let D=e.nodeAfterCursor?e.locStart(e.nodeAfterCursor):i.length;l=i.slice(u,D)}else u=0,l=i,c=0,p=a.formatted;let f=e.cursorOffset-u;if(l===p)return{formatted:a.formatted,cursorOffset:c+f,comments:o};let h=l.split("");h.splice(f,0,M1);let m=p.split(""),g=OI(h,m),y=c;for(let D of g)if(D.removed){if(D.value.includes(M1))break}else y+=D.count;return{formatted:a.formatted,cursorOffset:y,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}async function $4(t,e){let{ast:r,text:n}=await ko(t,e),[i,s]=N4(n,e,r)??[0,0],a=n.slice(i,s),o=Math.min(i,n.lastIndexOf(`
|
|
58
|
+
`,i)+1),u=n.slice(o,i).match(/^\s*/u)[0],l=Kf(u,e.tabWidth),c=await R1(a,{...e,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:e.cursorOffset>i&&e.cursorOffset<=s?e.cursorOffset-i:-1,endOfLine:"lf"},l),p=c.formatted.trimEnd(),{cursorOffset:f}=e;f>s?f+=p.length-a.length:c.cursorOffset>=0&&(f=c.cursorOffset+i);let h=n.slice(0,i)+p+n.slice(s);if(e.endOfLine!=="lf"){let m=Uf(e.endOfLine);f>=0&&m===`\r
|
|
59
|
+
`&&(f+=w0(h.slice(0,f),`
|
|
60
|
+
`)),h=Il(0,h,`
|
|
61
|
+
`,m)}return{formatted:h,cursorOffset:f,comments:c.comments}}function pd(t,e,r){return typeof e!="number"||Number.isNaN(e)||e<0||e>t.length?r:e}function j1(t,e){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=e;return r=pd(t,r,-1),n=pd(t,n,0),i=pd(t,i,t.length),{...e,cursorOffset:r,rangeStart:n,rangeEnd:i}}function q1(t,e){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=j1(t,e),a=t.charAt(0)===L1;if(a&&(t=t.slice(1),r--,n--,i--),s==="auto"&&(s=UI(t)),t.includes("\r")){let o=u=>w0(t.slice(0,Math.max(u,0)),`\r
|
|
62
|
+
`);r-=o(r),n-=o(n),i-=o(i),t=HI(t)}return{hasBOM:a,text:t,options:j1(t,{...e,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function U1(t,e){let r=await od(e);return!r.hasPragma||r.hasPragma(t)}async function I4(t,e){return(await od(e)).hasIgnorePragma?.(t)}async function z1(t,e){let{hasBOM:r,text:n,options:i}=q1(t,await la(e));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await U1(n,i)||i.checkIgnorePragma&&await I4(n,i))return{formatted:t,cursorOffset:e.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd<n.length?s=await $4(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await U1(n,i)&&(n=i.printer.insertPragma(n)),s=await R1(n,i)),r&&(s.formatted=L1+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}async function O4(t,e,r){let{text:n,options:i}=q1(t,await la(e)),s=await ko(n,i);return r&&(r.preprocessForPrint&&(s.ast=await B1(s.ast,i)),r.massage&&(s.ast=v4(s.ast,i))),s}async function L4(t,e){e=await la(e);let r=await Wl(t,e);return Ul(r,e)}async function M4(t,e){let r=C8(t),{formatted:n}=await z1(r,{...e,parser:"__js_expression"});return n}async function R4(t,e){e=await la(e);let{ast:r}=await ko(t,e);return e.cursorOffset>=0&&(e={...e,...N1(r,e)}),Wl(r,e)}async function j4(t,e){return Ul(t,await la(e))}var V1={};jf(V1,{builders:()=>q4,printer:()=>U4,utils:()=>z4});var q4={join:O0,line:L0,softline:D8,hardline:Qn,literalline:R0,group:I0,conditionalGroup:d8,fill:f8,lineSuffix:Wf,lineSuffixBoundary:E8,cursor:us,breakParent:jl,ifBreak:m8,trim:x8,indent:Rl,indentIfBreak:g8,align:aa,addAlignmentToDoc:$0,markAsRoot:N0,dedentToRoot:p8,dedent:h8,hardlineWithoutBreakParent:Hf,literallineWithoutBreakParent:M0,label:y8,concat:t=>t},U4={printDocToString:Ul},z4={willBreak:t8,traverseDoc:zf,findInDoc:Vf,mapDoc:Ll,removeLines:i8,stripTrailingHardline:B0,replaceEndOfLine:o8,canBreak:l8},V4="3.7.4",H1={};jf(H1,{addDanglingComment:()=>cs,addLeadingComment:()=>wo,addTrailingComment:()=>So,getAlignmentSize:()=>Kf,getIndentSize:()=>Y4,getMaxContinuousCount:()=>Z4,getNextNonSpaceNonCommentCharacter:()=>t9,getNextNonSpaceNonCommentCharacterIndex:()=>p9,getPreferredQuote:()=>s9,getStringWidth:()=>Gf,hasNewline:()=>ki,hasNewlineInRange:()=>o9,hasSpaces:()=>l9,isNextLineEmpty:()=>g9,isNextLineEmptyAfterIndex:()=>md,isPreviousLineEmpty:()=>f9,makeString:()=>m9,skip:()=>To,skipEverythingButNewLine:()=>V0,skipInlineComment:()=>hd,skipNewline:()=>ls,skipSpaces:()=>Si,skipToLineEnd:()=>z0,skipTrailingComment:()=>fd,skipWhitespace:()=>M8});function H4(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var hd=H4;function W4(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?V0(t,e):e}var fd=W4;function G4(t,e){let r=null,n=e;for(;n!==r;)r=n,n=Si(t,n),n=hd(t,n),n=fd(t,n),n=ls(t,n);return n}var dd=G4;function J4(t,e){let r=null,n=e;for(;n!==r;)r=n,n=z0(t,n),n=hd(t,n),n=Si(t,n);return n=fd(t,n),n=ls(t,n),n!==!1&&ki(t,n)}var md=J4;function K4(t,e){let r=t.lastIndexOf(`
|
|
63
|
+
`);return r===-1?0:Kf(t.slice(r+1).match(/^[\t ]*/u)[0],e)}var Y4=K4;function X4(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Q4(t,e){let r=t.matchAll(new RegExp(`(?:${X4(e)})+`,"gu"));return r.reduce||(r=[...r]),r.reduce((n,[i])=>Math.max(n,i.length),0)/e.length}var Z4=Q4;function e9(t,e){let r=dd(t,e);return r===!1?"":t.charAt(r)}var t9=e9,W1=Object.freeze({character:"'",codePoint:39}),G1=Object.freeze({character:'"',codePoint:34}),r9=Object.freeze({preferred:W1,alternate:G1}),n9=Object.freeze({preferred:G1,alternate:W1});function i9(t,e){let{preferred:r,alternate:n}=e===!0||e==="'"?r9:n9,{length:i}=t,s=0,a=0;for(let o=0;o<i;o++){let u=t.charCodeAt(o);u===r.codePoint?s++:u===n.codePoint&&a++}return(s>a?n:r).character}var s9=i9;function a9(t,e,r){for(let n=e;n<r;++n)if(t.charAt(n)===`
|
|
64
|
+
`)return!0;return!1}var o9=a9;function u9(t,e,r={}){return Si(t,r.backwards?e-1:e,r)!==e}var l9=u9;function c9(t,e,r){return dd(t,r(e))}function p9(t,e){return arguments.length===2||typeof e=="number"?dd(t,e):c9(...arguments)}function h9(t,e,r){return ed(t,r(e))}function f9(t,e){return arguments.length===2||typeof e=="number"?ed(t,e):h9(...arguments)}function d9(t,e,r){return md(t,r(e))}function m9(t,e,r){let n=e==='"'?"'":'"',i=Il(0,t,/\\(.)|(["'])/gsu,(s,a,o)=>a===n?a:o===e?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return e+i+e}function g9(t,e){return arguments.length===2||typeof e=="number"?md(t,e):d9(...arguments)}function ps(t,e=1){return async(...r)=>{let n=r[e]??{},i=n.plugins??[];return r[e]={...n,plugins:Array.isArray(i)?i:Object.values(i)},t(...r)}}var J1=ps(z1);async function Gl(t,e){let{formatted:r}=await J1(t,{...e,cursorOffset:-1});return r}async function y9(t,e){return await Gl(t,e)===t}var D9=ps(t1,0),E9={parse:ps(O4),formatAST:ps(L4),formatDoc:ps(M4),printToDoc:ps(R4),printDocToString:ps(j4)},x9=Object.defineProperty,gd=(t,e)=>{for(var r in e)x9(t,r,{get:e[r],enumerable:!0})},Po={};gd(Po,{parsers:()=>D7});var K1={};gd(K1,{__babel_estree:()=>p7,__js_expression:()=>YE,__ts_expression:()=>XE,__vue_event_binding:()=>JE,__vue_expression:()=>YE,__vue_ts_event_binding:()=>KE,__vue_ts_expression:()=>XE,babel:()=>JE,"babel-flow":()=>QE,"babel-ts":()=>KE});function C9(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}var _i=class{line;column;index;constructor(e,r,n){this.line=e,this.column=r,this.index=n}},Jl=class{start;end;filename;identifierName;constructor(e,r){this.start=e,this.end=r}};function Gr(t,e){let{line:r,column:n,index:i}=t;return new _i(r,n+e,i+e)}var Y1="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",A9={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Y1},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Y1}},X1={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"},Kl=t=>t.type==="UpdateExpression"?X1.UpdateExpression[`${t.prefix}`]:X1[t.type],b9={AccessorIsGenerator:({kind:t})=>`A ${t}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:t})=>`Missing initializer in ${t} 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:t})=>`\`${t}\` 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:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
65
|
+
- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="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:t})=>`Unsyntactic ${t==="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:t})=>`A string literal cannot be used as an imported binding.
|
|
66
|
+
- Did you mean \`import { "${t}" 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:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${Kl(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${Kl(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${Kl(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} 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:t})=>`Label '${t}' 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:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' 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:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,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:t})=>`Unexpected keyword '${t}'.`,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:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,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:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,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:t})=>`Identifier '${t}' 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."},v9={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' 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."},F9={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`},T9=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),w9=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 references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${Kl({type:t})}; please wrap it in parentheses.`},{}),S9=["message"];function Q1(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function k9({toMessage:t,code:e,reasonCode:r,syntaxPlugin:n}){let i=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function s(a,o){let u=new SyntaxError;return u.code=e,u.reasonCode=r,u.loc=a,u.pos=a.index,u.syntaxPlugin=n,i&&(u.missingPlugin=o.missingPlugin),Q1(u,"clone",function(l={}){let{line:c,column:p,index:f}=l.loc??a;return s(new _i(c,p,f),Object.assign({},o,l.details))}),Q1(u,"details",o),Object.defineProperty(u,"message",{configurable:!0,get(){let l=`${t(o)} (${a.line}:${a.column})`;return this.message=l,l},set(l){Object.defineProperty(this,"message",{value:l,writable:!0})}}),u}}function wn(t,e){if(Array.isArray(t))return n=>wn(n,t[0]);let r={};for(let n of Object.keys(t)){let i=t[n],s=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:a}=s,o=C9(s,S9),u=typeof a=="string"?()=>a:a;r[n]=k9(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},e?{syntaxPlugin:e}:{},o))}return r}var W=Object.assign({},wn(A9),wn(b9),wn(v9),wn(F9),wn`pipelineOperator`(w9));function P9(){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:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function _9(t){let e=P9();if(t==null)return e;if(t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(e))t[r]!=null&&(e[r]=t[r]);if(e.startLine===1)t.startIndex==null&&e.startColumn>0?e.startIndex=e.startColumn:t.startColumn==null&&e.startIndex>0&&(e.startColumn=e.startIndex);else if(t.startColumn==null||t.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(e.sourceType==="commonjs"){if(t.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(t.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(t.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return e}var{defineProperty:B9}=Object,Z1=(t,e)=>{t&&B9(t,e,{enumerable:!1,value:t[e]})};function _o(t){return Z1(t.loc.start,"index"),Z1(t.loc.end,"index"),t}var N9=t=>class extends t{parse(){let e=_o(super.parse());return this.optionFlags&256&&(e.tokens=e.tokens.map(_o)),e}parseRegExpLiteral({pattern:e,flags:r}){let n=null;try{n=new RegExp(e,r)}catch{}let i=this.estreeParseLiteral(n);return i.regex={pattern:e,flags:r},i}parseBigIntLiteral(e){let r;try{r=BigInt(e)}catch{r=null}let n=this.estreeParseLiteral(r);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||e),r}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,r){let n=this.startNodeAtNode(e);return n.expression=e,this.finishNodeAt(n,"ChainExpression",r)}directiveToStmt(e){let r=e.value;delete e.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let n=this.castNodeTo(e,"ExpressionStatement");return n.expression=r,n.directive=r.extra.rawValue,delete r.extra,n}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){let{start:r,end:n,loc:i,range:s,raw:a,value:o}=e,u=Object.create(e.constructor.prototype);return u.type="Literal",u.start=r,u.end=n,u.loc=i,u.range=s,u.raw=a,u.value=o,u}initFunction(e,r){super.initFunction(e,r),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!e.expression.extra?.parenthesized}parseBlockBody(e,r,n,i,s){super.parseBlockBody(e,r,n,i,s);let a=e.directives.map(o=>this.directiveToStmt(o));e.body=a.concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){let r=super.getPrivateNameSV(e);return delete e.id,e.name=r,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return e.type==="PrivateIdentifier"}getPrivateNameSV(e){return e.name}parseLiteral(e,r){let n=super.parseLiteral(e,r);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,r,n=!1){super.parseFunctionBody(e,r,n),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,r,n,i,s,a,o=!1){let u=this.startNode();u.kind=e.kind,u=super.parseMethod(u,r,n,i,s,a,o),delete u.kind;let{typeParameters:l}=e;l&&(delete e.typeParameters,u.typeParameters=l,this.resetStartLocationFromNode(u,l));let c=this.castNodeTo(u,this.hasPlugin("typescript")&&!u.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return e.value=c,a==="ClassPrivateMethod"&&(e.computed=!1),this.hasPlugin("typescript")&&e.abstract?(delete e.abstract,this.finishNode(e,"TSAbstractMethodDefinition")):a==="ObjectMethod"?(e.kind==="method"&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return e.type==="Literal"?e.value==="constructor":super.nameIsConstructor(e)}parseClassProperty(...e){let r=super.parseClassProperty(...e);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractPropertyDefinition")):this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...e){let r=super.parseClassPrivateProperty(...e);return r.abstract&&this.hasPlugin("typescript")?this.castNodeTo(r,"TSAbstractPropertyDefinition"):this.castNodeTo(r,"PropertyDefinition"),r.computed=!1,r}parseClassAccessorProperty(e){let r=super.parseClassAccessorProperty(e);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty"),r}parseObjectProperty(e,r,n,i){let s=super.parseObjectProperty(e,r,n,i);return s&&(s.kind="init",this.castNodeTo(s,"Property")),s}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,r,n,i){return e==="Property"?"value":super.isValidLVal(e,r,n,i)}isAssignable(e,r){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,r):super.isAssignable(e,r)}toAssignable(e,r=!1){if(e!=null&&this.isObjectProperty(e)){let{key:n,value:i}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(i,r)}else super.toAssignable(e,r)}toAssignableObjectExpressionProp(e,r,n){e.type==="Property"&&(e.kind==="get"||e.kind==="set")?this.raise(W.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(W.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,r,n)}finishCallExpression(e,r){let n=super.finishCallExpression(e,r);return n.callee.type==="Import"?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,r){let n=this.state.lastTokStartLoc,i=super.parseExport(e,r);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":{let{declaration:s}=i;s?.type==="ClassDeclaration"&&s.decorators?.length>0&&s.start===i.start&&this.resetStartLocation(i,n)}break}return i}stopParseSubscript(e,r){let n=super.stopParseSubscript(e,r);return r.optionalChainMember?this.estreeParseChainExpression(n,e.loc.end):n}parseMember(e,r,n,i,s){let a=super.parseMember(e,r,n,i,s);return a.type==="OptionalMemberExpression"?this.castNodeTo(a,"MemberExpression"):a.optional=!1,a}isOptionalMemberExpression(e){return e.type==="ChainExpression"?e.expression.type==="MemberExpression":super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}castNodeTo(e,r){let n=super.castNodeTo(e,r);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(e){let r=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(e){return e.type==="Literal"?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,r,n){return _o(super.finishNodeAt(e,r,n))}finishNode(e,r){let n=super.finishNode(e,r);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(e,r){super.resetStartLocation(e,r),_o(e)}resetEndLocation(e,r=this.state.lastTokEndLoc){super.resetEndLocation(e,r),_o(e)}},Yl=class{constructor(e,r){this.token=e,this.preserveSpace=!!r}token;preserveSpace},ut={brace:new Yl("{"),j_oTag:new Yl("<tag"),j_cTag:new Yl("</tag"),j_expr:new Yl("<tag>...</tag>",!0)},Le=!0,me=!0,yd=!0,Bo=!0,Bi=!0,$9=!0,eE=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,r={}){this.label=e,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}},Dd=new Map;function Je(t,e={}){e.keyword=t;let r=be(t,e);return Dd.set(t,r),r}function nr(t,e){return be(t,{beforeExpr:Le,binop:e})}var No=-1,Ed=[],xd=[],Cd=[],Ad=[],bd=[],vd=[];function be(t,e={}){return++No,xd.push(t),Cd.push(e.binop??-1),Ad.push(e.beforeExpr??!1),bd.push(e.startsExpr??!1),vd.push(e.prefix??!1),Ed.push(new eE(t,e)),No}function Re(t,e={}){return++No,Dd.set(t,No),xd.push(t),Cd.push(e.binop??-1),Ad.push(e.beforeExpr??!1),bd.push(e.startsExpr??!1),vd.push(e.prefix??!1),Ed.push(new eE("name",e)),No}var I9={bracketL:be("[",{beforeExpr:Le,startsExpr:me}),bracketHashL:be("#[",{beforeExpr:Le,startsExpr:me}),bracketBarL:be("[|",{beforeExpr:Le,startsExpr:me}),bracketR:be("]"),bracketBarR:be("|]"),braceL:be("{",{beforeExpr:Le,startsExpr:me}),braceBarL:be("{|",{beforeExpr:Le,startsExpr:me}),braceHashL:be("#{",{beforeExpr:Le,startsExpr:me}),braceR:be("}"),braceBarR:be("|}"),parenL:be("(",{beforeExpr:Le,startsExpr:me}),parenR:be(")"),comma:be(",",{beforeExpr:Le}),semi:be(";",{beforeExpr:Le}),colon:be(":",{beforeExpr:Le}),doubleColon:be("::",{beforeExpr:Le}),dot:be("."),question:be("?",{beforeExpr:Le}),questionDot:be("?."),arrow:be("=>",{beforeExpr:Le}),template:be("template"),ellipsis:be("...",{beforeExpr:Le}),backQuote:be("`",{startsExpr:me}),dollarBraceL:be("${",{beforeExpr:Le,startsExpr:me}),templateTail:be("...`",{startsExpr:me}),templateNonTail:be("...${",{beforeExpr:Le,startsExpr:me}),at:be("@"),hash:be("#",{startsExpr:me}),interpreterDirective:be("#!..."),eq:be("=",{beforeExpr:Le,isAssign:Bo}),assign:be("_=",{beforeExpr:Le,isAssign:Bo}),slashAssign:be("_=",{beforeExpr:Le,isAssign:Bo}),xorAssign:be("_=",{beforeExpr:Le,isAssign:Bo}),moduloAssign:be("_=",{beforeExpr:Le,isAssign:Bo}),incDec:be("++/--",{prefix:Bi,postfix:$9,startsExpr:me}),bang:be("!",{beforeExpr:Le,prefix:Bi,startsExpr:me}),tilde:be("~",{beforeExpr:Le,prefix:Bi,startsExpr:me}),doubleCaret:be("^^",{startsExpr:me}),doubleAt:be("@@",{startsExpr:me}),pipeline:nr("|>",0),nullishCoalescing:nr("??",1),logicalOR:nr("||",1),logicalAND:nr("&&",2),bitwiseOR:nr("|",3),bitwiseXOR:nr("^",4),bitwiseAND:nr("&",5),equality:nr("==/!=/===/!==",6),lt:nr("</>/<=/>=",7),gt:nr("</>/<=/>=",7),relational:nr("</>/<=/>=",7),bitShift:nr("<</>>/>>>",8),bitShiftL:nr("<</>>/>>>",8),bitShiftR:nr("<</>>/>>>",8),plusMin:be("+/-",{beforeExpr:Le,binop:9,prefix:Bi,startsExpr:me}),modulo:be("%",{binop:10,startsExpr:me}),star:be("*",{binop:10}),slash:nr("/",10),exponent:be("**",{beforeExpr:Le,binop:11,rightAssociative:!0}),_in:Je("in",{beforeExpr:Le,binop:7}),_instanceof:Je("instanceof",{beforeExpr:Le,binop:7}),_break:Je("break"),_case:Je("case",{beforeExpr:Le}),_catch:Je("catch"),_continue:Je("continue"),_debugger:Je("debugger"),_default:Je("default",{beforeExpr:Le}),_else:Je("else",{beforeExpr:Le}),_finally:Je("finally"),_function:Je("function",{startsExpr:me}),_if:Je("if"),_return:Je("return",{beforeExpr:Le}),_switch:Je("switch"),_throw:Je("throw",{beforeExpr:Le,prefix:Bi,startsExpr:me}),_try:Je("try"),_var:Je("var"),_const:Je("const"),_with:Je("with"),_new:Je("new",{beforeExpr:Le,startsExpr:me}),_this:Je("this",{startsExpr:me}),_super:Je("super",{startsExpr:me}),_class:Je("class",{startsExpr:me}),_extends:Je("extends",{beforeExpr:Le}),_export:Je("export"),_import:Je("import",{startsExpr:me}),_null:Je("null",{startsExpr:me}),_true:Je("true",{startsExpr:me}),_false:Je("false",{startsExpr:me}),_typeof:Je("typeof",{beforeExpr:Le,prefix:Bi,startsExpr:me}),_void:Je("void",{beforeExpr:Le,prefix:Bi,startsExpr:me}),_delete:Je("delete",{beforeExpr:Le,prefix:Bi,startsExpr:me}),_do:Je("do",{isLoop:yd,beforeExpr:Le}),_for:Je("for",{isLoop:yd}),_while:Je("while",{isLoop:yd}),_as:Re("as",{startsExpr:me}),_assert:Re("assert",{startsExpr:me}),_async:Re("async",{startsExpr:me}),_await:Re("await",{startsExpr:me}),_defer:Re("defer",{startsExpr:me}),_from:Re("from",{startsExpr:me}),_get:Re("get",{startsExpr:me}),_let:Re("let",{startsExpr:me}),_meta:Re("meta",{startsExpr:me}),_of:Re("of",{startsExpr:me}),_sent:Re("sent",{startsExpr:me}),_set:Re("set",{startsExpr:me}),_source:Re("source",{startsExpr:me}),_static:Re("static",{startsExpr:me}),_using:Re("using",{startsExpr:me}),_yield:Re("yield",{startsExpr:me}),_asserts:Re("asserts",{startsExpr:me}),_checks:Re("checks",{startsExpr:me}),_exports:Re("exports",{startsExpr:me}),_global:Re("global",{startsExpr:me}),_implements:Re("implements",{startsExpr:me}),_intrinsic:Re("intrinsic",{startsExpr:me}),_infer:Re("infer",{startsExpr:me}),_is:Re("is",{startsExpr:me}),_mixins:Re("mixins",{startsExpr:me}),_proto:Re("proto",{startsExpr:me}),_require:Re("require",{startsExpr:me}),_satisfies:Re("satisfies",{startsExpr:me}),_keyof:Re("keyof",{startsExpr:me}),_readonly:Re("readonly",{startsExpr:me}),_unique:Re("unique",{startsExpr:me}),_abstract:Re("abstract",{startsExpr:me}),_declare:Re("declare",{startsExpr:me}),_enum:Re("enum",{startsExpr:me}),_module:Re("module",{startsExpr:me}),_namespace:Re("namespace",{startsExpr:me}),_interface:Re("interface",{startsExpr:me}),_type:Re("type",{startsExpr:me}),_opaque:Re("opaque",{startsExpr:me}),name:be("name",{startsExpr:me}),placeholder:be("%%",{startsExpr:me}),string:be("string",{startsExpr:me}),num:be("num",{startsExpr:me}),bigint:be("bigint",{startsExpr:me}),decimal:be("decimal",{startsExpr:me}),regexp:be("regexp",{startsExpr:me}),privateName:be("#name",{startsExpr:me}),eof:be("eof"),jsxName:be("jsxName"),jsxText:be("jsxText",{beforeExpr:Le}),jsxTagStart:be("jsxTagStart",{startsExpr:me}),jsxTagEnd:be("jsxTagEnd")};function et(t){return t>=93&&t<=133}function O9(t){return t<=92}function un(t){return t>=58&&t<=133}function tE(t){return t>=58&&t<=137}function L9(t){return Ad[t]}function $o(t){return bd[t]}function M9(t){return t>=29&&t<=33}function rE(t){return t>=129&&t<=131}function R9(t){return t>=90&&t<=92}function Fd(t){return t>=58&&t<=92}function j9(t){return t>=39&&t<=59}function q9(t){return t===34}function U9(t){return vd[t]}function z9(t){return t>=121&&t<=123}function V9(t){return t>=124&&t<=130}function Ni(t){return xd[t]}function Xl(t){return Cd[t]}function H9(t){return t===57}function Td(t){return t>=24&&t<=25}function nE(t){return Ed[t]}var wd="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",iE="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",W9=new RegExp("["+wd+"]"),G9=new RegExp("["+wd+iE+"]");wd=iE=null;var sE=[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],J9=[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 Sd(t,e){let r=65536;for(let n=0,i=e.length;n<i;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function Sn(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&W9.test(String.fromCharCode(t)):Sd(t,sE)}function hs(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&G9.test(String.fromCharCode(t)):Sd(t,sE)||Sd(t,J9)}var kd={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"]},K9=new Set(kd.keyword),Y9=new Set(kd.strict),X9=new Set(kd.strictBind);function aE(t,e){return e&&t==="await"||t==="enum"}function oE(t,e){return aE(t,e)||Y9.has(t)}function uE(t){return X9.has(t)}function lE(t,e){return oE(t,e)||uE(t)}function Q9(t){return K9.has(t)}function Z9(t,e,r){return t===64&&e===64&&Sn(r)}var eO=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 tO(t){return eO.has(t)}var Pd=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},_d=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,r){this.parser=e,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 e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];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(e){return new Pd(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,n){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,e,r,n);let s=i.names.get(e)||0;r&16?s=s|4:(i.firstLexicalName||(i.firstLexicalName=e),s=s|2),i.names.set(e,s),r&8&&this.maybeExportDefined(i,e)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,e,r,n),i.names.set(e,(i.names.get(e)||0)|1),this.maybeExportDefined(i,e),!(i.flags&1667));--s);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,n,i){this.isRedeclaredInScope(e,r,n)&&this.parser.raise(W.VarRedeclaration,i,{identifierName:r})}isRedeclaredInScope(e,r,n){if(!(n&1))return!1;if(n&8)return e.names.has(r);let i=e.names.get(r)||0;return n&16?(i&2)>0||!this.treatFunctionsAsVarInScope(e)&&(i&1)>0:(i&2)>0&&!(e.flags&8&&e.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(e)&&(i&4)>0}checkLocalExport(e){let{name:r}=e;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1667)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&1731&&!(r&4))return r}}},rO=class extends Pd{declareFunctions=new Set},nO=class extends _d{createScope(e){return new rO(e)}declareName(e,r,n){let i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,e,r,n),this.maybeExportDefined(i,e),i.declareFunctions.add(e);return}super.declareName(e,r,n)}isRedeclaredInScope(e,r,n){if(super.isRedeclaredInScope(e,r,n))return!0;if(n&2048&&!e.declareFunctions.has(r)){let i=e.names.get(r);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},iO=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Fe=wn`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:t})=>`Cannot overwrite reserved type ${t}.`,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:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,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."},{}),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:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function sO(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function cE(t){return t.importKind==="type"||t.importKind==="typeof"}var aO={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function oO(t,e){let r=[],n=[];for(let i=0;i<t.length;i++)(e(t[i],i,t)?r:n).push(t[i]);return[r,n]}var uO=/\*?\s*@((?:no)?flow)\b/,lO=t=>class extends t{flowPragma=void 0;getScopeHandler(){return nO}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,r){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,r)}addComment(e){if(this.flowPragma===void 0){let r=uO.exec(e.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let r=this.state.inType;this.state.inType=!0,this.expect(e||14);let n=this.flowParseType();return this.state.inType=r,n}flowParsePredicate(){let e=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>r.index+1&&this.raise(Fe.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let r=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(r=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[r,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let r=e.id=this.parseIdentifier(),n=this.startNode(),i=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let s=this.flowParseFunctionTypeParams();return n.params=s.params,n.rest=s.rest,n.this=s._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,r){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(r&&this.raise(Fe.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,r);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let r=e.body=this.startNode(),n=r.body=[];for(this.expect(5);!this.match(8);){let a=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Fe.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(a))):(this.expectContextual(125,Fe.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(a,!0)))}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");let i=null,s=!1;return n.forEach(a=>{sO(a)?(i==="CommonJS"&&this.raise(Fe.AmbiguousDeclareModuleKind,a),i="ES"):a.type==="DeclareModuleExports"&&(s&&this.raise(Fe.DuplicateDeclareModuleExports,a),i==="ES"&&this.raise(Fe.AmbiguousDeclareModuleKind,a),i="CommonJS",s=!0)}),e.kind=i||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,r){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!r){let n=this.state.value;throw this.raise(Fe.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:aO[n]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let r=this.flowParseTypeAlias(e);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(e){this.next();let r=this.flowParseOpaqueType(e,!0);return this.castNodeTo(r,"DeclareOpaqueType"),r}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,r){if(e.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(e.id.name,r?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(12));if(r){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(Fe.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,r,n){iO.has(e)&&this.raise(n?Fe.AssignReservedType:Fe.UnexpectedReservedType,r,{reservedType:e})}flowParseRestrictedIdentifier(e,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,r){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,r||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let r=this.state.startLoc,n=this.startNode(),i=this.flowParseVariance(),s=this.flowParseTypeAnnotatableIdentifier();return n.name=s.name,n.variance=i,n.bound=s.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(Fe.MissingTypeParamDefault,r),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let i=this.flowParseTypeParameter(n);r.params.push(i),i.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==ut.brace){let r=this.state.context;this.state.context=[r[0]];try{return e()}finally{this.state.context=r}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),r=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=n}),this.state.inType=r,!this.state.inType&&this.curContext()===ut.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let e=this.startNode(),r=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=r,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,r,n){return e.static=r,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,r){return e.static=r,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,r){let n=this.startNode();return e.static=r,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:r,allowSpread:n,allowProto:i,allowInexact:s}){let a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let u,l,c=!1;for(r&&this.match(6)?(this.expect(6),u=9,l=!0):(this.expect(5),u=8,l=!1),o.exact=l;!this.match(u);){let f=!1,h=null,m=null,g=this.startNode();if(i&&this.isContextual(118)){let D=this.lookahead();D.type!==14&&D.type!==17&&(this.next(),h=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let D=this.lookahead();D.type!==14&&D.type!==17&&(this.next(),f=!0)}let y=this.flowParseVariance();if(this.eat(0))h!=null&&this.unexpected(h),this.eat(0)?(y&&this.unexpected(y.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(g,f))):o.indexers.push(this.flowParseObjectTypeIndexer(g,f,y));else if(this.match(10)||this.match(47))h!=null&&this.unexpected(h),y&&this.unexpected(y.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(g,f));else{let D="init";if(this.isContextual(99)||this.isContextual(104)){let x=this.lookahead();tE(x.type)&&(D=this.state.value,this.next())}let d=this.flowParseObjectTypeProperty(g,f,h,y,D,n,s??!l);d===null?(c=!0,m=this.state.lastTokStartLoc):o.properties.push(d)}this.flowObjectTypeSemicolon(),m&&!this.match(8)&&!this.match(9)&&this.raise(Fe.UnexpectedExplicitInexactInObject,m)}this.expect(u),n&&(o.inexact=c);let p=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=a,p}flowParseObjectTypeProperty(e,r,n,i,s,a,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?o||this.raise(Fe.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Fe.InexactInsideNonObject,this.state.lastTokStartLoc),i&&this.raise(Fe.InexactVariance,i),null):(a||this.raise(Fe.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),i&&this.raise(Fe.SpreadVariance,i),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=r,e.proto=n!=null,e.kind=s;let u=!1;return this.match(47)||this.match(10)?(e.method=!0,n!=null&&this.unexpected(n),i&&this.unexpected(i.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(s==="get"||s==="set")&&this.flowCheckGetterSetterParams(e),!a&&e.key.name==="constructor"&&e.value.this&&this.raise(Fe.ThisParamBannedInConstructor,e.value.this)):(s!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(u=!0),e.value=this.flowParseTypeInitialiser(),e.variance=i),e.optional=u,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let r=e.kind==="get"?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?Fe.GetterMayNotHaveThisParam:Fe.SetterMayNotHaveThisParam,e.value.this),n!==r&&this.raise(e.kind==="get"?W.BadGetterArity:W.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise(W.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,r){e??(e=this.state.startLoc);let n=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let i=this.startNodeAt(e);i.qualification=n,i.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(i,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,r){let n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,r),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let r=null,n=!1,i=null,s=this.startNode(),a=this.lookahead(),o=this.state.type===78;return a.type===14||a.type===17?(o&&!e&&this.raise(Fe.ThisParamMustBeFirst,s),r=this.parseIdentifier(o),this.eat(17)&&(n=!0,o&&this.raise(Fe.ThisParamMayNotBeOptional,s)),i=this.flowParseTypeInitialiser()):i=this.flowParseType(),s.name=r,s.optional=n,s.typeAnnotation=i,this.finishNode(s,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let r=this.startNodeAt(e.loc.start);return r.name=null,r.optional=!1,r.typeAnnotation=e,this.finishNode(r,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let r=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r=this.flowParseFunctionTypeParam(!1)),{params:e,rest:r,_this:n}}flowIdentToTypeAnnotation(e,r,n){switch(n.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){let e=this.state.startLoc,r=this.startNode(),n,i,s=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,i=this.flowParseTupleType(),this.state.noAnonFunctionType=a,i;case 47:{let o=this.startNode();return o.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),o.params=n.params,o.rest=n.rest,o.this=n._this,this.expect(11),this.expect(19),o.returnType=this.flowParseType(),this.finishNode(o,"FunctionTypeAnnotation")}case 10:{let o=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(et(this.state.type)||this.match(78)){let u=this.lookahead().type;s=u!==17&&u!==14}else s=!0;if(s){if(this.state.noAnonFunctionType=!1,i=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),i;this.eat(12)}return i?n=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(i)]):n=this.flowParseFunctionTypeParams(),o.params=n.params,o.rest=n.rest,o.this=n._this,this.expect(11),this.expect(19),o.returnType=this.flowParseType(),o.typeParameters=null,this.finishNode(o,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return r.value=this.match(85),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",r);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",r);throw this.raise(Fe.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Fd(this.state.type)){let o=Ni(this.state.type);return this.next(),super.createIdentifier(r,o)}else if(et(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,r,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,r=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let i=this.startNodeAt(e),s=this.eat(18);n=n||s,this.expect(0),!s&&this.match(3)?(i.elementType=r,this.next(),r=this.finishNode(i,"ArrayTypeAnnotation")):(i.objectType=r,i.indexType=this.flowParseType(),this.expect(3),n?(i.optional=s,r=this.finishNode(i,"OptionalIndexedAccessType")):r=this.finishNode(i,"IndexedAccessType"))}return r}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let r=this.startNodeAt(e.loc.start);return r.params=[this.reinterpretTypeAsFunctionTypeParam(e)],r.rest=null,r.this=null,r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let r=this.flowParseAnonFunctionWithoutParens();for(e.types=[r];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?r:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let r=this.flowParseIntersectionType();for(e.types=[r];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?r:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let r=this.flowParseUnionType();return this.state.inType=e,r}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let e=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(e,r)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let r=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r)),r}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value==="+"?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,r,n=!1){if(r){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n));return}super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,r,n=!1){if(this.match(14)){let i=this.startNode();[i.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=i.typeAnnotation?this.finishNode(i,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,r,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){let n=this.lookahead();if(un(n.type)){let i=this.startNode();return this.next(),this.flowParseInterface(i)}}else if(this.isContextual(126)){let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}let r=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(e,r,n){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(80)||et(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(et(this.state.type)){if(r.name==="interface")return this.flowParseInterface(e);if(r.name==="type")return this.flowParseTypeAlias(e);if(r.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,r,n)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||rE(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||rE(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,r,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let p=this.lookaheadCharCode();if(p===44||p===61||p===58||p===41)return this.setOptionalParametersError(n),e}this.expect(17);let i=this.state.clone(),s=this.state.noArrowAt,a=this.startNodeAt(r),{consequent:o,failed:u}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(o);if(u||c.length>0){let p=[...s];if(c.length>0){this.state=i,this.state.noArrowAt=p;for(let f=0;f<c.length;f++)p.push(c[f].start);({consequent:o,failed:u}=this.tryParseConditionalConsequent()),[l,c]=this.getArrowLikeExpressions(o)}u&&l.length>1&&this.raise(Fe.AmbiguousConditionalArrow,i.startLoc),u&&l.length===1&&(this.state=i,p.push(l[0].start),this.state.noArrowAt=p,{consequent:o,failed:u}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=s,this.expect(14),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),r=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:r}}getArrowLikeExpressions(e,r){let n=[e],i=[];for(;n.length!==0;){let s=n.pop();s.type==="ArrowFunctionExpression"&&s.body.type!=="BlockStatement"?(s.typeParameters||!s.returnType?this.finishArrowValidation(s):i.push(s),n.push(s.body)):s.type==="ConditionalExpression"&&(n.push(s.consequent),n.push(s.alternate))}return r?(i.forEach(s=>this.finishArrowValidation(s)),[i,[]]):oO(i,s=>s.params.every(a=>this.isAssignable(a,!0)))}finishArrowValidation(e){this.toAssignableList(e.params,e.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,r){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=r(),this.state.noArrowParamsConversionAt.pop()):n=r(),n}parseParenItem(e,r){let n=super.parseParenItem(e,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(r);return i.expression=n,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return n}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let r=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(r)}else if(this.isContextual(131)){e.exportKind="type";let r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(129)){e.exportKind="type";let r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(126)){e.exportKind="value";let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:r}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&e.exportKind==="type"&&this.unexpected(r),n}parseClassId(e,r,n){super.parseClassId(e,r,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,r,n){let{startLoc:i}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,r))return;r.declare=!0}super.parseClassMember(e,r,n),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(Fe.DeclareClassElement,i):r.value&&this.raise(Fe.DeclareClassFieldInitializer,r.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),r="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(W.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)}getTokenFromCode(e){let r=this.input.charCodeAt(this.state.pos+1);e===123&&r===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?r===46?this.finishOp(18,2):this.finishOp(17,1):Z9(e,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,r){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,r):super.isAssignable(e,r)}toAssignable(e,r=!1){!r&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,r)}toAssignableList(e,r,n){for(let i=0;i<e.length;i++){let s=e[i];s?.type==="TypeCastExpression"&&(e[i]=this.typeCastToParameter(s))}super.toAssignableList(e,r,n)}toReferencedList(e,r){for(let n=0;n<e.length;n++){let i=e[n];i&&i.type==="TypeCastExpression"&&!i.extra?.parenthesized&&(e.length>1||!r)&&this.raise(Fe.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,r,n){let i=super.parseArrayLike(e,r,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,r,n,i){return e==="TypeCastExpression"||super.isValidLVal(e,r,n,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,r,n,i,s,a){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,r,n,i,s,a),r.params&&s){let o=r.params;o.length>0&&this.isThisParam(o[0])&&this.raise(Fe.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&s&&r.value.params){let o=r.value.params;o.length>0&&this.isThisParam(o[0])&&this.raise(Fe.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(e,r,n,i){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,r,n,i)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let r=e.implements=[];do{let n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,r.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let r=this.getObjectOrClassMethodParams(e);if(r.length>0){let n=r[0];this.isThisParam(n)&&e.kind==="get"?this.raise(Fe.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Fe.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,r,n,i,s,a,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let u;this.match(47)&&!a&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let l=super.parseObjPropValue(e,r,n,i,s,a,o);return u&&((l.value||l).typeParameters=u),l}parseFunctionParamType(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(Fe.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Fe.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Fe.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(Fe.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,r){let n=super.parseMaybeDefault(e,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Fe.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(Fe.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,r,n){r.local=cE(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let r=this.lookaheadCharCode();return r===123||r===42}return!e&&this.isContextual(87)}applyImportPhase(e,r,n,i){if(super.applyImportPhase(e,r,n,i),r){if(!n&&this.match(65))return;e.exportKind=n==="type"?n:"value"}else n==="type"&&this.match(55)&&this.unexpected(),e.importKind=n==="type"||n==="typeof"?n:"value"}parseImportSpecifier(e,r,n,i,s){let a=e.imported,o=null;a.type==="Identifier"&&(a.name==="type"?o="type":a.name==="typeof"&&(o="typeof"));let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let c=this.parseIdentifier(!0);o!==null&&!un(this.state.type)?(e.imported=c,e.importKind=o,e.local=this.cloneIdentifier(c)):(e.imported=a,e.importKind=null,e.local=this.parseIdentifier())}else{if(o!==null&&un(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(r)throw this.raise(W.ImportBindingIsString,e,{importName:a.value});e.imported=a,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(u=!0,e.local=this.cloneIdentifier(e.imported))}let l=cE(e);return n&&l&&this.raise(Fe.ImportTypeShorthandOnlyInPureImport,e),(n||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),u&&!n&&!l&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,r){let n=e.kind;n!=="get"&&n!=="set"&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,r)}parseVarId(e,r){super.parseVarId(e,r),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,r){if(this.match(14)){let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=n}return super.parseAsyncArrowFromCallExpression(e,r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,r){let n=null,i;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(e,r),n),!i.error)return i.node;let{context:s}=this.state,a=s[s.length-1];(a===ut.j_oTag||a===ut.j_expr)&&s.pop()}if(i?.error||this.match(47)){n=n||this.state.clone();let s,a=this.tryParse(u=>{s=this.flowParseTypeParameterDeclaration();let l=this.forwardNoArrowParamsConversionAt(s,()=>{let p=super.parseMaybeAssign(e,r);return this.resetStartLocationFromNode(p,s),p});l.extra?.parenthesized&&u();let c=this.maybeUnwrapTypeCastExpression(l);return c.type!=="ArrowFunctionExpression"&&u(),c.typeParameters=s,this.resetStartLocationFromNode(c,s),l},n),o=null;if(a.node&&this.maybeUnwrapTypeCastExpression(a.node).type==="ArrowFunctionExpression"){if(!a.error&&!a.aborted)return a.node.async&&this.raise(Fe.UnexpectedTypeParameterBeforeAsyncArrowFunction,s),a.node;o=a.node}if(i?.node)return this.state=i.failState,i.node;if(o)return this.state=a.failState,o;throw i?.thrown?i.error:a.thrown?a.error:this.raise(Fe.UnexpectedTokenAfterTypeParameter,s)}return super.parseMaybeAssign(e,r)}parseArrow(e){if(this.match(14)){let r=this.tryParse(()=>{let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let i=this.startNode();return[i.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),i});if(r.thrown)return null;r.error&&(this.state=r.failState),e.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=r:super.setArrowFunctionParameters(e,r)}checkParams(e,r,n,i=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let s=0;s<e.params.length;s++)this.isThisParam(e.params[s])&&s>0&&this.raise(Fe.ThisParamMustBeFirst,e.params[s]);super.checkParams(e,r,n,i)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,r,n){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();let i=this.startNodeAt(r);i.callee=e,i.arguments=super.parseCallExpressionArguments(),e=this.finishNode(i,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let i=this.state.clone(),s=this.tryParse(o=>this.parseAsyncArrowWithTypeParameters(r)||o(),i);if(!s.error&&!s.aborted)return s.node;let a=this.tryParse(()=>super.parseSubscripts(e,r,n),i);if(a.node&&!a.error)return a.node;if(s.node)return this.state=s.failState,s.node;if(a.node)return this.state=a.failState,a.node;throw s.error||a.error}return super.parseSubscripts(e,r,n)}parseSubscript(e,r,n,i){if(this.match(18)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,n)return i.stop=!0,e;this.next();let s=this.startNodeAt(r);return s.callee=e,s.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),s.arguments=this.parseCallExpressionArguments(),s.optional=!0,this.finishCallExpression(s,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let s=this.startNodeAt(r);s.callee=e;let a=this.tryParse(()=>(s.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),s.arguments=super.parseCallExpressionArguments(),i.optionalChainMember&&(s.optional=!1),this.finishCallExpression(s,i.optionalChainMember)));if(a.node)return a.error&&(this.state=a.failState),a.node}return super.parseSubscript(e,r,n,i)}parseNewCallee(e){super.parseNewCallee(e);let r=null;this.shouldParseTypes()&&this.match(47)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=r}parseAsyncArrowWithTypeParameters(e){let r=this.startNodeAt(e);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(e){let r=this.input.charCodeAt(this.state.pos+1);if(e===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(e===124&&r===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,r){let n=super.parseTopLevel(e,r);return this.state.hasFlowComment&&this.raise(Fe.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Fe.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,r=2;for(;[32,9].includes(this.input.charCodeAt(e+r));)r++;let n=this.input.charCodeAt(r+e),i=this.input.charCodeAt(r+e+1);return n===58&&i===58?r+2:this.input.slice(r+e,r+e+12)==="flow-include"?r+12:n===58&&i!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(W.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:r,memberName:n}){this.raise(Fe.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:r})}flowEnumErrorInvalidMemberInitializer(e,r){return this.raise(r.explicitType?r.explicitType==="symbol"?Fe.EnumInvalidMemberInitializerSymbolType:Fe.EnumInvalidMemberInitializerPrimaryType:Fe.EnumInvalidMemberInitializerUnknownType,e,r)}flowEnumErrorNumberMemberNotInitialized(e,r){this.raise(Fe.EnumNumberMemberNotInitialized,e,r)}flowEnumErrorStringMemberInconsistentlyInitialized(e,r){this.raise(Fe.EnumStringMemberInconsistentlyInitialized,e,r)}flowEnumMemberInit(){let e=this.state.startLoc,r=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 134:{let n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,r=this.parseIdentifier(!0),n=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:r,init:n}}flowEnumCheckExplicitTypeMismatch(e,r,n){let{explicitType:i}=r;i!==null&&i!==n&&this.flowEnumErrorInvalidMemberInitializer(e,r)}flowEnumMembers({enumName:e,explicitType:r}){let n=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;for(;!this.match(8);){if(this.eat(21)){s=!0;break}let a=this.startNode(),{id:o,init:u}=this.flowEnumMemberRaw(),l=o.name;if(l==="")continue;/^[a-z]/.test(l)&&this.raise(Fe.EnumInvalidMemberName,o,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),n.has(l)&&this.raise(Fe.EnumDuplicateMemberName,o,{memberName:l,enumName:e}),n.add(l);let c={enumName:e,explicitType:r,memberName:l};switch(a.id=o,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,c,"boolean"),a.init=u.value,i.booleanMembers.push(this.finishNode(a,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,c,"number"),a.init=u.value,i.numberMembers.push(this.finishNode(a,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,c,"string"),a.init=u.value,i.stringMembers.push(this.finishNode(a,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,c);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,c);break;default:i.defaultedMembers.push(this.finishNode(a,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:s}}flowEnumStringMembers(e,r,{enumName:n}){if(e.length===0)return r;if(r.length===0)return e;if(r.length>e.length){for(let i of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(i,{enumName:n});return r}else{for(let i of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(i,{enumName:n});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!et(this.state.type))throw this.raise(Fe.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(Fe.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:r}),r}flowEnumBody(e,r){let n=r.name,i=r.loc.start,s=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:s});switch(e.hasUnknownMembers=o,s){case"boolean":return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let u=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let l=a.booleanMembers.length,c=a.numberMembers.length,p=a.stringMembers.length,f=a.defaultedMembers.length;if(!l&&!c&&!p&&!f)return u();if(!l&&!c)return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!c&&!p&&l>=f){for(let h of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(h.loc.start,{enumName:n,memberName:h.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!l&&!p&&c>=f){for(let h of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(h.loc.start,{enumName:n,memberName:h.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(Fe.EnumInconsistentMemberValues,i,{enumName:n}),u()}}}flowParseEnumDeclaration(e){let r=this.parseIdentifier();return e.id=r,e.body=this.flowEnumBody(this.startNode(),r),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let r=this.input.charCodeAt(e+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===47?(this.state.pos-=1,this.readToken_lt()):e===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},cO=/\r\n|[\r\n\u2028\u2029]/,Ql=new RegExp(cO.source,"g");function ca(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function pE(t,e,r){for(let n=e;n<r;n++)if(ca(t.charCodeAt(n)))return!0;return!1}var Bd=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Nd=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function pO(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var ei=wn`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,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:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,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 $i(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function pa(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return pa(t.object)+"."+pa(t.property);throw new Error("Node had unexpected type: "+t.type)}var hO=t=>class extends t{jsxReadToken(){let e="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ei.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}e+=this.input.slice(r,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(r,this.state.pos),e+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(ei.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?"}":">"});default:ca(n)?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let r=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=e?`
|
|
67
|
+
`:`\r
|
|
68
|
+
`):n=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let r="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(W.UnterminatedString,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);if(i===e)break;i===38?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos):ca(i)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}r+=this.input.slice(n,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let n=this.readInt(r,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let r=0,n=!1;for(;r++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){this.input.slice(e,this.state.pos);let i;++this.state.pos}}return this.state.pos=e,"&"}jsxReadWord(){let e,r=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(hs(e)||e===45);this.finishToken(141,this.input.slice(r,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:Fd(this.state.type)?e.name=Ni(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(14))return r;let n=this.startNodeAt(e);return n.namespace=r,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,r=this.jsxParseNamespacedName();if(r.type==="JSXNamespacedName")return r;for(;this.eat(16);){let n=this.startNodeAt(e);n.object=r,n.property=this.jsxParseIdentifier(),r=this.finishNode(n,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(ut.brace),this.next(),e=this.jsxParseExpressionContainer(e,ut.j_oTag),e.expression.type==="JSXEmptyExpression"&&this.raise(ei.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ei.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(ut.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,r){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let n=this.parseExpression();n.type==="SequenceExpression"&&!n.extra?.parenthesized&&this.raise(ei.UnexpectedSequenceExpression,n.expressions[1]),e.expression=n}return this.setContext(r),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(ut.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(ut.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){let r=this.startNodeAt(e);return this.eat(144)?this.finishNode(r,"JSXOpeningFragment"):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(e){let r=[];for(;!this.match(56)&&!this.match(144);)r.push(this.jsxParseAttribute());return e.attributes=r,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){let r=this.startNodeAt(e);return this.eat(144)?this.finishNode(r,"JSXClosingFragment"):(r.name=this.jsxParseElementName(),this.expect(144),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(e){let r=this.startNodeAt(e),n=[],i=this.jsxParseOpeningElementAt(e),s=null;if(!i.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){s=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let a=this.startNode();this.setContext(ut.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(a)):n.push(this.jsxParseExpressionContainer(a,ut.j_expr));break}default:this.unexpected()}$i(i)&&!$i(s)&&s!==null?this.raise(ei.MissingClosingTagFragment,s):!$i(i)&&$i(s)?this.raise(ei.MissingClosingTagElement,s,{openingTagName:pa(i.name)}):!$i(i)&&!$i(s)&&pa(s.name)!==pa(i.name)&&this.raise(ei.MissingClosingTagElement,s,{openingTagName:pa(i.name)})}if($i(i)?(r.openingFragment=i,r.closingFragment=s):(r.openingElement=i,r.closingElement=s),r.children=n,this.match(47))throw this.raise(ei.UnwrappedAdjacentJSXElements,this.state.startLoc);return $i(i)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:r}=this.state;r[r.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let r=this.curContext();if(r===ut.j_expr){this.jsxReadToken();return}if(r===ut.j_oTag||r===ut.j_cTag){if(Sn(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&r===ut.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){let{context:r,type:n}=this.state;if(n===56&&e===143)r.splice(-2,2,ut.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)r.push(ut.j_oTag);else if(n===144){let i=r[r.length-1];i===ut.j_oTag&&e===56||i===ut.j_cTag?(r.pop(),this.state.canStartJSXElement=r[r.length-1]===ut.j_expr):(this.setContext(ut.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=L9(n)}},fO=class extends Pd{tsNames=new Map},dO=class extends _d{importsStack=[];createScope(e){return this.importsStack.push(new Set),new fO(e)}enter(e){e===1024&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===1024&&this.importsStack.pop(),e}hasImport(e,r){let n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!r&&n>1){for(let i=0;i<n-1;i++)if(this.importsStack[i].has(e))return!0}return!1}declareName(e,r,n){if(r&4096){this.hasImport(e,!0)&&this.parser.raise(W.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let i=this.currentScope(),s=i.tsNames.get(e)||0;if(r&1024){this.maybeExportDefined(i,e),i.tsNames.set(e,s|16);return}super.declareName(e,r,n),r&2&&(r&1||(this.checkRedeclarationInScope(i,e,r,n),this.maybeExportDefined(i,e)),s=s|1),r&256&&(s=s|2),r&512&&(s=s|4),r&128&&(s=s|8),s&&i.tsNames.set(e,s)}isRedeclaredInScope(e,r,n){let i=e.tsNames.get(r);if((i&2)>0){if(n&256){let s=!!(n&512),a=(i&4)>0;return s!==a}return!0}return n&128&&(i&8)>0?e.names.get(r)&2?!!(n&1):!1:n&2&&(i&1)>0?!0:super.isRedeclaredInScope(e,r,n)}checkLocalExport(e){let{name:r}=e;if(this.hasImport(r))return;let n=this.scopeStack.length;for(let i=n-1;i>=0;i--){let s=this.scopeStack[i].tsNames.get(r);if((s&1)>0||(s&16)>0)return}super.checkLocalExport(e)}},mO=class{stacks=[];enter(e){this.stacks.push(e)}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 Zl(t,e){return(t?2:0)|(e?1:0)}var gO=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,n]=e;if(!this.hasPlugin(r))return!1;let i=this.plugins.get(r);for(let s of Object.keys(n))if(i?.[s]!==n[s])return!1;return!0}}getPluginOption(e,r){return this.plugins.get(e)?.[r]}};function hE(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function yO(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function ha(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function fs(t,e,r){let n=null,i=e.length;for(;n===null&&i>0;)n=e[--i];n===null||n.start>r.start?ha(t,r.comments):hE(n,r.comments)}var DO=class extends gO{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let i=n-1,s=r[i];s.start===e.end&&(s.leadingNode=e,i--);let{start:a}=e;for(;i>=0;i--){let o=r[i],u=o.end;if(u>a)o.containingNode=e,this.finalizeComment(o),r.splice(i,1);else{u===a&&(o.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&hE(e.leadingNode,r),e.trailingNode!==null&&yO(e.trailingNode,r);else{let n=e.containingNode,i=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(i)-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":fs(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":fs(n,n.arguments,e);break;case"ImportExpression":fs(n,[n.source,n.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":fs(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":fs(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":fs(n,n.specifiers,e);break;case"TSEnumDeclaration":ha(n,r);break;case"TSEnumBody":fs(n,n.members,e);break;default:ha(n,r)}else ha(n,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let i=r[n-1];i.leadingNode===e&&(i.leadingNode=null)}takeSurroundingComments(e,r,n){let{commentStack:i}=this.state,s=i.length;if(s===0)return;let a=s-1;for(;a>=0;a--){let o=i[a],u=o.end;if(o.start===n)o.leadingNode=e;else if(u===r)o.trailingNode=e;else if(u<r)break}}},EO=class Bk{flags=1024;get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:e,sourceType:r,startIndex:n,startLine:i,startColumn:s}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.startIndex=n,this.curLine=i,this.lineStart=-s,this.startLoc=this.endLoc=new _i(i,s,n)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[ut.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new _i(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new Bk;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},xO=function(t){return t>=48&&t<=57},fE={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ec={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function dE(t,e,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:f}=e;for(;;){if(r>=f){s.unterminated(a,o,u),l+=e.slice(p,r);break}let h=e.charCodeAt(r);if(CO(t,h,e,r)){l+=e.slice(p,r);break}if(h===92){l+=e.slice(p,r);let m=AO(e,r,n,i,t==="template",s);m.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=m.ch,{pos:r,lineStart:n,curLine:i}=m,p=r}else h===8232||h===8233?(++r,++i,n=r):h===10||h===13?t==="template"?(l+=e.slice(p,r)+`
|
|
69
|
+
`,++r,h===13&&e.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i}}function CO(t,e,r,n){return t==="template"?e===96||e===36&&r.charCodeAt(n+1)===123:e===(t==="double"?34:39)}function AO(t,e,r,n,i,s){let a=!i;e++;let o=l=>({pos:e,ch:l,lineStart:r,curLine:n}),u=t.charCodeAt(e++);switch(u){case 110:return o(`
|
|
70
|
+
`);case 114:return o("\r");case 120:{let l;return{code:l,pos:e}=$d(t,e,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:e}=gE(t,e,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:r=e,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(e-1,r,n);default:if(u>=48&&u<=55){let l=e-1,c=/^[0-7]+/.exec(t.slice(l,e+2))[0],p=parseInt(c,8);p>255&&(c=c.slice(0,-1),p=parseInt(c,8)),e+=c.length-1;let f=t.charCodeAt(e);if(c!=="0"||f===56||f===57){if(i)return o(null);s.strictNumericEscape(l,r,n)}return o(String.fromCharCode(p))}return o(String.fromCharCode(u))}}function $d(t,e,r,n,i,s,a,o){let u=e,l;return{n:l,pos:e}=mE(t,e,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):e=u-1),{code:l,pos:e}}function mE(t,e,r,n,i,s,a,o,u,l){let c=e,p=i===16?fE.hex:fE.decBinOct,f=i===16?ec.hex:i===10?ec.dec:i===8?ec.oct:ec.bin,h=!1,m=0;for(let g=0,y=s??1/0;g<y;++g){let D=t.charCodeAt(e),d;if(D===95&&o!=="bail"){let x=t.charCodeAt(e-1),A=t.charCodeAt(e+1);if(o){if(Number.isNaN(A)||!f(A)||p.has(x)||p.has(A)){if(l)return{n:null,pos:e};u.unexpectedNumericSeparator(e,r,n)}}else{if(l)return{n:null,pos:e};u.numericSeparatorInEscapeSequence(e,r,n)}++e;continue}if(D>=97?d=D-97+10:D>=65?d=D-65+10:xO(D)?d=D-48:d=1/0,d>=i){if(d<=9&&l)return{n:null,pos:e};if(d<=9&&u.invalidDigit(e,r,n,i))d=0;else if(a)d=0,h=!0;else break}++e,m=m*i+d}return e===c||s!=null&&e-c!==s||h?{n:null,pos:e}:{n:m,pos:e}}function gE(t,e,r,n,i,s){let a=t.charCodeAt(e),o;if(a===123){if(++e,{code:o,pos:e}=$d(t,e,r,n,t.indexOf("}",e)-e,!0,i,s),++e,o!==null&&o>1114111)if(i)s.invalidCodePoint(e,r,n);else return{code:null,pos:e}}else({code:o,pos:e}=$d(t,e,r,n,4,!1,i,s));return{code:o,pos:e}}function Io(t,e,r){return new _i(r,t-e,t)}var bO=new Set([103,109,115,105,121,117,100,118]),vO=class{constructor(e){let r=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=r+e.start,this.end=r+e.end,this.loc=new Jl(e.startLoc,e.endLoc)}},FO=class extends DO{isLookahead;tokens=[];constructor(e,r){super(),this.state=new EO,this.state.init(e),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new vO(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=e,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Bd.lastIndex=e,Bd.test(this.input)?Bd.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Nd.lastIndex=e,Nd.test(this.input)?Nd.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let r=this.input.charCodeAt(e);if((r&64512)===55296&&++e<this.input.length){let n=this.input.charCodeAt(e);(n&64512)===56320&&(r=65536+((r&1023)<<10)+(n&1023))}return r}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([r,n])=>this.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(e){let r;this.isLookahead||(r=this.state.curPosition());let n=this.state.pos,i=this.input.indexOf(e,n+2);if(i===-1)throw this.raise(W.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,Ql.lastIndex=n+2;Ql.test(this.input)&&Ql.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Ql.lastIndex;if(this.isLookahead)return;let s={type:"CommentBlock",value:this.input.slice(n+2,i),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(i+e.length),loc:new Jl(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(s),s}skipLineComment(e){let r=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!ca(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let s=this.state.pos,a={type:"CommentLine",value:this.input.slice(r+e,s),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(s),loc:new Jl(n,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(a),a}skipSpace(){let e=this.state.pos,r=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let i=this.skipBlockComment("*/");i!==void 0&&(this.addComment(i),r?.push(i));break}case 47:{let i=this.skipLineComment(2);i!==void 0&&(this.addComment(i),r?.push(i));break}default:break e}break;default:if(pO(n))++this.state.pos;else if(n===45&&!this.inModule&&this.optionFlags&8192){let i=this.state.pos;if(this.input.charCodeAt(i+1)===45&&this.input.charCodeAt(i+2)===62&&(e===0||this.state.lineStart>e)){let s=this.skipLineComment(3);s!==void 0&&(this.addComment(s),r?.push(s))}else break e}else if(n===60&&!this.inModule&&this.optionFlags&8192){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let s=this.skipLineComment(4);s!==void 0&&(this.addComment(s),r?.push(s))}else break e}else break e}}if(r?.length>0){let n=this.state.pos,i={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(e,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=e,this.state.value=r,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,r=this.codePointAtPos(e);if(r>=48&&r<=57)throw this.raise(W.UnexpectedDigitAfterHash,this.state.curPosition());Sn(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 e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===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 e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!ca(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let n=this.input.slice(r+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let r=e===42?55:54,n=1,i=this.input.charCodeAt(this.state.pos+1);e===42&&i===42&&(n++,i=this.input.charCodeAt(this.state.pos+2),r=57),i===61&&!this.state.inType&&(n++,r=e===37?33:30),this.finishOp(r,n)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124&&r===62){this.finishOp(39,2);return}if(r===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===62){let n=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+n)===61){this.finishOp(30,n+1);return}this.finishOp(52,n);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);e===63?r===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){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:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++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(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);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(Sn(e)){this.readWord(e);return}}throw this.raise(W.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,r){let n=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(e,n)}readRegexp(){let e=this.state.startLoc,r=this.state.start+1,n,i,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(W.UnterminatedRegExp,Gr(e,1));let l=this.input.charCodeAt(s);if(ca(l))throw this.raise(W.UnterminatedRegExp,Gr(e,1));if(n)n=!1;else{if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;n=l===92}}let a=this.input.slice(r,s);++s;let o="",u=()=>Gr(e,s+2-r);for(;s<this.length;){let l=this.codePointAtPos(s),c=String.fromCharCode(l);if(bO.has(l))l===118?o.includes("u")&&this.raise(W.IncompatibleRegExpUVFlags,u()):l===117&&o.includes("v")&&this.raise(W.IncompatibleRegExpUVFlags,u()),o.includes(c)&&this.raise(W.DuplicateRegExpFlags,u());else if(hs(l)||l===92)this.raise(W.MalformedRegExpFlags,u());else break;++s,o+=c}this.state.pos=s,this.finishToken(138,{pattern:a,flags:o})}readInt(e,r,n=!1,i=!0){let{n:s,pos:a}=mE(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,r,n,i,this.errorHandlers_readInt,!1);return this.state.pos=a,s}readRadixNumber(e){let r=this.state.pos,n=this.state.curPosition(),i=!1;this.state.pos+=2;let s=this.readInt(e);s==null&&this.raise(W.InvalidDigit,Gr(n,2),{radix:e});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,i=!0;else if(a===109)throw this.raise(W.InvalidDecimal,n);if(Sn(this.codePointAtPos(this.state.pos)))throw this.raise(W.NumberIdentifier,this.state.curPosition());if(i){let o=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o);return}this.finishToken(135,s)}readNumber(e){let r=this.state.pos,n=this.state.curPosition(),i=!1,s=!1,a=!1;!e&&this.readInt(10)===null&&this.raise(W.InvalidNumber,this.state.curPosition());let o=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(o){let p=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(W.StrictOctalLiteral,n),!this.state.strict){let f=p.indexOf("_");f>0&&this.raise(W.ZeroDigitNumericSeparator,Gr(n,f))}a=o&&!/[89]/.test(p)}let u=this.input.charCodeAt(this.state.pos);if(u===46&&!a&&(++this.state.pos,this.readInt(10),i=!0,u=this.input.charCodeAt(this.state.pos)),(u===69||u===101)&&!a&&(u=this.input.charCodeAt(++this.state.pos),(u===43||u===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(W.InvalidOrMissingExponent,n),i=!0,u=this.input.charCodeAt(this.state.pos)),u===110&&((i||o)&&this.raise(W.InvalidBigIntLiteral,n),++this.state.pos,s=!0),Sn(this.codePointAtPos(this.state.pos)))throw this.raise(W.NumberIdentifier,this.state.curPosition());let l=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(s){this.finishToken(136,l);return}let c=a?parseInt(l,8):parseFloat(l);this.finishToken(135,c)}readCodePoint(e){let{code:r,pos:n}=gE(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,r}readString(e){let{str:r,pos:n,curLine:i,lineStart:s}=dE(e===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=s,this.state.curLine=i,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:r,firstInvalidLoc:n,pos:i,curLine:s,lineStart:a}=dE("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=s,n&&(this.state.firstInvalidTemplateEscapePos=new _i(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(n.pos))),this.input.codePointAt(i)===96?this.finishToken(24,n?null:e+r+"`"):(this.state.pos++,this.finishToken(25,n?null:e+r+"${"))}recordStrictModeErrors(e,r){let n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,r):this.state.strictErrors.set(n,[e,r])}readWord1(e){this.state.containsEsc=!1;let r="",n=this.state.pos,i=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let s=this.codePointAtPos(this.state.pos);if(hs(s))this.state.pos+=s<=65535?1:2;else if(s===92){this.state.containsEsc=!0,r+=this.input.slice(i,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===n?Sn:hs;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(W.MissingUnicodeEscape,this.state.curPosition()),i=this.state.pos-1;continue}++this.state.pos;let u=this.readCodePoint(!0);u!==null&&(o(u)||this.raise(W.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(u)),i=this.state.pos}else break}return r+this.input.slice(i,this.state.pos)}readWord(e){let r=this.readWord1(e),n=Dd.get(r);n!==void 0?this.finishToken(n,Ni(n)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:e}=this.state;Fd(e)&&this.state.containsEsc&&this.raise(W.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Ni(e)})}raise(e,r,n={}){let i=r instanceof _i?r:r.loc.start,s=e(i,n);if(!(this.optionFlags&2048))throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(e,r,n={}){let i=r instanceof _i?r:r.loc.start,s=i.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let u=a[o];if(u.loc.index===s)return a[o]=e(i,n);if(u.loc.index<s)break}return this.raise(e,r,n)}updateContext(e){}unexpected(e,r){throw this.raise(W.UnexpectedToken,e??this.state.startLoc,{expected:r?Ni(r):null})}expectPlugin(e,r){if(this.hasPlugin(e))return!0;throw this.raise(W.MissingPlugin,r??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(r=>this.hasPlugin(r)))throw this.raise(W.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(r,n,i)=>{this.raise(e,Io(r,n,i))}}errorHandlers_readInt={invalidDigit:(e,r,n,i)=>this.optionFlags&2048?(this.raise(W.InvalidDigit,Io(e,r,n),{radix:i}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(W.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(W.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(W.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(W.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,r,n)=>{this.recordStrictModeErrors(W.StrictNumericEscape,Io(e,r,n))},unterminated:(e,r,n)=>{throw this.raise(W.UnterminatedString,Io(e-1,r,n))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(W.StrictNumericEscape),unterminated:(e,r,n)=>{throw this.raise(W.UnterminatedTemplate,Io(e,r,n))}})},TO=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},wO=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new TO)}exit(){let e=this.stack.pop(),r=this.current();for(let[n,i]of Array.from(e.undefinedPrivateNames))r?r.undefinedPrivateNames.has(n)||r.undefinedPrivateNames.set(n,i):this.parser.raise(W.InvalidPrivateFieldResolution,i,{identifierName:n})}declarePrivateName(e,r,n){let{privateNames:i,loneAccessors:s,undefinedPrivateNames:a}=this.current(),o=i.has(e);if(r&3){let u=o&&s.get(e);if(u){let l=u&4,c=r&4,p=u&3,f=r&3;o=p===f||l!==c,o||s.delete(e)}else o||s.set(e,r)}o&&this.parser.raise(W.PrivateNameRedeclaration,n,{identifierName:e}),i.add(e),a.delete(e)}usePrivateName(e,r){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,r):this.parser.raise(W.InvalidPrivateFieldResolution,r,{identifierName:e})}},tc=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},yE=class extends tc{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,r){let n=r.index;this.declarationErrors.set(n,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},SO=class{parser;stack=[new tc];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,r){let n=r.loc.start,{stack:i}=this,s=i.length-1,a=i[s];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,n);else return;a=i[--s]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,r){let{stack:n}=this,i=n[n.length-1],s=r.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(e,s);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(e,s);else return}recordAsyncArrowParametersError(e){let{stack:r}=this,n=r.length-1,i=r[n];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(W.AwaitBindingIdentifier,e),i=r[--n]}validateAsPattern(){let{stack:e}=this,r=e[e.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,i])=>{this.parser.raise(n,i);let s=e.length-2,a=e[s];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(i.index),a=e[--s]})}};function kO(){return new tc(3)}function PO(){return new yE(1)}function _O(){return new yE(2)}function DE(){return new tc}var BO=class extends FO{addExtra(e,r,n,i=!0){if(!e)return;let{extra:s}=e;s==null&&(s={},e.extra=s),i?s[r]=n:Object.defineProperty(s,r,{enumerable:i,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,r){if(this.input.startsWith(r,e)){let n=this.input.charCodeAt(e+r.length);return!(hs(n)||(n&64512)===55296)}return!1}isLookaheadContextual(e){let r=this.nextTokenStart();return this.isUnparsedContextual(r,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,r){if(!this.eatContextual(e)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return pE(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return pE(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(W.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,r){this.eat(e)||this.unexpected(r,e)}tryParse(e,r=this.state.clone()){let n={node:null};try{let i=e((s=null)=>{throw n.node=s,n});if(this.state.errors.length>r.errors.length){let s=this.state;return this.state=r,this.state.tokensLength=s.tokensLength,{node:i,error:s.errors[r.errors.length],thrown:!1,aborted:!1,failState:s}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let s=this.state;if(this.state=r,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:s};if(i===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:s};throw i}}checkExpressionErrors(e,r){if(!e)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:i,privateKeyLoc:s,optionalParametersLoc:a,voidPatternLoc:o}=e,u=!!n||!!i||!!a||!!s||!!o;if(!r)return u;n!=null&&this.raise(W.InvalidCoverInitializedName,n),i!=null&&this.raise(W.DuplicateProto,i),s!=null&&this.raise(W.UnexpectedPrivateField,s),a!=null&&this.unexpected(a),o!=null&&this.raise(W.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return tE(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=e;let s=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let o=this.prodParam;this.prodParam=new mO;let u=this.classScope;this.classScope=new wO(this);let l=this.expressionScope;return this.expressionScope=new SO(this),()=>{this.state.labels=r,this.exportedIdentifiers=n,this.inModule=i,this.scope=s,this.prodParam=o,this.classScope=u,this.expressionScope=l}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let n=r?514:1;this.optionFlags&4&&(n|=512),this.optionFlags&16&&(n|=48),this.scope.enter(n)}checkDestructuringPrivate(e){let{privateKeyLoc:r}=e;r!==null&&this.expectPlugin("destructuringPrivate",r)}},rc=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},Id=class{constructor(e,r,n){this.start=r,this.end=0,this.loc=new Jl(n),e?.optionFlags&128&&(this.range=[r,0]),e?.filename&&(this.loc.filename=e.filename)}type=""},EE=Id.prototype,NO=class extends BO{startNode(){let e=this.state.startLoc;return new Id(this,e.index,e)}startNodeAt(e){return new Id(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,r){return this.finishNodeAt(e,r,this.state.lastTokEndLoc)}finishNodeAt(e,r,n){return e.type=r,e.end=n.index,e.loc.end=n,this.optionFlags&128&&(e.range[1]=n.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,r){e.start=r.index,e.loc.start=r,this.optionFlags&128&&(e.range[0]=r.index)}resetEndLocation(e,r=this.state.lastTokEndLoc){e.end=r.index,e.loc.end=r,this.optionFlags&128&&(e.range[1]=r.index)}resetStartLocationFromNode(e,r){this.resetStartLocation(e,r.loc.start)}castNodeTo(e,r){return e.type=r,e}cloneIdentifier(e){let{type:r,start:n,end:i,loc:s,range:a,name:o}=e,u=Object.create(EE);return u.type=r,u.start=n,u.end=i,u.loc=s,u.range=a,u.name=o,e.extra&&(u.extra=e.extra),u}cloneStringLiteral(e){let{type:r,start:n,end:i,loc:s,range:a,extra:o}=e,u=Object.create(EE);return u.type=r,u.start=n,u.end=i,u.loc=s,u.range=a,u.extra=o,u.value=e.value,u}},Od=t=>t.type==="ParenthesizedExpression"?Od(t.expression):t,$O=class extends NO{toAssignable(e,r=!1){let n;switch((e.type==="ParenthesizedExpression"||e.extra?.parenthesized)&&(n=Od(e),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(W.InvalidParenthesizedAssignment,e):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(W.InvalidParenthesizedAssignment,e):this.raise(W.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let i=0,s=e.properties.length,a=s-1;i<s;i++){let o=e.properties[i],u=i===a;this.toAssignableObjectExpressionProp(o,u,r),u&&o.type==="RestElement"&&e.extra?.trailingCommaLoc&&this.raise(W.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:i,value:s}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(s,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,r);break;case"AssignmentExpression":e.operator!=="="&&this.raise(W.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern"&&this.raise(W.VoidPatternInitializer,e.left),this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(e,r,n){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?W.PatternHasAccessor:W.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");let i=e.argument;this.checkToRestConversion(i,!1),this.toAssignable(i,n),r||this.raise(W.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,r,n){let i=e.length-1;for(let s=0;s<=i;s++){let a=e[s];a&&(this.toAssignableListItem(e,s,n),a.type==="RestElement"&&(s<i?this.raise(W.RestTrailingComma,a):r&&this.raise(W.RestTrailingComma,r)))}}toAssignableListItem(e,r,n){let i=e[r];if(i.type==="SpreadElement"){this.castNodeTo(i,"RestElement");let s=i.argument;this.checkToRestConversion(s,!0),this.toAssignable(s,n)}else this.toAssignable(i,n)}isAssignable(e,r){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let n=e.properties.length-1;return e.properties.every((i,s)=>i.type!=="ObjectMethod"&&(s===n||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(e,r){return e}toReferencedListDeep(e,r){this.toReferencedList(e,r);for(let n of e)n?.type==="ArrayExpression"&&this.toReferencedListDeep(n.elements)}parseSpread(e){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(W.UnexpectedVoidPattern,r),e.argument=r,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,r,n){let i=n&1,s=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),i&&this.match(12))s.push(null);else{if(this.eat(e))break;if(this.match(21)){let o=this.parseRestBinding();if(n&2&&(o=this.parseFunctionParamType(o)),s.push(o),!this.checkCommaAfterRest(r)){this.expect(e);break}}else{let o=[];if(n&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(W.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());s.push(this.parseBindingElement(n,o))}}return s}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(W.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:r}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return e===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(e,r){let n=this.parseMaybeDefault();return e&2&&this.parseFunctionParamType(n),r.length&&(n.decorators=r,this.resetStartLocationFromNode(n,r[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(e){return e}parseMaybeDefault(e,r){if(e??(e=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let n=this.startNodeAt(e);return r.type==="VoidPattern"&&this.raise(W.VoidPatternInitializer,r),n.left=r,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,r,n,i){switch(e){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(e){return e.type==="OptionalMemberExpression"}checkLVal(e,r,n=64,i=!1,s=!1,a=!1,o=!1){let u=e.type;if(this.isObjectMethod(e))return;let l=this.isOptionalMemberExpression(e);if(l||u==="MemberExpression"){l&&(this.expectPlugin("optionalChainingAssign",e.loc.start),r.type!=="AssignmentExpression"&&this.raise(W.InvalidLhsOptionalChaining,e,{ancestor:r})),n!==64&&this.raise(W.InvalidPropertyBindingPattern,e);return}if(u==="Identifier"){this.checkIdentifier(e,n,s);let{name:y}=e;i&&(i.has(y)?this.raise(W.ParamDupe,e):i.add(y));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(W.VoidPatternCatchClauseParam,e);let c=Od(e);o||(o=c.type==="CallExpression"&&(c.callee.type==="Import"||c.callee.type==="Super"));let p=this.isValidLVal(u,o,!(a||e.extra?.parenthesized)&&r.type==="AssignmentExpression",n);if(p===!0)return;if(p===!1){let y=n===64?W.InvalidLhs:W.InvalidLhsBinding;this.raise(y,e,{ancestor:r});return}let f,h;typeof p=="string"?(f=p,h=u==="ParenthesizedExpression"):[f,h]=p;let m=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,g=e[f];if(Array.isArray(g))for(let y of g)y&&this.checkLVal(y,m,n,i,s,h,!0);else g&&this.checkLVal(g,m,n,i,s,h,o)}checkIdentifier(e,r,n=!1){this.state.strict&&(n?lE(e.name,this.inModule):uE(e.name))&&(r===64?this.raise(W.StrictEvalArguments,e,{referenceName:e.name}):this.raise(W.StrictEvalArgumentsBinding,e,{bindingName:e.name})),r&8192&&e.name==="let"&&this.raise(W.LetInLexicalBinding,e),r&64||this.declareNameFromIdentifier(e,r)}declareNameFromIdentifier(e,r){this.scope.declareName(e.name,r,e.loc.start)}checkToRestConversion(e,r){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(W.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?W.RestTrailingComma:W.ElementAfterRest,this.state.startLoc),!0):!1}},Ld=/in(?:stanceof)?|as|satisfies/y;function IO(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function xE(t){if(!t)throw new Error("Assert fail")}var De=wn`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' 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:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>`Accessibility modifier already seen: '${t}'.`,DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' 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:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,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:t})=>`'${t}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:t=>`'${t}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:t=>`'${t}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[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:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",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:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,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:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`,UsingDeclarationInAmbientContext:t=>`'${t}' declarations are not allowed in ambient contexts.`});function OO(t){switch(t){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 CE(t){return t==="private"||t==="public"||t==="protected"}function LO(t){return t==="in"||t==="out"}function Md(t){if(t.extra?.parenthesized)return!1;switch(t.type){case"Identifier":return!0;case"MemberExpression":return!t.computed&&Md(t.object);case"TSInstantiationExpression":return Md(t.expression);default:return!1}}var MO=t=>class extends t{getScopeHandler(){return dO}tsIsIdentifier(){return et(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(e,r,n){if(!et(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(e.includes(i)){if(n&&this.match(106)||r&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:r,stopOnStartOfClassStaticBlock:n,errorTemplate:i=De.InvalidModifierOnTypeMember},s){let a=(u,l,c,p)=>{l===c&&s[p]&&this.raise(De.InvalidModifiersOrder,u,{orderedModifiers:[c,p]})},o=(u,l,c,p)=>{(s[c]&&l===p||s[p]&&l===c)&&this.raise(De.IncompatibleModifiers,u,{modifiers:[c,p]})};for(;;){let{startLoc:u}=this.state,l=this.tsParseModifier(e.concat(r??[]),n,s.static);if(!l)break;CE(l)?s.accessibility?this.raise(De.DuplicateAccessibilityModifier,u,{modifier:l}):(a(u,l,l,"override"),a(u,l,l,"static"),a(u,l,l,"readonly"),s.accessibility=l):LO(l)?(s[l]&&this.raise(De.DuplicateModifier,u,{modifier:l}),s[l]=!0,a(u,l,"in","out")):(Object.prototype.hasOwnProperty.call(s,l)?this.raise(De.DuplicateModifier,u,{modifier:l}):(a(u,l,"static","readonly"),a(u,l,"static","override"),a(u,l,"override","readonly"),a(u,l,"abstract","override"),o(u,l,"declare","override"),o(u,l,"static","abstract")),s[l]=!0),r?.includes(l)&&this.raise(i,u,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,r){let n=[];for(;!this.tsIsListTerminator(e);)n.push(r());return n}tsParseDelimitedList(e,r,n){return IO(this.tsParseDelimitedListWorker(e,r,!0,n))}tsParseDelimitedListWorker(e,r,n,i){let s=[],a=-1;for(;!this.tsIsListTerminator(e);){a=-1;let o=r();if(o==null)return;if(s.push(o),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;n&&this.expect(12);return}return i&&(i.value=a),s}tsParseBracketedList(e,r,n,i,s){i||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(e,r,s);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.tsParseLiteralTypeNode():(this.raise(De.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=this.tsParseNonConditionalType()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){let e=this.startNode();this.expect(5);let r=this.startNode();return this.isContextual(76)?(r.method=!1,r.key=this.parseIdentifier(!0),r.computed=!1,r.shorthand=!1):this.unexpected(null,76),this.expect(14),r.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(r)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),r=[];for(this.expect(5);!this.match(8);){let n=this.state.type;et(n)||n===134?r.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=r,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let r;if(e&1&&this.match(78))if(e&2)r=this.parseIdentifier(!0);else{let n=this.startNode();this.next(),r=this.finishNode(n,"ThisExpression")}else r=this.parseIdentifier(!!(e&1));for(;this.eat(16);){let n=this.startNodeAtNode(r);n.left=r,n.right=this.parseIdentifier(!!(e&1)),r=this.finishNode(n,"TSQualifiedName")}return r}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let r=this.startNodeAtNode(e);return r.parameterName=e,r.typeAnnotation=this.tsParseTypeAnnotation(!1),r.asserts=!1,this.finishNode(r,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:De.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:De.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:De.InvalidModifierOnTypeParameter});tsParseTypeParameter(e){let r=this.startNode();return e(r),r.name=this.tsParseTypeParameterName(),r.constraint=this.tsEatThenParseType(81),r.default=this.tsEatThenParseType(29),this.finishNode(r,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let r=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return r.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),r.params.length===0&&this.raise(De.EmptyTypeParameters,r),n.value!==-1&&this.addExtra(r,"trailingComma",n.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(e,r){let n=e===19,i="params",s="returnType";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),r[i]=this.tsParseBindingListForSignature(),n?r[s]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(r[s]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let r of e){let{type:n}=r;(n==="AssignmentPattern"||n==="TSParameterProperty")&&this.raise(De.UnsupportedSignatureParameterKind,r,{type:n})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,r){return this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon(),this.finishNode(r,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),et(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let r=this.parseIdentifier();r.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(r),this.expect(3),e.parameters=[r];let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,r){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){r&&this.raise(De.ReadonlyForMethodSignature,e);let n=e;n.kind&&this.match(47)&&this.raise(De.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let i="params",s="returnType";if(n.kind==="get")n[i].length>0&&(this.raise(W.BadGetterArity,this.state.curPosition()),this.isThisParam(n[i][0])&&this.raise(De.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[i].length!==1)this.raise(W.BadSetterArity,this.state.curPosition());else{let a=n[i][0];this.isThisParam(a)&&this.raise(De.AccessorCannotDeclareThisParameter,this.state.curPosition()),a.type==="Identifier"&&a.optional&&this.raise(De.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),a.type==="RestElement"&&this.raise(De.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[s]&&this.raise(De.SetAccessorCannotHaveReturnType,n[s])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=e;r&&(n.readonly=!0);let i=this.tsTryParseTypeAnnotation();return i&&(n.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){let n=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.key=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let r=!1;return e.elementTypes.forEach(n=>{let{type:i}=n;r&&i!=="TSRestType"&&i!=="TSOptionalType"&&!(i==="TSNamedTupleMember"&&n.optional)&&this.raise(De.OptionalTypeBeforeRequired,n),r||(r=i==="TSNamedTupleMember"&&n.optional||i==="TSOptionalType")}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e=this.state.startLoc,r=this.eat(21),{startLoc:n}=this.state,i,s,a,o,u=un(this.state.type)?this.lookaheadCharCode():null;if(u===58)i=!0,a=!1,s=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(u===63){a=!0;let l=this.state.value,c=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,s=this.createIdentifier(this.startNodeAt(n),l),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=c,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),i=this.eat(14);if(i){let l;s?(l=this.startNodeAt(n),l.optional=a,l.label=s,l.elementType=o,this.eat(17)&&(l.optional=!0,this.raise(De.TupleOptionalAfterType,this.state.lastTokStartLoc))):(l=this.startNodeAt(n),l.optional=a,this.raise(De.InvalidTupleMemberLabel,o),l.label=o,l.elementType=this.tsParseType()),o=this.finishNode(l,"TSNamedTupleMember")}else if(a){let l=this.startNodeAt(n);l.typeAnnotation=o,o=this.finishNode(l,"TSOptionalType")}if(r){let l=this.startNodeAt(e);l.typeAnnotation=o,o=this.finishNode(l,"TSRestType")}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,r){let n=this.startNode();return e==="TSConstructorType"&&(n.abstract=!!r,r&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{let e=this.state.startLoc,r=this.parseTemplateElement(!1),n=[r];if(r.tail){let i=this.startNodeAt(e),s=this.startNodeAt(e);return s.expressions=[],s.quasis=n,i.literal=this.finishNode(s,"TemplateLiteral"),this.finishNode(i,"TSLiteralType")}else{let i=[];for(;!r.tail;)i.push(this.tsParseType()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(!1));let s=this.startNodeAt(e);return s.types=i,s.quasis=n,this.finishNode(s,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),r=this.lookahead();return r.type!==135&&r.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:if(!(this.optionFlags&1024)){let e=this.state.startLoc;this.next();let r=this.tsParseType();return this.expect(11),this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),r}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(et(e)||e===88||e===84){let r=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":OO(this.state.value);if(r!==void 0&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,r)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(e);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType")}else{let n=this.startNodeAt(e);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let e=this.startNode(),r=this.state.value;return this.next(),e.operator=r,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),r==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(De.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return z9(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,r,n){let i=this.startNode(),s=this.eat(n),a=[];do a.push(r());while(this.eat(n));return a.length===1&&!s?a[0]:(i.types=a,this.finishNode(i,e))}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(et(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,r=e.length;try{return this.parseObjectLike(8,!0),e.length===r}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,r=e.length;try{return super.parseBindingList(3,93,1),e.length===r}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let r=this.startNode();this.expect(e);let n=this.startNode(),i=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(i&&this.match(78)){let o=this.tsParseThisTypeOrThisTypePredicate();return o.type==="TSThisType"?(n.parameterName=o,n.asserts=!0,n.typeAnnotation=null,o=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(o,n),o.asserts=!0),r.typeAnnotation=o,this.finishNode(r,"TSTypeAnnotation")}let s=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!s)return i?(n.parameterName=this.parseIdentifier(),n.asserts=i,n.typeAnnotation=null,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,r);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=s,n.typeAnnotation=a,n.asserts=i,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!et(this.state.type)&&!this.match(78)?!1:(e&&this.raise(W.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,r=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),r.typeAnnotation=this.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}tsParseType(){xE(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let r=this.startNodeAtNode(e);return r.checkType=e,r.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(r,"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(De.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let r=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let i=super.parseExprSubscripts();Md(i)||this.raise(De.InvalidHeritageClauseType,i.loc.start,{token:e});let s=e==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(i.type==="TSInstantiationExpression")return i.type=s,i;let a=this.startNodeAtNode(i);return a.expression=i,(this.match(47)||this.match(51))&&(a.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(a,s)}});return n.length||this.raise(De.EmptyHeritageClauseType,r,{token:e}),n}tsParseInterfaceDeclaration(e,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),r.declare&&(e.declare=!0),et(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(De.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let r=this.startNode();return this.next(),this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()!==ut.brace){let r=this.state.context;this.state.context=[r[0]];try{return e()}finally{this.state.context=r}}else return e()}tsInType(e){let r=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=r}}tsInDisallowConditionalTypesContext(e){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=r}}tsInAllowConditionalTypesContext(e){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=r}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,r={}){return r.const&&(e.const=!0),r.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),e.body=this.tsParseEnumBody(),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){let e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,r=!1){return e.id=this.tsParseEntityName(1),e.id.type==="Identifier"&&this.checkIdentifier(e.id,1024),this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,r,n){e.id=r||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let i=this.tsParseModuleReference();return e.importKind==="type"&&i.type!=="TSExternalModuleReference"&&this.raise(De.ImportAliasHasImportType,i),e.moduleReference=i,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let r=this.state.clone(),n=e();return this.state=r,n}tsTryParseAndCatch(e){let r=this.tryParse(n=>e()||n());if(!(r.aborted||!r.node))return r.error&&(this.state=r.failState),r.node}tsTryParse(e){let r=this.state.clone(),n=e();if(n!==void 0&&n!==!1)return n;this.state=r}tsTryParseDeclare(e){if(this.isLineTerminator())return;let r=this.state.type;return this.tsInAmbientContext(()=>{switch(r){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(e.declare=!0,this.parseVarStatement(e,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(De.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(De.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{let n=this.tsParseInterfaceDeclaration(e,{declare:!0});if(n)return n}default:if(et(r))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,r,n,i){switch(r){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||et(this.state.type)))return this.tsParseAbstractDeclaration(e,i);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(et(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(n)&&et(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(n)&&et(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let i=this.startNodeAt(e);return i.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(i),i.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),i});if(this.state.maybeInArrowParameters=r,!!n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0?this.raise(De.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===ut.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return V9(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(e,r){let n=r.length?r[0].loc.start:this.state.startLoc,i={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},i);let s=i.accessibility,a=i.override,o=i.readonly;!(e&4)&&(s||o||a)&&this.raise(De.UnexpectedParameterModifier,n);let u=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(u);let l=this.parseMaybeDefault(u.loc.start,u);if(s||o||a){let c=this.startNodeAt(n);return r.length&&(c.decorators=r),s&&(c.accessibility=s),o&&(c.readonly=o),a&&(c.override=a),l.type!=="Identifier"&&l.type!=="AssignmentPattern"&&this.raise(De.UnsupportedParameterPropertyKind,c),c.parameter=l,this.finishNode(c,"TSParameterProperty")}return r.length&&(u.decorators=r),l}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let r of e.params)r.type!=="Identifier"&&r.optional&&!this.state.isAmbientContext&&this.raise(De.PatternIsOptional,r)}setArrowFunctionParameters(e,r,n){super.setArrowFunctionParameters(e,r,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,r,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let i=r==="FunctionDeclaration"?"TSDeclareFunction":r==="ClassMethod"||r==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return i&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,i):i==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(De.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,i,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,r,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(r=>{r?.type==="TSTypeCastExpression"&&this.raise(De.UnexpectedTypeAnnotation,r.typeAnnotation)})}toReferencedList(e,r){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,r,n){let i=super.parseArrayLike(e,r,n);return i.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,r,n,i){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let a=this.startNodeAt(r);return a.expression=e,this.finishNode(a,"TSNonNullExpression")}let s=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return i.stop=!0,e;i.optionalChainMember=s=!0,this.next()}if(this.match(47)||this.match(51)){let a,o=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){let p=this.tsTryParseGenericAsyncArrowFunction(r);if(p)return i.stop=!0,p}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(s&&!this.match(10)){a=this.state.curPosition();return}if(Td(this.state.type)){let p=super.parseTaggedTemplateExpression(e,r,i);return p.typeArguments=u,p}if(!n&&this.eat(10)){let p=this.startNodeAt(r);return p.callee=e,p.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(p.arguments),p.typeArguments=u,i.optionalChainMember&&(p.optional=s),this.finishCallExpression(p,i.optionalChainMember)}let l=this.state.type;if(l===48||l===52||l!==10&&$o(l)&&!this.hasPrecedingLineBreak())return;let c=this.startNodeAt(r);return c.expression=e,c.typeArguments=u,this.finishNode(c,"TSInstantiationExpression")});if(a&&this.unexpected(a,10),o)return o.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(De.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(o.expression=super.stopParseSubscript(e,i))),o}return super.parseSubscript(e,r,n,i)}parseNewCallee(e){super.parseNewCallee(e);let{callee:r}=e;r.type==="TSInstantiationExpression"&&!r.extra?.parenthesized&&(e.typeArguments=r.typeArguments,e.callee=r.expression)}parseExprOp(e,r,n){let i;if(Xl(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(i=this.isContextual(120)))){let s=this.startNodeAt(r);return s.expression=e,s.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(i&&this.raise(W.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(s,i?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(s,r,n)}return super.parseExprOp(e,r,n)}checkReservedWord(e,r,n,i){this.state.isAmbientContext||super.checkReservedWord(e,r,n,i)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(De.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let r=this.lookaheadCharCode();return e?r===123||r===42:r!==61}return!e&&this.isContextual(87)}applyImportPhase(e,r,n,i){super.applyImportPhase(e,r,n,i),r?e.exportKind=n==="type"?"type":"value":e.importKind=n==="type"||n==="typeof"?n:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let r;if(et(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,n);r=super.parseImportSpecifiersAndAfter(e,n)}else r=super.parseImport(e);return r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(De.TypeImportCannotSpecifyDefaultAndNamed,r),r}parseExport(e,r){if(this.match(83)){let n=this.startNode();this.next();let i=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(n,!1):n.importKind="value";let s=this.tsParseImportEqualsDeclaration(n,i,!0);return e.attributes=[],e.declaration=s,e.exportKind="value",e.source=null,e.specifiers=[],this.finishNode(e,"ExportNamedDeclaration")}else if(this.eat(29)){let n=e;return n.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExportAssignment")}else if(this.eatContextual(93)){let n=e;return this.expectContextual(128),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}else return super.parseExport(e,r)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,r,n=!1){let{isAmbientContext:i}=this.state,s=super.parseVarStatement(e,r,n||i);if(!i)return s;if(!e.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(De.UsingDeclarationInAmbientContext,e,r),s;for(let{id:a,init:o}of s.declarations)o&&(r==="var"||r==="let"||a.typeAnnotation?this.raise(De.InitializerNotAllowedInAmbientContext,o):jO(o,this.hasPlugin("estree"))||this.raise(De.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,o));return s}parseStatementContent(e,r){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let n=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(n,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let n=this.state.type,i=this.startNode();this.next();let s=n===125?this.tsTryParseDeclare(i):this.tsParseAbstractDeclaration(i,r);return s?(n===125&&(s.declare=!0),s):(i.expression=this.createIdentifier(this.startNodeAt(i.loc.start),n===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 n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,127,!1,r)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,128,!1,r)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(n)}break}}return super.parseStatementContent(e,r)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,r){return r.some(n=>CE(n)?e.accessibility===n:!!e[n])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,r,n){let i=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:i,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:De.InvalidModifierOnTypeParameterPositions},r);let s=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,i)&&this.raise(De.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,r)):this.parseClassMemberWithIsStatic(e,r,n,!!r.static)};r.declare?this.tsInAmbientContext(s):s()}parseClassMemberWithIsStatic(e,r,n,i){let s=this.tsTryParseIndexSignature(r);if(s){e.body.push(s),r.abstract&&this.raise(De.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(De.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(De.IndexSignatureHasDeclare,r),r.override&&this.raise(De.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(De.NonAbstractClassHasAbstractMethod,r),r.override&&(n.hadSuperClass||this.raise(De.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(e,r,n,i)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(De.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(De.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,r,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let i=this.lookaheadCharCode();if(i===44||i===61||i===58||i===41)return this.setOptionalParametersError(n),e}return super.parseConditional(e,r,n)}parseParenItem(e,r){let n=super.parseParenItem(e,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let i=this.startNodeAt(r);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let r=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(De.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let i=et(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return i?((i.type==="TSInterfaceDeclaration"||i.type==="TSTypeAliasDeclaration"||n)&&(e.exportKind="type"),n&&i.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(i,r),i.declare=!0),i):null}parseClassId(e,r,n,i){if((!r||n)&&this.isContextual(113))return;super.parseClassId(e,r,n,e.declare?1024:8331);let s=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);s&&(e.typeParameters=s)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let r=this.tsTryParseTypeAnnotation();r&&(e.typeAnnotation=r)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(De.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:r}=e;this.raise(De.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:r.type==="Identifier"&&!e.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(De.PrivateElementHasAbstract,e),e.accessibility&&this.raise(De.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(De.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,r,n,i,s,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&s&&this.raise(De.ConstructorHasTypeParameters,o);let{declare:u=!1,kind:l}=r;u&&(l==="get"||l==="set")&&this.raise(De.DeclareAccessor,r,{kind:l}),o&&(r.typeParameters=o),super.pushClassMethod(e,r,n,i,s,a)}pushClassPrivateMethod(e,r,n,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.pushClassPrivateMethod(e,r,n,i)}declareClassPrivateMethodInScope(e,r){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&e.value.body==null||super.declareClassPrivateMethodInScope(e,r))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,r,n,i,s,a,o){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(e.typeParameters=u),super.parseObjPropValue(e,r,n,i,s,a,o)}parseFunctionParams(e,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,r)}parseVarId(e,r){super.parseVarId(e,r),e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,r){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,r)}parseMaybeAssign(e,r){let n,i,s;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(e,r),n),!i.error)return i.node;let{context:u}=this.state,l=u[u.length-1];(l===ut.j_oTag||l===ut.j_expr)&&u.pop()}if(!i?.error&&!this.match(47))return super.parseMaybeAssign(e,r);(!n||n===this.state)&&(n=this.state.clone());let a,o=this.tryParse(u=>{a=this.tsParseTypeParameters(this.tsParseConstModifier);let l=super.parseMaybeAssign(e,r);if((l.type!=="ArrowFunctionExpression"||l.extra?.parenthesized)&&u(),a?.params.length!==0&&this.resetStartLocationFromNode(l,a),l.typeParameters=a,this.hasPlugin("jsx")&&l.typeParameters.params.length===1&&!l.typeParameters.extra?.trailingComma){let c=l.typeParameters.params[0];c.constraint||this.raise(De.SingleTypeParameterWithoutTrailingComma,Gr(c.loc.end,1),{typeParameterName:c.name.name})}return l},n);if(!o.error&&!o.aborted)return a&&this.reportReservedArrowTypeParam(a),o.node;if(!i&&(xE(!this.hasPlugin("jsx")),s=this.tryParse(()=>super.parseMaybeAssign(e,r),n),!s.error))return s.node;if(i?.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,a&&this.reportReservedArrowTypeParam(a),o.node;if(s?.node)return this.state=s.failState,s.node;throw i?.error||o.error||s?.error}reportReservedArrowTypeParam(e){e.params.length===1&&!e.params[0].constraint&&!e.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(De.ReservedArrowTypeParam,e)}parseMaybeUnary(e,r){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,r)}parseArrow(e){if(this.match(14)){let r=this.tryParse(n=>{let i=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&n(),i});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),e.returnType=r.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.resetEndLocation(e),e}isAssignable(e,r){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,r);case"TSParameterProperty":return!0;default:return super.isAssignable(e,r)}}toAssignable(e,r=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(De.UnexpectedTypeCastInParameter,e):this.raise(De.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,r);break;case"AssignmentExpression":!r&&e.left.type==="TSTypeCastExpression"&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,r)}}toAssignableParenthesizedExpression(e,r){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,r);break;default:super.toAssignable(e,r)}}checkToRestConversion(e,r){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,r)}}isValidLVal(e,r,n,i){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(i!==64||!n)&&["expression",!0];default:return super.isValidLVal(e,r,n,i)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,r){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(e,r);return i.typeArguments=n,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,r)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,r){let n=super.parseMaybeDefault(e,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(De.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===47?(this.state.pos-=1,this.readToken_lt()):e===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,r,n){let i=e[r];i.type==="TSTypeCastExpression"&&(e[r]=this.typeCastToParameter(i)),super.toAssignableListItem(e,r,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(r=>this.isAssignable(r,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let r=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());r&&(e.typeArguments=r)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let r=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?r+1:r}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:r,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=r,this.state.strict=n}}parseClass(e,r,n){let i=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,r,n)}finally{this.state.inAbstractClass=i}}tsParseAbstractDeclaration(e,r){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(r,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(De.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,r,n,i,s,a,o){let u=super.parseMethod(e,r,n,i,s,a,o);if((u.abstract||u.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?u.value:u).body){let{key:l}=u;this.raise(De.AbstractMethodHasImplementation,u,{methodName:l.type==="Identifier"&&!u.computed?l.name:`[${this.input.slice(this.offsetToSourcePos(l.start),this.offsetToSourcePos(l.end))}]`})}return u}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,r,n,i){return!r&&i?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,r,n,i))}parseImportSpecifier(e,r,n,i,s){return!r&&i?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,r,n,i,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,r,n){let i=r?"imported":"local",s=r?"local":"exported",a=e[i],o,u=!1,l=!0,c=a.loc.start;if(this.isContextual(93)){let f=this.parseIdentifier();if(this.isContextual(93)){let h=this.parseIdentifier();un(this.state.type)?(u=!0,a=f,o=r?this.parseIdentifier():this.parseModuleExportName(),l=!1):(o=h,l=!1)}else un(this.state.type)?(l=!1,o=r?this.parseIdentifier():this.parseModuleExportName()):(u=!0,a=f)}else un(this.state.type)&&(u=!0,r?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());u&&n&&this.raise(r?De.TypeModifierIsUsedInTypeImports:De.TypeModifierIsUsedInTypeExports,c),e[i]=a,e[s]=o;let p=r?"importKind":"exportKind";e[p]=u?"type":"value",l&&this.eatContextual(93)&&(e[s]=r?this.parseIdentifier():this.parseModuleExportName()),e[s]||(e[s]=this.cloneIdentifier(e[i])),r&&this.checkIdentifier(e[s],u?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":e.directive??(e.directive=void 0);return;case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":e.decorators??(e.decorators=[]),e.optional??(e.optional=!1),e.typeAnnotation??(e.typeAnnotation=void 0);return;case"TSParameterProperty":e.accessibility??(e.accessibility=void 0),e.decorators??(e.decorators=[]),e.override??(e.override=!1),e.readonly??(e.readonly=!1),e.static??(e.static=!1);return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":e.declare??(e.declare=!1),e.returnType??(e.returnType=void 0),e.typeParameters??(e.typeParameters=void 0);return;case"Property":e.optional??(e.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":e.optional??(e.optional=!1);case"TSIndexSignature":e.accessibility??(e.accessibility=void 0),e.readonly??(e.readonly=!1),e.static??(e.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":e.declare??(e.declare=!1),e.definite??(e.definite=!1),e.readonly??(e.readonly=!1),e.typeAnnotation??(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":e.accessibility??(e.accessibility=void 0),e.decorators??(e.decorators=[]),e.override??(e.override=!1),e.optional??(e.optional=!1);return;case"ClassExpression":e.id??(e.id=null);case"ClassDeclaration":e.abstract??(e.abstract=!1),e.declare??(e.declare=!1),e.decorators??(e.decorators=[]),e.implements??(e.implements=[]),e.superTypeArguments??(e.superTypeArguments=void 0),e.typeParameters??(e.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":e.declare??(e.declare=!1);return;case"VariableDeclarator":e.definite??(e.definite=!1);return;case"TSEnumDeclaration":e.const??(e.const=!1),e.declare??(e.declare=!1);return;case"TSEnumMember":e.computed??(e.computed=!1);return;case"TSImportType":e.qualifier??(e.qualifier=null),e.options??(e.options=null),e.typeArguments??(e.typeArguments=null);return;case"TSInterfaceDeclaration":e.declare??(e.declare=!1),e.extends??(e.extends=[]);return;case"TSMappedType":e.optional??(e.optional=!1),e.readonly??(e.readonly=void 0);return;case"TSModuleDeclaration":e.declare??(e.declare=!1),e.global??(e.global=e.kind==="global");return;case"TSTypeParameter":e.const??(e.const=!1),e.in??(e.in=!1),e.out??(e.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(e,r){if(Sn(e)){if(Ld.lastIndex=r,Ld.test(this.input)){let n=this.codePointAtPos(Ld.lastIndex);if(!hs(n)&&n!==92)return!1}return!0}else return e===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(r,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)||r===34||r===39}};function RO(t){if(t.type!=="MemberExpression")return!1;let{computed:e,property:r}=t;return e&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:bE(t.object)}function jO(t,e){let{type:r}=t;if(t.extra?.parenthesized)return!1;if(e){if(r==="Literal"){let{value:n}=t;if(typeof n=="string"||typeof n=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(AE(t,e)||qO(t,e)||r==="TemplateLiteral"&&t.expressions.length===0||RO(t))}function AE(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function qO(t,e){if(t.type==="UnaryExpression"){let{operator:r,argument:n}=t;if(r==="-"&&AE(n,e))return!0}return!1}function bE(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:bE(t.object)}var vE=wn`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),UO=t=>class extends t{parsePlaceholder(e){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,e)}}finishPlaceholder(e,r){let n=e;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=r,n}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,r,n,i){e!==void 0&&super.checkReservedWord(e,r,n,i)}cloneIdentifier(e){let r=super.cloneIdentifier(e);return r.type==="Placeholder"&&(r.expectedNode=e.expectedNode),r}cloneStringLiteral(e){return e.type==="Placeholder"?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,r,n,i){return e==="Placeholder"||super.isValidLVal(e,r,n,i)}toAssignable(e,r){e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?e.expectedNode="Pattern":super.toAssignable(e,r)}chStartsBindingIdentifier(e,r){if(super.chStartsBindingIdentifier(e,r))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(e,r){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(e,r)}parseExpressionStatement(e,r){if(r.type!=="Placeholder"||r.extra?.parenthesized)return super.parseExpressionStatement(e,r);if(this.match(14)){let i=e;return i.label=this.finishPlaceholder(r,"Identifier"),this.next(),i.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(i,"LabeledStatement")}this.semicolon();let n=e;return n.name=r.name,this.finishPlaceholder(n,"Statement")}parseBlock(e,r,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,r,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,r,n){let i=r?"ClassDeclaration":"ClassExpression";this.next();let s=this.state.strict,a=this.parsePlaceholder("Identifier");if(a)if(this.match(81)||this.match(133)||this.match(5))e.id=a;else{if(n||!r)return e.id=null,e.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(e,i);throw this.raise(vE.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,r,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,s),this.finishNode(e,i)}parseExport(e,r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(e,r);let i=e;if(!this.isContextual(98)&&!this.match(12))return i.specifiers=[],i.source=null,i.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(i,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let s=this.startNode();return s.exported=n,i.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],super.parseExport(i,r)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(Ni(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,r){return e.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(e,r)}checkExport(e){let{specifiers:r}=e;r?.length&&(e.specifiers=r.filter(n=>n.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=r}parseImport(e){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let n=this.startNodeAtNode(r);return n.local=r,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(vE.UnexpectedSpace,this.state.lastTokEndLoc)}},zO=t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,r=this.startNode();if(this.next(),et(this.state.type)){let n=this.parseIdentifierName(),i=this.createIdentifier(r,n);if(this.castNodeTo(i,"V8IntrinsicIdentifier"),this.match(10))return i}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},FE=["fsharp","hack"],TE=["^^","@@","^","%","#"];function VO(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let e=t.get("decorators").decoratorsBeforeExport;if(e!=null&&typeof e!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=t.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){let e=t.get("pipelineOperator").proposal;if(!FE.includes(e)){let r=FE.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(e==="hack"){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let r=t.get("pipelineOperator").topicToken;if(!TE.includes(r)){let n=TE.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}}}if(t.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(t.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!t.has("deprecatedImportAssert")&&t.has("importAttributes")&&t.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(t.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(t.has("asyncDoExpressions")&&!t.has("doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(t.has("optionalChainingAssign")&&t.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(t.has("discardBinding")&&t.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(t.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(t.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var wE={estree:N9,jsx:hO,flow:lO,typescript:MO,v8intrinsic:zO,placeholders:UO},HO=Object.keys(wE),WO=class extends $O{checkProto(e,r,n,i){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return n;let s=e.key;return(s.type==="Identifier"?s.name:s.value)==="__proto__"?r?(this.raise(W.RecordNoProto,s),!0):(n&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=s.loc.start):this.raise(W.DuplicateProto,s)),!0):n}shouldExitDescending(e,r){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(W.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(W.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,r){return e?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(e){let r=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){let i=this.startNodeAt(r);for(i.expressions=[n];this.eat(12);)i.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e,r){return this.disallowInAnd(()=>this.parseMaybeAssign(e,r))}parseMaybeAssignAllowIn(e,r){return this.allowInAnd(()=>this.parseMaybeAssign(e,r))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,r){let n=this.state.startLoc,i=this.isContextual(108);if(i&&this.prodParam.hasYield){this.next();let u=this.parseYield(n);return r&&(u=r.call(this,u,n)),u}let s;e?s=!1:(e=new rc,s=!0);let{type:a}=this.state;(a===10||et(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(r&&(o=r.call(this,o,n)),M9(this.state.type)){let u=this.startNodeAt(n),l=this.state.value;if(u.operator=l,this.match(29)){this.toAssignable(o,!0),u.left=o;let c=n.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=c&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=c&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=c&&(e.voidPatternLoc=null)}else u.left=o;return this.next(),u.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(u,"AssignmentExpression"),void 0,void 0,void 0,void 0,l==="||="||l==="&&="||l==="??="),u}else s&&this.checkExpressionErrors(e,!0);if(i){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?$o(u):$o(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(W.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(e){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprOps(e);return this.shouldExitDescending(i,n)?i:this.parseConditional(i,r,e)}parseConditional(e,r,n){if(this.eat(17)){let i=this.startNodeAt(r);return i.test=e,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(i,n)?i:this.parseExprOp(i,r,-1)}parseExprOp(e,r,n){if(this.isPrivateName(e)){let s=this.getPrivateNameSV(e);(n>=Xl(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(W.PrivateInExpectedIn,e,{identifierName:s}),this.classScope.usePrivateName(s,e.loc.start)}let i=this.state.type;if(j9(i)&&(this.prodParam.hasIn||!this.match(58))){let s=Xl(i);if(s>n){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,r)}let a=this.startNodeAt(r);a.left=e,a.operator=this.state.value;let o=i===41||i===42,u=i===40;u&&(s=Xl(42)),this.next(),a.right=this.parseExprOpRightExpr(i,s);let l=this.finishNode(a,o||u?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(u&&(c===41||c===42)||o&&c===40)throw this.raise(W.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,r,n)}}return e}parseExprOpRightExpr(e,r){switch(this.state.startLoc,e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(e,r)}}parseExprOpBaseRightExpr(e,r){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,H9(e)?r-1:r)}parseHackPipeBody(){let{startLoc:e}=this.state,r=this.parseMaybeAssign();return T9.has(r.type)&&!r.extra?.parenthesized&&this.raise(W.PipeUnparenthesizedBody,e,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(W.PipeTopicUnused,e),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(W.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,r){let n=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();let u=this.parseAwait(n);return r||this.checkExponentialAfterUnary(u),u}let s=this.match(34),a=this.startNode();if(U9(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let u=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&u){let l=a.argument;l.type==="Identifier"?this.raise(W.StrictDelete,a):this.hasPropertyAsPrivateName(l)&&this.raise(W.DeletePrivateField,a)}if(!s)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,s,e);if(i){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?$o(u):$o(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(W.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(e,r,n){if(r){let a=e;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),e}let i=this.state.startLoc,s=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return s;for(;q9(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(i);a.operator=this.state.value,a.prefix=!1,a.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(a,"UpdateExpression"))}return s}parseExprSubscripts(e){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(e);return this.shouldExitDescending(i,n)?i:this.parseSubscripts(i,r)}parseSubscripts(e,r,n){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,r,n,i),i.maybeAsyncArrow=!1;while(!i.stop);return e}parseSubscript(e,r,n,i){let{type:s}=this.state;if(!n&&s===15)return this.parseBind(e,r,n,i);if(Td(s))return this.parseTaggedTemplateExpression(e,r,i);let a=!1;if(s===18){if(n&&(this.raise(W.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,i);i.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,r,i,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(e,r,i,o,a):this.stopParseSubscript(e,i)}}stopParseSubscript(e,r){return r.stop=!0,e}parseMember(e,r,n,i,s){let a=this.startNodeAt(r);return a.object=e,a.computed=i,i?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(W.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=s,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(e,r,n,i){let s=this.startNodeAt(r);return s.object=e,this.next(),s.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,n)}parseCoverCallAndAsyncArrowHead(e,r,n,i){let s=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=e;let{maybeAsyncArrow:u,optionalChainMember:l}=n;u&&(this.expressionScope.enter(_O()),a=new rc),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(e.type!=="Super",o,a);let c=this.finishCallExpression(o,l);return u&&this.shouldParseAsyncArrow()&&!i?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),c)):(u&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=s,c}toReferencedArguments(e,r){this.toReferencedListDeep(e.arguments,r)}parseTaggedTemplateExpression(e,r,n){let i=this.startNodeAt(r);return i.tag=e,i.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(W.OptionalChainingNoTemplate,r),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,r){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(W.ImportCallArity,e);else for(let n of e.arguments)n.type==="SpreadElement"&&this.raise(W.ImportCallSpreadArgument,n);return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,n){let i=[],s=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(s)s=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(11,!1,n,e))}return this.state.inFSharpPipelineDirectBody=a,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,r){return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(e,r.arguments,!0,r.extra?.trailingCommaLoc),r.innerComments&&ha(e,r.innerComments),r.callee.trailingComments&&ha(e,r.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let r,n=null,{type:i}=this.state;switch(i){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(W.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 s=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(s)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);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 s=r.callee=this.parseNoCallExpr();if(s.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(W.UnsupportedBind,s)}case 139:return this.raise(W.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 s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);throw this.unexpected()}case 47:{let s=this.input.codePointAt(this.nextTokenStart());throw Sn(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(et(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let s=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:u}=this.state;if(u===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(et(u))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(u===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return s&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,r){let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=Gr(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(e){let r=this.startNode(),n=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(r,n,e,i)}finishTopicReference(e,r,n,i){if(this.testTopicReferenceConfiguration(n,r,i))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(W.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(W.PipeTopicUnconfiguredToken,r,{token:Ni(i)})}testTopicReferenceConfiguration(e,r,n){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Ni(n)}]);case"smart":return n===27;default:throw this.raise(W.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Zl(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(W.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,r,!0)}parseDo(e,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),e.async=r,this.next();let n=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(W.SuperNotAllowed,e):this.scope.allowSuper||this.raise(W.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(W.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(Gr(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(r,n),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,r,"sent")}return this.parseFunction(e)}parseMetaProperty(e,r,n){e.meta=r;let i=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||i)&&this.raise(W.UnsupportedMetaProperty,e.property,{target:r.name,onlyValidPropertyName:n}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=r?"source":"defer",this.parseImportCall(e)}else{let r=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(W.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,r,"meta")}}parseLiteralAtNode(e,r,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,r)}parseLiteral(e,r){let n=this.startNode();return this.parseLiteralAtNode(e,r,n)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){{let r;try{r=BigInt(e)}catch{r=null}return this.parseLiteral(r,"BigIntLiteral")}}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=e.pattern,r.flags=e.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(e){let r=this.startNode();return r.value=e,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let r=this.state.startLoc,n;this.next(),this.expressionScope.enter(PO());let i=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],u=new rc,l=!0,c,p;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,u.optionalParametersLoc===null?null:u.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let m=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),m)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,u,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=s;let h=this.startNodeAt(r);return e&&this.shouldParseArrow(o)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,o,!1),h):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),p&&this.unexpected(p),c&&this.unexpected(c),this.checkExpressionErrors(u,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,f)):n=o[0],this.wrapParenthesis(r,n))}wrapParenthesis(e,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),this.takeSurroundingComments(r,e.index,this.state.lastTokEndLoc.index),r;let n=this.startNodeAt(e);return n.expression=r,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,r){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let n=this.parseMetaProperty(e,r,"target");return this.scope.allowNewTarget||this.raise(W.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),e.arguments=r}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let r=this.match(83),n=this.parseNoCallExpr();e.callee=n,r&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise(W.ImportCallNotNewExpression,n)}parseTemplateElement(e){let{start:r,startLoc:n,end:i,value:s}=this.state,a=r+1,o=this.startNodeAt(Gr(n,1));s===null&&(e||this.raise(W.InvalidEscapeSequenceTemplate,Gr(this.state.firstInvalidTemplateEscapePos,1)));let u=this.match(24),l=u?-1:-2,c=i+l;o.value={raw:this.input.slice(a,c).replace(/\r\n?/g,`
|
|
71
|
+
`),cooked:s===null?null:s.slice(1,l)},o.tail=u,this.next();let p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,Gr(this.state.lastTokEndLoc,l)),p}parseTemplate(e){let r=this.startNode(),n=this.parseTemplateElement(e),i=[n],s=[];for(;!n.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(n=this.parseTemplateElement(e));return r.expressions=s,r.quasis=i,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,n,i){n&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,u=this.startNode();for(u.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(u);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),a=this.checkProto(c,n,a,i)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(W.InvalidRecordProperty,c),u.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";return r?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(u,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(W.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let n=this.startNode(),i=!1,s=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let u=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!u&&this.maybeAsyncOrAccessorProp(n)){let{key:l}=n,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(n)),(c==="get"||c==="set")&&(s=!0,this.resetPreviousNodeTrailingComments(l),n.kind=c,this.match(55)&&(o=!0,this.raise(W.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,i,!1,s,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise(e.kind==="get"?W.BadGetterArity:W.BadSetterArity,e),e.kind==="set"&&n[n.length-1]?.type==="RestElement"&&this.raise(W.BadSetterRestParameter,e)}parseObjectMethod(e,r,n,i,s){if(s){let a=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||r||this.match(10))return i&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,r,n,i){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,i),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key));else if(this.match(29)){let s=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=s):this.raise(W.InvalidCoverInitializedName,s),e.value=this.parseMaybeDefault(r,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,r,n,i,s,a,o){let u=this.parseObjectMethod(e,n,i,s,a)||this.parseObjectProperty(e,r,s,o);return u||this.unexpected(),u}parsePropertyName(e,r){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:i}=this.state,s;if(un(n))s=this.parseIdentifier(!0);else switch(n){case 135:s=this.parseNumericLiteral(i);break;case 134:s=this.parseStringLiteral(i);break;case 136:s=this.parseBigIntLiteral(i);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(W.UnexpectedPrivateField,a),s=this.parsePrivateName();break}default:this.unexpected()}e.key=s,n!==139&&(e.computed=!1)}}initFunction(e,r){e.id=null,e.generator=!1,e.async=r}parseMethod(e,r,n,i,s,a,o=!1){this.initFunction(e,n),e.generator=r,this.scope.enter(530|(o?576:0)|(s?32:0)),this.prodParam.enter(Zl(n,e.generator)),this.parseFunctionParams(e,i);let u=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),u}parseArrayLike(e,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,n,s),this.state.inFSharpPipelineDirectBody=i,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,r,n,i){this.scope.enter(518);let s=Zl(n,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(e,n);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,r,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,r,n){this.toAssignableList(r,n,!1),e.params=r}parseFunctionBodyAndFinish(e,r,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,r)}parseFunctionBody(e,r,n=!1){let i=r&&!this.match(5);if(this.expressionScope.enter(DE()),i)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else{let s=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,o=>{let u=!this.isSimpleParamList(e.params);o&&u&&this.raise(W.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let l=!s&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!n&&!u,r,l),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,l)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let r=0,n=e.length;r<n;r++)if(!this.isSimpleParameter(e[r]))return!1;return!0}checkParams(e,r,n,i=!0){let s=!r&&new Set,a={type:"FormalParameters"};for(let o of e.params)this.checkLVal(o,a,5,s,i)}parseExprList(e,r,n,i){let s=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}s.push(this.parseExprListItem(e,r,n))}return s}parseExprListItem(e,r,n,i){let s;if(this.match(12))r||this.raise(W.UnexpectedToken,this.state.curPosition(),{unexpected:","}),s=null;else if(this.match(21)){let a=this.state.startLoc;s=this.parseParenItem(this.parseSpread(n),a)}else if(this.match(17)){this.expectPlugin("partialApplication"),i||this.raise(W.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),s=this.finishNode(a,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowInOrVoidPattern(e,n,this.parseParenItem);return s}parseIdentifier(e){let r=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(r,n)}createIdentifier(e,r){return e.name=r,e.loc.identifierName=r,this.finishNode(e,"Identifier")}createIdentifierAt(e,r,n){return e.name=r,e.loc.identifierName=r,this.finishNodeAt(e,"Identifier",n)}parseIdentifierName(e){let r,{startLoc:n,type:i}=this.state;un(i)?r=this.state.value:this.unexpected();let s=O9(i);return e?s&&this.replaceToken(132):this.checkReservedWord(r,n,s,!1),this.next(),r}checkReservedWord(e,r,n,i){if(!(e.length>10||!tO(e))){if(n&&Q9(e)){this.raise(W.UnexpectedKeyword,r,{keyword:e});return}if((this.state.strict?i?lE:oE:aE)(e,this.inModule)){this.raise(W.UnexpectedReservedWord,r,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(W.YieldBindingIdentifier,r);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(W.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(W.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(W.ArgumentsInClass,r);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let r=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(W.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(W.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:e}=this.state;return e===53||e===10||e===0||Td(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let r=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(W.YieldInParameter,r);let n=!1,i=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:i=this.parseMaybeAssign()}return r.delegate=n,r.argument=i,this.finishNode(r,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(W.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(W.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(e,r){if(this.isSimpleReference(e)){let n=this.startNodeAt(r);return n.callee=e,this.finishNode(n,"PipelineBareFunction")}else{let n=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),n.expression=e,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(W.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(W.PipelineTopicUnused,e)}withTopicBindingContext(e){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(e){return e()}withSoloAwaitPermittingContext(e){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=r}}allowInAnd(e){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return e()}finally{this.prodParam.exit()}}return e()}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(e){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,e);return this.state.inFSharpPipelineDirectBody=n,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=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{e.body=this.parseProgram(r,8,"module")}finally{n()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let r=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,r,n){if(r!=null&&this.match(88)){let i=this.lookaheadCharCode();if(i===44||i===(e===3?93:e===8?125:41)||i===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,n)}parsePropertyNamePrefixOperator(e){}},Rd={kind:1},GO={kind:2},JO=/[\uD800-\uDFFF]/u,jd=/in(?:stanceof)?/y;function KO(t,e,r){for(let n=0;n<t.length;n++){let i=t[n],{type:s}=i;typeof s=="number"&&(i.type=nE(s))}return t}var YO=class extends WO{parseTopLevel(e,r){return e.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),e.comments=this.comments,this.optionFlags&256&&(e.tokens=KO(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,r,n){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[s,a]of Array.from(this.scope.undefinedExports))this.raise(W.ModuleExportUndefined,a,{localName:s});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return r===140?i=this.finishNode(e,"Program"):i=this.finishNodeAt(e,"Program",Gr(this.state.startLoc,-1)),i}stmtToDirective(e){let r=this.castNodeTo(e,"Directive"),n=this.castNodeTo(e.expression,"DirectiveLiteral"),i=n.value,s=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=s.slice(1,-1);return this.addExtra(n,"raw",s),this.addExtra(n,"rawValue",a),this.addExtra(n,"expressionValue",i),r.value=n,delete e.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let n=this.lookaheadCharCodeSince(e+2);if(n!==61&&n!==58&&n!==59)return!1}return!!(this.chStartsBindingIdentifier(r,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let r=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(r,e))return!0}return!1}chStartsBindingIdentifier(e,r){if(Sn(e)){if(jd.lastIndex=r,jd.test(this.input)){let n=this.codePointAtPos(jd.lastIndex);if(!hs(n)&&n!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),r=this.codePointAtPos(e);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return r===123||this.chStartsBindingIdentifier(r,e)}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(e=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,e&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(e,r)}parseStatementContent(e,r){let n=this.state.type,i=this.startNode(),s=!!(e&2),a=!!(e&4),o=e&1;switch(n){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?W.StrictFunction:this.options.annexB?W.SloppyFunctionAnnexB:W.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!s&&a);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(this.isAwaitUsing())return this.allowsUsing()?s?this.recordAwaitIfAllowed()||this.raise(W.AwaitUsingNotInAsyncContext,i):this.raise(W.UnexpectedLexicalDeclaration,i):this.raise(W.UnexpectedUsingDeclaration,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?s||this.raise(W.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(W.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),p=this.codePointAtPos(c);if(p!==91&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(p,c)&&p!==123))break}case 75:s||this.raise(W.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(W.UnexpectedImportExport,this.state.startLoc),this.next();let c;return n===83?c=this.parseImport(i):c=this.parseExport(i,r),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return s||this.raise(W.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!s&&a)}let u=this.state.value,l=this.parseExpression();return et(n)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,u,l,e):this.parseExpressionStatement(i,l,r)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(W.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,r,n){return e&&(r.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(W.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...e)):r.decorators=e,this.resetStartLocationFromNode(r,e[0]),n&&this.resetStartLocationFromNode(n,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(W.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(W.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,n;if(this.match(10)){let i=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(i,n);let s=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n,i),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==n&&this.raise(W.DecoratorArgumentsOutsideParentheses,s)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(r);i.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,n=this.finishNode(i,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(n,r)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,r){if(this.eat(10)){let n=this.startNodeAt(r);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return e}parseBreakContinueStatement(e,r){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,r),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,r){let n;for(n=0;n<this.state.labels.length;++n){let i=this.state.labels[n];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(r||i.kind===1)||e.label&&r))break}if(n===this.state.labels.length){let i=r?"BreakStatement":"ContinueStatement";this.raise(W.IllegalBreakContinue,e,{type:i})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Rd),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Rd);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(e,null);let n=this.isContextual(100);{let u=this.isAwaitUsing(),l=u||this.isForUsing(),c=n&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let p=this.startNode(),f;u?(f="await using",this.recordAwaitIfAllowed()||this.raise(W.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):f=this.state.value,this.next(),this.parseVar(p,!0,f);let h=this.finishNode(p,"VariableDeclaration"),m=this.match(58);return m&&l&&this.raise(W.ForInUsing,h),(m||this.isContextual(102))&&h.declarations.length===1?this.parseForIn(e,h,r):(r!==null&&this.unexpected(r),this.parseFor(e,h))}}let i=this.isContextual(95),s=new rc,a=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(n&&this.raise(W.ForOfLet,a),r===null&&i&&a.type==="Identifier"&&this.raise(W.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(a,!0);let u=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:u}),this.parseForIn(e,a,r)}else this.checkExpressionErrors(s,!0);return r!==null&&this.unexpected(r),this.parseFor(e,a)}parseFunctionStatement(e,r,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(r?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(W.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];this.expect(5),this.state.labels.push(GO),this.scope.enter(256);let n;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let s=this.match(61);n&&this.finishNode(n,"SwitchCase"),r.push(n=this.startNode()),n.consequent=[],this.next(),s?n.test=this.parseExpression():(i&&this.raise(W.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!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(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(W.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.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(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(W.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,r,n=!1){return this.next(),this.parseVar(e,!1,r,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Rd),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(W.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,r,n,i){for(let a of this.state.labels)a.name===r&&this.raise(W.LabelRedeclaration,n,{labelName:r});let s=R9(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===e.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=s;else break}return this.state.labels.push({name:r,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,r,n){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,r=!0,n){let i=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(i,e,!1,8,n),r&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,r,n,i,s){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,n,i,s)}parseBlockOrModuleBlockBody(e,r,n,i,s){let a=this.state.strict,o=!1,u=!1;for(;!this.match(i);){let l=n?this.parseModuleItem():this.parseStatementListItem();if(r&&!u){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);r.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}u=!0,this.state.strictErrors.clear()}e.push(l)}s?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,r){return e.init=r,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,r,n){let i=this.match(58);return this.next(),i?n!==null&&this.unexpected(n):e.await=n!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(W.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(W.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),e.left=r,e.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}parseVar(e,r,n,i=!1){let s=e.declarations=[];for(e.kind=n;;){let a=this.startNode();if(this.parseVarId(a,n),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!i&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(W.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(W.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),s.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,r){let n=this.parseBindingAtom();r==="using"||r==="await using"?(n.type==="ArrayPattern"||n.type==="ObjectPattern")&&this.raise(W.UsingDeclarationHasBindingPattern,n.loc.start):n.type==="VoidPattern"&&this.raise(W.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},r==="var"?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,r=0){let n=r&2,i=!!(r&1),s=i&&!(r&4),a=!!(r&8);this.initFunction(e,a),this.match(55)&&(n&&this.raise(W.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),i&&(e.id=this.parseFunctionId(s));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Zl(a,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||et(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(10),this.expressionScope.enter(kO()),e.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,r,n){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(e,r,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,i),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,r){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:e},i=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(W.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let a=this.startNode();i.length&&(a.decorators=i,this.resetStartLocationFromNode(a,i[0]),i=[]),this.parseClassMember(s,a,n),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(W.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),i.length)throw this.raise(W.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(e,r){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let i=r;return i.kind="method",i.computed=!1,i.key=n,i.static=!1,this.pushClassMethod(e,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=r;return i.computed=!1,i.key=n,i.static=!1,e.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,r,n){let i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(e,r))return;if(this.eat(5)){this.parseClassStaticBlock(e,r);return}}this.parseClassMemberWithIsStatic(e,r,n,i)}parseClassMemberWithIsStatic(e,r,n,i){let s=r,a=r,o=r,u=r,l=r,c=s,p=s;if(r.static=i,this.parsePropertyNamePrefixOperator(r),this.eat(55)){c.kind="method";let D=this.match(139);if(this.parseClassElementName(c),this.parsePostMemberNameModifiers(c),D){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(s)&&this.raise(W.ConstructorIsGenerator,s.key),this.pushClassMethod(e,s,!0,!1,!1,!1);return}let f=!this.state.containsEsc&&et(this.state.type),h=this.parseClassElementName(r),m=f?h.name:null,g=this.isPrivateName(h),y=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",g){this.pushClassPrivateMethod(e,a,!1,!1);return}let D=this.isNonstaticConstructor(s),d=!1;D&&(s.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(W.DuplicateConstructor,h),D&&this.hasPlugin("typescript")&&r.override&&this.raise(W.OverrideOnConstructor,h),n.hadConstructor=!0,d=n.hadSuperClass),this.pushClassMethod(e,s,!1,!1,D,d)}else if(this.isClassProperty())g?this.pushClassPrivateProperty(e,u):this.pushClassProperty(e,o);else if(m==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(h);let D=this.eat(55);p.optional&&this.unexpected(y),c.kind="method";let d=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),d?this.pushClassPrivateMethod(e,a,D,!0):(this.isNonstaticConstructor(s)&&this.raise(W.ConstructorIsAsync,s.key),this.pushClassMethod(e,s,D,!0,!1,!1))}else if((m==="get"||m==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(h),c.kind=m;let D=this.match(139);this.parseClassElementName(s),D?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(W.ConstructorIsAccessor,s.key),this.pushClassMethod(e,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}else if(m==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);let D=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,l,D)}else this.isLineTerminator()?g?this.pushClassPrivateProperty(e,u):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:r,value:n}=this.state;if((r===132||r===134)&&e.static&&n==="prototype"&&this.raise(W.StaticPrototype,this.state.startLoc),r===139){n==="constructor"&&this.raise(W.ConstructorClassPrivateField,this.state.startLoc);let i=this.parsePrivateName();return e.key=i,i}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,r){this.scope.enter(720);let n=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=n,e.body.push(this.finishNode(r,"StaticBlock")),r.decorators?.length&&this.raise(W.DecoratorStaticBlock,r)}pushClassProperty(e,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(W.ConstructorClassField,r.key),e.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(e,r){let n=this.parseClassPrivateProperty(r);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,r,n){!n&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(W.ConstructorClassField,r.key);let i=this.parseClassAccessorProperty(r);e.body.push(i),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(e,r,n,i,s,a){e.body.push(this.parseMethod(r,n,i,s,a,"ClassMethod",!0))}pushClassPrivateMethod(e,r,n,i){let s=this.parseMethod(r,n,i,!1,!1,"ClassPrivateMethod",!0);e.body.push(s);let a=s.kind==="get"?s.static?6:2:s.kind==="set"?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,a)}declareClassPrivateMethodInScope(e,r){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),r,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(DE()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,r,n,i=8331){if(et(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,i);else if(n||!r)e.id=null;else throw this.raise(W.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,r){let n=this.parseMaybeImportPhase(e,!0),i=this.maybeParseExportDefaultSpecifier(e,n),s=!i||this.eat(12),a=s&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),u=s&&(!o||this.eat(12)),l=i||a;if(a&&!o){if(i&&this.unexpected(),r)throw this.raise(W.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(e);i&&s&&!a&&!c&&this.unexpected(null,5),o&&u&&this.unexpected(null,98);let p;if(l||c){if(p=!1,r)throw this.raise(W.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else p=this.maybeParseExportDeclaration(e);if(l||c||p){let f=e;if(this.checkExport(f,!0,!1,!!f.source),f.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(r,f.declaration,f);else if(r)throw this.raise(W.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(f,"ExportNamedDeclaration")}if(this.eat(65)){let f=e,h=this.parseExportDefaultExpression();if(f.declaration=h,h.type==="ClassDeclaration")this.maybeTakeDecorators(r,h,f);else if(r)throw this.raise(W.UnsupportedDecoratorExport,e);return this.checkExport(f,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(f,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let n=r||this.parseIdentifier(!0),i=this.startNodeAtNode(n);return i.exported=n,e.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers??(e.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let r=e;r.specifiers||(r.specifiers=[]);let n=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(n)),r.source=null,r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(W.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(W.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(et(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let i=this.nextTokenStart(),s=this.input.charCodeAt(i);if(s===123||this.chStartsBindingIdentifier(s,i)&&!this.input.startsWith("from",i))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||et(this.state.type)&&n)return!0;if(this.match(65)&&n){let i=this.input.charCodeAt(this.nextTokenStartSince(r+4));return i===34||i===39}return!1}parseExportFrom(e,r){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(W.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(W.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(W.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,r,n,i){if(r){if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){let s=e.declaration;s.type==="Identifier"&&s.name==="from"&&s.end-s.start===4&&!s.extra?.parenthesized&&this.raise(W.ExportDefaultFromAsIdentifier,s)}}else if(e.specifiers?.length)for(let s of e.specifiers){let{exported:a}=s,o=a.type==="Identifier"?a.name:a.value;if(this.checkDuplicateExports(s,o),!i&&s.local){let{local:u}=s;u.type!=="Identifier"?this.raise(W.ExportBindingIsString,s,{localName:u.value,exportName:o}):(this.checkReservedWord(u.name,u.loc.start,!0,!1),this.scope.checkLocalExport(u))}}else if(e.declaration){let s=e.declaration;if(s.type==="FunctionDeclaration"||s.type==="ClassDeclaration"){let{id:a}=s;if(!a)throw new Error("Assertion failure");this.checkDuplicateExports(e,a.name)}else if(s.type==="VariableDeclaration")for(let a of s.declarations)this.checkDeclaration(a.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let r of e.properties)this.checkDeclaration(r);else if(e.type==="ArrayPattern")for(let r of e.elements)r&&this.checkDeclaration(r);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(W.DuplicateDefaultExport,e):this.raise(W.DuplicateExport,e,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(e){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 i=this.isContextual(130),s=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,s,e,i))}return r}parseExportSpecifier(e,r,n,i){return this.eatContextual(93)?e.exported=this.parseModuleExportName():r?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),r=JO.exec(e.value);return r&&this.raise(W.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:r[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:r,value:n})=>n.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(e){let{specifiers:r}=e,n=r.length===1?r[0].type:null;e.phase==="source"?n!=="ImportDefaultSpecifier"&&this.raise(W.SourcePhaseImportRequiresDefault,r[0].loc.start):e.phase==="defer"?n!=="ImportNamespaceSpecifier"&&this.raise(W.DeferImportRequiresNamespace,r[0].loc.start):e.module&&(n!=="ImportDefaultSpecifier"&&this.raise(W.ImportReflectionNotBinding,r[0].loc.start),e.assertions?.length>0&&this.raise(W.ImportReflectionHasAssertion,r[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:r}=e;if(r!=null){let n=r.find(i=>{let s;if(i.type==="ExportSpecifier"?s=i.local:i.type==="ImportSpecifier"&&(s=i.imported),s!==void 0)return s.type==="Identifier"?s.name!=="default":s.value!=="default"});n!==void 0&&this.raise(W.ImportJSONBindingNotDefault,n.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(e,r,n,i){r||(this.hasPlugin("importReflection")&&(e.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",i),e.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",i),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(e,r,null),null;let n=this.startNode(),i=this.parseIdentifierName(!0),{type:s}=this.state;return(un(s)?s!==98||this.lookaheadCharCode()===102:s!==12)?(this.applyImportPhase(e,r,i,n.loc.start),null):(this.applyImportPhase(e,r,null),this.createIdentifier(n,i))}isPrecedingIdImportPhase(e){let{type:r}=this.state;return et(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,r){e.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(e,r)||this.eat(12),i=n&&this.maybeParseStarImportSpecifier(e);return n&&!i&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,r,n){r.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,n))}finishImportSpecifier(e,r,n=8201){return this.checkLVal(e.local,{type:r},n),this.finishNode(e,r)}parseImportAttributes(){this.expect(5);let e=[],r=new Set;do{if(this.match(8))break;let n=this.startNode(),i=this.state.value;if(r.has(i)&&this.raise(W.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),r.add(i),this.match(134)?n.key=this.parseStringLiteral(i):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(W.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],r=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(W.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(W.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(W.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let r;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),r=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(W.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];e.attributes=r}maybeParseDefaultImportSpecifier(e,r){if(r){let n=this.startNodeAtNode(r);return n.local=r,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if(un(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(W.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),i=this.match(134),s=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,i,e.importKind==="type"||e.importKind==="typeof",s,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,r,n,i,s){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:a}=e;if(r)throw this.raise(W.ImportBindingIsString,e,{importName:a.value});this.checkReservedWord(a.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(e,"ImportSpecifier",s)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},SE=class extends YO{constructor(e,r,n){let i=_9(e);super(i,r),this.options=i,this.initializeScopes(),this.plugins=n,this.filename=i.sourceFilename,this.startIndex=i.startIndex;let s=0;i.allowAwaitOutsideFunction&&(s|=1),i.allowReturnOutsideFunction&&(s|=2),i.allowImportExportEverywhere&&(s|=8),i.allowSuperOutsideMethod&&(s|=16),i.allowUndeclaredExports&&(s|=64),i.allowNewTargetOutsideFunction&&(s|=4),i.allowYieldOutsideFunction&&(s|=32),i.ranges&&(s|=128),i.tokens&&(s|=256),i.createImportExpressions&&(s|=512),i.createParenthesizedExpressions&&(s|=1024),i.errorRecovery&&(s|=2048),i.attachComment&&(s|=4096),i.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return _d}parse(){this.enterInitialScopes();let e=this.startNode(),r=this.startNode();this.nextToken(),e.errors=null;let n=this.parseTopLevel(e,r);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}};function kE(t,e){if(e?.sourceType==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let r=Oo(e,t),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return e.sourceType="script",Oo(e,t).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return e.sourceType="script",Oo(e,t).parse()}catch{}throw r}}else return Oo(e,t).parse()}function PE(t,e){let r=Oo(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function XO(t){let e={};for(let r of Object.keys(t))e[r]=nE(t[r]);return e}XO(I9);function Oo(t,e){let r=SE,n=new Map;if(t?.plugins){for(let i of t.plugins){let s,a;typeof i=="string"?s=i:[s,a]=i,n.has(s)||n.set(s,a||{})}VO(n),r=QO(n)}return new r(t,e,n)}var _E=new Map;function QO(t){let e=[];for(let i of HO)t.has(i)&&e.push(i);let r=e.join("|"),n=_E.get(r);if(!n){n=SE;for(let i of e)n=wE[i](n);_E.set(r,n)}return n}function BE(t){return(e,r,n)=>{let i=!!n?.backwards;if(r===!1)return!1;let{length:s}=e,a=r;for(;a>=0&&a<s;){let o=e.charAt(a);if(t instanceof RegExp){if(!t.test(o))return a}else if(!t.includes(o))return a;i?a--:a++}return a===-1||a===s?a:!1}}var ZO=BE(" "),e5=BE(/[^\n\r]/u);function t5(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var r5=t5,NE=t=>t===`
|
|
72
|
+
`||t==="\r"||t==="\u2028"||t==="\u2029";function n5(t,e,r){let n=!!r?.backwards;if(e===!1)return!1;let i=t.charAt(e);if(n){if(t.charAt(e-1)==="\r"&&i===`
|
|
73
|
+
`)return e-2;if(NE(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
|
|
74
|
+
`)return e+2;if(NE(i))return e+1}return e}var i5=n5;function s5(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?e5(t,e):e}var a5=s5;function o5(t,e){let r=null,n=e;for(;n!==r;)r=n,n=ZO(t,n),n=r5(t,n),n=a5(t,n),n=i5(t,n);return n}var u5=o5;function l5(t){let e=[];for(let r of t)try{return r()}catch(n){e.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:e})}function c5(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
|
75
|
+
`);return e===-1?t:t.slice(0,e)}var $E=c5,qd=(t,e)=>(r,n,...i)=>r|1&&n==null?void 0:(e.call(n)??n[t]).apply(n,i),p5=Array.prototype.findLast??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return r}},h5=qd("findLast",function(){if(Array.isArray(this))return p5}),f5=h5;function d5(t){return this[t<0?this.length+t:t]}var m5=qd("at",function(){if(Array.isArray(this)||typeof this=="string")return d5}),g5=m5;function ti(t){let e=t.range?.[0]??t.start,r=(t.declaration?.decorators??t.decorators)?.[0];return r?Math.min(ti(r),e):e}function kn(t){return t.range?.[1]??t.end}function y5(t){let e=new Set(t);return r=>e.has(r?.type)}var Ud=y5,D5=Ud(["Block","CommentBlock","MultiLine"]),zd=D5,E5=Ud(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),x5=E5,Vd=new WeakMap;function C5(t){return Vd.has(t)||Vd.set(t,zd(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(t.value)),Vd.get(t)}var A5=C5;function b5(t){if(!zd(t))return!1;let e=`*${t.value}*`.split(`
|
|
76
|
+
`);return e.length>1&&e.every(r=>r.trimStart()[0]==="*")}var Hd=new WeakMap;function v5(t){return Hd.has(t)||Hd.set(t,b5(t)),Hd.get(t)}var IE=v5;function F5(t){if(t.length<2)return;let e;for(let r=t.length-1;r>=0;r--){let n=t[r];if(e&&kn(n)===ti(e)&&IE(n)&&IE(e)&&(t.splice(r+1,1),n.value+="*//*"+e.value,n.range=[ti(n),kn(e)]),!x5(n)&&!zd(n))throw new TypeError(`Unknown comment type: "${n.type}".`);e=n}}var T5=F5;function w5(t){return t!==null&&typeof t=="object"}var S5=w5,Lo=null;function Mo(t){if(Lo!==null&&typeof Lo.property){let e=Lo;return Lo=Mo.prototype=null,e}return Lo=Mo.prototype=t??Object.create(null),new Mo}var k5=10;for(let t=0;t<=k5;t++)Mo();function P5(t){return Mo(t)}function _5(t,e="type"){P5(t);function r(n){let i=n[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var B5=_5,q=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],N5={AccessorProperty:q[0],AnyTypeAnnotation:q[1],ArgumentPlaceholder:q[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:q[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:q[3],AsExpression:q[4],AssignmentExpression:q[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:q[6],BigIntLiteral:q[1],BigIntLiteralTypeAnnotation:q[1],BigIntTypeAnnotation:q[1],BinaryExpression:q[5],BindExpression:["object","callee"],BlockStatement:q[7],BooleanLiteral:q[1],BooleanLiteralTypeAnnotation:q[1],BooleanTypeAnnotation:q[1],BreakStatement:q[8],CallExpression:q[9],CatchClause:["param","body"],ChainExpression:q[3],ClassAccessorProperty:q[0],ClassBody:q[10],ClassDeclaration:q[11],ClassExpression:q[11],ClassImplements:q[12],ClassMethod:q[13],ClassPrivateMethod:q[13],ClassPrivateProperty:q[14],ClassProperty:q[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:q[15],ConditionalExpression:q[16],ConditionalTypeAnnotation:q[17],ContinueStatement:q[8],DebuggerStatement:q[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:q[18],DeclareEnum:q[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:q[20],DeclareFunction:["id","predicate"],DeclareHook:q[21],DeclareInterface:q[22],DeclareModule:q[19],DeclareModuleExports:q[23],DeclareNamespace:q[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:q[24],DeclareVariable:q[21],Decorator:q[3],Directive:q[18],DirectiveLiteral:q[1],DoExpression:q[10],DoWhileStatement:q[25],EmptyStatement:q[1],EmptyTypeAnnotation:q[1],EnumBigIntBody:q[26],EnumBigIntMember:q[27],EnumBooleanBody:q[26],EnumBooleanMember:q[27],EnumDeclaration:q[19],EnumDefaultedMember:q[21],EnumNumberBody:q[26],EnumNumberMember:q[27],EnumStringBody:q[26],EnumStringMember:q[27],EnumSymbolBody:q[26],ExistsTypeAnnotation:q[1],ExperimentalRestProperty:q[6],ExperimentalSpreadProperty:q[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:q[28],ExportNamedDeclaration:q[20],ExportNamespaceSpecifier:q[28],ExportSpecifier:["local","exported"],ExpressionStatement:q[3],File:["program"],ForInStatement:q[29],ForOfStatement:q[29],ForStatement:["init","test","update","body"],FunctionDeclaration:q[30],FunctionExpression:q[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:q[15],GenericTypeAnnotation:q[12],HookDeclaration:q[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:q[16],ImportAttribute:q[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:q[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:q[33],ImportSpecifier:["imported","local"],IndexedAccessType:q[34],InferredPredicate:q[1],InferTypeAnnotation:q[35],InterfaceDeclaration:q[22],InterfaceExtends:q[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:q[1],IntersectionTypeAnnotation:q[36],JsExpressionRoot:q[37],JsonRoot:q[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:q[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:q[1],JSXExpressionContainer:q[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:q[1],JSXMemberExpression:q[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:q[1],JSXSpreadAttribute:q[6],JSXSpreadChild:q[3],JSXText:q[1],KeyofTypeAnnotation:q[6],LabeledStatement:["label","body"],Literal:q[1],LogicalExpression:q[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:q[21],MatchExpression:q[39],MatchExpressionCase:q[40],MatchIdentifierPattern:q[21],MatchLiteralPattern:q[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:q[6],MatchStatement:q[39],MatchStatementCase:q[40],MatchUnaryPattern:q[6],MatchWildcardPattern:q[1],MemberExpression:q[38],MetaProperty:["meta","property"],MethodDefinition:q[42],MixedTypeAnnotation:q[1],ModuleExpression:q[10],NeverTypeAnnotation:q[1],NewExpression:q[9],NGChainedExpression:q[43],NGEmptyExpression:q[1],NGMicrosyntax:q[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:q[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:q[32],NGPipeExpression:["left","right","arguments"],NGRoot:q[37],NullableTypeAnnotation:q[23],NullLiteral:q[1],NullLiteralTypeAnnotation:q[1],NumberLiteralTypeAnnotation:q[1],NumberTypeAnnotation:q[1],NumericLiteral:q[1],ObjectExpression:["properties"],ObjectMethod:q[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:q[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:q[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:q[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:q[9],OptionalIndexedAccessType:q[34],OptionalMemberExpression:q[38],ParenthesizedExpression:q[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:q[1],PipelineTopicExpression:q[3],Placeholder:q[1],PrivateIdentifier:q[1],PrivateName:q[21],Program:q[7],Property:q[32],PropertyDefinition:q[14],QualifiedTypeIdentifier:q[44],QualifiedTypeofIdentifier:q[44],RegExpLiteral:q[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:q[6],SatisfiesExpression:q[4],SequenceExpression:q[43],SpreadElement:q[6],StaticBlock:q[10],StringLiteral:q[1],StringLiteralTypeAnnotation:q[1],StringTypeAnnotation:q[1],Super:q[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:q[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:q[1],TemplateLiteral:["quasis","expressions"],ThisExpression:q[1],ThisTypeAnnotation:q[1],ThrowStatement:q[6],TopicReference:q[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:q[45],TSAbstractKeyword:q[1],TSAbstractMethodDefinition:q[32],TSAbstractPropertyDefinition:q[45],TSAnyKeyword:q[1],TSArrayType:q[2],TSAsExpression:q[4],TSAsyncKeyword:q[1],TSBigIntKeyword:q[1],TSBooleanKeyword:q[1],TSCallSignatureDeclaration:q[46],TSClassImplements:q[47],TSConditionalType:q[17],TSConstructorType:q[46],TSConstructSignatureDeclaration:q[46],TSDeclareFunction:q[31],TSDeclareKeyword:q[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:q[26],TSEnumDeclaration:q[19],TSEnumMember:["id","initializer"],TSExportAssignment:q[3],TSExportKeyword:q[1],TSExternalModuleReference:q[3],TSFunctionType:q[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:q[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:q[35],TSInstantiationExpression:q[47],TSInterfaceBody:q[10],TSInterfaceDeclaration:q[22],TSInterfaceHeritage:q[47],TSIntersectionType:q[36],TSIntrinsicKeyword:q[1],TSJSDocAllType:q[1],TSJSDocNonNullableType:q[23],TSJSDocNullableType:q[23],TSJSDocUnknownType:q[1],TSLiteralType:q[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:q[10],TSModuleDeclaration:q[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:q[21],TSNeverKeyword:q[1],TSNonNullExpression:q[3],TSNullKeyword:q[1],TSNumberKeyword:q[1],TSObjectKeyword:q[1],TSOptionalType:q[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:q[23],TSPrivateKeyword:q[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:q[1],TSPublicKeyword:q[1],TSQualifiedName:q[5],TSReadonlyKeyword:q[1],TSRestType:q[23],TSSatisfiesExpression:q[4],TSStaticKeyword:q[1],TSStringKeyword:q[1],TSSymbolKeyword:q[1],TSTemplateLiteralType:["quasis","types"],TSThisType:q[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:q[23],TSTypeAssertion:q[4],TSTypeLiteral:q[26],TSTypeOperator:q[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:q[48],TSTypeParameterInstantiation:q[48],TSTypePredicate:q[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:q[1],TSUnionType:q[36],TSUnknownKeyword:q[1],TSVoidKeyword:q[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:q[24],TypeAnnotation:q[23],TypeCastExpression:q[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:q[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:q[48],TypeParameterInstantiation:q[48],TypePredicate:q[49],UnaryExpression:q[6],UndefinedTypeAnnotation:q[1],UnionTypeAnnotation:q[36],UnknownTypeAnnotation:q[1],UpdateExpression:q[6],V8IntrinsicIdentifier:q[1],VariableDeclaration:["declarations"],VariableDeclarator:q[27],Variance:q[1],VoidPattern:q[1],VoidTypeAnnotation:q[1],WhileStatement:q[25],WithStatement:["object","body"],YieldExpression:q[6]},$5=B5(N5),I5=$5;function nc(t,e){if(!S5(t))return t;if(Array.isArray(t)){for(let n=0;n<t.length;n++)t[n]=nc(t[n],e);return t}if(e.onEnter){let n=e.onEnter(t)??t;if(n!==t)return nc(n,e);t=n}let r=I5(t);for(let n=0;n<r.length;n++)t[r[n]]=nc(t[r[n]],e);return e.onLeave&&(t=e.onLeave(t)||t),t}var O5=nc;Ud(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function L5(t,e){let{parser:r,text:n}=e,{comments:i}=t,s=r==="oxc"&&e.oxcAstType==="ts";T5(i);let a=t.type==="File"?t.program:t;a.interpreter&&(i.unshift(a.interpreter),delete a.interpreter),s&&t.hashbang&&(i.unshift(t.hashbang),delete t.hashbang),t.type==="Program"&&(t.range=[0,n.length]);let o;return t=O5(t,{onEnter(u){switch(u.type){case"ParenthesizedExpression":{let{expression:l}=u,c=ti(u);if(l.type==="TypeCastExpression")return l.range=[c,kn(u)],l;let p=!1;if(!s){if(!o){o=[];for(let h of i)A5(h)&&o.push(kn(h))}let f=f5(0,o,h=>h<=c);p=f&&n.slice(f,c).trim().length===0}return p?void 0:(l.extra={...l.extra,parenthesized:!0},l)}case"TemplateLiteral":if(u.expressions.length!==u.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||s){let l=ti(u)+1,c=kn(u)-(u.tail?1:2);u.range=[l,c]}break;case"VariableDeclaration":{let l=g5(0,u.declarations,-1);l?.init&&n[kn(l)]!==";"&&(u.range=[ti(u),kn(l)]);break}case"TSParenthesizedType":return u.typeAnnotation;case"TopicReference":t.extra={...t.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(u.types.length===1)return u.types[0];break;case"ImportExpression":r==="hermes"&&u.attributes&&!u.options&&(u.options=u.attributes);break}},onLeave(u){switch(u.type){case"LogicalExpression":if(OE(u))return Wd(u);break;case"TSImportType":!u.source&&u.argument.type==="TSLiteralType"&&(u.source=u.argument.literal,delete u.argument);break}}}),t}function OE(t){return t.type==="LogicalExpression"&&t.right.type==="LogicalExpression"&&t.operator===t.right.operator}function Wd(t){return OE(t)?Wd({type:"LogicalExpression",operator:t.operator,left:Wd({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left,range:[ti(t.left),kn(t.right.left)]}),right:t.right.right,range:[ti(t),kn(t)]}):t}var M5=L5;function R5(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var LE=R5,ME="Unexpected parseExpression() input: ";function j5(t){let{message:e,loc:r,reasonCode:n}=t;if(!r)return t;let{line:i,column:s}=r,a=t;(n==="MissingPlugin"||n==="MissingOneOfPlugins")&&(e="Unexpected token.",a=void 0);let o=` (${i}:${s})`;return e.endsWith(o)&&(e=e.slice(0,-o.length)),e.startsWith(ME)&&(e=e.slice(ME.length)),LE(e,{loc:{start:{line:i,column:s+1}},cause:a})}var RE=j5,q5=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},U5=qd("replaceAll",function(){if(typeof this=="string")return q5}),ic=U5,z5=/\*\/$/,V5=/^\/\*\*?/,H5=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,W5=/(^|\s+)\/\/([^\n\r]*)/g,jE=/^(\r?\n)+/,G5=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,qE=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,J5=/(\r?\n|^) *\* ?/g,K5=[];function Y5(t){let e=t.match(H5);return e?e[0].trimStart():""}function X5(t){t=ic(0,t.replace(V5,"").replace(z5,""),J5,"$1");let e="";for(;e!==t;)e=t,t=ic(0,t,G5,`
|
|
77
|
+
$1 $2
|
|
78
|
+
`);t=t.replace(jE,"").trimEnd();let r=Object.create(null),n=ic(0,t,qE,"").replace(jE,"").trimEnd(),i;for(;i=qE.exec(t);){let s=ic(0,i[2],W5,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let a=r[i[1]];r[i[1]]=[...K5,...Array.isArray(a)?a:[a],s]}else r[i[1]]=s}return{comments:n,pragmas:r}}var Q5=["noformat","noprettier"],Z5=["format","prettier"];function UE(t){let e=$E(t);e&&(t=t.slice(e.length+1));let r=Y5(t),{pragmas:n,comments:i}=X5(r);return{shebang:e,text:t,pragmas:n,comments:i}}function e7(t){let{pragmas:e}=UE(t);return Z5.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function t7(t){let{pragmas:e}=UE(t);return Q5.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function r7(t){return t=typeof t=="function"?{parse:t}:t,{astFormat:"estree",hasPragma:e7,hasIgnorePragma:t7,locStart:ti,locEnd:kn,...t}}var Ro=r7,Gd="module",zE="commonjs";function n7(t){if(typeof t=="string"){if(t=t.toLowerCase(),/\.(?:mjs|mts)$/iu.test(t))return Gd;if(/\.(?:cjs|cts)$/iu.test(t))return zE}}function i7(t,e){let{type:r="JsExpressionRoot",rootMarker:n,text:i}=e,{tokens:s,comments:a}=t;return delete t.tokens,delete t.comments,{tokens:s,comments:a,type:r,node:t,range:[0,i.length],rootMarker:n}}var VE=i7,fa=t=>Ro(l7(t)),s7={sourceType:Gd,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},HE="v8intrinsic",WE=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],ri=(t,e=s7)=>({...e,plugins:[...e.plugins,...t]}),a7=/@(?:no)?flow\b/u;function o7(t,e){if(e?.endsWith(".js.flow"))return!0;let r=$E(t);r&&(t=t.slice(r.length));let n=u5(t,0);return n!==!1&&(t=t.slice(0,n)),a7.test(t)}function u7(t,e,r){let n=t(e,r),i=n.errors.find(s=>!c7.has(s.reasonCode));if(i)throw i;return n}function l7({isExpression:t=!1,optionsCombinations:e}){return(r,n={})=>{let{filepath:i}=n;if(typeof i!="string"&&(i=void 0),(n.parser==="babel"||n.parser==="__babel_estree")&&o7(r,i))return n.parser="babel-flow",QE.parse(r,n);let s=e,a=n.__babelSourceType??n7(i);a&&a!==Gd&&(s=s.map(c=>({...c,sourceType:a,...a===zE?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let o=/%[A-Z]/u.test(r);r.includes("|>")?s=(o?[...WE,HE]:WE).flatMap(c=>s.map(p=>ri([c],p))):o&&(s=s.map(c=>ri([HE],c)));let u=t?PE:kE,l;try{l=l5(s.map(c=>()=>u7(u,r,c)))}catch({errors:[c]}){throw RE(c)}return t&&(l=VE(l,{text:r,rootMarker:n.rootMarker})),M5(l,{text:r})}}var c7=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),GE=[ri(["jsx"])],JE=fa({optionsCombinations:GE}),KE=fa({optionsCombinations:[ri(["jsx","typescript"]),ri(["typescript"])]}),YE=fa({isExpression:!0,optionsCombinations:[ri(["jsx"])]}),XE=fa({isExpression:!0,optionsCombinations:[ri(["typescript"])]}),QE=fa({optionsCombinations:[ri(["jsx",["flow",{all:!0}],"flowComments"])]}),p7=fa({optionsCombinations:GE.map(t=>ri(["estree"],t))}),ZE={};gd(ZE,{json:()=>d7,"json-stringify":()=>y7,json5:()=>m7,jsonc:()=>g7});function h7(t){return Array.isArray(t)&&t.length>0}var ex=h7,tx={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function f7(t){let e=kE(t,tx),{program:r}=e;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return e}function sc(t,e={}){let{allowComments:r=!0,allowEmpty:n=!1}=e,i;try{i=PE(t,tx)}catch(s){if(n&&s.code==="BABEL_PARSER_SYNTAX_ERROR"&&s.reasonCode==="ParseExpressionEmptyInput")try{i=f7(t)}catch{}if(!i)throw RE(s)}if(!r&&ex(i.comments))throw Ii(i.comments[0],"Comment");return i=VE(i,{type:"JsonRoot",text:t}),i.node.type==="File"?delete i.node:da(i.node),i}function Ii(t,e){let[r,n]=[t.loc.start,t.loc.end].map(({line:i,column:s})=>({line:i,column:s+1}));return LE(`${e} is not allowed in JSON.`,{loc:{start:r,end:n}})}function da(t){switch(t.type){case"ArrayExpression":for(let e of t.elements)e!==null&&da(e);return;case"ObjectExpression":for(let e of t.properties)da(e);return;case"ObjectProperty":if(t.computed)throw Ii(t.key,"Computed key");if(t.shorthand)throw Ii(t.key,"Shorthand property");t.key.type!=="Identifier"&&da(t.key),da(t.value);return;case"UnaryExpression":{let{operator:e,argument:r}=t;if(e!=="+"&&e!=="-")throw Ii(t,`Operator '${t.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw Ii(r,`Operator '${e}' before '${r.type}'`)}case"Identifier":if(t.name!=="Infinity"&&t.name!=="NaN"&&t.name!=="undefined")throw Ii(t,`Identifier '${t.name}'`);return;case"TemplateLiteral":if(ex(t.expressions))throw Ii(t.expressions[0],"'TemplateLiteral' with expression");for(let e of t.quasis)da(e);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw Ii(t,`'${t.type}'`)}}var d7=Ro({parse:t=>sc(t),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),m7=Ro(t=>sc(t)),g7=Ro(t=>sc(t,{allowEmpty:!0})),y7=Ro({parse:t=>sc(t,{allowComments:!1}),astFormat:"estree-json"}),D7={...K1,...ZE},E7=Object.defineProperty,Jd=(t,e)=>{for(var r in e)E7(t,r,{get:e[r],enumerable:!0})},jo={};Jd(jo,{languages:()=>Az,options:()=>xz,printers:()=>Cz});var x7=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],rx={};Jd(rx,{canAttachComment:()=>qL,embed:()=>BR,features:()=>hz,getVisitorKeys:()=>cx,handleComments:()=>AM,hasPrettierIgnore:()=>Um,insertPragma:()=>WR,isBlockComment:()=>ln,isGap:()=>vM,massageAstNode:()=>IL,print:()=>IA,printComment:()=>YR,printPrettierIgnored:()=>IA,willPrintOwnComments:()=>wM});var Kd=(t,e)=>(r,n,...i)=>r|1&&n==null?void 0:(e.call(n)??n[t]).apply(n,i),C7=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},A7=Kd("replaceAll",function(){if(typeof this=="string")return C7}),Ot=A7;function b7(t){return this[t<0?this.length+t:t]}var v7=Kd("at",function(){if(Array.isArray(this)||typeof this=="string")return b7}),Qe=v7;function F7(t){return t!==null&&typeof t=="object"}var nx=F7;function*T7(t,e){let{getVisitorKeys:r,filter:n=()=>!0}=e,i=s=>nx(s)&&n(s);for(let s of r(t)){let a=t[s];if(Array.isArray(a))for(let o of a)i(o)&&(yield o);else i(a)&&(yield a)}}function*w7(t,e){let r=[t];for(let n=0;n<r.length;n++){let i=r[n];for(let s of T7(i,e))yield s,r.push(s)}}function S7(t,{getVisitorKeys:e,predicate:r}){for(let n of w7(t,{getVisitorKeys:e}))if(r(n))return!0;return!1}var k7=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function P7(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function _7(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t>=94192&&t<=94198||t>=94208&&t<=101589||t>=101631&&t<=101662||t>=101760&&t<=101874||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128728||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129674||t>=129678&&t<=129734||t===129736||t>=129741&&t<=129756||t>=129759&&t<=129770||t>=129775&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}var B7="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",N7=/[^\x20-\x7F]/u,$7=new Set(B7);function I7(t){if(!t)return 0;if(!N7.test(t))return t.length;t=t.replace(k7(),r=>$7.has(r)?" ":" ");let e=0;for(let r of t){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(e+=P7(n)||_7(n)?2:1)}return e}var ma=I7;function Yd(t){return(e,r,n)=>{let i=!!n?.backwards;if(r===!1)return!1;let{length:s}=e,a=r;for(;a>=0&&a<s;){let o=e.charAt(a);if(t instanceof RegExp){if(!t.test(o))return a}else if(!t.includes(o))return a;i?a--:a++}return a===-1||a===s?a:!1}}var ga=Yd(" "),O7=Yd(",; "),L7=Yd(/[^\n\r]/u),ix=t=>t===`
|
|
79
|
+
`||t==="\r"||t==="\u2028"||t==="\u2029";function M7(t,e,r){let n=!!r?.backwards;if(e===!1)return!1;let i=t.charAt(e);if(n){if(t.charAt(e-1)==="\r"&&i===`
|
|
80
|
+
`)return e-2;if(ix(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
|
|
81
|
+
`)return e+2;if(ix(i))return e+1}return e}var ya=M7;function R7(t,e,r={}){let n=ga(t,r.backwards?e-1:e,r),i=ya(t,n,r);return n!==i}var Ar=R7;function j7(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var Xd=j7;function q7(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?L7(t,e):e}var Qd=q7;function U7(t,e){let r=null,n=e;for(;n!==r;)r=n,n=O7(t,n),n=Xd(t,n),n=ga(t,n);return n=Qd(t,n),n=ya(t,n),n!==!1&&Ar(t,n)}var Zd=U7;function z7(t){return Array.isArray(t)&&t.length>0}var lt=z7,V7=()=>{},H7=V7,sx=Object.freeze({character:"'",codePoint:39}),ax=Object.freeze({character:'"',codePoint:34}),W7=Object.freeze({preferred:sx,alternate:ax}),G7=Object.freeze({preferred:ax,alternate:sx});function J7(t,e){let{preferred:r,alternate:n}=e===!0||e==="'"?W7:G7,{length:i}=t,s=0,a=0;for(let o=0;o<i;o++){let u=t.charCodeAt(o);u===r.codePoint?s++:u===n.codePoint&&a++}return(s>a?n:r).character}var ox=J7,K7=/\\(["'\\])|(["'])/gu;function Y7(t,e){let r=e==='"'?"'":'"',n=Ot(0,t,K7,(i,s,a)=>s?s===r?r:i:a===e?"\\"+a:a);return e+n+e}var X7=Y7;function Q7(t,e){let r=t.slice(1,-1),n=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":ox(r,e.singleQuote);return t.charAt(0)===n?t:X7(r,n)}var Da=Q7,ux=t=>Number.isInteger(t)&&t>=0;function Me(t){let e=t.range?.[0]??t.start,r=(t.declaration?.decorators??t.decorators)?.[0];return r?Math.min(Me(r),e):e}function Ie(t){return t.range?.[1]??t.end}function ac(t,e){let r=Me(t);return ux(r)&&r===Me(e)}function Z7(t,e){let r=Ie(t);return ux(r)&&r===Ie(e)}function eL(t,e){return ac(t,e)&&Z7(t,e)}var qo=null;function Uo(t){if(qo!==null&&typeof qo.property){let e=qo;return qo=Uo.prototype=null,e}return qo=Uo.prototype=t??Object.create(null),new Uo}var tL=10;for(let t=0;t<=tL;t++)Uo();function rL(t){return Uo(t)}function nL(t,e="type"){rL(t);function r(n){let i=n[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var lx=nL,U=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],iL={AccessorProperty:U[0],AnyTypeAnnotation:U[1],ArgumentPlaceholder:U[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:U[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:U[3],AsExpression:U[4],AssignmentExpression:U[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:U[6],BigIntLiteral:U[1],BigIntLiteralTypeAnnotation:U[1],BigIntTypeAnnotation:U[1],BinaryExpression:U[5],BindExpression:["object","callee"],BlockStatement:U[7],BooleanLiteral:U[1],BooleanLiteralTypeAnnotation:U[1],BooleanTypeAnnotation:U[1],BreakStatement:U[8],CallExpression:U[9],CatchClause:["param","body"],ChainExpression:U[3],ClassAccessorProperty:U[0],ClassBody:U[10],ClassDeclaration:U[11],ClassExpression:U[11],ClassImplements:U[12],ClassMethod:U[13],ClassPrivateMethod:U[13],ClassPrivateProperty:U[14],ClassProperty:U[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:U[15],ConditionalExpression:U[16],ConditionalTypeAnnotation:U[17],ContinueStatement:U[8],DebuggerStatement:U[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:U[18],DeclareEnum:U[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:U[20],DeclareFunction:["id","predicate"],DeclareHook:U[21],DeclareInterface:U[22],DeclareModule:U[19],DeclareModuleExports:U[23],DeclareNamespace:U[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:U[24],DeclareVariable:U[21],Decorator:U[3],Directive:U[18],DirectiveLiteral:U[1],DoExpression:U[10],DoWhileStatement:U[25],EmptyStatement:U[1],EmptyTypeAnnotation:U[1],EnumBigIntBody:U[26],EnumBigIntMember:U[27],EnumBooleanBody:U[26],EnumBooleanMember:U[27],EnumDeclaration:U[19],EnumDefaultedMember:U[21],EnumNumberBody:U[26],EnumNumberMember:U[27],EnumStringBody:U[26],EnumStringMember:U[27],EnumSymbolBody:U[26],ExistsTypeAnnotation:U[1],ExperimentalRestProperty:U[6],ExperimentalSpreadProperty:U[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:U[28],ExportNamedDeclaration:U[20],ExportNamespaceSpecifier:U[28],ExportSpecifier:["local","exported"],ExpressionStatement:U[3],File:["program"],ForInStatement:U[29],ForOfStatement:U[29],ForStatement:["init","test","update","body"],FunctionDeclaration:U[30],FunctionExpression:U[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:U[15],GenericTypeAnnotation:U[12],HookDeclaration:U[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:U[16],ImportAttribute:U[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:U[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:U[33],ImportSpecifier:["imported","local"],IndexedAccessType:U[34],InferredPredicate:U[1],InferTypeAnnotation:U[35],InterfaceDeclaration:U[22],InterfaceExtends:U[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:U[1],IntersectionTypeAnnotation:U[36],JsExpressionRoot:U[37],JsonRoot:U[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:U[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:U[1],JSXExpressionContainer:U[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:U[1],JSXMemberExpression:U[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:U[1],JSXSpreadAttribute:U[6],JSXSpreadChild:U[3],JSXText:U[1],KeyofTypeAnnotation:U[6],LabeledStatement:["label","body"],Literal:U[1],LogicalExpression:U[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:U[21],MatchExpression:U[39],MatchExpressionCase:U[40],MatchIdentifierPattern:U[21],MatchLiteralPattern:U[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:U[6],MatchStatement:U[39],MatchStatementCase:U[40],MatchUnaryPattern:U[6],MatchWildcardPattern:U[1],MemberExpression:U[38],MetaProperty:["meta","property"],MethodDefinition:U[42],MixedTypeAnnotation:U[1],ModuleExpression:U[10],NeverTypeAnnotation:U[1],NewExpression:U[9],NGChainedExpression:U[43],NGEmptyExpression:U[1],NGMicrosyntax:U[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:U[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:U[32],NGPipeExpression:["left","right","arguments"],NGRoot:U[37],NullableTypeAnnotation:U[23],NullLiteral:U[1],NullLiteralTypeAnnotation:U[1],NumberLiteralTypeAnnotation:U[1],NumberTypeAnnotation:U[1],NumericLiteral:U[1],ObjectExpression:["properties"],ObjectMethod:U[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:U[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:U[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:U[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:U[9],OptionalIndexedAccessType:U[34],OptionalMemberExpression:U[38],ParenthesizedExpression:U[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:U[1],PipelineTopicExpression:U[3],Placeholder:U[1],PrivateIdentifier:U[1],PrivateName:U[21],Program:U[7],Property:U[32],PropertyDefinition:U[14],QualifiedTypeIdentifier:U[44],QualifiedTypeofIdentifier:U[44],RegExpLiteral:U[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:U[6],SatisfiesExpression:U[4],SequenceExpression:U[43],SpreadElement:U[6],StaticBlock:U[10],StringLiteral:U[1],StringLiteralTypeAnnotation:U[1],StringTypeAnnotation:U[1],Super:U[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:U[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:U[1],TemplateLiteral:["quasis","expressions"],ThisExpression:U[1],ThisTypeAnnotation:U[1],ThrowStatement:U[6],TopicReference:U[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:U[45],TSAbstractKeyword:U[1],TSAbstractMethodDefinition:U[32],TSAbstractPropertyDefinition:U[45],TSAnyKeyword:U[1],TSArrayType:U[2],TSAsExpression:U[4],TSAsyncKeyword:U[1],TSBigIntKeyword:U[1],TSBooleanKeyword:U[1],TSCallSignatureDeclaration:U[46],TSClassImplements:U[47],TSConditionalType:U[17],TSConstructorType:U[46],TSConstructSignatureDeclaration:U[46],TSDeclareFunction:U[31],TSDeclareKeyword:U[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:U[26],TSEnumDeclaration:U[19],TSEnumMember:["id","initializer"],TSExportAssignment:U[3],TSExportKeyword:U[1],TSExternalModuleReference:U[3],TSFunctionType:U[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:U[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:U[35],TSInstantiationExpression:U[47],TSInterfaceBody:U[10],TSInterfaceDeclaration:U[22],TSInterfaceHeritage:U[47],TSIntersectionType:U[36],TSIntrinsicKeyword:U[1],TSJSDocAllType:U[1],TSJSDocNonNullableType:U[23],TSJSDocNullableType:U[23],TSJSDocUnknownType:U[1],TSLiteralType:U[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:U[10],TSModuleDeclaration:U[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:U[21],TSNeverKeyword:U[1],TSNonNullExpression:U[3],TSNullKeyword:U[1],TSNumberKeyword:U[1],TSObjectKeyword:U[1],TSOptionalType:U[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:U[23],TSPrivateKeyword:U[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:U[1],TSPublicKeyword:U[1],TSQualifiedName:U[5],TSReadonlyKeyword:U[1],TSRestType:U[23],TSSatisfiesExpression:U[4],TSStaticKeyword:U[1],TSStringKeyword:U[1],TSSymbolKeyword:U[1],TSTemplateLiteralType:["quasis","types"],TSThisType:U[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:U[23],TSTypeAssertion:U[4],TSTypeLiteral:U[26],TSTypeOperator:U[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:U[48],TSTypeParameterInstantiation:U[48],TSTypePredicate:U[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:U[1],TSUnionType:U[36],TSUnknownKeyword:U[1],TSVoidKeyword:U[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:U[24],TypeAnnotation:U[23],TypeCastExpression:U[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:U[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:U[48],TypeParameterInstantiation:U[48],TypePredicate:U[49],UnaryExpression:U[6],UndefinedTypeAnnotation:U[1],UnionTypeAnnotation:U[36],UnknownTypeAnnotation:U[1],UpdateExpression:U[6],V8IntrinsicIdentifier:U[1],VariableDeclaration:["declarations"],VariableDeclarator:U[27],Variance:U[1],VoidPattern:U[1],VoidTypeAnnotation:U[1],WhileStatement:U[25],WithStatement:["object","body"],YieldExpression:U[6]},sL=lx(iL),cx=sL;function aL(t){let e=new Set(t);return r=>e.has(r?.type)}var _e=aL;function oL(t){return t.extra?.raw??t.raw}var br=oL,uL=_e(["Block","CommentBlock","MultiLine"]),ln=uL,lL=_e(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),px=lL,cL=_e(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),zo=cL;function pL(t,e){let r=e.split(".");for(let n=r.length-1;n>=0;n--){let i=r[n];if(n===0)return t.type==="Identifier"&&t.name===i;if(n===1&&t.type==="MetaProperty"&&t.property.type==="Identifier"&&t.property.name===i){t=t.meta;continue}if(t.type==="MemberExpression"&&!t.optional&&!t.computed&&t.property.type==="Identifier"&&t.property.name===i){t=t.object;continue}return!1}}function hL(t,e){return e.some(r=>pL(t,r))}var em=hL;function fL({type:t}){return t.startsWith("TS")&&t.endsWith("Keyword")}var hx=fL;function dL({node:t,parent:e}){return t?.type!=="EmptyStatement"?!1:e.type==="IfStatement"?e.consequent===t||e.alternate===t:e.type==="DoWhileStatement"||e.type==="ForInStatement"||e.type==="ForOfStatement"||e.type==="ForStatement"||e.type==="LabeledStatement"||e.type==="WithStatement"||e.type==="WhileStatement"?e.body===t:!1}var tm=dL;function rm(t,e){return e(t)||S7(t,{getVisitorKeys:cx,predicate:e})}function nm(t){return t.type==="AssignmentExpression"||t.type==="BinaryExpression"||t.type==="LogicalExpression"||t.type==="NGPipeExpression"||t.type==="ConditionalExpression"||Ye(t)||ct(t)||t.type==="SequenceExpression"||t.type==="TaggedTemplateExpression"||t.type==="BindExpression"||t.type==="UpdateExpression"&&!t.prefix||fn(t)||t.type==="TSNonNullExpression"||t.type==="ChainExpression"}function mL(t){return t.expressions?t.expressions[0]:t.left??t.test??t.callee??t.object??t.tag??t.argument??t.expression}function fx(t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var gL=_e(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Vt=_e(["ArrayExpression"]),cn=_e(["ObjectExpression"]);function yL(t){return t.type==="LogicalExpression"&&t.operator==="??"}function Pn(t){return t.type==="NumericLiteral"||t.type==="Literal"&&typeof t.value=="number"}function DL(t){return t.type==="BooleanLiteral"||t.type==="Literal"&&typeof t.value=="boolean"}function dx(t){return t.type==="UnaryExpression"&&(t.operator==="+"||t.operator==="-")&&Pn(t.argument)}function Lt(t){return!!(t&&(t.type==="StringLiteral"||t.type==="Literal"&&typeof t.value=="string"))}function mx(t){return t.type==="RegExpLiteral"||t.type==="Literal"&&!!t.regex}var im=_e(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),EL=_e(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),Oi=_e(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Vo=_e(["FunctionExpression","ArrowFunctionExpression"]);function xL(t){return t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement"}function sm(t){return Ye(t)&&t.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(t.callee.name)}var Mt=_e(["JSXElement","JSXFragment"]);function Ho(t){return t.method&&t.kind==="init"||t.kind==="get"||t.kind==="set"}function gx(t){return(t.type==="ObjectTypeProperty"||t.type==="ObjectTypeInternalSlot")&&!t.static&&!t.method&&t.kind!=="get"&&t.kind!=="set"&&t.value.type==="FunctionTypeAnnotation"}function CL(t){return(t.type==="TypeAnnotation"||t.type==="TSTypeAnnotation")&&t.typeAnnotation.type==="FunctionTypeAnnotation"&&!t.static&&!ac(t,t.typeAnnotation)}var ni=_e(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Ea(t){return ct(t)||t.type==="BindExpression"&&!!t.object}var AL=_e(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function am(t){return hx(t)||px(t)||AL(t)||t.type==="GenericTypeAnnotation"&&!t.typeParameters||t.type==="TSTypeReference"&&!t.typeArguments}function bL(t){return t.type==="Identifier"&&(t.name==="beforeEach"||t.name==="beforeAll"||t.name==="afterEach"||t.name==="afterAll")}var vL=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function FL(t){return em(t,vL)}function oc(t,e){if(t?.type!=="CallExpression"||t.optional)return!1;let r=Or(t);if(r.length===1){if(sm(t)&&oc(e))return Vo(r[0]);if(bL(t.callee))return sm(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||Lt(r[0]))&&FL(t.callee))return r[2]&&!Pn(r[2])?!1:(r.length===2?Vo(r[1]):xL(r[1])&&Yt(r[1]).length<=1)||sm(r[1]);return!1}var yx=t=>e=>(e?.type==="ChainExpression"&&(e=e.expression),t(e)),Ye=yx(_e(["CallExpression","OptionalCallExpression"])),ct=yx(_e(["MemberExpression","OptionalMemberExpression"]));function Dx(t,e=5){return Ex(t,e)<=e}function Ex(t,e){let r=0;for(let n in t){let i=t[n];if(nx(i)&&typeof i.type=="string"&&(r++,r+=Ex(i,e-r)),r>e)return r}return r}var TL=.25;function om(t,e){let{printWidth:r}=e;if(fe(t))return!1;let n=r*TL;if(t.type==="ThisExpression"||t.type==="Identifier"&&t.name.length<=n||dx(t)&&!fe(t.argument))return!0;let i=t.type==="Literal"&&"regex"in t&&t.regex.pattern||t.type==="RegExpLiteral"&&t.pattern;return i?i.length<=n:Lt(t)?Da(br(t),e).length<=n:t.type==="TemplateLiteral"?t.expressions.length===0&&t.quasis[0].value.raw.length<=n&&!t.quasis[0].value.raw.includes(`
|
|
82
|
+
`):t.type==="UnaryExpression"?om(t.argument,{printWidth:r}):t.type==="CallExpression"&&t.arguments.length===0&&t.callee.type==="Identifier"?t.callee.name.length<=n-2:im(t)}function pn(t,e){return Mt(e)?pc(e):fe(e,ye.Leading,r=>Ar(t,Ie(r)))}function xx(t){return t.quasis.some(e=>e.value.raw.includes(`
|
|
83
|
+
`))}function Cx(t,e){return(t.type==="TemplateLiteral"&&xx(t)||t.type==="TaggedTemplateExpression"&&xx(t.quasi))&&!Ar(e,Me(t),{backwards:!0})}function Ax(t){if(!fe(t))return!1;let e=Qe(0,ds(t,ye.Dangling),-1);return e&&!ln(e)}function wL(t){if(t.length<=1)return!1;let e=0;for(let r of t)if(Vo(r)){if(e+=1,e>1)return!0}else if(Ye(r)){for(let n of Or(r))if(Vo(n))return!0}return!1}function bx(t){let{node:e,parent:r,key:n}=t;return n==="callee"&&Ye(e)&&Ye(r)&&r.arguments.length>0&&e.arguments.length>r.arguments.length}var SL=new Set(["!","-","+","~"]);function hn(t,e=2){if(e<=0)return!1;if(t.type==="ChainExpression"||t.type==="TSNonNullExpression")return hn(t.expression,e);let r=n=>hn(n,e-1);if(mx(t))return ma(t.pattern??t.regex.pattern)<=5;if(im(t)||EL(t)||t.type==="ArgumentPlaceholder")return!0;if(t.type==="TemplateLiteral")return t.quasis.every(n=>!n.value.raw.includes(`
|
|
84
|
+
`))&&t.expressions.every(r);if(cn(t))return t.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(Vt(t))return t.elements.every(n=>n===null||r(n));if(Ca(t)){if(t.type==="ImportExpression"||hn(t.callee,e)){let n=Or(t);return n.length<=e&&n.every(r)}return!1}return ct(t)?hn(t.object,e)&&hn(t.property,e):t.type==="UnaryExpression"&&SL.has(t.operator)||t.type==="UpdateExpression"?hn(t.argument,e):!1}function _n(t,e="es5"){return t.trailingComma==="es5"&&e==="es5"||t.trailingComma==="all"&&(e==="all"||e==="es5")}function ir(t,e){switch(t.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ir(t.left,e);case"MemberExpression":case"OptionalMemberExpression":return ir(t.object,e);case"TaggedTemplateExpression":return t.tag.type==="FunctionExpression"?!1:ir(t.tag,e);case"CallExpression":case"OptionalCallExpression":return t.callee.type==="FunctionExpression"?!1:ir(t.callee,e);case"ConditionalExpression":return ir(t.test,e);case"UpdateExpression":return!t.prefix&&ir(t.argument,e);case"BindExpression":return t.object&&ir(t.object,e);case"SequenceExpression":return ir(t.expressions[0],e);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ir(t.expression,e);default:return e(t)}}var vx={"==":!0,"!=":!0,"===":!0,"!==":!0},uc={"*":!0,"/":!0,"%":!0},um={">>":!0,">>>":!0,"<<":!0};function lm(t,e){return!(lc(e)!==lc(t)||t==="**"||vx[t]&&vx[e]||e==="%"&&uc[t]||t==="%"&&uc[e]||e!==t&&uc[e]&&uc[t]||um[t]&&um[e])}var kL=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((t,e)=>t.map(r=>[r,e])));function lc(t){return kL.get(t)}function PL(t){return!!um[t]||t==="|"||t==="^"||t==="&"}function _L(t){if(t.rest)return!0;let e=Yt(t);return Qe(0,e,-1)?.type==="RestElement"}var cm=new WeakMap;function Yt(t){if(cm.has(t))return cm.get(t);let e=[];return t.this&&e.push(t.this),e.push(...t.params),t.rest&&e.push(t.rest),cm.set(t,e),e}function BL(t,e){let{node:r}=t,n=0,i=()=>e(t,n++);r.this&&t.call(i,"this"),t.each(i,"params"),r.rest&&t.call(i,"rest")}var pm=new WeakMap;function Or(t){if(pm.has(t))return pm.get(t);if(t.type==="ChainExpression")return Or(t.expression);let e;return t.type==="ImportExpression"||t.type==="TSImportType"?(e=[t.source],t.options&&e.push(t.options)):t.type==="TSExternalModuleReference"?e=[t.expression]:e=t.arguments,pm.set(t,e),e}function cc(t,e){let{node:r}=t;if(r.type==="ChainExpression")return t.call(()=>cc(t,e),"expression");r.type==="ImportExpression"||r.type==="TSImportType"?(t.call(()=>e(t,0),"source"),r.options&&t.call(()=>e(t,1),"options")):r.type==="TSExternalModuleReference"?t.call(()=>e(t,0),"expression"):t.each(e,"arguments")}function Fx(t,e){let r=[];if(t.type==="ChainExpression"&&(t=t.expression,r.push("expression")),t.type==="ImportExpression"||t.type==="TSImportType"){if(e===0||e===(t.options?-2:-1))return[...r,"source"];if(t.options&&(e===1||e===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}else if(t.type==="TSExternalModuleReference"){if(e===0||e===-1)return[...r,"expression"]}else if(e<0&&(e=t.arguments.length+e),e>=0&&e<t.arguments.length)return[...r,"arguments",e];throw new RangeError("Invalid argument index")}function xa(t){return t.value.trim()==="prettier-ignore"&&!t.unignore}function pc(t){return t?.prettierIgnore||fe(t,ye.PrettierIgnore)}var ye={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Tx=(t,e)=>{if(typeof t=="function"&&(e=t,t=0),t||e)return(r,n,i)=>!(t&ye.Leading&&!r.leading||t&ye.Trailing&&!r.trailing||t&ye.Dangling&&(r.leading||r.trailing)||t&ye.Block&&!ln(r)||t&ye.Line&&!zo(r)||t&ye.First&&n!==0||t&ye.Last&&n!==i.length-1||t&ye.PrettierIgnore&&!xa(r)||e&&!e(r))};function fe(t,e,r){if(!lt(t?.comments))return!1;let n=Tx(e,r);return n?t.comments.some(n):!0}function ds(t,e,r){if(!Array.isArray(t?.comments))return[];let n=Tx(e,r);return n?t.comments.filter(n):t.comments}var Bn=(t,{originalText:e})=>Zd(e,Ie(t));function Ca(t){return Ye(t)||t.type==="NewExpression"||t.type==="ImportExpression"}function Li(t){return t&&(t.type==="ObjectProperty"||t.type==="Property"&&!Ho(t))}var fn=_e(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Nn=_e(["TSUnionType","UnionTypeAnnotation"]),Wo=_e(["TSIntersectionType","IntersectionTypeAnnotation"]),Mi=_e(["TSConditionalType","ConditionalTypeAnnotation"]),NL=t=>t?.type==="TSAsExpression"&&t.typeAnnotation.type==="TSTypeReference"&&t.typeAnnotation.typeName.type==="Identifier"&&t.typeAnnotation.typeName.name==="const",hm=_e(["TSTypeAliasDeclaration","TypeAlias"]);function wx({key:t,parent:e}){return!(t==="types"&&Nn(e)||t==="types"&&Wo(e))}var $L=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Aa=t=>{for(let e of t.quasis)delete e.value};function Sx(t,e,r){if(t.type==="Program"&&delete e.sourceType,(t.type==="BigIntLiteral"||t.type==="Literal")&&t.bigint&&(e.bigint=t.bigint.toLowerCase()),t.type==="EmptyStatement"&&!tm({node:t,parent:r})||t.type==="JSXText"||t.type==="JSXExpressionContainer"&&(t.expression.type==="Literal"||t.expression.type==="StringLiteral")&&t.expression.value===" ")return null;if((t.type==="Property"||t.type==="ObjectProperty"||t.type==="MethodDefinition"||t.type==="ClassProperty"||t.type==="ClassMethod"||t.type==="PropertyDefinition"||t.type==="TSDeclareMethod"||t.type==="TSPropertySignature"||t.type==="ObjectTypeProperty"||t.type==="ImportAttribute")&&t.key&&!t.computed){let{key:i}=t;Lt(i)||Pn(i)?e.key=String(i.value):i.type==="Identifier"&&(e.key=i.name)}if(t.type==="JSXElement"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(i=>i.type==="JSXAttribute"&&i.name.name==="jsx"))for(let{type:i,expression:s}of e.children)i==="JSXExpressionContainer"&&s.type==="TemplateLiteral"&&Aa(s);t.type==="JSXAttribute"&&t.name.name==="css"&&t.value.type==="JSXExpressionContainer"&&t.value.expression.type==="TemplateLiteral"&&Aa(e.value.expression),t.type==="JSXAttribute"&&t.value?.type==="Literal"&&/["']|"|'/u.test(t.value.value)&&(e.value.value=Ot(0,t.value.value,/["']|"|'/gu,'"'));let n=t.expression||t.callee;if(t.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=t.expression.arguments[0].properties;for(let[s,a]of e.expression.arguments[0].properties.entries())switch(i[s].key.name){case"styles":Vt(a.value)&&Aa(a.value.elements[0]);break;case"template":a.value.type==="TemplateLiteral"&&Aa(a.value);break}}t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"||t.tag.name==="css"||t.tag.name==="md"||t.tag.name==="markdown"||t.tag.name==="html")||t.tag.type==="CallExpression")&&Aa(e.quasi),t.type==="TemplateLiteral"&&Aa(e),t.type==="ChainExpression"&&t.expression.type==="TSNonNullExpression"&&(e.type="TSNonNullExpression",e.expression.type="ChainExpression")}Sx.ignoredProperties=$L;var IL=Sx,OL=_e(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),LL=(t,[e])=>e?.type==="ComponentParameter"&&e.shorthand&&e.name===t&&e.local!==e.name||e?.type==="MatchObjectPatternProperty"&&e.shorthand&&e.key===t&&e.value!==e.key||e?.type==="ObjectProperty"&&e.shorthand&&e.key===t&&e.value!==e.key||e?.type==="Property"&&e.shorthand&&e.key===t&&!Ho(e)&&e.value!==e.key,ML=(t,[e])=>!!(t.type==="FunctionExpression"&&e.type==="MethodDefinition"&&e.value===t&&Yt(t).length===0&&!t.returnType&&!lt(t.typeParameters)&&t.body),kx=(t,[e])=>e?.typeAnnotation===t&&NL(e),RL=(t,[e,...r])=>kx(t,[e])||e?.typeName===t&&kx(e,r);function jL(t,e){return OL(t)||LL(t,e)||ML(t,e)?!1:t.type==="EmptyStatement"?tm({node:t,parent:e[0]}):!(RL(t,e)||t.type==="TSTypeAnnotation"&&e[0].type==="TSPropertySignature")}var qL=jL;function UL(t){let e=t.type||t.kind||"(unknown type)",r=String(t.name||t.id&&(typeof t.id=="object"?t.id.name:t.id)||t.key&&(typeof t.key=="object"?t.key.name:t.key)||t.value&&(typeof t.value=="object"?"":String(t.value))||t.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),e+(r?" "+r:"")}function fm(t,e){(t.comments??(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=UL(t)}function At(t,e){e.leading=!0,e.trailing=!1,fm(t,e)}function Lr(t,e,r){e.leading=!1,e.trailing=!1,r&&(e.marker=r),fm(t,e)}function Dt(t,e){e.leading=!1,e.trailing=!0,fm(t,e)}function zL(t,e){let r=null,n=e;for(;n!==r;)r=n,n=ga(t,n),n=Xd(t,n),n=Qd(t,n),n=ya(t,n);return n}var ba=zL;function VL(t,e){let r=ba(t,e);return r===!1?"":t.charAt(r)}var dn=VL;function HL(t,e,r){for(let n=e;n<r;++n)if(t.charAt(n)===`
|
|
85
|
+
`)return!0;return!1}var Mr=HL,dm=new WeakMap;function WL(t){return dm.has(t)||dm.set(t,ln(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(t.value)),dm.get(t)}var Px=WL,mm=(t,e)=>zo(t)||!Mr(e,Me(t),Ie(t));function GL(t){return[Rx,Bx,Ox,iM,XL,ym,Dm,_x,Nx,lM,aM,oM,xm,Mx,cM,$x,Lx,Em,QL,yM,jx,Cm].some(e=>e(t))}function JL(t){return[YL,Ox,Bx,Mx,ym,Dm,_x,Nx,Lx,sM,uM,xm,fM,Em,mM,gM,DM,jx,xM,EM,Cm].some(e=>e(t))}function KL(t){return[Rx,ym,Dm,nM,$x,xm,rM,tM,Em,dM,Cm].some(e=>e(t))}function ms(t,e){let r=(t.body||t.properties).find(({type:n})=>n!=="EmptyStatement");r?At(r,e):Lr(t,e)}function gm(t,e){t.type==="BlockStatement"?ms(t,e):At(t,e)}function YL({comment:t,followingNode:e}){return e&&Px(t)?(At(e,t),!0):!1}function ym({comment:t,precedingNode:e,enclosingNode:r,followingNode:n,text:i}){if(r?.type!=="IfStatement"||!n)return!1;if(dn(i,Ie(t))===")")return Dt(e,t),!0;if(n.type==="BlockStatement"&&n===r.consequent&&Me(t)>=Ie(e)&&Ie(t)<=Me(n))return At(n,t),!0;if(e===r.consequent&&n===r.alternate){let s=ba(i,Ie(r.consequent));if(n.type==="BlockStatement"&&Me(t)>=s&&Ie(t)<=Me(n))return At(n,t),!0;if(Me(t)<s||r.alternate.type==="BlockStatement")return e.type==="BlockStatement"||mm(t,i)&&!Mr(i,Me(e),Me(t))?(Dt(e,t),!0):(Lr(r,t),!0)}return n.type==="BlockStatement"?(ms(n,t),!0):n.type==="IfStatement"?(gm(n.consequent,t),!0):r.consequent===n?(At(n,t),!0):!1}function Dm({comment:t,precedingNode:e,enclosingNode:r,followingNode:n,text:i}){return r?.type!=="WhileStatement"||!n?!1:dn(i,Ie(t))===")"?(Dt(e,t),!0):n.type==="BlockStatement"?(ms(n,t),!0):r.body===n?(At(n,t),!0):!1}function _x({comment:t,precedingNode:e,enclosingNode:r,followingNode:n}){return r?.type!=="TryStatement"&&r?.type!=="CatchClause"||!n?!1:r.type==="CatchClause"&&e?(Dt(e,t),!0):n.type==="BlockStatement"?(ms(n,t),!0):n.type==="TryStatement"?(gm(n.finalizer,t),!0):n.type==="CatchClause"?(gm(n.body,t),!0):!1}function XL({comment:t,enclosingNode:e,followingNode:r}){return ct(e)&&r?.type==="Identifier"?(At(e,t),!0):!1}function QL({comment:t,enclosingNode:e,followingNode:r,options:n}){return!n.experimentalTernaries||!(e?.type==="ConditionalExpression"||Mi(e))?!1:r?.type==="ConditionalExpression"||Mi(r)?(Lr(e,t),!0):!1}function Bx({comment:t,precedingNode:e,enclosingNode:r,followingNode:n,text:i,options:s}){let a=e&&!Mr(i,Ie(e),Me(t));return(!e||!a)&&(r?.type==="ConditionalExpression"||Mi(r))&&n?s.experimentalTernaries&&r.alternate===n&&!(ln(t)&&!Mr(s.originalText,Me(t),Ie(t)))?(Lr(r,t),!0):(At(n,t),!0):!1}var ZL=_e(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Nx({comment:t,precedingNode:e,enclosingNode:r,followingNode:n}){if(ZL(r)){if(lt(r.decorators)&&n?.type!=="Decorator")return Dt(Qe(0,r.decorators,-1),t),!0;if(r.body&&n===r.body)return ms(r.body,t),!0;if(n){if(r.superClass&&n===r.superClass&&e&&(e===r.id||e===r.typeParameters))return Dt(e,t),!0;for(let i of["implements","extends","mixins"])if(r[i]&&n===r[i][0])return e&&(e===r.id||e===r.typeParameters||e===r.superClass)?Dt(e,t):Lr(r,t,i),!0}}return!1}var eM=_e(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function $x({comment:t,precedingNode:e,enclosingNode:r,text:n}){return r&&e&&dn(n,Ie(t))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&e.type==="Identifier"&&r.key===e&&dn(n,Ie(e))!==":"||e?.type==="Decorator"&&eM(r)&&(zo(t)||t.placement==="ownLine")?(Dt(e,t),!0):!1}var Ix=_e(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function tM({comment:t,precedingNode:e,enclosingNode:r,text:n}){return dn(n,Ie(t))!=="("?!1:e&&Ix(r)?(Dt(e,t),!0):!1}function rM({comment:t,enclosingNode:e,text:r}){if(e?.type!=="ArrowFunctionExpression")return!1;let n=ba(r,Ie(t));return n!==!1&&r.slice(n,n+2)==="=>"?(Lr(e,t),!0):!1}function nM({comment:t,enclosingNode:e,text:r}){return dn(r,Ie(t))!==")"?!1:e&&(qx(e)&&Yt(e).length===0||Ca(e)&&Or(e).length===0)?(Lr(e,t),!0):(e?.type==="MethodDefinition"||e?.type==="TSAbstractMethodDefinition")&&Yt(e.value).length===0?(Lr(e.value,t),!0):!1}function iM({comment:t,precedingNode:e,enclosingNode:r,followingNode:n,text:i}){return e?.type==="ComponentTypeParameter"&&(r?.type==="DeclareComponent"||r?.type==="ComponentTypeAnnotation")&&n?.type!=="ComponentTypeParameter"||(e?.type==="ComponentParameter"||e?.type==="RestElement")&&r?.type==="ComponentDeclaration"&&dn(i,Ie(t))===")"?(Dt(e,t),!0):!1}function Ox({comment:t,precedingNode:e,enclosingNode:r,followingNode:n,text:i}){return e?.type==="FunctionTypeParam"&&r?.type==="FunctionTypeAnnotation"&&n?.type!=="FunctionTypeParam"||(e?.type==="Identifier"||e?.type==="AssignmentPattern"||e?.type==="ObjectPattern"||e?.type==="ArrayPattern"||e?.type==="RestElement"||e?.type==="TSParameterProperty")&&qx(r)&&dn(i,Ie(t))===")"?(Dt(e,t),!0):!ln(t)&&n?.type==="BlockStatement"&&Ix(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&ba(i,Ie(t))===Me(n)?(ms(n,t),!0):!1}function Lx({comment:t,enclosingNode:e}){return e?.type==="LabeledStatement"?(At(e,t),!0):!1}function Em({comment:t,enclosingNode:e}){return(e?.type==="ContinueStatement"||e?.type==="BreakStatement")&&!e.label?(Dt(e,t),!0):!1}function sM({comment:t,precedingNode:e,enclosingNode:r}){return Ye(r)&&e&&r.callee===e&&r.arguments.length>0?(At(r.arguments[0],t),!0):!1}function aM({comment:t,precedingNode:e,enclosingNode:r,followingNode:n}){return Nn(r)?(xa(t)&&(n.prettierIgnore=!0,t.unignore=!0),e?(Dt(e,t),!0):!1):(Nn(n)&&xa(t)&&(n.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function oM({comment:t,precedingNode:e,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(xa(t)&&(n.prettierIgnore=!0,t.unignore=!0),e?(Dt(e,t),!0):!1):(n&&n.type==="MatchOrPattern"&&xa(t)&&(n.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function uM({comment:t,enclosingNode:e}){return Li(e)?(At(e,t),!0):!1}function xm({comment:t,enclosingNode:e,ast:r,isLastComment:n}){return r?.body?.length===0?(n?Lr(r,t):At(r,t),!0):e?.type==="Program"&&e.body.length===0&&!lt(e.directives)?(n?Lr(e,t):At(e,t),!0):!1}function lM({comment:t,enclosingNode:e,followingNode:r}){return(e?.type==="ForInStatement"||e?.type==="ForOfStatement")&&r!==e.body?(At(e,t),!0):!1}function Mx({comment:t,precedingNode:e,enclosingNode:r,text:n}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return At(r,t),!0;let i=e?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",s=e?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(i||s)&&Ar(n,Ie(t))?(Dt(e,t),!0):!1}function cM({comment:t,enclosingNode:e}){return e?.type==="AssignmentPattern"?(At(e,t),!0):!1}var pM=_e(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),hM=_e(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function fM({comment:t,enclosingNode:e,followingNode:r}){return pM(e)&&r&&(hM(r)||ln(t))?(At(r,t),!0):!1}function dM({comment:t,enclosingNode:e,precedingNode:r,followingNode:n,text:i}){return!n&&(e?.type==="TSMethodSignature"||e?.type==="TSDeclareFunction"||e?.type==="TSAbstractMethodDefinition")&&(!r||r!==e.returnType)&&dn(i,Ie(t))===";"?(Dt(e,t),!0):!1}function Rx({comment:t,enclosingNode:e,followingNode:r}){if(xa(t)&&e?.type==="TSMappedType"&&r===e.key)return e.prettierIgnore=!0,t.unignore=!0,!0}function jx({comment:t,precedingNode:e,enclosingNode:r}){if(r?.type==="TSMappedType"&&!e)return Lr(r,t),!0}function mM({comment:t,enclosingNode:e,followingNode:r}){return!e||e.type!=="SwitchCase"||e.test||!r||r!==e.consequent[0]?!1:(r.type==="BlockStatement"&&zo(t)?ms(r,t):Lr(e,t),!0)}function gM({comment:t,precedingNode:e,enclosingNode:r,followingNode:n}){return Nn(e)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||Wo(r))?(Dt(Qe(0,e.types,-1),t),!0):!1}function yM({comment:t,enclosingNode:e,precedingNode:r,followingNode:n}){if((e?.type==="ObjectPattern"||e?.type==="ArrayPattern")&&n?.type==="TSTypeAnnotation")return r?Dt(r,t):Lr(e,t),!0}function DM({comment:t,precedingNode:e,enclosingNode:r,followingNode:n,text:i}){return!n&&r?.type==="UnaryExpression"&&(e?.type==="LogicalExpression"||e?.type==="BinaryExpression")&&Mr(i,Me(r.argument),Me(e.right))&&mm(t,i)&&!Mr(i,Me(e.right),Me(t))?(Dt(e.right,t),!0):!1}function EM({enclosingNode:t,followingNode:e,comment:r}){if(t&&(t.type==="TSPropertySignature"||t.type==="ObjectTypeProperty")&&(Nn(e)||Wo(e)))return At(e,r),!0}function Cm({enclosingNode:t,precedingNode:e,followingNode:r,comment:n,text:i}){if(fn(t)&&e===t.expression&&!mm(n,i))return r?At(r,n):Dt(t,n),!0}function xM({comment:t,enclosingNode:e,followingNode:r,precedingNode:n}){return e&&r&&n&&e.type==="ArrowFunctionExpression"&&e.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(At(r,t),!0):!1}var qx=_e(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),CM={endOfLine:JL,ownLine:GL,remaining:KL},AM=CM;function bM(t,{parser:e}){if(e==="flow"||e==="hermes"||e==="babel-flow")return t=Ot(0,t,/[\s(]/gu,""),t===""||t==="/*"||t==="/*::"}var vM=bM,FM=_e(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function TM(t){let{key:e,parent:r}=t;if(e==="types"&&Nn(r)||e==="argument"&&r.type==="JSXSpreadAttribute"||e==="expression"&&r.type==="JSXSpreadChild"||e==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(e==="id"||e==="typeParameters")&&FM(r)||e==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:n}=t;return pc(n)?!1:Nn(n)?wx(t):!!Mt(n)}var wM=TM,gs="string",ii="array",va="cursor",ys="indent",Ds="align",Es="trim",Jr="group",Ri="fill",$n="if-break",xs="indent-if-break",Cs="line-suffix",ji="line-suffix-boundary",vr="line",si="label",ai="break-parent",Ux=new Set([va,ys,Ds,Es,Jr,Ri,$n,xs,Cs,ji,vr,si,ai]);function SM(t){if(typeof t=="string")return gs;if(Array.isArray(t))return ii;if(!t)return;let{type:e}=t;if(Ux.has(e))return e}var qi=SM,kM=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function PM(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
86
|
+
Expected it to be 'string' or 'object'.`;if(qi(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=kM([...Ux].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
|
|
87
|
+
Expected it to be ${n}.`}var _M=class extends Error{name="InvalidDocError";constructor(e){super(PM(e)),this.doc=e}},Go=_M,zx={};function BM(t,e,r,n){let i=[t];for(;i.length>0;){let s=i.pop();if(s===zx){r(i.pop());continue}r&&i.push(s,zx);let a=qi(s);if(!a)throw new Go(s);if(e?.(s)!==!1)switch(a){case ii:case Ri:{let o=a===ii?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case $n:i.push(s.flatContents,s.breakContents);break;case Jr:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case Ds:case ys:case xs:case si:case Cs:i.push(s.contents);break;case gs:case va:case Es:case ji:case vr:case ai:break;default:throw new Go(s)}}}var Am=BM;function Fa(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(qi(s)){case ii:return e(s.map(n));case Ri:return e({...s,parts:s.parts.map(n)});case $n:return e({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Jr:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),e({...s,contents:o,expandedStates:a})}case Ds:case ys:case xs:case si:case Cs:return e({...s,contents:n(s.contents)});case gs:case va:case Es:case ji:case vr:case ai:return e(s);default:throw new Go(s)}}}function Vx(t,e,r){let n=r,i=!1;function s(a){if(i)return!1;let o=e(a);o!==void 0&&(i=!0,n=o)}return Am(t,s),n}function NM(t){if(t.type===Jr&&t.break||t.type===vr&&t.hard||t.type===ai)return!0}function sr(t){return Vx(t,NM,!1)}function Hx(t){if(t.length>0){let e=Qe(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function $M(t){let e=new Set,r=[];function n(s){if(s.type===ai&&Hx(r),s.type===Jr){if(r.push(s),e.has(s))return!1;e.add(s)}}function i(s){s.type===Jr&&r.pop().break&&Hx(r)}Am(t,n,i,!0)}function IM(t){return t.type===vr&&!t.hard?t.soft?"":" ":t.type===$n?t.flatContents:t}function hc(t){return Fa(t,IM)}function OM(t){switch(qi(t)){case Ri:if(t.parts.every(e=>e===""))return"";break;case Jr:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return"";if(t.contents.type===Jr&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case Ds:case ys:case xs:case Cs:if(!t.contents)return"";break;case $n:if(!t.flatContents&&!t.breakContents)return"";break;case ii:{let e=[];for(let r of t){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Qe(0,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...i)}return e.length===0?"":e.length===1?e[0]:e}case gs:case va:case Es:case ji:case vr:case si:case ai:break;default:throw new Go(t)}return t}function bm(t){return Fa(t,e=>OM(e))}function As(t,e=Kx){return Fa(t,r=>typeof r=="string"?qe(e,r.split(`
|
|
88
|
+
`)):r)}function LM(t){if(t.type===vr)return!0}function MM(t){return Vx(t,LM,!1)}function vm(t,e){return t.type===si?{...t,contents:e(t.contents)}:e(t)}function RM(t){let e=!0;return Am(t,r=>{switch(qi(r)){case gs:if(r==="")break;case Es:case ji:case vr:case ai:return e=!1,!1}}),e}var jM=H7;function ae(t){return{type:ys,contents:t}}function mn(t,e){return{type:Ds,contents:e,n:t}}function qM(t){return mn(Number.NEGATIVE_INFINITY,t)}function Wx(t){return mn(-1,t)}function UM(t,e,r){let n=t;if(e>0){for(let i=0;i<Math.floor(e/r);++i)n=ae(n);n=mn(e%r,n),n=mn(Number.NEGATIVE_INFINITY,n)}return n}var oi={type:ai},fc={type:va};function Gx(t){return{type:Ri,parts:t}}function Q(t,e={}){return jM(e.expandedStates),{type:Jr,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function bs(t,e){return Q(t[0],{...e,expandedStates:t})}function Pe(t,e="",r={}){return{type:$n,breakContents:t,flatContents:e,groupId:r.groupId}}function Jo(t,e){return{type:xs,contents:t,groupId:e.groupId,negate:e.negate}}function qe(t,e){let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}function Ko(t,e){return t?{type:si,label:t,contents:e}:e}var de={type:vr},se={type:vr,soft:!0},Jx={type:vr,hard:!0},oe=[Jx,oi],zM={type:vr,hard:!0,literal:!0},Kx=[zM,oi];function Yx(t){return{type:Cs,contents:t}}var In={type:ji},VM="cr",HM="crlf",WM="\r",GM=`\r
|
|
89
|
+
`,JM=`
|
|
90
|
+
`,KM=JM;function YM(t){return t===VM?WM:t===HM?GM:KM}var XM={type:0},QM={type:1},Xx={value:"",length:0,queue:[],get root(){return Xx}};function Qx(t,e,r){let n=e.type===1?t.queue.slice(0,-1):[...t.queue,e],i="",s=0,a=0,o=0;for(let m of n)switch(m.type){case 0:c(),r.useTabs?u(1):l(r.tabWidth);break;case 3:{let{string:g}=m;c(),i+=g,s+=g.length;break}case 2:{let{width:g}=m;a+=1,o+=g;break}default:throw new Error(`Unexpected indent comment '${m.type}'.`)}return f(),{...t,value:i,length:s,queue:n};function u(m){i+=" ".repeat(m),s+=r.tabWidth*m}function l(m){i+=" ".repeat(m),s+=m}function c(){r.useTabs?p():f()}function p(){a>0&&u(a),h()}function f(){o>0&&l(o),h()}function h(){a=0,o=0}}function ZM(t,e,r){if(!e)return t;if(e.type==="root")return{...t,root:t};if(e===Number.NEGATIVE_INFINITY)return t.root;let n;return typeof e=="number"?e<0?n=QM:n={type:2,width:e}:n={type:3,string:e},Qx(t,n,r)}function eR(t,e){return Qx(t,XM,e)}function tR(t){let e=0;for(let r=t.length-1;r>=0;r--){let n=t[r];if(n===" "||n===" ")e++;else break}return e}function Zx(t){let e=tR(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var Fr=Symbol("MODE_BREAK"),On=Symbol("MODE_FLAT"),Fm=Symbol("DOC_FILL_PRINTED_LENGTH");function dc(t,e,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=e.length,o=!1,u=[t],l="";for(;r>=0;){if(u.length===0){if(a===0)return!0;u.push(e[--a]);continue}let{mode:c,doc:p}=u.pop(),f=qi(p);switch(f){case gs:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=ma(p));break;case ii:case Ri:{let h=f===ii?p:p.parts,m=p[Fm]??0;for(let g=h.length-1;g>=m;g--)u.push({mode:c,doc:h[g]});break}case ys:case Ds:case xs:case si:u.push({mode:c,doc:p.contents});break;case Es:{let{text:h,count:m}=Zx(l);l=h,r+=m;break}case Jr:{if(s&&p.break)return!1;let h=p.break?Fr:c,m=p.expandedStates&&h===Fr?Qe(0,p.expandedStates,-1):p.contents;u.push({mode:h,doc:m});break}case $n:{let h=(p.groupId?i[p.groupId]||On:c)===Fr?p.breakContents:p.flatContents;h&&u.push({mode:c,doc:h});break}case vr:if(c===Fr||p.hard)return!0;p.soft||(o=!0);break;case Cs:n=!0;break;case ji:if(n)return!1;break}}return!1}function eC(t,e){let r=Object.create(null),n=e.printWidth,i=YM(e.endOfLine),s=0,a=[{indent:Xx,mode:Fr,doc:t}],o="",u=!1,l=[],c=[],p=[],f=[],h=0;for($M(t);a.length>0;){let{indent:d,mode:x,doc:A}=a.pop();switch(qi(A)){case gs:{let E=i!==`
|
|
91
|
+
`?Ot(0,A,`
|
|
92
|
+
`,i):A;E&&(o+=E,a.length>0&&(s+=ma(E)));break}case ii:for(let E=A.length-1;E>=0;E--)a.push({indent:d,mode:x,doc:A[E]});break;case va:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(h+o.length);break;case ys:a.push({indent:eR(d,e),mode:x,doc:A.contents});break;case Ds:a.push({indent:ZM(d,A.n,e),mode:x,doc:A.contents});break;case Es:D();break;case Jr:switch(x){case On:if(!u){a.push({indent:d,mode:A.break?Fr:On,doc:A.contents});break}case Fr:{u=!1;let E={indent:d,mode:On,doc:A.contents},C=n-s,b=l.length>0;if(!A.break&&dc(E,a,C,b,r))a.push(E);else if(A.expandedStates){let w=Qe(0,A.expandedStates,-1);if(A.break){a.push({indent:d,mode:Fr,doc:w});break}else for(let P=1;P<A.expandedStates.length+1;P++)if(P>=A.expandedStates.length){a.push({indent:d,mode:Fr,doc:w});break}else{let F=A.expandedStates[P],S={indent:d,mode:On,doc:F};if(dc(S,a,C,b,r)){a.push(S);break}}}else a.push({indent:d,mode:Fr,doc:A.contents});break}}A.id&&(r[A.id]=Qe(0,a,-1).mode);break;case Ri:{let E=n-s,C=A[Fm]??0,{parts:b}=A,w=b.length-C;if(w===0)break;let P=b[C+0],F=b[C+1],S={indent:d,mode:On,doc:P},I={indent:d,mode:Fr,doc:P},B=dc(S,[],E,l.length>0,r,!0);if(w===1){B?a.push(S):a.push(I);break}let O={indent:d,mode:On,doc:F},_={indent:d,mode:Fr,doc:F};if(w===2){B?a.push(O,S):a.push(_,I);break}let $=b[C+2],Y={indent:d,mode:x,doc:{...A,[Fm]:C+2}},V=dc({indent:d,mode:On,doc:[P,F,$]},[],E,l.length>0,r,!0);a.push(Y),V?a.push(O,S):B?a.push(_,S):a.push(_,I);break}case $n:case xs:{let E=A.groupId?r[A.groupId]:x;if(E===Fr){let C=A.type===$n?A.breakContents:A.negate?A.contents:ae(A.contents);C&&a.push({indent:d,mode:x,doc:C})}if(E===On){let C=A.type===$n?A.flatContents:A.negate?ae(A.contents):A.contents;C&&a.push({indent:d,mode:x,doc:C})}break}case Cs:l.push({indent:d,mode:x,doc:A.contents});break;case ji:l.length>0&&a.push({indent:d,mode:x,doc:Jx});break;case vr:switch(x){case On:if(A.hard)u=!0;else{A.soft||(o+=" ",s+=1);break}case Fr:if(l.length>0){a.push({indent:d,mode:x,doc:A},...l.reverse()),l.length=0;break}A.literal?(o+=i,s=0,d.root&&(d.root.value&&(o+=d.root.value),s=d.root.length)):(D(),o+=i+d.value,s=d.length);break}break;case si:a.push({indent:d,mode:x,doc:A.contents});break;case ai:break;default:throw new Go(A)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let m=p.join("")+o,g=[...f,...c];if(g.length!==2)return{formatted:m};let y=g[0];return{formatted:m,cursorNodeStart:y,cursorNodeText:m.slice(y,Qe(0,g,-1))};function D(){let{text:d,count:x}=Zx(o);d&&(p.push(d),h+=d.length),o="",s-=x,c.length>0&&(f.push(...c.map(A=>Math.min(A,h))),c.length=0)}}function rR(t,e,r=0){let n=0;for(let i=r;i<t.length;++i)t[i]===" "?n=n+e-n%e:n++;return n}var nR=rR;function iR(t,e){let r=t.lastIndexOf(`
|
|
93
|
+
`);return r===-1?0:nR(t.slice(r+1).match(/^[\t ]*/u)[0],e)}var sR=iR;function tC(t,e,r){let{node:n}=t;if(n.type==="TemplateLiteral"&&lR(t)){let u=oR(t,e,r);if(u)return u}let i="expressions";n.type==="TSTemplateLiteralType"&&(i="types");let s=[],a=t.map(r,i);s.push(In,"`");let o=0;return t.each(({index:u,node:l})=>{if(s.push(r()),l.tail)return;let{tabWidth:c}=e,p=l.value.raw,f=p.includes(`
|
|
94
|
+
`)?sR(p,c):o;o=f;let h=a[u],m=n[i][u],g=Mr(e.originalText,Ie(l),Me(n.quasis[u+1]));if(!g){let D=eC(h,{...e,printWidth:Number.POSITIVE_INFINITY}).formatted;D.includes(`
|
|
95
|
+
`)?g=!0:h=D}g&&(fe(m)||m.type==="Identifier"||ct(m)||m.type==="ConditionalExpression"||m.type==="SequenceExpression"||fn(m)||ni(m))&&(h=[ae([se,h]),se]);let y=f===0&&p.endsWith(`
|
|
96
|
+
`)?mn(Number.NEGATIVE_INFINITY,h):UM(h,f,c);s.push(Q(["${",y,In,"}"]))},"quasis"),s.push("`"),s}function aR(t,e,r){let n=r("quasi"),{node:i}=t,s="",a=ds(i.quasi,ye.Leading)[0];return a&&(Mr(e.originalText,Ie(i.typeArguments??i.tag),Me(a))?s=se:s=" "),Ko(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),s,In,n])}function oR(t,e,r){let{node:n}=t,i=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(i.length>1||i.some(s=>s.length>0)){e.__inJestEach=!0;let s=t.map(r,"expressions");e.__inJestEach=!1;let a=s.map(p=>"${"+eC(p,{...e,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let p=1;p<n.quasis.length;p++){let f=Qe(0,o,-1),h=a[p-1];f.cells.push(h),h.includes(`
|
|
97
|
+
`)&&(f.hasLineBreak=!0),n.quasis[p].value.raw.includes(`
|
|
98
|
+
`)&&o.push({hasLineBreak:!1,cells:[]})}let u=Math.max(i.length,...o.map(p=>p.cells.length)),l=Array.from({length:u}).fill(0),c=[{cells:i},...o.filter(p=>p.cells.length>0)];for(let{cells:p}of c.filter(f=>!f.hasLineBreak))for(let[f,h]of p.entries())l[f]=Math.max(l[f],ma(h));return[In,"`",ae([oe,qe(oe,c.map(p=>qe(" | ",p.cells.map((f,h)=>p.hasLineBreak?f:f+" ".repeat(l[h]-ma(f))))))]),oe,"`"]}}function uR(t,e){let{node:r}=t,n=e();return fe(r)&&(n=Q([ae([se,n]),se])),["${",n,In,"}"]}function Tm(t,e){return t.map(()=>uR(t,e),"expressions")}function rC(t,e){return Fa(t,r=>typeof r=="string"?e?Ot(0,r,/(\\*)`/gu,"$1$1\\`"):nC(r):r)}function nC(t){return Ot(0,t,/([\\`]|\$\{)/gu,"\\$1")}function lR({node:t,parent:e}){let r=/^[fx]?(?:describe|it|test)$/u;return e.type==="TaggedTemplateExpression"&&e.quasi===t&&e.tag.type==="MemberExpression"&&e.tag.property.type==="Identifier"&&e.tag.property.name==="each"&&(e.tag.object.type==="Identifier"&&r.test(e.tag.object.name)||e.tag.object.type==="MemberExpression"&&e.tag.object.property.type==="Identifier"&&(e.tag.object.property.name==="only"||e.tag.object.property.name==="skip")&&e.tag.object.object.type==="Identifier"&&r.test(e.tag.object.object.name))}var wm=[(t,e)=>t.type==="ObjectExpression"&&e==="properties",(t,e)=>t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="Component"&&e==="arguments",(t,e)=>t.type==="Decorator"&&e==="expression"];function cR(t){let e=n=>n.type==="TemplateLiteral",r=(n,i)=>Li(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&i==="value";return t.match(e,(n,i)=>Vt(n)&&i==="elements",r,...wm)||t.match(e,r,...wm)}function pR(t){return t.match(e=>e.type==="TemplateLiteral",(e,r)=>Li(e)&&!e.computed&&e.key.type==="Identifier"&&e.key.name==="template"&&r==="value",...wm)}function Sm(t,e){return fe(t,ye.Block|ye.Leading,({value:r})=>r===` ${e} `)}function iC({node:t,parent:e},r){return Sm(t,r)||hR(e)&&Sm(e,r)||e.type==="ExpressionStatement"&&Sm(e,r)}function hR(t){return t.type==="AsConstExpression"||t.type==="TSAsExpression"&&t.typeAnnotation.type==="TSTypeReference"&&t.typeAnnotation.typeName.type==="Identifier"&&t.typeAnnotation.typeName.name==="const"}async function fR(t,e,r){let{node:n}=r,i="";for(let[u,l]of n.quasis.entries()){let{raw:c}=l.value;u>0&&(i+="@prettier-placeholder-"+(u-1)+"-id"),i+=c}let s=await t(i,{parser:"scss"}),a=Tm(r,e),o=dR(s,a);if(!o)throw new Error("Couldn't insert all the expressions");return["`",ae([oe,o]),se,"`"]}function dR(t,e){if(!lt(e))return t;let r=0,n=Fa(bm(t),i=>typeof i!="string"||!i.includes("@prettier-placeholder")?i:i.split(/@prettier-placeholder-(\d+)-id/u).map((s,a)=>a%2===0?As(s):(r++,e[s])));return e.length===r?n:null}function mR(t){return t.match(void 0,(e,r)=>r==="quasi"&&e.type==="TaggedTemplateExpression"&&em(e.tag,["css","css.global","css.resolve"]))||t.match(void 0,(e,r)=>r==="expression"&&e.type==="JSXExpressionContainer",(e,r)=>r==="children"&&e.type==="JSXElement"&&e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="jsx"))}function mc(t){return t.type==="Identifier"&&t.name==="styled"}function sC(t){return/^[A-Z]/u.test(t.object.name)&&t.property.name==="extend"}function gR({parent:t}){if(!t||t.type!=="TaggedTemplateExpression")return!1;let e=t.tag.type==="ParenthesizedExpression"?t.tag.expression:t.tag;switch(e.type){case"MemberExpression":return mc(e.object)||sC(e);case"CallExpression":return mc(e.callee)||e.callee.type==="MemberExpression"&&(e.callee.object.type==="MemberExpression"&&(mc(e.callee.object.object)||sC(e.callee.object))||e.callee.object.type==="CallExpression"&&mc(e.callee.object.callee));case"Identifier":return e.name==="css";default:return!1}}function yR({parent:t,grandparent:e}){return e?.type==="JSXAttribute"&&t.type==="JSXExpressionContainer"&&e.name.type==="JSXIdentifier"&&e.name.name==="css"}var DR=t=>mR(t)||gR(t)||yR(t)||cR(t);async function ER(t,e,r){let{node:n}=r,i=n.quasis.length,s=Tm(r,e),a=[];for(let o=0;o<i;o++){let u=n.quasis[o],l=o===0,c=o===i-1,p=u.value.cooked,f=p.split(`
|
|
99
|
+
`),h=f.length,m=s[o],g=h>2&&f[0].trim()===""&&f[1].trim()==="",y=h>2&&f[h-1].trim()===""&&f[h-2].trim()==="",D=f.every(x=>/^\s*(?:#[^\n\r]*)?$/u.test(x));if(!c&&/#[^\n\r]*$/u.test(f[h-1]))return null;let d=null;D?d=xR(f):d=await t(p,{parser:"graphql"}),d?(d=rC(d,!1),!l&&g&&a.push(""),a.push(d),!c&&y&&a.push("")):!l&&!c&&g&&a.push(""),m&&a.push(m)}return["`",ae([oe,qe(oe,a)]),oe,"`"]}function xR(t){let e=[],r=!1,n=t.map(i=>i.trim());for(let[i,s]of n.entries())s!==""&&(n[i-1]===""&&r?e.push([oe,s]):e.push(s),r=!0);return e.length===0?null:qe(oe,e)}function CR({node:t,parent:e}){return iC({node:t,parent:e},"GraphQL")||e&&(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"&&e.tag.object.name==="graphql"&&e.tag.property.name==="experimental"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"))||e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="graphql")}var km=0;async function aC(t,e,r,n,i){let{node:s}=n,a=km;km=km+1>>>0;let o=D=>`PRETTIER_HTML_PLACEHOLDER_${D}_${a}_IN_JS`,u=s.quasis.map((D,d,x)=>d===x.length-1?D.value.cooked:D.value.cooked+o(d)).join(""),l=Tm(n,r),c=new RegExp(o("(\\d+)"),"gu"),p=0,f=await e(u,{parser:t,__onHtmlRoot(D){p=D.children.length}}),h=Fa(f,D=>{if(typeof D!="string")return D;let d=[],x=D.split(c);for(let A=0;A<x.length;A++){let E=x[A];if(A%2===0){E&&(E=nC(E),i.__embeddedInHtml&&(E=Ot(0,E,/<\/(?=script\b)/giu,"<\\/")),d.push(E));continue}let C=Number(E);d.push(l[C])}return d}),m=/^\s/u.test(u)?" ":"",g=/\s$/u.test(u)?" ":"",y=i.htmlWhitespaceSensitivity==="ignore"?oe:m&&g?de:null;return y?Q(["`",ae([y,Q(h)]),y,"`"]):Ko({hug:!1},Q(["`",m,p>1?ae(Q(h)):Q(h),g,"`"]))}function AR(t){return iC(t,"HTML")||t.match(e=>e.type==="TemplateLiteral",(e,r)=>e.type==="TaggedTemplateExpression"&&e.tag.type==="Identifier"&&e.tag.name==="html"&&r==="quasi")}var bR=aC.bind(void 0,"html"),vR=aC.bind(void 0,"angular");async function FR(t,e,r){let{node:n}=r,i=Ot(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(u,l)=>"\\".repeat(l.length/2)+"`"),s=TR(i),a=s!=="";a&&(i=Ot(0,i,new RegExp(`^${s}`,"gmu"),""));let o=rC(await t(i,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",a?ae([se,o]):[Kx,qM(o)],se,"`"]}function TR(t){let e=t.match(/^([^\S\n]*)\S/mu);return e===null?"":e[1]}function wR({node:t,parent:e}){return e?.type==="TaggedTemplateExpression"&&t.quasis.length===1&&e.tag.type==="Identifier"&&(e.tag.name==="md"||e.tag.name==="markdown")}var SR=[{test:DR,print:fR},{test:CR,print:ER},{test:AR,print:bR},{test:pR,print:vR},{test:wR,print:FR}].map(({test:t,print:e})=>({test:t,print:PR(e)}));function kR(t){let{node:e}=t;if(e.type!=="TemplateLiteral"||_R(e))return;let r=SR.find(({test:n})=>n(t));if(r)return e.quasis.length===1&&e.quasis[0].value.raw.trim()===""?"``":r.print}function PR(t){return async(...e)=>{let r=await t(...e);return r&&Ko({embed:!0,...r.label},r)}}function _R({quasis:t}){return t.some(({value:{cooked:e}})=>e===null)}var BR=kR,NR=/\*\/$/,$R=/^\/\*\*?/,oC=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,IR=/(^|\s+)\/\/([^\n\r]*)/g,uC=/^(\r?\n)+/,OR=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,lC=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,LR=/(\r?\n|^) *\* ?/g,cC=[];function MR(t){let e=t.match(oC);return e?e[0].trimStart():""}function RR(t){let e=t.match(oC)?.[0];return e==null?t:t.slice(e.length)}function jR(t){t=Ot(0,t.replace($R,"").replace(NR,""),LR,"$1");let e="";for(;e!==t;)e=t,t=Ot(0,t,OR,`
|
|
100
|
+
$1 $2
|
|
101
|
+
`);t=t.replace(uC,"").trimEnd();let r=Object.create(null),n=Ot(0,t,lC,"").replace(uC,"").trimEnd(),i;for(;i=lC.exec(t);){let s=Ot(0,i[2],IR,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let a=r[i[1]];r[i[1]]=[...cC,...Array.isArray(a)?a:[a],s]}else r[i[1]]=s}return{comments:n,pragmas:r}}function qR({comments:t="",pragmas:e={}}){let r=Object.keys(e),n=r.flatMap(s=>pC(s,e[s])).map(s=>` * ${s}
|
|
102
|
+
`).join("");if(!t){if(r.length===0)return"";if(r.length===1&&!Array.isArray(e[r[0]])){let s=e[r[0]];return`/** ${pC(r[0],s)[0]} */`}}let i=t.split(`
|
|
103
|
+
`).map(s=>` * ${s}`).join(`
|
|
104
|
+
`)+`
|
|
105
|
+
`;return`/**
|
|
106
|
+
`+(t?i:"")+(t&&r.length>0?` *
|
|
107
|
+
`:"")+n+" */"}function pC(t,e){return[...cC,...Array.isArray(e)?e:[e]].map(r=>`@${t} ${r}`.trim())}var UR="format";function zR(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
|
108
|
+
`);return e===-1?t:t.slice(0,e)}var VR=zR;function HR(t){let e=VR(t);e&&(t=t.slice(e.length+1));let r=MR(t),{pragmas:n,comments:i}=jR(r);return{shebang:e,text:t,pragmas:n,comments:i}}function WR(t){let{shebang:e,text:r,pragmas:n,comments:i}=HR(t),s=RR(r),a=qR({pragmas:{[UR]:"",...n},comments:i.trimStart()});return(e?`${e}
|
|
109
|
+
`:"")+a+(s.startsWith(`
|
|
110
|
+
`)?`
|
|
111
|
+
`:`
|
|
112
|
+
|
|
113
|
+
`)+s}function GR(t){if(!ln(t))return!1;let e=`*${t.value}*`.split(`
|
|
114
|
+
`);return e.length>1&&e.every(r=>r.trimStart()[0]==="*")}var Pm=new WeakMap;function JR(t){return Pm.has(t)||Pm.set(t,GR(t)),Pm.get(t)}var KR=JR;function YR(t,e){let r=t.node;if(zo(r))return e.originalText.slice(Me(r),Ie(r)).trimEnd();if(KR(r))return XR(r);if(ln(r))return["/*",As(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function XR(t){let e=t.value.split(`
|
|
115
|
+
`);return["/*",qe(oe,e.map((r,n)=>n===0?r.trimEnd():" "+(n<e.length-1?r.trim():r.trimStart()))),"*/"]}function _m(t,e){if(t.isRoot)return!1;let{node:r,key:n,parent:i}=t;if(e.__isInHtmlInterpolation&&!e.bracketSpacing&&tj(r)&&Yo(t))return!0;if(QR(r))return!1;if(r.type==="Identifier"){if(r.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name)||n==="left"&&(r.name==="async"&&!i.await||r.name==="let")&&i.type==="ForOfStatement")return!0;if(r.name==="let"){let s=t.findAncestor(a=>a.type==="ForOfStatement")?.left;if(s&&ir(s,a=>a===r))return!0}if(n==="object"&&r.name==="let"&&i.type==="MemberExpression"&&i.computed&&!i.optional){let s=t.findAncestor(o=>o.type==="ExpressionStatement"||o.type==="ForStatement"||o.type==="ForInStatement"),a=s?s.type==="ExpressionStatement"?s.expression:s.type==="ForStatement"?s.init:s.left:void 0;if(a&&ir(a,o=>o===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let s=t.findAncestor(a=>!fn(a));if(s!==i&&s.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let s=t.findAncestor(a=>a.type==="ExpressionStatement")?.expression;if(s&&ir(s,a=>a===r))return!0}if(r.type==="ObjectExpression"){let s=t.findAncestor(a=>a.type==="ArrowFunctionExpression")?.body;if(s&&s.type!=="SequenceExpression"&&s.type!=="AssignmentExpression"&&ir(s,a=>a===r))return!0}switch(i.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&<(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return hC(t,e)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!nj(r))return!0;break;case"TypeAnnotation":if(t.match(void 0,void 0,(s,a)=>a==="returnType"&&s.type==="ArrowFunctionExpression")&&ej(r))return!0;break;case"BinaryExpression":if(n==="left"&&(i.operator==="in"||i.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&t.match(void 0,void 0,(s,a)=>a==="declarations"&&s.type==="VariableDeclaration",(s,a)=>a==="left"&&s.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(i.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&i.operator==="+"||r.operator==="--"&&i.operator==="-");case"UnaryExpression":switch(i.type){case"UnaryExpression":return r.operator===i.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&i.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(i.type==="UpdateExpression"||r.operator==="in"&&ZR(t))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let s=t.grandparent;if(s.type==="BinaryExpression"&&s.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(i.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!fn(r);case"ConditionalExpression":return fn(r)||yL(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||fn(r));case"LogicalExpression":if(r.type==="LogicalExpression")return i.operator!==r.operator;case"BinaryExpression":{let{operator:s,type:a}=r;if(!s&&a!=="TSTypeAssertion")return!0;let o=lc(s),u=i.operator,l=lc(u);return!!(l>o||n==="right"&&l===o||l===o&&!lm(u,s)||l<o&&s==="%"&&(u==="+"||u==="-")||PL(u))}default:return!1}case"SequenceExpression":return i.type!=="ForStatement";case"YieldExpression":if(i.type==="AwaitExpression"||i.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(i.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!r.argument&&i.operator==="|>");default:return!1}case"TSFunctionType":if(t.match(s=>s.type==="TSFunctionType",(s,a)=>a==="typeAnnotation"&&s.type==="TSTypeAnnotation",(s,a)=>a==="returnType"&&s.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(n==="extendsType"&&Mi(r)&&i.type===r.type||n==="checkType"&&Mi(i))return!0;if(n==="extendsType"&&i.type==="TSConditionalType"){let{typeAnnotation:s}=r.returnType||r.typeAnnotation;if(s.type==="TSTypePredicate"&&s.typeAnnotation&&(s=s.typeAnnotation.typeAnnotation),s.type==="TSInferType"&&s.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(Nn(i)||Wo(i))return!0;case"TSInferType":if(r.type==="TSInferType"){if(i.type==="TSRestType")return!1;if(n==="types"&&(i.type==="TSUnionType"||i.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return i.type==="TSArrayType"||i.type==="TSOptionalType"||i.type==="TSRestType"||n==="objectType"&&i.type==="TSIndexedAccessType"||i.type==="TSTypeOperator"||i.type==="TSTypeAnnotation"&&t.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&i.type==="TSIndexedAccessType"||n==="elementType"&&i.type==="TSArrayType";case"TypeOperator":return i.type==="ArrayTypeAnnotation"||i.type==="NullableTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||i.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||n==="elementType"&&i.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return i.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return i.type==="TypeOperator"||i.type==="KeyofTypeAnnotation"||i.type==="ArrayTypeAnnotation"||i.type==="NullableTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="UnionTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(t.match(void 0,(a,o)=>o==="typeAnnotation"&&a.type==="TypeAnnotation",(a,o)=>o==="returnType"&&a.type==="ArrowFunctionExpression")||t.match(void 0,(a,o)=>o==="typeAnnotation"&&a.type==="TypePredicate",(a,o)=>o==="typeAnnotation"&&a.type==="TypeAnnotation",(a,o)=>o==="returnType"&&a.type==="ArrowFunctionExpression"))return!0;let s=i.type==="NullableTypeAnnotation"?t.grandparent:i;return s.type==="UnionTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="checkType"&&i.type==="ConditionalTypeAnnotation"||n==="extendsType"&&i.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType?.typeParameter.bound||s.type==="NullableTypeAnnotation"||i.type==="FunctionTypeParam"&&i.name===null&&Yt(r).some(a=>a.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return n==="objectType"&&i.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&i.type==="ExpressionStatement"&&typeof i.directive!="string"){let s=t.grandparent;return s.type==="Program"||s.type==="BlockStatement"}return n==="object"&&ct(i)&&Pn(r);case"AssignmentExpression":return!((n==="init"||n==="update")&&i.type==="ForStatement"||n==="expression"&&r.left.type!=="ObjectPattern"&&i.type==="ExpressionStatement"||n==="key"&&i.type==="TSPropertySignature"||i.type==="AssignmentExpression"||n==="expressions"&&i.type==="SequenceExpression"&&t.match(void 0,void 0,(s,a)=>(a==="init"||a==="update")&&s.type==="ForStatement")||n==="value"&&i.type==="Property"&&t.match(void 0,void 0,(s,a)=>a==="properties"&&s.type==="ObjectPattern")||i.type==="NGChainedExpression"||n==="node"&&i.type==="JsExpressionRoot");case"ConditionalExpression":switch(i.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return e.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(i.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(i.type){case"BinaryExpression":return i.operator!=="|>"||r.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return n==="expression";case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(i.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(rj(t))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")){let s=r;for(;s;)switch(s.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":s=s.object;break;case"TaggedTemplateExpression":s=s.tag;break;case"TSNonNullExpression":s=s.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")||n==="object"&&ct(i);case"NGPipeExpression":return!(i.type==="NGRoot"||i.type==="NGMicrosyntaxExpression"||i.type==="ObjectProperty"&&!r.extra?.parenthesized||Vt(i)||n==="arguments"&&Ye(i)||n==="right"&&i.type==="NGPipeExpression"||n==="property"&&i.type==="MemberExpression"||i.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&i.type==="BinaryExpression"&&i.operator==="<"||!Vt(i)&&i.type!=="ArrowFunctionExpression"&&i.type!=="AssignmentExpression"&&i.type!=="AssignmentPattern"&&i.type!=="BinaryExpression"&&i.type!=="NewExpression"&&i.type!=="ConditionalExpression"&&i.type!=="ExpressionStatement"&&i.type!=="JsExpressionRoot"&&i.type!=="JSXAttribute"&&i.type!=="JSXElement"&&i.type!=="JSXExpressionContainer"&&i.type!=="JSXFragment"&&i.type!=="LogicalExpression"&&!Ye(i)&&!Li(i)&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&i.type!=="TypeCastExpression"&&i.type!=="VariableDeclarator"&&i.type!=="YieldExpression"&&i.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&ct(i);case"MatchOrPattern":return i.type==="MatchAsPattern"}return!1}var QR=_e(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function ZR(t){let e=0,{node:r}=t;for(;r;){let n=t.getParentNode(e++);if(n?.type==="ForStatement"&&n.init===r)return!0;r=n}return!1}function ej(t){return rm(t,e=>e.type==="ObjectTypeAnnotation"&&rm(e,r=>r.type==="FunctionTypeAnnotation"))}function tj(t){return cn(t)}function Yo(t){let{parent:e,key:r}=t;switch(e.type){case"NGPipeExpression":if(r==="arguments"&&t.isLast)return t.callParent(Yo);break;case"ObjectProperty":if(r==="value")return t.callParent(()=>t.key==="properties"&&t.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return t.callParent(Yo);break;case"ConditionalExpression":if(r==="alternate")return t.callParent(Yo);break;case"UnaryExpression":if(e.prefix)return t.callParent(Yo);break}return!1}function hC(t,e){let{node:r,parent:n}=t;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!_m(t,e):!nm(r)||n.type!=="ExportDefaultDeclaration"&&_m(t,e)?!1:t.call(()=>hC(t,e),...fx(r))}function rj(t){return!!(t.match(void 0,(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="tag"&&e.type==="TaggedTemplateExpression")||t.match(e=>e.type==="OptionalCallExpression"||e.type==="OptionalMemberExpression",(e,r)=>r==="tag"&&e.type==="TaggedTemplateExpression")||t.match(e=>e.type==="OptionalCallExpression"||e.type==="OptionalMemberExpression",(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="tag"&&e.type==="TaggedTemplateExpression")||t.match(void 0,(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="tag"&&e.type==="TaggedTemplateExpression")||t.match(void 0,(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="tag"&&e.type==="TaggedTemplateExpression")||t.match(e=>e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression",(e,r)=>r==="object"&&e.type==="MemberExpression"||r==="callee"&&(e.type==="CallExpression"||e.type==="NewExpression"))||t.match(e=>e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression",(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="object"&&e.type==="MemberExpression"||r==="callee"&&e.type==="CallExpression")||t.match(e=>e.type==="CallExpression"||e.type==="MemberExpression",(e,r)=>r==="expression"&&e.type==="ChainExpression")&&(t.match(void 0,void 0,(e,r)=>r==="callee"&&(e.type==="CallExpression"&&!e.optional||e.type==="NewExpression")||r==="object"&&e.type==="MemberExpression"&&!e.optional)||t.match(void 0,void 0,(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="object"&&e.type==="MemberExpression"||r==="callee"&&e.type==="CallExpression"))||t.match(e=>e.type==="CallExpression"||e.type==="MemberExpression",(e,r)=>r==="expression"&&e.type==="TSNonNullExpression",(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="object"&&e.type==="MemberExpression"||r==="callee"&&e.type==="CallExpression"))}function Bm(t){return t.type==="Identifier"?!0:ct(t)?!t.computed&&!t.optional&&t.property.type==="Identifier"&&Bm(t.object):!1}function nj(t){return t.type==="ChainExpression"&&(t=t.expression),Bm(t)||Ye(t)&&!t.optional&&Bm(t.callee)}var Ui=_m;function ij(t,e){let r=e-1;r=ga(t,r,{backwards:!0}),r=ya(t,r,{backwards:!0}),r=ga(t,r,{backwards:!0});let n=ya(t,r,{backwards:!0});return r!==n}var sj=ij,aj=()=>!0;function Nm(t,e){let r=t.node;return r.printed=!0,e.printer.printComment(t,e)}function oj(t,e){let r=t.node,n=[Nm(t,e)],{printer:i,originalText:s,locStart:a,locEnd:o}=e;if(i.isBlockComment?.(r)){let l=Ar(s,o(r))?Ar(s,a(r),{backwards:!0})?oe:de:" ";n.push(l)}else n.push(oe);let u=ya(s,ga(s,o(r)));return u!==!1&&Ar(s,u)&&n.push(oe),n}function uj(t,e,r){let n=t.node,i=Nm(t,e),{printer:s,originalText:a,locStart:o}=e,u=s.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||Ar(a,o(n),{backwards:!0})){let l=sj(a,o(n));return{doc:Yx([oe,l?oe:"",i]),isBlock:u,hasLineSuffix:!0}}return!u||r?.hasLineSuffix?{doc:[Yx([" ",i]),oi],isBlock:u,hasLineSuffix:!0}:{doc:[" ",i],isBlock:u,hasLineSuffix:!1}}function pt(t,e,r={}){let{node:n}=t;if(!lt(n?.comments))return"";let{indent:i=!1,marker:s,filter:a=aj}=r,o=[];if(t.each(({node:l})=>{l.leading||l.trailing||l.marker!==s||!a(l)||o.push(Nm(t,e))},"comments"),o.length===0)return"";let u=qe(oe,o);return i?ae([oe,u]):u}function gc(t,e){let r=t.node;if(!r)return{};let n=e[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let i=[],s=[],a;return t.each(()=>{let o=t.node;if(n?.has(o))return;let{leading:u,trailing:l}=o;u?i.push(oj(t,e)):l&&(a=uj(t,e,a),s.push(a.doc))},"comments"),{leading:i,trailing:s}}function Kr(t,e,r){let{leading:n,trailing:i}=gc(t,r);return!n&&!i?e:vm(e,s=>[n,s,i])}var yc=class extends Error{name="ArgExpansionBailout"};function vs(t,e,r,n,i){let s=t.node,a=Yt(s),o=i&&s.typeParameters?r("typeParameters"):"";if(a.length===0)return[o,"(",pt(t,e,{filter:h=>dn(e.originalText,Ie(h))===")"}),")"];let{parent:u}=t,l=oc(u),c=fC(s),p=[];if(BL(t,(h,m)=>{let g=m===a.length-1;g&&s.rest&&p.push("..."),p.push(r()),!g&&(p.push(","),l||c?p.push(" "):Bn(a[m],e)?p.push(oe,oe):p.push(de))}),n&&!cj(t)){if(sr(o)||sr(p))throw new yc;return Q([hc(o),"(",hc(p),")"])}let f=a.every(h=>!lt(h.decorators));return c&&f?[o,"(",...p,")"]:l?[o,"(",...p,")"]:(gx(u)||CL(u)||u.type==="TypeAlias"||u.type==="UnionTypeAnnotation"||u.type==="IntersectionTypeAnnotation"||u.type==="FunctionTypeAnnotation"&&u.returnType===s)&&a.length===1&&a[0].name===null&&s.this!==a[0]&&a[0].typeAnnotation&&s.typeParameters===null&&am(a[0].typeAnnotation)&&!s.rest?e.arrowParens==="always"||s.type==="HookTypeAnnotation"?["(",...p,")"]:p:[o,"(",ae([se,...p]),Pe(!_L(s)&&_n(e,"all")?",":""),se,")"]}function fC(t){if(!t)return!1;let e=Yt(t);if(e.length!==1)return!1;let[r]=e;return!fe(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Oi(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Oi(r.typeAnnotation)&&r!==t.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||cn(r.right)&&r.right.properties.length===0||Vt(r.right)&&r.right.elements.length===0))}function lj(t){let e;return t.returnType?(e=t.returnType,e.typeAnnotation&&(e=e.typeAnnotation)):t.typeAnnotation&&(e=t.typeAnnotation),e}function Ta(t,e){let r=lj(t);if(!r)return!1;let n=t.typeParameters?.params;if(n){if(n.length>1)return!1;if(n.length===1){let i=n[0];if(i.constraint||i.default)return!1}}return Yt(t).length===1&&(Oi(r)||sr(e))}function cj(t){return t.match(e=>e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement",(e,r)=>{if(e.type==="CallExpression"&&r==="arguments"&&e.arguments.length===1&&e.callee.type==="CallExpression"){let n=e.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(e,r)=>e.type==="VariableDeclarator"&&r==="init"||e.type==="ExportDefaultDeclaration"&&r==="declaration"||e.type==="TSExportAssignment"&&r==="expression"||e.type==="AssignmentExpression"&&r==="right"&&e.left.type==="MemberExpression"&&e.left.object.type==="Identifier"&&e.left.object.name==="module"&&e.left.property.type==="Identifier"&&e.left.property.name==="exports",e=>e.type!=="VariableDeclaration"||e.kind==="const"&&e.declarations.length===1)}function pj(t){let e=Yt(t);return e.length>1&&e.some(r=>r.type==="TSParameterProperty")}function Xo(t,e){return(e==="params"||e==="this"||e==="rest")&&fC(t)}function ar(t){let{node:e}=t;return!e.optional||e.type==="Identifier"&&e===t.parent.key?"":Ye(e)||ct(e)&&e.computed||e.type==="OptionalIndexedAccessType"?"?.":"?"}function dC(t){return t.node.definite||t.match(void 0,(e,r)=>r==="id"&&e.type==="VariableDeclarator"&&e.definite)?"!":""}var hj=_e(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Rr(t){let{node:e}=t;return e.declare||hj(e)&&t.parent.type!=="DeclareExportDeclaration"?"declare ":""}var fj=_e(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Dc({node:t}){return t.abstract||fj(t)?"abstract ":""}function zi(t,e,r){return t.type==="EmptyStatement"?fe(t,ye.Leading)?[" ",e]:e:t.type==="BlockStatement"||r?[" ",e]:ae([de,e])}function Ec(t){return t.accessibility?t.accessibility+" ":""}var dj=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,mj=t=>dj.test(t),gj=mj;function yj(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var wa=yj,Dj=0;function mC(t,e,r){let{node:n,parent:i,grandparent:s,key:a}=t,o=a!=="body"&&(i.type==="IfStatement"||i.type==="WhileStatement"||i.type==="SwitchStatement"||i.type==="DoWhileStatement"),u=n.operator==="|>"&&t.root.extra?.__isUsingHackPipeline,l=$m(t,e,r,!1,o);if(o)return l;if(u)return Q(l);if(a==="callee"&&(Ye(i)||i.type==="NewExpression")||i.type==="UnaryExpression"||ct(i)&&!i.computed)return Q([ae([se,...l]),se]);let c=i.type==="ReturnStatement"||i.type==="ThrowStatement"||i.type==="JSXExpressionContainer"&&s.type==="JSXAttribute"||n.operator!=="|"&&i.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(i.type==="NGRoot"&&e.parser==="__ng_binding"||i.type==="NGMicrosyntaxExpression"&&s.type==="NGMicrosyntax"&&s.body.length===1)||n===i.body&&i.type==="ArrowFunctionExpression"||n!==i.body&&i.type==="ForStatement"||i.type==="ConditionalExpression"&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&!Ye(s)&&s.type!=="NewExpression"||i.type==="TemplateLiteral"||xj(t),p=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="PropertyDefinition"||i.type==="TSAbstractPropertyDefinition"||i.type==="ClassPrivateProperty"||Li(i),f=ni(n.left)&&lm(n.operator,n.left.operator);if(c||Qo(n)&&!f||!Qo(n)&&p)return Q(l);if(l.length===0)return"";let h=Mt(n.right),m=l.findIndex(A=>typeof A!="string"&&!Array.isArray(A)&&A.type===Jr),g=l.slice(0,m===-1?1:m+1),y=l.slice(g.length,h?-1:void 0),D=Symbol("logicalChain-"+ ++Dj),d=Q([...g,ae(y)],{id:D});if(!h)return d;let x=Qe(0,l,-1);return Q([d,Jo(x,{groupId:D})])}function $m(t,e,r,n,i){let{node:s}=t;if(!ni(s))return[Q(r())];let a=[];lm(s.operator,s.left.operator)?a=t.call(()=>$m(t,e,r,!0,i),"left"):a.push(Q(r("left")));let o=Qo(s),u=s.right.type==="ChainExpression"?s.right.expression:s.right,l=(s.operator==="|>"||s.type==="NGPipeExpression"||Ej(t,e))&&!pn(e.originalText,u),c=!fe(u,ye.Leading,Px)&&pn(e.originalText,u),p=s.type==="NGPipeExpression"?"|":s.operator,f=s.type==="NGPipeExpression"&&s.arguments.length>0?Q(ae([se,": ",qe([de,": "],t.map(()=>mn(2,Q(r())),"arguments"))])):"",h;if(o)h=[p,pn(e.originalText,u)?ae([de,r("right"),f]):[" ",r("right"),f]];else{let y=p==="|>"&&t.root.extra?.__isUsingHackPipeline?t.call(()=>$m(t,e,r,!0,i),"right"):r("right");if(e.experimentalOperatorPosition==="start"){let D="";if(c)switch(qi(y)){case ii:D=y.splice(0,1)[0];break;case si:D=y.contents.splice(0,1)[0];break}h=[de,D,p," ",y,f]}else h=[l?de:"",p,l?" ":de,y,f]}let{parent:m}=t,g=fe(s.left,ye.Trailing|ye.Line);if((g||!(i&&s.type==="LogicalExpression")&&m.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type)&&(h=Q(h,{shouldBreak:g})),e.experimentalOperatorPosition==="start"?a.push(o||c?" ":"",h):a.push(l?"":" ",h),n&&fe(s)){let y=bm(Kr(t,a,e));return y.type===Ri?y.parts:Array.isArray(y)?y:[y]}return a}function Qo(t){return t.type!=="LogicalExpression"?!1:!!(cn(t.right)&&t.right.properties.length>0||Vt(t.right)&&t.right.elements.length>0||Mt(t.right))}var gC=t=>t.type==="BinaryExpression"&&t.operator==="|";function Ej(t,e){return(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&gC(t.node)&&!t.hasAncestor(r=>!gC(r)&&r.type!=="JsExpressionRoot")}function xj(t){if(t.key!=="arguments")return!1;let{parent:e}=t;if(!(Ye(e)&&!e.optional&&e.arguments.length===1))return!1;let{callee:r}=e;return r.type==="Identifier"&&r.name==="Boolean"}function yC(t,e,r){let{node:n}=t,{parent:i}=t,s=i.type!=="TypeParameterInstantiation"&&(!Mi(i)||!e.experimentalTernaries)&&i.type!=="TSTypeParameterInstantiation"&&i.type!=="GenericTypeAnnotation"&&i.type!=="TSTypeReference"&&i.type!=="TSTypeAssertion"&&i.type!=="TupleTypeAnnotation"&&i.type!=="TSTupleType"&&!(i.type==="FunctionTypeParam"&&!i.name&&t.grandparent.this!==i)&&!((hm(i)||i.type==="VariableDeclarator")&&pn(e.originalText,n))&&!(hm(i)&&fe(i.id,ye.Trailing|ye.Line)),a=DC(n),o=t.map(()=>{let h=r();return a||(h=mn(2,h)),Kr(t,h,e)},"types"),u="",l="";if(wx(t)&&({leading:u,trailing:l}=gc(t,e)),a)return[u,qe(" | ",o),l];let c=s&&!pn(e.originalText,n),p=[Pe([c?de:"","| "]),qe([de,"| "],o)];if(Ui(t,e))return[u,Q([ae(p),se]),l];let f=[u,Q(p)];return(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?[Q([ae([Pe(["(",se]),f]),se,Pe(")")]),l]:[Q(s?ae(f):f),l]}var Cj=_e(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),Aj=_e(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function DC(t){let{types:e}=t;if(e.some(n=>fe(n)))return!1;let r=e.find(n=>Aj(n));return r?e.every(n=>n===r||Cj(n)):!1}function bj(t){return am(t)||Oi(t)?!0:Nn(t)?DC(t):!1}var vj=new WeakSet;function Ht(t,e,r="typeAnnotation"){let{node:{[r]:n}}=t;if(!n)return"";let i=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let s=t.call(EC,r);(s==="=>"||s===":"&&fe(n,ye.Leading))&&(i=!0),vj.add(n)}return i?[" ",e(r)]:e(r)}var EC=t=>t.match(e=>e.type==="TSTypeAnnotation",(e,r)=>(r==="returnType"||r==="typeAnnotation")&&(e.type==="TSFunctionType"||e.type==="TSConstructorType"))?"=>":t.match(e=>e.type==="TSTypeAnnotation",(e,r)=>r==="typeAnnotation"&&(e.type==="TSJSDocNullableType"||e.type==="TSJSDocNonNullableType"||e.type==="TSTypePredicate"))||t.match(e=>e.type==="TypeAnnotation",(e,r)=>r==="typeAnnotation"&&e.type==="Identifier",(e,r)=>r==="id"&&e.type==="DeclareFunction")||t.match(e=>e.type==="TypeAnnotation",(e,r)=>r==="typeAnnotation"&&e.type==="Identifier",(e,r)=>r==="id"&&e.type==="DeclareHook")||t.match(e=>e.type==="TypeAnnotation",(e,r)=>r==="bound"&&e.type==="TypeParameter"&&e.usesExtendsBound)?"":":";function xC(t,e,r){let n=EC(t);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function Fj(t,e,r,n){let{node:i}=t,s=i.inexact?"...":"";return fe(i,ye.Dangling)?Q([r,s,pt(t,e,{indent:!0}),se,n]):[r,s,n]}function Im(t,e,r){let{node:n}=t,i=[],s="[",a="]",o=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",u=n[o];if(u.length===0)i.push(Fj(t,e,s,a));else{let l=Qe(0,u,-1),c=l?.type!=="RestElement"&&!n.inexact,p=l===null,f=Symbol("array"),h=!e.__inJestEach&&u.length>1&&u.every((y,D,d)=>{let x=y?.type;if(!Vt(y)&&!cn(y))return!1;let A=d[D+1];if(A&&x!==A.type)return!1;let E=Vt(y)?"elements":"properties";return y[E]&&y[E].length>1}),m=CC(n,e),g=c?p?",":_n(e)?m?Pe(",","",{groupId:f}):Pe(","):"":"";i.push(Q([s,ae([se,m?wj(t,e,r,g):[Tj(t,e,r,o,n.inexact),g],pt(t,e)]),se,a],{shouldBreak:h,id:f}))}return i.push(ar(t),Ht(t,r)),i}function CC(t,e){return Vt(t)&&t.elements.length>0&&t.elements.every(r=>r&&(Pn(r)||dx(r)&&!fe(r.argument))&&!fe(r,ye.Trailing|ye.Line,n=>!Ar(e.originalText,Me(n),{backwards:!0})))}function AC({node:t},{originalText:e}){let r=Ie(t);if(r===Me(t))return!1;let{length:n}=e;for(;r<n&&e[r]!==",";)r=Xd(e,Qd(e,r+1));return Zd(e,r)}function Tj(t,e,r,n,i){let s=[];return t.each(({node:a,isLast:o})=>{s.push(a?Q(r()):""),(!o||i)&&s.push([",",de,a&&AC(t,e)?se:""])},n),i&&s.push("..."),s}function wj(t,e,r,n){let i=[];return t.each(({isLast:s,next:a})=>{i.push([r(),s?n:","]),s||i.push(AC(t,e)?[oe,oe]:fe(a,ye.Leading|ye.Line)?oe:de)},"elements"),Gx(i)}function Sj(t,e,r){let{node:n}=t,i=Or(n);if(i.length===0)return["(",pt(t,e),")"];let s=i.length-1;if(_j(i)){let p=["("];return cc(t,(f,h)=>{p.push(r()),h!==s&&p.push(", ")}),p.push(")"),p}let a=!1,o=[];cc(t,({node:p},f)=>{let h=r();f===s||(Bn(p,e)?(a=!0,h=[h,",",oe,oe]):h=[h,",",de]),o.push(h)});let u=!e.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&_n(e,"all")?",":"";function l(){return Q(["(",ae([de,...o]),u,de,")"],{shouldBreak:!0})}if(a||t.parent.type!=="Decorator"&&wL(i))return l();if(Pj(i)){let p=o.slice(1);if(p.some(sr))return l();let f;try{f=r(Fx(n,0),{expandFirstArg:!0})}catch(h){if(h instanceof yc)return l();throw h}return sr(f)?[oi,bs([["(",Q(f,{shouldBreak:!0}),", ",...p,")"],l()])]:bs([["(",f,", ",...p,")"],["(",Q(f,{shouldBreak:!0}),", ",...p,")"],l()])}if(kj(i,o,e)){let p=o.slice(0,-1);if(p.some(sr))return l();let f;try{f=r(Fx(n,-1),{expandLastArg:!0})}catch(h){if(h instanceof yc)return l();throw h}return sr(f)?[oi,bs([["(",...p,Q(f,{shouldBreak:!0}),")"],l()])]:bs([["(",...p,f,")"],["(",...p,Q(f,{shouldBreak:!0}),")"],l()])}let c=["(",ae([se,...o]),Pe(u),se,")"];return bx(t)?c:Q(c,{shouldBreak:o.some(sr)||a})}function Zo(t,e=!1){return cn(t)&&(t.properties.length>0||fe(t))||Vt(t)&&(t.elements.length>0||fe(t))||t.type==="TSTypeAssertion"&&Zo(t.expression)||fn(t)&&Zo(t.expression)||t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&(!t.returnType||!t.returnType.typeAnnotation||t.returnType.typeAnnotation.type!=="TSTypeReference"||Bj(t.body))&&(t.body.type==="BlockStatement"||t.body.type==="ArrowFunctionExpression"&&Zo(t.body,!0)||cn(t.body)||Vt(t.body)||!e&&(Ye(t.body)||t.body.type==="ConditionalExpression")||Mt(t.body))||t.type==="DoExpression"||t.type==="ModuleExpression"}function kj(t,e,r){let n=Qe(0,t,-1);if(t.length===1){let s=Qe(0,e,-1);if(s.label?.embed&&s.label?.hug!==!1)return!0}let i=Qe(0,t,-2);return!fe(n,ye.Leading)&&!fe(n,ye.Trailing)&&Zo(n)&&(!i||i.type!==n.type)&&(t.length!==2||i.type!=="ArrowFunctionExpression"||!Vt(n))&&!(t.length>1&&CC(n,r))}function Pj(t){if(t.length!==2)return!1;let[e,r]=t;return e.type==="ModuleExpression"&&Nj(r)?!0:!fe(e)&&(e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&bC(r)&&!Zo(r)}function bC(t){if(t.type==="ParenthesizedExpression")return bC(t.expression);if(fn(t)||t.type==="TypeCastExpression"){let{typeAnnotation:e}=t;if(e.type==="TypeAnnotation"&&(e=e.typeAnnotation),e.type==="TSArrayType"&&(e=e.elementType,e.type==="TSArrayType"&&(e=e.elementType)),e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference"){let r=e.type==="GenericTypeAnnotation"?e.typeParameters:e.typeArguments;r?.params.length===1&&(e=r.params[0])}return am(e)&&hn(t.expression,1)}return Ca(t)&&Or(t).length>1?!1:ni(t)?hn(t.left,1)&&hn(t.right,1):mx(t)||hn(t)}function _j(t){return t.length===2?vC(t,0):t.length===3?t[0].type==="Identifier"&&vC(t,1):!1}function vC(t,e){let r=t[e],n=t[e+1];return r.type==="ArrowFunctionExpression"&&Yt(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!t.some(i=>fe(i))}function Bj(t){return t.type==="BlockStatement"&&(t.body.some(e=>e.type!=="EmptyStatement")||fe(t,ye.Dangling))}function Nj(t){if(!(t.type==="ObjectExpression"&&t.properties.length===1))return!1;let[e]=t.properties;return Li(e)?!e.computed&&(e.key.type==="Identifier"&&e.key.name==="type"||Lt(e.key)&&e.key.value==="type")&&Lt(e.value)&&e.value.value==="module":!1}var Om=Sj;function $j(t,e,r){return[r("object"),Q(ae([se,FC(t,e,r)]))]}function FC(t,e,r){return["::",r("callee")]}var Ij=t=>((t.type==="ChainExpression"||t.type==="TSNonNullExpression")&&(t=t.expression),Ye(t)&&Or(t).length>0);function Oj(t){let{node:e,ancestors:r}=t;for(let n of r){if(!(ct(n)&&n.object===e||n.type==="TSNonNullExpression"&&n.expression===e))return n.type==="NewExpression"&&n.callee===e;e=n}return!1}function Lj(t,e,r){let n=r("object"),i=TC(t,e,r),{node:s}=t,a=t.findAncestor(l=>!(ct(l)||l.type==="TSNonNullExpression")),o=t.findAncestor(l=>!(l.type==="ChainExpression"||l.type==="TSNonNullExpression")),u=a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier"||Oj(t)||s.computed||s.object.type==="Identifier"&&s.property.type==="Identifier"&&!ct(o)||(o.type==="AssignmentExpression"||o.type==="VariableDeclarator")&&(Ij(s.object)||n.label?.memberChain);return Ko(n.label,[n,u?i:Q(ae([se,i]))])}function TC(t,e,r){let n=r("property"),{node:i}=t,s=ar(t);return i.computed?!i.property||Pn(i.property)?[s,"[",n,"]"]:Q([s,"[",ae([se,n]),se,"]"]):[s,".",n]}function wC(t,e,r){if(t.node.type==="ChainExpression")return t.call(()=>wC(t,e,r),"expression");let n=(t.parent.type==="ChainExpression"?t.grandparent:t.parent).type==="ExpressionStatement",i=[];function s(B){let{originalText:O}=e,_=ba(O,Ie(B));return O.charAt(_)===")"?_!==!1&&Zd(O,_+1):Bn(B,e)}function a(){let{node:B}=t;if(B.type==="ChainExpression")return t.call(a,"expression");if(Ye(B)&&(Ea(B.callee)||Ye(B.callee))){let O=s(B);i.unshift({node:B,hasTrailingEmptyLine:O,printed:[Kr(t,[ar(t),r("typeArguments"),Om(t,e,r)],e),O?oe:""]}),t.call(a,"callee")}else Ea(B)?(i.unshift({node:B,needsParens:Ui(t,e),printed:Kr(t,ct(B)?TC(t,e,r):FC(t,e,r),e)}),t.call(a,"object")):B.type==="TSNonNullExpression"?(i.unshift({node:B,printed:Kr(t,"!",e)}),t.call(a,"expression")):i.unshift({node:B,printed:r()})}let{node:o}=t;i.unshift({node:o,printed:[ar(t),r("typeArguments"),Om(t,e,r)]}),o.callee&&t.call(a,"callee");let u=[],l=[i[0]],c=1;for(;c<i.length&&(i[c].node.type==="TSNonNullExpression"||Ye(i[c].node)||ct(i[c].node)&&i[c].node.computed&&Pn(i[c].node.property));++c)l.push(i[c]);if(!Ye(i[0].node))for(;c+1<i.length&&Ea(i[c].node)&&Ea(i[c+1].node);++c)l.push(i[c]);u.push(l),l=[];let p=!1;for(;c<i.length;++c){if(p&&Ea(i[c].node)){if(i[c].node.computed&&Pn(i[c].node.property)){l.push(i[c]);continue}u.push(l),l=[],p=!1}(Ye(i[c].node)||i[c].node.type==="ImportExpression")&&(p=!0),l.push(i[c]),fe(i[c].node,ye.Trailing)&&(u.push(l),l=[],p=!1)}l.length>0&&u.push(l);function f(B){return/^[A-Z]|^[$_]+$/u.test(B)}function h(B){return B.length<=e.tabWidth}function m(B){let O=B[1][0]?.node.computed;if(B[0].length===1){let $=B[0][0].node;return $.type==="ThisExpression"||$.type==="Identifier"&&(f($.name)||n&&h($.name)||O)}let _=Qe(0,B[0],-1).node;return ct(_)&&_.property.type==="Identifier"&&(f(_.property.name)||O)}let g=u.length>=2&&!fe(u[1][0].node)&&m(u);function y(B){let O=B.map(_=>_.printed);return B.length>0&&Qe(0,B,-1).needsParens?["(",...O,")"]:O}function D(B){return B.length===0?"":ae([oe,qe(oe,B.map(y))])}let d=u.map(y),x=d,A=g?3:2,E=u.flat(),C=E.slice(1,-1).some(B=>fe(B.node,ye.Leading))||E.slice(0,-1).some(B=>fe(B.node,ye.Trailing))||u[A]&&fe(u[A][0].node,ye.Leading);if(u.length<=A&&!C&&!u.some(B=>Qe(0,B,-1).hasTrailingEmptyLine))return bx(t)?x:Q(x);let b=Qe(0,u[g?1:0],-1).node,w=!Ye(b)&&s(b),P=[y(u[0]),g?u.slice(1,2).map(y):"",w?oe:"",D(u.slice(g?2:1))],F=i.map(({node:B})=>B).filter(Ye);function S(){let B=Qe(0,Qe(0,u,-1),-1).node,O=Qe(0,d,-1);return Ye(B)&&sr(O)&&F.slice(0,-1).some(_=>_.arguments.some(Vo))}let I;return C||F.length>2&&F.some(B=>!B.arguments.every(O=>hn(O)))||d.slice(0,-1).some(sr)||S()?I=Q(P):I=[sr(x)||w?oi:"",bs([x,P])],Ko({memberChain:!0},I)}var Mj=wC;function xc(t,e,r){let{node:n}=t,i=n.type==="NewExpression",s=ar(t),a=Or(n),o=n.type!=="TSImportType"&&n.typeArguments?r("typeArguments"):"",u=a.length===1&&Cx(a[0],e.originalText);if(u||jj(t)||qj(t)||oc(n,t.parent)){let p=[];if(cc(t,()=>{p.push(r())}),!(u&&p[0].label?.embed))return[i?"new ":"",SC(t,r),s,o,"(",qe(", ",p),")"]}let l=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!l&&!i&&Ea(n.callee)&&!t.call(()=>Ui(t,e),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return Mj(t,e,r);let c=[i?"new ":"",SC(t,r),s,o,Om(t,e,r)];return l||Ye(n.callee)?Q(c):c}function SC(t,e){let{node:r}=t;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":e("callee")}var Rj=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function jj(t){let{node:e}=t;if(!(e.type==="ImportExpression"||e.type==="TSImportType"||e.type==="TSExternalModuleReference"||e.type==="CallExpression"&&!e.optional&&em(e.callee,Rj)))return!1;let r=Or(e);return r.length===1&&Lt(r[0])&&!fe(r[0])}function qj(t){let{node:e}=t;if(e.type!=="CallExpression"||e.optional||e.callee.type!=="Identifier")return!1;let r=Or(e);return e.callee.name==="require"?(r.length===1&&Lt(r[0])||r.length>1)&&!fe(r[0]):e.callee.name==="define"&&t.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Lt(r[0])&&r[1].type==="ArrayExpression":!1}function eu(t,e,r,n,i,s){let a=Vj(t,e,r,n,s),o=s?r(s,{assignmentLayout:a}):"";switch(a){case"break-after-operator":return Q([Q(n),i,Q(ae([de,o]))]);case"never-break-after-operator":return Q([Q(n),i," ",o]);case"fluid":{let u=Symbol("assignment");return Q([Q(n),i,Q(ae(de),{id:u}),In,Jo(o,{groupId:u})])}case"break-lhs":return Q([n,i," ",Q(o)]);case"chain":return[Q(n),i,de,o];case"chain-tail":return[Q(n),i,ae([de,o])];case"chain-tail-arrow-chain":return[Q(n),i,o];case"only-left":return n}}function Uj(t,e,r){let{node:n}=t;return eu(t,e,r,r("left"),[" ",n.operator],"right")}function zj(t,e,r){return eu(t,e,r,r("id")," =","init")}function Vj(t,e,r,n,i){let{node:s}=t,a=s[i];if(!a)return"only-left";let o=!Cc(a);if(t.match(Cc,kC,c=>!o||c.type!=="ExpressionStatement"&&c.type!=="VariableDeclaration"))return o?a.type==="ArrowFunctionExpression"&&a.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!o&&Cc(a.right)||pn(e.originalText,a))return"break-after-operator";if(s.type==="ImportAttribute"||a.type==="CallExpression"&&a.callee.name==="require"||e.parser==="json5"||e.parser==="jsonc"||e.parser==="json")return"never-break-after-operator";let u=MM(n);if(Wj(s)||Kj(s)||PC(s)&&u)return"break-lhs";let l=Yj(s,n,e);return t.call(()=>Hj(t,e,r,l),i)?"break-after-operator":Gj(s)?"break-lhs":!u&&(l||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||DL(a)||Pn(a)||a.type==="ClassExpression")?"never-break-after-operator":"fluid"}function Hj(t,e,r,n){let i=t.node;if(ni(i)&&!Qo(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!e.experimentalTernaries&&!Zj(i))break;return!0;case"ConditionalExpression":{if(!e.experimentalTernaries){let{test:l}=i;return ni(l)&&!Qo(l)}let{consequent:o,alternate:u}=i;return o.type==="ConditionalExpression"||u.type==="ConditionalExpression"}case"ClassExpression":return lt(i.decorators)}if(n)return!1;let s=i,a=[];for(;;)if(s.type==="UnaryExpression"||s.type==="AwaitExpression"||s.type==="YieldExpression"&&s.argument!==null)s=s.argument,a.push("argument");else if(s.type==="TSNonNullExpression")s=s.expression,a.push("expression");else break;return!!(Lt(s)||t.call(()=>BC(t,e,r),...a))}function Wj(t){if(kC(t)){let e=t.left||t.id;return e.type==="ObjectPattern"&&e.properties.length>2&&e.properties.some(r=>Li(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function Cc(t){return t.type==="AssignmentExpression"}function kC(t){return Cc(t)||t.type==="VariableDeclarator"}function Gj(t){let e=Jj(t);if(lt(e)){let r=t.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(e.length>1&&e.some(n=>n[r]||n.default))return!0}return!1}function Jj(t){if(hm(t))return t.typeParameters?.params}function Kj(t){if(t.type!=="VariableDeclarator")return!1;let{typeAnnotation:e}=t.id;if(!e||!e.typeAnnotation)return!1;let r=_C(e.typeAnnotation);return lt(r)&&r.length>1&&r.some(n=>lt(_C(n))||n.type==="TSConditionalType")}function PC(t){return t.type==="VariableDeclarator"&&t.init?.type==="ArrowFunctionExpression"}function _C(t){let e;switch(t.type){case"GenericTypeAnnotation":e=t.typeParameters;break;case"TSTypeReference":e=t.typeArguments;break}return e?.params}function BC(t,e,r,n=!1){let{node:i}=t,s=()=>BC(t,e,r,!0);if(i.type==="ChainExpression"||i.type==="TSNonNullExpression")return t.call(s,"expression");if(Ye(i)){if(xc(t,e,r).label?.memberChain)return!1;let a=Or(i);return!(a.length===0||a.length===1&&om(a[0],e))||Xj(i,r)?!1:t.call(s,"callee")}return ct(i)?t.call(s,"object"):n&&(i.type==="Identifier"||i.type==="ThisExpression")}function Yj(t,e,r){return Li(t)?(e=bm(e),typeof e=="string"&&ma(e)<r.tabWidth+3):!1}function Xj(t,e){let r=Qj(t);if(lt(r)){if(r.length>1)return!0;if(r.length===1){let i=r[0];if(Nn(i)||Wo(i)||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let n=t.typeParameters?"typeParameters":"typeArguments";if(sr(e(n)))return!0}return!1}function Qj(t){return(t.typeParameters??t.typeArguments)?.params}function NC(t){switch(t.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!t.typeParameters;case"TSTypeReference":return!!t.typeArguments;default:return!1}}function Zj(t){return NC(t.checkType)||NC(t.extendsType)}var Ac=new WeakMap;function $C(t){return/^(?:\d+|\d+\.\d+)$/u.test(t)}function IC(t,e){return e.parser==="json"||e.parser==="jsonc"||!Lt(t.key)||Da(br(t.key),e).slice(1,-1)!==t.key.value?!1:!!(gj(t.key.value)&&!(e.parser==="babel-ts"&&t.type==="ClassProperty"||(e.parser==="typescript"||e.parser==="oxc-ts")&&t.type==="PropertyDefinition")||$C(t.key.value)&&String(Number(t.key.value))===t.key.value&&t.type!=="ImportAttribute"&&(e.parser==="babel"||e.parser==="acorn"||e.parser==="oxc"||e.parser==="espree"||e.parser==="meriyah"||e.parser==="__babel_estree"))}function eq(t,e){let{key:r}=t.node;return(r.type==="Identifier"||Pn(r)&&$C(wa(br(r)))&&String(r.value)===wa(br(r))&&!(e.parser==="typescript"||e.parser==="babel-ts"||e.parser==="oxc-ts"))&&(e.parser==="json"||e.parser==="jsonc"||e.quoteProps==="consistent"&&Ac.get(t.parent))}function tu(t,e,r){let{node:n}=t;if(n.computed)return["[",r("key"),"]"];let{parent:i}=t,{key:s}=n;if(e.quoteProps==="consistent"&&!Ac.has(i)){let a=t.siblings.some(o=>!o.computed&&Lt(o.key)&&!IC(o,e));Ac.set(i,a)}if(eq(t,e)){let a=Da(JSON.stringify(s.type==="Identifier"?s.name:s.value.toString()),e);return t.call(()=>Kr(t,a,e),"key")}return IC(n,e)&&(e.quoteProps==="as-needed"||e.quoteProps==="consistent"&&!Ac.get(i))?t.call(()=>Kr(t,/^\d/u.test(s.value)?wa(s.value):s.value,e),"key"):r("key")}function Lm(t,e,r){let{node:n}=t;return n.shorthand?r("value"):eu(t,e,r,tu(t,e,r),":","value")}var tq=({node:t,key:e,parent:r})=>e==="value"&&t.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&Ho(r));function OC(t,e,r,n){if(tq(t))return Rm(t,e,r);let{node:i}=t,s=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&n?.expandLastArg){let{parent:c}=t;Ye(c)&&(Or(c).length>1||Yt(i).every(p=>p.type==="Identifier"&&!p.typeAnnotation))&&(s=!0)}let a=[Rr(t),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?r("id"):""],o=vs(t,e,r,s),u=bc(t,r),l=Ta(i,u);return a.push(r("typeParameters"),Q([l?Q(o):o,u]),i.body?" ":"",r("body")),e.semi&&(i.declare||!i.body)&&a.push(";"),a}function Mm(t,e,r){let{node:n}=t,{kind:i}=n,s=n.value||n,a=[];return!i||i==="init"||i==="method"||i==="constructor"?s.async&&a.push("async "):a.push(i," "),s.generator&&a.push("*"),a.push(tu(t,e,r),n.optional?"?":"",n===s?Rm(t,e,r):r("value")),a}function Rm(t,e,r){let{node:n}=t,i=vs(t,e,r),s=bc(t,r),a=pj(n),o=Ta(n,s),u=[r("typeParameters"),Q([a?Q(i,{shouldBreak:!0}):o?Q(i):i,s])];return n.body?u.push(" ",r("body")):u.push(e.semi?";":""),u}function rq(t){let e=Yt(t);return e.length===1&&!t.typeParameters&&!fe(t,ye.Dangling)&&e[0].type==="Identifier"&&!e[0].typeAnnotation&&!fe(e[0])&&!e[0].optional&&!t.predicate&&!t.returnType}function LC(t,e){if(e.arrowParens==="always")return!1;if(e.arrowParens==="avoid"){let{node:r}=t;return rq(r)}return!1}function bc(t,e){let{node:r}=t,n=[Ht(t,e,"returnType")];return r.predicate&&n.push(e("predicate")),n}function MC(t,e,r){let{node:n}=t,i=[];if(n.argument){let o=r("argument");sq(e,n.argument)?o=["(",ae([oe,o]),oe,")"]:(ni(n.argument)||e.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(o=Q([Pe("("),ae([se,o]),se,Pe(")")])),i.push(" ",o)}let s=fe(n,ye.Dangling),a=e.semi&&s&&fe(n,ye.Last|ye.Line);return a&&i.push(";"),s&&i.push(" ",pt(t,e)),!a&&e.semi&&i.push(";"),i}function nq(t,e,r){return["return",MC(t,e,r)]}function iq(t,e,r){return["throw",MC(t,e,r)]}function sq(t,e){if(pn(t.originalText,e)||fe(e,ye.Leading,r=>Mr(t.originalText,Me(r),Ie(r)))&&!Mt(e))return!0;if(nm(e)){let r=e,n;for(;n=mL(r);)if(r=n,pn(t.originalText,r))return!0}return!1}function aq(t,e){if(e.semi||jC(t,e)||UC(t,e)||qC(t,e))return!1;let{node:r,key:n,parent:i}=t;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(i.type==="Program"||i.type==="BlockStatement"||i.type==="StaticBlock"||i.type==="TSModuleBlock")||n==="consequent"&&i.type==="SwitchCase")&&t.call(()=>RC(t,e),"expression"))}function RC(t,e){let{node:r}=t;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!LC(t,e))return!0;break;case"UnaryExpression":{let{prefix:n,operator:i}=r;if(n&&(i==="+"||i==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(Mt(r))return!0}return Ui(t,e)?!0:nm(r)?t.call(()=>RC(t,e),...fx(r)):!1}var jm=({node:t,parent:e})=>t.type==="ExpressionStatement"&&e.type==="Program"&&e.body.length===1&&(Array.isArray(e.directives)&&e.directives.length===0||!e.directives);function jC(t,e){return(e.parentParser==="markdown"||e.parentParser==="mdx")&&jm(t)&&Mt(t.node.expression)}function qC(t,e){return e.__isHtmlInlineEventHandler&&jm(t)}function UC(t,e){return(e.parser==="__vue_event_binding"||e.parser==="__vue_ts_event_binding")&&jm(t)}var oq=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Sa=oq;function uq(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var lq=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let r=this.#e,n=0;for(let i=0;i<e.length&&r.has(e.charAt(i));i++)n++;return n}getTrailingWhitespaceCount(e){let r=this.#e,n=0;for(let i=e.length-1;i>=0&&r.has(e.charAt(i));i--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(Qe(0,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${uq([...this.#e].join(""))}]+`,i=new RegExp(r?`(${n})`:n,"u");return e.split(i)}hasWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=this.#e;return Array.prototype.every.call(e,n=>r.has(n))}#t(e){let r=Number.POSITIVE_INFINITY;for(let n of e.split(`
|
|
116
|
+
`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&i<r&&(r=i)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(e){let r=this.#t(e);return r===0?e:e.split(`
|
|
117
|
+
`).map(n=>n.slice(r)).join(`
|
|
118
|
+
`)}},cq=lq,vc=new cq(`
|
|
119
|
+
\r `),qm=t=>t===""||t===de||t===oe||t===se;function pq(t,e,r){let{node:n}=t;if(n.type==="JSXElement"&&wq(n))return[r("openingElement"),r("closingElement")];let i=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),s=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[i,...t.map(r,"children"),s];n.children=n.children.map(x=>Sq(x)?{type:"JSXText",value:" ",raw:" "}:x);let a=n.children.some(Mt),o=n.children.filter(x=>x.type==="JSXExpressionContainer").length>1,u=n.type==="JSXElement"&&n.openingElement.attributes.length>1,l=sr(i)||a||u||o,c=t.parent.rootMarker==="mdx",p=e.singleQuote?"{' '}":'{" "}',f=c?de:Pe([p,se]," "),h=n.openingElement?.name?.name==="fbt",m=hq(t,e,r,f,h),g=n.children.some(x=>ru(x));for(let x=m.length-2;x>=0;x--){let A=m[x]===""&&m[x+1]==="",E=m[x]===oe&&m[x+1]===""&&m[x+2]===oe,C=(m[x]===se||m[x]===oe)&&m[x+1]===""&&m[x+2]===f,b=m[x]===f&&m[x+1]===""&&(m[x+2]===se||m[x+2]===oe),w=m[x]===f&&m[x+1]===""&&m[x+2]===f,P=m[x]===se&&m[x+1]===""&&m[x+2]===oe||m[x]===oe&&m[x+1]===""&&m[x+2]===se;E&&g||A||C||w||P?m.splice(x,2):b&&m.splice(x+1,2)}for(;m.length>0&&qm(Qe(0,m,-1));)m.pop();for(;m.length>1&&qm(m[0])&&qm(m[1]);)m.shift(),m.shift();let y=[""];for(let[x,A]of m.entries()){if(A===f){if(x===1&&RM(m[x-1])){if(m.length===2){y.push([y.pop(),p]);continue}y.push([p,oe],"");continue}else if(x===m.length-1){y.push([y.pop(),p]);continue}else if(m[x-1]===""&&m[x-2]===oe){y.push([y.pop(),p]);continue}}x%2===0?y.push([y.pop(),A]):y.push(A,""),sr(A)&&(l=!0)}let D=g?Gx(y):Q(y,{shouldBreak:!0});if(e.cursorNode?.type==="JSXText"&&n.children.includes(e.cursorNode)?D=[fc,D,fc]:e.nodeBeforeCursor?.type==="JSXText"&&n.children.includes(e.nodeBeforeCursor)?D=[fc,D]:e.nodeAfterCursor?.type==="JSXText"&&n.children.includes(e.nodeAfterCursor)&&(D=[D,fc]),c)return D;let d=Q([i,ae([oe,D]),oe,s]);return l?d:bs([Q([i,...m,s]),d])}function hq(t,e,r,n,i){let s="",a=[s];function o(l){s=l,a.push([a.pop(),l])}function u(l){l!==""&&(s=l,a.push(l,""))}return t.each(({node:l,next:c})=>{if(l.type==="JSXText"){let p=br(l);if(ru(l)){let f=vc.split(p,!0);f[0]===""&&(f.shift(),/\n/u.test(f[0])?u(VC(i,f[1],l,c)):u(n),f.shift());let h;if(Qe(0,f,-1)===""&&(f.pop(),h=f.pop()),f.length===0)return;for(let[m,g]of f.entries())m%2===1?u(de):o(g);h!==void 0?/\n/u.test(h)?u(VC(i,s,l,c)):u(n):u(zC(i,s,l,c))}else/\n/u.test(p)?p.match(/\n/gu).length>1&&u(oe):u(n)}else{let p=r();if(o(p),c&&ru(c)){let f=vc.trim(br(c)),[h]=vc.split(f);u(zC(i,h,l,c))}else u(oe)}},"children"),a}function zC(t,e,r,n){return t?"":r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?e.length===1?se:oe:se}function VC(t,e,r,n){return t?oe:e.length===1?r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?oe:se:oe}var fq=_e(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function dq(t,e,r){let{parent:n}=t;if(fq(n))return e;let i=mq(t),s=Ui(t,r);return Q([s?"":Pe("("),ae([se,e]),se,s?"":Pe(")")],{shouldBreak:i})}function mq(t){return t.match(void 0,(e,r)=>r==="body"&&e.type==="ArrowFunctionExpression",(e,r)=>r==="arguments"&&Ye(e))&&(t.match(void 0,void 0,void 0,(e,r)=>r==="expression"&&e.type==="JSXExpressionContainer")||t.match(void 0,void 0,void 0,(e,r)=>r==="expression"&&e.type==="ChainExpression",(e,r)=>r==="expression"&&e.type==="JSXExpressionContainer"))}function gq(t,e,r){let{node:n}=t,i=[r("name")];if(n.value){let s;if(Lt(n.value)){let a=br(n.value),o=Ot(0,Ot(0,a.slice(1,-1),"'","'"),""",'"'),u=ox(o,e.jsxSingleQuote);o=u==='"'?Ot(0,o,'"',"""):Ot(0,o,"'","'"),s=t.call(()=>Kr(t,As(u+o+u),e),"value")}else s=r("value");i.push("=",s)}return i}function yq(t,e,r){let{node:n}=t,i=(s,a)=>s.type==="JSXEmptyExpression"||!fe(s)&&(Vt(s)||cn(s)||s.type==="ArrowFunctionExpression"||s.type==="AwaitExpression"&&(i(s.argument,s)||s.argument.type==="JSXElement")||Ye(s)||s.type==="ChainExpression"&&Ye(s.expression)||s.type==="FunctionExpression"||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||s.type==="DoExpression"||Mt(a)&&(s.type==="ConditionalExpression"||ni(s)));return i(n.expression,t.parent)?Q(["{",r("expression"),In,"}"]):Q(["{",ae([se,r("expression")]),se,In,"}"])}function Dq(t,e,r){let{node:n}=t,i=fe(n.name)||fe(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!i)return["<",r("name"),r("typeArguments")," />"];if(n.attributes?.length===1&&Lt(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
|
|
120
|
+
`)&&!i&&!fe(n.attributes[0]))return Q(["<",r("name"),r("typeArguments")," ",...t.map(r,"attributes"),n.selfClosing?" />":">"]);let s=n.attributes?.some(o=>Lt(o.value)&&o.value.value.includes(`
|
|
121
|
+
`)),a=e.singleAttributePerLine&&n.attributes.length>1?oe:de;return Q(["<",r("name"),r("typeArguments"),ae(t.map(()=>[a,r()],"attributes")),...Eq(n,e,i)],{shouldBreak:s})}function Eq(t,e,r){return t.selfClosing?[de,"/>"]:xq(t,e,r)?[">"]:[se,">"]}function xq(t,e,r){let n=t.attributes.length>0&&fe(Qe(0,t.attributes,-1),ye.Trailing);return t.attributes.length===0&&!r||(e.bracketSameLine||e.jsxBracketSameLine)&&(!r||t.attributes.length>0)&&!n}function Cq(t,e,r){let{node:n}=t,i=["</"],s=r("name");return fe(n.name,ye.Leading|ye.Line)?i.push(ae([oe,s]),oe):fe(n.name,ye.Leading|ye.Block)?i.push(" ",s):i.push(s),i.push(">"),i}function Aq(t,e){let{node:r}=t,n=fe(r),i=fe(r,ye.Line),s=r.type==="JSXOpeningFragment";return[s?"<":"</",ae([i?oe:n&&!s?" ":"",pt(t,e)]),i?oe:"",">"]}function bq(t,e,r){let n=Kr(t,pq(t,e,r),e);return dq(t,n,e)}function vq(t,e){let{node:r}=t,n=fe(r,ye.Line);return[pt(t,e,{indent:n}),n?oe:""]}function Fq(t,e,r){let{node:n}=t;return["{",t.call(({node:i})=>{let s=["...",r()];return fe(i)?[ae([se,Kr(t,s,e)]),se]:s},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Tq(t,e,r){let{node:n}=t;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return gq(t,e,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return qe(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return qe(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Fq(t,e,r);case"JSXExpressionContainer":return yq(t,e,r);case"JSXFragment":case"JSXElement":return bq(t,e,r);case"JSXOpeningElement":return Dq(t,e,r);case"JSXClosingElement":return Cq(t,e,r);case"JSXOpeningFragment":case"JSXClosingFragment":return Aq(t,e);case"JSXEmptyExpression":return vq(t,e);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Sa(n,"JSX")}}function wq(t){if(t.children.length===0)return!0;if(t.children.length>1)return!1;let e=t.children[0];return e.type==="JSXText"&&!ru(e)}function ru(t){return t.type==="JSXText"&&(vc.hasNonWhitespaceCharacter(br(t))||!/\n/u.test(br(t)))}function Sq(t){return t.type==="JSXExpressionContainer"&&Lt(t.expression)&&t.expression.value===" "&&!fe(t.expression)}function kq(t){let{node:e,parent:r}=t;if(!Mt(e)||!Mt(r))return!1;let{index:n,siblings:i}=t,s;for(let a=n;a>0;a--){let o=i[a-1];if(!(o.type==="JSXText"&&!ru(o))){s=o;break}}return s?.type==="JSXExpressionContainer"&&s.expression.type==="JSXEmptyExpression"&&pc(s.expression)}function Pq(t){return pc(t.node)||kq(t)}var Um=Pq;function _q(t,e,r){let{node:n}=t;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return mC(t,e,r);case"NGChainedExpression":return Q(qe([";",de],t.map(()=>$q(t)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return t.map(()=>[t.isFirst?"":HC(t)?" ":[";",de],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:i,parent:s}=t,a=HC(t)||Bq(t)||(i===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||i===2&&(n.key.name==="else"&&s.body[i-1].type==="NGMicrosyntaxKeyedExpression"&&s.body[i-1].key.name==="then"||n.key.name==="track"))&&s.body[0].type==="NGMicrosyntaxExpression";return[r("key"),a?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Sa(n,"Angular")}}function HC({node:t,index:e}){return t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="of"&&e===1}function Bq(t){let{node:e}=t;return t.parent.body[1].key.name==="of"&&e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="track"&&e.key.type==="NGMicrosyntaxKey"}var Nq=_e(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function $q({node:t}){return rm(t,Nq)}function WC(t,e,r){let{node:n}=t;return Q([qe(de,t.map(r,"decorators")),GC(n,e)?oe:de])}function Iq(t,e,r){return JC(t.node)?[qe(oe,t.map(r,"declaration","decorators")),oe]:""}function Oq(t,e,r){let{node:n,parent:i}=t,{decorators:s}=n;if(!lt(s)||JC(i)||Um(t))return"";let a=n.type==="ClassExpression"||n.type==="ClassDeclaration"||GC(n,e);return[t.key==="declaration"&&gL(i)?oe:a?oi:"",qe(de,t.map(r,"decorators")),de]}function GC(t,e){return t.decorators.some(r=>Ar(e.originalText,Ie(r)))}function JC(t){if(t.type!=="ExportDefaultDeclaration"&&t.type!=="ExportNamedDeclaration"&&t.type!=="DeclareExportDeclaration")return!1;let e=t.declaration?.decorators;return lt(e)&&ac(t,e[0])}var zm=new WeakMap;function KC(t){return zm.has(t)||zm.set(t,t.type==="ConditionalExpression"&&!ir(t,e=>e.type==="ObjectExpression")),zm.get(t)}var Lq=t=>t.type==="SequenceExpression";function Mq(t,e,r,n={}){let i=[],s,a=[],o=!1,u=!n.expandLastArg&&t.node.body.type==="ArrowFunctionExpression",l;(function D(){let{node:d}=t,x=Rq(t,e,r,n);if(i.length===0)i.push(x);else{let{leading:A,trailing:E}=gc(t,e);i.push([A,x]),a.unshift(E)}u&&(o||(o=d.returnType&&Yt(d).length>0||d.typeParameters||Yt(d).some(A=>A.type!=="Identifier"))),!u||d.body.type!=="ArrowFunctionExpression"?(s=r("body",n),l=d.body):t.call(D,"body")})();let c=!pn(e.originalText,l)&&(Lq(l)||jq(l,s,e)||!o&&KC(l)),p=t.key==="callee"&&Ca(t.parent),f=Symbol("arrow-chain"),h=qq(t,n,{signatureDocs:i,shouldBreak:o}),m=!1,g=!1,y=!1;return u&&(p||n.assignmentLayout)&&(g=!0,y=!fe(t.node,ye.Leading&ye.Line),m=n.assignmentLayout==="chain-tail-arrow-chain"||p&&!c),s=Uq(t,e,n,{bodyDoc:s,bodyComments:a,functionBody:l,shouldPutBodyOnSameLine:c}),Q([Q(g?ae([y?se:"",h]):h,{shouldBreak:m,id:f})," =>",u?Jo(s,{groupId:f}):Q(s),u&&p?Pe(se,"",{groupId:f}):""])}function Rq(t,e,r,n){let{node:i}=t,s=[];if(i.async&&s.push("async "),LC(t,e))s.push(r(["params",0]));else{let o=n.expandLastArg||n.expandFirstArg,u=bc(t,r);if(o){if(sr(u))throw new yc;u=Q(hc(u))}s.push(Q([vs(t,e,r,o,!0),u]))}let a=pt(t,e,{filter(o){let u=ba(e.originalText,Ie(o));return u!==!1&&e.originalText.slice(u,u+2)==="=>"}});return a&&s.push(" ",a),s}function jq(t,e,r){return Vt(t)||cn(t)||t.type==="ArrowFunctionExpression"||t.type==="DoExpression"||t.type==="BlockStatement"||Mt(t)||e.label?.hug!==!1&&(e.label?.embed||Cx(t,r.originalText))}function qq(t,e,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:i,key:s}=t;return s!=="callee"&&Ca(i)||ni(i)?Q([r[0]," =>",ae([de,qe([" =>",de],r.slice(1))])],{shouldBreak:n}):s==="callee"&&Ca(i)||e.assignmentLayout?Q(qe([" =>",de],r),{shouldBreak:n}):Q(ae(qe([" =>",de],r)),{shouldBreak:n})}function Uq(t,e,r,{bodyDoc:n,bodyComments:i,functionBody:s,shouldPutBodyOnSameLine:a}){let{node:o,parent:u}=t,l=r.expandLastArg&&_n(e,"all")?Pe(","):"",c=(r.expandLastArg||u.type==="JSXExpressionContainer")&&!fe(o)?se:"";return a&&KC(s)?[" ",Q([Pe("","("),ae([se,n]),Pe("",")"),l,c]),i]:a?[" ",n,i]:[ae([de,n,i]),l,c]}var zq=Array.prototype.findLast??function(t){for(let e=this.length-1;e>=0;e--){let r=this[e];if(t(r,e,this))return r}},Vq=Kd("findLast",function(){if(Array.isArray(this))return zq}),Hq=Vq;function Vm(t,e,r,n){let{node:i}=t,s=[],a=Hq(0,i[n],o=>o.type!=="EmptyStatement");return t.each(({node:o})=>{o.type!=="EmptyStatement"&&(s.push(r()),o!==a&&(s.push(oe),Bn(o,e)&&s.push(oe)))},n),s}function YC(t,e,r){let n=Wq(t,e,r),{node:i,parent:s}=t;if(i.type==="Program"&&s?.type!=="ModuleExpression")return n?[n,oe]:"";let a=[];if(i.type==="StaticBlock"&&a.push("static "),a.push("{"),n)a.push(ae([oe,n]),oe);else{let o=t.grandparent;s.type==="ArrowFunctionExpression"||s.type==="FunctionExpression"||s.type==="FunctionDeclaration"||s.type==="ComponentDeclaration"||s.type==="HookDeclaration"||s.type==="ObjectMethod"||s.type==="ClassMethod"||s.type==="ClassPrivateMethod"||s.type==="ForStatement"||s.type==="WhileStatement"||s.type==="DoWhileStatement"||s.type==="DoExpression"||s.type==="ModuleExpression"||s.type==="CatchClause"&&!o.finalizer||s.type==="TSModuleDeclaration"||s.type==="MatchStatementCase"||i.type==="StaticBlock"||a.push(oe)}return a.push("}"),a}function Wq(t,e,r){let{node:n}=t,i=lt(n.directives),s=n.body.some(u=>u.type!=="EmptyStatement"),a=fe(n,ye.Dangling);if(!i&&!s&&!a)return"";let o=[];return i&&(o.push(Vm(t,e,r,"directives")),(s||a)&&(o.push(oe),Bn(Qe(0,n.directives,-1),e)&&o.push(oe))),s&&o.push(Vm(t,e,r,"body")),a&&o.push(pt(t,e)),o}function Gq(t){let e=new WeakMap;return function(r){return e.has(r)||e.set(r,Symbol(t)),e.get(r)}}var Jq=Gq;function Hm(t,e,r){let{node:n}=t,i=[],s=n.type==="ObjectTypeAnnotation",a=!XC(t),o=a?de:oe,u=fe(n,ye.Dangling),[l,c]=s&&n.exact?["{|","|}"]:"{}",p;if(Kq(t,({node:f,next:h,isLast:m})=>{if(p??(p=f),i.push(r()),a&&s){let{parent:g}=t;g.inexact||!m?i.push(","):_n(e)&&i.push(Pe(","))}!a&&(Yq({node:f,next:h},e)||eA({node:f,next:h},e))&&i.push(";"),m||(i.push(o),Bn(f,e)&&i.push(oe))}),u&&i.push(pt(t,e)),n.type==="ObjectTypeAnnotation"&&n.inexact){let f;fe(n,ye.Dangling)?f=[fe(n,ye.Line)||Ar(e.originalText,Ie(Qe(0,ds(n),-1)))?oe:de,"..."]:f=[p?de:"","..."],i.push(f)}if(a){let f=u||e.objectWrap==="preserve"&&p&&Mr(e.originalText,Me(n),Me(p)),h;if(i.length===0)h=l+c;else{let m=e.bracketSpacing?de:se;h=[l,ae([m,...i]),m,c]}return t.match(void 0,(m,g)=>g==="typeAnnotation",(m,g)=>g==="typeAnnotation",Xo)||t.match(void 0,(m,g)=>m.type==="FunctionTypeParam"&&g==="typeAnnotation",Xo)?h:Q(h,{shouldBreak:f})}return[l,i.length>0?[ae([oe,i]),oe]:"",c]}function XC(t){let{node:e}=t;if(e.type==="ObjectTypeAnnotation"){let{key:r,parent:n}=t;return r==="body"&&(n.type==="InterfaceDeclaration"||n.type==="DeclareInterface"||n.type==="DeclareClass")}return e.type==="ClassBody"||e.type==="TSInterfaceBody"}function Kq(t,e){let{node:r}=t;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){t.each(e,"body");return}if(r.type==="TSTypeLiteral"){t.each(e,"members");return}if(r.type==="ObjectTypeAnnotation"){let n=["properties","indexers","callProperties","internalSlots"].flatMap(i=>t.map(({node:s,index:a})=>({node:s,loc:Me(s),selector:[i,a]}),i)).sort((i,s)=>i.loc-s.loc);for(let[i,{node:s,selector:a}]of n.entries())t.call(()=>e({node:s,next:n[i+1]?.node,isLast:i===n.length-1}),...a)}}function ui(t,e){let{parent:r}=t;return t.callParent(XC)?e.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?t.isLast?e.semi?Pe(";"):"":e.semi||eA({node:t.node,next:t.next},e)?";":Pe("",";"):""}var QC=_e(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),ZC=t=>{if(t.computed||t.typeAnnotation)return!1;let{type:e,name:r}=t.key;return e==="Identifier"&&(r==="static"||r==="get"||r==="set")};function Yq({node:t,next:e},r){if(r.semi||!QC(t))return!1;if(!t.value&&ZC(t))return!0;if(!e||e.static||e.accessibility||e.readonly)return!1;if(!e.computed){let n=e.key?.name;if(n==="in"||n==="instanceof")return!0}if(QC(e)&&e.variance&&!e.static&&!e.declare)return!0;switch(e.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((e.value?e.value.async:e.async)||e.kind==="get"||e.kind==="set")return!1;let n=e.value?e.value.generator:e.generator;return!!(e.computed||n)}case"TSIndexSignature":return!0}return!1}var Xq=_e(["TSPropertySignature"]);function eA({node:t,next:e},r){if(r.semi||!Xq(t))return!1;if(ZC(t))return!0;if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":return!0}return!1}var Qq=Jq("heritageGroup"),Zq=_e(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Wm(t,e,r){let{node:n}=t,i=Zq(n),s=[Rr(t),Dc(t),i?"interface":"class"],a=rA(t),o=[],u=[];if(n.type!=="InterfaceTypeAnnotation"){n.id&&o.push(" ");for(let c of["id","typeParameters"])if(n[c]){let{leading:p,trailing:f}=t.call(()=>gc(t,e),c);o.push(p,r(c),ae(f))}}if(n.superClass){let c=[rU(t,e,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],p=t.call(()=>["extends ",Kr(t,c,e)],"superClass");a?u.push(de,Q(p)):u.push(" ",p)}else u.push(Jm(t,e,r,"extends"));u.push(Jm(t,e,r,"mixins"),Jm(t,e,r,"implements"));let l;return a?(l=Qq(n),s.push(Q([...o,ae(u)],{id:l}))):s.push(...o,...u),!i&&a&&eU(n.body)?s.push(Pe(oe," ",{groupId:l})):s.push(" "),s.push(r("body")),s}function eU(t){return t.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(e=>lt(t[e])):lt(t.body)}function tA(t){let e=t.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(t[r])&&(e+=t[r].length),e>1)return!0;return e>1}function tU(t){let{node:e}=t;if(fe(e.id,ye.Trailing)||fe(e.typeParameters,ye.Trailing)||fe(e.superClass)||tA(e))return!0;if(e.superClass)return t.parent.type==="AssignmentExpression"?!1:!(e.superTypeArguments??e.superTypeParameters)&&ct(e.superClass);let r=e.extends?.[0]??e.mixins?.[0]??e.implements?.[0];return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&ct(r.expression)&&!r.typeArguments:!1}var Gm=new WeakMap;function rA(t){let{node:e}=t;return Gm.has(e)||Gm.set(e,tU(t)),Gm.get(e)}function Jm(t,e,r,n){let{node:i}=t;if(!lt(i[n]))return"";let s=pt(t,e,{marker:n}),a=qe([",",de],t.map(r,n));if(!tA(i)){let o=[`${n} `,s,a];return rA(t)?[de,Q(o)]:[" ",o]}return[de,s,s&&oe,n,Q(ae([de,a]))]}function rU(t,e,r){let n=r("superClass"),{parent:i}=t;return i.type==="AssignmentExpression"?Q(Pe(["(",ae([se,n]),se,")"],n)):n}function nA(t,e,r){let{node:n}=t,i=[];return lt(n.decorators)&&i.push(WC(t,e,r)),i.push(Ec(n)),n.static&&i.push("static "),i.push(Dc(t)),n.override&&i.push("override "),i.push(Mm(t,e,r)),i}function iA(t,e,r){let{node:n}=t,i=[];lt(n.decorators)&&i.push(WC(t,e,r)),i.push(Rr(t),Ec(n)),n.static&&i.push("static "),i.push(Dc(t)),n.override&&i.push("override "),n.readonly&&i.push("readonly "),n.variance&&i.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&i.push("accessor "),i.push(tu(t,e,r),ar(t),dC(t),Ht(t,r));let s=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[eu(t,e,r,i," =",s?void 0:"value"),e.semi?";":""]}var nU=_e(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function sA(t){return nU(t)?sA(t.expression):t}var iU=_e(["FunctionExpression","ArrowFunctionExpression"]);function sU(t){return t.type==="MemberExpression"||t.type==="OptionalMemberExpression"||t.type==="Identifier"&&t.name!=="undefined"}function aU(t,e){if(UC(t,e)){let r=sA(t.node.expression);return iU(r)||sU(r)}return!(!e.semi||jC(t,e)||qC(t,e))}function oU(t,e,r){return[r("expression"),aU(t,e)?";":""]}function uU(t,e,r){if(e.__isVueBindings||e.__isVueForBindingLeft){let n=t.map(r,"program","body",0,"params");if(n.length===1)return n[0];let i=qe([",",de],n);return e.__isVueForBindingLeft?["(",ae([se,Q(i)]),se,")"]:i}if(e.__isEmbeddedTypescriptGenericParameters){let n=t.map(r,"program","body",0,"typeParameters","params");return qe([",",de],n)}}function lU(t,e){let{node:r}=t;switch(r.type){case"RegExpLiteral":return aA(r);case"BigIntLiteral":return Km(r.extra.raw);case"NumericLiteral":return wa(r.extra.raw);case"StringLiteral":return As(Da(r.extra.raw,e));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return oA(r.extra.raw,e);case"Literal":{if(r.regex)return aA(r.regex);if(r.bigint)return Km(r.raw);let{value:n}=r;return typeof n=="number"?wa(r.raw):typeof n=="string"?cU(t)?oA(r.raw,e):As(Da(r.raw,e)):String(n)}}}function cU(t){if(t.key!=="expression")return;let{parent:e}=t;return e.type==="ExpressionStatement"&&typeof e.directive=="string"}function Km(t){return t.toLowerCase()}function aA({pattern:t,flags:e}){return e=[...e].sort().join(""),`/${t}/${e}`}var pU="use strict";function oA(t,e){let r=t.slice(1,-1);if(r===pU||!(r.includes('"')||r.includes("'"))){let n=e.singleQuote?"'":'"';return n+r+n}return t}function hU(t,e,r){let n=t.originalText.slice(e,r);for(let i of t[Symbol.for("comments")]){let s=Me(i);if(s>r)break;let a=Ie(i);if(a<e)continue;let o=s-e,u=a-e;n=n.slice(0,o)+Ot(0,n.slice(o,u),/[^\n]/gu," ")+n.slice(u)}return n}var Fc=hU,uA=_e(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),fU=_e(["EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function Ym(t,e,r){let{node:n,parent:i}=t,s=fU(n),a=n.type==="TSEnumBody"||s,o=uA(n),u=s&&n.hasUnknownMembers,l=a?"members":o?"attributes":"properties",c=n[l],p=a||n.type==="ObjectPattern"&&i.type!=="FunctionDeclaration"&&i.type!=="FunctionExpression"&&i.type!=="ArrowFunctionExpression"&&i.type!=="ObjectMethod"&&i.type!=="ClassMethod"&&i.type!=="ClassPrivateMethod"&&i.type!=="AssignmentPattern"&&i.type!=="CatchClause"&&n.properties.some(y=>y.value&&(y.value.type==="ObjectPattern"||y.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&e.objectWrap==="preserve"&&c.length>0&&dU(n,c[0],e),f=[],h=t.map(({node:y})=>{let D=[...f,Q(r())];return f=[",",de],Bn(y,e)&&f.push(oe),D},l);if(u){let y;if(fe(n,ye.Dangling)){let D=fe(n,ye.Line);y=[pt(t,e),D||Ar(e.originalText,Ie(Qe(0,ds(n),-1)))?oe:de,"..."]}else y=["..."];h.push([...f,...y])}let m=!(u||Qe(0,c,-1)?.type==="RestElement"),g;if(h.length===0){if(!fe(n,ye.Dangling))return["{}",Ht(t,r)];g=Q(["{",pt(t,e,{indent:!0}),se,"}",ar(t),Ht(t,r)])}else{let y=e.bracketSpacing?de:se;g=["{",ae([y,...h]),Pe(m&&_n(e)?",":""),y,"}",ar(t),Ht(t,r)]}return t.match(y=>y.type==="ObjectPattern"&&!lt(y.decorators),Xo)||Oi(n)&&(t.match(void 0,(y,D)=>D==="typeAnnotation",(y,D)=>D==="typeAnnotation",Xo)||t.match(void 0,(y,D)=>y.type==="FunctionTypeParam"&&D==="typeAnnotation",Xo))||!p&&t.match(y=>y.type==="ObjectPattern",y=>y.type==="AssignmentExpression"||y.type==="VariableDeclarator")?g:Q(g,{shouldBreak:p})}function dU(t,e,r){let n=r.originalText,i=Me(t),s=Me(e);if(uA(t)){let a=Me(t),o=Fc(r,a,s);i=a+o.lastIndexOf("{")}return Mr(n,i,s)}function mU(t,e,r){let{node:n}=t;return["import",n.phase?` ${n.phase}`:"",pA(n),fA(t,e,r),hA(t,e,r),mA(t,e,r),e.semi?";":""]}var lA=t=>t.type==="ExportDefaultDeclaration"||t.type==="DeclareExportDeclaration"&&t.default;function cA(t,e,r){let{node:n}=t,i=[Iq(t,e,r),Rr(t),"export",lA(n)?" default":""],{declaration:s,exported:a}=n;return fe(n,ye.Dangling)&&(i.push(" ",pt(t,e)),Ax(n)&&i.push(oe)),s?i.push(" ",r("declaration")):(i.push(DU(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(i.push(" *"),a&&i.push(" as ",r("exported"))):i.push(fA(t,e,r)),i.push(hA(t,e,r),mA(t,e,r))),i.push(yU(n,e)),i}var gU=_e(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function yU(t,e){return e.semi&&(!t.declaration||lA(t)&&!gU(t.declaration))?";":""}function Xm(t,e=!0){return t&&t!=="value"?`${e?" ":""}${t}${e?"":" "}`:""}function pA(t,e){return Xm(t.importKind,e)}function DU(t){return Xm(t.exportKind)}function hA(t,e,r){let{node:n}=t;return n.source?[dA(n,e)?" from":""," ",r("source")]:""}function fA(t,e,r){let{node:n}=t;if(!dA(n,e))return"";let i=[" "];if(lt(n.specifiers)){let s=[],a=[];t.each(()=>{let o=t.node.type;if(o==="ExportNamespaceSpecifier"||o==="ExportDefaultSpecifier"||o==="ImportNamespaceSpecifier"||o==="ImportDefaultSpecifier")s.push(r());else if(o==="ExportSpecifier"||o==="ImportSpecifier")a.push(r());else throw new Sa(n,"specifier")},"specifiers"),i.push(qe(", ",s)),a.length>0&&(s.length>0&&i.push(", "),a.length>1||s.length>0||n.specifiers.some(o=>fe(o))?i.push(Q(["{",ae([e.bracketSpacing?de:se,qe([",",de],a)]),Pe(_n(e)?",":""),e.bracketSpacing?de:se,"}"])):i.push(["{",e.bracketSpacing?" ":"",...a,e.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function dA(t,e){return t.type!=="ImportDeclaration"||lt(t.specifiers)||t.importKind==="type"?!0:Fc(e,Me(t),Me(t.source)).trimEnd().endsWith("from")}function EU(t,e){if(t.extra?.deprecatedAssertSyntax)return"assert";let r=Fc(e,Ie(t.source),t.attributes?.[0]?Me(t.attributes[0]):Ie(t)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||lt(t.attributes)?"with":void 0}var xU=t=>{let{attributes:e}=t;if(e.length!==1)return!1;let[r]=e,{type:n,key:i,value:s}=r;return n==="ImportAttribute"&&(i.type==="Identifier"&&i.name==="type"||Lt(i)&&i.value==="type")&&Lt(s)&&!fe(r)&&!fe(i)&&!fe(s)};function mA(t,e,r){let{node:n}=t;if(!n.source)return"";let i=EU(n,e);if(!i)return"";let s=Ym(t,e,r);return xU(n)&&(s=hc(s)),[` ${i} `,s]}function CU(t,e,r){let{node:n}=t,{type:i}=n,s=i.startsWith("Import"),a=s?"imported":"local",o=s?"local":"exported",u=n[a],l=n[o],c="",p="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?c="*":u&&(c=r(a)),l&&!AU(n)&&(p=r(o)),[Xm(i==="ImportSpecifier"?n.importKind:n.exportKind,!1),c,c&&p?" as ":"",p]}function AU(t){if(t.type!=="ImportSpecifier"&&t.type!=="ExportSpecifier")return!1;let{local:e,[t.type==="ImportSpecifier"?"imported":"exported"]:r}=t;if(e.type!==r.type||!eL(e,r))return!1;if(Lt(e))return e.value===r.value&&br(e)===br(r);switch(e.type){case"Identifier":return e.name===r.name;default:return!1}}function Qm(t,e){return["...",e("argument"),Ht(t,e)]}function bU(t){let e=[t];for(let r=0;r<e.length;r++){let n=e[r];for(let i of["test","consequent","alternate"]){let s=n[i];if(Mt(s))return!0;s.type==="ConditionalExpression"&&e.push(s)}}return!1}function vU(t,e,r){let{node:n}=t,i=n.type==="ConditionalExpression",s=i?"alternate":"falseType",{parent:a}=t,o=i?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return a.type===n.type&&a[s]===n?mn(2,o):o}var FU=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function TU(t){let{node:e}=t;if(e.type!=="ConditionalExpression")return!1;let r,n=e;for(let i=0;!r;i++){let s=t.getParentNode(i);if(s.type==="ChainExpression"&&s.expression===n||Ye(s)&&s.callee===n||ct(s)&&s.object===n||s.type==="TSNonNullExpression"&&s.expression===n){n=s;continue}s.type==="NewExpression"&&s.callee===n||fn(s)&&s.expression===n?(r=t.getParentNode(i+1),n=s):r=s}return n===e?!1:r[FU.get(r.type)]===n}function wU(t,e,r){let{node:n}=t,i=n.type==="ConditionalExpression",s=i?"consequent":"trueType",a=i?"alternate":"falseType",o=i?["test"]:["checkType","extendsType"],u=n[s],l=n[a],c=[],p=!1,{parent:f}=t,h=f.type===n.type&&o.some(w=>f[w]===n),m=f.type===n.type&&!h,g,y,D=0;do y=g||n,g=t.getParentNode(D),D++;while(g&&g.type===n.type&&o.every(w=>g[w]!==y));let d=g||f,x=y;if(i&&(Mt(n[o[0]])||Mt(u)||Mt(l)||bU(x))){p=!0,m=!0;let w=F=>[Pe("("),ae([se,F]),se,Pe(")")],P=F=>F.type==="NullLiteral"||F.type==="Literal"&&F.value===null||F.type==="Identifier"&&F.name==="undefined";c.push(" ? ",P(u)?r(s):w(r(s))," : ",l.type===n.type||P(l)?r(a):w(r(a)))}else{let w=F=>e.useTabs?ae(r(F)):mn(2,r(F)),P=[de,"? ",u.type===n.type?Pe("","("):"",w(s),u.type===n.type?Pe("",")"):"",de,": ",w(a)];c.push(f.type!==n.type||f[a]===n||h?P:e.useTabs?Wx(ae(P)):mn(Math.max(0,e.tabWidth-2),P))}let A=w=>f===d?Q(w):w,E=!p&&(ct(f)||f.type==="NGPipeExpression"&&f.left===n)&&!f.computed,C=TU(t),b=A([vU(t,e,r),m?c:ae(c),i&&E&&!C?se:""]);return h||C?Q([ae([se,b]),se]):b}function SU(t,e){return(ct(e)||e.type==="NGPipeExpression"&&e.left===t)&&!e.computed}function kU(t,e,r,n){return[...t.map(i=>ds(i)),ds(e),ds(r)].flat().some(i=>ln(i)&&Mr(n.originalText,Me(i),Ie(i)))}var PU=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function _U(t){let{node:e}=t;if(e.type!=="ConditionalExpression")return!1;let r,n=e;for(let i=0;!r;i++){let s=t.getParentNode(i);if(s.type==="ChainExpression"&&s.expression===n||Ye(s)&&s.callee===n||ct(s)&&s.object===n||s.type==="TSNonNullExpression"&&s.expression===n){n=s;continue}s.type==="NewExpression"&&s.callee===n||fn(s)&&s.expression===n?(r=t.getParentNode(i+1),n=s):r=s}return n===e?!1:r[PU.get(r.type)]===n}var Zm=t=>[Pe("("),ae([se,t]),se,Pe(")")];function eg(t,e,r,n){if(!e.experimentalTernaries)return wU(t,e,r);let{node:i}=t,s=i.type==="ConditionalExpression",a=Mi(i),o=s?"consequent":"trueType",u=s?"alternate":"falseType",l=s?["test"]:["checkType","extendsType"],c=i[o],p=i[u],f=l.map(J=>i[J]),{parent:h}=t,m=h.type===i.type,g=m&&l.some(J=>h[J]===i),y=m&&h[u]===i,D=c.type===i.type,d=p.type===i.type,x=d||y,A=e.tabWidth>2||e.useTabs,E,C,b=0;do C=E||i,E=t.getParentNode(b),b++;while(E&&E.type===i.type&&l.every(J=>E[J]!==C));let w=E||h,P=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(h.type==="AssignmentExpression"||h.type==="VariableDeclarator"||h.type==="ClassProperty"||h.type==="PropertyDefinition"||h.type==="ClassPrivateProperty"||h.type==="ObjectProperty"||h.type==="Property"),F=(h.type==="ReturnStatement"||h.type==="ThrowStatement")&&!(D||d),S=s&&w.type==="JSXExpressionContainer"&&t.grandparent.type!=="JSXAttribute",I=_U(t),B=SU(i,h),O=a&&Ui(t,e),_=A?e.useTabs?" ":" ".repeat(e.tabWidth-1):"",$=kU(f,c,p,e)||D||d,Y=!x&&!m&&!a&&(S?c.type==="NullLiteral"||c.type==="Literal"&&c.value===null:om(c,e)&&Dx(i.test,3)),V=x||y||a&&!m||m&&s&&Dx(i.test,1)||Y,ee=[];!D&&fe(c,ye.Dangling)&&t.call(()=>{ee.push(pt(t,e),oe)},"consequent");let T=[];fe(i.test,ye.Dangling)&&t.call(()=>{T.push(pt(t,e))},"test"),!d&&fe(p,ye.Dangling)&&t.call(()=>{T.push(pt(t,e))},"alternate"),fe(i,ye.Dangling)&&T.push(pt(t,e));let L=Symbol("test"),H=Symbol("consequent"),v=Symbol("test-and-consequent"),k=s?[Zm(r("test")),i.test.type==="ConditionalExpression"?oi:""]:[r("checkType")," ","extends"," ",Mi(i.extendsType)||i.extendsType.type==="TSMappedType"?r("extendsType"):Q(Zm(r("extendsType")))],N=Q([k," ?"],{id:L}),j=r(o),z=ae([D||S&&(Mt(c)||m||x)?oe:de,ee,j]),R=V?Q([N,x?z:Pe(z,Q(z,{id:H}),{groupId:L})],{id:v}):[N,z],G=r(u),te=Y?Pe(G,Wx(Zm(G)),{groupId:v}):G,M=[R,T.length>0?[ae([oe,T]),oe]:d?oe:Y?Pe(de," ",{groupId:v}):de,":",d?" ":A?V?Pe(_,Pe(x||Y?" ":_," "),{groupId:v}):Pe(_," "):" ",d?te:Q([ae(te),S&&!Y?se:""]),B&&!I?se:"",$?oi:""];return P&&!$?Q(ae([se,Q(M)])):P||F?Q(ae(M)):I||a&&g?Q([ae([se,M]),O?se:""]):h===w?Q(M):M}function BU(t,e,r,n){let{node:i}=t;if(im(i))return lU(t,e);switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[pt(t,e),r("node"),oe];case"File":return uU(t,e,r)??r("program");case"ExpressionStatement":return oU(t,e,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!fe(i.expression)&&(cn(i.expression)||Vt(i.expression))?["(",r("expression"),")"]:Q(["(",ae([se,r("expression")]),se,")"]);case"AssignmentExpression":return Uj(t,e,r);case"VariableDeclarator":return zj(t,e,r);case"BinaryExpression":case"LogicalExpression":return mC(t,e,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return Lj(t,e,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return $j(t,e,r);case"Identifier":return[i.name,ar(t),dC(t),Ht(t,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":return Qm(t,r);case"RestElement":return Qm(t,r);case"FunctionDeclaration":case"FunctionExpression":return OC(t,e,r,n);case"ArrowFunctionExpression":return Mq(t,e,r,n);case"YieldExpression":return[`yield${i.delegate?"*":""}`,i.argument?[" ",r("argument")]:""];case"AwaitExpression":{let s=["await"];if(i.argument){s.push(" ",r("argument"));let{parent:a}=t;if(Ye(a)&&a.callee===i||ct(a)&&a.object===i){s=[ae([se,...s]),se];let o=t.findAncestor(u=>u.type==="AwaitExpression"||u.type==="BlockStatement");if(o?.type!=="AwaitExpression"||!ir(o.argument,u=>u===i))return Q(s)}}return s}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return cA(t,e,r);case"ImportDeclaration":return mU(t,e,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return CU(t,e,r);case"ImportAttribute":return Lm(t,e,r);case"Program":case"BlockStatement":case"StaticBlock":return YC(t,e,r);case"ClassBody":return Hm(t,e,r);case"ThrowStatement":return iq(t,e,r);case"ReturnStatement":return nq(t,e,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return xc(t,e,r);case"ObjectExpression":case"ObjectPattern":return Ym(t,e,r);case"Property":return Ho(i)?Mm(t,e,r):Lm(t,e,r);case"ObjectProperty":return Lm(t,e,r);case"ObjectMethod":return Mm(t,e,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return Im(t,e,r);case"SequenceExpression":{let{parent:s}=t;if(s.type==="ExpressionStatement"||s.type==="ForStatement"){let o=[];return t.each(({isFirst:u})=>{u?o.push(r()):o.push(",",ae([de,r()]))},"expressions"),Q(o)}let a=qe([",",de],t.map(r,"expressions"));return(s.type==="ReturnStatement"||s.type==="ThrowStatement")&&t.key==="argument"||s.type==="ArrowFunctionExpression"&&t.key==="body"?Q(Pe([ae([se,a]),se],a)):Q(a)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),e.semi?";":""];case"UnaryExpression":{let s=[i.operator];return/[a-z]$/u.test(i.operator)&&s.push(" "),fe(i.argument)?s.push(Q(["(",ae([se,r("argument")]),se,")"])):s.push(r("argument")),s}case"UpdateExpression":return[i.prefix?i.operator:"",r("argument"),i.prefix?"":i.operator];case"ConditionalExpression":return eg(t,e,r,n);case"VariableDeclaration":{let s=t.map(r,"declarations"),a=t.parent,o=a.type==="ForStatement"||a.type==="ForInStatement"||a.type==="ForOfStatement",u=i.declarations.some(c=>c.init),l;return s.length===1&&!fe(i.declarations[0])?l=s[0]:s.length>0&&(l=ae(s[0])),Q([Rr(t),i.kind,l?[" ",l]:"",ae(s.slice(1).map(c=>[",",u&&!o?oe:de,c])),e.semi&&!(o&&a.body!==i)?";":""])}case"WithStatement":return Q(["with (",r("object"),")",zi(i.body,r("body"))]);case"IfStatement":{let s=zi(i.consequent,r("consequent")),a=[Q(["if (",Q([ae([se,r("test")]),se]),")",s])];if(i.alternate){let o=fe(i.consequent,ye.Trailing|ye.Line)||Ax(i),u=i.consequent.type==="BlockStatement"&&!o;a.push(u?" ":oe),fe(i,ye.Dangling)&&a.push(pt(t,e),o?oe:" "),a.push("else",Q(zi(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return a}case"ForStatement":{let s=zi(i.body,r("body")),a=pt(t,e),o=a?[a,se]:"";return!i.init&&!i.test&&!i.update?[o,Q(["for (;;)",s])]:[o,Q(["for (",Q([ae([se,r("init"),";",de,r("test"),";",i.update?[de,r("update")]:Pe("",de)]),se]),")",s])]}case"WhileStatement":return Q(["while (",Q([ae([se,r("test")]),se]),")",zi(i.body,r("body"))]);case"ForInStatement":return Q(["for (",r("left")," in ",r("right"),")",zi(i.body,r("body"))]);case"ForOfStatement":return Q(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",zi(i.body,r("body"))]);case"DoWhileStatement":{let s=zi(i.body,r("body"));return[Q(["do",s]),i.body.type==="BlockStatement"?" ":oe,"while (",Q([ae([se,r("test")]),se]),")",e.semi?";":""]}case"DoExpression":return[i.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[i.type==="BreakStatement"?"break":"continue",i.label?[" ",r("label")]:"",e.semi?";":""];case"LabeledStatement":return[r("label"),`:${i.body.type==="EmptyStatement"&&!fe(i.body,ye.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),i.handler?[" ",r("handler")]:"",i.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(i.param){let s=fe(i.param,o=>!ln(o)||o.leading&&Ar(e.originalText,Ie(o))||o.trailing&&Ar(e.originalText,Me(o),{backwards:!0})),a=r("param");return["catch ",s?["(",ae([se,a]),se,") "]:["(",a,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[Q(["switch (",ae([se,r("discriminant")]),se,")"])," {",i.cases.length>0?ae([oe,qe(oe,t.map(({node:s,isLast:a})=>[r(),!a&&Bn(s,e)?oe:""],"cases"))]):"",oe,"}"];case"SwitchCase":{let s=[];i.test?s.push("case ",r("test"),":"):s.push("default:"),fe(i,ye.Dangling)&&s.push(" ",pt(t,e));let a=i.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=Vm(t,e,r,"consequent");s.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:ae([oe,o]))}return s}case"DebuggerStatement":return["debugger",e.semi?";":""];case"ClassDeclaration":case"ClassExpression":return Wm(t,e,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return nA(t,e,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return iA(t,e,r);case"TemplateElement":return As(i.value.raw);case"TemplateLiteral":return tC(t,e,r);case"TaggedTemplateExpression":return aR(t,e,r);case"PrivateIdentifier":return["#",i.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(tm(t))return";";case"InterpreterDirective":default:throw new Sa(i,"ESTree")}}function gA(t){return[t("elementType"),"[]"]}var NU=_e(["SatisfiesExpression","TSSatisfiesExpression"]);function yA(t,e,r){let{parent:n,node:i,key:s}=t,a=i.type==="AsConstExpression"?"const":r("typeAnnotation"),o=[r("expression")," ",NU(i)?"satisfies":"as"," ",a];return s==="callee"&&Ye(n)||s==="object"&&ct(n)?Q([ae([se,...o]),se]):o}function $U(t,e,r){let{node:n}=t,i=[Rr(t),"component"];n.id&&i.push(" ",r("id")),i.push(r("typeParameters"));let s=IU(t,e,r);return n.rendersType?i.push(Q([s," ",r("rendersType")])):i.push(Q([s])),n.body&&i.push(" ",r("body")),e.semi&&n.type==="DeclareComponent"&&i.push(";"),i}function IU(t,e,r){let{node:n}=t,i=n.params;if(n.rest&&(i=[...i,n.rest]),i.length===0)return["(",pt(t,e,{filter:a=>dn(e.originalText,Ie(a))===")"}),")"];let s=[];return LU(t,(a,o)=>{let u=o===i.length-1;u&&n.rest&&s.push("..."),s.push(r()),!u&&(s.push(","),Bn(i[o],e)?s.push(oe,oe):s.push(de))}),["(",ae([se,...s]),Pe(_n(e,"all")&&!OU(n,i)?",":""),se,")"]}function OU(t,e){return t.rest||Qe(0,e,-1)?.type==="RestElement"}function LU(t,e){let{node:r}=t,n=0,i=s=>e(s,n++);t.each(i,"params"),r.rest&&t.call(i,"rest")}function MU(t,e,r){let{node:n}=t;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function RU(t,e,r){let{node:n}=t,i=[];return n.name&&i.push(r("name"),n.optional?"?: ":": "),i.push(r("typeAnnotation")),i}function DA(t,e,r){return Ym(t,e,r)}function jU(t,e,r){let{node:n}=t;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",DA(t,e,r)]}function EA(t,e){let{node:r}=t,n=e("id");r.computed&&(n=["[",n,"]"]);let i="";return r.initializer&&(i=e("initializer")),r.init&&(i=e("init")),i?[n," = ",i]:n}function xA(t,e){let{node:r}=t;return[Rr(t),r.const?"const ":"","enum ",e("id")," ",e("body")]}function CA(t,e,r){let{node:n}=t,i=[Dc(t)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&i.push("new ");let s=vs(t,e,r,!1,!0),a=[];return n.type==="FunctionTypeAnnotation"?a.push(qU(t)?" => ":": ",r("returnType")):a.push(Ht(t,r,"returnType")),Ta(n,a)&&(s=Q(s)),i.push(s,a),[Q(i),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?ui(t,e):""]}function qU(t){let{node:e,parent:r}=t;return e.type==="FunctionTypeAnnotation"&&(gx(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&ac(r,e)||r.type==="ObjectTypeCallProperty"||t.getParentNode(2)?.type==="DeclareFunction"))}function UU(t,e,r){let{node:n}=t,i=["hook"];n.id&&i.push(" ",r("id"));let s=vs(t,e,r,!1,!0),a=bc(t,r),o=Ta(n,a);return i.push(Q([o?Q(s):s,a]),n.body?" ":"",r("body")),i}function zU(t,e,r){let{node:n}=t,i=[Rr(t),"hook"];return n.id&&i.push(" ",r("id")),e.semi&&i.push(";"),i}function AA(t){let{node:e}=t;return e.type==="HookTypeAnnotation"&&t.getParentNode(2)?.type==="DeclareHook"}function VU(t,e,r){let{node:n}=t,i=vs(t,e,r,!1,!0),s=[AA(t)?": ":" => ",r("returnType")];return Q([AA(t)?"":"hook ",Ta(n,s)?Q(i):i,s])}function bA(t,e,r){return[r("objectType"),ar(t),"[",r("indexType"),"]"]}function vA(t,e,r){return["infer ",r("typeParameter")]}function FA(t,e,r){let n=!1;return Q(t.map(({isFirst:i,previous:s,node:a,index:o})=>{let u=r();if(i)return u;let l=Oi(a),c=Oi(s);return c&&l?[" & ",n?ae(u):u]:!c&&!l||pn(e.originalText,a)?e.experimentalOperatorPosition==="start"?ae([de,"& ",u]):ae([" &",de,u]):(o>1&&(n=!0),[" & ",o>1?ae(u):u])},"types"))}function HU(t){switch(t){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function WU(t,e,r){let{node:n}=t;return[Q([n.variance?r("variance"):"","[",ae([r("keyTparam")," in ",r("sourceType")]),"]",HU(n.optional),": ",r("propType")]),ui(t,e)]}function TA(t,e){return t==="+"||t==="-"?t+e:e}function GU(t,e,r){let{node:n}=t,i=!1;if(e.objectWrap==="preserve"){let s=Me(n),a=Fc(e,s+1,Me(n.key)),o=s+1+a.search(/\S/u);Mr(e.originalText,s,o)&&(i=!0)}return Q(["{",ae([e.bracketSpacing?de:se,fe(n,ye.Dangling)?Q([pt(t,e),oe]):"",Q([n.readonly?[TA(n.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:"","]",n.optional?TA(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),e.semi?Pe(";"):""]),e.bracketSpacing?de:se,"}"],{shouldBreak:i})}function JU(t,e,r){let{node:n}=t;return[Q(["match (",ae([se,r("argument")]),se,")"])," {",n.cases.length>0?ae([oe,qe(oe,t.map(({node:i,isLast:s})=>[r(),!s&&Bn(i,e)?oe:""],"cases"))]):"",oe,"}"]}function KU(t,e,r){let{node:n}=t,i=fe(n,ye.Dangling)?[" ",pt(t,e)]:[],s=n.type==="MatchStatementCase"?[" ",r("body")]:ae([de,r("body"),","]);return[r("pattern"),n.guard?Q([ae([de,"if (",r("guard"),")"])]):"",Q([" =>",i,s])]}function YU(t,e,r){let{node:n}=t;switch(n.type){case"MatchOrPattern":return ZU(t,e,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[n.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let i=n.property.type==="Identifier"?[".",r("property")]:["[",ae([se,r("property")]),se,"]"];return Q([r("base"),i])}case"MatchBindingPattern":return[n.kind," ",r("id")];case"MatchObjectPattern":{let i=t.map(r,"properties");return n.rest&&i.push(r("rest")),Q(["{",ae([se,qe([",",de],i)]),n.rest?"":Pe(","),se,"}"])}case"MatchArrayPattern":{let i=t.map(r,"elements");return n.rest&&i.push(r("rest")),Q(["[",ae([se,qe([",",de],i)]),n.rest?"":Pe(","),se,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):Q([r("key"),":",ae([de,r("pattern")])]);case"MatchRestPattern":{let i=["..."];return n.argument&&i.push(r("argument")),i}}}var wA=_e(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function XU(t){let{patterns:e}=t;if(e.some(n=>fe(n)))return!1;let r=e.find(n=>n.type==="MatchObjectPattern");return r?e.every(n=>n===r||wA(n)):!1}function QU(t){return wA(t)||t.type==="MatchObjectPattern"?!0:t.type==="MatchOrPattern"?XU(t):!1}function ZU(t,e,r){let{node:n}=t,{parent:i}=t,s=i.type!=="MatchStatementCase"&&i.type!=="MatchExpressionCase"&&i.type!=="MatchArrayPattern"&&i.type!=="MatchObjectPatternProperty"&&!pn(e.originalText,n),a=QU(n),o=t.map(()=>{let l=r();return a||(l=mn(2,l)),Kr(t,l,e)},"patterns");if(a)return qe(" | ",o);let u=[Pe(["| "]),qe([de,"| "],o)];return Ui(t,e)?Q([ae([Pe([se]),u]),se]):i.type==="MatchArrayPattern"&&i.elements.length>1?Q([ae([Pe(["(",se]),u]),se,Pe(")")]):Q(s?ae(u):u)}function ez(t,e,r){let{node:n}=t,i=[Rr(t),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&i.push(": ",r("supertype")),n.lowerBound||n.upperBound){let s=[];n.lowerBound&&s.push(ae([de,"super ",r("lowerBound")])),n.upperBound&&s.push(ae([de,"extends ",r("upperBound")])),i.push(Q(s))}return n.impltype&&i.push(" = ",r("impltype")),i.push(e.semi?";":""),i}function SA(t,e,r){let{node:n}=t;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function kA(t,e,r){let{node:n}=t;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function PA(t,e,r){let{node:n}=t,i=[Rr(t),"type ",r("id"),r("typeParameters")],s=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[eu(t,e,r,i," =",s),e.semi?";":""]}function tz(t,e,r){let{node:n}=t;return Yt(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&t.parent.type==="ArrowFunctionExpression"&&!(e.filepath&&/\.ts$/u.test(e.filepath))}function nu(t,e,r,n){let{node:i}=t;if(!i[n])return"";if(!Array.isArray(i[n]))return r(n);let s=oc(t.grandparent),a=t.match(u=>!(u[n].length===1&&Oi(u[n][0])),void 0,(u,l)=>l==="typeAnnotation",u=>u.type==="Identifier",PC);if(i[n].length===0||!a&&(s||i[n].length===1&&(i[n][0].type==="NullableTypeAnnotation"||bj(i[n][0]))))return["<",qe(", ",t.map(r,n)),rz(t,e),">"];let o=i.type==="TSTypeParameterInstantiation"?"":tz(t,e,n)?",":_n(e)?Pe(","):"";return Q(["<",ae([se,qe([",",de],t.map(r,n))]),o,se,">"])}function rz(t,e){let{node:r}=t;if(!fe(r,ye.Dangling))return"";let n=!fe(r,ye.Line),i=pt(t,e,{indent:!n});return n?i:[i,oe]}function _A(t,e,r){let{node:n}=t,i=[n.const?"const ":""],s=n.type==="TSTypeParameter"?r("name"):n.name;if(n.variance&&i.push(r("variance")),n.in&&i.push("in "),n.out&&i.push("out "),i.push(s),n.bound&&(n.usesExtendsBound&&i.push(" extends "),i.push(Ht(t,r,"bound"))),n.constraint){let a=Symbol("constraint");i.push(" extends",Q(ae(de),{id:a}),In,Jo(r("constraint"),{groupId:a}))}if(n.default){let a=Symbol("default");i.push(" =",Q(ae(de),{id:a}),In,Jo(r("default"),{groupId:a}))}return Q(i)}function BA(t,e){let{node:r}=t;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",e("parameterName"),r.typeAnnotation?[" is ",Ht(t,e)]:""]}function NA({node:t},e){let r=t.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",e(r),e("typeArguments")]}function nz(t,e,r){let{node:n}=t;if(px(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return $U(t,e,r);case"ComponentParameter":return MU(t,e,r);case"ComponentTypeParameter":return RU(t,e,r);case"HookDeclaration":return UU(t,e,r);case"DeclareHook":return zU(t,e,r);case"HookTypeAnnotation":return VU(t,e,r);case"DeclareFunction":return[Rr(t),"function ",r("id"),r("predicate"),e.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Ht(t,r),e.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[Rr(t),n.kind??"var"," ",r("id"),e.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return cA(t,e,r);case"DeclareOpaqueType":case"OpaqueType":return ez(t,e,r);case"DeclareTypeAlias":case"TypeAlias":return PA(t,e,r);case"IntersectionTypeAnnotation":return FA(t,e,r);case"UnionTypeAnnotation":return yC(t,e,r);case"ConditionalTypeAnnotation":return eg(t,e,r);case"InferTypeAnnotation":return vA(t,e,r);case"FunctionTypeAnnotation":return CA(t,e,r);case"TupleTypeAnnotation":return Im(t,e,r);case"TupleTypeLabeledElement":return kA(t,e,r);case"TupleTypeSpreadElement":return SA(t,e,r);case"GenericTypeAnnotation":return[r("id"),nu(t,e,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return bA(t,e,r);case"TypeAnnotation":return xC(t,e,r);case"TypeParameter":return _A(t,e,r);case"TypeofTypeAnnotation":return NA(t,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return gA(r);case"DeclareEnum":case"EnumDeclaration":return xA(t,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return jU(t,e,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return EA(t,r);case"FunctionTypeParam":{let i=n.name?r("name"):t.parent.this===n?"this":"";return[i,ar(t),i?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Wm(t,e,r);case"ObjectTypeAnnotation":return Hm(t,e,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:i}=n;return i==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value"),ui(t,e)];case"ObjectTypeMappedTypeProperty":return WU(t,e,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),ui(t,e)];case"ObjectTypeProperty":{let i="";return n.proto?i="proto ":n.static&&(i="static "),[i,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",tu(t,e,r),ar(t),Ho(n)?"":": ",r("value"),ui(t,e)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",ar(t),n.method?"":": ",r("value"),ui(t,e)];case"ObjectTypeSpreadProperty":return Qm(t,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return As(Da(br(n),e));case"NumberLiteralTypeAnnotation":return wa(br(n));case"BigIntLiteralTypeAnnotation":return Km(br(n));case"TypeCastExpression":return["(",r("expression"),Ht(t,r),")"];case"TypePredicate":return BA(t,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return nu(t,e,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[t.key==="predicate"&&t.parent.type!=="DeclareFunction"&&!t.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return yA(t,e,r);case"MatchExpression":case"MatchStatement":return JU(t,e,r);case"MatchExpressionCase":case"MatchStatementCase":return KU(t,e,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return YU(t,e,r)}}function iz(t,e,r){let{node:n}=t,i=n.parameters.length>1?Pe(_n(e)?",":""):"",s=Q([ae([se,qe([", ",se],t.map(r,"parameters"))]),i,se]);return[t.key==="body"&&t.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?s:"","]",Ht(t,r),ui(t,e)]}function $A(t,e,r){let{node:n}=t;return[n.postfix?"":r,Ht(t,e),n.postfix?r:""]}function sz(t,e,r){let{node:n}=t,i=[],s=n.kind&&n.kind!=="method"?`${n.kind} `:"";i.push(Ec(n),s,n.computed?"[":"",r("key"),n.computed?"]":"",ar(t));let a=vs(t,e,r,!1,!0),o=Ht(t,r,"returnType"),u=Ta(n,o);return i.push(u?Q(a):a),n.returnType&&i.push(Q(o)),[Q(i),ui(t,e)]}function az(t,e,r){let{node:n}=t;return[Rr(t),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",Q(r("body"))]:e.semi?";":""]}function oz(t,e,r){let{node:n}=t,i=!(Vt(n.expression)||cn(n.expression)),s=Q(["<",ae([se,r("typeAnnotation")]),se,">"]),a=[Pe("("),ae([se,r("expression")]),se,Pe(")")];return i?bs([[s,r("expression")],[s,Q(a,{shouldBreak:!0})],[s,r("expression")]]):Q([s,r("expression")])}function uz(t,e,r){let{node:n}=t;if(n.type.startsWith("TS")){if(hx(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return oz(t,e,r);case"TSDeclareFunction":return OC(t,e,r);case"TSExportAssignment":return["export = ",r("expression"),e.semi?";":""];case"TSModuleBlock":return YC(t,e,r);case"TSInterfaceBody":case"TSTypeLiteral":return Hm(t,e,r);case"TSTypeAliasDeclaration":return PA(t,e,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return nA(t,e,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return iA(t,e,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return tC(t,e,r);case"TSNamedTupleMember":return kA(t,e,r);case"TSRestType":return SA(t,e,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Wm(t,e,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return nu(t,e,r,"params");case"TSTypeParameter":return _A(t,e,r);case"TSAsExpression":case"TSSatisfiesExpression":return yA(t,e,r);case"TSArrayType":return gA(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",tu(t,e,r),ar(t),Ht(t,r),ui(t,e)];case"TSParameterProperty":return[Ec(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return NA(t,r);case"TSIndexSignature":return iz(t,e,r);case"TSTypePredicate":return BA(t,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[xc(t,e,r),n.qualifier?[".",r("qualifier")]:"",nu(t,e,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return bA(t,e,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return GU(t,e,r);case"TSMethodSignature":return sz(t,e,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),e.semi?";":""];case"TSEnumDeclaration":return xA(t,r);case"TSEnumBody":return DA(t,e,r);case"TSEnumMember":return EA(t,r);case"TSImportEqualsDeclaration":return["import ",pA(n,!1),r("id")," = ",r("moduleReference"),e.semi?";":""];case"TSExternalModuleReference":return xc(t,e,r);case"TSModuleDeclaration":return az(t,e,r);case"TSConditionalType":return eg(t,e,r);case"TSInferType":return vA(t,e,r);case"TSIntersectionType":return FA(t,e,r);case"TSUnionType":return yC(t,e,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return CA(t,e,r);case"TSTupleType":return Im(t,e,r);case"TSTypeReference":return[r("typeName"),nu(t,e,r,"typeArguments")];case"TSTypeAnnotation":return xC(t,e,r);case"TSEmptyBodyFunctionExpression":return Rm(t,e,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return $A(t,r,"?");case"TSJSDocNonNullableType":return $A(t,r,"!");case"TSParenthesizedType":default:throw new Sa(n,"TypeScript")}}}function lz(t,e,r,n){for(let i of[_q,Tq,nz,uz,BU]){let s=i(t,e,r,n);if(s!==void 0)return s}}var cz=_e(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function pz(t,e,r,n){t.isRoot&&e.__onHtmlBindingRoot?.(t.node,e);let{node:i}=t,s=Um(t)?e.originalText.slice(Me(i),Ie(i)):lz(t,e,r,n);if(!s)return"";if(cz(i))return s;let a=lt(i.decorators),o=Oq(t,e,r),u=i.type==="ClassExpression";if(a&&!u)return vm(s,p=>Q([o,p]));let l=Ui(t,e),c=aq(t,e);return!o&&!l&&!c?s:vm(s,p=>[c?";":"",l?"(":"",l&&u&&a?[ae([de,o,p]),de]:[o,p],l?")":""])}var IA=pz,hz={experimental_avoidAstMutation:!0},fz=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],OA={};Jd(OA,{getVisitorKeys:()=>gz,massageAstNode:()=>MA,print:()=>yz});var ka=[[]],dz={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:ka[0],BooleanLiteral:ka[0],StringLiteral:ka[0],NumericLiteral:ka[0],Identifier:ka[0],TemplateLiteral:["quasis"],TemplateElement:ka[0]},mz=lx(dz),gz=mz;function yz(t,e,r){let{node:n}=t;switch(n.type){case"JsonRoot":return[r("node"),oe];case"ArrayExpression":{if(n.elements.length===0)return"[]";let i=t.map(()=>t.node===null?"null":r(),"elements");return["[",ae([oe,qe([",",oe],i)]),oe,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",ae([oe,qe([",",oe],t.map(r,"properties"))]),oe,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return LA(t)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return LA(t)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Sa(n,"JSON")}}function LA(t){return t.key==="key"&&t.parent.type==="ObjectProperty"}var Dz=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function MA(t,e){let{type:r}=t;if(r==="ObjectProperty"){let{key:n}=t;n.type==="Identifier"?e.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(e.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&t.operator==="+")return e.argument;if(r==="ArrayExpression"){for(let[n,i]of t.elements.entries())i===null&&e.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:t.quasis[0].value.cooked}}MA.ignoredProperties=Dz;var iu={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Vi="JavaScript",Ez={arrowParens:{category:Vi,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:iu.bracketSameLine,objectWrap:iu.objectWrap,bracketSpacing:iu.bracketSpacing,jsxBracketSameLine:{category:Vi,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Vi,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Vi,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Vi,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:iu.singleQuote,jsxSingleQuote:{category:Vi,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Vi,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Vi,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:iu.singleAttributePerLine},xz=Ez,Cz={estree:rx,"estree-json":OA},Az=[...x7,...fz],RA=Object.defineProperty,jA=t=>{throw TypeError(t)},bz=(t,e,r)=>e in t?RA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,qA=(t,e)=>{for(var r in e)RA(t,r,{get:e[r],enumerable:!0})},UA=(t,e,r)=>bz(t,typeof e!="symbol"?e+"":e,r),vz=(t,e,r)=>e.has(t)||jA("Cannot "+r),Tc=(t,e,r)=>(vz(t,e,"read from private field"),r?r.call(t):e.get(t)),Fz=(t,e,r)=>e.has(t)?jA("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),zA={};qA(zA,{languages:()=>yG,options:()=>EG,parsers:()=>iv,printers:()=>YG});var tg=(t,e)=>(r,n,...i)=>r|1&&n==null?void 0:(e.call(n)??n[t]).apply(n,i),Tz=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},wz=tg("replaceAll",function(){if(typeof this=="string")return Tz}),or=wz;function Sz(t){return this[t<0?this.length+t:t]}var kz=tg("at",function(){if(Array.isArray(this)||typeof this=="string")return Sz}),Pa=kz,Pz=()=>{},_z=Pz,VA="string",HA="array",WA="cursor",rg="indent",ng="align",GA="trim",ig="group",sg="fill",ag="if-break",og="indent-if-break",JA="line-suffix",KA="line-suffix-boundary",_a="line",YA="label",ug="break-parent",XA=new Set([WA,rg,ng,GA,ig,sg,ag,og,JA,KA,_a,YA,ug]);function Bz(t){if(typeof t=="string")return VA;if(Array.isArray(t))return HA;if(!t)return;let{type:e}=t;if(XA.has(e))return e}var QA=Bz,Nz=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function $z(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
122
|
+
Expected it to be 'string' or 'object'.`;if(QA(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Nz([...XA].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
|
|
123
|
+
Expected it to be ${n}.`}var Iz=class extends Error{name="InvalidDocError";constructor(e){super($z(e)),this.doc=e}},Oz=Iz;function ZA(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(QA(s)){case HA:return e(s.map(n));case sg:return e({...s,parts:s.parts.map(n)});case ag:return e({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case ig:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),e({...s,contents:o,expandedStates:a})}case ng:case rg:case og:case YA:case JA:return e({...s,contents:n(s.contents)});case VA:case WA:case GA:case KA:case _a:case ug:return e(s);default:throw new Oz(s)}}}function Ln(t,e=zz){return ZA(t,r=>typeof r=="string"?Ba(e,r.split(`
|
|
124
|
+
`)):r)}var Lz=_z;function Mn(t){return{type:rg,contents:t}}function Mz(t,e){return{type:ng,contents:e,n:t}}function Rz(t){return Mz(Number.NEGATIVE_INFINITY,t)}var su={type:ug};function eb(t){return{type:sg,parts:t}}function $t(t,e={}){return Lz(e.expandedStates),{type:ig,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function au(t,e="",r={}){return{type:ag,breakContents:t,flatContents:e,groupId:r.groupId}}function jz(t,e){return{type:og,contents:t,groupId:e.groupId,negate:e.negate}}function Ba(t,e){let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var bt={type:_a},Xt={type:_a,soft:!0},qz={type:_a,hard:!0},Ct=[qz,su],Uz={type:_a,hard:!0,literal:!0},zz=[Uz,su],tb=Object.freeze({character:"'",codePoint:39}),rb=Object.freeze({character:'"',codePoint:34}),Vz=Object.freeze({preferred:tb,alternate:rb}),Hz=Object.freeze({preferred:rb,alternate:tb});function Wz(t,e){let{preferred:r,alternate:n}=e===!0||e==="'"?Vz:Hz,{length:i}=t,s=0,a=0;for(let o=0;o<i;o++){let u=t.charCodeAt(o);u===r.codePoint?s++:u===n.codePoint&&a++}return(s>a?n:r).character}var Gz=Wz;function Jz(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Kz=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let r=this.#e,n=0;for(let i=0;i<e.length&&r.has(e.charAt(i));i++)n++;return n}getTrailingWhitespaceCount(e){let r=this.#e,n=0;for(let i=e.length-1;i>=0&&r.has(e.charAt(i));i--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(Pa(0,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${Jz([...this.#e].join(""))}]+`,i=new RegExp(r?`(${n})`:n,"u");return e.split(i)}hasWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=this.#e;return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=this.#e;return Array.prototype.every.call(e,n=>r.has(n))}#t(e){let r=Number.POSITIVE_INFINITY;for(let n of e.split(`
|
|
125
|
+
`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&i<r&&(r=i)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(e){let r=this.#t(e);return r===0?e:e.split(`
|
|
126
|
+
`).map(n=>n.slice(r)).join(`
|
|
127
|
+
`)}},Yz=Kz,Xz=[" ",`
|
|
128
|
+
`,"\f","\r"," "],Qz=new Yz(Xz),Yr=Qz,Zz=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},eV=Zz,tV=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),rV=new Set(["if","else if","for","switch","case"]);function nb(t,e,r){if(t.kind==="text"||t.kind==="comment")return null;if(t.kind==="yaml"&&delete e.value,t.kind==="attribute"){let{fullName:n,value:i}=t;n==="style"||n==="class"||n==="srcset"&&(r.fullName==="img"||r.fullName==="source")||n==="allow"&&r.fullName==="iframe"||n.startsWith("on")||n.startsWith("@")||n.startsWith(":")||n.startsWith(".")||n.startsWith("#")||n.startsWith("v-")||n==="vars"&&r.fullName==="style"||(n==="setup"||n==="generic")&&r.fullName==="script"||n==="slot-scope"||n.startsWith("(")||n.startsWith("[")||n.startsWith("*")||n.startsWith("bind")||n.startsWith("i18n")||n.startsWith("on-")||n.startsWith("ng-")||i?.includes("{{")?delete e.value:i&&(e.value=or(0,i,/'|"|'/gu,'"'))}if(t.kind==="docType"&&(e.value=or(0,t.value.toLowerCase(),/\s+/gu," ")),t.kind==="angularControlFlowBlock"&&t.parameters?.children)for(let n of e.parameters.children)rV.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.kind==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.kind==="angularLetDeclarationInitializer"&&delete e.value,t.kind==="element"&&t.isVoid&&!t.isSelfClosing&&(e.isSelfClosing=!0)}nb.ignoredProperties=tV;var nV=nb;function ou(t,e=!0){return[Mn([Xt,t]),e?Xt:""]}function Na(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function Xr(t,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let i=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{i=n(a,o)});let s=await e(t,r,e);return i?$t(s):ou(s)}function iV(t,e,r,n){let{node:i}=r,s=n.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(s)?"":Xr(s,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},Na)}var sV=iV,aV=Array.prototype.toReversed??function(){return[...this].reverse()},oV=tg("toReversed",function(){if(Array.isArray(this))return aV}),uV=oV;function lV(){let t=globalThis,e=t.Deno?.build?.os;return typeof e=="string"?e==="windows":t.navigator?.platform?.startsWith("Win")??t.process?.platform?.startsWith("win")??!1}var cV=lV();function ib(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function pV(t){return t=ib(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function hV(t){t=ib(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function fV(t){return cV?hV(t):pV(t)}var dV=t=>String(t).split(/[/\\]/u).pop(),mV=t=>String(t).startsWith("file:");function gV(t){return Array.isArray(t)&&t.length>0}var lg=gV;function sb(t,e){if(!e)return;let r=dV(e).toLowerCase();return t.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??t.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function yV(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r?.includes(e))??t.find(({extensions:r})=>r?.includes(`.${e}`))}var DV=void 0;function ab(t,e){if(e){if(mV(e))try{e=fV(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function EV(t,e){let r=uV(0,t.plugins).flatMap(n=>n.languages??[]);return(yV(r,e.language)??sb(r,e.physicalFile)??sb(r,e.file)??ab(r,e.physicalFile)??ab(r,e.file)??DV?.(r,e.physicalFile))?.parsers[0]}var cg=EV,ob=Symbol.for("PRETTIER_IS_FRONT_MATTER");function xV(t){return!!t?.[ob]}var wc=xV,uu=3;function CV(t){let e=t.slice(0,uu);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
|
|
129
|
+
`,uu);if(r===-1)return;let n=t.slice(uu,r).trim(),i=t.indexOf(`
|
|
130
|
+
${e}`,r),s=n;if(s||(s=e==="+++"?"toml":"yaml"),i===-1&&e==="---"&&s==="yaml"&&(i=t.indexOf(`
|
|
131
|
+
...`,r)),i===-1)return;let a=i+1+uu,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a),l;return{language:s,explicitLanguage:n||null,value:t.slice(r+1,i),startDelimiter:e,endDelimiter:u.slice(-uu),raw:u,start:{line:1,column:0,index:0},end:{index:u.length,get line(){return l??(l=u.split(`
|
|
132
|
+
`)),l.length},get column(){return l??(l=u.split(`
|
|
133
|
+
`)),Pa(0,l,-1).length}},[ob]:!0}}function AV(t){let e=CV(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return or(0,r,/[^\n]/gu," ")+t.slice(r.length)}}:{content:t}}var bV=AV,vV="inline",ub={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},FV="normal",lb={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function TV(t){return t.kind==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var lu=TV,wV=t=>or(0,t,/^[\t\f\r ]*\n/gu,""),cb=t=>wV(Yr.trimEnd(t)),SV=t=>{let e=t,r=Yr.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=Yr.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function pb(t,e){return!!(t.kind==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.kind==="ieConditionalComment"&&!t.complete||$a(t)&&t.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||fg(t,e)&&!li(t,e)&&t.kind!=="interpolation")}function Sc(t){return t.kind==="attribute"||!t.parent||!t.prev?!1:kV(t.prev)}function kV(t){return t.kind==="comment"&&t.value.trim()==="prettier-ignore"}function Qr(t){return t.kind==="text"||t.kind==="comment"}function li(t,e){return t.kind==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||t.fullName==="mj-style"&&e.parser==="mjml"||lu(t)&&(t.name==="script"||t.name==="style"))}function PV(t,e){return t.children&&!li(t,e)}function _V(t,e){return li(t,e)||t.kind==="interpolation"||hb(t)}function hb(t){return xb(t).startsWith("pre")}function BV(t,e){let r=n();if(r&&!t.prev&&t.parent?.tagDefinition?.ignoreFirstLf)return t.kind==="interpolation";return r;function n(){return wc(t)||t.kind==="angularControlFlowBlock"?!1:(t.kind==="text"||t.kind==="interpolation")&&t.prev&&(t.prev.kind==="text"||t.prev.kind==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:$a(t.parent)?!0:!(!t.prev&&(t.parent.kind==="root"||$a(t)&&t.parent||li(t.parent,e)||Pc(t.parent,e)||!qV(t.parent.cssDisplay))||t.prev&&!VV(t.prev.cssDisplay))}}function NV(t,e){return wc(t)||t.kind==="angularControlFlowBlock"?!1:(t.kind==="text"||t.kind==="interpolation")&&t.next&&(t.next.kind==="text"||t.next.kind==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:$a(t.parent)?!0:!(!t.next&&(t.parent.kind==="root"||$a(t)&&t.parent||li(t.parent,e)||Pc(t.parent,e)||!UV(t.parent.cssDisplay))||t.next&&!zV(t.next.cssDisplay))}function $V(t,e){return HV(t.cssDisplay)&&!li(t,e)}function kc(t){return wc(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+1<t.next.sourceSpan.start.line}function IV(t){return fb(t)||t.kind==="element"&&t.children.length>0&&(["body","script","style"].includes(t.name)||t.children.some(e=>LV(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.kind!=="text"&&mb(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||gb(t.lastChild))}function fb(t){return t.kind==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function pg(t){return yb(t)||t.prev&&OV(t.prev)||db(t)}function OV(t){return yb(t)||t.kind==="element"&&t.fullName==="br"||db(t)}function db(t){return mb(t)&&gb(t)}function mb(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.line<t.sourceSpan.start.line:t.parent.kind==="root"||t.parent.startSourceSpan.end.line<t.sourceSpan.start.line)}function gb(t){return t.hasTrailingSpaces&&(t.next?t.next.sourceSpan.start.line>t.sourceSpan.end.line:t.parent.kind==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function yb(t){switch(t.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function hg(t){return t.lastChild?hg(t.lastChild):t}function LV(t){return t.children?.some(e=>e.kind!=="text")}function Db(t){if(t)switch(t){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return"json"}}function MV(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:i,lang:s}=t.attrMap;return!s&&!i?"babel":cg(e,{language:s})??Db(i)}function RV(t,e){if(!fg(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:i}=r;return cg(e,{language:i})??Db(n)}function jV(t,e){if(t.name==="style"){let{lang:r}=t.attrMap;return r?cg(e,{language:r}):"css"}if(t.name==="mj-style"&&e.parser==="mjml")return"css"}function Eb(t,e){return MV(t,e)??jV(t,e)??RV(t,e)}function cu(t){return t==="block"||t==="list-item"||t.startsWith("table")}function qV(t){return!cu(t)&&t!=="inline-block"}function UV(t){return!cu(t)&&t!=="inline-block"}function zV(t){return!cu(t)}function VV(t){return!cu(t)}function HV(t){return!cu(t)&&t!=="inline-block"}function $a(t){return xb(t).startsWith("pre")}function WV(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.parent}return!1}function GV(t,e){if(Ia(t,e))return"block";if(t.prev?.kind==="comment"){let n=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(n)return n[1]}let r=!1;if(t.kind==="element"&&t.namespace==="svg")if(WV(t,n=>n.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(t.kind==="element"&&(!t.namespace||r||lu(t))&&Object.prototype.hasOwnProperty.call(ub,t.name))return ub[t.name]}return vV}function xb(t){return t.kind==="element"&&(!t.namespace||lu(t))&&Object.prototype.hasOwnProperty.call(lb,t.name)?lb[t.name]:FV}function Cb(t){return or(0,or(0,t,"'","'"),""",'"')}function Tr(t){return Cb(t.value)}var JV=new Set(["template","style","script"]);function Pc(t,e){return Ia(t,e)&&!JV.has(t.fullName)}function Ia(t,e){return e.parser==="vue"&&t.kind==="element"&&t.parent.kind==="root"&&t.fullName.toLowerCase()!=="html"}function fg(t,e){return Ia(t,e)&&(Pc(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function KV(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function YV(t,e){let r=t.parent;if(!Ia(r,e))return!1;let n=r.fullName,i=t.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function Ab(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?Ln(e):Ln(Yr.dedentString(cb(e)),Ct):Ba(bt,Yr.split(e))}function bb(t,e){return Ia(t,e)&&t.name==="script"}function XV(t){let{valueSpan:e,value:r}=t;return e.end.offset-e.start.offset===r.length+2}function vb(t,e){if(XV(t))return!1;let{value:r}=t;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r)||e.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var Fb=/\{\{(.+?)\}\}/su,QV=({node:{value:t}})=>Fb.test(t);async function ZV(t,e,r){let n=Tr(r.node),i=[];for(let[s,a]of n.split(Fb).entries())if(s%2===0)i.push(Ln(a));else try{i.push($t(["{{",Mn([bt,await Xr(a,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),bt,"}}"]))}catch{i.push("{{",Ln(a),"}}")}return i}var dg=t=>(e,r,n)=>Xr(Tr(n.node),e,{parser:t},Na),eH=[{test(t){let e=t.node.fullName;return e.startsWith("(")&&e.endsWith(")")||e.startsWith("on-")},print:dg("__ng_action")},{test(t){let e=t.node.fullName;return e.startsWith("[")&&e.endsWith("]")||/^bind(?:on)?-/u.test(e)||/^ng-(?:if|show|hide|class|style)$/u.test(e)},print:dg("__ng_binding")},{test:t=>t.node.fullName.startsWith("*"),print:dg("__ng_directive")},{test:t=>/^i18n(?:-.+)?$/u.test(t.node.fullName),print:tH},{test:QV,print:ZV}].map(({test:t,print:e})=>({test:(r,n)=>n.parser==="angular"&&t(r),print:e}));function tH(t,e,{node:r}){let n=Tr(r);return ou(eb(Ab(r,n.trim())),!n.includes("@@"))}var rH=eH,nH=({node:t},e)=>!e.parentParser&&t.fullName==="class"&&!t.value.includes("{{"),iH=(t,e,r)=>Tr(r.node).trim().split(/\s+/u).join(" "),sH=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],aH=new Set(sH),oH=({node:t},e)=>aH.has(t.fullName)&&!e.parentParser&&!t.value.includes("{{"),uH=(t,e,r)=>Xr(Tr(r.node),t,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function lH(t){let e=[];for(let r of t.split(";")){if(r=Yr.trim(r),!r)continue;let[n,...i]=Yr.split(r);e.push({name:n,value:i})}return e}var cH=lH,pH=({node:t},e)=>t.fullName==="allow"&&!e.parentParser&&t.parent.fullName==="iframe"&&!t.value.includes("{{");function hH(t,e,r){let{node:n}=r,i=cH(Tr(n));return i.length===0?[""]:ou(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?au(";"):[";",bt]]))}function Tb(t){return t===" "||t===`
|
|
134
|
+
`||t==="\f"||t==="\r"||t===" "}var fH=/^[ \t\n\r\u000c]+/,dH=/^[, \t\n\r\u000c]+/,mH=/^[^ \t\n\r\u000c]+/,gH=/[,]+$/,wb=/^\d+$/,yH=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function DH(t){let e=t.length,r,n,i,s,a,o=0,u;function l(h){let m,g=h.exec(t.substring(o));if(g)return[m]=g,o+=m.length,m}let c=[];for(;;){if(l(dH),o>=e){if(c.length===0)throw new Error("Must contain one or more image candidate strings.");return c}u=o,r=l(mH),n=[],r.slice(-1)===","?(r=r.replace(gH,""),f()):p()}function p(){for(l(fH),i="",s="in descriptor";;){if(a=t.charAt(o),s==="in descriptor")if(Tb(a))i&&(n.push(i),i="",s="after descriptor");else if(a===","){o+=1,i&&n.push(i),f();return}else if(a==="(")i+=a,s="in parens";else if(a===""){i&&n.push(i),f();return}else i+=a;else if(s==="in parens")if(a===")")i+=a,s="in descriptor";else if(a===""){n.push(i),f();return}else i+=a;else if(s==="after descriptor"&&!Tb(a))if(a===""){f();return}else s="in descriptor",o-=1;o+=1}}function f(){let h=!1,m,g,y,D,d={},x,A,E,C,b;for(D=0;D<n.length;D++)x=n[D],A=x[x.length-1],E=x.substring(0,x.length-1),C=parseInt(E,10),b=parseFloat(E),wb.test(E)&&A==="w"?((m||g)&&(h=!0),C===0?h=!0:m=C):yH.test(E)&&A==="x"?((m||g||y)&&(h=!0),b<0?h=!0:g=b):wb.test(E)&&A==="h"?((y||g)&&(h=!0),C===0?h=!0:y=C):h=!0;if(!h)d.source={value:r,startOffset:u},m&&(d.width={value:m}),g&&(d.density={value:g}),y&&(d.height={value:y}),c.push(d);else throw new Error(`Invalid srcset descriptor found in "${t}" at "${x}".`)}}var EH=DH,xH=t=>t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"),Sb={width:"w",height:"h",density:"x"},CH=Object.keys(Sb);function AH(t,e,r){let n=Tr(r.node),i=EH(n),s=CH.filter(h=>i.some(m=>Object.prototype.hasOwnProperty.call(m,h)));if(s.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[a]=s,o=Sb[a],u=i.map(h=>h.source.value),l=Math.max(...u.map(h=>h.length)),c=i.map(h=>h[a]?String(h[a].value):""),p=c.map(h=>{let m=h.indexOf(".");return m===-1?h.length:m}),f=Math.max(...p);return ou(Ba([",",bt],u.map((h,m)=>{let g=[h],y=c[m];if(y){let D=l-h.length+1,d=f-p[m],x=" ".repeat(D+d);g.push(au(x," "),y+o)}return g})))}var bH=({node:t},e)=>t.fullName==="style"&&!e.parentParser&&!t.value.includes("{{"),vH=async(t,e,r)=>ou(await t(Tr(r.node),{parser:"css",__isHTMLStyleAttribute:!0})),mg=new WeakMap;function FH(t,e){let{root:r}=t;return mg.has(r)||mg.set(r,r.children.some(n=>bb(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),mg.get(r)}var Oa=FH;function TH(t,e,r){let n=Tr(r.node);return Xr(`type T<${n}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Na)}function wH(t,e,r,n){let i=Tr(r.node),s=Oa(r,n)?"babel-ts":"babel";return Xr(`function _(${i}) {}`,t,{parser:s,__isVueBindings:!0})}async function SH(t,e,r,n){let i=Tr(r.node),{left:s,operator:a,right:o}=kH(i),u=Oa(r,n);return[$t(await Xr(`function _(${s}) {}`,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await Xr(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function kH(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,i=t.match(e);if(!i)return;let s={for:i[3].trim()};if(!s.for)return;let a=or(0,i[1].trim(),n,""),o=a.match(r);o?(s.alias=a.replace(r,""),s.iterator1=o[1].trim(),o[2]&&(s.iterator2=o[2].trim())):s.alias=a;let u=[s.alias,s.iterator1,s.iterator2];if(!u.some((l,c)=>!l&&(c===0||u.slice(c+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:i[2],right:s.for}}var PH=[{test:t=>t.node.fullName==="v-for",print:SH},{test:(t,e)=>t.node.fullName==="generic"&&bb(t.parent,e),print:TH},{test:({node:t},e)=>KV(t)||YV(t,e),print:wH},{test(t){let e=t.node.fullName;return e.startsWith("@")||e.startsWith("v-on:")},print:_H},{test(t){let e=t.node.fullName;return e.startsWith(":")||e.startsWith(".")||e.startsWith("v-bind:")},print:BH},{test:t=>t.node.fullName.startsWith("v-"),print:kb}].map(({test:t,print:e})=>({test:(r,n)=>n.parser==="vue"&&t(r,n),print:e}));async function _H(t,e,r,n){try{return await kb(t,e,r,n)}catch(a){if(a.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw a}let i=Tr(r.node),s=Oa(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return Xr(i,t,{parser:s},Na)}function BH(t,e,r,n){let i=Tr(r.node),s=Oa(r,n)?"__vue_ts_expression":"__vue_expression";return Xr(i,t,{parser:s},Na)}function kb(t,e,r,n){let i=Tr(r.node),s=Oa(r,n)?"__ts_expression":"__js_expression";return Xr(i,t,{parser:s},Na)}var NH=PH,$H=[{test:xH,print:AH},{test:bH,print:vH},{test:oH,print:uH},{test:nH,print:iH},{test:pH,print:hH},...NH,...rH].map(({test:t,print:e})=>({test:t,print:OH(e)}));function IH(t,e){let{node:r}=t,{value:n}=r;if(n)return vb(r,e)?[r.rawName,"=",n]:$H.find(({test:i})=>i(t,e))?.print}function OH(t){return async(e,r,n,i)=>{let s=await t(e,r,n,i);if(s)return s=ZA(s,a=>typeof a=="string"?or(0,a,'"',"""):a),[n.node.rawName,'="',$t(s),'"']}}var LH=IH,pu=t=>t.sourceSpan.start.offset,_c=t=>t.sourceSpan.end.offset;function gg(t,e){return[t.isSelfClosing?"":MH(t,e),hu(t,e)]}function MH(t,e){return t.lastChild&&mu(t.lastChild)?"":[RH(t,e),yg(t,e)]}function hu(t,e){return(t.next?Ts(t.next):du(t.parent))?"":[fu(t,e),Fs(t,e)]}function RH(t,e){return du(t)?fu(t.lastChild,e):""}function Fs(t,e){return mu(t)?yg(t.parent,e):Bc(t)?Eg(t.next,e):""}function yg(t,e){if(Pb(t,e))return"";switch(t.kind){case"ieConditionalComment":return"<!";case"element":if(t.hasHtmComponentClosingTag)return"<//";default:return`</${t.rawName}`}}function fu(t,e){if(Pb(t,e))return"";switch(t.kind){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function Pb(t,e){return!t.isSelfClosing&&!t.endSourceSpan&&(Sc(t)||pb(t.parent,e))}function Ts(t){return t.prev&&t.prev.kind!=="docType"&&t.kind!=="angularControlFlowBlock"&&!Qr(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function du(t){return t.lastChild?.isTrailingSpaceSensitive&&!t.lastChild.hasTrailingSpaces&&!Qr(hg(t.lastChild))&&!$a(t)}function mu(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&Qr(hg(t))}function Bc(t){return t.next&&!Qr(t.next)&&Qr(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function jH(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return e?e[1]?e[1].split(/\s+/u):!0:!1}function Nc(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function qH(t,e,r){let{node:n}=t;if(!lg(n.attrs))return n.isSelfClosing?" ":"";let i=n.prev?.kind==="comment"&&jH(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?c=>i.includes(c.rawName):()=>!1,a=t.map(({node:c})=>s(c)?Ln(e.originalText.slice(pu(c),_c(c))):r(),"attrs"),o=n.kind==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,u=e.singleAttributePerLine&&n.attrs.length>1&&!Ia(n,e)?Ct:bt,l=[Mn([o?" ":bt,Ba(u,a)])];return n.firstChild&&Nc(n.firstChild)||n.isSelfClosing&&du(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?bt:Xt),l}function UH(t){return t.firstChild&&Nc(t.firstChild)?"":xg(t)}function Dg(t,e,r){let{node:n}=t;return[gu(n,e),qH(t,e,r),n.isSelfClosing?"":UH(n)]}function gu(t,e){return t.prev&&Bc(t.prev)?"":[ws(t,e),Eg(t,e)]}function ws(t,e){return Nc(t)?xg(t.parent):Ts(t)?fu(t.prev,e):""}var _b="<!doctype";function Eg(t,e){switch(t.kind){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${t.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(t.value==="html"){let{filepath:n}=e;if(n&&/\.html?$/u.test(n))return _b}let r=pu(t);return e.originalText.slice(r,r+_b.length)}case"angularIcuExpression":return"{";case"element":if(t.condition)return`<!--[if ${t.condition}]><!--><${t.rawName}`;default:return`<${t.rawName}`}}function xg(t){switch(t.kind){case"ieConditionalComment":return"]>";case"element":if(t.condition)return"><!--<![endif]-->";default:return">"}}function zH(t,e){if(!t.endSourceSpan)return"";let r=t.startSourceSpan.end.offset;t.firstChild&&Nc(t.firstChild)&&(r-=xg(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&mu(t.lastChild)?n+=yg(t,e).length:du(t)&&(n-=fu(t.lastChild,e).length),e.originalText.slice(r,n)}var Bb=zH,VH=new Set(["if","else if","for","switch","case"]);function HH(t,e){let{node:r}=t;switch(r.kind){case"element":if(li(r,e)||r.kind==="interpolation")return;if(!r.isSelfClosing&&fg(r,e)){let n=Eb(r,e);return n?async(i,s)=>{let a=Bb(r,e),o=/^\s*$/u.test(a),u="";return o||(u=await i(cb(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[ws(r,e),$t(Dg(t,e,s)),o?"":Ct,u,o?"":Ct,gg(r,e),Fs(r,e)]}:void 0}break;case"text":if(li(r.parent,e)){let n=Eb(r.parent,e);if(n)return async i=>{let s=n==="markdown"?Yr.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||(u.type==="text/babel"||u.type==="text/jsx")&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[su,ws(r,e),await i(s,a),Fs(r,e)]}}else if(r.parent.kind==="interpolation")return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?i.parser="__ng_interpolation":e.parser==="vue"?i.parser=Oa(t,e)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[Mn([bt,await n(r.value,i)]),r.parent.next&&Ts(r.parent.next)?" ":bt]};break;case"attribute":return LH(t,e);case"angularControlFlowBlockParameters":return VH.has(t.parent.name)?sV:void 0;case"angularLetDeclarationInitializer":return n=>Xr(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var WH=HH,yu=null;function Du(t){if(yu!==null&&typeof yu.property){let e=yu;return yu=Du.prototype=null,e}return yu=Du.prototype=t??Object.create(null),new Du}var GH=10;for(let t=0;t<=GH;t++)Du();function JH(t){return Du(t)}function KH(t,e="type"){JH(t);function r(n){let i=n[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var YH=KH,jr=[["children"],[]],XH={root:jr[0],element:["attrs","children"],ieConditionalComment:jr[0],ieConditionalStartComment:jr[1],ieConditionalEndComment:jr[1],interpolation:jr[0],text:jr[0],docType:jr[1],comment:jr[1],attribute:jr[1],cdata:jr[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:jr[0],angularControlFlowBlockParameter:jr[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:jr[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]},QH=YH(XH,"kind"),ZH=QH,eW="format",tW=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,rW=/^\s*<!--\s*@(?:format|prettier)\s*-->/u,nW=t=>rW.test(t),iW=t=>tW.test(t),sW=t=>`<!-- @${eW} -->
|
|
135
|
+
|
|
136
|
+
${t}`,aW=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function Nb(t){let e=_c(t);return t.kind==="element"&&!t.endSourceSpan&&lg(t.children)?Math.max(e,Nb(Pa(0,t.children,-1))):e}function Eu(t,e,r){let n=t.node;if(Sc(n)){let i=Nb(n);return[ws(n,e),Ln(Yr.trimEnd(e.originalText.slice(pu(n)+(n.prev&&Bc(n.prev)?Eg(n).length:0),i-(n.next&&Ts(n.next)?fu(n,e).length:0)))),Fs(n,e)]}return r()}function $c(t,e){return Qr(t)&&Qr(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?pg(e)?Ct:bt:"":pg(e)?Ct:Xt:Bc(t)&&(Sc(e)||e.firstChild||e.isSelfClosing||e.kind==="element"&&e.attrs.length>0)||t.kind==="element"&&t.isSelfClosing&&Ts(e)?"":!e.isLeadingSpaceSensitive||pg(e)||Ts(e)&&t.lastChild&&mu(t.lastChild)&&t.lastChild.lastChild&&mu(t.lastChild.lastChild)?Ct:e.hasLeadingSpaces?bt:Xt}function Cg(t,e,r){let{node:n}=t;if(fb(n))return[su,...t.map(()=>{let s=t.node,a=s.prev?$c(s.prev,s):"";return[a?[a,kc(s.prev)?Ct:""]:"",Eu(t,e,r)]},"children")];let i=n.children.map(()=>Symbol(""));return t.map(({node:s,index:a})=>{if(Qr(s)){if(s.prev&&Qr(s.prev)){let h=$c(s.prev,s);if(h)return kc(s.prev)?[Ct,Ct,Eu(t,e,r)]:[h,Eu(t,e,r)]}return Eu(t,e,r)}let o=[],u=[],l=[],c=[],p=s.prev?$c(s.prev,s):"",f=s.next?$c(s,s.next):"";return p&&(kc(s.prev)?o.push(Ct,Ct):p===Ct?o.push(Ct):Qr(s.prev)?u.push(p):u.push(au("",Xt,{groupId:i[a-1]}))),f&&(kc(s)?Qr(s.next)&&c.push(Ct,Ct):f===Ct?Qr(s.next)&&c.push(Ct):l.push(f)),[...o,$t([...u,$t([Eu(t,e,r),...l],{id:i[a]})]),...c]},"children")}function oW(t,e,r){let{node:n}=t,i=[];uW(t)&&i.push("} "),i.push("@",n.name),n.parameters&&i.push(" (",$t(r("parameters")),")"),i.push(" {");let s=$b(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(Mn([Ct,Cg(t,e,r)])),s&&i.push(Ct,"}")):s&&i.push("}"),$t(i,{shouldBreak:!0})}function $b(t){return!(t.next?.kind==="angularControlFlowBlock"&&aW.get(t.name)?.has(t.next.name))}function uW(t){let{previous:e}=t;return e?.kind==="angularControlFlowBlock"&&!Sc(e)&&!$b(e)}function lW(t,e,r){return[Mn([Xt,Ba([";",bt],t.map(r,"children"))]),Xt]}function cW(t,e,r){let{node:n}=t;return[gu(n,e),$t([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",Mn([bt,Ba(bt,t.map(r,"cases"))])]:"",Xt]),hu(n,e)]}function pW(t,e,r){let{node:n}=t;return[n.value," {",$t([Mn([Xt,t.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(bt),i.hasTrailingSpaces&&!s&&a.push(bt)),a},"expression")]),Xt]),"}"]}function hW(t,e,r){let{node:n}=t;if(pb(n,e))return[ws(n,e),$t(Dg(t,e,r)),Ln(Bb(n,e)),...gg(n,e),Fs(n,e)];let i=n.children.length===1&&(n.firstChild.kind==="interpolation"||n.firstChild.kind==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),a=c=>$t([$t(Dg(t,e,r),{id:s}),c,gg(n,e)]),o=c=>i?jz(c,{groupId:s}):(li(n,e)||Pc(n,e))&&n.parent.kind==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?c:Mn(c),u=()=>i?au(Xt,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?bt:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Rz(Xt):Xt,l=()=>(n.next?Ts(n.next):du(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?au(Xt,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?bt:(n.lastChild.kind==="comment"||n.lastChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":Xt;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?bt:""):a([IV(n)?su:"",o([u(),Cg(t,e,r)]),l()])}var ci=(function(t){return t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA",t})({});function Ic(t,e=!0){if(t[0]!=":")return[null,t];let r=t.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,r),t.slice(r+1)]}function Ib(t){return Ic(t)[1]==="ng-container"}function Ob(t){return Ic(t)[1]==="ng-content"}function Oc(t){return t===null?null:Ic(t)[0]}function xu(t,e){return t?`:${t}:${e}`:e}var Lb={name:"custom-elements"},Mb={name:"no-errors-schema"},Cu=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t})({}),fW=/-+([a-z0-9])/g;function dW(t){return t.replace(fW,(...e)=>e[1].toUpperCase())}var Lc;function Rb(){return Lc||(Lc={},Mc(Cu.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Mc(Cu.STYLE,["*|style"]),Mc(Cu.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Mc(Cu.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Lc}function Mc(t,e){for(let r of e)Lc[r.toLowerCase()]=t}var mW=class{},gW="boolean",yW="number",DW="string",EW="object",xW=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],jb=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),CW=Array.from(jb).reduce((t,[e,r])=>(t.set(e,r),t),new Map),AW=class extends mW{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,xW.forEach(e=>{let r=new Map,n=new Set,[i,s]=e.split("|"),a=s.split(","),[o,u]=i.split("^");o.split(",").forEach(c=>{this._schema.set(c.toLowerCase(),r),this._eventSchema.set(c.toLowerCase(),n)});let l=u&&this._schema.get(u.toLowerCase());if(l){for(let[c,p]of l)r.set(c,p);for(let c of this._eventSchema.get(u.toLowerCase()))n.add(c)}a.forEach(c=>{if(c.length>0)switch(c[0]){case"*":n.add(c.substring(1));break;case"!":r.set(c.substring(1),gW);break;case"#":r.set(c.substring(1),yW);break;case"%":r.set(c.substring(1),EW);break;default:r.set(c,DW)}})})}hasProperty(e,r,n){if(n.some(i=>i.name===Mb.name))return!0;if(e.indexOf("-")>-1){if(Ib(e)||Ob(e))return!1;if(n.some(i=>i.name===Lb.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===Mb.name)||e.indexOf("-")>-1&&(Ib(e)||Ob(e)||r.some(n=>n.name===Lb.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let i=Rb()[e+"|"+r];return i||(i=Rb()["*|"+r],i||Cu.NONE)}getMappedPropName(e){return jb.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
|
|
137
|
+
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>CW.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return dW(e)}normalizeAnimationStyleValue(e,r,n){let i="",s=n.toString().trim(),a=null;if(bW(e)&&n!==0&&n!=="0")if(typeof n=="number")i="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:s+i}}};function bW(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var Oe=class{constructor({closedByChildren:t,implicitNamespacePrefix:e,contentType:r=ci.PARSABLE_DATA,closedByParent:n=!1,isVoid:i=!1,ignoreFirstLf:s=!1,preventNamespaceInheritance:a=!1,canSelfClose:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,t&&t.length>0&&t.forEach(u=>this.closedByChildren[u]=!0),this.isVoid=i,this.closedByParent=n||i,this.implicitNamespacePrefix=e||null,this.contentType=r,this.ignoreFirstLf=s,this.preventNamespaceInheritance=a,this.canSelfClose=o??i}isClosedByChild(t){return this.isVoid||t.toLowerCase()in this.closedByChildren}getContentType(t){return typeof this.contentType=="object"?(t===void 0?void 0:this.contentType[t])??this.contentType.default:this.contentType}},qb,Au;function Ag(t){return Au||(qb=new Oe({canSelfClose:!0}),Au=Object.assign(Object.create(null),{base:new Oe({isVoid:!0}),meta:new Oe({isVoid:!0}),area:new Oe({isVoid:!0}),embed:new Oe({isVoid:!0}),link:new Oe({isVoid:!0}),img:new Oe({isVoid:!0}),input:new Oe({isVoid:!0}),param:new Oe({isVoid:!0}),hr:new Oe({isVoid:!0}),br:new Oe({isVoid:!0}),source:new Oe({isVoid:!0}),track:new Oe({isVoid:!0}),wbr:new Oe({isVoid:!0}),p:new Oe({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Oe({closedByChildren:["tbody","tfoot"]}),tbody:new Oe({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Oe({closedByChildren:["tbody"],closedByParent:!0}),tr:new Oe({closedByChildren:["tr"],closedByParent:!0}),td:new Oe({closedByChildren:["td","th"],closedByParent:!0}),th:new Oe({closedByChildren:["td","th"],closedByParent:!0}),col:new Oe({isVoid:!0}),svg:new Oe({implicitNamespacePrefix:"svg"}),foreignObject:new Oe({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Oe({implicitNamespacePrefix:"math"}),li:new Oe({closedByChildren:["li"],closedByParent:!0}),dt:new Oe({closedByChildren:["dt","dd"]}),dd:new Oe({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Oe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Oe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Oe({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Oe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Oe({closedByChildren:["optgroup"],closedByParent:!0}),option:new Oe({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Oe({ignoreFirstLf:!0}),listing:new Oe({ignoreFirstLf:!0}),style:new Oe({contentType:ci.RAW_TEXT}),script:new Oe({contentType:ci.RAW_TEXT}),title:new Oe({contentType:{default:ci.ESCAPABLE_RAW_TEXT,svg:ci.PARSABLE_DATA}}),textarea:new Oe({contentType:ci.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new AW().allKnownElementNames().forEach(e=>{!Au[e]&&Oc(e)===null&&(Au[e]=new Oe({canSelfClose:!1}))})),Au[t]??qb}function Rc(t){return t>=9&&t<=32||t==160}function jc(t){return 48<=t&&t<=57}function bu(t){return t>=97&&t<=122||t>=65&&t<=90}function vW(t){return t>=97&&t<=102||t>=65&&t<=70||jc(t)}function qc(t){return t===10||t===13}function Ub(t){return 48<=t&&t<=55}function bg(t){return t===39||t===34||t===96}var vg=class Nk{constructor(e,r,n,i){this.file=e,this.offset=r,this.line=n,this.col=i}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&e<0;)if(i--,e++,r.charCodeAt(i)==10){s--;let o=r.substring(0,i-1).lastIndexOf(`
|
|
138
|
+
`);a=o>0?i-o:i}else a--;for(;i<n&&e>0;){let o=r.charCodeAt(i);i++,e--,o==10?(s++,a=0):a++}return new Nk(this.file,i,s,a)}getContext(e,r){let n=this.file.content,i=this.offset;if(i!=null){i>n.length-1&&(i=n.length-1);let s=i,a=0,o=0;for(;a<e&&i>0&&(i--,a++,!(n[i]==`
|
|
139
|
+
`&&++o==r)););for(a=0,o=0;a<e&&s<n.length-1&&(s++,a++,!(n[s]==`
|
|
140
|
+
`&&++o==r)););return{before:n.substring(i,this.offset),after:n.substring(this.offset,s+1)}}return null}},zb=class{constructor(e,r){this.content=e,this.url=r}},Be=class{constructor(t,e,r=t,n=null){this.start=t,this.end=e,this.fullStart=r,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Vb=(function(t){return t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR",t})({}),La=class extends Error{constructor(e,r,n=Vb.ERROR,i){super(r),this.span=e,this.msg=r,this.level=n,this.relatedError=i,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Vb[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},Ss=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},FW=class extends Ss{constructor(e,r,n,i){super(r,i),this.value=e,this.tokens=n,this.kind="text"}visit(e,r){return e.visitText(this,r)}},TW=class extends Ss{constructor(e,r,n,i){super(r,i),this.value=e,this.tokens=n,this.kind="cdata"}visit(e,r){return e.visitCdata(this,r)}},wW=class extends Ss{constructor(e,r,n,i,s,a){super(i,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=s,this.kind="expansion"}visit(e,r){return e.visitExpansion(this,r)}},SW=class{constructor(e,r,n,i,s){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=i,this.expSourceSpan=s,this.kind="expansionCase"}visit(e,r){return e.visitExpansionCase(this,r)}},kW=class extends Ss{constructor(e,r,n,i,s,a,o){super(n,o),this.name=e,this.value=r,this.keySpan=i,this.valueSpan=s,this.valueTokens=a,this.kind="attribute"}visit(e,r){return e.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},ks=class extends Ss{constructor(t,e,r,n,i,s,a,o=null,u=null,l,c){super(s,c),this.name=t,this.attrs=e,this.directives=r,this.children=n,this.isSelfClosing=i,this.startSourceSpan=a,this.endSourceSpan=o,this.nameSpan=u,this.isVoid=l,this.kind="element"}visit(t,e){return t.visitElement(this,e)}},PW=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.kind="comment"}visit(e,r){return e.visitComment(this,r)}},_W=class{constructor(e,r){this.value=e,this.sourceSpan=r,this.kind="docType"}visit(e,r){return e.visitDocType(this,r)}},Ma=class extends Ss{constructor(e,r,n,i,s,a,o=null,u){super(i,u),this.name=e,this.parameters=r,this.children=n,this.nameSpan=s,this.startSourceSpan=a,this.endSourceSpan=o,this.kind="block"}visit(e,r){return e.visitBlock(this,r)}},Hi=class extends Ss{constructor(e,r,n,i,s,a,o,u,l,c=null,p){super(u,p),this.componentName=e,this.tagName=r,this.fullName=n,this.attrs=i,this.directives=s,this.children=a,this.isSelfClosing=o,this.startSourceSpan=l,this.endSourceSpan=c,this.kind="component"}visit(e,r){return e.visitComponent(this,r)}},BW=class{constructor(e,r,n,i,s=null){this.name=e,this.attrs=r,this.sourceSpan=n,this.startSourceSpan=i,this.endSourceSpan=s,this.kind="directive"}visit(e,r){return e.visitDirective(this,r)}},Hb=class{constructor(e,r){this.expression=e,this.sourceSpan=r,this.kind="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitBlockParameter(this,r)}},Wb=class{constructor(e,r,n,i,s){this.name=e,this.value=r,this.sourceSpan=n,this.nameSpan=i,this.valueSpan=s,this.kind="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,r){return e.visitLetDeclaration(this,r)}};function Gb(t,e,r=null){let n=[],i=t.visit?s=>t.visit(s,r)||s.visit(t,r):s=>s.visit(t,r);return e.forEach(s=>{let a=i(s);a&&n.push(a)}),n}var NW=class{constructor(){}visitElement(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.directives),n(e.children)})}visitAttribute(e,r){}visitText(e,r){}visitCdata(e,r){}visitComment(e,r){}visitDocType(e,r){}visitExpansion(e,r){return this.visitChildren(r,n=>{n(e.cases)})}visitExpansionCase(e,r){}visitBlock(e,r){this.visitChildren(r,n=>{n(e.parameters),n(e.children)})}visitBlockParameter(e,r){}visitLetDeclaration(e,r){}visitComponent(e,r){this.visitChildren(r,n=>{n(e.attrs),n(e.children)})}visitDirective(e,r){this.visitChildren(r,n=>{n(e.attrs)})}visitChildren(e,r){let n=[],i=this;function s(a){a&&n.push(Gb(i,a,e))}return r(s),Array.prototype.concat.apply([],n)}},vu={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",af:"",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"",ic:"",InvisibleTimes:"",it:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",ZeroWidthSpace:"",NewLine:`
|
|
141
|
+
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},$W="";vu.ngsp=$W;var re=(function(t){return t[t.TAG_OPEN_START=0]="TAG_OPEN_START",t[t.TAG_OPEN_END=1]="TAG_OPEN_END",t[t.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",t[t.TAG_CLOSE=3]="TAG_CLOSE",t[t.INCOMPLETE_TAG_OPEN=4]="INCOMPLETE_TAG_OPEN",t[t.TEXT=5]="TEXT",t[t.ESCAPABLE_RAW_TEXT=6]="ESCAPABLE_RAW_TEXT",t[t.RAW_TEXT=7]="RAW_TEXT",t[t.INTERPOLATION=8]="INTERPOLATION",t[t.ENCODED_ENTITY=9]="ENCODED_ENTITY",t[t.COMMENT_START=10]="COMMENT_START",t[t.COMMENT_END=11]="COMMENT_END",t[t.CDATA_START=12]="CDATA_START",t[t.CDATA_END=13]="CDATA_END",t[t.ATTR_NAME=14]="ATTR_NAME",t[t.ATTR_QUOTE=15]="ATTR_QUOTE",t[t.ATTR_VALUE_TEXT=16]="ATTR_VALUE_TEXT",t[t.ATTR_VALUE_INTERPOLATION=17]="ATTR_VALUE_INTERPOLATION",t[t.DOC_TYPE_START=18]="DOC_TYPE_START",t[t.DOC_TYPE_END=19]="DOC_TYPE_END",t[t.EXPANSION_FORM_START=20]="EXPANSION_FORM_START",t[t.EXPANSION_CASE_VALUE=21]="EXPANSION_CASE_VALUE",t[t.EXPANSION_CASE_EXP_START=22]="EXPANSION_CASE_EXP_START",t[t.EXPANSION_CASE_EXP_END=23]="EXPANSION_CASE_EXP_END",t[t.EXPANSION_FORM_END=24]="EXPANSION_FORM_END",t[t.BLOCK_OPEN_START=25]="BLOCK_OPEN_START",t[t.BLOCK_OPEN_END=26]="BLOCK_OPEN_END",t[t.BLOCK_CLOSE=27]="BLOCK_CLOSE",t[t.BLOCK_PARAMETER=28]="BLOCK_PARAMETER",t[t.INCOMPLETE_BLOCK_OPEN=29]="INCOMPLETE_BLOCK_OPEN",t[t.LET_START=30]="LET_START",t[t.LET_VALUE=31]="LET_VALUE",t[t.LET_END=32]="LET_END",t[t.INCOMPLETE_LET=33]="INCOMPLETE_LET",t[t.COMPONENT_OPEN_START=34]="COMPONENT_OPEN_START",t[t.COMPONENT_OPEN_END=35]="COMPONENT_OPEN_END",t[t.COMPONENT_OPEN_END_VOID=36]="COMPONENT_OPEN_END_VOID",t[t.COMPONENT_CLOSE=37]="COMPONENT_CLOSE",t[t.INCOMPLETE_COMPONENT_OPEN=38]="INCOMPLETE_COMPONENT_OPEN",t[t.DIRECTIVE_NAME=39]="DIRECTIVE_NAME",t[t.DIRECTIVE_OPEN=40]="DIRECTIVE_OPEN",t[t.DIRECTIVE_CLOSE=41]="DIRECTIVE_CLOSE",t[t.EOF=42]="EOF",t})({}),IW=class{constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function OW(t,e,r,n={}){let i=new jW(new zb(t,e),r,n);return i.tokenize(),new IW(GW(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var LW=/\r\n?/g;function Ps(t){return`Unexpected character "${t===0?"EOF":String.fromCharCode(t)}"`}function Jb(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function MW(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Fg=(function(t){return t.HEX="hexadecimal",t.DEC="decimal",t})(Fg||{}),RW=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],Fu={start:"{{",end:"}}"},jW=class{constructor(e,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._openDirectiveCount=0,this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(s=>s.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let i=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new JW(e,i):new Zb(e,i),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0,this._selectorlessEnabled=n.selectorlessEnabled??!1;try{this._cursor.init()}catch(s){this.handleError(s)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(LW,`
|
|
142
|
+
`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(re.TEXT,re.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(re.EOF),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>Rc(n)?!e:WW(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(re.BLOCK_OPEN_START,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(ht),this._attemptCharCode(41))this._attemptCharCodeUntilFn(ht);else{r.type=re.INCOMPLETE_BLOCK_OPEN;return}this._attemptCharCode(123)?(this._beginToken(re.BLOCK_OPEN_END),this._endToken([])):r.type=re.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(re.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Yb);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(re.BLOCK_PARAMETER);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let i=this._cursor.peek();if(i===92)this._cursor.advance();else if(i===r)r=null;else if(r===null&&bg(i))r=i;else if(i===40&&r===null)n++;else if(i===41&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Yb)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(re.LET_START,e),Rc(this._cursor.peek()))this._attemptCharCodeUntilFn(ht);else{let n=this._endToken([this._cursor.getChars(e)]);n.type=re.INCOMPLETE_LET;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(ht),!this._attemptCharCode(61)){r.type=re.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(n=>ht(n)&&!qc(n)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(re.LET_END),this._endToken([]),this._cursor.advance()):(r.type=re.INCOMPLETE_LET,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>bu(n)||n===36||n===95||r&&jc(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(re.LET_VALUE,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;bg(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===92?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(VW(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new La(this._cursor.getSpan(r),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new La(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new La(r,e);return this._currentTokenStart=null,this._currentTokenType=null,n}handleError(e){if(e instanceof Tg&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof La)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return HW(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ps(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()<r)return!1;let n=this._cursor.clone();for(let i=0;i<r;i++)if(!this._attemptCharCode(e.charCodeAt(i)))return this._cursor=n,!1;return!0}_attemptStrCaseInsensitive(e){for(let r=0;r<e.length;r++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(r)))return!1;return!0}_requireStr(e){let r=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(Ps(this._cursor.peek()),this._cursor.getSpan(r))}_requireStrCaseInsensitive(e){let r=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(Ps(this._cursor.peek()),this._cursor.getSpan(r))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,r){let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(n)<r)throw this._createError(Ps(this._cursor.peek()),this._cursor.getSpan(n))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let r=e.length;if(this._cursor.charsLeft()<r)return!1;let n=this._cursor.clone();for(let i=0;i<r;i++){if(n.peek()!==e.charCodeAt(i))return!1;n.advance()}return!0}_isBlockStart(){return this._cursor.peek()===64&&RW.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(re.ENCODED_ENTITY);let r=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let n=this._attemptCharCode(120)||this._attemptCharCode(88),i=this._cursor.clone();if(this._attemptCharCodeUntilFn(UW),this._cursor.peek()!=59){this._cursor.advance();let a=n?Fg.HEX:Fg.DEC;throw this._createError(MW(a,this._cursor.getChars(r)),this._cursor.getSpan())}let s=this._cursor.getChars(i);this._cursor.advance();try{let a=parseInt(s,n?16:10);this._endToken([String.fromCodePoint(a),this._cursor.getChars(r)])}catch{throw this._createError(Jb(this._cursor.getChars(r)),this._cursor.getSpan())}}else{let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(zW),this._cursor.peek()!=59)this._beginToken(e,r),this._cursor=n,this._endToken(["&"]);else{let i=this._cursor.getChars(n);this._cursor.advance();let s=vu.hasOwnProperty(i)&&vu[i];if(!s)throw this._createError(Jb(i),this._cursor.getSpan(r));this._endToken([s,`&${i};`])}}}_consumeRawText(e,r){this._beginToken(e?re.ESCAPABLE_RAW_TEXT:re.RAW_TEXT);let n=[];for(;;){let i=this._cursor.clone(),s=r();if(this._cursor=i,s)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(n.join(""))]),n.length=0,this._consumeEntity(re.ESCAPABLE_RAW_TEXT),this._beginToken(re.ESCAPABLE_RAW_TEXT)):n.push(this._readChar())}this._endToken([this._processCarriageReturns(n.join(""))])}_consumeComment(e){this._beginToken(re.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(re.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(re.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(re.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(re.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(re.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(re.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(re.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let r=this._cursor.clone(),n="";for(;this._cursor.peek()!==58&&!qW(this._cursor.peek());)this._cursor.advance();let i;this._cursor.peek()===58?(n=this._cursor.getChars(r),this._cursor.advance(),i=this._cursor.clone()):i=r,this._requireCharCodeUntilFn(e,n===""?0:1);let s=this._cursor.getChars(i);return[n,s]}_consumeTagOpen(e){let r,n,i,s,a=[];try{if(this._selectorlessEnabled&&Uc(this._cursor.peek()))s=this._consumeComponentOpenStart(e),[i,n,r]=s.parts,n&&(i+=`:${n}`),r&&(i+=`:${r}`),this._attemptCharCodeUntilFn(ht);else{if(!bu(this._cursor.peek()))throw this._createError(Ps(this._cursor.peek()),this._cursor.getSpan(e));s=this._consumeTagOpenStart(e),n=s.parts[0],r=i=s.parts[1],this._attemptCharCodeUntilFn(ht)}for(;!Qb(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===64){let u=this._cursor.clone(),l=u.clone();l.advance(),Uc(l.peek())&&this._consumeDirective(u,l)}else{let u=this._consumeAttribute();a.push(u)}s.type===re.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(u){if(u instanceof La){s?s.type=s.type===re.COMPONENT_OPEN_START?re.INCOMPLETE_COMPONENT_OPEN:re.INCOMPLETE_TAG_OPEN:(this._beginToken(re.TEXT,e),this._endToken(["<"]));return}throw u}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===re.TAG_OPEN_END_VOID)return;let o=this._getTagContentType(r,n,this._fullNameStack.length>0,a);this._handleFullNameStackForTagOpen(n,r),o===ci.RAW_TEXT?this._consumeRawTextWithTagClose(n,s,i,!1):o===ci.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,s,i,!0)}_consumeRawTextWithTagClose(e,r,n,i){this._consumeRawText(i,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(ht),!this._attemptStrCaseInsensitive(e&&r.type!==re.COMPONENT_OPEN_START?`${e}:${n}`:n))?!1:(this._attemptCharCodeUntilFn(ht),this._attemptCharCode(62))),this._beginToken(r.type===re.COMPONENT_OPEN_START?re.COMPONENT_CLOSE:re.TAG_CLOSE),this._requireCharCodeUntilFn(s=>s===62,3),this._cursor.advance(),this._endToken(r.parts),this._handleFullNameStackForTagClose(e,n)}_consumeTagOpenStart(e){this._beginToken(re.TAG_OPEN_START,e);let r=this._consumePrefixAndName(_s);return this._endToken(r)}_consumeComponentOpenStart(e){this._beginToken(re.COMPONENT_OPEN_START,e);let r=this._consumeComponentName();return this._endToken(r)}_consumeComponentName(){let e=this._cursor.clone();for(;Xb(this._cursor.peek());)this._cursor.advance();let r=this._cursor.getChars(e),n="",i="";return this._cursor.peek()===58&&(this._cursor.advance(),[n,i]=this._consumePrefixAndName(_s)),[r,n,i]}_consumeAttribute(){let[e,r]=this._consumeAttributeName(),n;return this._attemptCharCodeUntilFn(ht),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(ht),n=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ht),{prefix:e,name:r,value:n}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Ps(e),this._cursor.getSpan());this._beginToken(re.ATTR_NAME);let r;if(this._openDirectiveCount>0){let i=0;r=s=>{if(this._openDirectiveCount>0){if(s===40)i++;else if(s===41){if(i===0)return!0;i--}}return _s(s)}}else if(e===91){let i=0;r=s=>(s===91?i++:s===93&&i--,i<=0?_s(s):qc(s))}else r=_s;let n=this._consumePrefixAndName(r);return this._endToken(n),n}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let r=this._cursor.peek();this._consumeQuote(r);let n=()=>this._cursor.peek()===r;e=this._consumeWithInterpolation(re.ATTR_VALUE_TEXT,re.ATTR_VALUE_INTERPOLATION,n,n),this._consumeQuote(r)}else{let r=()=>_s(this._cursor.peek());e=this._consumeWithInterpolation(re.ATTR_VALUE_TEXT,re.ATTR_VALUE_INTERPOLATION,r,r)}return e}_consumeQuote(e){this._beginToken(re.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?re.TAG_OPEN_END_VOID:re.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?re.COMPONENT_OPEN_END_VOID:re.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let r=e.clone();for(;r.peek()!==62&&!Uc(r.peek());)r.advance();if(Uc(r.peek())){this._beginToken(re.COMPONENT_CLOSE,e);let n=this._consumeComponentName();this._attemptCharCodeUntilFn(ht),this._requireCharCode(62),this._endToken(n);return}}if(this._beginToken(re.TAG_CLOSE,e),this._attemptCharCodeUntilFn(ht),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(ht),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName(_s);this._attemptCharCodeUntilFn(ht),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(re.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(re.EXPANSION_FORM_START),this._beginToken(re.RAW_TEXT);let e=this._readUntil(44),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let i=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(i)}this._requireCharCode(44),this._attemptCharCodeUntilFn(ht),this._beginToken(re.RAW_TEXT);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(ht)}_consumeExpansionCaseStart(){this._beginToken(re.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(ht),this._beginToken(re.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(ht),this._expansionCaseStack.push(re.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(re.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(ht),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(re.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,i){this._beginToken(e);let s=[];for(;!n();){let o=this._cursor.clone();this._attemptStr(Fu.start)?(this._endToken([this._processCarriageReturns(s.join(""))],o),s.length=0,this._consumeInterpolation(r,o,i),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(e),this._beginToken(e)):s.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(s.join(""));return this._endToken([a]),a}_consumeInterpolation(e,r,n){let i=[];this._beginToken(e,r),i.push(Fu.start);let s=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let u=this._cursor.clone();if(this._isTagStart()){this._cursor=u,i.push(this._getProcessedChars(s,u)),this._endToken(i);return}if(a===null)if(this._attemptStr(Fu.end)){i.push(this._getProcessedChars(s,u)),i.push(Fu.end),this._endToken(i);return}else this._attemptStr("//")&&(o=!0);let l=this._cursor.peek();this._cursor.advance(),l===92?this._cursor.advance():l===a?a=null:!o&&a===null&&bg(l)&&(a=l)}i.push(this._getProcessedChars(s,this._cursor)),this._endToken(i)}_consumeDirective(e,r){for(this._requireCharCode(64),this._cursor.advance();Xb(this._cursor.peek());)this._cursor.advance();this._beginToken(re.DIRECTIVE_NAME,e);let n=this._cursor.getChars(r);if(this._endToken([n]),this._attemptCharCodeUntilFn(ht),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(re.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(ht);!Qb(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(ht),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Ps(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(re.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(ht)}}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let r=e.peek();if(97<=r&&r<=122||65<=r&&r<=90||r===47||r===33)return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===re.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===re.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),r=this._attemptStr(Fu.start);return this._cursor=e,!r}_handleFullNameStackForTagOpen(e,r){let n=xu(e,r);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,r){let n=xu(e,r);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function ht(t){return!Rc(t)||t===0}function _s(t){return Rc(t)||t===62||t===60||t===47||t===39||t===34||t===61||t===0}function qW(t){return(t<97||122<t)&&(t<65||90<t)&&(t<48||t>57)}function UW(t){return t===59||t===0||!vW(t)}function zW(t){return t===59||t===0||!bu(t)}function VW(t){return t!==125}function HW(t,e){return Kb(t)===Kb(e)}function Kb(t){return t>=97&&t<=122?t-97+65:t}function WW(t){return bu(t)||jc(t)||t===95}function Yb(t){return t!==59&&ht(t)}function Uc(t){return t===95||t>=65&&t<=90}function Xb(t){return bu(t)||jc(t)||t===95}function Qb(t){return t===47||t===62||t===60||t===0}function GW(t){let e=[],r;for(let n=0;n<t.length;n++){let i=t[n];r&&r.type===re.TEXT&&i.type===re.TEXT||r&&r.type===re.ATTR_VALUE_TEXT&&i.type===re.ATTR_VALUE_TEXT?(r.parts[0]+=i.parts[0],r.sourceSpan.end=i.sourceSpan.end):(r=i,e.push(r))}return e}var Zb=class BD{constructor(e,r){if(e instanceof BD){this.file=e.file,this.input=e.input,this.end=e.end;let n=e.state;this.state={peek:n.peek,offset:n.offset,line:n.line,column:n.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new BD(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,r){e=e||this;let n=e;if(r)for(;this.diff(e)>0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let i=this.locationFromCursor(e);return new Be(i,this.locationFromCursor(this),n!==e?this.locationFromCursor(n):i)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Tg('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===10?(e.line++,e.column=0):qc(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new vg(e.file,e.state.offset,e.state.line,e.state.column)}},JW=class ND extends Zb{constructor(e,r){e instanceof ND?(super(e),this.internalState={...e.internalState}):(super(e,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new ND(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offset<this.internalState.offset;)n+=String.fromCodePoint(r.peek()),r.advance();return n}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(Ub(e())){let r="",n=0,i=this.clone();for(;Ub(e())&&n<3;)i=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=i.internalState}else qc(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),i=parseInt(n,16);if(isNaN(i))throw e.state=e.internalState,new Tg("Invalid hexadecimal escape sequence",e);return i}},Tg=class extends Error{constructor(e,r){super(e),this.msg=e,this.cursor=r,Object.setPrototypeOf(this,new.target.prototype)}},Rt=class $k extends La{static create(e,r,n){return new $k(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},KW=class{constructor(t,e){this.rootNodes=t,this.errors=e}},YW=class{constructor(t){this.getTagDefinition=t}parse(t,e,r,n=!1,i){let s=h=>(m,...g)=>h(m.toLowerCase(),...g),a=n?this.getTagDefinition:s(this.getTagDefinition),o=h=>a(h).getContentType(),u=n?i:s(i),l=OW(t,e,i?(h,m,g,y)=>{let D=u(h,m,g,y);return D!==void 0?D:o(h)}:o,r),c=r&&r.canSelfClose||!1,p=r&&r.allowHtmComponentClosingTags||!1,f=new XW(l.tokens,a,c,p,n);return f.build(),new KW(f.rootNodes,[...l.errors,...f.errors])}},XW=class Ik{constructor(e,r,n,i,s){this.tokens=e,this.tagDefinitionResolver=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=i,this.isTagNameCaseSensitive=s,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==re.EOF;)this._peek.type===re.TAG_OPEN_START||this._peek.type===re.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===re.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===re.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===re.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===re.TEXT||this._peek.type===re.RAW_TEXT||this._peek.type===re.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===re.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===re.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===re.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===re.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===re.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===re.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===re.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===re.COMPONENT_OPEN_START||this._peek.type===re.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===re.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof Ma&&this.errors.push(Rt.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let r=this._advance(),n=this._getText(r),i=this._advanceIf(re.CDATA_END);this._addToParent(new TW(n,new Be(e.sourceSpan.start,(i||r).sourceSpan.end),[r]))}_consumeComment(e){let r=this._advanceIf(re.RAW_TEXT),n=this._advanceIf(re.COMMENT_END),i=r!=null?r.parts[0].trim():null,s=n==null?e.sourceSpan:new Be(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new PW(i,s))}_consumeDocType(e){let r=this._advanceIf(re.RAW_TEXT),n=this._advanceIf(re.DOC_TYPE_END),i=r!=null?r.parts[0].trim():null,s=new Be(e.sourceSpan.start,(n||r||e).sourceSpan.end);this._addToParent(new _W(i,s))}_consumeExpansion(e){let r=this._advance(),n=this._advance(),i=[];for(;this._peek.type===re.EXPANSION_CASE_VALUE;){let a=this._parseExpansionCase();if(!a)return;i.push(a)}if(this._peek.type!==re.EXPANSION_FORM_END){this.errors.push(Rt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let s=new Be(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new wW(r.parts[0],n.parts[0],i,s,r.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==re.EXPANSION_CASE_EXP_START)return this.errors.push(Rt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;let i=this._advance();n.push({type:re.EOF,parts:[],sourceSpan:i.sourceSpan});let s=new Ik(n,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;let a=new Be(e.sourceSpan.start,i.sourceSpan.end,e.sourceSpan.fullStart),o=new Be(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new SW(e.parts[0],s.rootNodes,a,e.sourceSpan,o)}_collectExpansionExpTokens(e){let r=[],n=[re.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===re.EXPANSION_FORM_START||this._peek.type===re.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===re.EXPANSION_CASE_EXP_END)if(ev(n,re.EXPANSION_CASE_EXP_START)){if(n.pop(),n.length===0)return r}else return this.errors.push(Rt.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===re.EXPANSION_FORM_END)if(ev(n,re.EXPANSION_FORM_START))n.pop();else return this.errors.push(Rt.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===re.EOF)return this.errors.push(Rt.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(e){let r=e.parts[0];if(r.length>0&&r[0]==`
|
|
143
|
+
`){var n;let i=this._getClosestElementLikeParent();i!=null&&i.children.length==0&&!((n=this._getTagDefinition(i))===null||n===void 0)&&n.ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,i=e.parts[0];if(i.length>0&&i[0]===`
|
|
144
|
+
`){var s;let a=this._getContainer();a!=null&&a.children.length===0&&!((s=this._getTagDefinition(a))===null||s===void 0)&&s.ignoreFirstLf&&(i=i.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[i]})}for(;this._peek.type===re.INTERPOLATION||this._peek.type===re.TEXT||this._peek.type===re.ENCODED_ENTITY;)e=this._advance(),r.push(e),e.type===re.INTERPOLATION?i+=e.parts.join("").replace(/&([^;]+);/g,tv):e.type===re.ENCODED_ENTITY?i+=e.parts[0]:i+=e.parts.join("");if(i.length>0){let a=e.sourceSpan;this._addToParent(new FW(i,new Be(n.start,a.end,n.fullStart,n.details),r))}}_closeVoidElement(){var e;let r=this._getContainer();r!==null&&!((e=this._getTagDefinition(r))===null||e===void 0)&&e.isVoid&&this._containerStack.pop()}_consumeElementStartTag(e){var r;let n=[],i=[];this._consumeAttributesAndDirectives(n,i);let s=this._getElementFullName(e,this._getClosestElementLikeParent()),a=this._getTagDefinition(s),o=!1;if(this._peek.type===re.TAG_OPEN_END_VOID){this._advance(),o=!0;let g=this._getTagDefinition(s);this.canSelfClose||g?.canSelfClose||Oc(s)!==null||g?.isVoid||this.errors.push(Rt.create(s,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===re.TAG_OPEN_END&&(this._advance(),o=!1);let u=this._peek.sourceSpan.fullStart,l=new Be(e.sourceSpan.start,u,e.sourceSpan.fullStart),c=new Be(e.sourceSpan.start,u,e.sourceSpan.fullStart),p=new Be(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new ks(s,n,i,[],o,l,c,void 0,p,a?.isVoid??!1),h=this._getContainer(),m=h!==null&&!!(!((r=this._getTagDefinition(h))===null||r===void 0)&&r.isClosedByChild(f.name));this._pushContainer(f,m),o?this._popContainer(s,ks,l):e.type===re.INCOMPLETE_TAG_OPEN&&(this._popContainer(s,ks,null),this.errors.push(Rt.create(s,l,`Opening tag "${s}" not terminated.`)))}_consumeComponentStartTag(e){var r;let n=e.parts[0],i=[],s=[];this._consumeAttributesAndDirectives(i,s);let a=this._getClosestElementLikeParent(),o=this._getComponentTagName(e,a),u=this._getComponentFullName(e,a),l=this._peek.type===re.COMPONENT_OPEN_END_VOID;this._advance();let c=this._peek.sourceSpan.fullStart,p=new Be(e.sourceSpan.start,c,e.sourceSpan.fullStart),f=new Be(e.sourceSpan.start,c,e.sourceSpan.fullStart),h=new Hi(n,o,u,i,s,[],l,p,f,void 0),m=this._getContainer(),g=m!==null&&h.tagName!==null&&!!(!((r=this._getTagDefinition(m))===null||r===void 0)&&r.isClosedByChild(h.tagName));this._pushContainer(h,g),l?this._popContainer(u,Hi,p):e.type===re.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(u,Hi,null),this.errors.push(Rt.create(u,p,`Opening tag "${u}" not terminated.`)))}_consumeAttributesAndDirectives(e,r){for(;this._peek.type===re.ATTR_NAME||this._peek.type===re.DIRECTIVE_NAME;)this._peek.type===re.DIRECTIVE_NAME?r.push(this._consumeDirective(this._peek)):e.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(e){let r=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(r,Hi,e.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],i;n instanceof Hi&&n.componentName===e.parts[0]?i=`, did you mean "${n.fullName}"?`:i=". It may happen when the tag has already been closed by another tag.";let s=`Unexpected closing tag "${r}"${i}`;this.errors.push(Rt.create(r,e.sourceSpan,s))}}_getTagDefinition(e){return typeof e=="string"?this.tagDefinitionResolver(e):e instanceof ks?this.tagDefinitionResolver(e.name):e instanceof Hi&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){var r;let n=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e,this._getClosestElementLikeParent());if(n&&!((r=this._getTagDefinition(n))===null||r===void 0)&&r.isVoid)this.errors.push(Rt.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,ks,e.sourceSpan)){let i=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Rt.create(n,e.sourceSpan,i))}}_popContainer(e,r,n){let i=!1;for(let a=this._containerStack.length-1;a>=0;a--){var s;let o=this._containerStack[a],u=o instanceof Hi?o.fullName:o.name;if(Oc(u)?u===e:(u===e||e===null)&&o instanceof r)return o.endSourceSpan=n,o.sourceSpan.end=n!==null?n.end:o.sourceSpan.end,this._containerStack.splice(a,this._containerStack.length-a),!i;(o instanceof Ma||!(!((s=this._getTagDefinition(o))===null||s===void 0)&&s.closedByParent))&&(i=!0)}return!1}_consumeAttr(e){let r=xu(e.parts[0],e.parts[1]),n=e.sourceSpan.end,i;this._peek.type===re.ATTR_QUOTE&&(i=this._advance());let s="",a=[],o,u;if(this._peek.type===re.ATTR_VALUE_TEXT)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===re.ATTR_VALUE_TEXT||this._peek.type===re.ATTR_VALUE_INTERPOLATION||this._peek.type===re.ENCODED_ENTITY;){let c=this._advance();a.push(c),c.type===re.ATTR_VALUE_INTERPOLATION?s+=c.parts.join("").replace(/&([^;]+);/g,tv):c.type===re.ENCODED_ENTITY?s+=c.parts[0]:s+=c.parts.join(""),u=n=c.sourceSpan.end}this._peek.type===re.ATTR_QUOTE&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new Be(i?.sourceSpan.start??o.start,u,i?.sourceSpan.fullStart??o.fullStart);return new kW(r,s,new Be(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeDirective(e){let r=[],n=e.sourceSpan.end,i=null;if(this._advance(),this._peek.type===re.DIRECTIVE_OPEN){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===re.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===re.DIRECTIVE_CLOSE?(i=this._peek.sourceSpan,this._advance()):this.errors.push(Rt.create(null,e.sourceSpan,"Unterminated directive definition"))}let s=new Be(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new Be(s.start,i===null?e.sourceSpan.end:i.end,s.fullStart);return new BW(e.parts[0],r,a,s,i)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===re.BLOCK_PARAMETER;){let o=this._advance();r.push(new Hb(o.parts[0],o.sourceSpan))}this._peek.type===re.BLOCK_OPEN_END&&this._advance();let n=this._peek.sourceSpan.fullStart,i=new Be(e.sourceSpan.start,n,e.sourceSpan.fullStart),s=new Be(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new Ma(e.parts[0],r,[],i,e.sourceSpan,s);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,Ma,e.sourceSpan)||this.errors.push(Rt.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===re.BLOCK_PARAMETER;){let o=this._advance();r.push(new Hb(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,i=new Be(e.sourceSpan.start,n,e.sourceSpan.fullStart),s=new Be(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new Ma(e.parts[0],r,[],i,e.sourceSpan,s);this._pushContainer(a,!1),this._popContainer(null,Ma,null),this.errors.push(Rt.create(e.parts[0],i,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],n,i;if(this._peek.type!==re.LET_VALUE){this.errors.push(Rt.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==re.LET_END){this.errors.push(Rt.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else i=this._advance();let s=i.sourceSpan.fullStart,a=new Be(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(r),u=new Be(e.sourceSpan.start.moveBy(o),e.sourceSpan.end),l=new Wb(r,n.parts[0],a,u,n.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(e){let r=e.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let i=e.sourceSpan.toString().lastIndexOf(r),s=new Be(e.sourceSpan.start.moveBy(i),e.sourceSpan.end),a=new Be(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),o=new Wb(r,"",e.sourceSpan,s,a);this._addToParent(o)}this.errors.push(Rt.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let r=this._containerStack[e];if(r instanceof ks||r instanceof Hi)return r}return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r){return xu(this._getPrefix(e,r),e.parts[1])}_getComponentFullName(e,r){let n=e.parts[0],i=this._getComponentTagName(e,r);return i===null?n:i.startsWith(":")?n+i:`${n}:${i}`}_getComponentTagName(e,r){let n=this._getPrefix(e,r),i=e.parts[2];return!n&&!i?null:!n&&i?i:xu(n,i||"ng-component")}_getPrefix(e,r){var n;let i,s;if(e.type===re.COMPONENT_OPEN_START||e.type===re.INCOMPLETE_COMPONENT_OPEN||e.type===re.COMPONENT_CLOSE?(i=e.parts[1],s=e.parts[2]):(i=e.parts[0],s=e.parts[1]),i=i||((n=this._getTagDefinition(s))===null||n===void 0?void 0:n.implicitNamespacePrefix)||"",!i&&r){let a=r instanceof ks?r.name:r.tagName;if(a!==null){let o=Ic(a)[1],u=this._getTagDefinition(o);u!==null&&!u.preventNamespaceInheritance&&(i=Oc(a))}}return i}};function ev(t,e){return t.length>0&&t[t.length-1]===e}function tv(t,e){return vu[e]!==void 0?vu[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var QW=class extends YW{constructor(){super(Ag)}parse(e,r,n,i=!1,s){return super.parse(e,r,n,i,s)}},wg=null,ZW=()=>(wg||(wg=new QW),wg);function Sg(t,e={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:i=!1,getTagContentType:s,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1,enableAngularSelectorlessSyntax:u=!1}=e;return ZW().parse(t,"angular-html-parser",{tokenizeExpansionForms:a,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o,selectorlessEnabled:u},i,s)}var eG=[rG,nG,sG,oG,uG,pG,lG,cG,hG,aG];function tG(t,e){for(let r of eG)r(t,e);return t}function rG(t){t.walk(e=>{if(e.kind==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].kind==="text"&&e.children[0].value[0]===`
|
|
145
|
+
`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function nG(t){let e=r=>r.kind==="element"&&r.prev?.kind==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild?.kind==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;t.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let i=r.children[n];if(!e(i))continue;let s=i.prev,a=i.firstChild;r.removeChild(s),n--;let o=new Be(s.sourceSpan.start,a.sourceSpan.end),u=new Be(o.start,i.sourceSpan.end);i.condition=s.condition,i.sourceSpan=u,i.startSourceSpan=o,i.removeChild(a)}})}function iG(t,e,r){t.walk(n=>{if(n.children)for(let i=0;i<n.children.length;i++){let s=n.children[i];if(s.kind!=="text"&&!e(s))continue;s.kind!=="text"&&(s.kind="text",s.value=r(s));let a=s.prev;!a||a.kind!=="text"||(a.value+=s.value,a.sourceSpan=new Be(a.sourceSpan.start,s.sourceSpan.end),n.removeChild(s),i--)}})}function sG(t){return iG(t,e=>e.kind==="cdata",e=>`<![CDATA[${e.value}]]>`)}function aG(t){let e=r=>r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!Yr.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev?.kind==="text"&&r.next?.kind==="text";t.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let i=r.children[n];if(!e(i))continue;let s=i.prev,a=i.next;s.value+=`<${i.rawName}>`+i.firstChild.value+`</${i.rawName}>`+a.value,s.sourceSpan=new Be(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(i),n--,r.removeChild(a)}})}function oG(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(n=>{if(PV(n,e))for(let i of n.children){if(i.kind!=="text")continue;let s=i.sourceSpan.start,a=null,o=i.value.split(r);for(let u=0;u<o.length;u++,s=a){let l=o[u];if(u%2===0){a=s.moveBy(l.length),l.length>0&&n.insertChildBefore(i,{kind:"text",value:l,sourceSpan:new Be(s,a)});continue}a=s.moveBy(l.length+4),n.insertChildBefore(i,{kind:"interpolation",sourceSpan:new Be(s,a),children:l.length===0?[]:[{kind:"text",value:l,sourceSpan:new Be(s.moveBy(2),a.moveBy(-2))}]})}n.removeChild(i)}})}function uG(t,e){t.walk(r=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind==="text"&&Yr.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let i=_V(r,e),s=hb(r);if(!i)for(let a=0;a<n.length;a++){let o=n[a];if(o.kind!=="text")continue;let{leadingWhitespace:u,text:l,trailingWhitespace:c}=SV(o.value),p=o.prev,f=o.next;l?(o.value=l,o.sourceSpan=new Be(o.sourceSpan.start.moveBy(u.length),o.sourceSpan.end.moveBy(-c.length)),u&&(p&&(p.hasTrailingSpaces=!0),o.hasLeadingSpaces=!0),c&&(o.hasTrailingSpaces=!0,f&&(f.hasLeadingSpaces=!0))):(r.removeChild(o),a--,(u||c)&&(p&&(p.hasTrailingSpaces=!0),f&&(f.hasLeadingSpaces=!0)))}r.isWhitespaceSensitive=i,r.isIndentationSensitive=s})}function lG(t){t.walk(e=>{e.isSelfClosing=!e.children||e.kind==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function cG(t,e){t.walk(r=>{r.kind==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function pG(t,e){t.walk(r=>{r.cssDisplay=GV(r,e)})}function hG(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=$V(r,e);return}for(let i of n)i.isLeadingSpaceSensitive=BV(i,e),i.isTrailingSpaceSensitive=NV(i,e);for(let i=0;i<n.length;i++){let s=n[i];s.isLeadingSpaceSensitive=(i===0||s.prev.isTrailingSpaceSensitive)&&s.isLeadingSpaceSensitive,s.isTrailingSpaceSensitive=(i===n.length-1||s.next.isLeadingSpaceSensitive)&&s.isTrailingSpaceSensitive}}})}var fG=tG;function dG(t,e,r){let{node:n}=t;switch(n.kind){case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[$t(Cg(t,e,r)),Ct];case"element":case"ieConditionalComment":return hW(t,e,r);case"angularControlFlowBlock":return oW(t,e,r);case"angularControlFlowBlockParameters":return lW(t,e,r);case"angularControlFlowBlockParameter":return Yr.trim(n.expression);case"angularLetDeclaration":return $t(["@let ",$t([n.id," =",$t(Mn([bt,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return n.value;case"angularIcuExpression":return cW(t,e,r);case"angularIcuCase":return pW(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[gu(n),hu(n)];case"interpolation":return[gu(n,e),...t.map(r,"children"),hu(n,e)];case"text":{if(n.parent.kind==="interpolation"){let o=/\n[^\S\n]*$/u,u=o.test(n.value),l=u?n.value.replace(o,""):n.value;return[Ln(l),u?Ct:""]}let i=ws(n,e),s=Ab(n),a=Fs(n,e);return s[0]=[i,s[0]],s.push([s.pop(),a]),eb(s)}case"docType":return[$t([gu(n,e)," ",or(0,n.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),hu(n,e)];case"comment":return[ws(n,e),Ln(e.originalText.slice(pu(n),_c(n))),Fs(n,e)];case"attribute":{if(n.value===null)return n.rawName;let i=Cb(n.value),s=vb(n,e)?"":Gz(i,'"');return[n.rawName,"=",s,Ln(s==='"'?or(0,i,'"',"""):or(0,i,"'","'")),s]}case"frontMatter":case"cdata":default:throw new eV(n,"HTML")}}var mG={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:fG,print:dG,insertPragma:sW,massageAstNode:nV,embed:WH,getVisitorKeys:ZH},gG=mG,yG=[{name:"Angular",type:"markup",aceMode:"html",extensions:[".component.html"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",aceMode:"html",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",aceMode:"html",extensions:[],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",aceMode:"html",extensions:[".mjml"],tmScope:"text.mjml.basic",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",aceMode:"vue",extensions:[".vue"],tmScope:"source.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],rv={bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},nv="HTML",DG={bracketSameLine:rv.bracketSameLine,htmlWhitespaceSensitivity:{category:nv,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:rv.singleAttributePerLine,vueIndentScriptAndStyle:{category:nv,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},EG=DG,iv={};qA(iv,{angular:()=>GG,html:()=>VG,lwc:()=>KG,mjml:()=>WG,vue:()=>JG});function xG(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var CG=xG,AG={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function sv(t){return{...AG,...t}}function av(t){let{canSelfClose:e,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,shouldParseAsRawText:i,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}=t;return{canSelfClose:e,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,getTagContentType:i?(...o)=>i(...o)?ci.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}}var kg=new Map([["*",new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["closedby","open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alpha","alt","autocomplete","checked","colorspace","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),bG=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fencedframe","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","selectedcontent","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),zc={attrs:!0,children:!0,cases:!0,expression:!0},ov=new Set(["parent"]),Ra,Pg,_g,vG=class ml{constructor(e={}){Fz(this,Ra),UA(this,"kind"),UA(this,"parent");for(let r of new Set([...ov,...Object.keys(e)]))this.setProperty(r,e[r]);if(wc(e))for(let r of Object.getOwnPropertySymbols(e))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in zc&&(r=r.map(n=>this.createChild(n))),!ov.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in zc){let i=this[n];if(i){let s=TG(i,a=>a.map(e));r!==i&&(r||(r=new ml({parent:this.parent})),r.setProperty(n,s))}}if(r)for(let n in this)n in zc||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in zc){let n=this[r];if(n)for(let i=0;i<n.length;i++)n[i].walk(e)}e(this)}createChild(e){let r=e instanceof ml?e.clone():new ml(e);return r.setProperty("parent",this),r}insertChildBefore(e,r){let n=this.$children;n.splice(n.indexOf(e),0,this.createChild(r))}removeChild(e){let r=this.$children;r.splice(r.indexOf(e),1)}replaceChild(e,r){let n=this.$children;n[n.indexOf(e)]=this.createChild(r)}clone(){return new ml(this)}get $children(){return this[Tc(this,Ra,Pg)]}set $children(e){this[Tc(this,Ra,Pg)]=e}get firstChild(){return this.$children?.[0]}get lastChild(){return Pa(1,this.$children,-1)}get prev(){let e=Tc(this,Ra,_g);return e[e.indexOf(this)-1]}get next(){let e=Tc(this,Ra,_g);return e[e.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};Ra=new WeakSet,Pg=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},_g=function(){return this.parent?.$children??[]};var FG=vG;function TG(t,e){let r=t.map(e);return r.some((n,i)=>n!==t[i])?r:t}var wG=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/su,parse:kG},{regex:/^\[if(?<condition>[^\]]*)\]><!$/u,parse:PG},{regex:/^<!\s*\[endif\]$/u,parse:_G}];function SG(t,e){if(t.value)for(let{regex:r,parse:n}of wG){let i=t.value.match(r);if(i)return n(t,i,e)}return null}function kG(t,e,r){let{openingTagSuffix:n,condition:i,data:s}=e.groups,a=4+n.length,o=t.sourceSpan.start.moveBy(a),u=o.moveBy(s.length),[l,c]=(()=>{try{return[!0,r(s,o).children]}catch{return[!1,[{kind:"text",value:s,sourceSpan:new Be(o,u)}]]}})();return{kind:"ieConditionalComment",complete:l,children:c,condition:or(0,i.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new Be(t.sourceSpan.start,o),endSourceSpan:new Be(u,t.sourceSpan.end)}}function PG(t,e){let{condition:r}=e.groups;return{kind:"ieConditionalStartComment",condition:or(0,r.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function _G(t){return{kind:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var BG=class extends NW{visitExpansionCase(e,r){r.parseOptions.name==="angular"&&this.visitChildren(r,n=>{n(e.expression)})}visit(e,{parseOptions:r}){LG(e),MG(e,r),jG(e,r),RG(e)}};function NG(t,e,r,n){Gb(new BG,t.children,{parseOptions:r}),e&&t.children.unshift(e);let i=new FG(t);return i.walk(s=>{if(s.kind==="comment"){let a=SG(s,n);a&&s.parent.replaceChild(s,a)}$G(s),IG(s),OG(s)}),i}function $G(t){if(t.kind==="block"){if(t.name=or(0,t.name.toLowerCase(),/\s+/gu," ").trim(),t.kind="angularControlFlowBlock",!lg(t.parameters)){delete t.parameters;return}for(let e of t.parameters)e.kind="angularControlFlowBlockParameter";t.parameters={kind:"angularControlFlowBlockParameters",children:t.parameters,sourceSpan:new Be(t.parameters[0].sourceSpan.start,Pa(0,t.parameters,-1).sourceSpan.end)}}}function IG(t){t.kind==="letDeclaration"&&(t.kind="angularLetDeclaration",t.id=t.name,t.init={kind:"angularLetDeclarationInitializer",sourceSpan:new Be(t.valueSpan.start,t.valueSpan.end),value:t.value},delete t.name,delete t.value)}function OG(t){t.kind==="expansion"&&(t.kind="angularIcuExpression"),t.kind==="expansionCase"&&(t.kind="angularIcuCase")}function uv(t,e){let r=t.toLowerCase();return e(r)?r:t}function lv(t){let e=t.name.startsWith(":")?t.name.slice(1).split(":")[0]:null,r=t.nameSpan.toString(),n=e!==null&&r.startsWith(`${e}:`),i=n?r.slice(e.length+1):r;t.name=i,t.namespace=e,t.hasExplicitNamespace=n}function LG(t){switch(t.kind){case"element":lv(t);for(let e of t.attrs)lv(e),e.valueSpan?(e.value=e.valueSpan.toString(),/["']/u.test(e.value[0])&&(e.value=e.value.slice(1,-1))):e.value=null;break;case"comment":t.value=t.sourceSpan.toString().slice(4,-3);break;case"text":t.value=t.sourceSpan.toString();break}}function MG(t,e){if(t.kind==="element"){let r=Ag(e.isTagNameCaseSensitive?t.name:t.name.toLowerCase());!t.namespace||t.namespace===r.implicitNamespacePrefix||lu(t)?t.tagDefinition=r:t.tagDefinition=Ag("")}}function RG(t){t.sourceSpan&&t.endSourceSpan&&(t.sourceSpan=new Be(t.sourceSpan.start,t.endSourceSpan.end))}function jG(t,e){if(t.kind==="element"&&(e.normalizeTagName&&(!t.namespace||t.namespace===t.tagDefinition.implicitNamespacePrefix||lu(t))&&(t.name=uv(t.name,r=>bG.has(r))),e.normalizeAttributeName))for(let r of t.attrs)r.namespace||(r.name=uv(r.name,n=>kg.has(t.name)&&(kg.get("*").has(n)||kg.get(t.name).has(n))))}function cv(t,e){let{rootNodes:r,errors:n}=Sg(t,av(e));return n.length>0&&Bg(n[0]),{parseOptions:e,rootNodes:r}}function qG(t,e){let r=av(e),{rootNodes:n,errors:i}=Sg(t,r);if(n.some(u=>u.kind==="docType"&&u.value==="html"||u.kind==="element"&&u.name.toLowerCase()==="html"))return cv(t,Ng);let s,a=()=>s??(s=Sg(t,{...r,getTagContentType:void 0})),o=u=>{let{offset:l}=u.startSourceSpan.start;return a().rootNodes.find(c=>c.kind==="element"&&c.startSourceSpan.start.offset===l)??u};for(let[u,l]of n.entries())if(l.kind==="element"){if(l.isVoid)i=a().errors,n[u]=o(l);else if(UG(l)){let{endSourceSpan:c,startSourceSpan:p}=l,f=a().errors.find(h=>h.span.start.offset>p.start.offset&&h.span.start.offset<c.end.offset);f&&Bg(f),n[u]=o(l)}}return i.length>0&&Bg(i[0]),{parseOptions:e,rootNodes:n}}function UG(t){if(t.kind!=="element"||t.name!=="template")return!1;let e=t.attrs.find(r=>r.name==="lang")?.value;return!e||e==="html"}function Bg(t){let{msg:e,span:{start:r,end:n}}=t;throw CG(e,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:t})}function zG(t,e,r,n,i,s){let{offset:a}=n,o=or(0,e.slice(0,a),/[^\n]/gu," ")+r,u=pv(o,t,{...i,shouldParseFrontMatter:!1},s);u.sourceSpan=new Be(n,Pa(0,u.children,-1).sourceSpan.end);let l=u.children[0];return l.length===a?u.children.shift():(l.sourceSpan=new Be(l.sourceSpan.start.moveBy(a),l.sourceSpan.end),l.value=l.value.slice(a)),u}function pv(t,e,r,n={}){let{frontMatter:i,content:s}=r.shouldParseFrontMatter?bV(t):{content:t},a=new zb(t,n.filepath),o=new vg(a,0,0,0),u=o.moveBy(t.length),{parseOptions:l,rootNodes:c}=e(s,r),p={kind:"root",sourceSpan:new Be(o,u),children:c},f;if(i){let[h,m]=[i.start,i.end].map(g=>new vg(a,g.index,g.line-1,g.column));f={...i,kind:"frontMatter",sourceSpan:new Be(h,m)}}return NG(p,f,l,(h,m)=>zG(e,t,h,m,l,n))}var Ng=sv({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function Tu(t){let e=sv(t),r=e.name==="vue"?qG:cv;return{parse:(n,i)=>pv(n,r,e,i),hasPragma:nW,hasIgnorePragma:iW,astFormat:"html",locStart:pu,locEnd:_c}}var VG=Tu(Ng),HG=new Set(["mj-style","mj-raw"]),WG=Tu({...Ng,name:"mjml",shouldParseAsRawText:t=>HG.has(t)}),GG=Tu({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),JG=Tu({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(t,e,r,n){return t.toLowerCase()!=="html"&&!r&&(t!=="template"||n.some(({name:i,value:s})=>i==="lang"&&s!=="html"&&s!==""&&s!==void 0))}}),KG=Tu({name:"lwc",canSelfClose:!1}),YG={html:gG},XG=Object.create,$g=Object.defineProperty,QG=Object.getOwnPropertyDescriptor,ZG=Object.getOwnPropertyNames,eJ=Object.getPrototypeOf,tJ=Object.prototype.hasOwnProperty,he=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),hv=(t,e)=>{for(var r in e)$g(t,r,{get:e[r],enumerable:!0})},rJ=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ZG(e))!tJ.call(t,i)&&i!==r&&$g(t,i,{get:()=>e[i],enumerable:!(n=QG(e,i))||n.enumerable});return t},ja=(t,e,r)=>(r=t!=null?XG(eJ(t)):{},rJ($g(r,"default",{value:t,enumerable:!0}),t)),nJ=he((t,e)=>{var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};e.exports=n(),e.exports.createColors=n}),fv=he(()=>{}),Ig=he((t,e)=>{var r=nJ(),n=fv(),i=class Ok extends Error{constructor(a,o,u,l,c,p){super(a),this.name="CssSyntaxError",this.reason=a,c&&(this.file=c),l&&(this.source=l),p&&(this.plugin=p),typeof o<"u"&&typeof u<"u"&&(typeof o=="number"?(this.line=o,this.column=u):(this.line=o.line,this.column=o.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ok)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(a){if(!this.source)return"";let o=this.source;a==null&&(a=r.isColorSupported);let u=g=>g,l=g=>g,c=g=>g;if(a){let{bold:g,gray:y,red:D}=r.createColors(!0);l=d=>g(D(d)),u=d=>y(d),n&&(c=d=>n(d))}let p=o.split(/\r?\n/),f=Math.max(this.line-3,0),h=Math.min(this.line+2,p.length),m=String(h).length;return p.slice(f,h).map((g,y)=>{let D=f+1+y,d=" "+(" "+D).slice(-m)+" | ";if(D===this.line){if(g.length>160){let A=20,E=Math.max(0,this.column-A),C=Math.max(this.column+A,this.endColumn+A),b=g.slice(E,C),w=u(d.replace(/\d/g," "))+g.slice(0,Math.min(this.column-1,A-1)).replace(/[^\t]/g," ");return l(">")+u(d)+c(b)+`
|
|
146
|
+
`+w+l("^")}let x=u(d.replace(/\d/g," "))+g.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+u(d)+c(g)+`
|
|
147
|
+
`+x+l("^")}return" "+u(d)+c(g)}).join(`
|
|
148
|
+
`)}toString(){let a=this.showSourceCode();return a&&(a=`
|
|
149
|
+
|
|
150
|
+
`+a+`
|
|
151
|
+
`),this.name+": "+this.message+a}};e.exports=i,i.default=i}),Og=he((t,e)=>{var r={after:`
|
|
152
|
+
`,beforeClose:`
|
|
153
|
+
`,beforeComment:`
|
|
154
|
+
`,beforeDecl:`
|
|
155
|
+
`,beforeOpen:" ",beforeRule:`
|
|
156
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function n(s){return s[0].toUpperCase()+s.slice(1)}var i=class{constructor(s){this.builder=s}atrule(s,a){let o="@"+s.name,u=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?o+=s.raws.afterName:u&&(o+=" "),s.nodes)this.block(s,o+u);else{let l=(s.raws.between||"")+(a?";":"");this.builder(o+u+l,s)}}beforeAfter(s,a){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):a==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let u=s.parent,l=0;for(;u&&u.type!=="root";)l+=1,u=u.parent;if(o.includes(`
|
|
157
|
+
`)){let c=this.raw(s,null,"indent");if(c.length)for(let p=0;p<l;p++)o+=c}return o}block(s,a){let o=this.raw(s,"between","beforeOpen");this.builder(a+o+"{",s,"start");let u;s.nodes&&s.nodes.length?(this.body(s),u=this.raw(s,"after")):u=this.raw(s,"after","emptyBody"),u&&this.builder(u),this.builder("}",s,"end")}body(s){let a=s.nodes.length-1;for(;a>0&&s.nodes[a].type==="comment";)a-=1;let o=this.raw(s,"semicolon");for(let u=0;u<s.nodes.length;u++){let l=s.nodes[u],c=this.raw(l,"before");c&&this.builder(c),this.stringify(l,a!==u||o)}}comment(s){let a=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+a+s.text+o+"*/",s)}decl(s,a){let o=this.raw(s,"between","colon"),u=s.prop+o+this.rawValue(s,"value");s.important&&(u+=s.raws.important||" !important"),a&&(u+=";"),this.builder(u,s)}document(s){this.body(s)}raw(s,a,o){let u;if(o||(o=a),a&&(u=s.raws[a],typeof u<"u"))return u;let l=s.parent;if(o==="before"&&(!l||l.type==="root"&&l.first===s||l&&l.type==="document"))return"";if(!l)return r[o];let c=s.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]<"u")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let p="raw"+n(o);this[p]?u=this[p](c,s):c.walk(f=>{if(u=f.raws[a],typeof u<"u")return!1})}return typeof u>"u"&&(u=r[o]),c.rawCache[o]=u,u}rawBeforeClose(s){let a;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return a=o.raws.after,a.includes(`
|
|
158
|
+
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(s,a){let o;return s.walkComments(u=>{if(typeof u.raws.before<"u")return o=u.raws.before,o.includes(`
|
|
159
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,a){let o;return s.walkDecls(u=>{if(typeof u.raws.before<"u")return o=u.raws.before,o.includes(`
|
|
160
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(a,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let a;return s.walk(o=>{if(o.type!=="decl"&&(a=o.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(s){let a;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before<"u")return a=o.raws.before,a.includes(`
|
|
161
|
+
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(s){let a;return s.walkDecls(o=>{if(typeof o.raws.between<"u")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(s){let a;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a<"u"))return!1}),a}rawIndent(s){if(s.raws.indent)return s.raws.indent;let a;return s.walk(o=>{let u=o.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof o.raws.before<"u"){let l=o.raws.before.split(`
|
|
162
|
+
`);return a=l[l.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(s){let a;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(s,a){let o=s[a],u=s.raws[a];return u&&u.value===o?u.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,a){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,a)}};e.exports=i,i.default=i}),Vc=he((t,e)=>{var r=Og();function n(i,s){new r(s).stringify(i)}e.exports=n,n.default=n}),Lg=he((t,e)=>{e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")}),Hc=he((t,e)=>{var r=Ig(),n=Og(),i=Vc(),{isClean:s,my:a}=Lg();function o(c,p){let f=new c.constructor;for(let h in c){if(!Object.prototype.hasOwnProperty.call(c,h)||h==="proxyCache")continue;let m=c[h],g=typeof m;h==="parent"&&g==="object"?p&&(f[h]=p):h==="source"?f[h]=m:Array.isArray(m)?f[h]=m.map(y=>o(y,f)):(g==="object"&&m!==null&&(m=o(m)),f[h]=m)}return f}function u(c,p){if(p&&typeof p.offset<"u")return p.offset;let f=1,h=1,m=0;for(let g=0;g<c.length;g++){if(h===p.line&&f===p.column){m=g;break}c[g]===`
|
|
163
|
+
`?(f=1,h+=1):f+=1}return m}var l=class{get proxyOf(){return this}constructor(c={}){this.raws={},this[s]=!1,this[a]=!0;for(let p in c)if(p==="nodes"){this.nodes=[];for(let f of c[p])typeof f.clone=="function"?this.append(f.clone()):this.append(f)}else this[p]=c[p]}addToError(c){if(c.postcssNode=this,c.stack&&this.source&&/\n\s{4}at /.test(c.stack)){let p=this.source;c.stack=c.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return c}after(c){return this.parent.insertAfter(this,c),this}assign(c={}){for(let p in c)this[p]=c[p];return this}before(c){return this.parent.insertBefore(this,c),this}cleanRaws(c){delete this.raws.before,delete this.raws.after,c||delete this.raws.between}clone(c={}){let p=o(this);for(let f in c)p[f]=c[f];return p}cloneAfter(c={}){let p=this.clone(c);return this.parent.insertAfter(this,p),p}cloneBefore(c={}){let p=this.clone(c);return this.parent.insertBefore(this,p),p}error(c,p={}){if(this.source){let{end:f,start:h}=this.rangeBy(p);return this.source.input.error(c,{column:h.column,line:h.line},{column:f.column,line:f.line},p)}return new r(c)}getProxyProcessor(){return{get(c,p){return p==="proxyOf"?c:p==="root"?()=>c.root().toProxy():c[p]},set(c,p,f){return c[p]===f||(c[p]=f,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&c.markDirty()),!0}}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let c=this;for(;c=c.parent;)c[s]=!1}}next(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c+1]}positionBy(c={}){let p=this.source.start;if(c.index)p=this.positionInside(c.index);else if(c.word){let f="document"in this.source.input?this.source.input.document:this.source.input.css,h=f.slice(u(f,this.source.start),u(f,this.source.end)).indexOf(c.word);h!==-1&&(p=this.positionInside(h))}return p}positionInside(c){let p=this.source.start.column,f=this.source.start.line,h="document"in this.source.input?this.source.input.document:this.source.input.css,m=u(h,this.source.start),g=m+c;for(let y=m;y<g;y++)h[y]===`
|
|
164
|
+
`?(p=1,f+=1):p+=1;return{column:p,line:f,offset:g}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c={}){let p="document"in this.source.input?this.source.input.document:this.source.input.css,f={column:this.source.start.column,line:this.source.start.line,offset:u(p,this.source.start)},h=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:u(p,this.source.end)+1}:{column:f.column+1,line:f.line,offset:f.offset+1};if(c.word){let m=p.slice(u(p,this.source.start),u(p,this.source.end)).indexOf(c.word);m!==-1&&(f=this.positionInside(m),h=this.positionInside(m+c.word.length))}else c.start?f={column:c.start.column,line:c.start.line,offset:u(p,c.start)}:c.index&&(f=this.positionInside(c.index)),c.end?h={column:c.end.column,line:c.end.line,offset:u(p,c.end)}:typeof c.endIndex=="number"?h=this.positionInside(c.endIndex):c.index&&(h=this.positionInside(c.index+1));return(h.line<f.line||h.line===f.line&&h.column<=f.column)&&(h={column:f.column+1,line:f.line,offset:f.offset+1}),{end:h,start:f}}raw(c,p){return new n().raw(this,c,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let p=this,f=!1;for(let h of c)h===this?f=!0:f?(this.parent.insertAfter(p,h),p=h):this.parent.insertBefore(p,h);f||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,p){let f={},h=p==null;p=p||new Map;let m=0;for(let g in this){if(!Object.prototype.hasOwnProperty.call(this,g)||g==="parent"||g==="proxyCache")continue;let y=this[g];if(Array.isArray(y))f[g]=y.map(D=>typeof D=="object"&&D.toJSON?D.toJSON(null,p):D);else if(typeof y=="object"&&y.toJSON)f[g]=y.toJSON(null,p);else if(g==="source"){if(y==null)continue;let D=p.get(y.input);D==null&&(D=m,p.set(y.input,m),m++),f[g]={end:y.end,inputId:D,start:y.start}}else f[g]=y}return h&&(f.inputs=[...p.keys()].map(g=>g.toJSON())),f}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=i){c.stringify&&(c=c.stringify);let p="";return c(this,f=>{p+=f}),p}warn(c,p,f={}){let h={node:this};for(let m in f)h[m]=f[m];return c.warn(p,h)}};e.exports=l,l.default=l}),wu=he((t,e)=>{var r=Hc(),n=class extends r{constructor(i){super(i),this.type="comment"}};e.exports=n,n.default=n}),Wc=he((t,e)=>{var r=Hc(),n=class extends r{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}};e.exports=n,n.default=n}),Bs=he((t,e)=>{var r=wu(),n=Wc(),i=Hc(),{isClean:s,my:a}=Lg(),o,u,l,c;function p(m){return m.map(g=>(g.nodes&&(g.nodes=p(g.nodes)),delete g.source,g))}function f(m){if(m[s]=!1,m.proxyOf.nodes)for(let g of m.proxyOf.nodes)f(g)}var h=class Lk extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...g){for(let y of g){let D=this.normalize(y,this.last);for(let d of D)this.proxyOf.nodes.push(d)}return this.markDirty(),this}cleanRaws(g){if(super.cleanRaws(g),this.nodes)for(let y of this.nodes)y.cleanRaws(g)}each(g){if(!this.proxyOf.nodes)return;let y=this.getIterator(),D,d;for(;this.indexes[y]<this.proxyOf.nodes.length&&(D=this.indexes[y],d=g(this.proxyOf.nodes[D],D),d!==!1);)this.indexes[y]+=1;return delete this.indexes[y],d}every(g){return this.nodes.every(g)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let g=this.lastEach;return this.indexes[g]=0,g}getProxyProcessor(){return{get(g,y){return y==="proxyOf"?g:g[y]?y==="each"||typeof y=="string"&&y.startsWith("walk")?(...D)=>g[y](...D.map(d=>typeof d=="function"?(x,A)=>d(x.toProxy(),A):d)):y==="every"||y==="some"?D=>g[y]((d,...x)=>D(d.toProxy(),...x)):y==="root"?()=>g.root().toProxy():y==="nodes"?g.nodes.map(D=>D.toProxy()):y==="first"||y==="last"?g[y].toProxy():g[y]:g[y]},set(g,y,D){return g[y]===D||(g[y]=D,(y==="name"||y==="params"||y==="selector")&&g.markDirty()),!0}}}index(g){return typeof g=="number"?g:(g.proxyOf&&(g=g.proxyOf),this.proxyOf.nodes.indexOf(g))}insertAfter(g,y){let D=this.index(g),d=this.normalize(y,this.proxyOf.nodes[D]).reverse();D=this.index(g);for(let A of d)this.proxyOf.nodes.splice(D+1,0,A);let x;for(let A in this.indexes)x=this.indexes[A],D<x&&(this.indexes[A]=x+d.length);return this.markDirty(),this}insertBefore(g,y){let D=this.index(g),d=D===0?"prepend":!1,x=this.normalize(y,this.proxyOf.nodes[D],d).reverse();D=this.index(g);for(let E of x)this.proxyOf.nodes.splice(D,0,E);let A;for(let E in this.indexes)A=this.indexes[E],D<=A&&(this.indexes[E]=A+x.length);return this.markDirty(),this}normalize(g,y){if(typeof g=="string")g=p(u(g).nodes);else if(typeof g>"u")g=[];else if(Array.isArray(g)){g=g.slice(0);for(let D of g)D.parent&&D.parent.removeChild(D,"ignore")}else if(g.type==="root"&&this.type!=="document"){g=g.nodes.slice(0);for(let D of g)D.parent&&D.parent.removeChild(D,"ignore")}else if(g.type)g=[g];else if(g.prop){if(typeof g.value>"u")throw new Error("Value field is missed in node creation");typeof g.value!="string"&&(g.value=String(g.value)),g=[new n(g)]}else if(g.selector||g.selectors)g=[new c(g)];else if(g.name)g=[new o(g)];else if(g.text)g=[new r(g)];else throw new Error("Unknown node type in node creation");return g.map(D=>(D[a]||Lk.rebuild(D),D=D.proxyOf,D.parent&&D.parent.removeChild(D),D[s]&&f(D),D.raws||(D.raws={}),typeof D.raws.before>"u"&&y&&typeof y.raws.before<"u"&&(D.raws.before=y.raws.before.replace(/\S/g,"")),D.parent=this.proxyOf,D))}prepend(...g){g=g.reverse();for(let y of g){let D=this.normalize(y,this.first,"prepend").reverse();for(let d of D)this.proxyOf.nodes.unshift(d);for(let d in this.indexes)this.indexes[d]=this.indexes[d]+D.length}return this.markDirty(),this}push(g){return g.parent=this,this.proxyOf.nodes.push(g),this}removeAll(){for(let g of this.proxyOf.nodes)g.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(g){g=this.index(g),this.proxyOf.nodes[g].parent=void 0,this.proxyOf.nodes.splice(g,1);let y;for(let D in this.indexes)y=this.indexes[D],y>=g&&(this.indexes[D]=y-1);return this.markDirty(),this}replaceValues(g,y,D){return D||(D=y,y={}),this.walkDecls(d=>{y.props&&!y.props.includes(d.prop)||y.fast&&!d.value.includes(y.fast)||(d.value=d.value.replace(g,D))}),this.markDirty(),this}some(g){return this.nodes.some(g)}walk(g){return this.each((y,D)=>{let d;try{d=g(y,D)}catch(x){throw y.addToError(x)}return d!==!1&&y.walk&&(d=y.walk(g)),d})}walkAtRules(g,y){return y?g instanceof RegExp?this.walk((D,d)=>{if(D.type==="atrule"&&g.test(D.name))return y(D,d)}):this.walk((D,d)=>{if(D.type==="atrule"&&D.name===g)return y(D,d)}):(y=g,this.walk((D,d)=>{if(D.type==="atrule")return y(D,d)}))}walkComments(g){return this.walk((y,D)=>{if(y.type==="comment")return g(y,D)})}walkDecls(g,y){return y?g instanceof RegExp?this.walk((D,d)=>{if(D.type==="decl"&&g.test(D.prop))return y(D,d)}):this.walk((D,d)=>{if(D.type==="decl"&&D.prop===g)return y(D,d)}):(y=g,this.walk((D,d)=>{if(D.type==="decl")return y(D,d)}))}walkRules(g,y){return y?g instanceof RegExp?this.walk((D,d)=>{if(D.type==="rule"&&g.test(D.selector))return y(D,d)}):this.walk((D,d)=>{if(D.type==="rule"&&D.selector===g)return y(D,d)}):(y=g,this.walk((D,d)=>{if(D.type==="rule")return y(D,d)}))}};h.registerParse=m=>{u=m},h.registerRule=m=>{c=m},h.registerAtRule=m=>{o=m},h.registerRoot=m=>{l=m},e.exports=h,h.default=h,h.rebuild=m=>{m.type==="atrule"?Object.setPrototypeOf(m,o.prototype):m.type==="rule"?Object.setPrototypeOf(m,c.prototype):m.type==="decl"?Object.setPrototypeOf(m,n.prototype):m.type==="comment"?Object.setPrototypeOf(m,r.prototype):m.type==="root"&&Object.setPrototypeOf(m,l.prototype),m[a]=!0,m.nodes&&m.nodes.forEach(g=>{h.rebuild(g)})}}),iJ=he((t,e)=>{var r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",n=(s,a=21)=>(o=a)=>{let u="",l=o|0;for(;l--;)u+=s[Math.random()*s.length|0];return u},i=(s=21)=>{let a="",o=s|0;for(;o--;)a+=r[Math.random()*64|0];return a};e.exports={nanoid:i,customAlphabet:n}}),sJ=he(()=>{}),dv=he((t,e)=>{e.exports=class{}}),Su=he((t,e)=>{var{nanoid:r}=iJ(),{isAbsolute:n,resolve:i}={},{SourceMapConsumer:s,SourceMapGenerator:a}=sJ(),{fileURLToPath:o,pathToFileURL:u}={},l=Ig(),c=dv(),p=fv(),f=Symbol("lineToIndexCache"),h=!!(s&&a),m=!!(i&&n);function g(D){if(D[f])return D[f];let d=D.css.split(`
|
|
165
|
+
`),x=new Array(d.length),A=0;for(let E=0,C=d.length;E<C;E++)x[E]=A,A+=d[E].length+1;return D[f]=x,x}var y=class{get from(){return this.file||this.id}constructor(D,d={}){if(D===null||typeof D>"u"||typeof D=="object"&&!D.toString)throw new Error(`PostCSS received ${D} instead of CSS string`);if(this.css=D.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,d.document&&(this.document=d.document.toString()),d.from&&(!m||/^\w+:\/\//.test(d.from)||n(d.from)?this.file=d.from:this.file=i(d.from)),m&&h){let x=new c(this.css,d);if(x.text){this.map=x;let A=x.consumer().file;!this.file&&A&&(this.file=this.mapResolve(A))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(D,d,x,A={}){let E,C,b,w,P;if(d&&typeof d=="object"){let S=d,I=x;if(typeof S.offset=="number"){w=S.offset;let B=this.fromOffset(w);d=B.line,x=B.col}else d=S.line,x=S.column,w=this.fromLineAndColumn(d,x);if(typeof I.offset=="number"){b=I.offset;let B=this.fromOffset(b);C=B.line,E=B.col}else C=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(x)w=this.fromLineAndColumn(d,x);else{w=d;let S=this.fromOffset(w);d=S.line,x=S.col}let F=this.origin(d,x,C,E);return F?P=new l(D,F.endLine===void 0?F.line:{column:F.column,line:F.line},F.endLine===void 0?F.column:{column:F.endColumn,line:F.endLine},F.source,F.file,A.plugin):P=new l(D,C===void 0?d:{column:x,line:d},C===void 0?x:{column:E,line:C},this.css,this.file,A.plugin),P.input={column:x,endColumn:E,endLine:C,endOffset:b,line:d,offset:w,source:this.css},this.file&&(u&&(P.input.url=u(this.file).toString()),P.input.file=this.file),P}fromLineAndColumn(D,d){return g(this)[D-1]+d-1}fromOffset(D){let d=g(this),x=d[d.length-1],A=0;if(D>=x)A=d.length-1;else{let E=d.length-2,C;for(;A<E;)if(C=A+(E-A>>1),D<d[C])E=C-1;else if(D>=d[C+1])A=C+1;else{A=C;break}}return{col:D-d[A]+1,line:A+1}}mapResolve(D){return/^\w+:\/\//.test(D)?D:i(this.map.consumer().sourceRoot||this.map.root||".",D)}origin(D,d,x,A){if(!this.map)return!1;let E=this.map.consumer(),C=E.originalPositionFor({column:d,line:D});if(!C.source)return!1;let b;typeof x=="number"&&(b=E.originalPositionFor({column:A,line:x}));let w;n(C.source)?w=u(C.source):w=new URL(C.source,this.map.consumer().sourceRoot||u(this.map.mapFile));let P={column:C.column,endColumn:b&&b.column,endLine:b&&b.line,line:C.line,url:w.toString()};if(w.protocol==="file:")if(o)P.file=o(w);else throw new Error("file: protocol is not available in this PostCSS build");let F=E.sourceContentFor(C.source);return F&&(P.source=F),P}toJSON(){let D={};for(let d of["hasBOM","css","file","id"])this[d]!=null&&(D[d]=this[d]);return this.map&&(D.map={...this.map},D.map.consumerCache&&(D.map.consumerCache=void 0)),D}};e.exports=y,y.default=y,p&&p.registerInput&&p.registerInput(y)}),Mg=he((t,e)=>{var r=Bs(),n=class extends r{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}};e.exports=n,n.default=n,r.registerAtRule(n)}),ku=he((t,e)=>{var r=Bs(),n,i,s=class extends r{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,u){let l=super.normalize(a);if(o){if(u==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let c of l)c.raws.before=o.raws.before}return l}removeChild(a,o){let u=this.index(a);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(a)}toResult(a={}){return new n(new i,this,a).stringify()}};s.registerLazyResult=a=>{n=a},s.registerProcessor=a=>{i=a},e.exports=s,s.default=s,r.registerRoot(s)}),mv=he((t,e)=>{var r={comma(n){return r.split(n,[","],!0)},space(n){let i=[" ",`
|
|
166
|
+
`," "];return r.split(n,i)},split(n,i,s){let a=[],o="",u=!1,l=0,c=!1,p="",f=!1;for(let h of n)f?f=!1:h==="\\"?f=!0:c?h===p&&(c=!1):h==='"'||h==="'"?(c=!0,p=h):h==="("?l+=1:h===")"?l>0&&(l-=1):l===0&&i.includes(h)&&(u=!0),u?(o!==""&&a.push(o.trim()),o="",u=!1):o+=h;return(s||o!=="")&&a.push(o.trim()),a}};e.exports=r,r.default=r}),Rg=he((t,e)=>{var r=Bs(),n=mv(),i=class extends r{get selectors(){return n.comma(this.selector)}set selectors(s){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}};e.exports=i,i.default=i,r.registerRule(i)}),jg=he((t,e)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,n=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,s=/[\da-f]/i;e.exports=function(a,o={}){let u=a.css.valueOf(),l=o.ignoreErrors,c,p,f,h,m,g,y,D,d,x,A=u.length,E=0,C=[],b=[];function w(){return E}function P(B){throw a.error("Unclosed "+B,E)}function F(){return b.length===0&&E>=A}function S(B){if(b.length)return b.pop();if(E>=A)return;let O=B?B.ignoreUnclosed:!1;switch(c=u.charCodeAt(E),c){case 10:case 32:case 9:case 13:case 12:{h=E;do h+=1,c=u.charCodeAt(h);while(c===32||c===10||c===9||c===13||c===12);g=["space",u.slice(E,h)],E=h-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let _=String.fromCharCode(c);g=[_,_,E];break}case 40:{if(x=C.length?C.pop()[1]:"",d=u.charCodeAt(E+1),x==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){h=E;do{if(y=!1,h=u.indexOf(")",h+1),h===-1)if(l||O){h=E;break}else P("bracket");for(D=h;u.charCodeAt(D-1)===92;)D-=1,y=!y}while(y);g=["brackets",u.slice(E,h+1),E,h],E=h}else h=u.indexOf(")",E+1),p=u.slice(E,h+1),h===-1||i.test(p)?g=["(","(",E]:(g=["brackets",p,E,h],E=h);break}case 39:case 34:{m=c===39?"'":'"',h=E;do{if(y=!1,h=u.indexOf(m,h+1),h===-1)if(l||O){h=E+1;break}else P("string");for(D=h;u.charCodeAt(D-1)===92;)D-=1,y=!y}while(y);g=["string",u.slice(E,h+1),E,h],E=h;break}case 64:{r.lastIndex=E+1,r.test(u),r.lastIndex===0?h=u.length-1:h=r.lastIndex-2,g=["at-word",u.slice(E,h+1),E,h],E=h;break}case 92:{for(h=E,f=!0;u.charCodeAt(h+1)===92;)h+=1,f=!f;if(c=u.charCodeAt(h+1),f&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(h+=1,s.test(u.charAt(h)))){for(;s.test(u.charAt(h+1));)h+=1;u.charCodeAt(h+1)===32&&(h+=1)}g=["word",u.slice(E,h+1),E,h],E=h;break}default:{c===47&&u.charCodeAt(E+1)===42?(h=u.indexOf("*/",E+2)+1,h===0&&(l||O?h=u.length:P("comment")),g=["comment",u.slice(E,h+1),E,h],E=h):(n.lastIndex=E+1,n.test(u),n.lastIndex===0?h=u.length-1:h=n.lastIndex-2,g=["word",u.slice(E,h+1),E,h],C.push(g),E=h);break}}return E++,g}function I(B){b.push(B)}return{back:I,endOfFile:F,nextToken:S,position:w}}}),qg=he((t,e)=>{var r=Mg(),n=wu(),i=Wc(),s=ku(),a=Rg(),o=jg(),u={empty:!0,space:!0};function l(p){for(let f=p.length-1;f>=0;f--){let h=p[f],m=h[3]||h[2];if(m)return m}}var c=class{constructor(p){this.input=p,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:p,start:{column:1,line:1,offset:0}}}atrule(p){let f=new r;f.name=p[1].slice(1),f.name===""&&this.unnamedAtrule(f,p),this.init(f,p[2]);let h,m,g,y=!1,D=!1,d=[],x=[];for(;!this.tokenizer.endOfFile();){if(p=this.tokenizer.nextToken(),h=p[0],h==="("||h==="["?x.push(h==="("?")":"]"):h==="{"&&x.length>0?x.push("}"):h===x[x.length-1]&&x.pop(),x.length===0)if(h===";"){f.source.end=this.getPosition(p[2]),f.source.end.offset++,this.semicolon=!0;break}else if(h==="{"){D=!0;break}else if(h==="}"){if(d.length>0){for(g=d.length-1,m=d[g];m&&m[0]==="space";)m=d[--g];m&&(f.source.end=this.getPosition(m[3]||m[2]),f.source.end.offset++)}this.end(p);break}else d.push(p);else d.push(p);if(this.tokenizer.endOfFile()){y=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(d),d.length?(f.raws.afterName=this.spacesAndCommentsFromStart(d),this.raw(f,"params",d),y&&(p=d[d.length-1],f.source.end=this.getPosition(p[3]||p[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),D&&(f.nodes=[],this.current=f)}checkMissedSemicolon(p){let f=this.colon(p);if(f===!1)return;let h=0,m;for(let g=f-1;g>=0&&(m=p[g],!(m[0]!=="space"&&(h+=1,h===2)));g--);throw this.input.error("Missed semicolon",m[0]==="word"?m[3]+1:m[2])}colon(p){let f=0,h,m,g;for(let[y,D]of p.entries()){if(m=D,g=m[0],g==="("&&(f+=1),g===")"&&(f-=1),f===0&&g===":")if(!h)this.doubleColon(m);else{if(h[0]==="word"&&h[1]==="progid")continue;return y}h=m}return!1}comment(p){let f=new n;this.init(f,p[2]),f.source.end=this.getPosition(p[3]||p[2]),f.source.end.offset++;let h=p[1].slice(2,-2);if(/^\s*$/.test(h))f.text="",f.raws.left=h,f.raws.right="";else{let m=h.match(/^(\s*)([^]*\S)(\s*)$/);f.text=m[2],f.raws.left=m[1],f.raws.right=m[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(p,f){let h=new i;this.init(h,p[0][2]);let m=p[p.length-1];for(m[0]===";"&&(this.semicolon=!0,p.pop()),h.source.end=this.getPosition(m[3]||m[2]||l(p)),h.source.end.offset++;p[0][0]!=="word";)p.length===1&&this.unknownWord(p),h.raws.before+=p.shift()[1];for(h.source.start=this.getPosition(p[0][2]),h.prop="";p.length;){let d=p[0][0];if(d===":"||d==="space"||d==="comment")break;h.prop+=p.shift()[1]}h.raws.between="";let g;for(;p.length;)if(g=p.shift(),g[0]===":"){h.raws.between+=g[1];break}else g[0]==="word"&&/\w/.test(g[1])&&this.unknownWord([g]),h.raws.between+=g[1];(h.prop[0]==="_"||h.prop[0]==="*")&&(h.raws.before+=h.prop[0],h.prop=h.prop.slice(1));let y=[],D;for(;p.length&&(D=p[0][0],!(D!=="space"&&D!=="comment"));)y.push(p.shift());this.precheckMissedSemicolon(p);for(let d=p.length-1;d>=0;d--){if(g=p[d],g[1].toLowerCase()==="!important"){h.important=!0;let x=this.stringFrom(p,d);x=this.spacesFromEnd(p)+x,x!==" !important"&&(h.raws.important=x);break}else if(g[1].toLowerCase()==="important"){let x=p.slice(0),A="";for(let E=d;E>0;E--){let C=x[E][0];if(A.trim().startsWith("!")&&C!=="space")break;A=x.pop()[1]+A}A.trim().startsWith("!")&&(h.important=!0,h.raws.important=A,p=x)}if(g[0]!=="space"&&g[0]!=="comment")break}p.some(d=>d[0]!=="space"&&d[0]!=="comment")&&(h.raws.between+=y.map(d=>d[1]).join(""),y=[]),this.raw(h,"value",y.concat(p),f),h.value.includes(":")&&!f&&this.checkMissedSemicolon(p)}doubleColon(p){throw this.input.error("Double colon",{offset:p[2]},{offset:p[2]+p[1].length})}emptyRule(p){let f=new a;this.init(f,p[2]),f.selector="",f.raws.between="",this.current=f}end(p){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(p[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(p)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(p){if(this.spaces+=p[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="",f.source.end=this.getPosition(p[2]),f.source.end.offset+=f.raws.ownSemicolon.length)}}getPosition(p){let f=this.input.fromOffset(p);return{column:f.col,line:f.line,offset:p}}init(p,f){this.current.push(p),p.source={input:this.input,start:this.getPosition(f)},p.raws.before=this.spaces,this.spaces="",p.type!=="comment"&&(this.semicolon=!1)}other(p){let f=!1,h=null,m=!1,g=null,y=[],D=p[1].startsWith("--"),d=[],x=p;for(;x;){if(h=x[0],d.push(x),h==="("||h==="[")g||(g=x),y.push(h==="("?")":"]");else if(D&&m&&h==="{")g||(g=x),y.push("}");else if(y.length===0)if(h===";")if(m){this.decl(d,D);return}else break;else if(h==="{"){this.rule(d);return}else if(h==="}"){this.tokenizer.back(d.pop()),f=!0;break}else h===":"&&(m=!0);else h===y[y.length-1]&&(y.pop(),y.length===0&&(g=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),y.length>0&&this.unclosedBracket(g),f&&m){if(!D)for(;d.length&&(x=d[d.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(d.pop());this.decl(d,D)}else this.unknownWord(d)}parse(){let p;for(;!this.tokenizer.endOfFile();)switch(p=this.tokenizer.nextToken(),p[0]){case"space":this.spaces+=p[1];break;case";":this.freeSemicolon(p);break;case"}":this.end(p);break;case"comment":this.comment(p);break;case"at-word":this.atrule(p);break;case"{":this.emptyRule(p);break;default:this.other(p);break}this.endFile()}precheckMissedSemicolon(){}raw(p,f,h,m){let g,y,D=h.length,d="",x=!0,A,E;for(let C=0;C<D;C+=1)g=h[C],y=g[0],y==="space"&&C===D-1&&!m?x=!1:y==="comment"?(E=h[C-1]?h[C-1][0]:"empty",A=h[C+1]?h[C+1][0]:"empty",!u[E]&&!u[A]?d.slice(-1)===","?x=!1:d+=g[1]:x=!1):d+=g[1];if(!x){let C=h.reduce((b,w)=>b+w[1],"");p.raws[f]={raw:C,value:d}}p[f]=d}rule(p){p.pop();let f=new a;this.init(f,p[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(p),this.raw(f,"selector",p),this.current=f}spacesAndCommentsFromEnd(p){let f,h="";for(;p.length&&(f=p[p.length-1][0],!(f!=="space"&&f!=="comment"));)h=p.pop()[1]+h;return h}spacesAndCommentsFromStart(p){let f,h="";for(;p.length&&(f=p[0][0],!(f!=="space"&&f!=="comment"));)h+=p.shift()[1];return h}spacesFromEnd(p){let f,h="";for(;p.length&&(f=p[p.length-1][0],f==="space");)h=p.pop()[1]+h;return h}stringFrom(p,f){let h="";for(let m=f;m<p.length;m++)h+=p[m][1];return p.splice(f,p.length-f),h}unclosedBlock(){let p=this.current.source.start;throw this.input.error("Unclosed block",p.line,p.column)}unclosedBracket(p){throw this.input.error("Unclosed bracket",{offset:p[2]},{offset:p[2]+1})}unexpectedClose(p){throw this.input.error("Unexpected }",{offset:p[2]},{offset:p[2]+1})}unknownWord(p){throw this.input.error("Unknown word "+p[0][1],{offset:p[0][2]},{offset:p[0][2]+p[0][1].length})}unnamedAtrule(p,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}};e.exports=c}),Gc=he((t,e)=>{var r=Bs(),n=Su(),i=qg();function s(a,o){let u=new n(a,o),l=new i(u);try{l.parse()}catch(c){throw c}return l.root}e.exports=s,s.default=s,r.registerParse(s)}),aJ=he((t,e)=>{var r=jg(),n=Su();e.exports={isInlineComment(i){if(i[0]==="word"&&i[1].slice(0,2)==="//"){let s=i,a=[],o,u;for(;i;){if(/\r?\n/.test(i[1])){if(/['"].*\r?\n/.test(i[1])){a.push(i[1].substring(0,i[1].indexOf(`
|
|
167
|
+
`))),u=i[1].substring(i[1].indexOf(`
|
|
168
|
+
`));let c=this.input.css.valueOf().substring(this.tokenizer.position());u+=c,o=i[3]+c.length-u.length}else this.tokenizer.back(i);break}a.push(i[1]),o=i[2],i=this.tokenizer.nextToken({ignoreUnclosed:!0})}let l=["comment",a.join(""),s[2],o];return this.inlineComment(l),u&&(this.input=new n(u),this.tokenizer=r(this.input)),!0}else if(i[1]==="/"){let s=this.tokenizer.nextToken({ignoreUnclosed:!0});if(s[0]==="comment"&&/^\/\*/.test(s[1]))return s[0]="word",s[1]=s[1].slice(1),i[1]="//",this.tokenizer.back(s),e.exports.isInlineComment.bind(this)(i)}return!1}}}),oJ=he((t,e)=>{e.exports={interpolation(r){let n=[r,this.tokenizer.nextToken()],i=["word","}"];if(n[0][1].length>1||n[1][0]!=="{")return this.tokenizer.back(n[1]),!1;for(r=this.tokenizer.nextToken();r&&i.includes(r[0]);)n.push(r),r=this.tokenizer.nextToken();let s=n.map(l=>l[1]),[a]=n,o=n.pop(),u=["word",s.join(""),a[2],o[2]];return this.tokenizer.back(r),this.tokenizer.back(u),!0}}}),uJ=he((t,e)=>{var r=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,n=/\.[0-9]/,i=s=>{let[,a]=s,[o]=a;return(o==="."||o==="#")&&r.test(a)===!1&&n.test(a)===!1};e.exports={isMixinToken:i}}),lJ=he((t,e)=>{var r=jg(),n=/^url\((.+)\)/;e.exports=i=>{let{name:s,params:a=""}=i;if(s==="import"&&a.length){i.import=!0;let o=r({css:a});for(i.filename=a.replace(n,"$1");!o.endOfFile();){let[u,l]=o.nextToken();if(u==="word"&&l==="url")return;if(u==="brackets"){i.options=l,i.filename=a.replace(l,"").trim();break}}}}}),cJ=he((t,e)=>{var r=/:$/,n=/^:(\s+)?/;e.exports=i=>{let{name:s,params:a=""}=i;if(i.name.slice(-1)===":"){if(r.test(s)){let[o]=s.match(r);i.name=s.replace(o,""),i.raws.afterName=o+(i.raws.afterName||""),i.variable=!0,i.value=i.params}if(n.test(a)){let[o]=a.match(n);i.value=a.replace(o,""),i.raws.afterName=(i.raws.afterName||"")+o,i.variable=!0}}}}),pJ=he((t,e)=>{var r=wu(),n=qg(),{isInlineComment:i}=aJ(),{interpolation:s}=oJ(),{isMixinToken:a}=uJ(),o=lJ(),u=cJ(),l=/(!\s*important)$/i;e.exports=class extends n{constructor(...c){super(...c),this.lastNode=null}atrule(c){s.bind(this)(c)||(super.atrule(c),o(this.lastNode),u(this.lastNode))}decl(...c){super.decl(...c),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(c){c[0][1]=` ${c[0][1]}`;let p=c.findIndex(g=>g[0]==="("),f=c.reverse().find(g=>g[0]===")"),h=c.reverse().indexOf(f),m=c.splice(p,h).map(g=>g[1]).join("");for(let g of c.reverse())this.tokenizer.back(g);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=m}init(c,p,f){super.init(c,p,f),this.lastNode=c}inlineComment(c){let p=new r,f=c[1].slice(2);if(this.init(p,c[2]),p.source.end=this.getPosition(c[3]||c[2]),p.inline=!0,p.raws.begin="//",/^\s*$/.test(f))p.text="",p.raws.left=f,p.raws.right="";else{let h=f.match(/^(\s*)([^]*[^\s])(\s*)$/);[,p.raws.left,p.text,p.raws.right]=h}}mixin(c){let[p]=c,f=p[1].slice(0,1),h=c.findIndex(d=>d[0]==="brackets"),m=c.findIndex(d=>d[0]==="("),g="";if((h<0||h>3)&&m>0){let d=c.reduce((S,I,B)=>I[0]===")"?B:S),x=c.slice(m,d+m).map(S=>S[1]).join(""),[A]=c.slice(m),E=[A[2],A[3]],[C]=c.slice(d,d+1),b=[C[2],C[3]],w=["brackets",x].concat(E,b),P=c.slice(0,m),F=c.slice(d+1);c=P,c.push(w),c=c.concat(F)}let y=[];for(let d of c)if((d[1]==="!"||y.length)&&y.push(d),d[1]==="important")break;if(y.length){let[d]=y,x=c.indexOf(d),A=y[y.length-1],E=[d[2],d[3]],C=[A[4],A[5]],b=["word",y.map(w=>w[1]).join("")].concat(E,C);c.splice(x,y.length,b)}let D=c.findIndex(d=>l.test(d[1]));D>0&&([,g]=c[D],c.splice(D,1));for(let d of c.reverse())this.tokenizer.back(d);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=f,g&&(this.lastNode.important=!0,this.lastNode.raws.important=g)}other(c){i.bind(this)(c)||super.other(c)}rule(c){let p=c[c.length-1],f=c[c.length-2];if(f[0]==="at-word"&&p[0]==="{"&&(this.tokenizer.back(p),s.bind(this)(f))){let h=this.tokenizer.nextToken();c=c.slice(0,c.length-2).concat([h]);for(let m of c.reverse())this.tokenizer.back(m);return}super.rule(c),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(c){let[p]=c;if(c[0][1]==="each"&&c[1][0]==="("){this.each(c);return}if(a(p)){this.mixin(c);return}super.unknownWord(c)}}}),hJ=he((t,e)=>{var r=Og();e.exports=class extends r{atrule(n,i){if(!n.mixin&&!n.variable&&!n.function){super.atrule(n,i);return}let s=`${n.function?"":n.raws.identifier||"@"}${n.name}`,a=n.params?this.rawValue(n,"params"):"",o=n.raws.important||"";if(n.variable&&(a=n.value),typeof n.raws.afterName<"u"?s+=n.raws.afterName:a&&(s+=" "),n.nodes)this.block(n,s+a+o);else{let u=(n.raws.between||"")+o+(i?";":"");this.builder(s+a+u,n)}}comment(n){if(n.inline){let i=this.raw(n,"left","commentLeft"),s=this.raw(n,"right","commentRight");this.builder(`//${i}${n.text}${s}`,n)}else super.comment(n)}}}),fJ=he((t,e)=>{var r=Su(),n=pJ(),i=hJ();e.exports={parse(s,a){let o=new r(s,a),u=new n(o);return u.parse(),u.root.walk(l=>{let c=o.css.lastIndexOf(l.source.input.css);if(c===0)return;if(c+l.source.input.css.length!==o.css.length)throw new Error("Invalid state detected in postcss-less");let p=c+l.source.start.offset,f=o.fromOffset(c+l.source.start.offset);if(l.source.start={offset:p,line:f.line,column:f.col},l.source.end){let h=c+l.source.end.offset,m=o.fromOffset(c+l.source.end.offset);l.source.end={offset:h,line:m.line,column:m.col}}}),u.root},stringify(s,a){new i(a).stringify(s)},nodeToString(s){let a="";return e.exports.stringify(s,o=>{a+=o}),a}}}),Ug=he((t,e)=>{var r=Bs(),n,i,s=class extends r{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new n(new i,this,a).stringify()}};s.registerLazyResult=a=>{n=a},s.registerProcessor=a=>{i=a},e.exports=s,s.default=s}),dJ=he((t,e)=>{var r=Mg(),n=wu(),i=Wc(),s=Su(),a=dv(),o=ku(),u=Rg();function l(c,p){if(Array.isArray(c))return c.map(m=>l(m));let{inputs:f,...h}=c;if(f){p=[];for(let m of f){let g={...m,__proto__:s.prototype};g.map&&(g.map={...g.map,__proto__:a.prototype}),p.push(g)}}if(h.nodes&&(h.nodes=c.nodes.map(m=>l(m,p))),h.source){let{inputId:m,...g}=h.source;h.source=g,m!=null&&(h.source.input=p[m])}if(h.type==="root")return new o(h);if(h.type==="decl")return new i(h);if(h.type==="rule")return new u(h);if(h.type==="comment")return new n(h);if(h.type==="atrule")return new r(h);throw new Error("Unknown node type: "+c.type)}e.exports=l,l.default=l}),gv=he((t,e)=>{e.exports=class{generate(){}}}),yv=he((t,e)=>{var r=class{constructor(n,i={}){if(this.type="warning",this.text=n,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};e.exports=r,r.default=r}),zg=he((t,e)=>{var r=yv(),n=class{get content(){return this.css}constructor(i,s,a){this.processor=i,this.messages=[],this.root=s,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let a=new r(i,s);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}};e.exports=n,n.default=n}),Dv=he((t,e)=>{var r={};e.exports=function(n){r[n]||(r[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))}}),Ev=he((t,e)=>{var r=Bs(),n=Ug(),i=gv(),s=Gc(),a=zg(),o=ku(),u=Vc(),{isClean:l,my:c}=Lg();Dv();var p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function g(E){return typeof E=="object"&&typeof E.then=="function"}function y(E){let C=!1,b=p[E.type];return E.type==="decl"?C=E.prop.toLowerCase():E.type==="atrule"&&(C=E.name.toLowerCase()),C&&E.append?[b,b+"-"+C,m,b+"Exit",b+"Exit-"+C]:C?[b,b+"-"+C,b+"Exit",b+"Exit-"+C]:E.append?[b,m,b+"Exit"]:[b,b+"Exit"]}function D(E){let C;return E.type==="document"?C=["Document",m,"DocumentExit"]:E.type==="root"?C=["Root",m,"RootExit"]:C=y(E),{eventIndex:0,events:C,iterator:0,node:E,visitorIndex:0,visitors:[]}}function d(E){return E[l]=!1,E.nodes&&E.nodes.forEach(C=>d(C)),E}var x={},A=class Mk{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(C,b,w){this.stringified=!1,this.processed=!1;let P;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))P=d(b);else if(b instanceof Mk||b instanceof a)P=d(b.root),b.map&&(typeof w.map>"u"&&(w.map={}),w.map.inline||(w.map.inline=!1),w.map.prev=b.map);else{let F=s;w.syntax&&(F=w.syntax.parse),w.parser&&(F=w.parser),F.parse&&(F=F.parse);try{P=F(b,w)}catch(S){this.processed=!0,this.error=S}P&&!P[c]&&r.rebuild(P)}this.result=new a(C,P,w),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(F=>typeof F=="object"&&F.prepare?{...F,...F.prepare(this.result)}:F)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(C){return this.async().catch(C)}finally(C){return this.async().then(C,C)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(C,b){let w=this.result.lastPlugin;try{b&&b.addToError(C),this.error=C,C.name==="CssSyntaxError"&&!C.plugin?(C.plugin=w.postcssPlugin,C.setMessage()):w.postcssVersion}catch(P){console&&console.error&&console.error(P)}return C}prepareVisitors(){this.listeners={};let C=(b,w,P)=>{this.listeners[w]||(this.listeners[w]=[]),this.listeners[w].push([b,P])};for(let b of this.plugins)if(typeof b=="object")for(let w in b){if(!f[w]&&/^[A-Z]/.test(w))throw new Error(`Unknown event ${w} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[w])if(typeof b[w]=="object")for(let P in b[w])P==="*"?C(b,w,b[w][P]):C(b,w+"-"+P.toLowerCase(),b[w][P]);else typeof b[w]=="function"&&C(b,w,b[w])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let C=0;C<this.plugins.length;C++){let b=this.plugins[C],w=this.runOnRoot(b);if(g(w))try{await w}catch(P){throw this.handleError(P)}}if(this.prepareVisitors(),this.hasListener){let C=this.result.root;for(;!C[l];){C[l]=!0;let b=[D(C)];for(;b.length>0;){let w=this.visitTick(b);if(g(w))try{await w}catch(P){let F=b[b.length-1].node;throw this.handleError(P,F)}}}if(this.listeners.OnceExit)for(let[b,w]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(C.type==="document"){let P=C.nodes.map(F=>w(F,this.helpers));await Promise.all(P)}else await w(C,this.helpers)}catch(P){throw this.handleError(P)}}}return this.processed=!0,this.stringify()}runOnRoot(C){this.result.lastPlugin=C;try{if(typeof C=="object"&&C.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(w=>C.Once(w,this.helpers));return g(b[0])?Promise.all(b):b}return C.Once(this.result.root,this.helpers)}else if(typeof C=="function")return C(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let C=this.result.opts,b=u;C.syntax&&(b=C.syntax.stringify),C.stringifier&&(b=C.stringifier),b.stringify&&(b=b.stringify);let w=new i(b,this.result.root,this.result.opts).generate();return this.result.css=w[0],this.result.map=w[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let C of this.plugins){let b=this.runOnRoot(C);if(g(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let C=this.result.root;for(;!C[l];)C[l]=!0,this.walkSync(C);if(this.listeners.OnceExit)if(C.type==="document")for(let b of C.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,C)}return this.result}then(C,b){return this.async().then(C,b)}toString(){return this.css}visitSync(C,b){for(let[w,P]of C){this.result.lastPlugin=w;let F;try{F=P(b,this.helpers)}catch(S){throw this.handleError(S,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(g(F))throw this.getAsyncError()}}visitTick(C){let b=C[C.length-1],{node:w,visitors:P}=b;if(w.type!=="root"&&w.type!=="document"&&!w.parent){C.pop();return}if(P.length>0&&b.visitorIndex<P.length){let[S,I]=P[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===P.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=S;try{return I(w.toProxy(),this.helpers)}catch(B){throw this.handleError(B,w)}}if(b.iterator!==0){let S=b.iterator,I;for(;I=w.nodes[w.indexes[S]];)if(w.indexes[S]+=1,!I[l]){I[l]=!0,C.push(D(I));return}b.iterator=0,delete w.indexes[S]}let F=b.events;for(;b.eventIndex<F.length;){let S=F[b.eventIndex];if(b.eventIndex+=1,S===m){w.nodes&&w.nodes.length&&(w[l]=!0,b.iterator=w.getIterator());return}else if(this.listeners[S]){b.visitors=this.listeners[S];return}}C.pop()}walkSync(C){C[l]=!0;let b=y(C);for(let w of b)if(w===m)C.nodes&&C.each(P=>{P[l]||this.walkSync(P)});else{let P=this.listeners[w];if(P&&this.visitSync(P,C.toProxy()))return}}warnings(){return this.sync().warnings()}};A.registerPostcss=E=>{x=E},e.exports=A,A.default=A,o.registerLazyResult(A),n.registerLazyResult(A)}),mJ=he((t,e)=>{var r=gv(),n=Gc(),i=zg(),s=Vc();Dv();var a=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let o,u=n;try{o=u(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=o,o}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(o,u,l){u=u.toString(),this.stringified=!1,this._processor=o,this._css=u,this._opts=l,this._map=void 0;let c,p=s;this.result=new i(this._processor,c,this._opts),this.result.css=u;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new r(p,c,this._opts,u);if(h.isMap()){let[m,g]=h.generate();m&&(this.result.css=m),g&&(this.result.map=g)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(o){return this.async().catch(o)}finally(o){return this.async().then(o,o)}sync(){if(this.error)throw this.error;return this.result}then(o,u){return this.async().then(o,u)}toString(){return this._css}warnings(){return[]}};e.exports=a,a.default=a}),gJ=he((t,e)=>{var r=Ug(),n=Ev(),i=mJ(),s=ku(),a=class{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let l of o)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))u=u.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)u.push(l);else if(typeof l=="function")u.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new i(this,o,u):new n(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}};e.exports=a,a.default=a,s.registerProcessor(a),r.registerProcessor(a)}),Vg=he((t,e)=>{var r=Mg(),n=wu(),i=Bs(),s=Ig(),a=Wc(),o=Ug(),u=dJ(),l=Su(),c=Ev(),p=mv(),f=Hc(),h=Gc(),m=gJ(),g=zg(),y=ku(),D=Rg(),d=Vc(),x=yv();function A(...E){return E.length===1&&Array.isArray(E[0])&&(E=E[0]),new m(E)}A.plugin=function(E,C){let b=!1;function w(...F){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
169
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let S=C(...F);return S.postcssPlugin=E,S.postcssVersion=new m().version,S}let P;return Object.defineProperty(w,"postcss",{get(){return P||(P=w()),P}}),w.process=function(F,S,I){return A([w(I)]).process(F,S)},w},A.stringify=d,A.parse=h,A.fromJSON=u,A.list=p,A.comment=E=>new n(E),A.atRule=E=>new r(E),A.decl=E=>new a(E),A.rule=E=>new D(E),A.root=E=>new y(E),A.document=E=>new o(E),A.CssSyntaxError=s,A.Declaration=a,A.Container=i,A.Processor=m,A.Document=o,A.Comment=n,A.Warning=x,A.AtRule=r,A.Result=g,A.Input=l,A.Rule=D,A.Root=y,A.Node=f,c.registerPostcss(A),e.exports=A,A.default=A}),yJ=he((t,e)=>{var{Container:r}=Vg(),n=class extends r{constructor(i){super(i),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};e.exports=n}),DJ=he((t,e)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,n=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,s=/[\da-f]/i,a=/[\n\f\r]/g;e.exports=function(o,u={}){let l=o.css.valueOf(),c=u.ignoreErrors,p,f,h,m,g,y,D,d,x,A=l.length,E=0,C=[],b=[],w;function P(){return E}function F(_){throw o.error("Unclosed "+_,E)}function S(){return b.length===0&&E>=A}function I(){let _=1,$=!1,Y=!1;for(;_>0;)f+=1,l.length<=f&&F("interpolation"),p=l.charCodeAt(f),d=l.charCodeAt(f+1),$?!Y&&p===$?($=!1,Y=!1):p===92?Y=!Y:Y&&(Y=!1):p===39||p===34?$=p:p===125?_-=1:p===35&&d===123&&(_+=1)}function B(_){if(b.length)return b.pop();if(E>=A)return;let $=_?_.ignoreUnclosed:!1;switch(p=l.charCodeAt(E),p){case 10:case 32:case 9:case 13:case 12:{f=E;do f+=1,p=l.charCodeAt(f);while(p===32||p===10||p===9||p===13||p===12);x=["space",l.slice(E,f)],E=f-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Y=String.fromCharCode(p);x=[Y,Y,E];break}case 44:{x=["word",",",E,E+1];break}case 40:{if(D=C.length?C.pop()[1]:"",d=l.charCodeAt(E+1),D==="url"&&d!==39&&d!==34){for(w=1,y=!1,f=E+1;f<=l.length-1;){if(d=l.charCodeAt(f),d===92)y=!y;else if(d===40)w+=1;else if(d===41&&(w-=1,w===0))break;f+=1}m=l.slice(E,f+1),x=["brackets",m,E,f],E=f}else f=l.indexOf(")",E+1),m=l.slice(E,f+1),f===-1||i.test(m)?x=["(","(",E]:(x=["brackets",m,E,f],E=f);break}case 39:case 34:{for(h=p,f=E,y=!1;f<A&&(f++,f===A&&F("string"),p=l.charCodeAt(f),d=l.charCodeAt(f+1),!(!y&&p===h));)p===92?y=!y:y?y=!1:p===35&&d===123&&I();x=["string",l.slice(E,f+1),E,f],E=f;break}case 64:{r.lastIndex=E+1,r.test(l),r.lastIndex===0?f=l.length-1:f=r.lastIndex-2,x=["at-word",l.slice(E,f+1),E,f],E=f;break}case 92:{for(f=E,g=!0;l.charCodeAt(f+1)===92;)f+=1,g=!g;if(p=l.charCodeAt(f+1),g&&p!==47&&p!==32&&p!==10&&p!==9&&p!==13&&p!==12&&(f+=1,s.test(l.charAt(f)))){for(;s.test(l.charAt(f+1));)f+=1;l.charCodeAt(f+1)===32&&(f+=1)}x=["word",l.slice(E,f+1),E,f],E=f;break}default:d=l.charCodeAt(E+1),p===35&&d===123?(f=E,I(),m=l.slice(E,f+1),x=["word",m,E,f],E=f):p===47&&d===42?(f=l.indexOf("*/",E+2)+1,f===0&&(c||$?f=l.length:F("comment")),x=["comment",l.slice(E,f+1),E,f],E=f):p===47&&d===47?(a.lastIndex=E+1,a.test(l),a.lastIndex===0?f=l.length-1:f=a.lastIndex-2,m=l.slice(E,f+1),x=["comment",m,E,f,"inline"],E=f):(n.lastIndex=E+1,n.test(l),n.lastIndex===0?f=l.length-1:f=n.lastIndex-2,x=["word",l.slice(E,f+1),E,f],C.push(x),E=f);break}return E++,x}function O(_){b.push(_)}return{back:O,endOfFile:S,nextToken:B,position:P}}}),EJ=he((t,e)=>{var{Comment:r}=Vg(),n=qg(),i=yJ(),s=DJ(),a=class extends n{atrule(o){let u=o[1],l=o;for(;!this.tokenizer.endOfFile();){let c=this.tokenizer.nextToken();if(c[0]==="word"&&c[2]===l[3]+1)u+=c[1],l=c;else{this.tokenizer.back(c);break}}super.atrule(["at-word",u,o[2],l[3]])}comment(o){if(o[4]==="inline"){let u=new r;this.init(u,o[2]),u.raws.inline=!0;let l=this.input.fromOffset(o[3]);u.source.end={column:l.col,line:l.line,offset:o[3]+1};let c=o[1].slice(2);if(/^\s*$/.test(c))u.text="",u.raws.left=c,u.raws.right="";else{let p=c.match(/^(\s*)([^]*\S)(\s*)$/),f=p[2].replace(/(\*\/|\/\*)/g,"*//*");u.text=f,u.raws.left=p[1],u.raws.right=p[3],u.raws.text=p[2]}}else super.comment(o)}createTokenizer(){this.tokenizer=s(this.input)}raw(o,u,l,c){if(super.raw(o,u,l,c),o.raws[u]){let p=o.raws[u].raw;o.raws[u].raw=l.reduce((f,h)=>{if(h[0]==="comment"&&h[4]==="inline"){let m=h[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return f+"/*"+m+"*/"}else return f+h[1]},""),p!==o.raws[u].raw&&(o.raws[u].scss=p)}}rule(o){let u=!1,l=0,c="";for(let p of o)if(u)p[0]!=="comment"&&p[0]!=="{"&&(c+=p[1]);else{if(p[0]==="space"&&p[1].includes(`
|
|
170
|
+
`))break;p[0]==="("?l+=1:p[0]===")"?l-=1:l===0&&p[0]===":"&&(u=!0)}if(!u||c.trim()===""||/^[#:A-Za-z-]/.test(c))super.rule(o);else{o.pop();let p=new i;this.init(p,o[0][2]);let f;for(let m=o.length-1;m>=0;m--)if(o[m][0]!=="space"){f=o[m];break}if(f[3]){let m=this.input.fromOffset(f[3]);p.source.end={column:m.col,line:m.line,offset:f[3]+1}}else{let m=this.input.fromOffset(f[2]);p.source.end={column:m.col,line:m.line,offset:f[2]+1}}for(;o[0][0]!=="word";)p.raws.before+=o.shift()[1];if(o[0][2]){let m=this.input.fromOffset(o[0][2]);p.source.start={column:m.col,line:m.line,offset:o[0][2]}}for(p.prop="";o.length;){let m=o[0][0];if(m===":"||m==="space"||m==="comment")break;p.prop+=o.shift()[1]}p.raws.between="";let h;for(;o.length;)if(h=o.shift(),h[0]===":"){p.raws.between+=h[1];break}else p.raws.between+=h[1];(p.prop[0]==="_"||p.prop[0]==="*")&&(p.raws.before+=p.prop[0],p.prop=p.prop.slice(1)),p.raws.between+=this.spacesAndCommentsFromStart(o),this.precheckMissedSemicolon(o);for(let m=o.length-1;m>0;m--){if(h=o[m],h[1]==="!important"){p.important=!0;let g=this.stringFrom(o,m);g=this.spacesFromEnd(o)+g,g!==" !important"&&(p.raws.important=g);break}else if(h[1]==="important"){let g=o.slice(0),y="";for(let D=m;D>0;D--){let d=g[D][0];if(y.trim().indexOf("!")===0&&d!=="space")break;y=g.pop()[1]+y}y.trim().indexOf("!")===0&&(p.important=!0,p.raws.important=y,o=g)}if(h[0]!=="space"&&h[0]!=="comment")break}this.raw(p,"value",o),p.value.includes(":")&&this.checkMissedSemicolon(o),this.current=p}}};e.exports=a}),xJ=he((t,e)=>{var{Input:r}=Vg(),n=EJ();e.exports=function(i,s){let a=new r(i,s),o=new n(a);return o.parse(),o.root}}),xv=he(t=>{Object.defineProperty(t,"__esModule",{value:!0});function e(r){this.after=r.after,this.before=r.before,this.type=r.type,this.value=r.value,this.sourceIndex=r.sourceIndex}t.default=e}),Cv=he(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=xv(),r=n(e);function n(s){return s&&s.__esModule?s:{default:s}}function i(s){var a=this;this.constructor(s),this.nodes=s.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(o){o.parent=a})}i.prototype=Object.create(r.default.prototype),i.constructor=r.default,i.prototype.walk=function(s,a){for(var o=typeof s=="string"||s instanceof RegExp,u=o?a:s,l=typeof s=="string"?new RegExp(s):s,c=0;c<this.nodes.length;c++){var p=this.nodes[c],f=o?l.test(p.type):!0;if(f&&u&&u(p,c,this.nodes)===!1||p.nodes&&p.walk(s,a)===!1)return!1}return!0},i.prototype.each=function(){for(var s=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],a=0;a<this.nodes.length;a++){var o=this.nodes[a];if(s(o,a,this.nodes)===!1)return!1}return!0},t.default=i}),CJ=he(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseMediaFeature=a,t.parseMediaQuery=o,t.parseMediaList=u;var e=xv(),r=s(e),n=Cv(),i=s(n);function s(l){return l&&l.__esModule?l:{default:l}}function a(l){var c=arguments.length<=1||arguments[1]===void 0?0:arguments[1],p=[{mode:"normal",character:null}],f=[],h=0,m="",g=null,y=null,D=c,d=l;l[0]==="("&&l[l.length-1]===")"&&(d=l.substring(1,l.length-1),D++);for(var x=0;x<d.length;x++){var A=d[x];if((A==="'"||A==='"')&&(p[h].isCalculationEnabled===!0?(p.push({mode:"string",isCalculationEnabled:!1,character:A}),h++):p[h].mode==="string"&&p[h].character===A&&d[x-1]!=="\\"&&(p.pop(),h--)),A==="{"?(p.push({mode:"interpolation",isCalculationEnabled:!0}),h++):A==="}"&&(p.pop(),h--),p[h].mode==="normal"&&A===":"){var E=d.substring(x+1);y={type:"value",before:/^(\s*)/.exec(E)[1],after:/(\s*)$/.exec(E)[1],value:E.trim()},y.sourceIndex=y.before.length+x+1+D,g={type:"colon",sourceIndex:x+D,after:y.before,value:":"};break}m+=A}return m={type:"media-feature",before:/^(\s*)/.exec(m)[1],after:/(\s*)$/.exec(m)[1],value:m.trim()},m.sourceIndex=m.before.length+D,f.push(m),g!==null&&(g.before=m.after,f.push(g)),y!==null&&f.push(y),f}function o(l){var c=arguments.length<=1||arguments[1]===void 0?0:arguments[1],p=[],f=0,h=!1,m=void 0;function g(){return{before:"",after:"",value:""}}m=g();for(var y=0;y<l.length;y++){var D=l[y];h?(m.value+=D,(D==="{"||D==="(")&&f++,(D===")"||D==="}")&&f--):D.search(/\s/)!==-1?m.before+=D:(D==="("&&(m.type="media-feature-expression",f++),m.value=D,m.sourceIndex=c+y,h=!0),h&&f===0&&(D===")"||y===l.length-1||l[y+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(m.value)!==-1&&(m.type="keyword"),m.type==="media-feature-expression"&&(m.nodes=a(m.value,m.sourceIndex)),p.push(Array.isArray(m.nodes)?new i.default(m):new r.default(m)),m=g(),h=!1)}for(var d=0;d<p.length;d++)if(m=p[d],d>0&&(p[d-1].after=m.before),m.type===void 0){if(d>0){if(p[d-1].type==="media-feature-expression"){m.type="keyword";continue}if(p[d-1].value==="not"||p[d-1].value==="only"){m.type="media-type";continue}if(p[d-1].value==="and"){m.type="media-feature-expression";continue}p[d-1].type==="media-type"&&(p[d+1]?m.type=p[d+1].type==="media-feature-expression"?"keyword":"media-feature-expression":m.type="media-feature-expression")}if(d===0){if(!p[d+1]){m.type="media-type";continue}if(p[d+1]&&(p[d+1].type==="media-feature-expression"||p[d+1].type==="keyword")){m.type="media-type";continue}if(p[d+2]){if(p[d+2].type==="media-feature-expression"){m.type="media-type",p[d+1].type="keyword";continue}if(p[d+2].type==="keyword"){m.type="keyword",p[d+1].type="media-type";continue}}if(p[d+3]&&p[d+3].type==="media-feature-expression"){m.type="keyword",p[d+1].type="media-type",p[d+2].type="keyword";continue}}}return p}function u(l){var c=[],p=0,f=0,h=/^(\s*)url\s*\(/.exec(l);if(h!==null){for(var m=h[0].length,g=1;g>0;){var y=l[m];y==="("&&g++,y===")"&&g--,m++}c.unshift(new r.default({type:"url",value:l.substring(0,m).trim(),sourceIndex:h[1].length,before:h[1],after:/^(\s*)/.exec(l.substring(m))[1]})),p=m}for(var D=p;D<l.length;D++){var d=l[D];if(d==="("&&f++,d===")"&&f--,f===0&&d===","){var x=l.substring(p,D),A=/^(\s*)/.exec(x)[1];c.push(new i.default({type:"media-query",value:x.trim(),sourceIndex:p+A.length,nodes:o(x,p),before:A,after:/(\s*)$/.exec(x)[1]})),p=D+1}}var E=l.substring(p),C=/^(\s*)/.exec(E)[1];return c.push(new i.default({type:"media-query",value:E.trim(),sourceIndex:p+C.length,nodes:o(E,p),before:C,after:/(\s*)$/.exec(E)[1]})),c}}),AJ=he(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var e=Cv(),r=i(e),n=CJ();function i(a){return a&&a.__esModule?a:{default:a}}function s(a){return new r.default({nodes:(0,n.parseMediaList)(a),type:"media-query-list",value:a.trim()})}}),Av=he((t,e)=>{e.exports=function(r,n){if(n=typeof n=="number"?n:1/0,!n)return Array.isArray(r)?r.map(function(s){return s}):r;return i(r,1);function i(s,a){return s.reduce(function(o,u){return Array.isArray(u)&&a<n?o.concat(i(u,a+1)):o.concat(u)},[])}}}),bv=he((t,e)=>{e.exports=function(r,n){for(var i=-1,s=[];(i=r.indexOf(n,i+1))!==-1;)s.push(i);return s}}),vv=he((t,e)=>{function r(s,a){for(var o=1,u=s.length,l=s[0],c=s[0],p=1;p<u;++p)if(c=l,l=s[p],a(l,c)){if(p===o){o++;continue}s[o++]=l}return s.length=o,s}function n(s){for(var a=1,o=s.length,u=s[0],l=s[0],c=1;c<o;++c,l=u)if(l=u,u=s[c],u!==l){if(c===a){a++;continue}s[a++]=u}return s.length=a,s}function i(s,a,o){return s.length===0?s:a?(o||s.sort(a),r(s,a)):(o||s.sort(),n(s))}e.exports=i}),qa=he((t,e)=>{t.__esModule=!0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function n(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}var i=function a(o,u){if((typeof o>"u"?"undefined":r(o))!=="object")return o;var l=new o.constructor;for(var c in o)if(o.hasOwnProperty(c)){var p=o[c],f=typeof p>"u"?"undefined":r(p);c==="parent"&&f==="object"?u&&(l[c]=u):p instanceof Array?l[c]=p.map(function(h){return a(h,l)}):l[c]=a(p,l)}return l},s=(function(){function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,a);for(var u in o)this[u]=o[u];var l=o.spaces;l=l===void 0?{}:l;var c=l.before,p=c===void 0?"":c,f=l.after,h=f===void 0?"":f;this.spaces={before:p,after:h}}return a.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},a.prototype.replaceWith=function(){if(this.parent){for(var o in arguments)this.parent.insertBefore(this,arguments[o]);this.remove()}return this},a.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},a.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},a.prototype.clone=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i(this);for(var l in o)u[l]=o[l];return u},a.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},a})();t.default=s,e.exports=t.default}),wr=he(t=>{t.__esModule=!0,t.TAG="tag",t.STRING="string",t.SELECTOR="selector",t.ROOT="root",t.PSEUDO="pseudo",t.NESTING="nesting",t.ID="id",t.COMMENT="comment",t.COMBINATOR="combinator",t.CLASS="class",t.ATTRIBUTE="attribute",t.UNIVERSAL="universal"}),Hg=he((t,e)=>{t.__esModule=!0;var r=(function(){function h(m,g){for(var y=0;y<g.length;y++){var D=g[y];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(m,D.key,D)}}return function(m,g,y){return g&&h(m.prototype,g),y&&h(m,y),m}})(),n=qa(),i=u(n),s=wr(),a=o(s);function o(h){if(h&&h.__esModule)return h;var m={};if(h!=null)for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(m[g]=h[g]);return m.default=h,m}function u(h){return h&&h.__esModule?h:{default:h}}function l(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function c(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function p(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var f=(function(h){p(m,h);function m(g){l(this,m);var y=c(this,h.call(this,g));return y.nodes||(y.nodes=[]),y}return m.prototype.append=function(g){return g.parent=this,this.nodes.push(g),this},m.prototype.prepend=function(g){return g.parent=this,this.nodes.unshift(g),this},m.prototype.at=function(g){return this.nodes[g]},m.prototype.index=function(g){return typeof g=="number"?g:this.nodes.indexOf(g)},m.prototype.removeChild=function(g){g=this.index(g),this.at(g).parent=void 0,this.nodes.splice(g,1);var y=void 0;for(var D in this.indexes)y=this.indexes[D],y>=g&&(this.indexes[D]=y-1);return this},m.prototype.removeAll=function(){for(var D=this.nodes,g=Array.isArray(D),y=0,D=g?D:D[Symbol.iterator]();;){var d;if(g){if(y>=D.length)break;d=D[y++]}else{if(y=D.next(),y.done)break;d=y.value}var x=d;x.parent=void 0}return this.nodes=[],this},m.prototype.empty=function(){return this.removeAll()},m.prototype.insertAfter=function(g,y){var D=this.index(g);this.nodes.splice(D+1,0,y);var d=void 0;for(var x in this.indexes)d=this.indexes[x],D<=d&&(this.indexes[x]=d+this.nodes.length);return this},m.prototype.insertBefore=function(g,y){var D=this.index(g);this.nodes.splice(D,0,y);var d=void 0;for(var x in this.indexes)d=this.indexes[x],D<=d&&(this.indexes[x]=d+this.nodes.length);return this},m.prototype.each=function(g){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var y=this.lastEach;if(this.indexes[y]=0,!!this.length){for(var D=void 0,d=void 0;this.indexes[y]<this.length&&(D=this.indexes[y],d=g(this.at(D),D),d!==!1);)this.indexes[y]+=1;if(delete this.indexes[y],d===!1)return!1}},m.prototype.walk=function(g){return this.each(function(y,D){var d=g(y,D);if(d!==!1&&y.length&&(d=y.walk(g)),d===!1)return!1})},m.prototype.walkAttributes=function(g){var y=this;return this.walk(function(D){if(D.type===a.ATTRIBUTE)return g.call(y,D)})},m.prototype.walkClasses=function(g){var y=this;return this.walk(function(D){if(D.type===a.CLASS)return g.call(y,D)})},m.prototype.walkCombinators=function(g){var y=this;return this.walk(function(D){if(D.type===a.COMBINATOR)return g.call(y,D)})},m.prototype.walkComments=function(g){var y=this;return this.walk(function(D){if(D.type===a.COMMENT)return g.call(y,D)})},m.prototype.walkIds=function(g){var y=this;return this.walk(function(D){if(D.type===a.ID)return g.call(y,D)})},m.prototype.walkNesting=function(g){var y=this;return this.walk(function(D){if(D.type===a.NESTING)return g.call(y,D)})},m.prototype.walkPseudos=function(g){var y=this;return this.walk(function(D){if(D.type===a.PSEUDO)return g.call(y,D)})},m.prototype.walkTags=function(g){var y=this;return this.walk(function(D){if(D.type===a.TAG)return g.call(y,D)})},m.prototype.walkUniversals=function(g){var y=this;return this.walk(function(D){if(D.type===a.UNIVERSAL)return g.call(y,D)})},m.prototype.split=function(g){var y=this,D=[];return this.reduce(function(d,x,A){var E=g.call(y,x);return D.push(x),E?(d.push(D),D=[]):A===y.length-1&&d.push(D),d},[])},m.prototype.map=function(g){return this.nodes.map(g)},m.prototype.reduce=function(g,y){return this.nodes.reduce(g,y)},m.prototype.every=function(g){return this.nodes.every(g)},m.prototype.some=function(g){return this.nodes.some(g)},m.prototype.filter=function(g){return this.nodes.filter(g)},m.prototype.sort=function(g){return this.nodes.sort(g)},m.prototype.toString=function(){return this.map(String).join("")},r(m,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),m})(i.default);t.default=f,e.exports=t.default}),bJ=he((t,e)=>{t.__esModule=!0;var r=Hg(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.ROOT,h}return p.prototype.toString=function(){var f=this.reduce(function(h,m){var g=String(m);return g?h+g+",":""},"").slice(0,-1);return this.trailingComma?f+",":f},p})(n.default);t.default=l,e.exports=t.default}),vJ=he((t,e)=>{t.__esModule=!0;var r=Hg(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.SELECTOR,h}return p})(n.default);t.default=l,e.exports=t.default}),Pu=he((t,e)=>{t.__esModule=!0;var r=(function(){function c(p,f){for(var h=0;h<f.length;h++){var m=f[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(p,m.key,m)}}return function(p,f,h){return f&&c(p.prototype,f),h&&c(p,h),p}})(),n=qa(),i=s(n);function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(){return a(this,p),o(this,c.apply(this,arguments))}return p.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},r(p,[{key:"ns",get:function(){var f=this.namespace;return f?(typeof f=="string"?f:"")+"|":""}}]),p})(i.default);t.default=l,e.exports=t.default}),FJ=he((t,e)=>{t.__esModule=!0;var r=Pu(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.CLASS,h}return p.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},p})(n.default);t.default=l,e.exports=t.default}),TJ=he((t,e)=>{t.__esModule=!0;var r=qa(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.COMMENT,h}return p})(n.default);t.default=l,e.exports=t.default}),wJ=he((t,e)=>{t.__esModule=!0;var r=Pu(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.ID,h}return p.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},p})(n.default);t.default=l,e.exports=t.default}),SJ=he((t,e)=>{t.__esModule=!0;var r=Pu(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.TAG,h}return p})(n.default);t.default=l,e.exports=t.default}),kJ=he((t,e)=>{t.__esModule=!0;var r=qa(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.STRING,h}return p})(n.default);t.default=l,e.exports=t.default}),PJ=he((t,e)=>{t.__esModule=!0;var r=Hg(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.PSEUDO,h}return p.prototype.toString=function(){var f=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),f,this.spaces.after].join("")},p})(n.default);t.default=l,e.exports=t.default}),_J=he((t,e)=>{t.__esModule=!0;var r=Pu(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.ATTRIBUTE,h.raws={},h}return p.prototype.toString=function(){var f=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&f.push(this.operator),this.value&&f.push(this.value),this.raws.insensitive?f.push(this.raws.insensitive):this.insensitive&&f.push(" i"),f.push("]"),f.concat(this.spaces.after).join("")},p})(n.default);t.default=l,e.exports=t.default}),BJ=he((t,e)=>{t.__esModule=!0;var r=Pu(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.UNIVERSAL,h.value="*",h}return p})(n.default);t.default=l,e.exports=t.default}),NJ=he((t,e)=>{t.__esModule=!0;var r=qa(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.COMBINATOR,h}return p})(n.default);t.default=l,e.exports=t.default}),$J=he((t,e)=>{t.__esModule=!0;var r=qa(),n=s(r),i=wr();function s(c){return c&&c.__esModule?c:{default:c}}function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(c,p){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:c}function u(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(c,p):c.__proto__=p)}var l=(function(c){u(p,c);function p(f){a(this,p);var h=o(this,c.call(this,f));return h.type=i.NESTING,h.value="&",h}return p})(n.default);t.default=l,e.exports=t.default}),IJ=he((t,e)=>{t.__esModule=!0,t.default=r;function r(n){return n.sort(function(i,s){return i-s})}e.exports=t.default}),OJ=he((t,e)=>{t.__esModule=!0,t.default=S;var r=39,n=34,i=92,s=47,a=10,o=32,u=12,l=9,c=13,p=43,f=62,h=126,m=124,g=44,y=40,D=41,d=91,x=93,A=59,E=42,C=58,b=38,w=64,P=/[ \n\t\r\{\(\)'"\\;/]/g,F=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function S(I){for(var B=[],O=I.css.valueOf(),_=void 0,$=void 0,Y=void 0,V=void 0,ee=void 0,T=void 0,L=void 0,H=void 0,v=void 0,k=void 0,N=void 0,j=O.length,z=-1,R=1,G=0,te=function(M,J){if(I.safe)O+=J,$=O.length-1;else throw I.error("Unclosed "+M,R,G-z,G)};G<j;){switch(_=O.charCodeAt(G),_===a&&(z=G,R+=1),_){case a:case o:case l:case c:case u:$=G;do $+=1,_=O.charCodeAt($),_===a&&(z=$,R+=1);while(_===o||_===a||_===l||_===c||_===u);B.push(["space",O.slice(G,$),R,G-z,G]),G=$-1;break;case p:case f:case h:case m:$=G;do $+=1,_=O.charCodeAt($);while(_===p||_===f||_===h||_===m);B.push(["combinator",O.slice(G,$),R,G-z,G]),G=$-1;break;case E:B.push(["*","*",R,G-z,G]);break;case b:B.push(["&","&",R,G-z,G]);break;case g:B.push([",",",",R,G-z,G]);break;case d:B.push(["[","[",R,G-z,G]);break;case x:B.push(["]","]",R,G-z,G]);break;case C:B.push([":",":",R,G-z,G]);break;case A:B.push([";",";",R,G-z,G]);break;case y:B.push(["(","(",R,G-z,G]);break;case D:B.push([")",")",R,G-z,G]);break;case r:case n:Y=_===r?"'":'"',$=G;do for(k=!1,$=O.indexOf(Y,$+1),$===-1&&te("quote",Y),N=$;O.charCodeAt(N-1)===i;)N-=1,k=!k;while(k);B.push(["string",O.slice(G,$+1),R,G-z,R,$-z,G]),G=$;break;case w:P.lastIndex=G+1,P.test(O),P.lastIndex===0?$=O.length-1:$=P.lastIndex-2,B.push(["at-word",O.slice(G,$+1),R,G-z,R,$-z,G]),G=$;break;case i:for($=G,L=!0;O.charCodeAt($+1)===i;)$+=1,L=!L;_=O.charCodeAt($+1),L&&_!==s&&_!==o&&_!==a&&_!==l&&_!==c&&_!==u&&($+=1),B.push(["word",O.slice(G,$+1),R,G-z,R,$-z,G]),G=$;break;default:_===s&&O.charCodeAt(G+1)===E?($=O.indexOf("*/",G+2)+1,$===0&&te("comment","*/"),T=O.slice(G,$+1),V=T.split(`
|
|
171
|
+
`),ee=V.length-1,ee>0?(H=R+ee,v=$-V[ee].length):(H=R,v=z),B.push(["comment",T,R,G-z,H,$-v,G]),z=v,R=H,G=$):(F.lastIndex=G+1,F.test(O),F.lastIndex===0?$=O.length-1:$=F.lastIndex-2,B.push(["word",O.slice(G,$+1),R,G-z,R,$-z,G]),G=$);break}G++}return B}e.exports=t.default}),LJ=he((t,e)=>{t.__esModule=!0;var r=(function(){function z(R,G){for(var te=0;te<G.length;te++){var M=G[te];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(R,M.key,M)}}return function(R,G,te){return G&&z(R.prototype,G),te&&z(R,te),R}})(),n=Av(),i=k(n),s=bv(),a=k(s),o=vv(),u=k(o),l=bJ(),c=k(l),p=vJ(),f=k(p),h=FJ(),m=k(h),g=TJ(),y=k(g),D=wJ(),d=k(D),x=SJ(),A=k(x),E=kJ(),C=k(E),b=PJ(),w=k(b),P=_J(),F=k(P),S=BJ(),I=k(S),B=NJ(),O=k(B),_=$J(),$=k(_),Y=IJ(),V=k(Y),ee=OJ(),T=k(ee),L=wr(),H=v(L);function v(z){if(z&&z.__esModule)return z;var R={};if(z!=null)for(var G in z)Object.prototype.hasOwnProperty.call(z,G)&&(R[G]=z[G]);return R.default=z,R}function k(z){return z&&z.__esModule?z:{default:z}}function N(z,R){if(!(z instanceof R))throw new TypeError("Cannot call a class as a function")}var j=(function(){function z(R){N(this,z),this.input=R,this.lossy=R.options.lossless===!1,this.position=0,this.root=new c.default;var G=new f.default;return this.root.append(G),this.current=G,this.lossy?this.tokens=(0,T.default)({safe:R.safe,css:R.css.trim()}):this.tokens=(0,T.default)(R),this.loop()}return z.prototype.attribute=function(){var R="",G=void 0,te=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)R+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~R.indexOf("]")&&this.error("Expected a closing square bracket.");var M=R.split(/((?:[*~^$|]?=))([^]*)/),J=M[0].split(/(\|)/g),X={operator:M[1],value:M[2],source:{start:{line:te[2],column:te[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:te[4]};if(J.length>1?(J[0]===""&&(J[0]=!0),X.attribute=this.parseValue(J[2]),X.namespace=this.parseNamespace(J[0])):X.attribute=this.parseValue(M[0]),G=new F.default(X),M[2]){var ne=M[2].split(/(\s+i\s*?)$/),le=ne[0].trim();G.value=this.lossy?le:ne[0],ne[1]&&(G.insensitive=!0,this.lossy||(G.raws.insensitive=ne[1])),G.quoted=le[0]==="'"||le[0]==='"',G.raws.unquoted=G.quoted?le.slice(1,-1):le}this.newNode(G),this.position++},z.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var R=new O.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(R.spaces.before=this.parseSpace(this.currToken[1]),R.source.start.line=this.nextToken[2],R.source.start.column=this.nextToken[3],R.source.end.column=this.nextToken[3],R.source.end.line=this.nextToken[2],R.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?R.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?R.value=this.currToken[1]:this.currToken[0]==="space"&&(R.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(R)},z.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var R=new f.default;this.current.parent.append(R),this.current=R,this.position++},z.prototype.comment=function(){var R=new y.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(R),this.position++},z.prototype.error=function(R){throw new this.input.error(R)},z.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},z.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},z.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},z.prototype.namespace=function(){var R=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(R);if(this.nextToken[0]==="*")return this.position++,this.universal(R)},z.prototype.nesting=function(){this.newNode(new $.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},z.prototype.parentheses=function(){var R=this.current.last;if(R&&R.type===H.PSEUDO){var G=new f.default,te=this.current;R.append(G),this.current=G;var M=1;for(this.position++;this.position<this.tokens.length&&M;)this.currToken[0]==="("&&M++,this.currToken[0]===")"&&M--,M?this.parse():(G.parent.source.end.line=this.currToken[2],G.parent.source.end.column=this.currToken[3],this.position++);M&&this.error("Expected closing parenthesis."),this.current=te}else{var J=1;for(this.position++,R.value+="(";this.position<this.tokens.length&&J;)this.currToken[0]==="("&&J++,this.currToken[0]===")"&&J--,R.value+=this.parseParenthesisToken(this.currToken),this.position++;J&&this.error("Expected closing parenthesis.")}},z.prototype.pseudo=function(){for(var R=this,G="",te=this.currToken;this.currToken&&this.currToken[0]===":";)G+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var M=void 0;this.splitWord(!1,function(J,X){G+=J,M=new w.default({value:G,source:{start:{line:te[2],column:te[3]},end:{line:R.currToken[4],column:R.currToken[5]}},sourceIndex:te[4]}),R.newNode(M),X>1&&R.nextToken&&R.nextToken[0]==="("&&R.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},z.prototype.space=function(){var R=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(R[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(R[1]),this.position++):this.combinator()},z.prototype.string=function(){var R=this.currToken;this.newNode(new C.default({value:this.currToken[1],source:{start:{line:R[2],column:R[3]},end:{line:R[4],column:R[5]}},sourceIndex:R[6]})),this.position++},z.prototype.universal=function(R){var G=this.nextToken;if(G&&G[1]==="|")return this.position++,this.namespace();this.newNode(new I.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),R),this.position++},z.prototype.splitWord=function(R,G){for(var te=this,M=this.nextToken,J=this.currToken[1];M&&M[0]==="word";){this.position++;var X=this.currToken[1];if(J+=X,X.lastIndexOf("\\")===X.length-1){var ne=this.nextToken;ne&&ne[0]==="space"&&(J+=this.parseSpace(ne[1]," "),this.position++)}M=this.nextToken}var le=(0,a.default)(J,"."),Ee=(0,a.default)(J,"#"),ke=(0,a.default)(J,"#{");ke.length&&(Ee=Ee.filter(function(xe){return!~ke.indexOf(xe)}));var ge=(0,V.default)((0,u.default)((0,i.default)([[0],le,Ee])));ge.forEach(function(xe,Ne){var Ge=ge[Ne+1]||J.length,rt=J.slice(xe,Ge);if(Ne===0&&G)return G.call(te,rt,ge.length);var Xe=void 0;~le.indexOf(xe)?Xe=new m.default({value:rt.slice(1),source:{start:{line:te.currToken[2],column:te.currToken[3]+xe},end:{line:te.currToken[4],column:te.currToken[3]+(Ge-1)}},sourceIndex:te.currToken[6]+ge[Ne]}):~Ee.indexOf(xe)?Xe=new d.default({value:rt.slice(1),source:{start:{line:te.currToken[2],column:te.currToken[3]+xe},end:{line:te.currToken[4],column:te.currToken[3]+(Ge-1)}},sourceIndex:te.currToken[6]+ge[Ne]}):Xe=new A.default({value:rt,source:{start:{line:te.currToken[2],column:te.currToken[3]+xe},end:{line:te.currToken[4],column:te.currToken[3]+(Ge-1)}},sourceIndex:te.currToken[6]+ge[Ne]}),te.newNode(Xe,R)}),this.position++},z.prototype.word=function(R){var G=this.nextToken;return G&&G[1]==="|"?(this.position++,this.namespace()):this.splitWord(R)},z.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},z.prototype.parse=function(R){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":R&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},z.prototype.parseNamespace=function(R){if(this.lossy&&typeof R=="string"){var G=R.trim();return G.length?G:!0}return R},z.prototype.parseSpace=function(R,G){return this.lossy?G||"":R},z.prototype.parseValue=function(R){return this.lossy&&R&&typeof R=="string"?R.trim():R},z.prototype.parseParenthesisToken=function(R){return this.lossy?R[0]==="space"?this.parseSpace(R[1]," "):this.parseValue(R[1]):R[1]},z.prototype.newNode=function(R,G){return G&&(R.namespace=this.parseNamespace(G)),this.spaces&&(R.spaces.before=this.spaces,this.spaces=""),this.current.append(R)},r(z,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),z})();t.default=j,e.exports=t.default}),MJ=he((t,e)=>{t.__esModule=!0;var r=(function(){function u(l,c){for(var p=0;p<c.length;p++){var f=c[p];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,f.key,f)}}return function(l,c,p){return c&&u(l.prototype,c),p&&u(l,p),l}})(),n=LJ(),i=s(n);function s(u){return u&&u.__esModule?u:{default:u}}function a(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}var o=(function(){function u(l){return a(this,u),this.func=l||function(){},this}return u.prototype.process=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=new i.default({css:l,error:function(f){throw new Error(f)},options:c});return this.res=p,this.func(p),this},r(u,[{key:"result",get:function(){return String(this.res)}}]),u})();t.default=o,e.exports=t.default}),Rn=he((t,e)=>{var r=function(n,i){let s=new n.constructor;for(let a in n){if(!n.hasOwnProperty(a))continue;let o=n[a],u=typeof o;a==="parent"&&u==="object"?i&&(s[a]=i):a==="source"?s[a]=o:o instanceof Array?s[a]=o.map(l=>r(l,s)):a!=="before"&&a!=="after"&&a!=="between"&&a!=="semicolon"&&(u==="object"&&o!==null&&(o=r(o)),s[a]=o)}return s};e.exports=class{constructor(n){n=n||{},this.raws={before:"",after:""};for(let i in n)this[i]=n[i]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(n){n=n||{};let i=r(this);for(let s in n)i[s]=n[s];return i}cloneBefore(n){n=n||{};let i=this.clone(n);return this.parent.insertBefore(this,i),i}cloneAfter(n){n=n||{};let i=this.clone(n);return this.parent.insertAfter(this,i),i}replaceWith(){let n=Array.prototype.slice.call(arguments);if(this.parent){for(let i of n)this.parent.insertBefore(this,i);this.remove()}return this}moveTo(n){return this.cleanRaws(this.root()===n.root()),this.remove(),n.append(this),this}moveBefore(n){return this.cleanRaws(this.root()===n.root()),this.remove(),n.parent.insertBefore(n,this),this}moveAfter(n){return this.cleanRaws(this.root()===n.root()),this.remove(),n.parent.insertAfter(n,this),this}next(){let n=this.parent.index(this);return this.parent.nodes[n+1]}prev(){let n=this.parent.index(this);return this.parent.nodes[n-1]}toJSON(){let n={};for(let i in this){if(!this.hasOwnProperty(i)||i==="parent")continue;let s=this[i];s instanceof Array?n[i]=s.map(a=>typeof a=="object"&&a.toJSON?a.toJSON():a):typeof s=="object"&&s.toJSON?n[i]=s.toJSON():n[i]=s}return n}root(){let n=this;for(;n.parent;)n=n.parent;return n}cleanRaws(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between}positionInside(n){let i=this.toString(),s=this.source.start.column,a=this.source.start.line;for(let o=0;o<n;o++)i[o]===`
|
|
172
|
+
`?(s=1,a+=1):s+=1;return{line:a,column:s}}positionBy(n){let i=this.source.start;if(Object(n).index)i=this.positionInside(n.index);else if(Object(n).word){let s=this.toString().indexOf(n.word);s!==-1&&(i=this.positionInside(s))}return i}}}),qr=he((t,e)=>{var r=Rn(),n=class extends r{constructor(i){super(i),this.nodes||(this.nodes=[])}push(i){return i.parent=this,this.nodes.push(i),this}each(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,a,o;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]<this.nodes.length&&(a=this.indexes[s],o=i(this.nodes[a],a),o!==!1);)this.indexes[s]+=1;return delete this.indexes[s],o}}walk(i){return this.each((s,a)=>{let o=i(s,a);return o!==!1&&s.walk&&(o=s.walk(i)),o})}walkType(i,s){if(!i||!s)throw new Error("Parameters {type} and {callback} are required.");let a=typeof i=="function";return this.walk((o,u)=>{if(a&&o instanceof i||!a&&o.type===i)return s.call(this,o,u)})}append(i){return i.parent=this,this.nodes.push(i),this}prepend(i){return i.parent=this,this.nodes.unshift(i),this}cleanRaws(i){if(super.cleanRaws(i),this.nodes)for(let s of this.nodes)s.cleanRaws(i)}insertAfter(i,s){let a=this.index(i),o;this.nodes.splice(a+1,0,s);for(let u in this.indexes)o=this.indexes[u],a<=o&&(this.indexes[u]=o+this.nodes.length);return this}insertBefore(i,s){let a=this.index(i),o;this.nodes.splice(a,0,s);for(let u in this.indexes)o=this.indexes[u],a<=o&&(this.indexes[u]=o+this.nodes.length);return this}removeChild(i){i=this.index(i),this.nodes[i].parent=void 0,this.nodes.splice(i,1);let s;for(let a in this.indexes)s=this.indexes[a],s>=i&&(this.indexes[a]=s-1);return this}removeAll(){for(let i of this.nodes)i.parent=void 0;return this.nodes=[],this}every(i){return this.nodes.every(i)}some(i){return this.nodes.some(i)}index(i){return typeof i=="number"?i:this.nodes.indexOf(i)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let i=this.nodes.map(String).join("");return this.value&&(i=this.value+i),this.raws.before&&(i=this.raws.before+i),this.raws.after&&(i+=this.raws.after),i}};n.registerWalker=i=>{let s="walk"+i.name;s.lastIndexOf("s")!==s.length-1&&(s+="s"),!n.prototype[s]&&(n.prototype[s]=function(a){return this.walkType(i,a)})},e.exports=n}),RJ=he((t,e)=>{var r=qr();e.exports=class extends r{constructor(n){super(n),this.type="root"}}}),jJ=he((t,e)=>{var r=qr();e.exports=class extends r{constructor(n){super(n),this.type="value",this.unbalanced=0}}}),qJ=he((t,e)=>{var r=qr(),n=class extends r{constructor(i){super(i),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};r.registerWalker(n),e.exports=n}),UJ=he((t,e)=>{var r=qr(),n=Rn(),i=class extends n{constructor(s){super(s),this.type="colon"}};r.registerWalker(i),e.exports=i}),zJ=he((t,e)=>{var r=qr(),n=Rn(),i=class extends n{constructor(s){super(s),this.type="comma"}};r.registerWalker(i),e.exports=i}),VJ=he((t,e)=>{var r=qr(),n=Rn(),i=class extends n{constructor(s){super(s),this.type="comment",this.inline=Object(s).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};r.registerWalker(i),e.exports=i}),HJ=he((t,e)=>{var r=qr(),n=class extends r{constructor(i){super(i),this.type="func",this.unbalanced=-1}};r.registerWalker(n),e.exports=n}),WJ=he((t,e)=>{var r=qr(),n=Rn(),i=class extends n{constructor(s){super(s),this.type="number",this.unit=Object(s).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};r.registerWalker(i),e.exports=i}),GJ=he((t,e)=>{var r=qr(),n=Rn(),i=class extends n{constructor(s){super(s),this.type="operator"}};r.registerWalker(i),e.exports=i}),JJ=he((t,e)=>{var r=qr(),n=Rn(),i=class extends n{constructor(s){super(s),this.type="paren",this.parenType=""}};r.registerWalker(i),e.exports=i}),KJ=he((t,e)=>{var r=qr(),n=Rn(),i=class extends n{constructor(s){super(s),this.type="string"}toString(){let s=this.quoted?this.raws.quote:"";return[this.raws.before,s,this.value+"",s,this.raws.after].join("")}};r.registerWalker(i),e.exports=i}),YJ=he((t,e)=>{var r=qr(),n=Rn(),i=class extends n{constructor(s){super(s),this.type="word"}};r.registerWalker(i),e.exports=i}),XJ=he((t,e)=>{var r=qr(),n=Rn(),i=class extends n{constructor(s){super(s),this.type="unicode-range"}};r.registerWalker(i),e.exports=i}),QJ=he((t,e)=>{var r=class extends Error{constructor(n){super(n),this.name=this.constructor.name,this.message=n||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(n).stack}};e.exports=r}),ZJ=he((t,e)=>{var r=/[ \n\t\r\{\(\)'"\\;,/]/g,n=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,i=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,s=/^[a-z0-9]/i,a=/^[a-f0-9?\-]/i,o=QJ();e.exports=function(u,l){l=l||{};let c=[],p=u.valueOf(),f=p.length,h=-1,m=1,g=0,y=0,D=null,d,x,A,E,C,b,w,P,F,S,I;function B(O){let _=`Unclosed ${O} at line: ${m}, column: ${g-h}, token: ${g}`;throw new o(_)}for(;g<f;){switch(d=p.charCodeAt(g),d===10&&(h=g,m+=1),d){case 10:case 32:case 9:case 13:case 12:x=g;do x+=1,d=p.charCodeAt(x),d===10&&(h=x,m+=1);while(d===32||d===10||d===9||d===13||d===12);c.push(["space",p.slice(g,x),m,g-h,m,x-h,g]),g=x-1;break;case 58:x=g+1,c.push(["colon",p.slice(g,x),m,g-h,m,x-h,g]),g=x-1;break;case 44:x=g+1,c.push(["comma",p.slice(g,x),m,g-h,m,x-h,g]),g=x-1;break;case 123:c.push(["{","{",m,g-h,m,x-h,g]);break;case 125:c.push(["}","}",m,g-h,m,x-h,g]);break;case 40:y++,D=!D&&y===1&&c.length>0&&c[c.length-1][0]==="word"&&c[c.length-1][1]==="url",c.push(["(","(",m,g-h,m,x-h,g]);break;case 41:y--,D=D&&y>0,c.push([")",")",m,g-h,m,x-h,g]);break;case 39:case 34:A=d===39?"'":'"',x=g;do for(F=!1,x=p.indexOf(A,x+1),x===-1&&B("quote"),S=x;p.charCodeAt(S-1)===92;)S-=1,F=!F;while(F);c.push(["string",p.slice(g,x+1),m,g-h,m,x-h,g]),g=x;break;case 64:r.lastIndex=g+1,r.test(p),r.lastIndex===0?x=p.length-1:x=r.lastIndex-2,c.push(["atword",p.slice(g,x+1),m,g-h,m,x-h,g]),g=x;break;case 92:x=g,d=p.charCodeAt(x+1),c.push(["word",p.slice(g,x+1),m,g-h,m,x-h,g]),g=x;break;case 43:case 45:case 42:if(x=g+1,I=p.slice(g+1,x+1),p.slice(g-1,g),d===45&&I.charCodeAt(0)===45){x++,c.push(["word",p.slice(g,x),m,g-h,m,x-h,g]),g=x-1;break}c.push(["operator",p.slice(g,x),m,g-h,m,x-h,g]),g=x-1;break;default:if(d===47&&(p.charCodeAt(g+1)===42||l.loose&&!D&&p.charCodeAt(g+1)===47)){if(p.charCodeAt(g+1)===42)x=p.indexOf("*/",g+2)+1,x===0&&B("comment");else{let O=p.indexOf(`
|
|
173
|
+
`,g+2);x=O!==-1?O-1:f}b=p.slice(g,x+1),E=b.split(`
|
|
174
|
+
`),C=E.length-1,C>0?(w=m+C,P=x-E[C].length):(w=m,P=h),c.push(["comment",b,m,g-h,w,x-P,g]),h=P,m=w,g=x}else if(d===35&&!s.test(p.slice(g+1,g+2)))x=g+1,c.push(["#",p.slice(g,x),m,g-h,m,x-h,g]),g=x-1;else if((d===117||d===85)&&p.charCodeAt(g+1)===43){x=g+2;do x+=1,d=p.charCodeAt(x);while(x<f&&a.test(p.slice(x,x+1)));c.push(["unicoderange",p.slice(g,x),m,g-h,m,x-h,g]),g=x-1}else if(d===47)x=g+1,c.push(["operator",p.slice(g,x),m,g-h,m,x-h,g]),g=x-1;else{let O=n;if(d>=48&&d<=57&&(O=i),O.lastIndex=g+1,O.test(p),O.lastIndex===0?x=p.length-1:x=O.lastIndex-2,O===i||d===46){let _=p.charCodeAt(x),$=p.charCodeAt(x+1),Y=p.charCodeAt(x+2);(_===101||_===69)&&($===45||$===43)&&Y>=48&&Y<=57&&(i.lastIndex=x+2,i.test(p),i.lastIndex===0?x=p.length-1:x=i.lastIndex-2)}c.push(["word",p.slice(g,x+1),m,g-h,m,x-h,g]),g=x}break}g++}return c}}),eK=he((t,e)=>{var r=class extends Error{constructor(n){super(n),this.name=this.constructor.name,this.message=n||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(n).stack}};e.exports=r}),tK=he((t,e)=>{var r=RJ(),n=jJ(),i=qJ(),s=UJ(),a=zJ(),o=VJ(),u=HJ(),l=WJ(),c=GJ(),p=JJ(),f=KJ(),h=YJ(),m=XJ(),g=ZJ(),y=Av(),D=bv(),d=vv(),x=eK();function A(E){return E.sort((C,b)=>C-b)}e.exports=class{constructor(E,C){let b={loose:!1};this.cache=[],this.input=E,this.options=Object.assign({},b,C),this.position=0,this.unbalanced=0,this.root=new r;let w=new n;this.root.append(w),this.current=w,this.tokens=g(E,this.options)}parse(){return this.loop()}colon(){let E=this.currToken;this.newNode(new s({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++}comma(){let E=this.currToken;this.newNode(new a({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++}comment(){let E=!1,C=this.currToken[1].replace(/\/\*|\*\//g,""),b;this.options.loose&&C.startsWith("//")&&(C=C.substring(2),E=!0),b=new o({value:C,inline:E,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(b),this.position++}error(E,C){throw new x(E+` at line: ${C[2]}, column ${C[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let E=this.currToken[1],C;if(E==="+"||E==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return C=new c({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(C)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let E=1,C=this.position+1,b=this.currToken,w;for(;C<this.tokens.length&&E;){let P=this.tokens[C];P[0]==="("&&E++,P[0]===")"&&E--,C++}if(E&&this.error("Expected closing parenthesis",b),w=this.current.last,w&&w.type==="func"&&w.unbalanced<0&&(w.unbalanced=0,this.current=w),this.current.unbalanced++,this.newNode(new p({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let P=this.nextToken,F=this.currToken[1],S={line:this.currToken[2],column:this.currToken[3]};for(;P&&P[0]!==")"&&this.current.unbalanced;)this.position++,F+=this.currToken[1],P=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new h({value:F,source:{start:S,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let E=this.currToken;this.newNode(new p({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",E),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let E=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=E[1],this.position++):(this.spaces=E[1],this.position++)}unicodeRange(){let E=this.currToken;this.newNode(new m({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++}splitWord(){let E=this.nextToken,C=this.currToken[1],b=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,w=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,P,F;if(!w.test(C))for(;E&&E[0]==="word";){this.position++;let S=this.currToken[1];C+=S,E=this.nextToken}P=D(C,"@"),F=A(d(y([[0],P]))),F.forEach((S,I)=>{let B=F[I+1]||C.length,O=C.slice(S,B),_;if(~P.indexOf(S))_=new i({value:O.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+S},end:{line:this.currToken[4],column:this.currToken[3]+(B-1)}},sourceIndex:this.currToken[6]+F[I]});else if(b.test(this.currToken[1])){let $=O.replace(b,"");_=new l({value:O.replace($,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+S},end:{line:this.currToken[4],column:this.currToken[3]+(B-1)}},sourceIndex:this.currToken[6]+F[I],unit:$})}else _=new(E&&E[0]==="("?u:h)({value:O,source:{start:{line:this.currToken[2],column:this.currToken[3]+S},end:{line:this.currToken[4],column:this.currToken[3]+(B-1)}},sourceIndex:this.currToken[6]+F[I]}),_.type==="word"?(_.isHex=/^#(.+)/.test(O),_.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(O)):this.cache.push(this.current);this.newNode(_)}),this.position++}string(){let E=this.currToken,C=this.currToken[1],b=/^(\"|\')/,w=b.test(C),P="",F;w&&(P=C.match(b)[0],C=C.slice(1,C.length-1)),F=new f({value:C,source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6],quoted:w}),F.raws.quote=P,this.newNode(F),this.position++}word(){return this.splitWord()}newNode(E){return this.spaces&&(E.raws.before+=this.spaces,this.spaces=""),this.current.append(E)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),Wg={};hv(Wg,{languages:()=>pX,options:()=>dX,parsers:()=>pF,printers:()=>KX});var Fv=(t,e)=>(r,n,...i)=>r|1&&n==null?void 0:(e.call(n)??n[t]).apply(n,i),rK=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},nK=Fv("replaceAll",function(){if(typeof this=="string")return rK}),vt=nK;function iK(t){return this[t<0?this.length+t:t]}var sK=Fv("at",function(){if(Array.isArray(this)||typeof this=="string")return iK}),Ns=sK,aK=()=>{},oK=aK,Tv="string",wv="array",Sv="cursor",Jc="indent",Gg="align",kv="trim",Kc="group",Yc="fill",Xc="if-break",Pv="indent-if-break",Jg="line-suffix",_v="line-suffix-boundary",Ua="line",Bv="label",Kg="break-parent",Nv=new Set([Sv,Jc,Gg,kv,Kc,Yc,Xc,Pv,Jg,_v,Ua,Bv,Kg]);function uK(t){if(typeof t=="string")return Tv;if(Array.isArray(t))return wv;if(!t)return;let{type:e}=t;if(Nv.has(e))return e}var _u=uK,lK=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function cK(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
175
|
+
Expected it to be 'string' or 'object'.`;if(_u(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=lK([...Nv].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
|
|
176
|
+
Expected it to be ${n}.`}var pK=class extends Error{name="InvalidDocError";constructor(e){super(cK(e)),this.doc=e}},hK=pK;function fK(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(_u(s)){case wv:return e(s.map(n));case Yc:return e({...s,parts:s.parts.map(n)});case Xc:return e({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Kc:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),e({...s,contents:o,expandedStates:a})}case Gg:case Jc:case Pv:case Bv:case Jg:return e({...s,contents:n(s.contents)});case Tv:case Sv:case kv:case _v:case Ua:case Kg:return e(s);default:throw new hK(s)}}}function dK(t){return t.type===Ua&&!t.hard?t.soft?"":" ":t.type===Xc?t.flatContents:t}function mK(t){return fK(t,dK)}var gK=oK;function Ur(t){return{type:Jc,contents:t}}function yK(t,e){return{type:Gg,contents:e,n:t}}function Bu(t){return yK(-1,t)}var Yg={type:Kg};function Qc(t){return{type:Yc,parts:t}}function Zr(t,e={}){return gK(e.expandedStates),{type:Kc,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function $v(t,e="",r={}){return{type:Xc,breakContents:t,flatContents:e,groupId:r.groupId}}function Wi(t,e){let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var Qt={type:Ua},en={type:Ua,soft:!0},DK={type:Ua,hard:!0},It=[DK,Yg];function EK(t){return{type:Jg,contents:t}}function xK(t){return Array.isArray(t)&&t.length>0}var Zc=xK,Iv=Object.freeze({character:"'",codePoint:39}),Ov=Object.freeze({character:'"',codePoint:34}),CK=Object.freeze({preferred:Iv,alternate:Ov}),AK=Object.freeze({preferred:Ov,alternate:Iv});function bK(t,e){let{preferred:r,alternate:n}=e===!0||e==="'"?CK:AK,{length:i}=t,s=0,a=0;for(let o=0;o<i;o++){let u=t.charCodeAt(o);u===r.codePoint?s++:u===n.codePoint&&a++}return(s>a?n:r).character}var vK=bK,FK=/\\(["'\\])|(["'])/gu;function TK(t,e){let r=e==='"'?"'":'"',n=vt(0,t,FK,(i,s,a)=>s?s===r?r:i:a===e?"\\"+a:a);return e+n+e}var wK=TK;function SK(t,e){let r=t.slice(1,-1),n=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":vK(r,e.singleQuote);return t.charAt(0)===n?t:wK(r,n)}var Lv=SK,kK=class extends Error{name="UnexpectedNodeError";constructor(t,e,r="type"){super(`Unexpected ${e} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},PK=kK,Mv=Symbol.for("PRETTIER_IS_FRONT_MATTER");function _K(t){return!!t?.[Mv]}var Xg=_K,Nu=3;function BK(t){let e=t.slice(0,Nu);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
|
|
177
|
+
`,Nu);if(r===-1)return;let n=t.slice(Nu,r).trim(),i=t.indexOf(`
|
|
178
|
+
${e}`,r),s=n;if(s||(s=e==="+++"?"toml":"yaml"),i===-1&&e==="---"&&s==="yaml"&&(i=t.indexOf(`
|
|
179
|
+
...`,r)),i===-1)return;let a=i+1+Nu,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a),l;return{language:s,explicitLanguage:n||null,value:t.slice(r+1,i),startDelimiter:e,endDelimiter:u.slice(-Nu),raw:u,start:{line:1,column:0,index:0},end:{index:u.length,get line(){return l??(l=u.split(`
|
|
180
|
+
`)),l.length},get column(){return l??(l=u.split(`
|
|
181
|
+
`)),Ns(0,l,-1).length}},[Mv]:!0}}function NK(t){let e=BK(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return vt(0,r,/[^\n]/gu," ")+t.slice(r.length)}}:{content:t}}var ep=NK,$K=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Rv(t,e,r){if(t.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===t||Xg(r.nodes[0])&&r.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||r.type==="css-root"&&Ns(0,r.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=IK(t.value)),t.type==="selector-combinator"&&(e.value=vt(0,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=vt(0,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=vt(0,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value)){let{value:n}=e;/\s[a-zA-Z]$/u.test(n)&&(e.__prettier_attribute_selector_flag=Ns(0,n,-1),n=n.slice(0,-1)),n=n.trim(),n=n.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/u,"$<value>"),e.value=n,delete e.quoted}if((t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=vt(0,e.value,/([\d+.e-]+)([a-z]*)/giu,(n,i,s)=>{let a=Number(i);return Number.isNaN(a)?n:a+s.toLowerCase()})),t.type==="selector-tag"){let n=e.value.toLowerCase();["from","to"].includes(n)&&(e.value=n)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let n=t.groups.findIndex(i=>i.type==="value-number"&&i.unit==="...");n!==-1&&(e.groups[n].unit="",e.groups.splice(n+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(n=>n.type==="value-atword"&&(n.value.endsWith("[")||n.value.endsWith("]"))||n.type==="value-word"&&(n.value.startsWith("]")||n.value.startsWith("["))))return{type:"value-atword",value:t.groups.map(n=>n.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}Rv.ignoredProperties=$K;function IK(t){return vt(0,vt(0,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var OK=Rv;function jv(){}jv.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var LK=jv,$u=null;function Iu(t){if($u!==null&&typeof $u.property){let e=$u;return $u=Iu.prototype=null,e}return $u=Iu.prototype=t??Object.create(null),new Iu}var MK=10;for(let t=0;t<=MK;t++)Iu();function RK(t){return Iu(t)}function jK(t,e="type"){RK(t);function r(n){let i=n[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var qK=jK,Ue=[[],["nodes"],["group"]],UK={"css-root":["frontMatter","nodes"],"css-comment":Ue[0],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":Ue[1],"media-query":Ue[1],"media-type":Ue[0],"media-feature-expression":Ue[1],"media-feature":Ue[0],"media-colon":Ue[0],"media-value":Ue[0],"media-keyword":Ue[0],"media-url":Ue[0],"media-unknown":Ue[0],"selector-root":Ue[1],"selector-selector":Ue[1],"selector-comment":Ue[0],"selector-string":Ue[0],"selector-tag":Ue[0],"selector-id":Ue[0],"selector-class":Ue[0],"selector-attribute":Ue[0],"selector-combinator":Ue[1],"selector-universal":Ue[0],"selector-pseudo":Ue[1],"selector-nesting":Ue[0],"selector-unknown":Ue[0],"value-value":Ue[2],"value-root":Ue[2],"value-comment":Ue[0],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":Ue[2],"value-paren":Ue[0],"value-number":Ue[0],"value-operator":Ue[0],"value-word":Ue[0],"value-colon":Ue[0],"value-comma":Ue[0],"value-string":Ue[0],"value-atword":Ue[0],"value-unicode-range":Ue[0],"value-unknown":Ue[0]},zK=qK(UK),VK=zK;function HK(t,e){let r=0;for(let n=0;n<t.line-1;++n)r=e.indexOf(`
|
|
182
|
+
`,r)+1;return r+t.column}var qv=HK;function Qg(t){return(e,r,n)=>{let i=!!n?.backwards;if(r===!1)return!1;let{length:s}=e,a=r;for(;a>=0&&a<s;){let o=e.charAt(a);if(t instanceof RegExp){if(!t.test(o))return a}else if(!t.includes(o))return a;i?a--:a++}return a===-1||a===s?a:!1}}var Uv=Qg(" "),WK=Qg(",; "),zv=Qg(/[^\n\r]/u);function Vv(t,e){let{value:r}=t;return r==="-"||r==="--"||r.charAt(0)!=="-"?e:e-(r.charAt(1)==="-"?2:1)}function Hv(t,e){if(typeof t.source?.start?.offset=="number")return t.source.start.offset;if(typeof t.sourceIndex=="number")return t.type==="value-word"?Vv(t,t.sourceIndex):t.sourceIndex;if(t.source?.start)return qv(t.source.start,e);throw Object.assign(new Error("Can not locate node."),{node:t})}function Zg(t,e){if(t.type==="css-comment"&&t.inline)return zv(e,t.source.startOffset);if(typeof t.source?.end?.offset=="number")return t.source.end.offset;if(t.source){if(t.source.end){let r=qv(t.source.end,e);return t.type==="value-word"?Vv(t,r):r}if(Zc(t.nodes))return Zg(Ns(0,t.nodes,-1),e)}return null}function Wv(t,e){t.source&&(t.source.startOffset=Hv(t,e),t.source.endOffset=Zg(t,e));for(let r in t){let n=t[r];r==="source"||!n||typeof n!="object"||(n.type==="value-root"||n.type==="value-unknown"?Gv(n,GK(t),n.text||n.value):Wv(n,e))}}function Gv(t,e,r){t.source&&(t.source.startOffset=Hv(t,r)+e,t.source.endOffset=Zg(t,r)+e);for(let n in t){let i=t[n];n==="source"||!i||typeof i!="object"||Gv(i,e,r)}}function GK(t){let e=t.source.startOffset;return typeof t.prop=="string"&&(e+=t.prop.length),t.type==="css-atrule"&&typeof t.name=="string"&&(e+=1+t.name.length+t.raws.afterName.match(/^\s*:?\s*/u)[0].length),t.type!=="css-atrule"&&typeof t.raws?.between=="string"&&(e+=t.raws.between.length),e}function JK(t){let e="initial",r="initial",n,i=!1,s=[];for(let a=0;a<t.length;a++){let o=t[a];switch(e){case"initial":if(o==="'"){e="single-quotes";continue}if(o==='"'){e="double-quotes";continue}if((o==="u"||o==="U")&&t.slice(a,a+4).toLowerCase()==="url("){e="url",a+=3;continue}if(o==="*"&&t[a-1]==="/"){e="comment-block";continue}if(o==="/"&&t[a-1]==="/"){e="comment-inline",n=a-1;continue}continue;case"single-quotes":if(o==="'"&&t[a-1]!=="\\"&&(e=r,r="initial"),o===`
|
|
183
|
+
`||o==="\r")return t;continue;case"double-quotes":if(o==='"'&&t[a-1]!=="\\"&&(e=r,r="initial"),o===`
|
|
184
|
+
`||o==="\r")return t;continue;case"url":if(o===")"&&(e="initial"),o===`
|
|
185
|
+
`||o==="\r")return t;if(o==="'"){e="single-quotes",r="url";continue}if(o==='"'){e="double-quotes",r="url";continue}continue;case"comment-block":o==="/"&&t[a-1]==="*"&&(e="initial");continue;case"comment-inline":(o==='"'||o==="'"||o==="*")&&(i=!0),(o===`
|
|
186
|
+
`||o==="\r")&&(i&&s.push([n,a]),e="initial",i=!1);continue}}for(let[a,o]of s)t=t.slice(0,a)+vt(0,t.slice(a,o),/["'*]/gu," ")+t.slice(o);return t}var Sr=t=>t.source?.startOffset,kr=t=>t.source?.endOffset,KK=/\*\/$/,YK=/^\/\*\*?/,Jv=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,XK=/(^|\s+)\/\/([^\n\r]*)/g,Kv=/^(\r?\n)+/,QK=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Yv=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ZK=/(\r?\n|^) *\* ?/g,Xv=[];function eY(t){let e=t.match(Jv);return e?e[0].trimStart():""}function tY(t){let e=t.match(Jv)?.[0];return e==null?t:t.slice(e.length)}function rY(t){t=vt(0,t.replace(YK,"").replace(KK,""),ZK,"$1");let e="";for(;e!==t;)e=t,t=vt(0,t,QK,`
|
|
187
|
+
$1 $2
|
|
188
|
+
`);t=t.replace(Kv,"").trimEnd();let r=Object.create(null),n=vt(0,t,Yv,"").replace(Kv,"").trimEnd(),i;for(;i=Yv.exec(t);){let s=vt(0,i[2],XK,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let a=r[i[1]];r[i[1]]=[...Xv,...Array.isArray(a)?a:[a],s]}else r[i[1]]=s}return{comments:n,pragmas:r}}function nY({comments:t="",pragmas:e={}}){let r=Object.keys(e),n=r.flatMap(s=>Qv(s,e[s])).map(s=>` * ${s}
|
|
189
|
+
`).join("");if(!t){if(r.length===0)return"";if(r.length===1&&!Array.isArray(e[r[0]])){let s=e[r[0]];return`/** ${Qv(r[0],s)[0]} */`}}let i=t.split(`
|
|
190
|
+
`).map(s=>` * ${s}`).join(`
|
|
191
|
+
`)+`
|
|
192
|
+
`;return`/**
|
|
193
|
+
`+(t?i:"")+(t&&r.length>0?` *
|
|
194
|
+
`:"")+n+" */"}function Qv(t,e){return[...Xv,...Array.isArray(e)?e:[e]].map(r=>`@${t} ${r}`.trim())}var iY=["noformat","noprettier"],sY=["format","prettier"],aY="format";function oY(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
|
195
|
+
`);return e===-1?t:t.slice(0,e)}var uY=oY;function ey(t){let e=uY(t);e&&(t=t.slice(e.length+1));let r=eY(t),{pragmas:n,comments:i}=rY(r);return{shebang:e,text:t,pragmas:n,comments:i}}function lY(t){let{pragmas:e}=ey(t);return sY.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function cY(t){let{pragmas:e}=ey(t);return iY.some(r=>Object.prototype.hasOwnProperty.call(e,r))}function pY(t){let{shebang:e,text:r,pragmas:n,comments:i}=ey(t),s=tY(r),a=nY({pragmas:{[aY]:"",...n},comments:i.trimStart()});return(e?`${e}
|
|
196
|
+
`:"")+a+(s.startsWith(`
|
|
197
|
+
`)?`
|
|
198
|
+
`:`
|
|
199
|
+
|
|
200
|
+
`)+s}var hY=t=>lY(ep(t).content),fY=t=>cY(ep(t).content),dY=t=>{let{frontMatter:e,content:r}=ep(t);return(e?e.raw+`
|
|
201
|
+
|
|
202
|
+
`:"")+pY(r)},mY=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function gY(t){return t.findAncestor(e=>e.type==="css-decl")?.prop?.toLowerCase()}var yY=new Set(["initial","inherit","unset","revert"]);function DY(t){return yY.has(t.toLowerCase())}function EY(t,e){return t.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(e.toLowerCase())}function Ou(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function tp(t,e){return t.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===e}function xY(t){return t.hasAncestor(e=>{if(e.type!=="css-rule")return!1;let r=e.raws?.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))})}function Lu(t,e){let r=Array.isArray(e)?e:[e],n=t.findAncestor(i=>i.type==="css-atrule");return n&&r.includes(n.name.toLowerCase())}function CY(t){let{node:e}=t;return e.groups[0]?.value==="url"&&e.groups.length===2&&t.findAncestor(r=>r.type==="css-atrule")?.name==="import"}function AY(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function bY(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function vY(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function FY(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function TY(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function wY(t){return t.type==="value-word"&&t.value==="in"}function ty(t){return t.type==="value-operator"&&t.value==="*"}function za(t){return t?.type==="value-operator"&&t.value==="/"}function Gi(t){return t.type==="value-operator"&&t.value==="+"}function Va(t){return t.type==="value-operator"&&t.value==="-"}function SY(t){return t.type==="value-operator"&&t.value==="%"}function ry(t){return ty(t)||za(t)||Gi(t)||Va(t)||SY(t)}function kY(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function PY(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function ny(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function Zv(t){return t.raws?.params&&/^\(\s*\)$/u.test(t.raws.params)}function iy(t){return t.name.startsWith("prettier-placeholder")}function _Y(t){return t.prop.startsWith("@prettier-placeholder")}function BY(t,e){return t.value==="$$"&&t.type==="value-func"&&e?.type==="value-word"&&!e.raws.before}function NY(t){return t.value?.type==="value-root"&&t.value.group?.type==="value-value"&&t.prop.toLowerCase()==="composes"}function $Y(t){return t.value?.group?.group?.type==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function Ji(t){return t?.raws?.before===""}function sy(t){return t.type==="value-comma_group"&&t.groups?.[1]?.type==="value-colon"}function ay(t){return t.type==="value-paren_group"&&t.groups?.[0]&&sy(t.groups[0])}function eF(t,e){if(e.parser!=="scss")return!1;let{node:r}=t;if(r.groups.length===0)return!1;let n=t.grandparent;return!ay(r)&&!(n&&ay(n))?!1:!!(t.findAncestor(i=>i.type==="css-decl")?.prop?.startsWith("$")||ay(n)||n.type==="value-func")}function rp(t){return t.type==="value-comment"&&t.inline}function oy(t){return t.type==="value-word"&&t.value==="#"}function tF(t){return t.type==="value-word"&&t.value==="{"}function uy(t){return t.type==="value-word"&&t.value==="}"}function np(t){return["value-word","value-atword"].includes(t.type)}function ly(t){return t?.type==="value-colon"}function IY(t,e){if(!sy(e))return!1;let{groups:r}=e,n=r.indexOf(t);return n===-1?!1:ly(r[n+1])}function OY(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function LY(t){return t.type!=="value-func"?!1:mY.has(t.value.toLowerCase())}function Mu(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function ip(t){return t?.type==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function MY(t,e){if(t.open?.value!=="("||t.close?.value!==")"||t.groups.some(r=>r.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let r=e.groups.indexOf(t)-1,n=e.groups[r];if(n?.type==="value-word"&&n.value==="with")return!0}return!1}function sp(t){return t.type==="value-paren_group"&&t.open?.value==="("&&t.close?.value===")"}function RY(t,e,r){let{node:n}=t,i=t.parent,s=t.grandparent,a=gY(t),o=a&&i.type==="value-value"&&(a==="grid"||a.startsWith("grid-template")),u=t.findAncestor(y=>y.type==="css-atrule"),l=u&&ny(u,e),c=n.groups.some(y=>rp(y)),p=t.map(r,"groups"),f=[""],h=tp(t,"url"),m=!1,g=!1;for(let y=0;y<n.groups.length;++y){let D=n.groups[y-1],d=n.groups[y],x=n.groups[y+1],A=n.groups[y+2];if(rp(d)&&!x){f.push([f.pop(),EK([" ",p[y]])]);continue}if(f.push([f.pop(),p[y]]),h){(x&&Gi(x)||Gi(d))&&f.push([f.pop()," "]);continue}if(Lu(t,"forward")&&d.type==="value-word"&&d.value&&D!==void 0&&D.type==="value-word"&&D.value==="as"&&x.type==="value-operator"&&x.value==="*"||Lu(t,"utility")&&d.type==="value-word"&&x&&x.type==="value-operator"&&x.value==="*"||!x||d.type==="value-word"&&ip(x)&&kr(d)===Sr(x))continue;if(d.type==="value-string"&&d.quoted){let F=d.value.lastIndexOf("#{"),S=d.value.lastIndexOf("}");F!==-1&&S!==-1?m=F>S:F!==-1?m=!0:S!==-1&&(m=!1)}if(m||ly(d)||ly(x)||d.type==="value-atword"&&(d.value===""||d.value.endsWith("["))||x.type==="value-word"&&x.value.startsWith("]")||d.value==="~"||e.parser==="less"&&(x?.type==="value-word"&&x.value==="["||d.type==="value-word"&&d.value==="["&&(x?.type==="value-atword"||x?.type==="value-word")||d.type==="value-word"&&d.value==="]["&&x?.type==="value-word")||d.type!=="value-string"&&d.value&&d.value.includes("\\")&&x&&x.type!=="value-comment"||D?.value&&D.value.indexOf("\\")===D.value.length-1&&d.type==="value-operator"&&d.value==="/"||d.value==="\\"||BY(d,x)||oy(d)||tF(d)||uy(x)||tF(x)&&Ji(x)||uy(d)&&Ji(x)||d.value==="--"&&oy(x))continue;let E=ry(d),C=ry(x);if((E&&oy(x)||C&&uy(d))&&Ji(x)||!D&&za(d)||tp(t,"calc")&&(Gi(d)||Gi(x)||Va(d)||Va(x))&&Ji(x))continue;let b=(Gi(d)||Va(d))&&y===0&&(x.type==="value-number"||x.isHex)&&s&&LY(s)&&!Ji(x);if(e.parser==="scss"&&E&&d.value==="-"&&x.type==="value-func"&&kr(d)!==Sr(x)){f.push([f.pop()," "]);continue}let w=A?.type==="value-func"||A&&np(A)||d.type==="value-func"||np(d),P=x.type==="value-func"||np(x)||D?.type==="value-func"||D&&np(D);if(!(!(ty(x)||ty(d))&&!tp(t,"calc")&&!b&&(za(x)&&!w||za(d)&&!P||Gi(x)&&!w||Gi(d)&&!P||Va(x)||Va(d))&&(Ji(x)||E&&(!D||D&&ry(D))))&&!((e.parser==="scss"||e.parser==="less")&&E&&d.value==="-"&&sp(x)&&kr(d)===Sr(x.open)&&x.open.value==="(")){if(rp(d)){if(i.type==="value-paren_group"){f.push(Bu(It),"");continue}f.push(It,"");continue}if(l&&(kY(x)||PY(x)||TY(x)||wY(d)||FY(d))){f.push([f.pop()," "]);continue}if(u&&u.name.toLowerCase()==="namespace"){f.push([f.pop()," "]);continue}if(o){d.source&&x.source&&d.source.start.line!==x.source.start.line?(f.push(It,""),g=!0):f.push([f.pop()," "]);continue}if(!(a&&(a==="font"||a.startsWith("--"))&&(za(x)&&Ji(x)&&rF(d)||za(d)&&Ji(d)&&rF(D)))){if(C){f.push([f.pop()," "]);continue}if(x?.value!=="..."&&!(ip(d)&&ip(x)&&kr(d)===Sr(x))){if(ip(d)&&sp(x)&&kr(d)===Sr(x.open)){f.push(en,"");continue}if(d.value==="with"&&sp(x)){f=[[Qc(f)," "]];continue}if(!(d.value?.endsWith("#")&&x.value==="{"&&sp(x.group))&&!(rp(x)&&!A)){if(!u&&d.type==="value-comment"&&!d.inline&&n.groups.slice(0,y).every(F=>F.type==="value-comment")){f.push(Bu(Qt),"");continue}f.push(Qt,"")}}}}}return c&&f.push([f.pop(),Yg]),g&&f.unshift("",It),l?Zr(Ur(f)):CY(t)?Zr(Qc(f)):Zr(Ur(Qc(f)))}function rF(t){if(t?.type==="value-number")return!0;if(t?.type!=="value-func")return!1;let e=t.value.toLowerCase();return e==="var"||e==="calc"||e==="min"||e==="max"||e==="clamp"||e.startsWith("--")}var jY=RY;function qY(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var UY=qY,cy=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function nF(t){let e=t.toLowerCase();return cy.has(e)?cy.get(e):t}var iF=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,zY=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,VY=/[a-z]+/giu,HY=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,WY=new RegExp(iF.source+`|(${HY.source})?(${zY.source})(${VY.source})?`,"giu");function jn(t,e){return vt(0,t,iF,r=>Lv(r,e))}function GY(t,e){let r=e.singleQuote?"'":'"',n="",i=t.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return i&&({value:t,flag:n}=i.groups),(t.includes('"')||t.includes("'")?t:r+t+r)+(n?` ${n}`:"")}function Ha(t){return vt(0,t,WY,(e,r,n,i,s)=>!n&&i&&(s??(s=""),s=s.toLowerCase(),!s||s==="n"||cy.has(s))?sF(i)+(s?nF(s):""):e)}function sF(t){return UY(t).replace(/\.0(?=$|e)/u,"")}function JY(t){return t.trailingComma==="es5"||t.trailingComma==="all"}var aF=t=>t===`
|
|
203
|
+
`||t==="\r"||t==="\u2028"||t==="\u2029";function KY(t,e,r){let n=!!r?.backwards;if(e===!1)return!1;let i=t.charAt(e);if(n){if(t.charAt(e-1)==="\r"&&i===`
|
|
204
|
+
`)return e-2;if(aF(i))return e-1}else{if(i==="\r"&&t.charAt(e+1)===`
|
|
205
|
+
`)return e+2;if(aF(i))return e+1}return e}var oF=KY;function YY(t,e,r={}){let n=Uv(t,r.backwards?e-1:e,r),i=oF(t,n,r);return n!==i}var uF=YY;function XY(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let r=e+2;r<t.length;++r)if(t.charAt(r)==="*"&&t.charAt(r+1)==="/")return r+2}return e}var QY=XY;function ZY(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?zv(t,e):e}var eX=ZY;function tX(t,e){let r=null,n=e;for(;n!==r;)r=n,n=WK(t,n),n=QY(t,n),n=Uv(t,n);return n=eX(t,n),n=oF(t,n),n!==!1&&uF(t,n)}var lF=tX;function rX({node:t,parent:e},r){return!!(t.source&&r.originalText.slice(Sr(t),Sr(e.close)).trimEnd().endsWith(","))}function nX(t,e){return bY(t.grandparent)&&rX(t,e)?",":t.node.type!=="value-comment"&&!(t.node.type==="value-comma_group"&&t.node.groups.every(r=>r.type==="value-comment"))&&JY(e)&&t.callParent(()=>eF(t,e))?$v(","):""}function iX(t,e,r){let{node:n,parent:i}=t,s=t.map(({node:h})=>typeof h=="string"?h:r(),"groups");if(i&&AY(i)&&(n.groups.length===1||n.groups.length>0&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value.startsWith("data:")))return[n.open?r("open"):"",Wi(",",s),n.close?r("close"):""];if(!n.open){let h=cF(t),m=aX(Wi(",",s),2),g=Wi(h?It:Qt,m);return Ur(h?[It,g]:Zr([sX(t)?en:"",Qc(g)]))}let a=t.map(({node:h,isLast:m,index:g})=>{let y=s[g];sy(h)&&h.type==="value-comma_group"&&h.groups&&h.groups[0].type!=="value-paren_group"&&h.groups[2]?.type==="value-paren_group"&&_u(y)===Kc&&_u(y.contents)===Jc&&_u(y.contents.contents)===Yc&&(y=Zr(Bu(y)));let D=[y,m?nX(t,e):","];if(!m&&h.type==="value-comma_group"&&Zc(h.groups)){let d=Ns(0,h.groups,-1);!d.source&&d.close&&(d=d.close),d.source&&lF(e.originalText,kr(d))&&D.push(It)}return D},"groups"),o=IY(n,i),u=MY(n,i),l=eF(t,e),c=u||l&&!o,p=u||o,f=Zr([n.open?r("open"):"",Ur([en,Wi(Qt,a)]),en,n.close?r("close"):""],{shouldBreak:c});return p?Bu(f):f}function cF(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(r=>r.type==="value-comma_group"),(e,r)=>r==="group"&&e.type==="value-value",(e,r)=>r==="group"&&e.type==="value-root",(e,r)=>r==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function sX(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,r)=>r==="group"&&e.type==="value-value",(e,r)=>r==="group"&&e.type==="value-root",(e,r)=>r==="value"&&e.type==="css-decl")}function aX(t,e){let r=[];for(let n=0;n<t.length;n+=e)r.push(t.slice(n,n+e));return r}function oX(t,e,r){let n=[];return t.each(()=>{let{node:i,previous:s}=t;if(s?.type==="css-comment"&&s.text.trim()==="prettier-ignore"?n.push(e.originalText.slice(Sr(i),kr(i))):n.push(r()),t.isLast)return;let{next:a}=t;a.type==="css-comment"&&!uF(e.originalText,Sr(a),{backwards:!0})&&!Xg(i)||a.type==="css-atrule"&&a.name==="else"&&i.type!=="css-comment"?n.push(" "):(n.push(e.__isHTMLStyleAttribute?Qt:It),lF(e.originalText,kr(i))&&!Xg(i)&&n.push(It))},"nodes"),n}var Ru=oX;function uX(t,e,r){let{node:n}=t;switch(n.type){case"css-root":{let i=Ru(t,e,r),s=n.raws.after.trim();return s.startsWith(";")&&(s=s.slice(1).trim()),[n.frontMatter?[r("frontMatter"),It,n.nodes.length>0?It:""]:"",i,s?` ${s}`:"",n.nodes.length>0?It:""]}case"css-comment":{let i=n.inline||n.raws.inline,s=e.originalText.slice(Sr(n),kr(n));return i?s.trimEnd():s}case"css-rule":return[r("selector"),n.important?" !important":"",n.nodes?[n.selector?.type==="selector-unknown"&&Mu(n.selector.value)?Qt:n.selector?" ":"","{",n.nodes.length>0?Ur([It,Ru(t,e,r)]):"",It,"}",vY(n)?";":""]:";"];case"css-decl":{let i=t.parent,{between:s}=n.raws,a=s.trim(),o=a===":",u=typeof n.value=="string"&&/^ *$/u.test(n.value),l=typeof n.value=="string"?n.value:r("value");return l=NY(n)?mK(l):l,!o&&Mu(a)&&!t.call(()=>cF(t),"value","group","group")&&(l=Ur([It,Bu(l)])),[vt(0,n.raws.before,/[\s;]/gu,""),i.type==="css-atrule"&&i.variable||xY(t)?n.prop:Ou(n.prop),a.startsWith("//")?" ":"",a,n.extend||u?"":" ",e.parser==="less"&&n.extend&&n.selector?["extend(",r("selector"),")"]:"",l,n.raws.important?n.raws.important.replace(/\s*!\s*important/iu," !important"):n.important?" !important":"",n.raws.scssDefault?n.raws.scssDefault.replace(/\s*!default/iu," !default"):n.scssDefault?" !default":"",n.raws.scssGlobal?n.raws.scssGlobal.replace(/\s*!global/iu," !global"):n.scssGlobal?" !global":"",n.nodes?[" {",Ur([en,Ru(t,e,r)]),en,"}"]:_Y(n)&&!i.raws.semicolon&&e.originalText[kr(n)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?$v(";"):";"]}case"css-atrule":{let i=t.parent,s=iy(n)&&!i.raws.semicolon&&e.originalText[kr(n)-1]!==";";if(e.parser==="less"){if(n.mixin)return[r("selector"),n.important?" !important":"",s?"":";"];if(n.function)return[n.name,typeof n.params=="string"?n.params:r("params"),s?"":";"];if(n.variable)return["@",n.name,": ",n.value?r("value"):"",n.raws.between.trim()?n.raws.between.trim()+" ":"",n.nodes?["{",Ur([n.nodes.length>0?en:"",Ru(t,e,r)]),en,"}"]:"",s?"":";"]}let a=n.name==="import"&&n.params?.type==="value-unknown"&&n.params.value.endsWith(";");return["@",Zv(n)||n.name.endsWith(":")||iy(n)?n.name:Ou(n.name),n.params?[Zv(n)?"":iy(n)?n.raws.afterName===""?"":n.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(n.raws.afterName)?[It,It]:/^\s*\n/u.test(n.raws.afterName)?It:" ":" ",typeof n.params=="string"?n.params:r("params")]:"",n.selector?Ur([" ",r("selector")]):"",n.value?Zr([" ",r("value"),ny(n,e)?$Y(n)?" ":Qt:""]):n.name==="else"?" ":"",n.nodes?[ny(n,e)?"":n.selector&&!n.selector.nodes&&typeof n.selector.value=="string"&&Mu(n.selector.value)||!n.selector&&typeof n.params=="string"&&Mu(n.params)?Qt:" ","{",Ur([n.nodes.length>0?en:"",Ru(t,e,r)]),en,"}"]:s||a?"":";"]}case"media-query-list":{let i=[];return t.each(({node:s})=>{s.type==="media-query"&&s.value===""||i.push(r())},"nodes"),Zr(Ur(Wi(Qt,i)))}case"media-query":return[Wi(" ",t.map(r,"nodes")),t.isLast?"":","];case"media-type":return Ha(jn(n.value,e));case"media-feature-expression":return n.nodes?["(",...t.map(r,"nodes"),")"]:n.value;case"media-feature":return Ou(jn(vt(0,n.value,/ +/gu," "),e));case"media-colon":return[n.value," "];case"media-value":return Ha(jn(n.value,e));case"media-keyword":return jn(n.value,e);case"media-url":return jn(vt(0,vt(0,n.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case"media-unknown":return n.value;case"selector-root":return Zr([Lu(t,"custom-selector")?[t.findAncestor(i=>i.type==="css-atrule").customSelector,Qt]:"",Wi([",",Lu(t,["extend","custom-selector","nest"])?Qt:It],t.map(r,"nodes"))]);case"selector-selector":{let i=n.nodes.length>2;return Zr((i?Ur:s=>s)(t.map(r,"nodes")))}case"selector-comment":return n.value;case"selector-string":return jn(n.value,e);case"selector-tag":return[n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",t.previous?.type==="selector-nesting"?n.value:Ha(EY(t,n.value)?n.value.toLowerCase():n.value)];case"selector-id":return["#",n.value];case"selector-class":return[".",Ha(jn(n.value,e))];case"selector-attribute":return["[",n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",n.attribute.trim(),n.operator??"",n.value?GY(jn(n.value.trim(),e),e):"",n.insensitive?" i":"","]"];case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"||n.value===">>>"){let a=t.parent;return[a.type==="selector-selector"&&a.nodes[0]===n?"":Qt,n.value,t.isLast?"":" "]}let i=n.value.trim().startsWith("(")?Qt:"",s=Ha(jn(n.value.trim(),e))||Qt;return[i,s]}case"selector-universal":return[n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",n.value];case"selector-pseudo":return[Ou(n.value),Zc(n.nodes)?Zr(["(",Ur([en,Wi([",",Qt],t.map(r,"nodes"))]),en,")"]):""];case"selector-nesting":return n.value;case"selector-unknown":{if(t.findAncestor(a=>a.type==="css-rule")?.isSCSSNesterProperty)return Ha(jn(Ou(n.value),e));let i=t.parent;if(i.raws?.selector){let a=Sr(i),o=a+i.raws.selector.length;return e.originalText.slice(a,o).trim()}let s=t.grandparent;if(i.type==="value-paren_group"&&s?.type==="value-func"&&s.value==="selector"){let a=kr(i.open)+1,o=Sr(i.close),u=e.originalText.slice(a,o).trim();return Mu(u)?[Yg,u]:u}return n.value}case"value-value":case"value-root":return r("group");case"value-comment":return e.originalText.slice(Sr(n),kr(n));case"value-comma_group":return jY(t,e,r);case"value-paren_group":return iX(t,e,r);case"value-func":return[n.value,Lu(t,"supports")&&OY(n)?" ":"",r("group")];case"value-paren":return n.value;case"value-number":return[sF(n.value),nF(n.unit)];case"value-operator":return n.value;case"value-word":return n.isColor&&n.isHex||DY(n.value)?n.value.toLowerCase():n.value;case"value-colon":{let{previous:i}=t;return Zr([n.value,typeof i?.value=="string"&&i.value.endsWith("\\")||tp(t,"url")?"":Qt])}case"value-string":return Lv(n.raws.quote+n.value+n.raws.quote,e);case"value-atword":return["@",n.value];case"value-unicode-range":return n.value;case"value-unknown":return n.value;case"front-matter":case"value-comma":default:throw new PK(n,"PostCSS")}}var lX={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:uX,embed:LK,insertPragma:dY,massageAstNode:OK,getVisitorKeys:VK},cX=lX,pX=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],hX={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."}},fX={singleQuote:hX.singleQuote},dX=fX,pF={};hv(pF,{css:()=>WX,less:()=>GX,scss:()=>JX});var mX=ja(Gc()),gX=ja(fJ()),yX=ja(xJ());function DX(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var EX=DX;function xX(t){return t!==null&&typeof t=="object"}var ap=xX,CX=ja(AJ());function ju(t,e,r){if(ap(t)){delete t.parent;for(let n in t)ju(t[n],e,r),n==="type"&&typeof t[n]=="string"&&!t[n].startsWith(e)&&(!r||!r.test(t[n]))&&(t[n]=e+t[n])}return t}function hF(t){if(ap(t)){delete t.parent;for(let e in t)hF(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var AX=CX.default.default;function bX(t){let e;try{e=AX(t)}catch{return{type:"selector-unknown",value:t}}return ju(hF(e),"media-")}var vX=bX,FX=ja(MJ());function TX(t){if(/\/[/*]/u.test(vt(0,t,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:t.trim()};let e;try{new FX.default(r=>{e=r}).process(t)}catch{return{type:"selector-unknown",value:t}}return ju(e,"selector-")}var $s=TX,wX=ja(tK()),SX=t=>{for(;t.parent;)t=t.parent;return t},fF=SX;function kX(t){return fF(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var PX=kX;function _X(t){if(Zc(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var BX=_X;function NX(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var $X=NX;function IX(t,e){return!!(e.parser==="scss"&&t?.type==="word"&&t.value.startsWith("$"))}var OX=IX,dF=t=>t.type==="paren"&&t.value===")";function LX(t,e){let{nodes:r}=t,n={open:null,close:null,groups:[],type:"paren_group"},i=[n],s=n,a={groups:[],type:"comma_group"},o=[a];for(let u=0;u<r.length;++u){let l=r[u];if(e.parser==="scss"&&l.type==="number"&&l.unit===".."&&l.value.endsWith(".")&&(l.value=l.value.slice(0,-1),l.unit="..."),l.type==="func"&&l.value==="selector"&&(l.group.groups=[$s(fF(t).text.slice(l.group.open.sourceIndex+1,l.group.close.sourceIndex))]),l.type==="func"&&l.value==="url"){let c=l.group?.groups??[],p=[];for(let f=0;f<c.length;f++){let h=c[f];h.type==="comma_group"?p=[...p,...h.groups]:p.push(h)}(BX(p)||!$X(p)&&!OX(p[0],e))&&(l.group.groups=[PX(l)])}if(l.type==="paren"&&l.value==="(")n={open:l,close:null,groups:[],type:"paren_group"},i.push(n),a={groups:[],type:"comma_group"},o.push(a);else if(dF(l)){if(a.groups.length>0&&n.groups.push(a),n.close=l,o.length===1)throw new Error("Unbalanced parenthesis");o.pop(),a=Ns(0,o,-1),a.groups.push(n),i.pop(),n=Ns(0,i,-1)}else if(l.type==="comma"){if(u===r.length-3&&r[u+1].type==="comment"&&dF(r[u+2]))continue;n.groups.push(a),a={groups:[],type:"comma_group"},o[o.length-1]=a}else a.groups.push(l)}return a.groups.length>0&&n.groups.push(a),s}function py(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?py(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(py)}:t}function mF(t,e){if(ap(t))for(let r in t)r!=="parent"&&(mF(t[r],e),r==="nodes"&&(t.group=py(LX(t,e)),delete t[r]));return t}function MX(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let r=null;try{r=new wX.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}r.text=t;let n=mF(r,e);return ju(n,"value-",/^selector-/u)}var Is=MX,RX=new Set(["import","use","forward"]);function jX(t){return RX.has(t)}var qX=jX;function UX(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var zX=UX,VX=/(\s*)(!default).*$/u,HX=/(\s*)(!global).*$/u;function gF(t,e){if(ap(t)){delete t.parent;for(let s in t)gF(t[s],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let s;if(t.value.trimEnd().endsWith("}")){let a=e.originalText.slice(0,t.source.start.offset),o="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),u=vt(0,a,/[^\n]/gu," ")+o,l;e.parser==="scss"?l=EF:e.parser==="less"?l=DF:l=yF;let c;try{c=l(u,{...e})}catch{}c?.nodes?.length===1&&c.nodes[0].type==="css-rule"&&(s=c.nodes[0].nodes)}return s?t.value={type:"css-rule",nodes:s}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let r="";typeof t.selector=="string"&&(r=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(r+=t.raws.between),t.raws.selector=r);let n="";typeof t.value=="string"&&(n=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,t.raws.value=n.trim());let i="";if(typeof t.params=="string"&&(i=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(i=t.raws.afterName+i),t.raws.between&&t.raws.between.trim().length>0&&(i=i+t.raws.between),i=i.trim(),t.raws.params=i),r.trim().length>0)return r.startsWith("@")&&r.endsWith(":")?t:t.mixin?(t.selector=Is(r,e),t):(zX(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=$s(r),t);if(n.trim().length>0){let s=n.match(VX);s&&(n=n.slice(0,s.index),t.scssDefault=!0,s[0].trim()!=="!default"&&(t.raws.scssDefault=s[0]));let a=n.match(HX);if(a&&(n=n.slice(0,a.index),t.scssGlobal=!0,a[0].trim()!=="!global"&&(t.raws.scssGlobal=a[0])),n.startsWith("progid:"))return{type:"value-unknown",value:n};t.value=Is(n,e)}if(e.parser==="less"&&t.type==="css-decl"&&n.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=$s(n.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let s=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=$s(s),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let s=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=s,t.selector=$s(t.params.slice(s.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")){t.variable=!0;let s=t.name.split(":");t.name=s[0];let a=s.slice(1).join(":");t.params&&(a+=t.params),t.value=Is(a,e)}if(!["page","nest","keyframes"].includes(t.name)&&t.params?.[0]===":"){t.variable=!0;let s=t.params.slice(1);s&&(t.value=Is(s,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&i.length>0){let{name:s}=t,a=t.name.toLowerCase();return s==="warn"||s==="error"?(t.params={type:"media-unknown",value:i},t):s==="extend"||s==="nest"?(t.selector=$s(i),delete t.params,t):s==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(i)?t.params=Is(i,e):(t.selector=$s(i),delete t.params),t):qX(a)?(t.import=!0,delete t.filename,t.params=Is(i,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(s)?(i=i.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),i=i.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),t.value=Is(i,e),delete t.params,t):["media","custom-media"].includes(a)?i.includes("#{")?{type:"media-unknown",value:i}:(t.params=vX(i),t):(t.params=i,t)}}return t}function hy(t,e,r){let{frontMatter:n,content:i}=ep(e),s;try{s=t(i,{map:!1})}catch(a){let{name:o,reason:u,line:l,column:c}=a;throw typeof l!="number"?a:EX(`${o}: ${u}`,{loc:{start:{line:l,column:c}},cause:a})}return r.originalText=e,s=gF(ju(s,"css-"),r),Wv(s,e),n&&(s.frontMatter={...n,type:"front-matter",source:{startOffset:n.start.index,endOffset:n.end.index}}),s}function yF(t,e={}){return hy(mX.default.default,t,e)}function DF(t,e={}){return hy(r=>gX.default.parse(JK(r)),t,e)}function EF(t,e={}){return hy(yX.default,t,e)}var fy={astFormat:"postcss",hasPragma:hY,hasIgnorePragma:fY,locStart:Sr,locEnd:kr},WX={...fy,parse:yF},GX={...fy,parse:DF},JX={...fy,parse:EF},KX={postcss:cX},YX=Object.create,dy=Object.defineProperty,XX=Object.getOwnPropertyDescriptor,QX=Object.getOwnPropertyNames,ZX=Object.getPrototypeOf,eQ=Object.prototype.hasOwnProperty,ue=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xF=(t,e)=>{for(var r in e)dy(t,r,{get:e[r],enumerable:!0})},tQ=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of QX(e))!eQ.call(t,i)&&i!==r&&dy(t,i,{get:()=>e[i],enumerable:!(n=XX(e,i))||n.enumerable});return t},Wa=(t,e,r)=>(r=t!=null?YX(ZX(t)):{},tQ(dy(r,"default",{value:t,enumerable:!0}),t)),my=ue((t,e)=>{e.exports=r;function r(n){return String(n).replace(/\s+/g," ")}}),rQ=ue((t,e)=>{e.exports=m;var r=9,n=10,i=32,s=33,a=58,o=91,u=92,l=93,c=94,p=96,f=4,h=1024;function m(E){var C=this.Parser,b=this.Compiler;g(C)&&D(C,E),y(b)&&d(b)}function g(E){return!!(E&&E.prototype&&E.prototype.blockTokenizers)}function y(E){return!!(E&&E.prototype&&E.prototype.visitors)}function D(E,C){for(var b=C||{},w=E.prototype,P=w.blockTokenizers,F=w.inlineTokenizers,S=w.blockMethods,I=w.inlineMethods,B=P.definition,O=F.reference,_=[],$=-1,Y=S.length,V;++$<Y;)V=S[$],!(V==="newline"||V==="indentedCode"||V==="paragraph"||V==="footnoteDefinition")&&_.push([V]);_.push(["footnoteDefinition"]),b.inlineNotes&&(x(I,"reference","inlineNote"),F.inlineNote=L),x(S,"definition","footnoteDefinition"),x(I,"reference","footnoteCall"),P.definition=v,P.footnoteDefinition=ee,F.footnoteCall=T,F.reference=H,w.interruptFootnoteDefinition=_,H.locator=O.locator,T.locator=k,L.locator=N;function ee(j,z,R){for(var G=this,te=G.interruptFootnoteDefinition,M=G.offset,J=z.length+1,X=0,ne=[],le,Ee,ke,ge,xe,Ne,Ge,rt,Xe,it,yt,Z,ie;X<J&&(ge=z.charCodeAt(X),!(ge!==r&&ge!==i));)X++;if(z.charCodeAt(X++)===o&&z.charCodeAt(X++)===c){for(Ee=X;X<J;){if(ge=z.charCodeAt(X),ge!==ge||ge===n||ge===r||ge===i)return;if(ge===l){ke=X,X++;break}X++}if(!(ke===void 0||Ee===ke||z.charCodeAt(X++)!==a)){if(R)return!0;for(le=z.slice(Ee,ke),xe=j.now(),Xe=0,it=0,yt=X,Z=[];X<J;){if(ge=z.charCodeAt(X),ge!==ge||ge===n)ie={start:Xe,contentStart:yt||X,contentEnd:X,end:X},Z.push(ie),ge===n&&(Xe=X+1,it=0,yt=void 0,ie.end=Xe);else if(it!==void 0)if(ge===i||ge===r)it+=ge===i?1:f-it%f,it>f&&(it=void 0,yt=X);else{if(it<f&&ie&&(ie.contentStart===ie.contentEnd||A(te,P,G,[j,z.slice(X,h),!0])))break;it=void 0,yt=X}X++}for(X=-1,J=Z.length;J>0&&(ie=Z[J-1],ie.contentStart===ie.contentEnd);)J--;for(Ne=j(z.slice(0,ie.contentEnd));++X<J;)ie=Z[X],M[xe.line+X]=(M[xe.line+X]||0)+(ie.contentStart-ie.start),ne.push(z.slice(ie.contentStart,ie.end));return Ge=G.enterBlock(),rt=G.tokenizeBlock(ne.join(""),xe),Ge(),Ne({type:"footnoteDefinition",identifier:le.toLowerCase(),label:le,children:rt})}}}function T(j,z,R){var G=z.length+1,te=0,M,J,X,ne;if(z.charCodeAt(te++)===o&&z.charCodeAt(te++)===c){for(J=te;te<G;){if(ne=z.charCodeAt(te),ne!==ne||ne===n||ne===r||ne===i)return;if(ne===l){X=te,te++;break}te++}if(!(X===void 0||J===X))return R?!0:(M=z.slice(J,X),j(z.slice(0,te))({type:"footnoteReference",identifier:M.toLowerCase(),label:M}))}}function L(j,z,R){var G=this,te=z.length+1,M=0,J=0,X,ne,le,Ee,ke,ge,xe;if(z.charCodeAt(M++)===c&&z.charCodeAt(M++)===o){for(le=M;M<te;){if(ne=z.charCodeAt(M),ne!==ne)return;if(ge===void 0)if(ne===u)M+=2;else if(ne===o)J++,M++;else if(ne===l)if(J===0){Ee=M,M++;break}else J--,M++;else if(ne===p){for(ke=M,ge=1;z.charCodeAt(ke+ge)===p;)ge++;M+=ge}else M++;else if(ne===p){for(ke=M,xe=1;z.charCodeAt(ke+xe)===p;)xe++;M+=xe,ge===xe&&(ge=void 0),xe=void 0}else M++}if(Ee!==void 0)return R?!0:(X=j.now(),X.column+=2,X.offset+=2,j(z.slice(0,M))({type:"footnote",children:G.tokenizeInline(z.slice(le,Ee),X)}))}}function H(j,z,R){var G=0;if(z.charCodeAt(G)===s&&G++,z.charCodeAt(G)===o&&z.charCodeAt(G+1)!==c)return O.call(this,j,z,R)}function v(j,z,R){for(var G=0,te=z.charCodeAt(G);te===i||te===r;)te=z.charCodeAt(++G);if(te===o&&z.charCodeAt(G+1)!==c)return B.call(this,j,z,R)}function k(j,z){return j.indexOf("[",z)}function N(j,z){return j.indexOf("^[",z)}}function d(E){var C=E.prototype.visitors,b=" ";C.footnote=w,C.footnoteReference=P,C.footnoteDefinition=F;function w(S){return"^["+this.all(S).join("")+"]"}function P(S){return"[^"+(S.label||S.identifier)+"]"}function F(S){for(var I=this.all(S).join(`
|
|
206
|
+
|
|
207
|
+
`).split(`
|
|
208
|
+
`),B=0,O=I.length,_;++B<O;)_=I[B],_!==""&&(I[B]=b+_);return"[^"+(S.label||S.identifier)+"]: "+I.join(`
|
|
209
|
+
`)}}function x(E,C,b){E.splice(E.indexOf(C),0,b)}function A(E,C,b,w){for(var P=E.length,F=-1;++F<P;)if(C[E[F][0]].apply(b,w))return!0;return!1}}),CF=ue(t=>{t.isRemarkParser=e,t.isRemarkCompiler=r;function e(n){return!!(n&&n.prototype&&n.prototype.blockTokenizers)}function r(n){return!!(n&&n.prototype&&n.prototype.visitors)}}),nQ=ue((t,e)=>{var r=CF();e.exports=p;var n=9,i=32,s=36,a=48,o=57,u=92,l=["math","math-inline"],c="math-display";function p(m){let g=this.Parser,y=this.Compiler;r.isRemarkParser(g)&&f(g,m),r.isRemarkCompiler(y)&&h(y)}function f(m,g){let y=m.prototype,D=y.inlineMethods;x.locator=d,y.inlineTokenizers.math=x,D.splice(D.indexOf("text"),0,"math");function d(A,E){return A.indexOf("$",E)}function x(A,E,C){let b=E.length,w=!1,P=!1,F=0,S,I,B,O,_,$,Y;if(E.charCodeAt(F)===u&&(P=!0,F++),E.charCodeAt(F)===s){if(F++,P)return C?!0:A(E.slice(0,F))({type:"text",value:"$"});if(E.charCodeAt(F)===s&&(w=!0,F++),B=E.charCodeAt(F),!(B===i||B===n)){for(O=F;F<b;){if(I=B,B=E.charCodeAt(F+1),I===s){if(S=E.charCodeAt(F-1),S!==i&&S!==n&&(B!==B||B<a||B>o)&&(!w||B===s)){_=F-1,F++,w&&F++,$=F;break}}else I===u&&(F++,B=E.charCodeAt(F+1));F++}if($!==void 0)return C?!0:(Y=E.slice(O,_+1),A(E.slice(0,$))({type:"inlineMath",value:Y,data:{hName:"span",hProperties:{className:l.concat(w&&g.inlineMathDouble?[c]:[])},hChildren:[{type:"text",value:Y}]}}))}}}}function h(m){let g=m.prototype;g.visitors.inlineMath=y;function y(D){let d="$";return(D.data&&D.data.hProperties&&D.data.hProperties.className||[]).includes(c)&&(d="$$"),d+D.value+d}}}),iQ=ue((t,e)=>{var r=CF();e.exports=c;var n=10,i=32,s=36,a=`
|
|
210
|
+
`,o="$",u=2,l=["math","math-display"];function c(){let h=this.Parser,m=this.Compiler;r.isRemarkParser(h)&&p(h),r.isRemarkCompiler(m)&&f(m)}function p(h){let m=h.prototype,g=m.blockMethods,y=m.interruptParagraph,D=m.interruptList,d=m.interruptBlockquote;m.blockTokenizers.math=x,g.splice(g.indexOf("fencedCode")+1,0,"math"),y.splice(y.indexOf("fencedCode")+1,0,["math"]),D.splice(D.indexOf("fencedCode")+1,0,["math"]),d.splice(d.indexOf("fencedCode")+1,0,["math"]);function x(A,E,C){var b=E.length,w=0;let P,F,S,I,B,O,_,$,Y,V,ee;for(;w<b&&E.charCodeAt(w)===i;)w++;for(B=w;w<b&&E.charCodeAt(w)===s;)w++;if(O=w-B,!(O<u)){for(;w<b&&E.charCodeAt(w)===i;)w++;for(_=w;w<b;){if(P=E.charCodeAt(w),P===s)return;if(P===n)break;w++}if(E.charCodeAt(w)===n){if(C)return!0;for(F=[],_!==w&&F.push(E.slice(_,w)),w++,S=E.indexOf(a,w+1),S=S===-1?b:S;w<b;){for($=!1,V=w,ee=S,I=S,Y=0;I>V&&E.charCodeAt(I-1)===i;)I--;for(;I>V&&E.charCodeAt(I-1)===s;)Y++,I--;for(O<=Y&&E.indexOf(o,V)===I&&($=!0,ee=I);V<=ee&&V-w<B&&E.charCodeAt(V)===i;)V++;if($)for(;ee>V&&E.charCodeAt(ee-1)===i;)ee--;if((!$||V!==ee)&&F.push(E.slice(V,ee)),$)break;w=S+1,S=E.indexOf(a,w+1),S=S===-1?b:S}return F=F.join(`
|
|
211
|
+
`),A(E.slice(0,S))({type:"math",value:F,data:{hName:"div",hProperties:{className:l.concat()},hChildren:[{type:"text",value:F}]}})}}}}function f(h){let m=h.prototype;m.visitors.math=g;function g(y){return`$$
|
|
212
|
+
`+y.value+`
|
|
213
|
+
$$`}}}),sQ=ue((t,e)=>{var r=nQ(),n=iQ();e.exports=i;function i(s){var a=s||{};n.call(this,a),r.call(this,a)}}),Ga=ue((t,e)=>{e.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var i={},s=0;s<arguments.length;s++){var a=arguments[s];for(var o in a)r.call(a,o)&&(i[o]=a[o])}return i}}),aQ=ue((t,e)=>{typeof Object.create=="function"?e.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,n){if(n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}}),oQ=ue((t,e)=>{var r=Ga(),n=aQ();e.exports=i;function i(s){var a,o,u;n(c,s),n(l,c),a=c.prototype;for(o in a)u=a[o],u&&typeof u=="object"&&(a[o]="concat"in u?u.concat():r(u));return c;function l(p){return s.apply(this,p)}function c(){return this instanceof c?s.apply(this,arguments):new l(arguments)}}}),uQ=ue((t,e)=>{e.exports=r;function r(n,i,s){return a;function a(){var o=s||this,u=o[n];return o[n]=!i,l;function l(){o[n]=u}}}}),lQ=ue((t,e)=>{e.exports=r;function r(n){for(var i=String(n),s=[],a=/\r?\n|\r/g;a.exec(i);)s.push(a.lastIndex);return s.push(i.length+1),{toPoint:o,toPosition:o,toOffset:u};function o(l){var c=-1;if(l>-1&&l<s[s.length-1]){for(;++c<s.length;)if(s[c]>l)return{line:c+1,column:l-(s[c-1]||0)+1,offset:l}}return{}}function u(l){var c=l&&l.line,p=l&&l.column,f;return!isNaN(c)&&!isNaN(p)&&c-1 in s&&(f=(s[c-2]||0)+p-1||0),f>-1&&f<s[s.length-1]?f:-1}}}),cQ=ue((t,e)=>{e.exports=n;var r="\\";function n(i,s){return a;function a(o){for(var u=0,l=o.indexOf(r),c=i[s],p=[],f;l!==-1;)p.push(o.slice(u,l)),u=l+1,f=o.charAt(u),(!f||c.indexOf(f)===-1)&&p.push(r),l=o.indexOf(r,u+1);return p.push(o.slice(u)),p.join("")}}}),pQ=ue((t,e)=>{e.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}),hQ=ue((t,e)=>{e.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}),Ja=ue((t,e)=>{e.exports=r;function r(n){var i=typeof n=="string"?n.charCodeAt(0):n;return i>=48&&i<=57}}),fQ=ue((t,e)=>{e.exports=r;function r(n){var i=typeof n=="string"?n.charCodeAt(0):n;return i>=97&&i<=102||i>=65&&i<=70||i>=48&&i<=57}}),qu=ue((t,e)=>{e.exports=r;function r(n){var i=typeof n=="string"?n.charCodeAt(0):n;return i>=97&&i<=122||i>=65&&i<=90}}),dQ=ue((t,e)=>{var r=qu(),n=Ja();e.exports=i;function i(s){return r(s)||n(s)}}),mQ=ue((t,e)=>{e.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
214
|
+
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""}}),gQ=ue((t,e)=>{var r=mQ();e.exports=i;var n={}.hasOwnProperty;function i(s){return n.call(r,s)?r[s]:!1}}),op=ue((t,e)=>{var r=pQ(),n=hQ(),i=Ja(),s=fQ(),a=dQ(),o=gQ();e.exports=L;var u={}.hasOwnProperty,l=String.fromCharCode,c=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f=9,h=10,m=12,g=32,y=38,D=59,d=60,x=61,A=35,E=88,C=120,b=65533,w="named",P="hexadecimal",F="decimal",S={};S[P]=16,S[F]=10;var I={};I[w]=a,I[F]=i,I[P]=s;var B=1,O=2,_=3,$=4,Y=5,V=6,ee=7,T={};T[B]="Named character references must be terminated by a semicolon",T[O]="Numeric character references must be terminated by a semicolon",T[_]="Named character references cannot be empty",T[$]="Numeric character references cannot be empty",T[Y]="Named character references must be known",T[V]="Numeric character references cannot be disallowed",T[ee]="Numeric character references cannot be outside the permissible Unicode range";function L(N,j){var z={},R,G;j||(j={});for(G in p)R=j[G],z[G]=R??p[G];return(z.position.indent||z.position.start)&&(z.indent=z.position.indent||[],z.position=z.position.start),H(N,z)}function H(N,j){var z=j.additional,R=j.nonTerminated,G=j.text,te=j.reference,M=j.warning,J=j.textContext,X=j.referenceContext,ne=j.warningContext,le=j.position,Ee=j.indent||[],ke=N.length,ge=0,xe=-1,Ne=le.column||1,Ge=le.line||1,rt="",Xe=[],it,yt,Z,ie,ve,Ae,we,ft,mr,qt,Ut,Ft,st,kt,er,Ks,Ci,gr,Pt;for(typeof z=="string"&&(z=z.charCodeAt(0)),Ks=xn(),ft=M?SD:c,ge--,ke++;++ge<ke;)if(ve===h&&(Ne=Ee[xe]||1),ve=N.charCodeAt(ge),ve===y){if(we=N.charCodeAt(ge+1),we===f||we===h||we===m||we===g||we===y||we===d||we!==we||z&&we===z){rt+=l(ve),Ne++;continue}for(st=ge+1,Ft=st,Pt=st,we===A?(Pt=++Ft,we=N.charCodeAt(Pt),we===E||we===C?(kt=P,Pt=++Ft):kt=F):kt=w,it="",Ut="",ie="",er=I[kt],Pt--;++Pt<ke&&(we=N.charCodeAt(Pt),!!er(we));)ie+=l(we),kt===w&&u.call(r,ie)&&(it=ie,Ut=r[ie]);Z=N.charCodeAt(Pt)===D,Z&&(Pt++,yt=kt===w?o(ie):!1,yt&&(it=ie,Ut=yt)),gr=1+Pt-st,!Z&&!R||(ie?kt===w?(Z&&!Ut?ft(Y,1):(it!==ie&&(Pt=Ft+it.length,gr=1+Pt-Ft,Z=!1),Z||(mr=it?B:_,j.attribute?(we=N.charCodeAt(Pt),we===x?(ft(mr,gr),Ut=null):a(we)?Ut=null:ft(mr,gr)):ft(mr,gr))),Ae=Ut):(Z||ft(O,gr),Ae=parseInt(ie,S[kt]),v(Ae)?(ft(ee,gr),Ae=l(b)):Ae in n?(ft(V,gr),Ae=n[Ae]):(qt="",k(Ae)&&ft(V,gr),Ae>65535&&(Ae-=65536,qt+=l(Ae>>>10|55296),Ae=56320|Ae&1023),Ae=qt+l(Ae))):kt!==w&&ft($,gr)),Ae?(Jh(),Ks=xn(),ge=Pt-1,Ne+=Pt-st+1,Xe.push(Ae),Ci=xn(),Ci.offset++,te&&te.call(X,Ae,{start:Ks,end:Ci},N.slice(st-1,Pt)),Ks=Ci):(ie=N.slice(st-1,Pt),rt+=ie,Ne+=ie.length,ge=Pt-1)}else ve===10&&(Ge++,xe++,Ne=0),ve===ve?(rt+=l(ve),Ne++):Jh();return Xe.join("");function xn(){return{line:Ge,column:Ne,offset:ge+(le.offset||0)}}function SD(Tt,Ai){var dl=xn();dl.column+=Ai,dl.offset+=Ai,M.call(ne,T[Tt],dl,Tt)}function Jh(){rt&&(Xe.push(rt),G&&G.call(J,rt,{start:Ks,end:xn()}),rt="")}}function v(N){return N>=55296&&N<=57343||N>1114111}function k(N){return N>=1&&N<=8||N===11||N>=13&&N<=31||N>=127&&N<=159||N>=64976&&N<=65007||(N&65535)===65535||(N&65535)===65534}}),yQ=ue((t,e)=>{var r=Ga(),n=op();e.exports=i;function i(s){return o.raw=u,o;function a(c){for(var p=s.offset,f=c.line,h=[];++f&&f in p;)h.push((p[f]||0)+1);return{start:c,indent:h}}function o(c,p,f){n(c,{position:a(p),warning:l,text:f,reference:f,textContext:s,referenceContext:s})}function u(c,p,f){return n(c,r(f,{position:a(p),warning:l}))}function l(c,p,f){f!==3&&s.file.message(c,p)}}}),DQ=ue((t,e)=>{e.exports=r;function r(a){return o;function o(u,l){var c=this,p=c.offset,f=[],h=c[a+"Methods"],m=c[a+"Tokenizers"],g=l.line,y=l.column,D,d,x,A,E,C;if(!u)return f;for(O.now=P,O.file=c.file,b("");u;){for(D=-1,d=h.length,E=!1;++D<d&&(A=h[D],x=m[A],!(x&&(!x.onlyAtStart||c.atStart)&&(!x.notInList||!c.inList)&&(!x.notInBlock||!c.inBlock)&&(!x.notInLink||!c.inLink)&&(C=u.length,x.apply(c,[O,u]),E=C!==u.length,E))););E||c.file.fail(new Error("Infinite loop"),O.now())}return c.eof=P(),f;function b(_){for(var $=-1,Y=_.indexOf(`
|
|
215
|
+
`);Y!==-1;)g++,$=Y,Y=_.indexOf(`
|
|
216
|
+
`,Y+1);$===-1?y+=_.length:y=_.length-$,g in p&&($!==-1?y+=p[g]:y<=p[g]&&(y=p[g]+1))}function w(){var _=[],$=g+1;return function(){for(var Y=g+1;$<Y;)_.push((p[$]||0)+1),$++;return _}}function P(){var _={line:g,column:y};return _.offset=c.toOffset(_),_}function F(_){this.start=_,this.end=P()}function S(_){u.slice(0,_.length)!==_&&c.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),P())}function I(){var _=P();return $;function $(Y,V){var ee=Y.position,T=ee?ee.start:_,L=[],H=ee&&ee.end.line,v=_.line;if(Y.position=new F(T),ee&&V&&ee.indent){if(L=ee.indent,H<v){for(;++H<v;)L.push((p[H]||0)+1);L.push(_.column)}V=L.concat(V)}return Y.position.indent=V||[],Y}}function B(_,$){var Y=$?$.children:f,V=Y[Y.length-1],ee;return V&&_.type===V.type&&(_.type==="text"||_.type==="blockquote")&&n(V)&&n(_)&&(ee=_.type==="text"?i:s,_=ee.call(c,V,_)),_!==V&&Y.push(_),c.atStart&&f.length!==0&&c.exitStart(),_}function O(_){var $=w(),Y=I(),V=P();return S(_),ee.reset=T,T.test=L,ee.test=L,u=u.slice(_.length),b(_),$=$(),ee;function ee(H,v){return Y(B(Y(H),v),$)}function T(){var H=ee.apply(null,arguments);return g=V.line,y=V.column,u=_+u,H}function L(){var H=Y({});return g=V.line,y=V.column,u=_+u,H.position}}}}function n(a){var o,u;return a.type!=="text"||!a.position?!0:(o=a.position.start,u=a.position.end,o.line!==u.line||u.column-o.column===a.value.length)}function i(a,o){return a.value+=o.value,a}function s(a,o){return this.options.commonmark||this.options.gfm?o:(a.children=a.children.concat(o.children),a)}}),EQ=ue((t,e)=>{e.exports=s;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],n=r.concat(["~","|"]),i=n.concat([`
|
|
217
|
+
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);s.default=r,s.gfm=n,s.commonmark=i;function s(a){var o=a||{};return o.commonmark?i:o.gfm?n:r}}),xQ=ue((t,e)=>{e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]}),AF=ue((t,e)=>{e.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:xQ()}}),CQ=ue((t,e)=>{var r=Ga(),n=EQ(),i=AF();e.exports=s;function s(a){var o=this,u=o.options,l,c;if(a==null)a={};else if(typeof a=="object")a=r(a);else throw new Error("Invalid value `"+a+"` for setting `options`");for(l in i){if(c=a[l],c==null&&(c=u[l]),l!=="blocks"&&typeof c!="boolean"||l==="blocks"&&typeof c!="object")throw new Error("Invalid value `"+c+"` for setting `options."+l+"`");a[l]=c}return o.options=a,o.escape=n(a),o}}),AQ=ue((t,e)=>{e.exports=r;function r(o){if(o==null)return a;if(typeof o=="string")return s(o);if(typeof o=="object")return"length"in o?i(o):n(o);if(typeof o=="function")return o;throw new Error("Expected function, string, or object as test")}function n(o){return u;function u(l){var c;for(c in o)if(l[c]!==o[c])return!1;return!0}}function i(o){for(var u=[],l=-1;++l<o.length;)u[l]=r(o[l]);return c;function c(){for(var p=-1;++p<u.length;)if(u[p].apply(this,arguments))return!0;return!1}}function s(o){return u;function u(l){return!!(l&&l.type===o)}}function a(){return!0}}),bQ=ue((t,e)=>{e.exports=r;function r(n){return n}}),vQ=ue((t,e)=>{e.exports=o;var r=AQ(),n=bQ(),i=!0,s="skip",a=!1;o.CONTINUE=i,o.SKIP=s,o.EXIT=a;function o(l,c,p,f){var h,m;typeof c=="function"&&typeof p!="function"&&(f=p,p=c,c=null),m=r(c),h=f?-1:1,g(l,null,[])();function g(y,D,d){var x=typeof y=="object"&&y!==null?y:{},A;return typeof x.type=="string"&&(A=typeof x.tagName=="string"?x.tagName:typeof x.name=="string"?x.name:void 0,E.displayName="node ("+n(x.type+(A?"<"+A+">":""))+")"),E;function E(){var C=d.concat(y),b=[],w,P;if((!c||m(y,D,d[d.length-1]||null))&&(b=u(p(y,d)),b[0]===a))return b;if(y.children&&b[0]!==s)for(P=(f?y.children.length:-1)+h;P>-1&&P<y.children.length;){if(w=g(y.children[P],P,C)(),w[0]===a)return w;P=typeof w[1]=="number"?w[1]:P+h}return b}}}function u(l){return l!==null&&typeof l=="object"&&"length"in l?l:typeof l=="number"?[i,l]:[l]}}),FQ=ue((t,e)=>{e.exports=a;var r=vQ(),n=r.CONTINUE,i=r.SKIP,s=r.EXIT;a.CONTINUE=n,a.SKIP=i,a.EXIT=s;function a(o,u,l,c){typeof u=="function"&&typeof l!="function"&&(c=l,l=u,u=null),r(o,u,p,c);function p(f,h){var m=h[h.length-1],g=m?m.children.indexOf(f):null;return l(f,g,m)}}}),TQ=ue((t,e)=>{var r=FQ();e.exports=n;function n(a,o){return r(a,o?i:s),a}function i(a){delete a.position}function s(a){a.position=void 0}}),wQ=ue((t,e)=>{var r=Ga(),n=TQ();e.exports=a;var i=`
|
|
218
|
+
`,s=/\r\n|\r/g;function a(){var o=this,u=String(o.file),l={line:1,column:1,offset:0},c=r(l),p;return u=u.replace(s,i),u.charCodeAt(0)===65279&&(u=u.slice(1),c.column++,c.offset++),p={type:"root",children:o.tokenizeBlock(u,c),position:{start:l,end:o.eof||r(l)}},o.options.position||n(p,!0),p}}),SQ=ue((t,e)=>{var r=/^[ \t]*(\n|$)/;e.exports=n;function n(i,s,a){for(var o,u="",l=0,c=s.length;l<c&&(o=r.exec(s.slice(l)),o!=null);)l+=o[0].length,u+=o[0];if(u!==""){if(a)return!0;i(u)}}}),gy=ue((t,e)=>{var r="",n;e.exports=i;function i(s,a){if(typeof s!="string")throw new TypeError("expected a string");if(a===1)return s;if(a===2)return s+s;var o=s.length*a;if(n!==s||typeof n>"u")n=s,r="";else if(r.length>=o)return r.substr(0,o);for(;o>r.length&&a>1;)a&1&&(r+=s),a>>=1,s+=s;return r+=s,r=r.substr(0,o),r}}),bF=ue((t,e)=>{e.exports=r;function r(n){return String(n).replace(/\n+$/,"")}}),kQ=ue((t,e)=>{var r=gy(),n=bF();e.exports=l;var i=`
|
|
219
|
+
`,s=" ",a=" ",o=4,u=r(a,o);function l(c,p,f){for(var h=-1,m=p.length,g="",y="",D="",d="",x,A,E;++h<m;)if(x=p.charAt(h),E)if(E=!1,g+=D,y+=d,D="",d="",x===i)D=x,d=x;else for(g+=x,y+=x;++h<m;){if(x=p.charAt(h),!x||x===i){d=x,D=x;break}g+=x,y+=x}else if(x===a&&p.charAt(h+1)===x&&p.charAt(h+2)===x&&p.charAt(h+3)===x)D+=u,h+=3,E=!0;else if(x===s)D+=x,E=!0;else{for(A="";x===s||x===a;)A+=x,x=p.charAt(++h);if(x!==i)break;D+=A+x,d+=x}if(y)return f?!0:c(g)({type:"code",lang:null,meta:null,value:n(y)})}}),PQ=ue((t,e)=>{e.exports=l;var r=`
|
|
220
|
+
`,n=" ",i=" ",s="~",a="`",o=3,u=4;function l(c,p,f){var h=this,m=h.options.gfm,g=p.length+1,y=0,D="",d,x,A,E,C,b,w,P,F,S,I,B,O;if(m){for(;y<g&&(A=p.charAt(y),!(A!==i&&A!==n));)D+=A,y++;if(B=y,A=p.charAt(y),!(A!==s&&A!==a)){for(y++,x=A,d=1,D+=A;y<g&&(A=p.charAt(y),A===x);)D+=A,d++,y++;if(!(d<o)){for(;y<g&&(A=p.charAt(y),!(A!==i&&A!==n));)D+=A,y++;for(E="",w="";y<g&&(A=p.charAt(y),!(A===r||x===a&&A===x));)A===i||A===n?w+=A:(E+=w+A,w=""),y++;if(A=p.charAt(y),!(A&&A!==r)){if(f)return!0;O=c.now(),O.column+=D.length,O.offset+=D.length,D+=E,E=h.decode.raw(h.unescape(E),O),w&&(D+=w),w="",S="",I="",P="",F="";for(var _=!0;y<g;){if(A=p.charAt(y),P+=S,F+=I,S="",I="",A!==r){P+=A,I+=A,y++;continue}for(_?(D+=A,_=!1):(S+=A,I+=A),w="",y++;y<g&&(A=p.charAt(y),A===i);)w+=A,y++;if(S+=w,I+=w.slice(B),!(w.length>=u)){for(w="";y<g&&(A=p.charAt(y),A===x);)w+=A,y++;if(S+=w,I+=w,!(w.length<d)){for(w="";y<g&&(A=p.charAt(y),!(A!==i&&A!==n));)S+=A,I+=A,y++;if(!A||A===r)break}}}for(D+=P+S,y=-1,g=E.length;++y<g;)if(A=E.charAt(y),A===i||A===n)C||(C=E.slice(0,y));else if(C){b=E.slice(y);break}return c(D)({type:"code",lang:C||E||null,meta:b||null,value:F})}}}}}}),Ka=ue((t,e)=>{t=e.exports=r;function r(n){return n.trim?n.trim():t.right(t.left(n))}t.left=function(n){return n.trimLeft?n.trimLeft():n.replace(/^\s\s*/,"")},t.right=function(n){if(n.trimRight)return n.trimRight();for(var i=/\s/,s=n.length;i.test(n.charAt(--s)););return n.slice(0,s+1)}}),yy=ue((t,e)=>{e.exports=r;function r(n,i,s,a){for(var o=n.length,u=-1,l,c;++u<o;)if(l=n[u],c=l[1]||{},!(c.pedantic!==void 0&&c.pedantic!==s.options.pedantic)&&!(c.commonmark!==void 0&&c.commonmark!==s.options.commonmark)&&i[l[0]].apply(s,a))return!0;return!1}}),_Q=ue((t,e)=>{var r=Ka(),n=yy();e.exports=u;var i=`
|
|
221
|
+
`,s=" ",a=" ",o=">";function u(l,c,p){for(var f=this,h=f.offset,m=f.blockTokenizers,g=f.interruptBlockquote,y=l.now(),D=y.line,d=c.length,x=[],A=[],E=[],C,b=0,w,P,F,S,I,B,O,_;b<d&&(w=c.charAt(b),!(w!==a&&w!==s));)b++;if(c.charAt(b)===o){if(p)return!0;for(b=0;b<d;){for(F=c.indexOf(i,b),B=b,O=!1,F===-1&&(F=d);b<d&&(w=c.charAt(b),!(w!==a&&w!==s));)b++;if(c.charAt(b)===o?(b++,O=!0,c.charAt(b)===a&&b++):b=B,S=c.slice(b,F),!O&&!r(S)){b=B;break}if(!O&&(P=c.slice(b),n(g,m,f,[l,P,!0])))break;I=B===b?S:c.slice(B,F),E.push(b-B),x.push(I),A.push(S),b=F+1}for(b=-1,d=E.length,C=l(x.join(i));++b<d;)h[D]=(h[D]||0)+E[b],D++;return _=f.enterBlock(),A=f.tokenizeBlock(A.join(i),y),_(),C({type:"blockquote",children:A})}}}),BQ=ue((t,e)=>{e.exports=o;var r=`
|
|
222
|
+
`,n=" ",i=" ",s="#",a=6;function o(u,l,c){for(var p=this,f=p.options.pedantic,h=l.length+1,m=-1,g=u.now(),y="",D="",d,x,A;++m<h;){if(d=l.charAt(m),d!==i&&d!==n){m--;break}y+=d}for(A=0;++m<=h;){if(d=l.charAt(m),d!==s){m--;break}y+=d,A++}if(!(A>a)&&!(!A||!f&&l.charAt(m+1)===s)){for(h=l.length+1,x="";++m<h;){if(d=l.charAt(m),d!==i&&d!==n){m--;break}x+=d}if(!(!f&&x.length===0&&d&&d!==r)){if(c)return!0;for(y+=x,x="",D="";++m<h&&(d=l.charAt(m),!(!d||d===r));){if(d!==i&&d!==n&&d!==s){D+=x+d,x="";continue}for(;d===i||d===n;)x+=d,d=l.charAt(++m);if(!f&&D&&!x&&d===s){D+=d;continue}for(;d===s;)x+=d,d=l.charAt(++m);for(;d===i||d===n;)x+=d,d=l.charAt(++m);m--}return g.column+=y.length,g.offset+=y.length,y+=D+x,u(y)({type:"heading",depth:A,children:p.tokenizeInline(D,g)})}}}}),NQ=ue((t,e)=>{e.exports=l;var r=" ",n=`
|
|
223
|
+
`,i=" ",s="*",a="-",o="_",u=3;function l(c,p,f){for(var h=-1,m=p.length+1,g="",y,D,d,x;++h<m&&(y=p.charAt(h),!(y!==r&&y!==i));)g+=y;if(!(y!==s&&y!==a&&y!==o))for(D=y,g+=y,d=1,x="";++h<m;)if(y=p.charAt(h),y===D)d++,g+=x+D,x="";else if(y===i)x+=y;else return d>=u&&(!y||y===n)?(g+=x,f?!0:c(g)({type:"thematicBreak"})):void 0}}),vF=ue((t,e)=>{e.exports=a;var r=" ",n=" ",i=1,s=4;function a(o){for(var u=0,l=0,c=o.charAt(u),p={},f,h=0;c===r||c===n;){for(f=c===r?s:i,l+=f,f>1&&(l=Math.floor(l/f)*f);h<l;)p[++h]=u;c=o.charAt(++u)}return{indent:l,stops:p}}}),$Q=ue((t,e)=>{var r=Ka(),n=gy(),i=vF();e.exports=u;var s=`
|
|
224
|
+
`,a=" ",o="!";function u(l,c){var p=l.split(s),f=p.length+1,h=1/0,m=[],g,y,D;for(p.unshift(n(a,c)+o);f--;)if(y=i(p[f]),m[f]=y.stops,r(p[f]).length!==0)if(y.indent)y.indent>0&&y.indent<h&&(h=y.indent);else{h=1/0;break}if(h!==1/0)for(f=p.length;f--;){for(D=m[f],g=h;g&&!(g in D);)g--;p[f]=p[f].slice(D[g]+1)}return p.shift(),p.join(s)}}),IQ=ue((t,e)=>{var r=Ka(),n=gy(),i=Ja(),s=vF(),a=$Q(),o=yy();e.exports=w;var u="*",l="_",c="+",p="-",f=".",h=" ",m=`
|
|
225
|
+
`,g=" ",y=")",D="x",d=4,x=/\n\n(?!\s*$)/,A=/^\[([ X\tx])][ \t]/,E=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,C=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,b=/^( {1,4}|\t)?/gm;function w(I,B,O){for(var _=this,$=_.options.commonmark,Y=_.options.pedantic,V=_.blockTokenizers,ee=_.interruptList,T=0,L=B.length,H=null,v,k,N,j,z,R,G,te,M,J,X,ne,le,Ee,ke,ge,xe,Ne,Ge,rt=!1,Xe,it,yt,Z;T<L&&(j=B.charAt(T),!(j!==g&&j!==h));)T++;if(j=B.charAt(T),j===u||j===c||j===p)z=j,N=!1;else{for(N=!0,k="";T<L&&(j=B.charAt(T),!!i(j));)k+=j,T++;if(j=B.charAt(T),!k||!(j===f||$&&j===y)||O&&k!=="1")return;H=parseInt(k,10),z=j}if(j=B.charAt(++T),!(j!==h&&j!==g&&(Y||j!==m&&j!==""))){if(O)return!0;for(T=0,Ee=[],ke=[],ge=[];T<L;){for(R=B.indexOf(m,T),G=T,te=!1,Z=!1,R===-1&&(R=L),v=0;T<L;){if(j=B.charAt(T),j===g)v+=d-v%d;else if(j===h)v++;else break;T++}if(xe&&v>=xe.indent&&(Z=!0),j=B.charAt(T),M=null,!Z){if(j===u||j===c||j===p)M=j,T++,v++;else{for(k="";T<L&&(j=B.charAt(T),!!i(j));)k+=j,T++;j=B.charAt(T),T++,k&&(j===f||$&&j===y)&&(M=j,v+=k.length+1)}if(M)if(j=B.charAt(T),j===g)v+=d-v%d,T++;else if(j===h){for(yt=T+d;T<yt&&B.charAt(T)===h;)T++,v++;T===yt&&B.charAt(T)===h&&(T-=d-1,v-=d-1)}else j!==m&&j!==""&&(M=null)}if(M){if(!Y&&z!==M)break;te=!0}else!$&&!Z&&B.charAt(G)===h?Z=!0:$&&xe&&(Z=v>=xe.indent||v>d),te=!1,T=G;if(X=B.slice(G,R),J=G===T?X:B.slice(T,R),(M===u||M===l||M===p)&&V.thematicBreak.call(_,I,X,!0))break;if(ne=le,le=!te&&!r(J).length,Z&&xe)xe.value=xe.value.concat(ge,X),ke=ke.concat(ge,X),ge=[];else if(te)ge.length!==0&&(rt=!0,xe.value.push(""),xe.trail=ge.concat()),xe={value:[X],indent:v,trail:[]},Ee.push(xe),ke=ke.concat(ge,X),ge=[];else if(le){if(ne&&!$)break;ge.push(X)}else{if(ne||o(ee,V,_,[I,X,!0]))break;xe.value=xe.value.concat(ge,X),ke=ke.concat(ge,X),ge=[]}T=R+1}for(Xe=I(ke.join(m)).reset({type:"list",ordered:N,start:H,spread:rt,children:[]}),Ne=_.enterList(),Ge=_.enterBlock(),T=-1,L=Ee.length;++T<L;)xe=Ee[T].value.join(m),it=I.now(),I(xe)(P(_,xe,it),Xe),xe=Ee[T].trail.join(m),T!==L-1&&(xe+=m),I(xe);return Ne(),Ge(),Xe}}function P(I,B,O){var _=I.offset,$=I.options.pedantic?F:S,Y=null,V,ee;return B=$.apply(null,arguments),I.options.gfm&&(V=B.match(A),V&&(ee=V[0].length,Y=V[1].toLowerCase()===D,_[O.line]+=ee,B=B.slice(ee))),{type:"listItem",spread:x.test(B),checked:Y,children:I.tokenizeBlock(B,O)}}function F(I,B,O){var _=I.offset,$=O.line;return B=B.replace(C,Y),$=O.line,B.replace(b,Y);function Y(V){return _[$]=(_[$]||0)+V.length,$++,""}}function S(I,B,O){var _=I.offset,$=O.line,Y,V,ee,T,L,H,v;for(B=B.replace(E,k),T=B.split(m),L=a(B,s(Y).indent).split(m),L[0]=ee,_[$]=(_[$]||0)+V.length,$++,H=0,v=T.length;++H<v;)_[$]=(_[$]||0)+T[H].length-L[H].length,$++;return L.join(m);function k(N,j,z,R,G){return V=j+z+R,ee=G,Number(z)<10&&V.length%2===1&&(z=h+z),Y=j+n(h,z.length)+R,Y+ee}}}),OQ=ue((t,e)=>{e.exports=c;var r=`
|
|
226
|
+
`,n=" ",i=" ",s="=",a="-",o=3,u=1,l=2;function c(p,f,h){for(var m=this,g=p.now(),y=f.length,D=-1,d="",x,A,E,C,b;++D<y;){if(E=f.charAt(D),E!==i||D>=o){D--;break}d+=E}for(x="",A="";++D<y;){if(E=f.charAt(D),E===r){D--;break}E===i||E===n?A+=E:(x+=A+E,A="")}if(g.column+=d.length,g.offset+=d.length,d+=x+A,E=f.charAt(++D),C=f.charAt(++D),!(E!==r||C!==s&&C!==a)){for(d+=E,A=C,b=C===s?u:l;++D<y;){if(E=f.charAt(D),E!==C){if(E!==r)return;D--;break}A+=E}return h?!0:p(d+A)({type:"heading",depth:b,children:m.tokenizeInline(x,g)})}}}),FF=ue(t=>{var e="[a-zA-Z_:][a-zA-Z0-9:._-]*",r="[^\"'=<>`\\u0000-\\u0020]+",n="'[^']*'",i='"[^"]*"',s="(?:"+r+"|"+n+"|"+i+")",a="(?:\\s+"+e+"(?:\\s*=\\s*"+s+")?)",o="<[A-Za-z][A-Za-z0-9\\-]*"+a+"*\\s*\\/?>",u="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",l="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",c="<[?].*?[?]>",p="<![A-Za-z]+\\s+[^>]*>",f="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";t.openCloseTag=new RegExp("^(?:"+o+"|"+u+")"),t.tag=new RegExp("^(?:"+o+"|"+u+"|"+l+"|"+c+"|"+p+"|"+f+")")}),LQ=ue((t,e)=>{var r=FF().openCloseTag;e.exports=x;var n=" ",i=" ",s=`
|
|
227
|
+
`,a="<",o=/^<(script|pre|style)(?=(\s|>|$))/i,u=/<\/(script|pre|style)>/i,l=/^<!--/,c=/-->/,p=/^<\?/,f=/\?>/,h=/^<![A-Za-z]/,m=/>/,g=/^<!\[CDATA\[/,y=/]]>/,D=/^$/,d=new RegExp(r.source+"\\s*$");function x(A,E,C){for(var b=this,w=b.options.blocks.join("|"),P=new RegExp("^</?("+w+")(?=(\\s|/?>|$))","i"),F=E.length,S=0,I,B,O,_,$,Y,V,ee=[[o,u,!0],[l,c,!0],[p,f,!0],[h,m,!0],[g,y,!0],[P,D,!0],[d,D,!1]];S<F&&(_=E.charAt(S),!(_!==n&&_!==i));)S++;if(E.charAt(S)===a){for(I=E.indexOf(s,S+1),I=I===-1?F:I,B=E.slice(S,I),O=-1,$=ee.length;++O<$;)if(ee[O][0].test(B)){Y=ee[O];break}if(Y){if(C)return Y[2];if(S=I,!Y[1].test(B))for(;S<F;){if(I=E.indexOf(s,S+1),I=I===-1?F:I,B=E.slice(S+1,I),Y[1].test(B)){B&&(S=I);break}S=I}return V=E.slice(0,S),A(V)({type:"html",value:V})}}}}),pi=ue((t,e)=>{e.exports=i;var r=String.fromCharCode,n=/\s/;function i(s){return n.test(typeof s=="number"?r(s):s.charAt(0))}}),TF=ue((t,e)=>{var r=my();e.exports=n;function n(i){return r(i).toLowerCase()}}),MQ=ue((t,e)=>{var r=pi(),n=TF();e.exports=D;var i='"',s="'",a="\\",o=`
|
|
228
|
+
`,u=" ",l=" ",c="[",p="]",f="(",h=")",m=":",g="<",y=">";function D(A,E,C){for(var b=this,w=b.options.commonmark,P=0,F=E.length,S="",I,B,O,_,$,Y,V,ee;P<F&&(_=E.charAt(P),!(_!==l&&_!==u));)S+=_,P++;if(_=E.charAt(P),_===c){for(P++,S+=_,O="";P<F&&(_=E.charAt(P),_!==p);)_===a&&(O+=_,P++,_=E.charAt(P)),O+=_,P++;if(!(!O||E.charAt(P)!==p||E.charAt(P+1)!==m)){for(Y=O,S+=O+p+m,P=S.length,O="";P<F&&(_=E.charAt(P),!(_!==u&&_!==l&&_!==o));)S+=_,P++;if(_=E.charAt(P),O="",I=S,_===g){for(P++;P<F&&(_=E.charAt(P),!!d(_));)O+=_,P++;if(_=E.charAt(P),_===d.delimiter)S+=g+O+_,P++;else{if(w)return;P-=O.length+1,O=""}}if(!O){for(;P<F&&(_=E.charAt(P),!!x(_));)O+=_,P++;S+=O}if(O){for(V=O,O="";P<F&&(_=E.charAt(P),!(_!==u&&_!==l&&_!==o));)O+=_,P++;if(_=E.charAt(P),$=null,_===i?$=i:_===s?$=s:_===f&&($=h),!$)O="",P=S.length;else if(O){for(S+=O+_,P=S.length,O="";P<F&&(_=E.charAt(P),_!==$);){if(_===o){if(P++,_=E.charAt(P),_===o||_===$)return;O+=o}O+=_,P++}if(_=E.charAt(P),_!==$)return;B=S,S+=O+_,P++,ee=O,O=""}else return;for(;P<F&&(_=E.charAt(P),!(_!==u&&_!==l));)S+=_,P++;if(_=E.charAt(P),!_||_===o)return C?!0:(I=A(I).test().end,V=b.decode.raw(b.unescape(V),I,{nonTerminated:!1}),ee&&(B=A(B).test().end,ee=b.decode.raw(b.unescape(ee),B)),A(S)({type:"definition",identifier:n(Y),label:Y,title:ee||null,url:V}))}}}}function d(A){return A!==y&&A!==c&&A!==p}d.delimiter=y;function x(A){return A!==c&&A!==p&&!r(A)}}),RQ=ue((t,e)=>{var r=pi();e.exports=g;var n=" ",i=`
|
|
229
|
+
`,s=" ",a="-",o=":",u="\\",l="|",c=1,p=2,f="left",h="center",m="right";function g(y,D,d){var x=this,A,E,C,b,w,P,F,S,I,B,O,_,$,Y,V,ee,T,L,H,v,k,N;if(x.options.gfm){for(A=0,ee=0,P=D.length+1,F=[];A<P;){if(v=D.indexOf(i,A),k=D.indexOf(l,A+1),v===-1&&(v=D.length),k===-1||k>v){if(ee<p)return;break}F.push(D.slice(A,v)),ee++,A=v+1}for(b=F.join(i),E=F.splice(1,1)[0]||[],A=0,P=E.length,ee--,C=!1,O=[];A<P;){if(I=E.charAt(A),I===l){if(B=null,C===!1){if(N===!1)return}else O.push(C),C=!1;N=!1}else if(I===a)B=!0,C=C||null;else if(I===o)C===f?C=h:B&&C===null?C=m:C=f;else if(!r(I))return;A++}if(C!==!1&&O.push(C),!(O.length<c)){if(d)return!0;for(V=-1,L=[],H=y(b).reset({type:"table",align:O,children:L});++V<ee;){for(T=F[V],w={type:"tableRow",children:[]},V&&y(i),y(T).reset(w,H),P=T.length+1,A=0,S="",_="",$=!0;A<P;){if(I=T.charAt(A),I===n||I===s){_?S+=I:y(I),A++;continue}I===""||I===l?$?y(I):((_||I)&&!$&&(b=_,S.length>1&&(I?(b+=S.slice(0,-1),S=S.charAt(S.length-1)):(b+=S,S="")),Y=y.now(),y(b)({type:"tableCell",children:x.tokenizeInline(_,Y)},w)),y(S+I),S="",_=""):(S&&(_+=S,S=""),_+=I,I===u&&A!==P-2&&(_+=T.charAt(A+1),A++)),$=!1,A++}V||y(i+E)}return H}}}}),jQ=ue((t,e)=>{var r=Ka(),n=bF(),i=yy();e.exports=l;var s=" ",a=`
|
|
230
|
+
`,o=" ",u=4;function l(c,p,f){for(var h=this,m=h.options,g=m.commonmark,y=h.blockTokenizers,D=h.interruptParagraph,d=p.indexOf(a),x=p.length,A,E,C,b,w;d<x;){if(d===-1){d=x;break}if(p.charAt(d+1)===a)break;if(g){for(b=0,A=d+1;A<x;){if(C=p.charAt(A),C===s){b=u;break}else if(C===o)b++;else break;A++}if(b>=u&&C!==a){d=p.indexOf(a,d+1);continue}}if(E=p.slice(d+1),i(D,y,h,[c,E,!0]))break;if(A=d,d=p.indexOf(a,d+1),d!==-1&&r(p.slice(A,d))===""){d=A;break}}return E=p.slice(0,d),f?!0:(w=c.now(),E=n(E),c(E)({type:"paragraph",children:h.tokenizeInline(E,w)}))}}),qQ=ue((t,e)=>{e.exports=r;function r(n,i){return n.indexOf("\\",i)}}),UQ=ue((t,e)=>{var r=qQ();e.exports=s,s.locator=r;var n=`
|
|
231
|
+
`,i="\\";function s(a,o,u){var l=this,c,p;if(o.charAt(0)===i&&(c=o.charAt(1),l.escape.indexOf(c)!==-1))return u?!0:(c===n?p={type:"break"}:p={type:"text",value:c},a(i+c)(p))}}),wF=ue((t,e)=>{e.exports=r;function r(n,i){return n.indexOf("<",i)}}),zQ=ue((t,e)=>{var r=pi(),n=op(),i=wF();e.exports=p,p.locator=i,p.notInLink=!0;var s="<",a=">",o="@",u="/",l="mailto:",c=l.length;function p(f,h,m){var g=this,y="",D=h.length,d=0,x="",A=!1,E="",C,b,w,P,F;if(h.charAt(0)===s){for(d++,y=s;d<D&&(C=h.charAt(d),!(r(C)||C===a||C===o||C===":"&&h.charAt(d+1)===u));)x+=C,d++;if(x){if(E+=x,x="",C=h.charAt(d),E+=C,d++,C===o)A=!0;else{if(C!==":"||h.charAt(d+1)!==u)return;E+=u,d++}for(;d<D&&(C=h.charAt(d),!(r(C)||C===a));)x+=C,d++;if(C=h.charAt(d),!(!x||C!==a))return m?!0:(E+=x,w=E,y+=E+C,b=f.now(),b.column++,b.offset++,A&&(E.slice(0,c).toLowerCase()===l?(w=w.slice(c),b.column+=c,b.offset+=c):E=l+E),P=g.inlineTokenizers,g.inlineTokenizers={text:P.text},F=g.enterLink(),w=g.tokenizeInline(w,b),g.inlineTokenizers=P,F(),f(y)({type:"link",title:null,url:n(E,{nonTerminated:!1}),children:w}))}}}}),VQ=ue((t,e)=>{e.exports=r;function r(n,i){var s=String(n),a=0,o;if(typeof i!="string")throw new Error("Expected character");for(o=s.indexOf(i);o!==-1;)a++,o=s.indexOf(i,o+i.length);return a}}),HQ=ue((t,e)=>{e.exports=n;var r=["www.","http://","https://"];function n(i,s){var a=-1,o,u,l;if(!this.options.gfm)return a;for(u=r.length,o=-1;++o<u;)l=i.indexOf(r[o],s),l!==-1&&(a===-1||l<a)&&(a=l);return a}}),WQ=ue((t,e)=>{var r=VQ(),n=op(),i=Ja(),s=qu(),a=pi(),o=HQ();e.exports=b,b.locator=o,b.notInLink=!0;var u=33,l=38,c=41,p=42,f=44,h=45,m=46,g=58,y=59,D=63,d=60,x=95,A=126,E="(",C=")";function b(w,P,F){var S=this,I=S.options.gfm,B=S.inlineTokenizers,O=P.length,_=-1,$=!1,Y,V,ee,T,L,H,v,k,N,j,z,R,G,te;if(I){if(P.slice(0,4)==="www.")$=!0,T=4;else if(P.slice(0,7).toLowerCase()==="http://")T=7;else if(P.slice(0,8).toLowerCase()==="https://")T=8;else return;for(_=T-1,ee=T,Y=[];T<O;){if(v=P.charCodeAt(T),v===m){if(_===T-1)break;Y.push(T),_=T,T++;continue}if(i(v)||s(v)||v===h||v===x){T++;continue}break}if(v===m&&(Y.pop(),T--),Y[0]!==void 0&&(V=Y.length<2?ee:Y[Y.length-2]+1,P.slice(V,T).indexOf("_")===-1)){if(F)return!0;for(k=T,L=T;T<O&&(v=P.charCodeAt(T),!(a(v)||v===d));)T++,v===u||v===p||v===f||v===m||v===g||v===D||v===x||v===A||(k=T);if(T=k,P.charCodeAt(T-1)===c)for(H=P.slice(L,T),N=r(H,E),j=r(H,C);j>N;)T=L+H.lastIndexOf(C),H=P.slice(L,T),j--;if(P.charCodeAt(T-1)===y&&(T--,s(P.charCodeAt(T-1)))){for(k=T-2;s(P.charCodeAt(k));)k--;P.charCodeAt(k)===l&&(T=k)}return z=P.slice(0,T),G=n(z,{nonTerminated:!1}),$&&(G="http://"+G),te=S.enterLink(),S.inlineTokenizers={text:B.text},R=S.tokenizeInline(z,w.now()),S.inlineTokenizers=B,te(),w(z)({type:"link",title:null,url:G,children:R})}}}}),GQ=ue((t,e)=>{var r=Ja(),n=qu(),i=43,s=45,a=46,o=95;e.exports=u;function u(c,p){var f=this,h,m;if(!this.options.gfm||(h=c.indexOf("@",p),h===-1))return-1;if(m=h,m===p||!l(c.charCodeAt(m-1)))return u.call(f,c,h+1);for(;m>p&&l(c.charCodeAt(m-1));)m--;return m}function l(c){return r(c)||n(c)||c===i||c===s||c===a||c===o}}),JQ=ue((t,e)=>{var r=op(),n=Ja(),i=qu(),s=GQ();e.exports=p,p.locator=s,p.notInLink=!0;var a=43,o=45,u=46,l=64,c=95;function p(f,h,m){var g=this,y=g.options.gfm,D=g.inlineTokenizers,d=0,x=h.length,A=-1,E,C,b,w;if(y){for(E=h.charCodeAt(d);n(E)||i(E)||E===a||E===o||E===u||E===c;)E=h.charCodeAt(++d);if(d!==0&&E===l){for(d++;d<x;){if(E=h.charCodeAt(d),n(E)||i(E)||E===o||E===u||E===c){d++,A===-1&&E===u&&(A=d);continue}break}if(!(A===-1||A===d||E===o||E===c))return E===u&&d--,C=h.slice(0,d),m?!0:(w=g.enterLink(),g.inlineTokenizers={text:D.text},b=g.tokenizeInline(C,f.now()),g.inlineTokenizers=D,w(),f(C)({type:"link",title:null,url:"mailto:"+r(C,{nonTerminated:!1}),children:b}))}}}}),KQ=ue((t,e)=>{var r=qu(),n=wF(),i=FF().tag;e.exports=p,p.locator=n;var s="<",a="?",o="!",u="/",l=/^<a /i,c=/^<\/a>/i;function p(f,h,m){var g=this,y=h.length,D,d;if(!(h.charAt(0)!==s||y<3)&&(D=h.charAt(1),!(!r(D)&&D!==a&&D!==o&&D!==u)&&(d=h.match(i),!!d)))return m?!0:(d=d[0],!g.inLink&&l.test(d)?g.inLink=!0:g.inLink&&c.test(d)&&(g.inLink=!1),f(d)({type:"html",value:d}))}}),SF=ue((t,e)=>{e.exports=r;function r(n,i){var s=n.indexOf("[",i),a=n.indexOf("![",i);return a===-1||s<a?s:a}}),YQ=ue((t,e)=>{var r=pi(),n=SF();e.exports=y,y.locator=n;var i=`
|
|
232
|
+
`,s="!",a='"',o="'",u="(",l=")",c="<",p=">",f="[",h="\\",m="]",g="`";function y(D,d,x){var A=this,E="",C=0,b=d.charAt(0),w=A.options.pedantic,P=A.options.commonmark,F=A.options.gfm,S,I,B,O,_,$,Y,V,ee,T,L,H,v,k,N,j,z,R;if(b===s&&(V=!0,E=b,b=d.charAt(++C)),b===f&&!(!V&&A.inLink)){for(E+=b,k="",C++,L=d.length,j=D.now(),v=0,j.column+=C,j.offset+=C;C<L;){if(b=d.charAt(C),$=b,b===g){for(I=1;d.charAt(C+1)===g;)$+=b,C++,I++;B?I>=B&&(B=0):B=I}else if(b===h)C++,$+=d.charAt(C);else if((!B||F)&&b===f)v++;else if((!B||F)&&b===m)if(v)v--;else{if(d.charAt(C+1)!==u)return;$+=u,S=!0,C++;break}k+=$,$="",C++}if(S){for(ee=k,E+=k+$,C++;C<L&&(b=d.charAt(C),!!r(b));)E+=b,C++;if(b=d.charAt(C),k="",O=E,b===c){for(C++,O+=c;C<L&&(b=d.charAt(C),b!==p);){if(P&&b===i)return;k+=b,C++}if(d.charAt(C)!==p)return;E+=c+k+p,N=k,C++}else{for(b=null,$="";C<L&&(b=d.charAt(C),!($&&(b===a||b===o||P&&b===u)));){if(r(b)){if(!w)break;$+=b}else{if(b===u)v++;else if(b===l){if(v===0)break;v--}k+=$,$="",b===h&&(k+=h,b=d.charAt(++C)),k+=b}C++}E+=k,N=k,C=E.length}for(k="";C<L&&(b=d.charAt(C),!!r(b));)k+=b,C++;if(b=d.charAt(C),E+=k,k&&(b===a||b===o||P&&b===u))if(C++,E+=b,k="",T=b===u?l:b,_=E,P){for(;C<L&&(b=d.charAt(C),b!==T);)b===h&&(k+=h,b=d.charAt(++C)),C++,k+=b;if(b=d.charAt(C),b!==T)return;for(H=k,E+=k+b,C++;C<L&&(b=d.charAt(C),!!r(b));)E+=b,C++}else for($="";C<L;){if(b=d.charAt(C),b===T)Y&&(k+=T+$,$=""),Y=!0;else if(!Y)k+=b;else if(b===l){E+=k+T+$,H=k;break}else r(b)?$+=b:(k+=T+$+b,$="",Y=!1);C++}if(d.charAt(C)===l)return x?!0:(E+=l,N=A.decode.raw(A.unescape(N),D(O).test().end,{nonTerminated:!1}),H&&(_=D(_).test().end,H=A.decode.raw(A.unescape(H),_)),R={type:V?"image":"link",title:H||null,url:N},V?R.alt=A.decode.raw(A.unescape(ee),j)||null:(z=A.enterLink(),R.children=A.tokenizeInline(ee,j),z()),D(E)(R))}}}}),XQ=ue((t,e)=>{var r=pi(),n=SF(),i=TF();e.exports=m,m.locator=n;var s="link",a="image",o="shortcut",u="collapsed",l="full",c="!",p="[",f="\\",h="]";function m(g,y,D){var d=this,x=d.options.commonmark,A=y.charAt(0),E=0,C=y.length,b="",w="",P=s,F=o,S,I,B,O,_,$,Y,V;if(A===c&&(P=a,w=A,A=y.charAt(++E)),A===p){for(E++,w+=A,$="",V=0;E<C;){if(A=y.charAt(E),A===p)Y=!0,V++;else if(A===h){if(!V)break;V--}A===f&&($+=f,A=y.charAt(++E)),$+=A,E++}if(b=$,S=$,A=y.charAt(E),A===h){if(E++,b+=A,$="",!x)for(;E<C&&(A=y.charAt(E),!!r(A));)$+=A,E++;if(A=y.charAt(E),A===p){for(I="",$+=A,E++;E<C&&(A=y.charAt(E),!(A===p||A===h));)A===f&&(I+=f,A=y.charAt(++E)),I+=A,E++;A=y.charAt(E),A===h?(F=I?l:u,$+=I+A,E++):I="",b+=$,$=""}else{if(!S)return;I=S}if(!(F!==l&&Y))return b=w+b,P===s&&d.inLink?null:D?!0:(B=g.now(),B.column+=w.length,B.offset+=w.length,I=F===l?I:S,O={type:P+"Reference",identifier:i(I),label:I,referenceType:F},P===s?(_=d.enterLink(),O.children=d.tokenizeInline(S,B),_()):O.alt=d.decode.raw(d.unescape(S),B)||null,g(b)(O))}}}}),QQ=ue((t,e)=>{e.exports=r;function r(n,i){var s=n.indexOf("**",i),a=n.indexOf("__",i);return a===-1?s:s===-1||a<s?a:s}}),ZQ=ue((t,e)=>{var r=Ka(),n=pi(),i=QQ();e.exports=u,u.locator=i;var s="\\",a="*",o="_";function u(l,c,p){var f=this,h=0,m=c.charAt(h),g,y,D,d,x,A,E;if(!(m!==a&&m!==o||c.charAt(++h)!==m)&&(y=f.options.pedantic,D=m,x=D+D,A=c.length,h++,d="",m="",!(y&&n(c.charAt(h)))))for(;h<A;){if(E=m,m=c.charAt(h),m===D&&c.charAt(h+1)===D&&(!y||!n(E))&&(m=c.charAt(h+2),m!==D))return r(d)?p?!0:(g=l.now(),g.column+=2,g.offset+=2,l(x+d+x)({type:"strong",children:f.tokenizeInline(d,g)})):void 0;!y&&m===s&&(d+=m,m=c.charAt(++h)),d+=m,h++}}}),eZ=ue((t,e)=>{e.exports=i;var r=String.fromCharCode,n=/\w/;function i(s){return n.test(typeof s=="number"?r(s):s.charAt(0))}}),tZ=ue((t,e)=>{e.exports=r;function r(n,i){var s=n.indexOf("*",i),a=n.indexOf("_",i);return a===-1?s:s===-1||a<s?a:s}}),rZ=ue((t,e)=>{var r=Ka(),n=eZ(),i=pi(),s=tZ();e.exports=l,l.locator=s;var a="*",o="_",u="\\";function l(c,p,f){var h=this,m=0,g=p.charAt(m),y,D,d,x,A,E,C;if(!(g!==a&&g!==o)&&(D=h.options.pedantic,A=g,d=g,E=p.length,m++,x="",g="",!(D&&i(p.charAt(m)))))for(;m<E;){if(C=g,g=p.charAt(m),g===d&&(!D||!i(C))){if(g=p.charAt(++m),g!==d){if(!r(x)||C===d)return;if(!D&&d===o&&n(g)){x+=d;continue}return f?!0:(y=c.now(),y.column++,y.offset++,c(A+x+d)({type:"emphasis",children:h.tokenizeInline(x,y)}))}x+=d}!D&&g===u&&(x+=g,g=p.charAt(++m)),x+=g,m++}}}),nZ=ue((t,e)=>{e.exports=r;function r(n,i){return n.indexOf("~~",i)}}),iZ=ue((t,e)=>{var r=pi(),n=nZ();e.exports=a,a.locator=n;var i="~",s="~~";function a(o,u,l){var c=this,p="",f="",h="",m="",g,y,D;if(!(!c.options.gfm||u.charAt(0)!==i||u.charAt(1)!==i||r(u.charAt(2))))for(g=1,y=u.length,D=o.now(),D.column+=2,D.offset+=2;++g<y;){if(p=u.charAt(g),p===i&&f===i&&(!h||!r(h)))return l?!0:o(s+m+s)({type:"delete",children:c.tokenizeInline(m,D)});m+=f,h=f,f=p}}}),sZ=ue((t,e)=>{e.exports=r;function r(n,i){return n.indexOf("`",i)}}),aZ=ue((t,e)=>{var r=sZ();e.exports=a,a.locator=r;var n=10,i=32,s=96;function a(o,u,l){for(var c=u.length,p=0,f,h,m,g,y,D;p<c&&u.charCodeAt(p)===s;)p++;if(!(p===0||p===c)){for(f=p,y=u.charCodeAt(p);p<c;){if(g=y,y=u.charCodeAt(p+1),g===s){if(h===void 0&&(h=p),m=p+1,y!==s&&m-h===f){D=!0;break}}else h!==void 0&&(h=void 0,m=void 0);p++}if(D){if(l)return!0;if(p=f,c=h,g=u.charCodeAt(p),y=u.charCodeAt(c-1),D=!1,c-p>2&&(g===i||g===n)&&(y===i||y===n)){for(p++,c--;p<c;){if(g=u.charCodeAt(p),g!==i&&g!==n){D=!0;break}p++}D===!0&&(f++,h--)}return o(u.slice(0,m))({type:"inlineCode",value:u.slice(f,h)})}}}}),oZ=ue((t,e)=>{e.exports=r;function r(n,i){for(var s=n.indexOf(`
|
|
233
|
+
`,i);s>i&&n.charAt(s-1)===" ";)s--;return s}}),uZ=ue((t,e)=>{var r=oZ();e.exports=a,a.locator=r;var n=" ",i=`
|
|
234
|
+
`,s=2;function a(o,u,l){for(var c=u.length,p=-1,f="",h;++p<c;){if(h=u.charAt(p),h===i)return p<s?void 0:l?!0:(f+=h,o(f)({type:"break"}));if(h!==n)return;f+=h}}}),lZ=ue((t,e)=>{e.exports=r;function r(n,i,s){var a=this,o,u,l,c,p,f,h,m,g,y;if(s)return!0;for(o=a.inlineMethods,c=o.length,u=a.inlineTokenizers,l=-1,g=i.length;++l<c;)m=o[l],!(m==="text"||!u[m])&&(h=u[m].locator,h||n.file.fail("Missing locator: `"+m+"`"),f=h.call(a,i,1),f!==-1&&f<g&&(g=f));p=i.slice(0,g),y=n.now(),a.decode(p,y,D);function D(d,x,A){n(A||d)({type:"text",value:d})}}}),cZ=ue((t,e)=>{var r=Ga(),n=uQ(),i=lQ(),s=cQ(),a=yQ(),o=DQ();e.exports=u;function u(p,f){this.file=f,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=i(f).toOffset,this.unescape=s(this,"escape"),this.decode=a(this)}var l=u.prototype;l.setOptions=CQ(),l.parse=wQ(),l.options=AF(),l.exitStart=n("atStart",!0),l.enterList=n("inList",!1),l.enterLink=n("inLink",!1),l.enterBlock=n("inBlock",!1),l.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],l.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],l.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]],l.blockTokenizers={blankLine:SQ(),indentedCode:kQ(),fencedCode:PQ(),blockquote:_Q(),atxHeading:BQ(),thematicBreak:NQ(),list:IQ(),setextHeading:OQ(),html:LQ(),definition:MQ(),table:RQ(),paragraph:jQ()},l.inlineTokenizers={escape:UQ(),autoLink:zQ(),url:WQ(),email:JQ(),html:KQ(),link:YQ(),reference:XQ(),strong:ZQ(),emphasis:rZ(),deletion:iZ(),code:aZ(),break:uZ(),text:lZ()},l.blockMethods=c(l.blockTokenizers),l.inlineMethods=c(l.inlineTokenizers),l.tokenizeBlock=o("block"),l.tokenizeInline=o("inline"),l.tokenizeFactory=o;function c(p){var f=[],h;for(h in p)f.push(h);return f}}),pZ=ue((t,e)=>{var r=oQ(),n=Ga(),i=cZ();e.exports=s,s.Parser=i;function s(a){var o=this.data("settings"),u=r(i);u.prototype.options=n(u.prototype.options,o,a),this.Parser=u}}),hZ=ue((t,e)=>{e.exports=r;function r(n){if(n)throw n}}),kF=ue((t,e)=>{e.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}}),fZ=ue((t,e)=>{var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):n.call(c)==="[object Array]"},o=function(c){if(!c||n.call(c)!=="[object Object]")return!1;var p=r.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&r.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!p&&!f)return!1;var h;for(h in c);return typeof h>"u"||r.call(c,h)},u=function(c,p){i&&p.name==="__proto__"?i(c,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):c[p.name]=p.newValue},l=function(c,p){if(p==="__proto__")if(r.call(c,p)){if(s)return s(c,p).value}else return;return c[p]};e.exports=function c(){var p,f,h,m,g,y,D=arguments[0],d=1,x=arguments.length,A=!1;for(typeof D=="boolean"&&(A=D,D=arguments[1]||{},d=2),(D==null||typeof D!="object"&&typeof D!="function")&&(D={});d<x;++d)if(p=arguments[d],p!=null)for(f in p)h=l(D,f),m=l(p,f),D!==m&&(A&&m&&(o(m)||(g=a(m)))?(g?(g=!1,y=h&&a(h)?h:[]):y=h&&o(h)?h:{},u(D,{name:f,newValue:c(A,y,m)})):typeof m<"u"&&u(D,{name:f,newValue:m}));return D}}),dZ=ue((t,e)=>{e.exports=r=>{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let n=Object.getPrototypeOf(r);return n===null||n===Object.prototype}}),mZ=ue((t,e)=>{var r=[].slice;e.exports=n;function n(i,s){var a;return o;function o(){var c=r.call(arguments,0),p=i.length>c.length,f;p&&c.push(u);try{f=i.apply(null,c)}catch(h){if(p&&a)throw h;return u(h)}p||(f&&typeof f.then=="function"?f.then(l,u):f instanceof Error?u(f):l(f))}function u(){a||(a=!0,s.apply(null,arguments))}function l(c){u(null,c)}}}),gZ=ue((t,e)=>{var r=mZ();e.exports=i,i.wrap=r;var n=[].slice;function i(){var s=[],a={};return a.run=o,a.use=u,a;function o(){var l=-1,c=n.call(arguments,0,-1),p=arguments[arguments.length-1];if(typeof p!="function")throw new Error("Expected function as last argument, not "+p);f.apply(null,[null].concat(c));function f(h){var m=s[++l],g=n.call(arguments,0),y=g.slice(1),D=c.length,d=-1;if(h){p(h);return}for(;++d<D;)(y[d]===null||y[d]===void 0)&&(y[d]=c[d]);c=y,m?r(m,f).apply(null,c):p.apply(null,[null].concat(c))}}function u(l){if(typeof l!="function")throw new Error("Expected `fn` to be a function, not "+l);return s.push(l),a}}}),yZ=ue((t,e)=>{var r={}.hasOwnProperty;e.exports=n;function n(o){return!o||typeof o!="object"?"":r.call(o,"position")||r.call(o,"type")?s(o.position):r.call(o,"start")||r.call(o,"end")?s(o):r.call(o,"line")||r.call(o,"column")?i(o):""}function i(o){return(!o||typeof o!="object")&&(o={}),a(o.line)+":"+a(o.column)}function s(o){return(!o||typeof o!="object")&&(o={}),i(o.start)+"-"+i(o.end)}function a(o){return o&&typeof o=="number"?o:1}}),DZ=ue((t,e)=>{var r=yZ();e.exports=s;function n(){}n.prototype=Error.prototype,s.prototype=new n;var i=s.prototype;i.file="",i.name="",i.reason="",i.message="",i.stack="",i.fatal=null,i.column=null,i.line=null;function s(o,u,l){var c,p,f;typeof u=="string"&&(l=u,u=null),c=a(l),p=r(u)||"1:1",f={start:{line:null,column:null},end:{line:null,column:null}},u&&u.position&&(u=u.position),u&&(u.start?(f=u,u=u.start):f.start=u),o.stack&&(this.stack=o.stack,o=o.message),this.message=o,this.name=p,this.reason=o,this.line=u?u.line:null,this.column=u?u.column:null,this.location=f,this.source=c[0],this.ruleId=c[1]}function a(o){var u=[null,null],l;return typeof o=="string"&&(l=o.indexOf(":"),l===-1?u[1]=o:(u[0]=o.slice(0,l),u[1]=o.slice(l+1))),u}}),EZ=ue(t=>{t.basename=e,t.dirname=r,t.extname=n,t.join=i,t.sep="/";function e(u,l){var c=0,p=-1,f,h,m,g;if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');if(o(u),f=u.length,l===void 0||!l.length||l.length>u.length){for(;f--;)if(u.charCodeAt(f)===47){if(m){c=f+1;break}}else p<0&&(m=!0,p=f+1);return p<0?"":u.slice(c,p)}if(l===u)return"";for(h=-1,g=l.length-1;f--;)if(u.charCodeAt(f)===47){if(m){c=f+1;break}}else h<0&&(m=!0,h=f+1),g>-1&&(u.charCodeAt(f)===l.charCodeAt(g--)?g<0&&(p=f):(g=-1,p=h));return c===p?p=h:p<0&&(p=u.length),u.slice(c,p)}function r(u){var l,c,p;if(o(u),!u.length)return".";for(l=-1,p=u.length;--p;)if(u.charCodeAt(p)===47){if(c){l=p;break}}else c||(c=!0);return l<0?u.charCodeAt(0)===47?"/":".":l===1&&u.charCodeAt(0)===47?"//":u.slice(0,l)}function n(u){var l=-1,c=0,p=-1,f=0,h,m,g;for(o(u),g=u.length;g--;){if(m=u.charCodeAt(g),m===47){if(h){c=g+1;break}continue}p<0&&(h=!0,p=g+1),m===46?l<0?l=g:f!==1&&(f=1):l>-1&&(f=-1)}return l<0||p<0||f===0||f===1&&l===p-1&&l===c+1?"":u.slice(l,p)}function i(){for(var u=-1,l;++u<arguments.length;)o(arguments[u]),arguments[u]&&(l=l===void 0?arguments[u]:l+"/"+arguments[u]);return l===void 0?".":s(l)}function s(u){var l,c;return o(u),l=u.charCodeAt(0)===47,c=a(u,!l),!c.length&&!l&&(c="."),c.length&&u.charCodeAt(u.length-1)===47&&(c+="/"),l?"/"+c:c}function a(u,l){for(var c="",p=0,f=-1,h=0,m=-1,g,y;++m<=u.length;){if(m<u.length)g=u.charCodeAt(m);else{if(g===47)break;g=47}if(g===47){if(!(f===m-1||h===1))if(f!==m-1&&h===2){if(c.length<2||p!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){if(y=c.lastIndexOf("/"),y!==c.length-1){y<0?(c="",p=0):(c=c.slice(0,y),p=c.length-1-c.lastIndexOf("/")),f=m,h=0;continue}}else if(c.length){c="",p=0,f=m,h=0;continue}}l&&(c=c.length?c+"/..":"..",p=2)}else c.length?c+="/"+u.slice(f+1,m):c=u.slice(f+1,m),p=m-f-1;f=m,h=0}else g===46&&h>-1?h++:h=-1}return c}function o(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}}),xZ=ue(t=>{t.cwd=e;function e(){return"/"}}),CZ=ue((t,e)=>{var r=EZ(),n=xZ(),i=kF();e.exports=o;var s={}.hasOwnProperty,a=["history","path","basename","stem","extname","dirname"];o.prototype.toString=d,Object.defineProperty(o.prototype,"path",{get:u,set:l}),Object.defineProperty(o.prototype,"dirname",{get:c,set:p}),Object.defineProperty(o.prototype,"basename",{get:f,set:h}),Object.defineProperty(o.prototype,"extname",{get:m,set:g}),Object.defineProperty(o.prototype,"stem",{get:y,set:D});function o(C){var b,w;if(!C)C={};else if(typeof C=="string"||i(C))C={contents:C};else if("message"in C&&"messages"in C)return C;if(!(this instanceof o))return new o(C);for(this.data={},this.messages=[],this.history=[],this.cwd=n.cwd(),w=-1;++w<a.length;)b=a[w],s.call(C,b)&&(this[b]=C[b]);for(b in C)a.indexOf(b)<0&&(this[b]=C[b])}function u(){return this.history[this.history.length-1]}function l(C){A(C,"path"),this.path!==C&&this.history.push(C)}function c(){return typeof this.path=="string"?r.dirname(this.path):void 0}function p(C){E(this.path,"dirname"),this.path=r.join(C||"",this.basename)}function f(){return typeof this.path=="string"?r.basename(this.path):void 0}function h(C){A(C,"basename"),x(C,"basename"),this.path=r.join(this.dirname||"",C)}function m(){return typeof this.path=="string"?r.extname(this.path):void 0}function g(C){if(x(C,"extname"),E(this.path,"extname"),C){if(C.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(C.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(C||""))}function y(){return typeof this.path=="string"?r.basename(this.path,this.extname):void 0}function D(C){A(C,"stem"),x(C,"stem"),this.path=r.join(this.dirname||"",C+(this.extname||""))}function d(C){return(this.contents||"").toString(C)}function x(C,b){if(C&&C.indexOf(r.sep)>-1)throw new Error("`"+b+"` cannot be a path: did not expect `"+r.sep+"`")}function A(C,b){if(!C)throw new Error("`"+b+"` cannot be empty")}function E(C,b){if(!C)throw new Error("Setting `"+b+"` requires `path` to be set too")}}),AZ=ue((t,e)=>{var r=DZ(),n=CZ();e.exports=n,n.prototype.message=i,n.prototype.info=a,n.prototype.fail=s;function i(o,u,l){var c=new r(o,u,l);return this.path&&(c.name=this.path+":"+c.name,c.file=this.path),c.fatal=!1,this.messages.push(c),c}function s(){var o=this.message.apply(this,arguments);throw o.fatal=!0,o}function a(){var o=this.message.apply(this,arguments);return o.fatal=null,o}}),bZ=ue((t,e)=>{e.exports=AZ()}),vZ=ue((t,e)=>{var r=hZ(),n=kF(),i=fZ(),s=dZ(),a=gZ(),o=bZ();e.exports=m().freeze();var u=[].slice,l={}.hasOwnProperty,c=a().use(p).use(f).use(h);function p(C,b){b.tree=C.parse(b.file)}function f(C,b,w){C.run(b.tree,b.file,P);function P(F,S,I){F?w(F):(b.tree=S,b.file=I,w())}}function h(C,b){var w=C.stringify(b.tree,b.file);w==null||(typeof w=="string"||n(w)?("value"in b.file&&(b.file.value=w),b.file.contents=w):b.file.result=w)}function m(){var C=[],b=a(),w={},P=-1,F;return S.data=B,S.freeze=I,S.attachers=C,S.use=O,S.parse=$,S.stringify=ee,S.run=Y,S.runSync=V,S.process=T,S.processSync=L,S;function S(){for(var H=m(),v=-1;++v<C.length;)H.use.apply(null,C[v]);return H.data(i(!0,{},w)),H}function I(){var H,v;if(F)return S;for(;++P<C.length;)H=C[P],H[1]!==!1&&(H[1]===!0&&(H[1]=void 0),v=H[0].apply(S,H.slice(1)),typeof v=="function"&&b.use(v));return F=!0,P=1/0,S}function B(H,v){return typeof H=="string"?arguments.length===2?(x("data",F),w[H]=v,S):l.call(w,H)&&w[H]||null:H?(x("data",F),w=H,S):w}function O(H){var v;if(x("use",F),H!=null)if(typeof H=="function")z.apply(null,arguments);else if(typeof H=="object")"length"in H?j(H):k(H);else throw new Error("Expected usable value, not `"+H+"`");return v&&(w.settings=i(w.settings||{},v)),S;function k(R){j(R.plugins),R.settings&&(v=i(v||{},R.settings))}function N(R){if(typeof R=="function")z(R);else if(typeof R=="object")"length"in R?z.apply(null,R):k(R);else throw new Error("Expected usable value, not `"+R+"`")}function j(R){var G=-1;if(R!=null)if(typeof R=="object"&&"length"in R)for(;++G<R.length;)N(R[G]);else throw new Error("Expected a list of plugins, not `"+R+"`")}function z(R,G){var te=_(R);te?(s(te[1])&&s(G)&&(G=i(!0,te[1],G)),te[1]=G):C.push(u.call(arguments))}}function _(H){for(var v=-1;++v<C.length;)if(C[v][0]===H)return C[v]}function $(H){var v=o(H),k;return I(),k=S.Parser,D("parse",k),g(k,"parse")?new k(String(v),v).parse():k(String(v),v)}function Y(H,v,k){if(A(H),I(),!k&&typeof v=="function"&&(k=v,v=null),!k)return new Promise(N);N(null,k);function N(j,z){b.run(H,o(v),R);function R(G,te,M){te=te||H,G?z(G):j?j(te):k(null,te,M)}}}function V(H,v){var k,N;return Y(H,v,j),E("runSync","run",N),k;function j(z,R){N=!0,k=R,r(z)}}function ee(H,v){var k=o(v),N;return I(),N=S.Compiler,d("stringify",N),A(H),g(N,"compile")?new N(H,k).compile():N(H,k)}function T(H,v){if(I(),D("process",S.Parser),d("process",S.Compiler),!v)return new Promise(k);k(null,v);function k(N,j){var z=o(H);c.run(S,{file:z},R);function R(G){G?j(G):N?N(z):v(null,z)}}}function L(H){var v,k;return I(),D("processSync",S.Parser),d("processSync",S.Compiler),v=o(H),T(v,N),E("processSync","process",k),v;function N(j){k=!0,r(j)}}}function g(C,b){return typeof C=="function"&&C.prototype&&(y(C.prototype)||b in C.prototype)}function y(C){var b;for(b in C)return!0;return!1}function D(C,b){if(typeof b!="function")throw new Error("Cannot `"+C+"` without `Parser`")}function d(C,b){if(typeof b!="function")throw new Error("Cannot `"+C+"` without `Compiler`")}function x(C,b){if(b)throw new Error("Cannot invoke `"+C+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function A(C){if(!C||typeof C.type!="string")throw new Error("Expected node, got `"+C+"`")}function E(C,b,w){if(!w)throw new Error("`"+C+"` finished async. Use `"+b+"` instead")}}),PF={};xF(PF,{languages:()=>Rte,options:()=>qte,parsers:()=>hT,printers:()=>ure});var Dy=(t,e)=>(r,n,...i)=>r|1&&n==null?void 0:(e.call(n)??n[t]).apply(n,i);function FZ(t){return this[t<0?this.length+t:t]}var TZ=Dy("at",function(){if(Array.isArray(this)||typeof this=="string")return FZ}),tn=TZ,wZ=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},SZ=Dy("replaceAll",function(){if(typeof this=="string")return wZ}),Zt=SZ,kZ=Wa(my());function up(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var PZ=()=>{},_Z=PZ,Os="string",Ki="array",lp="cursor",Ya="indent",Xa="align",Uu="trim",Yi="group",Ls="fill",Xi="if-break",zu="indent-if-break",Vu="line-suffix",Hu="line-suffix-boundary",hi="line",Wu="label",Qa="break-parent",_F=new Set([lp,Ya,Xa,Uu,Yi,Ls,Xi,zu,Vu,Hu,hi,Wu,Qa]);function BZ(t){if(typeof t=="string")return Os;if(Array.isArray(t))return Ki;if(!t)return;let{type:e}=t;if(_F.has(e))return e}var Qi=BZ,NZ=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function $Z(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
235
|
+
Expected it to be 'string' or 'object'.`;if(Qi(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=NZ([..._F].map(i=>`'${i}'`));return`Unexpected doc.type '${t.type}'.
|
|
236
|
+
Expected it to be ${n}.`}var IZ=class extends Error{name="InvalidDocError";constructor(t){super($Z(t)),this.doc=t}},cp=IZ,BF={};function OZ(t,e,r,n){let i=[t];for(;i.length>0;){let s=i.pop();if(s===BF){r(i.pop());continue}r&&i.push(s,BF);let a=Qi(s);if(!a)throw new cp(s);if(e?.(s)!==!1)switch(a){case Ki:case Ls:{let o=a===Ki?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case Xi:i.push(s.flatContents,s.breakContents);break;case Yi:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case Xa:case Ya:case zu:case Wu:case Vu:i.push(s.contents);break;case Os:case lp:case Uu:case Hu:case hi:case Qa:break;default:throw new cp(s)}}}var LZ=OZ;function MZ(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(Qi(s)){case Ki:return e(s.map(n));case Ls:return e({...s,parts:s.parts.map(n)});case Xi:return e({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Yi:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),e({...s,contents:o,expandedStates:a})}case Xa:case Ya:case zu:case Wu:case Vu:return e({...s,contents:n(s.contents)});case Os:case lp:case Uu:case Hu:case hi:case Qa:return e(s);default:throw new cp(s)}}}function NF(t){if(t.length>0){let e=tn(0,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function RZ(t){let e=new Set,r=[];function n(s){if(s.type===Qa&&NF(r),s.type===Yi){if(r.push(s),e.has(s))return!1;e.add(s)}}function i(s){s.type===Yi&&r.pop().break&&NF(r)}LZ(t,n,i,!0)}function Za(t,e=by){return MZ(t,r=>typeof r=="string"?$F(e,r.split(`
|
|
237
|
+
`)):r)}var jZ=_Z;function Ey(t){return{type:Ya,contents:t}}function Ms(t,e){return{type:Xa,contents:e,n:t}}function xy(t){return Ms({type:"root"},t)}var pp={type:Qa};function Cy(t){return{type:Ls,parts:t}}function hp(t,e={}){return jZ(e.expandedStates),{type:Yi,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function qZ(t,e="",r={}){return{type:Xi,breakContents:t,flatContents:e,groupId:r.groupId}}function $F(t,e){let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var IF={type:hi},OF={type:hi,soft:!0},Ay={type:hi,hard:!0},Wt=[Ay,pp],UZ={type:hi,hard:!0,literal:!0},by=[UZ,pp],zZ="cr",VZ="crlf",HZ="\r",WZ=`\r
|
|
238
|
+
`,GZ=`
|
|
239
|
+
`,JZ=GZ;function KZ(t){return t===zZ?HZ:t===VZ?WZ:JZ}var YZ=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function XZ(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function QZ(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t>=94192&&t<=94198||t>=94208&&t<=101589||t>=101631&&t<=101662||t>=101760&&t<=101874||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128728||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129674||t>=129678&&t<=129734||t===129736||t>=129741&&t<=129756||t>=129759&&t<=129770||t>=129775&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}var ZZ="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",eee=/[^\x20-\x7F]/u,tee=new Set(ZZ);function ree(t){if(!t)return 0;if(!eee.test(t))return t.length;t=t.replace(YZ(),r=>tee.has(r)?" ":" ");let e=0;for(let r of t){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(e+=XZ(n)||QZ(n)?2:1)}return e}var vy=ree,nee={type:0},iee={type:1},LF={value:"",length:0,queue:[],get root(){return LF}};function MF(t,e,r){let n=e.type===1?t.queue.slice(0,-1):[...t.queue,e],i="",s=0,a=0,o=0;for(let m of n)switch(m.type){case 0:c(),r.useTabs?u(1):l(r.tabWidth);break;case 3:{let{string:g}=m;c(),i+=g,s+=g.length;break}case 2:{let{width:g}=m;a+=1,o+=g;break}default:throw new Error(`Unexpected indent comment '${m.type}'.`)}return f(),{...t,value:i,length:s,queue:n};function u(m){i+=" ".repeat(m),s+=r.tabWidth*m}function l(m){i+=" ".repeat(m),s+=m}function c(){r.useTabs?p():f()}function p(){a>0&&u(a),h()}function f(){o>0&&l(o),h()}function h(){a=0,o=0}}function see(t,e,r){if(!e)return t;if(e.type==="root")return{...t,root:t};if(e===Number.NEGATIVE_INFINITY)return t.root;let n;return typeof e=="number"?e<0?n=iee:n={type:2,width:e}:n={type:3,string:e},MF(t,n,r)}function aee(t,e){return MF(t,nee,e)}function oee(t){let e=0;for(let r=t.length-1;r>=0;r--){let n=t[r];if(n===" "||n===" ")e++;else break}return e}function RF(t){let e=oee(t);return{text:e===0?t:t.slice(0,t.length-e),count:e}}var Pr=Symbol("MODE_BREAK"),qn=Symbol("MODE_FLAT"),Fy=Symbol("DOC_FILL_PRINTED_LENGTH");function fp(t,e,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=e.length,o=!1,u=[t],l="";for(;r>=0;){if(u.length===0){if(a===0)return!0;u.push(e[--a]);continue}let{mode:c,doc:p}=u.pop(),f=Qi(p);switch(f){case Os:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=vy(p));break;case Ki:case Ls:{let h=f===Ki?p:p.parts,m=p[Fy]??0;for(let g=h.length-1;g>=m;g--)u.push({mode:c,doc:h[g]});break}case Ya:case Xa:case zu:case Wu:u.push({mode:c,doc:p.contents});break;case Uu:{let{text:h,count:m}=RF(l);l=h,r+=m;break}case Yi:{if(s&&p.break)return!1;let h=p.break?Pr:c,m=p.expandedStates&&h===Pr?tn(0,p.expandedStates,-1):p.contents;u.push({mode:h,doc:m});break}case Xi:{let h=(p.groupId?i[p.groupId]||qn:c)===Pr?p.breakContents:p.flatContents;h&&u.push({mode:c,doc:h});break}case hi:if(c===Pr||p.hard)return!0;p.soft||(o=!0);break;case Vu:n=!0;break;case Hu:if(n)return!1;break}}return!1}function uee(t,e){let r=Object.create(null),n=e.printWidth,i=KZ(e.endOfLine),s=0,a=[{indent:LF,mode:Pr,doc:t}],o="",u=!1,l=[],c=[],p=[],f=[],h=0;for(RZ(t);a.length>0;){let{indent:d,mode:x,doc:A}=a.pop();switch(Qi(A)){case Os:{let E=i!==`
|
|
240
|
+
`?Zt(0,A,`
|
|
241
|
+
`,i):A;E&&(o+=E,a.length>0&&(s+=vy(E)));break}case Ki:for(let E=A.length-1;E>=0;E--)a.push({indent:d,mode:x,doc:A[E]});break;case lp:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(h+o.length);break;case Ya:a.push({indent:aee(d,e),mode:x,doc:A.contents});break;case Xa:a.push({indent:see(d,A.n,e),mode:x,doc:A.contents});break;case Uu:D();break;case Yi:switch(x){case qn:if(!u){a.push({indent:d,mode:A.break?Pr:qn,doc:A.contents});break}case Pr:{u=!1;let E={indent:d,mode:qn,doc:A.contents},C=n-s,b=l.length>0;if(!A.break&&fp(E,a,C,b,r))a.push(E);else if(A.expandedStates){let w=tn(0,A.expandedStates,-1);if(A.break){a.push({indent:d,mode:Pr,doc:w});break}else for(let P=1;P<A.expandedStates.length+1;P++)if(P>=A.expandedStates.length){a.push({indent:d,mode:Pr,doc:w});break}else{let F=A.expandedStates[P],S={indent:d,mode:qn,doc:F};if(fp(S,a,C,b,r)){a.push(S);break}}}else a.push({indent:d,mode:Pr,doc:A.contents});break}}A.id&&(r[A.id]=tn(0,a,-1).mode);break;case Ls:{let E=n-s,C=A[Fy]??0,{parts:b}=A,w=b.length-C;if(w===0)break;let P=b[C+0],F=b[C+1],S={indent:d,mode:qn,doc:P},I={indent:d,mode:Pr,doc:P},B=fp(S,[],E,l.length>0,r,!0);if(w===1){B?a.push(S):a.push(I);break}let O={indent:d,mode:qn,doc:F},_={indent:d,mode:Pr,doc:F};if(w===2){B?a.push(O,S):a.push(_,I);break}let $=b[C+2],Y={indent:d,mode:x,doc:{...A,[Fy]:C+2}},V=fp({indent:d,mode:qn,doc:[P,F,$]},[],E,l.length>0,r,!0);a.push(Y),V?a.push(O,S):B?a.push(_,S):a.push(_,I);break}case Xi:case zu:{let E=A.groupId?r[A.groupId]:x;if(E===Pr){let C=A.type===Xi?A.breakContents:A.negate?A.contents:Ey(A.contents);C&&a.push({indent:d,mode:x,doc:C})}if(E===qn){let C=A.type===Xi?A.flatContents:A.negate?Ey(A.contents):A.contents;C&&a.push({indent:d,mode:x,doc:C})}break}case Vu:l.push({indent:d,mode:x,doc:A.contents});break;case Hu:l.length>0&&a.push({indent:d,mode:x,doc:Ay});break;case hi:switch(x){case qn:if(A.hard)u=!0;else{A.soft||(o+=" ",s+=1);break}case Pr:if(l.length>0){a.push({indent:d,mode:x,doc:A},...l.reverse()),l.length=0;break}A.literal?(o+=i,s=0,d.root&&(d.root.value&&(o+=d.root.value),s=d.root.length)):(D(),o+=i+d.value,s=d.length);break}break;case Wu:a.push({indent:d,mode:x,doc:A.contents});break;case Qa:break;default:throw new cp(A)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let m=p.join("")+o,g=[...f,...c];if(g.length!==2)return{formatted:m};let y=g[0];return{formatted:m,cursorNodeStart:y,cursorNodeText:m.slice(y,tn(0,g,-1))};function D(){let{text:d,count:x}=RF(o);d&&(p.push(d),h+=d.length),o="",s-=x,c.length>0&&(f.push(...c.map(A=>Math.min(A,h))),c.length=0)}}function lee(t,e){let r=t.matchAll(new RegExp(`(?:${up(e)})+`,"gu"));return r.reduce||(r=[...r]),r.reduce((n,[i])=>Math.max(n,i.length),0)/e.length}var jF=lee;function cee(t,e){let r=t.match(new RegExp(`(${up(e)})+`,"gu"));if(r===null)return 1;let n=new Map,i=0;for(let s of r){let a=s.length/e.length;n.set(a,!0),a>i&&(i=a)}for(let s=1;s<i;s++)if(!n.get(s))return s;return i+1}var pee=cee,qF=Object.freeze({character:"'",codePoint:39}),UF=Object.freeze({character:'"',codePoint:34}),hee=Object.freeze({preferred:qF,alternate:UF}),fee=Object.freeze({preferred:UF,alternate:qF});function dee(t,e){let{preferred:r,alternate:n}=e===!0||e==="'"?hee:fee,{length:i}=t,s=0,a=0;for(let o=0;o<i;o++){let u=t.charCodeAt(o);u===r.codePoint?s++:u===n.codePoint&&a++}return(s>a?n:r).character}var mee=dee,gee=class extends Error{name="UnexpectedNodeError";constructor(t,e,r="type"){super(`Unexpected ${e} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}},yee=gee,Dee=Wa(my()),Eee=Array.prototype.toReversed??function(){return[...this].reverse()},xee=Dy("toReversed",function(){if(Array.isArray(this))return Eee}),Cee=xee;function Aee(){let t=globalThis,e=t.Deno?.build?.os;return typeof e=="string"?e==="windows":t.navigator?.platform?.startsWith("Win")??t.process?.platform?.startsWith("win")??!1}var bee=Aee();function zF(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function vee(t){return t=zF(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Fee(t){t=zF(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function Tee(t){return bee?Fee(t):vee(t)}var wee=t=>String(t).split(/[/\\]/u).pop(),See=t=>String(t).startsWith("file:");function VF(t,e){if(!e)return;let r=wee(e).toLowerCase();return t.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??t.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function kee(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r?.includes(e))??t.find(({extensions:r})=>r?.includes(`.${e}`))}var Pee=void 0;function HF(t,e){if(e){if(See(e))try{e=Tee(e)}catch{return}if(typeof e=="string")return t.find(({isSupported:r})=>r?.({filepath:e}))}}function _ee(t,e){let r=Cee(0,t.plugins).flatMap(n=>n.languages??[]);return(kee(r,e.language)??VF(r,e.physicalFile)??VF(r,e.file)??HF(r,e.physicalFile)??HF(r,e.file)??Pee?.(r,e.physicalFile))?.parsers[0]}var Bee=_ee,WF=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Nee(t){return!!t?.[WF]}var $ee=Nee,Gu=3;function Iee(t){let e=t.slice(0,Gu);if(e!=="---"&&e!=="+++")return;let r=t.indexOf(`
|
|
242
|
+
`,Gu);if(r===-1)return;let n=t.slice(Gu,r).trim(),i=t.indexOf(`
|
|
243
|
+
${e}`,r),s=n;if(s||(s=e==="+++"?"toml":"yaml"),i===-1&&e==="---"&&s==="yaml"&&(i=t.indexOf(`
|
|
244
|
+
...`,r)),i===-1)return;let a=i+1+Gu,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a),l;return{language:s,explicitLanguage:n||null,value:t.slice(r+1,i),startDelimiter:e,endDelimiter:u.slice(-Gu),raw:u,start:{line:1,column:0,index:0},end:{index:u.length,get line(){return l??(l=u.split(`
|
|
245
|
+
`)),l.length},get column(){return l??(l=u.split(`
|
|
246
|
+
`)),tn(0,l,-1).length}},[WF]:!0}}function Oee(t){let e=Iee(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return Zt(0,r,/[^\n]/gu," ")+t.slice(r.length)}}:{content:t}}var dp=Oee,Lee="format",Mee=/<!--\s*@(?:noformat|noprettier)\s*-->|\{\s*\/\*\s*@(?:noformat|noprettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:noformat|noprettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/mu,Ree=/<!--\s*@(?:format|prettier)\s*-->|\{\s*\/\*\s*@(?:format|prettier)\s*\*\/\s*\}|<!--.*\r?\n[\s\S]*(^|\n)[^\S\n]*@(?:format|prettier)[^\S\n]*($|\n)[\s\S]*\n.*-->/mu,GF=t=>dp(t).content.trimStart().match(Ree)?.index===0,jee=t=>dp(t).content.trimStart().match(Mee)?.index===0,qee=t=>{let{frontMatter:e}=dp(t),r=`<!-- @${Lee} -->`;return e?`${e.raw}
|
|
247
|
+
|
|
248
|
+
${r}
|
|
249
|
+
|
|
250
|
+
${t.slice(e.end.index)}`:`${r}
|
|
251
|
+
|
|
252
|
+
${t}`},Uee=new Set(["position","raw"]);function JF(t,e,r){if((t.type==="code"||t.type==="yaml"||t.type==="import"||t.type==="export"||t.type==="jsx")&&delete e.value,t.type==="list"&&delete e.isAligned,(t.type==="list"||t.type==="listItem")&&delete e.spread,t.type==="text")return null;if(t.type==="inlineCode"&&(e.value=Zt(0,t.value,`
|
|
253
|
+
`," ")),t.type==="wikiLink"&&(e.value=Zt(0,t.value.trim(),/[\t\n]+/gu," ")),(t.type==="definition"||t.type==="linkReference"||t.type==="imageReference")&&(e.label=(0,Dee.default)(t.label)),(t.type==="link"||t.type==="image")&&t.url&&t.url.includes("("))for(let n of"<>")e.url=Zt(0,t.url,n,encodeURIComponent(n));if((t.type==="definition"||t.type==="link"||t.type==="image")&&t.title&&(e.title=Zt(0,t.title,/\\(?=["')])/gu,"")),r?.type==="root"&&r.children.length>0&&(r.children[0]===t||$ee(r.children[0])&&r.children[1]===t)&&t.type==="html"&&GF(t.value))return null}JF.ignoredProperties=Uee;var zee=JF,Vee=/(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{16ff2}-\u{16ff6}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b81d}\u{2b820}-\u{2cead}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{33479}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,Ju=new RegExp("(?:[\\u{21}-\\u{2f}\\u{3a}-\\u{40}\\u{5b}-\\u{60}\\u{7b}-\\u{7e}]|\\p{General_Category=Connector_Punctuation}|\\p{General_Category=Dash_Punctuation}|\\p{General_Category=Close_Punctuation}|\\p{General_Category=Final_Punctuation}|\\p{General_Category=Initial_Punctuation}|\\p{General_Category=Other_Punctuation}|\\p{General_Category=Open_Punctuation})","u"),mp=t=>t.position.start.offset,gp=t=>t.position.end.offset,KF=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),YF=new Set([...KF,"tableCell","paragraph","heading"]),Ku="non-cjk",fi="cj-letter",eo="k-letter",yp="cjk-punctuation",Hee=new RegExp("\\p{Script_Extensions=Hangul}","u");function XF(t){let e=[],r=t.split(/([\t\n ]+)/u);for(let[i,s]of r.entries()){if(i%2===1){e.push({type:"whitespace",value:/\n/u.test(s)?`
|
|
254
|
+
`:" "});continue}if((i===0||i===r.length-1)&&s==="")continue;let a=s.split(new RegExp(`(${Vee.source})`,"u"));for(let[o,u]of a.entries())if(!((o===0||o===a.length-1)&&u==="")){if(o%2===0){u!==""&&n({type:"word",value:u,kind:Ku,isCJ:!1,hasLeadingPunctuation:Ju.test(u[0]),hasTrailingPunctuation:Ju.test(tn(0,u,-1))});continue}if(Ju.test(u)){n({type:"word",value:u,kind:yp,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(Hee.test(u)){n({type:"word",value:u,kind:eo,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:u,kind:fi,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return e;function n(i){let s=tn(0,e,-1);s?.type==="word"&&!a(Ku,yp)&&![s.value,i.value].some(o=>/\u3000/u.test(o))&&e.push({type:"whitespace",value:""}),e.push(i);function a(o,u){return s.kind===o&&i.kind===u||s.kind===u&&i.kind===o}}}function Yu(t,e){let r=e.originalText.slice(t.position.start.offset,t.position.end.offset),{numberText:n,leadingSpaces:i}=r.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(n),leadingSpaces:i}}function Wee(t,e){return!t.ordered||t.children.length<2||Yu(t.children[1],e).number!==1?!1:Yu(t.children[0],e).number!==0?!0:t.children.length>2&&Yu(t.children[2],e).number===1}function QF(t,e){let{value:r}=t;return t.position.end.offset===e.length&&r.endsWith(`
|
|
255
|
+
`)&&e.endsWith(`
|
|
256
|
+
`)?r.slice(0,-1):r}function to(t,e){return(function r(n,i,s){let a={...e(n,i,s)};return a.children&&(a.children=a.children.map((o,u)=>r(o,u,[a,...s]))),a})(t,null,[])}function ZF(t){if(t?.type!=="link"||t.children.length!==1)return!1;let[e]=t.children;return mp(t)===mp(e)&&gp(t)===gp(e)}function Ty(t){let e;if(t.type==="html")e=t.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);else{let r;t.type==="esComment"?r=t:t.type==="paragraph"&&t.children.length===1&&t.children[0].type==="esComment"&&(r=t.children[0]),r&&(e=r.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return e?e[1]||"next":!1}function eT(t,e){return r(t,e,n=>n.ordered===t.ordered);function r(n,i,s){let a=-1;for(let o of i.children)if(o.type===n.type&&s(o)?a++:a=-1,o===n)return a}}function Gee(t,e){let{node:r}=t;if(r.type==="code"&&r.lang!==null){let n=Bee(e,{language:r.lang});if(n)return async i=>{let s=e.__inJsTemplate?"~":"`",a=s.repeat(Math.max(3,jF(r.value,s)+1)),o={parser:n};r.lang==="ts"||r.lang==="typescript"?o.filepath="dummy.ts":r.lang==="tsx"&&(o.filepath="dummy.tsx");let u=await i(QF(r,e.originalText),o);return xy([a,r.lang,r.meta?" "+r.meta:"",Wt,Za(u),Wt,a])}}switch(r.type){case"import":case"export":return n=>n(r.value,{__onHtmlBindingRoot:i=>Jee(i,r.type),parser:"babel"});case"jsx":return n=>n(`<$>${r.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}function Jee(t,e){let{program:{body:r}}=t;if(!r.every(n=>n.type==="ImportDeclaration"||n.type==="ExportDefaultDeclaration"||n.type==="ExportNamedDeclaration"))throw new Error(`Unexpected '${e}' in MDX.`)}var Kee=Gee,Xu=null;function Qu(t){if(Xu!==null&&typeof Xu.property){let e=Xu;return Xu=Qu.prototype=null,e}return Xu=Qu.prototype=t??Object.create(null),new Qu}var Yee=10;for(let t=0;t<=Yee;t++)Qu();function Xee(t){return Qu(t)}function Qee(t,e="type"){Xee(t);function r(n){let i=n[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Zee=Qee,Ve=[["children"],[]],ete={root:Ve[0],paragraph:Ve[0],sentence:Ve[0],word:Ve[1],whitespace:Ve[1],emphasis:Ve[0],strong:Ve[0],delete:Ve[0],inlineCode:Ve[1],wikiLink:Ve[1],link:Ve[0],image:Ve[1],blockquote:Ve[0],heading:Ve[0],code:Ve[1],html:Ve[1],list:Ve[0],thematicBreak:Ve[1],linkReference:Ve[0],imageReference:Ve[1],definition:Ve[1],footnote:Ve[0],footnoteReference:Ve[1],footnoteDefinition:Ve[0],table:Ve[0],tableCell:Ve[0],break:Ve[1],liquidNode:Ve[1],import:Ve[1],export:Ve[1],esComment:Ve[1],jsx:Ve[1],math:Ve[1],inlineMath:Ve[1],tableRow:Ve[0],listItem:Ve[0],text:Ve[1]},tte=Zee(ete),rte=tte;function _r(t,e,r,n={}){let{processor:i=r}=n,s=[];return t.each(()=>{let a=i(t);a!==!1&&(s.length>0&&nte(t)&&(s.push(Wt),(ste(t,e)||tT(t))&&s.push(Wt),tT(t)&&s.push(Wt)),s.push(a))},"children"),s}function nte({node:t,parent:e}){let r=KF.has(t.type),n=t.type==="html"&&YF.has(e.type);return!r&&!n}var ite=new Set(["listItem","definition"]);function ste({node:t,previous:e,parent:r},n){if(rT(e,n)||t.type==="list"&&r.type==="listItem"&&e.type==="code")return!0;let i=e.type===t.type&&ite.has(t.type),s=r.type==="listItem"&&(t.type==="list"||!rT(r,n)),a=Ty(e)==="next",o=t.type==="html"&&e.type==="html"&&e.position.end.line+1===t.position.start.line,u=t.type==="html"&&r.type==="listItem"&&e.type==="paragraph"&&e.position.end.line+1===t.position.start.line;return!(i||s||a||o||u)}function tT({node:t,previous:e}){let r=e.type==="list",n=t.type==="code"&&t.isIndented;return r&&n}function rT(t,e){return t.type==="listItem"&&(t.spread||e.originalText.charAt(t.position.end.offset-1)===`
|
|
257
|
+
`)}function ate(t,e,r){let{node:n}=t,i=eT(n,t.parent),s=Wee(n,e);return _r(t,e,r,{processor(){let a=u(),{node:o}=t;if(o.children.length===2&&o.children[1].type==="html"&&o.children[0].position.start.column!==o.children[1].position.start.column)return[a,nT(t,e,r,a)];return[a,Ms(" ".repeat(a.length),nT(t,e,r,a))];function u(){let l=n.ordered?(t.isFirst?n.start:s?1:n.start+t.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return(n.isAligned||n.hasIndentedCodeblock)&&n.ordered?ote(l,e):l}}})}function nT(t,e,r,n){let{node:i}=t,s=i.checked===null?"":i.checked?"[x] ":"[ ] ";return[s,_r(t,e,r,{processor({node:a,isFirst:o}){if(o&&a.type!=="list")return Ms(" ".repeat(s.length),r());let u=" ".repeat(ute(e.tabWidth-n.length,0,3));return[u,Ms(u,r())]}})]}function ote(t,e){let r=n();return t+" ".repeat(r>=4?0:r);function n(){let i=t.length%e.tabWidth;return i===0?0:e.tabWidth-i}}function ute(t,e,r){return Math.max(e,Math.min(t,r))}function lte(t,e,r){let{node:n}=t,i=[],s=t.map(()=>t.map(({index:p})=>{let f=uee(r(),e).formatted,h=vy(f);return i[p]=Math.max(i[p]??3,h),{text:f,width:h}},"children"),"children"),a=u(!1);if(e.proseWrap!=="never")return[pp,a];let o=u(!0);return[pp,hp(qZ(o,a))];function u(p){return $F(Ay,[c(s[0],p),l(p),...s.slice(1).map(f=>c(f,p))].map(f=>`| ${f.join(" | ")} |`))}function l(p){return i.map((f,h)=>{let m=n.align[h],g=m==="center"||m==="left"?":":"-",y=m==="center"||m==="right"?":":"-",D=p?"-":"-".repeat(f-2);return`${g}${D}${y}`})}function c(p,f){return p.map(({text:h,width:m},g)=>{if(f)return h;let y=i[g]-m,D=n.align[g],d=0;D==="right"?d=y:D==="center"&&(d=Math.floor(y/2));let x=y-d;return`${" ".repeat(d)}${h}${" ".repeat(x)}`})}}function cte(t){let{node:e}=t,r=Zt(0,Zt(0,e.value,"*","\\*"),new RegExp([`(^|${Ju.source})(_+)`,`(_+)(${Ju.source}|$)`].join("|"),"gu"),(s,a,o,u,l)=>Zt(0,o?`${a}${o}`:`${u}${l}`,"_","\\_")),n=(s,a,o)=>s.type==="sentence"&&o===0,i=(s,a,o)=>ZF(s.children[o-1]);return r!==e.value&&(t.match(void 0,n,i)||t.match(void 0,n,(s,a,o)=>s.type==="emphasis"&&o===0,i))&&(r=r.replace(/^(\\?[*_])+/u,s=>Zt(0,s,"\\",""))),r}function pte(t,e,r){let n=t.map(r,"children");return hte(n)}function hte(t){let e=[""];return(function r(n){for(let i of n){let s=Qi(i);if(s===Ki){r(i);continue}let a=i,o=[];s===Ls&&([a,...o]=i.parts),e.push([e.pop(),a],...o)}})(t),Cy(e)}var fte=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let e=this.#e,r=0;for(let n=0;n<t.length&&e.has(t.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(t){let e=this.#e,r=0;for(let n=t.length-1;n>=0&&e.has(t.charAt(n));n--)r++;return r}getLeadingWhitespace(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(0,e)}getTrailingWhitespace(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(t.length-e)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#e.has(tn(0,t,-1))}trimStart(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(e)}trimEnd(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-e)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,e=!1){let r=`[${up([...this.#e].join(""))}]+`,n=new RegExp(e?`(${r})`:r,"u");return t.split(n)}hasWhitespaceCharacter(t){let e=this.#e;return Array.prototype.some.call(t,r=>e.has(r))}hasNonWhitespaceCharacter(t){let e=this.#e;return Array.prototype.some.call(t,r=>!e.has(r))}isWhitespaceOnly(t){let e=this.#e;return Array.prototype.every.call(t,r=>e.has(r))}#t(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(`
|
|
258
|
+
`)){if(r.length===0)continue;let n=this.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<e&&(e=n)}return e===Number.POSITIVE_INFINITY?0:e}dedentString(t){let e=this.#t(t);return e===0?t:t.split(`
|
|
259
|
+
`).map(r=>r.slice(e)).join(`
|
|
260
|
+
`)}},dte=fte,mte=[" ",`
|
|
261
|
+
`,"\f","\r"," "],gte=new dte(mte),iT=gte,yte=/^\\?.$/su,Dte=/^\n *>[ >]*$/u;function Ete(t,e){return t=xte(t,e),t=Ate(t),t=vte(t,e),t=Fte(t,e),t=bte(t),t}function xte(t,e){return to(t,r=>{if(r.type!=="text")return r;let{value:n}=r;if(n==="*"||n==="_"||!yte.test(n)||r.position.end.offset-r.position.start.offset===n.length)return r;let i=e.originalText.slice(r.position.start.offset,r.position.end.offset);return Dte.test(i)?r:{...r,value:i}})}function Cte(t,e,r){return to(t,n=>{if(!n.children)return n;let i=[],s,a;for(let o of n.children)s&&e(s,o)?(o=r(s,o),i.splice(-1,1,o),a||(a=!0)):i.push(o),s=o;return a?{...n,children:i}:n})}function Ate(t){return Cte(t,(e,r)=>e.type==="text"&&r.type==="text",(e,r)=>({type:"text",value:e.value+r.value,position:{start:e.position.start,end:r.position.end}}))}function bte(t){return to(t,(e,r,[n])=>{if(e.type!=="text")return e;let{value:i}=e;return n.type==="paragraph"&&(r===0&&(i=iT.trimStart(i)),r===n.children.length-1&&(i=iT.trimEnd(i))),{type:"sentence",position:e.position,children:XF(i)}})}function vte(t,e){return to(t,(r,n,i)=>{if(r.type==="code"){let s=/^\n?(?: {4,}|\t)/u.test(e.originalText.slice(r.position.start.offset,r.position.end.offset));if(r.isIndented=s,s)for(let a=0;a<i.length;a++){let o=i[a];if(o.hasIndentedCodeblock)break;o.type==="list"&&(o.hasIndentedCodeblock=!0)}}return r})}function Fte(t,e){return to(t,(i,s,a)=>{if(i.type==="list"&&i.children.length>0){for(let o=0;o<a.length;o++){let u=a[o];if(u.type==="list"&&!u.isAligned)return i.isAligned=!1,i}i.isAligned=n(i)}return i});function r(i){return i.children.length===0?-1:i.children[0].position.start.column-1}function n(i){if(!i.ordered)return!0;let[s,a]=i.children;if(Yu(s,e).leadingSpaces.length>1)return!0;let o=r(s);if(o===-1)return!1;if(i.children.length===1)return o%e.tabWidth===0;let u=r(a);return o!==u?!1:o%e.tabWidth===0?!0:Yu(a,e).leadingSpaces.length>1}}var Tte=Ete;function wte(t,e){let r=[""];return t.each(()=>{let{node:n}=t,i=e();switch(n.type){case"whitespace":if(Qi(i)!==Os){r.push(i,"");break}default:r.push([r.pop(),i])}},"children"),Cy(r)}var Ste=new Set(["heading","tableCell","link","wikiLink"]),sT=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function kte({parent:t}){if(t.usesCJSpaces===void 0){let e={" ":0,"":0},{children:r}=t;for(let n=1;n<r.length-1;++n){let i=r[n];if(i.type==="whitespace"&&(i.value===" "||i.value==="")){let s=r[n-1].kind,a=r[n+1].kind;(s===fi&&a===Ku||s===Ku&&a===fi)&&++e[i.value]}}t.usesCJSpaces=e[" "]>e[""]}return t.usesCJSpaces}function Pte(t,e){if(e)return!0;let{previous:r,next:n}=t;if(!r||!n)return!0;let i=r.kind,s=n.kind;return aT(i)&&aT(s)||i===eo&&s===fi||s===eo&&i===fi?!0:i===yp||s===yp||i===fi&&s===fi?!1:sT.has(n.value[0])||sT.has(tn(0,r.value,-1))?!0:r.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:kte(t)}function aT(t){return t===Ku||t===eo}function _te(t,e,r,n){if(r!=="always"||t.hasAncestor(a=>Ste.has(a.type)))return!1;if(n)return e!=="";let{previous:i,next:s}=t;return!i||!s?!0:e===""?!1:i.kind===eo&&s.kind===fi||s.kind===eo&&i.kind===fi?!0:!(i.isCJ||s.isCJ)}function oT(t,e,r,n){if(r==="preserve"&&e===`
|
|
262
|
+
`)return Wt;let i=e===" "||e===`
|
|
263
|
+
`&&Pte(t,n);return _te(t,e,r,n)?i?IF:OF:i?" ":""}function uT(t){let{previous:e,next:r}=t;return e?.type==="sentence"&&tn(0,e.children,-1)?.type==="word"&&!tn(0,e.children,-1).hasTrailingPunctuation||r?.type==="sentence"&&r.children[0]?.type==="word"&&!r.children[0].hasLeadingPunctuation}function Bte(t,e,r){let{node:n}=t;if($te(t)){let i=[""],s=XF(e.originalText.slice(n.position.start.offset,n.position.end.offset));for(let a of s){if(a.type==="word"){i.push([i.pop(),a.value]);continue}let o=oT(t,a.value,e.proseWrap,!0);if(Qi(o)===Os){i.push([i.pop(),o]);continue}i.push(o,"")}return Cy(i)}switch(n.type){case"root":return n.children.length===0?"":[Nte(t,e,r),Wt];case"paragraph":return pte(t,e,r);case"sentence":return wte(t,r);case"word":return cte(t);case"whitespace":{let{next:i}=t,s=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":e.proseWrap;return oT(t,n.value,s)}case"emphasis":{let i;if(ZF(n.children[0]))i=e.originalText[n.position.start.offset];else{let s=uT(t),a=t.callParent(({node:o})=>o.type==="strong"&&uT(t));i=s||a||t.hasAncestor(o=>o.type==="emphasis")?"*":"_"}return[i,_r(t,e,r),i]}case"strong":return["**",_r(t,e,r),"**"];case"delete":return["~~",_r(t,e,r),"~~"];case"inlineCode":{let i=e.proseWrap==="preserve"?n.value:Zt(0,n.value,`
|
|
264
|
+
`," "),s=pee(i,"`"),a="`".repeat(s),o=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[a,o,i,o,a]}case"wikiLink":{let i="";return e.proseWrap==="preserve"?i=n.value:i=Zt(0,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(e.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&e.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",_r(t,e,r),"](",wy(n.url,")"),Dp(n.title,e),")"];default:return e.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return[""),Dp(n.title,e),")"];case"blockquote":return["> ",Ms("> ",_r(t,e,r))];case"heading":return["#".repeat(n.depth)+" ",_r(t,e,r)];case"code":{if(n.isIndented){let a=" ".repeat(4);return Ms(a,[a,Za(n.value,Wt)])}let i=e.__inJsTemplate?"~":"`",s=i.repeat(Math.max(3,jF(n.value,i)+1));return[s,n.lang||"",n.meta?" "+n.meta:"",Wt,Za(QF(n,e.originalText),Wt),Wt,s]}case"html":{let{parent:i,isLast:s}=t,a=i.type==="root"&&s?n.value.trimEnd():n.value,o=/^<!--.*-->$/su.test(a);return Za(a,o?Wt:xy(by))}case"list":return ate(t,e,r);case"thematicBreak":{let{ancestors:i}=t,s=i.findIndex(a=>a.type==="list");return s===-1?"---":eT(i[s],i[s+1])%2===0?"***":"---"}case"linkReference":return["[",_r(t,e,r),"]",n.referenceType==="full"?Sy(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",Sy(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=e.proseWrap==="always"?IF:" ";return hp([Sy(n),":",Ey([i,wy(n.url),n.title===null?"":[i,Dp(n.title,e,!1)]])])}case"footnote":return["[^",_r(t,e,r),"]"];case"footnoteReference":return cT(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(e.proseWrap==="never"||e.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[cT(n),": ",i?_r(t,e,r):hp([Ms(" ".repeat(4),_r(t,e,r,{processor:({isFirst:s})=>s?hp([OF,r()]):r()}))])]}case"table":return lte(t,e,r);case"tableCell":return _r(t,e,r);case"break":return/\s/u.test(e.originalText[n.position.start.offset])?[" ",xy(by)]:["\\",Wt];case"liquidNode":return Za(n.value,Wt);case"import":case"export":case"jsx":return n.value.trimEnd();case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",Wt,n.value?[Za(n.value,Wt),Wt]:"","$$"];case"inlineMath":return e.originalText.slice(mp(n),gp(n));case"frontMatter":case"tableRow":case"listItem":case"text":default:throw new yee(n,"Markdown")}}function Nte(t,e,r){let n=[],i=null,{children:s}=t.node;for(let[a,o]of s.entries())switch(Ty(o)){case"start":i===null&&(i={index:a,offset:o.position.end.offset});break;case"end":i!==null&&(n.push({start:i,end:{index:a,offset:o.position.start.offset}}),i=null);break}return _r(t,e,r,{processor({index:a}){if(n.length>0){let o=n[0];if(a===o.start.index)return[lT(s[o.start.index]),e.originalText.slice(o.start.offset,o.end.offset),lT(s[o.end.index])];if(o.start.index<a&&a<o.end.index)return!1;if(a===o.end.index)return n.shift(),!1}return r()}})}function lT(t){if(t.type==="html")return t.value;if(t.type==="paragraph"&&Array.isArray(t.children)&&t.children.length===1&&t.children[0].type==="esComment")return["{/* ",t.children[0].value," */}"]}function $te(t){let e=t.findAncestor(r=>r.type==="linkReference"||r.type==="imageReference");return e&&(e.type!=="linkReference"||e.referenceType!=="full")}var Ite=(t,e)=>{for(let r of e)t=Zt(0,t,r,encodeURIComponent(r));return t};function wy(t,e=[]){let r=[" ",...Array.isArray(e)?e:[e]];return new RegExp(r.map(n=>up(n)).join("|"),"u").test(t)?`<${Ite(t,"<>")}>`:t}function Dp(t,e,r=!0){if(!t)return"";if(r)return" "+Dp(t,e,!1);if(t=Zt(0,t,/\\(?=["')])/gu,""),t.includes('"')&&t.includes("'")&&!t.includes(")"))return`(${t})`;let n=mee(t,e.singleQuote);return t=Zt(0,t,"\\","\\\\"),t=Zt(0,t,n,`\\${n}`),`${n}${t}${n}`}function Ote(t){return t.index>0&&Ty(t.previous)==="next"}function Sy(t){return`[${(0,kZ.default)(t.label)}]`}function cT(t){return`[^${t.label}]`}var Lte={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:Tte,print:Bte,embed:Kee,massageAstNode:zee,hasPrettierIgnore:Ote,insertPragma:qee,getVisitorKeys:rte},Mte=Lte,Rte=[{name:"Markdown",type:"prose",aceMode:"markdown",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",aceMode:"markdown",extensions:[".mdx"],filenames:[],tmScope:"text.md",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],pT={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]}},jte={proseWrap:pT.proseWrap,singleQuote:pT.singleQuote},qte=jte,hT={};xF(hT,{markdown:()=>ET,mdx:()=>ore,remark:()=>ET});var Ute=Wa(rQ()),zte=Wa(sQ()),Vte=Wa(pZ()),Hte=Wa(vZ()),Wte=/^import\s/u,Gte=/^export\s/u,Jte="[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",Kte=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,Yte=/^\{\s*\/\*(.*)\*\/\s*\}/u,Xte=t=>Wte.test(t),fT=t=>Gte.test(t),dT=t=>Xte(t)||fT(t),ky=(t,e)=>{let r=e.indexOf(`
|
|
265
|
+
|
|
266
|
+
`),n=r===-1?e:e.slice(0,r);if(dT(n))return t(n)({type:fT(n)?"export":"import",value:n})};ky.notInBlock=!0,ky.locator=t=>dT(t)?-1:1;var mT=(t,e)=>{let r=Yte.exec(e);if(r)return t(r[0])({type:"esComment",value:r[1].trim()})};mT.locator=(t,e)=>t.indexOf("{",e);var Qte=function(){let{Parser:t}=this,{blockTokenizers:e,blockMethods:r,inlineTokenizers:n,inlineMethods:i}=t.prototype;e.esSyntax=ky,n.esComment=mT,r.splice(r.indexOf("paragraph"),0,"esSyntax"),i.splice(i.indexOf("text"),0,"esComment")},Zte=function(){let t=this.Parser.prototype;t.blockMethods=["frontMatter",...t.blockMethods],t.blockTokenizers.frontMatter=e;function e(r,n){let{frontMatter:i}=dp(n);if(i)return r(i.raw)({...i,type:"frontMatter"})}e.onlyAtStart=!0},ere=Zte;function tre(){return t=>to(t,(e,r,[n])=>e.type!=="html"||Kte.test(e.value)||YF.has(n.type)?e:{...e,type:"jsx"})}var rre=tre,nre=function(){let t=this.Parser.prototype,e=t.inlineMethods;e.splice(e.indexOf("text"),0,"liquid"),t.inlineTokenizers.liquid=r;function r(n,i){let s=i.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(s)return n(s[0])({type:"liquidNode",value:s[0]})}r.locator=function(n,i){return n.indexOf("{",i)}},ire=nre,sre=function(){let t="wikiLink",e=/^\[\[(?<linkContents>.+?)\]\]/su,r=this.Parser.prototype,n=r.inlineMethods;n.splice(n.indexOf("link"),0,t),r.inlineTokenizers.wikiLink=i;function i(s,a){let o=e.exec(a);if(o){let u=o.groups.linkContents.trim();return s(o[0])({type:t,value:u})}}i.locator=function(s,a){return s.indexOf("[",a)}},are=sre;function gT({isMDX:t}){return e=>{let r=(0,Hte.default)().use(Vte.default,{commonmark:!0,...t&&{blocks:[Jte]}}).use(Ute.default).use(ere).use(zte.default).use(t?Qte:yT).use(ire).use(t?rre:yT).use(are);return r.run(r.parse(e))}}function yT(){}var DT={astFormat:"mdast",hasPragma:GF,hasIgnorePragma:jee,locStart:mp,locEnd:gp},ET={...DT,parse:gT({isMDX:!1})},ore={...DT,parse:gT({isMDX:!0})},ure={mdast:Mte};const{entries:xT,setPrototypeOf:CT,isFrozen:lre,getPrototypeOf:cre,getOwnPropertyDescriptor:pre}=Object;let{freeze:ur,seal:rn,create:Py}=Object,{apply:_y,construct:By}=typeof Reflect<"u"&&Reflect;ur||(ur=function(e){return e}),rn||(rn=function(e){return e}),_y||(_y=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return e.apply(r,i)}),By||(By=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new e(...n)});const Ep=cr(Array.prototype.forEach),hre=cr(Array.prototype.lastIndexOf),AT=cr(Array.prototype.pop),Zu=cr(Array.prototype.push),fre=cr(Array.prototype.splice),xp=cr(String.prototype.toLowerCase),Ny=cr(String.prototype.toString),$y=cr(String.prototype.match),el=cr(String.prototype.replace),dre=cr(String.prototype.indexOf),mre=cr(String.prototype.trim),gn=cr(Object.prototype.hasOwnProperty),lr=cr(RegExp.prototype.test),tl=gre(TypeError);function cr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return _y(t,e,n)}}function gre(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return By(t,r)}}function He(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xp;CT&&CT(t,null);let n=e.length;for(;n--;){let i=e[n];if(typeof i=="string"){const s=r(i);s!==i&&(lre(e)||(e[n]=s),i=s)}t[i]=!0}return t}function yre(t){for(let e=0;e<t.length;e++)gn(t,e)||(t[e]=null);return t}function di(t){const e=Py(null);for(const[r,n]of xT(t))gn(t,r)&&(Array.isArray(n)?e[r]=yre(n):n&&typeof n=="object"&&n.constructor===Object?e[r]=di(n):e[r]=n);return e}function rl(t,e){for(;t!==null;){const n=pre(t,e);if(n){if(n.get)return cr(n.get);if(typeof n.value=="function")return cr(n.value)}t=cre(t)}function r(){return null}return r}const bT=ur(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Iy=ur(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Oy=ur(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Dre=ur(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ly=ur(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ere=ur(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vT=ur(["#text"]),FT=ur(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),My=ur(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),TT=ur(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Cp=ur(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xre=rn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Cre=rn(/<%[\w\W]*|[\w\W]*%>/gm),Are=rn(/\$\{[\w\W]*/gm),bre=rn(/^data-[\-\w.\u00B7-\uFFFF]+$/),vre=rn(/^aria-[\-\w]+$/),wT=rn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fre=rn(/^(?:\w+script|data):/i),Tre=rn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ST=rn(/^html$/i),wre=rn(/^[a-z][.\w]*(-[.\w]+)+$/i);var kT=Object.freeze({__proto__:null,ARIA_ATTR:vre,ATTR_WHITESPACE:Tre,CUSTOM_ELEMENT:wre,DATA_ATTR:bre,DOCTYPE_NAME:ST,ERB_EXPR:Cre,IS_ALLOWED_URI:wT,IS_SCRIPT_OR_DATA:Fre,MUSTACHE_EXPR:xre,TMPLIT_EXPR:Are});const nl={element:1,text:3,progressingInstruction:7,comment:8,document:9},Sre=function(){return typeof window>"u"?null:window},kre=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},PT=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _T(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sre();const e=Te=>_T(Te);if(e.version="3.3.0",e.removed=[],!t||!t.document||t.document.nodeType!==nl.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,i=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:o,Element:u,NodeFilter:l,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,m=u.prototype,g=rl(m,"cloneNode"),y=rl(m,"remove"),D=rl(m,"nextSibling"),d=rl(m,"childNodes"),x=rl(m,"parentNode");if(typeof a=="function"){const Te=r.createElement("template");Te.content&&Te.content.ownerDocument&&(r=Te.content.ownerDocument)}let A,E="";const{implementation:C,createNodeIterator:b,createDocumentFragment:w,getElementsByTagName:P}=r,{importNode:F}=n;let S=PT();e.isSupported=typeof xT=="function"&&typeof x=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:I,ERB_EXPR:B,TMPLIT_EXPR:O,DATA_ATTR:_,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:ee}=kT;let{IS_ALLOWED_URI:T}=kT,L=null;const H=He({},[...bT,...Iy,...Oy,...Ly,...vT]);let v=null;const k=He({},[...FT,...My,...TT,...Cp]);let N=Object.seal(Py(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,z=null;const R=Object.seal(Py(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let G=!0,te=!0,M=!1,J=!0,X=!1,ne=!0,le=!1,Ee=!1,ke=!1,ge=!1,xe=!1,Ne=!1,Ge=!0,rt=!1;const Xe="user-content-";let it=!0,yt=!1,Z={},ie=null;const ve=He({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ae=null;const we=He({},["audio","video","img","source","image","track"]);let ft=null;const mr=He({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",Ut="http://www.w3.org/2000/svg",Ft="http://www.w3.org/1999/xhtml";let st=Ft,kt=!1,er=null;const Ks=He({},[qt,Ut,Ft],Ny);let Ci=He({},["mi","mo","mn","ms","mtext"]),gr=He({},["annotation-xml"]);const Pt=He({},["title","style","font","a","script"]);let xn=null;const SD=["application/xhtml+xml","text/html"],Jh="text/html";let Tt=null,Ai=null;const dl=r.createElement("form"),xk=function(K){return K instanceof RegExp||K instanceof Function},kD=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ai&&Ai===K)){if((!K||typeof K!="object")&&(K={}),K=di(K),xn=SD.indexOf(K.PARSER_MEDIA_TYPE)===-1?Jh:K.PARSER_MEDIA_TYPE,Tt=xn==="application/xhtml+xml"?Ny:xp,L=gn(K,"ALLOWED_TAGS")?He({},K.ALLOWED_TAGS,Tt):H,v=gn(K,"ALLOWED_ATTR")?He({},K.ALLOWED_ATTR,Tt):k,er=gn(K,"ALLOWED_NAMESPACES")?He({},K.ALLOWED_NAMESPACES,Ny):Ks,ft=gn(K,"ADD_URI_SAFE_ATTR")?He(di(mr),K.ADD_URI_SAFE_ATTR,Tt):mr,Ae=gn(K,"ADD_DATA_URI_TAGS")?He(di(we),K.ADD_DATA_URI_TAGS,Tt):we,ie=gn(K,"FORBID_CONTENTS")?He({},K.FORBID_CONTENTS,Tt):ve,j=gn(K,"FORBID_TAGS")?He({},K.FORBID_TAGS,Tt):di({}),z=gn(K,"FORBID_ATTR")?He({},K.FORBID_ATTR,Tt):di({}),Z=gn(K,"USE_PROFILES")?K.USE_PROFILES:!1,G=K.ALLOW_ARIA_ATTR!==!1,te=K.ALLOW_DATA_ATTR!==!1,M=K.ALLOW_UNKNOWN_PROTOCOLS||!1,J=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,X=K.SAFE_FOR_TEMPLATES||!1,ne=K.SAFE_FOR_XML!==!1,le=K.WHOLE_DOCUMENT||!1,ge=K.RETURN_DOM||!1,xe=K.RETURN_DOM_FRAGMENT||!1,Ne=K.RETURN_TRUSTED_TYPE||!1,ke=K.FORCE_BODY||!1,Ge=K.SANITIZE_DOM!==!1,rt=K.SANITIZE_NAMED_PROPS||!1,it=K.KEEP_CONTENT!==!1,yt=K.IN_PLACE||!1,T=K.ALLOWED_URI_REGEXP||wT,st=K.NAMESPACE||Ft,Ci=K.MATHML_TEXT_INTEGRATION_POINTS||Ci,gr=K.HTML_INTEGRATION_POINTS||gr,N=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&xk(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(N.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&xk(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(N.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(N.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(te=!1),xe&&(ge=!0),Z&&(L=He({},vT),v=[],Z.html===!0&&(He(L,bT),He(v,FT)),Z.svg===!0&&(He(L,Iy),He(v,My),He(v,Cp)),Z.svgFilters===!0&&(He(L,Oy),He(v,My),He(v,Cp)),Z.mathMl===!0&&(He(L,Ly),He(v,TT),He(v,Cp))),K.ADD_TAGS&&(typeof K.ADD_TAGS=="function"?R.tagCheck=K.ADD_TAGS:(L===H&&(L=di(L)),He(L,K.ADD_TAGS,Tt))),K.ADD_ATTR&&(typeof K.ADD_ATTR=="function"?R.attributeCheck=K.ADD_ATTR:(v===k&&(v=di(v)),He(v,K.ADD_ATTR,Tt))),K.ADD_URI_SAFE_ATTR&&He(ft,K.ADD_URI_SAFE_ATTR,Tt),K.FORBID_CONTENTS&&(ie===ve&&(ie=di(ie)),He(ie,K.FORBID_CONTENTS,Tt)),it&&(L["#text"]=!0),le&&He(L,["html","head","body"]),L.table&&(He(L,["tbody"]),delete j.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw tl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=K.TRUSTED_TYPES_POLICY,E=A.createHTML("")}else A===void 0&&(A=kre(h,i)),A!==null&&typeof E=="string"&&(E=A.createHTML(""));ur&&ur(K),Ai=K}},Ck=He({},[...Iy,...Oy,...Dre]),Ak=He({},[...Ly,...Ere]),Que=function(K){let pe=x(K);(!pe||!pe.tagName)&&(pe={namespaceURI:st,tagName:"template"});const Ce=xp(K.tagName),xt=xp(pe.tagName);return er[K.namespaceURI]?K.namespaceURI===Ut?pe.namespaceURI===Ft?Ce==="svg":pe.namespaceURI===qt?Ce==="svg"&&(xt==="annotation-xml"||Ci[xt]):!!Ck[Ce]:K.namespaceURI===qt?pe.namespaceURI===Ft?Ce==="math":pe.namespaceURI===Ut?Ce==="math"&&gr[xt]:!!Ak[Ce]:K.namespaceURI===Ft?pe.namespaceURI===Ut&&!gr[xt]||pe.namespaceURI===qt&&!Ci[xt]?!1:!Ak[Ce]&&(Pt[Ce]||!Ck[Ce]):!!(xn==="application/xhtml+xml"&&er[K.namespaceURI]):!1},zn=function(K){Zu(e.removed,{element:K});try{x(K).removeChild(K)}catch{y(K)}},Ys=function(K,pe){try{Zu(e.removed,{attribute:pe.getAttributeNode(K),from:pe})}catch{Zu(e.removed,{attribute:null,from:pe})}if(pe.removeAttribute(K),K==="is")if(ge||xe)try{zn(pe)}catch{}else try{pe.setAttribute(K,"")}catch{}},bk=function(K){let pe=null,Ce=null;if(ke)K="<remove></remove>"+K;else{const _t=$y(K,/^[\r\n\t ]+/);Ce=_t&&_t[0]}xn==="application/xhtml+xml"&&st===Ft&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");const xt=A?A.createHTML(K):K;if(st===Ft)try{pe=new f().parseFromString(xt,xn)}catch{}if(!pe||!pe.documentElement){pe=C.createDocument(st,"template",null);try{pe.documentElement.innerHTML=kt?E:xt}catch{}}const tr=pe.body||pe.documentElement;return K&&Ce&&tr.insertBefore(r.createTextNode(Ce),tr.childNodes[0]||null),st===Ft?P.call(pe,le?"html":"body")[0]:le?pe.documentElement:tr},vk=function(K){return b.call(K.ownerDocument||K,K,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},PD=function(K){return K instanceof p&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof c)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},Fk=function(K){return typeof o=="function"&&K instanceof o};function bi(Te,K,pe){Ep(Te,Ce=>{Ce.call(e,K,pe,Ai)})}const Tk=function(K){let pe=null;if(bi(S.beforeSanitizeElements,K,null),PD(K))return zn(K),!0;const Ce=Tt(K.nodeName);if(bi(S.uponSanitizeElement,K,{tagName:Ce,allowedTags:L}),ne&&K.hasChildNodes()&&!Fk(K.firstElementChild)&&lr(/<[/\w!]/g,K.innerHTML)&&lr(/<[/\w!]/g,K.textContent)||K.nodeType===nl.progressingInstruction||ne&&K.nodeType===nl.comment&&lr(/<[/\w]/g,K.data))return zn(K),!0;if(!(R.tagCheck instanceof Function&&R.tagCheck(Ce))&&(!L[Ce]||j[Ce])){if(!j[Ce]&&Sk(Ce)&&(N.tagNameCheck instanceof RegExp&&lr(N.tagNameCheck,Ce)||N.tagNameCheck instanceof Function&&N.tagNameCheck(Ce)))return!1;if(it&&!ie[Ce]){const xt=x(K)||K.parentNode,tr=d(K)||K.childNodes;if(tr&&xt){const _t=tr.length;for(let Br=_t-1;Br>=0;--Br){const vi=g(tr[Br],!0);vi.__removalCount=(K.__removalCount||0)+1,xt.insertBefore(vi,D(K))}}}return zn(K),!0}return K instanceof u&&!Que(K)||(Ce==="noscript"||Ce==="noembed"||Ce==="noframes")&&lr(/<\/no(script|embed|frames)/i,K.innerHTML)?(zn(K),!0):(X&&K.nodeType===nl.text&&(pe=K.textContent,Ep([I,B,O],xt=>{pe=el(pe,xt," ")}),K.textContent!==pe&&(Zu(e.removed,{element:K.cloneNode()}),K.textContent=pe)),bi(S.afterSanitizeElements,K,null),!1)},wk=function(K,pe,Ce){if(Ge&&(pe==="id"||pe==="name")&&(Ce in r||Ce in dl))return!1;if(!(te&&!z[pe]&&lr(_,pe))){if(!(G&&lr($,pe))){if(!(R.attributeCheck instanceof Function&&R.attributeCheck(pe,K))){if(!v[pe]||z[pe]){if(!(Sk(K)&&(N.tagNameCheck instanceof RegExp&&lr(N.tagNameCheck,K)||N.tagNameCheck instanceof Function&&N.tagNameCheck(K))&&(N.attributeNameCheck instanceof RegExp&&lr(N.attributeNameCheck,pe)||N.attributeNameCheck instanceof Function&&N.attributeNameCheck(pe,K))||pe==="is"&&N.allowCustomizedBuiltInElements&&(N.tagNameCheck instanceof RegExp&&lr(N.tagNameCheck,Ce)||N.tagNameCheck instanceof Function&&N.tagNameCheck(Ce))))return!1}else if(!ft[pe]){if(!lr(T,el(Ce,V,""))){if(!((pe==="src"||pe==="xlink:href"||pe==="href")&&K!=="script"&&dre(Ce,"data:")===0&&Ae[K])){if(!(M&&!lr(Y,el(Ce,V,"")))){if(Ce)return!1}}}}}}}return!0},Sk=function(K){return K!=="annotation-xml"&&$y(K,ee)},kk=function(K){bi(S.beforeSanitizeAttributes,K,null);const{attributes:pe}=K;if(!pe||PD(K))return;const Ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v,forceKeepAttr:void 0};let xt=pe.length;for(;xt--;){const tr=pe[xt],{name:_t,namespaceURI:Br,value:vi}=tr,fo=Tt(_t),_D=vi;let Jt=_t==="value"?_D:mre(_D);if(Ce.attrName=fo,Ce.attrValue=Jt,Ce.keepAttr=!0,Ce.forceKeepAttr=void 0,bi(S.uponSanitizeAttribute,K,Ce),Jt=Ce.attrValue,rt&&(fo==="id"||fo==="name")&&(Ys(_t,K),Jt=Xe+Jt),ne&&lr(/((--!?|])>)|<\/(style|title|textarea)/i,Jt)){Ys(_t,K);continue}if(fo==="attributename"&&$y(Jt,"href")){Ys(_t,K);continue}if(Ce.forceKeepAttr)continue;if(!Ce.keepAttr){Ys(_t,K);continue}if(!J&&lr(/\/>/i,Jt)){Ys(_t,K);continue}X&&Ep([I,B,O],_k=>{Jt=el(Jt,_k," ")});const Pk=Tt(K.nodeName);if(!wk(Pk,fo,Jt)){Ys(_t,K);continue}if(A&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Br)switch(h.getAttributeType(Pk,fo)){case"TrustedHTML":{Jt=A.createHTML(Jt);break}case"TrustedScriptURL":{Jt=A.createScriptURL(Jt);break}}if(Jt!==_D)try{Br?K.setAttributeNS(Br,_t,Jt):K.setAttribute(_t,Jt),PD(K)?zn(K):AT(e.removed)}catch{Ys(_t,K)}}bi(S.afterSanitizeAttributes,K,null)},Zue=function Te(K){let pe=null;const Ce=vk(K);for(bi(S.beforeSanitizeShadowDOM,K,null);pe=Ce.nextNode();)bi(S.uponSanitizeShadowNode,pe,null),Tk(pe),kk(pe),pe.content instanceof s&&Te(pe.content);bi(S.afterSanitizeShadowDOM,K,null)};return e.sanitize=function(Te){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=null,Ce=null,xt=null,tr=null;if(kt=!Te,kt&&(Te="<!-->"),typeof Te!="string"&&!Fk(Te))if(typeof Te.toString=="function"){if(Te=Te.toString(),typeof Te!="string")throw tl("dirty is not a string, aborting")}else throw tl("toString is not a function");if(!e.isSupported)return Te;if(Ee||kD(K),e.removed=[],typeof Te=="string"&&(yt=!1),yt){if(Te.nodeName){const vi=Tt(Te.nodeName);if(!L[vi]||j[vi])throw tl("root node is forbidden and cannot be sanitized in-place")}}else if(Te instanceof o)pe=bk("<!---->"),Ce=pe.ownerDocument.importNode(Te,!0),Ce.nodeType===nl.element&&Ce.nodeName==="BODY"||Ce.nodeName==="HTML"?pe=Ce:pe.appendChild(Ce);else{if(!ge&&!X&&!le&&Te.indexOf("<")===-1)return A&&Ne?A.createHTML(Te):Te;if(pe=bk(Te),!pe)return ge?null:Ne?E:""}pe&&ke&&zn(pe.firstChild);const _t=vk(yt?Te:pe);for(;xt=_t.nextNode();)Tk(xt),kk(xt),xt.content instanceof s&&Zue(xt.content);if(yt)return Te;if(ge){if(xe)for(tr=w.call(pe.ownerDocument);pe.firstChild;)tr.appendChild(pe.firstChild);else tr=pe;return(v.shadowroot||v.shadowrootmode)&&(tr=F.call(n,tr,!0)),tr}let Br=le?pe.outerHTML:pe.innerHTML;return le&&L["!doctype"]&&pe.ownerDocument&&pe.ownerDocument.doctype&&pe.ownerDocument.doctype.name&&lr(ST,pe.ownerDocument.doctype.name)&&(Br="<!DOCTYPE "+pe.ownerDocument.doctype.name+`>
|
|
267
|
+
`+Br),X&&Ep([I,B,O],vi=>{Br=el(Br,vi," ")}),A&&Ne?A.createHTML(Br):Br},e.setConfig=function(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kD(Te),Ee=!0},e.clearConfig=function(){Ai=null,Ee=!1},e.isValidAttribute=function(Te,K,pe){Ai||kD({});const Ce=Tt(Te),xt=Tt(K);return wk(Ce,xt,pe)},e.addHook=function(Te,K){typeof K=="function"&&Zu(S[Te],K)},e.removeHook=function(Te,K){if(K!==void 0){const pe=hre(S[Te],K);return pe===-1?void 0:fre(S[Te],pe,1)[0]}return AT(S[Te])},e.removeHooks=function(Te){S[Te]=[]},e.removeAllHooks=function(){S=PT()},e}var Pre=_T();const BT=new Map([["javascript",{parser:"babel",plugins:[Po,jo]}],["js",{parser:"babel",plugins:[Po,jo]}],["typescript",{parser:"babel-ts",plugins:[Po,jo]}],["ts",{parser:"babel-ts",plugins:[Po,jo]}],["html",{parser:"html",plugins:[zA]}],["css",{parser:"css",plugins:[Wg]}],["scss",{parser:"css",plugins:[Wg]}],["markdown",{parser:"markdown",plugins:[PF]}]]);function _re(){return async t=>{const e=[];Tl(t,"code",r=>{const n=r.lang;if(!n)return;const i=BT.get(n);if(!i)return;const{parser:s,plugins:a}=i;e.push(Gl(r.value,{parser:s,plugins:a}).then(o=>{r.value=o}).catch(o=>{console.warn(`${n} 格式化失败:`,o)}))}),Tl(t,"inlineCode",(r,n,i)=>{if(n===void 0||!i)return;const s=/<br\s*\/?>/i;if(!s.test(r.value))return;const a=r.value.split(s),o=a.shift();if(!o)return;const u=BT.get(o);if(!u)return;const{parser:l,plugins:c}=u,p=a.join(`
|
|
268
|
+
`);e.push(Gl(p,{parser:l,plugins:c}).then(f=>{i.children[n]={type:"code",lang:o,value:f}}).catch(f=>{console.warn(`${o} 格式化失败:`,f)}))}),await Promise.all(e)}}async function NT(t){const e=await n3().use(ZP).use(yN).use(_re).use(i$,{allowDangerousHtml:!0}).use(xI,{allowDangerousHtml:!0}).process(t),r=String(e);return Pre.sanitize(r)}let Rs=null;const Bre={userInputContainer:"user-input-container",userInput:"user-input",submitIcon:"submit-icon",stopIcon:"stop-icon",messagesContainer:"messages-container",createButton:"create-button"};function Nre(t){if(Rs)return Rs;Rs={},Rs.root=t;for(const[e,r]of Object.entries(Bre)){const n=t.getElementById(r);n||console.warn(`Element with id '${r}' not found`),Rs[e]=n}return Rs}function pr(){return Rs}class $re{#e={copyButton:null,initCopyButton(){if(!this.copyButton){const e=document.createElement("template");e.innerHTML=`
|
|
269
|
+
<div class="button-container">
|
|
270
|
+
<button class="icon square plain tooltip" type="button" data-action="copy" aria-label="复制">
|
|
271
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 1024 1024"><path d="M298.667 256V128a42.667 42.667 0 0 1 42.666-42.667h512A42.667 42.667 0 0 1 896 128v597.333A42.667 42.667 0 0 1 853.333 768h-128v128c0 23.552-19.2 42.667-42.965 42.667H170.965A42.71 42.71 0 0 1 128 896l.128-597.333c0-23.552 19.2-42.667 42.923-42.667h127.616zm-85.248 85.333-.086 512H640v-512H213.419zM384 256h341.333v426.667h85.334v-512H384V256z"/></svg>
|
|
272
|
+
<span class="copied-text">Copied</span>
|
|
273
|
+
<span class="tooltip-text">复制</span>
|
|
274
|
+
</button>
|
|
275
|
+
</div>
|
|
276
|
+
`,this.copyButton=e}return this.copyButton},reasoningContainer:null,initReasoningContainer(){if(!this.reasoningContainer){const e=document.createElement("template");e.innerHTML=`
|
|
277
|
+
<div class="reasoning-container collapse">
|
|
278
|
+
<div class="reasoning-header">
|
|
279
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 1024 1024"><path d="M724.48 521.728c-1.8432 7.7824-5.7344 14.848-11.3664 20.48l-341.9136 342.016c-16.6912 16.6912-43.7248 16.6912-60.3136 0s-16.6912-43.7248 0-60.3136L622.6944 512 310.8864 200.0896c-16.6912-16.6912-16.6912-43.7248 0-60.3136 16.6912-16.6912 43.7248-16.6912 60.3136 0l341.9136 341.9136c10.8544 10.8544 14.6432 26.112 11.3664 40.0384z" fill="currentColor"/></svg>
|
|
280
|
+
思考过程
|
|
281
|
+
</div>
|
|
282
|
+
<div class="reasoning-content"></div>
|
|
283
|
+
</div>
|
|
284
|
+
`,this.reasoningContainer=e}return this.reasoningContainer}};#t=0;#n=null;#r=null;createCopyButton(e){const i=this.#e.initCopyButton().content.cloneNode(!0).firstElementChild;if(!i)return null;const s=i.querySelector(".tooltip-text");return s&&s.classList.add(e.role==="user"?"bottom-left":"bottom-right"),i}createMessage(e){const r=document.createElement("div"),n=document.createElement("div");n.className="body-container",r.appendChild(n);const i=document.createElement("div");i.className="content-container",n.appendChild(i);const s=this.createCopyButton(e);return s&&r.appendChild(s),r}updateMessageContent(e,r){const n=e.querySelector(".content-container");n&&requestAnimationFrame(async()=>{const i=await NT(r);n.innerHTML=i})}pushMessage=e=>{if(!e)return;const{messagesContainer:r}=pr(),{role:n,content:i}=e,s=this.createMessage(e);s.className=`message ${n}`,this.updateMessageContent(s,i),r.appendChild(s),n==="user"&&r.scrollTo({top:s.offsetTop-12,behavior:"smooth"})};pushMessages=e=>{if(e.length)for(const r of e)this.pushMessage(r)};pushLoadingMessage=()=>{const{messagesContainer:e}=pr();requestAnimationFrame(()=>{if(e.querySelector(".message.assistant.loading"))return;const r=this.createMessage({role:"assistant",content:""});r.className="message assistant loading";const n=r.querySelector(".body-container");if(!n)return;const i=document.createElement("p");i.className="loading-dots",n.appendChild(i),e.appendChild(r)})};finishLoadingMessage=()=>{const{messagesContainer:e}=pr();requestAnimationFrame(()=>{const r=e.querySelector(".message.assistant.loading");if(!r)return;r.classList.remove("loading"),r.querySelector(".loading-dots")?.remove()})};updateLoadingMessageContent=e=>{const{messagesContainer:r}=pr(),n=r.querySelector(".message.assistant.loading");n&&this.updateMessageContent(n,e)};updateLoadingMessageReasoningContent=e=>{const{messagesContainer:r}=pr(),n=r.querySelector(".message.assistant.loading");if(!n)return;if(!n.querySelector(".reasoning-container")){const o=this.#e.initReasoningContainer().content.cloneNode(!0).firstElementChild;if(!o)return;n.prepend(o)}const i=n.querySelector(".reasoning-content");i&&requestAnimationFrame(async()=>{const s=await NT(e);i.innerHTML=s})};clear(){const e=pr();e.messagesContainer.innerHTML=""}setPaddingBottom(){this.#r&&(this.#r.disconnect(),this.#r=null);const{root:e,messagesContainer:r}=pr(),n=e.querySelector(".app-container");if(!n)return;const i=12,s=142,a=12;this.#r=new ResizeObserver(o=>{for(const u of o){const{height:l}=u.contentRect;l!==this.#t&&(this.#t=l,this.#n!==null&&cancelAnimationFrame(this.#n),this.#n=requestAnimationFrame(()=>{r.style.paddingBottom=`${l-i-s-a*2}px`,this.#n=null}))}}),this.#r.observe(n)}}const js={get value(){return pr().userInput.value.trim()},set value(t){const e=pr();e.userInput.value=t},clear(){const t=pr();t.userInput.value=""},focus(){pr().userInput.focus()}},Ry={default(){const{submitIcon:t,stopIcon:e}=pr();t.style.display="flex",e.style.display="none"},chatting(){const{submitIcon:t,stopIcon:e}=pr();t.style.display="none",e.style.display="flex"}},Ire={show(t){const{root:e}=pr(),r=e.querySelector(".alert");r&&r.remove();const n=document.createElement("div");n.className="alert",n.textContent=t,e.appendChild(n),n.addEventListener("animationend",()=>{n.remove()})}},zr=new $re;var Ap={exports:{}},jy={},mi={},qs={},qy={},Uy={},zy={},$T;function bp(){return $T||($T=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends e{constructor(d){if(super(),!t.IDENTIFIER.test(d))throw new Error("CodeGen: name must be a valid identifier");this.str=d}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class n extends e{constructor(d){super(),this._items=typeof d=="string"?[d]:d}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const d=this._items[0];return d===""||d==='""'}get str(){var d;return(d=this._str)!==null&&d!==void 0?d:this._str=this._items.reduce((x,A)=>`${x}${A}`,"")}get names(){var d;return(d=this._names)!==null&&d!==void 0?d:this._names=this._items.reduce((x,A)=>(A instanceof r&&(x[A.str]=(x[A.str]||0)+1),x),{})}}t._Code=n,t.nil=new n("");function i(D,...d){const x=[D[0]];let A=0;for(;A<d.length;)o(x,d[A]),x.push(D[++A]);return new n(x)}t._=i;const s=new n("+");function a(D,...d){const x=[h(D[0])];let A=0;for(;A<d.length;)x.push(s),o(x,d[A]),x.push(s,h(D[++A]));return u(x),new n(x)}t.str=a;function o(D,d){d instanceof n?D.push(...d._items):d instanceof r?D.push(d):D.push(p(d))}t.addCodeArg=o;function u(D){let d=1;for(;d<D.length-1;){if(D[d]===s){const x=l(D[d-1],D[d+1]);if(x!==void 0){D.splice(d-1,3,x);continue}D[d++]="+"}d++}}function l(D,d){if(d==='""')return D;if(D==='""')return d;if(typeof D=="string")return d instanceof r||D[D.length-1]!=='"'?void 0:typeof d!="string"?`${D.slice(0,-1)}${d}"`:d[0]==='"'?D.slice(0,-1)+d.slice(1):void 0;if(typeof d=="string"&&d[0]==='"'&&!(D instanceof r))return`"${D}${d.slice(1)}`}function c(D,d){return d.emptyStr()?D:D.emptyStr()?d:a`${D}${d}`}t.strConcat=c;function p(D){return typeof D=="number"||typeof D=="boolean"||D===null?D:h(Array.isArray(D)?D.join(","):D)}function f(D){return new n(h(D))}t.stringify=f;function h(D){return JSON.stringify(D).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=h;function m(D){return typeof D=="string"&&t.IDENTIFIER.test(D)?new n(`.${D}`):i`[${D}]`}t.getProperty=m;function g(D){if(typeof D=="string"&&t.IDENTIFIER.test(D))return new n(`${D}`);throw new Error(`CodeGen: invalid export name: ${D}, use explicit $id name mapping`)}t.getEsmExportName=g;function y(D){return new n(D.toString())}t.regexpCode=y})(zy)),zy}var Vy={},IT;function OT(){return IT||(IT=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const e=bp();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(n||(t.UsedValueState=n={})),t.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class i{constructor({prefixes:l,parent:c}={}){this._names={},this._prefixes=l,this._parent=c}toName(l){return l instanceof e.Name?l:this.name(l)}name(l){return new e.Name(this._newName(l))}_newName(l){const c=this._names[l]||this._nameGroup(l);return`${l}${c.index++}`}_nameGroup(l){var c,p;if(!((p=(c=this._parent)===null||c===void 0?void 0:c._prefixes)===null||p===void 0)&&p.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}t.Scope=i;class s extends e.Name{constructor(l,c){super(c),this.prefix=l}setValue(l,{property:c,itemIndex:p}){this.value=l,this.scopePath=(0,e._)`.${new e.Name(c)}[${p}]`}}t.ValueScopeName=s;const a=(0,e._)`\n`;class o extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?a:e.nil}}get(){return this._scope}name(l){return new s(l,this._newName(l))}value(l,c){var p;if(c.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(l),{prefix:h}=f,m=(p=c.key)!==null&&p!==void 0?p:c.ref;let g=this._values[h];if(g){const d=g.get(m);if(d)return d}else g=this._values[h]=new Map;g.set(m,f);const y=this._scope[h]||(this._scope[h]=[]),D=y.length;return y[D]=c.ref,f.setValue(c,{property:h,itemIndex:D}),f}getValue(l,c){const p=this._values[l];if(p)return p.get(c)}scopeRefs(l,c=this._values){return this._reduceValues(c,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,e._)`${l}${p.scopePath}`})}scopeCode(l=this._values,c,p){return this._reduceValues(l,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},c,p)}_reduceValues(l,c,p={},f){let h=e.nil;for(const m in l){const g=l[m];if(!g)continue;const y=p[m]=p[m]||new Map;g.forEach(D=>{if(y.has(D))return;y.set(D,n.Started);let d=c(D);if(d){const x=this.opts.es5?t.varKinds.var:t.varKinds.const;h=(0,e._)`${h}${x} ${D} = ${d};${this.opts._n}`}else if(d=f?.(D))h=(0,e._)`${h}${d}${this.opts._n}`;else throw new r(D);y.set(D,n.Completed)})}return h}}t.ValueScope=o})(Vy)),Vy}var LT;function We(){return LT||(LT=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const e=bp(),r=OT();var n=bp();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}});var i=OT();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class s{optimizeNodes(){return this}optimizeNames(k,N){return this}}class a extends s{constructor(k,N,j){super(),this.varKind=k,this.name=N,this.rhs=j}render({es5:k,_n:N}){const j=k?r.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${j} ${this.name}${z};`+N}optimizeNames(k,N){if(k[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,k,N)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class o extends s{constructor(k,N,j){super(),this.lhs=k,this.rhs=N,this.sideEffects=j}render({_n:k}){return`${this.lhs} = ${this.rhs};`+k}optimizeNames(k,N){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,k,N),this}get names(){const k=this.lhs instanceof e.Name?{}:{...this.lhs.names};return B(k,this.rhs)}}class u extends o{constructor(k,N,j,z){super(k,j,z),this.op=N}render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k}}class l extends s{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`${this.label}:`+k}}class c extends s{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k}}class p extends s{constructor(k){super(),this.error=k}render({_n:k}){return`throw ${this.error};`+k}get names(){return this.error.names}}class f extends s{constructor(k){super(),this.code=k}render({_n:k}){return`${this.code};`+k}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(k,N){return this.code=O(this.code,k,N),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class h extends s{constructor(k=[]){super(),this.nodes=k}render(k){return this.nodes.reduce((N,j)=>N+j.render(k),"")}optimizeNodes(){const{nodes:k}=this;let N=k.length;for(;N--;){const j=k[N].optimizeNodes();Array.isArray(j)?k.splice(N,1,...j):j?k[N]=j:k.splice(N,1)}return k.length>0?this:void 0}optimizeNames(k,N){const{nodes:j}=this;let z=j.length;for(;z--;){const R=j[z];R.optimizeNames(k,N)||(_(k,R.names),j.splice(z,1))}return j.length>0?this:void 0}get names(){return this.nodes.reduce((k,N)=>I(k,N.names),{})}}class m extends h{render(k){return"{"+k._n+super.render(k)+"}"+k._n}}class g extends h{}class y extends m{}y.kind="else";class D extends m{constructor(k,N){super(N),this.condition=k}render(k){let N=`if(${this.condition})`+super.render(k);return this.else&&(N+="else "+this.else.render(k)),N}optimizeNodes(){super.optimizeNodes();const k=this.condition;if(k===!0)return this.nodes;let N=this.else;if(N){const j=N.optimizeNodes();N=this.else=Array.isArray(j)?new y(j):j}if(N)return k===!1?N instanceof D?N:N.nodes:this.nodes.length?this:new D($(k),N instanceof D?[N]:N.nodes);if(!(k===!1||!this.nodes.length))return this}optimizeNames(k,N){var j;if(this.else=(j=this.else)===null||j===void 0?void 0:j.optimizeNames(k,N),!!(super.optimizeNames(k,N)||this.else))return this.condition=O(this.condition,k,N),this}get names(){const k=super.names;return B(k,this.condition),this.else&&I(k,this.else.names),k}}D.kind="if";class d extends m{}d.kind="for";class x extends d{constructor(k){super(),this.iteration=k}render(k){return`for(${this.iteration})`+super.render(k)}optimizeNames(k,N){if(super.optimizeNames(k,N))return this.iteration=O(this.iteration,k,N),this}get names(){return I(super.names,this.iteration.names)}}class A extends d{constructor(k,N,j,z){super(),this.varKind=k,this.name=N,this.from=j,this.to=z}render(k){const N=k.es5?r.varKinds.var:this.varKind,{name:j,from:z,to:R}=this;return`for(${N} ${j}=${z}; ${j}<${R}; ${j}++)`+super.render(k)}get names(){const k=B(super.names,this.from);return B(k,this.to)}}class E extends d{constructor(k,N,j,z){super(),this.loop=k,this.varKind=N,this.name=j,this.iterable=z}render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(k)}optimizeNames(k,N){if(super.optimizeNames(k,N))return this.iterable=O(this.iterable,k,N),this}get names(){return I(super.names,this.iterable.names)}}class C extends m{constructor(k,N,j){super(),this.name=k,this.args=N,this.async=j}render(k){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(k)}}C.kind="func";class b extends h{render(k){return"return "+super.render(k)}}b.kind="return";class w extends m{render(k){let N="try"+super.render(k);return this.catch&&(N+=this.catch.render(k)),this.finally&&(N+=this.finally.render(k)),N}optimizeNodes(){var k,N;return super.optimizeNodes(),(k=this.catch)===null||k===void 0||k.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(k,N){var j,z;return super.optimizeNames(k,N),(j=this.catch)===null||j===void 0||j.optimizeNames(k,N),(z=this.finally)===null||z===void 0||z.optimizeNames(k,N),this}get names(){const k=super.names;return this.catch&&I(k,this.catch.names),this.finally&&I(k,this.finally.names),k}}class P extends m{constructor(k){super(),this.error=k}render(k){return`catch(${this.error})`+super.render(k)}}P.kind="catch";class F extends m{render(k){return"finally"+super.render(k)}}F.kind="finally";class S{constructor(k,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?`
|
|
285
|
+
`:""},this._extScope=k,this._scope=new r.Scope({parent:k}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(k){return this._scope.name(k)}scopeName(k){return this._extScope.name(k)}scopeValue(k,N){const j=this._extScope.value(k,N);return(this._values[j.prefix]||(this._values[j.prefix]=new Set)).add(j),j}getScopeValue(k,N){return this._extScope.getValue(k,N)}scopeRefs(k){return this._extScope.scopeRefs(k,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(k,N,j,z){const R=this._scope.toName(N);return j!==void 0&&z&&(this._constants[R.str]=j),this._leafNode(new a(k,R,j)),R}const(k,N,j){return this._def(r.varKinds.const,k,N,j)}let(k,N,j){return this._def(r.varKinds.let,k,N,j)}var(k,N,j){return this._def(r.varKinds.var,k,N,j)}assign(k,N,j){return this._leafNode(new o(k,N,j))}add(k,N){return this._leafNode(new u(k,t.operators.ADD,N))}code(k){return typeof k=="function"?k():k!==e.nil&&this._leafNode(new f(k)),this}object(...k){const N=["{"];for(const[j,z]of k)N.length>1&&N.push(","),N.push(j),(j!==z||this.opts.es5)&&(N.push(":"),(0,e.addCodeArg)(N,z));return N.push("}"),new e._Code(N)}if(k,N,j){if(this._blockNode(new D(k)),N&&j)this.code(N).else().code(j).endIf();else if(N)this.code(N).endIf();else if(j)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(k){return this._elseNode(new D(k))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(D,y)}_for(k,N){return this._blockNode(k),N&&this.code(N).endFor(),this}for(k,N){return this._for(new x(k),N)}forRange(k,N,j,z,R=this.opts.es5?r.varKinds.var:r.varKinds.let){const G=this._scope.toName(k);return this._for(new A(R,G,N,j),()=>z(G))}forOf(k,N,j,z=r.varKinds.const){const R=this._scope.toName(k);if(this.opts.es5){const G=N instanceof e.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,e._)`${G}.length`,te=>{this.var(R,(0,e._)`${G}[${te}]`),j(R)})}return this._for(new E("of",z,R,N),()=>j(R))}forIn(k,N,j,z=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(k,(0,e._)`Object.keys(${N})`,j);const R=this._scope.toName(k);return this._for(new E("in",z,R,N),()=>j(R))}endFor(){return this._endBlockNode(d)}label(k){return this._leafNode(new l(k))}break(k){return this._leafNode(new c(k))}return(k){const N=new b;if(this._blockNode(N),this.code(k),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(b)}try(k,N,j){if(!N&&!j)throw new Error('CodeGen: "try" without "catch" and "finally"');const z=new w;if(this._blockNode(z),this.code(k),N){const R=this.name("e");this._currNode=z.catch=new P(R),N(R)}return j&&(this._currNode=z.finally=new F,this.code(j)),this._endBlockNode(P,F)}throw(k){return this._leafNode(new p(k))}block(k,N){return this._blockStarts.push(this._nodes.length),k&&this.code(k).endBlock(N),this}endBlock(k){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const j=this._nodes.length-N;if(j<0||k!==void 0&&j!==k)throw new Error(`CodeGen: wrong number of nodes: ${j} vs ${k} expected`);return this._nodes.length=N,this}func(k,N=e.nil,j,z){return this._blockNode(new C(k,N,j)),z&&this.code(z).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(k=1){for(;k-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(k){return this._currNode.nodes.push(k),this}_blockNode(k){this._currNode.nodes.push(k),this._nodes.push(k)}_endBlockNode(k,N){const j=this._currNode;if(j instanceof k||N&&j instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${k.kind}/${N.kind}`:k.kind}"`)}_elseNode(k){const N=this._currNode;if(!(N instanceof D))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=k,this}get _root(){return this._nodes[0]}get _currNode(){const k=this._nodes;return k[k.length-1]}set _currNode(k){const N=this._nodes;N[N.length-1]=k}}t.CodeGen=S;function I(v,k){for(const N in k)v[N]=(v[N]||0)+(k[N]||0);return v}function B(v,k){return k instanceof e._CodeOrName?I(v,k.names):v}function O(v,k,N){if(v instanceof e.Name)return j(v);if(!z(v))return v;return new e._Code(v._items.reduce((R,G)=>(G instanceof e.Name&&(G=j(G)),G instanceof e._Code?R.push(...G._items):R.push(G),R),[]));function j(R){const G=N[R.str];return G===void 0||k[R.str]!==1?R:(delete k[R.str],G)}function z(R){return R instanceof e._Code&&R._items.some(G=>G instanceof e.Name&&k[G.str]===1&&N[G.str]!==void 0)}}function _(v,k){for(const N in k)v[N]=(v[N]||0)-(k[N]||0)}function $(v){return typeof v=="boolean"||typeof v=="number"||v===null?!v:(0,e._)`!${H(v)}`}t.not=$;const Y=L(t.operators.AND);function V(...v){return v.reduce(Y)}t.and=V;const ee=L(t.operators.OR);function T(...v){return v.reduce(ee)}t.or=T;function L(v){return(k,N)=>k===e.nil?N:N===e.nil?k:(0,e._)`${H(k)} ${v} ${H(N)}`}function H(v){return v instanceof e.Name?v:(0,e._)`(${v})`}})(Uy)),Uy}var je={},MT;function Ze(){if(MT)return je;MT=1,Object.defineProperty(je,"__esModule",{value:!0}),je.checkStrictMode=je.getErrorPath=je.Type=je.useFunc=je.setEvaluated=je.evaluatedPropsToName=je.mergeEvaluated=je.eachItem=je.unescapeJsonPointer=je.escapeJsonPointer=je.escapeFragment=je.unescapeFragment=je.schemaRefOrVal=je.schemaHasRulesButRef=je.schemaHasRules=je.checkUnknownRules=je.alwaysValidSchema=je.toHash=void 0;const t=We(),e=bp();function r(E){const C={};for(const b of E)C[b]=!0;return C}je.toHash=r;function n(E,C){return typeof C=="boolean"?C:Object.keys(C).length===0?!0:(i(E,C),!s(C,E.self.RULES.all))}je.alwaysValidSchema=n;function i(E,C=E.schema){const{opts:b,self:w}=E;if(!b.strictSchema||typeof C=="boolean")return;const P=w.RULES.keywords;for(const F in C)P[F]||A(E,`unknown keyword: "${F}"`)}je.checkUnknownRules=i;function s(E,C){if(typeof E=="boolean")return!E;for(const b in E)if(C[b])return!0;return!1}je.schemaHasRules=s;function a(E,C){if(typeof E=="boolean")return!E;for(const b in E)if(b!=="$ref"&&C.all[b])return!0;return!1}je.schemaHasRulesButRef=a;function o({topSchemaRef:E,schemaPath:C},b,w,P){if(!P){if(typeof b=="number"||typeof b=="boolean")return b;if(typeof b=="string")return(0,t._)`${b}`}return(0,t._)`${E}${C}${(0,t.getProperty)(w)}`}je.schemaRefOrVal=o;function u(E){return p(decodeURIComponent(E))}je.unescapeFragment=u;function l(E){return encodeURIComponent(c(E))}je.escapeFragment=l;function c(E){return typeof E=="number"?`${E}`:E.replace(/~/g,"~0").replace(/\//g,"~1")}je.escapeJsonPointer=c;function p(E){return E.replace(/~1/g,"/").replace(/~0/g,"~")}je.unescapeJsonPointer=p;function f(E,C){if(Array.isArray(E))for(const b of E)C(b);else C(E)}je.eachItem=f;function h({mergeNames:E,mergeToName:C,mergeValues:b,resultToName:w}){return(P,F,S,I)=>{const B=S===void 0?F:S instanceof t.Name?(F instanceof t.Name?E(P,F,S):C(P,F,S),S):F instanceof t.Name?(C(P,S,F),F):b(F,S);return I===t.Name&&!(B instanceof t.Name)?w(P,B):B}}je.mergeEvaluated={props:h({mergeNames:(E,C,b)=>E.if((0,t._)`${b} !== true && ${C} !== undefined`,()=>{E.if((0,t._)`${C} === true`,()=>E.assign(b,!0),()=>E.assign(b,(0,t._)`${b} || {}`).code((0,t._)`Object.assign(${b}, ${C})`))}),mergeToName:(E,C,b)=>E.if((0,t._)`${b} !== true`,()=>{C===!0?E.assign(b,!0):(E.assign(b,(0,t._)`${b} || {}`),g(E,b,C))}),mergeValues:(E,C)=>E===!0?!0:{...E,...C},resultToName:m}),items:h({mergeNames:(E,C,b)=>E.if((0,t._)`${b} !== true && ${C} !== undefined`,()=>E.assign(b,(0,t._)`${C} === true ? true : ${b} > ${C} ? ${b} : ${C}`)),mergeToName:(E,C,b)=>E.if((0,t._)`${b} !== true`,()=>E.assign(b,C===!0?!0:(0,t._)`${b} > ${C} ? ${b} : ${C}`)),mergeValues:(E,C)=>E===!0?!0:Math.max(E,C),resultToName:(E,C)=>E.var("items",C)})};function m(E,C){if(C===!0)return E.var("props",!0);const b=E.var("props",(0,t._)`{}`);return C!==void 0&&g(E,b,C),b}je.evaluatedPropsToName=m;function g(E,C,b){Object.keys(b).forEach(w=>E.assign((0,t._)`${C}${(0,t.getProperty)(w)}`,!0))}je.setEvaluated=g;const y={};function D(E,C){return E.scopeValue("func",{ref:C,code:y[C.code]||(y[C.code]=new e._Code(C.code))})}je.useFunc=D;var d;(function(E){E[E.Num=0]="Num",E[E.Str=1]="Str"})(d||(je.Type=d={}));function x(E,C,b){if(E instanceof t.Name){const w=C===d.Num;return b?w?(0,t._)`"[" + ${E} + "]"`:(0,t._)`"['" + ${E} + "']"`:w?(0,t._)`"/" + ${E}`:(0,t._)`"/" + ${E}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return b?(0,t.getProperty)(E).toString():"/"+c(E)}je.getErrorPath=x;function A(E,C,b=E.opts.strictSchema){if(b){if(C=`strict mode: ${C}`,b===!0)throw new Error(C);E.self.logger.warn(C)}}return je.checkStrictMode=A,je}var vp={},RT;function Zi(){if(RT)return vp;RT=1,Object.defineProperty(vp,"__esModule",{value:!0});const t=We(),e={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};return vp.default=e,vp}var jT;function Fp(){return jT||(jT=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const e=We(),r=Ze(),n=Zi();t.keywordError={message:({keyword:y})=>(0,e.str)`must pass "${y}" keyword validation`},t.keyword$DataError={message:({keyword:y,schemaType:D})=>D?(0,e.str)`"${y}" keyword must be ${D} ($data)`:(0,e.str)`"${y}" keyword is invalid ($data)`};function i(y,D=t.keywordError,d,x){const{it:A}=y,{gen:E,compositeRule:C,allErrors:b}=A,w=p(y,D,d);x??(C||b)?u(E,w):l(A,(0,e._)`[${w}]`)}t.reportError=i;function s(y,D=t.keywordError,d){const{it:x}=y,{gen:A,compositeRule:E,allErrors:C}=x,b=p(y,D,d);u(A,b),E||C||l(x,n.default.vErrors)}t.reportExtraError=s;function a(y,D){y.assign(n.default.errors,D),y.if((0,e._)`${n.default.vErrors} !== null`,()=>y.if(D,()=>y.assign((0,e._)`${n.default.vErrors}.length`,D),()=>y.assign(n.default.vErrors,null)))}t.resetErrorsCount=a;function o({gen:y,keyword:D,schemaValue:d,data:x,errsCount:A,it:E}){if(A===void 0)throw new Error("ajv implementation error");const C=y.name("err");y.forRange("i",A,n.default.errors,b=>{y.const(C,(0,e._)`${n.default.vErrors}[${b}]`),y.if((0,e._)`${C}.instancePath === undefined`,()=>y.assign((0,e._)`${C}.instancePath`,(0,e.strConcat)(n.default.instancePath,E.errorPath))),y.assign((0,e._)`${C}.schemaPath`,(0,e.str)`${E.errSchemaPath}/${D}`),E.opts.verbose&&(y.assign((0,e._)`${C}.schema`,d),y.assign((0,e._)`${C}.data`,x))})}t.extendErrors=o;function u(y,D){const d=y.const("err",D);y.if((0,e._)`${n.default.vErrors} === null`,()=>y.assign(n.default.vErrors,(0,e._)`[${d}]`),(0,e._)`${n.default.vErrors}.push(${d})`),y.code((0,e._)`${n.default.errors}++`)}function l(y,D){const{gen:d,validateName:x,schemaEnv:A}=y;A.$async?d.throw((0,e._)`new ${y.ValidationError}(${D})`):(d.assign((0,e._)`${x}.errors`,D),d.return(!1))}const c={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function p(y,D,d){const{createErrors:x}=y.it;return x===!1?(0,e._)`{}`:f(y,D,d)}function f(y,D,d={}){const{gen:x,it:A}=y,E=[h(A,d),m(y,d)];return g(y,D,E),x.object(...E)}function h({errorPath:y},{instancePath:D}){const d=D?(0,e.str)`${y}${(0,r.getErrorPath)(D,r.Type.Str)}`:y;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,d)]}function m({keyword:y,it:{errSchemaPath:D}},{schemaPath:d,parentSchema:x}){let A=x?D:(0,e.str)`${D}/${y}`;return d&&(A=(0,e.str)`${A}${(0,r.getErrorPath)(d,r.Type.Str)}`),[c.schemaPath,A]}function g(y,{params:D,message:d},x){const{keyword:A,data:E,schemaValue:C,it:b}=y,{opts:w,propertyName:P,topSchemaRef:F,schemaPath:S}=b;x.push([c.keyword,A],[c.params,typeof D=="function"?D(y):D||(0,e._)`{}`]),w.messages&&x.push([c.message,typeof d=="function"?d(y):d]),w.verbose&&x.push([c.schema,C],[c.parentSchema,(0,e._)`${F}${S}`],[n.default.data,E]),P&&x.push([c.propertyName,P])}})(qy)),qy}var qT;function Ore(){if(qT)return qs;qT=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.boolOrEmptySchema=qs.topBoolOrEmptySchema=void 0;const t=Fp(),e=We(),r=Zi(),n={message:"boolean schema is false"};function i(o){const{gen:u,schema:l,validateName:c}=o;l===!1?a(o,!1):typeof l=="object"&&l.$async===!0?u.return(r.default.data):(u.assign((0,e._)`${c}.errors`,null),u.return(!0))}qs.topBoolOrEmptySchema=i;function s(o,u){const{gen:l,schema:c}=o;c===!1?(l.var(u,!1),a(o)):l.var(u,!0)}qs.boolOrEmptySchema=s;function a(o,u){const{gen:l,data:c}=o,p={gen:l,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,t.reportError)(p,n,void 0,u)}return qs}var Gt={},Us={},UT;function zT(){if(UT)return Us;UT=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.getRules=Us.isJSONType=void 0;const t=["string","number","integer","boolean","null","object","array"],e=new Set(t);function r(i){return typeof i=="string"&&e.has(i)}Us.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return Us.getRules=n,Us}var gi={},VT;function HT(){if(VT)return gi;VT=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.shouldUseRule=gi.shouldUseGroup=gi.schemaHasRulesForType=void 0;function t({schema:n,self:i},s){const a=i.RULES.types[s];return a&&a!==!0&&e(n,a)}gi.schemaHasRulesForType=t;function e(n,i){return i.rules.some(s=>r(n,s))}gi.shouldUseGroup=e;function r(n,i){var s;return n[i.keyword]!==void 0||((s=i.definition.implements)===null||s===void 0?void 0:s.some(a=>n[a]!==void 0))}return gi.shouldUseRule=r,gi}var WT;function Tp(){if(WT)return Gt;WT=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.reportTypeError=Gt.checkDataTypes=Gt.checkDataType=Gt.coerceAndCheckDataType=Gt.getJSONTypes=Gt.getSchemaTypes=Gt.DataType=void 0;const t=zT(),e=HT(),r=Fp(),n=We(),i=Ze();var s;(function(d){d[d.Correct=0]="Correct",d[d.Wrong=1]="Wrong"})(s||(Gt.DataType=s={}));function a(d){const x=o(d.type);if(x.includes("null")){if(d.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!x.length&&d.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');d.nullable===!0&&x.push("null")}return x}Gt.getSchemaTypes=a;function o(d){const x=Array.isArray(d)?d:d?[d]:[];if(x.every(t.isJSONType))return x;throw new Error("type must be JSONType or JSONType[]: "+x.join(","))}Gt.getJSONTypes=o;function u(d,x){const{gen:A,data:E,opts:C}=d,b=c(x,C.coerceTypes),w=x.length>0&&!(b.length===0&&x.length===1&&(0,e.schemaHasRulesForType)(d,x[0]));if(w){const P=m(x,E,C.strictNumbers,s.Wrong);A.if(P,()=>{b.length?p(d,x,b):y(d)})}return w}Gt.coerceAndCheckDataType=u;const l=new Set(["string","number","integer","boolean","null"]);function c(d,x){return x?d.filter(A=>l.has(A)||x==="array"&&A==="array"):[]}function p(d,x,A){const{gen:E,data:C,opts:b}=d,w=E.let("dataType",(0,n._)`typeof ${C}`),P=E.let("coerced",(0,n._)`undefined`);b.coerceTypes==="array"&&E.if((0,n._)`${w} == 'object' && Array.isArray(${C}) && ${C}.length == 1`,()=>E.assign(C,(0,n._)`${C}[0]`).assign(w,(0,n._)`typeof ${C}`).if(m(x,C,b.strictNumbers),()=>E.assign(P,C))),E.if((0,n._)`${P} !== undefined`);for(const S of A)(l.has(S)||S==="array"&&b.coerceTypes==="array")&&F(S);E.else(),y(d),E.endIf(),E.if((0,n._)`${P} !== undefined`,()=>{E.assign(C,P),f(d,P)});function F(S){switch(S){case"string":E.elseIf((0,n._)`${w} == "number" || ${w} == "boolean"`).assign(P,(0,n._)`"" + ${C}`).elseIf((0,n._)`${C} === null`).assign(P,(0,n._)`""`);return;case"number":E.elseIf((0,n._)`${w} == "boolean" || ${C} === null
|
|
286
|
+
|| (${w} == "string" && ${C} && ${C} == +${C})`).assign(P,(0,n._)`+${C}`);return;case"integer":E.elseIf((0,n._)`${w} === "boolean" || ${C} === null
|
|
287
|
+
|| (${w} === "string" && ${C} && ${C} == +${C} && !(${C} % 1))`).assign(P,(0,n._)`+${C}`);return;case"boolean":E.elseIf((0,n._)`${C} === "false" || ${C} === 0 || ${C} === null`).assign(P,!1).elseIf((0,n._)`${C} === "true" || ${C} === 1`).assign(P,!0);return;case"null":E.elseIf((0,n._)`${C} === "" || ${C} === 0 || ${C} === false`),E.assign(P,null);return;case"array":E.elseIf((0,n._)`${w} === "string" || ${w} === "number"
|
|
288
|
+
|| ${w} === "boolean" || ${C} === null`).assign(P,(0,n._)`[${C}]`)}}}function f({gen:d,parentData:x,parentDataProperty:A},E){d.if((0,n._)`${x} !== undefined`,()=>d.assign((0,n._)`${x}[${A}]`,E))}function h(d,x,A,E=s.Correct){const C=E===s.Correct?n.operators.EQ:n.operators.NEQ;let b;switch(d){case"null":return(0,n._)`${x} ${C} null`;case"array":b=(0,n._)`Array.isArray(${x})`;break;case"object":b=(0,n._)`${x} && typeof ${x} == "object" && !Array.isArray(${x})`;break;case"integer":b=w((0,n._)`!(${x} % 1) && !isNaN(${x})`);break;case"number":b=w();break;default:return(0,n._)`typeof ${x} ${C} ${d}`}return E===s.Correct?b:(0,n.not)(b);function w(P=n.nil){return(0,n.and)((0,n._)`typeof ${x} == "number"`,P,A?(0,n._)`isFinite(${x})`:n.nil)}}Gt.checkDataType=h;function m(d,x,A,E){if(d.length===1)return h(d[0],x,A,E);let C;const b=(0,i.toHash)(d);if(b.array&&b.object){const w=(0,n._)`typeof ${x} != "object"`;C=b.null?w:(0,n._)`!${x} || ${w}`,delete b.null,delete b.array,delete b.object}else C=n.nil;b.number&&delete b.integer;for(const w in b)C=(0,n.and)(C,h(w,x,A,E));return C}Gt.checkDataTypes=m;const g={message:({schema:d})=>`must be ${d}`,params:({schema:d,schemaValue:x})=>typeof d=="string"?(0,n._)`{type: ${d}}`:(0,n._)`{type: ${x}}`};function y(d){const x=D(d);(0,r.reportError)(x,g)}Gt.reportTypeError=y;function D(d){const{gen:x,data:A,schema:E}=d,C=(0,i.schemaRefOrVal)(d,E,"type");return{gen:x,keyword:"type",data:A,schema:E.type,schemaCode:C,schemaValue:C,parentSchema:E,params:{},it:d}}return Gt}var il={},GT;function Lre(){if(GT)return il;GT=1,Object.defineProperty(il,"__esModule",{value:!0}),il.assignDefaults=void 0;const t=We(),e=Ze();function r(i,s){const{properties:a,items:o}=i.schema;if(s==="object"&&a)for(const u in a)n(i,u,a[u].default);else s==="array"&&Array.isArray(o)&&o.forEach((u,l)=>n(i,l,u.default))}il.assignDefaults=r;function n(i,s,a){const{gen:o,compositeRule:u,data:l,opts:c}=i;if(a===void 0)return;const p=(0,t._)`${l}${(0,t.getProperty)(s)}`;if(u){(0,e.checkStrictMode)(i,`default is ignored for: ${p}`);return}let f=(0,t._)`${p} === undefined`;c.useDefaults==="empty"&&(f=(0,t._)`${f} || ${p} === null || ${p} === ""`),o.if(f,(0,t._)`${p} = ${(0,t.stringify)(a)}`)}return il}var yn={},nt={},JT;function Dn(){if(JT)return nt;JT=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.validateUnion=nt.validateArray=nt.usePattern=nt.callValidateCode=nt.schemaProperties=nt.allSchemaProperties=nt.noPropertyInData=nt.propertyInData=nt.isOwnProperty=nt.hasPropFunc=nt.reportMissingProp=nt.checkMissingProp=nt.checkReportMissingProp=void 0;const t=We(),e=Ze(),r=Zi(),n=Ze();function i(d,x){const{gen:A,data:E,it:C}=d;A.if(c(A,E,x,C.opts.ownProperties),()=>{d.setParams({missingProperty:(0,t._)`${x}`},!0),d.error()})}nt.checkReportMissingProp=i;function s({gen:d,data:x,it:{opts:A}},E,C){return(0,t.or)(...E.map(b=>(0,t.and)(c(d,x,b,A.ownProperties),(0,t._)`${C} = ${b}`)))}nt.checkMissingProp=s;function a(d,x){d.setParams({missingProperty:x},!0),d.error()}nt.reportMissingProp=a;function o(d){return d.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}nt.hasPropFunc=o;function u(d,x,A){return(0,t._)`${o(d)}.call(${x}, ${A})`}nt.isOwnProperty=u;function l(d,x,A,E){const C=(0,t._)`${x}${(0,t.getProperty)(A)} !== undefined`;return E?(0,t._)`${C} && ${u(d,x,A)}`:C}nt.propertyInData=l;function c(d,x,A,E){const C=(0,t._)`${x}${(0,t.getProperty)(A)} === undefined`;return E?(0,t.or)(C,(0,t.not)(u(d,x,A))):C}nt.noPropertyInData=c;function p(d){return d?Object.keys(d).filter(x=>x!=="__proto__"):[]}nt.allSchemaProperties=p;function f(d,x){return p(x).filter(A=>!(0,e.alwaysValidSchema)(d,x[A]))}nt.schemaProperties=f;function h({schemaCode:d,data:x,it:{gen:A,topSchemaRef:E,schemaPath:C,errorPath:b},it:w},P,F,S){const I=S?(0,t._)`${d}, ${x}, ${E}${C}`:x,B=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,b)],[r.default.parentData,w.parentData],[r.default.parentDataProperty,w.parentDataProperty],[r.default.rootData,r.default.rootData]];w.opts.dynamicRef&&B.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const O=(0,t._)`${I}, ${A.object(...B)}`;return F!==t.nil?(0,t._)`${P}.call(${F}, ${O})`:(0,t._)`${P}(${O})`}nt.callValidateCode=h;const m=(0,t._)`new RegExp`;function g({gen:d,it:{opts:x}},A){const E=x.unicodeRegExp?"u":"",{regExp:C}=x.code,b=C(A,E);return d.scopeValue("pattern",{key:b.toString(),ref:b,code:(0,t._)`${C.code==="new RegExp"?m:(0,n.useFunc)(d,C)}(${A}, ${E})`})}nt.usePattern=g;function y(d){const{gen:x,data:A,keyword:E,it:C}=d,b=x.name("valid");if(C.allErrors){const P=x.let("valid",!0);return w(()=>x.assign(P,!1)),P}return x.var(b,!0),w(()=>x.break()),b;function w(P){const F=x.const("len",(0,t._)`${A}.length`);x.forRange("i",0,F,S=>{d.subschema({keyword:E,dataProp:S,dataPropType:e.Type.Num},b),x.if((0,t.not)(b),P)})}}nt.validateArray=y;function D(d){const{gen:x,schema:A,keyword:E,it:C}=d;if(!Array.isArray(A))throw new Error("ajv implementation error");if(A.some(F=>(0,e.alwaysValidSchema)(C,F))&&!C.opts.unevaluated)return;const w=x.let("valid",!1),P=x.name("_valid");x.block(()=>A.forEach((F,S)=>{const I=d.subschema({keyword:E,schemaProp:S,compositeRule:!0},P);x.assign(w,(0,t._)`${w} || ${P}`),d.mergeValidEvaluated(I,P)||x.if((0,t.not)(w))})),d.result(w,()=>d.reset(),()=>d.error(!0))}return nt.validateUnion=D,nt}var KT;function Mre(){if(KT)return yn;KT=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.validateKeywordUsage=yn.validSchemaType=yn.funcKeywordCode=yn.macroKeywordCode=void 0;const t=We(),e=Zi(),r=Dn(),n=Fp();function i(f,h){const{gen:m,keyword:g,schema:y,parentSchema:D,it:d}=f,x=h.macro.call(d.self,y,D,d),A=l(m,g,x);d.opts.validateSchema!==!1&&d.self.validateSchema(x,!0);const E=m.name("valid");f.subschema({schema:x,schemaPath:t.nil,errSchemaPath:`${d.errSchemaPath}/${g}`,topSchemaRef:A,compositeRule:!0},E),f.pass(E,()=>f.error(!0))}yn.macroKeywordCode=i;function s(f,h){var m;const{gen:g,keyword:y,schema:D,parentSchema:d,$data:x,it:A}=f;u(A,h);const E=!x&&h.compile?h.compile.call(A.self,D,d,A):h.validate,C=l(g,y,E),b=g.let("valid");f.block$data(b,w),f.ok((m=h.valid)!==null&&m!==void 0?m:b);function w(){if(h.errors===!1)S(),h.modifying&&a(f),I(()=>f.error());else{const B=h.async?P():F();h.modifying&&a(f),I(()=>o(f,B))}}function P(){const B=g.let("ruleErrs",null);return g.try(()=>S((0,t._)`await `),O=>g.assign(b,!1).if((0,t._)`${O} instanceof ${A.ValidationError}`,()=>g.assign(B,(0,t._)`${O}.errors`),()=>g.throw(O))),B}function F(){const B=(0,t._)`${C}.errors`;return g.assign(B,null),S(t.nil),B}function S(B=h.async?(0,t._)`await `:t.nil){const O=A.opts.passContext?e.default.this:e.default.self,_=!("compile"in h&&!x||h.schema===!1);g.assign(b,(0,t._)`${B}${(0,r.callValidateCode)(f,C,O,_)}`,h.modifying)}function I(B){var O;g.if((0,t.not)((O=h.valid)!==null&&O!==void 0?O:b),B)}}yn.funcKeywordCode=s;function a(f){const{gen:h,data:m,it:g}=f;h.if(g.parentData,()=>h.assign(m,(0,t._)`${g.parentData}[${g.parentDataProperty}]`))}function o(f,h){const{gen:m}=f;m.if((0,t._)`Array.isArray(${h})`,()=>{m.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${h} : ${e.default.vErrors}.concat(${h})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,n.extendErrors)(f)},()=>f.error())}function u({schemaEnv:f},h){if(h.async&&!f.$async)throw new Error("async keyword in sync schema")}function l(f,h,m){if(m===void 0)throw new Error(`keyword "${h}" failed to compile`);return f.scopeValue("keyword",typeof m=="function"?{ref:m}:{ref:m,code:(0,t.stringify)(m)})}function c(f,h,m=!1){return!h.length||h.some(g=>g==="array"?Array.isArray(f):g==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==g||m&&typeof f>"u")}yn.validSchemaType=c;function p({schema:f,opts:h,self:m,errSchemaPath:g},y,D){if(Array.isArray(y.keyword)?!y.keyword.includes(D):y.keyword!==D)throw new Error("ajv implementation error");const d=y.dependencies;if(d?.some(x=>!Object.prototype.hasOwnProperty.call(f,x)))throw new Error(`parent schema must have dependencies of ${D}: ${d.join(",")}`);if(y.validateSchema&&!y.validateSchema(f[D])){const A=`keyword "${D}" value is invalid at path "${g}": `+m.errorsText(y.validateSchema.errors);if(h.validateSchema==="log")m.logger.error(A);else throw new Error(A)}}return yn.validateKeywordUsage=p,yn}var yi={},YT;function Rre(){if(YT)return yi;YT=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.extendSubschemaMode=yi.extendSubschemaData=yi.getSubschema=void 0;const t=We(),e=Ze();function r(s,{keyword:a,schemaProp:o,schema:u,schemaPath:l,errSchemaPath:c,topSchemaRef:p}){if(a!==void 0&&u!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(a!==void 0){const f=s.schema[a];return o===void 0?{schema:f,schemaPath:(0,t._)`${s.schemaPath}${(0,t.getProperty)(a)}`,errSchemaPath:`${s.errSchemaPath}/${a}`}:{schema:f[o],schemaPath:(0,t._)`${s.schemaPath}${(0,t.getProperty)(a)}${(0,t.getProperty)(o)}`,errSchemaPath:`${s.errSchemaPath}/${a}/${(0,e.escapeFragment)(o)}`}}if(u!==void 0){if(l===void 0||c===void 0||p===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:u,schemaPath:l,topSchemaRef:p,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')}yi.getSubschema=r;function n(s,a,{dataProp:o,dataPropType:u,data:l,dataTypes:c,propertyName:p}){if(l!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=a;if(o!==void 0){const{errorPath:m,dataPathArr:g,opts:y}=a,D=f.let("data",(0,t._)`${a.data}${(0,t.getProperty)(o)}`,!0);h(D),s.errorPath=(0,t.str)`${m}${(0,e.getErrorPath)(o,u,y.jsPropertySyntax)}`,s.parentDataProperty=(0,t._)`${o}`,s.dataPathArr=[...g,s.parentDataProperty]}if(l!==void 0){const m=l instanceof t.Name?l:f.let("data",l,!0);h(m),p!==void 0&&(s.propertyName=p)}c&&(s.dataTypes=c);function h(m){s.data=m,s.dataLevel=a.dataLevel+1,s.dataTypes=[],a.definedProperties=new Set,s.parentData=a.data,s.dataNames=[...a.dataNames,m]}}yi.extendSubschemaData=n;function i(s,{jtdDiscriminator:a,jtdMetadata:o,compositeRule:u,createErrors:l,allErrors:c}){u!==void 0&&(s.compositeRule=u),l!==void 0&&(s.createErrors=l),c!==void 0&&(s.allErrors=c),s.jtdDiscriminator=a,s.jtdMetadata=o}return yi.extendSubschemaMode=i,yi}var hr={},Hy,XT;function QT(){return XT||(XT=1,Hy=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}),Hy}var Wy={exports:{}},ZT;function jre(){if(ZT)return Wy.exports;ZT=1;var t=Wy.exports=function(n,i,s){typeof i=="function"&&(s=i,i={}),s=i.cb||s;var a=typeof s=="function"?s:s.pre||function(){},o=s.post||function(){};e(i,a,o,n,"",n)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(n,i,s,a,o,u,l,c,p,f){if(a&&typeof a=="object"&&!Array.isArray(a)){i(a,o,u,l,c,p,f);for(var h in a){var m=a[h];if(Array.isArray(m)){if(h in t.arrayKeywords)for(var g=0;g<m.length;g++)e(n,i,s,m[g],o+"/"+h+"/"+g,u,o,h,a,g)}else if(h in t.propsKeywords){if(m&&typeof m=="object")for(var y in m)e(n,i,s,m[y],o+"/"+h+"/"+r(y),u,o,h,a,y)}else(h in t.keywords||n.allKeys&&!(h in t.skipKeywords))&&e(n,i,s,m,o+"/"+h,u,o,h,a)}s(a,o,u,l,c,p,f)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Wy.exports}var ew;function wp(){if(ew)return hr;ew=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.getSchemaRefs=hr.resolveUrl=hr.normalizeId=hr._getFullPath=hr.getFullPath=hr.inlineRef=void 0;const t=Ze(),e=QT(),r=jre(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(g,y=!0){return typeof g=="boolean"?!0:y===!0?!a(g):y?o(g)<=y:!1}hr.inlineRef=i;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function a(g){for(const y in g){if(s.has(y))return!0;const D=g[y];if(Array.isArray(D)&&D.some(a)||typeof D=="object"&&a(D))return!0}return!1}function o(g){let y=0;for(const D in g){if(D==="$ref")return 1/0;if(y++,!n.has(D)&&(typeof g[D]=="object"&&(0,t.eachItem)(g[D],d=>y+=o(d)),y===1/0))return 1/0}return y}function u(g,y="",D){D!==!1&&(y=p(y));const d=g.parse(y);return l(g,d)}hr.getFullPath=u;function l(g,y){return g.serialize(y).split("#")[0]+"#"}hr._getFullPath=l;const c=/#\/?$/;function p(g){return g?g.replace(c,""):""}hr.normalizeId=p;function f(g,y,D){return D=p(D),g.resolve(y,D)}hr.resolveUrl=f;const h=/^[a-z_][-a-z0-9._]*$/i;function m(g,y){if(typeof g=="boolean")return{};const{schemaId:D,uriResolver:d}=this.opts,x=p(g[D]||y),A={"":x},E=u(d,x,!1),C={},b=new Set;return r(g,{allKeys:!0},(F,S,I,B)=>{if(B===void 0)return;const O=E+S;let _=A[B];typeof F[D]=="string"&&(_=$.call(this,F[D])),Y.call(this,F.$anchor),Y.call(this,F.$dynamicAnchor),A[S]=_;function $(V){const ee=this.opts.uriResolver.resolve;if(V=p(_?ee(_,V):V),b.has(V))throw P(V);b.add(V);let T=this.refs[V];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?w(F,T.schema,V):V!==p(O)&&(V[0]==="#"?(w(F,C[V],V),C[V]=F):this.refs[V]=O),V}function Y(V){if(typeof V=="string"){if(!h.test(V))throw new Error(`invalid anchor "${V}"`);$.call(this,`#${V}`)}}}),C;function w(F,S,I){if(S!==void 0&&!e(F,S))throw P(I)}function P(F){return new Error(`reference "${F}" resolves to more than one schema`)}}return hr.getSchemaRefs=m,hr}var tw;function Sp(){if(tw)return mi;tw=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.getData=mi.KeywordCxt=mi.validateFunctionCode=void 0;const t=Ore(),e=Tp(),r=HT(),n=Tp(),i=Lre(),s=Mre(),a=Rre(),o=We(),u=Zi(),l=wp(),c=Ze(),p=Fp();function f(M){if(E(M)&&(b(M),A(M))){y(M);return}h(M,()=>(0,t.topBoolOrEmptySchema)(M))}mi.validateFunctionCode=f;function h({gen:M,validateName:J,schema:X,schemaEnv:ne,opts:le},Ee){le.code.es5?M.func(J,(0,o._)`${u.default.data}, ${u.default.valCxt}`,ne.$async,()=>{M.code((0,o._)`"use strict"; ${d(X,le)}`),g(M,le),M.code(Ee)}):M.func(J,(0,o._)`${u.default.data}, ${m(le)}`,ne.$async,()=>M.code(d(X,le)).code(Ee))}function m(M){return(0,o._)`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${M.dynamicRef?(0,o._)`, ${u.default.dynamicAnchors}={}`:o.nil}}={}`}function g(M,J){M.if(u.default.valCxt,()=>{M.var(u.default.instancePath,(0,o._)`${u.default.valCxt}.${u.default.instancePath}`),M.var(u.default.parentData,(0,o._)`${u.default.valCxt}.${u.default.parentData}`),M.var(u.default.parentDataProperty,(0,o._)`${u.default.valCxt}.${u.default.parentDataProperty}`),M.var(u.default.rootData,(0,o._)`${u.default.valCxt}.${u.default.rootData}`),J.dynamicRef&&M.var(u.default.dynamicAnchors,(0,o._)`${u.default.valCxt}.${u.default.dynamicAnchors}`)},()=>{M.var(u.default.instancePath,(0,o._)`""`),M.var(u.default.parentData,(0,o._)`undefined`),M.var(u.default.parentDataProperty,(0,o._)`undefined`),M.var(u.default.rootData,u.default.data),J.dynamicRef&&M.var(u.default.dynamicAnchors,(0,o._)`{}`)})}function y(M){const{schema:J,opts:X,gen:ne}=M;h(M,()=>{X.$comment&&J.$comment&&B(M),F(M),ne.let(u.default.vErrors,null),ne.let(u.default.errors,0),X.unevaluated&&D(M),w(M),O(M)})}function D(M){const{gen:J,validateName:X}=M;M.evaluated=J.const("evaluated",(0,o._)`${X}.evaluated`),J.if((0,o._)`${M.evaluated}.dynamicProps`,()=>J.assign((0,o._)`${M.evaluated}.props`,(0,o._)`undefined`)),J.if((0,o._)`${M.evaluated}.dynamicItems`,()=>J.assign((0,o._)`${M.evaluated}.items`,(0,o._)`undefined`))}function d(M,J){const X=typeof M=="object"&&M[J.schemaId];return X&&(J.code.source||J.code.process)?(0,o._)`/*# sourceURL=${X} */`:o.nil}function x(M,J){if(E(M)&&(b(M),A(M))){C(M,J);return}(0,t.boolOrEmptySchema)(M,J)}function A({schema:M,self:J}){if(typeof M=="boolean")return!M;for(const X in M)if(J.RULES.all[X])return!0;return!1}function E(M){return typeof M.schema!="boolean"}function C(M,J){const{schema:X,gen:ne,opts:le}=M;le.$comment&&X.$comment&&B(M),S(M),I(M);const Ee=ne.const("_errs",u.default.errors);w(M,Ee),ne.var(J,(0,o._)`${Ee} === ${u.default.errors}`)}function b(M){(0,c.checkUnknownRules)(M),P(M)}function w(M,J){if(M.opts.jtd)return $(M,[],!1,J);const X=(0,e.getSchemaTypes)(M.schema),ne=(0,e.coerceAndCheckDataType)(M,X);$(M,X,!ne,J)}function P(M){const{schema:J,errSchemaPath:X,opts:ne,self:le}=M;J.$ref&&ne.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(J,le.RULES)&&le.logger.warn(`$ref: keywords ignored in schema at path "${X}"`)}function F(M){const{schema:J,opts:X}=M;J.default!==void 0&&X.useDefaults&&X.strictSchema&&(0,c.checkStrictMode)(M,"default is ignored in the schema root")}function S(M){const J=M.schema[M.opts.schemaId];J&&(M.baseId=(0,l.resolveUrl)(M.opts.uriResolver,M.baseId,J))}function I(M){if(M.schema.$async&&!M.schemaEnv.$async)throw new Error("async schema in sync schema")}function B({gen:M,schemaEnv:J,schema:X,errSchemaPath:ne,opts:le}){const Ee=X.$comment;if(le.$comment===!0)M.code((0,o._)`${u.default.self}.logger.log(${Ee})`);else if(typeof le.$comment=="function"){const ke=(0,o.str)`${ne}/$comment`,ge=M.scopeValue("root",{ref:J.root});M.code((0,o._)`${u.default.self}.opts.$comment(${Ee}, ${ke}, ${ge}.schema)`)}}function O(M){const{gen:J,schemaEnv:X,validateName:ne,ValidationError:le,opts:Ee}=M;X.$async?J.if((0,o._)`${u.default.errors} === 0`,()=>J.return(u.default.data),()=>J.throw((0,o._)`new ${le}(${u.default.vErrors})`)):(J.assign((0,o._)`${ne}.errors`,u.default.vErrors),Ee.unevaluated&&_(M),J.return((0,o._)`${u.default.errors} === 0`))}function _({gen:M,evaluated:J,props:X,items:ne}){X instanceof o.Name&&M.assign((0,o._)`${J}.props`,X),ne instanceof o.Name&&M.assign((0,o._)`${J}.items`,ne)}function $(M,J,X,ne){const{gen:le,schema:Ee,data:ke,allErrors:ge,opts:xe,self:Ne}=M,{RULES:Ge}=Ne;if(Ee.$ref&&(xe.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(Ee,Ge))){le.block(()=>z(M,"$ref",Ge.all.$ref.definition));return}xe.jtd||V(M,J),le.block(()=>{for(const Xe of Ge.rules)rt(Xe);rt(Ge.post)});function rt(Xe){(0,r.shouldUseGroup)(Ee,Xe)&&(Xe.type?(le.if((0,n.checkDataType)(Xe.type,ke,xe.strictNumbers)),Y(M,Xe),J.length===1&&J[0]===Xe.type&&X&&(le.else(),(0,n.reportTypeError)(M)),le.endIf()):Y(M,Xe),ge||le.if((0,o._)`${u.default.errors} === ${ne||0}`))}}function Y(M,J){const{gen:X,schema:ne,opts:{useDefaults:le}}=M;le&&(0,i.assignDefaults)(M,J.type),X.block(()=>{for(const Ee of J.rules)(0,r.shouldUseRule)(ne,Ee)&&z(M,Ee.keyword,Ee.definition,J.type)})}function V(M,J){M.schemaEnv.meta||!M.opts.strictTypes||(ee(M,J),M.opts.allowUnionTypes||T(M,J),L(M,M.dataTypes))}function ee(M,J){if(J.length){if(!M.dataTypes.length){M.dataTypes=J;return}J.forEach(X=>{v(M.dataTypes,X)||N(M,`type "${X}" not allowed by context "${M.dataTypes.join(",")}"`)}),k(M,J)}}function T(M,J){J.length>1&&!(J.length===2&&J.includes("null"))&&N(M,"use allowUnionTypes to allow union type keyword")}function L(M,J){const X=M.self.RULES.all;for(const ne in X){const le=X[ne];if(typeof le=="object"&&(0,r.shouldUseRule)(M.schema,le)){const{type:Ee}=le.definition;Ee.length&&!Ee.some(ke=>H(J,ke))&&N(M,`missing type "${Ee.join(",")}" for keyword "${ne}"`)}}}function H(M,J){return M.includes(J)||J==="number"&&M.includes("integer")}function v(M,J){return M.includes(J)||J==="integer"&&M.includes("number")}function k(M,J){const X=[];for(const ne of M.dataTypes)v(J,ne)?X.push(ne):J.includes("integer")&&ne==="number"&&X.push("integer");M.dataTypes=X}function N(M,J){const X=M.schemaEnv.baseId+M.errSchemaPath;J+=` at "${X}" (strictTypes)`,(0,c.checkStrictMode)(M,J,M.opts.strictTypes)}class j{constructor(J,X,ne){if((0,s.validateKeywordUsage)(J,X,ne),this.gen=J.gen,this.allErrors=J.allErrors,this.keyword=ne,this.data=J.data,this.schema=J.schema[ne],this.$data=X.$data&&J.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(J,this.schema,ne,this.$data),this.schemaType=X.schemaType,this.parentSchema=J.schema,this.params={},this.it=J,this.def=X,this.$data)this.schemaCode=J.gen.const("vSchema",te(this.$data,J));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,X.schemaType,X.allowUndefined))throw new Error(`${ne} value must be ${JSON.stringify(X.schemaType)}`);("code"in X?X.trackErrors:X.errors!==!1)&&(this.errsCount=J.gen.const("_errs",u.default.errors))}result(J,X,ne){this.failResult((0,o.not)(J),X,ne)}failResult(J,X,ne){this.gen.if(J),ne?ne():this.error(),X?(this.gen.else(),X(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(J,X){this.failResult((0,o.not)(J),void 0,X)}fail(J){if(J===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(J),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(J){if(!this.$data)return this.fail(J);const{schemaCode:X}=this;this.fail((0,o._)`${X} !== undefined && (${(0,o.or)(this.invalid$data(),J)})`)}error(J,X,ne){if(X){this.setParams(X),this._error(J,ne),this.setParams({});return}this._error(J,ne)}_error(J,X){(J?p.reportExtraError:p.reportError)(this,this.def.error,X)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(J){this.allErrors||this.gen.if(J)}setParams(J,X){X?Object.assign(this.params,J):this.params=J}block$data(J,X,ne=o.nil){this.gen.block(()=>{this.check$data(J,ne),X()})}check$data(J=o.nil,X=o.nil){if(!this.$data)return;const{gen:ne,schemaCode:le,schemaType:Ee,def:ke}=this;ne.if((0,o.or)((0,o._)`${le} === undefined`,X)),J!==o.nil&&ne.assign(J,!0),(Ee.length||ke.validateSchema)&&(ne.elseIf(this.invalid$data()),this.$dataError(),J!==o.nil&&ne.assign(J,!1)),ne.else()}invalid$data(){const{gen:J,schemaCode:X,schemaType:ne,def:le,it:Ee}=this;return(0,o.or)(ke(),ge());function ke(){if(ne.length){if(!(X instanceof o.Name))throw new Error("ajv implementation error");const xe=Array.isArray(ne)?ne:[ne];return(0,o._)`${(0,n.checkDataTypes)(xe,X,Ee.opts.strictNumbers,n.DataType.Wrong)}`}return o.nil}function ge(){if(le.validateSchema){const xe=J.scopeValue("validate$data",{ref:le.validateSchema});return(0,o._)`!${xe}(${X})`}return o.nil}}subschema(J,X){const ne=(0,a.getSubschema)(this.it,J);(0,a.extendSubschemaData)(ne,this.it,J),(0,a.extendSubschemaMode)(ne,J);const le={...this.it,...ne,items:void 0,props:void 0};return x(le,X),le}mergeEvaluated(J,X){const{it:ne,gen:le}=this;ne.opts.unevaluated&&(ne.props!==!0&&J.props!==void 0&&(ne.props=c.mergeEvaluated.props(le,J.props,ne.props,X)),ne.items!==!0&&J.items!==void 0&&(ne.items=c.mergeEvaluated.items(le,J.items,ne.items,X)))}mergeValidEvaluated(J,X){const{it:ne,gen:le}=this;if(ne.opts.unevaluated&&(ne.props!==!0||ne.items!==!0))return le.if(X,()=>this.mergeEvaluated(J,o.Name)),!0}}mi.KeywordCxt=j;function z(M,J,X,ne){const le=new j(M,X,J);"code"in X?X.code(le,ne):le.$data&&X.validate?(0,s.funcKeywordCode)(le,X):"macro"in X?(0,s.macroKeywordCode)(le,X):(X.compile||X.validate)&&(0,s.funcKeywordCode)(le,X)}const R=/^\/(?:[^~]|~0|~1)*$/,G=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function te(M,{dataLevel:J,dataNames:X,dataPathArr:ne}){let le,Ee;if(M==="")return u.default.rootData;if(M[0]==="/"){if(!R.test(M))throw new Error(`Invalid JSON-pointer: ${M}`);le=M,Ee=u.default.rootData}else{const Ne=G.exec(M);if(!Ne)throw new Error(`Invalid JSON-pointer: ${M}`);const Ge=+Ne[1];if(le=Ne[2],le==="#"){if(Ge>=J)throw new Error(xe("property/index",Ge));return ne[J-Ge]}if(Ge>J)throw new Error(xe("data",Ge));if(Ee=X[J-Ge],!le)return Ee}let ke=Ee;const ge=le.split("/");for(const Ne of ge)Ne&&(Ee=(0,o._)`${Ee}${(0,o.getProperty)((0,c.unescapeJsonPointer)(Ne))}`,ke=(0,o._)`${ke} && ${Ee}`);return ke;function xe(Ne,Ge){return`Cannot access ${Ne} ${Ge} levels up, current level is ${J}`}}return mi.getData=te,mi}var kp={},rw;function Gy(){if(rw)return kp;rw=1,Object.defineProperty(kp,"__esModule",{value:!0});class t extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return kp.default=t,kp}var Pp={},nw;function _p(){if(nw)return Pp;nw=1,Object.defineProperty(Pp,"__esModule",{value:!0});const t=wp();class e extends Error{constructor(n,i,s,a){super(a||`can't resolve reference ${s} from id ${i}`),this.missingRef=(0,t.resolveUrl)(n,i,s),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(n,this.missingRef))}}return Pp.default=e,Pp}var Vr={},iw;function Jy(){if(iw)return Vr;iw=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.resolveSchema=Vr.getCompilingSchema=Vr.resolveRef=Vr.compileSchema=Vr.SchemaEnv=void 0;const t=We(),e=Gy(),r=Zi(),n=wp(),i=Ze(),s=Sp();class a{constructor(D){var d;this.refs={},this.dynamicAnchors={};let x;typeof D.schema=="object"&&(x=D.schema),this.schema=D.schema,this.schemaId=D.schemaId,this.root=D.root||this,this.baseId=(d=D.baseId)!==null&&d!==void 0?d:(0,n.normalizeId)(x?.[D.schemaId||"$id"]),this.schemaPath=D.schemaPath,this.localRefs=D.localRefs,this.meta=D.meta,this.$async=x?.$async,this.refs={}}}Vr.SchemaEnv=a;function o(y){const D=c.call(this,y);if(D)return D;const d=(0,n.getFullPath)(this.opts.uriResolver,y.root.baseId),{es5:x,lines:A}=this.opts.code,{ownProperties:E}=this.opts,C=new t.CodeGen(this.scope,{es5:x,lines:A,ownProperties:E});let b;y.$async&&(b=C.scopeValue("Error",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const w=C.scopeName("validate");y.validateName=w;const P={gen:C,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:C.scopeValue("schema",this.opts.code.source===!0?{ref:y.schema,code:(0,t.stringify)(y.schema)}:{ref:y.schema}),validateName:w,ValidationError:b,schema:y.schema,schemaEnv:y,rootId:d,baseId:y.baseId||d,schemaPath:t.nil,errSchemaPath:y.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let F;try{this._compilations.add(y),(0,s.validateFunctionCode)(P),C.optimize(this.opts.code.optimize);const S=C.toString();F=`${C.scopeRefs(r.default.scope)}return ${S}`,this.opts.code.process&&(F=this.opts.code.process(F,y));const B=new Function(`${r.default.self}`,`${r.default.scope}`,F)(this,this.scope.get());if(this.scope.value(w,{ref:B}),B.errors=null,B.schema=y.schema,B.schemaEnv=y,y.$async&&(B.$async=!0),this.opts.code.source===!0&&(B.source={validateName:w,validateCode:S,scopeValues:C._values}),this.opts.unevaluated){const{props:O,items:_}=P;B.evaluated={props:O instanceof t.Name?void 0:O,items:_ instanceof t.Name?void 0:_,dynamicProps:O instanceof t.Name,dynamicItems:_ instanceof t.Name},B.source&&(B.source.evaluated=(0,t.stringify)(B.evaluated))}return y.validate=B,y}catch(S){throw delete y.validate,delete y.validateName,F&&this.logger.error("Error compiling schema, function code:",F),S}finally{this._compilations.delete(y)}}Vr.compileSchema=o;function u(y,D,d){var x;d=(0,n.resolveUrl)(this.opts.uriResolver,D,d);const A=y.refs[d];if(A)return A;let E=f.call(this,y,d);if(E===void 0){const C=(x=y.localRefs)===null||x===void 0?void 0:x[d],{schemaId:b}=this.opts;C&&(E=new a({schema:C,schemaId:b,root:y,baseId:D}))}if(E!==void 0)return y.refs[d]=l.call(this,E)}Vr.resolveRef=u;function l(y){return(0,n.inlineRef)(y.schema,this.opts.inlineRefs)?y.schema:y.validate?y:o.call(this,y)}function c(y){for(const D of this._compilations)if(p(D,y))return D}Vr.getCompilingSchema=c;function p(y,D){return y.schema===D.schema&&y.root===D.root&&y.baseId===D.baseId}function f(y,D){let d;for(;typeof(d=this.refs[D])=="string";)D=d;return d||this.schemas[D]||h.call(this,y,D)}function h(y,D){const d=this.opts.uriResolver.parse(D),x=(0,n._getFullPath)(this.opts.uriResolver,d);let A=(0,n.getFullPath)(this.opts.uriResolver,y.baseId,void 0);if(Object.keys(y.schema).length>0&&x===A)return g.call(this,d,y);const E=(0,n.normalizeId)(x),C=this.refs[E]||this.schemas[E];if(typeof C=="string"){const b=h.call(this,y,C);return typeof b?.schema!="object"?void 0:g.call(this,d,b)}if(typeof C?.schema=="object"){if(C.validate||o.call(this,C),E===(0,n.normalizeId)(D)){const{schema:b}=C,{schemaId:w}=this.opts,P=b[w];return P&&(A=(0,n.resolveUrl)(this.opts.uriResolver,A,P)),new a({schema:b,schemaId:w,root:y,baseId:A})}return g.call(this,d,C)}}Vr.resolveSchema=h;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(y,{baseId:D,schema:d,root:x}){var A;if(((A=y.fragment)===null||A===void 0?void 0:A[0])!=="/")return;for(const b of y.fragment.slice(1).split("/")){if(typeof d=="boolean")return;const w=d[(0,i.unescapeFragment)(b)];if(w===void 0)return;d=w;const P=typeof d=="object"&&d[this.opts.schemaId];!m.has(b)&&P&&(D=(0,n.resolveUrl)(this.opts.uriResolver,D,P))}let E;if(typeof d!="boolean"&&d.$ref&&!(0,i.schemaHasRulesButRef)(d,this.RULES)){const b=(0,n.resolveUrl)(this.opts.uriResolver,D,d.$ref);E=h.call(this,x,b)}const{schemaId:C}=this.opts;if(E=E||new a({schema:d,schemaId:C,root:x,baseId:D}),E.schema!==E.root.schema)return E}return Vr}const qre={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Bp={},sl={exports:{}},Ky,sw;function aw(){if(sw)return Ky;sw=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),e=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function r(f){let h="",m=0,g=0;for(g=0;g<f.length;g++)if(m=f[g].charCodeAt(0),m!==48){if(!(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102))return"";h+=f[g];break}for(g+=1;g<f.length;g++){if(m=f[g].charCodeAt(0),!(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102))return"";h+=f[g]}return h}const n=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function i(f){return f.length=0,!0}function s(f,h,m){if(f.length){const g=r(f);if(g!=="")h.push(g);else return m.error=!0,!1;f.length=0}return!0}function a(f){let h=0;const m={error:!1,address:"",zone:""},g=[],y=[];let D=!1,d=!1,x=s;for(let A=0;A<f.length;A++){const E=f[A];if(!(E==="["||E==="]"))if(E===":"){if(D===!0&&(d=!0),!x(y,g,m))break;if(++h>7){m.error=!0;break}A>0&&f[A-1]===":"&&(D=!0),g.push(":");continue}else if(E==="%"){if(!x(y,g,m))break;x=i}else{y.push(E);continue}}return y.length&&(x===i?m.zone=y.join(""):d?g.push(y.join("")):g.push(r(y))),m.address=g.join(""),m}function o(f){if(u(f,":")<2)return{host:f,isIPV6:!1};const h=a(f);if(h.error)return{host:f,isIPV6:!1};{let m=h.address,g=h.address;return h.zone&&(m+="%"+h.zone,g+="%25"+h.zone),{host:m,isIPV6:!0,escapedHost:g}}}function u(f,h){let m=0;for(let g=0;g<f.length;g++)f[g]===h&&m++;return m}function l(f){let h=f;const m=[];let g=-1,y=0;for(;y=h.length;){if(y===1){if(h===".")break;if(h==="/"){m.push("/");break}else{m.push(h);break}}else if(y===2){if(h[0]==="."){if(h[1]===".")break;if(h[1]==="/"){h=h.slice(2);continue}}else if(h[0]==="/"&&(h[1]==="."||h[1]==="/")){m.push("/");break}}else if(y===3&&h==="/.."){m.length!==0&&m.pop(),m.push("/");break}if(h[0]==="."){if(h[1]==="."){if(h[2]==="/"){h=h.slice(3);continue}}else if(h[1]==="/"){h=h.slice(2);continue}}else if(h[0]==="/"&&h[1]==="."){if(h[2]==="/"){h=h.slice(2);continue}else if(h[2]==="."&&h[3]==="/"){h=h.slice(3),m.length!==0&&m.pop();continue}}if((g=h.indexOf("/",1))===-1){m.push(h);break}else m.push(h.slice(0,g)),h=h.slice(g)}return m.join("")}function c(f,h){const m=h!==!0?escape:unescape;return f.scheme!==void 0&&(f.scheme=m(f.scheme)),f.userinfo!==void 0&&(f.userinfo=m(f.userinfo)),f.host!==void 0&&(f.host=m(f.host)),f.path!==void 0&&(f.path=m(f.path)),f.query!==void 0&&(f.query=m(f.query)),f.fragment!==void 0&&(f.fragment=m(f.fragment)),f}function p(f){const h=[];if(f.userinfo!==void 0&&(h.push(f.userinfo),h.push("@")),f.host!==void 0){let m=unescape(f.host);if(!e(m)){const g=o(m);g.isIPV6===!0?m=`[${g.escapedHost}]`:m=f.host}h.push(m)}return(typeof f.port=="number"||typeof f.port=="string")&&(h.push(":"),h.push(String(f.port))),h.length?h.join(""):void 0}return Ky={nonSimpleDomain:n,recomposeAuthority:p,normalizeComponentEncoding:c,removeDotSegments:l,isIPv4:e,isUUID:t,normalizeIPv6:o,stringArrayToHexStripped:r},Ky}var Yy,ow;function Ure(){if(ow)return Yy;ow=1;const{isUUID:t}=aw(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(E){return r.indexOf(E)!==-1}function i(E){return E.secure===!0?!0:E.secure===!1?!1:E.scheme?E.scheme.length===3&&(E.scheme[0]==="w"||E.scheme[0]==="W")&&(E.scheme[1]==="s"||E.scheme[1]==="S")&&(E.scheme[2]==="s"||E.scheme[2]==="S"):!1}function s(E){return E.host||(E.error=E.error||"HTTP URIs must have a host."),E}function a(E){const C=String(E.scheme).toLowerCase()==="https";return(E.port===(C?443:80)||E.port==="")&&(E.port=void 0),E.path||(E.path="/"),E}function o(E){return E.secure=i(E),E.resourceName=(E.path||"/")+(E.query?"?"+E.query:""),E.path=void 0,E.query=void 0,E}function u(E){if((E.port===(i(E)?443:80)||E.port==="")&&(E.port=void 0),typeof E.secure=="boolean"&&(E.scheme=E.secure?"wss":"ws",E.secure=void 0),E.resourceName){const[C,b]=E.resourceName.split("?");E.path=C&&C!=="/"?C:void 0,E.query=b,E.resourceName=void 0}return E.fragment=void 0,E}function l(E,C){if(!E.path)return E.error="URN can not be parsed",E;const b=E.path.match(e);if(b){const w=C.scheme||E.scheme||"urn";E.nid=b[1].toLowerCase(),E.nss=b[2];const P=`${w}:${C.nid||E.nid}`,F=A(P);E.path=void 0,F&&(E=F.parse(E,C))}else E.error=E.error||"URN can not be parsed.";return E}function c(E,C){if(E.nid===void 0)throw new Error("URN without nid cannot be serialized");const b=C.scheme||E.scheme||"urn",w=E.nid.toLowerCase(),P=`${b}:${C.nid||w}`,F=A(P);F&&(E=F.serialize(E,C));const S=E,I=E.nss;return S.path=`${w||C.nid}:${I}`,C.skipEscape=!0,S}function p(E,C){const b=E;return b.uuid=b.nss,b.nss=void 0,!C.tolerant&&(!b.uuid||!t(b.uuid))&&(b.error=b.error||"UUID is not valid."),b}function f(E){const C=E;return C.nss=(E.uuid||"").toLowerCase(),C}const h={scheme:"http",domainHost:!0,parse:s,serialize:a},m={scheme:"https",domainHost:h.domainHost,parse:s,serialize:a},g={scheme:"ws",domainHost:!0,parse:o,serialize:u},y={scheme:"wss",domainHost:g.domainHost,parse:g.parse,serialize:g.serialize},x={http:h,https:m,ws:g,wss:y,urn:{scheme:"urn",parse:l,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:p,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(x,null);function A(E){return E&&(x[E]||x[E.toLowerCase()])||void 0}return Yy={wsIsSecure:i,SCHEMES:x,isValidSchemeName:n,getSchemeHandler:A},Yy}var uw;function zre(){if(uw)return sl.exports;uw=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:r,normalizeComponentEncoding:n,isIPv4:i,nonSimpleDomain:s}=aw(),{SCHEMES:a,getSchemeHandler:o}=Ure();function u(y,D){return typeof y=="string"?y=f(m(y,D),D):typeof y=="object"&&(y=m(f(y,D),D)),y}function l(y,D,d){const x=d?Object.assign({scheme:"null"},d):{scheme:"null"},A=c(m(y,x),m(D,x),x,!0);return x.skipEscape=!0,f(A,x)}function c(y,D,d,x){const A={};return x||(y=m(f(y,d),d),D=m(f(D,d),d)),d=d||{},!d.tolerant&&D.scheme?(A.scheme=D.scheme,A.userinfo=D.userinfo,A.host=D.host,A.port=D.port,A.path=e(D.path||""),A.query=D.query):(D.userinfo!==void 0||D.host!==void 0||D.port!==void 0?(A.userinfo=D.userinfo,A.host=D.host,A.port=D.port,A.path=e(D.path||""),A.query=D.query):(D.path?(D.path[0]==="/"?A.path=e(D.path):((y.userinfo!==void 0||y.host!==void 0||y.port!==void 0)&&!y.path?A.path="/"+D.path:y.path?A.path=y.path.slice(0,y.path.lastIndexOf("/")+1)+D.path:A.path=D.path,A.path=e(A.path)),A.query=D.query):(A.path=y.path,D.query!==void 0?A.query=D.query:A.query=y.query),A.userinfo=y.userinfo,A.host=y.host,A.port=y.port),A.scheme=y.scheme),A.fragment=D.fragment,A}function p(y,D,d){return typeof y=="string"?(y=unescape(y),y=f(n(m(y,d),!0),{...d,skipEscape:!0})):typeof y=="object"&&(y=f(n(y,!0),{...d,skipEscape:!0})),typeof D=="string"?(D=unescape(D),D=f(n(m(D,d),!0),{...d,skipEscape:!0})):typeof D=="object"&&(D=f(n(D,!0),{...d,skipEscape:!0})),y.toLowerCase()===D.toLowerCase()}function f(y,D){const d={host:y.host,scheme:y.scheme,userinfo:y.userinfo,port:y.port,path:y.path,query:y.query,nid:y.nid,nss:y.nss,uuid:y.uuid,fragment:y.fragment,reference:y.reference,resourceName:y.resourceName,secure:y.secure,error:""},x=Object.assign({},D),A=[],E=o(x.scheme||d.scheme);E&&E.serialize&&E.serialize(d,x),d.path!==void 0&&(x.skipEscape?d.path=unescape(d.path):(d.path=escape(d.path),d.scheme!==void 0&&(d.path=d.path.split("%3A").join(":")))),x.reference!=="suffix"&&d.scheme&&A.push(d.scheme,":");const C=r(d);if(C!==void 0&&(x.reference!=="suffix"&&A.push("//"),A.push(C),d.path&&d.path[0]!=="/"&&A.push("/")),d.path!==void 0){let b=d.path;!x.absolutePath&&(!E||!E.absolutePath)&&(b=e(b)),C===void 0&&b[0]==="/"&&b[1]==="/"&&(b="/%2F"+b.slice(2)),A.push(b)}return d.query!==void 0&&A.push("?",d.query),d.fragment!==void 0&&A.push("#",d.fragment),A.join("")}const h=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function m(y,D){const d=Object.assign({},D),x={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let A=!1;d.reference==="suffix"&&(d.scheme?y=d.scheme+":"+y:y="//"+y);const E=y.match(h);if(E){if(x.scheme=E[1],x.userinfo=E[3],x.host=E[4],x.port=parseInt(E[5],10),x.path=E[6]||"",x.query=E[7],x.fragment=E[8],isNaN(x.port)&&(x.port=E[5]),x.host)if(i(x.host)===!1){const w=t(x.host);x.host=w.host.toLowerCase(),A=w.isIPV6}else A=!0;x.scheme===void 0&&x.userinfo===void 0&&x.host===void 0&&x.port===void 0&&x.query===void 0&&!x.path?x.reference="same-document":x.scheme===void 0?x.reference="relative":x.fragment===void 0?x.reference="absolute":x.reference="uri",d.reference&&d.reference!=="suffix"&&d.reference!==x.reference&&(x.error=x.error||"URI is not a "+d.reference+" reference.");const C=o(d.scheme||x.scheme);if(!d.unicodeSupport&&(!C||!C.unicodeSupport)&&x.host&&(d.domainHost||C&&C.domainHost)&&A===!1&&s(x.host))try{x.host=URL.domainToASCII(x.host.toLowerCase())}catch(b){x.error=x.error||"Host's domain name can not be converted to ASCII: "+b}(!C||C&&!C.skipNormalize)&&(y.indexOf("%")!==-1&&(x.scheme!==void 0&&(x.scheme=unescape(x.scheme)),x.host!==void 0&&(x.host=unescape(x.host))),x.path&&(x.path=escape(unescape(x.path))),x.fragment&&(x.fragment=encodeURI(decodeURIComponent(x.fragment)))),C&&C.parse&&C.parse(x,d)}else x.error=x.error||"URI can not be parsed.";return x}const g={SCHEMES:a,normalize:u,resolve:l,resolveComponent:c,equal:p,serialize:f,parse:m};return sl.exports=g,sl.exports.default=g,sl.exports.fastUri=g,sl.exports}var lw;function Vre(){if(lw)return Bp;lw=1,Object.defineProperty(Bp,"__esModule",{value:!0});const t=zre();return t.code='require("ajv/dist/runtime/uri").default',Bp.default=t,Bp}var cw;function Hre(){return cw||(cw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=Sp();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var r=We();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Gy(),i=_p(),s=zT(),a=Jy(),o=We(),u=wp(),l=Tp(),c=Ze(),p=qre,f=Vre(),h=(T,L)=>new RegExp(T,L);h.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},D={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},d=200;function x(T){var L,H,v,k,N,j,z,R,G,te,M,J,X,ne,le,Ee,ke,ge,xe,Ne,Ge,rt,Xe,it,yt;const Z=T.strict,ie=(L=T.code)===null||L===void 0?void 0:L.optimize,ve=ie===!0||ie===void 0?1:ie||0,Ae=(v=(H=T.code)===null||H===void 0?void 0:H.regExp)!==null&&v!==void 0?v:h,we=(k=T.uriResolver)!==null&&k!==void 0?k:f.default;return{strictSchema:(j=(N=T.strictSchema)!==null&&N!==void 0?N:Z)!==null&&j!==void 0?j:!0,strictNumbers:(R=(z=T.strictNumbers)!==null&&z!==void 0?z:Z)!==null&&R!==void 0?R:!0,strictTypes:(te=(G=T.strictTypes)!==null&&G!==void 0?G:Z)!==null&&te!==void 0?te:"log",strictTuples:(J=(M=T.strictTuples)!==null&&M!==void 0?M:Z)!==null&&J!==void 0?J:"log",strictRequired:(ne=(X=T.strictRequired)!==null&&X!==void 0?X:Z)!==null&&ne!==void 0?ne:!1,code:T.code?{...T.code,optimize:ve,regExp:Ae}:{optimize:ve,regExp:Ae},loopRequired:(le=T.loopRequired)!==null&&le!==void 0?le:d,loopEnum:(Ee=T.loopEnum)!==null&&Ee!==void 0?Ee:d,meta:(ke=T.meta)!==null&&ke!==void 0?ke:!0,messages:(ge=T.messages)!==null&&ge!==void 0?ge:!0,inlineRefs:(xe=T.inlineRefs)!==null&&xe!==void 0?xe:!0,schemaId:(Ne=T.schemaId)!==null&&Ne!==void 0?Ne:"$id",addUsedSchema:(Ge=T.addUsedSchema)!==null&&Ge!==void 0?Ge:!0,validateSchema:(rt=T.validateSchema)!==null&&rt!==void 0?rt:!0,validateFormats:(Xe=T.validateFormats)!==null&&Xe!==void 0?Xe:!0,unicodeRegExp:(it=T.unicodeRegExp)!==null&&it!==void 0?it:!0,int32range:(yt=T.int32range)!==null&&yt!==void 0?yt:!0,uriResolver:we}}class A{constructor(L={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,L=this.opts={...L,...x(L)};const{es5:H,lines:v}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:g,es5:H,lines:v}),this.logger=I(L.logger);const k=L.validateFormats;L.validateFormats=!1,this.RULES=(0,s.getRules)(),E.call(this,y,L,"NOT SUPPORTED"),E.call(this,D,L,"DEPRECATED","warn"),this._metaOpts=F.call(this),L.formats&&w.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),L.keywords&&P.call(this,L.keywords),typeof L.meta=="object"&&this.addMetaSchema(L.meta),b.call(this),L.validateFormats=k}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:L,meta:H,schemaId:v}=this.opts;let k=p;v==="id"&&(k={...p},k.id=k.$id,delete k.$id),H&&L&&this.addMetaSchema(k,k[v],!1)}defaultMeta(){const{meta:L,schemaId:H}=this.opts;return this.opts.defaultMeta=typeof L=="object"?L[H]||L:void 0}validate(L,H){let v;if(typeof L=="string"){if(v=this.getSchema(L),!v)throw new Error(`no schema with key or ref "${L}"`)}else v=this.compile(L);const k=v(H);return"$async"in v||(this.errors=v.errors),k}compile(L,H){const v=this._addSchema(L,H);return v.validate||this._compileSchemaEnv(v)}compileAsync(L,H){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:v}=this.opts;return k.call(this,L,H);async function k(te,M){await N.call(this,te.$schema);const J=this._addSchema(te,M);return J.validate||j.call(this,J)}async function N(te){te&&!this.getSchema(te)&&await k.call(this,{$ref:te},!0)}async function j(te){try{return this._compileSchemaEnv(te)}catch(M){if(!(M instanceof i.default))throw M;return z.call(this,M),await R.call(this,M.missingSchema),j.call(this,te)}}function z({missingSchema:te,missingRef:M}){if(this.refs[te])throw new Error(`AnySchema ${te} is loaded but ${M} cannot be resolved`)}async function R(te){const M=await G.call(this,te);this.refs[te]||await N.call(this,M.$schema),this.refs[te]||this.addSchema(M,te,H)}async function G(te){const M=this._loading[te];if(M)return M;try{return await(this._loading[te]=v(te))}finally{delete this._loading[te]}}}addSchema(L,H,v,k=this.opts.validateSchema){if(Array.isArray(L)){for(const j of L)this.addSchema(j,void 0,v,k);return this}let N;if(typeof L=="object"){const{schemaId:j}=this.opts;if(N=L[j],N!==void 0&&typeof N!="string")throw new Error(`schema ${j} must be string`)}return H=(0,u.normalizeId)(H||N),this._checkUnique(H),this.schemas[H]=this._addSchema(L,v,H,k,!0),this}addMetaSchema(L,H,v=this.opts.validateSchema){return this.addSchema(L,H,!0,v),this}validateSchema(L,H){if(typeof L=="boolean")return!0;let v;if(v=L.$schema,v!==void 0&&typeof v!="string")throw new Error("$schema must be a string");if(v=v||this.opts.defaultMeta||this.defaultMeta(),!v)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const k=this.validate(v,L);if(!k&&H){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return k}getSchema(L){let H;for(;typeof(H=C.call(this,L))=="string";)L=H;if(H===void 0){const{schemaId:v}=this.opts,k=new a.SchemaEnv({schema:{},schemaId:v});if(H=a.resolveSchema.call(this,k,L),!H)return;this.refs[L]=H}return H.validate||this._compileSchemaEnv(H)}removeSchema(L){if(L instanceof RegExp)return this._removeAllSchemas(this.schemas,L),this._removeAllSchemas(this.refs,L),this;switch(typeof L){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const H=C.call(this,L);return typeof H=="object"&&this._cache.delete(H.schema),delete this.schemas[L],delete this.refs[L],this}case"object":{const H=L;this._cache.delete(H);let v=L[this.opts.schemaId];return v&&(v=(0,u.normalizeId)(v),delete this.schemas[v],delete this.refs[v]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(L){for(const H of L)this.addKeyword(H);return this}addKeyword(L,H){let v;if(typeof L=="string")v=L,typeof H=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),H.keyword=v);else if(typeof L=="object"&&H===void 0){if(H=L,v=H.keyword,Array.isArray(v)&&!v.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(O.call(this,v,H),!H)return(0,c.eachItem)(v,N=>_.call(this,N)),this;Y.call(this,H);const k={...H,type:(0,l.getJSONTypes)(H.type),schemaType:(0,l.getJSONTypes)(H.schemaType)};return(0,c.eachItem)(v,k.type.length===0?N=>_.call(this,N,k):N=>k.type.forEach(j=>_.call(this,N,k,j))),this}getKeyword(L){const H=this.RULES.all[L];return typeof H=="object"?H.definition:!!H}removeKeyword(L){const{RULES:H}=this;delete H.keywords[L],delete H.all[L];for(const v of H.rules){const k=v.rules.findIndex(N=>N.keyword===L);k>=0&&v.rules.splice(k,1)}return this}addFormat(L,H){return typeof H=="string"&&(H=new RegExp(H)),this.formats[L]=H,this}errorsText(L=this.errors,{separator:H=", ",dataVar:v="data"}={}){return!L||L.length===0?"No errors":L.map(k=>`${v}${k.instancePath} ${k.message}`).reduce((k,N)=>k+H+N)}$dataMetaSchema(L,H){const v=this.RULES.all;L=JSON.parse(JSON.stringify(L));for(const k of H){const N=k.split("/").slice(1);let j=L;for(const z of N)j=j[z];for(const z in v){const R=v[z];if(typeof R!="object")continue;const{$data:G}=R.definition,te=j[z];G&&te&&(j[z]=ee(te))}}return L}_removeAllSchemas(L,H){for(const v in L){const k=L[v];(!H||H.test(v))&&(typeof k=="string"?delete L[v]:k&&!k.meta&&(this._cache.delete(k.schema),delete L[v]))}}_addSchema(L,H,v,k=this.opts.validateSchema,N=this.opts.addUsedSchema){let j;const{schemaId:z}=this.opts;if(typeof L=="object")j=L[z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof L!="boolean")throw new Error("schema must be object or boolean")}let R=this._cache.get(L);if(R!==void 0)return R;v=(0,u.normalizeId)(j||v);const G=u.getSchemaRefs.call(this,L,v);return R=new a.SchemaEnv({schema:L,schemaId:z,meta:H,baseId:v,localRefs:G}),this._cache.set(R.schema,R),N&&!v.startsWith("#")&&(v&&this._checkUnique(v),this.refs[v]=R),k&&this.validateSchema(L,!0),R}_checkUnique(L){if(this.schemas[L]||this.refs[L])throw new Error(`schema with key or id "${L}" already exists`)}_compileSchemaEnv(L){if(L.meta?this._compileMetaSchema(L):a.compileSchema.call(this,L),!L.validate)throw new Error("ajv implementation error");return L.validate}_compileMetaSchema(L){const H=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,L)}finally{this.opts=H}}}A.ValidationError=n.default,A.MissingRefError=i.default,t.default=A;function E(T,L,H,v="error"){for(const k in T){const N=k;N in L&&this.logger[v](`${H}: option ${k}. ${T[N]}`)}}function C(T){return T=(0,u.normalizeId)(T),this.schemas[T]||this.refs[T]}function b(){const T=this.opts.schemas;if(T)if(Array.isArray(T))this.addSchema(T);else for(const L in T)this.addSchema(T[L],L)}function w(){for(const T in this.opts.formats){const L=this.opts.formats[T];L&&this.addFormat(T,L)}}function P(T){if(Array.isArray(T)){this.addVocabulary(T);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const L in T){const H=T[L];H.keyword||(H.keyword=L),this.addKeyword(H)}}function F(){const T={...this.opts};for(const L of m)delete T[L];return T}const S={log(){},warn(){},error(){}};function I(T){if(T===!1)return S;if(T===void 0)return console;if(T.log&&T.warn&&T.error)return T;throw new Error("logger must implement log, warn and error methods")}const B=/^[a-z_$][a-z0-9_$:-]*$/i;function O(T,L){const{RULES:H}=this;if((0,c.eachItem)(T,v=>{if(H.keywords[v])throw new Error(`Keyword ${v} is already defined`);if(!B.test(v))throw new Error(`Keyword ${v} has invalid name`)}),!!L&&L.$data&&!("code"in L||"validate"in L))throw new Error('$data keyword must have "code" or "validate" function')}function _(T,L,H){var v;const k=L?.post;if(H&&k)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let j=k?N.post:N.rules.find(({type:R})=>R===H);if(j||(j={type:H,rules:[]},N.rules.push(j)),N.keywords[T]=!0,!L)return;const z={keyword:T,definition:{...L,type:(0,l.getJSONTypes)(L.type),schemaType:(0,l.getJSONTypes)(L.schemaType)}};L.before?$.call(this,j,z,L.before):j.rules.push(z),N.all[T]=z,(v=L.implements)===null||v===void 0||v.forEach(R=>this.addKeyword(R))}function $(T,L,H){const v=T.rules.findIndex(k=>k.keyword===H);v>=0?T.rules.splice(v,0,L):(T.rules.push(L),this.logger.warn(`rule ${H} is not defined`))}function Y(T){let{metaSchema:L}=T;L!==void 0&&(T.$data&&this.opts.$data&&(L=ee(L)),T.validateSchema=this.compile(L,!0))}const V={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ee(T){return{anyOf:[T,V]}}})(jy)),jy}var Np={},$p={},Ip={},pw;function Wre(){if(pw)return Ip;pw=1,Object.defineProperty(Ip,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Ip.default=t,Ip}var es={},hw;function Gre(){if(hw)return es;hw=1,Object.defineProperty(es,"__esModule",{value:!0}),es.callRef=es.getValidate=void 0;const t=_p(),e=Dn(),r=We(),n=Zi(),i=Jy(),s=Ze(),a={keyword:"$ref",schemaType:"string",code(l){const{gen:c,schema:p,it:f}=l,{baseId:h,schemaEnv:m,validateName:g,opts:y,self:D}=f,{root:d}=m;if((p==="#"||p==="#/")&&h===d.baseId)return A();const x=i.resolveRef.call(D,d,h,p);if(x===void 0)throw new t.default(f.opts.uriResolver,h,p);if(x instanceof i.SchemaEnv)return E(x);return C(x);function A(){if(m===d)return u(l,g,m,m.$async);const b=c.scopeValue("root",{ref:d});return u(l,(0,r._)`${b}.validate`,d,d.$async)}function E(b){const w=o(l,b);u(l,w,b,b.$async)}function C(b){const w=c.scopeValue("schema",y.code.source===!0?{ref:b,code:(0,r.stringify)(b)}:{ref:b}),P=c.name("valid"),F=l.subschema({schema:b,dataTypes:[],schemaPath:r.nil,topSchemaRef:w,errSchemaPath:p},P);l.mergeEvaluated(F),l.ok(P)}}};function o(l,c){const{gen:p}=l;return c.validate?p.scopeValue("validate",{ref:c.validate}):(0,r._)`${p.scopeValue("wrapper",{ref:c})}.validate`}es.getValidate=o;function u(l,c,p,f){const{gen:h,it:m}=l,{allErrors:g,schemaEnv:y,opts:D}=m,d=D.passContext?n.default.this:r.nil;f?x():A();function x(){if(!y.$async)throw new Error("async schema referenced by sync schema");const b=h.let("valid");h.try(()=>{h.code((0,r._)`await ${(0,e.callValidateCode)(l,c,d)}`),C(c),g||h.assign(b,!0)},w=>{h.if((0,r._)`!(${w} instanceof ${m.ValidationError})`,()=>h.throw(w)),E(w),g||h.assign(b,!1)}),l.ok(b)}function A(){l.result((0,e.callValidateCode)(l,c,d),()=>C(c),()=>E(c))}function E(b){const w=(0,r._)`${b}.errors`;h.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${w} : ${n.default.vErrors}.concat(${w})`),h.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function C(b){var w;if(!m.opts.unevaluated)return;const P=(w=p?.validate)===null||w===void 0?void 0:w.evaluated;if(m.props!==!0)if(P&&!P.dynamicProps)P.props!==void 0&&(m.props=s.mergeEvaluated.props(h,P.props,m.props));else{const F=h.var("props",(0,r._)`${b}.evaluated.props`);m.props=s.mergeEvaluated.props(h,F,m.props,r.Name)}if(m.items!==!0)if(P&&!P.dynamicItems)P.items!==void 0&&(m.items=s.mergeEvaluated.items(h,P.items,m.items));else{const F=h.var("items",(0,r._)`${b}.evaluated.items`);m.items=s.mergeEvaluated.items(h,F,m.items,r.Name)}}}return es.callRef=u,es.default=a,es}var fw;function Jre(){if(fw)return $p;fw=1,Object.defineProperty($p,"__esModule",{value:!0});const t=Wre(),e=Gre(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return $p.default=r,$p}var Op={},Lp={},dw;function Kre(){if(dw)return Lp;dw=1,Object.defineProperty(Lp,"__esModule",{value:!0});const t=We(),e=t.operators,r={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},n={message:({keyword:s,schemaCode:a})=>(0,t.str)`must be ${r[s].okStr} ${a}`,params:({keyword:s,schemaCode:a})=>(0,t._)`{comparison: ${r[s].okStr}, limit: ${a}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{keyword:a,data:o,schemaCode:u}=s;s.fail$data((0,t._)`${o} ${r[a].fail} ${u} || isNaN(${o})`)}};return Lp.default=i,Lp}var Mp={},mw;function Yre(){if(mw)return Mp;mw=1,Object.defineProperty(Mp,"__esModule",{value:!0});const t=We(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,t._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:s,schemaCode:a,it:o}=n,u=o.opts.multipleOfPrecision,l=i.let("res"),c=u?(0,t._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${u}`:(0,t._)`${l} !== parseInt(${l})`;n.fail$data((0,t._)`(${a} === 0 || (${l} = ${s}/${a}, ${c}))`)}};return Mp.default=r,Mp}var Rp={},jp={},gw;function Xre(){if(gw)return jp;gw=1,Object.defineProperty(jp,"__esModule",{value:!0});function t(e){const r=e.length;let n=0,i=0,s;for(;i<r;)n++,s=e.charCodeAt(i++),s>=55296&&s<=56319&&i<r&&(s=e.charCodeAt(i),(s&64512)===56320&&i++);return n}return jp.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',jp}var yw;function Qre(){if(yw)return Rp;yw=1,Object.defineProperty(Rp,"__esModule",{value:!0});const t=We(),e=Ze(),r=Xre(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:a}){const o=s==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${o} than ${a} characters`},params:({schemaCode:s})=>(0,t._)`{limit: ${s}}`},code(s){const{keyword:a,data:o,schemaCode:u,it:l}=s,c=a==="maxLength"?t.operators.GT:t.operators.LT,p=l.opts.unicode===!1?(0,t._)`${o}.length`:(0,t._)`${(0,e.useFunc)(s.gen,r.default)}(${o})`;s.fail$data((0,t._)`${p} ${c} ${u}`)}};return Rp.default=i,Rp}var qp={},Dw;function Zre(){if(Dw)return qp;Dw=1,Object.defineProperty(qp,"__esModule",{value:!0});const t=Dn(),e=We(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,e._)`{pattern: ${i}}`},code(i){const{data:s,$data:a,schema:o,schemaCode:u,it:l}=i,c=l.opts.unicodeRegExp?"u":"",p=a?(0,e._)`(new RegExp(${u}, ${c}))`:(0,t.usePattern)(i,o);i.fail$data((0,e._)`!${p}.test(${s})`)}};return qp.default=n,qp}var Up={},Ew;function ene(){if(Ew)return Up;Ew=1,Object.defineProperty(Up,"__esModule",{value:!0});const t=We(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const s=n==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${s} than ${i} properties`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:i,data:s,schemaCode:a}=n,o=i==="maxProperties"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`Object.keys(${s}).length ${o} ${a}`)}};return Up.default=r,Up}var zp={},xw;function tne(){if(xw)return zp;xw=1,Object.defineProperty(zp,"__esModule",{value:!0});const t=Dn(),e=We(),r=Ze(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,e.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,e._)`{missingProperty: ${s}}`},code(s){const{gen:a,schema:o,schemaCode:u,data:l,$data:c,it:p}=s,{opts:f}=p;if(!c&&o.length===0)return;const h=o.length>=f.loopRequired;if(p.allErrors?m():g(),f.strictRequired){const d=s.parentSchema.properties,{definedProperties:x}=s.it;for(const A of o)if(d?.[A]===void 0&&!x.has(A)){const E=p.schemaEnv.baseId+p.errSchemaPath,C=`required property "${A}" is not defined at "${E}" (strictRequired)`;(0,r.checkStrictMode)(p,C,p.opts.strictRequired)}}function m(){if(h||c)s.block$data(e.nil,y);else for(const d of o)(0,t.checkReportMissingProp)(s,d)}function g(){const d=a.let("missing");if(h||c){const x=a.let("valid",!0);s.block$data(x,()=>D(d,x)),s.ok(x)}else a.if((0,t.checkMissingProp)(s,o,d)),(0,t.reportMissingProp)(s,d),a.else()}function y(){a.forOf("prop",u,d=>{s.setParams({missingProperty:d}),a.if((0,t.noPropertyInData)(a,l,d,f.ownProperties),()=>s.error())})}function D(d,x){s.setParams({missingProperty:d}),a.forOf(d,u,()=>{a.assign(x,(0,t.propertyInData)(a,l,d,f.ownProperties)),a.if((0,e.not)(x),()=>{s.error(),a.break()})},e.nil)}}};return zp.default=i,zp}var Vp={},Cw;function rne(){if(Cw)return Vp;Cw=1,Object.defineProperty(Vp,"__esModule",{value:!0});const t=We(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const s=n==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${s} than ${i} items`},params:({schemaCode:n})=>(0,t._)`{limit: ${n}}`},code(n){const{keyword:i,data:s,schemaCode:a}=n,o=i==="maxItems"?t.operators.GT:t.operators.LT;n.fail$data((0,t._)`${s}.length ${o} ${a}`)}};return Vp.default=r,Vp}var Hp={},Wp={},Aw;function Xy(){if(Aw)return Wp;Aw=1,Object.defineProperty(Wp,"__esModule",{value:!0});const t=QT();return t.code='require("ajv/dist/runtime/equal").default',Wp.default=t,Wp}var bw;function nne(){if(bw)return Hp;bw=1,Object.defineProperty(Hp,"__esModule",{value:!0});const t=Tp(),e=We(),r=Ze(),n=Xy(),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:a,j:o}})=>(0,e.str)`must NOT have duplicate items (items ## ${o} and ${a} are identical)`,params:({params:{i:a,j:o}})=>(0,e._)`{i: ${a}, j: ${o}}`},code(a){const{gen:o,data:u,$data:l,schema:c,parentSchema:p,schemaCode:f,it:h}=a;if(!l&&!c)return;const m=o.let("valid"),g=p.items?(0,t.getSchemaTypes)(p.items):[];a.block$data(m,y,(0,e._)`${f} === false`),a.ok(m);function y(){const A=o.let("i",(0,e._)`${u}.length`),E=o.let("j");a.setParams({i:A,j:E}),o.assign(m,!0),o.if((0,e._)`${A} > 1`,()=>(D()?d:x)(A,E))}function D(){return g.length>0&&!g.some(A=>A==="object"||A==="array")}function d(A,E){const C=o.name("item"),b=(0,t.checkDataTypes)(g,C,h.opts.strictNumbers,t.DataType.Wrong),w=o.const("indices",(0,e._)`{}`);o.for((0,e._)`;${A}--;`,()=>{o.let(C,(0,e._)`${u}[${A}]`),o.if(b,(0,e._)`continue`),g.length>1&&o.if((0,e._)`typeof ${C} == "string"`,(0,e._)`${C} += "_"`),o.if((0,e._)`typeof ${w}[${C}] == "number"`,()=>{o.assign(E,(0,e._)`${w}[${C}]`),a.error(),o.assign(m,!1).break()}).code((0,e._)`${w}[${C}] = ${A}`)})}function x(A,E){const C=(0,r.useFunc)(o,n.default),b=o.name("outer");o.label(b).for((0,e._)`;${A}--;`,()=>o.for((0,e._)`${E} = ${A}; ${E}--;`,()=>o.if((0,e._)`${C}(${u}[${A}], ${u}[${E}])`,()=>{a.error(),o.assign(m,!1).break(b)})))}}};return Hp.default=s,Hp}var Gp={},vw;function ine(){if(vw)return Gp;vw=1,Object.defineProperty(Gp,"__esModule",{value:!0});const t=We(),e=Ze(),r=Xy(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:s})=>(0,t._)`{allowedValue: ${s}}`},code(s){const{gen:a,data:o,$data:u,schemaCode:l,schema:c}=s;u||c&&typeof c=="object"?s.fail$data((0,t._)`!${(0,e.useFunc)(a,r.default)}(${o}, ${l})`):s.fail((0,t._)`${c} !== ${o}`)}};return Gp.default=i,Gp}var Jp={},Fw;function sne(){if(Fw)return Jp;Fw=1,Object.defineProperty(Jp,"__esModule",{value:!0});const t=We(),e=Ze(),r=Xy(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:s})=>(0,t._)`{allowedValues: ${s}}`},code(s){const{gen:a,data:o,$data:u,schema:l,schemaCode:c,it:p}=s;if(!u&&l.length===0)throw new Error("enum must have non-empty array");const f=l.length>=p.opts.loopEnum;let h;const m=()=>h??(h=(0,e.useFunc)(a,r.default));let g;if(f||u)g=a.let("valid"),s.block$data(g,y);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const d=a.const("vSchema",c);g=(0,t.or)(...l.map((x,A)=>D(d,A)))}s.pass(g);function y(){a.assign(g,!1),a.forOf("v",c,d=>a.if((0,t._)`${m()}(${o}, ${d})`,()=>a.assign(g,!0).break()))}function D(d,x){const A=l[x];return typeof A=="object"&&A!==null?(0,t._)`${m()}(${o}, ${d}[${x}])`:(0,t._)`${o} === ${A}`}}};return Jp.default=i,Jp}var Tw;function ane(){if(Tw)return Op;Tw=1,Object.defineProperty(Op,"__esModule",{value:!0});const t=Kre(),e=Yre(),r=Qre(),n=Zre(),i=ene(),s=tne(),a=rne(),o=nne(),u=ine(),l=sne(),c=[t.default,e.default,r.default,n.default,i.default,s.default,a.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,l.default];return Op.default=c,Op}var Kp={},ro={},ww;function Sw(){if(ww)return ro;ww=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.validateAdditionalItems=void 0;const t=We(),e=Ze(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,t.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,t._)`{limit: ${s}}`},code(s){const{parentSchema:a,it:o}=s,{items:u}=a;if(!Array.isArray(u)){(0,e.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(s,u)}};function i(s,a){const{gen:o,schema:u,data:l,keyword:c,it:p}=s;p.items=!0;const f=o.const("len",(0,t._)`${l}.length`);if(u===!1)s.setParams({len:a.length}),s.pass((0,t._)`${f} <= ${a.length}`);else if(typeof u=="object"&&!(0,e.alwaysValidSchema)(p,u)){const m=o.var("valid",(0,t._)`${f} <= ${a.length}`);o.if((0,t.not)(m),()=>h(m)),s.ok(m)}function h(m){o.forRange("i",a.length,f,g=>{s.subschema({keyword:c,dataProp:g,dataPropType:e.Type.Num},m),p.allErrors||o.if((0,t.not)(m),()=>o.break())})}}return ro.validateAdditionalItems=i,ro.default=n,ro}var Yp={},no={},kw;function Pw(){if(kw)return no;kw=1,Object.defineProperty(no,"__esModule",{value:!0}),no.validateTuple=void 0;const t=We(),e=Ze(),r=Dn(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:a,it:o}=s;if(Array.isArray(a))return i(s,"additionalItems",a);o.items=!0,!(0,e.alwaysValidSchema)(o,a)&&s.ok((0,r.validateArray)(s))}};function i(s,a,o=s.schema){const{gen:u,parentSchema:l,data:c,keyword:p,it:f}=s;g(l),f.opts.unevaluated&&o.length&&f.items!==!0&&(f.items=e.mergeEvaluated.items(u,o.length,f.items));const h=u.name("valid"),m=u.const("len",(0,t._)`${c}.length`);o.forEach((y,D)=>{(0,e.alwaysValidSchema)(f,y)||(u.if((0,t._)`${m} > ${D}`,()=>s.subschema({keyword:p,schemaProp:D,dataProp:D},h)),s.ok(h))});function g(y){const{opts:D,errSchemaPath:d}=f,x=o.length,A=x===y.minItems&&(x===y.maxItems||y[a]===!1);if(D.strictTuples&&!A){const E=`"${p}" is ${x}-tuple, but minItems or maxItems/${a} are not specified or different at path "${d}"`;(0,e.checkStrictMode)(f,E,D.strictTuples)}}}return no.validateTuple=i,no.default=n,no}var _w;function one(){if(_w)return Yp;_w=1,Object.defineProperty(Yp,"__esModule",{value:!0});const t=Pw(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,t.validateTuple)(r,"items")};return Yp.default=e,Yp}var Xp={},Bw;function une(){if(Bw)return Xp;Bw=1,Object.defineProperty(Xp,"__esModule",{value:!0});const t=We(),e=Ze(),r=Dn(),n=Sw(),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,t.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,t._)`{limit: ${a}}`},code(a){const{schema:o,parentSchema:u,it:l}=a,{prefixItems:c}=u;l.items=!0,!(0,e.alwaysValidSchema)(l,o)&&(c?(0,n.validateAdditionalItems)(a,c):a.ok((0,r.validateArray)(a)))}};return Xp.default=s,Xp}var Qp={},Nw;function lne(){if(Nw)return Qp;Nw=1,Object.defineProperty(Qp,"__esModule",{value:!0});const t=We(),e=Ze(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:s}})=>s===void 0?(0,t.str)`must contain at least ${i} valid item(s)`:(0,t.str)`must contain at least ${i} and no more than ${s} valid item(s)`,params:({params:{min:i,max:s}})=>s===void 0?(0,t._)`{minContains: ${i}}`:(0,t._)`{minContains: ${i}, maxContains: ${s}}`},code(i){const{gen:s,schema:a,parentSchema:o,data:u,it:l}=i;let c,p;const{minContains:f,maxContains:h}=o;l.opts.next?(c=f===void 0?1:f,p=h):c=1;const m=s.const("len",(0,t._)`${u}.length`);if(i.setParams({min:c,max:p}),p===void 0&&c===0){(0,e.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&c>p){(0,e.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,e.alwaysValidSchema)(l,a)){let x=(0,t._)`${m} >= ${c}`;p!==void 0&&(x=(0,t._)`${x} && ${m} <= ${p}`),i.pass(x);return}l.items=!0;const g=s.name("valid");p===void 0&&c===1?D(g,()=>s.if(g,()=>s.break())):c===0?(s.let(g,!0),p!==void 0&&s.if((0,t._)`${u}.length > 0`,y)):(s.let(g,!1),y()),i.result(g,()=>i.reset());function y(){const x=s.name("_valid"),A=s.let("count",0);D(x,()=>s.if(x,()=>d(A)))}function D(x,A){s.forRange("i",0,m,E=>{i.subschema({keyword:"contains",dataProp:E,dataPropType:e.Type.Num,compositeRule:!0},x),A()})}function d(x){s.code((0,t._)`${x}++`),p===void 0?s.if((0,t._)`${x} >= ${c}`,()=>s.assign(g,!0).break()):(s.if((0,t._)`${x} > ${p}`,()=>s.assign(g,!1).break()),c===1?s.assign(g,!0):s.if((0,t._)`${x} >= ${c}`,()=>s.assign(g,!0)))}}};return Qp.default=n,Qp}var Qy={},$w;function cne(){return $w||($w=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=We(),r=Ze(),n=Dn();t.error={message:({params:{property:u,depsCount:l,deps:c}})=>{const p=l===1?"property":"properties";return(0,e.str)`must have ${p} ${c} when property ${u} is present`},params:({params:{property:u,depsCount:l,deps:c,missingProperty:p}})=>(0,e._)`{property: ${u},
|
|
289
|
+
missingProperty: ${p},
|
|
290
|
+
depsCount: ${l},
|
|
291
|
+
deps: ${c}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(u){const[l,c]=s(u);a(u,l),o(u,c)}};function s({schema:u}){const l={},c={};for(const p in u){if(p==="__proto__")continue;const f=Array.isArray(u[p])?l:c;f[p]=u[p]}return[l,c]}function a(u,l=u.schema){const{gen:c,data:p,it:f}=u;if(Object.keys(l).length===0)return;const h=c.let("missing");for(const m in l){const g=l[m];if(g.length===0)continue;const y=(0,n.propertyInData)(c,p,m,f.opts.ownProperties);u.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),f.allErrors?c.if(y,()=>{for(const D of g)(0,n.checkReportMissingProp)(u,D)}):(c.if((0,e._)`${y} && (${(0,n.checkMissingProp)(u,g,h)})`),(0,n.reportMissingProp)(u,h),c.else())}}t.validatePropertyDeps=a;function o(u,l=u.schema){const{gen:c,data:p,keyword:f,it:h}=u,m=c.name("valid");for(const g in l)(0,r.alwaysValidSchema)(h,l[g])||(c.if((0,n.propertyInData)(c,p,g,h.opts.ownProperties),()=>{const y=u.subschema({keyword:f,schemaProp:g},m);u.mergeValidEvaluated(y,m)},()=>c.var(m,!0)),u.ok(m))}t.validateSchemaDeps=o,t.default=i})(Qy)),Qy}var Zp={},Iw;function pne(){if(Iw)return Zp;Iw=1,Object.defineProperty(Zp,"__esModule",{value:!0});const t=We(),e=Ze(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,t._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:s,schema:a,data:o,it:u}=i;if((0,e.alwaysValidSchema)(u,a))return;const l=s.name("valid");s.forIn("key",o,c=>{i.setParams({propertyName:c}),i.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},l),s.if((0,t.not)(l),()=>{i.error(!0),u.allErrors||s.break()})}),i.ok(l)}};return Zp.default=n,Zp}var eh={},Ow;function Lw(){if(Ow)return eh;Ow=1,Object.defineProperty(eh,"__esModule",{value:!0});const t=Dn(),e=We(),r=Zi(),n=Ze(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:a})=>(0,e._)`{additionalProperty: ${a.additionalProperty}}`},code(a){const{gen:o,schema:u,parentSchema:l,data:c,errsCount:p,it:f}=a;if(!p)throw new Error("ajv implementation error");const{allErrors:h,opts:m}=f;if(f.props=!0,m.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(f,u))return;const g=(0,t.allSchemaProperties)(l.properties),y=(0,t.allSchemaProperties)(l.patternProperties);D(),a.ok((0,e._)`${p} === ${r.default.errors}`);function D(){o.forIn("key",c,C=>{!g.length&&!y.length?A(C):o.if(d(C),()=>A(C))})}function d(C){let b;if(g.length>8){const w=(0,n.schemaRefOrVal)(f,l.properties,"properties");b=(0,t.isOwnProperty)(o,w,C)}else g.length?b=(0,e.or)(...g.map(w=>(0,e._)`${C} === ${w}`)):b=e.nil;return y.length&&(b=(0,e.or)(b,...y.map(w=>(0,e._)`${(0,t.usePattern)(a,w)}.test(${C})`))),(0,e.not)(b)}function x(C){o.code((0,e._)`delete ${c}[${C}]`)}function A(C){if(m.removeAdditional==="all"||m.removeAdditional&&u===!1){x(C);return}if(u===!1){a.setParams({additionalProperty:C}),a.error(),h||o.break();return}if(typeof u=="object"&&!(0,n.alwaysValidSchema)(f,u)){const b=o.name("valid");m.removeAdditional==="failing"?(E(C,b,!1),o.if((0,e.not)(b),()=>{a.reset(),x(C)})):(E(C,b),h||o.if((0,e.not)(b),()=>o.break()))}}function E(C,b,w){const P={keyword:"additionalProperties",dataProp:C,dataPropType:n.Type.Str};w===!1&&Object.assign(P,{compositeRule:!0,createErrors:!1,allErrors:!1}),a.subschema(P,b)}}};return eh.default=s,eh}var th={},Mw;function hne(){if(Mw)return th;Mw=1,Object.defineProperty(th,"__esModule",{value:!0});const t=Sp(),e=Dn(),r=Ze(),n=Lw(),i={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:a,schema:o,parentSchema:u,data:l,it:c}=s;c.opts.removeAdditional==="all"&&u.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(c,n.default,"additionalProperties"));const p=(0,e.allSchemaProperties)(o);for(const y of p)c.definedProperties.add(y);c.opts.unevaluated&&p.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(a,(0,r.toHash)(p),c.props));const f=p.filter(y=>!(0,r.alwaysValidSchema)(c,o[y]));if(f.length===0)return;const h=a.name("valid");for(const y of f)m(y)?g(y):(a.if((0,e.propertyInData)(a,l,y,c.opts.ownProperties)),g(y),c.allErrors||a.else().var(h,!0),a.endIf()),s.it.definedProperties.add(y),s.ok(h);function m(y){return c.opts.useDefaults&&!c.compositeRule&&o[y].default!==void 0}function g(y){s.subschema({keyword:"properties",schemaProp:y,dataProp:y},h)}}};return th.default=i,th}var rh={},Rw;function fne(){if(Rw)return rh;Rw=1,Object.defineProperty(rh,"__esModule",{value:!0});const t=Dn(),e=We(),r=Ze(),n=Ze(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:a,schema:o,data:u,parentSchema:l,it:c}=s,{opts:p}=c,f=(0,t.allSchemaProperties)(o),h=f.filter(A=>(0,r.alwaysValidSchema)(c,o[A]));if(f.length===0||h.length===f.length&&(!c.opts.unevaluated||c.props===!0))return;const m=p.strictSchema&&!p.allowMatchingProperties&&l.properties,g=a.name("valid");c.props!==!0&&!(c.props instanceof e.Name)&&(c.props=(0,n.evaluatedPropsToName)(a,c.props));const{props:y}=c;D();function D(){for(const A of f)m&&d(A),c.allErrors?x(A):(a.var(g,!0),x(A),a.if(g))}function d(A){for(const E in m)new RegExp(A).test(E)&&(0,r.checkStrictMode)(c,`property ${E} matches pattern ${A} (use allowMatchingProperties)`)}function x(A){a.forIn("key",u,E=>{a.if((0,e._)`${(0,t.usePattern)(s,A)}.test(${E})`,()=>{const C=h.includes(A);C||s.subschema({keyword:"patternProperties",schemaProp:A,dataProp:E,dataPropType:n.Type.Str},g),c.opts.unevaluated&&y!==!0?a.assign((0,e._)`${y}[${E}]`,!0):!C&&!c.allErrors&&a.if((0,e.not)(g),()=>a.break())})})}}};return rh.default=i,rh}var nh={},jw;function dne(){if(jw)return nh;jw=1,Object.defineProperty(nh,"__esModule",{value:!0});const t=Ze(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:s}=r;if((0,t.alwaysValidSchema)(s,i)){r.fail();return}const a=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),r.failResult(a,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return nh.default=e,nh}var ih={},qw;function mne(){if(qw)return ih;qw=1,Object.defineProperty(ih,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dn().validateUnion,error:{message:"must match a schema in anyOf"}};return ih.default=e,ih}var sh={},Uw;function gne(){if(Uw)return sh;Uw=1,Object.defineProperty(sh,"__esModule",{value:!0});const t=We(),e=Ze(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,t._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:s,schema:a,parentSchema:o,it:u}=i;if(!Array.isArray(a))throw new Error("ajv implementation error");if(u.opts.discriminator&&o.discriminator)return;const l=a,c=s.let("valid",!1),p=s.let("passing",null),f=s.name("_valid");i.setParams({passing:p}),s.block(h),i.result(c,()=>i.reset(),()=>i.error(!0));function h(){l.forEach((m,g)=>{let y;(0,e.alwaysValidSchema)(u,m)?s.var(f,!0):y=i.subschema({keyword:"oneOf",schemaProp:g,compositeRule:!0},f),g>0&&s.if((0,t._)`${f} && ${c}`).assign(c,!1).assign(p,(0,t._)`[${p}, ${g}]`).else(),s.if(f,()=>{s.assign(c,!0),s.assign(p,g),y&&i.mergeEvaluated(y,t.Name)})})}}};return sh.default=n,sh}var ah={},zw;function yne(){if(zw)return ah;zw=1,Object.defineProperty(ah,"__esModule",{value:!0});const t=Ze(),e={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:s}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const a=n.name("valid");i.forEach((o,u)=>{if((0,t.alwaysValidSchema)(s,o))return;const l=r.subschema({keyword:"allOf",schemaProp:u},a);r.ok(a),r.mergeEvaluated(l)})}};return ah.default=e,ah}var oh={},Vw;function Dne(){if(Vw)return oh;Vw=1,Object.defineProperty(oh,"__esModule",{value:!0});const t=We(),e=Ze(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,t.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,t._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:a,parentSchema:o,it:u}=s;o.then===void 0&&o.else===void 0&&(0,e.checkStrictMode)(u,'"if" without "then" and "else" is ignored');const l=i(u,"then"),c=i(u,"else");if(!l&&!c)return;const p=a.let("valid",!0),f=a.name("_valid");if(h(),s.reset(),l&&c){const g=a.let("ifClause");s.setParams({ifClause:g}),a.if(f,m("then",g),m("else",g))}else l?a.if(f,m("then")):a.if((0,t.not)(f),m("else"));s.pass(p,()=>s.error(!0));function h(){const g=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);s.mergeEvaluated(g)}function m(g,y){return()=>{const D=s.subschema({keyword:g},f);a.assign(p,f),s.mergeValidEvaluated(D,p),y?a.assign(y,(0,t._)`${g}`):s.setParams({ifClause:g})}}}};function i(s,a){const o=s.schema[a];return o!==void 0&&!(0,e.alwaysValidSchema)(s,o)}return oh.default=n,oh}var uh={},Hw;function Ene(){if(Hw)return uh;Hw=1,Object.defineProperty(uh,"__esModule",{value:!0});const t=Ze(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,t.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return uh.default=e,uh}var Ww;function xne(){if(Ww)return Kp;Ww=1,Object.defineProperty(Kp,"__esModule",{value:!0});const t=Sw(),e=one(),r=Pw(),n=une(),i=lne(),s=cne(),a=pne(),o=Lw(),u=hne(),l=fne(),c=dne(),p=mne(),f=gne(),h=yne(),m=Dne(),g=Ene();function y(D=!1){const d=[c.default,p.default,f.default,h.default,m.default,g.default,a.default,o.default,s.default,u.default,l.default];return D?d.push(e.default,n.default):d.push(t.default,r.default),d.push(i.default),d}return Kp.default=y,Kp}var lh={},ch={},Gw;function Cne(){if(Gw)return ch;Gw=1,Object.defineProperty(ch,"__esModule",{value:!0});const t=We(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,t._)`{format: ${n}}`},code(n,i){const{gen:s,data:a,$data:o,schema:u,schemaCode:l,it:c}=n,{opts:p,errSchemaPath:f,schemaEnv:h,self:m}=c;if(!p.validateFormats)return;o?g():y();function g(){const D=s.scopeValue("formats",{ref:m.formats,code:p.code.formats}),d=s.const("fDef",(0,t._)`${D}[${l}]`),x=s.let("fType"),A=s.let("format");s.if((0,t._)`typeof ${d} == "object" && !(${d} instanceof RegExp)`,()=>s.assign(x,(0,t._)`${d}.type || "string"`).assign(A,(0,t._)`${d}.validate`),()=>s.assign(x,(0,t._)`"string"`).assign(A,d)),n.fail$data((0,t.or)(E(),C()));function E(){return p.strictSchema===!1?t.nil:(0,t._)`${l} && !${A}`}function C(){const b=h.$async?(0,t._)`(${d}.async ? await ${A}(${a}) : ${A}(${a}))`:(0,t._)`${A}(${a})`,w=(0,t._)`(typeof ${A} == "function" ? ${b} : ${A}.test(${a}))`;return(0,t._)`${A} && ${A} !== true && ${x} === ${i} && !${w}`}}function y(){const D=m.formats[u];if(!D){E();return}if(D===!0)return;const[d,x,A]=C(D);d===i&&n.pass(b());function E(){if(p.strictSchema===!1){m.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${u}" ignored in schema at path "${f}"`}}function C(w){const P=w instanceof RegExp?(0,t.regexpCode)(w):p.code.formats?(0,t._)`${p.code.formats}${(0,t.getProperty)(u)}`:void 0,F=s.scopeValue("formats",{key:u,ref:w,code:P});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,t._)`${F}.validate`]:["string",w,F]}function b(){if(typeof D=="object"&&!(D instanceof RegExp)&&D.async){if(!h.$async)throw new Error("async format in sync schema");return(0,t._)`await ${A}(${a})`}return typeof x=="function"?(0,t._)`${A}(${a})`:(0,t._)`${A}.test(${a})`}}}};return ch.default=r,ch}var Jw;function Ane(){if(Jw)return lh;Jw=1,Object.defineProperty(lh,"__esModule",{value:!0});const e=[Cne().default];return lh.default=e,lh}var zs={},Kw;function bne(){return Kw||(Kw=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.contentVocabulary=zs.metadataVocabulary=void 0,zs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],zs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),zs}var Yw;function vne(){if(Yw)return Np;Yw=1,Object.defineProperty(Np,"__esModule",{value:!0});const t=Jre(),e=ane(),r=xne(),n=Ane(),i=bne(),s=[t.default,e.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Np.default=s,Np}var ph={},al={},Xw;function Fne(){if(Xw)return al;Xw=1,Object.defineProperty(al,"__esModule",{value:!0}),al.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(al.DiscrError=t={})),al}var Qw;function Tne(){if(Qw)return ph;Qw=1,Object.defineProperty(ph,"__esModule",{value:!0});const t=We(),e=Fne(),r=Jy(),n=_p(),i=Ze(),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:u}})=>o===e.DiscrError.Tag?`tag "${u}" must be string`:`value of tag "${u}" must be in oneOf`,params:({params:{discrError:o,tag:u,tagName:l}})=>(0,t._)`{error: ${o}, tag: ${l}, tagValue: ${u}}`},code(o){const{gen:u,data:l,schema:c,parentSchema:p,it:f}=o,{oneOf:h}=p;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const m=c.propertyName;if(typeof m!="string")throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!h)throw new Error("discriminator: requires oneOf keyword");const g=u.let("valid",!1),y=u.const("tag",(0,t._)`${l}${(0,t.getProperty)(m)}`);u.if((0,t._)`typeof ${y} == "string"`,()=>D(),()=>o.error(!1,{discrError:e.DiscrError.Tag,tag:y,tagName:m})),o.ok(g);function D(){const A=x();u.if(!1);for(const E in A)u.elseIf((0,t._)`${y} === ${E}`),u.assign(g,d(A[E]));u.else(),o.error(!1,{discrError:e.DiscrError.Mapping,tag:y,tagName:m}),u.endIf()}function d(A){const E=u.name("valid"),C=o.subschema({keyword:"oneOf",schemaProp:A},E);return o.mergeEvaluated(C,t.Name),E}function x(){var A;const E={},C=w(p);let b=!0;for(let S=0;S<h.length;S++){let I=h[S];if(I?.$ref&&!(0,i.schemaHasRulesButRef)(I,f.self.RULES)){const O=I.$ref;if(I=r.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,O),I instanceof r.SchemaEnv&&(I=I.schema),I===void 0)throw new n.default(f.opts.uriResolver,f.baseId,O)}const B=(A=I?.properties)===null||A===void 0?void 0:A[m];if(typeof B!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${m}"`);b=b&&(C||w(I)),P(B,S)}if(!b)throw new Error(`discriminator: "${m}" must be required`);return E;function w({required:S}){return Array.isArray(S)&&S.includes(m)}function P(S,I){if(S.const)F(S.const,I);else if(S.enum)for(const B of S.enum)F(B,I);else throw new Error(`discriminator: "properties/${m}" must have "const" or "enum"`)}function F(S,I){if(typeof S!="string"||S in E)throw new Error(`discriminator: "${m}" values must be unique strings`);E[S]=I}}}};return ph.default=a,ph}const wne={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var Zw;function Sne(){return Zw||(Zw=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const r=Hre(),n=vne(),i=Tne(),s=wne,a=["/properties"],o="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(m,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}e.Ajv=u,t.exports=e=u,t.exports.Ajv=u,Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=Sp();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var c=We();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var p=Gy();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return p.default}});var f=_p();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Ap,Ap.exports)),Ap.exports}var kne=Sne();const Pne=gl(kne);var eS=typeof global=="object"&&global&&global.Object===Object&&global,_ne=typeof self=="object"&&self&&self.Object===Object&&self,io=eS||_ne||Function("return this")(),hh=io.Symbol,tS=Object.prototype,Bne=tS.hasOwnProperty,Nne=tS.toString,ol=hh?hh.toStringTag:void 0;function $ne(t){var e=Bne.call(t,ol),r=t[ol];try{t[ol]=void 0;var n=!0}catch{}var i=Nne.call(t);return n&&(e?t[ol]=r:delete t[ol]),i}var Ine=Object.prototype,One=Ine.toString;function Lne(t){return One.call(t)}var Mne="[object Null]",Rne="[object Undefined]",rS=hh?hh.toStringTag:void 0;function fh(t){return t==null?t===void 0?Rne:Mne:rS&&rS in Object(t)?$ne(t):Lne(t)}function ul(t){return t!=null&&typeof t=="object"}var Zy=Array.isArray;function Vs(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function nS(t){return t}var jne="[object AsyncFunction]",qne="[object Function]",Une="[object GeneratorFunction]",zne="[object Proxy]";function eD(t){if(!Vs(t))return!1;var e=fh(t);return e==qne||e==Une||e==jne||e==zne}var tD=io["__core-js_shared__"],iS=(function(){var t=/[^.]+$/.exec(tD&&tD.keys&&tD.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Vne(t){return!!iS&&iS in t}var Hne=Function.prototype,Wne=Hne.toString;function Gne(t){if(t!=null){try{return Wne.call(t)}catch{}try{return t+""}catch{}}return""}var Jne=/[\\^$.*+?()[\]{}|]/g,Kne=/^\[object .+?Constructor\]$/,Yne=Function.prototype,Xne=Object.prototype,Qne=Yne.toString,Zne=Xne.hasOwnProperty,eie=RegExp("^"+Qne.call(Zne).replace(Jne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tie(t){if(!Vs(t)||Vne(t))return!1;var e=eD(t)?eie:Kne;return e.test(Gne(t))}function rie(t,e){return t?.[e]}function rD(t,e){var r=rie(t,e);return tie(r)?r:void 0}var sS=Object.create,nie=(function(){function t(){}return function(e){if(!Vs(e))return{};if(sS)return sS(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();function iie(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function sie(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var aie=800,oie=16,uie=Date.now;function lie(t){var e=0,r=0;return function(){var n=uie(),i=oie-(n-r);if(r=n,i>0){if(++e>=aie)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function cie(t){return function(){return t}}var dh=(function(){try{var t=rD(Object,"defineProperty");return t({},"",{}),t}catch{}})(),pie=dh?function(t,e){return dh(t,"toString",{configurable:!0,enumerable:!1,value:cie(e),writable:!0})}:nS,hie=lie(pie),fie=9007199254740991,die=/^(?:0|[1-9]\d*)$/;function aS(t,e){var r=typeof t;return e=e??fie,!!e&&(r=="number"||r!="symbol"&&die.test(t))&&t>-1&&t%1==0&&t<e}function nD(t,e,r){e=="__proto__"&&dh?dh(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function mh(t,e){return t===e||t!==t&&e!==e}var mie=Object.prototype,gie=mie.hasOwnProperty;function yie(t,e,r){var n=t[e];(!(gie.call(t,e)&&mh(n,r))||r===void 0&&!(e in t))&&nD(t,e,r)}function Die(t,e,r,n){var i=!r;r||(r={});for(var s=-1,a=e.length;++s<a;){var o=e[s],u=void 0;u===void 0&&(u=t[o]),i?nD(r,o,u):yie(r,o,u)}return r}var oS=Math.max;function Eie(t,e,r){return e=oS(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,s=oS(n.length-e,0),a=Array(s);++i<s;)a[i]=n[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=n[i];return o[e]=r(a),iie(t,this,o)}}function xie(t,e){return hie(Eie(t,e,nS),t+"")}var Cie=9007199254740991;function uS(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cie}function iD(t){return t!=null&&uS(t.length)&&!eD(t)}function Aie(t,e,r){if(!Vs(r))return!1;var n=typeof e;return(n=="number"?iD(r)&&aS(e,r.length):n=="string"&&e in r)?mh(r[e],t):!1}function bie(t){return xie(function(e,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,a&&Aie(r[0],r[1],a)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var o=r[n];o&&t(e,o,n,s)}return e})}var vie=Object.prototype;function lS(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||vie;return t===r}function Fie(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Tie="[object Arguments]";function cS(t){return ul(t)&&fh(t)==Tie}var pS=Object.prototype,wie=pS.hasOwnProperty,Sie=pS.propertyIsEnumerable,sD=cS((function(){return arguments})())?cS:function(t){return ul(t)&&wie.call(t,"callee")&&!Sie.call(t,"callee")};function kie(){return!1}var hS=typeof wt=="object"&&wt&&!wt.nodeType&&wt,fS=hS&&typeof module=="object"&&module&&!module.nodeType&&module,Pie=fS&&fS.exports===hS,dS=Pie?io.Buffer:void 0,_ie=dS?dS.isBuffer:void 0,mS=_ie||kie,Bie="[object Arguments]",Nie="[object Array]",$ie="[object Boolean]",Iie="[object Date]",Oie="[object Error]",Lie="[object Function]",Mie="[object Map]",Rie="[object Number]",jie="[object Object]",qie="[object RegExp]",Uie="[object Set]",zie="[object String]",Vie="[object WeakMap]",Hie="[object ArrayBuffer]",Wie="[object DataView]",Gie="[object Float32Array]",Jie="[object Float64Array]",Kie="[object Int8Array]",Yie="[object Int16Array]",Xie="[object Int32Array]",Qie="[object Uint8Array]",Zie="[object Uint8ClampedArray]",ese="[object Uint16Array]",tse="[object Uint32Array]",dt={};dt[Gie]=dt[Jie]=dt[Kie]=dt[Yie]=dt[Xie]=dt[Qie]=dt[Zie]=dt[ese]=dt[tse]=!0,dt[Bie]=dt[Nie]=dt[Hie]=dt[$ie]=dt[Wie]=dt[Iie]=dt[Oie]=dt[Lie]=dt[Mie]=dt[Rie]=dt[jie]=dt[qie]=dt[Uie]=dt[zie]=dt[Vie]=!1;function rse(t){return ul(t)&&uS(t.length)&&!!dt[fh(t)]}function nse(t){return function(e){return t(e)}}var gS=typeof wt=="object"&&wt&&!wt.nodeType&&wt,ll=gS&&typeof module=="object"&&module&&!module.nodeType&&module,ise=ll&&ll.exports===gS,aD=ise&&eS.process,yS=(function(){try{var t=ll&&ll.require&&ll.require("util").types;return t||aD&&aD.binding&&aD.binding("util")}catch{}})(),DS=yS&&yS.isTypedArray,ES=DS?nse(DS):rse;function sse(t,e){var r=Zy(t),n=!r&&sD(t),i=!r&&!n&&mS(t),s=!r&&!n&&!i&&ES(t),a=r||n||i||s,o=a?Fie(t.length,String):[],u=o.length;for(var l in t)a&&(l=="length"||i&&(l=="offset"||l=="parent")||s&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||aS(l,u))||o.push(l);return o}function ase(t,e){return function(r){return t(e(r))}}function ose(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var use=Object.prototype,lse=use.hasOwnProperty;function cse(t){if(!Vs(t))return ose(t);var e=lS(t),r=[];for(var n in t)n=="constructor"&&(e||!lse.call(t,n))||r.push(n);return r}function xS(t){return iD(t)?sse(t):cse(t)}var cl=rD(Object,"create");function pse(){this.__data__=cl?cl(null):{},this.size=0}function hse(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var fse="__lodash_hash_undefined__",dse=Object.prototype,mse=dse.hasOwnProperty;function gse(t){var e=this.__data__;if(cl){var r=e[t];return r===fse?void 0:r}return mse.call(e,t)?e[t]:void 0}var yse=Object.prototype,Dse=yse.hasOwnProperty;function Ese(t){var e=this.__data__;return cl?e[t]!==void 0:Dse.call(e,t)}var xse="__lodash_hash_undefined__";function Cse(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=cl&&e===void 0?xse:e,this}function Hs(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Hs.prototype.clear=pse,Hs.prototype.delete=hse,Hs.prototype.get=gse,Hs.prototype.has=Ese,Hs.prototype.set=Cse;function Ase(){this.__data__=[],this.size=0}function gh(t,e){for(var r=t.length;r--;)if(mh(t[r][0],e))return r;return-1}var bse=Array.prototype,vse=bse.splice;function Fse(t){var e=this.__data__,r=gh(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():vse.call(e,r,1),--this.size,!0}function Tse(t){var e=this.__data__,r=gh(e,t);return r<0?void 0:e[r][1]}function wse(t){return gh(this.__data__,t)>-1}function Sse(t,e){var r=this.__data__,n=gh(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Di(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Di.prototype.clear=Ase,Di.prototype.delete=Fse,Di.prototype.get=Tse,Di.prototype.has=wse,Di.prototype.set=Sse;var CS=rD(io,"Map");function kse(){this.size=0,this.__data__={hash:new Hs,map:new(CS||Di),string:new Hs}}function Pse(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function yh(t,e){var r=t.__data__;return Pse(e)?r[typeof e=="string"?"string":"hash"]:r.map}function _se(t){var e=yh(this,t).delete(t);return this.size-=e?1:0,e}function Bse(t){return yh(this,t).get(t)}function Nse(t){return yh(this,t).has(t)}function $se(t,e){var r=yh(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function so(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}so.prototype.clear=kse,so.prototype.delete=_se,so.prototype.get=Bse,so.prototype.has=Nse,so.prototype.set=$se;var AS=ase(Object.getPrototypeOf,Object),Ise="[object Object]",Ose=Function.prototype,Lse=Object.prototype,bS=Ose.toString,Mse=Lse.hasOwnProperty,Rse=bS.call(Object);function jse(t){if(!ul(t)||fh(t)!=Ise)return!1;var e=AS(t);if(e===null)return!0;var r=Mse.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&bS.call(r)==Rse}function qse(){this.__data__=new Di,this.size=0}function Use(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function zse(t){return this.__data__.get(t)}function Vse(t){return this.__data__.has(t)}var Hse=200;function Wse(t,e){var r=this.__data__;if(r instanceof Di){var n=r.__data__;if(!CS||n.length<Hse-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new so(n)}return r.set(t,e),this.size=r.size,this}function ao(t){var e=this.__data__=new Di(t);this.size=e.size}ao.prototype.clear=qse,ao.prototype.delete=Use,ao.prototype.get=zse,ao.prototype.has=Vse,ao.prototype.set=Wse;var vS=typeof wt=="object"&&wt&&!wt.nodeType&&wt,FS=vS&&typeof module=="object"&&module&&!module.nodeType&&module,Gse=FS&&FS.exports===vS,TS=Gse?io.Buffer:void 0;TS&&TS.allocUnsafe;function Jse(t,e){return t.slice()}var wS=io.Uint8Array;function Kse(t){var e=new t.constructor(t.byteLength);return new wS(e).set(new wS(t)),e}function Yse(t,e){var r=Kse(t.buffer);return new t.constructor(r,t.byteOffset,t.length)}function Xse(t){return typeof t.constructor=="function"&&!lS(t)?nie(AS(t)):{}}function Qse(t){return function(e,r,n){for(var i=-1,s=Object(e),a=n(e),o=a.length;o--;){var u=a[++i];if(r(s[u],u,s)===!1)break}return e}}var Zse=Qse();function oD(t,e,r){(r!==void 0&&!mh(t[e],r)||r===void 0&&!(e in t))&&nD(t,e,r)}function eae(t){return ul(t)&&iD(t)}function uD(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function tae(t){return Die(t,xS(t))}function rae(t,e,r,n,i,s,a){var o=uD(t,r),u=uD(e,r),l=a.get(u);if(l){oD(t,r,l);return}var c=s?s(o,u,r+"",t,e,a):void 0,p=c===void 0;if(p){var f=Zy(u),h=!f&&mS(u),m=!f&&!h&&ES(u);c=u,f||h||m?Zy(o)?c=o:eae(o)?c=sie(o):h?(p=!1,c=Jse(u)):m?(p=!1,c=Yse(u)):c=[]:jse(u)||sD(u)?(c=o,sD(o)?c=tae(o):(!Vs(o)||eD(o))&&(c=Xse(u))):p=!1}p&&(a.set(u,c),i(c,u,n,s,a),a.delete(u)),oD(t,r,c)}function SS(t,e,r,n,i){t!==e&&Zse(e,function(s,a){if(i||(i=new ao),Vs(s))rae(t,e,a,r,SS,n,i);else{var o=n?n(uD(t,a),s,a+"",t,e,i):void 0;o===void 0&&(o=s),oD(t,a,o)}},xS)}var nae=bie(function(t,e,r,n){SS(t,e,r,n)});let En=null;function lD(){En&&(En.abort(),En=null)}class iae{tools=Object.create(null);ajv=new Pne({allErrors:!0,strict:!1,allowUnionTypes:!0});validatorCache=Object.create(null);register(e,r){if(this.tools[e.function.name])throw new Error(`${e.function.name} 已存在`);this.tools[e.function.name]={def:e,handler:r}}getDefinition(e){return this.tools[e]?.def}getHandler(e){return this.tools[e]?.handler}remove(e){delete this.tools[e],delete this.validatorCache[e]}get definitions(){return Object.values(this.tools).map(e=>e.def)}getDefinitions(e){return e.map(r=>this.getDefinition(r)).filter(r=>!!r)}getValidator(e,r){return this.validatorCache[e]||(this.validatorCache[e]=this.ajv.compile(r)),this.validatorCache[e]}validate(e,r){const n=this.tools[e];if(!n)throw new Error(`${e} 未注册`);const i=n.def.function.parameters,s=this.getValidator(e,i);if(!s(r)){const a=this.ajv.errorsText(s.errors,{separator:", "});throw new Error(`参数验证失败: ${a}`)}return!0}async call(e,r){this.validate(e,r);const n=this.getHandler(e);if(!n)throw new Error(`${e} 没有 handler`);return n(r)}}class sae extends iae{model="";url="";messages=[];maxRounds=4;defaultParams={tools:[],roundsLeft:this.maxRounds};constructor(e){super();const{model:r,url:n,systemMessageContent:i,maxRounds:s}=e;this.model=r,this.url=n,typeof s=="number"&&(this.maxRounds=s),i&&(this.messages[0]={role:"system",content:i})}pushMessage(e){e&&this.messages.push(e)}pushMessages(e){if(e.length)for(const r of e)this.pushMessage(r)}merge(e,r,n=[]){return nae({},e,r,(i,s,a)=>{if(n.includes(a))return(typeof i=="string"?i:"")+(typeof s=="string"?s:"")})}async invoke(e=this.defaultParams){const{tools:r=[],roundsLeft:n=this.maxRounds}=e;lD(),En=new AbortController;try{const i=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,messages:this.messages,tools:this.getDefinitions(r),stream:!1}),signal:En.signal});if(En.signal.aborted)throw new DOMException("请求已被取消","AbortError");const a=(await i.json())?.choices?.[0]?.message;if(!a)return;a.role===null&&(a.role="assistant");const{content:o,role:u,tool_calls:l}=a;if(!l?.length)return a;o&&(zr.pushLoadingMessage(),requestAnimationFrame(()=>zr.updateLoadingMessageContent(o)),zr.finishLoadingMessage()),this.messages.push({content:o,role:u,tool_calls:l});const c=l.map(async p=>{const{function:{name:f,arguments:h},id:m}=p,g=await this.call(f,JSON.parse(h));this.messages.push({content:g,role:"tool",tool_call_id:m})});if(await Promise.all(c),n-1>0)return zr.pushLoadingMessage(),await this.invoke({tools:[],roundsLeft:n-1})}finally{En=null}}async*invokeStream(e=this.defaultParams){const{tools:r=[],roundsLeft:n=this.maxRounds}=e;lD(),En=new AbortController;try{const i=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,messages:this.messages,tools:this.getDefinitions(r),stream:!0}),signal:En.signal});if(En.signal.aborted)throw new DOMException("请求已被取消","AbortError");const s=i.body?.getReader();if(!s)throw new Error("Failed to get response reader");let a=null;const o=new TextDecoder;let u="";for(;;){const{done:m,value:g}=await s.read();if(m)break;const D=o.decode(g,{stream:!0}).split(`
|
|
292
|
+
|
|
293
|
+
`).filter(d=>d.trim()!=="");for(const d of D){if(d==="data: [DONE]")break;const x=d.trim().replace(/^data: /,"");try{const A=JSON.parse(u+x);a=this.merge(a,A,["content","arguments"]),yield A,u=""}catch(A){console.log("JSON 解析失败,等待下一个数据块继续拼接",{error:A,jsonStr:x}),u+=x}}}const l=a?.choices?.[0]?.delta;if(!l)return;l.role===null&&(l.role="assistant");const{content:c,role:p,tool_calls:f}=l;if(!f?.length)return l;this.messages.push({content:c,role:p,tool_calls:f});const h=f.map(async m=>{const{function:{name:g,arguments:y},id:D}=m,d=await this.call(g,JSON.parse(y));this.messages.push({content:d,role:"tool",tool_call_id:D})});if(await Promise.all(h),n-1>0)return this.invokeStream({tools:[],roundsLeft:n-1})}finally{En=null}}}const aae=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML},kS=async()=>{if(js.value)try{const t=aae(js.value);Ry.chatting(),js.clear();const e={role:"user",content:t};zr.pushMessage(e),await cD.emit("send",e)}finally{Ry.default(),js.focus()}},oae=()=>{lD(),Ry.default(),js.focus()},uae=async()=>{zr.clear(),Ire.show("新聊天已创建"),js.focus(),await cD.emit("create")};function lae(){const{submitIcon:t,createButton:e,messagesContainer:r,userInputContainer:n,userInput:i,stopIcon:s}=pr();n.addEventListener("click",a=>{!t.contains(a.target)&&!s.contains(a.target)&&js.focus()}),i.addEventListener("keydown",a=>{a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),kS())}),t.addEventListener("click",kS),s.addEventListener("click",oae),e.addEventListener("click",uae),r.addEventListener("click",function(a){const o=a.target,u=o.closest('[data-action="copy"]'),l=o.closest(".reasoning-header");if(u&&!u.classList.contains("copied")){a.stopPropagation();const c=u.closest(".message");if(!c)return;const p=c.querySelector(".content-container");if(!p)return;const f=p.textContent;if(!f)return;u.classList.add("copied"),navigator.clipboard.writeText(f).catch(h=>{console.error("Failed to copy text: ",h)}).finally(()=>{setTimeout(()=>{u.classList.remove("copied")},1500)})}if(l){const c=l.parentElement;c&&c.classList.toggle("collapse")}})}class cae{events={send:[],create:[]};on=(e,r)=>{this.events[e].push(r)};emit=async(e,...r)=>{for(const n of this.events[e])try{await n(...r)}catch(i){console.error(`Error in event listener for ${e}:`,i)}}}const cD=new cae,pae=t=>{Nre(t),lae(),zr.setPaddingBottom()},hae=["button{outline:0;border:0;display:flex;justify-content:center;align-items:center;cursor:pointer}button.icon{padding:4px}button.text{padding:0 12px;height:28px}button.square{border-radius:6px}button.circle{border-radius:50%}button.primary{background-color:#0000000a}button.plain{background-color:transparent}button.error{background-color:#ff4d4f;color:#fff}button.primary:hover{background-color:#0000000f}button.plain:hover{background-color:#0000000a}button.error:hover{background-color:#ff7875}button[data-action=copy] .copied-text{display:none}button[data-action=copy].copied .copied-text{display:block}button[data-action=copy].copied svg{display:none}",".tooltip{position:relative}.tooltip .tooltip-text{visibility:hidden;opacity:0;background-color:#000000b3;color:#fff;border-radius:4px;padding:4px 8px;position:absolute;z-index:1;white-space:nowrap;font-size:12px;transition:opacity .3s}.tooltip .tooltip-text.top-left{bottom:115%;right:0}.tooltip .tooltip-text.top-right{bottom:115%;left:0}.tooltip .tooltip-text.bottom-left{top:115%;right:0}.tooltip .tooltip-text.bottom-right{top:115%;left:0}.tooltip:hover .tooltip-text{visibility:visible;opacity:1}",".alert{position:absolute;left:50%;transform:translate(-50%);background-color:#fff;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;z-index:1000;pointer-events:all;padding:9px 12px;animation:slide 3s ease-in-out forwards;font-size:12px;white-space:nowrap}@keyframes slide{0%{top:0;opacity:0}10%{top:50px;opacity:1}75%{top:50px;opacity:1}to{top:0;opacity:0}}",'.loading-dots{font-weight:700;margin-left:3px}.loading-dots:after{content:"";animation:typing 1.5s infinite}@keyframes typing{0%{content:"."}33%{content:".."}66%{content:"..."}to{content:"."}}',".app-container{height:100%;display:flex;flex-direction:column;background:#fff}.bottom-container{margin:12px}.action-bar{margin-bottom:12px;display:flex;align-items:center;gap:12px}.user-input-container{padding:12px;border-radius:16px;border:1px solid rgba(114,118,139,.16);box-shadow:0 10px 30px #0003;display:flex;flex-direction:column}.user-input{border:0;resize:none;width:100%;font-size:14px;line-height:1.5}.button-wrap{display:flex;justify-content:flex-end;align-items:center;gap:12px}.messages-container{flex:1;padding-top:12px;padding-left:12px;padding-right:12px;overflow-x:hidden;overflow-y:auto}.message{max-width:80%;margin-bottom:12px;font-size:14px;line-height:1.5}.body-container{padding:0 14px;border-radius:8px;overflow-x:auto;color:#000}.message.user{margin-left:auto}.message.user .body-container{background:#e3f2fd}.message.assistant{margin-right:auto}.message.assistant .body-container{background:#f1f1f1}.button-container{display:flex;margin-top:4px}.button-container button{height:26px;display:flex;align-items:center}.message.user .button-container{justify-content:flex-end}.message.assistant .button-container{justify-content:flex-start}.submit-icon,.stop-icon{width:28px;height:28px;display:flex;justify-content:center;align-items:center;background-color:#000;border-radius:50%;color:#fff}.content-container{word-wrap:break-word}.message.assistant table{border-collapse:collapse;margin-block-start:1em;margin-block-end:1em}.message.assistant table th,.message.assistant table td{border:1px solid #ccc;padding:8px}.message.assistant table th{background-color:#e0e0e0}.message.assistant .reasoning-container{padding:0 14px;border-radius:8px;overflow-x:auto;color:#6b7280;background-color:#f9fafb;font-size:12px;margin-bottom:8px}.message.assistant .reasoning-container .reasoning-header{display:flex;align-items:center;gap:4px;padding-top:8px;margin-bottom:8px;cursor:pointer}.message.assistant .reasoning-container .reasoning-header svg{transform:rotate(90deg);transition:transform .3s}.message.assistant .reasoning-container.collapse .reasoning-header svg{transform:rotate(0);transition:transform .3s}.message.assistant .reasoning-container.collapse .reasoning-content{height:0;overflow:hidden}","*{box-sizing:border-box}textarea{padding:0}textarea:focus-visible,select:focus-visible{outline:0}.flex{display:flex}:host{position:relative}"].join(`
|
|
294
|
+
`),PS=document.createElement("template");PS.innerHTML=`
|
|
295
|
+
<style>${hae}</style>
|
|
296
|
+
<div class="app-container">
|
|
297
|
+
<div class="messages-container" id="messages-container"></div>
|
|
298
|
+
<div class="bottom-container">
|
|
299
|
+
<div class="action-bar">
|
|
300
|
+
<button class="icon square plain tooltip" id="create-button" type="button" aria-label="新聊天">
|
|
301
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 1024 1024"><path d="M597.333 128v85.333H170.667v571.094l75.221-59.094h607.445V426.667h85.334V768A42.667 42.667 0 0 1 896 810.667H275.413L85.333 960V170.667A42.667 42.667 0 0 1 128 128h469.333zm213.334 0V0H896v128h128v85.333H896v128h-85.333v-128h-128V128h128z"/></svg>
|
|
302
|
+
<span class="tooltip-text bottom-right">新聊天</span>
|
|
303
|
+
</button>
|
|
304
|
+
</div>
|
|
305
|
+
<div class="user-input-container" id="user-input-container">
|
|
306
|
+
<textarea class="user-input" id="user-input" placeholder="Enter -> 发送 Shift + Enter -> 换行"></textarea>
|
|
307
|
+
<div class="button-wrap">
|
|
308
|
+
<button class="icon square plain tooltip" id="submit-icon" type="button" aria-label="发送">
|
|
309
|
+
<div class="submit-icon">
|
|
310
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"><path d="M9 16V6.414L5.707 9.707a1 1 0 1 1-1.414-1.414l5-5 .076-.068a1 1 0 0 1 1.338.068l5 5 .068.076a1 1 0 0 1-1.406 1.406l-.076-.068L11 6.414V16a1 1 0 1 1-2 0Z"/></svg>
|
|
311
|
+
</div>
|
|
312
|
+
<span class="tooltip-text top-left">发送 (↵)</span>
|
|
313
|
+
</button>
|
|
314
|
+
<button style="display: none;" class="icon square plain tooltip" id="stop-icon" type="button" aria-label="停止">
|
|
315
|
+
<div class="stop-icon">
|
|
316
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"><path d="M4.5 5.75c0-.69.56-1.25 1.25-1.25h8.5c.69 0 1.25.56 1.25 1.25v8.5c0 .69-.56 1.25-1.25 1.25h-8.5c-.69 0-1.25-.56-1.25-1.25v-8.5Z"/></svg>
|
|
317
|
+
</div>
|
|
318
|
+
<span class="tooltip-text top-left">停止</span>
|
|
319
|
+
</button>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
`;var tt;(function(t){t[t.AM=0]="AM",t[t.PM=1]="PM"})(tt||(tt={}));var Et;(function(t){t[t.SUNDAY=0]="SUNDAY",t[t.MONDAY=1]="MONDAY",t[t.TUESDAY=2]="TUESDAY",t[t.WEDNESDAY=3]="WEDNESDAY",t[t.THURSDAY=4]="THURSDAY",t[t.FRIDAY=5]="FRIDAY",t[t.SATURDAY=6]="SATURDAY"})(Et||(Et={}));var nn;(function(t){t[t.JANUARY=1]="JANUARY",t[t.FEBRUARY=2]="FEBRUARY",t[t.MARCH=3]="MARCH",t[t.APRIL=4]="APRIL",t[t.MAY=5]="MAY",t[t.JUNE=6]="JUNE",t[t.JULY=7]="JULY",t[t.AUGUST=8]="AUGUST",t[t.SEPTEMBER=9]="SEPTEMBER",t[t.OCTOBER=10]="OCTOBER",t[t.NOVEMBER=11]="NOVEMBER",t[t.DECEMBER=12]="DECEMBER"})(nn||(nn={}));function Ws(t,e){t.assign("day",e.getDate()),t.assign("month",e.getMonth()+1),t.assign("year",e.getFullYear())}function _S(t,e){t.assign("hour",e.getHours()),t.assign("minute",e.getMinutes()),t.assign("second",e.getSeconds()),t.assign("millisecond",e.getMilliseconds()),t.assign("meridiem",e.getHours()<12?tt.AM:tt.PM)}function oo(t,e){t.imply("day",e.getDate()),t.imply("month",e.getMonth()+1),t.imply("year",e.getFullYear())}function pD(t,e){t.imply("hour",e.getHours()),t.imply("minute",e.getMinutes()),t.imply("second",e.getSeconds()),t.imply("millisecond",e.getMilliseconds()),t.imply("meridiem",e.getHours()<12?tt.AM:tt.PM)}const fae={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:t=>BS(t,nn.MARCH,Et.SUNDAY,2),dstEnd:t=>BS(t,nn.OCTOBER,Et.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:t=>ts(t,nn.MARCH,Et.SUNDAY,2,2),dstEnd:t=>ts(t,nn.NOVEMBER,Et.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:t=>ts(t,nn.MARCH,Et.SUNDAY,2,2),dstEnd:t=>ts(t,nn.NOVEMBER,Et.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:t=>ts(t,nn.MARCH,Et.SUNDAY,2,2),dstEnd:t=>ts(t,nn.NOVEMBER,Et.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:t=>ts(t,nn.MARCH,Et.SUNDAY,2,2),dstEnd:t=>ts(t,nn.NOVEMBER,Et.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function ts(t,e,r,n,i=0){let s=0,a=0;for(;a<n;)s++,new Date(t,e-1,s).getDay()===r&&a++;return new Date(t,e-1,s,i)}function BS(t,e,r,n=0){const i=r===0?7:r,s=new Date(t,e-1+1,1,12),a=s.getDay()===0?7:s.getDay();let o;return a===i?o=7:a<i?o=7+a-i:o=a-i,s.setDate(s.getDate()-o),new Date(t,e-1,s.getDate(),n)}function NS(t,e,r={}){if(t==null)return null;if(typeof t=="number")return t;const n=r[t]??fae[t];return n==null?null:typeof n=="number"?n:e==null?null:e>n.dstStart(e.getFullYear())&&!(e>n.dstEnd(e.getFullYear()))?n.timezoneOffsetDuringDst:n.timezoneOffsetNonDst}const dae={day:0,second:0,millisecond:0};function jt(t,e){let r=new Date(t);if(e.y&&(e.year=e.y,delete e.y),e.mo&&(e.month=e.mo,delete e.mo),e.M&&(e.month=e.M,delete e.M),e.w&&(e.week=e.w,delete e.w),e.d&&(e.day=e.d,delete e.d),e.h&&(e.hour=e.h,delete e.h),e.m&&(e.minute=e.m,delete e.m),e.s&&(e.second=e.s,delete e.s),e.ms&&(e.millisecond=e.ms,delete e.ms),"year"in e){const n=Math.floor(e.year);r.setFullYear(r.getFullYear()+n);const i=e.year-n;i>0&&(e.month=e?.month??0,e.month+=i*12)}if("quarter"in e){const n=Math.floor(e.quarter);r.setMonth(r.getMonth()+n*3)}if("month"in e){const n=Math.floor(e.month);r.setMonth(r.getMonth()+n);const i=e.month-n;i>0&&(e.week=e?.week??0,e.week+=i*4)}if("week"in e){const n=Math.floor(e.week);r.setDate(r.getDate()+n*7);const i=e.week-n;i>0&&(e.day=e?.day??0,e.day+=Math.round(i*7))}if("day"in e){const n=Math.floor(e.day);r.setDate(r.getDate()+n);const i=e.day-n;i>0&&(e.hour=e?.hour??0,e.hour+=Math.round(i*24))}if("hour"in e){const n=Math.floor(e.hour);r.setHours(r.getHours()+n);const i=e.hour-n;i>0&&(e.minute=e?.minute??0,e.minute+=Math.round(i*60))}if("minute"in e){const n=Math.floor(e.minute);r.setMinutes(r.getMinutes()+n);const i=e.minute-n;i>0&&(e.second=e?.second??0,e.second+=Math.round(i*60))}if("second"in e){const n=Math.floor(e.second);r.setSeconds(r.getSeconds()+n);const i=e.second-n;i>0&&(e.millisecond=e?.millisecond??0,e.millisecond+=Math.round(i*1e3))}if("millisecond"in e){const n=Math.floor(e.millisecond);r.setMilliseconds(r.getMilliseconds()+n)}return r}function Dh(t){const e={};for(const r in t)e[r]=-t[r];return e}class Gs{instant;timezoneOffset;constructor(e,r){this.instant=e??new Date,this.timezoneOffset=r??null}static fromDate(e){return new Gs(e)}static fromInput(e,r){if(e instanceof Date)return Gs.fromDate(e);const n=e?.instant??new Date,i=NS(e?.timezone,n,r);return new Gs(n,i)}getDateWithAdjustedTimezone(){const e=new Date(this.instant);return this.timezoneOffset!==null&&e.setMinutes(e.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),e}getSystemTimezoneAdjustmentMinute(e,r){(!e||e.getTime()<0)&&(e=new Date);const n=-e.getTimezoneOffset(),i=r??this.timezoneOffset??n;return n-i}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}}class mt{knownValues;impliedValues;reference;_tags=new Set;constructor(e,r){if(this.reference=e,this.knownValues={},this.impliedValues={},r)for(const i in r)this.knownValues[i]=r[i];const n=e.getDateWithAdjustedTimezone();this.imply("day",n.getDate()),this.imply("month",n.getMonth()+1),this.imply("year",n.getFullYear()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}static createRelativeFromReference(e,r=dae){let n=jt(e.getDateWithAdjustedTimezone(),r);const i=new mt(e);return i.addTag("result/relativeDate"),"hour"in r||"minute"in r||"second"in r||"millisecond"in r?(i.addTag("result/relativeDateAndTime"),_S(i,n),Ws(i,n),i.assign("timezoneOffset",e.getTimezoneOffset())):(pD(i,n),i.imply("timezoneOffset",e.getTimezoneOffset()),"day"in r?(i.assign("day",n.getDate()),i.assign("month",n.getMonth()+1),i.assign("year",n.getFullYear()),i.assign("weekday",n.getDay())):"week"in r?(i.assign("day",n.getDate()),i.assign("month",n.getMonth()+1),i.assign("year",n.getFullYear()),i.imply("weekday",n.getDay())):(i.imply("day",n.getDate()),"month"in r?(i.assign("month",n.getMonth()+1),i.assign("year",n.getFullYear())):(i.imply("month",n.getMonth()+1),"year"in r?i.assign("year",n.getFullYear()):i.imply("year",n.getFullYear())))),i}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,r){return e in this.knownValues?this:(this.impliedValues[e]=r,this)}assign(e,r){return this.knownValues[e]=r,delete this.impliedValues[e],this}addDurationAsImplied(e){const r=this.dateWithoutTimezoneAdjustment(),n=jt(r,e);return("day"in e||"week"in e||"month"in e||"year"in e)&&(this.delete(["day","weekday","month","year"]),this.imply("day",n.getDate()),this.imply("weekday",n.getDay()),this.imply("month",n.getMonth()+1),this.imply("year",n.getFullYear())),("second"in e||"minute"in e||"hour"in e)&&(this.delete(["second","minute","hour"]),this.imply("second",n.getSeconds()),this.imply("minute",n.getMinutes()),this.imply("hour",n.getHours())),this}delete(e){typeof e=="string"&&(e=[e]);for(const r of e)delete this.knownValues[r],delete this.impliedValues[r]}clone(){const e=new mt(this.reference);e.knownValues={},e.impliedValues={};for(const r in this.knownValues)e.knownValues[r]=this.knownValues[r];for(const r in this.impliedValues)e.impliedValues[r]=this.impliedValues[r];return e}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")&&!this.isCertain("year")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isDateWithUnknownYear(){return this.isCertain("month")&&!this.isCertain("year")}isValidDate(){const e=this.dateWithoutTimezoneAdjustment();return!(e.getFullYear()!==this.get("year")||e.getMonth()!==this.get("month")-1||e.getDate()!==this.get("day")||this.get("hour")!=null&&e.getHours()!=this.get("hour")||this.get("minute")!=null&&e.getMinutes()!=this.get("minute"))}toString(){return`[ParsingComponents {
|
|
325
|
+
tags: ${JSON.stringify(Array.from(this._tags).sort())},
|
|
326
|
+
knownValues: ${JSON.stringify(this.knownValues)},
|
|
327
|
+
impliedValues: ${JSON.stringify(this.impliedValues)}},
|
|
328
|
+
reference: ${JSON.stringify(this.reference)}]`}date(){const e=this.dateWithoutTimezoneAdjustment(),r=this.reference.getSystemTimezoneAdjustmentMinute(e,this.get("timezoneOffset"));return new Date(e.getTime()+r*6e4)}addTag(e){return this._tags.add(e),this}addTags(e){for(const r of e)this._tags.add(r);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){const e=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return e.setFullYear(this.get("year")),e}}class uo{refDate;index;text;reference;start;end;constructor(e,r,n,i,s){this.reference=e,this.refDate=e.instant,this.index=r,this.text=n,this.start=i||new mt(e),this.end=s}clone(){const e=new uo(this.reference,this.index,this.text);return e.start=this.start?this.start.clone():null,e.end=this.end?this.end.clone():null,e}date(){return this.start.date()}addTag(e){return this.start.addTag(e),this.end&&this.end.addTag(e),this}addTags(e){return this.start.addTags(e),this.end&&this.end.addTags(e),this}tags(){const e=new Set(this.start.tags());if(this.end)for(const r of this.end.tags())e.add(r);return e}toString(){const e=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(e)} ...}]`}}function $S(t,e,r="\\s{0,5},?\\s{0,5}"){const n=e.replace(/\((?!\?)/g,"(?:");return`${t}${n}(?:${r}${n}){0,10}`}function mae(t){let e;return t instanceof Array?e=[...t]:t instanceof Map?e=Array.from(t.keys()):e=Object.keys(t),e}function Un(t){return`(?:${mae(t).sort((r,n)=>n.length-r.length).join("|").replace(/\./g,"\\.")})`}function IS(t){return t<100&&(t>50?t=t+1900:t=t+2e3),t}function Eh(t,e,r){let n=new Date(t);n.setMonth(r-1),n.setDate(e);const i=jt(n,{year:1}),s=jt(n,{year:-1});return Math.abs(i.getTime()-t.getTime())<Math.abs(n.getTime()-t.getTime())?n=i:Math.abs(s.getTime()-t.getTime())<Math.abs(n.getTime()-t.getTime())&&(n=s),n.getFullYear()}const hD={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},OS={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},rs={...OS,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},fD={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},dD={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},LS={second:"second",seconds:"second",minute:"minute",minutes:"minute",hour:"hour",hours:"hour",day:"day",days:"day",week:"week",weeks:"week",month:"month",months:"month",quarter:"quarter",quarters:"quarter",year:"year",years:"year"},xh={s:"second",sec:"second",second:"second",seconds:"second",m:"minute",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",hour:"hour",hours:"hour",d:"day",day:"day",days:"day",w:"week",week:"week",weeks:"week",mo:"month",mon:"month",mos:"month",month:"month",months:"month",qtr:"quarter",quarter:"quarter",quarters:"quarter",y:"year",yr:"year",year:"year",years:"year",...LS},MS=`(?:${Un(fD)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function gae(t){const e=t.toLowerCase();return fD[e]!==void 0?fD[e]:e==="a"||e==="an"||e=="the"?1:e.match(/few/)?3:e.match(/half/)?.5:e.match(/couple/)?2:e.match(/several/)?7:parseFloat(e)}const Ch=`(?:${Un(dD)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function Ah(t){let e=t.toLowerCase();return dD[e]!==void 0?dD[e]:(e=e.replace(/(?:st|nd|rd|th)$/i,""),parseInt(e))}const bh="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9]|2[0-5])";function vh(t){if(/BE/i.test(t))return t=t.replace(/BE/i,""),parseInt(t)-543;if(/BCE?/i.test(t))return t=t.replace(/BCE?/i,""),-parseInt(t);if(/(AD|CE)/i.test(t))return t=t.replace(/(AD|CE)/i,""),parseInt(t);const e=parseInt(t);return IS(e)}const RS=`(${MS})\\s{0,3}(${Un(xh)})`,jS=new RegExp(RS,"i"),yae=`(${MS})\\s{0,3}(${Un(LS)})`,qS="\\s{0,5},?(?:\\s*and)?\\s{0,5}",pl=$S("(?:(?:about|around)\\s{0,3})?",RS,qS),Fh=$S("(?:(?:about|around)\\s{0,3})?",yae,qS);function lo(t){const e={};let r=t,n=jS.exec(r);for(;n;)Dae(e,n),r=r.substring(n[0].length).trim(),n=jS.exec(r);return Object.keys(e).length==0?null:e}function Dae(t,e){if(e[0].match(/^[a-zA-Z]+$/))return;const r=gae(e[1]),n=xh[e[2].toLowerCase()];t[n]=r}class gt{innerPatternHasChange(e,r){return this.innerPattern(e)!==r}patternLeftBoundary(){return"(\\W|^)"}cachedInnerPattern=null;cachedPattern=null;pattern(e){return this.cachedInnerPattern&&!this.innerPatternHasChange(e,this.cachedInnerPattern)?this.cachedPattern:(this.cachedInnerPattern=this.innerPattern(e),this.cachedPattern=new RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags),this.cachedPattern)}extract(e,r){const n=r[1]??"";r.index=r.index+n.length,r[0]=r[0].substring(n.length);for(let i=2;i<r.length;i++)r[i-1]=r[i];return this.innerExtract(e,r)}}const Eae=new RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${pl})(?=\\W|$)`,"i"),xae=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${pl})(?=\\W|$)`,"i"),Cae=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${Fh})(?=\\W|$)`,"i");class Aae extends gt{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?Cae:e.option.forwardDate?Eae:xae}innerExtract(e,r){if(r[0].match(/^for\s*the\s*\w+/))return null;const n=lo(r[1]);return n?mt.createRelativeFromReference(e.reference,n):null}}const bae=new RegExp(`(?:on\\s{0,3})?(${Ch})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)?\\s{0,3}(${Ch}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${Un(rs)})(?:(?:-|/|,?\\s{0,3})(${bh}(?!\\w)))?(?=\\W|$)`,"i"),US=1,zS=2,vae=3,VS=4;class Fae extends gt{innerPattern(){return bae}innerExtract(e,r){const n=e.createParsingResult(r.index,r[0]),i=rs[r[vae].toLowerCase()],s=Ah(r[US]);if(s>31)return r.index=r.index+r[US].length,null;if(n.start.assign("month",i),n.start.assign("day",s),r[VS]){const a=vh(r[VS]);n.start.assign("year",a)}else{const a=Eh(e.refDate,s,i);n.start.imply("year",a)}if(r[zS]){const a=Ah(r[zS]);n.end=n.start.clone(),n.end.assign("day",a)}return n}}const Tae=new RegExp(`(${Un(rs)})(?:-|/|\\s*,?\\s*)(${Ch})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${Ch})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${bh}))?(?=\\W|$)(?!\\:\\d)`,"i"),wae=1,HS=2,mD=3,gD=4;class Sae extends gt{shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return Tae}innerExtract(e,r){const n=rs[r[wae].toLowerCase()],i=Ah(r[HS]);if(i>31||this.shouldSkipYearLikeDate&&!r[mD]&&!r[gD]&&r[HS].match(/^2[0-5]$/))return null;const s=e.createParsingComponents({day:i,month:n}).addTag("parser/ENMonthNameMiddleEndianParser");if(r[gD]){const u=vh(r[gD]);s.assign("year",u)}else{const u=Eh(e.refDate,i,n);s.imply("year",u)}if(!r[mD])return s;const a=Ah(r[mD]),o=e.createParsingResult(r.index,r[0]);return o.start=s,o.end=s.clone(),o.end.assign("day",a),o}}const kae=new RegExp(`((?:in)\\s*)?(${Un(rs)})\\s*(?:(?:,|-|of)?\\s*(${bh})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),Pae=1,_ae=2,WS=3;class Bae extends gt{innerPattern(){return kae}innerExtract(e,r){const n=r[_ae].toLowerCase();if(r[0].length<=3&&!OS[n])return null;const i=e.createParsingResult(r.index+(r[Pae]||"").length,r.index+r[0].length);i.start.imply("day",1),i.start.addTag("parser/ENMonthNameParser");const s=rs[n];if(i.start.assign("month",s),r[WS]){const a=vh(r[WS]);i.start.assign("year",a)}else{const a=Eh(e.refDate,1,s);i.start.imply("year",a)}return i}}const Nae=new RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Un(rs)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),$ae=1,Iae=2,GS=3,Oae=4;class Lae extends gt{strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return Nae}innerExtract(e,r){const n=parseInt(r[$ae]);let i=parseInt(r[Oae]),s=r[GS]?parseInt(r[GS]):rs[r[Iae].toLowerCase()];if(s<1||s>12){if(this.strictMonthDateOrder)return null;i>=1&&i<=12&&([s,i]=[i,s])}return i<1||i>31?null:{day:i,month:s,year:n}}}const Mae=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),Rae=1,jae=2;class qae extends gt{innerPattern(){return Mae}innerExtract(e,r){const n=parseInt(r[jae]),i=parseInt(r[Rae]);return e.createParsingComponents().imply("day",1).assign("month",i).assign("year",n)}}function Uae(t,e,r,n){return new RegExp(`${t}${e}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${r}`,n)}function zae(t,e){return new RegExp(`^(${t})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${e}`,"i")}const yD=2,Js=3,Th=4,wh=5,co=6;class Vae{strictMode;constructor(e=!1){this.strictMode=e}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?!/)(?=\\W|$)"}followingSuffix(){return"(?!/)(?=\\W|$)"}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,r){const n=this.extractPrimaryTimeComponents(e,r);if(!n)return r[0].match(/^\d{4}/)?(r.index+=4,null):(r.index+=r[0].length,null);const i=r.index+r[1].length,s=r[0].substring(r[1].length),a=e.createParsingResult(i,s,n);r.index+=r[0].length;const o=e.text.substring(r.index),l=this.getFollowingTimePatternThroughCache().exec(o);return s.match(/^\d{3,4}/)&&l&&(l[0].match(/^\s*([+-])\s*\d{2,4}$/)||l[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!l||l[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(a):(a.end=this.extractFollowingTimeComponents(e,l,a),a.end&&(a.text+=l[0]),this.checkAndReturnWithFollowingPattern(a))}extractPrimaryTimeComponents(e,r,n=!1){const i=e.createParsingComponents();let s=0,a=null,o=parseInt(r[yD]);if(o>100){if(r[yD].length==4&&r[Js]==null&&!r[co]||this.strictMode||r[Js]!=null)return null;s=o%100,o=Math.floor(o/100)}if(o>24)return null;if(r[Js]!=null){if(r[Js].length==1&&!r[co])return null;s=parseInt(r[Js])}if(s>=60)return null;if(o>12&&(a=tt.PM),r[co]!=null){if(o>12)return null;const u=r[co][0].toLowerCase();u=="a"&&(a=tt.AM,o==12&&(o=0)),u=="p"&&(a=tt.PM,o!=12&&(o+=12))}if(i.assign("hour",o),i.assign("minute",s),a!==null?i.assign("meridiem",a):o<12?i.imply("meridiem",tt.AM):i.imply("meridiem",tt.PM),r[wh]!=null){const u=parseInt(r[wh].substring(0,3));if(u>=1e3)return null;i.assign("millisecond",u)}if(r[Th]!=null){const u=parseInt(r[Th]);if(u>=60)return null;i.assign("second",u)}return i}extractFollowingTimeComponents(e,r,n){const i=e.createParsingComponents();if(r[wh]!=null){const u=parseInt(r[wh].substring(0,3));if(u>=1e3)return null;i.assign("millisecond",u)}if(r[Th]!=null){const u=parseInt(r[Th]);if(u>=60)return null;i.assign("second",u)}let s=parseInt(r[yD]),a=0,o=-1;if(r[Js]!=null?a=parseInt(r[Js]):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=tt.PM),r[co]!=null){if(s>12)return null;const u=r[co][0].toLowerCase();u=="a"&&(o=tt.AM,s==12&&(s=0,i.isCertain("day")||i.imply("day",i.get("day")+1))),u=="p"&&(o=tt.PM,s!=12&&(s+=12)),n.start.isCertain("meridiem")||(o==tt.AM?(n.start.imply("meridiem",tt.AM),n.start.get("hour")==12&&n.start.assign("hour",0)):(n.start.imply("meridiem",tt.PM),n.start.get("hour")!=12&&n.start.assign("hour",n.start.get("hour")+12)))}return i.assign("hour",s),i.assign("minute",a),o>=0?i.assign("meridiem",o):n.start.isCertain("meridiem")&&n.start.get("hour")>12?n.start.get("hour")-12>s?i.imply("meridiem",tt.AM):s<=12&&(i.assign("hour",s+12),i.assign("meridiem",tt.PM)):s>12?i.imply("meridiem",tt.PM):s<=12&&i.imply("meridiem",tt.AM),i.date().getTime()<n.start.date().getTime()&&i.imply("day",i.get("day")+1),i}checkAndReturnWithoutFollowingPattern(e){if(e.text.match(/^\d$/)||e.text.match(/^\d\d\d+$/)||e.text.match(/\d[apAP]$/))return null;const r=e.text.match(/[^\d:.](\d[\d.]+)$/);if(r){const n=r[1];if(this.strictMode||n.includes(".")&&!n.match(/\d(\.\d{2})+$/)||parseInt(n)>24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;const r=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(r){if(this.strictMode)return null;const n=r[1],i=r[2];if(i.includes(".")&&!i.match(/\d(\.\d{2})+$/))return null;const s=parseInt(i),a=parseInt(n);if(s>24||a>24)return null}return e}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){const e=this.primaryPrefix(),r=this.primarySuffix();return this.cachedPrimaryPrefix===e&&this.cachedPrimarySuffix===r?this.cachedPrimaryTimePattern:(this.cachedPrimaryTimePattern=Uae(this.primaryPatternLeftBoundary(),e,r,this.patternFlags()),this.cachedPrimaryPrefix=e,this.cachedPrimarySuffix=r,this.cachedPrimaryTimePattern)}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){const e=this.followingPhase(),r=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===r?this.cachedFollowingTimePatten:(this.cachedFollowingTimePatten=zae(e,r),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=r,this.cachedFollowingTimePatten)}}class Hae extends Vae{constructor(e){super(e)}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(e,r){const n=super.extractPrimaryTimeComponents(e,r);if(!n)return n;if(r[0].endsWith("night")){const i=n.get("hour");i>=6&&i<12?(n.assign("hour",n.get("hour")+12),n.assign("meridiem",tt.PM)):i<6&&n.assign("meridiem",tt.AM)}if(r[0].endsWith("afternoon")){n.assign("meridiem",tt.PM);const i=n.get("hour");i>=0&&i<=6&&n.assign("hour",n.get("hour")+12)}return r[0].endsWith("morning")&&(n.assign("meridiem",tt.AM),n.get("hour")<12&&n.assign("hour",n.get("hour"))),n.addTag("parser/ENTimeExpressionParser")}extractFollowingTimeComponents(e,r,n){const i=super.extractFollowingTimeComponents(e,r,n);return i&&i.addTag("parser/ENTimeExpressionParser"),i}}const Wae=new RegExp(`(${pl})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i"),Gae=new RegExp(`(${Fh})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i");class Jae extends gt{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Gae:Wae}innerExtract(e,r){const n=lo(r[1]);return n?mt.createRelativeFromReference(e.reference,Dh(n)):null}}const Kae=new RegExp(`(${pl})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),Yae=new RegExp(`(${Fh})\\s{0,5}(later|after|from now)(?=\\W|$)`,"i"),Xae=1;class Qae extends gt{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Yae:Kae}innerExtract(e,r){const n=lo(r[Xae]);return n?mt.createRelativeFromReference(e.reference,n):null}}class JS{refine(e,r){return r.filter(n=>this.isValid(e,n))}}class hl{refine(e,r){if(r.length<2)return r;const n=[];let i=r[0],s=null;for(let a=1;a<r.length;a++){s=r[a];const o=e.text.substring(i.index+i.text.length,s.index);if(!this.shouldMergeResults(o,i,s,e))n.push(i),i=s;else{const u=i,l=s,c=this.mergeResults(o,u,l,e);e.debug(()=>{console.log(`${this.constructor.name} merged ${u} and ${l} into ${c}`)}),i=c}}return i!=null&&n.push(i),n}}class KS extends hl{shouldMergeResults(e,r,n){return!r.end&&!n.end&&e.match(this.patternBetween())!=null}mergeResults(e,r,n){if(!r.start.isOnlyWeekdayComponent()&&!n.start.isOnlyWeekdayComponent()&&(n.start.getCertainComponents().forEach(s=>{r.start.isCertain(s)||r.start.imply(s,n.start.get(s))}),r.start.getCertainComponents().forEach(s=>{n.start.isCertain(s)||n.start.imply(s,r.start.get(s))})),r.start.date()>n.start.date()){let s=r.start.date(),a=n.start.date();n.start.isOnlyWeekdayComponent()&&jt(a,{day:7})>s?(a=jt(a,{day:7}),n.start.imply("day",a.getDate()),n.start.imply("month",a.getMonth()+1),n.start.imply("year",a.getFullYear())):r.start.isOnlyWeekdayComponent()&&jt(s,{day:-7})<a?(s=jt(s,{day:-7}),r.start.imply("day",s.getDate()),r.start.imply("month",s.getMonth()+1),r.start.imply("year",s.getFullYear())):n.start.isDateWithUnknownYear()&&jt(a,{year:1})>s?(a=jt(a,{year:1}),n.start.imply("year",a.getFullYear())):r.start.isDateWithUnknownYear()&&jt(s,{year:-1})<a?(s=jt(s,{year:-1}),r.start.imply("year",s.getFullYear())):[n,r]=[r,n]}const i=r.clone();return i.start=r.start,i.end=n.start,i.index=Math.min(r.index,n.index),r.index<n.index?i.text=r.text+e+n.text:i.text=n.text+e+r.text,i}}class Zae extends KS{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}}function YS(t,e){const r=t.clone(),n=t.start,i=e.start;if(r.start=XS(n,i),t.end!=null||e.end!=null){const s=t.end==null?t.start:t.end,a=e.end==null?e.start:e.end,o=XS(s,a);if(t.end==null&&o.date().getTime()<r.start.date().getTime()){const u=new Date(o.date().getTime());u.setDate(u.getDate()+1),o.isCertain("day")?Ws(o,u):oo(o,u)}r.end=o}return r}function XS(t,e){const r=t.clone();return e.isCertain("hour")?(r.assign("hour",e.get("hour")),r.assign("minute",e.get("minute")),e.isCertain("second")?(r.assign("second",e.get("second")),e.isCertain("millisecond")?r.assign("millisecond",e.get("millisecond")):r.imply("millisecond",e.get("millisecond"))):(r.imply("second",e.get("second")),r.imply("millisecond",e.get("millisecond")))):(r.imply("hour",e.get("hour")),r.imply("minute",e.get("minute")),r.imply("second",e.get("second")),r.imply("millisecond",e.get("millisecond"))),e.isCertain("timezoneOffset")&&r.assign("timezoneOffset",e.get("timezoneOffset")),e.isCertain("meridiem")?r.assign("meridiem",e.get("meridiem")):e.get("meridiem")!=null&&r.get("meridiem")==null&&r.imply("meridiem",e.get("meridiem")),r.get("meridiem")==tt.PM&&r.get("hour")<12&&(e.isCertain("hour")?r.assign("hour",r.get("hour")+12):r.imply("hour",r.get("hour")+12)),r.addTags(t.tags()),r.addTags(e.tags()),r}class QS extends hl{shouldMergeResults(e,r,n){return(r.start.isOnlyDate()&&n.start.isOnlyTime()||n.start.isOnlyDate()&&r.start.isOnlyTime())&&e.match(this.patternBetween())!=null}mergeResults(e,r,n){const i=r.start.isOnlyDate()?YS(r,n):YS(n,r);return i.index=r.index,i.text=r.text+e+n.text,i}}class ZS extends QS{patternBetween(){return new RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$")}}const eoe=new RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i");class toe{timezoneOverrides;constructor(e){this.timezoneOverrides=e}refine(e,r){const n=e.option.timezones??{};return r.forEach(i=>{const s=e.text.substring(i.index+i.text.length),a=eoe.exec(s);if(!a)return;const o=a[1].toUpperCase(),u=i.start.date()??i.refDate??new Date,l={...this.timezoneOverrides,...n},c=NS(o,u,l);if(c==null)return;e.debug(()=>{console.log(`Extracting timezone: '${o}' into: ${c} for: ${i.start}`)});const p=i.start.get("timezoneOffset");p!==null&&c!=p&&(i.start.isCertain("timezoneOffset")||o!=a[1])||i.start.isOnlyDate()&&o!=a[1]||(i.text+=a[0],i.start.isCertain("timezoneOffset")||i.start.assign("timezoneOffset",c),i.end!=null&&!i.end.isCertain("timezoneOffset")&&i.end.assign("timezoneOffset",c))}),r}}const roe=new RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i"),noe=1,ioe=2,soe=3;class ek{refine(e,r){return r.forEach(function(n){if(n.start.isCertain("timezoneOffset"))return;const i=e.text.substring(n.index+n.text.length),s=roe.exec(i);if(!s)return;e.debug(()=>{console.log(`Extracting timezone: '${s[0]}' into : ${n}`)});const a=parseInt(s[ioe]),o=parseInt(s[soe]||"0");let u=a*60+o;u>840||(s[noe]==="-"&&(u=-u),n.end!=null&&n.end.assign("timezoneOffset",u),n.start.assign("timezoneOffset",u),n.text+=s[0])}),r}}class DD{refine(e,r){if(r.length<2)return r;const n=[];let i=r[0];for(let s=1;s<r.length;s++){const a=r[s];if(a.index>=i.index+i.text.length){n.push(i),i=a;continue}let o=null,u=null;a.text.length>i.text.length?(o=a,u=i):(o=i,u=a),e.debug(()=>{console.log(`${this.constructor.name} remove ${u} by ${o}`)}),i=o}return i!=null&&n.push(i),n}}class aoe{refine(e,r){return e.option.forwardDate&&r.forEach(n=>{let i=e.reference.getDateWithAdjustedTimezone();if(n.start.isOnlyTime()&&e.reference.instant>n.start.date()){const s=e.reference.getDateWithAdjustedTimezone(),a=new Date(s);a.setDate(a.getDate()+1),oo(n.start,a),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${n} time from the ref date (${s}) to the following day (${a})`)}),n.end&&n.end.isOnlyTime()&&(oo(n.end,a),n.start.date()>n.end.date()&&(a.setDate(a.getDate()+1),oo(n.end,a)))}if(n.start.isOnlyWeekdayComponent()&&i>n.start.date()){let s=n.start.get("weekday")-i.getDay();if(s<=0&&(s+=7),i=jt(i,{day:s}),oo(n.start,i),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${n} weekday (${n.start})`)}),n.end&&n.end.isOnlyWeekdayComponent()){let a=n.end.get("weekday")-i.getDay();a<=0&&(a+=7),i=jt(i,{day:a}),oo(n.end,i),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${n} weekday (${n.end})`)})}}if(n.start.isDateWithUnknownYear()&&i>n.start.date())for(let s=0;s<3&&i>n.start.date();s++)n.start.imply("year",n.start.get("year")+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${n} year (${n.start})`)}),n.end&&!n.end.isCertain("year")&&(n.end.imply("year",n.end.get("year")+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${n} month (${n.start})`)}))}),r}}class ooe extends JS{strictMode;constructor(e){super(),this.strictMode=e}isValid(e,r){return r.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${r.text}'`)}),!1):r.start.isValidDate()?r.end&&!r.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${r} (${r.end})`)}),!1):this.strictMode?this.isStrictModeValid(e,r):!0:(e.debug(()=>{console.log(`Removing invalid result: ${r} (${r.start})`)}),!1)}isStrictModeValid(e,r){return r.start.isOnlyWeekdayComponent()?(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${r} (${r.end})`)}),!1):!0}}const uoe=new RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),loe=1,coe=2,poe=3,tk=4,hoe=5,rk=6,nk=7,foe=8,ik=9,sk=10;class doe extends gt{innerPattern(){return uoe}innerExtract(e,r){const n=e.createParsingComponents({year:parseInt(r[loe]),month:parseInt(r[coe]),day:parseInt(r[poe])});if(r[tk]!=null&&(n.assign("hour",parseInt(r[tk])),n.assign("minute",parseInt(r[hoe])),r[rk]!=null&&n.assign("second",parseInt(r[rk])),r[nk]!=null&&n.assign("millisecond",parseInt(r[nk])),r[foe]!=null)){let i=0;if(r[ik]){const s=parseInt(r[ik]);let a=0;r[sk]!=null&&(a=parseInt(r[sk])),i=s*60,i<0?i-=a:i+=a}n.assign("timezoneOffset",i)}return n.addTag("parser/ISOFormatParser")}}class moe extends hl{mergeResults(e,r,n){const i=n.clone();return i.index=r.index,i.text=r.text+e+i.text,i.start.assign("weekday",r.start.get("weekday")),i.end&&i.end.assign("weekday",r.start.get("weekday")),i}shouldMergeResults(e,r,n){return r.start.isOnlyWeekdayComponent()&&!r.start.isCertain("hour")&&n.start.isCertain("day")&&e.match(/^,?\s*$/)!=null}}function ak(t,e=!1){return t.parsers.unshift(new doe),t.refiners.unshift(new moe),t.refiners.unshift(new ek),t.refiners.unshift(new DD),t.refiners.push(new toe),t.refiners.push(new DD),t.refiners.push(new aoe),t.refiners.push(new ooe(e)),t}function goe(t){const e=t.getDateWithAdjustedTimezone(),r=new mt(t,{});return Ws(r,e),_S(r,e),r.assign("timezoneOffset",t.getTimezoneOffset()),r.addTag("casualReference/now"),r}function yoe(t){const e=t.getDateWithAdjustedTimezone(),r=new mt(t,{});return Ws(r,e),pD(r,e),r.delete("meridiem"),r.addTag("casualReference/today"),r}function Doe(t){return xoe(t).addTag("casualReference/yesterday")}function Eoe(t){return ED(t,1).addTag("casualReference/tomorrow")}function xoe(t,e){return ED(t,-1)}function ED(t,e){const r=t.getDateWithAdjustedTimezone(),n=new mt(t,{}),i=new Date(r.getTime());return i.setDate(i.getDate()+e),Ws(n,i),pD(n,i),n.delete("meridiem"),n}function Coe(t,e=22){const r=t.getDateWithAdjustedTimezone(),n=new mt(t,{});return Ws(n,r),n.imply("hour",e),n.imply("meridiem",tt.PM),n.addTag("casualReference/tonight"),n}function Aoe(t,e=20){const r=new mt(t,{});return r.imply("meridiem",tt.PM),r.imply("hour",e),r.addTag("casualReference/evening"),r}function boe(t){const e=new mt(t,{});return t.getDateWithAdjustedTimezone().getHours()>2&&e.addDurationAsImplied({day:1}),e.assign("hour",0),e.imply("minute",0),e.imply("second",0),e.imply("millisecond",0),e.addTag("casualReference/midnight"),e}function voe(t,e=6){const r=new mt(t,{});return r.imply("meridiem",tt.AM),r.imply("hour",e),r.imply("minute",0),r.imply("second",0),r.imply("millisecond",0),r.addTag("casualReference/morning"),r}function Foe(t,e=15){const r=new mt(t,{});return r.imply("meridiem",tt.PM),r.imply("hour",e),r.imply("minute",0),r.imply("second",0),r.imply("millisecond",0),r.addTag("casualReference/afternoon"),r}function Toe(t){const e=new mt(t,{});return e.imply("meridiem",tt.AM),e.assign("hour",12),e.imply("minute",0),e.imply("second",0),e.imply("millisecond",0),e.addTag("casualReference/noon"),e}const woe=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i;class Soe extends gt{innerPattern(e){return woe}innerExtract(e,r){let n=e.refDate;const i=r[0].toLowerCase();let s=e.createParsingComponents();switch(i){case"now":s=goe(e.reference);break;case"today":s=yoe(e.reference);break;case"yesterday":s=Doe(e.reference);break;case"tomorrow":case"tmr":case"tmrw":s=Eoe(e.reference);break;case"tonight":s=Coe(e.reference);break;case"overmorrow":s=ED(e.reference,2);break;default:if(i.match(/last\s*night/)){if(n.getHours()>6){const a=new Date(n.getTime());a.setDate(a.getDate()-1),n=a}Ws(s,n),s.imply("hour",0)}break}return s.addTag("parser/ENCasualDateParser"),s}}const koe=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i;class Poe extends gt{innerPattern(){return koe}innerExtract(e,r){let n=null;switch(r[1].toLowerCase()){case"afternoon":n=Foe(e.reference);break;case"evening":case"night":n=Aoe(e.reference);break;case"midnight":n=boe(e.reference);break;case"morning":n=voe(e.reference);break;case"noon":case"midday":n=Toe(e.reference);break}return n&&n.addTag("parser/ENCasualTimeParser"),n}}function _oe(t,e,r){const n=t.getDateWithAdjustedTimezone(),i=Boe(n,e,r);let s=new mt(t);return s=s.addDurationAsImplied({day:i}),s.assign("weekday",e),s}function Boe(t,e,r){const n=t.getDay();switch(r){case"this":return Sh(t,e);case"last":return ok(t,e);case"next":return n==Et.SUNDAY?e==Et.SUNDAY?7:e:n==Et.SATURDAY?e==Et.SATURDAY?7:e==Et.SUNDAY?8:1+e:e<n&&e!=Et.SUNDAY?Sh(t,e):Sh(t,e)+7}return Noe(t,e)}function Noe(t,e){const r=ok(t,e),n=Sh(t,e);return n<-r?n:r}function Sh(t,e){const r=t.getDay();let n=e-r;return n<0&&(n+=7),n}function ok(t,e){const r=t.getDay();let n=e-r;return n>=0&&(n-=7),n}const $oe=new RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${Un(hD)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|$)`,"i"),Ioe=1,Ooe=2,Loe=3;class Moe extends gt{innerPattern(){return $oe}innerExtract(e,r){const n=r[Ioe],i=r[Loe];let s=n||i;s=s||"",s=s.toLowerCase();let a=null;s=="last"||s=="past"?a="last":s=="next"?a="next":s=="this"&&(a="this");const o=r[Ooe].toLowerCase();let u;if(hD[o]!==void 0)u=hD[o];else if(o=="weekend")u=a=="last"?Et.SUNDAY:Et.SATURDAY;else if(o=="weekday"){const l=e.reference.getDateWithAdjustedTimezone().getDay();l==Et.SUNDAY||l==Et.SATURDAY?u=a=="last"?Et.FRIDAY:Et.MONDAY:(u=l-1,u=a=="last"?u-1:u+1,u=u%5+1)}else return null;return _oe(e.reference,u,a)}}const Roe=new RegExp(`(this|last|past|next|after\\s*this)\\s*(${Un(xh)})(?=\\s*)(?=\\W|$)`,"i"),joe=1,qoe=2;class Uoe extends gt{innerPattern(){return Roe}innerExtract(e,r){const n=r[joe].toLowerCase(),i=r[qoe].toLowerCase(),s=xh[i];if(n=="next"||n.startsWith("after")){const u={};return u[s]=1,mt.createRelativeFromReference(e.reference,u)}if(n=="last"||n=="past"){const u={};return u[s]=-1,mt.createRelativeFromReference(e.reference,u)}const a=e.createParsingComponents();let o=new Date(e.reference.instant.getTime());return i.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply("day",o.getDate()),a.imply("month",o.getMonth()+1),a.imply("year",o.getFullYear())):i.match(/month/i)?(o.setDate(1),a.imply("day",o.getDate()),a.assign("year",o.getFullYear()),a.assign("month",o.getMonth()+1)):i.match(/year/i)&&(o.setDate(1),o.setMonth(0),a.imply("day",o.getDate()),a.imply("month",o.getMonth()+1),a.assign("year",o.getFullYear())),a}}const zoe=new RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i"),Voe=1,Hoe=5,uk=2,lk=3,xD=4;class Woe{groupNumberMonth;groupNumberDay;constructor(e){this.groupNumberMonth=e?lk:uk,this.groupNumberDay=e?uk:lk}pattern(){return zoe}extract(e,r){const n=r.index+r[Voe].length,i=r.index+r[0].length-r[Hoe].length;if(n>0&&e.text.substring(0,n).match("\\d/?$")||i<e.text.length&&e.text.substring(i).match("^/?\\d"))return;const s=e.text.substring(n,i);if(s.match(/^\d\.\d$/)||s.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!r[xD]&&s.indexOf("/")<0)return;const a=e.createParsingResult(n,s);let o=parseInt(r[this.groupNumberMonth]),u=parseInt(r[this.groupNumberDay]);if((o<1||o>12)&&o>12)if(u>=1&&u<=12&&o<=31)[u,o]=[o,u];else return null;if(u<1||u>31)return null;if(a.start.assign("day",u),a.start.assign("month",o),r[xD]){const l=parseInt(r[xD]),c=IS(l);a.start.assign("year",c)}else{const l=Eh(e.refDate,u,o);a.start.imply("year",l)}return a.addTag("parser/SlashDateFormatParser")}}const Goe=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${pl})(?=\\W|$)`,"i"),Joe=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${Fh})(?=\\W|$)`,"i");class Koe extends gt{allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?Goe:Joe}innerExtract(e,r){const n=r[1].toLowerCase();let i=lo(r[2]);if(!i)return null;switch(n){case"last":case"past":case"-":i=Dh(i);break}return mt.createRelativeFromReference(e.reference,i)}}function Yoe(t){return t.text.match(/^[+-]/i)!=null}function ck(t){return t.text.match(/^-/i)!=null}class Xoe extends hl{shouldMergeResults(e,r,n){return e.match(/^\s*$/i)?Yoe(n)||ck(n):!1}mergeResults(e,r,n,i){let s=lo(n.text);ck(n)&&(s=Dh(s));const a=mt.createRelativeFromReference(Gs.fromDate(r.start.date()),s);return new uo(r.reference,r.index,`${r.text}${e}${n.text}`,a)}}function pk(t){return t.text.match(/\s+(before|from)$/i)!=null}function Qoe(t){return t.text.match(/\s+(after|since)$/i)!=null}class Zoe extends hl{patternBetween(){return/^\s*$/i}shouldMergeResults(e,r,n){return!e.match(this.patternBetween())||!pk(r)&&!Qoe(r)?!1:!!n.start.get("day")&&!!n.start.get("month")&&!!n.start.get("year")}mergeResults(e,r,n){let i=lo(r.text);pk(r)&&(i=Dh(i));const s=mt.createRelativeFromReference(Gs.fromDate(n.start.date()),i);return new uo(n.reference,r.index,`${r.text}${e}${n.text}`,s)}}const eue=new RegExp(`^\\s*(${bh})`,"i"),tue=1;class rue{refine(e,r){return r.forEach(function(n){if(!n.start.isDateWithUnknownYear())return;const i=e.text.substring(n.index+n.text.length),s=eue.exec(i);if(!s||s[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${s[0]}' into : ${n}`)});const a=vh(s[tue]);n.end!=null&&n.end.assign("year",a),n.start.assign("year",a),n.text+=s[0]}),r}}class nue extends JS{constructor(){super()}isValid(e,r){const n=r.text.trim();return n===e.text.trim()?!0:n.toLowerCase()==="may"&&!e.text.substring(0,r.index).trim().match(/\b(in)$/i)?(e.debug(()=>{console.log(`Removing unlikely result: ${r}`)}),!1):n.toLowerCase().endsWith("the second")?(e.text.substring(r.index+r.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${r}`)}),!1):!0}}class iue{createCasualConfiguration(e=!1){const r=this.createConfiguration(!1,e);return r.parsers.push(new Soe),r.parsers.push(new Poe),r.parsers.push(new Bae),r.parsers.push(new Uoe),r.parsers.push(new Koe),r.refiners.push(new nue),r}createConfiguration(e=!0,r=!1){const n=ak({parsers:[new Woe(r),new Aae(e),new Fae,new Sae(r),new Moe,new qae,new Hae(e),new Jae(e),new Qae(e)],refiners:[new ZS]},e);return n.parsers.unshift(new Lae(e)),n.refiners.unshift(new Zoe),n.refiners.unshift(new Xoe),n.refiners.unshift(new DD),n.refiners.push(new ZS),n.refiners.push(new rue),n.refiners.push(new Zae),n}}class fl{parsers;refiners;defaultConfig=new iue;constructor(e){e=e||this.defaultConfig.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new fl({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,r,n){const i=this.parse(e,r,n);return i.length>0?i[0].start.date():null}parse(e,r,n){const i=new sue(e,r,n);let s=[];return this.parsers.forEach(a=>{const o=fl.executeParser(i,a);s=s.concat(o)}),s.sort((a,o)=>a.index-o.index),this.refiners.forEach(function(a){s=a.refine(i,s)}),s}static executeParser(e,r){const n=[],i=r.pattern(e),s=e.text;let a=e.text,o=i.exec(a);for(;o;){const u=o.index+s.length-a.length;o.index=u;const l=r.extract(e,o);if(!l){a=s.substring(o.index+1),o=i.exec(a);continue}let c=null;l instanceof uo?c=l:l instanceof mt?(c=e.createParsingResult(o.index,o[0]),c.start=l):c=e.createParsingResult(o.index,o[0],l);const p=c.index,f=c.text;e.debug(()=>console.log(`${r.constructor.name} extracted (at index=${p}) '${f}'`)),n.push(c),a=s.substring(p+f.length),o=i.exec(a)}return n}}class sue{text;option;reference;refDate;constructor(e,r,n){this.text=e,this.option=n??{},this.reference=Gs.fromInput(r,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof mt?e:new mt(this.reference,e)}createParsingResult(e,r,n,i){const s=typeof r=="string"?r:this.text.substring(e,r),a=n?this.createParsingComponents(n):null,o=i?this.createParsingComponents(i):null;return new uo(this.reference,e,s,a,o)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}}const fr={零:0,"〇":0,一:1,二:2,两:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},kh={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function Ei(t){let e=0;for(let r=0;r<t.length;r++){const n=t[r];n==="十"?e=e===0?fr[n]:e*fr[n]:e+=fr[n]}return e}function aue(t){let e="";for(let r=0;r<t.length;r++){const n=t[r];e=e+fr[n]}return parseInt(e)}const CD=1,hk=2,AD=3;class oue extends gt{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(fr).join("")+"]{4}|["+Object.keys(fr).join("")+"]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|["+Object.keys(fr).join("")+"]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|["+Object.keys(fr).join("")+"]{1,3})?(?:\\s*)(?:日|号)?")}innerExtract(e,r){const n=e.createParsingResult(r.index,r[0]);let i=parseInt(r[hk]);if(isNaN(i)&&(i=Ei(r[hk])),n.start.assign("month",i),r[AD]){let s=parseInt(r[AD]);isNaN(s)&&(s=Ei(r[AD])),n.start.assign("day",s)}else n.start.imply("day",e.refDate.getDate());if(r[CD]){let s=parseInt(r[CD]);isNaN(s)&&(s=aue(r[CD])),n.start.assign("year",s)}else n.start.imply("year",e.refDate.getFullYear());return n}}const uue=new RegExp("(\\d+|["+Object.keys(fr).join("")+"]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)","i"),bD=1,lue=2;class cue extends gt{innerPattern(){return uue}innerExtract(e,r){const n=e.createParsingResult(r.index,r[0]);let i=parseInt(r[bD]);if(isNaN(i)&&(i=Ei(r[bD])),isNaN(i)){const l=r[bD];if(l==="几")i=3;else if(l==="半")i=.5;else return null}const s={},o=r[lue][0];if(o.match(/[日天星礼月年]/)){o=="日"||o=="天"?s.day=i:o=="星"||o=="礼"?s.week=i:o=="月"?s.month=i:o=="年"&&(s.year=i);const l=jt(e.refDate,s);return n.start.assign("year",l.getFullYear()),n.start.assign("month",l.getMonth()+1),n.start.assign("day",l.getDate()),n}o=="秒"?s.second=i:o=="分"?s.minute=i:(o=="小"||o=="钟")&&(s.hour=i);const u=jt(e.refDate,s);return n.start.imply("year",u.getFullYear()),n.start.imply("month",u.getMonth()+1),n.start.imply("day",u.getDate()),n.start.assign("hour",u.getHours()),n.start.assign("minute",u.getMinutes()),n.start.assign("second",u.getSeconds()),n}}const pue=new RegExp("(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>"+Object.keys(kh).join("|")+")");class hue extends gt{innerPattern(){return pue}innerExtract(e,r){const n=e.createParsingResult(r.index,r[0]),i=r.groups.weekday,s=kh[i];if(s===void 0)return null;let a=null;const o=r.groups.prefix;o=="上"?a="last":o=="下"?a="next":o=="这"&&(a="this");const u=new Date(e.refDate.getTime());let l=!1;const c=u.getDay();if(a=="last"||a=="past")u.setDate(u.getDate()+(s-7-c)),l=!0;else if(a=="next")u.setDate(u.getDate()+(s+7-c)),l=!0;else if(a=="this")u.setDate(u.getDate()+(s-c));else{let p=s-c;Math.abs(p-7)<Math.abs(p)&&(p-=7),Math.abs(p+7)<Math.abs(p)&&(p+=7),u.setDate(u.getDate()+p)}return n.start.assign("weekday",s),l?(n.start.assign("day",u.getDate()),n.start.assign("month",u.getMonth()+1),n.start.assign("year",u.getFullYear())):(n.start.imply("day",u.getDate()),n.start.imply("month",u.getMonth()+1),n.start.imply("year",u.getFullYear())),n}}const fue=new RegExp("(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(fr).join("")+"]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(fr).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(fr).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),due=new RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(fr).join("")+"]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(fr).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(fr).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),Ph=1,_h=2,Bh=3,Nh=4,$h=5,Ih=6,sn=7,po=8,Oh=9;class mue extends gt{innerPattern(){return fue}innerExtract(e,r){if(r.index>0&&e.text[r.index-1].match(/\w/))return null;const n=e.createParsingResult(r.index,r[0]),i=new Date(e.refDate.getTime());if(r[Ph]){const c=r[Ph];c=="明"?e.refDate.getHours()>1&&i.setDate(i.getDate()+1):c=="昨"?i.setDate(i.getDate()-1):c=="前"?i.setDate(i.getDate()-2):c=="大前"?i.setDate(i.getDate()-3):c=="后"?i.setDate(i.getDate()+2):c=="大后"&&i.setDate(i.getDate()+3),n.start.assign("day",i.getDate()),n.start.assign("month",i.getMonth()+1),n.start.assign("year",i.getFullYear())}else if(r[Nh]){const c=r[Nh];c=="明"?i.setDate(i.getDate()+1):c=="昨"?i.setDate(i.getDate()-1):c=="前"?i.setDate(i.getDate()-2):c=="大前"?i.setDate(i.getDate()-3):c=="后"?i.setDate(i.getDate()+2):c=="大后"&&i.setDate(i.getDate()+3),n.start.assign("day",i.getDate()),n.start.assign("month",i.getMonth()+1),n.start.assign("year",i.getFullYear())}else n.start.imply("day",i.getDate()),n.start.imply("month",i.getMonth()+1),n.start.imply("year",i.getFullYear());let s=0,a=0,o=-1;if(r[po]){let c=parseInt(r[po]);if(isNaN(c)&&(c=Ei(r[po])),c>=60)return null;n.start.assign("second",c)}if(s=parseInt(r[Ih]),isNaN(s)&&(s=Ei(r[Ih])),r[sn]?r[sn]=="半"?a=30:r[sn]=="正"||r[sn]=="整"?a=0:(a=parseInt(r[sn]),isNaN(a)&&(a=Ei(r[sn]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),r[Oh]){if(s>12)return null;const c=r[Oh][0].toLowerCase();c=="a"&&(o=0,s==12&&(s=0)),c=="p"&&(o=1,s!=12&&(s+=12))}else if(r[_h]){const p=r[_h][0];p=="早"?(o=0,s==12&&(s=0)):p=="晚"&&(o=1,s!=12&&(s+=12))}else if(r[Bh]){const p=r[Bh][0];p=="上"||p=="早"||p=="凌"?(o=0,s==12&&(s=0)):(p=="下"||p=="晚")&&(o=1,s!=12&&(s+=12))}else if(r[$h]){const p=r[$h][0];p=="上"||p=="早"||p=="凌"?(o=0,s==12&&(s=0)):(p=="下"||p=="晚")&&(o=1,s!=12&&(s+=12))}n.start.assign("hour",s),n.start.assign("minute",a),o>=0?n.start.assign("meridiem",o):s<12?n.start.imply("meridiem",0):n.start.imply("meridiem",1);const u=due.exec(e.text.substring(n.index+n.text.length));if(!u)return n.text.match(/^\d+$/)?null:n;const l=new Date(i.getTime());if(n.end=e.createParsingComponents(),u[Ph]){const c=u[Ph];c=="明"?e.refDate.getHours()>1&&l.setDate(l.getDate()+1):c=="昨"?l.setDate(l.getDate()-1):c=="前"?l.setDate(l.getDate()-2):c=="大前"?l.setDate(l.getDate()-3):c=="后"?l.setDate(l.getDate()+2):c=="大后"&&l.setDate(l.getDate()+3),n.end.assign("day",l.getDate()),n.end.assign("month",l.getMonth()+1),n.end.assign("year",l.getFullYear())}else if(u[Nh]){const c=u[Nh];c=="明"?l.setDate(l.getDate()+1):c=="昨"?l.setDate(l.getDate()-1):c=="前"?l.setDate(l.getDate()-2):c=="大前"?l.setDate(l.getDate()-3):c=="后"?l.setDate(l.getDate()+2):c=="大后"&&l.setDate(l.getDate()+3),n.end.assign("day",l.getDate()),n.end.assign("month",l.getMonth()+1),n.end.assign("year",l.getFullYear())}else n.end.imply("day",l.getDate()),n.end.imply("month",l.getMonth()+1),n.end.imply("year",l.getFullYear());if(s=0,a=0,o=-1,u[po]){let c=parseInt(u[po]);if(isNaN(c)&&(c=Ei(u[po])),c>=60)return null;n.end.assign("second",c)}if(s=parseInt(u[Ih]),isNaN(s)&&(s=Ei(u[Ih])),u[sn]?u[sn]=="半"?a=30:u[sn]=="正"||u[sn]=="整"?a=0:(a=parseInt(u[sn]),isNaN(a)&&(a=Ei(u[sn]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),u[Oh]){if(s>12)return null;const c=u[Oh][0].toLowerCase();c=="a"&&(o=0,s==12&&(s=0)),c=="p"&&(o=1,s!=12&&(s+=12)),n.start.isCertain("meridiem")||(o==0?(n.start.imply("meridiem",0),n.start.get("hour")==12&&n.start.assign("hour",0)):(n.start.imply("meridiem",1),n.start.get("hour")!=12&&n.start.assign("hour",n.start.get("hour")+12)))}else if(u[_h]){const p=u[_h][0];p=="早"?(o=0,s==12&&(s=0)):p=="晚"&&(o=1,s!=12&&(s+=12))}else if(u[Bh]){const p=u[Bh][0];p=="上"||p=="早"||p=="凌"?(o=0,s==12&&(s=0)):(p=="下"||p=="晚")&&(o=1,s!=12&&(s+=12))}else if(u[$h]){const p=u[$h][0];p=="上"||p=="早"||p=="凌"?(o=0,s==12&&(s=0)):(p=="下"||p=="晚")&&(o=1,s!=12&&(s+=12))}return n.text=n.text+u[0],n.end.assign("hour",s),n.end.assign("minute",a),o>=0?n.end.assign("meridiem",o):n.start.isCertain("meridiem")&&n.start.get("meridiem")==1&&n.start.get("hour")>s?n.end.imply("meridiem",0):s>12&&n.end.imply("meridiem",1),n.end.date().getTime()<n.start.date().getTime()&&n.end.imply("day",n.end.get("day")+1),n}}const gue=new RegExp("(?:星期|礼拜|周)(?<weekday>"+Object.keys(kh).join("|")+")");class yue extends gt{innerPattern(){return gue}innerExtract(e,r){const n=e.createParsingResult(r.index,r[0]),i=r.groups.weekday,s=kh[i];if(s===void 0)return null;const a=new Date(e.refDate.getTime()),o=a.getDay();let u=s-o;return Math.abs(u-7)<Math.abs(u)&&(u-=7),Math.abs(u+7)<Math.abs(u)&&(u+=7),a.setDate(a.getDate()+u),n.start.assign("weekday",s),n.start.imply("day",a.getDate()),n.start.imply("month",a.getMonth()+1),n.start.imply("year",a.getFullYear()),n}}const Due=1,fk=2,Eue=3,dk=4,mk=5,xue=6;class Cue extends gt{innerPattern(e){return new RegExp("(而家|立(?:刻|即)|即刻)|(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?","i")}innerExtract(e,r){const n=r.index,i=e.createParsingResult(n,r[0]),s=e.refDate;let a=new Date(s.getTime());if(r[Due])i.start.imply("hour",s.getHours()),i.start.imply("minute",s.getMinutes()),i.start.imply("second",s.getSeconds()),i.start.imply("millisecond",s.getMilliseconds());else if(r[fk]){const o=r[fk],u=r[Eue];o=="明"||o=="聽"?s.getHours()>1&&a.setDate(a.getDate()+1):o=="昨"||o=="尋"||o=="琴"?a.setDate(a.getDate()-1):o=="前"?a.setDate(a.getDate()-2):o=="大前"?a.setDate(a.getDate()-3):o=="後"?a.setDate(a.getDate()+2):o=="大後"&&a.setDate(a.getDate()+3),u=="早"||u=="朝"?i.start.imply("hour",6):u=="晚"&&(i.start.imply("hour",22),i.start.imply("meridiem",1))}else if(r[dk]){const u=r[dk][0];u=="早"||u=="朝"||u=="上"?i.start.imply("hour",6):u=="下"||u=="晏"?(i.start.imply("hour",15),i.start.imply("meridiem",1)):u=="中"?(i.start.imply("hour",12),i.start.imply("meridiem",1)):u=="夜"||u=="晚"?(i.start.imply("hour",22),i.start.imply("meridiem",1)):u=="凌"&&i.start.imply("hour",0)}else if(r[mk]){const o=r[mk];o=="明"||o=="聽"?s.getHours()>1&&a.setDate(a.getDate()+1):o=="昨"||o=="尋"||o=="琴"?a.setDate(a.getDate()-1):o=="前"?a.setDate(a.getDate()-2):o=="大前"?a.setDate(a.getDate()-3):o=="後"?a.setDate(a.getDate()+2):o=="大後"&&a.setDate(a.getDate()+3);const u=r[xue];if(u){const l=u[0];l=="早"||l=="朝"||l=="上"?i.start.imply("hour",6):l=="下"||l=="晏"?(i.start.imply("hour",15),i.start.imply("meridiem",1)):l=="中"?(i.start.imply("hour",12),i.start.imply("meridiem",1)):l=="夜"||l=="晚"?(i.start.imply("hour",22),i.start.imply("meridiem",1)):l=="凌"&&i.start.imply("hour",0)}}return i.start.assign("day",a.getDate()),i.start.assign("month",a.getMonth()+1),i.start.assign("year",a.getFullYear()),i}}const dr={零:0,一:1,二:2,兩:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,廿:20,卅:30},Lh={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function xi(t){let e=0;for(let r=0;r<t.length;r++){const n=t[r];n==="十"?e=e===0?dr[n]:e*dr[n]:e+=dr[n]}return e}function Aue(t){let e="";for(let r=0;r<t.length;r++){const n=t[r];e=e+dr[n]}return parseInt(e)}const vD=1,gk=2,FD=3;class bue extends gt{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(dr).join("")+"]{4}|["+Object.keys(dr).join("")+"]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|["+Object.keys(dr).join("")+"]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|["+Object.keys(dr).join("")+"]{1,2})?(?:\\s*)(?:日|號)?")}innerExtract(e,r){const n=e.createParsingResult(r.index,r[0]);let i=parseInt(r[gk]);if(isNaN(i)&&(i=xi(r[gk])),n.start.assign("month",i),r[FD]){let s=parseInt(r[FD]);isNaN(s)&&(s=xi(r[FD])),n.start.assign("day",s)}else n.start.imply("day",e.refDate.getDate());if(r[vD]){let s=parseInt(r[vD]);isNaN(s)&&(s=Aue(r[vD])),n.start.assign("year",s)}else n.start.imply("year",e.refDate.getFullYear());return n}}const vue=new RegExp("(\\d+|["+Object.keys(dr).join("")+"]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)","i"),TD=1,Fue=2;class Tue extends gt{innerPattern(){return vue}innerExtract(e,r){const n=e.createParsingResult(r.index,r[0]);let i=parseInt(r[TD]);if(isNaN(i)&&(i=xi(r[TD])),isNaN(i)){const l=r[TD];if(l==="幾")i=3;else if(l==="半")i=.5;else return null}const s={},o=r[Fue][0];if(o.match(/[日天星禮月年]/)){o=="日"||o=="天"?s.day=i:o=="星"||o=="禮"?s.week=i:o=="月"?s.month=i:o=="年"&&(s.year=i);const l=jt(e.refDate,s);return n.start.assign("year",l.getFullYear()),n.start.assign("month",l.getMonth()+1),n.start.assign("day",l.getDate()),n}o=="秒"?s.second=i:o=="分"?s.minute=i:(o=="小"||o=="鐘")&&(s.hour=i);const u=jt(e.refDate,s);return n.start.imply("year",u.getFullYear()),n.start.imply("month",u.getMonth()+1),n.start.imply("day",u.getDate()),n.start.assign("hour",u.getHours()),n.start.assign("minute",u.getMinutes()),n.start.assign("second",u.getSeconds()),n}}const wue=new RegExp("(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>"+Object.keys(Lh).join("|")+")");class Sue extends gt{innerPattern(){return wue}innerExtract(e,r){const n=e.createParsingResult(r.index,r[0]),i=r.groups.weekday,s=Lh[i];if(s===void 0)return null;let a=null;const o=r.groups.prefix;o=="上"?a="last":o=="下"?a="next":(o=="今"||o=="這"||o=="呢")&&(a="this");const u=new Date(e.refDate.getTime());let l=!1;const c=u.getDay();if(a=="last"||a=="past")u.setDate(u.getDate()+(s-7-c)),l=!0;else if(a=="next")u.setDate(u.getDate()+(s+7-c)),l=!0;else if(a=="this")u.setDate(u.getDate()+(s-c));else{let p=s-c;Math.abs(p-7)<Math.abs(p)&&(p-=7),Math.abs(p+7)<Math.abs(p)&&(p+=7),u.setDate(u.getDate()+p)}return n.start.assign("weekday",s),l?(n.start.assign("day",u.getDate()),n.start.assign("month",u.getMonth()+1),n.start.assign("year",u.getFullYear())):(n.start.imply("day",u.getDate()),n.start.imply("month",u.getMonth()+1),n.start.imply("year",u.getFullYear())),n}}const kue=new RegExp("(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(dr).join("")+"]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(dr).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(dr).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),Pue=new RegExp("(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|["+Object.keys(dr).join("")+"]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|["+Object.keys(dr).join("")+"]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|["+Object.keys(dr).join("")+"]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),Mh=1,Rh=2,jh=3,qh=4,Uh=5,zh=6,an=7,ho=8,Vh=9;class _ue extends gt{innerPattern(){return kue}innerExtract(e,r){if(r.index>0&&e.text[r.index-1].match(/\w/))return null;const n=e.createParsingResult(r.index,r[0]),i=new Date(e.refDate.getTime());if(r[Mh]){const d=r[Mh];d=="明"||d=="聽"?e.refDate.getHours()>1&&i.setDate(i.getDate()+1):d=="昨"||d=="尋"||d=="琴"?i.setDate(i.getDate()-1):d=="前"?i.setDate(i.getDate()-2):d=="大前"?i.setDate(i.getDate()-3):d=="後"?i.setDate(i.getDate()+2):d=="大後"&&i.setDate(i.getDate()+3),n.start.assign("day",i.getDate()),n.start.assign("month",i.getMonth()+1),n.start.assign("year",i.getFullYear())}else if(r[qh]){const d=r[qh];d=="明"||d=="聽"?i.setDate(i.getDate()+1):d=="昨"||d=="尋"||d=="琴"?i.setDate(i.getDate()-1):d=="前"?i.setDate(i.getDate()-2):d=="大前"?i.setDate(i.getDate()-3):d=="後"?i.setDate(i.getDate()+2):d=="大後"&&i.setDate(i.getDate()+3),n.start.assign("day",i.getDate()),n.start.assign("month",i.getMonth()+1),n.start.assign("year",i.getFullYear())}else n.start.imply("day",i.getDate()),n.start.imply("month",i.getMonth()+1),n.start.imply("year",i.getFullYear());let s=0,a=0,o=-1;if(r[ho]){var u=parseInt(r[ho]);if(isNaN(u)&&(u=xi(r[ho])),u>=60)return null;n.start.assign("second",u)}if(s=parseInt(r[zh]),isNaN(s)&&(s=xi(r[zh])),r[an]?r[an]=="半"?a=30:r[an]=="正"||r[an]=="整"?a=0:(a=parseInt(r[an]),isNaN(a)&&(a=xi(r[an]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),r[Vh]){if(s>12)return null;var l=r[Vh][0].toLowerCase();l=="a"&&(o=0,s==12&&(s=0)),l=="p"&&(o=1,s!=12&&(s+=12))}else if(r[Rh]){var c=r[Rh],p=c[0];p=="朝"||p=="早"?(o=0,s==12&&(s=0)):p=="晚"&&(o=1,s!=12&&(s+=12))}else if(r[jh]){var f=r[jh],h=f[0];h=="上"||h=="朝"||h=="早"||h=="凌"?(o=0,s==12&&(s=0)):(h=="下"||h=="晏"||h=="晚")&&(o=1,s!=12&&(s+=12))}else if(r[Uh]){var m=r[Uh],g=m[0];g=="上"||g=="朝"||g=="早"||g=="凌"?(o=0,s==12&&(s=0)):(g=="下"||g=="晏"||g=="晚")&&(o=1,s!=12&&(s+=12))}n.start.assign("hour",s),n.start.assign("minute",a),o>=0?n.start.assign("meridiem",o):s<12?n.start.imply("meridiem",0):n.start.imply("meridiem",1);const y=Pue.exec(e.text.substring(n.index+n.text.length));if(!y)return n.text.match(/^\d+$/)?null:n;const D=new Date(i.getTime());if(n.end=e.createParsingComponents(),y[Mh]){const d=y[Mh];d=="明"||d=="聽"?e.refDate.getHours()>1&&D.setDate(D.getDate()+1):d=="昨"||d=="尋"||d=="琴"?D.setDate(D.getDate()-1):d=="前"?D.setDate(D.getDate()-2):d=="大前"?D.setDate(D.getDate()-3):d=="後"?D.setDate(D.getDate()+2):d=="大後"&&D.setDate(D.getDate()+3),n.end.assign("day",D.getDate()),n.end.assign("month",D.getMonth()+1),n.end.assign("year",D.getFullYear())}else if(y[qh]){const d=y[qh];d=="明"||d=="聽"?D.setDate(D.getDate()+1):d=="昨"||d=="尋"||d=="琴"?D.setDate(D.getDate()-1):d=="前"?D.setDate(D.getDate()-2):d=="大前"?D.setDate(D.getDate()-3):d=="後"?D.setDate(D.getDate()+2):d=="大後"&&D.setDate(D.getDate()+3),n.end.assign("day",D.getDate()),n.end.assign("month",D.getMonth()+1),n.end.assign("year",D.getFullYear())}else n.end.imply("day",D.getDate()),n.end.imply("month",D.getMonth()+1),n.end.imply("year",D.getFullYear());if(s=0,a=0,o=-1,y[ho]){let d=parseInt(y[ho]);if(isNaN(d)&&(d=xi(y[ho])),d>=60)return null;n.end.assign("second",d)}if(s=parseInt(y[zh]),isNaN(s)&&(s=xi(y[zh])),y[an]?y[an]=="半"?a=30:y[an]=="正"||y[an]=="整"?a=0:(a=parseInt(y[an]),isNaN(a)&&(a=xi(y[an]))):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=1),y[Vh]){if(s>12)return null;var l=y[Vh][0].toLowerCase();l=="a"&&(o=0,s==12&&(s=0)),l=="p"&&(o=1,s!=12&&(s+=12)),n.start.isCertain("meridiem")||(o==0?(n.start.imply("meridiem",0),n.start.get("hour")==12&&n.start.assign("hour",0)):(n.start.imply("meridiem",1),n.start.get("hour")!=12&&n.start.assign("hour",n.start.get("hour")+12)))}else if(y[Rh]){var p=y[Rh][0];p=="朝"||p=="早"?(o=0,s==12&&(s=0)):p=="晚"&&(o=1,s!=12&&(s+=12))}else if(y[jh]){var h=y[jh][0];h=="上"||h=="朝"||h=="早"||h=="凌"?(o=0,s==12&&(s=0)):(h=="下"||h=="晏"||h=="晚")&&(o=1,s!=12&&(s+=12))}else if(y[Uh]){var g=y[Uh][0];g=="上"||g=="朝"||g=="早"||g=="凌"?(o=0,s==12&&(s=0)):(g=="下"||g=="晏"||g=="晚")&&(o=1,s!=12&&(s+=12))}return n.text=n.text+y[0],n.end.assign("hour",s),n.end.assign("minute",a),o>=0?n.end.assign("meridiem",o):n.start.isCertain("meridiem")&&n.start.get("meridiem")==1&&n.start.get("hour")>s?n.end.imply("meridiem",0):s>12&&n.end.imply("meridiem",1),n.end.date().getTime()<n.start.date().getTime()&&n.end.imply("day",n.end.get("day")+1),n}}const Bue=new RegExp("(?:星期|禮拜|週)(?<weekday>"+Object.keys(Lh).join("|")+")");class Nue extends gt{innerPattern(){return Bue}innerExtract(e,r){const n=e.createParsingResult(r.index,r[0]),i=r.groups.weekday,s=Lh[i];if(s===void 0)return null;const a=new Date(e.refDate.getTime()),o=a.getDay();let u=s-o;return Math.abs(u-7)<Math.abs(u)&&(u-=7),Math.abs(u+7)<Math.abs(u)&&(u+=7),a.setDate(a.getDate()+u),n.start.assign("weekday",s),n.start.imply("day",a.getDate()),n.start.imply("month",a.getMonth()+1),n.start.imply("year",a.getFullYear()),n}}class $ue extends KS{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}}class Iue extends QS{patternBetween(){return/^\s*$/i}}const Oue=new fl(Mue());new fl(yk());function Lue(t,e,r){return Oue.parseDate(t,e,r)}function Mue(){const t=yk();return t.parsers.unshift(new Cue),t}function yk(){const t=ak({parsers:[new bue,new oue,new Sue,new hue,new Nue,new yue,new _ue,new mue,new Tue,new cue],refiners:[new $ue,new Iue]});return t.refiners=t.refiners.filter(e=>!(e instanceof ek)),t}var Hh={exports:{}},Rue=Hh.exports,Dk;function jue(){return Dk||(Dk=1,(function(t,e){(function(r,n){t.exports=n()})(Rue,(function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",l="day",c="week",p="month",f="quarter",h="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var _=["th","st","nd","rd"],$=O%100;return"["+O+(_[($-20)%10]||_[$]||_[0])+"]"}},x=function(O,_,$){var Y=String(O);return!Y||Y.length>=_?O:""+Array(_+1-Y.length).join($)+O},A={s:x,z:function(O){var _=-O.utcOffset(),$=Math.abs(_),Y=Math.floor($/60),V=$%60;return(_<=0?"+":"-")+x(Y,2,"0")+":"+x(V,2,"0")},m:function O(_,$){if(_.date()<$.date())return-O($,_);var Y=12*($.year()-_.year())+($.month()-_.month()),V=_.clone().add(Y,p),ee=$-V<0,T=_.clone().add(Y+(ee?-1:1),p);return+(-(Y+($-V)/(ee?V-T:T-V))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:p,y:h,w:c,d:l,D:m,h:u,m:o,s:a,ms:s,Q:f}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},E="en",C={};C[E]=d;var b="$isDayjsObject",w=function(O){return O instanceof I||!(!O||!O[b])},P=function O(_,$,Y){var V;if(!_)return E;if(typeof _=="string"){var ee=_.toLowerCase();C[ee]&&(V=ee),$&&(C[ee]=$,V=ee);var T=_.split("-");if(!V&&T.length>1)return O(T[0])}else{var L=_.name;C[L]=_,V=L}return!Y&&V&&(E=V),V||!Y&&E},F=function(O,_){if(w(O))return O.clone();var $=typeof _=="object"?_:{};return $.date=O,$.args=arguments,new I($)},S=A;S.l=P,S.i=w,S.w=function(O,_){return F(O,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var I=(function(){function O($){this.$L=P($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[b]=!0}var _=O.prototype;return _.parse=function($){this.$d=(function(Y){var V=Y.date,ee=Y.utc;if(V===null)return new Date(NaN);if(S.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var T=V.match(y);if(T){var L=T[2]-1||0,H=(T[7]||"0").substring(0,3);return ee?new Date(Date.UTC(T[1],L,T[3]||1,T[4]||0,T[5]||0,T[6]||0,H)):new Date(T[1],L,T[3]||1,T[4]||0,T[5]||0,T[6]||0,H)}}return new Date(V)})($),this.init()},_.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function($,Y){var V=F($);return this.startOf(Y)<=V&&V<=this.endOf(Y)},_.isAfter=function($,Y){return F($)<this.startOf(Y)},_.isBefore=function($,Y){return this.endOf(Y)<F($)},_.$g=function($,Y,V){return S.u($)?this[Y]:this.set(V,$)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function($,Y){var V=this,ee=!!S.u(Y)||Y,T=S.p($),L=function(G,te){var M=S.w(V.$u?Date.UTC(V.$y,te,G):new Date(V.$y,te,G),V);return ee?M:M.endOf(l)},H=function(G,te){return S.w(V.toDate()[G].apply(V.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(te)),V)},v=this.$W,k=this.$M,N=this.$D,j="set"+(this.$u?"UTC":"");switch(T){case h:return ee?L(1,0):L(31,11);case p:return ee?L(1,k):L(0,k+1);case c:var z=this.$locale().weekStart||0,R=(v<z?v+7:v)-z;return L(ee?N-R:N+(6-R),k);case l:case m:return H(j+"Hours",0);case u:return H(j+"Minutes",1);case o:return H(j+"Seconds",2);case a:return H(j+"Milliseconds",3);default:return this.clone()}},_.endOf=function($){return this.startOf($,!1)},_.$set=function($,Y){var V,ee=S.p($),T="set"+(this.$u?"UTC":""),L=(V={},V[l]=T+"Date",V[m]=T+"Date",V[p]=T+"Month",V[h]=T+"FullYear",V[u]=T+"Hours",V[o]=T+"Minutes",V[a]=T+"Seconds",V[s]=T+"Milliseconds",V)[ee],H=ee===l?this.$D+(Y-this.$W):Y;if(ee===p||ee===h){var v=this.clone().set(m,1);v.$d[L](H),v.init(),this.$d=v.set(m,Math.min(this.$D,v.daysInMonth())).$d}else L&&this.$d[L](H);return this.init(),this},_.set=function($,Y){return this.clone().$set($,Y)},_.get=function($){return this[S.p($)]()},_.add=function($,Y){var V,ee=this;$=Number($);var T=S.p(Y),L=function(k){var N=F(ee);return S.w(N.date(N.date()+Math.round(k*$)),ee)};if(T===p)return this.set(p,this.$M+$);if(T===h)return this.set(h,this.$y+$);if(T===l)return L(1);if(T===c)return L(7);var H=(V={},V[o]=n,V[u]=i,V[a]=r,V)[T]||1,v=this.$d.getTime()+$*H;return S.w(v,this)},_.subtract=function($,Y){return this.add(-1*$,Y)},_.format=function($){var Y=this,V=this.$locale();if(!this.isValid())return V.invalidDate||g;var ee=$||"YYYY-MM-DDTHH:mm:ssZ",T=S.z(this),L=this.$H,H=this.$m,v=this.$M,k=V.weekdays,N=V.months,j=V.meridiem,z=function(te,M,J,X){return te&&(te[M]||te(Y,ee))||J[M].slice(0,X)},R=function(te){return S.s(L%12||12,te,"0")},G=j||function(te,M,J){var X=te<12?"AM":"PM";return J?X.toLowerCase():X};return ee.replace(D,(function(te,M){return M||(function(J){switch(J){case"YY":return String(Y.$y).slice(-2);case"YYYY":return S.s(Y.$y,4,"0");case"M":return v+1;case"MM":return S.s(v+1,2,"0");case"MMM":return z(V.monthsShort,v,N,3);case"MMMM":return z(N,v);case"D":return Y.$D;case"DD":return S.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return z(V.weekdaysMin,Y.$W,k,2);case"ddd":return z(V.weekdaysShort,Y.$W,k,3);case"dddd":return k[Y.$W];case"H":return String(L);case"HH":return S.s(L,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return G(L,H,!0);case"A":return G(L,H,!1);case"m":return String(H);case"mm":return S.s(H,2,"0");case"s":return String(Y.$s);case"ss":return S.s(Y.$s,2,"0");case"SSS":return S.s(Y.$ms,3,"0");case"Z":return T}return null})(te)||T.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function($,Y,V){var ee,T=this,L=S.p(Y),H=F($),v=(H.utcOffset()-this.utcOffset())*n,k=this-H,N=function(){return S.m(T,H)};switch(L){case h:ee=N()/12;break;case p:ee=N();break;case f:ee=N()/3;break;case c:ee=(k-v)/6048e5;break;case l:ee=(k-v)/864e5;break;case u:ee=k/i;break;case o:ee=k/n;break;case a:ee=k/r;break;default:ee=k}return V?ee:S.a(ee)},_.daysInMonth=function(){return this.endOf(p).$D},_.$locale=function(){return C[this.$L]},_.locale=function($,Y){if(!$)return this.$L;var V=this.clone(),ee=P($,Y,!0);return ee&&(V.$L=ee),V},_.clone=function(){return S.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},O})(),B=I.prototype;return F.prototype=B,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",l],["$M",p],["$y",h],["$D",m]].forEach((function(O){B[O[1]]=function(_){return this.$g(_,O[0],O[1])}})),F.extend=function(O,_){return O.$i||(O(_,I,F),O.$i=!0),F},F.locale=P,F.isDayjs=w,F.unix=function(O){return F(1e3*O)},F.en=C[E],F.Ls=C,F.p={},F}))})(Hh)),Hh.exports}var que=jue();const Wh=gl(que);var Gh={exports:{}},Uue=Gh.exports,Ek;function zue(){return Ek||(Ek=1,(function(t,e){(function(r,n){t.exports=n()})(Uue,(function(){var r="day";return function(n,i,s){var a=function(l){return l.add(4-l.isoWeekday(),r)},o=i.prototype;o.isoWeekYear=function(){return a(this).year()},o.isoWeek=function(l){if(!this.$utils().u(l))return this.add(7*(l-this.isoWeek()),r);var c,p,f,h,m=a(this),g=(c=this.isoWeekYear(),p=this.$u,f=(p?s.utc:s)().year(c).startOf("year"),h=4-f.isoWeekday(),f.isoWeekday()>4&&(h+=7),f.add(h,r));return m.diff(g,"week")+1},o.isoWeekday=function(l){return this.$utils().u(l)?this.day()||7:this.day(this.day()%7?l:l-7)};var u=o.startOf;o.startOf=function(l,c){var p=this.$utils(),f=!!p.u(c)||c;return p.p(l)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(l,c)}}}))})(Gh)),Gh.exports}var Vue=zue();const Hue=gl(Vue);Wh.extend(Hue);function Wue(){return Wh().startOf("isoWeek").toDate()}const wD=/大*后天/g;function Gue(t){if(!wD.test(t))return t;const e=Wh();return wD.lastIndex=0,t.replace(wD,r=>{const i=2+(r.length-2);return e.add(i,"day").format("YYYY年MM月DD日")})}function Jue(t){const e=Gue(t),r=/(?:本|这|上|下)?(?:周|星期)/.test(e),n=Lue(e,{instant:r?Wue():new Date});return n?Wh(n).format("YYYY-MM-DD HH:mm:ss"):"无法解析,请输入具体时间"}const Kue={parse_relative_date:{def:{type:"function",function:{name:"parse_relative_date",description:"把相对时间转成绝对时间",parameters:{type:"object",properties:{input:{type:"string",description:"相对时间"}},required:["input"]}}},handler:t=>Jue(t.input)}};class Yue extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot&&this.shadowRoot.appendChild(PS.content.cloneNode(!0))}connectedCallback(){this.shadowRoot&&pae(this.shadowRoot)}}customElements.define("ai-chat-panel",Yue);class Xue{on=cD.on;pushMessage=zr.pushMessage;pushMessages=zr.pushMessages;pushLoadingMessage=zr.pushLoadingMessage;updateLoadingMessageReasoningContent=zr.updateLoadingMessageReasoningContent;updateLoadingMessageContent=zr.updateLoadingMessageContent;finishLoadingMessage=zr.finishLoadingMessage;constructor(e){const{container:r}=e;if(!r)throw new Error("未提供有效的 container");const n=document.createElement("ai-chat-panel");r.appendChild(n)}}wt.AIChatPanel=Xue,wt.Agent=sae,wt.tools=Kue,Object.defineProperty(wt,Symbol.toStringTag,{value:"Module"})}));
|