@powersync/diagnostics 0.0.0-dev-20261020125654 → 0.0.0-dev-20261112182545
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/README.md +50 -2
- package/dist/devtools/assets/powersync-BXfuXqfT.js +184 -0
- package/dist/devtools/assets/powersync-CpTiA65L.css +1 -0
- package/dist/devtools/powersync.html +24 -0
- package/dist/rozenite.json +14 -0
- package/lib/src/agent.d.ts +3 -1
- package/lib/src/agent.js +36 -8
- package/lib/src/agent.js.map +1 -1
- package/lib/src/client.js +4 -4
- package/lib/src/client.js.map +1 -1
- package/lib/src/definition.js +11 -17
- package/lib/src/definition.js.map +1 -1
- package/lib/src/js-agent.d.ts +6 -13
- package/lib/src/js-agent.js +23 -10
- package/lib/src/js-agent.js.map +1 -1
- package/lib/src/node.d.ts +1 -1
- package/lib/src/node.js +2 -2
- package/lib/src/node.js.map +1 -1
- package/lib/src/page.js +2 -3
- package/lib/src/page.js.map +1 -1
- package/lib/src/react-native/agent-tools.d.ts +3 -0
- package/lib/src/react-native/agent-tools.js +137 -0
- package/lib/src/react-native/agent-tools.js.map +1 -0
- package/lib/src/react-native/protocol.d.ts +22 -0
- package/lib/src/react-native/protocol.js +5 -0
- package/lib/src/react-native/protocol.js.map +1 -0
- package/lib/src/react-native/usePowerSyncDevTools.d.ts +7 -0
- package/lib/src/react-native/usePowerSyncDevTools.js +56 -0
- package/lib/src/react-native/usePowerSyncDevTools.js.map +1 -0
- package/lib/src/react-native.d.ts +7 -0
- package/lib/src/react-native.js +8 -0
- package/lib/src/react-native.js.map +1 -0
- package/lib/src/rpc-types.d.ts +1 -1
- package/lib/src/tools.d.ts +19 -0
- package/lib/src/tools.js +24 -0
- package/lib/src/tools.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +37 -13
- package/src/agent.ts +45 -17
- package/src/client.ts +4 -5
- package/src/definition.ts +11 -17
- package/src/js-agent.ts +33 -27
- package/src/node.ts +3 -3
- package/src/page.ts +2 -4
- package/src/react-native/agent-tools.ts +148 -0
- package/src/react-native/protocol.ts +33 -0
- package/src/react-native/usePowerSyncDevTools.ts +59 -0
- package/src/react-native.ts +14 -0
- package/src/rpc-types.ts +1 -1
- package/src/tools.ts +35 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Pl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Te={},ir=[],Nt=()=>{},cp=()=>!1,ua=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),da=e=>e.startsWith("onUpdate:"),tt=Object.assign,Ll=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rg=Object.prototype.hasOwnProperty,Re=(e,t)=>rg.call(e,t),ue=Array.isArray,Bn=e=>Vs(e)==="[object Map]",hr=e=>Vs(e)==="[object Set]",Kc=e=>Vs(e)==="[object Date]",ve=e=>typeof e=="function",ze=e=>typeof e=="string",At=e=>typeof e=="symbol",Pe=e=>e!==null&&typeof e=="object",up=e=>(Pe(e)||ve(e))&&ve(e.then)&&ve(e.catch),dp=Object.prototype.toString,Vs=e=>dp.call(e),sg=e=>Vs(e).slice(8,-1),pp=e=>Vs(e)==="[object Object]",pa=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hs=Pl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fa=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},og=/-\w/g,at=fa(e=>e.replace(og,t=>t.slice(1).toUpperCase())),ag=/\B([A-Z])/g,kn=fa(e=>e.replace(ag,"-$1").toLowerCase()),ma=fa(e=>e.charAt(0).toUpperCase()+e.slice(1)),gs=fa(e=>e?`on${ma(e)}`:""),rt=(e,t)=>!Object.is(e,t),ko=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Oo=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ha=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Zc;const dr=()=>Zc||(Zc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function et(e){if(ue(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ze(r)?ug(r):et(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(ze(e)||Pe(e))return e}const ig=/;(?![^(]*\))/g,lg=/:([^]+)/,cg=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function ug(e){const t={};return e.replace(cg,n=>n.startsWith("/*")?"":n).split(ig).forEach(n=>{if(n){const r=n.split(lg);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function je(e){let t="";if(ze(e))t=e;else if(ue(e))for(let n=0;n<e.length;n++){const r=je(e[n]);r&&(t+=r+" ")}else if(Pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function fp(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ze(t)&&(e.class=je(t)),n&&(e.style=et(n)),e}const dg="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",pg=Pl(dg);function mp(e){return!!e||e===""}function fg(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let s=0;r&&s<e.length;s++)r=Dn(e[s],t[s],n);return r}function Yc(e,t,n){if(e.size!==t.size)return!1;const r=Array.from(t),s=new Uint8Array(r.length);for(const o of e){let a=-1;for(let i=0;i<r.length;i++)if(!s[i]&&Dn(o,r[i],n)){a=i;break}if(a<0)return!1;s[a]=1}return!0}function mg(e,t,n){let r=Bn(e),s=Bn(t);if(r||s||(r=hr(e),s=hr(t),r||s))return r&&s?Yc(e,t,n):!1;const o=Object.keys(e).length,a=Object.keys(t).length;if(o!==a)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!Dn(e[i],t[i],n))return!1}return String(e)===String(t)}function Xc(e,t,n,r){n||(n=[new Map,new Map]);const[s,o]=n;if(s.has(e)||o.has(t))return s.get(e)===t&&o.get(t)===e;s.set(e,t),o.set(t,e);const a=r(e,t,n);return s.delete(e),o.delete(t),a}function Dn(e,t,n){if(e===t)return!0;let r=Kc(e),s=Kc(t);return r||s?r&&s?e.getTime()===t.getTime():!1:(r=At(e),s=At(t),r||s?e===t:(r=ue(e),s=ue(t),r||s?r&&s?Xc(e,t,n,fg):!1:(r=Pe(e),s=Pe(t),r||s?!r||!s?!1:Xc(e,t,n,mg):String(e)===String(t))))}function hg(e,t){return e.findIndex(n=>Dn(n,t))}const hp=e=>!!(e&&e.__v_isRef===!0),L=e=>ze(e)?e:e==null?"":ue(e)||Pe(e)&&(e.toString===dp||!ve(e.toString))?hp(e)?L(e.value):JSON.stringify(e,gp,2):String(e),gp=(e,t)=>hp(t)?gp(e,t.value):Bn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Ka(r,o)+" =>"]=s,n),{})}:hr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ka(n))}:At(t)?Ka(t):Pe(t)&&!ue(t)&&!pp(t)?String(t):t,Ka=(e,t="")=>{var n;return At(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Je;class gg{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Je&&(Je.active?(this.parent=Je,this.index=(Je.scopes||(Je.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}const r=this.effects.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}}run(t){if(this._active){const n=Je;try{return Je=this,t()}finally{Je=n}}}on(){++this._on===1&&(this.prevScope=Je,Je=this)}off(){if(this._on>0&&--this._on===0){if(Je===this)Je=this.prevScope;else{let t=Je;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const s=this.scopes.slice();for(n=0,r=s.length;n<r;n++)s[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function ga(){return Je}function Ur(e,t=!1){Je&&Je.cleanups.push(e)}let Fe;const Za=new WeakSet;class bp{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Je&&(Je.active?Je.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Za.has(this)&&(Za.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||vp(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Jc(this),_p(this);const t=Fe,n=Dt;Fe=this,Dt=!0;try{return this.fn()}finally{wp(this),Fe=t,Dt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Dl(t);this.deps=this.depsTail=void 0,Jc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Za.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Bi(this)&&this.run()}get dirty(){return Bi(this)}}let yp=0,bs,ys;function vp(e,t=!1){if(e.flags|=8,t){e.next=ys,ys=e;return}e.next=bs,bs=e}function Bl(){yp++}function Nl(){if(--yp>0)return;if(ys){let t=ys;for(ys=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;bs;){let t=bs;for(bs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function _p(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wp(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Dl(r),bg(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Bi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(xp(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function xp(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===$s)||(e.globalVersion=$s,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Bi(e))))return;e.flags|=2;const t=e.dep,n=Fe,r=Dt;Fe=e,Dt=!0;try{_p(e);const s=e.fn(e._value);(t.version===0||rt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Fe=n,Dt=r,wp(e),e.flags&=-3}}function Dl(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Dl(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function bg(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Dt=!0;const kp=[];function _n(){kp.push(Dt),Dt=!1}function wn(){const e=kp.pop();Dt=e===void 0?!0:e}function Jc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Fe;Fe=void 0;try{t()}finally{Fe=n}}}let $s=0;class yg{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ba{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Fe||!Dt||Fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Fe)n=this.activeLink=new yg(Fe,this),Fe.deps?(n.prevDep=Fe.depsTail,Fe.depsTail.nextDep=n,Fe.depsTail=n):Fe.deps=Fe.depsTail=n,Cp(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Fe.depsTail,n.nextDep=void 0,Fe.depsTail.nextDep=n,Fe.depsTail=n,Fe.deps===n&&(Fe.deps=r)}return n}trigger(t){this.version++,$s++,this.notify(t)}notify(t){Bl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Nl()}}}function Cp(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Cp(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Mo=new WeakMap,pr=Symbol(""),Ni=Symbol(""),Ss=Symbol("");function ft(e,t,n){if(Dt&&Fe){let r=Mo.get(e);r||Mo.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new ba),s.map=r,s.key=n),s.track()}}function un(e,t,n,r,s,o){const a=Mo.get(e);if(!a){$s++;return}const i=l=>{l&&l.trigger()};if(Bl(),t==="clear")a.forEach(i);else{const l=ue(e),c=l&&pa(n);if(l&&n==="length"){const u=Number(r);a.forEach((d,f)=>{(f==="length"||f===Ss||!At(f)&&f>=u)&&i(d)})}else switch((n!==void 0||a.has(void 0))&&i(a.get(n)),c&&i(a.get(Ss)),t){case"add":l?c&&i(a.get("length")):(i(a.get(pr)),Bn(e)&&i(a.get(Ni)));break;case"delete":l||(i(a.get(pr)),Bn(e)&&i(a.get(Ni)));break;case"set":Bn(e)&&i(a.get(pr));break}}Nl()}function vg(e,t){const n=Mo.get(e);return n&&n.get(t)}function $r(e){const t=Oe(e);return t===e||(ft(t,"iterate",Ss),Et(e))?t:Qt(e)?Nn(e)?t.map(n=>Fn(Pt(n))):t.map(Fn):t.map(Pt)}function ya(e){return ft(e=Oe(e),"iterate",Ss),e}function Zt(e,t){return Qt(e)?Fn(Nn(e)?Pt(t):t):Pt(t)}const _g={__proto__:null,[Symbol.iterator](){return Ya(this,Symbol.iterator,e=>Zt(this,e))},concat(...e){return $r(this).concat(...e.map(t=>ue(t)?$r(t):t))},entries(){return Ya(this,"entries",e=>(e[1]=Zt(this,e[1]),e))},every(e,t){return rn(this,"every",e,t,void 0,arguments)},filter(e,t){return rn(this,"filter",e,t,n=>n.map(r=>Zt(this,r)),arguments)},find(e,t){return rn(this,"find",e,t,n=>Zt(this,n),arguments)},findIndex(e,t){return rn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return rn(this,"findLast",e,t,n=>Zt(this,n),arguments)},findLastIndex(e,t){return rn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return rn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xa(this,"includes",e)},indexOf(...e){return Xa(this,"indexOf",e)},join(e){return $r(this).join(e)},lastIndexOf(...e){return Xa(this,"lastIndexOf",e)},map(e,t){return rn(this,"map",e,t,void 0,arguments)},pop(){return es(this,"pop")},push(...e){return es(this,"push",e)},reduce(e,...t){return Qc(this,"reduce",e,t)},reduceRight(e,...t){return Qc(this,"reduceRight",e,t)},shift(){return es(this,"shift")},some(e,t){return rn(this,"some",e,t,void 0,arguments)},splice(...e){return es(this,"splice",e)},toReversed(){return $r(this).toReversed()},toSorted(e){return $r(this).toSorted(e)},toSpliced(...e){return $r(this).toSpliced(...e)},unshift(...e){return es(this,"unshift",e)},values(){return Ya(this,"values",e=>Zt(this,e))}};function Ya(e,t,n){const r=ya(e),s=r[t]();return r!==e&&!Et(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const wg=Array.prototype;function rn(e,t,n,r,s,o){const a=ya(e),i=a!==e&&!Et(e),l=a[t];if(l!==wg[t]){const d=l.apply(e,o);return i?Pt(d):d}let c=n;a!==e&&(i?c=function(d,f){return n.call(this,Zt(e,d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=l.call(a,c,r);return i&&s?s(u):u}function Qc(e,t,n,r){const s=ya(e),o=s!==e&&!Et(e);let a=n,i=!1;s!==e&&(o?(i=r.length===0,a=function(c,u,d){return i&&(i=!1,c=Zt(e,c)),n.call(this,c,Zt(e,u),d,e)}):n.length>3&&(a=function(c,u,d){return n.call(this,c,u,d,e)}));const l=s[t](a,...r);return i?Zt(e,l):l}function Xa(e,t,n){const r=Oe(e);ft(r,"iterate",Ss);const s=r[t](...n);return(s===-1||s===!1)&&xa(n[0])?(n[0]=Oe(n[0]),r[t](...n)):s}function es(e,t,n=[]){_n(),Bl();const r=Oe(e)[t].apply(e,n);return Nl(),wn(),r}const xg=Pl("__proto__,__v_isRef,__isVue"),$p=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(At));function kg(e){At(e)||(e=String(e));const t=Oe(this);return ft(t,"has",e),t.hasOwnProperty(e)}class Sp{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Op:Ip:o?Tp:Ap).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=ue(t);if(!s){let l;if(a&&(l=_g[n]))return l;if(n==="hasOwnProperty")return kg}const i=Reflect.get(t,n,Ge(t)?t:r);if((At(n)?$p.has(n):xg(n))||(s||ft(t,"get",n),o))return i;if(Ge(i)){const l=a&&pa(n)?i:i.value;return s&&Pe(l)?Fi(l):l}return Pe(i)?s?Fi(i):_a(i):i}}class jp extends Sp{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const a=ue(t)&&pa(n);if(!this._isShallow){const c=Qt(o);if(!Et(r)&&!Qt(r)&&(o=Oe(o),r=Oe(r)),!a&&Ge(o)&&!Ge(r))return c||(o.value=r),!0}const i=a?Number(n)<t.length:Re(t,n),l=Reflect.set(t,n,r,Ge(t)?t:s);return t===Oe(s)&&l&&(i?rt(r,o)&&un(t,"set",n,r):un(t,"add",n,r)),l}deleteProperty(t,n){const r=Re(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&un(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!At(n)||!$p.has(n))&&ft(t,"has",n),r}ownKeys(t){return ft(t,"iterate",ue(t)?"length":pr),Reflect.ownKeys(t)}}class Ep extends Sp{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Cg=new jp,$g=new Ep,Sg=new jp(!0),jg=new Ep(!0),Di=e=>e,oo=e=>Reflect.getPrototypeOf(e);function Eg(e,t,n){return function(...r){const s=this.__v_raw,o=Oe(s),a=Bn(o),i=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=s[e](...r),u=n?Di:t?Fn:Pt;return!t&&ft(o,"iterate",l?Ni:pr),tt(Object.create(c),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:i?[u(d[0]),u(d[1])]:u(d),done:f}}})}}function ao(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ag(e,t){const n={get(s){const o=this.__v_raw,a=Oe(o),i=Oe(s);e||(rt(s,i)&&ft(a,"get",s),ft(a,"get",i));const{has:l}=oo(a),c=t?Di:e?Fn:Pt;if(l.call(a,s))return c(o.get(s));if(l.call(a,i))return c(o.get(i));o!==a&&o.get(s)},get size(){const s=this.__v_raw;return!e&&ft(Oe(s),"iterate",pr),s.size},has(s){const o=this.__v_raw,a=Oe(o),i=Oe(s);return e||(rt(s,i)&&ft(a,"has",s),ft(a,"has",i)),s===i?o.has(s):o.has(s)||o.has(i)},forEach(s,o){const a=this,i=a.__v_raw,l=Oe(i),c=t?Di:e?Fn:Pt;return!e&&ft(l,"iterate",pr),i.forEach((u,d)=>s.call(o,c(u),c(d),a))}};return tt(n,e?{add:ao("add"),set:ao("set"),delete:ao("delete"),clear:ao("clear")}:{add(s){const o=Oe(this),a=oo(o),i=Oe(s),l=!t&&!Et(s)&&!Qt(s)?i:s;return a.has.call(o,l)||rt(s,l)&&a.has.call(o,s)||rt(i,l)&&a.has.call(o,i)||(o.add(l),un(o,"add",l,l)),this},set(s,o){!t&&!Et(o)&&!Qt(o)&&(o=Oe(o));const a=Oe(this),{has:i,get:l}=oo(a);let c=i.call(a,s);c||(s=Oe(s),c=i.call(a,s));const u=l.call(a,s);return a.set(s,o),c?rt(o,u)&&un(a,"set",s,o):un(a,"add",s,o),this},delete(s){const o=Oe(this),{has:a,get:i}=oo(o);let l=a.call(o,s);l||(s=Oe(s),l=a.call(o,s)),i&&i.call(o,s);const c=o.delete(s);return l&&un(o,"delete",s,void 0),c},clear(){const s=Oe(this),o=s.size!==0,a=s.clear();return o&&un(s,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Eg(s,e,t)}),n}function va(e,t){const n=Ag(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Re(n,s)&&s in r?n:r,s,o)}const Tg={get:va(!1,!1)},Ig={get:va(!1,!0)},Og={get:va(!0,!1)},Mg={get:va(!0,!0)},Ap=new WeakMap,Tp=new WeakMap,Ip=new WeakMap,Op=new WeakMap;function Rg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _a(e){return Qt(e)?e:wa(e,!1,Cg,Tg,Ap)}function Pg(e){return wa(e,!1,Sg,Ig,Tp)}function Fi(e){return wa(e,!0,$g,Og,Ip)}function er(e){return wa(e,!0,jg,Mg,Op)}function wa(e,t,n,r,s){if(!Pe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=s.get(e);if(o)return o;const a=Rg(sg(e));if(a===0)return e;const i=new Proxy(e,a===2?r:n);return s.set(e,i),i}function Nn(e){return Qt(e)?Nn(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function Et(e){return!!(e&&e.__v_isShallow)}function xa(e){return e?!!e.__v_raw:!1}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}function ge(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&Oo(e,"__v_skip",!0),e}const Pt=e=>Pe(e)?_a(e):e,Fn=e=>Pe(e)?Fi(e):e;function Ge(e){return e?e.__v_isRef===!0:!1}function H(e){return Mp(e,!1)}function en(e){return Mp(e,!0)}function Mp(e,t){return Ge(e)?e:new Lg(e,t)}class Lg{constructor(t,n){this.dep=new ba,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Oe(t),this._value=n?t:Pt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Et(t)||Qt(t);t=r?t:Oe(t),rt(t,n)&&(this._rawValue=t,this._value=r?t:Pt(t),this.dep.trigger())}}function zi(e){e.dep&&e.dep.trigger()}function _(e){return Ge(e)?e.value:e}function He(e){return ve(e)?e():_(e)}const Bg={get:(e,t,n)=>t==="__v_raw"?e:_(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ge(s)&&!Ge(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Rp(e){return Nn(e)?e:new Proxy(e,Bg)}class Ng{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ba,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Pp(e){return new Ng(e)}function Gs(e){const t=ue(e)?new Array(e.length):{};for(const n in e)t[n]=Lp(e,n);return t}class Dg{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=At(n)?n:String(n),this._raw=Oe(t);let s=!0,o=t;if(!ue(t)||At(this._key)||!pa(this._key))do s=!xa(o)||Et(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=_(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ge(this._raw[this._key])){const n=this._object[this._key];if(Ge(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return vg(this._raw,this._key)}}class Fg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function zg(e,t,n){return Ge(e)?e:ve(e)?new Fg(e):Pe(e)&&arguments.length>1?Lp(e,t,n):H(e)}function Lp(e,t,n){return new Dg(e,t,n)}class qg{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ba(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=$s-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Fe!==this)return vp(this,!0),!0}get value(){const t=this.dep.track();return xp(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Hg(e,t,n=!1){let r,s;return ve(e)?r=e:(r=e.get,s=e.set),new qg(r,s,n)}const io={},Ro=new WeakMap;let tr;function Vg(e,t=!1,n=tr){if(n){let r=Ro.get(n);r||Ro.set(n,r=[]),r.push(e)}}function Gg(e,t,n=Te){const{immediate:r,deep:s,once:o,scheduler:a,augmentJob:i,call:l}=n,c=C=>s?C:Et(C)||s===!1||s===0?dn(C,1):dn(C);let u,d,f,p,m=!1,h=!1;if(Ge(e)?(d=()=>e.value,m=Et(e)):Nn(e)?(d=()=>c(e),m=!0):ue(e)?(h=!0,m=e.some(C=>Nn(C)||Et(C)),d=()=>e.map(C=>{if(Ge(C))return C.value;if(Nn(C))return c(C);if(ve(C))return l?l(C,2):C()})):ve(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){_n();try{f()}finally{wn()}}const C=tr;tr=u;try{return l?l(e,3,[p]):e(p)}finally{tr=C}}:d=Nt,t&&s){const C=d,S=s===!0?1/0:s;d=()=>dn(C(),S)}const y=ga(),b=()=>{u.stop(),y&&y.active&&Ll(y.effects,u)};if(o&&t){const C=t;t=(...S)=>{const T=C(...S);return b(),T}}let v=h?new Array(e.length).fill(io):io;const g=C=>{if(!(!(u.flags&1)||!u.dirty&&!C))if(t){const S=u.run();if(C||s||m||(h?S.some((T,j)=>rt(T,v[j])):rt(S,v))){f&&f();const T=tr;tr=u;try{const j=[S,v===io?void 0:h&&v[0]===io?[]:v,p];v=S,l?l(t,3,j):t(...j)}finally{tr=T}}}else u.run()};return i&&i(g),u=new bp(d),u.scheduler=a?()=>a(g,!1):g,p=C=>Vg(C,!1,u),f=u.onStop=()=>{const C=Ro.get(u);if(C){if(l)l(C,4);else for(const S of C)S();Ro.delete(u)}},t?r?g(!0):v=u.run():a?a(g.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function dn(e,t=1/0,n){if(t<=0||!Pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ge(e))dn(e.value,t,n);else if(ue(e))for(let r=0;r<e.length;r++)dn(e[r],t,n);else if(hr(e)||Bn(e))e.forEach(r=>{dn(r,t,n)});else if(pp(e)){for(const r in e)dn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&dn(e[r],t,n)}return e}function Us(e,t,n,r){try{return r?e(...r):e()}catch(s){ka(s,t,n)}}function Ft(e,t,n,r){if(ve(e)){const s=Us(e,t,n,r);return s&&up(s)&&s.catch(o=>{ka(o,t,n)}),s}if(ue(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Ft(e[o],t,n,r));return s}}function ka(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Te;if(t){let i=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}i=i.parent}if(o){_n(),Us(o,null,10,[e,l,c]),wn();return}}Ug(e,n,s,r,a)}function Ug(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const vt=[];let Kt=-1;const Pr=[];let Pn=null,Ir=0;const Bp=Promise.resolve();let Po=null;function zn(e){const t=Po||Bp;return e?t.then(this?e.bind(this):e):t}function Wg(e){let t=Kt+1,n=vt.length;for(;t<n;){const r=t+n>>>1,s=vt[r],o=js(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Fl(e){if(!(e.flags&1)){const t=js(e),n=vt[vt.length-1];!n||!(e.flags&2)&&t>=js(n)?vt.push(e):vt.splice(Wg(t),0,e),e.flags|=1,Np()}}function Np(){Po||(Po=Bp.then(Fp))}function Kg(e){if(!ue(e))Pn&&e.id===-1?Pn.splice(Ir+1,0,e):e.flags&1||(Pr.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Pr.push(e[t]);Np()}function eu(e,t,n=Kt+1){for(;n<vt.length;n++){const r=vt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;vt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Dp(e){if(Pr.length){const t=[...new Set(Pr)].sort((n,r)=>js(n)-js(r));if(Pr.length=0,Pn){for(let n=0;n<t.length;n++)Pn.push(t[n]);return}for(Pn=t,Ir=0;Ir<Pn.length;Ir++){const n=Pn[Ir];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Pn=null,Ir=0}}const js=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Fp(e){try{for(Kt=0;Kt<vt.length;Kt++){const t=vt[Kt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Us(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Kt<vt.length;Kt++){const t=vt[Kt];t&&(t.flags&=-2)}Kt=-1,vt.length=0,Dp(),Po=null,(vt.length||Pr.length)&&Fp()}}let Xt,ls=[],qi=!1;function Ca(e,...t){Xt?Xt.emit(e,...t):qi||ls.push({event:e,args:t})}function zp(e,t){var n,r;Xt=e,Xt?(Xt.enabled=!0,ls.forEach(({event:s,args:o})=>Xt.emit(s,...o)),ls=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{zp(o,t)}),setTimeout(()=>{Xt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,qi=!0,ls=[])},3e3)):(qi=!0,ls=[])}function Zg(e,t){Ca("app:init",e,t,{Fragment:xe,Text:Ks,Comment:Lt,Static:ws})}function Yg(e){Ca("app:unmount",e)}const Xg=zl("component:added"),qp=zl("component:updated"),Jg=zl("component:removed"),Qg=e=>{Xt&&typeof Xt.cleanupBuffer=="function"&&!Xt.cleanupBuffer(e)&&Jg(e)};function zl(e){return t=>{Ca(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function eb(e,t,n){Ca("component:emit",e.appContext.app,e,t,n)}let lt=null,Hp=null;function Lo(e){const t=lt;return lt=e,Hp=e&&e.type.__scopeId||null,t}function re(e,t=lt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Fo(-1);const o=Lo(t),a=fn.length;let i;try{i=e(...s)}finally{for(let l=fn.length;l>a;l--)Zl();Lo(o),r._d&&Fo(1)}return __VUE_PROD_DEVTOOLS__&&qp(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function fr(e,t){if(lt===null)return e;const n=Aa(lt),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,a,i,l=Te]=t[s];o&&(ve(o)&&(o={mounted:o,updated:o}),o.deep&&dn(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:i,modifiers:l}))}return e}function Zn(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let a=0;a<s.length;a++){const i=s[a];o&&(i.oldValue=o[a].value);let l=i.dir[r];l&&(_n(),Ft(l,n,8,[e.el,i,e,t]),wn())}}function $a(e,t){if(ht){let n=ht.provides;const r=ht.parent&&ht.parent.provides;r===n&&(n=ht.provides=Object.create(r)),n[e]=t}}function mr(e,t,n=!1){const r=Sn();if(r||Br){let s=Br?Br._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ve(t)?t.call(r&&r.proxy):t}}const tb=Symbol.for("v-scx"),nb=()=>mr(tb);function gr(e,t){return Ws(e,null,t)}function Vp(e,t){return Ws(e,null,{flush:"post"})}function rb(e,t){return Ws(e,null,{flush:"sync"})}function Ie(e,t,n){return Ws(e,t,n)}function Ws(e,t,n=Te){const{immediate:r,deep:s,flush:o,once:a}=n,i=tt({},n),l=t&&r||!t&&o!=="post";let c;if(Is){if(o==="sync"){const p=nb();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Nt,p.resume=Nt,p.pause=Nt,p}}const u=ht;i.call=(p,m,h)=>Ft(p,u,m,h);let d=!1;o==="post"?i.scheduler=p=>{yt(p,u&&u.suspense)}:o!=="sync"&&(d=!0,i.scheduler=(p,m)=>{m?p():Fl(p)}),i.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=Gg(e,t,i);return Is&&(c?c.push(f):l&&f()),f}function sb(e,t,n){const r=this.proxy,s=ze(e)?e.includes(".")?Gp(r,e):()=>r[e]:e.bind(r,r);let o;ve(t)?o=t:(o=t.handler,n=t);const a=Zs(this),i=Ws(s,o.bind(r),n);return a(),i}function Gp(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const On=new WeakMap,Up=Symbol("_vte"),Sa=e=>e.__isTeleport,sr=e=>e&&(e.disabled||e.disabled===""),ob=e=>e&&(e.defer||e.defer===""),tu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,nu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Hi=(e,t)=>{const n=e&&e.to;return ze(n)?t?t(n):null:n},ab={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,a,i,l,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:y,parentNode:b}}=c,v=sr(t.props);let{dynamicChildren:g}=t;const C=(j,$,B)=>{j.shapeFlag&16&&u(j.children,$,B,s,o,a,i,l)},S=(j=t)=>{const $=sr(j.props),B=j.target=Hi(j.props,m),U=Vi(B,j,h,p);B&&(a!=="svg"&&tu(B)?a="svg":a!=="mathml"&&nu(B)&&(a="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(B),$||(C(j,B,U),cs(j,!1)))},T=j=>{const $=()=>{if(On.get(j)===$){if(On.delete(j),sr(j.props)){const B=b(j.el)||n;C(j,B,j.anchor),cs(j,!0)}S(j)}};On.set(j,$),yt($,o)};if(e==null){const j=t.el=h(""),$=t.anchor=h("");if(p(j,n,r),p($,n,r),ob(t.props)||o&&o.pendingBranch){T(t);return}v&&(C(t,n,$),cs(t,!0)),S()}else{t.el=e.el;const j=t.anchor=e.anchor,$=On.get(e);if($){$.flags|=8,On.delete(e),T(t);return}t.targetStart=e.targetStart;const B=t.target=e.target,U=t.targetAnchor=e.targetAnchor,V=sr(e.props),J=V?n:B,Y=V?j:U;if(a==="svg"||tu(B)?a="svg":(a==="mathml"||nu(B))&&(a="mathml"),g?(f(e.dynamicChildren,g,J,s,o,a,i),Kl(e,t,!0)):l||d(e,t,J,Y,s,o,a,i,!1),v)V?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):lo(t,n,j,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=Hi(t.props,m);K&&(t.target=K,lo(t,K,null,c,0))}else V&&lo(t,B,U,c,1);cs(t,v)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:a,children:i,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e,p=sr(f),m=o||!p,h=On.get(e);if(h&&(h.flags|=8,On.delete(e)),d&&(s(c),s(u)),o&&s(l),!h&&(p||d)&&a&16)for(let y=0;y<i.length;y++){const b=i[y];r(b,t,n,m,!!b.dynamicChildren)}},move:lo,hydrate:ib};function lo(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:a,anchor:i,shapeFlag:l,children:c,props:u}=e,d=o===2;if(d&&r(a,t,n),!On.has(e)&&(!d||sr(u))&&l&16)for(let f=0;f<c.length;f++)s(c[f],t,n,2);d&&r(i,t,n)}function ib(e,t,n,r,s,o,{o:{nextSibling:a,parentNode:i,querySelector:l,insert:c,createText:u}},d){function f(y,b){let v=b;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,y._lpa=t.targetAnchor&&a(t.targetAnchor);break}}v=a(v)}}function p(y,b){b.anchor=d(a(y),b,i(y),n,r,s,o)}const m=t.target=Hi(t.props,l),h=sr(t.props);if(m){const y=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,y),t.targetAnchor||Vi(m,t,u,c,i(e)===m?e:null)):(t.anchor=a(e),f(m,y),t.targetAnchor||Vi(m,t,u,c),d(y&&a(y),t,m,n,r,s,o))),cs(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const lb=ab;function cs(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Vi(e,t,n,r,s=null){const o=t.targetStart=n(""),a=t.targetAnchor=n("");return o[Up]=a,e&&(r(o,e,s),r(a,e,s)),a}const Ja=Symbol("_leaveCb");function cb(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Lt){t=n;break}}return t}function Wp(e){if(!Hl(e))return Sa(e.type)&&e.children?cb(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ve(n.default))return n.default()}}function ql(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;ql(Sa(n.type)&&Wp(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fe(e,t){return ve(e)?tt({name:e.name},t,{setup:e}):e}function ub(){const e=Sn();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Kp(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ru(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Bo=new WeakMap;function vs(e,t,n,r,s=!1){if(ue(e)){e.forEach((h,y)=>vs(h,t&&(ue(t)?t[y]:t),n,r,s));return}if(Lr(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&vs(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Aa(r.component):r.el,a=s?null:o,{i,r:l}=e,c=t&&t.r,u=i.refs===Te?i.refs={}:i.refs,d=i.setupState,f=Oe(d),p=d===Te?cp:h=>ru(u,h)?!1:Re(f,h),m=(h,y)=>!(y&&ru(u,y));if(c!=null&&c!==l){if(su(t),ze(c))u[c]=null,p(c)&&(d[c]=null);else if(Ge(c)){const h=t;m(c,h.k)&&(c.value=null),h.k&&(u[h.k]=null)}}if(ve(l))Us(l,i,12,[a,u]);else{const h=ze(l),y=Ge(l);if(h||y){const b=()=>{if(e.f){const v=h?p(l)?d[l]:u[l]:m()||!e.k?l.value:u[e.k];if(s)ue(v)&&Ll(v,o);else if(ue(v))v.includes(o)||v.push(o);else if(h)u[l]=[o],p(l)&&(d[l]=u[l]);else{const g=[o];m(l,e.k)&&(l.value=g),e.k&&(u[e.k]=g)}}else h?(u[l]=a,p(l)&&(d[l]=a)):y&&(m(l,e.k)&&(l.value=a),e.k&&(u[e.k]=a))};if(a){const v=()=>{b(),Bo.delete(e)};v.id=-1,Bo.set(e,v),yt(v,n)}else su(e),b()}}}function su(e){const t=Bo.get(e);t&&(t.flags|=8,Bo.delete(e))}dr().requestIdleCallback;dr().cancelIdleCallback;const Lr=e=>!!e.type.__asyncLoader,Hl=e=>e.type.__isKeepAlive;function db(e,t){Zp(e,"a",t)}function pb(e,t){Zp(e,"da",t)}function Zp(e,t,n=ht){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ja(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Hl(s.parent.vnode)&&fb(r,t,n,s),s=s.parent}}function fb(e,t,n,r){const s=ja(t,e,r,!0);Wr(()=>{Ll(r[t],s)},n)}function ja(e,t,n=ht,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{_n();const i=Zs(n),l=Ft(t,n,e,a);return i(),wn(),l});return r?s.unshift(o):s.push(o),o}}const Cn=e=>(t,n=ht)=>{(!Is||e==="sp")&&ja(e,(...r)=>t(...r),n)},mb=Cn("bm"),$n=Cn("m"),hb=Cn("bu"),Yp=Cn("u"),Vl=Cn("bum"),Wr=Cn("um"),gb=Cn("sp"),bb=Cn("rtg"),yb=Cn("rtc");function vb(e,t=ht){ja("ec",e,t)}const _b="components",Xp=Symbol.for("v-ndc");function qn(e){return ze(e)?wb(_b,e,!1)||e:e||Xp}function wb(e,t,n=!0,r=!1){const s=lt||ht;if(s){const o=s.type;{const i=sy(o,!1);if(i&&(i===t||i===at(t)||i===ma(at(t))))return o}const a=ou(s[e]||o[e],t)||ou(s.appContext[e],t);return!a&&r?o:a}}function ou(e,t){return e&&(e[t]||e[at(t)]||e[ma(at(t))])}function Ve(e,t,n,r){let s;const o=n,a=ue(e);if(a||ze(e)){const i=a&&Nn(e);let l=!1,c=!1;i&&(l=!Et(e),c=Qt(e),e=ya(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(l?c?Fn(Pt(e[u])):Pt(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o)}else if(Pe(e))if(e[Symbol.iterator])s=Array.from(e,(i,l)=>t(i,l,void 0,o));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,c=i.length;l<c;l++){const u=i[l];s[l]=t(e[u],u,l,o)}}else s=[];return s}function Le(e,t,n,r,s,o){if(n==null&&(n={}),lt.ce||lt.parent&&Lr(lt.parent)&<.parent.ce){const c=o!=null&&n.key==null?tt({},n,{key:o}):n,u=Object.keys(c).length>0;return k(),ae(xe,null,[R("slot",c,r&&r())],u?-2:64)}let a=e[t];a&&a._c&&(a._d=!1);const i=fn.length;k();let l;try{const c=a&&Jp(a(n)),u=n.key||o||c&&c.key;l=ae(xe,{key:(u&&!At(u)?u:`_${t}`)+(!c&&r?"_fb":"")},c||(r?r():[]),c&&e._===1?64:-2)}catch(c){for(let u=fn.length;u>i;u--)Zl();throw c}finally{a&&a._c&&(a._d=!0)}return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),l}function Jp(e){return e.some(t=>As(t)?!(t.type===Lt||t.type===xe&&!Jp(t.children)):!0)?e:null}function xb(e,t){const n={};for(const r in e)n[gs(r)]=e[r];return n}const Gi=e=>e?vf(e)?Aa(e):Gi(e.parent):null,_s=tt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gi(e.parent),$root:e=>Gi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?ef(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{Fl(e.update)}),$nextTick:e=>e.n||(e.n=zn.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?sb.bind(e):Nt}),Qa=(e,t)=>e!==Te&&!e.__isScriptSetup&&Re(e,t),kb={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:a,type:i,appContext:l}=e;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Qa(r,t))return a[t]=1,r[t];if(__VUE_OPTIONS_API__&&s!==Te&&Re(s,t))return a[t]=2,s[t];if(Re(o,t))return a[t]=3,o[t];if(n!==Te&&Re(n,t))return a[t]=4,n[t];(!__VUE_OPTIONS_API__||Ui)&&(a[t]=0)}}const c=_s[t];let u,d;if(c)return t==="$attrs"&&ft(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==Te&&Re(n,t))return a[t]=4,n[t];if(d=l.config.globalProperties,Re(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Qa(s,t)?(s[t]=n,!0):__VUE_OPTIONS_API__&&r!==Te&&Re(r,t)?(r[t]=n,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:a}},i){let l;return!!(n[i]||__VUE_OPTIONS_API__&&e!==Te&&i[0]!=="$"&&Re(e,i)||Qa(t,i)||Re(o,i)||Re(r,i)||Re(_s,i)||Re(s.config.globalProperties,i)||(l=a.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Es(e){return ue(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Cb(e,t){const n=Es(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?ue(s)||ve(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function No(e,t){return!e||!t?e||t:ue(e)&&ue(t)?e.concat(t):tt({},Es(e),Es(t))}let Ui=!0;function $b(e){const t=ef(e),n=e.proxy,r=e.ctx;Ui=!1,t.beforeCreate&&au(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:a,watch:i,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:y,beforeDestroy:b,beforeUnmount:v,destroyed:g,unmounted:C,render:S,renderTracked:T,renderTriggered:j,errorCaptured:$,serverPrefetch:B,expose:U,inheritAttrs:V,components:J,directives:Y,filters:K}=t;if(c&&Sb(c,r,null),a)for(const de in a){const le=a[de];ve(le)&&(r[de]=le.bind(n))}if(s){const de=s.call(n,n);Pe(de)&&(e.data=_a(de))}if(Ui=!0,o)for(const de in o){const le=o[de],Me=ve(le)?le.bind(n,n):ve(le.get)?le.get.bind(n,n):Nt,te=!ve(le)&&ve(le.set)?le.set.bind(n):Nt,Ue=M({get:Me,set:te});Object.defineProperty(r,de,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:qe=>Ue.value=qe})}if(i)for(const de in i)Qp(i[de],r,n,de);if(l){const de=ve(l)?l.call(n):l;Reflect.ownKeys(de).forEach(le=>{$a(le,de[le])})}u&&au(u,e,"c");function ie(de,le){ue(le)?le.forEach(Me=>de(Me.bind(n))):le&&de(le.bind(n))}if(ie(mb,d),ie($n,f),ie(hb,p),ie(Yp,m),ie(db,h),ie(pb,y),ie(vb,$),ie(yb,T),ie(bb,j),ie(Vl,v),ie(Wr,C),ie(gb,B),ue(U))if(U.length){const de=e.exposed||(e.exposed={});U.forEach(le=>{Object.defineProperty(de,le,{get:()=>n[le],set:Me=>n[le]=Me,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===Nt&&(e.render=S),V!=null&&(e.inheritAttrs=V),J&&(e.components=J),Y&&(e.directives=Y),B&&Kp(e)}function Sb(e,t,n=Nt){ue(e)&&(e=Wi(e));for(const r in e){const s=e[r];let o;Pe(s)?"default"in s?o=mr(s.from||r,s.default,!0):o=mr(s.from||r):o=mr(s),Ge(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function au(e,t,n){Ft(ue(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Qp(e,t,n,r){let s=r.includes(".")?Gp(n,r):()=>n[r];if(ze(e)){const o=t[e];ve(o)&&Ie(s,o)}else if(ve(e))Ie(s,e.bind(n));else if(Pe(e))if(ue(e))e.forEach(o=>Qp(o,t,n,r));else{const o=ve(e.handler)?e.handler.bind(n):t[e.handler];ve(o)&&Ie(s,o,e)}}function ef(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,i=o.get(t);let l;return i?l=i:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>Do(l,c,a,!0)),Do(l,t,a)),Pe(t)&&o.set(t,l),l}function Do(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Do(e,o,n,!0),s&&s.forEach(a=>Do(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const i=jb[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const jb={data:iu,props:lu,emits:lu,methods:us,computed:us,beforeCreate:bt,created:bt,beforeMount:bt,mounted:bt,beforeUpdate:bt,updated:bt,beforeDestroy:bt,beforeUnmount:bt,destroyed:bt,unmounted:bt,activated:bt,deactivated:bt,errorCaptured:bt,serverPrefetch:bt,components:us,directives:us,watch:Ab,provide:iu,inject:Eb};function iu(e,t){return t?e?function(){return tt(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function Eb(e,t){return us(Wi(e),Wi(t))}function Wi(e){if(ue(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function bt(e,t){return e?[...new Set([].concat(e,t))]:t}function us(e,t){return e?tt(Object.create(null),e,t):t}function lu(e,t){return e?ue(e)&&ue(t)?[...new Set([...e,...t])]:tt(Object.create(null),Es(e),Es(t??{})):t}function Ab(e,t){if(!e)return t;if(!t)return e;const n=tt(Object.create(null),e);for(const r in t)n[r]=bt(e[r],t[r]);return n}function tf(){return{app:null,config:{isNativeTag:cp,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Tb=0;function Ib(e,t){return function(r,s=null){ve(r)||(r=tt({},r)),s!=null&&!Pe(s)&&(s=null);const o=tf(),a=new WeakSet,i=[];let l=!1;const c=o.app={_uid:Tb++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:hu,get config(){return o.config},set config(u){},use(u,...d){return a.has(u)||(u&&ve(u.install)?(a.add(u),u.install(c,...d)):ve(u)&&(a.add(u),u(c,...d))),c},mixin(u){return __VUE_OPTIONS_API__&&(o.mixins.includes(u)||o.mixins.push(u)),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,f){if(!l){const p=c._ceVNode||R(r,s);return p.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),e(p,u,f),l=!0,c._container=u,u.__vue_app__=c,__VUE_PROD_DEVTOOLS__&&(c._instance=p.component,Zg(c,hu)),Aa(p.component)}},onUnmount(u){i.push(u)},unmount(){l&&(Ft(i,c._instance,16),e(null,c._container),__VUE_PROD_DEVTOOLS__&&(c._instance=null,Yg(c)),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=Br;Br=c;try{return u()}finally{Br=d}}};return c}}let Br=null;function Gl(e,t,n=Te){const r=Sn(),s=at(t),o=kn(t),a=nf(e,s),i=Pp((l,c)=>{let u,d=Te,f;return rb(()=>{const p=e[s];rt(u,p)&&(u=p,c())}),{get(){return l(),n.get?n.get(u):u},set(p){const m=n.set?n.set(p):p;if(!rt(m,u)&&!(d!==Te&&rt(p,d)))return;const h=r.vnode.props,y=!!(h&&(t in h||s in h||o in h)&&(`onUpdate:${t}`in h||`onUpdate:${s}`in h||`onUpdate:${o}`in h));y||(u=p,c()),r.emit(`update:${t}`,m),rt(p,d)&&(rt(p,m)&&!rt(m,f)||y&&d!==Te&&!rt(m,u))&&c(),d=p,f=m}}});return i[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||Te:i,done:!1}:{done:!0}}}},i}const nf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${at(t)}Modifiers`]||e[`${kn(t)}Modifiers`];function Ob(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Te;let s=n;const o=t.startsWith("update:"),a=o&&nf(r,t.slice(7));a&&(a.trim&&(s=n.map(u=>ze(u)?u.trim():u)),a.number&&(s=s.map(ha))),__VUE_PROD_DEVTOOLS__&&eb(e,t,s);let i,l=r[i=gs(t)]||r[i=gs(at(t))];!l&&o&&(l=r[i=gs(kn(t))]),l&&Ft(l,e,6,s);const c=r[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Ft(c,e,6,s)}}const Mb=new WeakMap;function rf(e,t,n=!1){const r=__VUE_OPTIONS_API__&&n?Mb:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let a={},i=!1;if(__VUE_OPTIONS_API__&&!ve(e)){const l=c=>{const u=rf(c,t,!0);u&&(i=!0,tt(a,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(Pe(e)&&r.set(e,null),null):(ue(o)?o.forEach(l=>a[l]=null):tt(a,o),Pe(e)&&r.set(e,a),a)}function Ea(e,t){return!e||!ua(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,kn(t))||Re(e,t))}function cu(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:a,attrs:i,emit:l,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,y=Lo(e);let b,v;try{if(n.shapeFlag&4){const C=s||r,S=C;b=Yt(c.call(S,C,u,d,p,f,m)),v=i}else{const C=t;b=Yt(C.length>1?C(d,{attrs:i,slots:a,emit:l}):C(d,null)),v=t.props?i:Rb(i)}}catch(C){fn.length=0,ka(C,e,1),b=R(Lt)}let g=b;if(v&&h!==!1){const C=Object.keys(v),{shapeFlag:S}=g;C.length&&S&7&&(o&&C.some(da)&&(v=Pb(v,o)),g=br(g,v,!1,!0))}if(n.dirs&&(g=br(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition){const C=Sa(g.type)&&Wp(g)||g;ql(C,n.transition)}return b=g,Lo(y),b}const Rb=e=>{let t;for(const n in e)(n==="class"||n==="style"||ua(n))&&((t||(t={}))[n]=e[n]);return t},Pb=(e,t)=>{const n={};for(const r in e)(!da(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Lb(e,t,n){const{props:r,children:s,component:o}=e,{props:a,children:i,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?uu(r,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(sf(a,r,f)&&!Ea(c,f))return!0}}}else return(s||i)&&(!i||!i.$stable)?!0:r===a?!1:r?a?uu(r,a,c):!0:!!a;return!1}function uu(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(sf(t,e,o)&&!Ea(n,o))return!0}return!1}function sf(e,t,n){const r=e[n],s=t[n];return n==="style"&&Pe(r)&&Pe(s)?!Dn(r,s):r!==s}function Bb({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const of={},af=()=>Object.create(of),lf=e=>Object.getPrototypeOf(e)===of;function Nb(e,t,n,r=!1){const s={},o=af();e.propsDefaults=Object.create(null),cf(e,t,s,o);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:Pg(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Db(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:a}}=e,i=Oe(s),[l]=e.propsOptions;let c=!1;if((r||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(Ea(e.emitsOptions,f))continue;const p=t[f];if(l)if(Re(o,f))p!==o[f]&&(o[f]=p,c=!0);else{const m=at(f);s[m]=Ki(l,i,m,p,e,!1)}else p!==o[f]&&(o[f]=p,c=!0)}}}else{cf(e,t,s,o)&&(c=!0);let u;for(const d in i)(!t||!Re(t,d)&&((u=kn(d))===d||!Re(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=Ki(l,i,d,void 0,e,!0)):delete s[d]);if(o!==i)for(const d in o)(!t||!Re(t,d))&&(delete o[d],c=!0)}c&&un(e.attrs,"set","")}function cf(e,t,n,r){const[s,o]=e.propsOptions;let a=!1,i;if(t)for(let l in t){if(hs(l))continue;const c=t[l];let u;s&&Re(s,u=at(l))?!o||!o.includes(u)?n[u]=c:(i||(i={}))[u]=c:Ea(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,a=!0)}if(o){const l=Oe(n),c=i||Te;for(let u=0;u<o.length;u++){const d=o[u];n[d]=Ki(s,l,d,c[d],e,!Re(c,d))}}return a}function Ki(e,t,n,r,s,o){const a=e[n];if(a!=null){const i=Re(a,"default");if(i&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&ve(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=Zs(s);r=c[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}a[0]&&(o&&!i?r=!1:a[1]&&(r===""||r===kn(n))&&(r=!0))}return r}const Fb=new WeakMap;function uf(e,t,n=!1){const r=__VUE_OPTIONS_API__&&n?Fb:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,a={},i=[];let l=!1;if(__VUE_OPTIONS_API__&&!ve(e)){const u=d=>{l=!0;const[f,p]=uf(d,t,!0);tt(a,f),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Pe(e)&&r.set(e,ir),ir;if(ue(o))for(let u=0;u<o.length;u++){const d=at(o[u]);du(d)&&(a[d]=Te)}else if(o)for(const u in o){const d=at(u);if(du(d)){const f=o[u],p=a[d]=ue(f)||ve(f)?{type:f}:tt({},f),m=p.type;let h=!1,y=!0;if(ue(m))for(let b=0;b<m.length;++b){const v=m[b],g=ve(v)&&v.name;if(g==="Boolean"){h=!0;break}else g==="String"&&(y=!1)}else h=ve(m)&&m.name==="Boolean";p[0]=h,p[1]=y,(h||Re(p,"default"))&&i.push(d)}}const c=[a,i];return Pe(e)&&r.set(e,c),c}function du(e){return e[0]!=="$"&&!hs(e)}const Ul=e=>e==="_"||e==="_ctx"||e==="$stable",Wl=e=>ue(e)?e.map(Yt):[Yt(e)],zb=(e,t,n)=>{if(t._n)return t;const r=re((...s)=>Wl(t(...s)),n);return r._c=!1,r},df=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ul(s))continue;const o=e[s];if(ve(o))t[s]=zb(s,o,r);else if(o!=null){const a=Wl(o);t[s]=()=>a}}},pf=(e,t)=>{const n=Wl(t);e.slots.default=()=>n},ff=(e,t,n)=>{for(const r in t)(n||!Ul(r))&&(e[r]=t[r])},qb=(e,t,n)=>{const r=e.slots=af();if(e.vnode.shapeFlag&32){const s=t._;s?(ff(r,t,n),n&&Oo(r,"_",s,!0)):df(t,r)}else t&&pf(e,t)},Hb=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,a=Te;if(r.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:ff(s,t,n):(o=!t.$stable,df(t,s)),a=t}else t&&(pf(e,t),a={default:1});if(o)for(const i in s)!Ul(i)&&a[i]==null&&delete s[i]};function Vb(){typeof __VUE_OPTIONS_API__!="boolean"&&(dr().__VUE_OPTIONS_API__=!0),typeof __VUE_PROD_DEVTOOLS__!="boolean"&&(dr().__VUE_PROD_DEVTOOLS__=!1),typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(dr().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const yt=Zb;function Gb(e){return Ub(e)}function Ub(e,t){Vb();const n=dr();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&zp(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:s,patchProp:o,createElement:a,createText:i,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=Nt,insertStaticContent:m}=e,h=(w,E,O,z=null,N=null,F=null,X=void 0,W=null,G=!!E.dynamicChildren)=>{if(w===E)return;w&&!ts(w,E)&&(z=oe(w),qe(w,N,F,!0),w=null),E.patchFlag===-2&&(G=!1,E.dynamicChildren=null),E.dynamicChildren&&w&&w.dynamicChildren&&w.dynamicChildren.hasOnce&&(E.dynamicChildren===ir&&(E.dynamicChildren=[]),E.dynamicChildren.hasOnce=!0);const{type:D,ref:he,shapeFlag:Q}=E;switch(D){case Ks:y(w,E,O,z);break;case Lt:b(w,E,O,z);break;case ws:w==null&&v(E,O,z,X);break;case xe:J(w,E,O,z,N,F,X,W,G);break;default:Q&1?S(w,E,O,z,N,F,X,W,G):Q&6?Y(w,E,O,z,N,F,X,W,G):(Q&64||Q&128)&&D.process(w,E,O,z,N,F,X,W,G,Ee)}he!=null&&N?vs(he,w&&w.ref,F,E||w,!E):he==null&&w&&w.ref!=null&&vs(w.ref,null,F,w,!0)},y=(w,E,O,z)=>{if(w==null)r(E.el=i(E.children),O,z);else{const N=E.el=w.el;E.children!==w.children&&c(N,E.children)}},b=(w,E,O,z)=>{w==null?r(E.el=l(E.children||""),O,z):E.el=w.el},v=(w,E,O,z)=>{[w.el,w.anchor]=m(w.children,E,O,z,w.el,w.anchor)},g=({el:w,anchor:E},O,z)=>{let N;for(;w&&w!==E;)N=f(w),r(w,O,z),w=N;r(E,O,z)},C=({el:w,anchor:E})=>{let O;for(;w&&w!==E;)O=f(w),s(w),w=O;s(E)},S=(w,E,O,z,N,F,X,W,G)=>{if(E.type==="svg"?X="svg":E.type==="math"&&(X="mathml"),w==null)T(E,O,z,N,F,X,W,G);else{const D=w.el&&w.el._isVueCE?w.el:null;try{D&&D._beginPatch(),B(w,E,N,F,X,W,G)}finally{D&&D._endPatch()}}},T=(w,E,O,z,N,F,X,W)=>{let G,D;const{props:he,shapeFlag:Q,transition:pe,dirs:_e}=w;if(G=w.el=a(w.type,F,he&&he.is,he),Q&8?u(G,w.children):Q&16&&$(w.children,G,null,z,N,ei(w,F),X,W),_e&&Zn(w,null,z,"created"),j(G,w,w.scopeId,X,z),he){for(const Ne in he)Ne!=="value"&&!hs(Ne)&&o(G,Ne,null,he[Ne],F,z);"value"in he&&o(G,"value",null,he.value,F),(D=he.onVnodeBeforeMount)&&Gt(D,z,w)}__VUE_PROD_DEVTOOLS__&&(Oo(G,"__vnode",w,!0),Oo(G,"__vueParentComponent",z,!0)),_e&&Zn(w,null,z,"beforeMount");const Ae=Wb(N,pe);Ae&&pe.beforeEnter(G),r(G,E,O),((D=he&&he.onVnodeMounted)||Ae||_e)&&yt(()=>{D&&Gt(D,z,w),Ae&&pe.enter(G),_e&&Zn(w,null,z,"mounted")},N)},j=(w,E,O,z,N)=>{if(O&&p(w,O),z)for(let F=0;F<z.length;F++)p(w,z[F]);if(N){let F=N.subTree;if(E===F||gf(F.type)&&(F.ssContent===E||F.ssFallback===E)){const X=N.vnode;j(w,X,X.scopeId,X.slotScopeIds,N.parent)}}},$=(w,E,O,z,N,F,X,W,G=0)=>{for(let D=G;D<w.length;D++){const he=w[D]=W?cn(w[D]):Yt(w[D]);h(null,he,E,O,z,N,F,X,W)}},B=(w,E,O,z,N,F,X)=>{const W=E.el=w.el;__VUE_PROD_DEVTOOLS__&&(W.__vnode=E);let{patchFlag:G,dynamicChildren:D,dirs:he}=E;G|=w.patchFlag&16;const Q=w.props||Te,pe=E.props||Te;let _e;if(O&&Yn(O,!1),(_e=pe.onVnodeBeforeUpdate)&&Gt(_e,O,E,w),he&&Zn(E,w,O,"beforeUpdate"),O&&Yn(O,!0),D&&(!w.dynamicChildren||w.dynamicChildren.length!==D.length)&&(G=0,X=!1,D=null),(Q.innerHTML&&pe.innerHTML==null||Q.textContent&&pe.textContent==null)&&u(W,""),D?U(w.dynamicChildren,D,W,O,z,ei(E,N),F):X||le(w,E,W,null,O,z,ei(E,N),F,!1),G>0){if(G&16)V(W,Q,pe,O,N);else if(G&2&&Q.class!==pe.class&&o(W,"class",null,pe.class,N),G&4&&o(W,"style",Q.style,pe.style,N),G&8){const Ae=E.dynamicProps;for(let Ne=0;Ne<Ae.length;Ne++){const Be=Ae[Ne],Ze=Q[Be],it=pe[Be];(it!==Ze||Be==="value")&&o(W,Be,Ze,it,N,O)}}G&1&&w.children!==E.children&&u(W,E.children)}else!X&&D==null&&V(W,Q,pe,O,N);((_e=pe.onVnodeUpdated)||he)&&yt(()=>{_e&&Gt(_e,O,E,w),he&&Zn(E,w,O,"updated")},z)},U=(w,E,O,z,N,F,X)=>{for(let W=0;W<E.length;W++){const G=w[W],D=E[W],he=G.el&&(G.type===xe||!ts(G,D)||G.shapeFlag&198)?d(G.el):O;h(G,D,he,null,z,N,F,X,!0)}},V=(w,E,O,z,N)=>{if(E!==O){if(E!==Te)for(const F in E)!hs(F)&&!(F in O)&&o(w,F,E[F],null,N,z);for(const F in O){if(hs(F))continue;const X=O[F],W=E[F];X!==W&&F!=="value"&&o(w,F,W,X,N,z)}"value"in O&&o(w,"value",E.value,O.value,N)}},J=(w,E,O,z,N,F,X,W,G)=>{const D=E.el=w?w.el:i(""),he=E.anchor=w?w.anchor:i("");let{patchFlag:Q,dynamicChildren:pe,slotScopeIds:_e}=E;_e&&(W=W?W.concat(_e):_e),w==null?(r(D,O,z),r(he,O,z),$(E.children||[],O,he,N,F,X,W,G)):Q>0&&Q&64&&pe&&w.dynamicChildren&&w.dynamicChildren.length===pe.length?(U(w.dynamicChildren,pe,O,N,F,X,W),(E.key!=null||N&&E===N.subTree)&&Kl(w,E,!0)):le(w,E,O,he,N,F,X,W,G)},Y=(w,E,O,z,N,F,X,W,G)=>{E.slotScopeIds=W,w==null?E.shapeFlag&512?N.ctx.activate(E,O,z,X,G):K(E,O,z,N,F,X,G):be(w,E,G)},K=(w,E,O,z,N,F,X)=>{const W=w.component=Qb(w,z,N);if(Hl(w)&&(W.ctx.renderer=Ee),ey(W,!1,X),W.asyncDep){if(N&&N.registerDep(W,ie,X),!w.el){const G=W.subTree=R(Lt);b(null,G,E,O),w.placeholder=G.el}}else ie(W,w,E,O,N,F,X)},be=(w,E,O)=>{const z=E.component=w.component;if(Lb(w,E,O))if(z.asyncDep&&!z.asyncResolved){E.el=w.el,de(z,E,O);return}else z.next=E,z.update();else E.el=w.el,z.vnode=E},ie=(w,E,O,z,N,F,X)=>{const W=()=>{if(w.isMounted){let{next:Q,bu:pe,u:_e,parent:Ae,vnode:Ne}=w;{const Ht=mf(w);if(Ht){Q&&(Q.el=Ne.el,de(w,Q,X)),Ht.asyncDep.then(()=>{yt(()=>{w.isUnmounted||D()},N)});return}}let Be=Q,Ze;Yn(w,!1),Q?(Q.el=Ne.el,de(w,Q,X)):Q=Ne,pe&&ko(pe),(Ze=Q.props&&Q.props.onVnodeBeforeUpdate)&&Gt(Ze,Ae,Q,Ne),Yn(w,!0);const it=cu(w),qt=w.subTree;w.subTree=it,h(qt,it,d(qt.el),oe(qt),w,N,F),Q.el=it.el,Be===null&&Bb(w,it.el),_e&&yt(_e,N),(Ze=Q.props&&Q.props.onVnodeUpdated)&&yt(()=>Gt(Ze,Ae,Q,Ne),N),__VUE_PROD_DEVTOOLS__&&qp(w)}else{let Q;const{el:pe,props:_e}=E,{bm:Ae,m:Ne,parent:Be,root:Ze,type:it}=w,qt=Lr(E);Yn(w,!1),Ae&&ko(Ae),!qt&&(Q=_e&&_e.onVnodeBeforeMount)&&Gt(Q,Be,E),Yn(w,!0);{Ze.ce&&Ze.ce._hasShadowRoot()&&Ze.ce._injectChildStyle(it,w.parent?w.parent.type:void 0);const Ht=w.subTree=cu(w);h(null,Ht,O,z,w,N,F),E.el=Ht.el}if(Ne&&yt(Ne,N),!qt&&(Q=_e&&_e.onVnodeMounted)){const Ht=E;yt(()=>Gt(Q,Be,Ht),N)}(E.shapeFlag&256||Be&&Lr(Be.vnode)&&Be.vnode.shapeFlag&256)&&w.a&&yt(w.a,N),w.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Xg(w),E=O=z=null}};w.scope.on();const G=w.effect=new bp(W);w.scope.off();const D=w.update=G.run.bind(G),he=w.job=G.runIfDirty.bind(G);he.i=w,he.id=w.uid,G.scheduler=()=>Fl(he),Yn(w,!0),D()},de=(w,E,O)=>{E.component=w;const z=w.vnode.props;w.vnode=E,w.next=null,Db(w,E.props,z,O),Hb(w,E.children,O),_n(),eu(w),wn()},le=(w,E,O,z,N,F,X,W,G=!1)=>{const D=w&&w.children,he=w?w.shapeFlag:0,Q=E.children,{patchFlag:pe,shapeFlag:_e}=E;if(pe>0){if(pe&128){te(D,Q,O,z,N,F,X,W,G);return}else if(pe&256){Me(D,Q,O,z,N,F,X,W,G);return}}_e&8?(he&16&&Z(D,N,F),Q!==D&&u(O,Q)):he&16?_e&16?te(D,Q,O,z,N,F,X,W,G):Z(D,N,F,!0):(he&8&&u(O,""),_e&16&&$(Q,O,z,N,F,X,W,G))},Me=(w,E,O,z,N,F,X,W,G)=>{w=w||ir,E=E||ir;const D=w.length,he=E.length,Q=Math.min(D,he);let pe;for(pe=0;pe<Q;pe++){const _e=E[pe]=G?cn(E[pe]):Yt(E[pe]);h(w[pe],_e,O,null,N,F,X,W,G)}D>he?Z(w,N,F,!0,!1,Q):$(E,O,z,N,F,X,W,G,Q)},te=(w,E,O,z,N,F,X,W,G)=>{let D=0;const he=E.length;let Q=w.length-1,pe=he-1;for(;D<=Q&&D<=pe;){const _e=w[D],Ae=E[D]=G?cn(E[D]):Yt(E[D]);if(ts(_e,Ae))h(_e,Ae,O,null,N,F,X,W,G);else break;D++}for(;D<=Q&&D<=pe;){const _e=w[Q],Ae=E[pe]=G?cn(E[pe]):Yt(E[pe]);if(ts(_e,Ae))h(_e,Ae,O,null,N,F,X,W,G);else break;Q--,pe--}if(D>Q){if(D<=pe){const _e=pe+1,Ae=_e<he?E[_e].el:z;for(;D<=pe;)h(null,E[D]=G?cn(E[D]):Yt(E[D]),O,Ae,N,F,X,W,G),D++}}else if(D>pe)for(;D<=Q;)qe(w[D],N,F,!0),D++;else{const _e=D,Ae=D,Ne=new Map;for(D=Ae;D<=pe;D++){const Ct=E[D]=G?cn(E[D]):Yt(E[D]);Ct.key!=null&&Ne.set(Ct.key,D)}let Be,Ze=0;const it=pe-Ae+1;let qt=!1,Ht=0;const Qr=new Array(it);for(D=0;D<it;D++)Qr[D]=0;for(D=_e;D<=Q;D++){const Ct=w[D];if(Ze>=it){qe(Ct,N,F,!0);continue}let Vt;if(Ct.key!=null)Vt=Ne.get(Ct.key);else for(Be=Ae;Be<=pe;Be++)if(Qr[Be-Ae]===0&&ts(Ct,E[Be])){Vt=Be;break}Vt===void 0?qe(Ct,N,F,!0):(Qr[Vt-Ae]=D+1,Vt>=Ht?Ht=Vt:qt=!0,h(Ct,E[Vt],O,null,N,F,X,W,G),Ze++)}const Gc=qt?Kb(Qr):ir;for(Be=Gc.length-1,D=it-1;D>=0;D--){const Ct=Ae+D,Vt=E[Ct],Uc=E[Ct+1],Wc=Ct+1<he?Uc.el||hf(Uc):z;Qr[D]===0?h(null,Vt,O,Wc,N,F,X,W,G):qt&&(Be<0||D!==Gc[Be]?Ue(Vt,O,Wc,2):Be--)}}},Ue=(w,E,O,z,N=null)=>{const{el:F,type:X,transition:W,children:G,shapeFlag:D}=w;if(D&6){Ue(w.component.subTree,E,O,z);return}if(D&128){w.suspense.move(E,O,z);return}if(D&64){X.move(w,E,O,Ee);return}if(X===xe){r(F,E,O);for(let Q=0;Q<G.length;Q++)Ue(G[Q],E,O,z);r(w.anchor,E,O);return}if(X===ws){g(w,E,O);return}if(z!==2&&D&1&&W)if(z===0)W.persisted&&!F[Ja]?r(F,E,O):(W.beforeEnter(F),r(F,E,O),yt(()=>W.enter(F),N));else{const{leave:Q,delayLeave:pe,afterLeave:_e}=W,Ae=()=>{w.ctx.isUnmounted?s(F):r(F,E,O)},Ne=()=>{const Be=F._isLeaving||!!F[Ja];F._isLeaving&&F[Ja](!0),W.persisted&&!Be?Ae():Q(F,()=>{Ae(),_e&&_e()})};pe?pe(F,Ae,Ne):Ne()}else r(F,E,O)},qe=(w,E,O,z=!1,N=!1)=>{const{type:F,props:X,ref:W,children:G,dynamicChildren:D,shapeFlag:he,patchFlag:Q,dirs:pe,cacheIndex:_e,memo:Ae}=w;if((Q===-2||D&&D.hasOnce)&&(N=!1),W!=null&&(_n(),vs(W,null,O,w,!0),wn()),_e!=null&&(!w.ctx||w.ctx===E)&&(E.renderCache[_e]=void 0),he&256){E.ctx.deactivate(w);return}const Ne=he&1&&pe,Be=!Lr(w);let Ze;if(Be&&(Ze=X&&X.onVnodeBeforeUnmount)&&Gt(Ze,E,w),he&6)P(w.component,O,z);else{if(he&128){w.suspense.unmount(O,z);return}Ne&&Zn(w,null,E,"beforeUnmount"),he&64?w.type.remove(w,E,O,Ee,z):D&&!D.hasOnce&&(F!==xe||Q>0&&Q&64)?Z(D,E,O,!1,!0):(F===xe&&Q&384||!N&&he&16)&&Z(G,E,O),z&&wt(w)}const it=Ae!=null&&_e==null;(Be&&(Ze=X&&X.onVnodeUnmounted)||Ne||it)&&yt(()=>{Ze&&Gt(Ze,E,w),Ne&&Zn(w,null,E,"unmounted"),it&&(w.el=null)},O)},wt=w=>{const{type:E,el:O,anchor:z,transition:N}=w;if(E===xe){A(O,z);return}if(E===ws){C(w),N&&!N.persisted&&N.afterLeave&&N.afterLeave();return}const F=()=>{s(O),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(w.shapeFlag&1&&N&&!N.persisted){const{leave:X,delayLeave:W}=N,G=()=>X(O,F);W?W(w.el,F,G):G()}else F()},A=(w,E)=>{let O;for(;w!==E;)O=f(w),s(w),w=O;s(E)},P=(w,E,O)=>{const{bum:z,scope:N,job:F,subTree:X,um:W,m:G,a:D}=w;pu(G),pu(D),z&&ko(z),N.stop(),F?(F.flags|=8,qe(X,w,E,O)):w.vnode.el&&X&&(X.transition=w.vnode.transition,qe(X,w,E,O)),W&&yt(W,E),yt(()=>{w.isUnmounted=!0},E),__VUE_PROD_DEVTOOLS__&&Qg(w)},Z=(w,E,O,z=!1,N=!1,F=0)=>{for(let X=F;X<w.length;X++)qe(w[X],E,O,z,N)},oe=w=>{if(w.shapeFlag&6)return oe(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const E=f(w.anchor||w.el),O=E&&E[Up];return O?f(O):E};let Se=!1;const me=(w,E,O)=>{let z;w==null?E._vnode&&(qe(E._vnode,null,null,!0),z=E._vnode.component):h(E._vnode||null,w,E,null,null,null,O),E._vnode=w,Se||(Se=!0,eu(z),Dp(),Se=!1)},Ee={p:h,um:qe,m:Ue,r:wt,mt:K,mc:$,pc:le,pbc:U,n:oe,o:e};return{render:me,hydrate:void 0,createApp:Ib(me)}}function ei({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Yn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Wb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Kl(e,t,n=!1){const r=e.children,s=t.children;if(ue(r)&&ue(s))for(let o=0;o<r.length;o++){const a=r[o];let i=s[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=s[o]=cn(s[o]),i.el=a.el),!n&&i.patchFlag!==-2&&Kl(a,i)),i.type===Ks&&(i.patchFlag===-1&&(i=s[o]=cn(i)),i.el=a.el),i.type===Lt&&!i.el&&(i.el=a.el)}}function Kb(e){const t=e.slice(),n=[0];let r,s,o,a,i;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,a=n.length-1;o<a;)i=o+a>>1,e[n[i]]<c?o=i+1:a=i;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function mf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:mf(t)}function pu(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function hf(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?hf(t.subTree):null}const gf=e=>e.__isSuspense;function Zb(e,t){t&&t.pendingBranch?ue(e)?t.effects.push(...e):t.effects.push(e):Kg(e)}const xe=Symbol.for("v-fgt"),Ks=Symbol.for("v-txt"),Lt=Symbol.for("v-cmt"),ws=Symbol.for("v-stc"),fn=[];let _t=null;function k(e=!1){fn.push(_t=e?null:[])}function Zl(){fn.pop(),_t=fn[fn.length-1]||null}let zr=1;function Fo(e,t=!1){zr+=e,e<0&&_t&&t&&(_t.hasOnce=!0)}function bf(e){return e.dynamicChildren=zr>0?_t||ir:null,Zl(),zr>0&&_t&&_t.push(e),e}function I(e,t,n,r,s,o){return bf(x(e,t,n,r,s,o,!0))}function ae(e,t,n,r,s){return bf(R(e,t,n,r,s,!0))}function As(e){return e?e.__v_isVNode===!0:!1}function ts(e,t){return e.type===t.type&&e.key===t.key}const yf=({key:e})=>e??null,Co=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ze(e)||Ge(e)||ve(e)?{i:lt,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,r=0,s=null,o=e===xe?0:1,a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yf(t),ref:t&&Co(t),scopeId:Hp,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:lt};return i?(zo(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ze(n)?8:16),zr>0&&!a&&_t&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&_t.push(l),l}const R=Yb;function Yb(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Xp)&&(e=Lt),As(e)){const i=br(e,t,!0);return n&&zo(i,n),zr>0&&!o&&_t&&(i.shapeFlag&6?_t[_t.indexOf(e)]=i:_t.push(i)),i.patchFlag=-2,i}if(oy(e)&&(e=e.__vccOpts),t){t=Yl(t);let{class:i,style:l}=t;i&&!ze(i)&&(t.class=je(i)),Pe(l)&&(xa(l)&&!ue(l)&&(l=tt({},l)),t.style=et(l))}const a=ze(e)?1:gf(e)?128:Sa(e)?64:Pe(e)?4:ve(e)?2:0;return x(e,t,n,r,s,a,o,!0)}function Yl(e){return e?xa(e)||lf(e)?tt({},e):e:null}function br(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:a,children:i,transition:l}=e,c=t?zt(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&yf(c),ref:t&&t.ref?n&&o?ue(o)?o.concat(Co(t)):[o,Co(t)]:Co(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&br(e.ssContent),ssFallback:e.ssFallback&&br(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return l&&r&&ql(u,l.clone(u)),u}function ce(e=" ",t=0){return R(Ks,null,e,t)}function Xl(e,t){const n=R(ws,null,e);return n.staticCount=t,n}function se(e="",t=!1){return t?(k(),ae(Lt,null,e)):R(Lt,null,e)}function Yt(e){return e==null||typeof e=="boolean"?R(Lt):ue(e)?R(xe,null,e.slice()):As(e)?cn(e):R(Ks,null,String(e))}function cn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:br(e)}function zo(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ue(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),zo(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!lf(t)?t._ctx=lt:s===3&<&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ve(t)){if(r&65){zo(e,{default:t});return}t={default:t,_ctx:lt},n=32}else t=String(t),r&64?(n=16,t=[ce(t)]):n=8;e.children=t,e.shapeFlag|=n}function zt(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=je([t.class,r.class]));else if(s==="style")t.style=et([t.style,r.style]);else if(ua(s)){const o=t[s],a=r[s];a&&o!==a&&!(ue(o)&&o.includes(a))?t[s]=o?[].concat(o,a):a:a==null&&o==null&&!da(s)&&(t[s]=a)}else s!==""&&(t[s]=r[s])}return t}function Gt(e,t,n,r=null){Ft(e,t,7,[n,r])}const Xb=tf();let Jb=0;function Qb(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Xb,o={uid:Jb++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new gg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:uf(r,s),emitsOptions:rf(r,s),emit:null,emitted:null,propsDefaults:Te,inheritAttrs:r.inheritAttrs,ctx:Te,data:Te,props:Te,attrs:Te,slots:Te,refs:Te,setupState:Te,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Ob.bind(null,o),e.ce&&e.ce(o),o}let ht=null;const Sn=()=>ht||lt;let qo,Ts;{const e=dr(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(a=>a(o)):s[0](o)}};qo=t("__VUE_INSTANCE_SETTERS__",n=>ht=n),Ts=t("__VUE_SSR_SETTERS__",n=>Is=n)}const Zs=e=>{const t=ht;return qo(e),e.scope.on(),()=>{e.scope.off(),qo(t)}},fu=()=>{ht&&ht.scope.off(),qo(null)};function vf(e){return e.vnode.shapeFlag&4}let Is=!1;function ey(e,t=!1,n=!1){t&&Ts(t);const{props:r,children:s}=e.vnode,o=vf(e);Nb(e,r,o,t),qb(e,s,n||t);const a=o?ty(e,t):void 0;return t&&Ts(!1),a}function ty(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,kb);const{setup:r}=n;if(r){_n();const s=e.setupContext=r.length>1?ry(e):null,o=Zs(e),a=Us(r,e,0,[e.props,s]),i=up(a);if(wn(),o(),(i||e.sp)&&!Lr(e)&&Kp(e),i){if(a.then(fu,fu),t)return a.then(l=>{Ts(!0);try{mu(e,l,t)}finally{Ts(!1)}}).catch(l=>{ka(l,e,0)});e.asyncDep=a}else mu(e,a)}else _f(e)}function mu(e,t,n){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pe(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=Rp(t)),_f(e)}function _f(e,t,n){const r=e.type;if(e.render||(e.render=r.render||Nt),__VUE_OPTIONS_API__){const s=Zs(e);_n();try{$b(e)}finally{wn(),s()}}}const ny={get(e,t){return ft(e,"get",""),e[t]}};function ry(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ny),slots:e.slots,emit:e.emit,expose:t}}function Aa(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Rp(ge(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in _s)return _s[n](e)},has(t,n){return n in t||n in _s}})):e.proxy}function sy(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function oy(e){return ve(e)&&"__vccOpts"in e}const M=(e,t)=>Hg(e,t,Is);function mn(e,t,n){try{Fo(-1);const r=arguments.length;return r===2?Pe(t)&&!ue(t)?As(t)?R(e,null,[t]):R(e,t):R(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&As(n)&&(n=[n]),R(e,t,n))}finally{Fo(1)}}function ay(e,t,n,r){const s=n[r];if(s&&iy(s,e))return s;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function iy(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(rt(n[r],t[r]))return!1;return zr>0&&_t&&_t.push(e),!0}const hu="3.5.43";let Zi;const gu=typeof window<"u"&&window.trustedTypes;if(gu)try{Zi=gu.createPolicy("vue",{createHTML:e=>e})}catch{}const wf=Zi?e=>Zi.createHTML(e):e=>e,ly="http://www.w3.org/2000/svg",cy="http://www.w3.org/1998/Math/MathML",ln=typeof document<"u"?document:null,bu=ln&&ln.createElement("template"),uy={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?ln.createElementNS(ly,e):t==="mathml"?ln.createElementNS(cy,e):n?ln.createElement(e,{is:n}):ln.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>ln.createTextNode(e),createComment:e=>ln.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ln.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const a=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{bu.innerHTML=wf(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const i=bu.content;if(r==="svg"||r==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dy=Symbol("_vtc");function py(e,t,n){const r=e[dy];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const yu=Symbol("_vod"),fy=Symbol("_vsh"),my=Symbol(""),hy=/(?:^|;)\s*display\s*:/;function gy(e,t,n){const r=e.style,s=ze(n);let o=!1;if(n&&!s){if(t)if(ze(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();n[i]==null&&ds(r,i,"")}else for(const a in t)n[a]==null&&ds(r,a,"");for(const a in n){a==="display"&&(o=!0);const i=n[a];i!=null?yy(e,a,!ze(t)&&t?t[a]:void 0,i)||ds(r,a,i):ds(r,a,"")}}else if(s){if(t!==n){const a=r[my];a&&(n+=";"+a),r.cssText=n,o=hy.test(n)}}else t&&e.removeAttribute("style");yu in e&&(e[yu]=o?r.display:"",e[fy]&&(r.display="none"))}const co=/\s*!important$/;function ds(e,t,n){if(ue(n))n.forEach(r=>ds(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))co.test(n)?e.setProperty(t,n.replace(co,""),"important"):e.setProperty(t,n);else{const r=by(e,t);co.test(n)?e.setProperty(kn(r),n.replace(co,""),"important"):e[r]=n}}const vu=["Webkit","Moz","ms"],ti={};function by(e,t){const n=ti[t];if(n)return n;let r=at(t);if(r!=="filter"&&r in e)return ti[t]=r;r=ma(r);for(let s=0;s<vu.length;s++){const o=vu[s]+r;if(o in e)return ti[t]=o}return t}function yy(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ze(r)&&n===r}const _u="http://www.w3.org/1999/xlink";function wu(e,t,n,r,s,o=pg(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(_u,t.slice(6,t.length)):e.setAttributeNS(_u,t,n):n==null||o&&!mp(n)?e.removeAttribute(t):e.setAttribute(t,o?"":At(n)?String(n):n)}function xu(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?wf(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(i!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=mp(n):n==null&&i==="string"?(n="",a=!0):i==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(s||t)}function or(e,t,n,r){e.addEventListener(t,n,r)}function vy(e,t,n,r){e.removeEventListener(t,n,r)}const ku=Symbol("_vei");function _y(e,t,n,r,s=null){const o=e[ku]||(e[ku]={}),a=o[t];if(r&&a)a.value=r;else{const[i,l]=ky(t);if(r){const c=o[t]=Sy(r,s);or(e,i,c,l)}else a&&(vy(e,i,a,l),o[t]=void 0)}}const wy=/(Once|Passive|Capture)$/,xy=/^on:?(?:Once|Passive|Capture)$/;function ky(e){let t,n;for(;(n=e.match(wy))&&!xy.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):kn(e.slice(2)),t]}let ni=0;const Cy=Promise.resolve(),$y=()=>ni||(Cy.then(()=>ni=0),ni=Date.now());function Sy(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const s=n.value;if(ue(s)){const o=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{o.call(r),r._stopped=!0};const a=s.slice(),i=[r];for(let l=0;l<a.length&&!r._stopped;l++){const c=a[l];c&&Ft(c,t,5,i)}}else Ft(s,t,5,[r])};return n.value=e,n.attached=$y(),n}const Cu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jy=(e,t,n,r,s,o)=>{const a=s==="svg";t==="class"?py(e,r,a):t==="style"?gy(e,n,r):ua(t)?da(t)||_y(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ey(e,t,r,a))?(xu(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&wu(e,t,r,a,o,t!=="value")):e._isVueCE&&(Ay(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ze(r)))?xu(e,at(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),wu(e,t,r,a))};function Ey(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Cu(t)&&ve(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Cu(t)&&ze(n)?!1:t in e}function Ay(e,t){const n=e._def.props;if(!n)return!1;const r=at(t);return Array.isArray(n)?n.some(s=>at(s)===r):Object.keys(n).some(s=>at(s)===r)}const Ho=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ue(t)?n=>ko(t,n):t};function Ty(e){e.target.composing=!0}function $u(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lr=Symbol("_assign"),uo=Symbol("_initialValue");function ri(e,t,n){return t&&(e=e.trim()),n&&(e=ha(e)),e}const Os={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e.parentNode&&(e.type==="text"?e[uo]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[uo]=e.defaultValue.replace(/\r\n?/g,`
|
|
2
|
+
`))),e[lr]=Ho(s);const o=r||s.props&&s.props.type==="number";or(e,t?"change":"input",a=>{a.target.composing||e[lr](ri(e.value,n,o))}),(n||o)&&or(e,"change",()=>{e.value=ri(e.value,n,o)}),t||(or(e,"compositionstart",Ty),or(e,"compositionend",$u),or(e,"change",$u))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const s=t??"",o=e[uo];delete e[uo],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[lr](ri(e.value,n,r)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},a){if(e[lr]=Ho(a),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?ha(e.value):e.value,l=t??"";if(i===l)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l)}},xf={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,or(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?ha(Vo(l)):Vo(l)),o=e.multiple,a=o?hr(e._modelValue)?new Set(s):s:s[0],i=e._pendingValue=[o,o?ue(a)?s.slice():s:a];try{e[lr](a)}finally{zn(()=>{e._pendingValue===i&&(e._pendingValue=void 0)})}}),e[lr]=Ho(r)},mounted(e,{value:t}){Su(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[lr]=Ho(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Iy(t,n[1],n[0]))&&Su(e,t)}};function Iy(e,t,n){if(!n||ue(e))return Dn(e,t);if(hr(e)){if(e.size!==t.length)return!1;for(const r of t)if(!e.has(r))return!1;return!0}return!1}function Su(e,t){const n=e.multiple,r=ue(t);if(!(n&&!r&&!hr(t))){for(let s=0,o=e.options.length;s<o;s++){const a=e.options[s],i=Vo(a);if(n)if(r){const l=typeof i;l==="string"||l==="number"?a.selected=t.some(c=>String(c)===String(i)):a.selected=hg(t,i)>-1}else a.selected=t.has(i);else if(Dn(Vo(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vo(e){return"_value"in e?e._value:e.value}const Oy=["ctrl","shift","alt","meta"],My={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Oy.some(n=>e[`${n}Key`]&&!t.includes(n))},qr=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let a=0;a<t.length;a++){const i=My[t[a]];if(i&&i(s,t))return}return e(s,...o)}))},Ry={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Py=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const o=kn(s.key);if(t.some(a=>a===o||Ry[a]===o))return e(s)}))},Ly=tt({patchProp:jy},uy);let ju;function By(){return ju||(ju=Gb(Ly))}const Ny=((...e)=>{const t=By().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Fy(r);if(!s)return;const o=t._component;!ve(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=n(s,!1,Dy(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t});function Dy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Fy(e){return ze(e)?document.querySelector(e):e}function wr(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[a=>{const i=mr(r,a);if(i||i===null)return i;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},a=>($a(r,a),a)]}function Eu(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function kf(e,t,n){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(s)}function Ta(e,t){return ga()?(Ur(e,t),!0):!1}function zy(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const a=()=>t(o);return Ta(a),{off:a}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(a=>a(...o))),clear:()=>{e.clear()}}}const Ys=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qy=e=>typeof e<"u",Hy=Object.prototype.toString,Vy=e=>Hy.call(e)==="[object Object]";function si(e){return Array.isArray(e)?e:[e]}function Gy(e,t=1e4){return Pp((n,r)=>{let s=He(e),o;const a=()=>setTimeout(()=>{s=He(e),r()},He(t));return Ta(()=>{clearTimeout(o)}),{get(){return n(),s},set(i){s=i,r(),clearTimeout(o),o=a()}}})}function Cf(e,t,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n,o=en(!1);let a;function i(){a&&(clearTimeout(a),a=void 0)}function l(){o.value=!1,i()}function c(...u){s&&e(),i(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=void 0,e(...u)},He(t))}return r&&(o.value=!0,Ys&&c()),Ta(l),{isPending:er(o),start:c,stop:l}}function Uy(e,t,n){return Ie(e,t,{...n,immediate:!0})}const Jl=Ys?window:void 0;function Xs(e){var t;const n=He(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Ms(...e){const t=(r,s,o,a)=>(r.addEventListener(s,o,a),()=>r.removeEventListener(s,o,a)),n=M(()=>{const r=si(He(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return Uy(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(o=>Xs(o)))!==null&&r!==void 0?r:[Jl].filter(o=>o!=null),si(He(n.value?e[1]:e[0])),si(_(n.value?e[2]:e[1])),He(n.value?e[3]:e[2])]},([r,s,o,a],i,l)=>{if(!r?.length||!s?.length||!o?.length)return;const c=Vy(a)?{...a}:a,u=r.flatMap(d=>s.flatMap(f=>o.map(p=>t(d,f,p,c))));l(()=>{u.forEach(d=>d())})},{flush:"post"})}function Wy(){const e=en(!1),t=Sn();return t&&$n(()=>{e.value=!0},t),e}function Ky(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Zy(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Jl,eventName:o="keydown",passive:a=!1,dedupe:i=!1}=r,l=Ky(t);return Ms(s,o,u=>{u.repeat&&He(i)||l(u)&&n(u)},a)}function Yy(e){return JSON.parse(JSON.stringify(e))}function Ql(e,t,n,r={}){var s,o;const{clone:a=!1,passive:i=!1,eventName:l,deep:c=!1,defaultValue:u,shouldEmit:d}=r,f=Sn(),p=n||f?.emit||(f==null||(s=f.$emit)===null||s===void 0?void 0:s.bind(f))||(f==null||(o=f.proxy)===null||o===void 0||(o=o.$emit)===null||o===void 0?void 0:o.bind(f?.proxy));let m=l;t||(t="modelValue"),m=m||`update:${t.toString()}`;const h=v=>a?typeof a=="function"?a(v):Yy(v):v,y=()=>qy(e[t])?h(e[t]):u,b=v=>{d?d(v)&&p(m,v):p(m,v)};if(i){const v=H(y());let g=!1;return Ie(()=>e[t],C=>{g||(g=!0,v.value=h(C),zn(()=>g=!1))}),Ie(v,C=>{!g&&(C!==e[t]||c)&&b(C)},{deep:c}),v}else return M({get(){return y()},set(v){b(v)}})}function ec(e){return e?e.flatMap(t=>t.type===xe?ec(t.children):[t]):[]}const[tc]=wr("ConfigProvider"),Go=new WeakMap;function Xy(e,t){let n=Go.get(e);n||(n={owners:new Set,original:e.body.style.pointerEvents},Go.set(e,n)),n.owners.add(t),e.body.style.pointerEvents="none"}function Jy(e,t){const n=Go.get(e);n?.owners.delete(t)&&n.owners.size===0&&(Go.delete(e),e.body.style.pointerEvents=n.original)}function oi(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Yi(e,t,n=".",r){if(!oi(t))return Yi(e,{},n,r);const s={...t};for(const o of Object.keys(e)){if(o==="__proto__"||o==="constructor")continue;const a=e[o];a!=null&&(r&&r(s,o,a,n)||(Array.isArray(a)&&Array.isArray(s[o])?s[o]=[...a,...s[o]]:oi(a)&&oi(s[o])?s[o]=Yi(a,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=a))}return s}function Qy(e){return(...t)=>t.reduce((n,r)=>Yi(n,r,"",e),{})}const e0=Qy();function nc(e){const t=tc({dir:H("ltr")});return M(()=>e?.value||t.dir?.value||"ltr")}function t0(e){const t=Sn(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(s=>{r[gs(at(s))]=(...o)=>e(s,...o)}),r}function ct(){const e=Sn(),t=H(),n=M(()=>r());Yp(()=>{n.value!==r()&&zi(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Xs(t)}const s=Object.assign({},e.exposed),o={};for(const i in e.props)Object.defineProperty(o,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(s).length>0)for(const i in s)Object.defineProperty(o,i,{enumerable:!0,configurable:!0,get:()=>s[i]});Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function a(i){if(t.value=i,!!i&&(Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>i instanceof Element?i:i.$el}),!(i instanceof Element)&&!Object.hasOwn(i,"$el"))){const l=i.$.exposed,c=Object.assign({},o);for(const u in l)Object.defineProperty(c,u,{enumerable:!0,configurable:!0,get:()=>l[u]});e.exposed=c}}return{forwardRef:a,currentRef:t,currentElement:n}}function $f(e){const t=Sn(),n=Object.keys(t?.type.props??{}).reduce((s,o)=>{const a=(t?.type.props[o]).default;return a!==void 0&&(s[o]=a),s},{}),r=zg(e);return M(()=>{const s={},o=t?.vnode.props??{};return Object.keys(o).forEach(a=>{s[at(a)]=o[a]}),Object.keys({...n,...s}).reduce((a,i)=>(r.value[i]!==void 0&&(a[i]=r.value[i]),a),{})})}function n0(e,t){const n=$f(e),r=t?t0(t):{};return M(()=>({...n.value,...r}))}function r0(e,t){const n=Gy(!1,300);Ta(()=>{n.value=!1});const r=H(null),s=zy();function o(){r.value=null,n.value=!1}function a(i,l){if(!l)return;const c=i.currentTarget,u={x:i.clientX,y:i.clientY},d=s0(u,c.getBoundingClientRect()),f=o0(u,d,1),p=a0(l.getBoundingClientRect()),m=l0([...f,...p]);r.value=m,n.value=!0}return gr(i=>{if(e.value&&t.value){const l=e.value,c=t.value,u=f=>a(f,c),d=f=>a(f,l);l.addEventListener("pointerleave",u),c.addEventListener("pointerleave",d),i(()=>{l.removeEventListener("pointerleave",u),c.removeEventListener("pointerleave",d)})}}),gr(i=>{if(r.value){const l=u=>{if(!r.value||!(u.target instanceof Element))return;const d=u.target,f={x:u.clientX,y:u.clientY},p=e.value?.contains(d)||t.value?.contains(d),m=!i0(f,r.value),h=!!d.closest("[data-grace-area-trigger]");p?o():(m||h)&&(o(),s.trigger())},c=e.value?.ownerDocument;c?.addEventListener("pointermove",l),i(()=>c?.removeEventListener("pointermove",l))}}),{isPointerInTransit:n,onPointerExit:s.on}}function s0(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function o0(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function a0(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function i0(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const i=t[o].x,l=t[o].y,c=t[a].x,u=t[a].y;l>r!=u>r&&n<(c-i)*(r-l)/(u-l)+i&&(s=!s)}return s}function l0(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),c0(t)}function c0(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t.at(-1),a=t[t.length-2];if((o.x-a.x)*(s.y-a.y)>=(o.y-a.y)*(s.x-a.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n.at(-1),a=n[n.length-2];if((o.x-a.x)*(s.y-a.y)>=(o.y-a.y)*(s.x-a.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}function rc(e,t="reka"){let n;const r=tc({useId:void 0});return r.useId?n=r.useId():n=ub?.(),t?`${t}-${n}`:n}function u0(e){const t=H(),n=M(()=>t.value?.width??0),r=M(()=>t.value?.height??0);let s;return $n(()=>{const o=Xs(e);o?(t.value={width:o.offsetWidth,height:o.offsetHeight},s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let l,c;if("borderBoxSize"in i){const u=i.borderBoxSize,d=Array.isArray(u)?u[0]:u;l=d.inlineSize,c=d.blockSize}else l=o.offsetWidth,c=o.offsetHeight;t.value={width:l,height:c}}),s.observe(o,{box:"border-box"})):t.value=void 0}),Wr(()=>{s?.disconnect(),s=void 0}),{width:n,height:r}}function d0(e,t){const n=H(e);function r(o){return t[n.value][o]??n.value}return{state:n,dispatch:o=>{n.value=r(o)}}}function p0(e,t){const n=H({}),r=H("none"),s=H(e),o=e.value?"mounted":"unmounted";let a;const i=t.value?.ownerDocument.defaultView??Jl,{state:l,dispatch:c}=d0(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=y=>{if(Ys){const b=new CustomEvent(y,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(b)}};Ie(e,async(y,b)=>{const v=b!==y;if(await zn(),v){const g=r.value,C=po(t.value);y?(c("MOUNT"),u("enter"),C==="none"&&u("after-enter")):C==="none"||C==="undefined"||n.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):b&&g!==C?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const d=y=>{if(y.target!==t.value)return;const b=po(t.value),v=b.includes(CSS.escape(y.animationName)),g=l.value==="mounted"?"enter":"leave";if(v&&(u(`after-${g}`),c("ANIMATION_END"),!s.value)){const C=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",a=i?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=C)})}b==="none"&&c("ANIMATION_END")},f=y=>{y.target===t.value&&(r.value=po(t.value))},p=Ie(t,(y,b)=>{y?(n.value=getComputedStyle(y),y.addEventListener("animationstart",f),y.addEventListener("animationcancel",d),y.addEventListener("animationend",d)):(c("ANIMATION_END"),a!==void 0&&i?.clearTimeout(a),b?.removeEventListener("animationstart",f),b?.removeEventListener("animationcancel",d),b?.removeEventListener("animationend",d))},{immediate:!0}),m=Ie(l,()=>{const y=po(t.value);r.value=l.value==="mounted"?y:"none"});return Wr(()=>{p(),m(),t.value&&(t.value.removeEventListener("animationstart",f),t.value.removeEventListener("animationcancel",d),t.value.removeEventListener("animationend",d)),a!==void 0&&i?.clearTimeout(a)}),{isPresent:M(()=>["mounted","unmountSuspended"].includes(l.value))}}function po(e){return e&&getComputedStyle(e).animationName||"none"}var Sf=fe({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:r,forceMount:s}=Gs(e),o=H(),{isPresent:a}=p0(r,o);n({present:a});let i=t.default({present:a.value});i=ec(i||[]);const l=Sn();if(i&&i?.length>1){const c=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(u=>` - ${u}`).join(`
|
|
3
|
+
`)].join(`
|
|
4
|
+
`))}return()=>s.value||r.value||a.value?mn(t.default({present:a.value})[0],{ref:c=>{const u=Xs(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?o.value=u.firstElementChild:o.value=u),u}}):null}});const Xi=fe({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const r=ec(n.default()),s=r.findIndex(l=>l.type!==Lt);if(s===-1)return r;const o=r[s];delete o.props?.ref;const a=o.props?zt(t,o.props):t,i=br({...o,props:{}},a);return r.length===1?i:(r[s]=i,r)}}}),f0=["area","img","input"],Tt=fe({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&f0.includes(r)?()=>mn(r,t):r!=="template"?()=>mn(e.as,t,{default:n.default}):()=>mn(Xi,t,{default:n.default})}});function Au(){const e=H(),t=M(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Xs(e));return{primitiveElement:e,currentElement:t}}const m0="dismissableLayer.pointerDownOutside",h0="dismissableLayer.focusOutside";function g0(e){if(typeof e!="object"||e===null)return!1;const t=e.ownerDocument?.defaultView;return typeof Element<"u"&&e instanceof Element||!!t&&e instanceof t.Element}function jf(e,t){if(!g0(t))return!1;if(e.contains(t))return!0;const n=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(r===n||s.indexOf(r)<s.indexOf(n)))}function b0(e,t,n=!0){const r=H(!1),s=H(()=>{});return gr(o=>{if(!Ys||!He(n))return;const a=t?.value?.ownerDocument??globalThis.document,i=async c=>{const u=c.target;if(!(!t?.value||!u)){if(jf(t.value,u)){a.removeEventListener("click",s.value),r.value=!1;return}if(c.target&&!r.value){let p=function(){kf(m0,e,f)};var d=p;const f={originalEvent:c};c.pointerType==="touch"?(a.removeEventListener("click",s.value),s.value=p,a.addEventListener("click",s.value,{once:!0})):p()}else a.removeEventListener("click",s.value);r.value=!1}},l=window.setTimeout(()=>{a.addEventListener("pointerdown",i)},0);o(()=>{window.clearTimeout(l),a.removeEventListener("pointerdown",i),a.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>{He(n)&&(r.value=!0)}}}function y0(e,t,n=!0){const r=H(!1);return gr(s=>{if(!Ys||!He(n))return;const o=t?.value?.ownerDocument??globalThis.document,a=async i=>{if(!t?.value)return;await zn(),await zn();const l=i.target;!t.value||!l||jf(t.value,l)||i.target&&!r.value&&kf(h0,e,{originalEvent:i})};o.addEventListener("focusin",a),s(()=>o.removeEventListener("focusin",a))}),{onFocusCapture:()=>{He(n)&&(r.value=!0)},onBlurCapture:()=>{He(n)&&(r.value=!1)}}}const An=_a({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});var v0=fe({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s,currentElement:o}=ct(),a=M(()=>o.value?.ownerDocument??globalThis.document),i=M(()=>An.layersRoot),l=M(()=>o.value?Array.from(i.value).indexOf(o.value):-1),c=M(()=>An.layersWithOutsidePointerEventsDisabled.size>0),u=M(()=>{const p=Array.from(i.value),[m]=[...An.layersWithOutsidePointerEventsDisabled].slice(-1),h=p.indexOf(m);return l.value>=h}),d=b0(async p=>{const m=[...An.branches].some(h=>h?.contains(p.target));!n.present||!u.value||m||(r("pointerDownOutside",p),r("interactOutside",p),await zn(),p.defaultPrevented||r("dismiss"))},o,()=>n.present),f=y0(p=>{const m=[...An.branches].some(h=>h?.contains(p.target));!n.present||m||(r("focusOutside",p),r("interactOutside",p),p.defaultPrevented||r("dismiss"))},o);return Zy("Escape",p=>{!n.present||!(l.value===i.value.size-1)||(r("escapeKeyDown",p),p.defaultPrevented||r("dismiss"))},{target:()=>a.value?.defaultView??globalThis.window}),Ie([o,()=>n.disableOutsidePointerEvents,()=>n.present],([p,m,h],y,b)=>{if(!(!p||!h)&&m){const v=p.ownerDocument;Xy(v,p),An.layersWithOutsidePointerEventsDisabled.add(p),b(()=>{An.layersWithOutsidePointerEventsDisabled.delete(p),Jy(v,p)})}},{immediate:!0}),Ie([o,()=>n.present],([p,m],h,y)=>{!p||!m||(i.value.add(p),y(()=>{i.value.delete(p)}))},{immediate:!0}),gr(p=>{p(()=>{o.value&&(i.value.delete(o.value),An.layersWithOutsidePointerEventsDisabled.delete(o.value))})}),(p,m)=>(k(),ae(_(Tt),{ref:_(s),"as-child":e.asChild,as:e.as,"data-dismissable-layer":"",style:et({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:_(f).onFocusCapture,onBlurCapture:_(f).onBlurCapture,onPointerdownCapture:_(d).onPointerDownCapture},{default:re(()=>[Le(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),_0=v0,w0=fe({__name:"Teleport",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e,n=tc({}),r=M(()=>t.to??n.teleportTo?.value??"body"),s=Wy();return(o,a)=>_(s)||e.forceMount?(k(),ae(lb,{key:0,to:r.value,disabled:e.disabled,defer:e.defer},[Le(o.$slots,"default")],8,["to","disabled","defer"])):se("v-if",!0)}}),x0=w0;const Tu="data-reka-collection-item";function Ef(e={}){const{key:t="",isProvider:n=!1}=e,r=`${t}CollectionProvider`;let s;n?(s={collectionRef:H(),itemMap:H(new Map)},$a(r,s)):s=mr(r);const o=(d,f=!1)=>{if(!s.collectionRef.value)return;const p=s.itemMap.value.get(d);return p&&(f||p.ref.dataset.disabled!=="")?p:void 0},a=(d=!1)=>{const f=s.collectionRef.value;if(!f)return[];const p=Array.from(f.querySelectorAll(`[${Tu}]`)),m=new Map(p.map((b,v)=>[b,v])),y=Array.from(s.itemMap.value.values()).sort((b,v)=>(m.get(b.ref)??-1)-(m.get(v.ref)??-1));return d?y:y.filter(b=>b.ref.dataset.disabled!=="")},i=fe({name:"CollectionSlot",inheritAttrs:!1,setup(d,{slots:f,attrs:p}){const{primitiveElement:m,currentElement:h}=Au();return Ie(h,()=>{s.collectionRef.value=h.value}),()=>mn(Xi,{ref:m,...p},f)}}),l=fe({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(d,{slots:f,attrs:p}){const{primitiveElement:m,currentElement:h}=Au();return gr(y=>{if(h.value){const b=ge(h.value);s.itemMap.value.set(b,{ref:h.value,value:d.value}),y(()=>s.itemMap.value.delete(b))}}),()=>mn(Xi,{...p,[Tu]:"",ref:m},f)}}),c=M(()=>Array.from(s.itemMap.value.values())),u=M(()=>s.itemMap.value.size);return{getItems:a,getItem:o,reactiveItems:c,itemMapSize:u,CollectionSlot:i,CollectionItem:l}}var k0=fe({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(k(),ae(_(Tt),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature==="fully-hidden"?"true":void 0,"data-hidden":e.feature==="fully-hidden"?"":void 0,tabindex:e.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:re(()=>[Le(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),C0=k0;const $0="rovingFocusGroup.onEntryFocus",S0={bubbles:!1,cancelable:!0},j0={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E0(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function A0(e,t,n){const r=E0(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return j0[r]}function Af(e,t=!1){const n=Eu();for(const r of e)if(r===n||(r.focus({preventScroll:t}),Eu()!==n))return}function T0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const[Tf,I0]=wr("PopperRoot");var O0=fe({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=H();return I0({anchor:t,onAnchorChange:n=>t.value=n}),(n,r)=>Le(n.$slots,"default")}}),M0=O0,R0=fe({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:r}=ct(),s=Tf();return Vp(()=>{s.onAnchorChange(t.reference??r.value)}),(o,a)=>(k(),ae(_(Tt),{ref:_(n),as:e.as,"as-child":e.asChild},{default:re(()=>[Le(o.$slots,"default")]),_:3},8,["as","as-child"]))}}),P0=R0;const L0={key:0,d:"M0 0L6 6L12 0"},B0={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var N0=fe({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return ct(),(n,r)=>(k(),ae(_(Tt),zt(t,{width:e.width,height:e.height,viewBox:e.asChild?void 0:"0 0 12 6",preserveAspectRatio:e.asChild?void 0:"none"}),{default:re(()=>[Le(n.$slots,"default",{},()=>[e.rounded?(k(),I("path",B0)):(k(),I("path",L0))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),D0=N0;function F0(e){return e!==null}function z0(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:s}=t,a=s.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,u]=Ji(n),d={start:e.dir==="rtl"?"100%":"0%",center:"50%",end:e.dir==="rtl"?"0%":"100%"}[u],f={start:"0%",center:"50%",end:"100%"}[u],p=(s.arrow?.x??0)+i/2,m=(s.arrow?.y??0)+l/2;let h="",y="";return c==="bottom"?(h=a?d:`${p}px`,y=`${-l}px`):c==="top"?(h=a?d:`${p}px`,y=`${r.floating.height+l}px`):c==="right"?(h=`${-l}px`,y=a?f:`${m}px`):c==="left"&&(h=`${r.floating.width+l}px`,y=a?f:`${m}px`),{data:{x:h,y}}}}}function Ji(e){const[t,n="center"]=e.split("-");return[t,n]}const q0=["top","right","bottom","left"],Hn=Math.min,hn=Math.max,Uo=Math.round,fo=Math.floor,gn=e=>({x:e,y:e}),H0={left:"right",right:"left",bottom:"top",top:"bottom"};function If(e,t,n){return hn(e,Hn(t,n))}function xn(e,t){return typeof e=="function"?e(t):e}function Vn(e){return e.split("-")[0]}function Kr(e){return e.split("-")[1]}function sc(e){return e==="x"?"y":"x"}function oc(e){return e==="y"?"height":"width"}function Jt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ac(e){return sc(Jt(e))}function V0(e,t,n){n===void 0&&(n=!1);const r=Kr(e),s=ac(e),o=oc(s);let a=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Wo(a)),[a,Wo(a)]}function G0(e){const t=Wo(e);return[Qi(e),t,Qi(t)]}function Qi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Iu=["left","right"],Ou=["right","left"],U0=["top","bottom"],W0=["bottom","top"];function K0(e,t,n){switch(e){case"top":case"bottom":return n?t?Ou:Iu:t?Iu:Ou;case"left":case"right":return t?U0:W0;default:return[]}}function Z0(e,t,n,r){const s=Kr(e);let o=K0(Vn(e),n==="start",r);return s&&(o=o.map(a=>a+"-"+s),t&&(o=o.concat(o.map(Qi)))),o}function Wo(e){const t=Vn(e);return H0[t]+e.slice(t.length)}function Y0(e){var t,n,r,s;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(s=e.left)!=null?s:0}}function Of(e){return typeof e!="number"?Y0(e):{top:e,right:e,bottom:e,left:e}}function Ko(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Mu(e,t,n){let{reference:r,floating:s}=e;const o=Jt(t),a=ac(t),i=oc(a),l=Vn(t),c=o==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[i]/2-s[i]/2;let p;switch(l){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}const m=Kr(t);return m&&(p[a]+=f*(m==="end"?1:-1)*(n&&c?-1:1)),p}async function X0(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:a,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=xn(t,e),m=Of(p),y=i[f?d==="floating"?"reference":"floating":d],b=Ko(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),v=d==="floating"?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,g=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),C=await(o.isElement==null?void 0:o.isElement(g))&&await(o.getScale==null?void 0:o.getScale(g))||{x:1,y:1},S=Ko(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:g,strategy:l}):v);return{top:(b.top-S.top+m.top)/C.y,bottom:(S.bottom-b.bottom+m.bottom)/C.y,left:(b.left-S.left+m.left)/C.x,right:(S.right-b.right+m.right)/C.x}}const J0=50,Q0=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:X0},l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Mu(c,r,l),f=r,p=0;const m={};for(let h=0;h<o.length;h++){const y=o[h];if(!y)continue;const{name:b,fn:v}=y,{x:g,y:C,data:S,reset:T}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:s,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});u=g??u,d=C??d,m[b]={...m[b],...S},T&&p<J0&&(p++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(c=T.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):T.rects),{x:u,y:d}=Mu(c,f,l)),h=-1)}return{x:u,y:d,placement:f,strategy:s,middlewareData:m}},ev=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:a,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=xn(e,t)||{};if(c==null)return{};const d=Of(u),f={x:n,y:r},p=ac(s),m=oc(p),h=await a.getDimensions(c),y=p==="y",b=y?"top":"left",v=y?"bottom":"right",g=y?"clientHeight":"clientWidth",C=o.reference[m]+o.reference[p]-f[p]-o.floating[m],S=f[p]-o.reference[p],T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let j=T?T[g]:0;(!j||!await(a.isElement==null?void 0:a.isElement(T)))&&(j=i.floating[g]||o.floating[m]);const $=C/2-S/2,B=j/2-h[m]/2-1,U=Hn(d[b],B),V=Hn(d[v],B),J=j-h[m]-V,Y=j/2-h[m]/2+$,K=If(U,Y,J),be=!l.arrow&&Kr(s)!=null&&Y!==K&&o.reference[m]/2-(Y<U?U:V)-h[m]/2<0,ie=be?Y<U?Y-U:Y-J:0;return{[p]:f[p]+ie,data:{[p]:K,centerOffset:Y-K-ie,...be&&{alignmentOffset:ie}},reset:be}}}),tv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:a,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=xn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=Vn(s),v=Jt(i),g=Vn(i)===i,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=f||(g||!h?[Wo(i)]:G0(i)),T=m!=="none";!f&&T&&S.push(...Z0(i,h,m,C));const j=[i,...S],$=await l.detectOverflow(t,y),B=[];let U=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&B.push($[b]),d){const K=V0(s,a,C);B.push($[K[0]],$[K[1]])}if(U=[...U,{placement:s,overflows:B}],!B.every(K=>K<=0)){var V,J;const K=(((V=o.flip)==null?void 0:V.index)||0)+1,be=j[K];if(be&&(!(d==="alignment"?v!==Jt(be):!1)||U.every(le=>Jt(le.placement)===v?le.overflows[0]>0:!0)))return{data:{index:K,overflows:U},reset:{placement:be}};let ie=(J=U.filter(de=>de.overflows[0]<=0).sort((de,le)=>de.overflows[1]-le.overflows[1])[0])==null?void 0:J.placement;if(!ie)switch(p){case"bestFit":{var Y;const de=(Y=U.filter(le=>{if(T){const Me=Jt(le.placement);return Me===v||Me==="y"}return!0}).map(le=>[le.placement,le.overflows.filter(Me=>Me>0).reduce((Me,te)=>Me+te,0)]).sort((le,Me)=>le[1]-Me[1])[0])==null?void 0:Y[0];de&&(ie=de);break}case"initialPlacement":ie=i;break}if(s!==ie)return{reset:{placement:ie}}}return{}}}};function Ru(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pu(e){return q0.some(t=>e[t]>=0)}const nv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:s="referenceHidden",...o}=xn(e,t);switch(s){case"referenceHidden":{const a=await r.detectOverflow(t,{...o,elementContext:"reference"}),i=Ru(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Pu(i)}}}case"escaped":{const a=await r.detectOverflow(t,{...o,altBoundary:!0}),i=Ru(a,n.floating);return{data:{escapedOffsets:i,escaped:Pu(i)}}}default:return{}}}}},Mf=new Set(["left","top"]);async function rv(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),a=Vn(n),i=Kr(n),l=Jt(n)==="y",c=Mf.has(a)?-1:1,u=o&&l?-1:1,d=xn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof m=="number"&&(p=i==="end"?m*-1:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const sv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:a,middlewareData:i}=t,l=await rv(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:a}}}}},ov=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s,platform:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:v=>{let{x:g,y:C}=v;return{x:g,y:C}}},...c}=xn(e,t),u={x:n,y:r},d=await o.detectOverflow(t,c),f=Jt(s),p=sc(f);let m=u[p],h=u[f];const y=(v,g)=>If(g+d[v==="y"?"top":"left"],g,g-d[v==="y"?"bottom":"right"]);a&&(m=y(p,m)),i&&(h=y(f,h));const b=l.fn({...t,[p]:m,[f]:h});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:a,[f]:i}}}}}},av=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:s,y:o,placement:a,rects:i,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=xn(e,t),f={x:s,y:o},p=Jt(a),m=sc(p);let h=f[m],y=f[p];const b=xn(c,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(n=b.mainAxis)!=null?n:0,crossAxis:(r=b.crossAxis)!=null?r:0};if(u){const S=m==="y"?"height":"width",T=i.reference[m]-i.floating[S]+v.mainAxis,j=i.reference[m]+i.reference[S]-v.mainAxis;h<T?h=T:h>j&&(h=j)}if(d){var g,C;const S=m==="y"?"width":"height",T=Mf.has(Vn(a)),j=i.reference[p]-i.floating[S]+(T&&((g=l.offset)==null?void 0:g[p])||0)+(T?0:v.crossAxis),$=i.reference[p]+i.reference[S]+(T?0:((C=l.offset)==null?void 0:C[p])||0)-(T?v.crossAxis:0);y<j?y=j:y>$&&(y=$)}return{[m]:h,[p]:y}}}},iv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:o}=t,{apply:a=()=>{},...i}=xn(e,t),l=await s.detectOverflow(t,i),c=Vn(n),u=Kr(n),d=Jt(n)==="y",{width:f,height:p}=r.floating;let m,h;c==="top"||c==="bottom"?(m=c,h=u===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(h=c,m=u==="end"?"top":"bottom");const y=p-l.top-l.bottom,b=f-l.left-l.right,v=Hn(p-l[m],y),g=Hn(f-l[h],b),C=t.middlewareData.shift,S=!C;let T=v,j=g;C!=null&&C.enabled.x&&(j=b),C!=null&&C.enabled.y&&(T=y),S&&!u&&(d?j=f-2*hn(l.left,l.right):T=p-2*hn(l.top,l.bottom)),await a({...t,availableWidth:j,availableHeight:T});const $=await s.getDimensions(o.floating);return f!==$.width||p!==$.height?{reset:{rects:!0}}:{}}}};function Ia(){return typeof window<"u"}function xr(e){return ic(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(ic(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ic(e){return Ia()?e instanceof Node||e instanceof xt(e).Node:!1}function tn(e){return Ia()?e instanceof Element||e instanceof xt(e).Element:!1}function Gn(e){return Ia()?e instanceof HTMLElement||e instanceof xt(e).HTMLElement:!1}function Lu(e){return!Ia()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xt(e).ShadowRoot}function Oa(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=nn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&s!=="inline"&&s!=="contents"}function lv(e){return/^(table|td|th)$/.test(xr(e))}function Ma(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const cv=/transform|translate|scale|rotate|perspective|filter/,uv=/paint|layout|strict|content/,Xn=e=>!!e&&e!=="none";let ai;function lc(e){const t=tn(e)?nn(e):e;return Xn(t.transform)||Xn(t.translate)||Xn(t.scale)||Xn(t.rotate)||Xn(t.perspective)||!cc()&&(Xn(t.backdropFilter)||Xn(t.filter))||cv.test(t.willChange||"")||uv.test(t.contain||"")}function dv(e){let t=yr(e);for(;Gn(t)&&!Rs(t);){if(lc(t))return t;if(Ma(t))return null;t=yr(t)}return null}function cc(){return ai==null&&(ai=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ai}function Rs(e){return/^(html|body|#document)$/.test(xr(e))}function nn(e){return xt(e).getComputedStyle(e)}function Ra(e){return tn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yr(e){if(xr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lu(e)&&e.host||jn(e);return Lu(t)?t.host:t}function Rf(e){const t=yr(e);return Rs(t)?(e.ownerDocument||e).body:Gn(t)&&Oa(t)?t:Rf(t)}function Ps(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Rf(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),a=xt(s);if(o){const i=el(a);return t.concat(a,a.visualViewport||[],Oa(s)?s:[],i&&n?Ps(i):[])}else return t.concat(s,Ps(s,[],n))}function el(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Pf(e){const t=nn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Gn(e),o=s?e.offsetWidth:n,a=s?e.offsetHeight:r,i=Uo(n)!==o||Uo(r)!==a;return i&&(n=o,r=a),{width:n,height:r,$:i}}function uc(e){return tn(e)?e:e.contextElement}function Nr(e){const t=uc(e);if(!Gn(t))return gn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=Pf(t);let a=(o?Uo(n.width):n.width)/r,i=(o?Uo(n.height):n.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const pv=gn(0);function Lf(e){const t=xt(e);return!cc()||!t.visualViewport?pv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fv(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===xt(e)}function vr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=uc(e);let a=gn(1);t&&(r?tn(r)&&(a=Nr(r)):a=Nr(e));const i=fv(o,n,r)?Lf(o):gn(0);let l=(s.left+i.x)/a.x,c=(s.top+i.y)/a.y,u=s.width/a.x,d=s.height/a.y;if(o&&r){const f=xt(o),p=tn(r)?xt(r):r;let m=f,h=el(m);for(;h&&p!==m;){const y=Nr(h),b=h.getBoundingClientRect(),v=nn(h),g=b.left+(h.clientLeft+parseFloat(v.paddingLeft))*y.x,C=b.top+(h.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,d*=y.y,l+=g,c+=C,m=xt(h),h=el(m)}}return Ko({width:u,height:d,x:l,y:c})}function Pa(e,t){const n=Ra(e).scrollLeft;return t?t.left+n:vr(jn(e)).left+n}function Bf(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Pa(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function mv(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",a=jn(r),i=t?Ma(t.floating):!1;if(r===a||i&&o)return n;let l={scrollLeft:0,scrollTop:0},c=gn(1);const u=gn(0),d=Gn(r);if((d||!o)&&((xr(r)!=="body"||Oa(a))&&(l=Ra(r)),d)){const p=vr(r);c=Nr(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=a&&!d&&!o?Bf(a,l):gn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function hv(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function gv(e){const t=Ra(e),n=e.ownerDocument.body,r=hn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=hn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+Pa(e);const a=-t.scrollTop;return nn(n).direction==="rtl"&&(o+=hn(e.clientWidth,n.clientWidth)-r),{width:r,height:s,x:o,y:a}}const bv=25;function yv(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",s=xt(e),o=jn(e),a=s.visualViewport;let i=o.clientWidth,l=o.clientHeight,c=0,u=0;if(a){const f=!cc()||t==="fixed";r?f||(c=-a.offsetLeft,u=-a.offsetTop):(i=a.width,l=a.height,f&&(c=a.offsetLeft,u=a.offsetTop))}if(Pa(o)<=0){const f=o.ownerDocument,p=f.body,m=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(o.clientWidth-p.clientWidth-h),b=getComputedStyle(o).scrollbarGutter==="stable both-edges"?y/2:y;b<=bv&&(i-=b)}return{width:i,height:l,x:c,y:u}}function vv(e,t){const n=vr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Nr(e),a=e.clientWidth*o.x,i=e.clientHeight*o.y,l=s*o.x,c=r*o.y;return{width:a,height:i,x:l,y:c}}function Bu(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=yv(e,n,t);else if(t==="document")r=gv(jn(e));else if(tn(t))r=vv(t,n);else{const s=Lf(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ko(r)}function _v(e,t){const n=t.get(e);if(n)return n;let r=Ps(e,[],!1).filter(i=>tn(i)&&xr(i)!=="body"),s=null;const o=nn(e).position==="fixed";let a=o?yr(e):e;for(;tn(a)&&!Rs(a);){const i=nn(a),l=lc(a),c=s?s.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&i.position==="static")?r=r.filter(d=>d!==a):s=i,a=yr(a)}return t.set(e,r),r}function wv(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[...n==="clippingAncestors"?Ma(t)?[]:_v(t,this._c):[].concat(n),r],i=Bu(t,a[0],s);let l=i.top,c=i.right,u=i.bottom,d=i.left;for(let f=1;f<a.length;f++){const p=Bu(t,a[f],s);l=hn(p.top,l),c=Hn(p.right,c),u=Hn(p.bottom,u),d=hn(p.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function xv(e){const{width:t,height:n}=Pf(e);return{width:t,height:n}}function kv(e,t,n){const r=Gn(t),s=jn(t),o=n==="fixed",a=vr(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const l=gn(0);if((r||!o)&&((xr(t)!=="body"||Oa(s))&&(i=Ra(t)),r)){const f=vr(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!r&&s&&(l.x=Pa(s));const c=s&&!r&&!o?Bf(s,i):gn(0),u=a.left+i.scrollLeft-l.x-c.x,d=a.top+i.scrollTop-l.y-c.y;return{x:u,y:d,width:a.width,height:a.height}}function ii(e){return nn(e).position==="static"}function Nu(e,t){if(!Gn(e)||nn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function Nf(e,t){const n=xt(e);if(Ma(e))return n;if(!Gn(e)){let s=yr(e);for(;s&&!Rs(s);){if(tn(s)&&!ii(s))return s;s=yr(s)}return n}let r=Nu(e,t);for(;r&&lv(r)&&ii(r);)r=Nu(r,t);return r&&Rs(r)&&ii(r)&&!lc(r)?n:r||dv(e)||n}const Cv=async function(e){const t=this.getOffsetParent||Nf,n=this.getDimensions,r=await n(e.floating);return{reference:kv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $v(e){return nn(e).direction==="rtl"}const Sv={convertOffsetParentRelativeRectToViewportRelativeRect:mv,getDocumentElement:jn,getClippingRect:wv,getOffsetParent:Nf,getElementRects:Cv,getClientRects:hv,getDimensions:xv,getScale:Nr,isElement:tn,isRTL:$v};function Df(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jv(e,t,n){let r=null,s;const o=jn(e);function a(){var u;clearTimeout(s),(u=r)==null||u.disconnect(),r=null}function i(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),a();const f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:y}=f;if(u||t(),!h||!y)return;const b=fo(m),v=fo(o.clientWidth-(p+h)),g=fo(o.clientHeight-(m+y)),C=fo(p),T={rootMargin:-b+"px "+-v+"px "+-g+"px "+-C+"px",threshold:hn(0,Hn(1,d))||1};let j=!0;function $(B){const U=B[0].intersectionRatio;if(!Df(f,e.getBoundingClientRect()))return i();if(U!==d){if(!j)return i();U?i(!1,U):s=setTimeout(()=>{i(!1,1e-7)},1e3)}j=!1}try{r=new IntersectionObserver($,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver($,T)}r.observe(e)}const l=xt(e),c=()=>i(n);return l.addEventListener("resize",c),i(!0),()=>{l.removeEventListener("resize",c),a()}}function Ev(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=uc(e),u=s||o?[...c?Ps(c):[],...t?Ps(t):[]]:[];u.forEach(b=>{s&&b.addEventListener("scroll",n),o&&b.addEventListener("resize",n)});const d=c&&i?jv(c,n,o):null;let f=-1,p=null;a&&(p=new ResizeObserver(b=>{let[v]=b;v&&v.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let m,h=l?vr(e):null;l&&y();function y(){const b=vr(e);h&&!Df(h,b)&&n(),h=b,m=requestAnimationFrame(y)}return n(),()=>{var b;u.forEach(v=>{s&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),d?.(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const Av=sv,Tv=ov,Du=tv,Iv=iv,Ov=nv,Mv=ev,Rv=av,Pv=(e,t,n)=>{const r=new Map,s=n??{},o={...Sv,...s.platform,_c:r};return Q0(e,t,{...s,platform:o})};function Lv(e){return e!=null&&typeof e=="object"&&"$el"in e}function tl(e){if(Lv(e)){const t=e.$el;return ic(t)&&xr(t)==="#comment"?null:t}return e}function Bv(e){return{name:"arrow",options:e,fn(t){const n=tl(He(e.element));return n==null?{}:Mv({element:n,padding:e.padding}).fn(t)}}}function Ff(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fu(e,t){const n=Ff(e);return Math.round(t*n)/n}function Nv(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,s=M(()=>{var j;return(j=He(n.open))!=null?j:!0}),o=M(()=>He(n.middleware)),a=M(()=>{var j;return(j=He(n.placement))!=null?j:"bottom"}),i=M(()=>{var j;return(j=He(n.strategy))!=null?j:"absolute"}),l=M(()=>{var j;return(j=He(n.transform))!=null?j:!0}),c=M(()=>tl(e.value)),u=M(()=>tl(t.value)),d=H(0),f=H(0),p=H(i.value),m=H(a.value),h=en({}),y=H(!1),b=M(()=>{const j={position:p.value,left:"0",top:"0"};if(!u.value)return j;const $=Fu(u.value,d.value),B=Fu(u.value,f.value);return l.value?{...j,transform:"translate("+$+"px, "+B+"px)",...Ff(u.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:$+"px",top:B+"px"}});let v;function g(){if(c.value==null||u.value==null)return;const j=s.value;Pv(c.value,u.value,{middleware:o.value,placement:a.value,strategy:i.value}).then($=>{d.value=$.x,f.value=$.y,p.value=$.strategy,m.value=$.placement,h.value=$.middlewareData,y.value=j!==!1})}function C(){typeof v=="function"&&(v(),v=void 0)}function S(){if(C(),r===void 0){g();return}if(c.value!=null&&u.value!=null){v=r(c.value,u.value,g);return}}function T(){s.value||(y.value=!1)}return Ie([o,a,i,s],g,{flush:"sync"}),Ie([c,u],S,{flush:"sync"}),Ie(s,T,{flush:"sync"}),ga()&&Ur(C),{x:er(d),y:er(f),strategy:er(p),placement:er(m),middlewareData:er(h),isPositioned:er(y),floatingStyles:b,update:g}}const Dv=["dir"],Fv={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[zv,qv]=wr("PopperContent");var Hv=fe({inheritAttrs:!1,__name:"PopperContent",props:Cb({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Fv}),emits:["placed"],setup(e,{emit:t}){const n=e,r=t,s=Tf(),{forwardRef:o,currentElement:a}=ct(),i=nc(M(()=>n.dir)),l=H(),c=H(),{width:u,height:d}=u0(c),f=M(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=M(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),m=M(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=M(()=>({padding:p.value,boundary:m.value.filter(F0),altBoundary:m.value.length>0})),y=M(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),b=M(()=>[Av({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Du({...h.value,...y.value}),n.avoidCollisions&&Tv({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Rv():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&Du({...h.value,...y.value}),Iv({...h.value,apply:({elements:Y,rects:K,availableWidth:be,availableHeight:ie})=>{const{width:de,height:le}=K.reference,Me=Y.floating.style;Me.setProperty("--reka-popper-available-width",`${be}px`),Me.setProperty("--reka-popper-available-height",`${ie}px`),Me.setProperty("--reka-popper-anchor-width",`${de}px`),Me.setProperty("--reka-popper-anchor-height",`${le}px`)}}),c.value&&Bv({element:c.value,padding:n.arrowPadding}),z0({arrowWidth:u.value,arrowHeight:d.value,dir:i.value}),n.hideWhenDetached&&Ov({strategy:"referenceHidden",...h.value})]),v=M(()=>n.reference??s.anchor.value),{floatingStyles:g,placement:C,isPositioned:S,middlewareData:T}=Nv(v,l,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...Y)=>Ev(...Y,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:b}),j=M(()=>Ji(C.value)[0]),$=M(()=>Ji(C.value)[1]);Vp(()=>{S.value&&r("placed")});const B=M(()=>{const Y=T.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&Y}),U=H("");gr(()=>{a.value&&(U.value=window.getComputedStyle(a.value).zIndex)});const V=M(()=>T.value.arrow?.x??0),J=M(()=>T.value.arrow?.y??0);return qv({placedSide:j,onArrowChange:Y=>c.value=Y,arrowX:V,arrowY:J,shouldHideArrow:B}),(Y,K)=>(k(),I("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",dir:_(i),style:et({..._(g),transform:_(S)?_(g).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U.value,"--reka-popper-transform-origin":[_(T).transformOrigin?.x,_(T).transformOrigin?.y].join(" "),..._(T).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[n.memoDependencies?ay([n.asChild,n.as,j.value,$.value,_(S),...Object.values(Y.$attrs),...n.memoDependencies],()=>(k(),ae(_(Tt),zt({key:0,ref:_(o)},Y.$attrs,{"as-child":n.asChild,as:n.as,"data-side":j.value,"data-align":$.value,style:{animation:_(S)?void 0:"none"}}),{default:re(()=>[Le(Y.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])),K,0):(k(),ae(_(Tt),zt({key:1,ref:_(o)},Y.$attrs,{"as-child":n.asChild,as:n.as,"data-side":j.value,"data-align":$.value,dir:_(i),style:{animation:_(S)?void 0:"none"}}),{default:re(()=>[Le(Y.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","dir","style"]))],12,Dv))}}),Vv=Hv;const Gv={top:"bottom",right:"left",bottom:"top",left:"right"};var Uv=fe({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=ct(),n=zv(),r=M(()=>Gv[n.placedSide.value]);return(s,o)=>(k(),I("span",{ref:a=>{_(n).onArrowChange(a??void 0)},style:et({position:"absolute",left:_(n).arrowX?.value?`${_(n).arrowX?.value}px`:void 0,top:_(n).arrowY?.value?`${_(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[_(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[_(n).placedSide.value],visibility:_(n).shouldHideArrow.value?"hidden":void 0})},[R(D0,zt(s.$attrs,{ref:_(t),style:{display:"block"},as:e.as,"as-child":e.asChild,rounded:e.rounded,width:e.width,height:e.height}),{default:re(()=>[Le(s.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),Wv=Uv;const[Kv,Zv]=wr("RovingFocusGroup");var Yv=fe({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const r=e,s=n,{loop:o,orientation:a,dir:i}=Gs(r),l=nc(i),c=Ql(r,"currentTabStopId",s,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=H(!1),d=H(!1),f=H(0),{getItems:p,CollectionSlot:m}=Ef({isProvider:!0});function h(b){const v=!d.value;if(b.currentTarget&&b.target===b.currentTarget&&v&&!u.value){const g=new CustomEvent($0,S0);if(b.currentTarget.dispatchEvent(g),s("entryFocus",g),!g.defaultPrevented){const C=p().map(B=>B.ref).filter(B=>B.dataset.disabled!==""),S=C.find(B=>B.getAttribute("data-active")===""),T=C.find(B=>B.getAttribute("data-highlighted")===""),j=C.find(B=>B.id===c.value),$=[S,T,j,...C].filter(Boolean);Af($,r.preventScrollOnEntryFocus)}}d.value=!1}function y(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),Zv({loop:o,dir:l,orientation:a,currentTabStopId:c,onItemFocus:b=>{c.value=b},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(b,v)=>(k(),ae(_(m),null,{default:re(()=>[R(_(Tt),{tabindex:u.value||f.value===0?-1:0,"data-orientation":_(a),as:e.as,"as-child":e.asChild,dir:_(l),style:{outline:"none"},onMousedown:v[0]||(v[0]=g=>d.value=!0),onMouseup:y,onFocus:h,onBlur:v[1]||(v[1]=g=>u.value=!1)},{default:re(()=>[Le(b.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Xv=Yv,Jv=fe({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=Kv(),r=rc(),s=M(()=>t.tabStopId||r),o=M(()=>n.currentTabStopId.value===s.value),{getItems:a,CollectionItem:i}=Ef();$n(()=>{t.focusable&&n.onFocusableItemAdd()}),Wr(()=>{t.focusable&&n.onFocusableItemRemove()}),Ie(()=>t.focusable,(p,m)=>{p!==m&&(p?n.onFocusableItemAdd():n.onFocusableItemRemove())});function l(p){if(p.defaultPrevented)return;if(p.key==="Tab"&&p.shiftKey){n.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const m=A0(p,n.orientation.value,n.dir.value);if(m!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||!t.allowShiftKey&&p.shiftKey)return;p.preventDefault();let h=[...a().map(y=>y.ref).filter(y=>y.dataset.disabled!=="")];if(m==="last")h.reverse();else if(m==="prev"||m==="next"){m==="prev"&&h.reverse();const y=h.indexOf(p.currentTarget);h=n.loop.value?T0(h,y+1):h.slice(y+1)}zn(()=>Af(h))}}const{forwardRef:c,currentElement:u}=ct(),d=en();Ie(u,p=>{d.value=p},{immediate:!0,flush:"post"}),Ms(d,"keydown",l);function f(p){d.value=p.currentTarget}return(p,m)=>(k(),ae(_(i),null,{default:re(()=>[R(_(Tt),{ref:_(c),tabindex:o.value?0:-1,"data-orientation":_(n).orientation.value,"data-active":e.active?"":void 0,"data-disabled":e.focusable?void 0:"",as:e.as,"as-child":e.asChild,onMousedown:m[0]||(m[0]=h=>{e.focusable?_(n).onItemFocus(s.value):h.preventDefault()}),onFocus:m[1]||(m[1]=h=>_(n).onItemFocus(s.value)),onFocusin:f},{default:re(()=>[Le(p.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),Qv=Jv;const[dc,e_]=wr("TabsRoot");var t_=fe({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{orientation:s,unmountOnHide:o,dir:a}=Gs(n),i=nc(a);ct();const l=Ql(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),c=H(),u=en(new Set);return e_({modelValue:l,changeModelValue:d=>{l.value=d},orientation:s,dir:i,unmountOnHide:o,activationMode:n.activationMode,baseId:rc(void 0,"reka-tabs"),tabsList:c,contentIds:u,registerContent:d=>{u.value=new Set([...u.value,d])},unregisterContent:d=>{const f=new Set(u.value);f.delete(d),u.value=f}}),(d,f)=>(k(),ae(_(Tt),{dir:_(i),"data-orientation":_(s),"as-child":e.asChild,as:e.as},{default:re(()=>[Le(d.$slots,"default",{modelValue:_(l)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),n_=t_;function zf(e,t){return`${e}-trigger-${t}`}function qf(e,t){return`${e}-content-${t}`}var r_=fe({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n}=ct(),r=dc(),s=M(()=>zf(r.baseId,t.value)),o=M(()=>qf(r.baseId,t.value)),a=M(()=>t.value===r.modelValue.value),i=H(a.value);return $n(()=>{r.registerContent(t.value),requestAnimationFrame(()=>{i.value=!1})}),Vl(()=>{r.unregisterContent(t.value)}),(l,c)=>(k(),ae(_(Sf),{present:e.forceMount||a.value,"force-mount":""},{default:re(({present:u})=>[R(_(Tt),{id:o.value,ref:_(n),"as-child":e.asChild,as:e.as,role:"tabpanel","data-state":a.value?"active":"inactive","data-orientation":_(r).orientation.value,"aria-labelledby":s.value,hidden:!u,tabindex:"0",style:et({animationDuration:i.value?"0s":void 0})},{default:re(()=>[!_(r).unmountOnHide.value||u?Le(l.$slots,"default",{},void 0,void 0,0):se("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Sr=r_,s_=fe({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:n}=Gs(t),{forwardRef:r,currentElement:s}=ct(),o=dc();return o.tabsList=s,(a,i)=>(k(),ae(_(Xv),{"as-child":"",orientation:_(o).orientation.value,dir:_(o).dir.value,loop:_(n)},{default:re(()=>[R(_(Tt),{ref:_(r),role:"tablist","as-child":e.asChild,as:e.as,"aria-orientation":_(o).orientation.value},{default:re(()=>[Le(a.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),o_=s_,a_=fe({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=ct(),r=dc(),s=M(()=>zf(r.baseId,t.value)),o=M(()=>r.contentIds.value.has(t.value)?qf(r.baseId,t.value):void 0),a=M(()=>t.value===r.modelValue.value);return(i,l)=>(k(),ae(_(Qv),{"as-child":"",focusable:!e.disabled,active:a.value},{default:re(()=>[R(_(Tt),{id:s.value,ref:_(n),role:"tab",type:e.as==="button"?"button":void 0,as:e.as,"as-child":e.asChild,"aria-selected":a.value?"true":"false","aria-controls":o.value,"data-state":a.value?"active":"inactive",disabled:e.disabled,"data-disabled":e.disabled?"":void 0,"data-orientation":_(r).orientation.value,onMousedown:l[0]||(l[0]=qr(c=>{c.defaultPrevented||(!e.disabled&&c.ctrlKey===!1?_(r).changeModelValue(e.value):c.preventDefault())},["left"])),onKeydown:l[1]||(l[1]=Py(c=>{c.defaultPrevented||_(r).changeModelValue(e.value)},["enter","space"])),onFocus:l[2]||(l[2]=()=>{const c=_(r).activationMode!=="manual";!a.value&&!e.disabled&&c&&_(r).changeModelValue(e.value)})},{default:re(()=>[Le(i.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),i_=a_,l_=fe({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return ct(),(n,r)=>(k(),ae(_(Wv),fp(Yl(t)),{default:re(()=>[Le(n.$slots,"default")]),_:3},16))}}),c_=l_;const[La,u_]=wr("TooltipProvider");var d_=fe({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:s,disableClosingTrigger:o,ignoreNonKeyboardFocus:a,disabled:i,content:l}=Gs(t);ct();const c=H(!0),u=H(!1),{start:d,stop:f}=Cf(()=>{c.value=!0},r,{immediate:!1});return u_({isOpenDelayed:c,delayDuration:n,onOpen(){f(),c.value=!1},onClose(){d()},isPointerInTransitRef:u,disableHoverableContent:s,disableClosingTrigger:o,disabled:i,ignoreNonKeyboardFocus:a,content:l}),(p,m)=>Le(p.$slots,"default")}}),p_=d_;const Hf="tooltip.open",[Ba,f_]=wr("TooltipRoot");var m_=fe({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;ct();const s=La(),o=M(()=>n.disableHoverableContent??s.disableHoverableContent.value),a=M(()=>n.disableClosingTrigger??s.disableClosingTrigger.value),i=M(()=>n.disabled??s.disabled.value),l=M(()=>n.delayDuration??s.delayDuration.value),c=M(()=>n.ignoreNonKeyboardFocus??s.ignoreNonKeyboardFocus.value),u=Ql(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});Ie(u,g=>{s.onClose&&(g?(s.onOpen(),document.dispatchEvent(new CustomEvent(Hf))):s.onClose())});const d=H(!1),f=H(),p=M(()=>u.value?d.value?"delayed-open":"instant-open":"closed"),{start:m,stop:h}=Cf(()=>{d.value=!0,u.value=!0},l,{immediate:!1});function y(){h(),d.value=!1,u.value=!0}function b(){h(),u.value=!1}function v(){m()}return f_({contentId:"",open:u,stateAttribute:p,trigger:f,onTriggerChange(g){f.value=g},onTriggerEnter(){s.isOpenDelayed.value?v():y()},onTriggerLeave(){o.value?b():h()},onOpen:y,onClose:b,disableHoverableContent:o,disableClosingTrigger:a,disabled:i,ignoreNonKeyboardFocus:c}),(g,C)=>(k(),ae(_(M0),null,{default:re(()=>[Le(g.$slots,"default",{open:_(u)})]),_:3}))}}),h_=m_,g_=fe({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,s=Ba(),o=La(),{forwardRef:a,currentElement:i}=ct(),l=M(()=>n.ariaLabel||i.value?.textContent),c=M(()=>{const{ariaLabel:u,...d}=n;return e0(d,o.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return $n(()=>{Ms(window,"scroll",u=>{u.target?.contains(s.trigger.value)&&s.onClose()},{capture:!0}),Ms(document,Hf,s.onClose)}),(u,d)=>(k(),ae(_(_0),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=f=>r("escapeKeyDown",f)),onPointerDownOutside:d[1]||(d[1]=f=>{_(s).disableClosingTrigger.value&&_(s).trigger.value?.contains(f.target)&&f.preventDefault(),r("pointerDownOutside",f)}),onFocusOutside:d[2]||(d[2]=qr(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=f=>_(s).onClose())},{default:re(()=>[R(_(Vv),zt({ref:_(a),"data-state":_(s).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:re(()=>[Le(u.$slots,"default"),R(_(C0),{id:_(s).contentId,role:"tooltip"},{default:re(()=>[ce(L(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),Vf=g_,b_=fe({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const n=$f(e),{forwardRef:r,currentElement:s}=ct(),{trigger:o,onClose:a}=Ba(),i=La(),{isPointerInTransit:l,onPointerExit:c}=r0(o,s);return i.isPointerInTransitRef=l,c(()=>{a()}),Ms(s,"pointermove",u=>{const d=s.value;if(!d||u.pointerType==="touch")return;d.ownerDocument.elementsFromPoint?.(u.clientX,u.clientY).some(p=>{if(d.contains(p))return!1;const m=p.closest("[data-grace-area-trigger]");return!!m&&m!==o.value})&&a()}),(u,d)=>(k(),ae(Vf,zt({ref:_(r)},_(n)),{default:re(()=>[Le(u.$slots,"default")]),_:3},16))}}),y_=b_,v_=fe({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,s=Ba(),o=n0(n,r),{forwardRef:a}=ct();return(i,l)=>(k(),ae(_(Sf),{present:e.forceMount||_(s).open.value},{default:re(()=>[(k(),ae(qn(_(s).disableHoverableContent.value?Vf:y_),zt({ref:_(a)},_(o)),{default:re(()=>[Le(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),__=v_,w_=fe({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(k(),ae(_(x0),fp(Yl(t)),{default:re(()=>[Le(n.$slots,"default")]),_:3},16))}}),x_=w_,k_=fe({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Ba(),r=La();n.contentId||=rc(void 0,"reka-tooltip-content");const{forwardRef:s,currentElement:o}=ct(),a=H(!1),i=H(!1),l=M(()=>n.disabled.value?{}:{click:h,focus:p,pointermove:d,pointerleave:f,pointerdown:u,blur:m});Ie(o,y=>{n.onTriggerChange(y)},{immediate:!0});function c(){setTimeout(()=>{a.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),a.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(y){y.pointerType!=="touch"&&!i.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),i.value=!0)}function f(){n.onTriggerLeave(),i.value=!1}function p(y){a.value||n.ignoreNonKeyboardFocus.value&&!y.target.matches?.(":focus-visible")||n.onOpen()}function m(){n.onClose()}function h(){n.disableClosingTrigger.value||n.onClose()}return(y,b)=>(k(),ae(_(P0),{"as-child":"",reference:e.reference??_(o)},{default:re(()=>[R(_(Tt),zt({ref:_(s),"aria-describedby":_(n).open.value?_(n).contentId:void 0,"data-state":_(n).stateAttribute.value,as:e.as,"as-child":t.asChild,"data-grace-area-trigger":""},xb(l.value)),{default:re(()=>[Le(y.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),C_=k_;let Ot=[],ps=0;const nl=4,$_=globalThis.nanostoresGlobal||={epoch:0};let S_=()=>{let e,t;for(;ps<Ot.length;){t=ps,ps+=nl;try{Ot[t](Ot[t+1].value,Ot[t+2],Ot[t+3])}catch(n){e=n}}if(Ot.length=ps=0,e)throw e};const pt=e=>{let t=[],n={eq:Object.is,get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(r){return n.lc=t.push(r),()=>{for(let o=ps;o<Ot.length;)Ot[o]===r&&Ot[o+1]===n?Ot.splice(o,nl):o+=nl;let s=t.indexOf(r);~s&&(t.splice(s,1),--n.lc||n.off())}},notify(r,s){$_.epoch++;let o=!Ot.length&&!0;for(let a of t)Ot.push(a,n,r,s);o&&S_()},off(){},set(r){let s=n.value;n.eq(s,r)||(n.value=r,n.notify(s))},subscribe(r){let s=n.listen(r);return r(n.value),s},value:e};return n};function Tn(e){let t=en();if(typeof window<"u"){let n=e.subscribe(r=>{t.value=r});ga()&&Ur(n)}else t.value=e.get();return t}function zu(e){return typeof e.observeSources=="function"}function Gf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Gf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function j_(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Gf(e))&&(r&&(r+=" "),r+=t);return r}const E_=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},A_=(e,t)=>({classGroupId:e,validator:t}),Uf=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Zo="-",qu=[],T_="arbitrary..",I_=e=>{const t=M_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return O_(a);const i=a.split(Zo),l=i[0]===""&&i.length>1?1:0;return Wf(i,l,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const l=r[a],c=n[a];return l?c?E_(c,l):l:c||qu}return n[a]||qu}}},Wf=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],o=n.nextPart.get(s);if(o){const c=Wf(e,t+1,o);if(c)return c}const a=n.validators;if(a===null)return;const i=t===0?e.join(Zo):e.slice(t).join(Zo),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(i))return u.classGroupId}},O_=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?T_+r:void 0})(),M_=e=>{const{theme:t,classGroups:n}=e;return R_(n,t)},R_=(e,t)=>{const n=Uf();for(const r in e){const s=e[r];pc(s,n,r,t)}return n},pc=(e,t,n,r)=>{const s=e.length;for(let o=0;o<s;o++){const a=e[o];P_(a,t,n,r)}},P_=(e,t,n,r)=>{if(typeof e=="string"){L_(e,t,n);return}if(typeof e=="function"){B_(e,t,n,r);return}N_(e,t,n,r)},L_=(e,t,n)=>{const r=e===""?t:Kf(t,e);r.classGroupId=n},B_=(e,t,n,r)=>{if(D_(e)){pc(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(A_(n,e))},N_=(e,t,n,r)=>{const s=Object.entries(e),o=s.length;for(let a=0;a<o;a++){const[i,l]=s[a];pc(l,Kf(t,i),n,r)}},Kf=(e,t)=>{let n=e;const r=t.split(Zo),s=r.length;for(let o=0;o<s;o++){const a=r[o];let i=n.nextPart.get(a);i||(i=Uf(),n.nextPart.set(a,i)),n=i}return n},D_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,F_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let a=n[o];if(a!==void 0)return a;if((a=r[o])!==void 0)return s(o,a),a},set(o,a){o in n?n[o]=a:s(o,a)}}},rl="!",Hu=":",z_=[],Vu=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),q_=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const o=[];let a=0,i=0,l=0,c;const u=s.length;for(let h=0;h<u;h++){const y=s[h];if(a===0&&i===0){if(y===Hu){o.push(s.slice(l,h)),l=h+1;continue}if(y==="/"){c=h;continue}}y==="["?a++:y==="]"?a--:y==="("?i++:y===")"&&i--}const d=o.length===0?s:s.slice(l);let f=d,p=!1;d.endsWith(rl)?(f=d.slice(0,-1),p=!0):d.startsWith(rl)&&(f=d.slice(1),p=!0);const m=c&&c>l?c-l:void 0;return Vu(o,p,f,m)};if(t){const s=t+Hu,o=r;r=a=>a.startsWith(s)?o(a.slice(s.length)):Vu(z_,!1,a,void 0,!0)}if(n){const s=r;r=o=>n({className:o,parseClassName:s})}return r},H_=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let o=0;o<n.length;o++){const a=n[o],i=a[0]==="[",l=t.has(a);i||l?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(a)):s.push(a)}return s.length>0&&(s.sort(),r.push(...s)),r}},V_=e=>({cache:F_(e.cacheSize),parseClassName:q_(e),sortModifiers:H_(e),postfixLookupClassGroupIds:G_(e),...I_(e)}),G_=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},U_=/\s+/,W_=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:o,postfixLookupClassGroupIds:a}=t,i=[],l=e.trim().split(U_);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:f,modifiers:p,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:y}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let b=!!y,v;if(b){const j=h.substring(0,y);v=r(j);const $=v&&a[v]?r(h):void 0;$&&$!==v&&(v=$,b=!1)}else v=r(h);if(!v){if(!b){c=d+(c.length>0?" "+c:c);continue}if(v=r(h),!v){c=d+(c.length>0?" "+c:c);continue}b=!1}const g=p.length===0?"":p.length===1?p[0]:o(p).join(":"),C=m?g+rl:g,S=C+v;if(i.indexOf(S)>-1)continue;i.push(S);const T=s(v,b);for(let j=0;j<T.length;++j){const $=T[j];i.push(C+$)}c=d+(c.length>0?" "+c:c)}return c},K_=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=Zf(n))&&(s&&(s+=" "),s+=r);return s},Zf=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Zf(e[r]))&&(n&&(n+=" "),n+=t);return n},Z_=(e,...t)=>{let n,r,s,o;const a=l=>{const c=t.reduce((u,d)=>d(u),e());return n=V_(c),r=n.cache.get,s=n.cache.set,o=i,i(l)},i=l=>{const c=r(l);if(c)return c;const u=W_(l,n);return s(l,u),u};return o=a,(...l)=>o(K_(...l))},Y_=[],Xe=e=>{const t=n=>n[e]||Y_;return t.isThemeGetter=!0,t.themeKey=e,t},Yf=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,X_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,J_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Q_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,e1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,t1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,n1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,In=e=>X_.test(e),$e=e=>!!e&&!Number.isNaN(Number(e)),Ut=e=>!!e&&Number.isInteger(Number(e)),li=e=>e.endsWith("%")&&$e(e.slice(0,-1)),sn=e=>J_.test(e),Jf=()=>!0,r1=e=>Q_.test(e)&&!e1.test(e),fc=()=>!1,s1=e=>t1.test(e),o1=e=>n1.test(e),a1=e=>!ee(e)&&!ne(e),i1=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),l1=e=>Un(e,tm,fc),ee=e=>Yf.test(e),Jn=e=>Un(e,nm,r1),Gu=e=>Un(e,g1,$e),c1=e=>Un(e,sm,Jf),u1=e=>Un(e,rm,fc),Uu=e=>Un(e,Qf,fc),d1=e=>Un(e,em,o1),mo=e=>Un(e,om,s1),ne=e=>Xf.test(e),ns=e=>kr(e,nm),p1=e=>kr(e,rm),Wu=e=>kr(e,Qf),f1=e=>kr(e,tm),m1=e=>kr(e,em),ho=e=>kr(e,om,!0),h1=e=>kr(e,sm,!0),Un=(e,t,n)=>{const r=Yf.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},kr=(e,t,n=!1)=>{const r=Xf.exec(e);return r?r[1]?t(r[1]):n:!1},Qf=e=>e==="position"||e==="percentage",em=e=>e==="image"||e==="url",tm=e=>e==="length"||e==="size"||e==="bg-size",nm=e=>e==="length",g1=e=>e==="number",rm=e=>e==="family-name",sm=e=>e==="number"||e==="weight",om=e=>e==="shadow",b1=()=>{const e=Xe("color"),t=Xe("font"),n=Xe("text"),r=Xe("font-weight"),s=Xe("tracking"),o=Xe("leading"),a=Xe("breakpoint"),i=Xe("container"),l=Xe("spacing"),c=Xe("radius"),u=Xe("shadow"),d=Xe("inset-shadow"),f=Xe("text-shadow"),p=Xe("drop-shadow"),m=Xe("blur"),h=Xe("perspective"),y=Xe("aspect"),b=Xe("ease"),v=Xe("animate"),g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),ne,ee],T=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],$=()=>[ne,ee,l],B=()=>[In,"full","auto",...$()],U=()=>[Ut,"none","subgrid",ne,ee],V=()=>["auto",{span:["full",Ut,ne,ee]},Ut,ne,ee],J=()=>[Ut,"auto",ne,ee],Y=()=>["auto","min","max","fr",ne,ee],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],be=()=>["start","end","center","stretch","center-safe","end-safe"],ie=()=>["auto",...$()],de=()=>[In,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],le=()=>[i,In,"screen","full","dvw","lvw","svw","min","max","fit",...$()],Me=()=>[In,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],te=()=>[e,ne,ee],Ue=()=>[...C(),Wu,Uu,{position:[ne,ee]}],qe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],wt=()=>["auto","cover","contain",f1,l1,{size:[ne,ee]}],A=()=>[li,ns,Jn],P=()=>["","none","full",c,ne,ee],Z=()=>["",$e,ns,Jn],oe=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[$e,li,Wu,Uu],Ee=()=>["","none",m,ne,ee],ut=()=>["none",$e,ne,ee],w=()=>["none",$e,ne,ee],E=()=>[$e,ne,ee],O=()=>[In,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sn],breakpoint:[sn],color:[Jf],container:[sn],"drop-shadow":[sn],ease:["in","out","in-out"],font:[a1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sn],shadow:[sn],spacing:["px",$e],text:[sn],"text-shadow":[sn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",In,ee,ne,y]}],container:["container"],"container-type":[{"@container":["","normal","size",ne,ee]}],"container-named":[i1],columns:[{columns:[$e,"auto",ee,ne,i]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Ut,"auto",ne,ee]}],basis:[{basis:[In,"full","auto",i,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$e,In,"auto","initial","none",ee]}],grow:[{grow:["",$e,ne,ee]}],shrink:[{shrink:["",$e,ne,ee]}],order:[{order:[Ut,"first","last","none",ne,ee]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...be(),"normal"]}],"justify-self":[{"justify-self":["auto",...be()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...be(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...be(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...be(),"baseline"]}],"place-self":[{"place-self":["auto",...be()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mbs:[{mbs:ie()}],mbe:[{mbe:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],"inline-size":[{inline:["auto",...le()]}],"min-inline-size":[{"min-inline":["auto",...le()]}],"max-inline-size":[{"max-inline":["none",...le()]}],"block-size":[{block:["auto",...Me()]}],"min-block-size":[{"min-block":["auto",...Me()]}],"max-block-size":[{"max-block":["none",...Me()]}],w:[{w:[i,"screen",...de()]}],"min-w":[{"min-w":[i,"screen","none",...de()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh","none",...de()]}],"font-size":[{text:["base",n,ns,Jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,h1,c1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",li,ee]}],"font-family":[{font:[p1,u1,t]}],"font-features":[{"font-features":[ee]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ne,ee]}],"line-clamp":[{"line-clamp":[$e,"none",ne,Gu]}],leading:[{leading:["none",o,...$()]}],"list-image":[{"list-image":["none",ne,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:te()}],"text-color":[{text:te()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[$e,"from-font","auto",ne,Jn]}],"text-decoration-color":[{decoration:te()}],"underline-offset":[{"underline-offset":[$e,"auto",ne,ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"tab-size":[{tab:[Ut,ne,ee]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ue()}],"bg-repeat":[{bg:qe()}],"bg-size":[{bg:wt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ut,ne,ee],radial:["",ne,ee],conic:["",Ut,ne,ee]},m1,d1]}],"bg-color":[{bg:te()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:te()}],"gradient-via":[{via:te()}],"gradient-to":[{to:te()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-bs":[{"border-bs":Z()}],"border-w-be":[{"border-be":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:te()}],"border-color-x":[{"border-x":te()}],"border-color-y":[{"border-y":te()}],"border-color-s":[{"border-s":te()}],"border-color-e":[{"border-e":te()}],"border-color-bs":[{"border-bs":te()}],"border-color-be":[{"border-be":te()}],"border-color-t":[{"border-t":te()}],"border-color-r":[{"border-r":te()}],"border-color-b":[{"border-b":te()}],"border-color-l":[{"border-l":te()}],"divide-color":[{divide:te()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$e,ne,ee]}],"outline-w":[{outline:["",$e,ns,Jn]}],"outline-color":[{outline:te()}],shadow:[{shadow:["","inner","none",u,ho,mo]}],"shadow-color":[{shadow:te()}],"inset-shadow":[{"inset-shadow":["none",d,ho,mo]}],"inset-shadow-color":[{"inset-shadow":te()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:te()}],"ring-offset-w":[{"ring-offset":[$e,Jn]}],"ring-offset-color":[{"ring-offset":te()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":te()}],"text-shadow":[{"text-shadow":["none",f,ho,mo]}],"text-shadow-color":[{"text-shadow":te()}],opacity:[{opacity:[$e,ne,ee]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$e]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":te()}],"mask-image-linear-to-color":[{"mask-linear-to":te()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":te()}],"mask-image-t-to-color":[{"mask-t-to":te()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":te()}],"mask-image-r-to-color":[{"mask-r-to":te()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":te()}],"mask-image-b-to-color":[{"mask-b-to":te()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":te()}],"mask-image-l-to-color":[{"mask-l-to":te()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":te()}],"mask-image-x-to-color":[{"mask-x-to":te()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":te()}],"mask-image-y-to-color":[{"mask-y-to":te()}],"mask-image-radial":[{"mask-radial":[ne,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":te()}],"mask-image-radial-to-color":[{"mask-radial-to":te()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[$e]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":te()}],"mask-image-conic-to-color":[{"mask-conic-to":te()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ue()}],"mask-repeat":[{mask:qe()}],"mask-size":[{mask:wt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,ee]}],filter:[{filter:["","none",ne,ee]}],blur:[{blur:Ee()}],brightness:[{brightness:[$e,ne,ee]}],contrast:[{contrast:[$e,ne,ee]}],"drop-shadow":[{"drop-shadow":["","none",p,ho,mo]}],"drop-shadow-color":[{"drop-shadow":te()}],grayscale:[{grayscale:["",$e,ne,ee]}],"hue-rotate":[{"hue-rotate":[$e,ne,ee]}],invert:[{invert:["",$e,ne,ee]}],saturate:[{saturate:[$e,ne,ee]}],sepia:[{sepia:["",$e,ne,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,ee]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[$e,ne,ee]}],"backdrop-contrast":[{"backdrop-contrast":[$e,ne,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$e,ne,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$e,ne,ee]}],"backdrop-invert":[{"backdrop-invert":["",$e,ne,ee]}],"backdrop-opacity":[{"backdrop-opacity":[$e,ne,ee]}],"backdrop-saturate":[{"backdrop-saturate":[$e,ne,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",$e,ne,ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$e,"initial",ne,ee]}],ease:[{ease:["linear","initial",b,ne,ee]}],delay:[{delay:[$e,ne,ee]}],animate:[{animate:["none",v,ne,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,ne,ee]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ut()}],"rotate-x":[{"rotate-x":ut()}],"rotate-y":[{"rotate-y":ut()}],"rotate-z":[{"rotate-z":ut()}],scale:[{scale:w()}],"scale-x":[{"scale-x":w()}],"scale-y":[{"scale-y":w()}],"scale-z":[{"scale-z":w()}],"scale-3d":["scale-3d"],skew:[{skew:E()}],"skew-x":[{"skew-x":E()}],"skew-y":[{"skew-y":E()}],transform:[{transform:[ne,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:O()}],"translate-x":[{"translate-x":O()}],"translate-y":[{"translate-y":O()}],"translate-z":[{"translate-z":O()}],"translate-none":["translate-none"],zoom:[{zoom:[Ut,ne,ee]}],accent:[{accent:te()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:te()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne,ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":te()}],"scrollbar-track-color":[{"scrollbar-track":te()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne,ee]}],fill:[{fill:["none",...te()]}],"stroke-w":[{stroke:[$e,ns,Jn,Gu]}],stroke:[{stroke:["none",...te()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},y1=Z_(b1);function v1(e){const t=pt(!1),n=pt(null),r=pt([]),s=pt([]),o=pt(null),a=pt([]),i=pt(null),l=pt(null),c=e.observeEvents(p=>{if(!(i.get()!==null&&!l.get()))switch(t.set(!0),p.type){case"status":n.set(p.payload);break;case"streams":r.set(p.payload);break;case"buckets":s.set(p.payload);break;case"uploadQueue":o.set(p.payload);break;case"newLogs":a.set([...a.get(),...p.payload].slice(-2e3));break}});let u=null;const d=async p=>{i.set(p);const m=(u?p.find(h=>h.id===u):void 0)??p[0]??null;m?.id!==l.get()?.id&&(l.set(m),n.set(null),r.set([]),s.set([]),o.set(null),t.set(m!==null),zu(e)&&await e.selectSource(m?.id??null))},f=zu(e)?e.observeSources(p=>{d(p)}):null;return{connected:t,status:n,streams:r,buckets:s,uploadQueue:o,logs:a,sources:i,activeSource:l,selectSource:async p=>{u=p,await d(i.get()??[])},clearLogs:()=>a.set([]),dispose:()=>{c.then(p=>p()),f?.then(p=>p())}}}const am="powersync-diagnostics-theme";function _1(){try{const e=localStorage.getItem(am);if(e==="dark")return!0;if(e==="light")return!1}catch{}try{return window.matchMedia?.("(prefers-color-scheme: dark)").matches??!0}catch{return!0}}const fs=H(_1()),im=en(null);function Ku(e){try{localStorage.setItem(am,e?"dark":"light")}catch{}}function Zu(e){im.value=e===null?null:()=>He(e)}const sl=M(()=>im.value?.()??null),w1=M(()=>sl.value===null?fs.value:sl.value==="dark"),ci=M(()=>sl.value!==null);function mc(){return{isDark:w1,hostControlled:ci,toggle(){ci.value||(fs.value=!fs.value,Ku(fs.value))},setTheme(e){ci.value||(fs.value=e,Ku(e))}}}const x1=["web","nuxt","node","react-native","dart"],lm=Symbol("powersync-diagnostics");function k1(e,t={}){const n=en(null),r=en(null);let s=!1;Zu(t.theme??null);const o=l=>{s||(n.value=l,r.value=v1(l))};e instanceof Promise?e.then(o):o(e);const a=M(()=>{const l=He(t.sdks);return l?.length?l:null}),i=M(()=>He(t.hiddenActions)??[]);$a(lm,{integration:n,stores:r,sdks:a,hiddenActions:i}),Ur(()=>{s=!0,r.value?.dispose(),Zu(null)})}function Na(){const e=mr(lm);if(!e)throw new Error("[diagnostics-ui] No SdkIntegration provided. Call provideDiagnostics(integration) in the host.");return e}function C1(){const{integration:e}=Na();if(!e.value)throw new Error("[diagnostics-ui] The SdkIntegration is not available yet.");return e.value}function $1(){return Na().sdks}function hc(){return Na().hiddenActions}const S1={connected:pt(!1),status:pt(null),streams:pt([]),buckets:pt([]),uploadQueue:pt(null),logs:pt([]),sources:pt(null),activeSource:pt(null)};function En(){const{integration:e,stores:t}=Na(),n=t.value??S1;return{client:e.value,connected:Tn(n.connected),status:Tn(n.status),streams:Tn(n.streams),buckets:Tn(n.buckets),uploadQueue:Tn(n.uploadQueue),logs:Tn(n.logs),sources:Tn(n.sources),activeSource:Tn(n.activeSource),selectSource:r=>t.value?.selectSource(r),clearLogs:()=>t.value?.clearLogs()}}const ui=H(Date.now());let rs=null,di=0;function j1(){return di++,rs||(ui.value=Date.now(),rs=setInterval(()=>ui.value=Date.now(),1e3)),Ur(()=>{di--,di===0&&rs&&(clearInterval(rs),rs=null)}),ui}function xs(e){if(e==null)return"—";if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB","TB"],r=Math.min(Math.floor(Math.log(e)/Math.log(t)),n.length-1);return`${(e/Math.pow(t,r)).toFixed(r===0?0:1)} ${n[r]}`}const E1=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1});function st(e){return e==null?"0":Math.abs(e)<1e3?String(e):E1.format(e)}function cm(e){return e!=null&&Number.isFinite(e)}function A1(e,t=Date.now()){if(!cm(e))return"never";const n=Math.round((t-e)/1e3);if(n<5)return"just now";if(n<60)return`${n}s ago`;const r=Math.round(n/60);if(r<60)return`${r}m ago`;const s=Math.round(r/60);return s<24?`${s}h ago`:new Date(e).toLocaleDateString()}function Yo(e){if(!cm(e))return"—";const t=new Date(e),n={hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,fractionalSecondDigits:3},r=t.toLocaleTimeString(void 0,n);return t.toDateString()===new Date().toDateString()?r:`${t.toLocaleDateString()} ${r}`}function ol(e){return e==null||Object.keys(e).length===0?"—":JSON.stringify(e)}function al(e){return!e||e.totalOperations<=0?0:Math.min(e.downloadedOperations/e.totalOperations,1)}const T1={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function I1(e,t){return k(),I("svg",T1,[...t[0]||(t[0]=[x("circle",{cx:"16",cy:"25",r:"2",fill:"currentColor"},null,-1),x("path",{fill:"currentColor",d:"m10.47 19.233l1.414 1.413a5.97 5.97 0 0 1 8.223-.009l1.413-1.413a7.963 7.963 0 0 0-11.05.01Z"},null,-1),x("path",{fill:"currentColor",d:"m6.229 14.993l1.414 1.413a11.955 11.955 0 0 1 16.704-.01l1.413-1.413a13.95 13.95 0 0 0-19.531.01"},null,-1),x("path",{fill:"currentColor",d:"M30 10.741a19.94 19.94 0 0 0-28 0v.023l1.404 1.404a17.934 17.934 0 0 1 25.181-.01L30 10.743Z"},null,-1)])])}const O1=ge({name:"carbon-wifi",render:I1}),M1={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function R1(e,t){return k(),I("svg",M1,[...t[0]||(t[0]=[x("circle",{cx:"16",cy:"25",r:"2",fill:"currentColor"},null,-1),x("path",{fill:"currentColor",d:"M30 3.414L28.586 2L2 28.586L3.414 30l10.682-10.682a5.94 5.94 0 0 1 6.01 1.32l1.414-1.414a7.97 7.97 0 0 0-5.125-2.204l3.388-3.388a12 12 0 0 1 4.564 2.765l1.413-1.414a14 14 0 0 0-4.426-2.903l2.997-2.997a18 18 0 0 1 4.254 3.075L30 10.743v-.002a20 20 0 0 0-4.19-3.138Zm-15.32 9.664l2.042-2.042C16.48 11.023 16.243 11 16 11a13.95 13.95 0 0 0-9.771 3.993l1.414 1.413a11.97 11.97 0 0 1 7.037-3.328M16 7a18 18 0 0 1 4.232.525l1.643-1.642A19.95 19.95 0 0 0 2 10.74v.023l1.404 1.404A17.92 17.92 0 0 1 16 7"},null,-1)])])}const P1=ge({name:"carbon-wifi-off",render:R1}),L1={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function B1(e,t){return k(),I("svg",L1,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M16 23a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 23m-1-11h2v9h-2z"},null,-1),x("path",{fill:"currentColor",d:"M29 30H3a1 1 0 0 1-.887-1.461l13-25a1 1 0 0 1 1.774 0l13 25A1 1 0 0 1 29 30M4.65 28h22.7l.001-.003L16.002 6.17h-.004L4.648 27.997Z"},null,-1)])])}const Ln=ge({name:"carbon-warning-alt",render:B1}),N1={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function D1(e,t){return k(),I("svg",N1,[...t[0]||(t[0]=[x("path",{fill:"none",d:"M9 10.555L10.555 9L23 21.444L21.444 23z"},null,-1),x("path",{fill:"currentColor",d:"M16 2A13.914 13.914 0 0 0 2 16a13.914 13.914 0 0 0 14 14a13.914 13.914 0 0 0 14-14A13.914 13.914 0 0 0 16 2m5.445 21L9 10.556L10.556 9L23 21.445Z"},null,-1)])])}const Yu=ge({name:"carbon-error-filled",render:D1}),F1={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function z1(e,t){return k(),I("svg",F1,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M7.7 4.7a14.7 14.7 0 0 0-3 3.1L6.3 9a13.3 13.3 0 0 1 2.6-2.7Zm-3.1 7.6l-1.9-.6A12.5 12.5 0 0 0 2 16h2a11.5 11.5 0 0 1 .6-3.7m-1.9 8.1a14.4 14.4 0 0 0 2 3.9l1.6-1.2a12.9 12.9 0 0 1-1.7-3.3Zm5.1 6.9a14.4 14.4 0 0 0 3.9 2l.6-1.9A12.9 12.9 0 0 1 9 25.7Zm3.9-24.6l.6 1.9A11.5 11.5 0 0 1 16 4V2a12.5 12.5 0 0 0-4.3.7m12.5 24.6a15.2 15.2 0 0 0 3.1-3.1L25.7 23a11.5 11.5 0 0 1-2.7 2.7Zm3.2-7.6l1.9.6A15.5 15.5 0 0 0 30 16h-2a11.5 11.5 0 0 1-.6 3.7m1.8-8.1a14.4 14.4 0 0 0-2-3.9l-1.6 1.2a12.9 12.9 0 0 1 1.7 3.3Zm-5.1-7a14.4 14.4 0 0 0-3.9-2l-.6 1.9a12.9 12.9 0 0 1 3.3 1.7Zm-3.8 24.7l-.6-1.9a11.5 11.5 0 0 1-3.7.6v2a21.4 21.4 0 0 0 4.3-.7"},null,-1)])])}const gc=ge({name:"carbon-circle-dash",render:z1}),q1={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function H1(e,t){return k(),I("svg",q1,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4Zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z"},null,-1)])])}const V1=ge({name:"carbon-download",render:H1}),G1={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function U1(e,t){return k(),I("svg",G1,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m6 18l1.41 1.41L15 11.83V30h2V11.83l7.59 7.58L26 18L16 8zM6 8V4h20v4h2V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4Z"},null,-1)])])}const W1=ge({name:"carbon-upload",render:U1}),K1={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function Z1(e,t){return k(),I("svg",K1,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M26 18A10 10 0 1 1 16 8h6.182l-3.584 3.585L20 13l6-6l-6-6l-1.402 1.414L22.185 6H16a12 12 0 1 0 12 12Z"},null,-1)])])}const Y1=ge({name:"carbon-restart",render:Z1}),X1={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function J1(e,t){return k(),I("svg",X1,[...t[0]||(t[0]=[x("circle",{cx:"16",cy:"16",r:"8",fill:"currentColor"},null,-1)])])}const Q1=ge({name:"carbon-dot-mark",render:J1}),ew={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function tw(e,t){return k(),I("svg",ew,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M24 3H8a2 2 0 0 0-2 2v22a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 2v6H8V5ZM8 19v-6h16v6Zm0 8v-6h16v6Z"},null,-1),x("circle",{cx:"11",cy:"8",r:"1",fill:"currentColor"},null,-1),x("circle",{cx:"11",cy:"16",r:"1",fill:"currentColor"},null,-1),x("circle",{cx:"11",cy:"24",r:"1",fill:"currentColor"},null,-1)])])}const Da=ge({name:"carbon-data-base",render:tw}),nw={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function rw(e,t){return k(),I("svg",nw,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m11 18l1.41 1.41L15 16.83V29h2V16.83l2.59 2.58L21 18l-5-5z"},null,-1),x("path",{fill:"currentColor",d:"M23.5 22H23v-2h.5a4.5 4.5 0 0 0 .36-9H23l-.1-.82a7 7 0 0 0-13.88 0L9 11h-.86a4.5 4.5 0 0 0 .36 9H9v2h-.5A6.5 6.5 0 0 1 7.2 9.14a9 9 0 0 1 17.6 0A6.5 6.5 0 0 1 23.5 22"},null,-1)])])}const um=ge({name:"carbon-cloud-upload",render:rw}),sw={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function ow(e,t){return k(),I("svg",sw,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4"},null,-1),x("path",{fill:"currentColor",d:"M20.59 22L15 16.41V7h2v8.58l5 5.01z"},null,-1)])])}const bc=ge({name:"carbon-time",render:ow}),aw={class:"flex flex-wrap items-center gap-x-3 gap-y-0.5 whitespace-nowrap border-b bg-card/40 px-3 py-1 text-xs tabular-nums text-muted-foreground"},iw={class:"inline-flex items-center gap-1",title:"Buckets · total downloaded operations"},lw={key:0,class:"hidden items-center gap-1 @md:inline-flex",title:"Last synced"},cw=["title"],uw={class:"truncate"},dw=fe({__name:"StatusBar",setup(e){const{connected:t,status:n,buckets:r,uploadQueue:s}=En(),o=j1(),a=M(()=>{if(!t.value)return{label:"No client",icon:Ln,tone:"warning"};const m=n.value;return m?.downloadError||m?.uploadError?{label:"Error",icon:Yu,tone:"error"}:m?.connecting?{label:"Connecting",icon:gc,tone:"muted",spin:!0}:m?.connected?{label:"Connected",icon:O1,tone:"success"}:{label:"Offline",icon:P1,tone:"muted"}}),i=M(()=>{const m=n.value,h=!!m?.downloading,y=!!m?.uploading;return h&&y?{label:"Syncing",icon:Y1,active:!0,spin:!0}:h?{label:"Downloading",icon:V1,active:!0}:y?{label:"Uploading",icon:W1,active:!0}:{label:"Idle",icon:Q1,active:!1}}),l={success:"text-success",warning:"text-warning",error:"text-destructive",muted:"text-muted-foreground"},c=M(()=>n.value?.downloadError??n.value?.uploadError??null),u=M(()=>s.value?.count??0),d=M(()=>r.value.length),f=M(()=>r.value.reduce((m,h)=>m+(h.downloadedOperations||0),0)),p=M(()=>n.value?.lastSyncedAt?A1(n.value.lastSyncedAt,o.value):null);return(m,h)=>(k(),I("div",aw,[x("span",{class:je(["inline-flex items-center gap-1.5 font-medium",l[a.value.tone]])},[(k(),ae(qn(a.value.icon),{class:je(["size-3.5 shrink-0",a.value.spin&&"animate-spin"])},null,8,["class"])),ce(" "+L(a.value.label),1)],2),x("span",{class:je(["inline-flex items-center gap-1",i.value.active?"text-foreground":"text-muted-foreground/70"])},[(k(),ae(qn(i.value.icon),{class:je(["size-3.5",i.value.spin&&"animate-spin",i.value.active&&!i.value.spin&&"animate-pulse"])},null,8,["class"])),ce(" "+L(i.value.label),1)],2),h[2]||(h[2]=x("span",{class:"mx-0.5 hidden h-3.5 w-px bg-border @sm:inline-block","aria-hidden":"true"},null,-1)),x("span",iw,[R(_(Da),{class:"size-3.5"}),ce(" "+L(_(st)(d.value)),1),h[0]||(h[0]=x("span",{class:"hidden @md:inline"}," buckets",-1)),ce(" · "+L(_(st)(f.value))+" ops ",1)]),x("span",{class:je(["inline-flex items-center gap-1",u.value>0&&"text-warning"]),title:"Local changes waiting to upload (pending CRUD queue)"},[R(_(um),{class:"size-3.5"}),ce(" "+L(_(st)(u.value)),1),h[1]||(h[1]=x("span",{class:"hidden @md:inline"}," to upload",-1))],2),p.value?(k(),I("span",lw,[R(_(bc),{class:"size-3.5"}),ce(" synced "+L(p.value),1)])):se("",!0),c.value?(k(),I("span",{key:1,class:"ml-auto inline-flex max-w-full items-center gap-1 truncate text-destructive @md:max-w-[45%]",title:c.value},[R(_(Yu),{class:"size-3.5 shrink-0"}),x("span",uw,L(c.value),1)],8,cw)):se("",!0)]))}}),pw={viewBox:"0 0 70 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"PowerSync"},fw=fe({__name:"Logo",setup(e){return(t,n)=>(k(),I("svg",pw,[...n[0]||(n[0]=[Xl('<path d="M68.3875 25.6594L60.2117 11.8629C59.2046 10.1633 57.344 9.1167 55.3298 9.1167H46.9058C46.1825 9.1167 45.7302 9.87957 46.0919 10.4901L47.9203 13.5763C48.2564 14.1424 48.8764 14.4915 49.5474 14.4915H53.229C54.5716 14.4915 55.8122 15.1896 56.4838 16.3225L62.5595 26.5752C63.2311 27.7081 63.2311 29.1037 62.5595 30.2366L56.4838 40.4893C55.8129 41.6222 54.5716 42.3204 53.229 42.3204H41.0777C39.7351 42.3204 38.4945 41.6222 37.8229 40.4893L24.6813 18.313C24.3196 17.7025 24.7719 16.9402 25.4952 16.9402H29.1761C29.8994 16.9402 30.3516 16.1774 29.99 15.5675L28.1616 12.4813C27.8254 11.9152 27.2055 11.5661 26.5338 11.5661H18.5828C17.9112 11.5661 17.2912 11.9152 16.9551 12.4813L12.9796 19.1903C12.6441 19.7564 12.6441 20.4546 12.9796 21.0213L14.808 24.1075C15.1696 24.7174 16.0734 24.7174 16.4357 24.1075L18.2762 21.0017C18.6379 20.3918 19.5417 20.3918 19.9033 21.0017L34.095 44.9502C35.1021 46.6499 36.9627 47.6964 38.9776 47.6964H55.3291C57.3433 47.6964 59.2039 46.6492 60.2117 44.9502L68.3875 31.1538C69.3946 29.4541 69.3946 27.3603 68.3875 25.6613V25.6594Z" fill="url(#ps-logo-a)"></path><path d="M21.7933 34.935C21.4578 34.3683 20.8372 34.0198 20.1662 34.0198H16.4846C15.142 34.0198 13.9014 33.3217 13.2297 32.1888L7.15412 21.9361C6.48248 20.8032 6.48248 19.4075 7.15412 18.2747L13.2297 8.02196C13.9014 6.88909 15.142 6.19093 16.4846 6.19093H28.6365C29.9791 6.19093 31.2197 6.88909 31.8914 8.02196L45.033 30.1983C45.3946 30.8088 44.9424 31.571 44.2191 31.571H40.5382C39.8149 31.571 39.3626 32.3339 39.7243 32.9438L41.5527 36.03C41.8881 36.5967 42.5088 36.9452 43.1798 36.9452H51.1307C51.8024 36.9452 52.4224 36.5961 52.7578 36.03L56.7333 29.321C57.0695 28.7549 57.0695 28.0567 56.7333 27.49L54.9049 24.4038C54.5433 23.7939 53.6395 23.7939 53.2778 24.4038L51.4374 27.5102C51.0757 28.1201 50.1719 28.1201 49.8096 27.5102L35.6179 3.56238C34.6108 1.8634 32.7502 0.816162 30.736 0.816162H14.3845C12.3702 0.816162 10.5096 1.8634 9.50251 3.56238L1.32675 17.3588C0.31963 19.0578 0.31963 21.1516 1.32675 22.8513L9.50251 36.6477C10.5096 38.3474 12.3709 39.3939 14.3851 39.3939H22.8092C23.5325 39.3939 23.984 38.6311 23.623 38.0212L21.794 34.935H21.7933Z" fill="url(#ps-logo-b)"></path><defs><linearGradient id="ps-logo-a" x1="17.4274" y1="11.6845" x2="63.6811" y2="39.0946" gradientUnits="userSpaceOnUse"><stop stop-color="#0055FF"></stop><stop offset="1" stop-color="#00D5FF"></stop></linearGradient><linearGradient id="ps-logo-b" x1="52.2868" y1="36.8262" x2="6.03308" y2="9.41672" gradientUnits="userSpaceOnUse"><stop stop-color="#0055FF"></stop><stop offset="1" stop-color="#AA00FF"></stop></linearGradient></defs>',3)])]))}}),mw={class:"flex h-full flex-col items-center justify-center gap-3 p-8 text-center"},hw={class:"space-y-1"},gw={class:"text-sm font-semibold text-foreground"},bw={key:0,class:"mx-auto max-w-md text-xs leading-relaxed text-muted-foreground"},yw={key:1,class:"w-full max-w-md"},pi=fe({__name:"EmptyState",props:{icon:{},title:{},description:{},tone:{default:"muted"},spin:{type:Boolean}},setup(e){const t=e,n=M(()=>({muted:"text-muted-foreground/40",warning:"text-warning",error:"text-destructive"})[t.tone]);return(r,s)=>(k(),I("div",mw,[e.icon?(k(),ae(qn(e.icon),{key:0,class:je(["size-10 shrink-0",n.value,e.spin&&"animate-spin"])},null,8,["class"])):se("",!0),x("div",hw,[x("h2",gw,L(e.title),1),e.description?(k(),I("p",bw,L(e.description),1)):se("",!0)]),r.$slots.default?(k(),I("div",yw,[Le(r.$slots,"default")])):se("",!0)]))}}),Xo={dark:"github-dark-default",light:"github-light-default"};let fi=null;function dm(){return fi||(fi=(async()=>{const[{createHighlighterCore:e},{createJavaScriptRegexEngine:t},n,r,s,o,a,i]=await Promise.all([Promise.resolve().then(()=>nA),Promise.resolve().then(()=>q4),Promise.resolve().then(()=>G4),Promise.resolve().then(()=>K4),Promise.resolve().then(()=>X4),Promise.resolve().then(()=>eT),Promise.resolve().then(()=>nT),Promise.resolve().then(()=>sT)]);return e({themes:[a.default,i.default],langs:[n.default,r.default,s.default,o.default],engine:t()})})()),fi}const vw={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function _w(e,t){return k(),I("svg",vw,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M28 10v18H10V10zm0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2"},null,-1),x("path",{fill:"currentColor",d:"M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"},null,-1)])])}const ww=ge({name:"carbon-copy",render:_w}),xw={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function kw(e,t){return k(),I("svg",xw,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z"},null,-1)])])}const Cw=ge({name:"carbon-checkmark",render:kw}),$w=["disabled"],pm=fe({__name:"CopyButton",props:{value:{}},setup(e){const t=e,n=H(!1);async function r(){if(t.value)try{await navigator.clipboard.writeText(t.value),n.value=!0,setTimeout(()=>n.value=!1,1500)}catch{}}return(s,o)=>(k(),I("button",{type:"button",class:"rounded p-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:opacity-40",disabled:!e.value,title:"Copy","aria-label":"Copy",onClick:r},[n.value?(k(),ae(_(Cw),{key:0,class:"size-3 text-success"})):(k(),ae(_(ww),{key:1,class:"size-3"}))],8,$w))}}),Sw={class:"group relative rounded-md border bg-muted/40 text-left"},jw={class:"absolute right-1.5 top-1.5 opacity-0 transition group-hover:opacity-100"},Ew=["innerHTML"],Aw={key:1,class:"overflow-x-auto p-3 text-xs leading-relaxed"},il=fe({__name:"CodeBlock",props:{code:{},lang:{default:"javascript"}},setup(e){const t=e,{isDark:n}=mc(),r=H("");async function s(){try{const o=await dm();r.value=o.codeToHtml(t.code,{lang:t.lang,theme:n.value?Xo.dark:Xo.light})}catch{r.value=""}}return Ie([()=>t.code,()=>t.lang,n],s,{immediate:!0}),(o,a)=>(k(),I("div",Sw,[x("div",jw,[R(pm,{value:e.code},null,8,["value"])]),r.value?(k(),I("div",{key:0,class:"overflow-x-auto p-3 text-xs leading-relaxed [&_pre]:!bg-transparent",innerHTML:r.value},null,8,Ew)):(k(),I("pre",Aw,[x("code",null,L(e.code),1)]))]))}}),Tw={key:0,class:"text-left"},Iw={class:"overflow-hidden rounded-md border"},Ow={key:0,class:"flex gap-0.5 border-b bg-muted/40 px-1 pt-1"},Mw=["onClick"],Rw={key:2,class:"px-3 py-3 text-xs leading-relaxed text-muted-foreground"},Pw=["href"],Lw=fe({__name:"CodeTabs",props:{tabs:{}},setup(e){const t=e,n=H(0);Ie(()=>t.tabs.length,s=>{n.value>=s&&(n.value=0)});const r=M(()=>t.tabs[n.value]);return(s,o)=>r.value?(k(),I("div",Tw,[x("div",Iw,[t.tabs.length>1?(k(),I("div",Ow,[(k(!0),I(xe,null,Ve(t.tabs,(a,i)=>(k(),I("button",{key:a.label,type:"button",class:je(["rounded-t px-2.5 py-1 text-xs font-medium transition-colors",i===n.value?"bg-background text-foreground":"text-muted-foreground hover:text-foreground"]),onClick:l=>n.value=i},L(a.label),11,Mw))),128))])):se("",!0),r.value.code?(k(),ae(il,{key:1,code:r.value.code,lang:r.value.lang??"text",class:"rounded-none border-0"},null,8,["code","lang"])):r.value.note?(k(),I("p",Rw,L(r.value.note),1)):se("",!0)]),r.value.link?(k(),I("a",{key:0,href:r.value.link.href,target:"_blank",rel:"noreferrer",class:"mt-3 inline-block text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"},L(r.value.link.label)+" ↗ ",9,Pw)):se("",!0)])):se("",!0)}}),mi=fe({__name:"Tooltip",props:{text:{},side:{default:"bottom"}},setup(e){return(t,n)=>(k(),ae(_(h_),{"delay-duration":300},{default:re(()=>[R(_(C_),{"as-child":""},{default:re(()=>[Le(t.$slots,"default")]),_:3}),R(_(x_),null,{default:re(()=>[R(_(__),{side:e.side,"side-offset":6,"collision-padding":8,class:"z-50 max-w-64 rounded-md border bg-card px-2 py-1 text-xs leading-snug text-card-foreground shadow-md"},{default:re(()=>[ce(L(e.text)+" ",1),R(_(c_),{class:"fill-card stroke-border",width:10,height:5})]),_:1},8,["side"])]),_:1})]),_:3}))}});function yc(...e){return y1(j_(e))}const Bw={class:"relative inline-flex"},Nw=["disabled"],Dw={key:0,class:"pointer-events-none absolute inset-0 size-full -rotate-90",viewBox:"0 0 24 24","aria-hidden":"true"},Fw=["stroke-dashoffset"],zw={key:0,role:"status",class:"pointer-events-none absolute left-1/2 top-full z-20 mt-1 -translate-x-1/2 whitespace-nowrap rounded border bg-card px-1.5 py-0.5 text-[10px] font-medium text-destructive shadow-md"},hi=10,qw=fe({inheritAttrs:!1,__name:"HoldButton",props:{duration:{default:1e3},hint:{default:"Hold to confirm"},disabled:{type:Boolean,default:!1},class:{}},emits:["confirm"],setup(e,{emit:t}){const n=e,r=t,s=H(null),o=H(!1);let a=0,i=0,l=null;function c(v){if(s.value=Math.min((v-i)/n.duration,1),s.value<1){a=requestAnimationFrame(c);return}f(),r("confirm")}function u(){n.disabled||a||(p(),i=performance.now(),s.value=0,a=requestAnimationFrame(c))}function d(){a&&s.value!==null&&s.value<1&&(o.value=!0,l=setTimeout(p,1500)),f()}function f(){a&&cancelAnimationFrame(a),a=0,s.value=null}function p(){l&&clearTimeout(l),l=null,o.value=!1}function m(v){v.repeat||v.key!==" "&&v.key!=="Enter"||(v.preventDefault(),u())}Vl(()=>{f(),p()});const h=2*Math.PI*hi,y=M(()=>h*(1-(s.value??0))),b=M(()=>s.value!==null);return(v,g)=>(k(),I("span",Bw,[x("button",zt(v.$attrs,{type:"button",disabled:e.disabled,class:_(yc)("relative select-none rounded p-1 text-destructive/80 transition-colors hover:bg-destructive/15 hover:text-destructive disabled:opacity-50",b.value&&"bg-destructive/15 text-destructive",n.class),style:{"touch-action":"none"},onPointerdown:qr(u,["prevent"]),onPointerup:d,onPointerleave:d,onPointercancel:d,onKeydown:m,onKeyup:d,onBlur:d,onContextmenu:g[0]||(g[0]=qr(()=>{},["prevent"]))}),[Le(v.$slots,"default"),b.value?(k(),I("svg",Dw,[x("circle",{cx:"12",cy:"12",r:hi,fill:"none",stroke:"currentColor","stroke-opacity":"0.25","stroke-width":"2"}),x("circle",{cx:"12",cy:"12",r:hi,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":h,"stroke-dashoffset":y.value},null,8,Fw)])):se("",!0)],16,Nw),o.value?(k(),I("span",zw,L(e.hint),1)):se("",!0)]))}}),gi=H(!1),bi=H(!1),yi=H(null);function fm(){const e=C1();async function t(s,o){yi.value=null;try{await e.action(o)}catch(a){yi.value={label:s,message:a instanceof Error?a.message:String(a)}}}async function n(){gi.value=!0;try{await t("Sync now",{action:"requestCheckpoint"})}finally{gi.value=!1}}async function r(){bi.value=!0;try{await t("Clear & re-sync",{action:"clearData"})}finally{bi.value=!1}}return{syncing:gi,clearing:bi,actionError:yi,syncNow:n,clearAndResync:r,reconnect:()=>t("Reconnect",{action:"reconnect"}),disconnect:()=>t("Disconnect",{action:"disconnect"})}}function mm(e){if(!e)return null;try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=JSON.parse(atob(t));return typeof n.sub=="string"?n.sub:null}catch{return null}}function hm(e){return e.rows.map(t=>Object.fromEntries(e.columns.map((n,r)=>[n,t[r]])))}const Hw=["disabled"],bn=fe({__name:"Button",props:{variant:{default:"default"},size:{default:"md"},disabled:{type:Boolean,default:!1}},setup(e){const t=e,n=M(()=>({default:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border bg-transparent hover:bg-accent hover:text-accent-foreground",ghost:"bg-transparent hover:bg-accent hover:text-accent-foreground",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"})[t.variant]),r=M(()=>({sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm"})[t.size]);return(s,o)=>(k(),I("button",{disabled:e.disabled,class:je(_(yc)("inline-flex shrink-0 items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",n.value,r.value))},[Le(s.$slots,"default")],10,Hw))}}),Vw={class:"flex items-center gap-2 px-3 py-1.5 text-xs"},Gw={class:"w-24 shrink-0 text-muted-foreground"},Uw=["title"],St=fe({__name:"InfoRow",props:{icon:{},label:{},value:{},mono:{type:Boolean,default:!1},copyable:{type:Boolean,default:!1}},setup(e){return(t,n)=>(k(),I("div",Vw,[e.icon?(k(),ae(qn(e.icon),{key:0,class:"size-3.5 shrink-0 text-muted-foreground"})):se("",!0),x("span",Gw,L(e.label),1),x("span",{class:je(["min-w-0 flex-1 truncate text-foreground",e.mono&&"font-mono"]),title:e.value!=null?String(e.value):void 0},[Le(t.$slots,"default",{},()=>[ce(L(e.value??"—"),1)])],10,Uw),e.copyable?(k(),ae(pm,{key:1,value:e.value!=null?String(e.value):null},null,8,["value"])):se("",!0)]))}});function Ww(e){return typeof e=="object"?e.key:e}function Kw(e,t){const n=e.length;return new Proxy(e,{get(r,s,o){if(typeof s=="string"){const a=s.charCodeAt(0);if(a>=48&&a<=57){const i=+s;if(Number.isInteger(i)&&i>=0&&i<n){let l=r[i];if(typeof l!="object"){const c=t[i*2];l=r[i]={index:i,key:l,start:c,size:t[i*2+1],end:c+t[i*2+1],lane:0}}return l}}if(s==="length")return n}return Reflect.get(r,s,o)}})}function jr(e,t,n){let r=n.initialDeps??[],s,o=!0;function a(){const l=e();return l.length!==r.length||l.some((c,u)=>r[u]!==c)?(r=l,s=t(...l),n?.onChange&&!(o&&n.skipInitialOnChange)&&n.onChange(s),o=!1,s):s}return a.updateDeps=i=>{r=i},a}function Xu(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Er=(e,t)=>Math.abs(e-t)<1.01,Zw=(e,t,n)=>{let r;return Object.assign(function(...s){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,s),n)},{cancel:()=>{e.clearTimeout(r)}})};let ss;const vi=()=>{if(ss!==void 0)return ss;if(typeof navigator>"u")return ss=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return ss=!0;const e=navigator.maxTouchPoints;return ss=navigator.platform==="MacIntel"&&e!==void 0&&e>0},Ju=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Yw=e=>e,Xw=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=new Array(n);for(let s=0;s<n;s++)r[s]=t+s;return r},Jw=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const s=a=>{const{width:i,height:l}=a;t({width:Math.round(i),height:Math.round(l)})};if(s(Ju(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(a=>{const i=()=>{const l=a[0];if(l?.borderBoxSize){const c=l.borderBoxSize[0];if(c){s({width:c.inlineSize,height:c.blockSize});return}}s(Ju(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},Jo={passive:!0},Qw=typeof window>"u"?!0:"onscrollend"in window,ex=(e,t,n)=>{const r=e.scrollElement;if(!r)return;const s=e.targetWindow;if(!s)return;const o=e.options.useScrollendEvent&&Qw;let a=0;const i=o?null:Zw(s,()=>t(n(r),!1),e.options.isScrollingResetDelay),l=d=>()=>{a=n(r),i?.(),t(a,d)},c=l(!0),u=l(!1);return r.addEventListener("scroll",c,Jo),o&&r.addEventListener("scrollend",u,Jo),()=>{r.removeEventListener("scroll",c),o&&r.removeEventListener("scrollend",u),i?.cancel()}},tx=(e,t)=>ex(e,t,n=>{const{horizontal:r,isRtl:s}=e.options;return r?n.scrollLeft*(s&&-1||1):n.scrollTop}),nx=(e,t,n)=>{if(n.options.useCachedMeasurements){const r=n.indexFromElement(e),s=n.options.getItemKey(r);return n.itemSizeCache.get(s)??n.options.estimateSize(r)}if(t?.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){const r=n.indexFromElement(e),s=n.options.getItemKey(r),o=n.itemSizeCache.get(s);if(o!==void 0)return o}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},rx=(e,{adjustments:t=0,behavior:n},r)=>{var s,o;(o=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||o.call(s,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})},sx=rx;function ox(e,t,n,r){if(t===0)return!1;const s=r(0),o=new Set;let a=0;for(;a<e;){const l=n(a);if(l===s)break;o.add(l),a++}const i=e-a;if(i===0||i>=t)return!1;for(let l=0;l<i;l++)if(r(l)!==n(a+l))return!1;for(let l=i;l<t;l++)if(o.has(r(l)))return!1;return!0}class ax{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var n,r,s;return((s=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:s.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(s=>{s.forEach(o=>{const a=()=>{const i=o.target,l=this.indexFromElement(i);if(!i.isConnected){this.observer.unobserve(i);for(const[c,u]of this.elementsCache)if(u===i){this.elementsCache.delete(c);break}return}this.isIndexInRange(l)&&this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(i,o,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),n=null},observe:s=>{var o;return(o=r())==null?void 0:o.observe(s,{box:"border-box"})},unobserve:s=>{var o;return(o=r())==null?void 0:o.unobserve(s)}}})(),this.range=null,this.setOptions=n=>{var r;const s={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Yw,rangeExtractor:Xw,onChange:()=>{},measureElement:nx,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const d in n){const f=n[d];f!==void 0&&(s[d]=f)}const o=this.options;let a=null,i=null,l=!1;if(o!==void 0&&o.enabled&&s.enabled&&s.anchorTo==="end"&&this.scrollElement!==null){const d=o.count,f=s.count,p=this.getMeasurements(),m=((r=this._singleLaneMeasurements)==null?void 0:r.items)??p,h=v=>Ww(m[v]),y=d>0?h(0):null,b=d>0?h(d-1):null;if(f!==d||d>0&&f>0&&(s.getItemKey(0)!==y||s.getItemKey(f-1)!==b)){l=!0;const v=d>0?this.getVirtualItemForOffset(this.getScrollOffset())??p[0]:null;v&&(a=[v.key,this.getScrollOffset()-v.start]);const g=s.followOnAppend===!0?"auto":s.followOnAppend||null;g&&f>0&&this.isAtEnd(o.scrollEndThreshold)&&(d===0||s.getItemKey(f-1)!==b)&&(f>d||ox(d,f,h,s.getItemKey))&&(i=g)}}this.options=s,l&&(this.pendingMin=0,this.itemSizeCacheVersion++);let c=!1,u=0;if(a&&this.scrollOffset!==null){const[d,f]=a,p=this.getMeasurements(),{count:m,getItemKey:h}=this.options;let y=0;for(;y<m&&h(y)!==d;)y++;if(y<m){const b=p[y];if(b){const v=Math.max(0,b.start+f);!i&&v!==this.scrollOffset&&(u=v-this.scrollOffset,this.scrollOffset=v,c=!0)}}}(c||i)&&(this.pendingScrollAnchor=[c?a[0]:null,c?a[1]:0,i,u])},this.notify=n=>{var r,s;(s=(r=this.options).onChange)==null||s.call(r,this,n)},this.maybeNotify=jr(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n,r;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}if(this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,i)=>{var l;if(i&&this._intendedScrollOffset===null&&a===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(a-this._intendedScrollOffset)<1.5?a=this._intendedScrollOffset:((l=this.scrollState)==null?void 0:l.index)!=null&&this.scrollState.hasReachedTarget&&!Er(a,this.scrollState.lastTargetOffset)&&!Er(a,this.getScrollStateTarget(this.scrollState))&&(this._clampedAdjustment===null||Math.abs(a-this._clampedAdjustment.maxAtWrite)>=1.5)&&(this.scrollState=null),this._intendedScrollOffset=null,this._clampedAdjustment!==null&&Math.abs(a-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;const c=this.getScrollOffset();this.scrollDirection=i?c===a?this.scrollDirection:c<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=i,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const a=this.scrollElement,i=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},l=()=>{this._iosTouching=!1,!(!vi()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};a.addEventListener("touchstart",i,Jo),a.addEventListener("touchend",l,Jo),this.unsubs.push(()=>{a.removeEventListener("touchstart",i),a.removeEventListener("touchend",l),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const o=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,o&&this.scrollElement&&this.options.enabled){const[a,i,l,c]=o;a!==null&&!l&&(vi()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?c!==0&&(this._iosDeferredAdjustment+=c):((r=this.scrollState)==null?void 0:r.behavior)==="smooth"&&!Er(this.getScrollOffset()-c,this.scrollState.lastTargetOffset)||this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),l&&this.scrollToEnd({behavior:l})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled)return;const{target:n,maxAtWrite:r}=this._clampedAdjustment,s=this.getMaxScrollOffset();s>r+.5&&(this._clampedAdjustment=n>s+.5?{target:n,maxAtWrite:s}:null,this._scrollToOffset(n,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const n=this.getScrollOffset(),r=this.getMaxScrollOffset();if(n<0||n>r)return;if(this._iosDeferredAdjustment<0&&n>=r-1){this._iosDeferredAdjustment=0;return}const s=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(n,{adjustments:this.scrollAdjustments+=s,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=jr(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(n,r,s,o,a,i,l,c)=>(this.prevLanes!==void 0&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:n,paddingStart:r,scrollMargin:s,getItemKey:o,enabled:a,lanes:i,laneAssignmentMode:l,gap:c}),{key:!1}),this.isIndexInRange=n=>n>=0&&n<this.options.count,this.getMeasurements=jr(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:n,paddingStart:r,scrollMargin:s,getItemKey:o,enabled:a,lanes:i,laneAssignmentMode:l,gap:c},u)=>{var d;const f=this.itemSizeCache;if(!a)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const v of this.laneAssignments.keys())v>=n&&this.laneAssignments.delete(v);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(v=>{this.itemSizeCache.set(v.key,v.size)}));const p=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1),i===1){const v=n*2;let g=(d=this._singleLaneMeasurements)==null?void 0:d.flat;if(!g||g.length<v){const j=new Float64Array(v);g&&p>0&&j.set(g.subarray(0,p*2)),g=j}const C=p===0?new Array(n):this._singleLaneMeasurements.items.slice();let S;if(p===0)S=r+s;else{const j=p-1;S=g[j*2]+g[j*2+1]+c}for(let j=p;j<n;j++){const $=o(j);C[j]=$;const B=f.get($),U=typeof B=="number"?B:this.options.estimateSize(j);g[j*2]=S,g[j*2+1]=U,S+=U+c}this._singleLaneMeasurements={flat:g,items:C};const T=Kw(C,g);return this.measurementsCache=T,T}const m=this.measurementsCache.slice(0,p),h=new Array(i).fill(void 0),y=new Float64Array(i);let b=0;for(let v=0;v<p;v++){const g=m[v];g&&(h[g.lane]===void 0&&b++,h[g.lane]=v,y[g.lane]=g.end)}for(let v=p;v<n;v++){const g=o(v),C=this.laneAssignments.get(v);let S,T;const j=l==="estimate"||f.has(g);if(C!==void 0&&this.options.lanes>1){S=C;const V=h[S],J=V!==void 0?m[V]:void 0;T=J?J.end+c:r+s}else if(b===i){let V=0,J=y[0],Y=h[0];for(let K=1;K<i;K++){const be=y[K];(be<J||be===J&&h[K]<Y)&&(V=K,J=be,Y=h[K])}S=V,T=J+c,j&&this.laneAssignments.set(v,S)}else S=v%this.options.lanes,T=r+s,j&&this.laneAssignments.set(v,S);const $=f.get(g),B=typeof $=="number"?$:this.options.estimateSize(v),U=T+B;m[v]={index:v,start:T,size:B,end:U,key:g,lane:S},h[S]===void 0&&b++,h[S]=v,y[S]=U}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=jr(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,s,o)=>n.length===0||r===0?(this.range=null,null):(this.range=lx(n,r,s,o,o===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=jr(()=>{let n=null,r=null;const s=this.calculateRange();return s&&(n=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,s,o,a)=>o===null||a===null?[]:n({startIndex:o,endIndex:a,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,s=n.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(s!==void 0&&this.range){const o=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),a=Math.max(0,s-o),i=Math.min(this.options.count-1,s+o);return n>=a&&n<=i}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((a,i)=>{a.isConnected||(this.observer.unobserve(a),this.elementsCache.delete(i))});return}const r=this.indexFromElement(n);if(!this.isIndexInRange(r))return;const s=this.options.getItemKey(r),o=this.elementsCache.get(s);o!==n&&(o&&this.observer.unobserve(o),this.observer.observe(n),this.elementsCache.set(s,n)),n.isConnected&&(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var s,o,a;if(!this.isIndexInRange(n))return;let i,l,c;const u=(s=this._singleLaneMeasurements)==null?void 0:s.flat;if(this.options.lanes===1&&u!=null)c=this.options.getItemKey(n),l=u[n*2],i=u[n*2+1];else{const p=this.measurementsCache[n];if(!p)return;c=p.key,l=p.start,i=p.size}const d=this.itemSizeCache.get(c)??i,f=r-d;if(f!==0){const p=this.options.anchorTo==="end"&&((o=this.scrollState)==null?void 0:o.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,m=p?this.getTotalSize():0,h=this.getScrollOffset()+this.scrollAdjustments,y=this.itemSizeCache.has(c)?l+d<=h&&this.scrollDirection!=="backward":l<h,b=((a=this.scrollState)==null?void 0:a.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[n]??{index:n,key:c,start:l,size:i,end:l+i,lane:0},f,this):y);(this.pendingMin===null||n<this.pendingMin)&&(this.pendingMin=n),this.itemSizeCache.set(c,r),this.itemSizeCacheVersion++;let v=!1;p?v=this.applyScrollAdjustment(this.getTotalSize()-m):b&&(v=this.applyScrollAdjustment(f)),this.notify(v),this._retryClampedAdjustment()}},this.getVirtualItems=jr(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const s=[];for(let o=0,a=n.length;o<a;o++){const i=n[o],l=r[i];s.push(l)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{var r;const s=this.getMeasurements();if(s.length===0)return;const o=(r=this._singleLaneMeasurements)==null?void 0:r.flat,a=this.options.lanes===1&&o!=null,i=gm(0,s.length-1,a?l=>o[l*2]:l=>Xu(s[l]).start,n);return Xu(s[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(n=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=n,this.getOffsetForAlignment=(n,r,s=0)=>{if(!this.scrollElement)return 0;const o=this.getSize(),a=this.getScrollOffset();r==="auto"&&(r=n>=a+o?"end":"start"),r==="center"?n+=(s-o)/2:r==="end"&&(n-=o);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.getSize(),o=this.getScrollOffset(),a=this.measurementsCache[n];if(!a)return;if(r==="auto")if(a.end>=o+s-this.options.scrollPaddingEnd)r="end";else if(a.start<=o+this.options.scrollPaddingStart)r="start";else return[o,r];if(r==="end"&&n===this.options.count-1){const l=this.getMaxScrollOffset(),c=l-this.options.paddingEnd+this.options.scrollPaddingEnd;return[Math.max(Math.min(c,l),0),r]}const i=r==="end"?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,r,a.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:s="auto"}={})=>{this._iosDeferredAdjustment=0;const o=this.getOffsetForAlignment(n,r),a=this.now();this.scrollState={index:null,align:r,behavior:s,startedAt:a,lastTargetOffset:o,stableFrames:0,hasReachedTarget:!1},this._scrollToOffset(o,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:s="auto"}={})=>{this._iosDeferredAdjustment=0,n=Math.max(0,Math.min(n,this.options.count-1));const o=this.getOffsetForIndex(n,r);if(!o)return;const[a,i]=o,l=this.now();this.scrollState={index:n,align:i,behavior:s,startedAt:l,lastTargetOffset:a,stableFrames:0,hasReachedTarget:Er(a,this.getScrollOffset())},this._scrollToOffset(a,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const s=this.getScrollOffset()+n,o=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:o,lastTargetOffset:s,stableFrames:0,hasReachedTarget:!1},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:n="auto"}={})=>{if(this.options.count>0){this._iosDeferredAdjustment=0;const r=Math.max(this.getMaxScrollOffset(),0);this.scrollState={index:this.options.count-1,align:"end",behavior:n,toEnd:!0,startedAt:this.now(),lastTargetOffset:r,stableFrames:0,hasReachedTarget:Er(r,this.getScrollOffset())},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile();return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:n})},this.cancelScroll=()=>{this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null},this.getTotalSize=()=>{var n,r;const s=this.getMeasurements();let o;if(s.length===0)o=this.options.paddingStart;else if(this.options.lanes===1){const a=s.length-1,i=(n=this._singleLaneMeasurements)==null?void 0:n.flat;i!=null?o=i[a*2]+i[a*2+1]:o=((r=s[a])==null?void 0:r.end)??0}else{const a=Array(this.options.lanes).fill(null);let i=s.length-1;for(;i>=0&&a.some(l=>l===null);){const l=s[i];a[l.lane]===null&&(a[l.lane]=l.end),i--}o=Math.max(...a.filter(l=>l!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const n=[];if(this.itemSizeCache.size===0)return n;const r=this.getMeasurements();for(const s of r)s&&this.itemSizeCache.has(s.key)&&n.push({index:s.index,key:s.key,start:s.start,size:s.size,end:s.end,lane:s.lane});return n},this._scrollToOffset=(n,{adjustments:r,behavior:s})=>{this._intendedScrollOffset=n+(r??0),this.options.scrollToFn(n,{behavior:s,adjustments:r},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(t)}applyScrollAdjustment(t,n){if(t===0)return!1;if(vi()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=t,!1;{const r=this.getScrollOffset()+this.scrollAdjustments+t,s=this.scrollElement,o=s!==null&&("scrollHeight"in s||"document"in s)?this.getMaxScrollOffset():null;return this._clampedAdjustment=o!==null&&r>o+.5?{target:r,maxAtWrite:o}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=t,behavior:n}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}getScrollStateTarget(t){const n=t.toEnd?[Math.max(this.getMaxScrollOffset(),0)]:t.index!=null?this.getOffsetForIndex(t.index,t.align):void 0;return n?n[0]:t.lastTargetOffset}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const t=this.getScrollStateTarget(this.scrollState),n=this.scrollState.index==null?1:this.options.useAnimationFrameWithResizeObserver?3:2,r=t!==this.scrollState.lastTargetOffset;if(!r&&Er(t,this.getScrollOffset())){if(this.scrollState.hasReachedTarget=!0,this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,r){const s=this.getSize()||600,o=Math.abs(t-this.getScrollOffset()),a=this.scrollState.behavior==="smooth"&&o>s;this.scrollState.lastTargetOffset=t,a?this.scrollState.hasReachedTarget=!1:this.scrollState.behavior="auto",this._scrollToOffset(t,{adjustments:void 0,behavior:a?"smooth":"auto"})}this.scheduleScrollReconcile()}}const gm=(e,t,n,r)=>{for(;e<=t;){const s=(e+t)/2|0,o=n(s);if(o<r)e=s+1;else if(o>r)t=s-1;else return s}return e>0?e-1:0};function ix(e,t,n){let r=0;for(;r<=t;){const s=(r+t)/2|0,o=e[s*2];if(o<n)r=s+1;else if(o>n)t=s-1;else return s}return r>0?r-1:0}function lx(e,t,n,r,s){const o=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:o};if(r===1&&s!==null){const l=ix(s,o,n);let c=l;const u=n+t;for(;c<o&&s[c*2]+s[c*2+1]<u;)c++;return{startIndex:l,endIndex:c}}let a=gm(0,o,l=>e[l].start,n),i=a;if(r===1)for(;i<o&&e[i].end<n+t;)i++;else if(r>1){const l=Array(r).fill(0);for(;i<o&&l.some(u=>u<n+t);){const u=e[i];l[u.lane]=u.end,i++}const c=Array(r).fill(n+t);for(;a>=0&&c.some(u=>u>=n);){const u=e[a];c[u.lane]=u.start,a--}a=Math.max(0,a-a%r),i=Math.min(o,i+(r-1-i%r))}return{startIndex:a,endIndex:i}}function cx(e){const t=new ax(_(e)),n=en(t),r=t._didMount();return Ie(()=>_(e).getScrollElement(),s=>{s&&t._willUpdate()},{immediate:!0}),Ie(()=>_(e),s=>{t.setOptions({...s,onChange:(o,a)=>{var i;zi(n),(i=s.onChange)==null||i.call(s,o,a)}}),t._willUpdate(),zi(n)},{immediate:!0}),Ur(r),n}function vc(e){return cx(M(()=>({observeElementRect:Jw,observeElementOffset:tx,scrollToFn:sx,..._(e)})))}const ux=fe({__name:"OpBadge",props:{op:{}},setup(e){const t=e,n=M(()=>{switch((t.op??"").toUpperCase()){case"PUT":return"bg-blue-500/15 text-blue-600 dark:text-blue-400";case"PATCH":return"bg-amber-500/15 text-amber-600 dark:text-amber-400";case"DELETE":return"bg-red-500/15 text-red-600 dark:text-red-400";default:return"bg-muted text-muted-foreground"}});return(r,s)=>(k(),I("span",{class:je(["inline-block rounded px-1 py-0.5 text-center font-mono text-[10px] font-medium uppercase",n.value])},L(e.op??"—"),3))}}),dx={class:"w-12 shrink-0 truncate tabular-nums text-muted-foreground/50"},px={class:"w-20 shrink-0 truncate font-mono"},fx=["title"],mx=fe({__name:"UploadQueueList",props:{ops:{}},setup(e){const t=e,n=H(null),r=vc(M(()=>({count:t.ops.length,getScrollElement:()=>n.value,estimateSize:()=>26,overscan:12}))),s=M(()=>r.value.getVirtualItems()),o=M(()=>r.value.getTotalSize());return(a,i)=>(k(),I("div",{ref_key:"parentRef",ref:n,class:"max-h-64 overflow-auto"},[x("div",{class:"relative w-full",style:et({height:o.value+"px"})},[(k(!0),I(xe,null,Ve(s.value,l=>(k(),I("div",{key:l.index,class:"absolute left-0 top-0 flex w-full items-center gap-2 border-b px-3 text-xs",style:et({height:l.size+"px",transform:`translateY(${l.start}px)`})},[x("span",dx,"#"+L(e.ops[l.index].id),1),R(ux,{op:e.ops[l.index].op,class:"w-14 shrink-0"},null,8,["op"]),x("span",px,L(e.ops[l.index].tbl??"unknown"),1),x("span",{class:"min-w-0 flex-1 truncate font-mono text-muted-foreground/80",title:e.ops[l.index].data??void 0},L(e.ops[l.index].data??""),9,fx)],4))),128))],4)],512))}}),hx={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function gx(e,t){return k(),I("svg",hx,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M28 6v20H4V6zm0-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2"},null,-1),x("path",{fill:"currentColor",d:"M6 10h7v2H6zm0 4h4v2H6zm17 4h-6a3 3 0 0 0-3 3v2h2v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2h2v-2a3 3 0 0 0-3-3m-3-1a4 4 0 1 0-4-4a4 4 0 0 0 4 4m0-6a2 2 0 1 1-2 2a2 2 0 0 1 2-2"},null,-1)])])}const ll=ge({name:"carbon-identification",render:gx}),bx={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function yx(e,t){return k(),I("svg",bx,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M16 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7m10 28h-2v-5a5 5 0 0 0-5-5h-6a5 5 0 0 0-5 5v5H6v-5a7 7 0 0 1 7-7h6a7 7 0 0 1 7 7Z"},null,-1)])])}const bm=ge({name:"carbon-user",render:yx}),vx={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function _x(e,t){return k(),I("svg",vx,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M29.25 6.76a6 6 0 0 0-8.5 0l1.42 1.42a4 4 0 1 1 5.67 5.67l-8 8a4 4 0 1 1-5.67-5.66l1.41-1.42l-1.41-1.42l-1.42 1.42a6 6 0 0 0 0 8.5A6 6 0 0 0 17 25a6 6 0 0 0 4.27-1.76l8-8a6 6 0 0 0-.02-8.48"},null,-1),x("path",{fill:"currentColor",d:"M4.19 24.82a4 4 0 0 1 0-5.67l8-8a4 4 0 0 1 5.67 0A3.94 3.94 0 0 1 19 14a4 4 0 0 1-1.17 2.85L15.71 19l1.42 1.42l2.12-2.12a6 6 0 0 0-8.51-8.51l-8 8a6 6 0 0 0 0 8.51A6 6 0 0 0 7 28a6.07 6.07 0 0 0 4.28-1.76l-1.42-1.42a4 4 0 0 1-5.67 0"},null,-1)])])}const ym=ge({name:"carbon-link",render:_x}),wx={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function xx(e,t){return k(),I("svg",wx,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M23 16.01a7 7 0 0 0-4.18 1.39l-4.22-4.22A6.86 6.86 0 0 0 16 9.01a7 7 0 1 0-2.81 5.59l4.21 4.22a7 7 0 1 0 5.6-2.81m-19-7a5 5 0 1 1 5 5a5 5 0 0 1-5-5"},null,-1)])])}const vm=ge({name:"carbon-connect",render:xx}),kx={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function Cx(e,t){return k(),I("svg",kx,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8Zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8Z"},null,-1)])])}const Qo=ge({name:"carbon-renew",render:Cx}),$x={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function Sx(e,t){return k(),I("svg",$x,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M26 13a8.9 8.9 0 0 1-2.525 6.234l1.413 1.413A10.98 10.98 0 0 0 23.601 4.2l-1.202 1.6A8.93 8.93 0 0 1 26 13"},null,-1),x("path",{fill:"currentColor",d:"M21 13a5 5 0 0 1-.902 2.856l1.427 1.428a6.983 6.983 0 0 0-.858-9.501l-1.334 1.49A5 5 0 0 1 21 13m9 15.586L3.414 2L2 3.414l3.71 3.71A10.98 10.98 0 0 0 8.4 21.801l1.2-1.6A8.97 8.97 0 0 1 7.172 8.585l2.197 2.197a6.97 6.97 0 0 0 1.964 7.435l1.334-1.49A5 5 0 0 1 11 13a5 5 0 0 1 .04-.546l3.96 3.96V30h2V18.414L28.586 30Z"},null,-1)])])}const cl=ge({name:"carbon-connection-signal-off",render:Sx}),jx={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function Ex(e,t){return k(),I("svg",jx,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m27 25.586l-2-2V21h-2v3.414L25.586 27z"},null,-1),x("path",{fill:"currentColor",d:"M24 31a7 7 0 1 1 7-7a7.01 7.01 0 0 1-7 7m0-12a5 5 0 1 0 5 5a5.006 5.006 0 0 0-5-5m-8 9A12.013 12.013 0 0 1 4 16H2a14.016 14.016 0 0 0 14 14ZM12 8H7.078A11.984 11.984 0 0 1 28 16h2A13.978 13.978 0 0 0 6 6.234V2H4v8h8Z"},null,-1)])])}const _m=ge({name:"carbon-update-now",render:Ex}),Ax={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function Tx(e,t){return k(),I("svg",Ax,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M16 24a1 1 0 0 1-.474-.12l-13-7l.948-1.76L16 21.864l12.526-6.744l.948 1.76l-13 7A1 1 0 0 1 16 24"},null,-1),x("path",{fill:"currentColor",d:"M16 30a1 1 0 0 1-.474-.12l-13-7l.948-1.76L16 27.864l12.526-6.744l.948 1.76l-13 7A1 1 0 0 1 16 30m0-12a1 1 0 0 1-.474-.12l-13-7a1 1 0 0 1 0-1.76l13-7a1 1 0 0 1 .948 0l13 7a1 1 0 0 1 0 1.76l-13 7A1 1 0 0 1 16 18M5.11 10L16 15.864L26.89 10L16 4.136Z"},null,-1)])])}const Ix=ge({name:"carbon-layers",render:Tx}),Ox={key:0,class:"space-y-2 text-xs text-muted-foreground"},Mx={key:0,class:"flex items-start gap-1.5 text-destructive"},Rx={class:"break-words"},Px={key:1,class:"space-y-3"},Lx={class:"rounded-lg border bg-card"},Bx={class:"flex items-center justify-between border-b px-3 py-1.5 text-xs"},Nx={class:"inline-flex items-center gap-1.5 font-medium text-muted-foreground"},Dx={class:"inline-flex items-center gap-2"},Fx={class:"tabular-nums text-foreground"},zx={key:0,class:"hidden @sm:inline"},qx={class:"space-y-2 px-3 py-2"},Hx={class:"h-1.5 w-full overflow-hidden rounded-full bg-muted"},Vx={key:0,class:"flex items-start gap-1.5 text-xs text-destructive"},Gx={class:"break-words"},Ux={key:1,class:"flex items-start gap-1.5 text-xs text-warning"},Wx={class:"break-words"},Kx={class:"rounded-lg border bg-card"},Zx={class:"flex items-center gap-1.5 border-b px-3 py-1.5 text-xs font-medium text-muted-foreground"},Yx={key:0,class:"flex items-start gap-1.5 border-b px-3 py-2 text-xs text-destructive"},Xx={class:"break-words"},Jx={class:"divide-y"},Qx={class:"rounded-lg border bg-card"},ek={class:"flex items-center justify-between border-b px-3 py-1.5 text-xs"},tk={class:"inline-flex items-center gap-1.5 font-medium text-muted-foreground"},nk={class:"tabular-nums text-foreground"},rk={key:0,class:"flex items-start gap-1.5 border-b px-3 py-2 text-xs text-destructive"},sk={class:"break-words"},ok={key:1,class:"px-3 py-2 text-xs text-muted-foreground"},ak={class:"rounded-lg border bg-card"},ik={class:"flex items-center gap-1.5 border-b px-3 py-1.5 text-xs font-medium text-muted-foreground"},lk={class:"divide-y text-xs"},ck={class:"text-muted-foreground/60"},uk={key:0,class:"inline-flex items-center gap-2"},dk={class:"tabular-nums text-muted-foreground"},pk={key:1,class:"text-muted-foreground/40"},fk={key:0,class:"flex flex-wrap gap-2"},mk=fe({__name:"SyncStatusTab",setup(e){const{client:t,connected:n,status:r,uploadQueue:s}=En(),{syncing:o,actionError:a,syncNow:i,reconnect:l,disconnect:c}=fm(),u=hc(),d=M(()=>!u.value.includes("reconnect")||!u.value.includes("disconnect")),f=H(null),p=H([]),m=H(null);async function h(){try{f.value=await t.getInfo(),m.value=null}catch(U){m.value=U instanceof Error?U.message:String(U)}}async function y(){try{const U=await t.runQuery({sql:"SELECT id, json_extract(data, '$.op') AS op, json_extract(data, '$.type') AS tbl, data FROM ps_crud ORDER BY id"});p.value=hm(U)}catch{p.value=[]}}Ie(n,U=>{U&&(h(),y())},{immediate:!0}),Ie(()=>s.value?.count,()=>n.value&&y());const b=M(()=>r.value?.downloadProgress??null),v=M(()=>b.value?al(b.value):r.value?.hasSynced?1:0),g=M(()=>mm(f.value?.token)),C=M(()=>s.value?.count??0),S=M(()=>r.value?.downloadError??null),T=M(()=>r.value?.uploadError??null),j=[0,1,2,3],$={0:"(highest)",3:"(default)"},B=M(()=>j.map(U=>({level:U,entry:r.value?.priorities.find(V=>V.priority===U)??null})));return(U,V)=>_(r)?(k(),I("div",Px,[x("section",Lx,[x("header",Bx,[x("span",Nx,[R(_(_m),{class:"size-3.5"}),V[3]||(V[3]=ce(" Sync progress",-1))]),x("span",Dx,[x("span",Fx,[b.value?(k(),I("span",zx,L(_(st)(b.value.downloadedOperations))+" / "+L(_(st)(b.value.totalOperations))+" ops ",1)):se("",!0),ce(" "+L(Math.round(v.value*100))+"% ",1)]),_(u).includes("requestCheckpoint")?se("",!0):(k(),ae(bn,{key:0,size:"sm",variant:"outline",disabled:_(o)||!_(r).connected,onClick:_(i)},{default:re(()=>[R(_(Qo),{class:je(["size-3.5",_(o)&&"animate-spin"])},null,8,["class"]),ce(" "+L(_(o)?"Syncing…":"Sync now"),1)]),_:1},8,["disabled","onClick"]))])]),x("div",qx,[x("div",Hx,[x("div",{class:je(["h-full rounded-full transition-all",_(r).downloading||_(o)?"bg-primary":"bg-success"]),style:et({width:v.value*100+"%"})},null,6)]),S.value?(k(),I("div",Vx,[R(_(Ln),{class:"mt-0.5 size-3.5 shrink-0"}),x("span",Gx,L(S.value),1)])):se("",!0),_(a)?(k(),I("div",Ux,[R(_(Ln),{class:"mt-0.5 size-3.5 shrink-0"}),x("span",Wx,[ce(L(_(a).label)+" failed: "+L(_(a).message)+" ",1),_(a).label==="Sync now"?(k(),I(xe,{key:0},[V[4]||(V[4]=ce(" — requires connecting with ",-1)),V[5]||(V[5]=x("span",{class:"font-mono"},"checkpointMode: 'requests'",-1)),V[6]||(V[6]=ce(". ",-1))],64)):se("",!0)])])):se("",!0)])]),x("section",Kx,[x("header",Zx,[R(_(ll),{class:"size-3.5"}),V[7]||(V[7]=ce(" Connection ",-1))]),m.value?(k(),I("div",Yx,[R(_(Ln),{class:"mt-0.5 size-3.5 shrink-0"}),x("span",Xx,L(m.value),1)])):se("",!0),x("div",Jx,[R(St,{icon:_(ll),label:"Client ID",value:f.value?.clientId,mono:"",copyable:""},null,8,["icon","value"]),R(St,{icon:_(bm),label:"User ID",value:g.value,mono:"",copyable:""},null,8,["icon","value"]),R(St,{icon:_(ym),label:"Endpoint",value:f.value?.endpoint,mono:"",copyable:""},null,8,["icon","value"]),R(St,{icon:_(vm),label:"Method",value:f.value?.connectionMethod},null,8,["icon","value"]),R(St,{icon:_(bc),label:"Last synced"},{default:re(()=>[x("span",{class:je(_(r).hasSynced?"tabular-nums":"text-warning")},L(_(r).hasSynced?_(Yo)(_(r).lastSyncedAt):"Never synced"),3)]),_:1},8,["icon"])])]),x("section",Qx,[x("header",ek,[x("span",tk,[R(_(um),{class:"size-3.5"}),V[8]||(V[8]=ce(" Upload queue",-1))]),x("span",nk,L(_(st)(C.value))+" to upload · "+L(_(xs)(_(s)?.size??null)),1)]),T.value?(k(),I("div",rk,[R(_(Ln),{class:"mt-0.5 size-3.5 shrink-0"}),x("span",sk,L(T.value),1)])):se("",!0),p.value.length?(k(),ae(mx,{key:2,ops:p.value},null,8,["ops"])):(k(),I("div",ok,"No local changes pending."))]),x("section",ak,[x("header",ik,[R(_(Ix),{class:"size-3.5"}),V[9]||(V[9]=ce(" Priority sync ",-1))]),x("ul",lk,[(k(!0),I(xe,null,Ve(B.value,J=>(k(),I("li",{key:J.level,class:"flex items-center justify-between px-3 py-1.5"},[x("span",null,[ce("Priority "+L(J.level)+" ",1),x("span",ck,L($[J.level]),1)]),J.entry?(k(),I("span",uk,[x("span",{class:je(J.entry.hasSynced?"text-success":"text-muted-foreground")},L(J.entry.hasSynced?"synced":"pending"),3),x("span",dk,L(_(Yo)(J.entry.lastSyncedAt)),1)])):(k(),I("span",pk,"N/A"))]))),128))])]),d.value?(k(),I("div",fk,[_(u).includes("reconnect")?se("",!0):(k(),ae(bn,{key:0,size:"sm",variant:"outline",onClick:V[0]||(V[0]=J=>_(l)())},{default:re(()=>[R(_(Qo),{class:"size-3.5"}),V[10]||(V[10]=ce(" Reconnect",-1))]),_:1})),_(u).includes("disconnect")?se("",!0):(k(),ae(bn,{key:1,size:"sm",variant:"outline",onClick:V[1]||(V[1]=J=>_(c)())},{default:re(()=>[R(_(cl),{class:"size-3.5"}),V[11]||(V[11]=ce(" Disconnect",-1))]),_:1}))])):se("",!0)])):(k(),I("div",Ox,[V[2]||(V[2]=x("div",null,"Waiting for status…",-1)),m.value?(k(),I("div",Mx,[R(_(Ln),{class:"mt-0.5 size-3.5 shrink-0"}),x("span",Rx,L(m.value),1)])):se("",!0)]))}});function Wn(e){return Array.isArray?Array.isArray(e):xm(e)==="[object Array]"}function hk(e){if(typeof e=="string")return e;if(typeof e=="bigint")return e.toString();const t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ul(e){return e==null?"":hk(e)}function mt(e){return typeof e=="string"}function $o(e){return typeof e=="number"}function gk(e){return e===!0||e===!1||bk(e)&&xm(e)=="[object Boolean]"}function wm(e){return typeof e=="object"}function bk(e){return wm(e)&&e!==null}function jt(e){return e!=null}function go(e){return!e.trim().length}function xm(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const yk="Incorrect 'index' type",dl="Invalid doc index: must be a non-negative integer within the bounds of the docs array",vk=e=>`Invalid value for key ${e}`,_k=e=>`Pattern length exceeds max of ${e}.`,wk=e=>`Missing ${e} property in key`,xk=e=>`Property 'weight' in key '${e}' must be a positive integer`,kk="Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.",Qu=Object.prototype.hasOwnProperty;var Ck=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(n=>{const r=km(n);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(n=>{n.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function km(e){let t=null,n=null,r=null,s=1,o=null;if(mt(e)||Wn(e))r=e,t=ed(e),n=So(e);else{if(!Qu.call(e,"name"))throw new Error(wk("name"));const a=e.name;if(r=a,Qu.call(e,"weight")&&e.weight!==void 0&&(s=e.weight,s<=0))throw new Error(xk(So(a)));t=ed(a),n=So(a),o=e.getFn??null}return{path:t,id:n,weight:s,src:r,getFn:o}}function ed(e){return Wn(e)?e:e.split(".")}function So(e){return Wn(e)?e.join("."):e}function $k(e,t){const n=[];let r=!1;const s=(o,a,i,l)=>{if(jt(o))if(!a[i])n.push(l!==void 0?{v:o,i:l}:o);else{const c=o[a[i]];if(!jt(c))return;if(i===a.length-1&&(mt(c)||$o(c)||gk(c)||typeof c=="bigint"))n.push(l!==void 0?{v:ul(c),i:l}:ul(c));else if(Wn(c)){r=!0;for(let u=0,d=c.length;u<d;u+=1)s(c[u],a,i+1,u)}else a.length&&s(c,a,i+1,l)}};return s(e,mt(t)?t.split("."):t,0),r?n:n[0]}const Sk={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},jk={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Ek={location:0,threshold:.6,distance:100},Ak={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:$k,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},ye=Object.freeze({...jk,...Sk,...Ek,...Ak});function Tk(e){return e>=9&&e<=13||e===32||e===160}function Ik(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(s){let o=0,a=!1;for(let l=0;l<s.length;l++)Tk(s.charCodeAt(l))?a=!1:a||(o++,a=!0);if(o===0&&(o=1),n.has(o))return n.get(o);const i=Math.round(r/Math.pow(o,.5*e))/r;return n.set(o,i),i},clear(){n.clear()}}}var _c=class{constructor({getFn:e=ye.getFn,fieldNormWeight:t=ye.fieldNormWeight}={}){this.norm=Ik(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((t,n)=>{this._keysMap[t.id]=n})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(mt(this.docs[0]))for(let n=0;n<e;n++){const r=this._createStringRecord(this.docs[n],n);r&&(this.records[t++]=r)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(dl);if(mt(e)){const r=this._createStringRecord(e,t);return r&&this.records.push(r),r}const n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(dl);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const r of e)Number.isInteger(r)&&r>=0&&t.add(r);if(t.size===0)return;this.records=this.records.filter(r=>!t.has(r.i));const n=Array.from(t).sort((r,s)=>r-s);for(const r of this.records){let s=0,o=n.length;for(;s<o;){const a=s+o>>>1;n[a]<r.i?s=a+1:o=a}r.i-=s}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!jt(e)||go(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const n={i:t,$:{}};for(let r=0,s=this.keys.length;r<s;r++){const o=this.keys[r],a=o.getFn?o.getFn(e):this.getFn(e,o.path);if(jt(a)){if(Wn(a)){const i=[];for(let l=0,c=a.length;l<c;l+=1){const u=a[l];if(jt(u)){if(mt(u)){if(!go(u)){const d={v:u,i:l,n:this.norm.get(u)};i.push(d)}}else if(jt(u.v)){const d=mt(u.v)?u.v:ul(u.v);if(!go(d)){const f={v:d,i:u.i,n:this.norm.get(d)};i.push(f)}}}}n.$[r]=i}else if(mt(a)&&!go(a)){const i={v:a,n:this.norm.get(a)};n.$[r]=i}}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function Cm(e,t,{getFn:n=ye.getFn,fieldNormWeight:r=ye.fieldNormWeight}={}){const s=new _c({getFn:n,fieldNormWeight:r});return s.setKeys(e.map(km)),s.setSources(t),s.create(),s}function Ok(e,{getFn:t=ye.getFn,fieldNormWeight:n=ye.fieldNormWeight}={}){const{keys:r,records:s}=e,o=new _c({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(s),o}function Mk(e=[],t=ye.minMatchCharLength){const n=[];let r=-1,s=-1,o=0;for(let a=e.length;o<a;o+=1){const i=e[o];i&&r===-1?r=o:!i&&r!==-1&&(s=o-1,s-r+1>=t&&n.push([r,s]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}function Rk(e,t,n,{location:r=ye.location,distance:s=ye.distance,threshold:o=ye.threshold,findAllMatches:a=ye.findAllMatches,minMatchCharLength:i=ye.minMatchCharLength,includeMatches:l=ye.includeMatches,ignoreLocation:c=ye.ignoreLocation}={}){if(t.length>32)throw new Error(_k(32));const u=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let p=o,m=f;const h=(B,U)=>{const V=B/u;if(c)return V;const J=Math.abs(f-U);return s?V+J/s:J?1:V},y=i>1||l,b=y?Array(d):[];let v;for(;(v=e.indexOf(t,m))>-1;){const B=h(0,v);if(p=Math.min(B,p),m=v+u,y){let U=0;for(;U<u;)b[v+U]=1,U+=1}}m=-1;let g=[],C=1,S=0,T=u+d;const j=1<<u-1;for(let B=0;B<u;B+=1){let U=0,V=T;for(;U<V;)h(B,f+V)<=p?U=V:T=V,V=Math.floor((T-U)/2+U);T=V;let J=Math.max(1,f-V+1);const Y=a?d:Math.min(f+V,d)+u,K=Array(Y+2);K[Y+1]=(1<<B)-1;for(let be=Y;be>=J;be-=1){const ie=be-1,de=n[e[ie]];if(K[be]=(K[be+1]<<1|1)&de,B&&(K[be]|=(g[be+1]|g[be])<<1|1|g[be+1]),K[be]&j&&(C=h(B,ie),C<=p)){if(p=C,m=ie,S=B,m<=f)break;J=Math.max(1,2*f-m)}}if(h(B+1,f)>p)break;g=K}if(y&&m>=0){const B=Math.min(d-1,m+u-1+S);for(let U=m;U<=B;U+=1)n[e[U]]&&(b[U]=1)}const $={isMatch:m>=0,score:Math.max(.001,C)};if(y){const B=Mk(b,i);B.length?l&&($.indices=B):$.isMatch=!1}return $}function Pk(e){const t={};for(let n=0,r=e.length;n<r;n+=1){const s=e.charAt(n);t[s]=(t[s]||0)|1<<r-n-1}return t}function wc(e){if(e.length<=1)return e;e.sort((n,r)=>n[0]-r[0]||n[1]-r[1]);const t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){const s=t[t.length-1],o=e[n];o[0]<=s[1]+1?s[1]=Math.max(s[1],o[1]):t.push(o)}return t}const $m={ł:"l",Ł:"L",đ:"d",Đ:"D",ø:"o",Ø:"O",ħ:"h",Ħ:"H",ŧ:"t",Ŧ:"T",ı:"i",ß:"ss"},Lk=new RegExp("["+Object.keys($m).join("")+"]","g"),Ls=typeof String.prototype.normalize=="function"?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(Lk,t=>$m[t]):e=>e;var xc=class{constructor(e,{location:t=ye.location,threshold:n=ye.threshold,distance:r=ye.distance,includeMatches:s=ye.includeMatches,findAllMatches:o=ye.findAllMatches,minMatchCharLength:a=ye.minMatchCharLength,isCaseSensitive:i=ye.isCaseSensitive,ignoreDiacritics:l=ye.ignoreDiacritics,ignoreLocation:c=ye.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:s,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:i,ignoreDiacritics:l,ignoreLocation:c},e=i?e:e.toLowerCase(),e=l?Ls(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(f,p)=>{this.chunks.push({pattern:f,alphabet:Pk(f),startIndex:p})},d=this.pattern.length;if(d>32){let f=0;const p=d%32,m=d-p;for(;f<m;)u(this.pattern.substr(f,32),f),f+=32;if(p){const h=d-32;u(this.pattern.substr(h),h)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?Ls(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};const m={isMatch:!0,score:0};return r&&(m.indices=[[0,e.length-1]]),m}const{location:s,distance:o,threshold:a,findAllMatches:i,minMatchCharLength:l,ignoreLocation:c}=this.options,u=[];let d=0,f=!1;this.chunks.forEach(({pattern:m,alphabet:h,startIndex:y})=>{const{isMatch:b,score:v,indices:g}=Rk(e,m,h,{location:s+y,distance:o,threshold:a,findAllMatches:i,minMatchCharLength:l,includeMatches:r,ignoreLocation:c});b&&(f=!0),d+=v,b&&g&&u.push(...g)});const p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=wc(u)),p}};const Bk=new Set(["fuzzy","include"]);function Nk(e){return e.startsWith("inverse")}const pl=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const n=t===e;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let n=0,r;const s=[],o=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+o,s.push([r,n-1]);const a=!!s.length;return{isMatch:a,score:a?0:1,indices:s}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const n=t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const n=!t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const n=!t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const n=t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const n=t.indexOf(e)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const n=new xc(e,{location:t.location??ye.location,threshold:t.threshold??ye.threshold,distance:t.distance??ye.distance,includeMatches:t.includeMatches??ye.includeMatches,findAllMatches:t.findAllMatches??ye.findAllMatches,minMatchCharLength:t.minMatchCharLength??ye.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??ye.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??ye.ignoreDiacritics,ignoreLocation:t.ignoreLocation??ye.ignoreLocation});return{type:"fuzzy",search(r){return n.searchIn(r)}}}}],td=pl.length,Dk="\0",Fk="|";function zk(e){const t=[],n=e.length;let r=0;for(;r<n;){for(;r<n&&e[r]===" ";)r++;if(r>=n)break;let s=r;for(;s<n&&e[s]!==" "&&e[s]!=='"';)s++;if(s<n&&e[s]==='"'){for(s++;s<n;){if(e[s]==='"'){const o=s+1;if(o>=n||e[o]===" "){s++;break}if(e[o]==="$"&&(o+1>=n||e[o+1]===" ")){s+=2;break}}s++}t.push(e.substring(r,s)),r=s}else{for(;s<n&&e[s]!==" ";)s++;t.push(e.substring(r,s)),r=s}}return t}function nd(e,t){const n=e.match(t);return n?n[1]:null}function qk(e,t={}){return e.replace(/\\\|/g,Dk).split(Fk).map(n=>{const r=zk(n.replace(/\u0000/g,"|").trim()).filter(o=>o&&!!o.trim()),s=[];for(let o=0,a=r.length;o<a;o+=1){const i=r[o];let l=!1,c=-1;for(;!l&&++c<td;){const u=pl[c],d=nd(i,u.multiRegex);d&&(s.push(u.create(d,t)),l=!0)}if(!l)for(c=-1;++c<td;){const u=pl[c],d=nd(i,u.singleRegex);if(d){s.push(u.create(d,t));break}}}return s})}var Hk=class{constructor(e,{isCaseSensitive:t=ye.isCaseSensitive,ignoreDiacritics:n=ye.ignoreDiacritics,includeMatches:r=ye.includeMatches,minMatchCharLength:s=ye.minMatchCharLength,ignoreLocation:o=ye.ignoreLocation,findAllMatches:a=ye.findAllMatches,location:i=ye.location,threshold:l=ye.threshold,distance:c=ye.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:s,findAllMatches:a,ignoreLocation:o,location:i,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=n?Ls(e):e,this.pattern=e,this.query=qk(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:s}=this.options;e=r?e:e.toLowerCase(),e=s?Ls(e):e;let o=0;const a=[];let i=0,l=!1;for(let c=0,u=t.length;c<u;c+=1){const d=t[c];a.length=0,o=0,l=!1;for(let f=0,p=d.length;f<p;f+=1){const m=d[f],{isMatch:h,indices:y,score:b}=m.search(e);if(h)o+=1,i+=b,Nk(m.type)&&(l=!0),n&&(Bk.has(m.type)?a.push(...y):a.push(y));else{i=0,o=0,a.length=0,l=!1;break}}if(o){const f={isMatch:!0,score:i/o};return l&&(f.hasInverse=!0),n&&(f.indices=wc(a)),f}}return{isMatch:!1,score:1}}};const fl=[];function kc(...e){fl.push(...e)}function ea(e,t){for(let n=0,r=fl.length;n<r;n+=1){const s=fl[n];if(s.condition(e,t))return new s(e,t)}return new xc(e,t)}const ta={AND:"$and",OR:"$or"},ml={PATH:"$path",PATTERN:"$val"},hl=e=>!!(e[ta.AND]||e[ta.OR]),Vk=e=>!!e[ml.PATH],Gk=e=>!Wn(e)&&wm(e)&&!hl(e),rd=e=>({[ta.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Sm(e,t,{auto:n=!0}={}){const r=s=>{if(mt(s)){const l={keyId:null,pattern:s};return n&&(l.searcher=ea(s,t)),l}const o=Object.keys(s),a=Vk(s);if(!a&&o.length>1&&!hl(s))return r(rd(s));if(Gk(s)){const l=a?s[ml.PATH]:o[0],c=a?s[ml.PATTERN]:s[l];if(!mt(c))throw new Error(vk(l));const u={keyId:So(l),pattern:c};return n&&(u.searcher=ea(c,t)),u}const i={children:[],operator:o[0]};return o.forEach(l=>{const c=s[l];Wn(c)&&c.forEach(u=>{i.children.push(r(u))})}),i};return hl(e)||(e=rd(e)),r(e)}function gl(e,{ignoreFieldNorm:t=ye.ignoreFieldNorm}){let n=1;return e.forEach(({key:r,norm:s,score:o})=>{const a=r?r.weight:null;n*=Math.pow(o===0&&a?Number.EPSILON:o,(a||1)*(t?1:s))}),n}function Uk(e,{ignoreFieldNorm:t=ye.ignoreFieldNorm}){e.forEach(n=>{n.score=gl(n.matches,{ignoreFieldNorm:t})})}var Wk=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){const t=this.heap;for(;e>0;){const n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;const r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){const t=this.heap,n=t.length;let r=e;do{e=r;const s=2*e+1,o=2*e+2;if(s<n&&this.comparator(t[s],t[r])>0&&(r=s),o<n&&this.comparator(t[o],t[r])>0&&(r=o),r!==e){const a=t[e];t[e]=t[r],t[r]=a}}while(r!==e)}};function Kk(e){const t=[];return e.matches.forEach(n=>{if(!jt(n.indices)||!n.indices.length)return;const r={indices:n.indices,value:n.value};n.key&&(r.key=n.key.id),n.idx>-1&&(r.refIndex=n.idx),t.push(r)}),t}function Zk(e,t,{includeMatches:n=ye.includeMatches,includeScore:r=ye.includeScore}={}){return e.map(s=>{const{idx:o}=s,a={item:t[o],refIndex:o};return n&&(a.matches=Kk(s)),r&&(a.score=s.score),a})}const Yk=/[\p{L}\p{M}\p{N}_]+/gu,sd=new WeakSet;function Xk(e){sd.has(e)||(sd.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function Jk(e){if(typeof e=="function"){let t=!1;return n=>{const r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(s=>typeof s!="string")))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?"array containing non-strings":typeof r}.`);return r}}return e instanceof RegExp?(e.global||Xk(e),t=>t.match(e)||[]):t=>t.match(Yk)||[]}function bl({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){const r=Jk(n);return{tokenize(s){return e||(s=s.toLowerCase()),t&&(s=Ls(s)),r(s)}}}var Qk=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=bl({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const n=this.analyzer.tokenize(e),{df:r,fieldCount:s}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const o of n){this.termSearchers.push(new xc(o,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const a=r.get(o)||0,i=Math.log(1+(s-a+.5)/(a+.5));this.idfWeights.push(i)}this.combineAll=t.tokenMatch==="all",this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let n=0,r=0,s=0,o=0;const a=this.combineAll&&!this.useMask?new Set:null;for(let c=0;c<this.termSearchers.length;c++){const u=this.termSearchers[c].searchIn(e),d=this.idfWeights[c];r+=d,u.isMatch&&(s++,n+=d*(1-u.score),u.indices&&t.push(...u.indices),this.combineAll&&(this.useMask?o|=1<<c:a.add(c)))}if(s===0)return{isMatch:!1,score:1};const i=r>0?1-n/r:0,l={isMatch:!0,score:Math.max(.001,i)};return this.options.includeMatches&&t.length&&(l.indices=wc(t)),this.combineAll&&(this.useMask?l.matchedMask=o:l.matchedTerms=a,l.termCount=this.numTerms),l}};function _i(e,t,n,r){const s=r.tokenize(t);if(!s.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);const o=new Set(s);let a=e.docTermFieldHits.get(n);a||(a=new Map,e.docTermFieldHits.set(n,a));for(const i of o)a.set(i,(a.get(i)||0)+1),e.df.set(i,(e.df.get(i)||0)+1)}function jm(e,t,n,r){const{i:s,v:o,$:a}=t;if(o!==void 0){_i(e,o,s,r);return}if(a)for(let i=0;i<n;i++){const l=a[i];if(l)if(Array.isArray(l))for(const c of l)_i(e,c.v,s,r);else _i(e,l.v,s,r)}}function e2(e,t,n){const r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const s of e)jm(r,s,t,n);return r}function t2(e,t,n,r){jm(e,t,n,r)}function n2(e,t){const n=e.docFieldCount.get(t);if(n===void 0)return;e.fieldCount-=n,e.docFieldCount.delete(t);const r=e.docTermFieldHits.get(t);if(r){for(const[s,o]of r){const a=(e.df.get(s)||0)-o;a<=0?e.df.delete(s):e.df.set(s,a)}e.docTermFieldHits.delete(t)}}function od(e,t){if(t.length===0)return;const n=Array.from(new Set(t)).sort((i,l)=>i-l);for(const i of n)n2(e,i);const r=i=>{let l=0,c=n.length;for(;l<c;){const u=l+c>>>1;n[u]<i?l=u+1:c=u}return i-l},s=n[0],o=new Map;for(const[i,l]of e.docFieldCount)o.set(i>s?r(i):i,l);e.docFieldCount=o;const a=new Map;for(const[i,l]of e.docTermFieldHits)a.set(i>s?r(i):i,l);e.docTermFieldHits=a}var Kn=class{constructor(t,n,r){this.options={...ye,...n},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Ck(this.options.keys),this._docs=t,this._myIndex=null,this._invertedIndex=null,this.setCollection(t,r),this._lastQuery=null,this._lastSearcher=null}_getSearcher(t){if(this._lastQuery===t)return this._lastSearcher;const n=ea(t,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=t,this._lastSearcher=n,n}setCollection(t,n){if(this._docs=t,n&&!(n instanceof _c))throw new Error(yk);if(this._myIndex=n||Cm(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const r=bl({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=e2(this._myIndex.records,this._myIndex.keys.length,r)}this._invalidateSearcherCache()}add(t){if(!jt(t))return;this._docs.push(t);const n=this._myIndex.add(t,this._docs.length-1);if(this._invertedIndex&&n){const r=bl({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});t2(this._invertedIndex,n,this._myIndex.keys.length,r)}this._invalidateSearcherCache()}remove(t=()=>!1){const n=[],r=[];for(let s=0,o=this._docs.length;s<o;s+=1)t(this._docs[s],s)&&(n.push(this._docs[s]),r.push(s));if(r.length){this._invertedIndex&&od(this._invertedIndex,r);const s=new Set(r);this._docs=this._docs.filter((o,a)=>!s.has(a)),this._myIndex.removeAll(r),this._invalidateSearcherCache()}return n}removeAt(t){if(!Number.isInteger(t)||t<0||t>=this._docs.length)throw new Error(dl);this._invertedIndex&&od(this._invertedIndex,[t]);const n=this._docs.splice(t,1)[0];return this._myIndex.removeAt(t),this._invalidateSearcherCache(),n}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(t=>this._keyStore.get(t.id)||t)}search(t,n){const{limit:r=-1}=n||{},{includeMatches:s,includeScore:o,shouldSort:a,sortFn:i,ignoreFieldNorm:l}=this.options;if(mt(t)&&!t.trim()){let p=this._docs.map((m,h)=>({item:m,refIndex:h}));return $o(r)&&r>-1&&(p=p.slice(0,r)),p}const c=a&&$o(r)&&r>0&&mt(t),u=i,d=(p,m)=>u(p,m)||p.idx-m.idx;let f;if(c){const p=new Wk(r,d);mt(this._docs[0])?this._searchStringList(t,{heap:p,ignoreFieldNorm:l}):this._searchObjectList(t,{heap:p,ignoreFieldNorm:l}),f=p.extractSorted()}else f=mt(t)?mt(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t),Uk(f,{ignoreFieldNorm:l}),a&&f.sort(mt(t)?d:u),$o(r)&&r>-1&&(f=f.slice(0,r));return Zk(f,this._docs,{includeMatches:s,includeScore:o})}_searchStringList(t,{heap:n,ignoreFieldNorm:r}={}){const s=this._getSearcher(t),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:a}=this._myIndex,i=n?null:[];return a.forEach(({v:l,i:c,n:u})=>{if(!jt(l))return;const d=s.searchIn(l);if(d.isMatch){const f={score:d.score,value:l,norm:u,indices:d.indices};o&&(f.matchedMask=d.matchedMask,f.matchedTerms=d.matchedTerms,f.termCount=d.termCount);const p=[f];if(!o||this._coversAllTokens(p)){const m={item:l,idx:c,matches:p};n?(m.score=gl(m.matches,{ignoreFieldNorm:r}),n.insert(m)):i.push(m)}}}),i}_searchLogical(t){const n=Sm(t,this.options),r=this._normalizedKeys(),s=(l,c,u)=>{if(!("children"in l)){const{keyId:m,searcher:h}=l;let y;return m===null?(y=[],r.forEach((b,v)=>{y.push(...this._findMatches({key:b,value:c[v],searcher:h}))})):y=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(c,m),searcher:h}),y&&y.length?[{idx:u,item:c,matches:y}]:[]}const{children:d,operator:f}=l,p=[];for(let m=0,h=d.length;m<h;m+=1){const y=d[m],b=s(y,c,u);if(b.length)p.push(...b);else if(f===ta.AND)return[]}return p},o=this._myIndex.records,a=new Map,i=[];return o.forEach(({$:l,i:c})=>{if(jt(l)){const u=s(n,l,c);u.length&&(a.has(c)||(a.set(c,{idx:c,item:l,matches:[]}),i.push(a.get(c))),u.forEach(({matches:d})=>{a.get(c).matches.push(...d)}))}}),i}_searchObjectList(t,{heap:n,ignoreFieldNorm:r}={}){const s=this._getSearcher(t),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:a}=this._myIndex,i=this._normalizedKeys(),l=n?null:[];return a.forEach(({$:c,i:u})=>{if(!jt(c))return;const d=[];let f=!1,p=!1;if(i.forEach((m,h)=>{const y=this._findMatches({key:m,value:c[h],searcher:s});y.length?(d.push(...y),y[0].hasInverse&&(p=!0)):f=!0}),!(p&&f)&&d.length&&(!o||this._coversAllTokens(d))){const m={idx:u,item:c,matches:d};n?(m.score=gl(m.matches,{ignoreFieldNorm:r}),n.insert(m)):l.push(m)}}),l}_findMatches({key:t,value:n,searcher:r}){if(!jt(n))return[];const s=[];if(Wn(n))n.forEach(({v:o,i:a,n:i})=>{if(!jt(o))return;const l=r.searchIn(o);if(l.isMatch){const c={score:l.score,key:t,value:o,idx:a,norm:i,indices:l.indices,hasInverse:l.hasInverse};l.termCount!==void 0&&(c.matchedMask=l.matchedMask,c.matchedTerms=l.matchedTerms,c.termCount=l.termCount),s.push(c)}});else{const{v:o,n:a}=n,i=r.searchIn(o);if(i.isMatch){const l={score:i.score,key:t,value:o,norm:a,indices:i.indices,hasInverse:i.hasInverse};i.termCount!==void 0&&(l.matchedMask=i.matchedMask,l.matchedTerms=i.matchedTerms,l.termCount=i.termCount),s.push(l)}}return s}_coversAllTokens(t){const n=t.length?t[0].termCount:void 0;if(n===void 0)return!0;if(n<=31){let s=0;for(let o=0;o<t.length;o++)s|=t[o].matchedMask||0;return s===2**n-1}const r=new Set;for(let s=0;s<t.length;s++){const o=t[s].matchedTerms;if(o)for(const a of o)r.add(a)}return r.size===n}};Kn.version="7.5.0";Kn.createIndex=Cm;Kn.parseIndex=Ok;Kn.config=ye;Kn.match=function(e,t,n){if(n&&n.useTokenSearch)throw new Error(kk);return ea(e,{...ye,...n}).searchIn(t)};Kn.parseQuery=Sm;kc(Hk);kc(Qk);Kn.use=function(...e){e.forEach(t=>kc(t))};var Em=Kn;function Js(e,t){const n=H(""),r=M(()=>[...He(e)]),s=M(()=>new Em(r.value,{keys:t,threshold:.4,ignoreLocation:!0})),o=M(()=>{const a=n.value.trim();return a?s.value.search(a).map(i=>i.item):r.value});return{query:n,results:o}}const r2={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function s2(e,t){return k(),I("svg",r2,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9"},null,-1)])])}const o2=ge({name:"carbon-search",render:s2}),a2={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function i2(e,t){return k(),I("svg",a2,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z"},null,-1)])])}const l2=ge({name:"carbon-close",render:i2}),c2={class:"relative"},u2=["placeholder"],Qs=fe({__name:"SearchInput",props:No({placeholder:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Gl(e,"modelValue");return(n,r)=>(k(),I("div",c2,[R(_(o2),{class:"pointer-events-none absolute left-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground"}),fr(x("input",{"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),type:"text",placeholder:e.placeholder??"Search…",class:"h-7 w-full rounded-md border bg-transparent pl-7 pr-7 text-xs outline-none placeholder:text-muted-foreground focus-visible:ring-1 focus-visible:ring-ring"},null,8,u2),[[Os,t.value]]),t.value?(k(),I("button",{key:0,type:"button",class:"absolute right-1.5 top-1/2 -translate-y-1/2 rounded p-0.5 text-muted-foreground hover:bg-accent hover:text-foreground",title:"Clear","aria-label":"Clear search",onClick:r[1]||(r[1]=s=>t.value="")},[R(_(l2),{class:"size-3.5"})])):se("",!0)]))}}),d2={class:"relative h-24 overflow-hidden rounded-md border bg-muted/40 font-mono text-xs leading-5"},p2=["innerHTML"],f2=["placeholder"],m2=fe({__name:"SqlEditor",props:No({placeholder:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:No(["run"],["update:modelValue"]),setup(e,{emit:t}){const n=Gl(e,"modelValue"),r=t,{isDark:s}=mc(),o=H(""),a=H(null);async function i(){try{const u=await dm();o.value=u.codeToHtml(n.value||" ",{lang:"sql",theme:s.value?Xo.dark:Xo.light})}catch{o.value=""}}Ie([n,s],i,{immediate:!0});function l(u){const d=u.target;a.value&&(a.value.scrollTop=d.scrollTop,a.value.scrollLeft=d.scrollLeft)}function c(u){(u.metaKey||u.ctrlKey)&&u.key==="Enter"&&(u.preventDefault(),r("run"))}return(u,d)=>(k(),I("div",d2,[x("div",{ref_key:"preRef",ref:a,class:"pointer-events-none absolute inset-0 overflow-auto whitespace-pre [&>pre]:!m-0 [&>pre]:!bg-transparent [&>pre]:p-2 [&>pre]:leading-5","aria-hidden":"true",innerHTML:o.value},null,8,p2),fr(x("textarea",{"onUpdate:modelValue":d[0]||(d[0]=f=>n.value=f),spellcheck:"false",placeholder:e.placeholder,class:je(["absolute inset-0 size-full resize-none overflow-auto whitespace-pre bg-transparent p-2 leading-5 caret-foreground outline-none placeholder:text-muted-foreground",o.value?"text-transparent":"text-foreground"]),onScroll:l,onKeydown:c},null,42,f2),[[Os,n.value]])]))}}),h2=["onMousedown"],g2=["title"],ad=180,b2=60,Am=fe({__name:"DataTable",props:{columns:{},rows:{}},setup(e){const t=e,n=H([]);Ie(()=>t.columns,d=>n.value=d.map(()=>ad),{immediate:!0});const r=M(()=>({gridTemplateColumns:n.value.map(d=>`${d}px`).join(" ")})),s=M(()=>`${n.value.reduce((d,f)=>d+f,0)}px`);function o(d,f){const p=f.clientX,m=n.value[d]??ad;function h(b){const v=Math.max(b2,m+(b.clientX-p));n.value=n.value.map((g,C)=>C===d?v:g)}function y(){document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",y),document.body.style.cursor=""}document.addEventListener("mousemove",h),document.addEventListener("mouseup",y),document.body.style.cursor="col-resize"}const a=H(null),i=vc(M(()=>({count:t.rows.length,getScrollElement:()=>a.value,estimateSize:()=>28,overscan:14}))),l=M(()=>i.value.getVirtualItems()),c=M(()=>i.value.getTotalSize());function u(d){return d==null?"":typeof d=="object"?JSON.stringify(d):String(d)}return(d,f)=>(k(),I("div",{ref_key:"parentRef",ref:a,class:"overflow-auto"},[x("div",{class:"sticky top-0 z-10 grid min-w-full border-b bg-card text-xs",style:et([r.value,{minWidth:s.value}])},[(k(!0),I(xe,null,Ve(e.columns,(p,m)=>(k(),I("div",{key:p,class:"relative truncate px-2 py-1.5 font-medium text-muted-foreground"},[ce(L(p)+" ",1),x("div",{class:"absolute right-0 top-0 h-full w-1.5 cursor-col-resize hover:bg-primary/40",title:"Drag to resize",onMousedown:qr(h=>o(m,h),["prevent"])},null,40,h2)]))),128))],4),x("div",{class:"relative min-w-full",style:et({height:c.value+"px",minWidth:s.value})},[(k(!0),I(xe,null,Ve(l.value,p=>(k(),I("div",{key:p.index,class:"absolute left-0 top-0 grid w-full items-center border-b text-xs hover:bg-muted/30",style:et({height:p.size+"px",transform:`translateY(${p.start}px)`,...r.value})},[(k(!0),I(xe,null,Ve(e.columns,(m,h)=>(k(),I("div",{key:m,class:"truncate px-2 font-mono",title:u(e.rows[p.index][h])},L(u(e.rows[p.index][h])),9,g2))),128))],4))),128))],4)],512))}}),y2={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function v2(e,t){return k(),I("svg",y2,[...t[0]||(t[0]=[Xl('<circle cx="22" cy="24" r="2" fill="currentColor"></circle><path fill="currentColor" d="M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.522A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.478L30 24ZM22 28a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4"></path><circle cx="8" cy="8" r="1" fill="currentColor"></circle><circle cx="8" cy="16" r="1" fill="currentColor"></circle><circle cx="8" cy="24" r="1" fill="currentColor"></circle><path fill="currentColor" d="M5 21h7v-2H5v-6h16v3h2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v22a2 2 0 0 0 2 2h7v-2H5ZM5 5h16v6H5Z"></path>',6)])])}const _2=ge({name:"carbon-data-view",render:v2}),w2={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function x2(e,t){return k(),I("svg",w2,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M29 5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v22a2 2 0 0 0 2 2h22a2 2 0 0 0 2-2Zm-2 0v4H5V5Zm0 22H5v-4h22Zm0-6H5v-4h22Zm0-6H5v-4h22Z"},null,-1)])])}const Tm=ge({name:"carbon-table",render:x2}),k2={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function C2(e,t){return k(),I("svg",k2,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28"},null,-1)])])}const $2=ge({name:"carbon-play-filled-alt",render:C2}),S2={class:"flex h-full min-h-0"},j2={class:"hidden w-52 shrink-0 flex-col border-r @xl:flex"},E2={class:"p-2"},A2={class:"min-h-0 flex-1 overflow-auto px-1 pb-2 text-xs"},T2={class:"px-1 py-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground"},I2=["onClick"],O2={class:"truncate font-mono"},M2={class:"mt-1 px-1 py-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground"},R2=["onClick"],P2={class:"truncate font-mono"},L2={key:2,class:"px-2 py-3 text-center text-muted-foreground"},B2={class:"flex min-h-0 min-w-0 flex-1 flex-col"},N2={class:"space-y-2 border-b p-2"},D2={class:"flex items-center gap-3 text-xs"},F2={key:0,label:"Views"},z2=["value"],q2={key:1,label:"Tables"},H2=["value"],V2={key:0,class:"whitespace-nowrap tabular-nums text-muted-foreground"},G2=["title"],U2={class:"min-h-0 flex-1 overflow-hidden"},W2={key:1,class:"p-4 text-xs text-muted-foreground"},K2={key:2,class:"p-4 text-xs text-muted-foreground"},Z2=fe({__name:"DataInspectorTab",setup(e){const{client:t}=En(),n=H("SELECT * FROM ps_buckets LIMIT 100;"),r=H(null),s=H(""),o=H(!1),a=H([]),{query:i,results:l}=Js(a,["name"]),c=M(()=>l.value.filter(h=>h.type==="view")),u=M(()=>l.value.filter(h=>h.type==="table"));async function d(){try{const h=await t.runQuery({sql:"SELECT name, type FROM sqlite_master WHERE type IN ('table', 'view') AND name NOT LIKE 'sqlite_%' ORDER BY type DESC, name"});a.value=hm(h)}catch{a.value=[]}}async function f(){o.value=!0,s.value="";try{r.value=await t.runQuery({sql:n.value})}catch(h){s.value=String(h.message??h),r.value=null}finally{o.value=!1}}function p(h){const y=h.target;y.value&&m(y.value),y.value=""}function m(h){n.value=`SELECT * FROM "${h}" LIMIT 100;`,f()}return $n(()=>{d(),f()}),(h,y)=>(k(),I("div",S2,[x("aside",j2,[x("div",E2,[R(Qs,{modelValue:_(i),"onUpdate:modelValue":y[0]||(y[0]=b=>Ge(i)?i.value=b:null),placeholder:"Search tables & views…"},null,8,["modelValue"])]),x("div",A2,[c.value.length?(k(),I(xe,{key:0},[x("div",T2," Views ("+L(c.value.length)+") ",1),(k(!0),I(xe,null,Ve(c.value,b=>(k(),I("button",{key:b.name,class:"flex w-full items-center gap-1.5 truncate rounded px-2 py-1 text-left hover:bg-accent",onClick:v=>m(b.name)},[R(_(_2),{class:"size-3.5 shrink-0 text-muted-foreground"}),x("span",O2,L(b.name),1)],8,I2))),128))],64)):se("",!0),u.value.length?(k(),I(xe,{key:1},[x("div",M2," Tables ("+L(u.value.length)+") ",1),(k(!0),I(xe,null,Ve(u.value,b=>(k(),I("button",{key:b.name,class:"flex w-full items-center gap-1.5 truncate rounded px-2 py-1 text-left hover:bg-accent",onClick:v=>m(b.name)},[R(_(Tm),{class:"size-3.5 shrink-0 text-muted-foreground"}),x("span",P2,L(b.name),1)],8,R2))),128))],64)):se("",!0),_(l).length?se("",!0):(k(),I("div",L2,"No objects."))])]),x("div",B2,[x("div",N2,[R(m2,{modelValue:n.value,"onUpdate:modelValue":y[1]||(y[1]=b=>n.value=b),placeholder:"Enter SQL — ⌘/Ctrl+Enter to run",onRun:f},null,8,["modelValue"]),x("div",D2,[x("select",{class:"h-7 min-w-0 max-w-44 rounded-md border bg-background px-1.5 text-xs text-foreground @xl:hidden","aria-label":"Browse a table or view",onChange:p},[y[2]||(y[2]=x("option",{value:""},"Browse…",-1)),c.value.length?(k(),I("optgroup",F2,[(k(!0),I(xe,null,Ve(c.value,b=>(k(),I("option",{key:b.name,value:b.name},L(b.name),9,z2))),128))])):se("",!0),u.value.length?(k(),I("optgroup",q2,[(k(!0),I(xe,null,Ve(u.value,b=>(k(),I("option",{key:b.name,value:b.name},L(b.name),9,H2))),128))])):se("",!0)],32),R(bn,{size:"sm",disabled:o.value,onClick:f},{default:re(()=>[(k(),ae(qn(o.value?_(gc):_($2)),{class:je(["size-3.5",o.value&&"animate-spin"])},null,8,["class"])),ce(" "+L(o.value?"Running…":"Run"),1)]),_:1},8,["disabled"]),y[3]||(y[3]=x("span",{class:"hidden text-muted-foreground @xl:inline"},"⌘/Ctrl+Enter",-1)),r.value&&!s.value?(k(),I("span",V2,L(r.value.rows.length)+" rows",1)):se("",!0),s.value?(k(),I("span",{key:1,class:"truncate text-destructive",title:s.value},L(s.value),9,G2)):se("",!0)])]),x("div",U2,[r.value&&r.value.rows.length?(k(),ae(Am,{key:0,columns:r.value.columns,rows:r.value.rows,class:"h-full"},null,8,["columns","rows"])):r.value?(k(),I("div",W2,"Query returned no rows.")):(k(),I("div",K2,"Run a query to see results."))])])]))}}),Y2={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function X2(e,t){return k(),I("svg",Y2,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z"},null,-1)])])}const J2=ge({name:"carbon-arrow-left",render:X2}),Q2={class:"space-y-3"},eC={class:"flex items-center gap-2"},tC=["title"],nC={class:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-muted-foreground"},rC={class:"tabular-nums text-foreground"},sC={class:"tabular-nums text-foreground"},oC={class:"font-mono text-foreground"},aC={class:"tabular-nums text-foreground"},iC={key:0,class:"rounded-lg border border-destructive/40 bg-destructive/10 p-2.5 text-xs text-destructive"},lC={key:1,class:"rounded-lg border bg-card px-3 py-6 text-center text-xs text-muted-foreground"},cC=fe({__name:"BucketDetail",props:{bucket:{}},emits:["back"],setup(e){const t=e,{client:n}=En(),r=H([]),s=H([]),o=H(null),a=H(!1);async function i(){a.value=!0,o.value=null;try{const l=await n.runQuery({sql:"SELECT op_id, row_type, row_id, data FROM ps_oplog WHERE bucket = (SELECT id FROM ps_buckets WHERE name = ?) ORDER BY op_id DESC LIMIT 1000",params:[t.bucket.name]});r.value=l.columns,s.value=l.rows}catch(l){o.value=l instanceof Error?l.message:String(l),r.value=[],s.value=[]}finally{a.value=!1}}return Ie(()=>t.bucket.name,i,{immediate:!0}),(l,c)=>(k(),I("div",Q2,[x("div",eC,[R(bn,{size:"sm",variant:"ghost",onClick:c[0]||(c[0]=u=>l.$emit("back"))},{default:re(()=>[R(_(J2),{class:"size-3.5"}),c[1]||(c[1]=ce(" Buckets",-1))]),_:1}),R(_(Da),{class:"size-3.5 text-muted-foreground"}),x("span",{class:"min-w-0 flex-1 truncate font-mono text-sm",title:e.bucket.name},L(e.bucket.name),9,tC),R(bn,{size:"sm",variant:"outline",disabled:a.value,onClick:i},{default:re(()=>[R(_(Qo),{class:je(["size-3.5",a.value&&"animate-spin"])},null,8,["class"]),c[2]||(c[2]=ce(" Refresh ",-1))]),_:1},8,["disabled"])]),x("div",nC,[x("span",null,[c[3]||(c[3]=ce("Operations ",-1)),x("span",rC,[ce(L(_(st)(e.bucket.downloadedOperations)),1),e.bucket.totalOperations!=null?(k(),I(xe,{key:0},[ce(" / "+L(_(st)(e.bucket.totalOperations)),1)],64)):se("",!0)])]),x("span",null,[c[4]||(c[4]=ce("Size ",-1)),x("span",sC,L(_(xs)(e.bucket.downloadedSize)),1)]),x("span",null,[c[5]||(c[5]=ce("Last op ",-1)),x("span",oC,L(e.bucket.lastOp??"—"),1)]),x("span",null,[c[6]||(c[6]=ce("Rows loaded ",-1)),x("span",aC,L(_(st)(s.value.length)),1)])]),o.value?(k(),I("div",iC,L(o.value),1)):s.value.length?(k(),ae(Am,{key:2,columns:r.value,rows:s.value,class:"max-h-[55vh] rounded-lg border"},null,8,["columns","rows"])):(k(),I("div",lC,L(a.value?"Loading…":"No rows in this bucket."),1))]))}}),uC={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function dC(e,t){return k(),I("svg",uC,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M8 18h4v2H8zm6 0h4v2h-4zm-6-4h4v2H8zm6 8h4v2h-4zm6-8h4v2h-4zm0 8h4v2h-4z"},null,-1),x("path",{fill:"currentColor",d:"M27 3H5a2.003 2.003 0 0 0-2 2v22a2.003 2.003 0 0 0 2 2h22a2.003 2.003 0 0 0 2-2V5a2.003 2.003 0 0 0-2-2m0 2v4H5V5ZM5 27V11h22v16Z"},null,-1)])])}const Im=ge({name:"carbon-data-table",render:dC}),pC={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function fC(e,t){return k(),I("svg",pC,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M30 20h-4v2h4v2h-3a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h5v-8c0-1.103-.897-2-2-2m0 8h-3v-2h3zm-6-6v-2h-3v-2h-2v2h-2v2h2v6c0 1.103.898 2 2 2h3v-2h-3v-6zm-10-2h-4v2h4v2h-3a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h5v-8c0-1.103-.897-2-2-2m0 8h-3v-2h3zM5 16v4H2c-1.102 0-2 .897-2 2v6c0 1.103.898 2 2 2h5V16zm-3 6h3v6H2zm2-8V5h7.586l4 4H28v8h2V9a2 2 0 0 0-2-2H16.414L13 3.586A2 2 0 0 0 11.586 3H4a2 2 0 0 0-2 2v9z"},null,-1)])])}const mC=ge({name:"carbon-data-volume",render:fC}),hC={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function gC(e,t){return k(),I("svg",hC,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m16 28l-7-7l1.41-1.41L16 25.17l5.59-5.58L23 21zm0-24l7 7l-1.41 1.41L16 6.83l-5.59 5.58L9 11z"},null,-1)])])}const bC=ge({name:"carbon-chevron-sort",render:gC}),yC={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function vC(e,t){return k(),I("svg",yC,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m16 10l10 10l-1.4 1.4l-8.6-8.6l-8.6 8.6L6 20z"},null,-1)])])}const _C=ge({name:"carbon-chevron-up",render:vC}),wC={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function xC(e,t){return k(),I("svg",wC,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M16 22L6 12l1.4-1.4l8.6 8.6l8.6-8.6L26 12z"},null,-1)])])}const kC=ge({name:"carbon-chevron-down",render:xC}),CC={key:1,class:"space-y-3"},$C={class:"grid grid-cols-3 gap-2"},SC={class:"rounded-lg border bg-card px-3 py-2"},jC={class:"inline-flex items-center gap-1 text-[10px] uppercase tracking-wide text-muted-foreground"},EC={class:"text-base font-semibold tabular-nums"},AC={class:"rounded-lg border bg-card px-3 py-2"},TC={class:"inline-flex items-center gap-1 text-[10px] uppercase tracking-wide text-muted-foreground"},IC={class:"text-base font-semibold tabular-nums"},OC={key:0,class:"text-xs font-normal text-muted-foreground"},MC={class:"rounded-lg border bg-card px-3 py-2"},RC={class:"inline-flex items-center gap-1 text-[10px] uppercase tracking-wide text-muted-foreground"},PC={class:"text-base font-semibold tabular-nums"},LC={class:"flex items-center gap-2"},BC=["value"],NC={key:0,class:"rounded-lg border bg-card px-3 py-6 text-center text-xs text-muted-foreground"},DC={key:1,class:"space-y-1.5 @lg:hidden"},FC=["onClick"],zC={class:"flex items-center gap-2"},qC={class:"min-w-0 flex-1 truncate font-mono text-primary"},HC={class:"mt-1 flex items-center gap-3 tabular-nums text-muted-foreground"},VC={class:"text-foreground"},GC={key:0,class:"text-muted-foreground"},UC={class:"ml-auto font-mono"},WC={key:0,class:"mt-1.5 h-1 w-full overflow-hidden rounded-full bg-muted"},KC={key:2,class:"hidden overflow-x-auto rounded-lg border @lg:block"},ZC={class:"w-full text-xs"},YC={class:"bg-muted/40 text-muted-foreground"},XC=["onClick"],JC=["onClick"],QC={class:"max-w-0 px-3 py-1.5"},e$={class:"truncate font-mono text-primary"},t$={class:"px-3 py-1.5 text-right"},n$={class:"tabular-nums"},r$={key:0,class:"text-muted-foreground"},s$={key:0,class:"mt-1 h-1 w-full overflow-hidden rounded-full bg-muted"},o$={class:"px-3 py-1.5 text-right tabular-nums"},a$={class:"px-3 py-1.5 font-mono text-muted-foreground"},i$={class:"px-3 py-1.5"},l$=fe({__name:"BucketsTab",setup(e){const{buckets:t}=En(),{query:n,results:r}=Js(t,["name"]),s=H(null),o=H("downloadedOperations"),a=H("desc"),i=M({get:()=>`${o.value}:${a.value}`,set:b=>{const[v,g]=b.split(":");o.value=v,a.value=g}}),l=[{value:"downloadedOperations:desc",label:"Most operations"},{value:"downloadedSize:desc",label:"Largest"},{value:"name:asc",label:"Name A–Z"},{value:"lastOp:desc",label:"Latest op"}];function c(b){o.value===b?a.value=a.value==="asc"?"desc":"asc":(o.value=b,a.value=b==="name"?"asc":"desc")}const u=M(()=>{const b=o.value==="downloadedOperations"||o.value==="downloadedSize",v=a.value==="asc"?1:-1;return[...r.value].sort((g,C)=>{const S=b?g[o.value]??0:String(g[o.value]??""),T=b?C[o.value]??0:String(C[o.value]??"");return(S<T?-1:S>T?1:0)*v})}),d=M(()=>t.value.length),f=M(()=>t.value.reduce((b,v)=>b+(v.downloadedOperations||0),0)),p=M(()=>t.value.reduce((b,v)=>b+(v.totalOperations||0),0)),m=M(()=>t.value.reduce((b,v)=>b+(v.downloadedSize||0),0));function h(b){return b.totalOperations==null||b.totalOperations===0?b.downloadedOperations>0?1:0:Math.min(b.downloadedOperations/b.totalOperations,1)}const y=[{key:"name",label:"Bucket",align:"text-left"},{key:"downloadedOperations",label:"Operations",align:"text-right"},{key:"downloadedSize",label:"Size",align:"text-right"},{key:"lastOp",label:"Last op",align:"text-left"}];return(b,v)=>s.value?(k(),ae(cC,{key:0,bucket:s.value,onBack:v[0]||(v[0]=g=>s.value=null)},null,8,["bucket"])):(k(),I("div",CC,[x("div",$C,[x("div",SC,[x("div",jC,[R(_(Da),{class:"size-3"}),v[3]||(v[3]=ce(" Buckets",-1))]),x("div",EC,L(_(st)(d.value)),1)]),x("div",AC,[x("div",TC,[R(_(Im),{class:"size-3"}),v[4]||(v[4]=ce(" Operations",-1))]),x("div",IC,[ce(L(_(st)(f.value)),1),p.value>0?(k(),I("span",OC," / "+L(_(st)(p.value)),1)):se("",!0)])]),x("div",MC,[x("div",RC,[R(_(mC),{class:"size-3"}),v[5]||(v[5]=ce(" Size",-1))]),x("div",PC,L(_(xs)(m.value)),1)])]),x("div",LC,[R(Qs,{modelValue:_(n),"onUpdate:modelValue":v[1]||(v[1]=g=>Ge(n)?n.value=g:null),placeholder:"Search buckets…",class:"min-w-0 flex-1"},null,8,["modelValue"]),fr(x("select",{"onUpdate:modelValue":v[2]||(v[2]=g=>i.value=g),class:"h-7 shrink-0 rounded-md border bg-background px-1.5 text-xs text-foreground @lg:hidden","aria-label":"Sort buckets"},[(k(),I(xe,null,Ve(l,g=>x("option",{key:g.value,value:g.value},L(g.label),9,BC)),64))],512),[[xf,i.value]])]),u.value.length?se("",!0):(k(),I("div",NC,L(_(t).length?"No buckets match your search.":"No buckets."),1)),u.value.length?(k(),I("ul",DC,[(k(!0),I(xe,null,Ve(u.value,g=>(k(),I("li",{key:g.name},[x("button",{class:"w-full rounded-lg border bg-card px-3 py-2 text-left text-xs hover:bg-muted/40",title:"Explore this bucket's data",onClick:C=>s.value=g},[x("div",zC,[x("span",qC,L(g.name),1),x("span",{class:je(["inline-flex shrink-0 items-center rounded px-1.5 py-0.5 text-[10px] font-medium",g.downloading?"bg-blue-500/15 text-blue-600 dark:text-blue-400":"bg-muted text-muted-foreground"])},L(g.downloading?"downloading":"idle"),3)]),x("div",HC,[x("span",VC,[ce(L(_(st)(g.downloadedOperations)),1),g.totalOperations!=null?(k(),I("span",GC," / "+L(_(st)(g.totalOperations)),1)):se("",!0),v[6]||(v[6]=ce(" ops",-1))]),x("span",null,L(_(xs)(g.downloadedSize)),1),x("span",UC,"#"+L(g.lastOp??"—"),1)]),g.totalOperations!=null?(k(),I("div",WC,[x("div",{class:"h-full rounded-full bg-primary",style:et({width:h(g)*100+"%"})},null,4)])):se("",!0)],8,FC)]))),128))])):se("",!0),u.value.length?(k(),I("div",KC,[x("table",ZC,[x("thead",YC,[x("tr",null,[(k(),I(xe,null,Ve(y,g=>x("th",{key:g.key,class:je(["px-3 py-1.5 font-medium",g.align])},[x("button",{class:"inline-flex items-center gap-1 hover:text-foreground",onClick:C=>c(g.key)},[ce(L(g.label)+" ",1),(k(),ae(qn(o.value===g.key?a.value==="asc"?_(_C):_(kC):_(bC)),{class:je(["size-3",o.value===g.key?"text-foreground":"text-muted-foreground/40"])},null,8,["class"]))],8,XC)],2)),64)),v[7]||(v[7]=x("th",{class:"px-3 py-1.5 text-left font-medium"},"Status",-1))])]),x("tbody",null,[(k(!0),I(xe,null,Ve(u.value,g=>(k(),I("tr",{key:g.name,class:"cursor-pointer border-t hover:bg-muted/40",title:"Explore this bucket's data",onClick:C=>s.value=g},[x("td",QC,[x("div",e$,L(g.name),1)]),x("td",t$,[x("div",n$,[ce(L(_(st)(g.downloadedOperations)),1),g.totalOperations!=null?(k(),I("span",r$," / "+L(_(st)(g.totalOperations)),1)):se("",!0)]),g.totalOperations!=null?(k(),I("div",s$,[x("div",{class:"h-full rounded-full bg-primary",style:et({width:h(g)*100+"%"})},null,4)])):se("",!0)]),x("td",o$,L(_(xs)(g.downloadedSize)),1),x("td",a$,L(g.lastOp??"—"),1),x("td",i$,[x("span",{class:je(["inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium",g.downloading?"bg-blue-500/15 text-blue-600 dark:text-blue-400":"bg-muted text-muted-foreground"])},L(g.downloading?"downloading":"idle"),3)])],8,JC))),128))])])])):se("",!0)]))}}),jo=fe({__name:"Badge",props:{variant:{default:"default"}},setup(e){const t=e,n=M(()=>({default:"bg-primary text-primary-foreground",success:"bg-success/15 text-success",warning:"bg-warning/20 text-[color:var(--warning)]",destructive:"bg-destructive/15 text-destructive",muted:"bg-muted text-muted-foreground",outline:"border text-foreground"})[t.variant]);return(r,s)=>(k(),I("span",{class:je(_(yc)("inline-flex items-center gap-1 rounded-md px-2 py-0.5 text-xs font-medium",n.value))},[Le(r.$slots,"default")],2))}}),c$={class:"relative"},u$=["placeholder"],d$={key:0,class:"absolute left-0 top-full z-20 mt-1 max-h-48 w-full overflow-auto rounded-md border bg-card py-1 shadow-md"},p$=["onMousedown","onMouseenter"],f$=fe({__name:"AutocompleteInput",props:No({options:{},placeholder:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Gl(e,"modelValue"),n=e,r=H(!1),s=H(0),o=M(()=>{const u=t.value.trim();return(u?new Em(n.options,{threshold:.4,ignoreLocation:!0}).search(u).map(d=>d.item):n.options).slice(0,8)});function a(u){t.value=u,r.value=!1}function i(){r.value=!0,s.value=0}function l(){setTimeout(()=>r.value=!1,120)}function c(u){u.key==="ArrowDown"?(r.value=!0,s.value=Math.min(s.value+1,o.value.length-1),u.preventDefault()):u.key==="ArrowUp"?(s.value=Math.max(s.value-1,0),u.preventDefault()):u.key==="Enter"&&r.value&&o.value[s.value]?(a(o.value[s.value]),u.preventDefault()):u.key==="Escape"&&(r.value=!1)}return(u,d)=>(k(),I("div",c$,[fr(x("input",{"onUpdate:modelValue":d[0]||(d[0]=f=>t.value=f),placeholder:e.placeholder,autocomplete:"off",class:"h-7 w-full rounded-md border bg-transparent px-2 text-xs outline-none focus-visible:ring-1 focus-visible:ring-ring",onFocus:d[1]||(d[1]=f=>r.value=!0),onBlur:l,onInput:i,onKeydown:c},null,40,u$),[[Os,t.value]]),r.value&&o.value.length?(k(),I("ul",d$,[(k(!0),I(xe,null,Ve(o.value,(f,p)=>(k(),I("li",{key:f},[x("button",{type:"button",class:je(["block w-full truncate px-2 py-1 text-left font-mono text-xs",p===s.value?"bg-accent text-accent-foreground":"hover:bg-accent"]),onMousedown:qr(m=>a(f),["prevent"]),onMouseenter:m=>s.value=p},L(f),43,p$)]))),128))])):se("",!0)]))}}),m$={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function h$(e,t){return k(),I("svg",m$,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M20 24h-8.137a4 4 0 0 0-.429-1.02L21.98 12.434A3.994 3.994 0 1 0 20.141 8H14v2h6.141a4 4 0 0 0 .425 1.02L10.02 21.566A3.994 3.994 0 1 0 11.859 26H20v3h8v-8h-8Zm4-17a2 2 0 1 1-2 2a2 2 0 0 1 2-2M8 27a2 2 0 1 1 2-2a2 2 0 0 1-2 2m14-4h4v4h-4ZM9.693 12.75a5 5 0 0 1 0-7.5l1.324 1.5a3 3 0 0 0 0 4.501Z"},null,-1),x("path",{fill:"currentColor",d:"M7.047 15.751a9 9 0 0 1 0-13.501l1.324 1.5a7 7 0 0 0 0 10.501Z"},null,-1)])])}const g$=ge({name:"carbon-flow-stream",render:h$}),b$={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function y$(e,t){return k(),I("svg",b$,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M17 15V8h-2v7H8v2h7v7h2v-7h7v-2z"},null,-1)])])}const id=ge({name:"carbon-add",render:y$}),v$={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function _$(e,t){return k(),I("svg",v$,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m3.584 5.002l1.414-1.414l3.416 3.414L7 8.417zm19.997 19.99l1.415-1.414l3.414 3.416l-1.414 1.414zM11 2h2v4h-2zm-9 9h4v2H2zm24 8h4v2h-4zm-7 7h2v4h-2zm-2.42-4.93l-3.71 3.72a4 4 0 1 1-5.66-5.66l3.72-3.72L9.51 14L5.8 17.72a6 6 0 0 0-.06 8.54A6 6 0 0 0 10 28a6.07 6.07 0 0 0 4.32-1.8L18 22.49Zm-1.17-10.14l3.72-3.72a4 4 0 1 1 5.66 5.66l-3.72 3.72L22.49 18l3.71-3.72a6 6 0 0 0 .06-8.54A6 6 0 0 0 22 4a6.07 6.07 0 0 0-4.32 1.8L14 9.51Z"},null,-1)])])}const w$=ge({name:"carbon-unlink",render:_$}),x$={class:"space-y-3"},k$={class:"flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-2.5 py-2 text-xs text-warning"},C$={key:0,class:"rounded-lg border bg-card px-3 py-6 text-center text-xs text-muted-foreground"},$$={key:1,class:"space-y-1.5"},S$={class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},j$=["title"],E$=["title"],A$={class:"inline-flex shrink-0 items-center gap-1 tabular-nums text-muted-foreground"},T$={class:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px] text-muted-foreground"},I$={class:"shrink-0 rounded bg-muted px-1.5 py-0.5 font-medium tabular-nums"},O$={class:"shrink-0"},M$={class:"tabular-nums text-foreground"},R$={key:0,class:"flex min-w-32 flex-1 items-center gap-2"},P$={class:"h-1 min-w-0 flex-1 overflow-hidden rounded-full bg-muted"},L$={class:"shrink-0 tabular-nums"},B$={key:2,class:"rounded-lg border bg-card"},N$={class:"flex items-center gap-1.5 border-b px-3 py-1.5 text-xs font-medium text-muted-foreground"},D$={class:"space-y-2 p-3"},F$={class:"flex flex-wrap items-center gap-2"},z$=["placeholder"],q$={class:"inline-flex items-center gap-1 text-xs text-muted-foreground"},H$={class:"inline-flex items-center gap-1 text-xs text-muted-foreground"},V$={key:3,class:"text-xs text-destructive"},G$=fe({__name:"StreamsTab",setup(e){const{client:t,connected:n,streams:r}=En(),s=hc(),{query:o,results:a}=Js(r,["name"]),i=H(Date.now());let l;$n(()=>l=setInterval(()=>i.value=Date.now(),1e3)),Wr(()=>l&&clearInterval(l));function c(S){if(S==null||!Number.isFinite(S))return"no expiry";const T=Math.max(0,Math.floor((S-i.value)/1e3));if(T<60)return`${T}s`;const j=Math.floor(T/60);return j<60?`${j}m ${T%60}s`:`${Math.floor(j/60)}h ${j%60}m`}function u(S){return(S.name??"")+JSON.stringify(S.params)}const d=H([]);Ie(n,async S=>{if(S)try{d.value=(await t.getInfo()).streamDefinitions??[]}catch{}},{immediate:!0});const f=M(()=>[...new Set([...d.value.map(S=>S.name),...r.value.map(S=>S.name).filter(S=>!!S)])]),p=H(""),m=H(""),h=H(0),y=H(""),b=H(""),v=M(()=>{const S=d.value.find(T=>T.name===p.value)?.parameters;return S?.length?`{${S.map(T=>`${JSON.stringify(T)}: …`).join(", ")}}`:'params JSON e.g. {"id":1}'});async function g(){b.value="";let S;if(m.value.trim())try{S=JSON.parse(m.value)}catch{b.value="Params must be valid JSON";return}const T=y.value===""?void 0:Number(y.value);if(T!==void 0&&![0,1,2,3].includes(T)){b.value="Priority must be 0, 1, 2 or 3";return}const j=T;try{await t.action({action:"subscribeStream",args:{name:p.value,params:S,ttl:h.value,priority:j}}),p.value="",m.value="",h.value=0,y.value=""}catch($){b.value=String($.message??$)}}async function C(S){if(b.value="",!!S.name)try{const T=S.params?JSON.parse(JSON.stringify(S.params)):void 0;await t.action({action:"unsubscribeStream",args:{name:S.name,params:T}})}catch(T){b.value=String(T.message??T)}}return(S,T)=>(k(),I("div",x$,[x("div",k$,[R(_(Ln),{class:"mt-0.5 size-3.5 shrink-0"}),T[5]||(T[5]=x("span",null,"Subscribing here syncs the stream into this client's local database. Other devices aren't affected. With the default TTL of 0, the stream's data is removed soon after you unsubscribe.",-1))]),R(Qs,{modelValue:_(o),"onUpdate:modelValue":T[0]||(T[0]=j=>Ge(o)?o.value=j:null),placeholder:"Search streams…"},null,8,["modelValue"]),_(a).length?(k(),I("div",$$,[(k(!0),I(xe,null,Ve(_(a),j=>(k(),I("div",{key:u(j),class:"rounded-lg border bg-card px-2.5 py-1.5"},[x("div",S$,[R(_(g$),{class:"size-3.5 shrink-0 text-muted-foreground"}),x("span",{class:"max-w-[11rem] shrink-0 truncate font-mono font-medium",title:j.name??void 0},L(j.name),9,j$),x("span",{class:"min-w-0 flex-1 truncate font-mono text-muted-foreground @max-md:basis-full @max-md:order-last",title:j.params?_(ol)(j.params):void 0},L(j.params?_(ol)(j.params):""),9,E$),x("span",A$,[R(_(bc),{class:"size-3"}),ce(L(c(j.expiresAt)),1)]),j.autoSubscribed?(k(),ae(jo,{key:0,variant:"muted",class:"shrink-0"},{default:re(()=>[...T[6]||(T[6]=[ce("Auto Subscribed",-1)])]),_:1})):se("",!0),j.explicitlySubscribed?(k(),ae(jo,{key:1,variant:"default",class:"shrink-0"},{default:re(()=>[...T[7]||(T[7]=[ce("Invoked",-1)])]),_:1})):se("",!0),R(jo,{variant:j.active?"success":"muted",class:"shrink-0"},{default:re(()=>[ce(L(j.active?"active":"inactive"),1)]),_:2},1032,["variant"]),j.explicitlySubscribed&&!_(s).includes("unsubscribeStream")?(k(),ae(bn,{key:2,size:"sm",variant:"ghost",class:"shrink-0",onClick:$=>C(j)},{default:re(()=>[R(_(w$),{class:"size-3.5"}),T[8]||(T[8]=ce(" Unsubscribe ",-1))]),_:1},8,["onClick"])):se("",!0)]),x("div",T$,[x("span",I$,"P"+L(j.priority??"—"),1),x("span",O$,[T[9]||(T[9]=ce("Synced ",-1)),x("span",M$,L(j.hasSynced?_(Yo)(j.lastSyncedAt):"pending"),1)]),j.progress?(k(),I("div",R$,[x("div",P$,[x("div",{class:"h-full rounded-full bg-primary",style:et({width:_(al)(j.progress)*100+"%"})},null,4)]),x("span",L$,L(_(st)(j.progress.downloadedOperations))+"/"+L(_(st)(j.progress.totalOperations))+" · "+L(Math.round(_(al)(j.progress)*100))+"%",1)])):se("",!0)])]))),128))])):(k(),I("div",C$,L(_(r).length?"No streams match your search.":"No stream subscriptions."),1)),_(s).includes("subscribeStream")?se("",!0):(k(),I("section",B$,[x("header",N$,[R(_(id),{class:"size-3.5"}),T[10]||(T[10]=ce(" Subscribe (debug) ",-1))]),x("div",D$,[x("div",F$,[R(f$,{modelValue:p.value,"onUpdate:modelValue":T[1]||(T[1]=j=>p.value=j),options:f.value,placeholder:"stream name",class:"w-40 @max-md:w-full"},null,8,["modelValue","options"]),fr(x("input",{"onUpdate:modelValue":T[2]||(T[2]=j=>m.value=j),placeholder:v.value,class:"h-7 min-w-40 flex-1 rounded-md border bg-transparent px-2 font-mono text-xs outline-none focus-visible:ring-1 focus-visible:ring-ring"},null,8,z$),[[Os,m.value]]),x("label",q$,[T[11]||(T[11]=ce(" TTL ",-1)),fr(x("input",{"onUpdate:modelValue":T[3]||(T[3]=j=>h.value=j),type:"number",min:"0",class:"h-7 w-16 rounded-md border bg-transparent px-2 text-xs tabular-nums outline-none focus-visible:ring-1 focus-visible:ring-ring"},null,512),[[Os,h.value,void 0,{number:!0}]])]),x("label",H$,[T[13]||(T[13]=ce(" Priority ",-1)),fr(x("select",{"onUpdate:modelValue":T[4]||(T[4]=j=>y.value=j),class:"h-7 rounded-md border bg-background px-1.5 text-xs text-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring"},[...T[12]||(T[12]=[Xl('<option value="">default</option><option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option>',5)])],512),[[xf,y.value]])]),R(bn,{size:"sm",disabled:!p.value,onClick:g},{default:re(()=>[R(_(id),{class:"size-3.5"}),T[14]||(T[14]=ce(" Subscribe",-1))]),_:1},8,["disabled"])])])])),b.value?(k(),I("div",V$,L(b.value),1)):se("",!0)]))}}),U$={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function W$(e,t){return k(),I("svg",U$,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M28 13V8a2 2 0 0 0-2-2h-3v2h3v5a3.98 3.98 0 0 0 1.382 3A3.98 3.98 0 0 0 26 19v5h-3v2h3a2 2 0 0 0 2-2v-5a2 2 0 0 1 2-2v-2a2 2 0 0 1-2-2"},null,-1),x("path",{fill:"currentColor","fill-rule":"evenodd",d:"m17 9l-.857 3h2L19 9h2l-.857 3H22v2h-2.428l-1.143 4H21v2h-3.143L17 23h-2l.857-3h-2L13 23h-2l.857-3H10v-2h2.429l1.143-4H11v-2h3.143L15 9Zm.572 5h-2l-1.143 4h2Z"},null,-1),x("path",{fill:"currentColor",d:"M6 13V8h3V6H6a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2v2a2 2 0 0 1 2 2v5a2 2 0 0 0 2 2h3v-2H6v-5a3.98 3.98 0 0 0-1.382-3A3.98 3.98 0 0 0 6 13"},null,-1)])])}const K$=ge({name:"carbon-parameter",render:W$}),Z$={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function Y$(e,t){return k(),I("svg",Z$,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m31 16l-7 7l-1.41-1.41L28.17 16l-5.58-5.59L24 9zM1 16l7-7l1.41 1.41L3.83 16l5.58 5.59L8 23zm11.42 9.484L17.64 6l1.932.517L14.352 26z"},null,-1)])])}const X$=ge({name:"carbon-code",render:Y$}),J$={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function Q$(e,t){return k(),I("svg",J$,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M11 11v10h10V11Zm8 8h-6v-6h6Z"},null,-1),x("path",{fill:"currentColor",d:"M30 13v-2h-4V8a2 2 0 0 0-2-2h-3V2h-2v4h-6V2h-2v4H8a2 2 0 0 0-2 2v3H2v2h4v6H2v2h4v3a2 2 0 0 0 2 2h3v4h2v-4h6v4h2v-4h3a2 2 0 0 0 2-2v-3h4v-2h-4v-6Zm-6 11H8V8h16Z"},null,-1)])])}const eS=ge({name:"carbon-chip",render:Q$}),tS={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function nS(e,t){return k(),I("svg",tS,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z"},null,-1)])])}const rS=ge({name:"carbon-chevron-right",render:nS}),sS={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function oS(e,t){return k(),I("svg",sS,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"m11.17 6l3.42 3.41l.58.59H28v16H4V6zm0-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H16l-3.41-3.41A2 2 0 0 0 11.17 4"},null,-1)])])}const aS=ge({name:"carbon-folder",render:oS}),iS={class:"space-y-3"},lS={key:0,class:"flex items-start gap-1.5 rounded-lg border border-destructive/40 px-3 py-2 text-xs text-destructive"},cS={class:"break-words"},uS={class:"rounded-lg border bg-card"},dS={class:"flex items-center justify-between border-b px-3 py-1.5"},pS={class:"flex items-center gap-2"},fS={class:"inline-flex rounded-md border p-0.5 text-[11px]"},mS={key:0,class:"divide-y"},hS={key:1,class:"p-2"},gS={class:"space-y-2"},bS={class:"flex items-center justify-between"},yS={class:"inline-flex rounded-md border p-0.5 text-[11px]"},vS={key:0,class:"text-xs text-muted-foreground"},_S={key:0,class:"rounded-lg border bg-card px-3 py-6 text-center text-xs text-muted-foreground"},wS={key:1,class:"space-y-1.5"},xS=["onClick"],kS={class:"font-mono font-medium"},CS={class:"text-muted-foreground"},$S={key:0,class:"text-muted-foreground"},SS={class:"flex flex-1 flex-wrap justify-end gap-1"},jS={key:0,class:"space-y-2 border-t px-3 py-2 text-xs"},ES={class:"grid grid-cols-1 gap-x-6 gap-y-0.5 sm:grid-cols-2"},AS={class:"truncate font-mono"},TS={class:"shrink-0 font-mono text-muted-foreground"},IS={key:0,class:"space-y-0.5 border-t pt-2"},OS={class:"text-muted-foreground"},MS={key:0,class:"px-1 text-[11px] text-muted-foreground"},RS={class:"font-mono"},PS={key:2},LS=fe({__name:"ConfigTab",setup(e){const{client:t,connected:n}=En(),r=H(null),s=M(()=>mm(r.value?.token)),o=H(null),a=H(null),i=H("structured"),l=H("json"),c=H(new Set);async function u(){a.value=null;try{r.value=await t.getInfo(),o.value=await t.getSchema()}catch(S){a.value=S instanceof Error?S.message:String(S)}}Ie(n,S=>S&&u(),{immediate:!0});const d=M(()=>o.value?.tables??[]),{query:f,results:p}=Js(d,["name","columns.name"]),m=M(()=>JSON.stringify(r.value??{},null,2)),h=M(()=>JSON.stringify(o.value??{},null,2));function y(S){const T=new Set(c.value);T.has(S)?T.delete(S):T.add(S),c.value=T}function b(S){return f.value.trim()?!0:c.value.has(S)}function v(S){const T=[];return S.local_only&&T.push("local-only"),S.insert_only&&T.push("insert-only"),S.include_metadata&&T.push("metadata"),S.include_old&&T.push("track-previous"),S.ignore_empty_update&&T.push("ignore-empty-updates"),T}function g(S){return S.view_name!==S.name}function C(S){return S.map(T=>T.name+(T.ascending?"":" ↓")).join(", ")}return(S,T)=>(k(),I("div",iS,[a.value?(k(),I("div",lS,[R(_(Ln),{class:"mt-0.5 size-3.5 shrink-0"}),x("span",cS,L(a.value),1)])):se("",!0),x("section",uS,[x("header",dS,[T[5]||(T[5]=x("span",{class:"text-xs font-medium text-muted-foreground"},"Connection",-1)),x("div",pS,[x("div",fS,[x("button",{class:je(["rounded px-1.5 py-0.5",i.value==="structured"?"bg-accent text-foreground":"text-muted-foreground"]),onClick:T[0]||(T[0]=j=>i.value="structured")}," Fields ",2),x("button",{class:je(["rounded px-1.5 py-0.5",i.value==="json"?"bg-accent text-foreground":"text-muted-foreground"]),onClick:T[1]||(T[1]=j=>i.value="json")}," JSON ",2)]),x("button",{class:"rounded p-1 text-muted-foreground hover:bg-accent hover:text-foreground",title:"Refresh",onClick:u},[R(_(Qo),{class:"size-3.5"})])])]),i.value==="structured"?(k(),I("div",mS,[R(St,{icon:_(ym),label:"Endpoint",value:r.value?.endpoint,mono:"",copyable:""},null,8,["icon","value"]),R(St,{icon:_(bm),label:"User ID",value:s.value,mono:"",copyable:""},null,8,["icon","value"]),R(St,{icon:_(ll),label:"Client ID",value:r.value?.clientId,mono:"",copyable:""},null,8,["icon","value"]),R(St,{icon:_(vm),label:"Method",value:r.value?.connectionMethod},null,8,["icon","value"]),R(St,{icon:_(K$),label:"Params",value:_(ol)(r.value?.params),mono:""},null,8,["icon","value"]),R(St,{icon:_(X$),label:"SDK",value:r.value?.sdk,mono:""},null,8,["icon","value"]),r.value?.databasePath?(k(),ae(St,{key:0,icon:_(aS),label:"Database path",value:r.value?.databasePath,mono:"",copyable:""},null,8,["icon","value"])):se("",!0),R(St,{icon:_(eS),label:"Core version",value:r.value?.sqliteCoreVersion,mono:""},null,8,["icon","value"])])):(k(),I("div",hS,[R(il,{code:m.value,lang:"json"},null,8,["code"])]))]),x("section",gS,[x("div",bS,[T[6]||(T[6]=x("span",{class:"text-xs font-medium uppercase tracking-wide text-muted-foreground"},"Schema",-1)),x("div",yS,[x("button",{class:je(["rounded px-1.5 py-0.5",l.value==="tree"?"bg-accent text-foreground":"text-muted-foreground"]),onClick:T[2]||(T[2]=j=>l.value="tree")}," Tree ",2),x("button",{class:je(["rounded px-1.5 py-0.5",l.value==="json"?"bg-accent text-foreground":"text-muted-foreground"]),onClick:T[3]||(T[3]=j=>l.value="json")}," JSON ",2)])]),o.value?l.value==="tree"?(k(),I(xe,{key:1},[R(Qs,{modelValue:_(f),"onUpdate:modelValue":T[4]||(T[4]=j=>Ge(f)?f.value=j:null),placeholder:"Search tables & columns…"},null,8,["modelValue"]),_(p).length?(k(),I("div",wS,[(k(!0),I(xe,null,Ve(_(p),j=>(k(),I("div",{key:j.name,class:"overflow-hidden rounded-lg border bg-card"},[x("button",{class:"flex w-full items-center gap-2 px-2.5 py-1.5 text-left text-xs hover:bg-muted/30",onClick:$=>y(j.name)},[R(_(rS),{class:je(["size-3.5 shrink-0 text-muted-foreground transition-transform",b(j.name)&&"rotate-90"])},null,8,["class"]),R(_(Tm),{class:"size-3.5 shrink-0 text-muted-foreground"}),x("span",kS,L(j.name),1),x("span",CS,L(j.columns.length)+" cols",1),g(j)?(k(),I("span",$S,"· view: "+L(j.view_name),1)):se("",!0),x("span",SS,[(k(!0),I(xe,null,Ve(v(j),$=>(k(),ae(jo,{key:$,variant:"muted"},{default:re(()=>[ce(L($),1)]),_:2},1024))),128))])],8,xS),b(j.name)?(k(),I("div",jS,[x("div",ES,[(k(!0),I(xe,null,Ve(j.columns,$=>(k(),I("div",{key:$.name,class:"flex items-center justify-between gap-2"},[x("span",AS,L($.name),1),x("span",TS,L($.type),1)]))),128))]),j.indexes.length?(k(),I("div",IS,[T[7]||(T[7]=x("div",{class:"text-[11px] font-medium text-muted-foreground"},"Indexes",-1)),(k(!0),I(xe,null,Ve(j.indexes,$=>(k(),I("div",{key:$.name,class:"font-mono"},[ce(L($.name)+" ",1),x("span",OS,"("+L(C($.columns))+")",1)]))),128))])):se("",!0)])):se("",!0)]))),128)),o.value.raw_tables.length?(k(),I("div",MS,[T[8]||(T[8]=ce(" Raw tables: ",-1)),x("span",RS,L(o.value.raw_tables.map(j=>j.name).join(", ")),1)])):se("",!0)])):(k(),I("div",_S,L(d.value.length?"No tables match your search.":"No tables."),1))],64)):(k(),I("div",PS,[R(il,{code:h.value,lang:"json"},null,8,["code"])])):(k(),I("div",vS,"Loading schema…"))])]))}}),BS={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function NS(e,t){return k(),I("svg",BS,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M12 12h2v12h-2zm6 0h2v12h-2z"},null,-1),x("path",{fill:"currentColor",d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6Zm4 22V8h16v20Zm4-26h8v2h-8z"},null,-1)])])}const Om=ge({name:"carbon-trash-can",render:NS}),DS={class:"flex h-full min-h-0 flex-col"},FS={class:"flex flex-wrap items-center gap-2 border-b p-2"},zS={class:"flex gap-1"},qS=["onClick"],HS={class:"tabular-nums text-xs text-muted-foreground"},VS={key:0,class:"p-4 text-muted-foreground"},GS={class:"hidden shrink-0 tabular-nums text-muted-foreground/50 @md:inline"},US={class:"truncate"},WS={key:0,class:"text-muted-foreground"},KS=fe({__name:"LogsTab",setup(e){const{logs:t,clearLogs:n}=En(),r=["trace","debug","info","warn","error"],s=H(new Set(r));function o(h){const y=new Set(s.value);y.has(h)?y.delete(h):y.add(h),s.value=y}const a={error:"text-destructive",warn:"text-warning",info:"text-blue-600 dark:text-blue-400",debug:"text-muted-foreground",trace:"text-muted-foreground/60"},i=M(()=>t.value.filter(h=>s.value.has(h.level))),{query:l,results:c}=Js(i,["message"]),u=H(null),d=vc(M(()=>({count:c.value.length,getScrollElement:()=>u.value,estimateSize:()=>22,overscan:16}))),f=M(()=>d.value.getVirtualItems()),p=M(()=>d.value.getTotalSize());function m(h){return h?.map(y=>typeof y=="object"?JSON.stringify(y):String(y)).join(" ")??""}return(h,y)=>(k(),I("div",DS,[x("div",FS,[x("div",zS,[(k(),I(xe,null,Ve(r,b=>x("button",{key:b,class:je(["rounded border px-1.5 py-0.5 text-[10px] font-medium uppercase transition-colors",s.value.has(b)?["bg-accent",a[b]]:"border-transparent text-muted-foreground/40"]),onClick:v=>o(b)},L(b),11,qS)),64))]),R(Qs,{modelValue:_(l),"onUpdate:modelValue":y[0]||(y[0]=b=>Ge(l)?l.value=b:null),placeholder:"Search logs…",class:"w-48 @max-md:order-last @max-md:w-full"},null,8,["modelValue"]),x("span",HS,L(_(c).length),1),R(bn,{size:"sm",variant:"ghost",class:"ml-auto",onClick:y[1]||(y[1]=b=>_(n)())},{default:re(()=>[R(_(Om),{class:"size-3.5"}),y[2]||(y[2]=ce(" Clear",-1))]),_:1})]),x("div",{ref_key:"parentRef",ref:u,class:"min-h-0 flex-1 overflow-auto font-mono text-xs"},[_(c).length?(k(),I("div",{key:1,class:"relative w-full",style:et({height:p.value+"px"})},[(k(!0),I(xe,null,Ve(f.value,b=>(k(),I("div",{key:b.index,class:"absolute left-0 top-0 flex w-full items-baseline gap-2 px-3 leading-[22px]",style:et({height:b.size+"px",transform:`translateY(${b.start}px)`})},[x("span",GS,L(_(Yo)(_(c)[b.index].timestamp)),1),x("span",{class:je(["w-10 shrink-0 font-semibold uppercase",a[_(c)[b.index].level]])},L(_(c)[b.index].level),3),x("span",US,[ce(L(_(c)[b.index].message),1),_(c)[b.index].args?(k(),I("span",WS,L(m(_(c)[b.index].args)),1)):se("",!0)])],4))),128))],4)):(k(),I("div",VS,L(_(t).length?"No logs match the filter.":"No logs yet."),1))],512)]))}}),ZS={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function YS(e,t){return k(),I("svg",ZS,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z"},null,-1)])])}const XS=ge({name:"carbon-sun",render:YS}),JS={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function QS(e,t){return k(),I("svg",JS,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3"},null,-1)])])}const ej=ge({name:"carbon-moon",render:QS}),tj={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function nj(e,t){return k(),I("svg",tj,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M12 29a1 1 0 0 1-.92-.62L6.33 17H2v-2h5a1 1 0 0 1 .92.62L12 25.28l8.06-21.63A1 1 0 0 1 21 3a1 1 0 0 1 .93.68L25.72 15H30v2h-5a1 1 0 0 1-.95-.68L21 7l-8.06 21.35A1 1 0 0 1 12 29"},null,-1)])])}const rj=ge({name:"carbon-activity",render:nj}),sj={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function oj(e,t){return k(),I("svg",sj,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M27 22.14V17a2 2 0 0 0-2-2h-8V9.86a4 4 0 1 0-2 0V15H7a2 2 0 0 0-2 2v5.14a4 4 0 1 0 2 0V17h18v5.14a4 4 0 1 0 2 0M8 26a2 2 0 1 1-2-2a2 2 0 0 1 2 2m6-20a2 2 0 1 1 2 2a2 2 0 0 1-2-2m12 22a2 2 0 1 1 2-2a2 2 0 0 1-2 2"},null,-1)])])}const aj=ge({name:"carbon-flow",render:oj}),ij={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function lj(e,t){return k(),I("svg",ij,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3s-3-1.3-3-3s1.3-3 3-3"},null,-1)])])}const cj=ge({name:"carbon-settings-adjust",render:lj}),uj={viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"};function dj(e,t){return k(),I("svg",uj,[...t[0]||(t[0]=[x("path",{fill:"currentColor",d:"M26 4.01H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-20a2 2 0 0 0-2-2m0 2v4H6v-4Zm-20 20v-14h20v14Z"},null,-1),x("path",{fill:"currentColor",d:"m10.76 16.18l2.82 2.83l-2.82 2.83l1.41 1.41l4.24-4.24l-4.24-4.24z"},null,-1)])])}const pj=ge({name:"carbon-terminal",render:dj}),fj={class:"flex items-center justify-between border-b px-3 py-1.5"},mj={class:"inline-flex items-center gap-1.5"},hj={class:"flex items-center gap-0.5"},gj=["value"],bj=["value"],yj=["disabled"],vj=["aria-label"],_j={key:0,class:"min-h-0 flex-1 overflow-auto"},wj={class:"@max-xl:sr-only"},xj={class:"min-h-0 flex-1 overflow-auto"},ld="powersync-diagnostics-source",cd="powersync-diagnostics-tab",kj=fe({__name:"DiagnosticsPanel",setup(e){const{isDark:t,hostControlled:n,toggle:r}=mc(),{connected:s,sources:o,activeSource:a,selectSource:i}=En(),{syncing:l,clearing:c,syncNow:u,clearAndResync:d}=fm(),f=hc(),p=M(()=>!f.value.includes("requestCheckpoint")||!f.value.includes("clearData")),m=H(!0);$n(()=>setTimeout(()=>m.value=!1,1500));const h=M(()=>o.value!==null&&o.value.length===0),y=M(()=>o.value??[]);function b(J){const Y=J.target.value;try{sessionStorage.setItem(ld,Y)}catch{}i(Y)}Ie(o,J=>{if(J?.length)try{const Y=sessionStorage.getItem(ld);Y&&Y!==a.value?.id&&J.some(K=>K.id===Y)&&i(Y)}catch{}});const v={web:{label:"Web",lang:"javascript",code:`// vite.config.ts: dev only, nothing reaches the production build.
|
|
5
|
+
import powersyncDevtools from '@powersync/diagnostics/vite';
|
|
6
|
+
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
devtools: true,
|
|
9
|
+
plugins: [powersyncDevtools()]
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
// Optional: per-bucket totals from the SQLite core.
|
|
13
|
+
await db.connect(connector, { diagnostics: true });`,link:{href:"https://docs.powersync.com/tools/devtools/vite",label:"Vite setup guide"}},nuxt:{label:"Nuxt",lang:"javascript",code:`// nuxt.config.ts
|
|
14
|
+
export default defineNuxtConfig({
|
|
15
|
+
modules: ['@powersync/nuxt'],
|
|
16
|
+
powersync: { useDiagnostics: true }
|
|
17
|
+
});`,link:{href:"https://docs.powersync.com/tools/devtools/nuxt",label:"Nuxt setup guide"}},node:{label:"Node",lang:"javascript",code:`if (process.env.NODE_ENV !== 'production') {
|
|
18
|
+
const { enablePowerSyncDiagnostics } = await import('@powersync/diagnostics/node');
|
|
19
|
+
const devtools = await enablePowerSyncDiagnostics(db);
|
|
20
|
+
console.log(\`PowerSync DevTools: \${devtools.signInUrl}\`);
|
|
21
|
+
}`,link:{href:"https://docs.powersync.com/tools/devtools/node",label:"Node.js setup guide"}},"react-native":{label:"React Native",lang:"javascript",code:`// metro.config.js: enable Rozenite (React Native DevTools plugins).
|
|
22
|
+
const { withRozenite } = require('@rozenite/metro');
|
|
23
|
+
module.exports = withRozenite(config, {
|
|
24
|
+
enabled: process.env.WITH_ROZENITE === 'true',
|
|
25
|
+
projectType: 'expo' // Expo apps with app.config.ts or app.config.js
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// App root: dev only, a no-op in production builds.
|
|
29
|
+
import { usePowerSyncDevTools } from '@powersync/diagnostics/react-native';
|
|
30
|
+
usePowerSyncDevTools(db);
|
|
31
|
+
|
|
32
|
+
// Optional: per-bucket totals from the SQLite core.
|
|
33
|
+
await db.connect(connector, { diagnostics: true });`,link:{href:"https://docs.powersync.com/tools/devtools-overview",label:"DevTools guide"}},dart:{label:"Dart",note:"Diagnostics are on in debug builds and off in release builds. Run the app and open the PowerSync tab in Flutter DevTools.",link:{href:"https://docs.powersync.com/tools/dart-devtools-extension",label:"Dart & Flutter setup guide"}}},g=$1(),C=M(()=>g.value??[...x1]),S=M(()=>C.value.map(J=>v[J])),T=M(()=>C.value.length>1?"If your app opens a PowerSync database, its state can be inspected here. Diagnostics run in development only; how they are switched on depends on the SDK:":"If your app opens a PowerSync database, its state can be inspected here. Diagnostics run in development only. To switch them on:"),j={web:"Open your app in a browser tab that DevTools trusts.",nuxt:"Open your app in a browser tab that DevTools trusts.",node:"Call enablePowerSyncDiagnostics() in your node app.","react-native":"Run the app with usePowerSyncDevTools(db) in a mounted component.",dart:"Run your app in debug mode."},$=M(()=>`DevTools is connected, but no app is serving a database. ${[...new Set(C.value.map(J=>j[J]))].join(" ")} The view fills in as soon as one attaches.`),B=[{value:"status",label:"Sync Status",icon:rj},{value:"data",label:"Data Inspector",icon:Im},{value:"buckets",label:"Buckets",icon:Da},{value:"streams",label:"Streams",icon:aj},{value:"config",label:"Config",icon:cj},{value:"logs",label:"Logs",icon:pj}];function U(){try{const J=sessionStorage.getItem(cd);if(J&&B.some(Y=>Y.value===J))return J}catch{}return"status"}const V=H(U());return Ie(V,J=>{try{sessionStorage.setItem(cd,J)}catch{}}),(J,Y)=>(k(),I("div",{class:je(["@container flex h-full min-w-0 flex-col overflow-hidden bg-background text-sm text-foreground",{dark:_(t)}])},[x("header",fj,[x("span",mj,[R(fw,{class:"size-4 shrink-0"}),Y[3]||(Y[3]=x("span",{class:"font-semibold tracking-tight"},"PowerSync",-1)),Y[4]||(Y[4]=x("span",{class:"hidden text-xs text-muted-foreground @xs:inline"},"Diagnostics",-1))]),R(_(p_),null,{default:re(()=>[x("div",hj,[y.value.length>1?(k(),I("select",{key:0,class:"mr-1 max-w-40 rounded border bg-background px-1.5 py-0.5 text-xs text-foreground",title:"Attached database","aria-label":"Attached database",value:_(a)?.id,onChange:b},[(k(!0),I(xe,null,Ve(y.value,K=>(k(),I("option",{key:K.id,value:K.id},L(K.id)+L(K.sdk?` · ${K.sdk}`:""),9,bj))),128))],40,gj)):se("",!0),_(s)&&p.value?(k(),I(xe,{key:1},[_(f).includes("requestCheckpoint")?se("",!0):(k(),ae(mi,{key:0,text:"Sync now (request a checkpoint and wait until caught up)"},{default:re(()=>[x("button",{type:"button",class:"rounded p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:opacity-50","aria-label":"Sync now",disabled:_(l),onClick:Y[0]||(Y[0]=(...K)=>_(u)&&_(u)(...K))},[R(_(_m),{class:je(["size-4",_(l)&&"animate-spin"])},null,8,["class"])],8,yj)]),_:1})),_(f).includes("clearData")?se("",!0):(k(),ae(mi,{key:1,text:"Clear & re-sync (wipes local data and download again) Hold to wipe"},{default:re(()=>[R(qw,{"aria-label":"Clear and re-sync (hold to confirm)",hint:"Hold to wipe",disabled:_(c),onConfirm:_(d)},{default:re(()=>[R(_(Om),{class:je(["size-4",_(c)&&"animate-pulse"])},null,8,["class"])]),_:1},8,["disabled","onConfirm"])]),_:1})),Y[5]||(Y[5]=x("span",{class:"mx-0.5 h-4 w-px bg-border","aria-hidden":"true"},null,-1))],64)):se("",!0),_(n)?se("",!0):(k(),ae(mi,{key:2,text:_(t)?"Switch to the light theme":"Switch to the dark theme"},{default:re(()=>[x("button",{type:"button",class:"rounded p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":_(t)?"Switch to light theme":"Switch to dark theme",onClick:Y[1]||(Y[1]=(...K)=>_(r)&&_(r)(...K))},[_(t)?(k(),ae(_(XS),{key:0,class:"size-4"})):(k(),ae(_(ej),{key:1,class:"size-4"}))],8,vj)]),_:1},8,["text"]))])]),_:1})]),R(dw),_(s)?(k(),ae(_(n_),{key:1,modelValue:V.value,"onUpdate:modelValue":Y[2]||(Y[2]=K=>V.value=K),class:"flex min-h-0 flex-1 flex-col"},{default:re(()=>[R(_(o_),{class:"flex gap-0.5 overflow-x-auto border-b px-1.5 @max-xl:justify-around"},{default:re(()=>[(k(),I(xe,null,Ve(B,K=>R(_(i_),{key:K.value,value:K.value,"aria-label":K.label,title:K.label,class:"inline-flex shrink-0 cursor-pointer items-center gap-1.5 whitespace-nowrap border-b-2 border-transparent px-2.5 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground data-[state=active]:border-primary data-[state=active]:text-foreground @max-xl:px-3 @max-xl:py-2"},{default:re(()=>[(k(),ae(qn(K.icon),{class:"size-4 shrink-0 @xl:hidden","aria-hidden":"true"})),x("span",wj,L(K.label),1)]),_:2},1032,["value","aria-label","title"])),64))]),_:1}),x("div",xj,[R(_(Sr),{value:"status",class:"p-3 focus-visible:outline-none"},{default:re(()=>[R(mk)]),_:1}),R(_(Sr),{value:"data",class:"h-full focus-visible:outline-none"},{default:re(()=>[R(Z2)]),_:1}),R(_(Sr),{value:"buckets",class:"p-3 focus-visible:outline-none"},{default:re(()=>[R(l$)]),_:1}),R(_(Sr),{value:"streams",class:"p-3 focus-visible:outline-none"},{default:re(()=>[R(G$)]),_:1}),R(_(Sr),{value:"config",class:"p-3 focus-visible:outline-none"},{default:re(()=>[R(LS)]),_:1}),R(_(Sr),{value:"logs",class:"h-full focus-visible:outline-none"},{default:re(()=>[R(KS)]),_:1})])]),_:1},8,["modelValue"])):(k(),I("div",_j,[m.value&&!h.value?(k(),ae(pi,{key:0,icon:_(gc),spin:"",title:"Connecting to client…",description:"Looking for a PowerSync client with the diagnostics agent attached."},null,8,["icon"])):h.value?(k(),ae(pi,{key:1,icon:_(cl),tone:"warning",title:"No PowerSync database attached",description:$.value},null,8,["icon","description"])):(k(),ae(pi,{key:2,icon:_(cl),title:"No PowerSync database yet",description:T.value},{default:re(()=>[R(Lw,{tabs:S.value},null,8,["tabs"])]),_:1},8,["icon","description"]))]))],2))}});let Ke=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Cj(e){return Cc(e)}function Cc(e){return Array.isArray(e)?$j(e):e instanceof RegExp?e:typeof e=="object"?Sj(e):e}function $j(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Cc(e[n]);return t}function Sj(e){let t={};for(let n in e)t[n]=Cc(e[n]);return t}function Mm(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Rm(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Rm(e.substring(0,e.length-1)):e.substr(~t+1)}var wi=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,bo=class{static hasCaptures(e){return e===null?!1:(wi.lastIndex=0,wi.test(e))}static replaceCaptures(e,t,n){return e.replace(wi,(r,s,o,a)=>{let i=n[parseInt(s||o,10)];if(i){let l=t.substring(i.start,i.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function Pm(e,t){return e<t?-1:e>t?1:0}function Lm(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let s=0;s<n;s++){let o=Pm(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function ud(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Bm(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Nm=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},na=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Aj(e),t)}static createFromParsedTheme(e,t){return Ij(e,t)}_cachedMatchRoot=new Nm(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(r=>jj(e.parent,r.parentScopes));return n?new Dm(n.fontStyle,n.foreground,n.background):null}},xi=class Eo{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Eo(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Eo(n,t[r]);return n}push(t){return new Eo(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function jj(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],s=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],s=!0}for(;e&&!Ej(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ej(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Dm=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Aj(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let s=0,o=t.length;s<o;s++){let a=t[s];if(!a.settings)continue;let i;if(typeof a.scope=="string"){let d=a.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),i=d.split(",")}else Array.isArray(a.scope)?i=a.scope:i=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let d=a.settings.fontStyle.split(" ");for(let f=0,p=d.length;f<p;f++)switch(d[f]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof a.settings.foreground=="string"&&ud(a.settings.foreground)&&(c=a.settings.foreground);let u=null;typeof a.settings.background=="string"&&ud(a.settings.background)&&(u=a.settings.background);for(let d=0,f=i.length;d<f;d++){let p=i[d].trim().split(" "),m=p[p.length-1],h=null;p.length>1&&(h=p.slice(0,p.length-1),h.reverse()),n[r++]=new Tj(m,h,s,l,c,u)}}return n}var Tj=class{constructor(e,t,n,r,s,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=s,this.background=o}},gt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(gt||{});function Ij(e,t){e.sort((l,c)=>{let u=Pm(l.scope,c.scope);return u!==0||(u=Lm(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let n=0,r="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(s=l.background)}let o=new Oj(t),a=new Dm(n,o.getId(r),o.getId(s)),i=new Rj(new yl(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let u=e[l];i.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new na(o,a,i)}var Oj=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Mj=Object.freeze([]),yl=class Fm{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,s,o){this.scopeDepth=t,this.parentScopes=n||Mj,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new Fm(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,s=t.length;r<s;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},Rj=class vl{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,s=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),s,o;if(r===-1?(s=t,o=""):(s=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(vl._cmpBySpecificity),n}insert(t,n,r,s,o,a){if(n===""){this._doInsertHere(t,r,s,o,a);return}let i=n.indexOf("."),l,c;i===-1?(l=n,c=""):(l=n.substring(0,i),c=n.substring(i+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new vl(this._mainRule.clone(),yl.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,c,r,s,o,a)}_doInsertHere(t,n,r,s,o){if(n===null){this._mainRule.acceptOverwrite(t,r,s,o);return}for(let a=0,i=this._rulesWithParentScopes.length;a<i;a++){let l=this._rulesWithParentScopes[a];if(Lm(l.parentScopes,n)===0){l.acceptOverwrite(t,r,s,o);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new yl(t,n,r,s,o))}},Hr=class It{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=It.getLanguageId(t),r=It.getTokenType(t),s=It.getFontStyle(t),o=It.getForeground(t),a=It.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:o,background:a})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,s,o,a,i){let l=It.getLanguageId(t),c=It.getTokenType(t),u=It.containsBalancedBrackets(t)?1:0,d=It.getFontStyle(t),f=It.getForeground(t),p=It.getBackground(t);return n!==0&&(l=n),r!==8&&(c=r),s!==null&&(u=s?1:0),o!==-1&&(d=o),a!==0&&(f=a),i!==0&&(p=i),(l<<0|c<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function ra(e,t){const n=[],r=Pj(e);let s=r.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let c=a();if(n.push({matcher:c,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const l=o();return c=>!!l&&!l(c)}if(s==="("){s=r.next();const l=i();return s===")"&&(s=r.next()),l}if(dd(s)){const l=[];do l.push(s),s=r.next();while(dd(s));return c=>t(l,c)}return null}function a(){const l=[];let c=o();for(;c;)l.push(c),c=o();return u=>l.every(d=>d(u))}function i(){const l=[];let c=a();for(;c&&(l.push(c),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");c=a()}return u=>l.some(d=>d(u))}}function dd(e){return!!e&&!!e.match(/[\w\.:]+/)}function Pj(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function zm(e){typeof e.dispose=="function"&&e.dispose()}var Bs=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Lj=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Bj=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Nj=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Bs(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Bj;for(const n of e)Dj(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Bs){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Dj(e,t,n,r){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Bs?Ao({baseGrammar:o,selfGrammar:s},r):_l(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},r);const a=n.injections(e.scopeName);if(a)for(const i of a)r.add(new Bs(i))}function _l(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];sa([r],t,n)}}function Ao(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&sa(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&sa(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function sa(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?Mm({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&sa(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const a=qm(o);switch(a.kind){case 0:Ao({...t,selfGrammar:t.baseGrammar},n);break;case 1:Ao(t,n);break;case 2:_l(a.ruleName,{...t,repository:s},n);break;case 3:case 4:const i=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(i){const l={baseGrammar:t.baseGrammar,selfGrammar:i,repository:s};a.kind===4?_l(a.ruleName,l,n):Ao(l,n)}else a.kind===4?n.add(new Lj(a.scopeName,a.ruleName)):n.add(new Bs(a.scopeName));break}}}var Fj=class{kind=0},zj=class{kind=1},qj=class{constructor(e){this.ruleName=e}kind=2},Hj=class{constructor(e){this.scopeName=e}kind=3},Vj=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function qm(e){if(e==="$base")return new Fj;if(e==="$self")return new zj;const t=e.indexOf("#");if(t===-1)return new Hj(e);if(t===0)return new qj(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Vj(n,r)}}var Gj=/\\(\d+)/,pd=/\\(\d+)/g,Uj=-1,Hm=-2,eo=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=bo.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=bo.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Rm(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:bo.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:bo.replaceCaptures(this._contentName,e,t)}},Wj=class extends eo{retokenizeCapturedWithRuleId;constructor(e,t,n,r,s){super(e,t,n,r),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},Kj=class extends eo{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,null),this._match=new Ns(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ds,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},fd=class extends eo{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,r),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ds,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},wl=class extends eo{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s,o,a,i,l,c){super(e,t,n,r),this._begin=new Ns(s,this.id),this.beginCaptures=o,this._end=new Ns(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ds;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},oa=class extends eo{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,s,o,a,i,l){super(e,t,n,r),this._begin=new Ns(s,this.id),this.beginCaptures=o,this.whileCaptures=i,this._while=new Ns(a,Hm),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ds;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ds,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},Vm=class dt{static createCaptureRule(t,n,r,s,o){return t.registerRule(a=>new Wj(n,a,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new Kj(t.$vscodeTextmateLocation,t.id,t.name,t.match,dt._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Mm({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new fd(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,dt._compilePatterns(o,n,r))}return t.while?new oa(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,dt._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,dt._compileCaptures(t.whileCaptures||t.captures,n,r),dt._compilePatterns(t.patterns,n,r)):new wl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,dt._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,dt._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,dt._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let s=[];if(t){let o=0;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const i=parseInt(a,10);i>o&&(o=i)}for(let a=0;a<=o;a++)s[a]=null;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const i=parseInt(a,10);let l=0;t[a].patterns&&(l=dt.getCompiledRuleId(t[a],n,r)),s[i]=dt.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,l)}}return s}static _compilePatterns(t,n,r){let s=[];if(t)for(let o=0,a=t.length;o<a;o++){const i=t[o];let l=-1;if(i.include){const c=qm(i.include);switch(c.kind){case 0:case 1:l=dt.getCompiledRuleId(r[i.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=dt.getCompiledRuleId(u,n,r));break;case 3:case 4:const d=c.scopeName,f=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(d,r);if(p)if(f){let m=p.repository[f];m&&(l=dt.getCompiledRuleId(m,n,p.repository))}else l=dt.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else l=dt.getCompiledRuleId(i,n,r);if(l!==-1){const c=n.getRule(l);let u=!1;if((c instanceof fd||c instanceof wl||c instanceof oa)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Ns=class Gm{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let s=0,o=[],a=!1;for(let i=0;i<r;i++)if(t.charAt(i)==="\\"&&i+1<r){const l=t.charAt(i+1);l==="z"?(o.push(t.substring(s,i)),o.push("$(?!\\n)(?<!\\n)"),s=i+2):(l==="A"||l==="G")&&(a=!0),i++}this.hasAnchor=a,s===0?this.source=t:(o.push(t.substring(s,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Gj.test(this.source):this.hasBackReferences=!1}clone(){return new Gm(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>t.substring(s.start,s.end));return pd.lastIndex=0,this.source.replace(pd,(s,o)=>Bm(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],s=[],o,a,i,l;for(o=0,a=this.source.length;o<a;o++)i=this.source.charAt(o),t[o]=i,n[o]=i,r[o]=i,s[o]=i,i==="\\"&&o+1<a&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",s[o+1]="A"):l==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",s[o+1]="G"):(t[o+1]=l,n[o+1]=l,r[o+1]=l,s[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ds=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new md(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(s=>s.resolveAnchors(t,n));return new md(e,r,this._items.map(s=>s.ruleId))}},md=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
34
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ki=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Zj=class xl{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new ki(t,8),this._embeddedLanguagesMatcher=new Yj(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?xl._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ki(0,0);_getBasicScopeAttributes=new Nm(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new ki(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(xl.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Yj=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Bm(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},hd=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Um(e,t,n,r,s,o,a,i){const l=t.content.length;let c=!1,u=-1;if(a){const p=Xj(e,t,n,r,s,o);s=p.stack,r=p.linePos,n=p.isFirstLine,u=p.anchorPosition}const d=Date.now();for(;!c;){if(i!==0&&Date.now()-d>i)return new hd(s,!0);f()}return new hd(s,!1);function f(){const p=Jj(e,t,n,r,s,u);if(!p){o.produce(s,l),c=!0;return}const m=p.captureIndices,h=p.matchedRuleId,y=m&&m.length>0?m[0].end>r:!1;if(h===Uj){const b=s.getRule(e);o.produce(s,m[0].start),s=s.withContentNameScopesList(s.nameScopesList),ms(e,t,n,s,o,b.endCaptures,m),o.produce(s,m[0].end);const v=s;if(s=s.parent,u=v.getAnchorPos(),!y&&v.getEnterPos()===r){s=v,o.produce(s,l),c=!0;return}}else{const b=e.getRule(h);o.produce(s,m[0].start);const v=s,g=b.getName(t.content,m),C=s.contentNameScopesList.pushAttributed(g,e);if(s=s.push(h,r,u,m[0].end===l,null,C,C),b instanceof wl){const S=b;ms(e,t,n,s,o,S.beginCaptures,m),o.produce(s,m[0].end),u=m[0].end;const T=S.getContentName(t.content,m),j=C.pushAttributed(T,e);if(s=s.withContentNameScopesList(j),S.endHasBackReferences&&(s=s.withEndRule(S.getEndWithResolvedBackReferences(t.content,m))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(b instanceof oa){const S=b;ms(e,t,n,s,o,S.beginCaptures,m),o.produce(s,m[0].end),u=m[0].end;const T=S.getContentName(t.content,m),j=C.pushAttributed(T,e);if(s=s.withContentNameScopesList(j),S.whileHasBackReferences&&(s=s.withEndRule(S.getWhileWithResolvedBackReferences(t.content,m))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(ms(e,t,n,s,o,b.captures,m),o.produce(s,m[0].end),s=s.pop(),!y){s=s.safePop(),o.produce(s,l),c=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}function Xj(e,t,n,r,s,o){let a=s.beginRuleCapturedEOL?0:-1;const i=[];for(let l=s;l;l=l.pop()){const c=l.getRule(e);c instanceof oa&&i.push({rule:c,stack:l})}for(let l=i.pop();l;l=i.pop()){const{ruleScanner:c,findOptions:u}=tE(l.rule,e,l.stack.endRule,n,r===a),d=c.findNextMatchSync(t,r,u);if(d){if(d.ruleId!==Hm){s=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(l.stack,d.captureIndices[0].start),ms(e,t,n,l.stack,o,l.rule.whileCaptures,d.captureIndices),o.produce(l.stack,d.captureIndices[0].end),a=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:a,isFirstLine:n}}function Jj(e,t,n,r,s,o){const a=Qj(e,t,n,r,s,o),i=e.getInjections();if(i.length===0)return a;const l=eE(i,e,t,n,r,s,o);if(!l)return a;if(!a)return l;const c=a.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:a}function Qj(e,t,n,r,s,o){const a=s.getRule(e),{ruleScanner:i,findOptions:l}=Wm(a,e,s.endRule,n,r===o),c=i.findNextMatchSync(t,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function eE(e,t,n,r,s,o,a){let i=Number.MAX_VALUE,l=null,c,u=0;const d=o.contentNameScopesList.getScopeNames();for(let f=0,p=e.length;f<p;f++){const m=e[f];if(!m.matcher(d))continue;const h=t.getRule(m.ruleId),{ruleScanner:y,findOptions:b}=Wm(h,t,null,r,s===a),v=y.findNextMatchSync(n,s,b);if(!v)continue;const g=v.captureIndices[0].start;if(!(g>=i)&&(i=g,l=v.captureIndices,c=v.ruleId,u=m.priority,i===s))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function Wm(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function tE(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function ms(e,t,n,r,s,o,a){if(o.length===0)return;const i=t.content,l=Math.min(o.length,a.length),c=[],u=a[0].end;for(let d=0;d<l;d++){const f=o[d];if(f===null)continue;const p=a[d];if(p.length===0)continue;if(p.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,p.start):s.produce(r,p.start),f.retokenizeCapturedWithRuleId){const h=f.getName(i,a),y=r.contentNameScopesList.pushAttributed(h,e),b=f.getContentName(i,a),v=y.pushAttributed(b,e),g=r.push(f.retokenizeCapturedWithRuleId,p.start,-1,!1,null,y,v),C=e.createOnigString(i.substring(0,p.end));Um(e,C,n&&p.start===0,p.start,g,s,!1,0),zm(C);continue}const m=f.getName(i,a);if(m!==null){const h=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(m,e);c.push(new nE(h,p.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var nE=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function rE(e,t,n,r,s,o,a,i){return new oE(e,t,n,r,s,o,a,i)}function gd(e,t,n,r,s){const o=ra(t,aa),a=Vm.getCompiledRuleId(n,r,s.repository);for(const i of o)e.push({debugSelector:t,matcher:i.matcher,ruleId:a,grammar:s,priority:i.priority})}function aa(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let s=n;s<t.length;s++)if(sE(t[s],r))return n=s+1,!0;return!1})}function sE(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var oE=class{constructor(e,t,n,r,s,o,a,i){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=i,this._basicScopeAttributesProvider=new Zj(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=bd(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const c=ra(l,aa);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const s=r.injections;if(s)for(let a in s)gd(t,a,s[a],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(a=>{const i=this.getExternalGrammar(a);if(i){const l=i.injectionSelector;l&&gd(t,l,i,this,i)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=bd(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Vm.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===kl.NULL){s=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),d=Hr.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),f=this.getRule(this._rootId).getName(null,null);let p;f?p=ks.createRootAndLookUpScopeName(f,d,this):p=ks.createRoot("unknown",d),t=new kl(null,this._rootId,-1,-1,!1,null,p,p)}else s=!1,t.reset();e=e+`
|
|
35
|
+
`;const o=this.createOnigString(e),a=o.content.length,i=new iE(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Um(this,o,s,0,t,i,!0,r);return zm(o),{lineLength:a,lineTokens:i,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function bd(e,t){return e=Cj(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var ks=class Wt{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=t?.scopePath??null;for(const o of n)s=xi.push(s,o.scopeNames),r=new Wt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Wt(null,new xi(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new xi(null,t),a=r.themeProvider.themeMatch(o),i=Wt.mergeAttributes(n,s,a);return new Wt(null,o,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Wt.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let s=-1,o=0,a=0;return r!==null&&(s=r.fontStyle,o=r.foregroundId,a=r.backgroundId),Hr.set(t,n.languageId,n.tokenType,null,s,o,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Wt._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=Wt._pushAttributed(s,o,n);return s}static _pushAttributed(t,n,r){const s=r.getMetadataForScope(n),o=t.scopePath.push(n),a=r.themeProvider.themeMatch(o),i=Wt.mergeAttributes(t.tokenAttributes,s,a);return new Wt(t,o,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},kl=class nr{constructor(t,n,r,s,o,a,i,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=i,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}_stackElementBrand=void 0;static NULL=new nr(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:nr._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?ks.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){nr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,a,i){return new nr(this,t,n,r,s,o,a,i)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new nr(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=ks.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new nr(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ks.fromExtension(r,n.contentNameScopesList))}},aE=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ra(n,aa).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ra(n,aa).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},iE=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(r=Hr.set(r,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=Hr.set(r,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},lE=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,rE(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},cE=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new lE(na.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(na.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new aE(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,s){const o=new Nj(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(a=>this._loadSingleGrammar(a.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,n,r,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,s)}},Cl=kl.NULL;const uE=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class to{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}to.prototype.normal={};to.prototype.property={};to.prototype.space=void 0;function Km(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new to(n,r,t)}function $l(e){return e.toLowerCase()}class kt{constructor(t,n){this.attribute=n,this.property=t}}kt.prototype.attribute="";kt.prototype.booleanish=!1;kt.prototype.boolean=!1;kt.prototype.commaOrSpaceSeparated=!1;kt.prototype.commaSeparated=!1;kt.prototype.defined=!1;kt.prototype.mustUseProperty=!1;kt.prototype.number=!1;kt.prototype.overloadedBoolean=!1;kt.prototype.property="";kt.prototype.spaceSeparated=!1;kt.prototype.space=void 0;let dE=0;const Ce=Cr(),Ye=Cr(),Sl=Cr(),q=Cr(),De=Cr(),Dr=Cr(),$t=Cr();function Cr(){return 2**++dE}const jl=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:Ye,commaOrSpaceSeparated:$t,commaSeparated:Dr,number:q,overloadedBoolean:Sl,spaceSeparated:De},Symbol.toStringTag,{value:"Module"})),Ci=Object.keys(jl);class $c extends kt{constructor(t,n,r,s){let o=-1;if(super(t,n),yd(this,"space",s),typeof r=="number")for(;++o<Ci.length;){const a=Ci[o];yd(this,Ci[o],(r&jl[a])===jl[a])}}}$c.prototype.defined=!0;function yd(e,t,n){n&&(e[t]=n)}function Zr(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new $c(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[$l(r)]=r,n[$l(o.attribute)]=r}return new to(t,n,e.space)}const Zm=Zr({properties:{ariaActiveDescendant:null,ariaAtomic:Ye,ariaAutoComplete:null,ariaBusy:Ye,ariaChecked:Ye,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:De,ariaCurrent:null,ariaDescribedBy:De,ariaDetails:null,ariaDisabled:Ye,ariaDropEffect:De,ariaErrorMessage:null,ariaExpanded:Ye,ariaFlowTo:De,ariaGrabbed:Ye,ariaHasPopup:null,ariaHidden:Ye,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:De,ariaLevel:q,ariaLive:null,ariaModal:Ye,ariaMultiLine:Ye,ariaMultiSelectable:Ye,ariaOrientation:null,ariaOwns:De,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:Ye,ariaReadOnly:Ye,ariaRelevant:null,ariaRequired:Ye,ariaRoleDescription:De,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:Ye,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ym(e,t){return t in e?e[t]:t}function Xm(e,t){return Ym(e,t.toLowerCase())}const pE=Zr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dr,acceptCharset:De,accessKey:De,action:null,allow:null,allowFullScreen:Ce,allowPaymentRequest:Ce,allowUserMedia:Ce,alt:null,as:null,async:Ce,autoCapitalize:null,autoComplete:De,autoFocus:Ce,autoPlay:Ce,blocking:De,capture:null,charSet:null,checked:Ce,cite:null,className:De,cols:q,colSpan:null,content:null,contentEditable:Ye,controls:Ce,controlsList:De,coords:q|Dr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ce,defer:Ce,dir:null,dirName:null,disabled:Ce,download:Sl,draggable:Ye,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ce,formTarget:null,headers:De,height:q,hidden:Sl,high:q,href:null,hrefLang:null,htmlFor:De,httpEquiv:De,id:null,imageSizes:null,imageSrcSet:null,inert:Ce,inputMode:null,integrity:null,is:null,isMap:Ce,itemId:null,itemProp:De,itemRef:De,itemScope:Ce,itemType:De,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ce,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:Ce,muted:Ce,name:null,nonce:null,noModule:Ce,noValidate:Ce,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:Ce,optimum:q,pattern:null,ping:De,placeholder:null,playsInline:Ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ce,referrerPolicy:null,rel:De,required:Ce,reversed:Ce,rows:q,rowSpan:q,sandbox:De,scope:null,scoped:Ce,seamless:Ce,selected:Ce,shadowRootClonable:Ce,shadowRootDelegatesFocus:Ce,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:Ye,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:Ce,useMap:null,value:Ye,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:De,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ce,declare:Ce,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:Ce,noHref:Ce,noShade:Ce,noWrap:Ce,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:Ye,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ce,disableRemotePlayback:Ce,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:Xm}),fE=Zr({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:$t,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:De,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:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:Ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,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:Dr,g2:Dr,glyphName:Dr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,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:q,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:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:De,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,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:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ym}),Jm=Zr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Qm=Zr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xm}),eh=Zr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),mE=/[A-Z]/g,vd=/-[a-z]/g,hE=/^data[-\w.:]+$/i;function gE(e,t){const n=$l(t);let r=t,s=kt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&hE.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(vd,yE);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!vd.test(o)){let a=o.replace(mE,bE);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}s=$c}return new s(r,t)}function bE(e){return"-"+e.toLowerCase()}function yE(e){return e.charAt(1).toUpperCase()}const vE=Km([Zm,pE,Jm,Qm,eh],"html"),th=Km([Zm,fE,Jm,Qm,eh],"svg"),_d={}.hasOwnProperty;function _E(e,t){const n=t||{};function r(s,...o){let a=r.invalid;const i=r.handlers;if(s&&_d.call(s,e)){const l=String(s[e]);a=_d.call(i,l)?i[l]:r.unknown}if(a)return a.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const wE=/["&'<>`]/g,xE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kE=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,CE=/[|\\{}()[\]^$+*?.]/g,wd=new WeakMap;function $E(e,t){if(e=e.replace(t.subset?SE(t.subset):wE,r),t.subset||t.escapeOnly)return e;return e.replace(xE,n).replace(kE,r);function n(s,o,a){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),t)}function r(s,o,a){return t.format(s.charCodeAt(0),a.charCodeAt(o+1),t)}}function SE(e){let t=wd.get(e);return t||(t=jE(e),wd.set(e,t)),t}function jE(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(CE,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const EE=/[\dA-Fa-f]/;function AE(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!EE.test(String.fromCharCode(t))?r:r+";"}const TE=/\d/;function IE(e,t,n){const r="&#"+String(e);return n&&t&&!TE.test(String.fromCharCode(t))?r:r+";"}const OE=["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"],$i={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:"€"},ME=["cent","copy","divide","gt","lt","not","para","times"],nh={}.hasOwnProperty,El={};let yo;for(yo in $i)nh.call($i,yo)&&(El[$i[yo]]=yo);const RE=/[^\dA-Za-z]/;function PE(e,t,n,r){const s=String.fromCharCode(e);if(nh.call(El,s)){const o=El[s],a="&"+o;return n&&OE.includes(o)&&!ME.includes(o)&&(!r||t&&t!==61&&RE.test(String.fromCharCode(t)))?a:a+";"}return""}function LE(e,t,n){let r=AE(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=PE(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=IE(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function Fr(e,t){return $E(e,Object.assign({format:LE},t))}const BE=/^>|^->|<!--|-->|--!>|<!-$/g,NE=[">"],DE=["<",">"];function FE(e,t,n,r){return r.settings.bogusComments?"<?"+Fr(e.value,Object.assign({},r.settings.characterReferences,{subset:NE}))+">":"<!--"+e.value.replace(BE,s)+"-->";function s(o){return Fr(o,Object.assign({},r.settings.characterReferences,{subset:DE}))}}function zE(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function xd(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(t);for(;s!==-1;)r++,s=n.indexOf(t,s+t.length);return r}function qE(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function HE(e){return e.join(" ").trim()}const VE=/[ \t\n\f\r]/g;function Sc(e){return typeof e=="object"?e.type==="text"?kd(e.value):!1:kd(e)}function kd(e){return e.replace(VE,"")===""}const nt=sh(1),rh=sh(-1),GE=[];function sh(e){return t;function t(n,r,s){const o=n?n.children:GE;let a=(r||0)+e,i=o[a];if(!s)for(;i&&Sc(i);)a+=e,i=o[a];return i}}const UE={}.hasOwnProperty;function oh(e){return t;function t(n,r,s){return UE.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const jc=oh({body:KE,caption:Si,colgroup:Si,dd:JE,dt:XE,head:Si,html:WE,li:YE,optgroup:QE,option:e3,p:ZE,rp:Cd,rt:Cd,tbody:n3,td:$d,tfoot:r3,th:$d,thead:t3,tr:s3});function Si(e,t,n){const r=nt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Sc(r.value.charAt(0)))}function WE(e,t,n){const r=nt(n,t);return!r||r.type!=="comment"}function KE(e,t,n){const r=nt(n,t);return!r||r.type!=="comment"}function ZE(e,t,n){const r=nt(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function YE(e,t,n){const r=nt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function XE(e,t,n){const r=nt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function JE(e,t,n){const r=nt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Cd(e,t,n){const r=nt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function QE(e,t,n){const r=nt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function e3(e,t,n){const r=nt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function t3(e,t,n){const r=nt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function n3(e,t,n){const r=nt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function r3(e,t,n){return!nt(n,t)}function s3(e,t,n){const r=nt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function $d(e,t,n){const r=nt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const o3=oh({body:l3,colgroup:c3,head:i3,html:a3,tbody:u3});function a3(e){const t=nt(e,-1);return!t||t.type!=="comment"}function i3(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function l3(e){const t=nt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Sc(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function c3(e,t,n){const r=rh(n,t),s=nt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&jc(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function u3(e,t,n){const r=rh(n,t),s=nt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&jc(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const vo={name:[[`
|
|
36
|
+
\f\r &/=>`.split(""),`
|
|
37
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
38
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
39
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
40
|
+
\f\r &>`.split(""),`\0
|
|
41
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
42
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
43
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function d3(e,t,n,r){const s=r.schema,o=s.space==="svg"?!1:r.settings.omitOptionalTags;let a=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const i=[];let l;s.space==="html"&&e.tagName==="svg"&&(r.schema=th);const c=p3(r,e.properties),u=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,u&&(a=!1),(c||!o||!o3(e,t,n))&&(i.push("<",e.tagName,c?" "+c:""),a&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&i.push(" "),i.push("/")),i.push(">")),i.push(u),!a&&(!o||!jc(e,t,n))&&i.push("</"+e.tagName+">"),i.join("")}function p3(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=f3(e,s,t[s]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function f3(e,t,n){const r=gE(e.schema,t),s=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let a=e.quote,i;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=Fr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:vo.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?qE:HE)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(i=Fr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:vo.unquoted[s][o]}))),i!==n&&(e.settings.quoteSmart&&xd(n,a)>xd(n,e.alternative)&&(a=e.alternative),i=a+Fr(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?vo.single:vo.double)[s][o],attribute:!0}))+a),l+(i&&"="+i))}const m3=["<","&"];function ah(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Fr(e.value,Object.assign({},r.settings.characterReferences,{subset:m3}))}function h3(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ah(e,t,n,r)}function g3(e,t,n,r){return r.all(e)}const b3=_E("type",{invalid:y3,unknown:v3,handlers:{comment:FE,doctype:zE,element:d3,raw:h3,root:g3,text:ah}});function y3(e){throw new Error("Expected node, not `"+e+"`")}function v3(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const _3={},w3={},x3=[];function k3(e,t){const n=t||_3,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:C3,all:$3,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||uE,characterReferences:n.characterReferences||w3,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?th:vE,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function C3(e,t,n){return b3(e,t,n,this)}function $3(e){const t=[],n=e&&e.children||x3;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Fs(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function yn(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function ih(e){return Array.isArray(e)?e:[e]}async function Ec(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Fa(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Ac(e){return e==="ansi"||Fa(e)}function za(e){return e==="none"}function Tc(e){return za(e)}function Ic(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function no(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let o=0;o<n.length;o+=2){const a=t?n[o]+(n[o+1]||""):n[o];s.push([a,r]),r+=n[o].length,r+=n[o+1]?.length||0}return s}function lh(e){const t=no(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,a=0;for(const i of t){if(o<i.length)break;o-=i.length,a++}return{line:a,character:o}}function r(s,o){let a=0;for(let i=0;i<s;i++)a+=t[i].length;return a+=o,a}return{lines:t,indexToPos:n,posToIndex:r}}function S3(e,t,n){const r=new Set;for(const o of e.matchAll(/:?lang=["']([^"']+)["']/g)){const a=o[1].toLowerCase().trim();a&&r.add(a)}for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g)){const a=o[1].toLowerCase().trim();a&&r.add(a)}for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g)){const a=o[1].toLowerCase().trim();a&&r.add(a)}for(const o of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const a=o[1].toLowerCase().trim(),i=a.includes("/")?a.split("/").pop():a;i&&r.add(i)}if(!n)return Array.from(r);const s=n.getBundledLanguages();return Array.from(r).filter(o=>o&&s[o])}const Oc="light-dark()",j3=["color","background-color"];function ch(e,t){let n=0;const r=[];for(const s of t)s>n&&r.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function uh(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,s)=>r-s);return n.length?e.map(r=>r.flatMap(s=>{const o=n.filter(a=>s.offset<a&&a<s.offset+s.content.length).map(a=>a-s.offset).sort((a,i)=>a-i);return o.length?ch(s,o):s})):e}function dh(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(u=>zs(e.variants[u])),i=new Set(a.flatMap(u=>Object.keys(u))),l={},c=(u,d)=>{const f=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return n+t[u]+(d==="color"?"":f)};return a.forEach((u,d)=>{for(const f of i){const p=u[f]||"inherit";if(d===0&&r&&j3.includes(f))if(r===Oc&&a.length>1){const m=t.findIndex(v=>v==="light"),h=t.findIndex(v=>v==="dark");if(m===-1||h===-1)throw new Ke('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=a[m][f]||"inherit",b=a[h][f]||"inherit";l[f]=`light-dark(${y}, ${b})`,s==="css-vars"&&(l[c(d,f)]=p)}else l[f]=p;else s==="css-vars"&&(l[c(d,f)]=p)}}),o.htmlStyle=l,o}function zs(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle>.Italic&&(t["font-style"]="italic"),e.fontStyle>.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle>.Underline&&n.push("underline"),e.fontStyle>.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function ia(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const ph=new WeakMap;function qa(e,t){ph.set(e,t)}function qs(e){return ph.get(e)}class Yr{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Yr(Object.fromEntries(ih(n).map(r=>[r,Cl])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,s]=t;this.lang=r,this._stacks={[s]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return E3(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function E3(e){const t=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);const o=s?.nameScopesList?.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function A3(e,t){if(!(e instanceof Yr))throw new Ke("Invalid grammar state");return e.getInternalStack(t)}function fh(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new Ke(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...s.indexToPos(a),offset:a}}else{const i=s.lines[a.line];if(i===void 0)throw new Ke(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${s.lines.length}`);let l=a.character;if(l<0&&(l=i.length+l),l<0||l>i.length)throw new Ke(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${i.length}`);return{...a,character:l,offset:s.posToIndex(a.line,l)}}};const s=lh(n.source),o=(n.options.decorations||[]).map(a=>({...a,start:r(a.start),end:r(a.end)}));T3(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return uh(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),s=Array.from(n.children).filter(u=>u.type==="element"&&u.tagName==="span");if(s.length!==r.converter.lines.length)throw new Ke(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(u,d,f,p){const m=s[u];let h="",y=-1,b=-1;if(d===0&&(y=0),f===0&&(b=0),f===Number.POSITIVE_INFINITY&&(b=m.children.length),y===-1||b===-1)for(let g=0;g<m.children.length;g++)h+=mh(m.children[g]),y===-1&&h.length===d&&(y=g+1),b===-1&&h.length===f&&(b=g+1);if(y===-1)throw new Ke(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(b===-1)throw new Ke(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const v=m.children.slice(y,b);if(!p.alwaysWrap&&v.length===m.children.length)i(m,p,"line");else if(!p.alwaysWrap&&v.length===1&&v[0].type==="element")i(v[0],p,"token");else{const g={type:"element",tagName:"span",properties:{},children:v};i(g,p,"wrapper"),m.children.splice(y,v.length,g)}}function a(u,d){s[u]=i(s[u],d,"line")}function i(u,d,f){const p=d.properties||{},m=d.transform||(h=>h);return u.tagName=d.tagName||"span",u.properties={...u.properties,...p,class:u.properties.class},d.properties?.class&&Ic(u,d.properties.class),u=m(u,f)||u,u}const l=[],c=r.decorations.sort((u,d)=>d.start.offset-u.start.offset||u.end.offset-d.end.offset);for(const u of c){const{start:d,end:f}=u;if(d.line===f.line)o(d.line,d.character,f.character,u);else if(d.line<f.line){o(d.line,d.character,Number.POSITIVE_INFINITY,u);for(let p=d.line+1;p<f.line;p++)l.unshift(()=>a(p,u));o(f.line,0,f.character,u)}}l.forEach(u=>u())}}}function T3(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ke(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const s=e[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,a=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,i=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||a||i||l){if(o&&a||i&&l||i&&n.start.offset===n.end.offset||a&&s.start.offset===s.end.offset)continue;throw new Ke(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function mh(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(mh).join(""):""}const I3=[fh()];function la(e){const t=O3(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...I3]}function O3(e){const t=[],n=[],r=[];for(const s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:t,post:n,normal:r}}var cr=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],ji={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function M3(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Sd(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function R3(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)ji[r]&&t.push({type:"setDecoration",value:ji[r]});else if(r<=29){const s=ji[r-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:cr[r-30]}});else if(r===38){const s=Sd(e);s&&t.push({type:"setForegroundColor",value:s})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:cr[r-40]}});else if(r===48){const s=Sd(e);s&&t.push({type:"setBackgroundColor",value:s})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:cr[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:cr[r-100+8]}})}return t}function P3(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const a=M3(r,o),i=a.sequence?r.substring(o,a.startPosition):r.substring(o);if(i.length>0&&s.push({value:i,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const l=R3(a.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}o=a.position}while(o<r.length);return s}}}var L3={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function B3(e=L3){function t(i){return e[i]}function n(i){return`#${i.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let c=0;c<cr.length;c++)r.push(t(cr[c]));let i=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let d=0;d<6;d++)r.push(n([i[c],i[u],i[d]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function o(i){return s()[i]}function a(i){switch(i.type){case"named":return t(i.name);case"rgb":return n(i.rgb);case"table":return o(i.index)}}return{value:a}}const N3={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function hh(e,t,n){const r=Fs(e,n),s=no(t),o=Object.fromEntries(cr.map(l=>{const c=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,u=e.colors?.[c];return[l,u||N3[l]]})),a=B3(o),i=P3();return s.map(l=>i.parse(l[0]).map(c=>{let u,d;c.decorations.has("reverse")?(u=c.background?a.value(c.background):e.bg,d=c.foreground?a.value(c.foreground):e.fg):(u=c.foreground?a.value(c.foreground):e.fg,d=c.background?a.value(c.background):void 0),u=yn(u,r),d=yn(d,r),c.decorations.has("dim")&&(u=D3(u));let f=gt.None;return c.decorations.has("bold")&&(f|=gt.Bold),c.decorations.has("italic")&&(f|=gt.Italic),c.decorations.has("underline")&&(f|=gt.Underline),c.decorations.has("strikethrough")&&(f|=gt.Strikethrough),{content:c.value,offset:l[1],color:u,bgColor:d,fontStyle:f}}))}function D3(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const s=r[0],o=r[1],a=r[2],i=r[3],l=Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0");return`#${s}${s}${o}${o}${a}${a}${l}`}else if(r.length===3){const s=r[0],o=r[1],a=r[2];return`#${s}${s}${o}${o}${a}${a}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function ro(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,s=e.resolveLangAlias(n.lang||"text");if(Fa(s)||za(r))return no(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:a}=e.setTheme(r);if(s==="ansi")return hh(o,t,n);const i=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==i.name)throw new Ke(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ke(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return bh(t,i,o,a,n)}function gh(...e){if(e.length===2)return qs(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(Fa(s)||za(o))throw new Ke("Plain language does not have grammar state");if(s==="ansi")throw new Ke("ANSI language does not have grammar state");const{theme:a,colorMap:i}=t.setTheme(o),l=t.getLanguage(s);return new Yr(Mc(n,l,a,i,r).stateStack,l.name,a.name)}function bh(e,t,n,r,s){const o=Mc(e,t,n,r,s),a=new Yr(o.stateStack,t.name,n.name);return qa(o.tokens,a),o.tokens}function Mc(e,t,n,r,s){const o=Fs(n,s),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:i=500}=s,l=no(e);let c=s.grammarState?A3(s.grammarState,n.name)??Cl:s.grammarContextCode!=null?Mc(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:Cl,u=[];const d=[];for(let f=0,p=l.length;f<p;f++){const[m,h]=l[f];if(m===""){u=[],d.push([]);continue}if(a>0&&m.length>=a){u=[],d.push([{content:m,offset:h,color:"",fontStyle:0}]);continue}let y,b,v;s.includeExplanation&&(y=t.tokenizeLine(m,c,i),b=y.tokens,v=0);const g=t.tokenizeLine2(m,c,i),C=g.tokens.length/2;for(let S=0;S<C;S++){const T=g.tokens[2*S],j=S+1<C?g.tokens[2*S+2]:m.length;if(T===j)continue;const $=g.tokens[2*S+1],B=yn(r[Hr.getForeground($)],o),U=Hr.getFontStyle($),V={content:m.substring(T,j),offset:h+T,color:B,fontStyle:U};if(s.includeExplanation){const J=[];if(s.includeExplanation!=="scopeName")for(const K of n.settings){let be;switch(typeof K.scope){case"string":be=K.scope.split(/,/).map(ie=>ie.trim());break;case"object":be=K.scope;break;default:continue}J.push({settings:K,selectors:be.map(ie=>ie.split(/ /))})}V.explanation=[];let Y=0;for(;T+Y<j;){const K=b[v],be=m.substring(K.startIndex,K.endIndex);Y+=be.length,V.explanation.push({content:be,scopes:s.includeExplanation==="scopeName"?F3(K.scopes):z3(J,K.scopes)}),v+=1}}u.push(V)}d.push(u),u=[],c=g.ruleStack}return{tokens:d,stateStack:c}}function F3(e){return e.map(t=>({scopeName:t}))}function z3(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:H3(e,o,t.slice(0,r))}}return n}function jd(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function q3(e,t,n){if(!jd(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)jd(e[r],n[s])&&(r-=1),s-=1;return r===-1}function H3(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const a of s)if(q3(a,t,n)){r.push(o);break}return r}function Ha(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),s=r.map(l=>{const c=ro(e,t,{...n,theme:l.theme}),u=qs(c),d=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:d}}),o=V3(...s.map(l=>l.tokens)),a=o[0].map((l,c)=>l.map((u,d)=>{const f={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(f.explanation=u.explanation),o.forEach((p,m)=>{const{content:h,explanation:y,offset:b,...v}=p[c][d];f.variants[r[m].color]=v}),f})),i=s[0].state?new Yr(Object.fromEntries(s.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),s[0].state.lang):void 0;return i&&qa(a,i),a}function V3(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const s=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,c)=>l.push(o[c]));const a=s.map(()=>0),i=s.map(l=>l[0]);for(;i.every(l=>l);){const l=Math.min(...i.map(c=>c.content.length));for(let c=0;c<n;c++){const u=i[c];u.content.length===l?(o[c].push(u),a[c]+=1,i[c]=s[c][a[c]]):(o[c].push({...u,content:u.content.slice(0,l)}),i[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return t}function Vr(e,t,n){let r,s,o,a,i,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=n,f=Object.entries(n.themes).filter(b=>b[1]).map(b=>({color:b[0],theme:b[1]})).sort((b,v)=>b.color===c?-1:v.color===c?1:0);if(f.length===0)throw new Ke("`themes` option must not be empty");const p=Ha(e,t,n);if(l=qs(p),c&&Oc!==c&&!f.find(b=>b.color===c))throw new Ke(`\`themes\` option must contain the defaultColor key \`${c}\``);const m=f.map(b=>e.getTheme(b.theme)),h=f.map(b=>b.color);o=p.map(b=>b.map(v=>dh(v,h,u,c,d))),l&&qa(o,l);const y=f.map(b=>Fs(b.theme,n));s=Ed(f,m,y,u,c,"fg",d),r=Ed(f,m,y,u,c,"bg",d),a=`shiki-themes ${m.map(b=>b.name).join(" ")}`,i=c?void 0:[s,r].join(";")}else if("theme"in n){const c=Fs(n.theme,n);o=ro(e,t,n);const u=e.getTheme(n.theme);r=yn(u.bg,c),s=yn(u.fg,c),a=u.name,l=qs(o)}else throw new Ke("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:a,rootStyle:i,grammarState:l}}function Ed(e,t,n,r,s,o,a){return e.map((i,l)=>{const c=yn(t[l][o],n[l])||"inherit",u=`${r+i.color}${o==="bg"?"-bg":""}:${c}`;if(l===0&&s){if(s===Oc&&e.length>1){const d=e.findIndex(h=>h.color==="light"),f=e.findIndex(h=>h.color==="dark");if(d===-1||f===-1)throw new Ke('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const p=yn(t[d][o],n[d])||"inherit",m=yn(t[f][o],n[f])||"inherit";return`light-dark(${p}, ${m});${u}`}return c}return a==="css-vars"?u:null}).filter(i=>!!i).join(";")}function Gr(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>Gr(e,s,o),codeToTokens:(s,o)=>Vr(e,s,o)}){let s=t;for(const m of la(n))s=m.preprocess?.call(r,s,n)||s;let{tokens:o,fg:a,bg:i,themeName:l,rootStyle:c,grammarState:u}=Vr(e,s,n);const{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?o=G3(o):d==="never"&&(o=U3(o)),f&&(o=W3(o));const p={...r,get source(){return s}};for(const m of la(n))o=m.tokens?.call(p,o)||o;return yh(o,{...n,fg:a,bg:i,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},p,u)}function yh(e,t,n,r=qs(e)){const s=la(t),o=[],a={type:"root",children:[]},{structure:i="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(const[h,y]of Object.entries(t.meta||{}))h.startsWith("_")||(c[h]=y);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:o};const f=[],p={...n,structure:i,addClassToHast:Ic,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((h,y)=>{y&&(i==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):i==="classic"&&o.push({type:"text",value:`
|
|
44
|
+
`}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},v=0;for(const g of h){let C={type:"element",tagName:"span",properties:{...g.htmlAttrs},children:[{type:"text",value:g.content}]};const S=ia(g.htmlStyle||zs(g));S&&(C.properties.style=S);for(const T of s)C=T?.span?.call(p,C,y+1,v,b,g)||C;i==="inline"?a.children.push(C):i==="classic"&&b.children.push(C),v+=g.content.length}if(i==="classic"){for(const g of s)b=g?.line?.call(p,b,y+1)||b;f.push(b),o.push(b)}else i==="inline"&&f.push(b)}),i==="classic"){for(const h of s)d=h?.code?.call(p,d)||d;u.children.push(d);for(const h of s)u=h?.pre?.call(p,u)||u;a.children.push(u)}else if(i==="inline"){const h=[];let y={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const v of a.children)v.type==="element"&&v.tagName==="br"?(h.push(y),y={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(v.type==="element"||v.type==="text")&&y.children.push(v);h.push(y);let b={type:"element",tagName:"code",properties:{},children:h};for(const v of s)b=v?.code?.call(p,b)||b;a.children=[];for(let v=0;v<b.children.length;v++){v>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const g=b.children[v];g.type==="element"&&a.children.push(...g.children)}}let m=a;for(const h of s)m=h?.root?.call(p,m)||m;return r&&qa(m,r),m}function G3(e){return e.map(t=>{const n=[];let r="",s;return t.forEach((o,a)=>{const i=!(o.fontStyle&&(o.fontStyle>.Underline||o.fontStyle>.Strikethrough));i&&o.content.match(/^\s+$/)&&t[a+1]?(s===void 0&&(s=o.offset),r+=o.content):r?(i?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=void 0,r=""):n.push(o)}),n})}function U3(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,s,o,a]=r;if(!s&&!a)return n;const i=[{...n,offset:n.offset+s.length,content:o}];return s&&i.unshift({content:s,offset:n.offset}),a&&i.push({content:a,offset:n.offset+s.length+o.length}),i}))}function W3(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const s=n[n.length-1],o=ia(s.htmlStyle||zs(s)),a=ia(r.htmlStyle||zs(r)),i=s.fontStyle&&(s.fontStyle>.Underline||s.fontStyle>.Strikethrough),l=r.fontStyle&&(r.fontStyle>.Underline||r.fontStyle>.Strikethrough);!i&&!l&&o===a?s.content+=r.content:n.push({...r})}return n})}const vh=k3;function Rc(e,t,n){const r={meta:{},options:n,codeToHast:(o,a)=>Gr(e,o,a),codeToTokens:(o,a)=>Vr(e,o,a)};let s=vh(Gr(e,t,n,r));for(const o of la(n))s=o.postprocess?.call(r,s,n)||s;return s}const Ad={light:"#333333",dark:"#bbbbbb"},Td={light:"#fffffe",dark:"#1e1e1e"},Id="__shiki_resolved";function Va(e){if(e?.[Id])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const i=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;i?.settings?.foreground&&(r=i.settings.foreground),i?.settings?.background&&(n=i.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?Ad.light:Ad.dark),n||(n=t.type==="light"?Td.light:Td.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function a(i){if(o.has(i))return o.get(i);s+=1;const l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?a(i):(o.set(i,l),l)}t.settings=t.settings.map(i=>{const l=i.settings?.foreground&&!i.settings.foreground.startsWith("#"),c=i.settings?.background&&!i.settings.background.startsWith("#");if(!l&&!c)return i;const u={...i,settings:{...i.settings}};if(l){const d=a(i.settings.foreground);t.colorReplacements[d]=i.settings.foreground,u.settings.foreground=d}if(c){const d=a(i.settings.background);t.colorReplacements[d]=i.settings.background,u.settings.background=d}return u});for(const i of Object.keys(t.colors||{}))if((i==="editor.foreground"||i==="editor.background"||i.startsWith("terminal.ansi"))&&!t.colors[i]?.startsWith("#")){const l=a(t.colors[i]);t.colorReplacements[l]=t.colors[i],t.colors[i]=l}return Object.defineProperty(t,Id,{enumerable:!1,writable:!1,value:!0}),t}async function _h(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Ac(t)).map(async t=>await Ec(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function wh(e){return(await Promise.all(e.map(async t=>Tc(t)?null:Va(await Ec(t))))).filter(t=>!!t)}let To=3,xh=!1;function K3(e=!0,t=!1){To=e,xh=t}function kh(e,t=3){if(To&&!(typeof To=="number"&&t>To)){if(xh)throw new Error(`[SHIKI DEPRECATE]: ${e}`);console.trace(`[SHIKI DEPRECATE]: ${e}`)}}class Rr extends Error{constructor(t){super(t),this.name="ShikiError"}}function Ch(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Rr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class Z3 extends cE{constructor(t,n,r,s={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=s,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=Va(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=na.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Ch(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const s=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(s.name=t.name,this._resolvedGrammars.set(t.name,s),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const s of t)this.resolveEmbeddedLanguages(s);const n=Array.from(this._langGraph.entries()),r=n.filter(([s,o])=>!o);if(r.length){const s=n.filter(([o,a])=>a?(a.embeddedLanguages||a.embeddedLangs)?.some(i=>r.map(([l])=>l).includes(i)):!1).filter(o=>!r.includes(o));throw new Rr(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${s.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[s,o]of n)this._resolver.addLanguage(o);for(const[s,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class Y3{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let os=0;function Pc(e){os+=1,e.warnings!==!1&&os>=10&&os%10===0&&console.warn(`[Shiki] ${os} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Rr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Va),s=new Y3(e.engine,n),o=new Z3(s,r,n,e.langAlias);let a;function i(g){return Ch(g,e.langAlias)}function l(g){b();const C=o.getGrammar(typeof g=="string"?g:g.name);if(!C)throw new Rr(`Language \`${g}\` not found, you may need to load it first`);return C}function c(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const C=o.getTheme(g);if(!C)throw new Rr(`Theme \`${g}\` not found, you may need to load it first`);return C}function u(g){b();const C=c(g);a!==g&&(o.setTheme(C),a=g);const S=o.getColorMap();return{theme:C,colorMap:S}}function d(){return b(),o.getLoadedThemes()}function f(){return b(),o.getLoadedLanguages()}function p(...g){b(),o.loadLanguages(g.flat(1))}async function m(...g){return p(await _h(g))}function h(...g){b();for(const C of g.flat(1))o.loadTheme(C)}async function y(...g){return b(),h(await wh(g))}function b(){if(t)throw new Rr("Shiki instance has been disposed")}function v(){t||(t=!0,o.dispose(),os-=1)}return{setTheme:u,getTheme:c,getLanguage:l,getLoadedThemes:d,getLoadedLanguages:f,resolveLangAlias:i,loadLanguage:m,loadLanguageSync:p,loadTheme:y,loadThemeSync:h,dispose:v,[Symbol.dispose]:v}}async function $h(e){e.engine||kh("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([wh(e.themes||[]),_h(e.langs||[]),e.engine]);return Pc({...e,themes:t,langs:n,engine:r})}async function Lc(e){const t=await $h(e);return{getLastGrammarState:(...n)=>gh(t,...n),codeToTokensBase:(n,r)=>ro(t,n,r),codeToTokensWithThemes:(n,r)=>Ha(t,n,r),codeToTokens:(n,r)=>Vr(t,n,r),codeToHast:(n,r)=>Gr(t,n,r),codeToHtml:(n,r)=>Rc(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function X3(e){const t=Pc(e);return{getLastGrammarState:(...n)=>gh(t,...n),codeToTokensBase:(n,r)=>ro(t,n,r),codeToTokensWithThemes:(n,r)=>Ha(t,n,r),codeToTokens:(n,r)=>Vr(t,n,r),codeToHast:(n,r)=>Gr(t,n,r),codeToHtml:(n,r)=>Rc(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Sh(e){let t;async function n(r){if(t){const s=await t;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}const J3=Sh(Lc);function jh(e){const t=e.langs,n=e.themes,r=e.engine;async function s(o){function a(d){if(typeof d=="string"){if(d=o.langAlias?.[d]||d,Ac(d))return[];const f=t[d];if(!f)throw new Ke(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return f}return d}function i(d){if(Tc(d))return"none";if(typeof d=="string"){const f=n[d];if(!f)throw new Ke(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return f}return d}const l=(o.themes??[]).map(d=>i(d)),c=(o.langs??[]).map(d=>a(d)),u=await Lc({engine:o.engine??r(),...o,themes:l,langs:c});return{...u,loadLanguage(...d){return u.loadLanguage(...d.map(a))},loadTheme(...d){return u.loadTheme(...d.map(i))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return s}function Eh(e){let t;async function n(r={}){if(t){const s=await t;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}else{t=e({...r,themes:[],langs:[]});const s=await t;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}}return n}function Q3(e,t){const n=Eh(e);async function r(s,o){const a=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),i=await t?.guessEmbeddedLanguages?.(s,o.lang,a);return i&&await a.loadLanguage(...i),a}return{getSingletonHighlighter(s){return n(s)},async codeToHtml(s,o){return(await r(s,o)).codeToHtml(s,o)},async codeToHast(s,o){return(await r(s,o)).codeToHast(s,o)},async codeToTokens(s,o){return(await r(s,o)).codeToTokens(s,o)},async codeToTokensBase(s,o){return(await r(s,o)).codeToTokensBase(s,o)},async codeToTokensWithThemes(s,o){return(await r(s,o)).codeToTokensWithThemes(s,o)},async getLastGrammarState(s,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(s,o)}}}const eA=jh;function tA(e={}){const{name:t="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=e,s=a=>e.variableDefaults?.[a]?`var(${n}${a}, ${e.variableDefaults[a]})`:`var(${n}${a})`,o={name:t,type:"dark",colors:{"editor.foreground":s("foreground"),"editor.background":s("background"),"terminal.ansiBlack":s("ansi-black"),"terminal.ansiRed":s("ansi-red"),"terminal.ansiGreen":s("ansi-green"),"terminal.ansiYellow":s("ansi-yellow"),"terminal.ansiBlue":s("ansi-blue"),"terminal.ansiMagenta":s("ansi-magenta"),"terminal.ansiCyan":s("ansi-cyan"),"terminal.ansiWhite":s("ansi-white"),"terminal.ansiBrightBlack":s("ansi-bright-black"),"terminal.ansiBrightRed":s("ansi-bright-red"),"terminal.ansiBrightGreen":s("ansi-bright-green"),"terminal.ansiBrightYellow":s("ansi-bright-yellow"),"terminal.ansiBrightBlue":s("ansi-bright-blue"),"terminal.ansiBrightMagenta":s("ansi-bright-magenta"),"terminal.ansiBrightCyan":s("ansi-bright-cyan"),"terminal.ansiBrightWhite":s("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:s("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:s("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:s("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:s("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:s("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:s("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:s("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:s("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:s("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:s("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:s("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:s("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:s("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:s("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:s("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:s("token-changed")}}]};return r||(o.tokenColors=o.tokenColors?.map(a=>(a.settings?.fontStyle&&delete a.settings.fontStyle,a))),o}const nA=Object.freeze(Object.defineProperty({__proto__:null,ShikiError:Ke,addClassToHast:Ic,applyColorReplacements:yn,codeToHast:Gr,codeToHtml:Rc,codeToTokens:Vr,codeToTokensBase:ro,codeToTokensWithThemes:Ha,createBundledHighlighter:jh,createCssVariablesTheme:tA,createHighlighterCore:Lc,createHighlighterCoreSync:X3,createPositionConverter:lh,createShikiInternal:$h,createShikiInternalSync:Pc,createSingletonShorthands:Q3,createdBundledHighlighter:eA,enableDeprecationWarnings:K3,flatTokenVariants:dh,getSingletonHighlighterCore:J3,getTokenStyleObject:zs,guessEmbeddedLanguages:S3,hastToHtml:vh,isNoneTheme:za,isPlainLang:Fa,isSpecialLang:Ac,isSpecialTheme:Tc,makeSingletonHighlighter:Eh,makeSingletonHighlighterCore:Sh,normalizeGetter:Ec,normalizeTheme:Va,resolveColorReplacements:Fs,splitLines:no,splitToken:ch,splitTokens:uh,stringifyTokenStyle:ia,toArray:ih,tokenizeAnsiWithTheme:hh,tokenizeWithTheme:bh,tokensToHast:yh,transformerDecorations:fh,warnDeprecated:kh},Symbol.toStringTag,{value:"Module"}));function Xr(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function rA(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const Bc=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),ot=String.raw;function Jr(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Ah=ot`\[\^?`,Th=`c.? | C(?:-.?)?|${ot`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${ot`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${ot`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${ot`o\{[^\}]*\}?`}|${ot`\d{1,3}`}`,Nc=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,_o=new RegExp(ot`
|
|
45
|
+
\\ (?:
|
|
46
|
+
${Th}
|
|
47
|
+
| [gk]<[^>]*>?
|
|
48
|
+
| [gk]'[^']*'?
|
|
49
|
+
| .
|
|
50
|
+
)
|
|
51
|
+
| \( (?:
|
|
52
|
+
\? (?:
|
|
53
|
+
[:=!>({]
|
|
54
|
+
| <[=!]
|
|
55
|
+
| <[^>]*>
|
|
56
|
+
| '[^']*'
|
|
57
|
+
| ~\|?
|
|
58
|
+
| #(?:[^)\\]|\\.?)*
|
|
59
|
+
| [^:)]*[:)]
|
|
60
|
+
)?
|
|
61
|
+
| \*[^\)]*\)?
|
|
62
|
+
)?
|
|
63
|
+
| (?:${Nc.source})+
|
|
64
|
+
| ${Ah}
|
|
65
|
+
| .
|
|
66
|
+
`.replace(/\s+/g,""),"gsu"),Ei=new RegExp(ot`
|
|
67
|
+
\\ (?:
|
|
68
|
+
${Th}
|
|
69
|
+
| .
|
|
70
|
+
)
|
|
71
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
72
|
+
| ${Ah}
|
|
73
|
+
| &&
|
|
74
|
+
| .
|
|
75
|
+
`.replace(/\s+/g,""),"gsu");function sA(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=kA(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return s.at(-1)},numOpenGroups:0,popModX(){s.pop()},pushModX(d){s.push(d)},replaceCurrentModX(d){s[s.length-1]=d},singleline:n.rules.singleline};let a=[],i;for(_o.lastIndex=0;i=_o.exec(e);){const d=oA(o,e,i[0],_o.lastIndex);d.tokens?a.push(...d.tokens):d.token&&a.push(d.token),d.lastIndex!==void 0&&(_o.lastIndex=d.lastIndex)}const l=[];let c=0;a.filter(d=>d.type==="GroupOpen").forEach(d=>{d.kind==="capturing"?d.number=++c:d.raw==="("&&l.push(d)}),c||l.forEach((d,f)=>{d.kind="capturing",d.number=f+1});const u=c||l.length;return{tokens:a.map(d=>d.type==="EscapedNumber"?$A(d,u):d).flat(),flags:r}}function oA(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const a=aA(t,n,r);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:Od(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:gA(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Oh(n)}}if(o==="K")return{token:Mh("keep",n)};if(o==="N"||o==="R")return{token:ur("newline",n,{negate:o==="N"})};if(o==="O")return{token:ur("any",n)};if(o==="X")return{token:ur("text_segment",n)};const a=Ih(n,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(s==="("){if(o==="*")return{token:_A(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:vA(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Or("group",n)};if(n==="(?>")return{token:Or("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Or(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Or("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Or("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:fA(n)}}if(e.getCurrentModX()){if(n==="#"){const a=t.indexOf(`
|
|
76
|
+
`,r);return{lastIndex:a===-1?t.length:a}}if(/^\s$/.test(n)){const a=/\s+/y;return a.lastIndex=r,{lastIndex:a.exec(t)?a.lastIndex:r}}}if(n===".")return{token:ur("dot",n)};if(n==="^"||n==="$"){const a=e.singleline?{"^":ot`\A`,$:ot`\Z`}[n]:n;return{token:Od(a,n)}}return n==="|"?{token:lA(n)}:Nc.test(n)?{tokens:SA(n)}:{token:pn(Xr(n),n)}}function aA(e,t,n){const r=[Md(t[1]==="^",t)];let s=1,o;for(Ei.lastIndex=n;o=Ei.exec(e);){const a=o[0];if(a[0]==="["&&a[1]!==":")s++,r.push(Md(a[1]==="^",a));else if(a==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(pn(93,a));else if(s--,r.push(cA(a)),!s)break}else{const i=iA(a);Array.isArray(i)?r.push(...i):r.push(i)}}return{tokens:r,lastIndex:Ei.lastIndex||e.length}}function iA(e){if(e[0]==="\\")return Ih(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Bc.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ur("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?uA(e):e==="&&"?dA(e):pn(Xr(e),e)}function Ih(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return yA(e);if("dDhHsSwW".includes(n))return wA(e);if(e.startsWith(ot`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return xA(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(a=>parseInt(a,16)),s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...s].map(a=>{const i=[...o.encode(a)].map(l=>`\\x${l.toString(16)}`).join("");return pn(Xr(a),i)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return pn(CA(e),e);if(Rd.has(n))return pn(Rd.get(n),e);if(/\d/.test(n))return pA(t,e);if(e==="\\")throw new Error(ot`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return pn(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function lA(e){return{type:"Alternator",raw:e}}function Od(e,t){return{type:"Assertion",kind:e,raw:t}}function Oh(e){return{type:"Backreference",raw:e}}function pn(e,t){return{type:"Character",value:e,raw:t}}function cA(e){return{type:"CharacterClassClose",raw:e}}function uA(e){return{type:"CharacterClassHyphen",raw:e}}function dA(e){return{type:"CharacterClassIntersector",raw:e}}function Md(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function ur(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function Mh(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Jr(n.flags),raw:t}}function pA(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function fA(e){return{type:"GroupClose",raw:e}}function Or(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function mA(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function hA(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function gA(e){return{type:"Subroutine",raw:e}}const bA=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Rd=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function yA(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return pn(Xr(t.toUpperCase())-64,e)}function vA(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=Ld(n),a=Ld(r),i={};if(o&&(i.enable=o),a&&(i.disable=a),e.endsWith(")"))return t.replaceCurrentModX(s),Mh("flags",e,{flags:i});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,Or("group",e,{...(o||a)&&{flags:i}});throw new Error(`Unexpected flag modifier "${e}"`)}function _A(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:s}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=s?s.split(",").filter(u=>u!=="").map(u=>/^[+-]?\d+$/.test(u)?+u:u):[],[a,i,l]=o,c=bA.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(o.length===2&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${i}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof i=="number"||!/^(?:[<>!=]=|[<>])$/.test(i))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${i}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return mA(c,r??null,s?.split(",")??null,e)}function Pd(e){let t=null,n,r;if(e[0]==="{"){const{minStr:s,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,a=1e5;if(+s>a||o&&+o>a)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+s,r=o===void 0?+s:o===""?1/0:+o,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return hA(t,n,r,e)}function wA(e){const t=e[1].toLowerCase();return ur({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function xA(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return ur("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function Ld(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function kA(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function CA(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function $A(e,t){const{raw:n,inCharClass:r}=e,s=n.slice(1);if(!r&&(s!=="0"&&s.length===1||s[0]!=="0"&&+s<=t))return[Oh(n)];const o=[],a=s.match(/^[0-7]+|\d/g);for(let i=0;i<a.length;i++){const l=a[i];let c;if(i===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(ot`Octal encoded byte above 177 unsupported "${n}"`)}else c=Xr(l);o.push(pn(c,(i===0?"\\":"")+l))}return o}function SA(e){const t=[],n=new RegExp(Nc,"gy");let r;for(;r=n.exec(e);){const s=r[0];if(s[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(s);if(o){const{min:a,max:i}=o.groups;if(+a>+i&&s.endsWith("?")){n.lastIndex--,t.push(Pd(s.slice(0,-1)));continue}}}t.push(Pd(s))}return t}function Rh(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function jA(e){return EA.has(e.type)}const EA=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Ph(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=sA(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(f,p)=>{const m=r.tokens[o.nextIndex];switch(o.parent=f,o.nextIndex++,m.type){case"Alternator":return _r();case"Assertion":return AA(m);case"Backreference":return TA(m,o);case"Character":return Ga(m.value,{useLastValid:!!p.isCheckingRangeEnd});case"CharacterClassHyphen":return IA(m,o,p);case"CharacterClassOpen":return OA(m,o,p);case"CharacterSet":return MA(m,o);case"Directive":return DA(m.kind,{flags:m.flags});case"GroupOpen":return RA(m,o,p);case"NamedCallout":return zA(m.kind,m.tag,m.arguments);case"Quantifier":return PA(m,o);case"Subroutine":return LA(m,o);default:throw new Error(`Unexpected token type "${m.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},a=HA(FA(r.flags));let i=a.body[0];for(;o.nextIndex<r.tokens.length;){const f=s(i,{});f.type==="Alternative"?(a.body.push(f),i=f):i.body.push(f)}const{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:u,subroutines:d}=o;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:f}of d)if(typeof f=="number"){if(f>l.length)throw new Error("Subroutine uses a group number that's not defined");f&&(l[f-1].isSubroutined=!0)}else if(u.has(f)){if(u.get(f).length>1)throw new Error(ot`Subroutine uses a duplicate group name "\g<${f}>"`);u.get(f)[0].isSubroutined=!0}else throw new Error(ot`Subroutine uses a group name that's not defined "\g<${f}>"`);return a}function AA({kind:e}){return Al(Jr({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===ot`\B`||e===ot`\Y`})}function TA({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),s=(o,a=!1)=>{const i=t.capturingGroups.length;let l=!1;if(o>i)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Tl(a?i+1-o:o,{orphan:l})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return s(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return Tl(r)}return s(+r)}function IA(e,t,n){const{tokens:r,walk:s}=t,o=t.parent,a=o.body.at(-1),i=r[t.nextIndex];if(!n.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&i&&i.type!=="CharacterClassOpen"&&i.type!=="CharacterClassClose"&&i.type!=="CharacterClassIntersector"){const l=s(o,{...n,isCheckingRangeEnd:!0});if(a.type==="Character"&&l.type==="Character")return o.body.pop(),NA(a,l);throw new Error("Invalid character class range")}return Ga(Xr("-"))}function OA({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],a=[Io()];let i=Dd(o);for(;i.type!=="CharacterClassClose";){if(i.type==="CharacterClassIntersector")a.push(Io()),t.nextIndex++;else{const c=a.at(-1);c.body.push(s(c,n))}i=Dd(r[t.nextIndex],o)}const l=Io({negate:e});return a.length===1?l.body=a[0].body:(l.kind="intersection",l.body=a.map(c=>c.body.length===1?c.body[0]:c)),t.nextIndex++,l}function MA({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:a}=r;if(e==="property"){const i=Ua(n);if(Bc.has(i)&&!a?.has(i))e="posix",n=i;else return Mr(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:a})}return e==="posix"?qA(n,{negate:t}):Il(e,{negate:t})}function RA(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:a,walk:i}=t,l=VA(e),c=l.type==="AbsenceFunction",u=Nd(l),d=u&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&rA(o,l.name,[]).push(l)),c&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let f=Fd(r[t.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")l.body.push(_r()),t.nextIndex++;else{const p=l.body.at(-1),m=i(p,{...n,isInAbsenceFunction:n.isInAbsenceFunction||c,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(p.body.push(m),(u||n.isInLookbehind)&&!a){const h="Lookbehind includes a pattern not allowed by Oniguruma";if(d||n.isInNegLookbehind){if(Bd(m)||m.type==="CapturingGroup")throw new Error(h)}else if(Bd(m)||Nd(m)&&m.negate)throw new Error(h)}}f=Fd(r[t.nextIndex])}return t.nextIndex++,l}function PA({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!jA(o))throw new Error("Quantifier requires a repeatable token");const a=Bh(e,t,n,o);return s.body.pop(),a}function LA({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let s=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){const i=+o.groups.num,l=n.length;if(t.hasNumberedRef=!0,s={"":i,"+":l+i,"-":l+1-i}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);const a=Nh(s);return r.push(a),a}function BA(e,t){return{type:"AbsenceFunction",kind:e,body:so(t?.body)}}function _r(e){return{type:"Alternative",body:Dh(e?.body)}}function Al(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function Tl(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Lh(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!GA(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:so(t?.body)}}function Ga(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function Io(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Dh(e?.body)}}function NA(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Il(e,t){const n=!!t?.negate,r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function DA(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Jr(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function FA(e){return{type:"Flags",...e}}function Bt(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:so(e?.body)}}function ar(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:so(e?.body)}}function zA(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function qA(e,t){const n=!!t?.negate;if(!Bc.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Bh(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function HA(e,t){return{type:"Regex",body:so(t?.body),flags:e}}function Nh(e){return{type:"Subroutine",ref:e}}function Mr(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(Ua(e));if(!r){if(n.normalizeUnknownPropertyNames)r=UA(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(ot`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function VA({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return BA("repeater");case"atomic":return Bt({atomic:!0});case"capturing":return Lh(s,{name:n});case"group":return Bt({flags:e});case"lookahead":case"lookbehind":return ar({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function so(e){if(e===void 0)e=[_r()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function Dh(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function Bd(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Nd(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function GA(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function UA(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function Ua(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Dd(e,t){return Jr(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function Fd(e){return Jr(e,"Unclosed group")}function Cs(e,t,n=null){function r(o,a){for(let i=0;i<o.length;i++){const l=s(o[i],a,i,o);i=Math.max(-1,i+l)}}function s(o,a=null,i=null,l=null){let c=0,u=!1;const d={node:o,parent:a,key:i,container:l,root:e,remove(){wo(l).splice(Math.max(0,Ar(i)+c),1),c--,u=!0},removeAllNextSiblings(){return wo(l).splice(Ar(i)+1)},removeAllPrevSiblings(){const b=Ar(i)+c;return c-=b,wo(l).splice(0,Math.max(0,b))},replaceWith(b,v={}){const g=!!v.traverse;l?l[Math.max(0,Ar(i)+c)]=b:Jr(a,"Can't replace root node")[i]=b,g&&s(b,a,i,l),u=!0},replaceWithMultiple(b,v={}){const g=!!v.traverse;if(wo(l).splice(Math.max(0,Ar(i)+c),1,...b),c+=b.length-1,g){let C=0;for(let S=0;S<b.length;S++)C+=s(b[S],a,Ar(i)+S+C,l)}u=!0},skip(){u=!0}},{type:f}=o,p=t["*"],m=t[f],h=typeof p=="function"?p:p?.enter,y=typeof m=="function"?m:m?.enter;if(h?.(d,n),y?.(d,n),!u)switch(f){case"AbsenceFunction":case"CapturingGroup":case"Group":r(o.body,o);break;case"Alternative":case"CharacterClass":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":s(o.min,o,"min"),s(o.max,o,"max");break;case"LookaroundAssertion":r(o.body,o);break;case"Quantifier":s(o.body,o,"body");break;case"Regex":r(o.body,o),s(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${f}"`)}return m?.exit?.(d,n),p?.exit?.(d,n),c}return s(e),e}function wo(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Ar(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const WA=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function KA(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function ZA(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const Rt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Dc(e,t,n,r){const s=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let a=0,i="";for(const l of e.matchAll(s)){const{0:c,groups:{$skip:u}}=l;if(!u&&(!r||r===Rt.DEFAULT==!a)){n instanceof Function?i+=n(l,{context:a?Rt.CHAR_CLASS:Rt.DEFAULT,negated:o[o.length-1]}):i+=n;continue}c[0]==="["?(a++,o.push(c[1]==="^")):c==="]"&&a&&(a--,o.pop()),i+=c}return i}function Fh(e,t,n,r){Dc(e,t,n,r)}function YA(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const s=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=n;let o=0,a;for(;a=s.exec(e);){const{0:i,groups:{$skip:l}}=a;if(!l&&(!r||r===Rt.DEFAULT==!o))return a;i==="["?o++:i==="]"&&o&&o--,s.lastIndex==a.index&&s.lastIndex++}return null}function xo(e,t,n){return!!YA(e,t,0,n)}function XA(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,s=0,o=1,a;for(;a=n.exec(e);){const[i]=a;if(i==="[")s++;else if(s)i==="]"&&s--;else if(i==="(")o++;else if(i===")"&&(o--,!o)){r=a.index;break}}return e.slice(t,r)}const zd=new RegExp(String.raw`(?<noncapturingStart>${WA})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function JA(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const s="(?>",o="(?:(?=(",a=[0],i=[];let l=0,c=0,u=NaN,d;do{d=!1;let f=0,p=0,m=!1,h;for(zd.lastIndex=Number.isNaN(u)?0:u+o.length;h=zd.exec(e);){const{0:y,index:b,groups:{capturingStart:v,noncapturingStart:g}}=h;if(y==="[")f++;else if(f)y==="]"&&f--;else if(y===s&&!m)u=b,m=!0;else if(m&&g)p++;else if(v)m?p++:(l++,a.push(l+c));else if(y===")"&&m){if(!p){c++;const C=l+c;if(e=`${e.slice(0,u)}${o}${e.slice(u+s.length,b)}))<$$${C}>)${e.slice(b+1)}`,d=!0,i.push(C),KA(n,C),r.size){const S=new Map;r.forEach((T,j)=>{S.set(j>=C?j+1:j,T.map($=>$>=C?$+1:$))}),r=S}break}p--}}}while(d);return n.push(...i),e=Dc(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:f,groups:{backrefNum:p,wrappedBackrefNum:m}})=>{if(p){const h=+p;if(h>a.length-1)throw new Error(`Backref "${f}" greater than number of captures`);return`\\${a[h]}`}return`\\${m}`},Rt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const zh=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ai=new RegExp(String.raw`
|
|
77
|
+
\\(?: \d+
|
|
78
|
+
| c[A-Za-z]
|
|
79
|
+
| [gk]<[^>]+>
|
|
80
|
+
| [pPu]\{[^\}]+\}
|
|
81
|
+
| u[A-Fa-f\d]{4}
|
|
82
|
+
| x[A-Fa-f\d]{2}
|
|
83
|
+
)
|
|
84
|
+
| \((?: \? (?: [:=!>]
|
|
85
|
+
| <(?:[=!]|[^>]+>)
|
|
86
|
+
| [A-Za-z\-]+:
|
|
87
|
+
| \(DEFINE\)
|
|
88
|
+
))?
|
|
89
|
+
| (?<qBase>${zh})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
90
|
+
| \\?.
|
|
91
|
+
`.replace(/\s+/g,""),"gsu");function QA(e){if(!new RegExp(`${zh}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,a;for(Ai.lastIndex=0;a=Ai.exec(e);){const{0:i,index:l,groups:{qBase:c,qMod:u,invalidQ:d}}=a;if(i==="[")o||(r=l),o++;else if(i==="]")o?o--:r=null;else if(!o)if(u==="+"&&s&&!s.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${i}"`);let f=-1;if(/^\{\d+\}$/.test(c))e=ZA(e,l+c.length,u,"");else{if(s===")"||s==="]"){const p=s===")"?n:r;if(p===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,p)}(?>${e.slice(p,l)}${c})${e.slice(l+i.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${c})${e.slice(l+i.length)}`;f+=4}Ai.lastIndex+=f}else i[0]==="("?t.push(l):i===")"&&(n=t.length?t.pop():null);s=i}return{pattern:e}}const Mt=String.raw,e4=Mt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Ol=Mt`\(\?R=(?<rDepth>[^\)]+)\)|${e4}`,Wa=Mt`\(\?<(?![=!])(?<captureName>[^>]+)>`,qh=Mt`${Wa}|(?<unnamed>\()(?!\?)`,Qn=new RegExp(Mt`${Wa}|${Ol}|\(\?|\\?.`,"gsu"),Ti="Cannot use multiple overlapping recursions";function t4(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=t?.captureTransfers??new Map;if(!new RegExp(Ol,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&xo(e,Mt`\(\?\(DEFINE\)`,Rt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],a=xo(e,Mt`\\[1-9]`,Rt.DEFAULT),i=new Map,l=[];let c=!1,u=0,d=0,f;for(Qn.lastIndex=0;f=Qn.exec(e);){const{0:p,groups:{captureName:m,rDepth:h,gRNameOrNum:y,gRDepth:b}}=f;if(p==="[")u++;else if(u)p==="]"&&u--;else if(h){if(qd(h),c)throw new Error(Ti);if(a)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=e.slice(0,f.index),g=e.slice(Qn.lastIndex);if(xo(g,Ol,Rt.DEFAULT))throw new Error(Ti);const C=+h-1;e=Hd(v,g,C,!1,n,o,d),s=Gd(s,v,C,o.length,0,d);break}else if(y){qd(b);let v=!1;for(const J of l)if(J.name===y||J.num===+y){if(v=!0,J.hasRecursedWithin)throw new Error(Ti);break}if(!v)throw new Error(Mt`Recursive \g cannot be used outside the referenced group "${r==="external"?y:Mt`\g<${y}&R=${b}>`}"`);const g=i.get(y),C=XA(e,g);if(a&&xo(C,Mt`${Wa}|\((?!\?)`,Rt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const S=e.slice(g,f.index),T=C.slice(S.length+p.length),j=o.length,$=+b-1,B=Hd(S,T,$,!0,n,o,d);s=Gd(s,S,$,o.length-j,j,d);const U=e.slice(0,g),V=e.slice(g+C.length);e=`${U}${B}${V}`,Qn.lastIndex+=B.length-p.length-S.length-T.length,l.forEach(J=>J.hasRecursedWithin=!0),c=!0}else if(m)d++,i.set(String(d),Qn.lastIndex),i.set(m,Qn.lastIndex),l.push({num:d,name:m});else if(p[0]==="("){const v=p==="(";v&&(d++,i.set(String(d),Qn.lastIndex)),l.push(v?{num:d}:{})}else p===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function qd(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Hd(e,t,n,r,s,o,a){const i=new Set;r&&Fh(e+t,Wa,({groups:{captureName:c}})=>{i.add(c)},Rt.DEFAULT);const l=[n,r?i:null,s,o,a];return`${e}${Vd(`(?:${e}`,"forward",...l)}(?:)${Vd(`${t})`,"backward",...l)}${t}`}function Vd(e,t,n,r,s,o,a){const i=c=>t==="forward"?c+2:n-c+2-1;let l="";for(let c=0;c<n;c++){const u=i(c);l+=Dc(e,Mt`${qh}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:f,unnamed:p,backref:m}})=>{if(m&&r&&!r.has(m))return d;const h=`_$${u}`;if(p||f){const y=a+o.length+1;return o.push(y),n4(s,y),p?d:`(?<${f}${h}>`}return Mt`\k<${m}${h}>`},Rt.DEFAULT)}return l}function n4(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Gd(e,t,n,r,s,o){if(e.size&&r){let a=0;Fh(t,qh,()=>a++,Rt.DEFAULT);const i=o-a+s,l=new Map;return e.forEach((c,u)=>{const d=(r-a*n)/n,f=a*n,p=u>i+a?u+r:u,m=[];for(const h of c)if(h<=i)m.push(h);else if(h>i+a+d)m.push(h+r);else if(h<=i+a)for(let y=0;y<=n;y++)m.push(h+a*y);else for(let y=0;y<=n;y++)m.push(h+f+d*y);l.set(p,m)}),l}return e}var Qe=String.fromCodePoint,ke=String.raw,vn={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};vn.bugFlagVLiteralHyphenIsRange=vn.unicodeSets?(()=>{try{new RegExp(ke`[\d\-a]`,"v")}catch{return!0}return!1})():!1;vn.bugNestedClassIgnoresNegation=vn.unicodeSets&&new RegExp("[[^a]]","v").test("a");function ca(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Hs(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Ml(e,t){return Ud[e]>=Ud[t]}function r4(e,t){if(e==null)throw new Error(t??"Value expected");return e}var Ud={ES2025:2025,ES2024:2024,ES2018:2018},s4={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Hh(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!s4[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=vn.flagGroups?"ES2025":vn.unicodeSets?"ES2024":"ES2018"),t}var o4="[ -\r ]",a4=new Set([Qe(304),Qe(305)]),on=ke`[\p{L}\p{M}\p{N}\p{Pc}]`;function Vh(e){if(a4.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=c4.get(n),o=i4.get(n),a=l4.get(n);return[...r].length===1&&t.add(r),a&&t.add(a),s&&t.add(s),t.add(n),o&&t.add(o),[...t]}var Fc=new Map(`C Other
|
|
92
|
+
Cc Control cntrl
|
|
93
|
+
Cf Format
|
|
94
|
+
Cn Unassigned
|
|
95
|
+
Co Private_Use
|
|
96
|
+
Cs Surrogate
|
|
97
|
+
L Letter
|
|
98
|
+
LC Cased_Letter
|
|
99
|
+
Ll Lowercase_Letter
|
|
100
|
+
Lm Modifier_Letter
|
|
101
|
+
Lo Other_Letter
|
|
102
|
+
Lt Titlecase_Letter
|
|
103
|
+
Lu Uppercase_Letter
|
|
104
|
+
M Mark Combining_Mark
|
|
105
|
+
Mc Spacing_Mark
|
|
106
|
+
Me Enclosing_Mark
|
|
107
|
+
Mn Nonspacing_Mark
|
|
108
|
+
N Number
|
|
109
|
+
Nd Decimal_Number digit
|
|
110
|
+
Nl Letter_Number
|
|
111
|
+
No Other_Number
|
|
112
|
+
P Punctuation punct
|
|
113
|
+
Pc Connector_Punctuation
|
|
114
|
+
Pd Dash_Punctuation
|
|
115
|
+
Pe Close_Punctuation
|
|
116
|
+
Pf Final_Punctuation
|
|
117
|
+
Pi Initial_Punctuation
|
|
118
|
+
Po Other_Punctuation
|
|
119
|
+
Ps Open_Punctuation
|
|
120
|
+
S Symbol
|
|
121
|
+
Sc Currency_Symbol
|
|
122
|
+
Sk Modifier_Symbol
|
|
123
|
+
Sm Math_Symbol
|
|
124
|
+
So Other_Symbol
|
|
125
|
+
Z Separator
|
|
126
|
+
Zl Line_Separator
|
|
127
|
+
Zp Paragraph_Separator
|
|
128
|
+
Zs Space_Separator
|
|
129
|
+
ASCII
|
|
130
|
+
ASCII_Hex_Digit AHex
|
|
131
|
+
Alphabetic Alpha
|
|
132
|
+
Any
|
|
133
|
+
Assigned
|
|
134
|
+
Bidi_Control Bidi_C
|
|
135
|
+
Bidi_Mirrored Bidi_M
|
|
136
|
+
Case_Ignorable CI
|
|
137
|
+
Cased
|
|
138
|
+
Changes_When_Casefolded CWCF
|
|
139
|
+
Changes_When_Casemapped CWCM
|
|
140
|
+
Changes_When_Lowercased CWL
|
|
141
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
142
|
+
Changes_When_Titlecased CWT
|
|
143
|
+
Changes_When_Uppercased CWU
|
|
144
|
+
Dash
|
|
145
|
+
Default_Ignorable_Code_Point DI
|
|
146
|
+
Deprecated Dep
|
|
147
|
+
Diacritic Dia
|
|
148
|
+
Emoji
|
|
149
|
+
Emoji_Component EComp
|
|
150
|
+
Emoji_Modifier EMod
|
|
151
|
+
Emoji_Modifier_Base EBase
|
|
152
|
+
Emoji_Presentation EPres
|
|
153
|
+
Extended_Pictographic ExtPict
|
|
154
|
+
Extender Ext
|
|
155
|
+
Grapheme_Base Gr_Base
|
|
156
|
+
Grapheme_Extend Gr_Ext
|
|
157
|
+
Hex_Digit Hex
|
|
158
|
+
IDS_Binary_Operator IDSB
|
|
159
|
+
IDS_Trinary_Operator IDST
|
|
160
|
+
ID_Continue IDC
|
|
161
|
+
ID_Start IDS
|
|
162
|
+
Ideographic Ideo
|
|
163
|
+
Join_Control Join_C
|
|
164
|
+
Logical_Order_Exception LOE
|
|
165
|
+
Lowercase Lower
|
|
166
|
+
Math
|
|
167
|
+
Noncharacter_Code_Point NChar
|
|
168
|
+
Pattern_Syntax Pat_Syn
|
|
169
|
+
Pattern_White_Space Pat_WS
|
|
170
|
+
Quotation_Mark QMark
|
|
171
|
+
Radical
|
|
172
|
+
Regional_Indicator RI
|
|
173
|
+
Sentence_Terminal STerm
|
|
174
|
+
Soft_Dotted SD
|
|
175
|
+
Terminal_Punctuation Term
|
|
176
|
+
Unified_Ideograph UIdeo
|
|
177
|
+
Uppercase Upper
|
|
178
|
+
Variation_Selector VS
|
|
179
|
+
White_Space space
|
|
180
|
+
XID_Continue XIDC
|
|
181
|
+
XID_Start XIDS`.split(/\s/).map(e=>[Ua(e),e])),i4=new Map([["s",Qe(383)],[Qe(383),"s"]]),l4=new Map([[Qe(223),Qe(7838)],[Qe(107),Qe(8490)],[Qe(229),Qe(8491)],[Qe(969),Qe(8486)]]),c4=new Map([Mn(453),Mn(456),Mn(459),Mn(498),...Ii(8072,8079),...Ii(8088,8095),...Ii(8104,8111),Mn(8124),Mn(8140),Mn(8188)]),u4=new Map([["alnum",ke`[\p{Alpha}\p{Nd}]`],["alpha",ke`\p{Alpha}`],["ascii",ke`\p{ASCII}`],["blank",ke`[\p{Zs}\t]`],["cntrl",ke`\p{Cc}`],["digit",ke`\p{Nd}`],["graph",ke`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ke`\p{Lower}`],["print",ke`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ke`[\p{P}\p{S}]`],["space",ke`\p{space}`],["upper",ke`\p{Upper}`],["word",ke`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ke`\p{AHex}`]]);function d4(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Mn(e){const t=Qe(e);return[t.toLowerCase(),t]}function Ii(e,t){return d4(e,t).map(n=>Mn(n))}var Gh=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function p4(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Uh(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Ml(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Cs(e,f4,r);const s={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:s,prevFlags:null,globalFlags:s,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};Cs(e,m4,o);const a={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Cs(e,h4,a),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var f4={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=Bt();o.body[0].body.push(ar({negate:!0,body:r}),Mr("Any"));const a=Bt();a.body[0].body.push(Bh("greedy",0,1/0,o)),n(We(a,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const s=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o<t.body.length;o++){const a=t.body[o];Hs(r,a,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=Kh(t.get(e));if(n){const r=Bt({flags:n});r.body[0].body=e.body,e.body=[We(r,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:s,remove:o,replaceWith:a},i){const{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=i;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(l==="line_end")a(We(ar({body:[_r({body:[Al("string_end")]}),_r({body:[Ga(10)]})]}),t));else if(l==="line_start")a(We(an(ke`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(f.has(e))s.flags.sticky=!0,o();else{const m=r[n-1];if(m&&w4(m))a(We(ar({negate:!0}),t));else{if(d)throw new Error(ke`Uses "\G" in a way that requires a subclass`);a(Rn(Al("string_start"),t)),i.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(We(an(ke`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!p&&!u){const m=`(?:(?<=${on})(?!${on})|(?<!${on})(?=${on}))`,h=`(?:(?<=${on})(?=${on})|(?<!${on})(?!${on}))`;a(We(an(c?h:m),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Mi(n)&&(n=Oi(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Mi(r)&&(r=Oi(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=Io({body:[e]});n(We(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:a,wordIsAscii:i}){const{kind:l,negate:c,value:u}=e;if(o&&(l==="digit"||u==="digit")){n(Rn(Il("digit",{negate:c}),t));return}if(a&&(l==="space"||u==="space")){n(We(Ri(an(o4),c),t));return}if(i&&(l==="word"||u==="word")){n(Rn(Il("word",{negate:c}),t));return}if(l==="any")n(Rn(Mr("Any"),t));else if(l==="digit")n(Rn(Mr("Nd",{negate:c}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(ke`Use of "\X" requires non-strict accuracy`);const d="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",f=ke`\p{RI}{2}|${d}(?:\u200D${d})*`;n(We(an(ke`(?>\r\n|${s?ke`\p{RGI_Emoji}`:f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(Rn(Mr("AHex",{negate:c}),t));else if(l==="newline")n(We(an(c?`[^
|
|
182
|
+
]`:`(?>\r
|
|
183
|
+
?|[
|
|
184
|
+
\v\f
\u2028\u2029])`),t));else if(l==="posix")if(!s&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let d={graph:"!-~",print:" -~"}[u];c&&(d=`\0-${Qe(d.codePointAt(0)-1)}${Qe(d.codePointAt(2)+1)}-`),n(We(an(`[${d}]`),t))}else n(We(Ri(an(u4.get(u)),c),t));else if(l==="property")Fc.has(Ua(u))||(e.key="sc");else if(l==="space")n(Rn(Mr("space",{negate:c}),t));else if(l==="word")n(We(Ri(an(on),c),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:a}){const{kind:i,flags:l}=e;if(i==="flags")if(!l.enable&&!l.disable)r();else{const c=Bt({flags:l});c.body[0].body=a(),s(We(c,t),{traverse:!0})}else if(i==="keep"){const c=n.body[0],u=n.body.length===1&&Rh(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:n;if(t.parent!==u||u.body.length>1)throw new Error(ke`Uses "\K" in a way that's unsupported`);const d=ar({behind:!0});d.body[0].body=o(),s(We(d,t))}else throw new Error(`Unexpected directive kind "${i}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(We(ar({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Bt();t.body[0].body.push(e.body),e.body=We(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,s=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const a=Yh(o.body);a?(r=!0,Array.isArray(a)?n.push(...a):n.push(a)):s=!0}r&&!s&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(ke`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Mi(n)&&(n=Oi(n,t),e.ref=n)}},m4={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:s}=e;r||n.set(e,[...t.get(s).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:s,groupsByName:o,multiplexCapturesToLeftByRef:a,openRefs:i,reffedNodesByReferencer:l}){const c=s.get(e);if(c&&i.has(e.number)){const d=Rn(Wd(e.number),t);l.set(d,i.get(e.number)),n(d);return}i.set(e.number,e),a.set(e.number,[]),e.name&&Hs(a,e.name,[]);const u=a.get(e.name??e.number);for(let d=0;d<u.length;d++){const f=u[d];if(c===f.node||c&&c===f.origin||e===f.origin){u.splice(d,1);break}}if(a.get(e.number).push({node:e,origin:c}),e.name&&a.get(e.name).push({node:e,origin:c}),e.name){const d=Hs(o,e.name,new Map);let f=!1;if(c)f=!0;else for(const p of d.values())if(!p.hasDuplicateNameToRemove){f=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:f})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=ca(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:s,ref:o}=e;if(s){let u=t;for(;(u=u.parent)&&!(u.type==="CapturingGroup"&&(u.name===o||u.number===o)););r.reffedNodesByReferencer.set(e,u);return}const a=r.subroutineRefMap.get(o),i=o===0,l=i?Wd(0):Wh(a,r.groupOriginByCopy,null);let c=l;if(!i){const u=Kh(y4(a,f=>f.type==="Group"&&!!f.flags)),d=u?ca(r.globalFlags,u):r.globalFlags;g4(d,r.currentFlags)||(c=Bt({flags:v4(d)}),c.body[0].body.push(l))}n(We(c,t),{traverse:!i})}},h4={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const s=r.reffedNodesByReferencer.get(e).filter(o=>b4(o,e));if(!s.length)n(We(ar({negate:!0}),t));else if(s.length>1){const o=Bt({atomic:!0,body:s.reverse().map(a=>_r({body:[Tl(a.number)]}))});n(We(o,t))}else e.ref=s[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const s=Lh();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Uh(e){Cs(e,{"*"({node:t,parent:n}){t.parent=n}})}function g4(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function b4(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=Zh(n.parent);for(const s of r){if(s===n)break;if(s===e||Xh(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Wh(e,t,n,r){const s=Array.isArray(e)?[]:{};for(const[o,a]of Object.entries(e))o==="parent"?s.parent=Array.isArray(n)?r:n:a&&typeof a=="object"?s[o]=Wh(a,t,s,n):(o==="type"&&a==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=a);return s}function Wd(e){const t=Nh(e);return t.isRecursive=!0,t}function y4(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Oi(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function Kh(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{r.enable?.[s]&&(delete n.disable[s],n.enable[s]=!0),r.disable?.[s]&&(n.disable[s]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function v4({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function Zh(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Yh(e){const t=e.find(n=>n.kind==="search_start"||x4(n,{negate:!1})||!_4(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const s=Yh(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function Xh(e,t){const n=Zh(e)??[];for(const r of n)if(r===t||Xh(r,t))return!0;return!1}function _4({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function w4(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function x4(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Rh(e.body[0],{type:"Assertion",kind:"search_start"})}function Mi(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function an(e,t){const n=Ph(e,{...t,unicodePropertyMap:Fc}).body;return n.length>1||n[0].body.length>1?Bt({body:n}):n[0].body[0]}function Ri(e,t){return e.negate=t,e}function Rn(e,t){return e.parent=t,e}function We(e,t){return Uh(e),e.parent=t,e}function k4(e,t){const n=Hh(t),r=Ml(n.target,"ES2024"),s=Ml(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,i=null;if(!s){const p=[e.flags.ignoreCase];Cs(e,C4,{getCurrentModI:()=>p.at(-1),popModI(){p.pop()},pushModI(m){p.push(m)},setHasCasedChar(){p.at(-1)?a=!0:i=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!i)};let c=e;const u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&a&&i),useFlagMods:s,useFlagV:r,verbose:n.verbose};function d(p){return u.lastNode=c,c=p,r4($4[p.type],`Unexpected node type "${p.type}"`)(p,u,d)}const f={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((p,m)=>{p.hidden&&f._hiddenCaptures.push(m),p.transferTo&&Hs(f._captureTransfers,p.transferTo,[]).push(m)}),f}var C4={"*":{enter({node:e},t){if(Zd(e)){const n=t.getCurrentModI();t.pushModI(e.flags?ca({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Zd(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){zc(Qe(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Jh(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Gh.has(e.value)&&t.setHasCasedChar()}},$4={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?ke`\B`:ke`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:s,number:o}=e,a={ignoreCase:t.currentFlags.ignoreCase},i=t.originMap.get(e);return i&&(a.hidden=!0,o>i.number&&(a.transferTo=i.number)),t.captureMap.set(o,a),`(${s?`?<${s}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=Qe(e),r=Tr(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&zc(n)){const s=Vh(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:s,parent:o}=e;let{body:a}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");vn.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&a.some(Yd)&&(a=[Ga(45),...a.filter(c=>!Yd(c))]);const i=()=>`[${s?"^":""}${a.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||vn.bugNestedClassIgnoresNegation)&&!s){const u=a.filter(d=>d.type==="CharacterClass"&&d.kind==="union"&&d.negate);if(u.length){const d=Bt(),f=d.body[0];return d.parent=o,f.parent=d,a=a.filter(p=>!u.includes(p)),e.body=a,a.length?(e.parent=f,f.body.push(e)):d.body.pop(),u.forEach(p=>{const m=_r({body:[p]});p.parent=m,m.parent=d,d.body.push(m)}),n(d)}}t.inCharClass=!0;const c=i();return t.inCharClass=!1,c}const l=a[0];if(r==="union"&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(vn.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&a.length===1&&l.type!=="CharacterClassRange"))return a.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return i()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=Tr(n,s),a=Tr(r,s),i=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=Jh(e);T4(l).forEach(c=>{i.add(Array.isArray(c)?`${Tr(c[0],s)}-${Tr(c[1],s)}`:Tr(c,s))})}return`${o}-${a}${[...i].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},s){if(e==="dot")return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":ke`[^\n]`;if(e==="digit")return t?ke`\D`:ke`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&Gh.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ke`\P`:ke`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?ke`\W`:ke`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},s,o){const a=s.currentFlags;n&&(s.currentFlags=ca(a,n));const i=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?i:`(?${I4(e,n,s.useFlagMods)}${i})`;return s.currentFlags=a,l},LookaroundAssertion({body:e,kind:t,negate:n},r,s){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(s).join("|")})`},Quantifier(e,t,n){return n(e.body)+O4(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:ke`\g<${t}&R=${r}>`}},S4=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),j4=new Set(["-","\\","]","^","["]),E4=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Kd=new Map([[9,ke`\t`],[10,ke`\n`],[11,ke`\v`],[12,ke`\f`],[13,ke`\r`],[8232,ke`\u2028`],[8233,ke`\u2029`],[65279,ke`\uFEFF`]]),A4=new RegExp("^\\p{Cased}$","u");function zc(e){return A4.test(e)}function Jh(e,t){const n=!!t?.firstOnly,r=e.min.value,s=e.max.value,o=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return o;for(let a=r;a<=s;a++){const i=Qe(a);if(!zc(i))continue;const l=Vh(i).filter(c=>{const u=c.codePointAt(0);return u<r||u>s});if(l.length&&(o.push(...l),n))break}return o}function Tr(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Kd.has(e))return Kd.get(e);if(e<32||e>126&&e<160||e>262143||t&&M4(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?E4:j4:S4,o=Qe(e);return(s.has(o)?"\\":"")+o}function T4(e){const t=e.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[];let r=null;for(let s=0;s<t.length;s++)t[s+1]===t[s]+1?r??=t[s]:r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function I4(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function O4({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function Zd({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function M4(e){return e>47&&e<58}function Yd({type:e,value:t}){return e==="Character"&&t===45}var R4=class Rl extends RegExp{#t=new Map;#e=null;#r;#n=null;#s=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,n,r){const s=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,n),this.#r=o.source,o instanceof Rl&&(this.#t=o.#t,this.#n=o.#n,this.#s=o.#s,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(s?"":t,n),this.#r=t,this.#t=L4(o.hiddenCaptures,o.transfers),this.#s=o.strategy,this.rawOptions=r??{}}s||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:s,...o}=this.rawOptions;this.#e=new Rl(this.#r,this.flags,o)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#s==="clip_search"&&n&&r){this.lastIndex=0;const s=this.#o(t.slice(r));return s&&(P4(s,r,t,this.hasIndices),this.lastIndex+=r),s}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const r=[...n];n.length=1;let s;this.hasIndices&&(s=[...n.indices],n.indices.length=1);const o=[0];for(let a=1;a<r.length;a++){const{hidden:i,transferTo:l}=this.#t.get(a)??{};if(i?o.push(null):(o.push(n.length),n.push(r[a]),this.hasIndices&&n.indices.push(s[a])),l&&r[a]!==void 0){const c=o[l];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(n[c]=r[a],this.hasIndices&&(n.indices[c]=s[a]),n.groups){this.#n||(this.#n=B4(this.source));const u=this.#n.get(l);u&&(n.groups[u]=r[a],this.hasIndices&&(n.indices.groups[u]=s[a]))}}}return n}};function P4(e,t,n,r){if(e.index+=t,e.input=n,r){const s=e.indices;for(let a=0;a<s.length;a++){const i=s[a];i&&(s[a]=[i[0]+t,i[1]+t])}const o=s.groups;o&&Object.keys(o).forEach(a=>{const i=o[a];i&&(o[a]=[i[0]+t,i[1]+t])})}}function L4(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,s]of t)for(const o of s)Hs(n,o,{}).transferTo=r;return n}function B4(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,s=0,o;for(;o=t.exec(e);){const{0:a,groups:{capture:i,name:l}}=o;a==="["?r++:r?a==="]"&&r--:i&&(s++,l&&n.set(s,l))}return n}function N4(e,t){const n=D4(e,t);return n.options?new R4(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function D4(e,t){const n=Hh(t),r=Ph(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Fc}),s=p4(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=k4(s,n),a=t4(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),i=QA(a.pattern),l=JA(i.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),c={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const u=l.hiddenCaptures.sort((m,h)=>m-h),d=Array.from(l.captureTransfers),f=s._strategy,p=c.pattern.length>=n.lazyCompileLength;(u.length||d.length||f||p)&&(c.options={...u.length&&{hiddenCaptures:u},...d.length&&{transfers:d},...f&&{strategy:f},...p&&{lazyCompile:p}})}return c}const Xd=4294967295;class qc{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:r=!1,cache:s,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(a=>{if(typeof a!="string")return a;const i=s?.get(a);if(i){if(i instanceof RegExp)return i;if(r)return null;throw i}try{const l=o(a);return s?.set(a,l),l}catch(l){if(s?.set(a,l),r)return null;throw l}})}regexps;findNextMatchSync(t,n,r){const s=typeof t=="string"?t:t.content,o=[];function a(i,l,c=0){return{index:i,captureIndices:l.indices.map(u=>u==null?{start:Xd,end:Xd,length:0}:{start:u[0]+c,end:u[1]+c,length:u[1]-u[0]})}}for(let i=0;i<this.regexps.length;i++){const l=this.regexps[i];if(l)try{l.lastIndex=n;const c=l.exec(s);if(!c)continue;if(c.index===n)return a(i,c,0);o.push([i,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(o.length){const i=Math.min(...o.map(l=>l[1].index));for(const[l,c,u]of o)if(c.index===i)return a(l,c,u)}return null}}function Qh(e,t){return N4(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function F4(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>Qh(n,{target:t.target}),{createScanner(n){return new qc(n,t)},createString(n){return{content:n}}}}function z4(){const e={cache:new Map,regexConstructor:()=>{throw new Error("JavaScriptRawEngine: only support precompiled grammar")}};return{createScanner(t){return new qc(t,e)},createString(t){return{content:t}}}}const q4=Object.freeze(Object.defineProperty({__proto__:null,JavaScriptScanner:qc,createJavaScriptRawEngine:z4,createJavaScriptRegexEngine:F4,defaultJavaScriptRegexConstructor:Qh},Symbol.toStringTag,{value:"Module"})),H4=Object.freeze(JSON.parse(`{"displayName":"JavaScript","name":"javascript","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(abstract|declare|override|public|protected|private|readonly|static)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.js"},"after-operator-block-as-object-literal":{"begin":"(?<!\\\\+\\\\+|--)(?<=[!(+,:=>?\\\\[]|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^yield|[^$._[:alnum:]]yield|^throw|[^$._[:alnum:]]throw|^in|[^$._[:alnum:]]in|^of|[^$._[:alnum:]]of|^typeof|[^$._[:alnum:]]typeof|&&|\\\\|\\\\||\\\\*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.objectliteral.js","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.js"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.js"}},"name":"meta.array.literal.js","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"variable.parameter.js"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async)\\\\s+)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?==>)","name":"meta.arrow.js"},{"begin":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async))?((?<![]!)}])\\\\s*(?=((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.arrow.js","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#arrow-return-type"},{"include":"#possibly-arrow-return-type"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.js"}},"end":"((?<=[}\\\\S])(?<!=>)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.js","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#decl-block"},{"include":"#expression"}]}]},"arrow-return-type":{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.return.type.arrow.js","patterns":[{"include":"#arrow-return-type-body"}]},"arrow-return-type-body":{"patterns":[{"begin":"(?<=:)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"async-modifier":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(async)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.async.js"},"binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#object-binding-pattern"},{"include":"#array-binding-pattern"},{"include":"#destructuring-variable-rest"},{"include":"#variable-initializer"}]},"binding-element-const":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#object-binding-pattern-const"},{"include":"#array-binding-pattern-const"},{"include":"#destructuring-variable-rest-const"},{"include":"#variable-initializer"}]},"boolean-literal":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))true(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.true.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))false(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.false.js"}]},"brackets":{"patterns":[{"begin":"\\\\{","end":"}|(?=\\\\*/)","patterns":[{"include":"#brackets"}]},{"begin":"\\\\[","end":"]|(?=\\\\*/)","patterns":[{"include":"#brackets"}]}]},"cast":{"patterns":[{"include":"#jsx"}]},"class-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(class)\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.type.class.js"}},"end":"(?<=})","name":"meta.class.js","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-declaration-or-expression-patterns":{"patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.class.js"}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"include":"#type-parameters"},{"include":"#class-or-interface-body"}]},"class-expression":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(class)\\\\b(?=\\\\s+|[<{]|/[*/])","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"storage.type.class.js"}},"end":"(?<=})","name":"meta.class.js","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-or-interface-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"patterns":[{"include":"#comment"},{"include":"#decorator"},{"begin":"(?<=:)\\\\s*","end":"(?=[-\\\\])+,:;}\\\\s]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#expression"}]},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#field-declaration"},{"include":"#string"},{"include":"#type-annotation"},{"include":"#variable-initializer"},{"include":"#access-modifier"},{"include":"#property-accessor"},{"include":"#async-modifier"},{"include":"#after-operator-block-as-object-literal"},{"include":"#decl-block"},{"include":"#expression"},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"}]},"class-or-interface-heritage":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(extends|implements)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"storage.modifier.js"}},"end":"(?=\\\\{)","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"include":"#type-parameters"},{"include":"#expressionWithoutIdentifiers"},{"captures":{"1":{"name":"entity.name.type.module.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))(?=\\\\s*[$_[:alpha:]][$_[:alnum:]]*(\\\\s*\\\\??\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)*\\\\s*)"},{"captures":{"1":{"name":"entity.other.inherited-class.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)"},{"include":"#expressionPunctuations"}]},"comment":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"name":"comment.block.documentation.js","patterns":[{"include":"#docblock"}]},{"begin":"(/\\\\*)(?:\\\\s*((@)internal)(?=\\\\s|(\\\\*/)))?","beginCaptures":{"1":{"name":"punctuation.definition.comment.js"},"2":{"name":"storage.type.internaldeclaration.js"},"3":{"name":"punctuation.decorator.internaldeclaration.js"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"name":"comment.block.js"},{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js"},"2":{"name":"comment.line.double-slash.js"},"3":{"name":"punctuation.definition.comment.js"},"4":{"name":"storage.type.internaldeclaration.js"},"5":{"name":"punctuation.decorator.internaldeclaration.js"}},"contentName":"comment.line.double-slash.js","end":"(?=$)"}]},"control-statement":{"patterns":[{"include":"#switch-statement"},{"include":"#for-loop"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(catch|finally|throw|try)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.trycatch.js"},{"captures":{"1":{"name":"keyword.control.loop.js"},"2":{"name":"entity.name.label.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|goto)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|do|goto|while)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.loop.js"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(return)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.control.flow.js"}},"end":"(?=[;}]|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#expression"}]},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default|switch)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.switch.js"},{"include":"#if-statement"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(else|if)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.conditional.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(with)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.with.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(package)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(debugger)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.other.debugger.js"}]},"decl-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.block.js","patterns":[{"include":"#statements"}]},"declaration":{"patterns":[{"include":"#decorator"},{"include":"#var-expr"},{"include":"#function-declaration"},{"include":"#class-declaration"},{"include":"#interface-declaration"},{"include":"#enum-declaration"},{"include":"#namespace-declaration"},{"include":"#type-alias-declaration"},{"include":"#import-equals-declaration"},{"include":"#import-declaration"},{"include":"#export-declaration"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(declare|export)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.js"}]},"decorator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))@","beginCaptures":{"0":{"name":"punctuation.decorator.js"}},"end":"(?=\\\\s)","name":"meta.decorator.js","patterns":[{"include":"#expression"}]},"destructuring-const":{"patterns":[{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\{)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.object-binding-pattern-variable.js","patterns":[{"include":"#object-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]},{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\[)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.array-binding-pattern-variable.js","patterns":[{"include":"#array-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-parameter":{"patterns":[{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.object.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js"}},"name":"meta.parameter.object-binding-pattern.js","patterns":[{"include":"#parameter-object-binding-element"}]},{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"name":"meta.paramter.array-binding-pattern.js","patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]}]},"destructuring-parameter-rest":{"captures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"variable.parameter.js"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"destructuring-variable":{"patterns":[{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\{)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.object-binding-pattern-variable.js","patterns":[{"include":"#object-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]},{"begin":"(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\\\s*(?=\\\\[)","end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.array-binding-pattern-variable.js","patterns":[{"include":"#array-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-variable-rest":{"captures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"meta.definition.variable.js variable.other.readwrite.js"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"destructuring-variable-rest-const":{"captures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"meta.definition.variable.js variable.other.constant.js"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"directives":{"begin":"^(///)\\\\s*(?=<(reference|amd-dependency|amd-module)(\\\\s+(path|types|no-default-lib|lib|name|resolution-mode)\\\\s*=\\\\s*(('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)))+\\\\s*/>\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.js"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.js","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.js"},"2":{"name":"entity.name.tag.directive.js"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.js"}},"name":"meta.tag.js","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.js"},{"match":"=","name":"keyword.operator.assignment.js"},{"include":"#string"}]}]},"docblock":{"patterns":[{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.access-type.jsdoc"}},"match":"((@)a(?:ccess|pi))\\\\s+(p(?:rivate|rotected|ublic))\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"5":{"name":"constant.other.email.link.underline.jsdoc"},"6":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"match":"((@)author)\\\\s+([^*/<>@\\\\s](?:[^*/<>@]|\\\\*[^/])*)(?:\\\\s*(<)([^>\\\\s]+)(>))?"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"keyword.operator.control.jsdoc"},"5":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)borrows)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)\\\\s+(as)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)"},{"begin":"((@)example)\\\\s+","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=@|\\\\*/)","name":"meta.example.jsdoc","patterns":[{"match":"^\\\\s\\\\*\\\\s+"},{"begin":"\\\\G(<)caption(>)","beginCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"contentName":"constant.other.description.jsdoc","end":"(</)caption(>)|(?=\\\\*/)","endCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}}},{"captures":{"0":{"name":"source.embedded.js"}},"match":"[^*@\\\\s](?:[^*]|\\\\*[^/])*"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.symbol-type.jsdoc"}},"match":"((@)kind)\\\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.link.underline.jsdoc"},"4":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)see)\\\\s+(?:((?=https?://)(?:[^*\\\\s]|\\\\*[^/])+)|((?!https?://|(?:\\\\[[^]\\\\[]*])?\\\\{@(?:link|linkcode|linkplain|tutorial)\\\\b)(?:[^*/@\\\\s]|\\\\*[^/])+))"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)template)\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*(?:\\\\s*,\\\\s*[$A-Z_a-z][]$.\\\\[\\\\w]*)*)"},{"begin":"((@)template)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:arg|argument|const|constant|member|namespace|param|var))\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*)"},{"begin":"((@)typedef)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"(?:[^*/@\\\\s]|\\\\*[^/])+","name":"entity.name.type.instance.jsdoc"}]},{"begin":"((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"},{"captures":{"1":{"name":"punctuation.definition.optional-value.begin.bracket.square.jsdoc"},"2":{"name":"keyword.operator.assignment.jsdoc"},"3":{"name":"source.embedded.js"},"4":{"name":"punctuation.definition.optional-value.end.bracket.square.jsdoc"},"5":{"name":"invalid.illegal.syntax.jsdoc"}},"match":"(\\\\[)\\\\s*[$\\\\w]+(?:(?:\\\\[])?\\\\.[$\\\\w]+)*(?:\\\\s*(=)\\\\s*((?>\\"(?:\\\\*(?!/)|\\\\\\\\(?!\\")|[^*\\\\\\\\])*?\\"|'(?:\\\\*(?!/)|\\\\\\\\(?!')|[^*\\\\\\\\])*?'|\\\\[(?:\\\\*(?!/)|[^*])*?]|(?:\\\\*(?!/)|\\\\s(?!\\\\s*])|\\\\[.*?(?:]|(?=\\\\*/))|[^]*\\\\[\\\\s])*)*))?\\\\s*(?:(])((?:[^*\\\\s]|\\\\*[^/\\\\s])+)?|(?=\\\\*/))","name":"variable.other.jsdoc"}]},{"begin":"((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|satisfies|suppress|this|throws|type|yields?))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\\\s+((?:[^*@{}\\\\s]|\\\\*[^/])+)"},{"begin":"((@)(?:default(?:value)?|license|version))\\\\s+(([\\"']))","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"},"4":{"name":"punctuation.definition.string.begin.jsdoc"}},"contentName":"variable.other.jsdoc","end":"(\\\\3)|(?=$|\\\\*/)","endCaptures":{"0":{"name":"variable.other.jsdoc"},"1":{"name":"punctuation.definition.string.end.jsdoc"}}},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:default(?:value)?|license|tutorial|variation|version))\\\\s+([^*\\\\s]+)"},{"captures":{"1":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\\\b","name":"storage.type.class.jsdoc"},{"include":"#inline-tags"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"((@)[$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s+)"}]},"enum-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?(?:\\\\b(const)\\\\s+)?\\\\b(enum)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.type.enum.js"},"5":{"name":"entity.name.type.enum.js"}},"end":"(?<=})","name":"meta.enum.declaration.js","patterns":[{"include":"#comment"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"patterns":[{"include":"#comment"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"0":{"name":"variable.other.enummember.js"}},"end":"(?=[,}]|$)","patterns":[{"include":"#comment"},{"include":"#variable-initializer"}]},{"begin":"(?=(('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+])))","end":"(?=[,}]|$)","patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#comment"},{"include":"#variable-initializer"}]},{"include":"#punctuation-comma"}]}]},"export-declaration":{"patterns":[{"captures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"keyword.control.as.js"},"3":{"name":"storage.type.namespace.js"},"4":{"name":"entity.name.type.module.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)\\\\s+(as)\\\\s+(namespace)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)(?:\\\\s+(type))?(?:\\\\s*(=)|\\\\s+(default)(?=\\\\s+))","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"keyword.control.type.js"},"3":{"name":"keyword.operator.assignment.js"},"4":{"name":"keyword.control.default.js"}},"end":"(?=$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.export.default.js","patterns":[{"include":"#interface-declaration"},{"include":"#expression"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)(?:\\\\s+(type))?\\\\b(?!(\\\\$)|(\\\\s*:))((?=\\\\s*[*{])|((?=\\\\s*[$_[:alpha:]][$_[:alnum:]]*([,\\\\s]))(?!\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)))","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"keyword.control.type.js"}},"end":"(?=$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.export.js","patterns":[{"include":"#import-export-declaration"}]}]},"expression":{"patterns":[{"include":"#expressionWithoutIdentifiers"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-inside-possibly-arrow-parens":{"patterns":[{"include":"#expressionWithoutIdentifiers"},{"include":"#comment"},{"include":"#string"},{"include":"#decorator"},{"include":"#destructuring-parameter"},{"captures":{"1":{"name":"storage.modifier.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"entity.name.function.js variable.language.this.js"},"4":{"name":"entity.name.function.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*[,:]|$)"},{"include":"#type-annotation"},{"include":"#variable-initializer"},{"match":",","name":"punctuation.separator.parameter.js"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-operators":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(await)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.flow.js"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?=\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*\\\\*)","beginCaptures":{"1":{"name":"keyword.control.flow.js"}},"end":"\\\\*","endCaptures":{"0":{"name":"keyword.generator.asterisk.js"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.control.flow.js"},"2":{"name":"keyword.generator.asterisk.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s*(\\\\*))?"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))delete(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.delete.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))in(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.in.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))of(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.of.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.instanceof.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.new.js"},{"include":"#typeof-operator"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))void(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.void.js"},{"captures":{"1":{"name":"keyword.control.as.js"},"2":{"name":"storage.modifier.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*($|[]),:;}]))"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.js"},"2":{"name":"keyword.control.satisfies.js"}},"end":"(?=^|[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisfies)\\\\s+)|(\\\\s+<))","patterns":[{"include":"#type"}]},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.spread.js"},{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.js"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.js"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.js"},{"match":"[!=]==?","name":"keyword.operator.comparison.js"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.js"},{"captures":{"1":{"name":"keyword.operator.logical.js"},"2":{"name":"keyword.operator.assignment.compound.js"},"3":{"name":"keyword.operator.arithmetic.js"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.js"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.js"},{"match":"=","name":"keyword.operator.assignment.js"},{"match":"--","name":"keyword.operator.decrement.js"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.js"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.js"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.js"},"2":{"name":"keyword.operator.arithmetic.js"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.js"},"2":{"name":"keyword.operator.arithmetic.js"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#jsx"},{"include":"#string"},{"include":"#regex"},{"include":"#comment"},{"include":"#function-expression"},{"include":"#class-expression"},{"include":"#arrow-function"},{"include":"#paren-expression-possibly-arrow"},{"include":"#cast"},{"include":"#ternary-expression"},{"include":"#new-expr"},{"include":"#instanceof-expr"},{"include":"#object-literal"},{"include":"#expression-operators"},{"include":"#function-call"},{"include":"#literal"},{"include":"#support-objects"},{"include":"#paren-expression"}]},"field-declaration":{"begin":"(?<!\\\\()(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)\\\\s+)?(?=\\\\s*(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|(#?[$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(?:(?:(\\\\?)|(!))\\\\s*)?([,:;=}]|$))","beginCaptures":{"1":{"name":"storage.modifier.js"}},"end":"(?=[,;}]|$|^((?!\\\\s*(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|(#?[$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(?:(?:(\\\\?)|(!))\\\\s*)?([,:;=]|$))))|(?<=})","name":"meta.field.declaration.js","patterns":[{"include":"#variable-initializer"},{"include":"#type-annotation"},{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"include":"#comment"},{"captures":{"1":{"name":"meta.definition.property.js entity.name.function.js"},"2":{"name":"keyword.operator.optional.js"},"3":{"name":"keyword.operator.definiteassignment.js"}},"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)(?:(\\\\?)|(!))?(?=\\\\s*\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"match":"#?[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.property.js variable.object.property.js"},{"match":"\\\\?","name":"keyword.operator.optional.js"},{"match":"!","name":"keyword.operator.definiteassignment.js"}]},"for-loop":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))for(?=((\\\\s+|(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*))await)?\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)?(\\\\())","beginCaptures":{"0":{"name":"keyword.control.loop.js"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"match":"await","name":"keyword.control.loop.js"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#var-expr"},{"include":"#expression"},{"include":"#punctuation-semicolon"}]}]},"function-body":{"patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#return-type"},{"include":"#type-function-return-type"},{"include":"#decl-block"},{"match":"\\\\*","name":"keyword.generator.asterisk.js"}]},"function-call":{"patterns":[{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","end":"(?<=\\\\))(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\\\\())","name":"meta.function-call.js","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"},{"include":"#paren-expression"}]},{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","end":"(?<=>)(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*[(\\\\[{]\\\\s*)$)","name":"meta.function-call.js","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.js punctuation.accessor.optional.js"},{"match":"!","name":"meta.function-call.js keyword.operator.definiteassignment.js"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.js"}]},"function-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?(?:(async)\\\\s+)?(function)\\\\b(?:\\\\s*(\\\\*))?(?:(?:\\\\s+|(?<=\\\\*))([$_[:alpha:]][$_[:alnum:]]*))?\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.async.js"},"4":{"name":"storage.type.function.js"},"5":{"name":"keyword.generator.asterisk.js"},"6":{"name":"meta.definition.function.js entity.name.function.js"}},"end":"(?=;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|(?<=})","name":"meta.function.js","patterns":[{"include":"#function-name"},{"include":"#function-body"}]},"function-expression":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(async)\\\\s+)?(function)\\\\b(?:\\\\s*(\\\\*))?(?:(?:\\\\s+|(?<=\\\\*))([$_[:alpha:]][$_[:alnum:]]*))?\\\\s*","beginCaptures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"storage.type.function.js"},"3":{"name":"keyword.generator.asterisk.js"},"4":{"name":"meta.definition.function.js entity.name.function.js"}},"end":"(?=;)|(?<=})","name":"meta.function.expression.js","patterns":[{"include":"#function-name"},{"include":"#single-line-comment-consuming-line-ending"},{"include":"#function-body"}]},"function-name":{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.function.js entity.name.function.js"},"function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.js"}},"name":"meta.parameters.js","patterns":[{"include":"#function-parameters-body"}]},"function-parameters-body":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#decorator"},{"include":"#destructuring-parameter"},{"include":"#parameter-name"},{"include":"#parameter-type-annotation"},{"include":"#variable-initializer"},{"match":",","name":"punctuation.separator.parameter.js"}]},"identifiers":{"patterns":[{"include":"#object-identifiers"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"entity.name.function.js"}},"match":"(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"variable.other.constant.property.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"variable.other.property.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.js"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.js"}]},"if-statement":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bif\\\\s*(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))\\\\s*(?!\\\\{))","end":"(?=;|$|})","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(if)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.conditional.js"},"2":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=\\\\))\\\\s*/(?![*/])(?=(?:[^/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"keyword.other.js"}},"name":"string.regexp.js","patterns":[{"include":"#regexp"}]},{"include":"#statements"}]}]},"import-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(import)(?:\\\\s+(type)(?!\\\\s+from))?(?!\\\\s*[(:])(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"keyword.control.import.js"},"4":{"name":"keyword.control.type.js"}},"end":"(?<!(?:^|[^$._[:alnum:]])import)(?=;|$|^)","name":"meta.import.js","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#string"},{"begin":"(?<=(?:^|[^$._[:alnum:]])import)(?!\\\\s*[\\"'])","end":"\\\\bfrom\\\\b","endCaptures":{"0":{"name":"keyword.control.from.js"}},"patterns":[{"include":"#import-export-declaration"}]},{"include":"#import-export-declaration"}]},"import-equals-declaration":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(import)(?:\\\\s+(type))?\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(=)\\\\s*(require)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"keyword.control.import.js"},"4":{"name":"keyword.control.type.js"},"5":{"name":"variable.other.readwrite.alias.js"},"6":{"name":"keyword.operator.assignment.js"},"7":{"name":"keyword.control.require.js"},"8":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"name":"meta.import-equals.external.js","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(import)(?:\\\\s+(type))?\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(=)\\\\s*(?!require\\\\b)","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"keyword.control.import.js"},"4":{"name":"keyword.control.type.js"},"5":{"name":"variable.other.readwrite.alias.js"},"6":{"name":"keyword.operator.assignment.js"}},"end":"(?=;|$|^)","name":"meta.import-equals.internal.js","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"captures":{"1":{"name":"entity.name.type.module.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.readwrite.js"}]}]},"import-export-assert-clause":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(with)|(assert))\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.with.js"},"2":{"name":"keyword.control.assert.js"},"3":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"patterns":[{"include":"#comment"},{"include":"#string"},{"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object-literal.key.js"},{"match":":","name":"punctuation.separator.key-value.js"}]},"import-export-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.block.js","patterns":[{"include":"#import-export-clause"}]},"import-export-clause":{"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.type.js"},"2":{"name":"keyword.control.default.js"},"3":{"name":"constant.language.import-export-all.js"},"4":{"name":"variable.other.readwrite.js"},"5":{"name":"string.quoted.alias.js"},"12":{"name":"keyword.control.as.js"},"13":{"name":"keyword.control.default.js"},"14":{"name":"variable.other.readwrite.alias.js"},"15":{"name":"string.quoted.alias.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(type)\\\\s+)?(?:\\\\b(default)|(\\\\*)|\\\\b([$_[:alpha:]][$_[:alnum:]]*)|(('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)))\\\\s+(as)\\\\s+(?:(default(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|([$_[:alpha:]][$_[:alnum:]]*)|(('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)))"},{"include":"#punctuation-comma"},{"match":"\\\\*","name":"constant.language.import-export-all.js"},{"match":"\\\\b(default)\\\\b","name":"keyword.control.default.js"},{"captures":{"1":{"name":"keyword.control.type.js"},"2":{"name":"variable.other.readwrite.alias.js"},"3":{"name":"string.quoted.alias.js"}},"match":"(?:\\\\b(type)\\\\s+)?(?:([$_[:alpha:]][$_[:alnum:]]*)|(('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)))"}]},"import-export-declaration":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#import-export-block"},{"match":"\\\\bfrom\\\\b","name":"keyword.control.from.js"},{"include":"#import-export-assert-clause"},{"include":"#import-export-clause"}]},"indexer-declaration":{"begin":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)\\\\s*)?\\\\s*(\\\\[)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=:)","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"meta.brace.square.js"},"3":{"name":"variable.parameter.js"}},"end":"(])\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.js"},"2":{"name":"keyword.operator.optional.js"}},"name":"meta.indexer.declaration.js","patterns":[{"include":"#type-annotation"}]},"indexer-mapped-type-declaration":{"begin":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([-+])?(readonly)\\\\s*)?\\\\s*(\\\\[)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s+(in)\\\\s+","beginCaptures":{"1":{"name":"keyword.operator.type.modifier.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"meta.brace.square.js"},"4":{"name":"entity.name.type.js"},"5":{"name":"keyword.operator.expression.in.js"}},"end":"(])([-+])?\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.js"},"2":{"name":"keyword.operator.type.modifier.js"},"3":{"name":"keyword.operator.optional.js"}},"name":"meta.indexer.mappedtype.declaration.js","patterns":[{"captures":{"1":{"name":"keyword.control.as.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+"},{"include":"#type"}]},"inline-tags":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.bracket.square.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.square.end.jsdoc"}},"match":"(\\\\[)[^]]+(])(?=\\\\{@(?:link|linkcode|linkplain|tutorial))","name":"constant.other.description.jsdoc"},{"begin":"(\\\\{)((@)(?:link(?:code|plain)?|tutorial))\\\\s*","beginCaptures":{"1":{"name":"punctuation.definition.bracket.curly.begin.jsdoc"},"2":{"name":"storage.type.class.jsdoc"},"3":{"name":"punctuation.definition.inline.tag.jsdoc"}},"end":"}|(?=\\\\*/)","endCaptures":{"0":{"name":"punctuation.definition.bracket.curly.end.jsdoc"}},"name":"entity.name.type.instance.jsdoc","patterns":[{"captures":{"1":{"name":"variable.other.link.underline.jsdoc"},"2":{"name":"punctuation.separator.pipe.jsdoc"}},"match":"\\\\G((?=https?://)(?:[^*|}\\\\s]|\\\\*/)+)(\\\\|)?"},{"captures":{"1":{"name":"variable.other.description.jsdoc"},"2":{"name":"punctuation.separator.pipe.jsdoc"}},"match":"\\\\G((?:[^*@{|}\\\\s]|\\\\*[^/])+)(\\\\|)?"}]}]},"instanceof-expr":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(instanceof)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.expression.instanceof.js"}},"end":"(?<=\\\\))|(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\\\s*\\\\())))","patterns":[{"include":"#type"}]},"interface-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(interface)\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.type.interface.js"}},"end":"(?<=})","name":"meta.interface.js","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.interface.js"}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"include":"#type-parameters"},{"include":"#class-or-interface-body"}]},"jsdoctype":{"patterns":[{"begin":"\\\\G(\\\\{)","beginCaptures":{"0":{"name":"entity.name.type.instance.jsdoc"},"1":{"name":"punctuation.definition.bracket.curly.begin.jsdoc"}},"contentName":"entity.name.type.instance.jsdoc","end":"((}))\\\\s*|(?=\\\\*/)","endCaptures":{"1":{"name":"entity.name.type.instance.jsdoc"},"2":{"name":"punctuation.definition.bracket.curly.end.jsdoc"}},"patterns":[{"include":"#brackets"}]}]},"jsx":{"patterns":[{"include":"#jsx-tag-without-attributes-in-expression"},{"include":"#jsx-tag-in-expression"}]},"jsx-children":{"patterns":[{"include":"#jsx-tag-without-attributes"},{"include":"#jsx-tag"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-entities"}]},"jsx-entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.js"},"3":{"name":"punctuation.definition.entity.js"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.js"}]},"jsx-evaluated-code":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.js"}},"contentName":"meta.embedded.expression.js","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.js"}},"patterns":[{"include":"#expression"}]},"jsx-string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.js"}},"name":"string.quoted.double.js","patterns":[{"include":"#jsx-entities"}]},"jsx-string-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.js"}},"name":"string.quoted.single.js","patterns":[{"include":"#jsx-entities"}]},"jsx-tag":{"begin":"(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","end":"(/>)|(</)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.js"},"2":{"name":"punctuation.definition.tag.begin.js"},"3":{"name":"entity.name.tag.namespace.js"},"4":{"name":"punctuation.separator.namespace.js"},"5":{"name":"entity.name.tag.js"},"6":{"name":"support.class.component.js"},"7":{"name":"punctuation.definition.tag.end.js"}},"name":"meta.tag.js","patterns":[{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"}},"end":"(?=/?>)","patterns":[{"include":"#comment"},{"include":"#type-arguments"},{"include":"#jsx-tag-attributes"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.js"}},"contentName":"meta.jsx.children.js","end":"(?=</)","patterns":[{"include":"#jsx-children"}]}]},"jsx-tag-attribute-assignment":{"match":"=(?=\\\\s*(?:[\\"'{]|/\\\\*|//|\\\\n))","name":"keyword.operator.assignment.js"},"jsx-tag-attribute-name":{"captures":{"1":{"name":"entity.other.attribute-name.namespace.js"},"2":{"name":"punctuation.separator.namespace.js"},"3":{"name":"entity.other.attribute-name.js"}},"match":"\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(:))?([$_[:alpha:]][-$_[:alnum:]]*)(?=[=\\\\s]|/?>|/\\\\*|//)"},"jsx-tag-attributes":{"begin":"\\\\s+","end":"(?=/?>)","name":"meta.tag.attributes.js","patterns":[{"include":"#comment"},{"include":"#jsx-tag-attribute-name"},{"include":"#jsx-tag-attribute-assignment"},{"include":"#jsx-string-double-quoted"},{"include":"#jsx-string-single-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-tag-attributes-illegal"}]},"jsx-tag-attributes-illegal":{"match":"\\\\S+","name":"invalid.illegal.attribute.js"},"jsx-tag-in-expression":{"begin":"(?<!\\\\+\\\\+|--)(?<=[(*,:=>?\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?!<\\\\s*[$_[:alpha:]][$_[:alnum:]]*((\\\\s+extends\\\\s+[^=>])|,))(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","patterns":[{"include":"#jsx-tag"}]},"jsx-tag-without-attributes":{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"},"6":{"name":"punctuation.definition.tag.end.js"}},"contentName":"meta.jsx.children.js","end":"(</)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"},"6":{"name":"punctuation.definition.tag.end.js"}},"name":"meta.tag.without-attributes.js","patterns":[{"include":"#jsx-children"}]},"jsx-tag-without-attributes-in-expression":{"begin":"(?<!\\\\+\\\\+|--)(?<=[(*,:=>?\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>))","patterns":[{"include":"#jsx-tag-without-attributes"}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.js"},"2":{"name":"punctuation.separator.label.js"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.js"},"2":{"name":"punctuation.separator.label.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)"}]},"literal":{"patterns":[{"include":"#numeric-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#undefined-literal"},{"include":"#numericConstant-literal"},{"include":"#array-literal"},{"include":"#this-literal"},{"include":"#super-literal"}]},"method-declaration":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?\\\\s*\\\\b(constructor)\\\\b(?!:)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.modifier.async.js"},"5":{"name":"storage.type.js"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?(?:\\\\s*\\\\b(new)\\\\b(?!:)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))|(?:(\\\\*)\\\\s*)?)(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.modifier.async.js"},"5":{"name":"keyword.operator.new.js"},"6":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?(?:\\\\b([gs]et)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*((\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.modifier.async.js"},"5":{"name":"storage.type.property.js"},"6":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??)\\\\s*[(<])","end":"(?=[(<])","patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.method.js entity.name.function.js"},{"match":"\\\\?","name":"keyword.operator.optional.js"}]},"namespace-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(namespace|module)\\\\s+(?=[\\"$'_\`[:alpha:]])","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.namespace.js"}},"end":"(?<=})|(?=;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.namespace.declaration.js","patterns":[{"include":"#comment"},{"include":"#string"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.type.module.js"},{"include":"#punctuation-accessor"},{"include":"#decl-block"}]},"new-expr":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.new.js"}},"end":"(?<=\\\\))|(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\\\s*\\\\())))","name":"new.expr.js","patterns":[{"include":"#expression"}]},"null-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))null(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.null.js"},"numeric-literal":{"patterns":[{"captures":{"1":{"name":"storage.type.numeric.bigint.js"}},"match":"\\\\b(?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.hex.js"},{"captures":{"1":{"name":"storage.type.numeric.bigint.js"}},"match":"\\\\b(?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.binary.js"},{"captures":{"1":{"name":"storage.type.numeric.bigint.js"}},"match":"\\\\b(?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.octal.js"},{"captures":{"0":{"name":"constant.numeric.decimal.js"},"1":{"name":"meta.delimiter.decimal.period.js"},"2":{"name":"storage.type.numeric.bigint.js"},"3":{"name":"meta.delimiter.decimal.period.js"},"4":{"name":"storage.type.numeric.bigint.js"},"5":{"name":"meta.delimiter.decimal.period.js"},"6":{"name":"storage.type.numeric.bigint.js"},"7":{"name":"storage.type.numeric.bigint.js"},"8":{"name":"meta.delimiter.decimal.period.js"},"9":{"name":"storage.type.numeric.bigint.js"},"10":{"name":"meta.delimiter.decimal.period.js"},"11":{"name":"storage.type.numeric.bigint.js"},"12":{"name":"meta.delimiter.decimal.period.js"},"13":{"name":"storage.type.numeric.bigint.js"},"14":{"name":"storage.type.numeric.bigint.js"}},"match":"(?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$)"}]},"numericConstant-literal":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))NaN(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.nan.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Infinity(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.infinity.js"}]},"object-binding-element":{"patterns":[{"include":"#comment"},{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(?=[,}])","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#binding-element"}]},{"include":"#object-binding-pattern"},{"include":"#destructuring-variable-rest"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"object-binding-element-const":{"patterns":[{"include":"#comment"},{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(?=[,}])","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#binding-element-const"}]},{"include":"#object-binding-pattern-const"},{"include":"#destructuring-variable-rest-const"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"object-binding-element-propertyName":{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(:)","endCaptures":{"0":{"name":"punctuation.destructuring.js"}},"patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.object.property.js"}]},"object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.object.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js"}},"patterns":[{"include":"#object-binding-element"}]},"object-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.object.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js"}},"patterns":[{"include":"#object-binding-element-const"}]},"object-identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\??\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.js"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"variable.other.constant.object.property.js"},"4":{"name":"variable.other.object.property.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(?:(#?\\\\p{upper}[$_\\\\d[:upper:]]*)|(#?[$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"variable.other.constant.object.js"},"2":{"name":"variable.other.object.js"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"}]},"object-literal":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.objectliteral.js","patterns":[{"include":"#object-member"}]},"object-literal-method-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(async)\\\\s+)?(?:\\\\b([gs]et)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*((\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"storage.type.property.js"},"3":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(async)\\\\s+)?(?:\\\\b([gs]et)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*((\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"storage.type.property.js"},"3":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.js meta.object-literal.key.js","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"'\`])","end":"(?=:)|((?<=[\\"'\`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.js meta.object-literal.key.js","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$)))","end":"(?=:)|(?=\\\\s*([(,<}])|(\\\\s+as|satisifies\\\\s+))","name":"meta.object.member.js meta.object-literal.key.js","patterns":[{"include":"#comment"},{"include":"#numeric-literal"}]},{"begin":"(?<=[]\\"'\`])(?=\\\\s*[(<])","end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#function-body"}]},{"captures":{"0":{"name":"meta.object-literal.key.js"},"1":{"name":"constant.numeric.decimal.js"}},"match":"(?![$_[:alpha:]])(\\\\d+)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.js"},{"captures":{"0":{"name":"meta.object-literal.key.js"},"1":{"name":"entity.name.function.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/)*\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))","name":"meta.object.member.js"},{"captures":{"0":{"name":"meta.object-literal.key.js"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.js"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.js"}},"end":"(?=[,}])","name":"meta.object.member.js","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.js"},{"captures":{"1":{"name":"keyword.control.as.js"},"2":{"name":"storage.modifier.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*([,}]|$))","name":"meta.object.member.js"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.js"},"2":{"name":"keyword.control.satisfies.js"}},"end":"(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|^|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisifies)\\\\s+))","name":"meta.object.member.js","patterns":[{"include":"#type"}]},{"begin":"(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*=)","end":"(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.js","patterns":[{"include":"#expression"}]},{"begin":":","beginCaptures":{"0":{"name":"meta.object-literal.key.js punctuation.separator.key-value.js"}},"end":"(?=[,}])","name":"meta.object.member.js","patterns":[{"begin":"(?<=:)\\\\s*(async)?(?=\\\\s*(<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"end":"(?<=>)","patterns":[{"include":"#type-parameters"}]},{"begin":"(?<=>)\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"include":"#possibly-arrow-return-type"},{"include":"#expression"}]},{"include":"#punctuation-comma"},{"include":"#decl-block"}]},"parameter-array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]},"parameter-binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#parameter-object-binding-pattern"},{"include":"#parameter-array-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"storage.modifier.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"entity.name.function.js variable.language.this.js"},"4":{"name":"entity.name.function.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)"}]},"parameter-object-binding-element":{"patterns":[{"include":"#comment"},{"begin":"(?=(\\\\b((?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$))|\\\\b((?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B|\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b|\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.))(?!\\\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`)|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])+]))\\\\s*(:))","end":"(?=[,}])","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#parameter-binding-element"},{"include":"#paren-expression"}]},{"include":"#parameter-object-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"parameter-object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.object.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js"}},"patterns":[{"include":"#parameter-object-binding-element"}]},"parameter-type-annotation":{"patterns":[{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?=[),])|(?==[^>])","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression"}]},"paren-expression-possibly-arrow":{"patterns":[{"begin":"(?<=[(,=])\\\\s*(async)?(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"begin":"(?<=[(,=]|=>|^return|[^$._[:alnum:]]return)\\\\s*(async)?(?=\\\\s*((((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()|(<)|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)))\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"include":"#possibly-arrow-return-type"}]},"paren-expression-possibly-arrow-with-typeparameters":{"patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.js meta.return.type.arrow.js keyword.operator.type.annotation.js"}},"contentName":"meta.arrow.js meta.return.type.arrow.js","end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","patterns":[{"include":"#arrow-return-type-body"}]},"property-accessor":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(accessor|get|set)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.type.property.js"},"punctuation-accessor":{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"}},"match":"(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d))"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.js"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.js"},"qstring-double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"invalid.illegal.newline.js"}},"name":"string.quoted.double.js","patterns":[{"include":"#string-character-escape"}]},"qstring-single":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"(')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"invalid.illegal.newline.js"}},"name":"string.quoted.single.js","patterns":[{"include":"#string-character-escape"}]},"regex":{"patterns":[{"begin":"(?<!\\\\+\\\\+|--|})(?<=[!(+,:=?\\\\[]|^return|[^$._[:alnum:]]return|^case|[^$._[:alnum:]]case|=>|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.js"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"keyword.other.js"}},"name":"string.regexp.js","patterns":[{"include":"#regexp"}]},{"begin":"((?<![]$)_[:alnum:]]|\\\\+\\\\+|--|}|\\\\*/)|((?<=^return|[^$._[:alnum:]]return|^case|[^$._[:alnum:]]case))\\\\s*)/(?![*/])(?=(?:[^/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"keyword.other.js"}},"name":"string.regexp.js","patterns":[{"include":"#regexp"}]}]},"regex-character-class":{"patterns":[{"match":"\\\\\\\\[DSWdfnrstvw]|\\\\.","name":"constant.other.character-class.regexp"},{"match":"\\\\\\\\([0-7]{3}|x\\\\h{2}|u\\\\h{4})","name":"constant.character.numeric.regexp"},{"match":"\\\\\\\\c[A-Z]","name":"constant.character.control.regexp"},{"match":"\\\\\\\\.","name":"constant.character.escape.backslash.regexp"}]},"regexp":{"patterns":[{"match":"\\\\\\\\[Bb]|[$^]","name":"keyword.control.anchor.regexp"},{"captures":{"0":{"name":"keyword.other.back-reference.regexp"},"1":{"name":"variable.other.regexp"}},"match":"\\\\\\\\(?:[1-9]\\\\d*|k<([$A-Z_a-z][$\\\\w]*)>)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?<!))","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"punctuation.definition.group.assertion.regexp"},"3":{"name":"meta.assertion.look-ahead.regexp"},"4":{"name":"meta.assertion.negative-look-ahead.regexp"},"5":{"name":"meta.assertion.look-behind.regexp"},"6":{"name":"meta.assertion.negative-look-behind.regexp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.assertion.regexp","patterns":[{"include":"#regexp"}]},{"begin":"\\\\((?:(\\\\?:)|\\\\?<([$A-Z_a-z][$\\\\w]*)>)?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.no-capture.regexp"},"2":{"name":"variable.other.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#regexp"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"}]},"return-type":{"patterns":[{"begin":"(?<=\\\\))\\\\s*(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?<![\\\\&:|])(?=$|^|[,;{}]|//)","name":"meta.return.type.js","patterns":[{"include":"#return-type-core"}]},{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?<![\\\\&:|])((?=[,;{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.return.type.js","patterns":[{"include":"#return-type-core"}]}]},"return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<=[\\\\&:|])(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"shebang":{"captures":{"1":{"name":"punctuation.definition.comment.js"}},"match":"\\\\A(#!).*(?=$)","name":"comment.line.shebang.js"},"single-line-comment-consuming-line-ending":{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js"},"2":{"name":"comment.line.double-slash.js"},"3":{"name":"punctuation.definition.comment.js"},"4":{"name":"storage.type.internaldeclaration.js"},"5":{"name":"punctuation.decorator.internaldeclaration.js"}},"contentName":"comment.line.double-slash.js","end":"(?=^)"},"statements":{"patterns":[{"include":"#declaration"},{"include":"#control-statement"},{"include":"#after-operator-block-as-object-literal"},{"include":"#decl-block"},{"include":"#label"},{"include":"#expression"},{"include":"#punctuation-semicolon"},{"include":"#string"},{"include":"#comment"}]},"string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template"}]},"string-character-escape":{"match":"\\\\\\\\(x\\\\h{2}|u\\\\h{4}|u\\\\{\\\\h+}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.js"},"super-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))super\\\\b(?!\\\\$)","name":"variable.language.super.js"},"support-function-call-identifiers":{"patterns":[{"include":"#literal"},{"include":"#support-objects"},{"include":"#object-identifiers"},{"include":"#punctuation-accessor"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*\\\\(\\\\s*[\\"'\`])","name":"keyword.operator.expression.import.js"}]},"support-objects":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(arguments)\\\\b(?!\\\\$)","name":"variable.language.arguments.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(Promise)\\\\b(?!\\\\$)","name":"support.class.promise.js"},{"captures":{"1":{"name":"keyword.control.import.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"},"4":{"name":"support.variable.property.importmeta.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(import)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(meta)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"keyword.operator.new.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"},"4":{"name":"support.variable.property.target.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(target)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"support.variable.property.js"},"4":{"name":"support.constant.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(?:(constructor|length|prototype|__proto__)\\\\b(?!\\\\$|\\\\s*(<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\()|(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\\\b(?!\\\\$))"},{"captures":{"1":{"name":"support.type.object.module.js"},"2":{"name":"support.type.object.module.js"},"3":{"name":"punctuation.accessor.js"},"4":{"name":"punctuation.accessor.optional.js"},"5":{"name":"support.type.object.module.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(exports)|(module)(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))(exports|id|filename|loaded|parent|children))?)\\\\b(?!\\\\$)"}]},"switch-statement":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bswitch\\\\s*\\\\()","end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"switch-statement.expr.js","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(switch)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.switch.js"},"2":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"name":"switch-expression.expr.js","patterns":[{"include":"#expression"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"(?=})","name":"switch-block.expr.js","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default(?=:))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.switch.js"}},"end":"(?=:)","name":"case-clause.expr.js","patterns":[{"include":"#expression"}]},{"begin":"(:)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"case-clause.expr.js punctuation.definition.section.case-statement.js"},"2":{"name":"meta.block.js punctuation.definition.block.js"}},"contentName":"meta.block.js","end":"}","endCaptures":{"0":{"name":"meta.block.js punctuation.definition.block.js"}},"patterns":[{"include":"#statements"}]},{"captures":{"0":{"name":"case-clause.expr.js punctuation.definition.section.case-statement.js"}},"match":"(:)"},{"include":"#statements"}]}]},"template":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js"},"2":{"name":"string.template.js punctuation.definition.string.template.begin.js"}},"contentName":"string.template.js","end":"\`","endCaptures":{"0":{"name":"string.template.js punctuation.definition.string.template.end.js"}},"patterns":[{"include":"#template-substitution-element"},{"include":"#string-character-escape"}]}]},"template-call":{"patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*)(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\`)","end":"(?=\`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?\`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.js"}]},{"include":"#type-arguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js"}},"end":"(?=\`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js"}},"contentName":"meta.embedded.line.js","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js"}},"name":"meta.template.expression.js","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js"},"2":{"name":"string.template.js punctuation.definition.string.template.begin.js"}},"contentName":"string.template.js","end":"\`","endCaptures":{"0":{"name":"string.template.js punctuation.definition.string.template.end.js"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js"}},"contentName":"meta.embedded.line.js","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js"}},"name":"meta.template.expression.js","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.js"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.js"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))this\\\\b(?!\\\\$)","name":"variable.language.this.js"},"type":{"patterns":[{"include":"#comment"},{"include":"#type-string"},{"include":"#numeric-literal"},{"include":"#type-primitive"},{"include":"#type-builtin-literals"},{"include":"#type-parameters"},{"include":"#type-tuple"},{"include":"#type-object"},{"include":"#type-operators"},{"include":"#type-conditional"},{"include":"#type-fn-type-parameters"},{"include":"#type-paren-or-function-parameters"},{"include":"#type-function-return-type"},{"captures":{"1":{"name":"storage.modifier.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*"},{"include":"#type-name"}]},"type-alias-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(type)\\\\b\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.type.js"},"4":{"name":"entity.name.type.alias.js"}},"end":"(?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","name":"meta.type.declaration.js","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"begin":"(=)\\\\s*(intrinsic)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.assignment.js"},"2":{"name":"keyword.control.intrinsic.js"}},"end":"(?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type"}]},{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.js"}},"end":"(?=[;}]|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type"}]}]},"type-annotation":{"patterns":[{"begin":"(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?<![\\\\&:|])(?!\\\\s*[\\\\&|]\\\\s+)((?=^|[]),;}]|//)|(?==[^>])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?<![\\\\&:|])((?=[]),;}]|//)|(?==[^>])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.js"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.js"}},"name":"meta.type.parameters.js","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuation-comma"}]},"type-builtin-literals":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(this|true|false|undefined|null|object)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.builtin.js"},"type-conditional":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.js"}},"end":"(?<=:)","patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.js"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.js"}},"patterns":[{"include":"#type"}]},{"include":"#type"}]}]},"type-fn-type-parameters":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b(?=\\\\s*<)","beginCaptures":{"1":{"name":"meta.type.constructor.js storage.modifier.js"},"2":{"name":"meta.type.constructor.js keyword.control.new.js"}},"end":"(?<=>)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.control.new.js"}},"end":"(?<=\\\\))","name":"meta.type.constructor.js","patterns":[{"include":"#function-parameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.js","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.js"}},"end":"(?<!=>)(?<![\\\\&|])(?=[]),:;=>?{}]|//|$)","name":"meta.type.function.return.js","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.js"}},"end":"(?<!=>)(?<![\\\\&|])((?=[]),:;=>?{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.js","patterns":[{"include":"#type-function-return-type-core"}]}]},"type-function-return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<==>)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"type-infer":{"patterns":[{"captures":{"1":{"name":"keyword.operator.expression.infer.js"},"2":{"name":"entity.name.type.js"},"3":{"name":"keyword.operator.expression.extends.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(infer)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s+(extends)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))?","name":"meta.type.infer.js"}]},"type-name":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(<)","captures":{"1":{"name":"entity.name.type.module.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"},"4":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.begin.js"}},"contentName":"meta.type.parameters.js","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.end.js"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.js"},"2":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.begin.js"}},"contentName":"meta.type.parameters.js","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.end.js"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.js"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.object.type.js","patterns":[{"include":"#comment"},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#indexer-mapped-type-declaration"},{"include":"#field-declaration"},{"include":"#type-annotation"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.js"}},"end":"(?=[,;}]|$)|(?<=})","patterns":[{"include":"#type"}]},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#type"}]},"type-operators":{"patterns":[{"include":"#typeof-operator"},{"include":"#type-infer"},{"begin":"([\\\\&|])(?=\\\\s*\\\\{)","beginCaptures":{"0":{"name":"keyword.operator.type.js"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.js"}},"end":"(?=\\\\S)"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))keyof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.keyof.js"},{"match":"([:?])","name":"keyword.operator.ternary.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*\\\\()","name":"keyword.operator.expression.import.js"}]},"type-parameters":{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.typeparameters.begin.js"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.js"}},"name":"meta.type.parameters.js","patterns":[{"include":"#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.js"},{"include":"#type"},{"include":"#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.js"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"name":"meta.type.paren.cover.js","patterns":[{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"entity.name.function.js variable.language.this.js"},"4":{"name":"entity.name.function.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s*(\\\\??)(?=\\\\s*(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s*(\\\\??)(?=:)"},{"include":"#type-annotation"},{"match":",","name":"punctuation.separator.parameter.js"},{"include":"#type"}]},"type-predicate-operator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.type.asserts.js"},"2":{"name":"variable.parameter.js variable.language.this.js"},"3":{"name":"variable.parameter.js"},"4":{"name":"keyword.operator.expression.is.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(asserts)\\\\s+)?(?!asserts)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s(is)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"captures":{"1":{"name":"keyword.operator.type.asserts.js"},"2":{"name":"variable.parameter.js variable.language.this.js"},"3":{"name":"variable.parameter.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(asserts)\\\\s+(?!is)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))asserts(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.type.asserts.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))is(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.is.js"}]},"type-primitive":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(string|number|bigint|boolean|symbol|any|void|never|unknown)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.primitive.js"},"type-string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template-type"}]},"type-tuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.js"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.js"}},"name":"meta.type.tuple.js","patterns":[{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.rest.js"},{"captures":{"1":{"name":"entity.name.label.js"},"2":{"name":"keyword.operator.optional.js"},"3":{"name":"punctuation.separator.label.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\?)?\\\\s*(:)"},{"include":"#type"},{"include":"#punctuation-comma"}]},"typeof-operator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))typeof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.operator.expression.typeof.js"}},"end":"(?=[]\\\\&),:;=>?{|}]|(extends\\\\s+)|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type-arguments"},{"include":"#expression"}]},"undefined-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))undefined(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.undefined.js"},"var-expr":{"patterns":[{"begin":"(?=(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","end":"(?!(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=^|[;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|((?<!^let|[^$._[:alnum:]]let|^var|[^$._[:alnum:]]var)(?=\\\\s*$)))","name":"meta.var.expr.js","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.js"}},"end":"(?=\\\\S)"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.js"}},"end":"(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]},{"begin":"(?=(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.js"}},"end":"(?!(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=^|[;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|((?<!(?:^|[^$._[:alnum:]])const)(?=\\\\s*$)))","name":"meta.var.expr.js","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.js"}},"end":"(?=\\\\S)"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.js"}},"end":"(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]},{"begin":"(?=(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b\\\\b(using(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])|await\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.js"}},"end":"(?!(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b\\\\b(using(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])|await\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=[;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)|((?<!(?:^|[^$._[:alnum:]]|^await\\\\s+|[^$._[:alnum:]]await\\\\s+)using)(?=\\\\s*$)))","name":"meta.var.expr.js","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b\\\\b(using(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])|await\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b)\\\\b(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.js"}},"end":"(?=\\\\S)"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*((?!\\\\S)|(?=//))","beginCaptures":{"1":{"name":"punctuation.separator.comma.js"}},"end":"(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#var-single-const"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]}]},"var-single-const":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.js variable.other.constant.js entity.name.function.js"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.js","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"meta.definition.variable.js variable.other.constant.js"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.js","patterns":[{"include":"#var-single-variable-type-annotation"}]}]},"var-single-variable":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(!)?(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.js entity.name.function.js"},"2":{"name":"keyword.operator.definiteassignment.js"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.js","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.js variable.other.constant.js"},"2":{"name":"keyword.operator.definiteassignment.js"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.js","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.js variable.other.readwrite.js"},"2":{"name":"keyword.operator.definiteassignment.js"}},"end":"(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b))","name":"meta.var-single-variable.expr.js","patterns":[{"include":"#var-single-variable-type-annotation"}]}]},"var-single-variable-type-annotation":{"patterns":[{"include":"#type-annotation"},{"include":"#string"},{"include":"#comment"}]},"variable-initializer":{"patterns":[{"begin":"(?<![!=])(=)(?!=)(?=\\\\s*\\\\S)(?!\\\\s*.*=>\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.js"}},"end":"(?=$|^|[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","patterns":[{"include":"#expression"}]},{"begin":"(?<![!=])(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.js"}},"end":"(?=[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))|(?=^\\\\s*$)|(?<![-\\\\&*+/|])(?<=\\\\S)(?<!=)(?=\\\\s*$)","patterns":[{"include":"#expression"}]}]}},"scopeName":"source.js","aliases":["js","cjs","mjs"]}`)),V4=[H4],G4=Object.freeze(Object.defineProperty({__proto__:null,default:V4},Symbol.toStringTag,{value:"Module"})),U4=Object.freeze(JSON.parse('{"displayName":"Dart","name":"dart","patterns":[{"match":"^(#!.*)$","name":"meta.preprocessor.script.dart"},{"begin":"^\\\\w*\\\\b(augment\\\\s+library|library|import\\\\s+augment|import|part\\\\s+of|part|export)\\\\b","beginCaptures":{"0":{"name":"keyword.other.import.dart"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.dart"}},"name":"meta.declaration.dart","patterns":[{"include":"#strings"},{"include":"#comments"},{"match":"\\\\b(as|show|hide)\\\\b","name":"keyword.other.import.dart"},{"match":"\\\\b(if)\\\\b","name":"keyword.control.dart"}]},{"include":"#comments"},{"include":"#punctuation"},{"include":"#annotations"},{"include":"#keywords"},{"include":"#constants-and-special-vars"},{"include":"#operators"},{"include":"#strings"}],"repository":{"annotations":{"patterns":[{"match":"@[A-Za-z]+","name":"storage.type.annotation.dart"}]},"class-identifier":{"patterns":[{"match":"(?<!\\\\$)\\\\b(bool|num|int|double|dynamic)\\\\b(?!\\\\$)","name":"support.class.dart"},{"match":"(?<!\\\\$)\\\\bvoid\\\\b(?!\\\\$)","name":"storage.type.primitive.dart"},{"begin":"(?<![$0-9A-Z_a-z])([$_]*[A-Z][$0-9A-Z_a-z]*)\\\\b","beginCaptures":{"1":{"name":"support.class.dart"}},"end":"(?!<)","patterns":[{"include":"#type-args"}]}]},"comments":{"patterns":[{"captures":{"0":{"name":"punctuation.definition.comment.dart"}},"match":"/\\\\*\\\\*/","name":"comment.block.empty.dart"},{"include":"#comments-doc-oldschool"},{"include":"#comments-doc"},{"include":"#comments-inline"}]},"comments-block":{"patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.dart","patterns":[{"include":"#comments-block"}]}]},"comments-doc":{"patterns":[{"begin":"///","end":"^(?!\\\\s*///)","name":"comment.block.documentation.dart","patterns":[{"include":"#dartdoc"}]}]},"comments-doc-oldschool":{"patterns":[{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.documentation.dart","patterns":[{"include":"#comments-doc-oldschool"},{"include":"#comments-block"},{"include":"#dartdoc"}]}]},"comments-inline":{"patterns":[{"include":"#comments-block"},{"captures":{"1":{"name":"comment.line.double-slash.dart"}},"match":"((//).*)$"}]},"constants-and-special-vars":{"patterns":[{"match":"(?<!\\\\$)\\\\b(true|false|null)\\\\b(?!\\\\$)","name":"constant.language.dart"},{"match":"(?<!\\\\$)\\\\b(this|super|augmented)\\\\b(?!\\\\$)","name":"variable.language.dart"},{"match":"(?<!\\\\$)\\\\b((0([Xx])\\\\h[_\\\\h]*)|(([0-9][0-9_]*\\\\.?[0-9_]*)|(\\\\.[0-9][0-9_]*))(([Ee])([-+])?[0-9][0-9_]*)?)\\\\b(?!\\\\$)","name":"constant.numeric.dart"},{"include":"#class-identifier"},{"include":"#function-identifier"}]},"dartdoc":{"patterns":[{"captures":{"0":{"name":"variable.name.source.dart"}},"match":"(\\\\[.*?])"},{"begin":"^\\\\s*///\\\\s*(```)","end":"^(?:\\\\s*///\\\\s*(```)|(?!\\\\s*///))","patterns":[{"include":"#dartdoc-codeblock-triple"}]},{"begin":"^\\\\s*\\\\*\\\\s*(```)","end":"^(?:\\\\s*\\\\*\\\\s*(```)|(?=\\\\s*\\\\*/))","patterns":[{"include":"#dartdoc-codeblock-block"}]},{"match":"`[^\\\\n`]+`","name":"variable.other.source.dart"},{"captures":{"1":{"name":"variable.other.source.dart"}},"match":"(?:\\\\*|//)\\\\s{4,}(.*?)(?=($|\\\\*/))"}]},"dartdoc-codeblock-block":{"begin":"^\\\\s*\\\\*\\\\s*(?!(\\\\s*```|/))","contentName":"variable.other.source.dart","end":"\\\\n"},"dartdoc-codeblock-triple":{"begin":"^\\\\s*///\\\\s*(?!\\\\s*```)","contentName":"variable.other.source.dart","end":"\\\\n"},"expression":{"patterns":[{"include":"#constants-and-special-vars"},{"include":"#strings"},{"match":"[0-9A-Z_a-z]+","name":"variable.parameter.dart"},{"begin":"\\\\{","end":"}","patterns":[{"include":"#expression"}]}]},"function-identifier":{"patterns":[{"captures":{"1":{"name":"entity.name.function.dart"},"2":{"patterns":[{"include":"#type-args"}]}},"match":"([$_]*[a-z][$0-9A-Z_a-z]*)(<(?:[$0-9<>?A-Z_a-z]|,\\\\s*|\\\\s+extends\\\\s+)+>)?[!?]?\\\\("}]},"keywords":{"patterns":[{"match":"(?<!\\\\$)\\\\bas\\\\b(?!\\\\$)","name":"keyword.cast.dart"},{"match":"(?<!\\\\$)\\\\b(try|on|catch|finally|throw|rethrow)\\\\b(?!\\\\$)","name":"keyword.control.catch-exception.dart"},{"match":"(?<!\\\\$)\\\\b(break|case|continue|default|do|else|for|if|in|switch|while|when)\\\\b(?!\\\\$)","name":"keyword.control.dart"},{"match":"(?<!\\\\$)\\\\b(sync(\\\\*)?|async(\\\\*)?|await|yield(\\\\*)?)\\\\b(?!\\\\$)","name":"keyword.control.dart"},{"match":"(?<!\\\\$)\\\\bassert\\\\b(?!\\\\$)","name":"keyword.control.dart"},{"match":"(?<!\\\\$)\\\\b(new)\\\\b(?!\\\\$)","name":"keyword.control.new.dart"},{"match":"(?<!\\\\$)\\\\b(return)\\\\b(?!\\\\$)","name":"keyword.control.return.dart"},{"match":"(?<!\\\\$)\\\\b(abstract|sealed|base|interface|class|enum|extends|extension\\\\s+type|extension|external|factory|implements|get(?![(<])|mixin|native|operator|set(?![(<])|typedef|with|covariant)\\\\b(?!\\\\$)","name":"keyword.declaration.dart"},{"match":"(?<!\\\\$)\\\\b(macro|augment|static|final|const|required|late)\\\\b(?!\\\\$)","name":"storage.modifier.dart"},{"match":"(?<!\\\\$)\\\\bv(?:oid|ar)\\\\b(?!\\\\$)","name":"storage.type.primitive.dart"}]},"operators":{"patterns":[{"match":"(?<!\\\\$)\\\\b(is!?)\\\\b(?!\\\\$)","name":"keyword.operator.dart"},{"match":"[:?]","name":"keyword.operator.ternary.dart"},{"match":"(<<|>>>?|[\\\\&^|~])","name":"keyword.operator.bitwise.dart"},{"match":"(([\\\\&^|]|<<|>>>?)=)","name":"keyword.operator.assignment.bitwise.dart"},{"match":"(=>)","name":"keyword.operator.closure.dart"},{"match":"(==|!=|<=?|>=?)","name":"keyword.operator.comparison.dart"},{"match":"(([-%*+/~])=)","name":"keyword.operator.assignment.arithmetic.dart"},{"match":"(=)","name":"keyword.operator.assignment.dart"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.dart"},{"match":"([-*+/]|~/|%)","name":"keyword.operator.arithmetic.dart"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.dart"}]},"punctuation":{"patterns":[{"match":",","name":"punctuation.comma.dart"},{"match":";","name":"punctuation.terminator.dart"},{"match":"\\\\.","name":"punctuation.dot.dart"}]},"string-interp":{"patterns":[{"captures":{"1":{"name":"variable.parameter.dart"}},"match":"\\\\$([0-9A-Z_a-z]+)","name":"meta.embedded.expression.dart"},{"begin":"\\\\$\\\\{","end":"}","name":"meta.embedded.expression.dart","patterns":[{"include":"#expression"}]},{"match":"\\\\\\\\.","name":"constant.character.escape.dart"}]},"strings":{"patterns":[{"begin":"(?<!r)\\"\\"\\"","end":"\\"\\"\\"(?!\\")","name":"string.interpolated.triple.double.dart","patterns":[{"include":"#string-interp"}]},{"begin":"(?<!r)\'\'\'","end":"\'\'\'(?!\')","name":"string.interpolated.triple.single.dart","patterns":[{"include":"#string-interp"}]},{"begin":"r\\"\\"\\"","end":"\\"\\"\\"(?!\\")","name":"string.quoted.triple.double.dart"},{"begin":"r\'\'\'","end":"\'\'\'(?!\')","name":"string.quoted.triple.single.dart"},{"begin":"(?<!\\\\|r)\\"","end":"\\"","name":"string.interpolated.double.dart","patterns":[{"match":"\\\\n","name":"invalid.string.newline"},{"include":"#string-interp"}]},{"begin":"r\\"","end":"\\"","name":"string.quoted.double.dart","patterns":[{"match":"\\\\n","name":"invalid.string.newline"}]},{"begin":"(?<!\\\\|r)\'","end":"\'","name":"string.interpolated.single.dart","patterns":[{"match":"\\\\n","name":"invalid.string.newline"},{"include":"#string-interp"}]},{"begin":"r\'","end":"\'","name":"string.quoted.single.dart","patterns":[{"match":"\\\\n","name":"invalid.string.newline"}]}]},"type-args":{"begin":"(<)","beginCaptures":{"1":{"name":"other.source.dart"}},"end":"(>)","endCaptures":{"1":{"name":"other.source.dart"}},"patterns":[{"include":"#class-identifier"},{"match":","},{"match":"extends","name":"keyword.declaration.dart"},{"include":"#comments"}]}},"scopeName":"source.dart"}')),W4=[U4],K4=Object.freeze(Object.defineProperty({__proto__:null,default:W4},Symbol.toStringTag,{value:"Module"})),Z4=Object.freeze(JSON.parse('{"displayName":"SQL","name":"sql","patterns":[{"match":"((?<!@)@)\\\\b(\\\\w+)\\\\b","name":"text.variable"},{"match":"(\\\\[)[^]]*(])","name":"text.bracketed"},{"include":"#comments"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"},"5":{"name":"entity.name.function.sql"}},"match":"(?i:^\\\\s*(create(?:\\\\s+or\\\\s+replace)?)\\\\s+(aggregate|conversion|database|domain|function|group|(unique\\\\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)([\\"\'`]?)(\\\\w+)\\\\4","name":"meta.create.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"}},"match":"(?i:^\\\\s*(drop)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"},"3":{"name":"entity.name.function.sql"},"4":{"name":"keyword.other.cascade.sql"}},"match":"(?i:\\\\s*(drop)\\\\s+(table)\\\\s+(\\\\w+)(\\\\s+cascade)?\\\\b)","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"}},"match":"(?i:^\\\\s*(alter)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|proc(edure)?|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)","name":"meta.alter.sql"},{"captures":{"1":{"name":"storage.type.sql"},"2":{"name":"storage.type.sql"},"3":{"name":"constant.numeric.sql"},"4":{"name":"storage.type.sql"},"5":{"name":"constant.numeric.sql"},"6":{"name":"storage.type.sql"},"7":{"name":"constant.numeric.sql"},"8":{"name":"constant.numeric.sql"},"9":{"name":"storage.type.sql"},"10":{"name":"constant.numeric.sql"},"11":{"name":"storage.type.sql"},"12":{"name":"storage.type.sql"},"13":{"name":"storage.type.sql"},"14":{"name":"constant.numeric.sql"},"15":{"name":"storage.type.sql"}},"match":"(?i)\\\\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\\\\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\\\\b|\\\\b(bit\\\\svarying|character\\\\s(?:varying)?|tinyint|var\\\\schar|float|interval)\\\\((\\\\d+)\\\\)|\\\\b(char|number|varchar\\\\d?)\\\\b(?:\\\\((\\\\d+)\\\\))?|\\\\b(numeric|decimal)\\\\b(?:\\\\((\\\\d+),(\\\\d+)\\\\))?|\\\\b(times?)\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\swith(?:out)?\\\\stime\\\\szone\\\\b)?|\\\\b(timestamp)(s|tz)?\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\s(with(?:|out))\\\\stime\\\\szone\\\\b)?"},{"match":"(?i:\\\\b((?:primary|foreign)\\\\s+key|references|on\\\\s+(delete|update)(\\\\s+cascade)?|nocheck|check|constraint|collate|default)\\\\b)","name":"storage.modifier.sql"},{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.sql"},{"match":"(?i:\\\\b(select(\\\\s+(all|distinct))?|insert\\\\s+(ignore\\\\s+)?into|update|delete|from|set|where|group\\\\s+by|or|like|and|union(\\\\s+all)?|having|order\\\\s+by|limit|cross\\\\s+join|join|straight_join|(inner|(left|right|full)(\\\\s+outer)?)\\\\s+join|natural(\\\\s+(inner|(left|right|full)(\\\\s+outer)?))?\\\\s+join)\\\\b)","name":"keyword.other.DML.sql"},{"match":"(?i:\\\\b(on|off|((is\\\\s+)?not\\\\s+)?null)\\\\b)","name":"keyword.other.DDL.create.II.sql"},{"match":"(?i:\\\\bvalues\\\\b)","name":"keyword.other.DML.II.sql"},{"match":"(?i:\\\\b(begin(\\\\s+work)?|start\\\\s+transaction|commit(\\\\s+work)?|rollback(\\\\s+work)?)\\\\b)","name":"keyword.other.LUW.sql"},{"match":"(?i:\\\\b(grant(\\\\swith\\\\sgrant\\\\soption)?|revoke)\\\\b)","name":"keyword.other.authorization.sql"},{"match":"(?i:\\\\bin\\\\b)","name":"keyword.other.data-integrity.sql"},{"match":"(?i:^\\\\s*(comment\\\\s+on\\\\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\\\\s+)","name":"keyword.other.object-comments.sql"},{"match":"(?i)\\\\bAS\\\\b","name":"keyword.other.alias.sql"},{"match":"(?i)\\\\b(DESC|ASC)\\\\b","name":"keyword.other.order.sql"},{"match":"\\\\*","name":"keyword.operator.star.sql"},{"match":"[!<>]?=|<>|[<>]","name":"keyword.operator.comparison.sql"},{"match":"[-+/]","name":"keyword.operator.math.sql"},{"match":"\\\\|\\\\|","name":"keyword.operator.concatenator.sql"},{"captures":{"1":{"name":"support.function.aggregate.sql"}},"match":"(?i)\\\\b(approx_count_distinct|approx_percentile_cont|approx_percentile_disc|avg|checksum_agg|count|count_big|group|grouping|grouping_id|max|min|sum|stdevp??|varp??)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.analytic.sql"}},"match":"(?i)\\\\b(cume_dist|first_value|lag|last_value|lead|percent_rank|percentile_cont|percentile_disc)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.bitmanipulation.sql"}},"match":"(?i)\\\\b((?:bit_coun|get_bi|left_shif|right_shif|set_bi)t)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.conversion.sql"}},"match":"(?i)\\\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.collation.sql"}},"match":"(?i)\\\\b(collationproperty|tertiary_weights)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cryptographic.sql"}},"match":"(?i)\\\\b(asymkey_id|asymkeyproperty|certproperty|cert_id|crypt_gen_random|decryptbyasymkey|decryptbycert|decryptbykey|decryptbykeyautoasymkey|decryptbykeyautocert|decryptbypassphrase|encryptbyasymkey|encryptbycert|encryptbykey|encryptbypassphrase|hashbytes|is_objectsigned|key_guid|key_id|key_name|signbyasymkey|signbycert|symkeyproperty|verifysignedbycert|verifysignedbyasymkey)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cursor.sql"}},"match":"(?i)\\\\b(cursor_status)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datetime.sql"}},"match":"(?i)\\\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|datetrunc|eomonth|switchoffset|todatetimeoffset|isdate|date_bucket)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datatype.sql"}},"match":"(?i)\\\\b(datalength|ident_current|ident_incr|ident_seed|identity|sql_variant_property)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.expression.sql"}},"match":"(?i)\\\\b(coalesce|nullif)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.globalvar.sql"}},"match":"(?<!@)@@(?i)\\\\b(cursor_rows|connections|cpu_busy|datefirst|dbts|error|fetch_status|identity|idle|io_busy|langid|language|lock_timeout|max_connections|max_precision|nestlevel|options|packet_errors|pack_received|pack_sent|procid|remserver|rowcount|servername|servicename|spid|textsize|timeticks|total_errors|total_read|total_write|trancount|version)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.json.sql"}},"match":"(?i)\\\\b(json|isjson|json_object|json_array|json_value|json_query|json_modify|json_path_exists)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.logical.sql"}},"match":"(?i)\\\\b(choose|iif|greatest|least)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.mathematical.sql"}},"match":"(?i)\\\\b(abs|acos|asin|atan|atn2|ceiling|cos|cot|degrees|exp|floor|log|log10|pi|power|radians|rand|round|sign|sin|sqrt|square|tan)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.metadata.sql"}},"match":"(?i)\\\\b(app_name|applock_mode|applock_test|assemblyproperty|col_length|col_name|columnproperty|database_principal_id|databasepropertyex|db_id|db_name|file_id|file_idex|file_name|filegroup_id|filegroup_name|filegroupproperty|fileproperty|fulltextcatalogproperty|fulltextserviceproperty|index_col|indexkey_property|indexproperty|object_definition|object_id|object_name|object_schema_name|objectproperty|objectpropertyex|original_db_name|parsename|schema_id|schema_name|scope_identity|serverproperty|stats_date|type_id|type_name|typeproperty)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.ranking.sql"}},"match":"(?i)\\\\b(rank|dense_rank|ntile|row_number)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.rowset.sql"}},"match":"(?i)\\\\b(generate_series|opendatasource|openjson|openrowset|openquery|openxml|predict|string_split)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.security.sql"}},"match":"(?i)\\\\b(certencoded|certprivatekey|current_user|database_principal_id|has_perms_by_name|is_member|is_rolemember|is_srvrolemember|original_login|permissions|pwdcompare|pwdencrypt|schema_id|schema_name|session_user|suser_id|suser_sid|suser_sname|system_user|suser_name|user_id|user_name)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.string.sql"}},"match":"(?i)\\\\b(ascii|char|charindex|concat|difference|format|left|len|lower|ltrim|nchar|nodes|patindex|quotename|replace|replicate|reverse|right|rtrim|soundex|space|str|string_agg|string_escape|string_split|stuff|substring|translate|trim|unicode|upper)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.system.sql"}},"match":"(?i)\\\\b(binary_checksum|checksum|compress|connectionproperty|context_info|current_request_id|current_transaction_id|decompress|error_line|error_message|error_number|error_procedure|error_severity|error_state|formatmessage|get_filestream_transaction_context|getansinull|host_id|host_name|isnull|isnumeric|min_active_rowversion|newid|newsequentialid|rowcount_big|session_context|session_id|xact_state)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.textimage.sql"}},"match":"(?i)\\\\b(patindex|textptr|textvalid)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.vector.sql"}},"match":"(?i)\\\\b(vector_(?:distance|norm|normalize))\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"constant.other.database-name.sql"},"2":{"name":"constant.other.table-name.sql"}},"match":"(\\\\w+?)\\\\.(\\\\w+)"},{"include":"#strings"},{"include":"#regexps"},{"match":"\\\\b(?i)(abort|abort_after_wait|absent|absolute|accent_sensitivity|acceptable_cursopt|acp|action|activation|add|address|admin|aes_128|aes_192|aes_256|affinity|after|aggregate|algorithm|all_constraints|all_errormsgs|all_indexes|all_levels|all_results|allow_connections|allow_dup_row|allow_encrypted_value_modifications|allow_page_locks|allow_row_locks|allow_snapshot_isolation|alter|altercolumn|always|anonymous|ansi_defaults|ansi_null_default|ansi_null_dflt_off|ansi_null_dflt_on|ansi_nulls|ansi_padding|ansi_warnings|appdomain|append|application|apply|arithabort|arithignore|array|assembly|asymmetric|asynchronous_commit|at|atan2|atomic|attach|attach_force_rebuild_log|attach_rebuild_log|audit|auth_realm|authentication|auto|auto_cleanup|auto_close|auto_create_statistics|auto_drop|auto_shrink|auto_update_statistics|auto_update_statistics_async|automated_backup_preference|automatic|autopilot|availability|availability_mode|backup|backup_priority|base64|basic|batches|batchsize|before|between|bigint|binary|binding|bit|block|blockers|blocksize|bmk|both|break|broker|broker_instance|bucket_count|buffer|buffercount|bulk_logged|by|call|caller|card|case|catalog|catch|cert|certificate|change_retention|change_tracking|change_tracking_context|changes|char|character|character_set|check_expiration|check_policy|checkconstraints|checkindex|checkpoint|checksum|cleanup_policy|clear|clear_port|close|clustered|codepage|collection|column_encryption_key|column_master_key|columnstore|columnstore_archive|colv_80_to_100|colv_100_to_80|commit_differential_base|committed|compatibility_level|compress_all_row_groups|compression|compression_delay|concat_null_yields_null|concatenate|configuration|connect|connection|containment|continue|continue_after_error|contract|contract_name|control|conversation|conversation_group_id|conversation_handle|copy|copy_only|count_rows|counter|create(\\\\\\\\s+or\\\\\\\\s+alter)?|credential|cross|cryptographic|cryptographic_provider|cube|cursor|cursor_close_on_commit|cursor_default|data|data_compression|data_flush_interval_seconds|data_mirroring|data_purity|data_source|database|database_name|database_snapshot|datafiletype|date_correlation_optimization|date|datefirst|dateformat|date_format|datetime2??|datetimeoffset|day(s)?|db_chaining|dbid|dbidexec|dbo_only|deadlock_priority|deallocate|dec|decimal|declare|decrypt|decrypt_a|decryption|default_database|default_fulltext_language|default_language|default_logon_domain|default_schema|definition|delay|delayed_durability|delimitedtext|density_vector|dependent|des|description|desired_state|desx|differential|digest|disable|disable_broker|disable_def_cnst_chk|disabled|disk|distinct|distributed|distribution|drop|drop_existing|dts_buffers|dump|durability|dynamic|edition|elements|else|emergency|empty|enable|enable_broker|enabled|encoding|encrypted|encrypted_value|encryption|encryption_type|end|endpoint|endpoint_url|enhancedintegrity|entry|error_broker_conversations|errorfile|estimateonly|event|except|exec|executable|execute|exists|expand|expiredate|expiry_date|explicit|external|external_access|failover|failover_mode|failure_condition_level|fast|fast_forward|fastfirstrow|federated_service_account|fetch|field_terminator|fieldterminator|file|filelistonly|filegroup|filegrowth|filename|filestream|filestream_log|filestream_on|filetable|file_format|filter|first_row|fips_flagger|fire_triggers|first|firstrow|float|flush_interval_seconds|fmtonly|following|for|force|force_failover_allow_data_loss|force_service_allow_data_loss|forced|forceplan|formatfile|format_options|format_type|formsof|forward_only|free_cursors|free_exec_context|fullscan|fulltext|fulltextall|fulltextkey|function|generated|get|geography|geometry|global|go|goto|governor|guid|hadoop|hardening|hash|hashed|header_limit|headeronly|health_check_timeout|hidden|hierarchyid|histogram|histogram_steps|hits_cursors|hits_exec_context|hour(s)?|http|identity|identity_value|if|ifnull|ignore|ignore_constraints|ignore_dup_key|ignore_dup_row|ignore_triggers|image|immediate|implicit_transactions|include|include_null_values|incremental|index|inflectional|init|initiator|insensitive|insert|instead|int|integer|integrated|intersect|intermediate|interval_length_minutes|into|inuse_cursors|inuse_exec_context|io|is|isabout|iso_week|isolation|job_tracker_location|json|keep|keep_nulls|keep_replication|keepdefaults|keepfixed|keepidentity|keepnulls|kerberos|key|key_path|key_source|key_store_provider_name|keyset|kill|kilobytes_per_batch|labelonly|langid|language|last|lastrow|leading|legacy_cardinality_estimation|length|level|lifetime|lineage_80_to_100|lineage_100_to_80|listener_ip|listener_port|load|loadhistory|lob_compaction|local|local_service_name|locate|location|lock_escalation|lock_timeout|lockres|log|login|login_type|loop|manual|mark_in_use_for_removal|masked|master|match|matched|max_queue_readers|max_duration|max_outstanding_io_per_volume|maxdop|maxerrors|maxlength|maxtransfersize|max_plans_per_query|max_storage_size_mb|mediadescription|medianame|mediapassword|memogroup|memory_optimized|merge|message|message_forward_size|message_forwarding|microsecond|millisecond|minute(s)?|mirror_address|misses_cursors|misses_exec_context|mixed|modify|money|month|move|multi_user|must_change|name|namespace|nanosecond|native|native_compilation|nchar|ncharacter|nested_triggers|never|new_account|new_broker|newname|next|no|no_browsetable|no_checksum|no_compression|no_infomsgs|no_triggers|no_truncate|nocount|noexec|noexpand|noformat|noinit|nolock|nonatomic|nonclustered|nondurable|none|norecompute|norecovery|noreset|norewind|noskip|not|notification|nounload|now|nowait|ntext|ntlm|nulls|numeric|numeric_roundabort|nvarchar|object|objid|oem|offline|old_account|online|operation_mode|open|openjson|optimistic|option|orc|out|outer|output|over|override|owner|ownership|pad_index|page|page_checksum|page_verify|pagecount|paglock|param|parameter_sniffing|parameter_type_expansion|parameterization|parquet|parseonly|partial|partition|partner|password|path|pause|percentage|permission_set|persisted|period|physical_only|plan_forcing_mode|policy|pool|population|ports|preceding|precision|predicate|presume_abort|primary|primary_role|print|prior|priority |priority_level|private|proc(edure)?|procedure_name|profile|provider|quarter|query_capture_mode|query_governor_cost_limit|query_optimizer_hotfixes|query_store|queue|quoted_identifier|raiserror|range|raw|rcfile|rc2|rc4|rc4_128|rdbms|read_committed_snapshot|read|read_only|read_write|readcommitted|readcommittedlock|readonly|readpast|readuncommitted|readwrite|real|rebuild|receive|recmodel_70backcomp|recompile|reconfigure|recovery|recursive|recursive_triggers|redo_queue|reject_sample_value|reject_type|reject_value|relative|remote|remote_data_archive|remote_proc_transactions|remote_service_name|remove|removed_cursors|removed_exec_context|reorganize|repeat|repeatable|repeatableread|replace|replica|replicated|replnick_100_to_80|replnickarray_80_to_100|replnickarray_100_to_80|required|required_cursopt|resample|reset|resource|resource_manager_location|respect|restart|restore|restricted_user|resume|retaindays|retention|return|revert|rewind|rewindonly|returns|robust|role|rollup|root|round_robin|route|row|rowdump|rowguidcol|rowlock|row_terminator|rows|rows_per_batch|rowsets_only|rowterminator|rowversion|rsa_1024|rsa_2048|rsa_3072|rsa_4096|rsa_512|safe|safety|sample|save|scalar|schema|schemabinding|scoped|scroll|scroll_locks|sddl|second|secexpr|seconds|secondary|secondary_only|secondary_role|secret|security|securityaudit|selective|self|send|sent|sequence|serde_method|serializable|server|service|service_broker|service_name|service_objective|session_timeout|sessions??|seterror|setopts|sets|shard_map_manager|shard_map_name|sharded|shared_memory|shortest_path|show_statistics|showplan_all|showplan_text|showplan_xml|showplan_xml_with_recompile|shrinkdb|shutdown|sid|signature|simple|single_blob|single_clob|single_nclob|single_user|singleton|site|size|size_based_cleanup_mode|skip|smalldatetime|smallint|smallmoney|snapshot|snapshot_import|snapshotrestorephase|soap|softnuma|sort_in_tempdb|sorted_data|sorted_data_reorg|spatial|sql|sql_bigint|sql_binary|sql_bit|sql_char|sql_date|sql_decimal|sql_double|sql_float|sql_guid|sql_handle|sql_longvarbinary|sql_longvarchar|sql_numeric|sql_real|sql_smallint|sql_time|sql_timestamp|sql_tinyint|sql_tsi_day|sql_tsi_frac_second|sql_tsi_hour|sql_tsi_minute|sql_tsi_month|sql_tsi_quarter|sql_tsi_second|sql_tsi_week|sql_tsi_year|sql_type_date|sql_type_time|sql_type_timestamp|sql_varbinary|sql_varchar|sql_variant|sql_wchar|sql_wlongvarchar|ssl|ssl_port|standard|standby|start|start_date|started|stat_header|state|statement|static|statistics|statistics_incremental|statistics_norecompute|statistics_only|statman|stats|stats_stream|status|stop|stop_on_error|stopat|stopatmark|stopbeforemark|stoplist|stopped|string_delimiter|subject|supplemental_logging|supported|suspend|symmetric|synchronous_commit|synonym|sysname|system|system_time|system_versioning|table|tableresults|tablockx??|take|tape|target|target_index|target_partition|target_recovery_time|tcp|temporal_history_retention|text|textimage_on|then|thesaurus|throw|time|timeout|timestamp|tinyint|top??|torn_page_detection|track_columns_updated|trailing|tran|transaction|transfer|transform_noise_words|triple_des|triple_des_3key|truncate|trustworthy|try|tsql|two_digit_year_cutoff|type|type_desc|type_warning|tzoffset|uid|unbounded|uncommitted|unique|uniqueidentifier|unlimited|unload|unlock|unsafe|updlock|url|use|useplan|useroptions|use_type_default|using|utcdatetime|valid_xml|validation|values??|varbinary|varchar|vector|verbose|verifyonly|version|view_metadata|virtual_device|visiblity|wait_at_low_priority|waitfor|webmethod|week|weekday|weight|well_formed_xml|when|while|widechar|widechar_ansi|widenative|windows??|with|within|within group|witness|without|without_array_wrapper|workload|wsdl|xact_abort|xlock|xml|xmlschema|xquery|xsinil|year|zone)\\\\b","name":"keyword.other.sql"},{"captures":{"1":{"name":"punctuation.section.scope.begin.sql"},"2":{"name":"punctuation.section.scope.end.sql"}},"match":"(\\\\()(\\\\))","name":"meta.block.sql"}],"repository":{"comment-block":{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\*/","name":"comment.block","patterns":[{"include":"#comment-block"}]},"comments":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\n","name":"comment.line.double-dash.sql"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[]},{"include":"#comment-block"}]},"regexps":{"patterns":[{"begin":"/(?=\\\\S.*/)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"/","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.sql","patterns":[{"include":"#string_interpolation"},{"match":"\\\\\\\\/","name":"constant.character.escape.slash.sql"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.modr.sql","patterns":[{"include":"#string_interpolation"}]}]},"string_escape":{"match":"\\\\\\\\.","name":"constant.character.escape.sql"},"string_interpolation":{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(#\\\\{)([^}]*)(})","name":"string.interpolated.sql"},"strings":{"patterns":[{"captures":{"2":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(N)?(\')[^\']*(\')","name":"string.quoted.single.sql"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.single.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(`)[^\\\\\\\\`]*(`)","name":"string.quoted.other.backtick.sql"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.other.backtick.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(\\")[^\\"#]*(\\")","name":"string.quoted.double.sql"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.double.sql","patterns":[{"include":"#string_interpolation"}]},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.other.quoted.brackets.sql","patterns":[{"include":"#string_interpolation"}]}]}},"scopeName":"source.sql"}')),Y4=[Z4],X4=Object.freeze(Object.defineProperty({__proto__:null,default:Y4},Symbol.toStringTag,{value:"Module"})),J4=Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')),Q4=[J4],eT=Object.freeze(Object.defineProperty({__proto__:null,default:Q4},Symbol.toStringTag,{value:"Module"})),tT=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f78166","activityBar.background":"#0d1117","activityBar.border":"#30363d","activityBar.foreground":"#e6edf3","activityBar.inactiveForeground":"#7d8590","activityBarBadge.background":"#1f6feb","activityBarBadge.foreground":"#ffffff","badge.background":"#1f6feb","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#7d8590","breadcrumb.focusForeground":"#e6edf3","breadcrumb.foreground":"#7d8590","breadcrumbPicker.background":"#161b22","button.background":"#238636","button.foreground":"#ffffff","button.hoverBackground":"#2ea043","button.secondaryBackground":"#282e33","button.secondaryForeground":"#c9d1d9","button.secondaryHoverBackground":"#30363d","checkbox.background":"#161b22","checkbox.border":"#30363d","debugConsole.errorForeground":"#ffa198","debugConsole.infoForeground":"#8b949e","debugConsole.sourceForeground":"#e3b341","debugConsole.warningForeground":"#d29922","debugConsoleInputIcon.foreground":"#bc8cff","debugIcon.breakpointForeground":"#f85149","debugTokenExpression.boolean":"#56d364","debugTokenExpression.error":"#ffa198","debugTokenExpression.name":"#79c0ff","debugTokenExpression.number":"#56d364","debugTokenExpression.string":"#a5d6ff","debugTokenExpression.value":"#a5d6ff","debugToolBar.background":"#161b22","descriptionForeground":"#7d8590","diffEditor.insertedLineBackground":"#23863626","diffEditor.insertedTextBackground":"#3fb9504d","diffEditor.removedLineBackground":"#da363326","diffEditor.removedTextBackground":"#ff7b724d","dropdown.background":"#161b22","dropdown.border":"#30363d","dropdown.foreground":"#e6edf3","dropdown.listBackground":"#161b22","editor.background":"#0d1117","editor.findMatchBackground":"#9e6a03","editor.findMatchHighlightBackground":"#f2cc6080","editor.focusedStackFrameHighlightBackground":"#2ea04366","editor.foldBackground":"#6e76811a","editor.foreground":"#e6edf3","editor.lineHighlightBackground":"#6e76811a","editor.linkedEditingBackground":"#2f81f712","editor.selectionHighlightBackground":"#3fb95040","editor.stackFrameHighlightBackground":"#bb800966","editor.wordHighlightBackground":"#6e768180","editor.wordHighlightBorder":"#6e768199","editor.wordHighlightStrongBackground":"#6e76814d","editor.wordHighlightStrongBorder":"#6e768199","editorBracketHighlight.foreground1":"#79c0ff","editorBracketHighlight.foreground2":"#56d364","editorBracketHighlight.foreground3":"#e3b341","editorBracketHighlight.foreground4":"#ffa198","editorBracketHighlight.foreground5":"#ff9bce","editorBracketHighlight.foreground6":"#d2a8ff","editorBracketHighlight.unexpectedBracket.foreground":"#7d8590","editorBracketMatch.background":"#3fb95040","editorBracketMatch.border":"#3fb95099","editorCursor.foreground":"#2f81f7","editorGroup.border":"#30363d","editorGroupHeader.tabsBackground":"#010409","editorGroupHeader.tabsBorder":"#30363d","editorGutter.addedBackground":"#2ea04366","editorGutter.deletedBackground":"#f8514966","editorGutter.modifiedBackground":"#bb800966","editorIndentGuide.activeBackground":"#e6edf33d","editorIndentGuide.background":"#e6edf31f","editorInlayHint.background":"#8b949e33","editorInlayHint.foreground":"#7d8590","editorInlayHint.paramBackground":"#8b949e33","editorInlayHint.paramForeground":"#7d8590","editorInlayHint.typeBackground":"#8b949e33","editorInlayHint.typeForeground":"#7d8590","editorLineNumber.activeForeground":"#e6edf3","editorLineNumber.foreground":"#6e7681","editorOverviewRuler.border":"#010409","editorWhitespace.foreground":"#484f58","editorWidget.background":"#161b22","errorForeground":"#f85149","focusBorder":"#1f6feb","foreground":"#e6edf3","gitDecoration.addedResourceForeground":"#3fb950","gitDecoration.conflictingResourceForeground":"#db6d28","gitDecoration.deletedResourceForeground":"#f85149","gitDecoration.ignoredResourceForeground":"#6e7681","gitDecoration.modifiedResourceForeground":"#d29922","gitDecoration.submoduleResourceForeground":"#7d8590","gitDecoration.untrackedResourceForeground":"#3fb950","icon.foreground":"#7d8590","input.background":"#0d1117","input.border":"#30363d","input.foreground":"#e6edf3","input.placeholderForeground":"#6e7681","keybindingLabel.foreground":"#e6edf3","list.activeSelectionBackground":"#6e768166","list.activeSelectionForeground":"#e6edf3","list.focusBackground":"#388bfd26","list.focusForeground":"#e6edf3","list.highlightForeground":"#2f81f7","list.hoverBackground":"#6e76811a","list.hoverForeground":"#e6edf3","list.inactiveFocusBackground":"#388bfd26","list.inactiveSelectionBackground":"#6e768166","list.inactiveSelectionForeground":"#e6edf3","minimapSlider.activeBackground":"#8b949e47","minimapSlider.background":"#8b949e33","minimapSlider.hoverBackground":"#8b949e3d","notificationCenterHeader.background":"#161b22","notificationCenterHeader.foreground":"#7d8590","notifications.background":"#161b22","notifications.border":"#30363d","notifications.foreground":"#e6edf3","notificationsErrorIcon.foreground":"#f85149","notificationsInfoIcon.foreground":"#2f81f7","notificationsWarningIcon.foreground":"#d29922","panel.background":"#010409","panel.border":"#30363d","panelInput.border":"#30363d","panelTitle.activeBorder":"#f78166","panelTitle.activeForeground":"#e6edf3","panelTitle.inactiveForeground":"#7d8590","peekViewEditor.background":"#6e76811a","peekViewEditor.matchHighlightBackground":"#bb800966","peekViewResult.background":"#0d1117","peekViewResult.matchHighlightBackground":"#bb800966","pickerGroup.border":"#30363d","pickerGroup.foreground":"#7d8590","progressBar.background":"#1f6feb","quickInput.background":"#161b22","quickInput.foreground":"#e6edf3","scrollbar.shadow":"#484f5833","scrollbarSlider.activeBackground":"#8b949e47","scrollbarSlider.background":"#8b949e33","scrollbarSlider.hoverBackground":"#8b949e3d","settings.headerForeground":"#e6edf3","settings.modifiedItemIndicator":"#bb800966","sideBar.background":"#010409","sideBar.border":"#30363d","sideBar.foreground":"#e6edf3","sideBarSectionHeader.background":"#010409","sideBarSectionHeader.border":"#30363d","sideBarSectionHeader.foreground":"#e6edf3","sideBarTitle.foreground":"#e6edf3","statusBar.background":"#0d1117","statusBar.border":"#30363d","statusBar.debuggingBackground":"#da3633","statusBar.debuggingForeground":"#ffffff","statusBar.focusBorder":"#1f6feb80","statusBar.foreground":"#7d8590","statusBar.noFolderBackground":"#0d1117","statusBarItem.activeBackground":"#e6edf31f","statusBarItem.focusBorder":"#1f6feb","statusBarItem.hoverBackground":"#e6edf314","statusBarItem.prominentBackground":"#6e768166","statusBarItem.remoteBackground":"#30363d","statusBarItem.remoteForeground":"#e6edf3","symbolIcon.arrayForeground":"#f0883e","symbolIcon.booleanForeground":"#58a6ff","symbolIcon.classForeground":"#f0883e","symbolIcon.colorForeground":"#79c0ff","symbolIcon.constantForeground":["#aff5b4","#7ee787","#56d364","#3fb950","#2ea043","#238636","#196c2e","#0f5323","#033a16","#04260f"],"symbolIcon.constructorForeground":"#d2a8ff","symbolIcon.enumeratorForeground":"#f0883e","symbolIcon.enumeratorMemberForeground":"#58a6ff","symbolIcon.eventForeground":"#6e7681","symbolIcon.fieldForeground":"#f0883e","symbolIcon.fileForeground":"#d29922","symbolIcon.folderForeground":"#d29922","symbolIcon.functionForeground":"#bc8cff","symbolIcon.interfaceForeground":"#f0883e","symbolIcon.keyForeground":"#58a6ff","symbolIcon.keywordForeground":"#ff7b72","symbolIcon.methodForeground":"#bc8cff","symbolIcon.moduleForeground":"#ff7b72","symbolIcon.namespaceForeground":"#ff7b72","symbolIcon.nullForeground":"#58a6ff","symbolIcon.numberForeground":"#3fb950","symbolIcon.objectForeground":"#f0883e","symbolIcon.operatorForeground":"#79c0ff","symbolIcon.packageForeground":"#f0883e","symbolIcon.propertyForeground":"#f0883e","symbolIcon.referenceForeground":"#58a6ff","symbolIcon.snippetForeground":"#58a6ff","symbolIcon.stringForeground":"#79c0ff","symbolIcon.structForeground":"#f0883e","symbolIcon.textForeground":"#79c0ff","symbolIcon.typeParameterForeground":"#79c0ff","symbolIcon.unitForeground":"#58a6ff","symbolIcon.variableForeground":"#f0883e","tab.activeBackground":"#0d1117","tab.activeBorder":"#0d1117","tab.activeBorderTop":"#f78166","tab.activeForeground":"#e6edf3","tab.border":"#30363d","tab.hoverBackground":"#0d1117","tab.inactiveBackground":"#010409","tab.inactiveForeground":"#7d8590","tab.unfocusedActiveBorder":"#0d1117","tab.unfocusedActiveBorderTop":"#30363d","tab.unfocusedHoverBackground":"#6e76811a","terminal.ansiBlack":"#484f58","terminal.ansiBlue":"#58a6ff","terminal.ansiBrightBlack":"#6e7681","terminal.ansiBrightBlue":"#79c0ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#56d364","terminal.ansiBrightMagenta":"#d2a8ff","terminal.ansiBrightRed":"#ffa198","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e3b341","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#3fb950","terminal.ansiMagenta":"#bc8cff","terminal.ansiRed":"#ff7b72","terminal.ansiWhite":"#b1bac4","terminal.ansiYellow":"#d29922","terminal.foreground":"#e6edf3","textBlockQuote.background":"#010409","textBlockQuote.border":"#30363d","textCodeBlock.background":"#6e768166","textLink.activeForeground":"#2f81f7","textLink.foreground":"#2f81f7","textPreformat.background":"#6e768166","textPreformat.foreground":"#7d8590","textSeparator.foreground":"#21262d","titleBar.activeBackground":"#0d1117","titleBar.activeForeground":"#7d8590","titleBar.border":"#30363d","titleBar.inactiveBackground":"#010409","titleBar.inactiveForeground":"#7d8590","tree.indentGuidesStroke":"#21262d","welcomePage.buttonBackground":"#21262d","welcomePage.buttonHoverBackground":"#30363d"},"displayName":"GitHub Dark Default","name":"github-dark-default","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#8b949e"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#ff7b72"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#79c0ff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#ffa657"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#e6edf3"}},{"scope":"entity.name.function","settings":{"foreground":"#d2a8ff"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#7ee787"}},{"scope":"keyword","settings":{"foreground":"#ff7b72"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#ff7b72"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e6edf3"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#a5d6ff"}},{"scope":"support","settings":{"foreground":"#79c0ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79c0ff"}},{"scope":"variable","settings":{"foreground":"#ffa657"}},{"scope":"variable.other","settings":{"foreground":"#e6edf3"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"carriage-return","settings":{"background":"#ff7b72","content":"^M","fontStyle":"italic underline","foreground":"#f0f6fc"}},{"scope":"message.error","settings":{"foreground":"#ffa198"}},{"scope":"string variable","settings":{"foreground":"#79c0ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#a5d6ff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#a5d6ff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#7ee787"}},{"scope":"support.constant","settings":{"foreground":"#79c0ff"}},{"scope":"support.variable","settings":{"foreground":"#79c0ff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#7ee787"}},{"scope":"meta.module-reference","settings":{"foreground":"#79c0ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffa657"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79c0ff"}},{"scope":"markup.quote","settings":{"foreground":"#7ee787"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e6edf3"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e6edf3"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79c0ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#490202","foreground":"#ffa198"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#ff7b72"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#04260f","foreground":"#7ee787"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#5a1e02","foreground":"#ffa657"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79c0ff","foreground":"#161b22"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#d2a8ff"}},{"scope":"meta.diff.header","settings":{"foreground":"#79c0ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79c0ff"}},{"scope":"meta.output","settings":{"foreground":"#79c0ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#8b949e"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ffa198"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#a5d6ff"}}],"type":"dark"}')),nT=Object.freeze(Object.defineProperty({__proto__:null,default:tT},Symbol.toStringTag,{value:"Module"})),rT=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#fd8c73","activityBar.background":"#ffffff","activityBar.border":"#d0d7de","activityBar.foreground":"#1f2328","activityBar.inactiveForeground":"#656d76","activityBarBadge.background":"#0969da","activityBarBadge.foreground":"#ffffff","badge.background":"#0969da","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#656d76","breadcrumb.focusForeground":"#1f2328","breadcrumb.foreground":"#656d76","breadcrumbPicker.background":"#ffffff","button.background":"#1f883d","button.foreground":"#ffffff","button.hoverBackground":"#1a7f37","button.secondaryBackground":"#ebecf0","button.secondaryForeground":"#24292f","button.secondaryHoverBackground":"#f3f4f6","checkbox.background":"#f6f8fa","checkbox.border":"#d0d7de","debugConsole.errorForeground":"#cf222e","debugConsole.infoForeground":"#57606a","debugConsole.sourceForeground":"#9a6700","debugConsole.warningForeground":"#7d4e00","debugConsoleInputIcon.foreground":"#6639ba","debugIcon.breakpointForeground":"#cf222e","debugTokenExpression.boolean":"#116329","debugTokenExpression.error":"#a40e26","debugTokenExpression.name":"#0550ae","debugTokenExpression.number":"#116329","debugTokenExpression.string":"#0a3069","debugTokenExpression.value":"#0a3069","debugToolBar.background":"#ffffff","descriptionForeground":"#656d76","diffEditor.insertedLineBackground":"#aceebb4d","diffEditor.insertedTextBackground":"#6fdd8b80","diffEditor.removedLineBackground":"#ffcecb4d","diffEditor.removedTextBackground":"#ff818266","dropdown.background":"#ffffff","dropdown.border":"#d0d7de","dropdown.foreground":"#1f2328","dropdown.listBackground":"#ffffff","editor.background":"#ffffff","editor.findMatchBackground":"#bf8700","editor.findMatchHighlightBackground":"#fae17d80","editor.focusedStackFrameHighlightBackground":"#4ac26b66","editor.foldBackground":"#6e77811a","editor.foreground":"#1f2328","editor.lineHighlightBackground":"#eaeef280","editor.linkedEditingBackground":"#0969da12","editor.selectionHighlightBackground":"#4ac26b40","editor.stackFrameHighlightBackground":"#d4a72c66","editor.wordHighlightBackground":"#eaeef280","editor.wordHighlightBorder":"#afb8c199","editor.wordHighlightStrongBackground":"#afb8c14d","editor.wordHighlightStrongBorder":"#afb8c199","editorBracketHighlight.foreground1":"#0969da","editorBracketHighlight.foreground2":"#1a7f37","editorBracketHighlight.foreground3":"#9a6700","editorBracketHighlight.foreground4":"#cf222e","editorBracketHighlight.foreground5":"#bf3989","editorBracketHighlight.foreground6":"#8250df","editorBracketHighlight.unexpectedBracket.foreground":"#656d76","editorBracketMatch.background":"#4ac26b40","editorBracketMatch.border":"#4ac26b99","editorCursor.foreground":"#0969da","editorGroup.border":"#d0d7de","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#d0d7de","editorGutter.addedBackground":"#4ac26b66","editorGutter.deletedBackground":"#ff818266","editorGutter.modifiedBackground":"#d4a72c66","editorIndentGuide.activeBackground":"#1f23283d","editorIndentGuide.background":"#1f23281f","editorInlayHint.background":"#afb8c133","editorInlayHint.foreground":"#656d76","editorInlayHint.paramBackground":"#afb8c133","editorInlayHint.paramForeground":"#656d76","editorInlayHint.typeBackground":"#afb8c133","editorInlayHint.typeForeground":"#656d76","editorLineNumber.activeForeground":"#1f2328","editorLineNumber.foreground":"#8c959f","editorOverviewRuler.border":"#ffffff","editorWhitespace.foreground":"#afb8c1","editorWidget.background":"#ffffff","errorForeground":"#cf222e","focusBorder":"#0969da","foreground":"#1f2328","gitDecoration.addedResourceForeground":"#1a7f37","gitDecoration.conflictingResourceForeground":"#bc4c00","gitDecoration.deletedResourceForeground":"#cf222e","gitDecoration.ignoredResourceForeground":"#6e7781","gitDecoration.modifiedResourceForeground":"#9a6700","gitDecoration.submoduleResourceForeground":"#656d76","gitDecoration.untrackedResourceForeground":"#1a7f37","icon.foreground":"#656d76","input.background":"#ffffff","input.border":"#d0d7de","input.foreground":"#1f2328","input.placeholderForeground":"#6e7781","keybindingLabel.foreground":"#1f2328","list.activeSelectionBackground":"#afb8c133","list.activeSelectionForeground":"#1f2328","list.focusBackground":"#ddf4ff","list.focusForeground":"#1f2328","list.highlightForeground":"#0969da","list.hoverBackground":"#eaeef280","list.hoverForeground":"#1f2328","list.inactiveFocusBackground":"#ddf4ff","list.inactiveSelectionBackground":"#afb8c133","list.inactiveSelectionForeground":"#1f2328","minimapSlider.activeBackground":"#8c959f47","minimapSlider.background":"#8c959f33","minimapSlider.hoverBackground":"#8c959f3d","notificationCenterHeader.background":"#f6f8fa","notificationCenterHeader.foreground":"#656d76","notifications.background":"#ffffff","notifications.border":"#d0d7de","notifications.foreground":"#1f2328","notificationsErrorIcon.foreground":"#cf222e","notificationsInfoIcon.foreground":"#0969da","notificationsWarningIcon.foreground":"#9a6700","panel.background":"#f6f8fa","panel.border":"#d0d7de","panelInput.border":"#d0d7de","panelTitle.activeBorder":"#fd8c73","panelTitle.activeForeground":"#1f2328","panelTitle.inactiveForeground":"#656d76","pickerGroup.border":"#d0d7de","pickerGroup.foreground":"#656d76","progressBar.background":"#0969da","quickInput.background":"#ffffff","quickInput.foreground":"#1f2328","scrollbar.shadow":"#6e778133","scrollbarSlider.activeBackground":"#8c959f47","scrollbarSlider.background":"#8c959f33","scrollbarSlider.hoverBackground":"#8c959f3d","settings.headerForeground":"#1f2328","settings.modifiedItemIndicator":"#d4a72c66","sideBar.background":"#f6f8fa","sideBar.border":"#d0d7de","sideBar.foreground":"#1f2328","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#d0d7de","sideBarSectionHeader.foreground":"#1f2328","sideBarTitle.foreground":"#1f2328","statusBar.background":"#ffffff","statusBar.border":"#d0d7de","statusBar.debuggingBackground":"#cf222e","statusBar.debuggingForeground":"#ffffff","statusBar.focusBorder":"#0969da80","statusBar.foreground":"#656d76","statusBar.noFolderBackground":"#ffffff","statusBarItem.activeBackground":"#1f23281f","statusBarItem.focusBorder":"#0969da","statusBarItem.hoverBackground":"#1f232814","statusBarItem.prominentBackground":"#afb8c133","statusBarItem.remoteBackground":"#eaeef2","statusBarItem.remoteForeground":"#1f2328","symbolIcon.arrayForeground":"#953800","symbolIcon.booleanForeground":"#0550ae","symbolIcon.classForeground":"#953800","symbolIcon.colorForeground":"#0a3069","symbolIcon.constantForeground":"#116329","symbolIcon.constructorForeground":"#3e1f79","symbolIcon.enumeratorForeground":"#953800","symbolIcon.enumeratorMemberForeground":"#0550ae","symbolIcon.eventForeground":"#57606a","symbolIcon.fieldForeground":"#953800","symbolIcon.fileForeground":"#7d4e00","symbolIcon.folderForeground":"#7d4e00","symbolIcon.functionForeground":"#6639ba","symbolIcon.interfaceForeground":"#953800","symbolIcon.keyForeground":"#0550ae","symbolIcon.keywordForeground":"#a40e26","symbolIcon.methodForeground":"#6639ba","symbolIcon.moduleForeground":"#a40e26","symbolIcon.namespaceForeground":"#a40e26","symbolIcon.nullForeground":"#0550ae","symbolIcon.numberForeground":"#116329","symbolIcon.objectForeground":"#953800","symbolIcon.operatorForeground":"#0a3069","symbolIcon.packageForeground":"#953800","symbolIcon.propertyForeground":"#953800","symbolIcon.referenceForeground":"#0550ae","symbolIcon.snippetForeground":"#0550ae","symbolIcon.stringForeground":"#0a3069","symbolIcon.structForeground":"#953800","symbolIcon.textForeground":"#0a3069","symbolIcon.typeParameterForeground":"#0a3069","symbolIcon.unitForeground":"#0550ae","symbolIcon.variableForeground":"#953800","tab.activeBackground":"#ffffff","tab.activeBorder":"#ffffff","tab.activeBorderTop":"#fd8c73","tab.activeForeground":"#1f2328","tab.border":"#d0d7de","tab.hoverBackground":"#ffffff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#656d76","tab.unfocusedActiveBorder":"#ffffff","tab.unfocusedActiveBorderTop":"#d0d7de","tab.unfocusedHoverBackground":"#eaeef280","terminal.ansiBlack":"#24292f","terminal.ansiBlue":"#0969da","terminal.ansiBrightBlack":"#57606a","terminal.ansiBrightBlue":"#218bff","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#1a7f37","terminal.ansiBrightMagenta":"#a475f9","terminal.ansiBrightRed":"#a40e26","terminal.ansiBrightWhite":"#8c959f","terminal.ansiBrightYellow":"#633c01","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#116329","terminal.ansiMagenta":"#8250df","terminal.ansiRed":"#cf222e","terminal.ansiWhite":"#6e7781","terminal.ansiYellow":"#4d2d00","terminal.foreground":"#1f2328","textBlockQuote.background":"#f6f8fa","textBlockQuote.border":"#d0d7de","textCodeBlock.background":"#afb8c133","textLink.activeForeground":"#0969da","textLink.foreground":"#0969da","textPreformat.background":"#afb8c133","textPreformat.foreground":"#656d76","textSeparator.foreground":"#d8dee4","titleBar.activeBackground":"#ffffff","titleBar.activeForeground":"#656d76","titleBar.border":"#d0d7de","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#656d76","tree.indentGuidesStroke":"#d8dee4","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#f3f4f6"},"displayName":"GitHub Light Default","name":"github-light-default","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6e7781"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#cf222e"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#0550ae"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#953800"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#1f2328"}},{"scope":"entity.name.function","settings":{"foreground":"#8250df"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#116329"}},{"scope":"keyword","settings":{"foreground":"#cf222e"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#cf222e"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#1f2328"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#0a3069"}},{"scope":"support","settings":{"foreground":"#0550ae"}},{"scope":"meta.property-name","settings":{"foreground":"#0550ae"}},{"scope":"variable","settings":{"foreground":"#953800"}},{"scope":"variable.other","settings":{"foreground":"#1f2328"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"carriage-return","settings":{"background":"#cf222e","content":"^M","fontStyle":"italic underline","foreground":"#f6f8fa"}},{"scope":"message.error","settings":{"foreground":"#82071e"}},{"scope":"string variable","settings":{"foreground":"#0550ae"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#0a3069"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#0a3069"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#116329"}},{"scope":"support.constant","settings":{"foreground":"#0550ae"}},{"scope":"support.variable","settings":{"foreground":"#0550ae"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#116329"}},{"scope":"meta.module-reference","settings":{"foreground":"#0550ae"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#953800"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"markup.quote","settings":{"foreground":"#116329"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#1f2328"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#1f2328"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#0550ae"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffebe9","foreground":"#82071e"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#cf222e"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#dafbe1","foreground":"#116329"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffd8b5","foreground":"#953800"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#0550ae","foreground":"#eaeef2"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#8250df"}},{"scope":"meta.diff.header","settings":{"foreground":"#0550ae"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"meta.output","settings":{"foreground":"#0550ae"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#57606a"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#82071e"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#0a3069"}}],"type":"light"}')),sT=Object.freeze(Object.defineProperty({__proto__:null,default:rT},Symbol.toStringTag,{value:"Module"}));var Pi={exports:{}},we={};var Jd;function oT(){if(Jd)return we;Jd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.for("react.view_transition"),p=Symbol.iterator;function m(A){return A===null||typeof A!="object"?null:(A=p&&A[p]||A["@@iterator"],typeof A=="function"?A:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function v(A,P,Z){this.props=A,this.context=P,this.refs=b,this.updater=Z||h}v.prototype.isReactComponent={},v.prototype.setState=function(A,P){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,P,"setState")},v.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function g(){}g.prototype=v.prototype;function C(A,P,Z){this.props=A,this.context=P,this.refs=b,this.updater=Z||h}var S=C.prototype=new g;S.constructor=C,y(S,v.prototype),S.isPureReactComponent=!0;var T=Array.isArray;function j(){}var $={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function U(A,P,Z){var oe=Z.ref;return{$$typeof:e,type:A,key:P,ref:oe!==void 0?oe:null,props:Z}}function V(A,P){return U(A.type,P,A.props)}function J(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function Y(A){var P={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Z){return P[Z]})}var K=/\/+/g;function be(A,P){return typeof A=="object"&&A!==null&&A.key!=null?Y(""+A.key):P.toString(36)}function ie(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(j,j):(A.status="pending",A.then(function(P){A.status==="pending"&&(A.status="fulfilled",A.value=P)},function(P){A.status==="pending"&&(A.status="rejected",A.reason=P)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function de(A,P,Z,oe,Se){var me=typeof A;(me==="undefined"||me==="boolean")&&(A=null);var Ee=!1;if(A===null)Ee=!0;else switch(me){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(A.$$typeof){case e:case t:Ee=!0;break;case u:return Ee=A._init,de(Ee(A._payload),P,Z,oe,Se)}}if(Ee)return Se=Se(A),Ee=oe===""?"."+be(A,0):oe,T(Se)?(Z="",Ee!=null&&(Z=Ee.replace(K,"$&/")+"/"),de(Se,P,Z,"",function(E){return E})):Se!=null&&(J(Se)&&(Se=V(Se,Z+(Se.key==null||A&&A.key===Se.key?"":(""+Se.key).replace(K,"$&/")+"/")+Ee)),P.push(Se)),1;Ee=0;var ut=oe===""?".":oe+":";if(T(A))for(var w=0;w<A.length;w++)oe=A[w],me=ut+be(oe,w),Ee+=de(oe,P,Z,me,Se);else if(w=m(A),typeof w=="function")for(A=w.call(A),w=0;!(oe=A.next()).done;)oe=oe.value,me=ut+be(oe,w++),Ee+=de(oe,P,Z,me,Se);else if(me==="object"){if(typeof A.then=="function")return de(ie(A),P,Z,oe,Se);throw P=String(A),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function le(A,P,Z){if(A==null)return A;var oe=[],Se=0;return de(A,oe,"","",function(me){return P.call(Z,me,Se++)}),oe}function Me(A){if(A._status===-1){var P=A._result,Z=P();Z.then(function(oe){(A._status===0||A._status===-1)&&(A._status=1,A._result=oe,Z.status===void 0&&(Z.status="fulfilled",Z.value=oe))},function(oe){(A._status===0||A._status===-1)&&(A._status=2,A._result=oe,Z.status===void 0&&(Z.status="rejected",Z.reason=oe))}),A._status===-1&&(A._status=0,A._result=Z)}if(A._status===1)return A._result.default;throw A._result}var te=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function Ue(A){var P=$.T,Z={};Z.types=P!==null?P.types:null,$.T=Z;try{var oe=A(),Se=$.S;Se!==null&&Se(Z,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(j,te)}catch(me){te(me)}finally{P!==null&&Z.types!==null&&(P.types=Z.types),$.T=P}}function qe(A){var P=$.T;if(P!==null){var Z=P.types;Z===null?P.types=[A]:Z.indexOf(A)===-1&&Z.push(A)}else Ue(qe.bind(null,A))}var wt={map:le,forEach:function(A,P,Z){le(A,function(){P.apply(this,arguments)},Z)},count:function(A){var P=0;return le(A,function(){P++}),P},toArray:function(A){return le(A,function(P){return P})||[]},only:function(A){if(!J(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return we.Activity=d,we.Children=wt,we.Component=v,we.Fragment=n,we.Profiler=s,we.PureComponent=C,we.StrictMode=r,we.Suspense=l,we.ViewTransition=f,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,we.__COMPILER_RUNTIME={__proto__:null,c:function(A){return $.H.useMemoCache(A)}},we.addTransitionType=qe,we.cache=function(A){return function(){return A.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(A,P,Z){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var oe=y({},A.props),Se=A.key;if(P!=null)for(me in P.key!==void 0&&(Se=""+P.key),P)!B.call(P,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&P.ref===void 0||(oe[me]=P[me]);var me=arguments.length-2;if(me===1)oe.children=Z;else if(1<me){for(var Ee=Array(me),ut=0;ut<me;ut++)Ee[ut]=arguments[ut+2];oe.children=Ee}return U(A.type,Se,oe)},we.createContext=function(A){return A={$$typeof:a,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:o,_context:A},A},we.createElement=function(A,P,Z){var oe,Se={},me=null;if(P!=null)for(oe in P.key!==void 0&&(me=""+P.key),P)B.call(P,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(Se[oe]=P[oe]);var Ee=arguments.length-2;if(Ee===1)Se.children=Z;else if(1<Ee){for(var ut=Array(Ee),w=0;w<Ee;w++)ut[w]=arguments[w+2];Se.children=ut}if(A&&A.defaultProps)for(oe in Ee=A.defaultProps,Ee)Se[oe]===void 0&&(Se[oe]=Ee[oe]);return U(A,me,Se)},we.createRef=function(){return{current:null}},we.forwardRef=function(A){return{$$typeof:i,render:A}},we.isValidElement=J,we.lazy=function(A){return{$$typeof:u,_payload:{_status:-1,_result:A},_init:Me}},we.memo=function(A,P){return{$$typeof:c,type:A,compare:P===void 0?null:P}},we.startTransition=Ue,we.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},we.use=function(A){return $.H.use(A)},we.useActionState=function(A,P,Z){return $.H.useActionState(A,P,Z)},we.useCallback=function(A,P){return $.H.useCallback(A,P)},we.useContext=function(A){return $.H.useContext(A)},we.useDebugValue=function(){},we.useDeferredValue=function(A,P){return $.H.useDeferredValue(A,P)},we.useEffect=function(A,P){return $.H.useEffect(A,P)},we.useEffectEvent=function(A){return $.H.useEffectEvent(A)},we.useId=function(){return $.H.useId()},we.useImperativeHandle=function(A,P,Z){return $.H.useImperativeHandle(A,P,Z)},we.useInsertionEffect=function(A,P){return $.H.useInsertionEffect(A,P)},we.useLayoutEffect=function(A,P){return $.H.useLayoutEffect(A,P)},we.useMemo=function(A,P){return $.H.useMemo(A,P)},we.useOptimistic=function(A,P){return $.H.useOptimistic(A,P)},we.useReducer=function(A,P,Z){return $.H.useReducer(A,P,Z)},we.useRef=function(A){return $.H.useRef(A)},we.useState=function(A){return $.H.useState(A)},we.useSyncExternalStore=function(A,P,Z){return $.H.useSyncExternalStore(A,P,Z)},we.useTransition=function(){return $.H.useTransition()},we.version="19.3.0",we}var Qd;function aT(){return Qd||(Qd=1,Pi.exports=oT()),Pi.exports}var iT=aT(),Li={exports:{}},as={};var ep;function lT(){if(ep)return as;ep=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,s,o){var a=null;if(o!==void 0&&(a=""+o),s.key!==void 0&&(a=""+s.key),"key"in s){o={};for(var i in s)i!=="key"&&(o[i]=s[i])}else o=s;return s=o.ref,{$$typeof:e,type:r,key:a,ref:s!==void 0?s:null,props:o}}return as.Fragment=t,as.jsx=n,as.jsxs=n,as}var tp;function cT(){return tp||(tp=1,Li.exports=lT()),Li.exports}cT();iT.createContext(null);const eg=()=>typeof window<"u"&&typeof window.document<"u",uT=()=>eg()&&typeof window.__ROZENITE_WEB__<"u",dT=()=>typeof window>"u",tg=()=>{const e=typeof lynx<"u"?lynx:globalThis.lynx;return typeof e=="object"&&e!==null&&typeof e.getDevtool=="function"},ng=()=>{if(typeof __BACKGROUND__<"u")return __BACKGROUND__===!0;const e=globalThis.__BACKGROUND__;return typeof e=="boolean"?e:!0},pT=()=>tg()&&ng(),fT=()=>tg()&&!ng();class np extends Error{constructor(t){super(`Unsupported platform: ${t}`),this.name="UnsupportedPlatformError"}}class mT extends Error{constructor(){super("Rozenite for web is not configured. A separate integration is required for web. Consult Rozenite docs for details."),this.name="MissingRozeniteForWebError"}}const Hc="rozenite",hT=()=>{const e=globalThis.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__,t=e.BINDING_NAME;return globalThis[t]!=null?e.initializeDomain(Hc):null},gT=()=>new Promise(e=>{const t=n=>{n.name===Hc&&(globalThis.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(t),setTimeout(()=>e(n)))};globalThis.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(t)}),rp=async()=>{const e=new Set;let t=hT();t||(t=await gT());const n=()=>{if(!t)throw new Error("Domain not initialized");return t},r=s=>{s.name===Hc&&(t&&e.forEach(o=>{t.onMessage.removeEventListener(o)}),t=s,e.forEach(o=>{s.onMessage.addEventListener(o)}))};return globalThis.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(r),{send:s=>{n().sendMessage(s)},onMessage(s){const o=a=>{setTimeout(()=>{s(a)})};return e.add(o),n().onMessage.addEventListener(o),{remove:()=>{e.delete(o),n().onMessage.removeEventListener(o)}}},close:()=>{globalThis.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(r)}}},bT=async()=>{if(pT())return rp();if(fT())throw new np("lynx-main-thread");if(eg()&&!uT())throw new mT;if(dT())throw new np("server");return rp()},yT=async()=>{const e=new Set,t=n=>{e.forEach(r=>{r(n.data)})};return window.addEventListener("message",t),{send:n=>{window.parent.postMessage({type:"rozenite-message",payload:n},"*")},onMessage:n=>(e.add(n),{remove:()=>{e.delete(n)}}),close:()=>{e.clear(),window.removeEventListener("message",t)}}};let is=null;const vT=async()=>{if(is)return is;const e="__ROZENITE_PANEL__"in globalThis?yT():bT();is=e;try{const t=await e;return is=t,t}catch(t){throw is=null,t}},_T=e=>typeof e!="object"||e===null||typeof e.pluginId!="string"||!("type"in e)||!("payload"in e)?null:e;class sp extends Error{constructor(t){super(`Request "${t}" was aborted.`),this.requestId=t,this.name="RozeniteDevToolsRequestAbortedError"}}class wT extends Error{constructor(t,n){super(`Request "${t}" timed out after ${n}ms.`),this.requestId=t,this.timeoutMs=n,this.name="RozeniteDevToolsRequestTimeoutError"}}class op extends Error{constructor(t){super(`Request "${t}" was cancelled because the client closed.`),this.requestId=t,this.name="RozeniteDevToolsRequestClientClosedError"}}class xT extends Error{constructor(t){super(`Request "${t.requestId}" received an error response.`),this.payload=t,this.name="RozeniteDevToolsRequestResponseError"}}const kT=3e4;let ap=0;const CT=()=>typeof globalThis.crypto?.randomUUID=="function"?globalThis.crypto.randomUUID():(ap+=1,`rozenite-${Date.now()}-${ap}`),$T=async(e,t={})=>{const n=t.channel??await vT(),r=new Map,s=new Set;let o=!1;const a=async u=>{const d=_T(u);if(!d||d.pluginId!==e)return;r.get(d.type)?.forEach(p=>{p(d.payload)})},i=(u,d)=>{n.send({pluginId:e,type:u,payload:d})},l=n.onMessage(a),c={send:i,onMessage:(u,d)=>{const f=r.get(u)??new Set;return f.add(d),r.set(u,f),{remove:()=>{f.delete(d),f.size===0&&r.delete(u)}}},request:u=>{const d=u.requestId??CT(),f=u.timeoutMs??kT;return!Number.isFinite(f)||f<0?Promise.reject(new RangeError("timeoutMs must be a finite, non-negative number.")):o?Promise.reject(new op(d)):u.signal?.aborted?Promise.reject(new sp(d)):new Promise((p,m)=>{let h=!1;const y=()=>{g(new sp(d))},b=()=>{S.remove(),T?.remove(),clearTimeout(j),u.signal?.removeEventListener("abort",y),s.delete(C)},v=$=>{h||(h=!0,b(),$())},g=$=>{v(()=>{m($)})},C=()=>{g(new op(d))},S=c.onMessage(u.responseType,$=>{$.requestId===d&&v(()=>{p($)})}),T=u.errorType!=null?c.onMessage(u.errorType,$=>{$.requestId===d&&v(()=>{m(new xT($))})}):void 0;u.signal?.addEventListener("abort",y,{once:!0}),s.add(C);const j=setTimeout(()=>{g(new wT(d,f))},f);try{c.send(u.requestType,{...u.payload,requestId:d})}catch($){g($ instanceof Error?$:new Error(String($)))}})},close:()=>{o||(o=!0,s.forEach(u=>{u()}),r.clear(),l.remove(),n.close())}};return c},ST=async(e,t={})=>$T(e,t),jT=()=>typeof __DEV__<"u"?!!__DEV__:typeof process<"u"&&!1;class rr extends Error{kind="protocol";method;code;constructor(t,n,r){super(r),this.name="RozeniteProtocolError",this.method=t,this.code=n}}class ET extends Error{kind="handler";method;remote;constructor(t,n){super(`${t} failed: ${n.message}`),this.name="RozeniteHandlerError",this.method=t,this.remote=n}}const ip="rozenite:rpc",lp=e=>{if(typeof structuredClone=="function")try{return structuredClone(e),!0}catch{return!1}try{return JSON.stringify(e),!0}catch{return!1}},AT=5e3,TT=2e3,IT=6e3,OT=3e4,MT=1,RT=e=>{if(e instanceof Error){const t="data"in e?e.data:void 0;return{name:e.name,message:e.message,stack:jT()?e.stack:void 0,data:t}}return{name:"Error",message:String(e),data:e}},PT=(e,t)=>t.source==="protocol"?new rr(e,t.code,t.message):new ET(e,{name:t.name,message:t.message,stack:t.stack,data:t.data}),LT=e=>{const t=Math.random().toString(36).slice(2,10);let n=0;const r=()=>`${t}:${n++}`,s=new Map,o=new Map,a=new Map;let i=!1;const l=g=>{e.send(ip,g)},c=(g,C)=>{const S=a.get(g);!S||S.settled||S.discarded||(S.settled=!0,S.interval!=null&&(clearInterval(S.interval),S.interval=null),a.delete(g),l(C))},u=g=>{l({kind:"ack",id:g.id});const C=s.get(g.method);if(!C){l({kind:"error",id:g.id,source:"protocol",code:"METHOD_NOT_FOUND",message:`No handler registered for method "${g.method}".`});return}const S=new AbortController,T={controller:S,interval:null,settled:!1,discarded:!1};a.set(g.id,T);const j={signal:S.signal};T.interval=setInterval(()=>{const $={kind:"heartbeat",id:g.id};l($)},g.heartbeatMs),Promise.resolve().then(()=>C(g.params,j)).then($=>{if(!lp($)){c(g.id,{kind:"error",id:g.id,source:"protocol",code:"SERIALIZATION_ERROR",message:`Result of "${g.method}" is not structured-cloneable.`});return}c(g.id,{kind:"result",id:g.id,value:$})},$=>{const B=RT($);if(B.data!==void 0&&!lp(B.data)){c(g.id,{kind:"error",id:g.id,source:"protocol",code:"SERIALIZATION_ERROR",message:`Error data thrown by "${g.method}" is not structured-cloneable.`});return}c(g.id,{kind:"error",id:g.id,source:"handler",name:B.name,message:B.message,stack:B.stack,data:B.data})})},d=g=>{const C=a.get(g.id);C&&(C.discarded=!0,C.interval!=null&&(clearInterval(C.interval),C.interval=null),a.delete(g.id),C.controller.abort())},f=g=>o.get(g.id)?.onAck(),p=g=>o.get(g.id)?.onHeartbeat(g),m=g=>o.get(g.id)?.onResult(g),h=g=>o.get(g.id)?.onError(g),y=g=>{switch(g.kind){case"request":return u(g);case"ack":return f(g);case"heartbeat":return p(g);case"result":return m(g);case"error":return h(g);case"cancel":return d(g)}},b=e.onMessage(ip,g=>y(g)),v=(g,C,S)=>{const T=S.ackTimeoutMs??AT,j=S.heartbeatMs??TT,$=S.staleTimeoutMs??IT,B=S.timeoutMs??OT,U=S.retries??MT,{signal:V}=S;return new Promise((J,Y)=>{if(i){Y(new rr(g,"CLIENT_CLOSED",`Cannot invoke "${g}": the RPC client is closed.`));return}if(V?.aborted){Y(new rr(g,"CANCELLED",`"${g}" was cancelled before it was sent.`));return}let K=!1,be=null;const ie=te=>{K||(K=!0,V&&V.removeEventListener("abort",de),te())},de=()=>{be!=null&&l({kind:"cancel",id:be}),le(),ie(()=>Y(new rr(g,"CANCELLED",`"${g}" was cancelled.`)))};V&&V.addEventListener("abort",de);let le=()=>{};const Me=te=>{const Ue=r();be=Ue;let qe=null,wt=null,A=null;le=()=>{qe!=null&&clearTimeout(qe),wt!=null&&clearTimeout(wt),A!=null&&clearTimeout(A),o.delete(Ue)};const P=()=>{wt!=null&&(clearTimeout(wt),wt=null),$!==1/0&&(wt=setTimeout(()=>{l({kind:"cancel",id:Ue}),le(),ie(()=>Y(new rr(g,"STALLED",`"${g}" stopped responding (no ack/heartbeat within ${$}ms).`)))},$))};B!==1/0&&(A=setTimeout(()=>{l({kind:"cancel",id:Ue}),le(),ie(()=>Y(new rr(g,"TIMEOUT",`"${g}" did not settle within ${B}ms.`)))},B)),qe=setTimeout(()=>{if(o.delete(Ue),A!=null&&(clearTimeout(A),A=null),te>0){Me(te-1);return}ie(()=>Y(new rr(g,"ACK_TIMEOUT",`"${g}" was not acknowledged within ${T}ms.`)))},T),o.set(Ue,{method:g,onAck:()=>{qe!=null&&(clearTimeout(qe),qe=null),P()},onHeartbeat:()=>{P()},onResult:Z=>{le(),ie(()=>J(Z.value))},onError:Z=>{le(),ie(()=>Y(PT(g,Z)))}}),l({kind:"request",id:Ue,method:g,params:C,heartbeatMs:j})};Me(U)})};return{method:(g,C={})=>({invoke:(...S)=>v(g,S[0],C)}),handle:(g,C)=>{if(s.has(g))throw new Error(`A handler for method "${g}" is already registered.`);return s.set(g,C),{remove:()=>{s.delete(g)}}},close:()=>{if(!i){i=!0,b.remove(),s.clear();for(const[g,C]of o)C.onError({kind:"error",id:g,source:"protocol",code:"CLIENT_CLOSED",message:`Cannot complete "${C.method}": the RPC client is closed.`});o.clear();for(const g of a.values())g.interval!=null&&clearInterval(g.interval),g.controller.abort();a.clear()}}}},BT="@powersync/diagnostics",NT="powersync:event",DT=2e3;class Vc{constructor(t,n){this.client=t,this.rpc=n}closed=!1;static async connect(){const t=await ST(BT);return new Vc(t,LT(t))}runQuery(t){return this.rpc.method("runQuery").invoke(t)}getSchema(){return this.rpc.method("getSchema").invoke()}getInfo(){return this.rpc.method("getInfo").invoke()}action(t){return this.rpc.method("action").invoke(t)}async observeEvents(t){const n=this.client.onMessage(NT,t);let r=!1;return(async()=>{for(;!r&&!this.closed;)try{await this.rpc.method("subscribe").invoke();return}catch{await new Promise(o=>setTimeout(o,DT))}})(),()=>{r=!0,n.remove()}}async close(){this.closed=!0,this.rpc.close(),this.client.close()}}Ny({setup(){const e=Vc.connect(),t=H(!1);return k1(e,{sdks:["react-native"]}),e.then(()=>t.value=!0),()=>mn("div",{style:"height: 100vh"},[t.value?mn(kj):mn("div",{style:"padding: 12px; font: 12px system-ui; color: #888"},"Connecting to the app…")])}}).mount("#app");
|