llmxray 0.3.5 → 0.4.1
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 +265 -244
- package/dist/assets/{AITrainingPage-CyTi1NB2.js → AITrainingPage-VU-Nu5i0.js} +1 -1
- package/dist/assets/BenchmarkPage-CQUTAU0c.js +31 -0
- package/dist/assets/{ComparisonPage-CiIKqA9v.js → ComparisonPage-DSO_-JZF.js} +4 -4
- package/dist/assets/CostDashboardPage-BLzCE-bT.js +1 -0
- package/dist/assets/DashboardPage-lqAFJvOo.js +116 -0
- package/dist/assets/{EmbeddingsPage-BczPU9IA.js → EmbeddingsPage-DDBfFe8z.js} +1 -1
- package/dist/assets/GoogleCallbackPage-H8X6YDz9.js +1 -0
- package/dist/assets/{JsonTreeNode-vpbOunXf.js → JsonTreeNode-DQ_R5Euc.js} +1 -1
- package/dist/assets/{ModelCapabilityIcons.vue_vue_type_script_setup_true_lang-BQp6k-8Y.js → ModelCapabilityIcons.vue_vue_type_script_setup_true_lang-CV939MUZ.js} +1 -1
- package/dist/assets/{RAGPage-DU70ttWt.js → RAGPage-DbZxWHmi.js} +1 -1
- package/dist/assets/SessionPage-DvtFE4GS.js +15 -0
- package/dist/assets/SettingsPage-fmgr8zF9.js +1 -0
- package/dist/assets/{StatusBadge.vue_vue_type_script_setup_true_lang-CgEd6dPQ.js → StatusBadge.vue_vue_type_script_setup_true_lang-BbHpA7hy.js} +1 -1
- package/dist/assets/{StorageGauge.vue_vue_type_style_index_0_lang-CX8sufFI.js → StorageGauge.vue_vue_type_style_index_0_lang-Dd3BsCg6.js} +1 -1
- package/dist/assets/{SystemPage-BiD-Nvc1.js → SystemPage-Bd3SBsWI.js} +3 -3
- package/dist/assets/{TabBar.vue_vue_type_script_setup_true_lang-Dsu2LWVY.js → TabBar.vue_vue_type_script_setup_true_lang-DlSEPHs6.js} +1 -1
- package/dist/assets/{TokenStreamDisplay.vue_vue_type_script_setup_true_lang-BDwyOr-9.js → TokenStreamDisplay.vue_vue_type_script_setup_true_lang-P-I0kJTd.js} +1 -1
- package/dist/assets/{ToolWorkshopPage-Dhz1Sqv0.js → ToolWorkshopPage-D9doB8PF.js} +5 -5
- package/dist/assets/agent-store-CuCtjbhV.js +1 -0
- package/dist/assets/canvas-ai-db-DBUT-nyD.js +2 -0
- package/dist/assets/{download-DuwLDzsW.js → download-C3s6K1NW.js} +1 -1
- package/dist/assets/{generate-service-C4gzEmXZ.js → generate-service-DrRYe_-5.js} +1 -1
- package/dist/assets/{google-auth-store-BE1EiKPv.js → google-auth-store-B0WvuFWG.js} +1 -1
- package/dist/assets/index-Bawj8X2v.css +1 -0
- package/dist/assets/index-CUNpOQX9.js +3 -0
- package/dist/assets/index-DYHBy1xj.js +8 -0
- package/dist/assets/{index-DoAHVxX6.js → index-DoMyvAkM.js} +1 -1
- package/dist/assets/info-D-oZIv7P.js +1 -0
- package/dist/assets/{metrics-store-CrcTLok0.js → metrics-store-DRErjO4D.js} +1 -1
- package/dist/assets/papaparse.min-DJzuA_ek.js +10 -0
- package/dist/assets/{pencil-B_bOf0D7.js → pencil-MO2uWQbW.js} +1 -1
- package/dist/assets/{rag-store-DbfHnbDe.js → rag-store-CBWvD3Va.js} +3 -3
- package/dist/assets/{share-2-CUvRPpM2.js → share-2-CnM5sBDm.js} +1 -1
- package/dist/assets/storage-store-cx_2Hb_J.js +1 -0
- package/dist/assets/{stream-handler-DIbclxpH.js → stream-handler-CXdBM2li.js} +1 -1
- package/dist/assets/{tool-workshop-store-DoTb4QN9.js → tool-workshop-store-Cb4eb3e4.js} +1 -1
- package/dist/assets/{toolcall-store-CcnV5sSF.js → toolcall-store-xQEQUq5f.js} +1 -1
- package/dist/assets/{trash-2-Bm4yN75F.js → trash-2-Cj-NOsVZ.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +2 -1
- package/dist/assets/BenchmarkPage-BIja0Qas.js +0 -31
- package/dist/assets/DashboardPage-DU_EOLw8.js +0 -116
- package/dist/assets/GoogleCallbackPage-DfIvX7pT.js +0 -1
- package/dist/assets/SessionPage-BE5NuuJh.js +0 -15
- package/dist/assets/SettingsPage-Bi1yGVMe.js +0 -1
- package/dist/assets/_commonjsHelpers-DsqdWQfm.js +0 -1
- package/dist/assets/agent-store-P3WGf428.js +0 -1
- package/dist/assets/canvas-ai-db-BolM-_G7.js +0 -2
- package/dist/assets/index-CG_7ZNQn.js +0 -6
- package/dist/assets/index-Zf_dr6sG.js +0 -3
- package/dist/assets/index-ny-QVb28.css +0 -1
- package/dist/assets/papaparse.min-3s4OkBbM.js +0 -10
- package/dist/assets/storage-store-BpKORJyE.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a1 as SO,w as Ge,b as ot,a2 as wO,W as JP,e as be,p as ht,s as Ki,a3 as wt,u as Se,B as fn,j as ye,g as bt,a4 as KP,m as lt,r as ze,a as Fe,a5 as Fs,a6 as PO,a7 as cr,a8 as pu,a9 as eT,f as he,F as gt,k as Jt,l as hi,y as vi,aa as jd,ab as tT,q as Ct,i as Qe,a0 as Mi,t as Te,ac as iT,ad as Zd,ae as nT,af as rT,ag as Xr,ah as ut,ai as nt,aj as io,ak as sT,al as TO,am as Vd,an as Mu,K as wr,h as CO,ao as aT,ap as oT,aq as kO,d as lT,A as EO,o as Tc,n as uT,$ as cT,v as Yi,C as Vn,D as ia,G as hT,Y as fT,U as ig,z as dT,T as pT}from"./index-DYHBy1xj.js";import{u as Ud}from"./tool-workshop-store-Cb4eb3e4.js";import{d as ng}from"./download-WPaeALA4.js";import{a as mT,u as gT}from"./toolcall-store-xQEQUq5f.js";import{canvasAiDB as qd}from"./canvas-ai-db-DBUT-nyD.js";import{J as rg,a as yT,g as vT,b as OT}from"./JsonTreeNode-DQ_R5Euc.js";import{D as xT}from"./base-CrPFMexR.js";import{_ as AO}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{D as sg}from"./download-C3s6K1NW.js";import{T as bT}from"./trash-2-Cj-NOsVZ.js";class ST extends xT{constructor(){super(...arguments),this.tokenize=TT}equals(e,i,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
2
2
|
`))&&(e=e.trim()),(!n.newlineIsToken||!i.includes(`
|
|
3
3
|
`))&&(i=i.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
4
4
|
`)&&(e=e.slice(0,-1)),i.endsWith(`
|
|
@@ -43,7 +43,7 @@ Edge: ${t}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will
|
|
|
43
43
|
v${-(k.value.height-2*t.maskBorderRadius)}
|
|
44
44
|
a${t.maskBorderRadius},${t.maskBorderRadius} 0 0 1 ${t.maskBorderRadius},-${t.maskBorderRadius}z`);aT(V=>{if(m.value){const oe=Gn(m.value),ae=Z=>{if(Z.sourceEvent.type!=="wheel"||!v.value||!g.value)return;const L=Z.sourceEvent.ctrlKey&&To()?10:1,se=-Z.sourceEvent.deltaY*(Z.sourceEvent.deltaMode===1?.05:Z.sourceEvent.deltaMode?1:.002)*t.zoomStep,de=u.value.zoom*2**(se*L);g.value.scaleTo(v.value,de)},fe=Z=>{if(Z.sourceEvent.type!=="mousemove"||!v.value||!g.value)return;const L=$.value*Math.max(1,u.value.zoom)*(t.inversePan?-1:1),se={x:u.value.x-Z.sourceEvent.movementX*L,y:u.value.y-Z.sourceEvent.movementY*L},de=[[0,0],[c.value.width,c.value.height]],ie=dp.translate(se.x,se.y).scale(u.value.zoom),R=g.value.constrain()(ie,de,h.value);g.value.transform(v.value,R)},D=ZM().wheelDelta(Z=>If(Z)*(t.zoomStep/10)).on("zoom",t.pannable?fe:()=>{}).on("zoom.wheel",t.zoomable?ae:()=>{});oe.call(D),V(()=>{oe.on("zoom",null)})}},{flush:"post"});function B(V){const[oe,ae]=Zn(V);e("click",{event:V,position:{x:oe,y:ae}})}function j(V,oe){const ae={event:V,node:oe,connectedEdges:Tr([oe],l.value)};p.miniMapNodeClick(ae),e("nodeClick",ae)}function M(V,oe){const ae={event:V,node:oe,connectedEdges:Tr([oe],l.value)};p.miniMapNodeDoubleClick(ae),e("nodeDblclick",ae)}function q(V,oe){const ae={event:V,node:oe,connectedEdges:Tr([oe],l.value)};p.miniMapNodeMouseEnter(ae),e("nodeMouseenter",ae)}function X(V,oe){const ae={event:V,node:oe,connectedEdges:Tr([oe],l.value)};p.miniMapNodeMouseMove(ae),e("nodeMousemove",ae)}function Y(V,oe){const ae={event:V,node:oe,connectedEdges:Tr([oe],l.value)};p.miniMapNodeMouseLeave(ae),e("nodeMouseleave",ae)}return(V,oe)=>(ye(),Ct(Se($x),{position:V.position,class:bt(["vue-flow__minimap",{pannable:V.pannable,zoomable:V.zoomable}])},{default:Ki(()=>[(ye(),be("svg",{ref_key:"el",ref:m,width:x.value,height:O.value,viewBox:[F.value.x,F.value.y,F.value.width,F.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${Se(a)}`,onClick:B},[V.ariaLabel?(ye(),be("title",{key:0,id:`vue-flow__minimap-${Se(a)}`},Te(V.ariaLabel),9,YM)):Qe("",!0),(ye(!0),be(gt,null,Jt(Se(b),ae=>(ye(),Ct(qM,{id:ae.id,key:ae.id,f:"",position:ae.computedPosition,dimensions:ae.dimensions,selected:ae.selected,dragging:ae.dragging,style:hi(ae.style),class:bt(C.value(ae)),color:S.value(ae),"border-radius":V.nodeBorderRadius,"stroke-color":w.value(ae),"stroke-width":V.nodeStrokeWidth,"shape-rendering":Se(P),type:ae.type,hidden:ae.hidden,onClick:fe=>j(fe,ae),onDblclick:fe=>M(fe,ae),onMouseenter:fe=>q(fe,ae),onMousemove:fe=>X(fe,ae),onMouseleave:fe=>Y(fe,ae)},null,8,["id","position","dimensions","selected","dragging","style","class","color","border-radius","stroke-color","stroke-width","shape-rendering","type","hidden","onClick","onDblclick","onMouseenter","onMousemove","onMouseleave"]))),128)),he("path",{class:"vue-flow__minimap-mask",d:I.value,fill:V.maskColor,stroke:V.maskStrokeColor,"stroke-width":V.maskStrokeWidth,"fill-rule":"evenodd"},null,8,GM)],8,WM))]),_:1},8,["position","class"]))}});function kh(t){const e=t.definition.function,i=[],n=e.parameters?.properties??{};for(const[r,s]of Object.entries(n)){const a={name:r,type:KM(s.type),description:s.description};s.enum&&(a.enumValues=s.enum),i.push(a)}return{uid:t.id,name:e.name,description:e.description,parameters:i,body:t.implementation.code||`{
|
|
45
45
|
// TODO
|
|
46
|
-
}`,mappings:t.canvasMeta?.mappings,probeConfig:t.canvasMeta?.probeConfig,returnSchema:t.canvasMeta?.returnSchema}}function fy(t,e){const i={},n=[];for(const l of t.parameters)if(l.members&&l.members.length>0)for(const u of l.members){const h={type:dy(u.type)};u.description&&(h.description=u.description),u.enumValues&&(h.enum=u.enumValues),i[u.name]=h,n.push(u.name)}else{const u={type:dy(l.type)};l.description&&(u.description=l.description),l.enumValues&&(u.enum=l.enumValues),i[l.name]=u,n.push(l.name)}const r={type:"function",function:{name:t.name,description:t.description,parameters:{type:"object",properties:i,required:n}}},s={...e.implementation,code:t.body},a={...e.canvasMeta,mappings:t.mappings,probeConfig:t.probeConfig,returnSchema:t.returnSchema};return{definition:r,implementation:s,canvasMeta:a}}function KM(t){if(!t)return"any";switch(t){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"array":return"any[]";case"object":return"object";default:return"any"}}function dy(t){const e=t.toLowerCase();return e==="number"||e==="integer"?"number":e==="boolean"?"boolean":e.endsWith("[]")?"array":e==="object"?"object":"string"}var Eh={},Vf=function(t,e){return Vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r])},Vf(t,e)};function cb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Vf(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}var Hu=function(){return Hu=Object.assign||function(e){for(var i,n=1,r=arguments.length;n<r;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Hu.apply(this,arguments)};function hb(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i}function fb(t,e,i,n){var r=arguments.length,s=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,i,n);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(r<3?a(s):r>3?a(e,i,s):a(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}function db(t,e){return function(i,n){e(i,n,t)}}function pb(t,e,i,n,r,s){function a(O){if(O!==void 0&&typeof O!="function")throw new TypeError("Function expected");return O}for(var l=n.kind,u=l==="getter"?"get":l==="setter"?"set":"value",h=!e&&t?n.static?t:t.prototype:null,c=e||(h?Object.getOwnPropertyDescriptor(h,n.name):{}),p,v=!1,g=i.length-1;g>=0;g--){var b={};for(var m in n)b[m]=m==="access"?{}:n[m];for(var m in n.access)b.access[m]=n.access[m];b.addInitializer=function(O){if(v)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(O||null))};var x=(0,i[g])(l==="accessor"?{get:c.get,set:c.set}:c[u],b);if(l==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(p=a(x.get))&&(c.get=p),(p=a(x.set))&&(c.set=p),(p=a(x.init))&&r.unshift(p)}else(p=a(x))&&(l==="field"?r.unshift(p):c[u]=p)}h&&Object.defineProperty(h,n.name,c),v=!0}function mb(t,e,i){for(var n=arguments.length>2,r=0;r<e.length;r++)i=n?e[r].call(t,i):e[r].call(t);return n?i:void 0}function gb(t){return typeof t=="symbol"?t:"".concat(t)}function yb(t,e,i){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:i?"".concat(i," ",e):e})}function vb(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Ob(t,e,i,n){function r(s){return s instanceof i?s:new i(function(a){a(s)})}return new(i||(i=Promise))(function(s,a){function l(c){try{h(n.next(c))}catch(p){a(p)}}function u(c){try{h(n.throw(c))}catch(p){a(p)}}function h(c){c.done?s(c.value):r(c.value).then(l,u)}h((n=n.apply(t,e||[])).next())})}function xb(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(h){return function(c){return u([h,c])}}function u(h){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,h[0]&&(i=0)),i;)try{if(n=1,r&&(s=h[0]&2?r.return:h[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,h[1])).done)return s;switch(r=0,s&&(h=[h[0]&2,s.value]),h[0]){case 0:case 1:s=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,r=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]<s[3])){i.label=h[1];break}if(h[0]===6&&i.label<s[1]){i.label=s[1],s=h;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(h);break}s[2]&&i.ops.pop(),i.trys.pop();continue}h=e.call(t,i)}catch(c){h=[6,c],r=0}finally{n=s=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}var Rc=Object.create?(function(t,e,i,n){n===void 0&&(n=i);var r=Object.getOwnPropertyDescriptor(e,i);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,r)}):(function(t,e,i,n){n===void 0&&(n=i),t[n]=e[i]});function bb(t,e){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i)&&Rc(e,t,i)}function Ju(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function pp(t,e){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var n=i.call(t),r,s=[],a;try{for(;(e===void 0||e-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(l){a={error:l}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(a)throw a.error}}return s}function Sb(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(pp(arguments[e]));return t}function wb(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),r=0,e=0;e<i;e++)for(var s=arguments[e],a=0,l=s.length;a<l;a++,r++)n[r]=s[a];return n}function Pb(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}function _s(t){return this instanceof _s?(this.v=t,this):new _s(t)}function Tb(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),r,s=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(g){return function(b){return Promise.resolve(b).then(g,p)}}function l(g,b){n[g]&&(r[g]=function(m){return new Promise(function(x,O){s.push([g,m,x,O])>1||u(g,m)})},b&&(r[g]=b(r[g])))}function u(g,b){try{h(n[g](b))}catch(m){v(s[0][3],m)}}function h(g){g.value instanceof _s?Promise.resolve(g.value.v).then(c,p):v(s[0][2],g)}function c(g){u("next",g)}function p(g){u("throw",g)}function v(g,b){g(b),s.shift(),s.length&&u(s[0][0],s[0][1])}}function Cb(t){var e,i;return e={},n("next"),n("throw",function(r){throw r}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(r,s){e[r]=t[r]?function(a){return(i=!i)?{value:_s(t[r](a)),done:!1}:s?s(a):a}:s}}function kb(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Ju=="function"?Ju(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(s){i[s]=t[s]&&function(a){return new Promise(function(l,u){a=t[s](a),r(l,u,a.done,a.value)})}}function r(s,a,l,u){Promise.resolve(u).then(function(h){s({value:h,done:l})},a)}}function Eb(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var e$=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e},Uf=function(t){return Uf=Object.getOwnPropertyNames||function(e){var i=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[i.length]=n);return i},Uf(t)};function Ab(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var i=Uf(t),n=0;n<i.length;n++)i[n]!=="default"&&Rc(e,t,i[n]);return e$(e,t),e}function Db(t){return t&&t.__esModule?t:{default:t}}function _b(t,e,i,n){if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?n:i==="a"?n.call(t):n?n.value:e.get(t)}function Ib(t,e,i,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(t,i):r?r.value=i:e.set(t,i),i}function Nb(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function Mb(t,e,i){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],i&&(r=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(s){return Promise.reject(s)}}),t.stack.push({value:e,dispose:n,async:i})}else i&&t.stack.push({async:!0});return e}var t$=typeof SuppressedError=="function"?SuppressedError:function(t,e,i){var n=new Error(i);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function $b(t){function e(s){t.error=t.hasError?new t$(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}var i,n=0;function r(){for(;i=t.stack.pop();)try{if(!i.async&&n===1)return n=0,t.stack.push(i),Promise.resolve().then(r);if(i.dispose){var s=i.dispose.call(i.value);if(i.async)return n|=2,Promise.resolve(s).then(r,function(a){return e(a),r()})}else n|=1}catch(a){e(a)}if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return r()}function Lb(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(i,n,r,s,a){return n?e?".jsx":".js":r&&(!s||!a)?i:r+s+"."+a.toLowerCase()+"js"}):t}const i$={__extends:cb,__assign:Hu,__rest:hb,__decorate:fb,__param:db,__esDecorate:pb,__runInitializers:mb,__propKey:gb,__setFunctionName:yb,__metadata:vb,__awaiter:Ob,__generator:xb,__createBinding:Rc,__exportStar:bb,__values:Ju,__read:pp,__spread:Sb,__spreadArrays:wb,__spreadArray:Pb,__await:_s,__asyncGenerator:Tb,__asyncDelegator:Cb,__asyncValues:kb,__makeTemplateObject:Eb,__importStar:Ab,__importDefault:Db,__classPrivateFieldGet:_b,__classPrivateFieldSet:Ib,__classPrivateFieldIn:Nb,__addDisposableResource:Mb,__disposeResources:$b,__rewriteRelativeImportExtension:Lb},n$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Mb,get __assign(){return Hu},__asyncDelegator:Cb,__asyncGenerator:Tb,__asyncValues:kb,__await:_s,__awaiter:Ob,__classPrivateFieldGet:_b,__classPrivateFieldIn:Nb,__classPrivateFieldSet:Ib,__createBinding:Rc,__decorate:fb,__disposeResources:$b,__esDecorate:pb,__exportStar:bb,__extends:cb,__generator:xb,__importDefault:Db,__importStar:Ab,__makeTemplateObject:Eb,__metadata:vb,__param:db,__propKey:gb,__read:pp,__rest:hb,__rewriteRelativeImportExtension:Lb,__runInitializers:mb,__setFunctionName:yb,__spread:Sb,__spreadArray:Pb,__spreadArrays:wb,__values:Ju,default:i$},Symbol.toStringTag,{value:"Module"})),et=EO(n$),r$={},s$=Object.freeze(Object.defineProperty({__proto__:null,default:r$},Symbol.toStringTag,{value:"Module"})),Bb=EO(s$);var Ah={},Pa={exports:{}},Ta={exports:{}},is={},py;function ft(){if(py)return is;py=1,Object.defineProperty(is,"__esModule",{value:!0}),is.maybeSetModuleExports=void 0;var t=et,e=t.__importDefault(At());function i(r){var s=r.use(e.default),a=s.Type,l=s.builtInTypes,u=l.number;function h(g){return a.from(function(b){return u.check(b)&&b>=g},u+" >= "+g)}var c={null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},p=a.or(l.string,l.number,l.boolean,l.null,l.undefined),v=a.from(function(g){if(g===null)return!0;var b=typeof g;return!(b==="object"||b==="function")},p.toString());return{geq:h,defaults:c,isPrimitive:v}}is.default=i;function n(r){try{var s=r(),a=s.exports,l=a.default}catch{return}l&&l!==a&&typeof a=="object"&&(Object.assign(l,a,{default:l}),a.__esModule&&Object.defineProperty(l,"__esModule",{value:!0}),s.exports=l)}return is.maybeSetModuleExports=n,is}Ta.exports;var my;function At(){return my||(my=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Def=void 0;var i=et,n=ft(),r=Object.prototype,s=r.toString,a=r.hasOwnProperty,l=(function(){function O(){}return O.prototype.assert=function(P,S){if(!this.check(P,S)){var w=m(P);throw new Error(w+" does not match type "+this)}return!0},O.prototype.arrayOf=function(){var P=this;return new u(P)},O})(),u=(function(O){i.__extends(P,O);function P(S){var w=O.call(this)||this;return w.elemType=S,w.kind="ArrayType",w}return P.prototype.toString=function(){return"["+this.elemType+"]"},P.prototype.check=function(S,w){var C=this;return Array.isArray(S)&&S.every(function(E){return C.elemType.check(E,w)})},P})(l),h=(function(O){i.__extends(P,O);function P(S){var w=O.call(this)||this;return w.value=S,w.kind="IdentityType",w}return P.prototype.toString=function(){return String(this.value)},P.prototype.check=function(S,w){var C=S===this.value;return!C&&typeof w=="function"&&w(this,S),C},P})(l),c=(function(O){i.__extends(P,O);function P(S){var w=O.call(this)||this;return w.fields=S,w.kind="ObjectType",w}return P.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"},P.prototype.check=function(S,w){return s.call(S)===s.call({})&&this.fields.every(function(C){return C.type.check(S[C.name],w)})},P})(l),p=(function(O){i.__extends(P,O);function P(S){var w=O.call(this)||this;return w.types=S,w.kind="OrType",w}return P.prototype.toString=function(){return this.types.join(" | ")},P.prototype.check=function(S,w){return this.types.some(function(C){return C.check(S,!!w)})?!0:(typeof w=="function"&&w(this,S),!1)},P})(l),v=(function(O){i.__extends(P,O);function P(S,w){var C=O.call(this)||this;return C.name=S,C.predicate=w,C.kind="PredicateType",C}return P.prototype.toString=function(){return this.name},P.prototype.check=function(S,w){var C=this.predicate(S,w);return!C&&typeof w=="function"&&w(this,S),C},P})(l),g=(function(){function O(P,S){this.type=P,this.typeName=S,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return O.prototype.isSupertypeOf=function(P){if(P instanceof O){if(this.finalized!==!0||P.finalized!==!0)throw new Error("");return a.call(P.allSupertypes,this.typeName)}else throw new Error(P+" is not a Def")},O.prototype.checkAllFields=function(P,S){var w=this.allFields;if(this.finalized!==!0)throw new Error(""+this.typeName);function C(E){var k=w[E],A=k.type,$=k.getValue(P);return A.check($,S)}return P!==null&&typeof P=="object"&&Object.keys(w).every(C)},O.prototype.bases=function(){for(var P=[],S=0;S<arguments.length;S++)P[S]=arguments[S];var w=this.baseNames;if(this.finalized){if(P.length!==w.length)throw new Error("");for(var C=0;C<P.length;C++)if(P[C]!==w[C])throw new Error("");return this}return P.forEach(function(E){w.indexOf(E)<0&&w.push(E)}),this},O})();e.Def=g;var b=(function(){function O(P,S,w,C){this.name=P,this.type=S,this.defaultFn=w,this.hidden=!!C}return O.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},O.prototype.getValue=function(P){var S=P[this.name];return typeof S<"u"||typeof this.defaultFn=="function"&&(S=this.defaultFn.call(P)),S},O})();function m(O){return Array.isArray(O)?"["+O.map(m).join(", ")+"]":O&&typeof O=="object"?"{ "+Object.keys(O).map(function(P){return P+": "+O[P]}).join(", ")+" }":JSON.stringify(O)}function x(O){var P={or:function(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];return new p(G.map(function(le){return P.from(le)}))},from:function(G,J){if(G instanceof u||G instanceof h||G instanceof c||G instanceof p||G instanceof v)return G;if(G instanceof g)return G.type;if(A.check(G)){if(G.length!==1)throw new Error("only one element type is permitted for typed arrays");return new u(P.from(G[0]))}if($.check(G))return new c(Object.keys(G).map(function(ve){return new b(ve,P.from(G[ve],ve))}));if(typeof G=="function"){var le=S.indexOf(G);if(le>=0)return w[le];if(typeof J!="string")throw new Error("missing name");return new v(J,G)}return new h(G)},def:function(G){return a.call(V,G)?V[G]:V[G]=new ae(G)},hasDef:function(G){return a.call(V,G)}},S=[],w=[];function C(G,J){var le=s.call(J),ve=new v(G,function(we){return s.call(we)===le});return J&&typeof J.constructor=="function"&&(S.push(J.constructor),w.push(ve)),ve}var E=C("string","truthy"),k=C("function",function(){}),A=C("array",[]),$=C("object",{}),F=C("RegExp",/./),I=C("Date",new Date),B=C("number",3),j=C("boolean",!0),M=C("null",null),q=C("undefined",void 0),X=typeof BigInt=="function"?C("BigInt",BigInt(1234)):new v("BigInt",function(){return!1}),Y={string:E,function:k,array:A,object:$,RegExp:F,Date:I,number:B,boolean:j,null:M,undefined:q,BigInt:X},V=Object.create(null);function oe(G){if(G&&typeof G=="object"){var J=G.type;if(typeof J=="string"&&a.call(V,J)){var le=V[J];if(le.finalized)return le}}return null}var ae=(function(G){i.__extends(J,G);function J(le){var ve=G.call(this,new v(le,function(we,K){return ve.check(we,K)}),le)||this;return ve}return J.prototype.check=function(le,ve){if(this.finalized!==!0)throw new Error("prematurely checking unfinalized type "+this.typeName);if(le===null||typeof le!="object")return!1;var we=oe(le);return we?ve&&we===this?this.checkAllFields(le,ve):this.isSupertypeOf(we)?ve?we.checkAllFields(le,ve)&&this.checkAllFields(le,!1):!0:!1:this.typeName==="SourceLocation"||this.typeName==="Position"?this.checkAllFields(le,ve):!1},J.prototype.build=function(){for(var le=this,ve=[],we=0;we<arguments.length;we++)ve[we]=arguments[we];if(this.buildParams=ve,this.buildable)return this;this.field("type",String,function(){return le.typeName}),this.buildable=!0;var K=function(me,Pe,Ve,He){if(!a.call(me,Pe)){var Tt=le.allFields;if(!a.call(Tt,Pe))throw new Error(""+Pe);var Je=Tt[Pe],ei=Je.type,qt;if(He)qt=Ve;else if(Je.defaultFn)qt=Je.defaultFn.call(me);else{var Bn="no value or default function given for field "+JSON.stringify(Pe)+" of "+le.typeName+"("+le.buildParams.map(function(gn){return Tt[gn]}).join(", ")+")";throw new Error(Bn)}if(!ei.check(qt))throw new Error(m(qt)+" does not match field "+Je+" of type "+le.typeName);me[Pe]=qt}},ue=function(){for(var me=[],Pe=0;Pe<arguments.length;Pe++)me[Pe]=arguments[Pe];var Ve=me.length;if(!le.finalized)throw new Error("attempting to instantiate unfinalized type "+le.typeName);var He=Object.create(L);if(le.buildParams.forEach(function(Tt,Je){Je<Ve?K(He,Tt,me[Je],!0):K(He,Tt,null,!1)}),Object.keys(le.allFields).forEach(function(Tt){K(He,Tt,null,!1)}),He.type!==le.typeName)throw new Error("");return He};return ue.from=function(me){if(!le.finalized)throw new Error("attempting to instantiate unfinalized type "+le.typeName);var Pe=Object.create(L);if(Object.keys(le.allFields).forEach(function(Ve){a.call(me,Ve)?K(Pe,Ve,me[Ve],!0):K(Pe,Ve,null,!1)}),Pe.type!==le.typeName)throw new Error("");return Pe},Object.defineProperty(Z,de(this.typeName),{enumerable:!0,value:ue}),this},J.prototype.field=function(le,ve,we,K){return this.finalized?(console.error("Ignoring attempt to redefine field "+JSON.stringify(le)+" of finalized type "+JSON.stringify(this.typeName)),this):(this.ownFields[le]=new b(le,P.from(ve),we,K),this)},J.prototype.finalize=function(){var le=this;if(!this.finalized){var ve=this.allFields,we=this.allSupertypes;this.baseNames.forEach(function(ue){var me=V[ue];if(me instanceof g)me.finalize(),H(ve,me.allFields),H(we,me.allSupertypes);else{var Pe="unknown supertype name "+JSON.stringify(ue)+" for subtype "+JSON.stringify(le.typeName);throw new Error(Pe)}}),H(ve,this.ownFields),we[this.typeName]=this,this.fieldNames.length=0;for(var K in ve)a.call(ve,K)&&!ve[K].hidden&&this.fieldNames.push(K);Object.defineProperty(R,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,te(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0&&$e(this.typeName)}},J})(g);function fe(G){if(!a.call(V,G))throw new Error("");var J=V[G];if(J.finalized!==!0)throw new Error("");return J.supertypeList.slice(1)}function D(G){for(var J={},le=Object.keys(V),ve=le.length,we=0;we<ve;++we){var K=le[we],ue=V[K];if(ue.finalized!==!0)throw new Error(""+K);for(var me=0;me<ue.supertypeList.length;++me){var Pe=ue.supertypeList[me];if(a.call(G,Pe)){J[K]=Pe;break}}}return J}var Z=Object.create(null),L={};function se(G,J){var le=L[G];return q.check(J)?delete L[G]:(k.assert(J),Object.defineProperty(L,G,{enumerable:!0,configurable:!0,value:J})),le}function de(G){return G.replace(/^[A-Z]+/,function(J){var le=J.length;switch(le){case 0:return"";case 1:return J.toLowerCase();default:return J.slice(0,le-1).toLowerCase()+J.charAt(le-1)}})}function ie(G){return G=de(G),G.replace(/(Expression)?$/,"Statement")}var R={};function Q(G){var J=oe(G);if(J)return J.fieldNames.slice(0);if("type"in G)throw new Error("did not recognize object of type "+JSON.stringify(G.type));return Object.keys(G)}function xe(G,J){var le=oe(G);if(le){var ve=le.allFields[J];if(ve)return ve.getValue(G)}return G&&G[J]}function Re(G,J,le){Q(G).forEach(function(ve){J.call(this,ve,xe(G,ve))},le)}function ke(G,J,le){return Q(G).some(function(ve){return J.call(this,ve,xe(G,ve))},le)}function $e(G){var J=ie(G);if(!Z[J]){var le=Z[de(G)];if(le){var ve=function(){for(var we=[],K=0;K<arguments.length;K++)we[K]=arguments[K];return Z.expressionStatement(le.apply(Z,we))};ve.from=function(){for(var we=[],K=0;K<arguments.length;K++)we[K]=arguments[K];return Z.expressionStatement(le.from.apply(Z,we))},Z[J]=ve}}}function te(G,J){J.length=0,J.push(G);for(var le=Object.create(null),ve=0;ve<J.length;++ve){G=J[ve];var we=V[G];if(we.finalized!==!0)throw new Error("");a.call(le,G)&&delete J[le[G]],le[G]=ve,J.push.apply(J,we.baseNames)}for(var K=0,ue=K,me=J.length;ue<me;++ue)a.call(J,ue)&&(J[K++]=J[ue]);J.length=K}function H(G,J){return Object.keys(J).forEach(function(le){G[le]=J[le]}),G}function re(){Object.keys(V).forEach(function(G){V[G].finalize()})}return{Type:P,builtInTypes:Y,getSupertypeNames:fe,computeSupertypeLookupTable:D,builders:Z,defineMethod:se,getBuilderName:de,getStatementBuilderName:ie,namedTypes:R,getFieldNames:Q,getFieldValue:xe,eachField:Re,someField:ke,finalize:re}}e.default=x,(0,n.maybeSetModuleExports)(function(){return t})})(Ta,Ta.exports)),Ta.exports}var Ca={exports:{}},ka={exports:{}},Ea={exports:{}};Ea.exports;var gy;function Qb(){return gy||(gy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(At()),s=Object.prototype,a=s.hasOwnProperty;function l(u){var h=u.use(r.default),c=h.builtInTypes.array,p=h.builtInTypes.number,v=function S(w,C,E){if(!(this instanceof S))throw new Error("Path constructor cannot be invoked without 'new'");if(C){if(!(C instanceof S))throw new Error("")}else C=null,E=null;this.value=w,this.parentPath=C,this.name=E,this.__childCache=null},g=v.prototype;function b(S){return S.__childCache||(S.__childCache=Object.create(null))}function m(S,w){var C=b(S),E=S.getValueProperty(w),k=C[w];return(!a.call(C,w)||k.value!==E)&&(k=C[w]=new S.constructor(E,S,w)),k}g.getValueProperty=function(w){return this.value[w]},g.get=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];for(var E=this,k=w.length,A=0;A<k;++A)E=m(E,w[A]);return E},g.each=function(w,C){for(var E=[],k=this.value.length,A=0,A=0;A<k;++A)a.call(this.value,A)&&(E[A]=this.get(A));for(C=C||this,A=0;A<k;++A)a.call(E,A)&&w.call(C,E[A])},g.map=function(w,C){var E=[];return this.each(function(k){E.push(w.call(this,k))},C),E},g.filter=function(w,C){var E=[];return this.each(function(k){w.call(this,k)&&E.push(k)},C),E};function x(){}function O(S,w,C,E){if(c.assert(S.value),w===0)return x;var k=S.value.length;if(k<1)return x;var A=arguments.length;A===2?(C=0,E=k):A===3?(C=Math.max(C,0),E=k):(C=Math.max(C,0),E=Math.min(E,k)),p.assert(C),p.assert(E);for(var $=Object.create(null),F=b(S),I=C;I<E;++I)if(a.call(S.value,I)){var B=S.get(I);if(B.name!==I)throw new Error("");var j=I+w;B.name=j,$[j]=B,delete F[I]}return delete F.length,function(){for(var M in $){var q=$[M];if(q.name!==+M)throw new Error("");F[M]=q,S.value[M]=q.value}}}g.shift=function(){var w=O(this,-1),C=this.value.shift();return w(),C},g.unshift=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];var E=O(this,w.length),k=this.value.unshift.apply(this.value,w);return E(),k},g.push=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];return c.assert(this.value),delete b(this).length,this.value.push.apply(this.value,w)},g.pop=function(){c.assert(this.value);var w=b(this);return delete w[this.value.length-1],delete w.length,this.value.pop()},g.insertAt=function(w){var C=arguments.length,E=O(this,C-1,w);if(E===x&&C<=1)return this;w=Math.max(w,0);for(var k=1;k<C;++k)this.value[w+k-1]=arguments[k];return E(),this},g.insertBefore=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];for(var E=this.parentPath,k=w.length,A=[this.name],$=0;$<k;++$)A.push(w[$]);return E.insertAt.apply(E,A)},g.insertAfter=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];for(var E=this.parentPath,k=w.length,A=[this.name+1],$=0;$<k;++$)A.push(w[$]);return E.insertAt.apply(E,A)};function P(S){if(!(S instanceof v))throw new Error("");var w=S.parentPath;if(!w)return S;var C=w.value,E=b(w);if(C[S.name]===S.value)E[S.name]=S;else if(c.check(C)){var k=C.indexOf(S.value);k>=0&&(E[S.name=k]=S)}else C[S.name]=S.value,E[S.name]=S;if(C[S.name]!==S.value)throw new Error("");if(S.parentPath.get(S.name)!==S)throw new Error("");return S}return g.replace=function(w){var C=[],E=this.parentPath.value,k=b(this.parentPath),A=arguments.length;if(P(this),c.check(E)){for(var $=E.length,F=O(this.parentPath,A-1,this.name+1),I=[this.name,1],B=0;B<A;++B)I.push(arguments[B]);var j=E.splice.apply(E,I);if(j[0]!==this.value)throw new Error("");if(E.length!==$-1+A)throw new Error("");if(F(),A===0)delete this.value,delete k[this.name],this.__childCache=null;else{if(E[this.name]!==w)throw new Error("");for(this.value!==w&&(this.value=w,this.__childCache=null),B=0;B<A;++B)C.push(this.parentPath.get(this.name+B));if(C[0]!==this)throw new Error("")}}else if(A===1)this.value!==w&&(this.__childCache=null),this.value=E[this.name]=w,C.push(this);else if(A===0)delete E[this.name],delete this.value,this.__childCache=null;else throw new Error("Could not replace path");return C},v}e.default=l,(0,n.maybeSetModuleExports)(function(){return t})})(Ea,Ea.exports)),Ea.exports}var Aa={exports:{}};Aa.exports;var yy;function a$(){return yy||(yy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(At()),s=Object.prototype.hasOwnProperty;function a(l){var u=l.use(r.default),h=u.Type,c=u.namedTypes,p=c.Node,v=c.Expression,g=u.builtInTypes.array,b=u.builders,m=function I(B,j){if(!(this instanceof I))throw new Error("Scope constructor cannot be invoked without 'new'");O.check(B.value)||x.assert(B.value);var M;if(j){if(!(j instanceof I))throw new Error("");M=j.depth+1}else j=null,M=0;Object.defineProperties(this,{path:{value:B},node:{value:B.value},isGlobal:{value:!j,enumerable:!0},depth:{value:M},parent:{value:j},bindings:{value:{}},types:{value:{}}})},x=h.or(c.Program,c.Function,c.CatchClause),O=h.or(c.Function,c.ClassDeclaration,c.ClassExpression,c.InterfaceDeclaration,c.TSInterfaceDeclaration,c.TypeAlias,c.TSTypeAliasDeclaration),P=h.or(c.TypeParameter,c.TSTypeParameter);m.isEstablishedBy=function(I){return x.check(I)||O.check(I)};var S=m.prototype;S.didScan=!1,S.declares=function(I){return this.scan(),s.call(this.bindings,I)},S.declaresType=function(I){return this.scan(),s.call(this.types,I)},S.declareTemporary=function(I){if(I){if(!/^[a-z$_]/i.test(I))throw new Error("")}else I="t$";I+=this.depth.toString(36)+"$",this.scan();for(var B=0;this.declares(I+B);)++B;var j=I+B;return this.bindings[j]=u.builders.identifier(j)},S.injectTemporary=function(I,B){I||(I=this.declareTemporary());var j=this.path.get("body");return c.BlockStatement.check(j.value)&&(j=j.get("body")),j.unshift(b.variableDeclaration("var",[b.variableDeclarator(I,B||null)])),I},S.scan=function(I){if(I||!this.didScan){for(var B in this.bindings)delete this.bindings[B];for(var B in this.types)delete this.types[B];w(this.path,this.bindings,this.types),this.didScan=!0}},S.getBindings=function(){return this.scan(),this.bindings},S.getTypes=function(){return this.scan(),this.types};function w(I,B,j){var M=I.value;if(O.check(M)){var q=I.get("typeParameters","params");g.check(q.value)&&q.each(function(X){F(X,j)})}x.check(M)&&(c.CatchClause.check(M)?A(I.get("param"),B):C(I,B,j))}function C(I,B,j){var M=I.value;I.parent&&c.FunctionExpression.check(I.parent.node)&&I.parent.node.id&&A(I.parent.get("id"),B),M&&(g.check(M)?I.each(function(q){k(q,B,j)}):c.Function.check(M)?(I.get("params").each(function(q){A(q,B)}),k(I.get("body"),B,j),C(I.get("typeParameters"),B,j)):c.TypeAlias&&c.TypeAlias.check(M)||c.InterfaceDeclaration&&c.InterfaceDeclaration.check(M)||c.TSTypeAliasDeclaration&&c.TSTypeAliasDeclaration.check(M)||c.TSInterfaceDeclaration&&c.TSInterfaceDeclaration.check(M)?$(I.get("id"),j):c.VariableDeclarator.check(M)?(A(I.get("id"),B),k(I.get("init"),B,j)):M.type==="ImportSpecifier"||M.type==="ImportNamespaceSpecifier"||M.type==="ImportDefaultSpecifier"?A(I.get(M.local?"local":M.name?"name":"id"),B):p.check(M)&&!v.check(M)&&u.eachField(M,function(q,X){var Y=I.get(q);if(!E(Y,X))throw new Error("");k(Y,B,j)}))}function E(I,B){return!!(I.value===B||Array.isArray(I.value)&&I.value.length===0&&Array.isArray(B)&&B.length===0)}function k(I,B,j){var M=I.value;if(!(!M||v.check(M)))if(c.FunctionDeclaration.check(M)&&M.id!==null)A(I.get("id"),B);else if(c.ClassDeclaration&&c.ClassDeclaration.check(M)&&M.id!==null)A(I.get("id"),B),C(I.get("typeParameters"),B,j);else if(c.InterfaceDeclaration&&c.InterfaceDeclaration.check(M)||c.TSInterfaceDeclaration&&c.TSInterfaceDeclaration.check(M))$(I.get("id"),j);else if(x.check(M)){if(c.CatchClause.check(M)&&c.Identifier.check(M.param)){var q=M.param.name,X=s.call(B,q);C(I.get("body"),B,j),X||delete B[q]}}else C(I,B,j)}function A(I,B){var j=I.value;c.Pattern.assert(j),c.Identifier.check(j)?s.call(B,j.name)?B[j.name].push(I):B[j.name]=[I]:c.AssignmentPattern&&c.AssignmentPattern.check(j)?A(I.get("left"),B):c.ObjectPattern&&c.ObjectPattern.check(j)?I.get("properties").each(function(M){var q=M.value;c.Pattern.check(q)?A(M,B):c.Property.check(q)||c.ObjectProperty&&c.ObjectProperty.check(q)?A(M.get("value"),B):c.SpreadProperty&&c.SpreadProperty.check(q)&&A(M.get("argument"),B)}):c.ArrayPattern&&c.ArrayPattern.check(j)?I.get("elements").each(function(M){var q=M.value;c.Pattern.check(q)?A(M,B):c.SpreadElement&&c.SpreadElement.check(q)&&A(M.get("argument"),B)}):c.PropertyPattern&&c.PropertyPattern.check(j)?A(I.get("pattern"),B):(c.SpreadElementPattern&&c.SpreadElementPattern.check(j)||c.RestElement&&c.RestElement.check(j)||c.SpreadPropertyPattern&&c.SpreadPropertyPattern.check(j))&&A(I.get("argument"),B)}function $(I,B){var j=I.value;c.Pattern.assert(j),c.Identifier.check(j)&&(s.call(B,j.name)?B[j.name].push(I):B[j.name]=[I])}function F(I,B){var j=I.value;P.assert(j),s.call(B,j.name)?B[j.name].push(I):B[j.name]=[I]}return S.lookup=function(I){for(var B=this;B&&!B.declares(I);B=B.parent);return B},S.lookupType=function(I){for(var B=this;B&&!B.declaresType(I);B=B.parent);return B},S.getGlobalScope=function(){for(var I=this;!I.isGlobal;)I=I.parent;return I},m}e.default=a,(0,n.maybeSetModuleExports)(function(){return t})})(Aa,Aa.exports)),Aa.exports}ka.exports;var vy;function Fb(){return vy||(vy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importDefault(Qb()),s=i.__importDefault(a$()),a=ft();function l(u){var h=u.use(n.default),c=h.namedTypes,p=h.builders,v=h.builtInTypes.number,g=h.builtInTypes.array,b=u.use(r.default),m=u.use(s.default),x=function A($,F,I){if(!(this instanceof A))throw new Error("NodePath constructor cannot be invoked without 'new'");b.call(this,$,F,I)},O=x.prototype=Object.create(b.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(O,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),O.replace=function(){return delete this.node,delete this.parent,delete this.scope,b.prototype.replace.apply(this,arguments)},O.prune=function(){var A=this.parent;return this.replace(),E(A)},O._computeNode=function(){var A=this.value;if(c.Node.check(A))return A;var $=this.parentPath;return $&&$.node||null},O._computeParent=function(){var A=this.value,$=this.parentPath;if(!c.Node.check(A)){for(;$&&!c.Node.check($.value);)$=$.parentPath;$&&($=$.parentPath)}for(;$&&!c.Node.check($.value);)$=$.parentPath;return $||null},O._computeScope=function(){var A=this.value,$=this.parentPath,F=$&&$.scope;return c.Node.check(A)&&m.isEstablishedBy(A)&&(F=new m(this,F)),F||null},O.getValueProperty=function(A){return h.getFieldValue(this.value,A)},O.needsParens=function(A){var $=this.parentPath;if(!$)return!1;var F=this.value;if(!c.Expression.check(F)||F.type==="Identifier")return!1;for(;!c.Node.check($.value);)if($=$.parentPath,!$)return!1;var I=$.value;switch(F.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return I.type==="MemberExpression"&&this.name==="object"&&I.object===F;case"BinaryExpression":case"LogicalExpression":switch(I.type){case"CallExpression":return this.name==="callee"&&I.callee===F;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return this.name==="object"&&I.object===F;case"BinaryExpression":case"LogicalExpression":{var B=F,j=I.operator,M=S[j],q=B.operator,X=S[q];if(M>X)return!0;if(M===X&&this.name==="right"){if(I.right!==B)throw new Error("Nodes must be equal");return!0}}default:return!1}case"SequenceExpression":switch(I.type){case"ForStatement":return!1;case"ExpressionStatement":return this.name!=="expression";default:return!0}case"YieldExpression":switch(I.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return I.type==="MemberExpression"&&v.check(F.value)&&this.name==="object"&&I.object===F;case"AssignmentExpression":case"ConditionalExpression":switch(I.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return this.name==="callee"&&I.callee===F;case"ConditionalExpression":return this.name==="test"&&I.test===F;case"MemberExpression":return this.name==="object"&&I.object===F;default:return!1}default:if(I.type==="NewExpression"&&this.name==="callee"&&I.callee===F)return w(F)}return!!(A!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function P(A){return c.BinaryExpression.check(A)||c.LogicalExpression.check(A)}var S={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(A,$){A.forEach(function(F){S[F]=$})});function w(A){return c.CallExpression.check(A)?!0:g.check(A)?A.some(w):c.Node.check(A)?h.someField(A,function($,F){return w(F)}):!1}O.canBeFirstInStatement=function(){var A=this.node;return!c.FunctionExpression.check(A)&&!c.ObjectExpression.check(A)},O.firstInStatement=function(){return C(this)};function C(A){for(var $,F;A.parent;A=A.parent){if($=A.node,F=A.parent.node,c.BlockStatement.check(F)&&A.parent.name==="body"&&A.name===0){if(F.body[0]!==$)throw new Error("Nodes must be equal");return!0}if(c.ExpressionStatement.check(F)&&A.name==="expression"){if(F.expression!==$)throw new Error("Nodes must be equal");return!0}if(c.SequenceExpression.check(F)&&A.parent.name==="expressions"&&A.name===0){if(F.expressions[0]!==$)throw new Error("Nodes must be equal");continue}if(c.CallExpression.check(F)&&A.name==="callee"){if(F.callee!==$)throw new Error("Nodes must be equal");continue}if(c.MemberExpression.check(F)&&A.name==="object"){if(F.object!==$)throw new Error("Nodes must be equal");continue}if(c.ConditionalExpression.check(F)&&A.name==="test"){if(F.test!==$)throw new Error("Nodes must be equal");continue}if(P(F)&&A.name==="left"){if(F.left!==$)throw new Error("Nodes must be equal");continue}if(c.UnaryExpression.check(F)&&!F.prefix&&A.name==="argument"){if(F.argument!==$)throw new Error("Nodes must be equal");continue}return!1}return!0}function E(A){if(c.VariableDeclaration.check(A.node)){var $=A.get("declarations").value;if(!$||$.length===0)return A.prune()}else if(c.ExpressionStatement.check(A.node)){if(!A.get("expression").value)return A.prune()}else c.IfStatement.check(A.node)&&k(A);return A}function k(A){var $=A.get("test").value,F=A.get("alternate").value,I=A.get("consequent").value;if(!I&&!F){var B=p.expressionStatement($);A.replace(B)}else if(!I&&F){var j=p.unaryExpression("!",$,!0);c.UnaryExpression.check($)&&$.operator==="!"&&(j=$.argument),A.get("test").replace(j),A.get("consequent").replace(F),A.get("alternate").replace()}}return x}e.default=l,(0,a.maybeSetModuleExports)(function(){return t})})(ka,ka.exports)),ka.exports}Ca.exports;var Oy;function o$(){return Oy||(Oy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importDefault(Fb()),s=ft(),a=Object.prototype.hasOwnProperty;function l(u){var h=u.use(n.default),c=u.use(r.default),p=h.builtInTypes.array,v=h.builtInTypes.object,g=h.builtInTypes.function,b,m=function E(){if(!(this instanceof E))throw new Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=x(this),this._shouldVisitComments=a.call(this._methodNameTable,"Block")||a.call(this._methodNameTable,"Line"),this.Context=w(this),this._visiting=!1,this._changeReported=!1};function x(E){var k=Object.create(null);for(var A in E)/^visit[A-Z]/.test(A)&&(k[A.slice(5)]=!0);for(var $=h.computeSupertypeLookupTable(k),F=Object.create(null),I=Object.keys($),B=I.length,j=0;j<B;++j){var M=I[j];A="visit"+$[M],g.check(E[A])&&(F[M]=A)}return F}m.fromMethodsObject=function(k){if(k instanceof m)return k;if(!v.check(k))return new m;var A=function F(){if(!(this instanceof F))throw new Error("Visitor constructor cannot be invoked without 'new'");m.call(this)},$=A.prototype=Object.create(P);return $.constructor=A,O($,k),O(A,m),g.assert(A.fromMethodsObject),g.assert(A.visit),new A};function O(E,k){for(var A in k)a.call(k,A)&&(E[A]=k[A]);return E}m.visit=function(k,A){return m.fromMethodsObject(A).visit(k)};var P=m.prototype;P.visit=function(){if(this._visiting)throw new Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;for(var E=arguments.length,k=new Array(E),A=0;A<E;++A)k[A]=arguments[A];k[0]instanceof c||(k[0]=new c({root:k[0]}).get("root")),this.reset.apply(this,k);var $;try{var F=this.visitWithoutReset(k[0]);$=!0}finally{if(this._visiting=!1,!$&&this._abortRequested)return k[0].value}return F},P.AbortRequest=function(){},P.abort=function(){var E=this;E._abortRequested=!0;var k=new E.AbortRequest;throw k.cancel=function(){E._abortRequested=!1},k},P.reset=function(E){},P.visitWithoutReset=function(E){if(this instanceof this.Context)return this.visitor.visitWithoutReset(E);if(!(E instanceof c))throw new Error("");var k=E.value,A=k&&typeof k=="object"&&typeof k.type=="string"&&this._methodNameTable[k.type];if(A){var $=this.acquireContext(E);try{return $.invokeVisitorMethod(A)}finally{this.releaseContext($)}}else return S(E,this)};function S(E,k){if(!(E instanceof c))throw new Error("");if(!(k instanceof m))throw new Error("");var A=E.value;if(p.check(A))E.each(k.visitWithoutReset,k);else if(v.check(A)){var $=h.getFieldNames(A);k._shouldVisitComments&&A.comments&&$.indexOf("comments")<0&&$.push("comments");for(var F=$.length,I=[],B=0;B<F;++B){var j=$[B];a.call(A,j)||(A[j]=h.getFieldValue(A,j)),I.push(E.get(j))}for(var B=0;B<F;++B)k.visitWithoutReset(I[B])}return E.value}P.acquireContext=function(E){return this._reusableContextStack.length===0?new this.Context(E):this._reusableContextStack.pop().reset(E)},P.releaseContext=function(E){if(!(E instanceof this.Context))throw new Error("");this._reusableContextStack.push(E),E.currentPath=null},P.reportChanged=function(){this._changeReported=!0},P.wasChangeReported=function(){return this._changeReported};function w(E){function k($){if(!(this instanceof k))throw new Error("");if(!(this instanceof m))throw new Error("");if(!($ instanceof c))throw new Error("");Object.defineProperty(this,"visitor",{value:E,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=$,this.needToCallTraverse=!0,Object.seal(this)}if(!(E instanceof m))throw new Error("");var A=k.prototype=Object.create(E);return A.constructor=k,O(A,C),k}var C=Object.create(null);return C.reset=function(k){if(!(this instanceof this.Context))throw new Error("");if(!(k instanceof c))throw new Error("");return this.currentPath=k,this.needToCallTraverse=!0,this},C.invokeVisitorMethod=function(k){if(!(this instanceof this.Context))throw new Error("");if(!(this.currentPath instanceof c))throw new Error("");var A=this.visitor[k].call(this,this.currentPath);if(A===!1?this.needToCallTraverse=!1:A!==b&&(this.currentPath=this.currentPath.replace(A)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw new Error("Must either call this.traverse or return false in "+k);var $=this.currentPath;return $&&$.value},C.traverse=function(k,A){if(!(this instanceof this.Context))throw new Error("");if(!(k instanceof c))throw new Error("");if(!(this.currentPath instanceof c))throw new Error("");return this.needToCallTraverse=!1,S(k,m.fromMethodsObject(A||this.visitor))},C.visit=function(k,A){if(!(this instanceof this.Context))throw new Error("");if(!(k instanceof c))throw new Error("");if(!(this.currentPath instanceof c))throw new Error("");return this.needToCallTraverse=!1,m.fromMethodsObject(A||this.visitor).visitWithoutReset(k)},C.reportChanged=function(){this.visitor.reportChanged()},C.abort=function(){this.needToCallTraverse=!1,this.visitor.abort()},m}e.default=l,(0,s.maybeSetModuleExports)(function(){return t})})(Ca,Ca.exports)),Ca.exports}var Da={exports:{}};Da.exports;var xy;function l$(){return xy||(xy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(At());function s(a){var l=a.use(r.default),u=l.getFieldNames,h=l.getFieldValue,c=l.builtInTypes.array,p=l.builtInTypes.object,v=l.builtInTypes.Date,g=l.builtInTypes.RegExp,b=Object.prototype.hasOwnProperty;function m(w,C,E){return c.check(E)?E.length=0:E=null,O(w,C,E)}m.assert=function(w,C){var E=[];if(!m(w,C,E))if(E.length===0){if(w!==C)throw new Error("Nodes must be equal")}else throw new Error("Nodes differ in the following path: "+E.map(x).join(""))};function x(w){return/[_$a-z][_$a-z0-9]*/i.test(w)?"."+w:"["+JSON.stringify(w)+"]"}function O(w,C,E){return w===C?!0:c.check(w)?P(w,C,E):p.check(w)?S(w,C,E):v.check(w)?v.check(C)&&+w==+C:g.check(w)?g.check(C)&&w.source===C.source&&w.global===C.global&&w.multiline===C.multiline&&w.ignoreCase===C.ignoreCase:w==C}function P(w,C,E){c.assert(w);var k=w.length;if(!c.check(C)||C.length!==k)return E&&E.push("length"),!1;for(var A=0;A<k;++A){if(E&&E.push(A),A in w!=A in C||!O(w[A],C[A],E))return!1;if(E){var $=E.pop();if($!==A)throw new Error(""+$)}}return!0}function S(w,C,E){if(p.assert(w),!p.check(C))return!1;if(w.type!==C.type)return E&&E.push("type"),!1;var k=u(w),A=k.length,$=u(C),F=$.length;if(A===F){for(var I=0;I<A;++I){var B=k[I],j=h(w,B),M=h(C,B);if(E&&E.push(B),!O(j,M,E))return!1;if(E){var q=E.pop();if(q!==B)throw new Error(""+q)}}return!0}if(!E)return!1;var X=Object.create(null);for(I=0;I<A;++I)X[k[I]]=!0;for(I=0;I<F;++I){if(B=$[I],!b.call(X,B))return E.push(B),!1;delete X[B]}for(B in X){E.push(B);break}return!1}return m}e.default=s,(0,n.maybeSetModuleExports)(function(){return t})})(Da,Da.exports)),Da.exports}Pa.exports;var by;function u$(){return by||(by=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importDefault(o$()),s=i.__importDefault(l$()),a=i.__importDefault(Qb()),l=i.__importDefault(Fb()),u=ft();function h(p){var v=c(),g=v.use(n.default);p.forEach(v.use),g.finalize();var b=v.use(r.default);return{Type:g.Type,builtInTypes:g.builtInTypes,namedTypes:g.namedTypes,builders:g.builders,defineMethod:g.defineMethod,getFieldNames:g.getFieldNames,getFieldValue:g.getFieldValue,eachField:g.eachField,someField:g.someField,getSupertypeNames:g.getSupertypeNames,getBuilderName:g.getBuilderName,astNodesAreEquivalent:v.use(s.default),finalize:g.finalize,Path:v.use(a.default),NodePath:v.use(l.default),PathVisitor:b,use:v.use,visit:b.visit}}e.default=h;function c(){var p=[],v=[];function g(m){var x=p.indexOf(m);return x===-1&&(x=p.length,p.push(m),v[x]=m(b)),v[x]}var b={use:g};return b}(0,u.maybeSetModuleExports)(function(){return t})})(Pa,Pa.exports)),Pa.exports}var _a={exports:{}},Ia={exports:{}},Na={exports:{}},Ma={exports:{}},$a={exports:{}},La={exports:{}},Ba={exports:{}};Ba.exports;var Sy;function Rb(){return Sy||(Sy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=ft();function n(){return{BinaryOperators:["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}}e.default=n,(0,i.maybeSetModuleExports)(function(){return t})})(Ba,Ba.exports)),Ba.exports}La.exports;var wy;function zb(){return wy||(wy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(Rb());function s(a){var l=a.use(r.default);return l.BinaryOperators.indexOf("**")<0&&l.BinaryOperators.push("**"),l.AssignmentOperators.indexOf("**=")<0&&l.AssignmentOperators.push("**="),l}e.default=s,(0,n.maybeSetModuleExports)(function(){return t})})(La,La.exports)),La.exports}$a.exports;var Py;function Xb(){return Py||(Py=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(zb());function s(a){var l=a.use(r.default);return l.LogicalOperators.indexOf("??")<0&&l.LogicalOperators.push("??"),l}e.default=s,(0,n.maybeSetModuleExports)(function(){return t})})($a,$a.exports)),$a.exports}Ma.exports;var Ty;function c$(){return Ty||(Ty=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(Xb());function s(a){var l=a.use(r.default);return l.LogicalOperators.forEach(function(u){var h=u+"=";l.AssignmentOperators.indexOf(h)<0&&l.AssignmentOperators.push(h)}),l}e.default=s,(0,n.maybeSetModuleExports)(function(){return t})})(Ma,Ma.exports)),Ma.exports}var Qa={exports:{}},Fa={exports:{}},Ra={exports:{}},za={exports:{}},Xa={exports:{}},ja={exports:{}},Za={exports:{}};Za.exports;var Cy;function h$(){return Cy||(Cy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(Rb()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){var u=l.use(r.default),h=u.Type,c=h.def,p=h.or,v=l.use(s.default),g=v.defaults,b=v.geq,m=l.use(n.default),x=m.BinaryOperators,O=m.AssignmentOperators,P=m.LogicalOperators;c("Printable").field("loc",p(c("SourceLocation"),null),g.null,!0),c("Node").bases("Printable").field("type",String).field("comments",p([c("Comment")],null),g.null,!0),c("SourceLocation").field("start",c("Position")).field("end",c("Position")).field("source",p(String,null),g.null),c("Position").field("line",b(1)).field("column",b(0)),c("File").bases("Node").build("program","name").field("program",c("Program")).field("name",p(String,null),g.null),c("Program").bases("Node").build("body").field("body",[c("Statement")]),c("Function").bases("Node").field("id",p(c("Identifier"),null),g.null).field("params",[c("Pattern")]).field("body",c("BlockStatement")).field("generator",Boolean,g.false).field("async",Boolean,g.false),c("Statement").bases("Node"),c("EmptyStatement").bases("Statement").build(),c("BlockStatement").bases("Statement").build("body").field("body",[c("Statement")]),c("ExpressionStatement").bases("Statement").build("expression").field("expression",c("Expression")),c("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",c("Expression")).field("consequent",c("Statement")).field("alternate",p(c("Statement"),null),g.null),c("LabeledStatement").bases("Statement").build("label","body").field("label",c("Identifier")).field("body",c("Statement")),c("BreakStatement").bases("Statement").build("label").field("label",p(c("Identifier"),null),g.null),c("ContinueStatement").bases("Statement").build("label").field("label",p(c("Identifier"),null),g.null),c("WithStatement").bases("Statement").build("object","body").field("object",c("Expression")).field("body",c("Statement")),c("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",c("Expression")).field("cases",[c("SwitchCase")]).field("lexical",Boolean,g.false),c("ReturnStatement").bases("Statement").build("argument").field("argument",p(c("Expression"),null)),c("ThrowStatement").bases("Statement").build("argument").field("argument",c("Expression")),c("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",c("BlockStatement")).field("handler",p(c("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[c("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[c("CatchClause")],g.emptyArray).field("finalizer",p(c("BlockStatement"),null),g.null),c("CatchClause").bases("Node").build("param","guard","body").field("param",c("Pattern")).field("guard",p(c("Expression"),null),g.null).field("body",c("BlockStatement")),c("WhileStatement").bases("Statement").build("test","body").field("test",c("Expression")).field("body",c("Statement")),c("DoWhileStatement").bases("Statement").build("body","test").field("body",c("Statement")).field("test",c("Expression")),c("ForStatement").bases("Statement").build("init","test","update","body").field("init",p(c("VariableDeclaration"),c("Expression"),null)).field("test",p(c("Expression"),null)).field("update",p(c("Expression"),null)).field("body",c("Statement")),c("ForInStatement").bases("Statement").build("left","right","body").field("left",p(c("VariableDeclaration"),c("Expression"))).field("right",c("Expression")).field("body",c("Statement")),c("DebuggerStatement").bases("Statement").build(),c("Declaration").bases("Statement"),c("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",c("Identifier")),c("FunctionExpression").bases("Function","Expression").build("id","params","body"),c("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",p("var","let","const")).field("declarations",[c("VariableDeclarator")]),c("VariableDeclarator").bases("Node").build("id","init").field("id",c("Pattern")).field("init",p(c("Expression"),null),g.null),c("Expression").bases("Node"),c("ThisExpression").bases("Expression").build(),c("ArrayExpression").bases("Expression").build("elements").field("elements",[p(c("Expression"),null)]),c("ObjectExpression").bases("Expression").build("properties").field("properties",[c("Property")]),c("Property").bases("Node").build("kind","key","value").field("kind",p("init","get","set")).field("key",p(c("Literal"),c("Identifier"))).field("value",c("Expression")),c("SequenceExpression").bases("Expression").build("expressions").field("expressions",[c("Expression")]);var S=p("-","+","!","~","typeof","void","delete");c("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",S).field("argument",c("Expression")).field("prefix",Boolean,g.true);var w=p.apply(void 0,x);c("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",w).field("left",c("Expression")).field("right",c("Expression"));var C=p.apply(void 0,O);c("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",C).field("left",p(c("Pattern"),c("MemberExpression"))).field("right",c("Expression"));var E=p("++","--");c("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",E).field("argument",c("Expression")).field("prefix",Boolean);var k=p.apply(void 0,P);c("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",k).field("left",c("Expression")).field("right",c("Expression")),c("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",c("Expression")).field("consequent",c("Expression")).field("alternate",c("Expression")),c("NewExpression").bases("Expression").build("callee","arguments").field("callee",c("Expression")).field("arguments",[c("Expression")]),c("CallExpression").bases("Expression").build("callee","arguments").field("callee",c("Expression")).field("arguments",[c("Expression")]),c("MemberExpression").bases("Expression").build("object","property","computed").field("object",c("Expression")).field("property",p(c("Identifier"),c("Expression"))).field("computed",Boolean,function(){var A=this.property.type;return A==="Literal"||A==="MemberExpression"||A==="BinaryExpression"}),c("Pattern").bases("Node"),c("SwitchCase").bases("Node").build("test","consequent").field("test",p(c("Expression"),null)).field("consequent",[c("Statement")]),c("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,g.false),c("Literal").bases("Expression").build("value").field("value",p(String,Boolean,null,Number,RegExp,BigInt)),c("Comment").bases("Printable").field("value",String).field("leading",Boolean,g.true).field("trailing",Boolean,g.false)}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Za,Za.exports)),Za.exports}ja.exports;var ky;function f$(){return ky||(ky=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(h$()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def,c=u.Type.or,p=l.use(s.default).defaults;h("Function").field("generator",Boolean,p.false).field("expression",Boolean,p.false).field("defaults",[c(h("Expression"),null)],p.emptyArray).field("rest",c(h("Identifier"),null),p.null),h("RestElement").bases("Pattern").build("argument").field("argument",h("Pattern")).field("typeAnnotation",c(h("TypeAnnotation"),h("TSTypeAnnotation"),null),p.null),h("SpreadElementPattern").bases("Pattern").build("argument").field("argument",h("Pattern")),h("FunctionDeclaration").build("id","params","body","generator","expression").field("id",c(h("Identifier"),null)),h("FunctionExpression").build("id","params","body","generator","expression"),h("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,p.null).field("body",c(h("BlockStatement"),h("Expression"))).field("generator",!1,p.false),h("ForOfStatement").bases("Statement").build("left","right","body").field("left",c(h("VariableDeclaration"),h("Pattern"))).field("right",h("Expression")).field("body",h("Statement")),h("YieldExpression").bases("Expression").build("argument","delegate").field("argument",c(h("Expression"),null)).field("delegate",Boolean,p.false),h("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",h("Expression")).field("blocks",[h("ComprehensionBlock")]).field("filter",c(h("Expression"),null)),h("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",h("Expression")).field("blocks",[h("ComprehensionBlock")]).field("filter",c(h("Expression"),null)),h("ComprehensionBlock").bases("Node").build("left","right","each").field("left",h("Pattern")).field("right",h("Expression")).field("each",Boolean),h("Property").field("key",c(h("Literal"),h("Identifier"),h("Expression"))).field("value",c(h("Expression"),h("Pattern"))).field("method",Boolean,p.false).field("shorthand",Boolean,p.false).field("computed",Boolean,p.false),h("ObjectProperty").field("shorthand",Boolean,p.false),h("PropertyPattern").bases("Pattern").build("key","pattern").field("key",c(h("Literal"),h("Identifier"),h("Expression"))).field("pattern",h("Pattern")).field("computed",Boolean,p.false),h("ObjectPattern").bases("Pattern").build("properties").field("properties",[c(h("PropertyPattern"),h("Property"))]),h("ArrayPattern").bases("Pattern").build("elements").field("elements",[c(h("Pattern"),null)]),h("SpreadElement").bases("Node").build("argument").field("argument",h("Expression")),h("ArrayExpression").field("elements",[c(h("Expression"),h("SpreadElement"),h("RestElement"),null)]),h("NewExpression").field("arguments",[c(h("Expression"),h("SpreadElement"))]),h("CallExpression").field("arguments",[c(h("Expression"),h("SpreadElement"))]),h("AssignmentPattern").bases("Pattern").build("left","right").field("left",h("Pattern")).field("right",h("Expression")),h("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",c("constructor","method","get","set")).field("key",h("Expression")).field("value",h("Function")).field("computed",Boolean,p.false).field("static",Boolean,p.false);var v=c(h("MethodDefinition"),h("VariableDeclarator"),h("ClassPropertyDefinition"),h("ClassProperty"),h("StaticBlock"));h("ClassProperty").bases("Declaration").build("key").field("key",c(h("Literal"),h("Identifier"),h("Expression"))).field("computed",Boolean,p.false),h("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",v),h("ClassBody").bases("Declaration").build("body").field("body",[v]),h("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",c(h("Identifier"),null)).field("body",h("ClassBody")).field("superClass",c(h("Expression"),null),p.null),h("ClassExpression").bases("Expression").build("id","body","superClass").field("id",c(h("Identifier"),null),p.null).field("body",h("ClassBody")).field("superClass",c(h("Expression"),null),p.null),h("Super").bases("Expression").build(),h("Specifier").bases("Node"),h("ModuleSpecifier").bases("Specifier").field("local",c(h("Identifier"),null),p.null).field("id",c(h("Identifier"),null),p.null).field("name",c(h("Identifier"),null),p.null),h("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",h("Identifier")),h("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),h("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),h("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[c(h("ImportSpecifier"),h("ImportNamespaceSpecifier"),h("ImportDefaultSpecifier"))],p.emptyArray).field("source",h("Literal")).field("importKind",c("value","type"),function(){return"value"}),h("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",c(h("Declaration"),null)).field("specifiers",[h("ExportSpecifier")],p.emptyArray).field("source",c(h("Literal"),null),p.null),h("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",h("Identifier")),h("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",c(h("Declaration"),h("Expression"))),h("ExportAllDeclaration").bases("Declaration").build("source").field("source",h("Literal")),h("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",h("Expression")).field("quasi",h("TemplateLiteral")),h("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[h("TemplateElement")]).field("expressions",[h("Expression")]),h("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),h("MetaProperty").bases("Expression").build("meta","property").field("meta",h("Identifier")).field("property",h("Identifier"))}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(ja,ja.exports)),ja.exports}Xa.exports;var Ey;function d$(){return Ey||(Ey=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(zb()),r=i.__importDefault(f$()),s=ft();function a(l){l.use(n.default),l.use(r.default)}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Xa,Xa.exports)),Xa.exports}za.exports;var Ay;function p$(){return Ay||(Ay=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(d$()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def,c=l.use(s.default).defaults;h("Function").field("async",Boolean,c.false),h("AwaitExpression").bases("Expression").build("argument").field("argument",h("Expression"))}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(za,za.exports)),za.exports}Ra.exports;var Dy;function m$(){return Dy||(Dy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(p$()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def,c=u.Type.or,p=l.use(s.default).defaults;h("ForOfStatement").field("await",Boolean,p.false),h("SpreadProperty").bases("Node").build("argument").field("argument",h("Expression")),h("ObjectExpression").field("properties",[c(h("Property"),h("SpreadProperty"),h("SpreadElement"))]),h("TemplateElement").field("value",{cooked:c(String,null),raw:String}),h("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",h("Pattern")),h("ObjectPattern").field("properties",[c(h("PropertyPattern"),h("Property"),h("RestElement"),h("SpreadPropertyPattern"))])}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Ra,Ra.exports)),Ra.exports}Fa.exports;var _y;function g$(){return _y||(_y=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(m$()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def,c=u.Type.or,p=l.use(s.default).defaults;h("CatchClause").field("param",c(h("Pattern"),null),p.null)}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Fa,Fa.exports)),Fa.exports}Qa.exports;var Iy;function y$(){return Iy||(Iy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(Xb()),r=i.__importDefault(g$()),s=i.__importDefault(At()),a=i.__importStar(ft());function l(u){u.use(n.default),u.use(r.default);var h=u.use(s.default),c=h.Type.def,p=h.Type.or,v=u.use(a.default),g=v.defaults;c("ImportExpression").bases("Expression").build("source").field("source",c("Expression")),c("ExportAllDeclaration").bases("Declaration").build("source","exported").field("source",c("Literal")).field("exported",p(c("Identifier"),null,void 0),g.null),c("ChainElement").bases("Node").field("optional",Boolean,g.false),c("CallExpression").bases("Expression","ChainElement"),c("MemberExpression").bases("Expression","ChainElement"),c("ChainExpression").bases("Expression").build("expression").field("expression",c("ChainElement")),c("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,g.true),c("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,g.true)}e.default=l,(0,a.maybeSetModuleExports)(function(){return t})})(Qa,Qa.exports)),Qa.exports}Na.exports;var Ny;function v$(){return Ny||(Ny=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(c$()),r=i.__importDefault(y$()),s=ft();function a(l){l.use(n.default),l.use(r.default)}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Na,Na.exports)),Na.exports}Ia.exports;var My;function O$(){return My||(My=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(v$()),r=i.__importDefault(At()),s=ft();function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def;h("StaticBlock").bases("Declaration").build("body").field("body",[h("Statement")])}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Ia,Ia.exports)),Ia.exports}_a.exports;var $y;function tl(){return $y||($y=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importStar(ft()),s=i.__importDefault(O$());function a(l){l.use(s.default);var u=l.use(n.default),h=u.Type,c=u.Type.def,p=h.or,v=l.use(r.default),g=v.defaults;c("AwaitExpression").build("argument","all").field("argument",p(c("Expression"),null)).field("all",Boolean,g.false),c("Decorator").bases("Node").build("expression").field("expression",c("Expression")),c("Property").field("decorators",p([c("Decorator")],null),g.null),c("MethodDefinition").field("decorators",p([c("Decorator")],null),g.null),c("PrivateName").bases("Expression","Pattern").build("id").field("id",c("Identifier")),c("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",c("PrivateName")).field("value",p(c("Expression"),null),g.null),c("ImportAttribute").bases("Node").build("key","value").field("key",p(c("Identifier"),c("Literal"))).field("value",c("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach(function(b){c(b).field("assertions",[c("ImportAttribute")],g.emptyArray)}),c("RecordExpression").bases("Expression").build("properties").field("properties",[p(c("ObjectProperty"),c("ObjectMethod"),c("SpreadElement"))]),c("TupleExpression").bases("Expression").build("elements").field("elements",[p(c("Expression"),c("SpreadElement"),null)]),c("ModuleExpression").bases("Node").build("body").field("body",c("Program"))}e.default=a,(0,r.maybeSetModuleExports)(function(){return t})})(_a,_a.exports)),_a.exports}var Va={exports:{}};Va.exports;var Ly;function x$(){return Ly||(Ly=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(tl()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def,c=u.Type.or,p=l.use(s.default).defaults;h("JSXAttribute").bases("Node").build("name","value").field("name",c(h("JSXIdentifier"),h("JSXNamespacedName"))).field("value",c(h("Literal"),h("JSXExpressionContainer"),h("JSXElement"),h("JSXFragment"),null),p.null),h("JSXIdentifier").bases("Identifier").build("name").field("name",String),h("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",h("JSXIdentifier")).field("name",h("JSXIdentifier")),h("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",c(h("JSXIdentifier"),h("JSXMemberExpression"))).field("property",h("JSXIdentifier")).field("computed",Boolean,p.false);var v=c(h("JSXIdentifier"),h("JSXNamespacedName"),h("JSXMemberExpression"));h("JSXSpreadAttribute").bases("Node").build("argument").field("argument",h("Expression"));var g=[c(h("JSXAttribute"),h("JSXSpreadAttribute"))];h("JSXExpressionContainer").bases("Expression").build("expression").field("expression",c(h("Expression"),h("JSXEmptyExpression")));var b=[c(h("JSXText"),h("JSXExpressionContainer"),h("JSXSpreadChild"),h("JSXElement"),h("JSXFragment"),h("Literal"))];h("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",h("JSXOpeningElement")).field("closingElement",c(h("JSXClosingElement"),null),p.null).field("children",b,p.emptyArray).field("name",v,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",g,function(){return this.openingElement.attributes},!0),h("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",v).field("attributes",g,p.emptyArray).field("selfClosing",Boolean,p.false),h("JSXClosingElement").bases("Node").build("name").field("name",v),h("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",h("JSXOpeningFragment")).field("closingFragment",h("JSXClosingFragment")).field("children",b,p.emptyArray),h("JSXOpeningFragment").bases("Node").build(),h("JSXClosingFragment").bases("Node").build(),h("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),h("JSXEmptyExpression").bases("Node").build(),h("JSXSpreadChild").bases("Node").build("expression").field("expression",h("Expression"))}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Va,Va.exports)),Va.exports}var Ua={exports:{}},qa={exports:{}};qa.exports;var By;function jb(){return By||(By=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importStar(ft());function s(a){var l=a.use(n.default),u=l.Type.def,h=l.Type.or,c=a.use(r.default).defaults,p=h(u("TypeAnnotation"),u("TSTypeAnnotation"),null),v=h(u("TypeParameterDeclaration"),u("TSTypeParameterDeclaration"),null);u("Identifier").field("typeAnnotation",p,c.null),u("ObjectPattern").field("typeAnnotation",p,c.null),u("Function").field("returnType",p,c.null).field("typeParameters",v,c.null),u("ClassProperty").build("key","value","typeAnnotation","static").field("value",h(u("Expression"),null)).field("static",Boolean,c.false).field("typeAnnotation",p,c.null),["ClassDeclaration","ClassExpression"].forEach(function(g){u(g).field("typeParameters",v,c.null).field("superTypeParameters",h(u("TypeParameterInstantiation"),u("TSTypeParameterInstantiation"),null),c.null).field("implements",h([u("ClassImplements")],[u("TSExpressionWithTypeArguments")]),c.emptyArray)})}e.default=s,(0,r.maybeSetModuleExports)(function(){return t})})(qa,qa.exports)),qa.exports}Ua.exports;var Qy;function Zb(){return Qy||(Qy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(tl()),r=i.__importDefault(jb()),s=i.__importDefault(At()),a=i.__importStar(ft());function l(u){u.use(n.default),u.use(r.default);var h=u.use(s.default),c=h.Type.def,p=h.Type.or,v=u.use(a.default).defaults;c("Flow").bases("Node"),c("FlowType").bases("Flow"),c("AnyTypeAnnotation").bases("FlowType").build(),c("EmptyTypeAnnotation").bases("FlowType").build(),c("MixedTypeAnnotation").bases("FlowType").build(),c("VoidTypeAnnotation").bases("FlowType").build(),c("SymbolTypeAnnotation").bases("FlowType").build(),c("NumberTypeAnnotation").bases("FlowType").build(),c("BigIntTypeAnnotation").bases("FlowType").build(),c("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),c("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),c("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),c("StringTypeAnnotation").bases("FlowType").build(),c("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),c("BooleanTypeAnnotation").bases("FlowType").build(),c("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),c("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",c("FlowType")),c("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",c("FlowType")),c("NullLiteralTypeAnnotation").bases("FlowType").build(),c("NullTypeAnnotation").bases("FlowType").build(),c("ThisTypeAnnotation").bases("FlowType").build(),c("ExistsTypeAnnotation").bases("FlowType").build(),c("ExistentialTypeParam").bases("FlowType").build(),c("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[c("FunctionTypeParam")]).field("returnType",c("FlowType")).field("rest",p(c("FunctionTypeParam"),null)).field("typeParameters",p(c("TypeParameterDeclaration"),null)),c("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",p(c("Identifier"),null)).field("typeAnnotation",c("FlowType")).field("optional",Boolean),c("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",c("FlowType")),c("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[p(c("ObjectTypeProperty"),c("ObjectTypeSpreadProperty"))]).field("indexers",[c("ObjectTypeIndexer")],v.emptyArray).field("callProperties",[c("ObjectTypeCallProperty")],v.emptyArray).field("inexact",p(Boolean,void 0),v.undefined).field("exact",Boolean,v.false).field("internalSlots",[c("ObjectTypeInternalSlot")],v.emptyArray),c("Variance").bases("Node").build("kind").field("kind",p("plus","minus"));var g=p(c("Variance"),"plus","minus",null);c("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",p(c("Literal"),c("Identifier"))).field("value",c("FlowType")).field("optional",Boolean).field("variance",g,v.null),c("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",c("Identifier")).field("key",c("FlowType")).field("value",c("FlowType")).field("variance",g,v.null).field("static",Boolean,v.false),c("ObjectTypeCallProperty").bases("Node").build("value").field("value",c("FunctionTypeAnnotation")).field("static",Boolean,v.false),c("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",p(c("Identifier"),c("QualifiedTypeIdentifier"))).field("id",c("Identifier")),c("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",p(c("Identifier"),c("QualifiedTypeIdentifier"))).field("typeParameters",p(c("TypeParameterInstantiation"),null)),c("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",c("Identifier")).field("property",p(c("MemberTypeAnnotation"),c("GenericTypeAnnotation"))),c("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",c("FlowType")).field("indexType",c("FlowType")),c("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",c("FlowType")).field("indexType",c("FlowType")).field("optional",Boolean),c("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[c("FlowType")]),c("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[c("FlowType")]),c("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",c("FlowType")),c("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",c("FlowType")),c("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",c("Identifier")).field("value",c("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),c("TypeParameterDeclaration").bases("Node").build("params").field("params",[c("TypeParameter")]),c("TypeParameterInstantiation").bases("Node").build("params").field("params",[c("FlowType")]),c("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",g,v.null).field("bound",p(c("TypeAnnotation"),null),v.null).field("default",p(c("FlowType"),null),v.null),c("ClassProperty").field("variance",g,v.null),c("ClassImplements").bases("Node").build("id").field("id",c("Identifier")).field("superClass",p(c("Expression"),null),v.null).field("typeParameters",p(c("TypeParameterInstantiation"),null),v.null),c("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",c("ObjectTypeAnnotation")).field("extends",p([c("InterfaceExtends")],null),v.null),c("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",c("Identifier")).field("typeParameters",p(c("TypeParameterDeclaration"),null),v.null).field("body",c("ObjectTypeAnnotation")).field("extends",[c("InterfaceExtends")]),c("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),c("InterfaceExtends").bases("Node").build("id").field("id",c("Identifier")).field("typeParameters",p(c("TypeParameterInstantiation"),null),v.null),c("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",c("Identifier")).field("typeParameters",p(c("TypeParameterDeclaration"),null)).field("right",c("FlowType")),c("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),c("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",c("Identifier")).field("typeParameters",p(c("TypeParameterDeclaration"),null)).field("impltype",c("FlowType")).field("supertype",p(c("FlowType"),null)),c("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",p(c("FlowType"),null)),c("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",c("Expression")).field("typeAnnotation",c("TypeAnnotation")),c("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[c("FlowType")]),c("DeclareVariable").bases("Statement").build("id").field("id",c("Identifier")),c("DeclareFunction").bases("Statement").build("id").field("id",c("Identifier")).field("predicate",p(c("FlowPredicate"),null),v.null),c("DeclareClass").bases("InterfaceDeclaration").build("id"),c("DeclareModule").bases("Statement").build("id","body").field("id",p(c("Identifier"),c("Literal"))).field("body",c("BlockStatement")),c("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",c("TypeAnnotation")),c("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",p(c("DeclareVariable"),c("DeclareFunction"),c("DeclareClass"),c("FlowType"),c("TypeAlias"),c("DeclareOpaqueType"),c("InterfaceDeclaration"),null)).field("specifiers",[p(c("ExportSpecifier"),c("ExportBatchSpecifier"))],v.emptyArray).field("source",p(c("Literal"),null),v.null),c("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",p(c("Literal"),null),v.null),c("ImportDeclaration").field("importKind",p("value","type","typeof"),function(){return"value"}),c("FlowPredicate").bases("Flow"),c("InferredPredicate").bases("FlowPredicate").build(),c("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",c("Expression")),c("Function").field("predicate",p(c("FlowPredicate"),null),v.null),c("CallExpression").field("typeArguments",p(null,c("TypeParameterInstantiation")),v.null),c("NewExpression").field("typeArguments",p(null,c("TypeParameterInstantiation")),v.null),c("EnumDeclaration").bases("Declaration").build("id","body").field("id",c("Identifier")).field("body",p(c("EnumBooleanBody"),c("EnumNumberBody"),c("EnumStringBody"),c("EnumSymbolBody"))),c("EnumBooleanBody").build("members","explicitType").field("members",[c("EnumBooleanMember")]).field("explicitType",Boolean),c("EnumNumberBody").build("members","explicitType").field("members",[c("EnumNumberMember")]).field("explicitType",Boolean),c("EnumStringBody").build("members","explicitType").field("members",p([c("EnumStringMember")],[c("EnumDefaultedMember")])).field("explicitType",Boolean),c("EnumSymbolBody").build("members").field("members",[c("EnumDefaultedMember")]),c("EnumBooleanMember").build("id","init").field("id",c("Identifier")).field("init",p(c("Literal"),Boolean)),c("EnumNumberMember").build("id","init").field("id",c("Identifier")).field("init",c("Literal")),c("EnumStringMember").build("id","init").field("id",c("Identifier")).field("init",c("Literal")),c("EnumDefaultedMember").build("id").field("id",c("Identifier"))}e.default=l,(0,a.maybeSetModuleExports)(function(){return t})})(Ua,Ua.exports)),Ua.exports}var Wa={exports:{}};Wa.exports;var Fy;function b$(){return Fy||(Fy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(tl()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=l.use(s.default).defaults,c=u.Type.def,p=u.Type.or;c("VariableDeclaration").field("declarations",[p(c("VariableDeclarator"),c("Identifier"))]),c("Property").field("value",p(c("Expression"),c("Pattern"))),c("ArrayPattern").field("elements",[p(c("Pattern"),c("SpreadElement"),null)]),c("ObjectPattern").field("properties",[p(c("Property"),c("PropertyPattern"),c("SpreadPropertyPattern"),c("SpreadProperty"))]),c("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),c("ExportBatchSpecifier").bases("Specifier").build(),c("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",p(c("Declaration"),c("Expression"),null)).field("specifiers",[p(c("ExportSpecifier"),c("ExportBatchSpecifier"))],h.emptyArray).field("source",p(c("Literal"),null),h.null),c("Block").bases("Comment").build("value","leading","trailing"),c("Line").bases("Comment").build("value","leading","trailing")}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Wa,Wa.exports)),Wa.exports}var Ya={exports:{}},Ga={exports:{}};Ga.exports;var Ry;function Vb(){return Ry||(Ry=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(tl()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){var u,h,c,p,v;l.use(n.default);var g=l.use(r.default),b=l.use(s.default).defaults,m=g.Type.def,x=g.Type.or,O=g.builtInTypes.undefined;m("Noop").bases("Statement").build(),m("DoExpression").bases("Expression").build("body").field("body",[m("Statement")]),m("BindExpression").bases("Expression").build("object","callee").field("object",x(m("Expression"),null)).field("callee",m("Expression")),m("ParenthesizedExpression").bases("Expression").build("expression").field("expression",m("Expression")),m("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",m("Identifier")),m("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",m("Identifier")),m("CommentBlock").bases("Comment").build("value","leading","trailing"),m("CommentLine").bases("Comment").build("value","leading","trailing"),m("Directive").bases("Node").build("value").field("value",m("DirectiveLiteral")),m("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,b["use strict"]),m("InterpreterDirective").bases("Node").build("value").field("value",String),m("BlockStatement").bases("Statement").build("body").field("body",[m("Statement")]).field("directives",[m("Directive")],b.emptyArray),m("Program").bases("Node").build("body").field("body",[m("Statement")]).field("directives",[m("Directive")],b.emptyArray).field("interpreter",x(m("InterpreterDirective"),null),b.null);function P(E,k){return E===void 0&&(E=String),["extra",{rawValue:E,raw:String},function(){var $=g.getFieldValue(this,"value");return{rawValue:$,raw:k?k($):String($)}}]}(u=m("StringLiteral").bases("Literal").build("value").field("value",String)).field.apply(u,P(String,function(E){return JSON.stringify(E)})),(h=m("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",x(String,null),b.null)).field.apply(h,P(Number)),(c=m("BigIntLiteral").bases("Literal").build("value").field("value",x(String,Number))).field.apply(c,P(String,function(E){return E+"n"})),(p=m("DecimalLiteral").bases("Literal").build("value").field("value",String)).field.apply(p,P(String,function(E){return E+"m"})),m("NullLiteral").bases("Literal").build().field("value",null,b.null),m("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),(v=m("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(v,P(x(RegExp,O),function(E){return"/".concat(E.pattern,"/").concat(E.flags||"")})).field("regex",{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var S=x(m("Property"),m("ObjectMethod"),m("ObjectProperty"),m("SpreadProperty"),m("SpreadElement"));m("ObjectExpression").bases("Expression").build("properties").field("properties",[S]),m("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",x("method","get","set")).field("key",x(m("Literal"),m("Identifier"),m("Expression"))).field("params",[m("Pattern")]).field("body",m("BlockStatement")).field("computed",Boolean,b.false).field("generator",Boolean,b.false).field("async",Boolean,b.false).field("accessibility",x(m("Literal"),null),b.null).field("decorators",x([m("Decorator")],null),b.null),m("ObjectProperty").bases("Node").build("key","value").field("key",x(m("Literal"),m("Identifier"),m("Expression"))).field("value",x(m("Expression"),m("Pattern"))).field("accessibility",x(m("Literal"),null),b.null).field("computed",Boolean,b.false);var w=x(m("MethodDefinition"),m("VariableDeclarator"),m("ClassPropertyDefinition"),m("ClassProperty"),m("ClassPrivateProperty"),m("ClassMethod"),m("ClassPrivateMethod"),m("ClassAccessorProperty"),m("StaticBlock"));m("ClassBody").bases("Declaration").build("body").field("body",[w]),m("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",x(m("Literal"),m("Identifier"),m("Expression"))),m("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",m("PrivateName")),m("ClassAccessorProperty").bases("Declaration").build("key","value","decorators","computed","static").field("key",x(m("Literal"),m("Identifier"),m("PrivateName"),m("Expression"))).field("value",x(m("Expression"),null),b.null),["ClassMethod","ClassPrivateMethod"].forEach(function(E){m(E).field("kind",x("get","set","method","constructor"),function(){return"method"}).field("body",m("BlockStatement")).field("access",x("public","private","protected",null),b.null)}),["ClassMethod","ClassPrivateMethod","ClassAccessorProperty"].forEach(function(E){m(E).field("computed",Boolean,b.false).field("static",Boolean,b.false).field("abstract",Boolean,b.false).field("accessibility",x("public","private","protected",null),b.null).field("decorators",x([m("Decorator")],null),b.null).field("definite",Boolean,b.false).field("optional",Boolean,b.false).field("override",Boolean,b.false).field("readonly",Boolean,b.false)});var C=x(m("Property"),m("PropertyPattern"),m("SpreadPropertyPattern"),m("SpreadProperty"),m("ObjectProperty"),m("RestProperty"),m("RestElement"));m("ObjectPattern").bases("Pattern").build("properties").field("properties",[C]).field("decorators",x([m("Decorator")],null),b.null),m("SpreadProperty").bases("Node").build("argument").field("argument",m("Expression")),m("RestProperty").bases("Node").build("argument").field("argument",m("Expression")),m("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",x(m("VariableDeclaration"),m("Expression"))).field("right",m("Expression")).field("body",m("Statement")),m("Import").bases("Expression").build()}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Ga,Ga.exports)),Ga.exports}Ya.exports;var zy;function S$(){return zy||(zy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importDefault(Vb()),s=i.__importDefault(Zb()),a=ft();function l(u){var h=u.use(n.default),c=h.Type.def;u.use(r.default),u.use(s.default),c("V8IntrinsicIdentifier").bases("Expression").build("name").field("name",String),c("TopicReference").bases("Expression").build()}e.default=l,(0,a.maybeSetModuleExports)(function(){return t})})(Ya,Ya.exports)),Ya.exports}var Ha={exports:{}};Ha.exports;var Xy;function w$(){return Xy||(Xy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(Vb()),r=i.__importDefault(jb()),s=i.__importDefault(At()),a=i.__importStar(ft());function l(u){u.use(n.default),u.use(r.default);var h=u.use(s.default),c=h.namedTypes,p=h.Type.def,v=h.Type.or,g=u.use(a.default).defaults,b=h.Type.from(function(P,S){return!!(c.StringLiteral&&c.StringLiteral.check(P,S)||c.Literal&&c.Literal.check(P,S)&&typeof P.value=="string")},"StringLiteral");p("TSType").bases("Node");var m=v(p("Identifier"),p("TSQualifiedName"));p("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",m),p("TSHasOptionalTypeParameterInstantiation").field("typeParameters",v(p("TSTypeParameterInstantiation"),null),g.null),p("TSHasOptionalTypeParameters").field("typeParameters",v(p("TSTypeParameterDeclaration"),null,void 0),g.null),p("TSHasOptionalTypeAnnotation").field("typeAnnotation",v(p("TSTypeAnnotation"),null),g.null),p("TSQualifiedName").bases("Node").build("left","right").field("left",m).field("right",m),p("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",p("Expression")).field("typeAnnotation",p("TSType")).field("extra",v({parenthesized:Boolean},null),g.null),p("TSTypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",p("Expression")).field("typeAnnotation",p("TSType")),p("TSSatisfiesExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",p("Expression")).field("typeAnnotation",p("TSType")),p("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",p("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSIntrinsicKeyword","TSThisType"].forEach(function(P){p(P).bases("TSType").build()}),p("TSArrayType").bases("TSType").build("elementType").field("elementType",p("TSType")),p("TSLiteralType").bases("TSType").build("literal").field("literal",v(p("NumericLiteral"),p("StringLiteral"),p("BooleanLiteral"),p("TemplateLiteral"),p("UnaryExpression"),p("BigIntLiteral"))),p("TemplateLiteral").field("expressions",v([p("Expression")],[p("TSType")])),["TSUnionType","TSIntersectionType"].forEach(function(P){p(P).bases("TSType").build("types").field("types",[p("TSType")])}),p("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",p("TSType")).field("extendsType",p("TSType")).field("trueType",p("TSType")).field("falseType",p("TSType")),p("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",p("TSTypeParameter")),p("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",p("TSType"));var x=[v(p("Identifier"),p("RestElement"),p("ArrayPattern"),p("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(function(P){p(P).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",x)}),p("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,g.false).field("async",Boolean,g.false).field("generator",Boolean,g.false).field("id",v(p("Identifier"),null),g.null).field("params",[p("Pattern")]).field("returnType",v(p("TSTypeAnnotation"),p("Noop"),null),g.null),p("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,g.false).field("generator",Boolean,g.false).field("params",[p("Pattern")]).field("abstract",Boolean,g.false).field("accessibility",v("public","private","protected",void 0),g.undefined).field("static",Boolean,g.false).field("computed",Boolean,g.false).field("optional",Boolean,g.false).field("key",v(p("Identifier"),p("StringLiteral"),p("NumericLiteral"),p("Expression"))).field("kind",v("get","set","method","constructor"),function(){return"method"}).field("access",v("public","private","protected",void 0),g.undefined).field("decorators",v([p("Decorator")],null),g.null).field("returnType",v(p("TSTypeAnnotation"),p("Noop"),null),g.null),p("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",v(Boolean,"+","-"),g.false).field("typeParameter",p("TSTypeParameter")).field("optional",v(Boolean,"+","-"),g.false).field("typeAnnotation",v(p("TSType"),null),g.null),p("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[v(p("TSType"),p("TSNamedTupleMember"))]),p("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",p("Identifier")).field("optional",Boolean,g.false).field("elementType",p("TSType")),p("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",p("TSType")),p("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",p("TSType")),p("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",p("TSType")).field("indexType",p("TSType")),p("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",p("TSType")),p("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",v(p("TSType"),p("TSTypeAnnotation"))),p("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[p("Identifier")]).field("readonly",Boolean,g.false),p("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",p("Expression")).field("computed",Boolean,g.false).field("readonly",Boolean,g.false).field("optional",Boolean,g.false).field("initializer",v(p("Expression"),null),g.null),p("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",p("Expression")).field("computed",Boolean,g.false).field("optional",Boolean,g.false).field("parameters",x),p("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",v(p("Identifier"),p("TSThisType"))).field("typeAnnotation",v(p("TSTypeAnnotation"),null),g.null).field("asserts",Boolean,g.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(function(P){p(P).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",x)}),p("TSEnumMember").bases("Node").build("id","initializer").field("id",v(p("Identifier"),b)).field("initializer",v(p("Expression"),null),g.null),p("TSTypeQuery").bases("TSType").build("exprName").field("exprName",v(m,p("TSImportType")));var O=v(p("TSCallSignatureDeclaration"),p("TSConstructSignatureDeclaration"),p("TSIndexSignature"),p("TSMethodSignature"),p("TSPropertySignature"));p("TSTypeLiteral").bases("TSType").build("members").field("members",[O]),p("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",v(p("Identifier"),String)).field("constraint",v(p("TSType"),void 0),g.undefined).field("default",v(p("TSType"),void 0),g.undefined),p("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",p("TSType")).field("expression",p("Expression")).field("extra",v({parenthesized:Boolean},null),g.null),p("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[p("TSTypeParameter")]),p("TSInstantiationExpression").bases("Expression","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",p("Expression")),p("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[p("TSType")]),p("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",p("Identifier")).field("const",Boolean,g.false).field("declare",Boolean,g.false).field("members",[p("TSEnumMember")]).field("initializer",v(p("Expression"),null),g.null),p("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",p("Identifier")).field("declare",Boolean,g.false).field("typeAnnotation",p("TSType")),p("TSModuleBlock").bases("Node").build("body").field("body",[p("Statement")]),p("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",v(b,m)).field("declare",Boolean,g.false).field("global",Boolean,g.false).field("body",v(p("TSModuleBlock"),p("TSModuleDeclaration"),null),g.null),p("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",b).field("qualifier",v(m,void 0),g.undefined),p("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",p("Identifier")).field("isExport",Boolean,g.false).field("moduleReference",v(m,p("TSExternalModuleReference"))),p("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",b),p("TSExportAssignment").bases("Statement").build("expression").field("expression",p("Expression")),p("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",p("Identifier")),p("TSInterfaceBody").bases("Node").build("body").field("body",[O]),p("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",m),p("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",m).field("declare",Boolean,g.false).field("extends",v([p("TSExpressionWithTypeArguments")],null),g.null).field("body",p("TSInterfaceBody")),p("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",v("public","private","protected",void 0),g.undefined).field("readonly",Boolean,g.false).field("parameter",v(p("Identifier"),p("AssignmentPattern"))),p("ClassProperty").field("access",v("public","private","protected",void 0),g.undefined),p("ClassAccessorProperty").bases("Declaration","TSHasOptionalTypeAnnotation"),p("ClassBody").field("body",[v(p("MethodDefinition"),p("VariableDeclarator"),p("ClassPropertyDefinition"),p("ClassProperty"),p("ClassPrivateProperty"),p("ClassAccessorProperty"),p("ClassMethod"),p("ClassPrivateMethod"),p("StaticBlock"),p("TSDeclareMethod"),O)])}e.default=l,(0,a.maybeSetModuleExports)(function(){return t})})(Ha,Ha.exports)),Ha.exports}var Dh={},jy;function P$(){return jy||(jy=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.namedTypes=void 0,t.namedTypes||(t.namedTypes={})})(Dh)),Dh}var Zy;function ir(){return Zy||(Zy=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.visit=t.use=t.Type=t.someField=t.PathVisitor=t.Path=t.NodePath=t.namedTypes=t.getSupertypeNames=t.getFieldValue=t.getFieldNames=t.getBuilderName=t.finalize=t.eachField=t.defineMethod=t.builtInTypes=t.builders=t.astNodesAreEquivalent=void 0;var e=et,i=e.__importDefault(u$()),n=e.__importDefault(tl()),r=e.__importDefault(x$()),s=e.__importDefault(Zb()),a=e.__importDefault(b$()),l=e.__importDefault(S$()),u=e.__importDefault(w$()),h=P$();Object.defineProperty(t,"namedTypes",{enumerable:!0,get:function(){return h.namedTypes}});var c=(0,i.default)([n.default,r.default,s.default,a.default,l.default,u.default]),p=c.astNodesAreEquivalent,v=c.builders,g=c.builtInTypes,b=c.defineMethod,m=c.eachField,x=c.finalize,O=c.getBuilderName,P=c.getFieldNames,S=c.getFieldValue,w=c.getSupertypeNames,C=c.namedTypes,E=c.NodePath,k=c.Path,A=c.PathVisitor,$=c.someField,F=c.Type,I=c.use,B=c.visit;t.astNodesAreEquivalent=p,t.builders=v,t.builtInTypes=g,t.defineMethod=b,t.eachField=m,t.finalize=x,t.getBuilderName=O,t.getFieldNames=P,t.getFieldValue=S,t.getSupertypeNames=w,t.NodePath=E,t.Path=k,t.PathVisitor=A,t.someField=$,t.Type=F,t.use=I,t.visit=B,Object.assign(h.namedTypes,C)})(Ah)),Ah}var oa={},_h,Vy;function hr(){if(Vy)return _h;Vy=1;var t="Invariant failed";function e(i,n){if(!i)throw new Error(t)}return _h=e,_h}var la={},pt={},ua={},Ih={},Rl={},zl={},Uy;function T$(){if(Uy)return zl;Uy=1;var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return zl.encode=function(e){if(0<=e&&e<t.length)return t[e];throw new TypeError("Must be between 0 and 63: "+e)},zl.decode=function(e){var i=65,n=90,r=97,s=122,a=48,l=57,u=43,h=47,c=26,p=52;return i<=e&&e<=n?e-i:r<=e&&e<=s?e-r+c:a<=e&&e<=l?e-a+p:e==u?62:e==h?63:-1},zl}var qy;function Ub(){if(qy)return Rl;qy=1;var t=T$(),e=5,i=1<<e,n=i-1,r=i;function s(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var u=(l&1)===1,h=l>>1;return u?-h:h}return Rl.encode=function(u){var h="",c,p=s(u);do c=p&n,p>>>=e,p>0&&(c|=r),h+=t.encode(c);while(p>0);return h},Rl.decode=function(u,h,c){var p=u.length,v=0,g=0,b,m;do{if(h>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(m=t.decode(u.charCodeAt(h++)),m===-1)throw new Error("Invalid base64 digit: "+u.charAt(h-1));b=!!(m&r),m&=n,v=v+(m<<g),g+=e}while(b);c.value=a(v),c.rest=h},Rl}var Nh={},Wy;function il(){return Wy||(Wy=1,(function(t){function e(w,C,E){if(C in w)return w[C];if(arguments.length===3)return E;throw new Error('"'+C+'" is a required argument.')}t.getArg=e;var i=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(w){var C=w.match(i);return C?{scheme:C[1],auth:C[2],host:C[3],port:C[4],path:C[5]}:null}t.urlParse=r;function s(w){var C="";return w.scheme&&(C+=w.scheme+":"),C+="//",w.auth&&(C+=w.auth+"@"),w.host&&(C+=w.host),w.port&&(C+=":"+w.port),w.path&&(C+=w.path),C}t.urlGenerate=s;function a(w){var C=w,E=r(w);if(E){if(!E.path)return w;C=E.path}for(var k=t.isAbsolute(C),A=C.split(/\/+/),$,F=0,I=A.length-1;I>=0;I--)$=A[I],$==="."?A.splice(I,1):$===".."?F++:F>0&&($===""?(A.splice(I+1,F),F=0):(A.splice(I,2),F--));return C=A.join("/"),C===""&&(C=k?"/":"."),E?(E.path=C,s(E)):C}t.normalize=a;function l(w,C){w===""&&(w="."),C===""&&(C=".");var E=r(C),k=r(w);if(k&&(w=k.path||"/"),E&&!E.scheme)return k&&(E.scheme=k.scheme),s(E);if(E||C.match(n))return C;if(k&&!k.host&&!k.path)return k.host=C,s(k);var A=C.charAt(0)==="/"?C:a(w.replace(/\/+$/,"")+"/"+C);return k?(k.path=A,s(k)):A}t.join=l,t.isAbsolute=function(w){return w.charAt(0)==="/"||i.test(w)};function u(w,C){w===""&&(w="."),w=w.replace(/\/$/,"");for(var E=0;C.indexOf(w+"/")!==0;){var k=w.lastIndexOf("/");if(k<0||(w=w.slice(0,k),w.match(/^([^\/]+:\/)?\/*$/)))return C;++E}return Array(E+1).join("../")+C.substr(w.length+1)}t.relative=u;var h=(function(){var w=Object.create(null);return!("__proto__"in w)})();function c(w){return w}function p(w){return g(w)?"$"+w:w}t.toSetString=h?c:p;function v(w){return g(w)?w.slice(1):w}t.fromSetString=h?c:v;function g(w){if(!w)return!1;var C=w.length;if(C<9||w.charCodeAt(C-1)!==95||w.charCodeAt(C-2)!==95||w.charCodeAt(C-3)!==111||w.charCodeAt(C-4)!==116||w.charCodeAt(C-5)!==111||w.charCodeAt(C-6)!==114||w.charCodeAt(C-7)!==112||w.charCodeAt(C-8)!==95||w.charCodeAt(C-9)!==95)return!1;for(var E=C-10;E>=0;E--)if(w.charCodeAt(E)!==36)return!1;return!0}function b(w,C,E){var k=x(w.source,C.source);return k!==0||(k=w.originalLine-C.originalLine,k!==0)||(k=w.originalColumn-C.originalColumn,k!==0||E)||(k=w.generatedColumn-C.generatedColumn,k!==0)||(k=w.generatedLine-C.generatedLine,k!==0)?k:x(w.name,C.name)}t.compareByOriginalPositions=b;function m(w,C,E){var k=w.generatedLine-C.generatedLine;return k!==0||(k=w.generatedColumn-C.generatedColumn,k!==0||E)||(k=x(w.source,C.source),k!==0)||(k=w.originalLine-C.originalLine,k!==0)||(k=w.originalColumn-C.originalColumn,k!==0)?k:x(w.name,C.name)}t.compareByGeneratedPositionsDeflated=m;function x(w,C){return w===C?0:w===null?1:C===null?-1:w>C?1:-1}function O(w,C){var E=w.generatedLine-C.generatedLine;return E!==0||(E=w.generatedColumn-C.generatedColumn,E!==0)||(E=x(w.source,C.source),E!==0)||(E=w.originalLine-C.originalLine,E!==0)||(E=w.originalColumn-C.originalColumn,E!==0)?E:x(w.name,C.name)}t.compareByGeneratedPositionsInflated=O;function P(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=P;function S(w,C,E){if(C=C||"",w&&(w[w.length-1]!=="/"&&C[0]!=="/"&&(w+="/"),C=w+C),E){var k=r(E);if(!k)throw new Error("sourceMapURL could not be parsed");if(k.path){var A=k.path.lastIndexOf("/");A>=0&&(k.path=k.path.substring(0,A+1))}C=l(s(k),C)}return a(C)}t.computeSourceURL=S})(Nh)),Nh}var Mh={},Yy;function qb(){if(Yy)return Mh;Yy=1;var t=il(),e=Object.prototype.hasOwnProperty,i=typeof Map<"u";function n(){this._array=[],this._set=i?new Map:Object.create(null)}return n.fromArray=function(s,a){for(var l=new n,u=0,h=s.length;u<h;u++)l.add(s[u],a);return l},n.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(s,a){var l=i?s:t.toSetString(s),u=i?this.has(s):e.call(this._set,l),h=this._array.length;(!u||a)&&this._array.push(s),u||(i?this._set.set(s,h):this._set[l]=h)},n.prototype.has=function(s){if(i)return this._set.has(s);var a=t.toSetString(s);return e.call(this._set,a)},n.prototype.indexOf=function(s){if(i){var a=this._set.get(s);if(a>=0)return a}else{var l=t.toSetString(s);if(e.call(this._set,l))return this._set[l]}throw new Error('"'+s+'" is not in the set.')},n.prototype.at=function(s){if(s>=0&&s<this._array.length)return this._array[s];throw new Error("No element indexed by "+s)},n.prototype.toArray=function(){return this._array.slice()},Mh.ArraySet=n,Mh}var $h={},Gy;function C$(){if(Gy)return $h;Gy=1;var t=il();function e(n,r){var s=n.generatedLine,a=r.generatedLine,l=n.generatedColumn,u=r.generatedColumn;return a>s||a==s&&u>=l||t.compareByGeneratedPositionsInflated(n,r)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return i.prototype.unsortedForEach=function(r,s){this._array.forEach(r,s)},i.prototype.add=function(r){e(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},$h.MappingList=i,$h}var Hy;function Wb(){if(Hy)return Ih;Hy=1;var t=Ub(),e=il(),i=qb().ArraySet,n=C$().MappingList;function r(s){s||(s={}),this._file=e.getArg(s,"file",null),this._sourceRoot=e.getArg(s,"sourceRoot",null),this._skipValidation=e.getArg(s,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new n,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var l=a.sourceRoot,u=new r({file:a.file,sourceRoot:l});return a.eachMapping(function(h){var c={generated:{line:h.generatedLine,column:h.generatedColumn}};h.source!=null&&(c.source=h.source,l!=null&&(c.source=e.relative(l,c.source)),c.original={line:h.originalLine,column:h.originalColumn},h.name!=null&&(c.name=h.name)),u.addMapping(c)}),a.sources.forEach(function(h){var c=h;l!==null&&(c=e.relative(l,h)),u._sources.has(c)||u._sources.add(c);var p=a.sourceContentFor(h);p!=null&&u.setSourceContent(h,p)}),u},r.prototype.addMapping=function(a){var l=e.getArg(a,"generated"),u=e.getArg(a,"original",null),h=e.getArg(a,"source",null),c=e.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,u,h,c),h!=null&&(h=String(h),this._sources.has(h)||this._sources.add(h)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:h,name:c})},r.prototype.setSourceContent=function(a,l){var u=a;this._sourceRoot!=null&&(u=e.relative(this._sourceRoot,u)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[e.toSetString(u)]=l):this._sourcesContents&&(delete this._sourcesContents[e.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(a,l,u){var h=l;if(l==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);h=a.file}var c=this._sourceRoot;c!=null&&(h=e.relative(c,h));var p=new i,v=new i;this._mappings.unsortedForEach(function(g){if(g.source===h&&g.originalLine!=null){var b=a.originalPositionFor({line:g.originalLine,column:g.originalColumn});b.source!=null&&(g.source=b.source,u!=null&&(g.source=e.join(u,g.source)),c!=null&&(g.source=e.relative(c,g.source)),g.originalLine=b.line,g.originalColumn=b.column,b.name!=null&&(g.name=b.name))}var m=g.source;m!=null&&!p.has(m)&&p.add(m);var x=g.name;x!=null&&!v.has(x)&&v.add(x)},this),this._sources=p,this._names=v,a.sources.forEach(function(g){var b=a.sourceContentFor(g);b!=null&&(u!=null&&(g=e.join(u,g)),c!=null&&(g=e.relative(c,g)),this.setSourceContent(g,b))},this)},r.prototype._validateMapping=function(a,l,u,h){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!l&&!u&&!h)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:u,original:l,name:h}))}},r.prototype._serializeMappings=function(){for(var a=0,l=1,u=0,h=0,c=0,p=0,v="",g,b,m,x,O=this._mappings.toArray(),P=0,S=O.length;P<S;P++){if(b=O[P],g="",b.generatedLine!==l)for(a=0;b.generatedLine!==l;)g+=";",l++;else if(P>0){if(!e.compareByGeneratedPositionsInflated(b,O[P-1]))continue;g+=","}g+=t.encode(b.generatedColumn-a),a=b.generatedColumn,b.source!=null&&(x=this._sources.indexOf(b.source),g+=t.encode(x-p),p=x,g+=t.encode(b.originalLine-1-h),h=b.originalLine-1,g+=t.encode(b.originalColumn-u),u=b.originalColumn,b.name!=null&&(m=this._names.indexOf(b.name),g+=t.encode(m-c),c=m)),v+=g}return v},r.prototype._generateSourcesContent=function(a,l){return a.map(function(u){if(!this._sourcesContents)return null;l!=null&&(u=e.relative(l,u));var h=e.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,h)?this._sourcesContents[h]:null},this)},r.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ih.SourceMapGenerator=r,Ih}var ca={},Lh={},Jy;function k$(){return Jy||(Jy=1,(function(t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2;function e(i,n,r,s,a,l){var u=Math.floor((n-i)/2)+i,h=a(r,s[u],!0);return h===0?u:h>0?n-u>1?e(u,n,r,s,a,l):l==t.LEAST_UPPER_BOUND?n<s.length?n:-1:u:u-i>1?e(i,u,r,s,a,l):l==t.LEAST_UPPER_BOUND?u:i<0?-1:i}t.search=function(n,r,s,a){if(r.length===0)return-1;var l=e(-1,r.length,n,r,s,a||t.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&s(r[l],r[l-1],!0)===0;)--l;return l}})(Lh)),Lh}var Bh={},Ky;function E$(){if(Ky)return Bh;Ky=1;function t(n,r,s){var a=n[r];n[r]=n[s],n[s]=a}function e(n,r){return Math.round(n+Math.random()*(r-n))}function i(n,r,s,a){if(s<a){var l=e(s,a),u=s-1;t(n,l,a);for(var h=n[a],c=s;c<a;c++)r(n[c],h)<=0&&(u+=1,t(n,u,c));t(n,u+1,c);var p=u+1;i(n,r,s,p-1),i(n,r,p+1,a)}}return Bh.quickSort=function(n,r){i(n,r,0,n.length-1)},Bh}var e0;function A$(){if(e0)return ca;e0=1;var t=il(),e=k$(),i=qb().ArraySet,n=Ub(),r=E$().quickSort;function s(h,c){var p=h;return typeof h=="string"&&(p=t.parseSourceMapInput(h)),p.sections!=null?new u(p,c):new a(p,c)}s.fromSourceMap=function(h,c){return a.fromSourceMap(h,c)},s.prototype._version=3,s.prototype.__generatedMappings=null,Object.defineProperty(s.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),s.prototype.__originalMappings=null,Object.defineProperty(s.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),s.prototype._charIsMappingSeparator=function(c,p){var v=c.charAt(p);return v===";"||v===","},s.prototype._parseMappings=function(c,p){throw new Error("Subclasses must implement _parseMappings")},s.GENERATED_ORDER=1,s.ORIGINAL_ORDER=2,s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2,s.prototype.eachMapping=function(c,p,v){var g=p||null,b=v||s.GENERATED_ORDER,m;switch(b){case s.GENERATED_ORDER:m=this._generatedMappings;break;case s.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;m.map(function(O){var P=O.source===null?null:this._sources.at(O.source);return P=t.computeSourceURL(x,P,this._sourceMapURL),{source:P,generatedLine:O.generatedLine,generatedColumn:O.generatedColumn,originalLine:O.originalLine,originalColumn:O.originalColumn,name:O.name===null?null:this._names.at(O.name)}},this).forEach(c,g)},s.prototype.allGeneratedPositionsFor=function(c){var p=t.getArg(c,"line"),v={source:t.getArg(c,"source"),originalLine:p,originalColumn:t.getArg(c,"column",0)};if(v.source=this._findSourceIndex(v.source),v.source<0)return[];var g=[],b=this._findMapping(v,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,e.LEAST_UPPER_BOUND);if(b>=0){var m=this._originalMappings[b];if(c.column===void 0)for(var x=m.originalLine;m&&m.originalLine===x;)g.push({line:t.getArg(m,"generatedLine",null),column:t.getArg(m,"generatedColumn",null),lastColumn:t.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++b];else for(var O=m.originalColumn;m&&m.originalLine===p&&m.originalColumn==O;)g.push({line:t.getArg(m,"generatedLine",null),column:t.getArg(m,"generatedColumn",null),lastColumn:t.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++b]}return g},ca.SourceMapConsumer=s;function a(h,c){var p=h;typeof h=="string"&&(p=t.parseSourceMapInput(h));var v=t.getArg(p,"version"),g=t.getArg(p,"sources"),b=t.getArg(p,"names",[]),m=t.getArg(p,"sourceRoot",null),x=t.getArg(p,"sourcesContent",null),O=t.getArg(p,"mappings"),P=t.getArg(p,"file",null);if(v!=this._version)throw new Error("Unsupported version: "+v);m&&(m=t.normalize(m)),g=g.map(String).map(t.normalize).map(function(S){return m&&t.isAbsolute(m)&&t.isAbsolute(S)?t.relative(m,S):S}),this._names=i.fromArray(b.map(String),!0),this._sources=i.fromArray(g,!0),this._absoluteSources=this._sources.toArray().map(function(S){return t.computeSourceURL(m,S,c)}),this.sourceRoot=m,this.sourcesContent=x,this._mappings=O,this._sourceMapURL=c,this.file=P}a.prototype=Object.create(s.prototype),a.prototype.consumer=s,a.prototype._findSourceIndex=function(h){var c=h;if(this.sourceRoot!=null&&(c=t.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var p;for(p=0;p<this._absoluteSources.length;++p)if(this._absoluteSources[p]==h)return p;return-1},a.fromSourceMap=function(c,p){var v=Object.create(a.prototype),g=v._names=i.fromArray(c._names.toArray(),!0),b=v._sources=i.fromArray(c._sources.toArray(),!0);v.sourceRoot=c._sourceRoot,v.sourcesContent=c._generateSourcesContent(v._sources.toArray(),v.sourceRoot),v.file=c._file,v._sourceMapURL=p,v._absoluteSources=v._sources.toArray().map(function(E){return t.computeSourceURL(v.sourceRoot,E,p)});for(var m=c._mappings.toArray().slice(),x=v.__generatedMappings=[],O=v.__originalMappings=[],P=0,S=m.length;P<S;P++){var w=m[P],C=new l;C.generatedLine=w.generatedLine,C.generatedColumn=w.generatedColumn,w.source&&(C.source=b.indexOf(w.source),C.originalLine=w.originalLine,C.originalColumn=w.originalColumn,w.name&&(C.name=g.indexOf(w.name)),O.push(C)),x.push(C)}return r(v.__originalMappings,t.compareByOriginalPositions),v},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(c,p){for(var v=1,g=0,b=0,m=0,x=0,O=0,P=c.length,S=0,w={},C={},E=[],k=[],A,$,F,I,B;S<P;)if(c.charAt(S)===";")v++,S++,g=0;else if(c.charAt(S)===",")S++;else{for(A=new l,A.generatedLine=v,I=S;I<P&&!this._charIsMappingSeparator(c,I);I++);if($=c.slice(S,I),F=w[$],F)S+=$.length;else{for(F=[];S<I;)n.decode(c,S,C),B=C.value,S=C.rest,F.push(B);if(F.length===2)throw new Error("Found a source, but no line and column");if(F.length===3)throw new Error("Found a source and line, but no column");w[$]=F}A.generatedColumn=g+F[0],g=A.generatedColumn,F.length>1&&(A.source=x+F[1],x+=F[1],A.originalLine=b+F[2],b=A.originalLine,A.originalLine+=1,A.originalColumn=m+F[3],m=A.originalColumn,F.length>4&&(A.name=O+F[4],O+=F[4])),k.push(A),typeof A.originalLine=="number"&&E.push(A)}r(k,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=k,r(E,t.compareByOriginalPositions),this.__originalMappings=E},a.prototype._findMapping=function(c,p,v,g,b,m){if(c[v]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[v]);if(c[g]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[g]);return e.search(c,p,b,m)},a.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var p=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var v=this._generatedMappings[c+1];if(p.generatedLine===v.generatedLine){p.lastGeneratedColumn=v.generatedColumn-1;continue}}p.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(c){var p={generatedLine:t.getArg(c,"line"),generatedColumn:t.getArg(c,"column")},v=this._findMapping(p,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(c,"bias",s.GREATEST_LOWER_BOUND));if(v>=0){var g=this._generatedMappings[v];if(g.generatedLine===p.generatedLine){var b=t.getArg(g,"source",null);b!==null&&(b=this._sources.at(b),b=t.computeSourceURL(this.sourceRoot,b,this._sourceMapURL));var m=t.getArg(g,"name",null);return m!==null&&(m=this._names.at(m)),{source:b,line:t.getArg(g,"originalLine",null),column:t.getArg(g,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},a.prototype.sourceContentFor=function(c,p){if(!this.sourcesContent)return null;var v=this._findSourceIndex(c);if(v>=0)return this.sourcesContent[v];var g=c;this.sourceRoot!=null&&(g=t.relative(this.sourceRoot,g));var b;if(this.sourceRoot!=null&&(b=t.urlParse(this.sourceRoot))){var m=g.replace(/^file:\/\//,"");if(b.scheme=="file"&&this._sources.has(m))return this.sourcesContent[this._sources.indexOf(m)];if((!b.path||b.path=="/")&&this._sources.has("/"+g))return this.sourcesContent[this._sources.indexOf("/"+g)]}if(p)return null;throw new Error('"'+g+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(c){var p=t.getArg(c,"source");if(p=this._findSourceIndex(p),p<0)return{line:null,column:null,lastColumn:null};var v={source:p,originalLine:t.getArg(c,"line"),originalColumn:t.getArg(c,"column")},g=this._findMapping(v,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(c,"bias",s.GREATEST_LOWER_BOUND));if(g>=0){var b=this._originalMappings[g];if(b.source===v.source)return{line:t.getArg(b,"generatedLine",null),column:t.getArg(b,"generatedColumn",null),lastColumn:t.getArg(b,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},ca.BasicSourceMapConsumer=a;function u(h,c){var p=h;typeof h=="string"&&(p=t.parseSourceMapInput(h));var v=t.getArg(p,"version"),g=t.getArg(p,"sections");if(v!=this._version)throw new Error("Unsupported version: "+v);this._sources=new i,this._names=new i;var b={line:-1,column:0};this._sections=g.map(function(m){if(m.url)throw new Error("Support for url field in sections not implemented.");var x=t.getArg(m,"offset"),O=t.getArg(x,"line"),P=t.getArg(x,"column");if(O<b.line||O===b.line&&P<b.column)throw new Error("Section offsets must be ordered and non-overlapping.");return b=x,{generatedOffset:{generatedLine:O+1,generatedColumn:P+1},consumer:new s(t.getArg(m,"map"),c)}})}return u.prototype=Object.create(s.prototype),u.prototype.constructor=s,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var h=[],c=0;c<this._sections.length;c++)for(var p=0;p<this._sections[c].consumer.sources.length;p++)h.push(this._sections[c].consumer.sources[p]);return h}}),u.prototype.originalPositionFor=function(c){var p={generatedLine:t.getArg(c,"line"),generatedColumn:t.getArg(c,"column")},v=e.search(p,this._sections,function(b,m){var x=b.generatedLine-m.generatedOffset.generatedLine;return x||b.generatedColumn-m.generatedOffset.generatedColumn}),g=this._sections[v];return g?g.consumer.originalPositionFor({line:p.generatedLine-(g.generatedOffset.generatedLine-1),column:p.generatedColumn-(g.generatedOffset.generatedLine===p.generatedLine?g.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(c,p){for(var v=0;v<this._sections.length;v++){var g=this._sections[v],b=g.consumer.sourceContentFor(c,!0);if(b)return b}if(p)return null;throw new Error('"'+c+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(c){for(var p=0;p<this._sections.length;p++){var v=this._sections[p];if(v.consumer._findSourceIndex(t.getArg(c,"source"))!==-1){var g=v.consumer.generatedPositionFor(c);if(g){var b={line:g.line+(v.generatedOffset.generatedLine-1),column:g.column+(v.generatedOffset.generatedLine===g.line?v.generatedOffset.generatedColumn-1:0)};return b}}}return{line:null,column:null}},u.prototype._parseMappings=function(c,p){this.__generatedMappings=[],this.__originalMappings=[];for(var v=0;v<this._sections.length;v++)for(var g=this._sections[v],b=g.consumer._generatedMappings,m=0;m<b.length;m++){var x=b[m],O=g.consumer._sources.at(x.source);O=t.computeSourceURL(g.consumer.sourceRoot,O,this._sourceMapURL),this._sources.add(O),O=this._sources.indexOf(O);var P=null;x.name&&(P=g.consumer._names.at(x.name),this._names.add(P),P=this._names.indexOf(P));var S={source:O,generatedLine:x.generatedLine+(g.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(g.generatedOffset.generatedLine===x.generatedLine?g.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:P};this.__generatedMappings.push(S),typeof S.originalLine=="number"&&this.__originalMappings.push(S)}r(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),r(this.__originalMappings,t.compareByOriginalPositions)},ca.IndexedSourceMapConsumer=u,ca}var Qh={},t0;function D$(){if(t0)return Qh;t0=1;var t=Wb().SourceMapGenerator,e=il(),i=/(\r?\n)/,n=10,r="$$$isSourceNode$$$";function s(a,l,u,h,c){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=u??null,this.name=c??null,this[r]=!0,h!=null&&this.add(h)}return s.fromStringWithSourceMap=function(l,u,h){var c=new s,p=l.split(i),v=0,g=function(){var P=w(),S=w()||"";return P+S;function w(){return v<p.length?p[v++]:void 0}},b=1,m=0,x=null;return u.eachMapping(function(P){if(x!==null)if(b<P.generatedLine)O(x,g()),b++,m=0;else{var S=p[v]||"",w=S.substr(0,P.generatedColumn-m);p[v]=S.substr(P.generatedColumn-m),m=P.generatedColumn,O(x,w),x=P;return}for(;b<P.generatedLine;)c.add(g()),b++;if(m<P.generatedColumn){var S=p[v]||"";c.add(S.substr(0,P.generatedColumn)),p[v]=S.substr(P.generatedColumn),m=P.generatedColumn}x=P},this),v<p.length&&(x&&O(x,g()),c.add(p.splice(v).join(""))),u.sources.forEach(function(P){var S=u.sourceContentFor(P);S!=null&&(h!=null&&(P=e.join(h,P)),c.setSourceContent(P,S))}),c;function O(P,S){if(P===null||P.source===void 0)c.add(S);else{var w=h?e.join(h,P.source):P.source;c.add(new s(P.originalLine,P.originalColumn,w,S,P.name))}}},s.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(u){this.add(u)},this);else if(l[r]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},s.prototype.prepend=function(l){if(Array.isArray(l))for(var u=l.length-1;u>=0;u--)this.prepend(l[u]);else if(l[r]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},s.prototype.walk=function(l){for(var u,h=0,c=this.children.length;h<c;h++)u=this.children[h],u[r]?u.walk(l):u!==""&&l(u,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(l){var u,h,c=this.children.length;if(c>0){for(u=[],h=0;h<c-1;h++)u.push(this.children[h]),u.push(l);u.push(this.children[h]),this.children=u}return this},s.prototype.replaceRight=function(l,u){var h=this.children[this.children.length-1];return h[r]?h.replaceRight(l,u):typeof h=="string"?this.children[this.children.length-1]=h.replace(l,u):this.children.push("".replace(l,u)),this},s.prototype.setSourceContent=function(l,u){this.sourceContents[e.toSetString(l)]=u},s.prototype.walkSourceContents=function(l){for(var u=0,h=this.children.length;u<h;u++)this.children[u][r]&&this.children[u].walkSourceContents(l);for(var c=Object.keys(this.sourceContents),u=0,h=c.length;u<h;u++)l(e.fromSetString(c[u]),this.sourceContents[c[u]])},s.prototype.toString=function(){var l="";return this.walk(function(u){l+=u}),l},s.prototype.toStringWithSourceMap=function(l){var u={code:"",line:1,column:0},h=new t(l),c=!1,p=null,v=null,g=null,b=null;return this.walk(function(m,x){u.code+=m,x.source!==null&&x.line!==null&&x.column!==null?((p!==x.source||v!==x.line||g!==x.column||b!==x.name)&&h.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:u.line,column:u.column},name:x.name}),p=x.source,v=x.line,g=x.column,b=x.name,c=!0):c&&(h.addMapping({generated:{line:u.line,column:u.column}}),p=null,c=!1);for(var O=0,P=m.length;O<P;O++)m.charCodeAt(O)===n?(u.line++,u.column=0,O+1===P?(p=null,c=!1):c&&h.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:u.line,column:u.column},name:x.name})):u.column++}),this.walkSourceContents(function(m,x){h.setSourceContent(m,x)}),{code:u.code,map:h}},Qh.SourceNode=s,Qh}var i0;function Yb(){return i0||(i0=1,ua.SourceMapGenerator=Wb().SourceMapGenerator,ua.SourceMapConsumer=A$().SourceMapConsumer,ua.SourceNode=D$().SourceNode),ua}var n0;function $n(){if(n0)return pt;n0=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.isTrailingCommaEnabled=pt.getParentExportDeclaration=pt.isExportDeclaration=pt.fixFaultyLocations=pt.getTrueLoc=pt.composeSourceMaps=pt.copyPos=pt.comparePos=pt.getUnionOfKeys=pt.getOption=pt.isBrowser=pt.getLineTerminator=void 0;var t=et,e=t.__importDefault(hr()),i=t.__importStar(ir()),n=i.namedTypes,r=t.__importDefault(Yb()),s=r.default.SourceMapConsumer,a=r.default.SourceMapGenerator,l=Object.prototype.hasOwnProperty;function u(){return h()?`
|
|
46
|
+
}`,mappings:t.canvasMeta?.mappings,probeConfig:t.canvasMeta?.probeConfig,returnSchema:t.canvasMeta?.returnSchema}}function fy(t,e){const i={},n=[];for(const l of t.parameters)if(l.members&&l.members.length>0)for(const u of l.members){const h={type:dy(u.type)};u.description&&(h.description=u.description),u.enumValues&&(h.enum=u.enumValues),i[u.name]=h,n.push(u.name)}else{const u={type:dy(l.type)};l.description&&(u.description=l.description),l.enumValues&&(u.enum=l.enumValues),i[l.name]=u,n.push(l.name)}const r={type:"function",function:{name:t.name,description:t.description,parameters:{type:"object",properties:i,required:n}}},s={...e.implementation,code:t.body},a={...e.canvasMeta,mappings:t.mappings,probeConfig:t.probeConfig,returnSchema:t.returnSchema};return{definition:r,implementation:s,canvasMeta:a}}function KM(t){if(!t)return"any";switch(t){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"array":return"any[]";case"object":return"object";default:return"any"}}function dy(t){const e=t.toLowerCase();return e==="number"||e==="integer"?"number":e==="boolean"?"boolean":e.endsWith("[]")?"array":e==="object"?"object":"string"}var Eh={},Vf=function(t,e){return Vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r])},Vf(t,e)};function cb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Vf(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}var Hu=function(){return Hu=Object.assign||function(e){for(var i,n=1,r=arguments.length;n<r;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Hu.apply(this,arguments)};function hb(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i}function fb(t,e,i,n){var r=arguments.length,s=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,i,n);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(r<3?a(s):r>3?a(e,i,s):a(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}function db(t,e){return function(i,n){e(i,n,t)}}function pb(t,e,i,n,r,s){function a(O){if(O!==void 0&&typeof O!="function")throw new TypeError("Function expected");return O}for(var l=n.kind,u=l==="getter"?"get":l==="setter"?"set":"value",h=!e&&t?n.static?t:t.prototype:null,c=e||(h?Object.getOwnPropertyDescriptor(h,n.name):{}),p,v=!1,g=i.length-1;g>=0;g--){var b={};for(var m in n)b[m]=m==="access"?{}:n[m];for(var m in n.access)b.access[m]=n.access[m];b.addInitializer=function(O){if(v)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(O||null))};var x=(0,i[g])(l==="accessor"?{get:c.get,set:c.set}:c[u],b);if(l==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(p=a(x.get))&&(c.get=p),(p=a(x.set))&&(c.set=p),(p=a(x.init))&&r.unshift(p)}else(p=a(x))&&(l==="field"?r.unshift(p):c[u]=p)}h&&Object.defineProperty(h,n.name,c),v=!0}function mb(t,e,i){for(var n=arguments.length>2,r=0;r<e.length;r++)i=n?e[r].call(t,i):e[r].call(t);return n?i:void 0}function gb(t){return typeof t=="symbol"?t:"".concat(t)}function yb(t,e,i){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:i?"".concat(i," ",e):e})}function vb(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Ob(t,e,i,n){function r(s){return s instanceof i?s:new i(function(a){a(s)})}return new(i||(i=Promise))(function(s,a){function l(c){try{h(n.next(c))}catch(p){a(p)}}function u(c){try{h(n.throw(c))}catch(p){a(p)}}function h(c){c.done?s(c.value):r(c.value).then(l,u)}h((n=n.apply(t,e||[])).next())})}function xb(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(h){return function(c){return u([h,c])}}function u(h){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,h[0]&&(i=0)),i;)try{if(n=1,r&&(s=h[0]&2?r.return:h[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,h[1])).done)return s;switch(r=0,s&&(h=[h[0]&2,s.value]),h[0]){case 0:case 1:s=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,r=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]<s[3])){i.label=h[1];break}if(h[0]===6&&i.label<s[1]){i.label=s[1],s=h;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(h);break}s[2]&&i.ops.pop(),i.trys.pop();continue}h=e.call(t,i)}catch(c){h=[6,c],r=0}finally{n=s=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}var Rc=Object.create?(function(t,e,i,n){n===void 0&&(n=i);var r=Object.getOwnPropertyDescriptor(e,i);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,r)}):(function(t,e,i,n){n===void 0&&(n=i),t[n]=e[i]});function bb(t,e){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i)&&Rc(e,t,i)}function Ju(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function pp(t,e){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var n=i.call(t),r,s=[],a;try{for(;(e===void 0||e-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(l){a={error:l}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(a)throw a.error}}return s}function Sb(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(pp(arguments[e]));return t}function wb(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),r=0,e=0;e<i;e++)for(var s=arguments[e],a=0,l=s.length;a<l;a++,r++)n[r]=s[a];return n}function Pb(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}function _s(t){return this instanceof _s?(this.v=t,this):new _s(t)}function Tb(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),r,s=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(g){return function(b){return Promise.resolve(b).then(g,p)}}function l(g,b){n[g]&&(r[g]=function(m){return new Promise(function(x,O){s.push([g,m,x,O])>1||u(g,m)})},b&&(r[g]=b(r[g])))}function u(g,b){try{h(n[g](b))}catch(m){v(s[0][3],m)}}function h(g){g.value instanceof _s?Promise.resolve(g.value.v).then(c,p):v(s[0][2],g)}function c(g){u("next",g)}function p(g){u("throw",g)}function v(g,b){g(b),s.shift(),s.length&&u(s[0][0],s[0][1])}}function Cb(t){var e,i;return e={},n("next"),n("throw",function(r){throw r}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(r,s){e[r]=t[r]?function(a){return(i=!i)?{value:_s(t[r](a)),done:!1}:s?s(a):a}:s}}function kb(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Ju=="function"?Ju(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(s){i[s]=t[s]&&function(a){return new Promise(function(l,u){a=t[s](a),r(l,u,a.done,a.value)})}}function r(s,a,l,u){Promise.resolve(u).then(function(h){s({value:h,done:l})},a)}}function Eb(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var e$=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e},Uf=function(t){return Uf=Object.getOwnPropertyNames||function(e){var i=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[i.length]=n);return i},Uf(t)};function Ab(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var i=Uf(t),n=0;n<i.length;n++)i[n]!=="default"&&Rc(e,t,i[n]);return e$(e,t),e}function Db(t){return t&&t.__esModule?t:{default:t}}function _b(t,e,i,n){if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?n:i==="a"?n.call(t):n?n.value:e.get(t)}function Ib(t,e,i,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(t,i):r?r.value=i:e.set(t,i),i}function Nb(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function Mb(t,e,i){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],i&&(r=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");r&&(n=function(){try{r.call(this)}catch(s){return Promise.reject(s)}}),t.stack.push({value:e,dispose:n,async:i})}else i&&t.stack.push({async:!0});return e}var t$=typeof SuppressedError=="function"?SuppressedError:function(t,e,i){var n=new Error(i);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function $b(t){function e(s){t.error=t.hasError?new t$(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}var i,n=0;function r(){for(;i=t.stack.pop();)try{if(!i.async&&n===1)return n=0,t.stack.push(i),Promise.resolve().then(r);if(i.dispose){var s=i.dispose.call(i.value);if(i.async)return n|=2,Promise.resolve(s).then(r,function(a){return e(a),r()})}else n|=1}catch(a){e(a)}if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return r()}function Lb(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(i,n,r,s,a){return n?e?".jsx":".js":r&&(!s||!a)?i:r+s+"."+a.toLowerCase()+"js"}):t}const i$={__extends:cb,__assign:Hu,__rest:hb,__decorate:fb,__param:db,__esDecorate:pb,__runInitializers:mb,__propKey:gb,__setFunctionName:yb,__metadata:vb,__awaiter:Ob,__generator:xb,__createBinding:Rc,__exportStar:bb,__values:Ju,__read:pp,__spread:Sb,__spreadArrays:wb,__spreadArray:Pb,__await:_s,__asyncGenerator:Tb,__asyncDelegator:Cb,__asyncValues:kb,__makeTemplateObject:Eb,__importStar:Ab,__importDefault:Db,__classPrivateFieldGet:_b,__classPrivateFieldSet:Ib,__classPrivateFieldIn:Nb,__addDisposableResource:Mb,__disposeResources:$b,__rewriteRelativeImportExtension:Lb},n$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Mb,get __assign(){return Hu},__asyncDelegator:Cb,__asyncGenerator:Tb,__asyncValues:kb,__await:_s,__awaiter:Ob,__classPrivateFieldGet:_b,__classPrivateFieldIn:Nb,__classPrivateFieldSet:Ib,__createBinding:Rc,__decorate:fb,__disposeResources:$b,__esDecorate:pb,__exportStar:bb,__extends:cb,__generator:xb,__importDefault:Db,__importStar:Ab,__makeTemplateObject:Eb,__metadata:vb,__param:db,__propKey:gb,__read:pp,__rest:hb,__rewriteRelativeImportExtension:Lb,__runInitializers:mb,__setFunctionName:yb,__spread:Sb,__spreadArray:Pb,__spreadArrays:wb,__values:Ju,default:i$},Symbol.toStringTag,{value:"Module"})),et=kO(n$),r$={},s$=Object.freeze(Object.defineProperty({__proto__:null,default:r$},Symbol.toStringTag,{value:"Module"})),Bb=kO(s$);var Ah={},Pa={exports:{}},Ta={exports:{}},is={},py;function ft(){if(py)return is;py=1,Object.defineProperty(is,"__esModule",{value:!0}),is.maybeSetModuleExports=void 0;var t=et,e=t.__importDefault(At());function i(r){var s=r.use(e.default),a=s.Type,l=s.builtInTypes,u=l.number;function h(g){return a.from(function(b){return u.check(b)&&b>=g},u+" >= "+g)}var c={null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},p=a.or(l.string,l.number,l.boolean,l.null,l.undefined),v=a.from(function(g){if(g===null)return!0;var b=typeof g;return!(b==="object"||b==="function")},p.toString());return{geq:h,defaults:c,isPrimitive:v}}is.default=i;function n(r){try{var s=r(),a=s.exports,l=a.default}catch{return}l&&l!==a&&typeof a=="object"&&(Object.assign(l,a,{default:l}),a.__esModule&&Object.defineProperty(l,"__esModule",{value:!0}),s.exports=l)}return is.maybeSetModuleExports=n,is}Ta.exports;var my;function At(){return my||(my=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Def=void 0;var i=et,n=ft(),r=Object.prototype,s=r.toString,a=r.hasOwnProperty,l=(function(){function O(){}return O.prototype.assert=function(P,S){if(!this.check(P,S)){var w=m(P);throw new Error(w+" does not match type "+this)}return!0},O.prototype.arrayOf=function(){var P=this;return new u(P)},O})(),u=(function(O){i.__extends(P,O);function P(S){var w=O.call(this)||this;return w.elemType=S,w.kind="ArrayType",w}return P.prototype.toString=function(){return"["+this.elemType+"]"},P.prototype.check=function(S,w){var C=this;return Array.isArray(S)&&S.every(function(E){return C.elemType.check(E,w)})},P})(l),h=(function(O){i.__extends(P,O);function P(S){var w=O.call(this)||this;return w.value=S,w.kind="IdentityType",w}return P.prototype.toString=function(){return String(this.value)},P.prototype.check=function(S,w){var C=S===this.value;return!C&&typeof w=="function"&&w(this,S),C},P})(l),c=(function(O){i.__extends(P,O);function P(S){var w=O.call(this)||this;return w.fields=S,w.kind="ObjectType",w}return P.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"},P.prototype.check=function(S,w){return s.call(S)===s.call({})&&this.fields.every(function(C){return C.type.check(S[C.name],w)})},P})(l),p=(function(O){i.__extends(P,O);function P(S){var w=O.call(this)||this;return w.types=S,w.kind="OrType",w}return P.prototype.toString=function(){return this.types.join(" | ")},P.prototype.check=function(S,w){return this.types.some(function(C){return C.check(S,!!w)})?!0:(typeof w=="function"&&w(this,S),!1)},P})(l),v=(function(O){i.__extends(P,O);function P(S,w){var C=O.call(this)||this;return C.name=S,C.predicate=w,C.kind="PredicateType",C}return P.prototype.toString=function(){return this.name},P.prototype.check=function(S,w){var C=this.predicate(S,w);return!C&&typeof w=="function"&&w(this,S),C},P})(l),g=(function(){function O(P,S){this.type=P,this.typeName=S,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return O.prototype.isSupertypeOf=function(P){if(P instanceof O){if(this.finalized!==!0||P.finalized!==!0)throw new Error("");return a.call(P.allSupertypes,this.typeName)}else throw new Error(P+" is not a Def")},O.prototype.checkAllFields=function(P,S){var w=this.allFields;if(this.finalized!==!0)throw new Error(""+this.typeName);function C(E){var k=w[E],A=k.type,$=k.getValue(P);return A.check($,S)}return P!==null&&typeof P=="object"&&Object.keys(w).every(C)},O.prototype.bases=function(){for(var P=[],S=0;S<arguments.length;S++)P[S]=arguments[S];var w=this.baseNames;if(this.finalized){if(P.length!==w.length)throw new Error("");for(var C=0;C<P.length;C++)if(P[C]!==w[C])throw new Error("");return this}return P.forEach(function(E){w.indexOf(E)<0&&w.push(E)}),this},O})();e.Def=g;var b=(function(){function O(P,S,w,C){this.name=P,this.type=S,this.defaultFn=w,this.hidden=!!C}return O.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},O.prototype.getValue=function(P){var S=P[this.name];return typeof S<"u"||typeof this.defaultFn=="function"&&(S=this.defaultFn.call(P)),S},O})();function m(O){return Array.isArray(O)?"["+O.map(m).join(", ")+"]":O&&typeof O=="object"?"{ "+Object.keys(O).map(function(P){return P+": "+O[P]}).join(", ")+" }":JSON.stringify(O)}function x(O){var P={or:function(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];return new p(G.map(function(le){return P.from(le)}))},from:function(G,J){if(G instanceof u||G instanceof h||G instanceof c||G instanceof p||G instanceof v)return G;if(G instanceof g)return G.type;if(A.check(G)){if(G.length!==1)throw new Error("only one element type is permitted for typed arrays");return new u(P.from(G[0]))}if($.check(G))return new c(Object.keys(G).map(function(ve){return new b(ve,P.from(G[ve],ve))}));if(typeof G=="function"){var le=S.indexOf(G);if(le>=0)return w[le];if(typeof J!="string")throw new Error("missing name");return new v(J,G)}return new h(G)},def:function(G){return a.call(V,G)?V[G]:V[G]=new ae(G)},hasDef:function(G){return a.call(V,G)}},S=[],w=[];function C(G,J){var le=s.call(J),ve=new v(G,function(we){return s.call(we)===le});return J&&typeof J.constructor=="function"&&(S.push(J.constructor),w.push(ve)),ve}var E=C("string","truthy"),k=C("function",function(){}),A=C("array",[]),$=C("object",{}),F=C("RegExp",/./),I=C("Date",new Date),B=C("number",3),j=C("boolean",!0),M=C("null",null),q=C("undefined",void 0),X=typeof BigInt=="function"?C("BigInt",BigInt(1234)):new v("BigInt",function(){return!1}),Y={string:E,function:k,array:A,object:$,RegExp:F,Date:I,number:B,boolean:j,null:M,undefined:q,BigInt:X},V=Object.create(null);function oe(G){if(G&&typeof G=="object"){var J=G.type;if(typeof J=="string"&&a.call(V,J)){var le=V[J];if(le.finalized)return le}}return null}var ae=(function(G){i.__extends(J,G);function J(le){var ve=G.call(this,new v(le,function(we,K){return ve.check(we,K)}),le)||this;return ve}return J.prototype.check=function(le,ve){if(this.finalized!==!0)throw new Error("prematurely checking unfinalized type "+this.typeName);if(le===null||typeof le!="object")return!1;var we=oe(le);return we?ve&&we===this?this.checkAllFields(le,ve):this.isSupertypeOf(we)?ve?we.checkAllFields(le,ve)&&this.checkAllFields(le,!1):!0:!1:this.typeName==="SourceLocation"||this.typeName==="Position"?this.checkAllFields(le,ve):!1},J.prototype.build=function(){for(var le=this,ve=[],we=0;we<arguments.length;we++)ve[we]=arguments[we];if(this.buildParams=ve,this.buildable)return this;this.field("type",String,function(){return le.typeName}),this.buildable=!0;var K=function(me,Pe,Ve,He){if(!a.call(me,Pe)){var Tt=le.allFields;if(!a.call(Tt,Pe))throw new Error(""+Pe);var Je=Tt[Pe],ei=Je.type,qt;if(He)qt=Ve;else if(Je.defaultFn)qt=Je.defaultFn.call(me);else{var Bn="no value or default function given for field "+JSON.stringify(Pe)+" of "+le.typeName+"("+le.buildParams.map(function(gn){return Tt[gn]}).join(", ")+")";throw new Error(Bn)}if(!ei.check(qt))throw new Error(m(qt)+" does not match field "+Je+" of type "+le.typeName);me[Pe]=qt}},ue=function(){for(var me=[],Pe=0;Pe<arguments.length;Pe++)me[Pe]=arguments[Pe];var Ve=me.length;if(!le.finalized)throw new Error("attempting to instantiate unfinalized type "+le.typeName);var He=Object.create(L);if(le.buildParams.forEach(function(Tt,Je){Je<Ve?K(He,Tt,me[Je],!0):K(He,Tt,null,!1)}),Object.keys(le.allFields).forEach(function(Tt){K(He,Tt,null,!1)}),He.type!==le.typeName)throw new Error("");return He};return ue.from=function(me){if(!le.finalized)throw new Error("attempting to instantiate unfinalized type "+le.typeName);var Pe=Object.create(L);if(Object.keys(le.allFields).forEach(function(Ve){a.call(me,Ve)?K(Pe,Ve,me[Ve],!0):K(Pe,Ve,null,!1)}),Pe.type!==le.typeName)throw new Error("");return Pe},Object.defineProperty(Z,de(this.typeName),{enumerable:!0,value:ue}),this},J.prototype.field=function(le,ve,we,K){return this.finalized?(console.error("Ignoring attempt to redefine field "+JSON.stringify(le)+" of finalized type "+JSON.stringify(this.typeName)),this):(this.ownFields[le]=new b(le,P.from(ve),we,K),this)},J.prototype.finalize=function(){var le=this;if(!this.finalized){var ve=this.allFields,we=this.allSupertypes;this.baseNames.forEach(function(ue){var me=V[ue];if(me instanceof g)me.finalize(),H(ve,me.allFields),H(we,me.allSupertypes);else{var Pe="unknown supertype name "+JSON.stringify(ue)+" for subtype "+JSON.stringify(le.typeName);throw new Error(Pe)}}),H(ve,this.ownFields),we[this.typeName]=this,this.fieldNames.length=0;for(var K in ve)a.call(ve,K)&&!ve[K].hidden&&this.fieldNames.push(K);Object.defineProperty(R,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,te(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0&&$e(this.typeName)}},J})(g);function fe(G){if(!a.call(V,G))throw new Error("");var J=V[G];if(J.finalized!==!0)throw new Error("");return J.supertypeList.slice(1)}function D(G){for(var J={},le=Object.keys(V),ve=le.length,we=0;we<ve;++we){var K=le[we],ue=V[K];if(ue.finalized!==!0)throw new Error(""+K);for(var me=0;me<ue.supertypeList.length;++me){var Pe=ue.supertypeList[me];if(a.call(G,Pe)){J[K]=Pe;break}}}return J}var Z=Object.create(null),L={};function se(G,J){var le=L[G];return q.check(J)?delete L[G]:(k.assert(J),Object.defineProperty(L,G,{enumerable:!0,configurable:!0,value:J})),le}function de(G){return G.replace(/^[A-Z]+/,function(J){var le=J.length;switch(le){case 0:return"";case 1:return J.toLowerCase();default:return J.slice(0,le-1).toLowerCase()+J.charAt(le-1)}})}function ie(G){return G=de(G),G.replace(/(Expression)?$/,"Statement")}var R={};function Q(G){var J=oe(G);if(J)return J.fieldNames.slice(0);if("type"in G)throw new Error("did not recognize object of type "+JSON.stringify(G.type));return Object.keys(G)}function xe(G,J){var le=oe(G);if(le){var ve=le.allFields[J];if(ve)return ve.getValue(G)}return G&&G[J]}function Re(G,J,le){Q(G).forEach(function(ve){J.call(this,ve,xe(G,ve))},le)}function ke(G,J,le){return Q(G).some(function(ve){return J.call(this,ve,xe(G,ve))},le)}function $e(G){var J=ie(G);if(!Z[J]){var le=Z[de(G)];if(le){var ve=function(){for(var we=[],K=0;K<arguments.length;K++)we[K]=arguments[K];return Z.expressionStatement(le.apply(Z,we))};ve.from=function(){for(var we=[],K=0;K<arguments.length;K++)we[K]=arguments[K];return Z.expressionStatement(le.from.apply(Z,we))},Z[J]=ve}}}function te(G,J){J.length=0,J.push(G);for(var le=Object.create(null),ve=0;ve<J.length;++ve){G=J[ve];var we=V[G];if(we.finalized!==!0)throw new Error("");a.call(le,G)&&delete J[le[G]],le[G]=ve,J.push.apply(J,we.baseNames)}for(var K=0,ue=K,me=J.length;ue<me;++ue)a.call(J,ue)&&(J[K++]=J[ue]);J.length=K}function H(G,J){return Object.keys(J).forEach(function(le){G[le]=J[le]}),G}function re(){Object.keys(V).forEach(function(G){V[G].finalize()})}return{Type:P,builtInTypes:Y,getSupertypeNames:fe,computeSupertypeLookupTable:D,builders:Z,defineMethod:se,getBuilderName:de,getStatementBuilderName:ie,namedTypes:R,getFieldNames:Q,getFieldValue:xe,eachField:Re,someField:ke,finalize:re}}e.default=x,(0,n.maybeSetModuleExports)(function(){return t})})(Ta,Ta.exports)),Ta.exports}var Ca={exports:{}},ka={exports:{}},Ea={exports:{}};Ea.exports;var gy;function Qb(){return gy||(gy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(At()),s=Object.prototype,a=s.hasOwnProperty;function l(u){var h=u.use(r.default),c=h.builtInTypes.array,p=h.builtInTypes.number,v=function S(w,C,E){if(!(this instanceof S))throw new Error("Path constructor cannot be invoked without 'new'");if(C){if(!(C instanceof S))throw new Error("")}else C=null,E=null;this.value=w,this.parentPath=C,this.name=E,this.__childCache=null},g=v.prototype;function b(S){return S.__childCache||(S.__childCache=Object.create(null))}function m(S,w){var C=b(S),E=S.getValueProperty(w),k=C[w];return(!a.call(C,w)||k.value!==E)&&(k=C[w]=new S.constructor(E,S,w)),k}g.getValueProperty=function(w){return this.value[w]},g.get=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];for(var E=this,k=w.length,A=0;A<k;++A)E=m(E,w[A]);return E},g.each=function(w,C){for(var E=[],k=this.value.length,A=0,A=0;A<k;++A)a.call(this.value,A)&&(E[A]=this.get(A));for(C=C||this,A=0;A<k;++A)a.call(E,A)&&w.call(C,E[A])},g.map=function(w,C){var E=[];return this.each(function(k){E.push(w.call(this,k))},C),E},g.filter=function(w,C){var E=[];return this.each(function(k){w.call(this,k)&&E.push(k)},C),E};function x(){}function O(S,w,C,E){if(c.assert(S.value),w===0)return x;var k=S.value.length;if(k<1)return x;var A=arguments.length;A===2?(C=0,E=k):A===3?(C=Math.max(C,0),E=k):(C=Math.max(C,0),E=Math.min(E,k)),p.assert(C),p.assert(E);for(var $=Object.create(null),F=b(S),I=C;I<E;++I)if(a.call(S.value,I)){var B=S.get(I);if(B.name!==I)throw new Error("");var j=I+w;B.name=j,$[j]=B,delete F[I]}return delete F.length,function(){for(var M in $){var q=$[M];if(q.name!==+M)throw new Error("");F[M]=q,S.value[M]=q.value}}}g.shift=function(){var w=O(this,-1),C=this.value.shift();return w(),C},g.unshift=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];var E=O(this,w.length),k=this.value.unshift.apply(this.value,w);return E(),k},g.push=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];return c.assert(this.value),delete b(this).length,this.value.push.apply(this.value,w)},g.pop=function(){c.assert(this.value);var w=b(this);return delete w[this.value.length-1],delete w.length,this.value.pop()},g.insertAt=function(w){var C=arguments.length,E=O(this,C-1,w);if(E===x&&C<=1)return this;w=Math.max(w,0);for(var k=1;k<C;++k)this.value[w+k-1]=arguments[k];return E(),this},g.insertBefore=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];for(var E=this.parentPath,k=w.length,A=[this.name],$=0;$<k;++$)A.push(w[$]);return E.insertAt.apply(E,A)},g.insertAfter=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];for(var E=this.parentPath,k=w.length,A=[this.name+1],$=0;$<k;++$)A.push(w[$]);return E.insertAt.apply(E,A)};function P(S){if(!(S instanceof v))throw new Error("");var w=S.parentPath;if(!w)return S;var C=w.value,E=b(w);if(C[S.name]===S.value)E[S.name]=S;else if(c.check(C)){var k=C.indexOf(S.value);k>=0&&(E[S.name=k]=S)}else C[S.name]=S.value,E[S.name]=S;if(C[S.name]!==S.value)throw new Error("");if(S.parentPath.get(S.name)!==S)throw new Error("");return S}return g.replace=function(w){var C=[],E=this.parentPath.value,k=b(this.parentPath),A=arguments.length;if(P(this),c.check(E)){for(var $=E.length,F=O(this.parentPath,A-1,this.name+1),I=[this.name,1],B=0;B<A;++B)I.push(arguments[B]);var j=E.splice.apply(E,I);if(j[0]!==this.value)throw new Error("");if(E.length!==$-1+A)throw new Error("");if(F(),A===0)delete this.value,delete k[this.name],this.__childCache=null;else{if(E[this.name]!==w)throw new Error("");for(this.value!==w&&(this.value=w,this.__childCache=null),B=0;B<A;++B)C.push(this.parentPath.get(this.name+B));if(C[0]!==this)throw new Error("")}}else if(A===1)this.value!==w&&(this.__childCache=null),this.value=E[this.name]=w,C.push(this);else if(A===0)delete E[this.name],delete this.value,this.__childCache=null;else throw new Error("Could not replace path");return C},v}e.default=l,(0,n.maybeSetModuleExports)(function(){return t})})(Ea,Ea.exports)),Ea.exports}var Aa={exports:{}};Aa.exports;var yy;function a$(){return yy||(yy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(At()),s=Object.prototype.hasOwnProperty;function a(l){var u=l.use(r.default),h=u.Type,c=u.namedTypes,p=c.Node,v=c.Expression,g=u.builtInTypes.array,b=u.builders,m=function I(B,j){if(!(this instanceof I))throw new Error("Scope constructor cannot be invoked without 'new'");O.check(B.value)||x.assert(B.value);var M;if(j){if(!(j instanceof I))throw new Error("");M=j.depth+1}else j=null,M=0;Object.defineProperties(this,{path:{value:B},node:{value:B.value},isGlobal:{value:!j,enumerable:!0},depth:{value:M},parent:{value:j},bindings:{value:{}},types:{value:{}}})},x=h.or(c.Program,c.Function,c.CatchClause),O=h.or(c.Function,c.ClassDeclaration,c.ClassExpression,c.InterfaceDeclaration,c.TSInterfaceDeclaration,c.TypeAlias,c.TSTypeAliasDeclaration),P=h.or(c.TypeParameter,c.TSTypeParameter);m.isEstablishedBy=function(I){return x.check(I)||O.check(I)};var S=m.prototype;S.didScan=!1,S.declares=function(I){return this.scan(),s.call(this.bindings,I)},S.declaresType=function(I){return this.scan(),s.call(this.types,I)},S.declareTemporary=function(I){if(I){if(!/^[a-z$_]/i.test(I))throw new Error("")}else I="t$";I+=this.depth.toString(36)+"$",this.scan();for(var B=0;this.declares(I+B);)++B;var j=I+B;return this.bindings[j]=u.builders.identifier(j)},S.injectTemporary=function(I,B){I||(I=this.declareTemporary());var j=this.path.get("body");return c.BlockStatement.check(j.value)&&(j=j.get("body")),j.unshift(b.variableDeclaration("var",[b.variableDeclarator(I,B||null)])),I},S.scan=function(I){if(I||!this.didScan){for(var B in this.bindings)delete this.bindings[B];for(var B in this.types)delete this.types[B];w(this.path,this.bindings,this.types),this.didScan=!0}},S.getBindings=function(){return this.scan(),this.bindings},S.getTypes=function(){return this.scan(),this.types};function w(I,B,j){var M=I.value;if(O.check(M)){var q=I.get("typeParameters","params");g.check(q.value)&&q.each(function(X){F(X,j)})}x.check(M)&&(c.CatchClause.check(M)?A(I.get("param"),B):C(I,B,j))}function C(I,B,j){var M=I.value;I.parent&&c.FunctionExpression.check(I.parent.node)&&I.parent.node.id&&A(I.parent.get("id"),B),M&&(g.check(M)?I.each(function(q){k(q,B,j)}):c.Function.check(M)?(I.get("params").each(function(q){A(q,B)}),k(I.get("body"),B,j),C(I.get("typeParameters"),B,j)):c.TypeAlias&&c.TypeAlias.check(M)||c.InterfaceDeclaration&&c.InterfaceDeclaration.check(M)||c.TSTypeAliasDeclaration&&c.TSTypeAliasDeclaration.check(M)||c.TSInterfaceDeclaration&&c.TSInterfaceDeclaration.check(M)?$(I.get("id"),j):c.VariableDeclarator.check(M)?(A(I.get("id"),B),k(I.get("init"),B,j)):M.type==="ImportSpecifier"||M.type==="ImportNamespaceSpecifier"||M.type==="ImportDefaultSpecifier"?A(I.get(M.local?"local":M.name?"name":"id"),B):p.check(M)&&!v.check(M)&&u.eachField(M,function(q,X){var Y=I.get(q);if(!E(Y,X))throw new Error("");k(Y,B,j)}))}function E(I,B){return!!(I.value===B||Array.isArray(I.value)&&I.value.length===0&&Array.isArray(B)&&B.length===0)}function k(I,B,j){var M=I.value;if(!(!M||v.check(M)))if(c.FunctionDeclaration.check(M)&&M.id!==null)A(I.get("id"),B);else if(c.ClassDeclaration&&c.ClassDeclaration.check(M)&&M.id!==null)A(I.get("id"),B),C(I.get("typeParameters"),B,j);else if(c.InterfaceDeclaration&&c.InterfaceDeclaration.check(M)||c.TSInterfaceDeclaration&&c.TSInterfaceDeclaration.check(M))$(I.get("id"),j);else if(x.check(M)){if(c.CatchClause.check(M)&&c.Identifier.check(M.param)){var q=M.param.name,X=s.call(B,q);C(I.get("body"),B,j),X||delete B[q]}}else C(I,B,j)}function A(I,B){var j=I.value;c.Pattern.assert(j),c.Identifier.check(j)?s.call(B,j.name)?B[j.name].push(I):B[j.name]=[I]:c.AssignmentPattern&&c.AssignmentPattern.check(j)?A(I.get("left"),B):c.ObjectPattern&&c.ObjectPattern.check(j)?I.get("properties").each(function(M){var q=M.value;c.Pattern.check(q)?A(M,B):c.Property.check(q)||c.ObjectProperty&&c.ObjectProperty.check(q)?A(M.get("value"),B):c.SpreadProperty&&c.SpreadProperty.check(q)&&A(M.get("argument"),B)}):c.ArrayPattern&&c.ArrayPattern.check(j)?I.get("elements").each(function(M){var q=M.value;c.Pattern.check(q)?A(M,B):c.SpreadElement&&c.SpreadElement.check(q)&&A(M.get("argument"),B)}):c.PropertyPattern&&c.PropertyPattern.check(j)?A(I.get("pattern"),B):(c.SpreadElementPattern&&c.SpreadElementPattern.check(j)||c.RestElement&&c.RestElement.check(j)||c.SpreadPropertyPattern&&c.SpreadPropertyPattern.check(j))&&A(I.get("argument"),B)}function $(I,B){var j=I.value;c.Pattern.assert(j),c.Identifier.check(j)&&(s.call(B,j.name)?B[j.name].push(I):B[j.name]=[I])}function F(I,B){var j=I.value;P.assert(j),s.call(B,j.name)?B[j.name].push(I):B[j.name]=[I]}return S.lookup=function(I){for(var B=this;B&&!B.declares(I);B=B.parent);return B},S.lookupType=function(I){for(var B=this;B&&!B.declaresType(I);B=B.parent);return B},S.getGlobalScope=function(){for(var I=this;!I.isGlobal;)I=I.parent;return I},m}e.default=a,(0,n.maybeSetModuleExports)(function(){return t})})(Aa,Aa.exports)),Aa.exports}ka.exports;var vy;function Fb(){return vy||(vy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importDefault(Qb()),s=i.__importDefault(a$()),a=ft();function l(u){var h=u.use(n.default),c=h.namedTypes,p=h.builders,v=h.builtInTypes.number,g=h.builtInTypes.array,b=u.use(r.default),m=u.use(s.default),x=function A($,F,I){if(!(this instanceof A))throw new Error("NodePath constructor cannot be invoked without 'new'");b.call(this,$,F,I)},O=x.prototype=Object.create(b.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(O,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),O.replace=function(){return delete this.node,delete this.parent,delete this.scope,b.prototype.replace.apply(this,arguments)},O.prune=function(){var A=this.parent;return this.replace(),E(A)},O._computeNode=function(){var A=this.value;if(c.Node.check(A))return A;var $=this.parentPath;return $&&$.node||null},O._computeParent=function(){var A=this.value,$=this.parentPath;if(!c.Node.check(A)){for(;$&&!c.Node.check($.value);)$=$.parentPath;$&&($=$.parentPath)}for(;$&&!c.Node.check($.value);)$=$.parentPath;return $||null},O._computeScope=function(){var A=this.value,$=this.parentPath,F=$&&$.scope;return c.Node.check(A)&&m.isEstablishedBy(A)&&(F=new m(this,F)),F||null},O.getValueProperty=function(A){return h.getFieldValue(this.value,A)},O.needsParens=function(A){var $=this.parentPath;if(!$)return!1;var F=this.value;if(!c.Expression.check(F)||F.type==="Identifier")return!1;for(;!c.Node.check($.value);)if($=$.parentPath,!$)return!1;var I=$.value;switch(F.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return I.type==="MemberExpression"&&this.name==="object"&&I.object===F;case"BinaryExpression":case"LogicalExpression":switch(I.type){case"CallExpression":return this.name==="callee"&&I.callee===F;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return this.name==="object"&&I.object===F;case"BinaryExpression":case"LogicalExpression":{var B=F,j=I.operator,M=S[j],q=B.operator,X=S[q];if(M>X)return!0;if(M===X&&this.name==="right"){if(I.right!==B)throw new Error("Nodes must be equal");return!0}}default:return!1}case"SequenceExpression":switch(I.type){case"ForStatement":return!1;case"ExpressionStatement":return this.name!=="expression";default:return!0}case"YieldExpression":switch(I.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return I.type==="MemberExpression"&&v.check(F.value)&&this.name==="object"&&I.object===F;case"AssignmentExpression":case"ConditionalExpression":switch(I.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return this.name==="callee"&&I.callee===F;case"ConditionalExpression":return this.name==="test"&&I.test===F;case"MemberExpression":return this.name==="object"&&I.object===F;default:return!1}default:if(I.type==="NewExpression"&&this.name==="callee"&&I.callee===F)return w(F)}return!!(A!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function P(A){return c.BinaryExpression.check(A)||c.LogicalExpression.check(A)}var S={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(A,$){A.forEach(function(F){S[F]=$})});function w(A){return c.CallExpression.check(A)?!0:g.check(A)?A.some(w):c.Node.check(A)?h.someField(A,function($,F){return w(F)}):!1}O.canBeFirstInStatement=function(){var A=this.node;return!c.FunctionExpression.check(A)&&!c.ObjectExpression.check(A)},O.firstInStatement=function(){return C(this)};function C(A){for(var $,F;A.parent;A=A.parent){if($=A.node,F=A.parent.node,c.BlockStatement.check(F)&&A.parent.name==="body"&&A.name===0){if(F.body[0]!==$)throw new Error("Nodes must be equal");return!0}if(c.ExpressionStatement.check(F)&&A.name==="expression"){if(F.expression!==$)throw new Error("Nodes must be equal");return!0}if(c.SequenceExpression.check(F)&&A.parent.name==="expressions"&&A.name===0){if(F.expressions[0]!==$)throw new Error("Nodes must be equal");continue}if(c.CallExpression.check(F)&&A.name==="callee"){if(F.callee!==$)throw new Error("Nodes must be equal");continue}if(c.MemberExpression.check(F)&&A.name==="object"){if(F.object!==$)throw new Error("Nodes must be equal");continue}if(c.ConditionalExpression.check(F)&&A.name==="test"){if(F.test!==$)throw new Error("Nodes must be equal");continue}if(P(F)&&A.name==="left"){if(F.left!==$)throw new Error("Nodes must be equal");continue}if(c.UnaryExpression.check(F)&&!F.prefix&&A.name==="argument"){if(F.argument!==$)throw new Error("Nodes must be equal");continue}return!1}return!0}function E(A){if(c.VariableDeclaration.check(A.node)){var $=A.get("declarations").value;if(!$||$.length===0)return A.prune()}else if(c.ExpressionStatement.check(A.node)){if(!A.get("expression").value)return A.prune()}else c.IfStatement.check(A.node)&&k(A);return A}function k(A){var $=A.get("test").value,F=A.get("alternate").value,I=A.get("consequent").value;if(!I&&!F){var B=p.expressionStatement($);A.replace(B)}else if(!I&&F){var j=p.unaryExpression("!",$,!0);c.UnaryExpression.check($)&&$.operator==="!"&&(j=$.argument),A.get("test").replace(j),A.get("consequent").replace(F),A.get("alternate").replace()}}return x}e.default=l,(0,a.maybeSetModuleExports)(function(){return t})})(ka,ka.exports)),ka.exports}Ca.exports;var Oy;function o$(){return Oy||(Oy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importDefault(Fb()),s=ft(),a=Object.prototype.hasOwnProperty;function l(u){var h=u.use(n.default),c=u.use(r.default),p=h.builtInTypes.array,v=h.builtInTypes.object,g=h.builtInTypes.function,b,m=function E(){if(!(this instanceof E))throw new Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=x(this),this._shouldVisitComments=a.call(this._methodNameTable,"Block")||a.call(this._methodNameTable,"Line"),this.Context=w(this),this._visiting=!1,this._changeReported=!1};function x(E){var k=Object.create(null);for(var A in E)/^visit[A-Z]/.test(A)&&(k[A.slice(5)]=!0);for(var $=h.computeSupertypeLookupTable(k),F=Object.create(null),I=Object.keys($),B=I.length,j=0;j<B;++j){var M=I[j];A="visit"+$[M],g.check(E[A])&&(F[M]=A)}return F}m.fromMethodsObject=function(k){if(k instanceof m)return k;if(!v.check(k))return new m;var A=function F(){if(!(this instanceof F))throw new Error("Visitor constructor cannot be invoked without 'new'");m.call(this)},$=A.prototype=Object.create(P);return $.constructor=A,O($,k),O(A,m),g.assert(A.fromMethodsObject),g.assert(A.visit),new A};function O(E,k){for(var A in k)a.call(k,A)&&(E[A]=k[A]);return E}m.visit=function(k,A){return m.fromMethodsObject(A).visit(k)};var P=m.prototype;P.visit=function(){if(this._visiting)throw new Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;for(var E=arguments.length,k=new Array(E),A=0;A<E;++A)k[A]=arguments[A];k[0]instanceof c||(k[0]=new c({root:k[0]}).get("root")),this.reset.apply(this,k);var $;try{var F=this.visitWithoutReset(k[0]);$=!0}finally{if(this._visiting=!1,!$&&this._abortRequested)return k[0].value}return F},P.AbortRequest=function(){},P.abort=function(){var E=this;E._abortRequested=!0;var k=new E.AbortRequest;throw k.cancel=function(){E._abortRequested=!1},k},P.reset=function(E){},P.visitWithoutReset=function(E){if(this instanceof this.Context)return this.visitor.visitWithoutReset(E);if(!(E instanceof c))throw new Error("");var k=E.value,A=k&&typeof k=="object"&&typeof k.type=="string"&&this._methodNameTable[k.type];if(A){var $=this.acquireContext(E);try{return $.invokeVisitorMethod(A)}finally{this.releaseContext($)}}else return S(E,this)};function S(E,k){if(!(E instanceof c))throw new Error("");if(!(k instanceof m))throw new Error("");var A=E.value;if(p.check(A))E.each(k.visitWithoutReset,k);else if(v.check(A)){var $=h.getFieldNames(A);k._shouldVisitComments&&A.comments&&$.indexOf("comments")<0&&$.push("comments");for(var F=$.length,I=[],B=0;B<F;++B){var j=$[B];a.call(A,j)||(A[j]=h.getFieldValue(A,j)),I.push(E.get(j))}for(var B=0;B<F;++B)k.visitWithoutReset(I[B])}return E.value}P.acquireContext=function(E){return this._reusableContextStack.length===0?new this.Context(E):this._reusableContextStack.pop().reset(E)},P.releaseContext=function(E){if(!(E instanceof this.Context))throw new Error("");this._reusableContextStack.push(E),E.currentPath=null},P.reportChanged=function(){this._changeReported=!0},P.wasChangeReported=function(){return this._changeReported};function w(E){function k($){if(!(this instanceof k))throw new Error("");if(!(this instanceof m))throw new Error("");if(!($ instanceof c))throw new Error("");Object.defineProperty(this,"visitor",{value:E,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=$,this.needToCallTraverse=!0,Object.seal(this)}if(!(E instanceof m))throw new Error("");var A=k.prototype=Object.create(E);return A.constructor=k,O(A,C),k}var C=Object.create(null);return C.reset=function(k){if(!(this instanceof this.Context))throw new Error("");if(!(k instanceof c))throw new Error("");return this.currentPath=k,this.needToCallTraverse=!0,this},C.invokeVisitorMethod=function(k){if(!(this instanceof this.Context))throw new Error("");if(!(this.currentPath instanceof c))throw new Error("");var A=this.visitor[k].call(this,this.currentPath);if(A===!1?this.needToCallTraverse=!1:A!==b&&(this.currentPath=this.currentPath.replace(A)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw new Error("Must either call this.traverse or return false in "+k);var $=this.currentPath;return $&&$.value},C.traverse=function(k,A){if(!(this instanceof this.Context))throw new Error("");if(!(k instanceof c))throw new Error("");if(!(this.currentPath instanceof c))throw new Error("");return this.needToCallTraverse=!1,S(k,m.fromMethodsObject(A||this.visitor))},C.visit=function(k,A){if(!(this instanceof this.Context))throw new Error("");if(!(k instanceof c))throw new Error("");if(!(this.currentPath instanceof c))throw new Error("");return this.needToCallTraverse=!1,m.fromMethodsObject(A||this.visitor).visitWithoutReset(k)},C.reportChanged=function(){this.visitor.reportChanged()},C.abort=function(){this.needToCallTraverse=!1,this.visitor.abort()},m}e.default=l,(0,s.maybeSetModuleExports)(function(){return t})})(Ca,Ca.exports)),Ca.exports}var Da={exports:{}};Da.exports;var xy;function l$(){return xy||(xy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(At());function s(a){var l=a.use(r.default),u=l.getFieldNames,h=l.getFieldValue,c=l.builtInTypes.array,p=l.builtInTypes.object,v=l.builtInTypes.Date,g=l.builtInTypes.RegExp,b=Object.prototype.hasOwnProperty;function m(w,C,E){return c.check(E)?E.length=0:E=null,O(w,C,E)}m.assert=function(w,C){var E=[];if(!m(w,C,E))if(E.length===0){if(w!==C)throw new Error("Nodes must be equal")}else throw new Error("Nodes differ in the following path: "+E.map(x).join(""))};function x(w){return/[_$a-z][_$a-z0-9]*/i.test(w)?"."+w:"["+JSON.stringify(w)+"]"}function O(w,C,E){return w===C?!0:c.check(w)?P(w,C,E):p.check(w)?S(w,C,E):v.check(w)?v.check(C)&&+w==+C:g.check(w)?g.check(C)&&w.source===C.source&&w.global===C.global&&w.multiline===C.multiline&&w.ignoreCase===C.ignoreCase:w==C}function P(w,C,E){c.assert(w);var k=w.length;if(!c.check(C)||C.length!==k)return E&&E.push("length"),!1;for(var A=0;A<k;++A){if(E&&E.push(A),A in w!=A in C||!O(w[A],C[A],E))return!1;if(E){var $=E.pop();if($!==A)throw new Error(""+$)}}return!0}function S(w,C,E){if(p.assert(w),!p.check(C))return!1;if(w.type!==C.type)return E&&E.push("type"),!1;var k=u(w),A=k.length,$=u(C),F=$.length;if(A===F){for(var I=0;I<A;++I){var B=k[I],j=h(w,B),M=h(C,B);if(E&&E.push(B),!O(j,M,E))return!1;if(E){var q=E.pop();if(q!==B)throw new Error(""+q)}}return!0}if(!E)return!1;var X=Object.create(null);for(I=0;I<A;++I)X[k[I]]=!0;for(I=0;I<F;++I){if(B=$[I],!b.call(X,B))return E.push(B),!1;delete X[B]}for(B in X){E.push(B);break}return!1}return m}e.default=s,(0,n.maybeSetModuleExports)(function(){return t})})(Da,Da.exports)),Da.exports}Pa.exports;var by;function u$(){return by||(by=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importDefault(o$()),s=i.__importDefault(l$()),a=i.__importDefault(Qb()),l=i.__importDefault(Fb()),u=ft();function h(p){var v=c(),g=v.use(n.default);p.forEach(v.use),g.finalize();var b=v.use(r.default);return{Type:g.Type,builtInTypes:g.builtInTypes,namedTypes:g.namedTypes,builders:g.builders,defineMethod:g.defineMethod,getFieldNames:g.getFieldNames,getFieldValue:g.getFieldValue,eachField:g.eachField,someField:g.someField,getSupertypeNames:g.getSupertypeNames,getBuilderName:g.getBuilderName,astNodesAreEquivalent:v.use(s.default),finalize:g.finalize,Path:v.use(a.default),NodePath:v.use(l.default),PathVisitor:b,use:v.use,visit:b.visit}}e.default=h;function c(){var p=[],v=[];function g(m){var x=p.indexOf(m);return x===-1&&(x=p.length,p.push(m),v[x]=m(b)),v[x]}var b={use:g};return b}(0,u.maybeSetModuleExports)(function(){return t})})(Pa,Pa.exports)),Pa.exports}var _a={exports:{}},Ia={exports:{}},Na={exports:{}},Ma={exports:{}},$a={exports:{}},La={exports:{}},Ba={exports:{}};Ba.exports;var Sy;function Rb(){return Sy||(Sy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=ft();function n(){return{BinaryOperators:["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}}e.default=n,(0,i.maybeSetModuleExports)(function(){return t})})(Ba,Ba.exports)),Ba.exports}La.exports;var wy;function zb(){return wy||(wy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(Rb());function s(a){var l=a.use(r.default);return l.BinaryOperators.indexOf("**")<0&&l.BinaryOperators.push("**"),l.AssignmentOperators.indexOf("**=")<0&&l.AssignmentOperators.push("**="),l}e.default=s,(0,n.maybeSetModuleExports)(function(){return t})})(La,La.exports)),La.exports}$a.exports;var Py;function Xb(){return Py||(Py=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(zb());function s(a){var l=a.use(r.default);return l.LogicalOperators.indexOf("??")<0&&l.LogicalOperators.push("??"),l}e.default=s,(0,n.maybeSetModuleExports)(function(){return t})})($a,$a.exports)),$a.exports}Ma.exports;var Ty;function c$(){return Ty||(Ty=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=ft(),r=i.__importDefault(Xb());function s(a){var l=a.use(r.default);return l.LogicalOperators.forEach(function(u){var h=u+"=";l.AssignmentOperators.indexOf(h)<0&&l.AssignmentOperators.push(h)}),l}e.default=s,(0,n.maybeSetModuleExports)(function(){return t})})(Ma,Ma.exports)),Ma.exports}var Qa={exports:{}},Fa={exports:{}},Ra={exports:{}},za={exports:{}},Xa={exports:{}},ja={exports:{}},Za={exports:{}};Za.exports;var Cy;function h$(){return Cy||(Cy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(Rb()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){var u=l.use(r.default),h=u.Type,c=h.def,p=h.or,v=l.use(s.default),g=v.defaults,b=v.geq,m=l.use(n.default),x=m.BinaryOperators,O=m.AssignmentOperators,P=m.LogicalOperators;c("Printable").field("loc",p(c("SourceLocation"),null),g.null,!0),c("Node").bases("Printable").field("type",String).field("comments",p([c("Comment")],null),g.null,!0),c("SourceLocation").field("start",c("Position")).field("end",c("Position")).field("source",p(String,null),g.null),c("Position").field("line",b(1)).field("column",b(0)),c("File").bases("Node").build("program","name").field("program",c("Program")).field("name",p(String,null),g.null),c("Program").bases("Node").build("body").field("body",[c("Statement")]),c("Function").bases("Node").field("id",p(c("Identifier"),null),g.null).field("params",[c("Pattern")]).field("body",c("BlockStatement")).field("generator",Boolean,g.false).field("async",Boolean,g.false),c("Statement").bases("Node"),c("EmptyStatement").bases("Statement").build(),c("BlockStatement").bases("Statement").build("body").field("body",[c("Statement")]),c("ExpressionStatement").bases("Statement").build("expression").field("expression",c("Expression")),c("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",c("Expression")).field("consequent",c("Statement")).field("alternate",p(c("Statement"),null),g.null),c("LabeledStatement").bases("Statement").build("label","body").field("label",c("Identifier")).field("body",c("Statement")),c("BreakStatement").bases("Statement").build("label").field("label",p(c("Identifier"),null),g.null),c("ContinueStatement").bases("Statement").build("label").field("label",p(c("Identifier"),null),g.null),c("WithStatement").bases("Statement").build("object","body").field("object",c("Expression")).field("body",c("Statement")),c("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",c("Expression")).field("cases",[c("SwitchCase")]).field("lexical",Boolean,g.false),c("ReturnStatement").bases("Statement").build("argument").field("argument",p(c("Expression"),null)),c("ThrowStatement").bases("Statement").build("argument").field("argument",c("Expression")),c("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",c("BlockStatement")).field("handler",p(c("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[c("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[c("CatchClause")],g.emptyArray).field("finalizer",p(c("BlockStatement"),null),g.null),c("CatchClause").bases("Node").build("param","guard","body").field("param",c("Pattern")).field("guard",p(c("Expression"),null),g.null).field("body",c("BlockStatement")),c("WhileStatement").bases("Statement").build("test","body").field("test",c("Expression")).field("body",c("Statement")),c("DoWhileStatement").bases("Statement").build("body","test").field("body",c("Statement")).field("test",c("Expression")),c("ForStatement").bases("Statement").build("init","test","update","body").field("init",p(c("VariableDeclaration"),c("Expression"),null)).field("test",p(c("Expression"),null)).field("update",p(c("Expression"),null)).field("body",c("Statement")),c("ForInStatement").bases("Statement").build("left","right","body").field("left",p(c("VariableDeclaration"),c("Expression"))).field("right",c("Expression")).field("body",c("Statement")),c("DebuggerStatement").bases("Statement").build(),c("Declaration").bases("Statement"),c("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",c("Identifier")),c("FunctionExpression").bases("Function","Expression").build("id","params","body"),c("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",p("var","let","const")).field("declarations",[c("VariableDeclarator")]),c("VariableDeclarator").bases("Node").build("id","init").field("id",c("Pattern")).field("init",p(c("Expression"),null),g.null),c("Expression").bases("Node"),c("ThisExpression").bases("Expression").build(),c("ArrayExpression").bases("Expression").build("elements").field("elements",[p(c("Expression"),null)]),c("ObjectExpression").bases("Expression").build("properties").field("properties",[c("Property")]),c("Property").bases("Node").build("kind","key","value").field("kind",p("init","get","set")).field("key",p(c("Literal"),c("Identifier"))).field("value",c("Expression")),c("SequenceExpression").bases("Expression").build("expressions").field("expressions",[c("Expression")]);var S=p("-","+","!","~","typeof","void","delete");c("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",S).field("argument",c("Expression")).field("prefix",Boolean,g.true);var w=p.apply(void 0,x);c("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",w).field("left",c("Expression")).field("right",c("Expression"));var C=p.apply(void 0,O);c("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",C).field("left",p(c("Pattern"),c("MemberExpression"))).field("right",c("Expression"));var E=p("++","--");c("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",E).field("argument",c("Expression")).field("prefix",Boolean);var k=p.apply(void 0,P);c("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",k).field("left",c("Expression")).field("right",c("Expression")),c("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",c("Expression")).field("consequent",c("Expression")).field("alternate",c("Expression")),c("NewExpression").bases("Expression").build("callee","arguments").field("callee",c("Expression")).field("arguments",[c("Expression")]),c("CallExpression").bases("Expression").build("callee","arguments").field("callee",c("Expression")).field("arguments",[c("Expression")]),c("MemberExpression").bases("Expression").build("object","property","computed").field("object",c("Expression")).field("property",p(c("Identifier"),c("Expression"))).field("computed",Boolean,function(){var A=this.property.type;return A==="Literal"||A==="MemberExpression"||A==="BinaryExpression"}),c("Pattern").bases("Node"),c("SwitchCase").bases("Node").build("test","consequent").field("test",p(c("Expression"),null)).field("consequent",[c("Statement")]),c("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,g.false),c("Literal").bases("Expression").build("value").field("value",p(String,Boolean,null,Number,RegExp,BigInt)),c("Comment").bases("Printable").field("value",String).field("leading",Boolean,g.true).field("trailing",Boolean,g.false)}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Za,Za.exports)),Za.exports}ja.exports;var ky;function f$(){return ky||(ky=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(h$()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def,c=u.Type.or,p=l.use(s.default).defaults;h("Function").field("generator",Boolean,p.false).field("expression",Boolean,p.false).field("defaults",[c(h("Expression"),null)],p.emptyArray).field("rest",c(h("Identifier"),null),p.null),h("RestElement").bases("Pattern").build("argument").field("argument",h("Pattern")).field("typeAnnotation",c(h("TypeAnnotation"),h("TSTypeAnnotation"),null),p.null),h("SpreadElementPattern").bases("Pattern").build("argument").field("argument",h("Pattern")),h("FunctionDeclaration").build("id","params","body","generator","expression").field("id",c(h("Identifier"),null)),h("FunctionExpression").build("id","params","body","generator","expression"),h("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,p.null).field("body",c(h("BlockStatement"),h("Expression"))).field("generator",!1,p.false),h("ForOfStatement").bases("Statement").build("left","right","body").field("left",c(h("VariableDeclaration"),h("Pattern"))).field("right",h("Expression")).field("body",h("Statement")),h("YieldExpression").bases("Expression").build("argument","delegate").field("argument",c(h("Expression"),null)).field("delegate",Boolean,p.false),h("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",h("Expression")).field("blocks",[h("ComprehensionBlock")]).field("filter",c(h("Expression"),null)),h("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",h("Expression")).field("blocks",[h("ComprehensionBlock")]).field("filter",c(h("Expression"),null)),h("ComprehensionBlock").bases("Node").build("left","right","each").field("left",h("Pattern")).field("right",h("Expression")).field("each",Boolean),h("Property").field("key",c(h("Literal"),h("Identifier"),h("Expression"))).field("value",c(h("Expression"),h("Pattern"))).field("method",Boolean,p.false).field("shorthand",Boolean,p.false).field("computed",Boolean,p.false),h("ObjectProperty").field("shorthand",Boolean,p.false),h("PropertyPattern").bases("Pattern").build("key","pattern").field("key",c(h("Literal"),h("Identifier"),h("Expression"))).field("pattern",h("Pattern")).field("computed",Boolean,p.false),h("ObjectPattern").bases("Pattern").build("properties").field("properties",[c(h("PropertyPattern"),h("Property"))]),h("ArrayPattern").bases("Pattern").build("elements").field("elements",[c(h("Pattern"),null)]),h("SpreadElement").bases("Node").build("argument").field("argument",h("Expression")),h("ArrayExpression").field("elements",[c(h("Expression"),h("SpreadElement"),h("RestElement"),null)]),h("NewExpression").field("arguments",[c(h("Expression"),h("SpreadElement"))]),h("CallExpression").field("arguments",[c(h("Expression"),h("SpreadElement"))]),h("AssignmentPattern").bases("Pattern").build("left","right").field("left",h("Pattern")).field("right",h("Expression")),h("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",c("constructor","method","get","set")).field("key",h("Expression")).field("value",h("Function")).field("computed",Boolean,p.false).field("static",Boolean,p.false);var v=c(h("MethodDefinition"),h("VariableDeclarator"),h("ClassPropertyDefinition"),h("ClassProperty"),h("StaticBlock"));h("ClassProperty").bases("Declaration").build("key").field("key",c(h("Literal"),h("Identifier"),h("Expression"))).field("computed",Boolean,p.false),h("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",v),h("ClassBody").bases("Declaration").build("body").field("body",[v]),h("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",c(h("Identifier"),null)).field("body",h("ClassBody")).field("superClass",c(h("Expression"),null),p.null),h("ClassExpression").bases("Expression").build("id","body","superClass").field("id",c(h("Identifier"),null),p.null).field("body",h("ClassBody")).field("superClass",c(h("Expression"),null),p.null),h("Super").bases("Expression").build(),h("Specifier").bases("Node"),h("ModuleSpecifier").bases("Specifier").field("local",c(h("Identifier"),null),p.null).field("id",c(h("Identifier"),null),p.null).field("name",c(h("Identifier"),null),p.null),h("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",h("Identifier")),h("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),h("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),h("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[c(h("ImportSpecifier"),h("ImportNamespaceSpecifier"),h("ImportDefaultSpecifier"))],p.emptyArray).field("source",h("Literal")).field("importKind",c("value","type"),function(){return"value"}),h("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",c(h("Declaration"),null)).field("specifiers",[h("ExportSpecifier")],p.emptyArray).field("source",c(h("Literal"),null),p.null),h("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",h("Identifier")),h("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",c(h("Declaration"),h("Expression"))),h("ExportAllDeclaration").bases("Declaration").build("source").field("source",h("Literal")),h("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",h("Expression")).field("quasi",h("TemplateLiteral")),h("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[h("TemplateElement")]).field("expressions",[h("Expression")]),h("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),h("MetaProperty").bases("Expression").build("meta","property").field("meta",h("Identifier")).field("property",h("Identifier"))}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(ja,ja.exports)),ja.exports}Xa.exports;var Ey;function d$(){return Ey||(Ey=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(zb()),r=i.__importDefault(f$()),s=ft();function a(l){l.use(n.default),l.use(r.default)}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Xa,Xa.exports)),Xa.exports}za.exports;var Ay;function p$(){return Ay||(Ay=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(d$()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def,c=l.use(s.default).defaults;h("Function").field("async",Boolean,c.false),h("AwaitExpression").bases("Expression").build("argument").field("argument",h("Expression"))}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(za,za.exports)),za.exports}Ra.exports;var Dy;function m$(){return Dy||(Dy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(p$()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def,c=u.Type.or,p=l.use(s.default).defaults;h("ForOfStatement").field("await",Boolean,p.false),h("SpreadProperty").bases("Node").build("argument").field("argument",h("Expression")),h("ObjectExpression").field("properties",[c(h("Property"),h("SpreadProperty"),h("SpreadElement"))]),h("TemplateElement").field("value",{cooked:c(String,null),raw:String}),h("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",h("Pattern")),h("ObjectPattern").field("properties",[c(h("PropertyPattern"),h("Property"),h("RestElement"),h("SpreadPropertyPattern"))])}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Ra,Ra.exports)),Ra.exports}Fa.exports;var _y;function g$(){return _y||(_y=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(m$()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def,c=u.Type.or,p=l.use(s.default).defaults;h("CatchClause").field("param",c(h("Pattern"),null),p.null)}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Fa,Fa.exports)),Fa.exports}Qa.exports;var Iy;function y$(){return Iy||(Iy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(Xb()),r=i.__importDefault(g$()),s=i.__importDefault(At()),a=i.__importStar(ft());function l(u){u.use(n.default),u.use(r.default);var h=u.use(s.default),c=h.Type.def,p=h.Type.or,v=u.use(a.default),g=v.defaults;c("ImportExpression").bases("Expression").build("source").field("source",c("Expression")),c("ExportAllDeclaration").bases("Declaration").build("source","exported").field("source",c("Literal")).field("exported",p(c("Identifier"),null,void 0),g.null),c("ChainElement").bases("Node").field("optional",Boolean,g.false),c("CallExpression").bases("Expression","ChainElement"),c("MemberExpression").bases("Expression","ChainElement"),c("ChainExpression").bases("Expression").build("expression").field("expression",c("ChainElement")),c("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,g.true),c("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,g.true)}e.default=l,(0,a.maybeSetModuleExports)(function(){return t})})(Qa,Qa.exports)),Qa.exports}Na.exports;var Ny;function v$(){return Ny||(Ny=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(c$()),r=i.__importDefault(y$()),s=ft();function a(l){l.use(n.default),l.use(r.default)}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Na,Na.exports)),Na.exports}Ia.exports;var My;function O$(){return My||(My=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(v$()),r=i.__importDefault(At()),s=ft();function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def;h("StaticBlock").bases("Declaration").build("body").field("body",[h("Statement")])}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Ia,Ia.exports)),Ia.exports}_a.exports;var $y;function tl(){return $y||($y=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importStar(ft()),s=i.__importDefault(O$());function a(l){l.use(s.default);var u=l.use(n.default),h=u.Type,c=u.Type.def,p=h.or,v=l.use(r.default),g=v.defaults;c("AwaitExpression").build("argument","all").field("argument",p(c("Expression"),null)).field("all",Boolean,g.false),c("Decorator").bases("Node").build("expression").field("expression",c("Expression")),c("Property").field("decorators",p([c("Decorator")],null),g.null),c("MethodDefinition").field("decorators",p([c("Decorator")],null),g.null),c("PrivateName").bases("Expression","Pattern").build("id").field("id",c("Identifier")),c("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",c("PrivateName")).field("value",p(c("Expression"),null),g.null),c("ImportAttribute").bases("Node").build("key","value").field("key",p(c("Identifier"),c("Literal"))).field("value",c("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach(function(b){c(b).field("assertions",[c("ImportAttribute")],g.emptyArray)}),c("RecordExpression").bases("Expression").build("properties").field("properties",[p(c("ObjectProperty"),c("ObjectMethod"),c("SpreadElement"))]),c("TupleExpression").bases("Expression").build("elements").field("elements",[p(c("Expression"),c("SpreadElement"),null)]),c("ModuleExpression").bases("Node").build("body").field("body",c("Program"))}e.default=a,(0,r.maybeSetModuleExports)(function(){return t})})(_a,_a.exports)),_a.exports}var Va={exports:{}};Va.exports;var Ly;function x$(){return Ly||(Ly=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(tl()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=u.Type.def,c=u.Type.or,p=l.use(s.default).defaults;h("JSXAttribute").bases("Node").build("name","value").field("name",c(h("JSXIdentifier"),h("JSXNamespacedName"))).field("value",c(h("Literal"),h("JSXExpressionContainer"),h("JSXElement"),h("JSXFragment"),null),p.null),h("JSXIdentifier").bases("Identifier").build("name").field("name",String),h("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",h("JSXIdentifier")).field("name",h("JSXIdentifier")),h("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",c(h("JSXIdentifier"),h("JSXMemberExpression"))).field("property",h("JSXIdentifier")).field("computed",Boolean,p.false);var v=c(h("JSXIdentifier"),h("JSXNamespacedName"),h("JSXMemberExpression"));h("JSXSpreadAttribute").bases("Node").build("argument").field("argument",h("Expression"));var g=[c(h("JSXAttribute"),h("JSXSpreadAttribute"))];h("JSXExpressionContainer").bases("Expression").build("expression").field("expression",c(h("Expression"),h("JSXEmptyExpression")));var b=[c(h("JSXText"),h("JSXExpressionContainer"),h("JSXSpreadChild"),h("JSXElement"),h("JSXFragment"),h("Literal"))];h("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",h("JSXOpeningElement")).field("closingElement",c(h("JSXClosingElement"),null),p.null).field("children",b,p.emptyArray).field("name",v,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",g,function(){return this.openingElement.attributes},!0),h("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",v).field("attributes",g,p.emptyArray).field("selfClosing",Boolean,p.false),h("JSXClosingElement").bases("Node").build("name").field("name",v),h("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",h("JSXOpeningFragment")).field("closingFragment",h("JSXClosingFragment")).field("children",b,p.emptyArray),h("JSXOpeningFragment").bases("Node").build(),h("JSXClosingFragment").bases("Node").build(),h("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),h("JSXEmptyExpression").bases("Node").build(),h("JSXSpreadChild").bases("Node").build("expression").field("expression",h("Expression"))}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Va,Va.exports)),Va.exports}var Ua={exports:{}},qa={exports:{}};qa.exports;var By;function jb(){return By||(By=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importStar(ft());function s(a){var l=a.use(n.default),u=l.Type.def,h=l.Type.or,c=a.use(r.default).defaults,p=h(u("TypeAnnotation"),u("TSTypeAnnotation"),null),v=h(u("TypeParameterDeclaration"),u("TSTypeParameterDeclaration"),null);u("Identifier").field("typeAnnotation",p,c.null),u("ObjectPattern").field("typeAnnotation",p,c.null),u("Function").field("returnType",p,c.null).field("typeParameters",v,c.null),u("ClassProperty").build("key","value","typeAnnotation","static").field("value",h(u("Expression"),null)).field("static",Boolean,c.false).field("typeAnnotation",p,c.null),["ClassDeclaration","ClassExpression"].forEach(function(g){u(g).field("typeParameters",v,c.null).field("superTypeParameters",h(u("TypeParameterInstantiation"),u("TSTypeParameterInstantiation"),null),c.null).field("implements",h([u("ClassImplements")],[u("TSExpressionWithTypeArguments")]),c.emptyArray)})}e.default=s,(0,r.maybeSetModuleExports)(function(){return t})})(qa,qa.exports)),qa.exports}Ua.exports;var Qy;function Zb(){return Qy||(Qy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(tl()),r=i.__importDefault(jb()),s=i.__importDefault(At()),a=i.__importStar(ft());function l(u){u.use(n.default),u.use(r.default);var h=u.use(s.default),c=h.Type.def,p=h.Type.or,v=u.use(a.default).defaults;c("Flow").bases("Node"),c("FlowType").bases("Flow"),c("AnyTypeAnnotation").bases("FlowType").build(),c("EmptyTypeAnnotation").bases("FlowType").build(),c("MixedTypeAnnotation").bases("FlowType").build(),c("VoidTypeAnnotation").bases("FlowType").build(),c("SymbolTypeAnnotation").bases("FlowType").build(),c("NumberTypeAnnotation").bases("FlowType").build(),c("BigIntTypeAnnotation").bases("FlowType").build(),c("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),c("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),c("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),c("StringTypeAnnotation").bases("FlowType").build(),c("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),c("BooleanTypeAnnotation").bases("FlowType").build(),c("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),c("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",c("FlowType")),c("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",c("FlowType")),c("NullLiteralTypeAnnotation").bases("FlowType").build(),c("NullTypeAnnotation").bases("FlowType").build(),c("ThisTypeAnnotation").bases("FlowType").build(),c("ExistsTypeAnnotation").bases("FlowType").build(),c("ExistentialTypeParam").bases("FlowType").build(),c("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[c("FunctionTypeParam")]).field("returnType",c("FlowType")).field("rest",p(c("FunctionTypeParam"),null)).field("typeParameters",p(c("TypeParameterDeclaration"),null)),c("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",p(c("Identifier"),null)).field("typeAnnotation",c("FlowType")).field("optional",Boolean),c("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",c("FlowType")),c("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[p(c("ObjectTypeProperty"),c("ObjectTypeSpreadProperty"))]).field("indexers",[c("ObjectTypeIndexer")],v.emptyArray).field("callProperties",[c("ObjectTypeCallProperty")],v.emptyArray).field("inexact",p(Boolean,void 0),v.undefined).field("exact",Boolean,v.false).field("internalSlots",[c("ObjectTypeInternalSlot")],v.emptyArray),c("Variance").bases("Node").build("kind").field("kind",p("plus","minus"));var g=p(c("Variance"),"plus","minus",null);c("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",p(c("Literal"),c("Identifier"))).field("value",c("FlowType")).field("optional",Boolean).field("variance",g,v.null),c("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",c("Identifier")).field("key",c("FlowType")).field("value",c("FlowType")).field("variance",g,v.null).field("static",Boolean,v.false),c("ObjectTypeCallProperty").bases("Node").build("value").field("value",c("FunctionTypeAnnotation")).field("static",Boolean,v.false),c("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",p(c("Identifier"),c("QualifiedTypeIdentifier"))).field("id",c("Identifier")),c("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",p(c("Identifier"),c("QualifiedTypeIdentifier"))).field("typeParameters",p(c("TypeParameterInstantiation"),null)),c("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",c("Identifier")).field("property",p(c("MemberTypeAnnotation"),c("GenericTypeAnnotation"))),c("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",c("FlowType")).field("indexType",c("FlowType")),c("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",c("FlowType")).field("indexType",c("FlowType")).field("optional",Boolean),c("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[c("FlowType")]),c("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[c("FlowType")]),c("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",c("FlowType")),c("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",c("FlowType")),c("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",c("Identifier")).field("value",c("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),c("TypeParameterDeclaration").bases("Node").build("params").field("params",[c("TypeParameter")]),c("TypeParameterInstantiation").bases("Node").build("params").field("params",[c("FlowType")]),c("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",g,v.null).field("bound",p(c("TypeAnnotation"),null),v.null).field("default",p(c("FlowType"),null),v.null),c("ClassProperty").field("variance",g,v.null),c("ClassImplements").bases("Node").build("id").field("id",c("Identifier")).field("superClass",p(c("Expression"),null),v.null).field("typeParameters",p(c("TypeParameterInstantiation"),null),v.null),c("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",c("ObjectTypeAnnotation")).field("extends",p([c("InterfaceExtends")],null),v.null),c("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",c("Identifier")).field("typeParameters",p(c("TypeParameterDeclaration"),null),v.null).field("body",c("ObjectTypeAnnotation")).field("extends",[c("InterfaceExtends")]),c("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),c("InterfaceExtends").bases("Node").build("id").field("id",c("Identifier")).field("typeParameters",p(c("TypeParameterInstantiation"),null),v.null),c("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",c("Identifier")).field("typeParameters",p(c("TypeParameterDeclaration"),null)).field("right",c("FlowType")),c("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),c("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",c("Identifier")).field("typeParameters",p(c("TypeParameterDeclaration"),null)).field("impltype",c("FlowType")).field("supertype",p(c("FlowType"),null)),c("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",p(c("FlowType"),null)),c("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",c("Expression")).field("typeAnnotation",c("TypeAnnotation")),c("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[c("FlowType")]),c("DeclareVariable").bases("Statement").build("id").field("id",c("Identifier")),c("DeclareFunction").bases("Statement").build("id").field("id",c("Identifier")).field("predicate",p(c("FlowPredicate"),null),v.null),c("DeclareClass").bases("InterfaceDeclaration").build("id"),c("DeclareModule").bases("Statement").build("id","body").field("id",p(c("Identifier"),c("Literal"))).field("body",c("BlockStatement")),c("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",c("TypeAnnotation")),c("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",p(c("DeclareVariable"),c("DeclareFunction"),c("DeclareClass"),c("FlowType"),c("TypeAlias"),c("DeclareOpaqueType"),c("InterfaceDeclaration"),null)).field("specifiers",[p(c("ExportSpecifier"),c("ExportBatchSpecifier"))],v.emptyArray).field("source",p(c("Literal"),null),v.null),c("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",p(c("Literal"),null),v.null),c("ImportDeclaration").field("importKind",p("value","type","typeof"),function(){return"value"}),c("FlowPredicate").bases("Flow"),c("InferredPredicate").bases("FlowPredicate").build(),c("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",c("Expression")),c("Function").field("predicate",p(c("FlowPredicate"),null),v.null),c("CallExpression").field("typeArguments",p(null,c("TypeParameterInstantiation")),v.null),c("NewExpression").field("typeArguments",p(null,c("TypeParameterInstantiation")),v.null),c("EnumDeclaration").bases("Declaration").build("id","body").field("id",c("Identifier")).field("body",p(c("EnumBooleanBody"),c("EnumNumberBody"),c("EnumStringBody"),c("EnumSymbolBody"))),c("EnumBooleanBody").build("members","explicitType").field("members",[c("EnumBooleanMember")]).field("explicitType",Boolean),c("EnumNumberBody").build("members","explicitType").field("members",[c("EnumNumberMember")]).field("explicitType",Boolean),c("EnumStringBody").build("members","explicitType").field("members",p([c("EnumStringMember")],[c("EnumDefaultedMember")])).field("explicitType",Boolean),c("EnumSymbolBody").build("members").field("members",[c("EnumDefaultedMember")]),c("EnumBooleanMember").build("id","init").field("id",c("Identifier")).field("init",p(c("Literal"),Boolean)),c("EnumNumberMember").build("id","init").field("id",c("Identifier")).field("init",c("Literal")),c("EnumStringMember").build("id","init").field("id",c("Identifier")).field("init",c("Literal")),c("EnumDefaultedMember").build("id").field("id",c("Identifier"))}e.default=l,(0,a.maybeSetModuleExports)(function(){return t})})(Ua,Ua.exports)),Ua.exports}var Wa={exports:{}};Wa.exports;var Fy;function b$(){return Fy||(Fy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(tl()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){l.use(n.default);var u=l.use(r.default),h=l.use(s.default).defaults,c=u.Type.def,p=u.Type.or;c("VariableDeclaration").field("declarations",[p(c("VariableDeclarator"),c("Identifier"))]),c("Property").field("value",p(c("Expression"),c("Pattern"))),c("ArrayPattern").field("elements",[p(c("Pattern"),c("SpreadElement"),null)]),c("ObjectPattern").field("properties",[p(c("Property"),c("PropertyPattern"),c("SpreadPropertyPattern"),c("SpreadProperty"))]),c("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),c("ExportBatchSpecifier").bases("Specifier").build(),c("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",p(c("Declaration"),c("Expression"),null)).field("specifiers",[p(c("ExportSpecifier"),c("ExportBatchSpecifier"))],h.emptyArray).field("source",p(c("Literal"),null),h.null),c("Block").bases("Comment").build("value","leading","trailing"),c("Line").bases("Comment").build("value","leading","trailing")}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Wa,Wa.exports)),Wa.exports}var Ya={exports:{}},Ga={exports:{}};Ga.exports;var Ry;function Vb(){return Ry||(Ry=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(tl()),r=i.__importDefault(At()),s=i.__importStar(ft());function a(l){var u,h,c,p,v;l.use(n.default);var g=l.use(r.default),b=l.use(s.default).defaults,m=g.Type.def,x=g.Type.or,O=g.builtInTypes.undefined;m("Noop").bases("Statement").build(),m("DoExpression").bases("Expression").build("body").field("body",[m("Statement")]),m("BindExpression").bases("Expression").build("object","callee").field("object",x(m("Expression"),null)).field("callee",m("Expression")),m("ParenthesizedExpression").bases("Expression").build("expression").field("expression",m("Expression")),m("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",m("Identifier")),m("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",m("Identifier")),m("CommentBlock").bases("Comment").build("value","leading","trailing"),m("CommentLine").bases("Comment").build("value","leading","trailing"),m("Directive").bases("Node").build("value").field("value",m("DirectiveLiteral")),m("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,b["use strict"]),m("InterpreterDirective").bases("Node").build("value").field("value",String),m("BlockStatement").bases("Statement").build("body").field("body",[m("Statement")]).field("directives",[m("Directive")],b.emptyArray),m("Program").bases("Node").build("body").field("body",[m("Statement")]).field("directives",[m("Directive")],b.emptyArray).field("interpreter",x(m("InterpreterDirective"),null),b.null);function P(E,k){return E===void 0&&(E=String),["extra",{rawValue:E,raw:String},function(){var $=g.getFieldValue(this,"value");return{rawValue:$,raw:k?k($):String($)}}]}(u=m("StringLiteral").bases("Literal").build("value").field("value",String)).field.apply(u,P(String,function(E){return JSON.stringify(E)})),(h=m("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",x(String,null),b.null)).field.apply(h,P(Number)),(c=m("BigIntLiteral").bases("Literal").build("value").field("value",x(String,Number))).field.apply(c,P(String,function(E){return E+"n"})),(p=m("DecimalLiteral").bases("Literal").build("value").field("value",String)).field.apply(p,P(String,function(E){return E+"m"})),m("NullLiteral").bases("Literal").build().field("value",null,b.null),m("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),(v=m("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(v,P(x(RegExp,O),function(E){return"/".concat(E.pattern,"/").concat(E.flags||"")})).field("regex",{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var S=x(m("Property"),m("ObjectMethod"),m("ObjectProperty"),m("SpreadProperty"),m("SpreadElement"));m("ObjectExpression").bases("Expression").build("properties").field("properties",[S]),m("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",x("method","get","set")).field("key",x(m("Literal"),m("Identifier"),m("Expression"))).field("params",[m("Pattern")]).field("body",m("BlockStatement")).field("computed",Boolean,b.false).field("generator",Boolean,b.false).field("async",Boolean,b.false).field("accessibility",x(m("Literal"),null),b.null).field("decorators",x([m("Decorator")],null),b.null),m("ObjectProperty").bases("Node").build("key","value").field("key",x(m("Literal"),m("Identifier"),m("Expression"))).field("value",x(m("Expression"),m("Pattern"))).field("accessibility",x(m("Literal"),null),b.null).field("computed",Boolean,b.false);var w=x(m("MethodDefinition"),m("VariableDeclarator"),m("ClassPropertyDefinition"),m("ClassProperty"),m("ClassPrivateProperty"),m("ClassMethod"),m("ClassPrivateMethod"),m("ClassAccessorProperty"),m("StaticBlock"));m("ClassBody").bases("Declaration").build("body").field("body",[w]),m("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",x(m("Literal"),m("Identifier"),m("Expression"))),m("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",m("PrivateName")),m("ClassAccessorProperty").bases("Declaration").build("key","value","decorators","computed","static").field("key",x(m("Literal"),m("Identifier"),m("PrivateName"),m("Expression"))).field("value",x(m("Expression"),null),b.null),["ClassMethod","ClassPrivateMethod"].forEach(function(E){m(E).field("kind",x("get","set","method","constructor"),function(){return"method"}).field("body",m("BlockStatement")).field("access",x("public","private","protected",null),b.null)}),["ClassMethod","ClassPrivateMethod","ClassAccessorProperty"].forEach(function(E){m(E).field("computed",Boolean,b.false).field("static",Boolean,b.false).field("abstract",Boolean,b.false).field("accessibility",x("public","private","protected",null),b.null).field("decorators",x([m("Decorator")],null),b.null).field("definite",Boolean,b.false).field("optional",Boolean,b.false).field("override",Boolean,b.false).field("readonly",Boolean,b.false)});var C=x(m("Property"),m("PropertyPattern"),m("SpreadPropertyPattern"),m("SpreadProperty"),m("ObjectProperty"),m("RestProperty"),m("RestElement"));m("ObjectPattern").bases("Pattern").build("properties").field("properties",[C]).field("decorators",x([m("Decorator")],null),b.null),m("SpreadProperty").bases("Node").build("argument").field("argument",m("Expression")),m("RestProperty").bases("Node").build("argument").field("argument",m("Expression")),m("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",x(m("VariableDeclaration"),m("Expression"))).field("right",m("Expression")).field("body",m("Statement")),m("Import").bases("Expression").build()}e.default=a,(0,s.maybeSetModuleExports)(function(){return t})})(Ga,Ga.exports)),Ga.exports}Ya.exports;var zy;function S$(){return zy||(zy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(At()),r=i.__importDefault(Vb()),s=i.__importDefault(Zb()),a=ft();function l(u){var h=u.use(n.default),c=h.Type.def;u.use(r.default),u.use(s.default),c("V8IntrinsicIdentifier").bases("Expression").build("name").field("name",String),c("TopicReference").bases("Expression").build()}e.default=l,(0,a.maybeSetModuleExports)(function(){return t})})(Ya,Ya.exports)),Ya.exports}var Ha={exports:{}};Ha.exports;var Xy;function w$(){return Xy||(Xy=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=et,n=i.__importDefault(Vb()),r=i.__importDefault(jb()),s=i.__importDefault(At()),a=i.__importStar(ft());function l(u){u.use(n.default),u.use(r.default);var h=u.use(s.default),c=h.namedTypes,p=h.Type.def,v=h.Type.or,g=u.use(a.default).defaults,b=h.Type.from(function(P,S){return!!(c.StringLiteral&&c.StringLiteral.check(P,S)||c.Literal&&c.Literal.check(P,S)&&typeof P.value=="string")},"StringLiteral");p("TSType").bases("Node");var m=v(p("Identifier"),p("TSQualifiedName"));p("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",m),p("TSHasOptionalTypeParameterInstantiation").field("typeParameters",v(p("TSTypeParameterInstantiation"),null),g.null),p("TSHasOptionalTypeParameters").field("typeParameters",v(p("TSTypeParameterDeclaration"),null,void 0),g.null),p("TSHasOptionalTypeAnnotation").field("typeAnnotation",v(p("TSTypeAnnotation"),null),g.null),p("TSQualifiedName").bases("Node").build("left","right").field("left",m).field("right",m),p("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",p("Expression")).field("typeAnnotation",p("TSType")).field("extra",v({parenthesized:Boolean},null),g.null),p("TSTypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",p("Expression")).field("typeAnnotation",p("TSType")),p("TSSatisfiesExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",p("Expression")).field("typeAnnotation",p("TSType")),p("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",p("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSIntrinsicKeyword","TSThisType"].forEach(function(P){p(P).bases("TSType").build()}),p("TSArrayType").bases("TSType").build("elementType").field("elementType",p("TSType")),p("TSLiteralType").bases("TSType").build("literal").field("literal",v(p("NumericLiteral"),p("StringLiteral"),p("BooleanLiteral"),p("TemplateLiteral"),p("UnaryExpression"),p("BigIntLiteral"))),p("TemplateLiteral").field("expressions",v([p("Expression")],[p("TSType")])),["TSUnionType","TSIntersectionType"].forEach(function(P){p(P).bases("TSType").build("types").field("types",[p("TSType")])}),p("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",p("TSType")).field("extendsType",p("TSType")).field("trueType",p("TSType")).field("falseType",p("TSType")),p("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",p("TSTypeParameter")),p("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",p("TSType"));var x=[v(p("Identifier"),p("RestElement"),p("ArrayPattern"),p("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(function(P){p(P).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",x)}),p("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,g.false).field("async",Boolean,g.false).field("generator",Boolean,g.false).field("id",v(p("Identifier"),null),g.null).field("params",[p("Pattern")]).field("returnType",v(p("TSTypeAnnotation"),p("Noop"),null),g.null),p("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,g.false).field("generator",Boolean,g.false).field("params",[p("Pattern")]).field("abstract",Boolean,g.false).field("accessibility",v("public","private","protected",void 0),g.undefined).field("static",Boolean,g.false).field("computed",Boolean,g.false).field("optional",Boolean,g.false).field("key",v(p("Identifier"),p("StringLiteral"),p("NumericLiteral"),p("Expression"))).field("kind",v("get","set","method","constructor"),function(){return"method"}).field("access",v("public","private","protected",void 0),g.undefined).field("decorators",v([p("Decorator")],null),g.null).field("returnType",v(p("TSTypeAnnotation"),p("Noop"),null),g.null),p("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",v(Boolean,"+","-"),g.false).field("typeParameter",p("TSTypeParameter")).field("optional",v(Boolean,"+","-"),g.false).field("typeAnnotation",v(p("TSType"),null),g.null),p("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[v(p("TSType"),p("TSNamedTupleMember"))]),p("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",p("Identifier")).field("optional",Boolean,g.false).field("elementType",p("TSType")),p("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",p("TSType")),p("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",p("TSType")),p("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",p("TSType")).field("indexType",p("TSType")),p("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",p("TSType")),p("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",v(p("TSType"),p("TSTypeAnnotation"))),p("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[p("Identifier")]).field("readonly",Boolean,g.false),p("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",p("Expression")).field("computed",Boolean,g.false).field("readonly",Boolean,g.false).field("optional",Boolean,g.false).field("initializer",v(p("Expression"),null),g.null),p("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",p("Expression")).field("computed",Boolean,g.false).field("optional",Boolean,g.false).field("parameters",x),p("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",v(p("Identifier"),p("TSThisType"))).field("typeAnnotation",v(p("TSTypeAnnotation"),null),g.null).field("asserts",Boolean,g.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(function(P){p(P).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",x)}),p("TSEnumMember").bases("Node").build("id","initializer").field("id",v(p("Identifier"),b)).field("initializer",v(p("Expression"),null),g.null),p("TSTypeQuery").bases("TSType").build("exprName").field("exprName",v(m,p("TSImportType")));var O=v(p("TSCallSignatureDeclaration"),p("TSConstructSignatureDeclaration"),p("TSIndexSignature"),p("TSMethodSignature"),p("TSPropertySignature"));p("TSTypeLiteral").bases("TSType").build("members").field("members",[O]),p("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",v(p("Identifier"),String)).field("constraint",v(p("TSType"),void 0),g.undefined).field("default",v(p("TSType"),void 0),g.undefined),p("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",p("TSType")).field("expression",p("Expression")).field("extra",v({parenthesized:Boolean},null),g.null),p("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[p("TSTypeParameter")]),p("TSInstantiationExpression").bases("Expression","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",p("Expression")),p("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[p("TSType")]),p("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",p("Identifier")).field("const",Boolean,g.false).field("declare",Boolean,g.false).field("members",[p("TSEnumMember")]).field("initializer",v(p("Expression"),null),g.null),p("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",p("Identifier")).field("declare",Boolean,g.false).field("typeAnnotation",p("TSType")),p("TSModuleBlock").bases("Node").build("body").field("body",[p("Statement")]),p("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",v(b,m)).field("declare",Boolean,g.false).field("global",Boolean,g.false).field("body",v(p("TSModuleBlock"),p("TSModuleDeclaration"),null),g.null),p("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",b).field("qualifier",v(m,void 0),g.undefined),p("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",p("Identifier")).field("isExport",Boolean,g.false).field("moduleReference",v(m,p("TSExternalModuleReference"))),p("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",b),p("TSExportAssignment").bases("Statement").build("expression").field("expression",p("Expression")),p("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",p("Identifier")),p("TSInterfaceBody").bases("Node").build("body").field("body",[O]),p("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",m),p("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",m).field("declare",Boolean,g.false).field("extends",v([p("TSExpressionWithTypeArguments")],null),g.null).field("body",p("TSInterfaceBody")),p("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",v("public","private","protected",void 0),g.undefined).field("readonly",Boolean,g.false).field("parameter",v(p("Identifier"),p("AssignmentPattern"))),p("ClassProperty").field("access",v("public","private","protected",void 0),g.undefined),p("ClassAccessorProperty").bases("Declaration","TSHasOptionalTypeAnnotation"),p("ClassBody").field("body",[v(p("MethodDefinition"),p("VariableDeclarator"),p("ClassPropertyDefinition"),p("ClassProperty"),p("ClassPrivateProperty"),p("ClassAccessorProperty"),p("ClassMethod"),p("ClassPrivateMethod"),p("StaticBlock"),p("TSDeclareMethod"),O)])}e.default=l,(0,a.maybeSetModuleExports)(function(){return t})})(Ha,Ha.exports)),Ha.exports}var Dh={},jy;function P$(){return jy||(jy=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.namedTypes=void 0,t.namedTypes||(t.namedTypes={})})(Dh)),Dh}var Zy;function ir(){return Zy||(Zy=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.visit=t.use=t.Type=t.someField=t.PathVisitor=t.Path=t.NodePath=t.namedTypes=t.getSupertypeNames=t.getFieldValue=t.getFieldNames=t.getBuilderName=t.finalize=t.eachField=t.defineMethod=t.builtInTypes=t.builders=t.astNodesAreEquivalent=void 0;var e=et,i=e.__importDefault(u$()),n=e.__importDefault(tl()),r=e.__importDefault(x$()),s=e.__importDefault(Zb()),a=e.__importDefault(b$()),l=e.__importDefault(S$()),u=e.__importDefault(w$()),h=P$();Object.defineProperty(t,"namedTypes",{enumerable:!0,get:function(){return h.namedTypes}});var c=(0,i.default)([n.default,r.default,s.default,a.default,l.default,u.default]),p=c.astNodesAreEquivalent,v=c.builders,g=c.builtInTypes,b=c.defineMethod,m=c.eachField,x=c.finalize,O=c.getBuilderName,P=c.getFieldNames,S=c.getFieldValue,w=c.getSupertypeNames,C=c.namedTypes,E=c.NodePath,k=c.Path,A=c.PathVisitor,$=c.someField,F=c.Type,I=c.use,B=c.visit;t.astNodesAreEquivalent=p,t.builders=v,t.builtInTypes=g,t.defineMethod=b,t.eachField=m,t.finalize=x,t.getBuilderName=O,t.getFieldNames=P,t.getFieldValue=S,t.getSupertypeNames=w,t.NodePath=E,t.Path=k,t.PathVisitor=A,t.someField=$,t.Type=F,t.use=I,t.visit=B,Object.assign(h.namedTypes,C)})(Ah)),Ah}var oa={},_h,Vy;function hr(){if(Vy)return _h;Vy=1;var t="Invariant failed";function e(i,n){if(!i)throw new Error(t)}return _h=e,_h}var la={},pt={},ua={},Ih={},Rl={},zl={},Uy;function T$(){if(Uy)return zl;Uy=1;var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return zl.encode=function(e){if(0<=e&&e<t.length)return t[e];throw new TypeError("Must be between 0 and 63: "+e)},zl.decode=function(e){var i=65,n=90,r=97,s=122,a=48,l=57,u=43,h=47,c=26,p=52;return i<=e&&e<=n?e-i:r<=e&&e<=s?e-r+c:a<=e&&e<=l?e-a+p:e==u?62:e==h?63:-1},zl}var qy;function Ub(){if(qy)return Rl;qy=1;var t=T$(),e=5,i=1<<e,n=i-1,r=i;function s(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var u=(l&1)===1,h=l>>1;return u?-h:h}return Rl.encode=function(u){var h="",c,p=s(u);do c=p&n,p>>>=e,p>0&&(c|=r),h+=t.encode(c);while(p>0);return h},Rl.decode=function(u,h,c){var p=u.length,v=0,g=0,b,m;do{if(h>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(m=t.decode(u.charCodeAt(h++)),m===-1)throw new Error("Invalid base64 digit: "+u.charAt(h-1));b=!!(m&r),m&=n,v=v+(m<<g),g+=e}while(b);c.value=a(v),c.rest=h},Rl}var Nh={},Wy;function il(){return Wy||(Wy=1,(function(t){function e(w,C,E){if(C in w)return w[C];if(arguments.length===3)return E;throw new Error('"'+C+'" is a required argument.')}t.getArg=e;var i=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(w){var C=w.match(i);return C?{scheme:C[1],auth:C[2],host:C[3],port:C[4],path:C[5]}:null}t.urlParse=r;function s(w){var C="";return w.scheme&&(C+=w.scheme+":"),C+="//",w.auth&&(C+=w.auth+"@"),w.host&&(C+=w.host),w.port&&(C+=":"+w.port),w.path&&(C+=w.path),C}t.urlGenerate=s;function a(w){var C=w,E=r(w);if(E){if(!E.path)return w;C=E.path}for(var k=t.isAbsolute(C),A=C.split(/\/+/),$,F=0,I=A.length-1;I>=0;I--)$=A[I],$==="."?A.splice(I,1):$===".."?F++:F>0&&($===""?(A.splice(I+1,F),F=0):(A.splice(I,2),F--));return C=A.join("/"),C===""&&(C=k?"/":"."),E?(E.path=C,s(E)):C}t.normalize=a;function l(w,C){w===""&&(w="."),C===""&&(C=".");var E=r(C),k=r(w);if(k&&(w=k.path||"/"),E&&!E.scheme)return k&&(E.scheme=k.scheme),s(E);if(E||C.match(n))return C;if(k&&!k.host&&!k.path)return k.host=C,s(k);var A=C.charAt(0)==="/"?C:a(w.replace(/\/+$/,"")+"/"+C);return k?(k.path=A,s(k)):A}t.join=l,t.isAbsolute=function(w){return w.charAt(0)==="/"||i.test(w)};function u(w,C){w===""&&(w="."),w=w.replace(/\/$/,"");for(var E=0;C.indexOf(w+"/")!==0;){var k=w.lastIndexOf("/");if(k<0||(w=w.slice(0,k),w.match(/^([^\/]+:\/)?\/*$/)))return C;++E}return Array(E+1).join("../")+C.substr(w.length+1)}t.relative=u;var h=(function(){var w=Object.create(null);return!("__proto__"in w)})();function c(w){return w}function p(w){return g(w)?"$"+w:w}t.toSetString=h?c:p;function v(w){return g(w)?w.slice(1):w}t.fromSetString=h?c:v;function g(w){if(!w)return!1;var C=w.length;if(C<9||w.charCodeAt(C-1)!==95||w.charCodeAt(C-2)!==95||w.charCodeAt(C-3)!==111||w.charCodeAt(C-4)!==116||w.charCodeAt(C-5)!==111||w.charCodeAt(C-6)!==114||w.charCodeAt(C-7)!==112||w.charCodeAt(C-8)!==95||w.charCodeAt(C-9)!==95)return!1;for(var E=C-10;E>=0;E--)if(w.charCodeAt(E)!==36)return!1;return!0}function b(w,C,E){var k=x(w.source,C.source);return k!==0||(k=w.originalLine-C.originalLine,k!==0)||(k=w.originalColumn-C.originalColumn,k!==0||E)||(k=w.generatedColumn-C.generatedColumn,k!==0)||(k=w.generatedLine-C.generatedLine,k!==0)?k:x(w.name,C.name)}t.compareByOriginalPositions=b;function m(w,C,E){var k=w.generatedLine-C.generatedLine;return k!==0||(k=w.generatedColumn-C.generatedColumn,k!==0||E)||(k=x(w.source,C.source),k!==0)||(k=w.originalLine-C.originalLine,k!==0)||(k=w.originalColumn-C.originalColumn,k!==0)?k:x(w.name,C.name)}t.compareByGeneratedPositionsDeflated=m;function x(w,C){return w===C?0:w===null?1:C===null?-1:w>C?1:-1}function O(w,C){var E=w.generatedLine-C.generatedLine;return E!==0||(E=w.generatedColumn-C.generatedColumn,E!==0)||(E=x(w.source,C.source),E!==0)||(E=w.originalLine-C.originalLine,E!==0)||(E=w.originalColumn-C.originalColumn,E!==0)?E:x(w.name,C.name)}t.compareByGeneratedPositionsInflated=O;function P(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=P;function S(w,C,E){if(C=C||"",w&&(w[w.length-1]!=="/"&&C[0]!=="/"&&(w+="/"),C=w+C),E){var k=r(E);if(!k)throw new Error("sourceMapURL could not be parsed");if(k.path){var A=k.path.lastIndexOf("/");A>=0&&(k.path=k.path.substring(0,A+1))}C=l(s(k),C)}return a(C)}t.computeSourceURL=S})(Nh)),Nh}var Mh={},Yy;function qb(){if(Yy)return Mh;Yy=1;var t=il(),e=Object.prototype.hasOwnProperty,i=typeof Map<"u";function n(){this._array=[],this._set=i?new Map:Object.create(null)}return n.fromArray=function(s,a){for(var l=new n,u=0,h=s.length;u<h;u++)l.add(s[u],a);return l},n.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(s,a){var l=i?s:t.toSetString(s),u=i?this.has(s):e.call(this._set,l),h=this._array.length;(!u||a)&&this._array.push(s),u||(i?this._set.set(s,h):this._set[l]=h)},n.prototype.has=function(s){if(i)return this._set.has(s);var a=t.toSetString(s);return e.call(this._set,a)},n.prototype.indexOf=function(s){if(i){var a=this._set.get(s);if(a>=0)return a}else{var l=t.toSetString(s);if(e.call(this._set,l))return this._set[l]}throw new Error('"'+s+'" is not in the set.')},n.prototype.at=function(s){if(s>=0&&s<this._array.length)return this._array[s];throw new Error("No element indexed by "+s)},n.prototype.toArray=function(){return this._array.slice()},Mh.ArraySet=n,Mh}var $h={},Gy;function C$(){if(Gy)return $h;Gy=1;var t=il();function e(n,r){var s=n.generatedLine,a=r.generatedLine,l=n.generatedColumn,u=r.generatedColumn;return a>s||a==s&&u>=l||t.compareByGeneratedPositionsInflated(n,r)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return i.prototype.unsortedForEach=function(r,s){this._array.forEach(r,s)},i.prototype.add=function(r){e(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},$h.MappingList=i,$h}var Hy;function Wb(){if(Hy)return Ih;Hy=1;var t=Ub(),e=il(),i=qb().ArraySet,n=C$().MappingList;function r(s){s||(s={}),this._file=e.getArg(s,"file",null),this._sourceRoot=e.getArg(s,"sourceRoot",null),this._skipValidation=e.getArg(s,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new n,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var l=a.sourceRoot,u=new r({file:a.file,sourceRoot:l});return a.eachMapping(function(h){var c={generated:{line:h.generatedLine,column:h.generatedColumn}};h.source!=null&&(c.source=h.source,l!=null&&(c.source=e.relative(l,c.source)),c.original={line:h.originalLine,column:h.originalColumn},h.name!=null&&(c.name=h.name)),u.addMapping(c)}),a.sources.forEach(function(h){var c=h;l!==null&&(c=e.relative(l,h)),u._sources.has(c)||u._sources.add(c);var p=a.sourceContentFor(h);p!=null&&u.setSourceContent(h,p)}),u},r.prototype.addMapping=function(a){var l=e.getArg(a,"generated"),u=e.getArg(a,"original",null),h=e.getArg(a,"source",null),c=e.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,u,h,c),h!=null&&(h=String(h),this._sources.has(h)||this._sources.add(h)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:h,name:c})},r.prototype.setSourceContent=function(a,l){var u=a;this._sourceRoot!=null&&(u=e.relative(this._sourceRoot,u)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[e.toSetString(u)]=l):this._sourcesContents&&(delete this._sourcesContents[e.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(a,l,u){var h=l;if(l==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);h=a.file}var c=this._sourceRoot;c!=null&&(h=e.relative(c,h));var p=new i,v=new i;this._mappings.unsortedForEach(function(g){if(g.source===h&&g.originalLine!=null){var b=a.originalPositionFor({line:g.originalLine,column:g.originalColumn});b.source!=null&&(g.source=b.source,u!=null&&(g.source=e.join(u,g.source)),c!=null&&(g.source=e.relative(c,g.source)),g.originalLine=b.line,g.originalColumn=b.column,b.name!=null&&(g.name=b.name))}var m=g.source;m!=null&&!p.has(m)&&p.add(m);var x=g.name;x!=null&&!v.has(x)&&v.add(x)},this),this._sources=p,this._names=v,a.sources.forEach(function(g){var b=a.sourceContentFor(g);b!=null&&(u!=null&&(g=e.join(u,g)),c!=null&&(g=e.relative(c,g)),this.setSourceContent(g,b))},this)},r.prototype._validateMapping=function(a,l,u,h){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!l&&!u&&!h)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:u,original:l,name:h}))}},r.prototype._serializeMappings=function(){for(var a=0,l=1,u=0,h=0,c=0,p=0,v="",g,b,m,x,O=this._mappings.toArray(),P=0,S=O.length;P<S;P++){if(b=O[P],g="",b.generatedLine!==l)for(a=0;b.generatedLine!==l;)g+=";",l++;else if(P>0){if(!e.compareByGeneratedPositionsInflated(b,O[P-1]))continue;g+=","}g+=t.encode(b.generatedColumn-a),a=b.generatedColumn,b.source!=null&&(x=this._sources.indexOf(b.source),g+=t.encode(x-p),p=x,g+=t.encode(b.originalLine-1-h),h=b.originalLine-1,g+=t.encode(b.originalColumn-u),u=b.originalColumn,b.name!=null&&(m=this._names.indexOf(b.name),g+=t.encode(m-c),c=m)),v+=g}return v},r.prototype._generateSourcesContent=function(a,l){return a.map(function(u){if(!this._sourcesContents)return null;l!=null&&(u=e.relative(l,u));var h=e.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,h)?this._sourcesContents[h]:null},this)},r.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ih.SourceMapGenerator=r,Ih}var ca={},Lh={},Jy;function k$(){return Jy||(Jy=1,(function(t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2;function e(i,n,r,s,a,l){var u=Math.floor((n-i)/2)+i,h=a(r,s[u],!0);return h===0?u:h>0?n-u>1?e(u,n,r,s,a,l):l==t.LEAST_UPPER_BOUND?n<s.length?n:-1:u:u-i>1?e(i,u,r,s,a,l):l==t.LEAST_UPPER_BOUND?u:i<0?-1:i}t.search=function(n,r,s,a){if(r.length===0)return-1;var l=e(-1,r.length,n,r,s,a||t.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&s(r[l],r[l-1],!0)===0;)--l;return l}})(Lh)),Lh}var Bh={},Ky;function E$(){if(Ky)return Bh;Ky=1;function t(n,r,s){var a=n[r];n[r]=n[s],n[s]=a}function e(n,r){return Math.round(n+Math.random()*(r-n))}function i(n,r,s,a){if(s<a){var l=e(s,a),u=s-1;t(n,l,a);for(var h=n[a],c=s;c<a;c++)r(n[c],h)<=0&&(u+=1,t(n,u,c));t(n,u+1,c);var p=u+1;i(n,r,s,p-1),i(n,r,p+1,a)}}return Bh.quickSort=function(n,r){i(n,r,0,n.length-1)},Bh}var e0;function A$(){if(e0)return ca;e0=1;var t=il(),e=k$(),i=qb().ArraySet,n=Ub(),r=E$().quickSort;function s(h,c){var p=h;return typeof h=="string"&&(p=t.parseSourceMapInput(h)),p.sections!=null?new u(p,c):new a(p,c)}s.fromSourceMap=function(h,c){return a.fromSourceMap(h,c)},s.prototype._version=3,s.prototype.__generatedMappings=null,Object.defineProperty(s.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),s.prototype.__originalMappings=null,Object.defineProperty(s.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),s.prototype._charIsMappingSeparator=function(c,p){var v=c.charAt(p);return v===";"||v===","},s.prototype._parseMappings=function(c,p){throw new Error("Subclasses must implement _parseMappings")},s.GENERATED_ORDER=1,s.ORIGINAL_ORDER=2,s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2,s.prototype.eachMapping=function(c,p,v){var g=p||null,b=v||s.GENERATED_ORDER,m;switch(b){case s.GENERATED_ORDER:m=this._generatedMappings;break;case s.ORIGINAL_ORDER:m=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;m.map(function(O){var P=O.source===null?null:this._sources.at(O.source);return P=t.computeSourceURL(x,P,this._sourceMapURL),{source:P,generatedLine:O.generatedLine,generatedColumn:O.generatedColumn,originalLine:O.originalLine,originalColumn:O.originalColumn,name:O.name===null?null:this._names.at(O.name)}},this).forEach(c,g)},s.prototype.allGeneratedPositionsFor=function(c){var p=t.getArg(c,"line"),v={source:t.getArg(c,"source"),originalLine:p,originalColumn:t.getArg(c,"column",0)};if(v.source=this._findSourceIndex(v.source),v.source<0)return[];var g=[],b=this._findMapping(v,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,e.LEAST_UPPER_BOUND);if(b>=0){var m=this._originalMappings[b];if(c.column===void 0)for(var x=m.originalLine;m&&m.originalLine===x;)g.push({line:t.getArg(m,"generatedLine",null),column:t.getArg(m,"generatedColumn",null),lastColumn:t.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++b];else for(var O=m.originalColumn;m&&m.originalLine===p&&m.originalColumn==O;)g.push({line:t.getArg(m,"generatedLine",null),column:t.getArg(m,"generatedColumn",null),lastColumn:t.getArg(m,"lastGeneratedColumn",null)}),m=this._originalMappings[++b]}return g},ca.SourceMapConsumer=s;function a(h,c){var p=h;typeof h=="string"&&(p=t.parseSourceMapInput(h));var v=t.getArg(p,"version"),g=t.getArg(p,"sources"),b=t.getArg(p,"names",[]),m=t.getArg(p,"sourceRoot",null),x=t.getArg(p,"sourcesContent",null),O=t.getArg(p,"mappings"),P=t.getArg(p,"file",null);if(v!=this._version)throw new Error("Unsupported version: "+v);m&&(m=t.normalize(m)),g=g.map(String).map(t.normalize).map(function(S){return m&&t.isAbsolute(m)&&t.isAbsolute(S)?t.relative(m,S):S}),this._names=i.fromArray(b.map(String),!0),this._sources=i.fromArray(g,!0),this._absoluteSources=this._sources.toArray().map(function(S){return t.computeSourceURL(m,S,c)}),this.sourceRoot=m,this.sourcesContent=x,this._mappings=O,this._sourceMapURL=c,this.file=P}a.prototype=Object.create(s.prototype),a.prototype.consumer=s,a.prototype._findSourceIndex=function(h){var c=h;if(this.sourceRoot!=null&&(c=t.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var p;for(p=0;p<this._absoluteSources.length;++p)if(this._absoluteSources[p]==h)return p;return-1},a.fromSourceMap=function(c,p){var v=Object.create(a.prototype),g=v._names=i.fromArray(c._names.toArray(),!0),b=v._sources=i.fromArray(c._sources.toArray(),!0);v.sourceRoot=c._sourceRoot,v.sourcesContent=c._generateSourcesContent(v._sources.toArray(),v.sourceRoot),v.file=c._file,v._sourceMapURL=p,v._absoluteSources=v._sources.toArray().map(function(E){return t.computeSourceURL(v.sourceRoot,E,p)});for(var m=c._mappings.toArray().slice(),x=v.__generatedMappings=[],O=v.__originalMappings=[],P=0,S=m.length;P<S;P++){var w=m[P],C=new l;C.generatedLine=w.generatedLine,C.generatedColumn=w.generatedColumn,w.source&&(C.source=b.indexOf(w.source),C.originalLine=w.originalLine,C.originalColumn=w.originalColumn,w.name&&(C.name=g.indexOf(w.name)),O.push(C)),x.push(C)}return r(v.__originalMappings,t.compareByOriginalPositions),v},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(c,p){for(var v=1,g=0,b=0,m=0,x=0,O=0,P=c.length,S=0,w={},C={},E=[],k=[],A,$,F,I,B;S<P;)if(c.charAt(S)===";")v++,S++,g=0;else if(c.charAt(S)===",")S++;else{for(A=new l,A.generatedLine=v,I=S;I<P&&!this._charIsMappingSeparator(c,I);I++);if($=c.slice(S,I),F=w[$],F)S+=$.length;else{for(F=[];S<I;)n.decode(c,S,C),B=C.value,S=C.rest,F.push(B);if(F.length===2)throw new Error("Found a source, but no line and column");if(F.length===3)throw new Error("Found a source and line, but no column");w[$]=F}A.generatedColumn=g+F[0],g=A.generatedColumn,F.length>1&&(A.source=x+F[1],x+=F[1],A.originalLine=b+F[2],b=A.originalLine,A.originalLine+=1,A.originalColumn=m+F[3],m=A.originalColumn,F.length>4&&(A.name=O+F[4],O+=F[4])),k.push(A),typeof A.originalLine=="number"&&E.push(A)}r(k,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=k,r(E,t.compareByOriginalPositions),this.__originalMappings=E},a.prototype._findMapping=function(c,p,v,g,b,m){if(c[v]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[v]);if(c[g]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[g]);return e.search(c,p,b,m)},a.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var p=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var v=this._generatedMappings[c+1];if(p.generatedLine===v.generatedLine){p.lastGeneratedColumn=v.generatedColumn-1;continue}}p.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(c){var p={generatedLine:t.getArg(c,"line"),generatedColumn:t.getArg(c,"column")},v=this._findMapping(p,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(c,"bias",s.GREATEST_LOWER_BOUND));if(v>=0){var g=this._generatedMappings[v];if(g.generatedLine===p.generatedLine){var b=t.getArg(g,"source",null);b!==null&&(b=this._sources.at(b),b=t.computeSourceURL(this.sourceRoot,b,this._sourceMapURL));var m=t.getArg(g,"name",null);return m!==null&&(m=this._names.at(m)),{source:b,line:t.getArg(g,"originalLine",null),column:t.getArg(g,"originalColumn",null),name:m}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},a.prototype.sourceContentFor=function(c,p){if(!this.sourcesContent)return null;var v=this._findSourceIndex(c);if(v>=0)return this.sourcesContent[v];var g=c;this.sourceRoot!=null&&(g=t.relative(this.sourceRoot,g));var b;if(this.sourceRoot!=null&&(b=t.urlParse(this.sourceRoot))){var m=g.replace(/^file:\/\//,"");if(b.scheme=="file"&&this._sources.has(m))return this.sourcesContent[this._sources.indexOf(m)];if((!b.path||b.path=="/")&&this._sources.has("/"+g))return this.sourcesContent[this._sources.indexOf("/"+g)]}if(p)return null;throw new Error('"'+g+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(c){var p=t.getArg(c,"source");if(p=this._findSourceIndex(p),p<0)return{line:null,column:null,lastColumn:null};var v={source:p,originalLine:t.getArg(c,"line"),originalColumn:t.getArg(c,"column")},g=this._findMapping(v,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(c,"bias",s.GREATEST_LOWER_BOUND));if(g>=0){var b=this._originalMappings[g];if(b.source===v.source)return{line:t.getArg(b,"generatedLine",null),column:t.getArg(b,"generatedColumn",null),lastColumn:t.getArg(b,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},ca.BasicSourceMapConsumer=a;function u(h,c){var p=h;typeof h=="string"&&(p=t.parseSourceMapInput(h));var v=t.getArg(p,"version"),g=t.getArg(p,"sections");if(v!=this._version)throw new Error("Unsupported version: "+v);this._sources=new i,this._names=new i;var b={line:-1,column:0};this._sections=g.map(function(m){if(m.url)throw new Error("Support for url field in sections not implemented.");var x=t.getArg(m,"offset"),O=t.getArg(x,"line"),P=t.getArg(x,"column");if(O<b.line||O===b.line&&P<b.column)throw new Error("Section offsets must be ordered and non-overlapping.");return b=x,{generatedOffset:{generatedLine:O+1,generatedColumn:P+1},consumer:new s(t.getArg(m,"map"),c)}})}return u.prototype=Object.create(s.prototype),u.prototype.constructor=s,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var h=[],c=0;c<this._sections.length;c++)for(var p=0;p<this._sections[c].consumer.sources.length;p++)h.push(this._sections[c].consumer.sources[p]);return h}}),u.prototype.originalPositionFor=function(c){var p={generatedLine:t.getArg(c,"line"),generatedColumn:t.getArg(c,"column")},v=e.search(p,this._sections,function(b,m){var x=b.generatedLine-m.generatedOffset.generatedLine;return x||b.generatedColumn-m.generatedOffset.generatedColumn}),g=this._sections[v];return g?g.consumer.originalPositionFor({line:p.generatedLine-(g.generatedOffset.generatedLine-1),column:p.generatedColumn-(g.generatedOffset.generatedLine===p.generatedLine?g.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(c,p){for(var v=0;v<this._sections.length;v++){var g=this._sections[v],b=g.consumer.sourceContentFor(c,!0);if(b)return b}if(p)return null;throw new Error('"'+c+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(c){for(var p=0;p<this._sections.length;p++){var v=this._sections[p];if(v.consumer._findSourceIndex(t.getArg(c,"source"))!==-1){var g=v.consumer.generatedPositionFor(c);if(g){var b={line:g.line+(v.generatedOffset.generatedLine-1),column:g.column+(v.generatedOffset.generatedLine===g.line?v.generatedOffset.generatedColumn-1:0)};return b}}}return{line:null,column:null}},u.prototype._parseMappings=function(c,p){this.__generatedMappings=[],this.__originalMappings=[];for(var v=0;v<this._sections.length;v++)for(var g=this._sections[v],b=g.consumer._generatedMappings,m=0;m<b.length;m++){var x=b[m],O=g.consumer._sources.at(x.source);O=t.computeSourceURL(g.consumer.sourceRoot,O,this._sourceMapURL),this._sources.add(O),O=this._sources.indexOf(O);var P=null;x.name&&(P=g.consumer._names.at(x.name),this._names.add(P),P=this._names.indexOf(P));var S={source:O,generatedLine:x.generatedLine+(g.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(g.generatedOffset.generatedLine===x.generatedLine?g.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:P};this.__generatedMappings.push(S),typeof S.originalLine=="number"&&this.__originalMappings.push(S)}r(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),r(this.__originalMappings,t.compareByOriginalPositions)},ca.IndexedSourceMapConsumer=u,ca}var Qh={},t0;function D$(){if(t0)return Qh;t0=1;var t=Wb().SourceMapGenerator,e=il(),i=/(\r?\n)/,n=10,r="$$$isSourceNode$$$";function s(a,l,u,h,c){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=u??null,this.name=c??null,this[r]=!0,h!=null&&this.add(h)}return s.fromStringWithSourceMap=function(l,u,h){var c=new s,p=l.split(i),v=0,g=function(){var P=w(),S=w()||"";return P+S;function w(){return v<p.length?p[v++]:void 0}},b=1,m=0,x=null;return u.eachMapping(function(P){if(x!==null)if(b<P.generatedLine)O(x,g()),b++,m=0;else{var S=p[v]||"",w=S.substr(0,P.generatedColumn-m);p[v]=S.substr(P.generatedColumn-m),m=P.generatedColumn,O(x,w),x=P;return}for(;b<P.generatedLine;)c.add(g()),b++;if(m<P.generatedColumn){var S=p[v]||"";c.add(S.substr(0,P.generatedColumn)),p[v]=S.substr(P.generatedColumn),m=P.generatedColumn}x=P},this),v<p.length&&(x&&O(x,g()),c.add(p.splice(v).join(""))),u.sources.forEach(function(P){var S=u.sourceContentFor(P);S!=null&&(h!=null&&(P=e.join(h,P)),c.setSourceContent(P,S))}),c;function O(P,S){if(P===null||P.source===void 0)c.add(S);else{var w=h?e.join(h,P.source):P.source;c.add(new s(P.originalLine,P.originalColumn,w,S,P.name))}}},s.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(u){this.add(u)},this);else if(l[r]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},s.prototype.prepend=function(l){if(Array.isArray(l))for(var u=l.length-1;u>=0;u--)this.prepend(l[u]);else if(l[r]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},s.prototype.walk=function(l){for(var u,h=0,c=this.children.length;h<c;h++)u=this.children[h],u[r]?u.walk(l):u!==""&&l(u,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(l){var u,h,c=this.children.length;if(c>0){for(u=[],h=0;h<c-1;h++)u.push(this.children[h]),u.push(l);u.push(this.children[h]),this.children=u}return this},s.prototype.replaceRight=function(l,u){var h=this.children[this.children.length-1];return h[r]?h.replaceRight(l,u):typeof h=="string"?this.children[this.children.length-1]=h.replace(l,u):this.children.push("".replace(l,u)),this},s.prototype.setSourceContent=function(l,u){this.sourceContents[e.toSetString(l)]=u},s.prototype.walkSourceContents=function(l){for(var u=0,h=this.children.length;u<h;u++)this.children[u][r]&&this.children[u].walkSourceContents(l);for(var c=Object.keys(this.sourceContents),u=0,h=c.length;u<h;u++)l(e.fromSetString(c[u]),this.sourceContents[c[u]])},s.prototype.toString=function(){var l="";return this.walk(function(u){l+=u}),l},s.prototype.toStringWithSourceMap=function(l){var u={code:"",line:1,column:0},h=new t(l),c=!1,p=null,v=null,g=null,b=null;return this.walk(function(m,x){u.code+=m,x.source!==null&&x.line!==null&&x.column!==null?((p!==x.source||v!==x.line||g!==x.column||b!==x.name)&&h.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:u.line,column:u.column},name:x.name}),p=x.source,v=x.line,g=x.column,b=x.name,c=!0):c&&(h.addMapping({generated:{line:u.line,column:u.column}}),p=null,c=!1);for(var O=0,P=m.length;O<P;O++)m.charCodeAt(O)===n?(u.line++,u.column=0,O+1===P?(p=null,c=!1):c&&h.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:u.line,column:u.column},name:x.name})):u.column++}),this.walkSourceContents(function(m,x){h.setSourceContent(m,x)}),{code:u.code,map:h}},Qh.SourceNode=s,Qh}var i0;function Yb(){return i0||(i0=1,ua.SourceMapGenerator=Wb().SourceMapGenerator,ua.SourceMapConsumer=A$().SourceMapConsumer,ua.SourceNode=D$().SourceNode),ua}var n0;function $n(){if(n0)return pt;n0=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.isTrailingCommaEnabled=pt.getParentExportDeclaration=pt.isExportDeclaration=pt.fixFaultyLocations=pt.getTrueLoc=pt.composeSourceMaps=pt.copyPos=pt.comparePos=pt.getUnionOfKeys=pt.getOption=pt.isBrowser=pt.getLineTerminator=void 0;var t=et,e=t.__importDefault(hr()),i=t.__importStar(ir()),n=i.namedTypes,r=t.__importDefault(Yb()),s=r.default.SourceMapConsumer,a=r.default.SourceMapGenerator,l=Object.prototype.hasOwnProperty;function u(){return h()?`
|
|
47
47
|
`:Bb.EOL||`
|
|
48
48
|
`}pt.getLineTerminator=u;function h(){return typeof window<"u"&&typeof window.document<"u"}pt.isBrowser=h;function c(k,A,$){return k&&l.call(k,A)?k[A]:$}pt.getOption=c;function p(){for(var k=[],A=0;A<arguments.length;A++)k[A]=arguments[A];for(var $={},F=k.length,I=0;I<F;++I)for(var B=Object.keys(k[I]),j=B.length,M=0;M<j;++M)$[B[M]]=!0;return $}pt.getUnionOfKeys=p;function v(k,A){return k.line-A.line||k.column-A.column}pt.comparePos=v;function g(k){return{line:k.line,column:k.column}}pt.copyPos=g;function b(k,A){if(k){if(!A)return k}else return A||null;var $=new s(k),F=new s(A),I=new a({file:A.file,sourceRoot:A.sourceRoot}),B={};return F.eachMapping(function(j){var M=$.originalPositionFor({line:j.originalLine,column:j.originalColumn}),q=M.source;if(q!==null){I.addMapping({source:q,original:g(M),generated:{line:j.generatedLine,column:j.generatedColumn},name:j.name});var X=$.sourceContentFor(q);X&&!l.call(B,q)&&(B[q]=X,I.setSourceContent(q,X))}}),I.toJSON()}pt.composeSourceMaps=b;function m(k,A){if(!k.loc)return null;var $={start:k.loc.start,end:k.loc.end};function F(I){x($,I.loc)}return k.declaration&&k.declaration.decorators&&w(k)&&k.declaration.decorators.forEach(F),v($.start,$.end)<0&&($.start=g($.start),A.skipSpaces($.start,!1,!0),v($.start,$.end)<0&&($.end=g($.end),A.skipSpaces($.end,!0,!0))),k.comments&&k.comments.forEach(F),$}pt.getTrueLoc=m;function x(k,A){k&&A&&(v(A.start,k.start)<0&&(k.start=A.start),v(k.end,A.end)<0&&(k.end=A.end))}function O(k,A){var $=k.loc;if($&&($.start.line<1&&($.start.line=1),$.end.line<1&&($.end.line=1)),k.type==="File"&&($.start=A.firstPos(),$.end=A.lastPos()),P(k,A),S(k,A),$&&k.decorators)k.decorators.forEach(function(j){x($,j.loc)});else if(k.declaration&&w(k)){k.declaration.loc=null;var F=k.declaration.decorators;F&&F.forEach(function(j){x($,j.loc)})}else if(n.MethodDefinition&&n.MethodDefinition.check(k)||n.Property.check(k)&&(k.method||k.shorthand))k.value.loc=null,n.FunctionExpression.check(k.value)&&(k.value.id=null);else if(k.type==="ObjectTypeProperty"){var I=k.loc,B=I&&I.end;B&&(B=g(B),A.prevPos(B)&&A.charAt(B)===","&&(B=A.skipSpaces(B,!0,!0))&&(I.end=B))}}pt.fixFaultyLocations=O;function P(k,A){if(k.type!=="ForStatement")return;function $(F){for(var I=F&&F.loc,B=I&&I.start,j=I&&g(I.end);B&&j&&v(B,j)<0&&(A.prevPos(j),A.charAt(j)===";");)I.end.line=j.line,I.end.column=j.column}$(k.init),$(k.test),$(k.update)}function S(k,A){if(k.type==="TemplateLiteral"&&k.quasis.length!==0){if(k.loc){var $=g(k.loc.start);(0,e.default)(A.charAt($)==="`"),(0,e.default)(A.nextPos($));var F=k.quasis[0];v(F.loc.start,$)<0&&(F.loc.start=$);var I=g(k.loc.end);(0,e.default)(A.prevPos(I)),(0,e.default)(A.charAt(I)==="`");var B=k.quasis[k.quasis.length-1];v(I,B.loc.end)<0&&(B.loc.end=I)}k.expressions.forEach(function(j,M){var q=A.skipSpaces(j.loc.start,!0,!1);if(A.prevPos(q)&&A.charAt(q)==="{"&&A.prevPos(q)&&A.charAt(q)==="$"){var X=k.quasis[M];v(q,X.loc.end)<0&&(X.loc.end=q)}var Y=A.skipSpaces(j.loc.end,!1,!1);if(A.charAt(Y)==="}"){(0,e.default)(A.nextPos(Y));var V=k.quasis[M+1];v(V.loc.start,Y)<0&&(V.loc.start=Y)}})}}function w(k){if(k)switch(k.type){case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}pt.isExportDeclaration=w;function C(k){var A=k.getParentNode();return k.getName()==="declaration"&&w(A)?A:null}pt.getParentExportDeclaration=C;function E(k,A){var $=k.trailingComma;return typeof $=="object"?!!$[A]:!!$}return pt.isTrailingCommaEnabled=E,pt}var ha={},Pu={exports:{}},_$=Pu.exports,r0;function Gb(){return r0||(r0=1,(function(t,e){(function(n,r){t.exports=r()})(_$,function(){return(function(i){var n={};function r(s){if(n[s])return n[s].exports;var a=n[s]={exports:{},id:s,loaded:!1};return i[s].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}return r.m=i,r.c=n,r.p="",r(0)})([function(i,n,r){Object.defineProperty(n,"__esModule",{value:!0});var s=r(1),a=r(3),l=r(8),u=r(15);function h(b,m,x){var O=null,P=function(F,I){x&&x(F,I),O&&O.visit(F,I)},S=typeof x=="function"?P:null,w=!1;if(m){w=typeof m.comment=="boolean"&&m.comment;var C=typeof m.attachComment=="boolean"&&m.attachComment;(w||C)&&(O=new s.CommentHandler,O.attach=C,m.comment=!0,S=P)}var E=!1;m&&typeof m.sourceType=="string"&&(E=m.sourceType==="module");var k;m&&typeof m.jsx=="boolean"&&m.jsx?k=new a.JSXParser(b,m,S):k=new l.Parser(b,m,S);var A=E?k.parseModule():k.parseScript(),$=A;return w&&O&&($.comments=O.comments),k.config.tokens&&($.tokens=k.tokens),k.config.tolerant&&($.errors=k.errorHandler.errors),$}n.parse=h;function c(b,m,x){var O=m||{};return O.sourceType="module",h(b,O,x)}n.parseModule=c;function p(b,m,x){var O=m||{};return O.sourceType="script",h(b,O,x)}n.parseScript=p;function v(b,m,x){var O=new u.Tokenizer(b,m),P;P=[];try{for(;;){var S=O.getNextToken();if(!S)break;x&&(S=x(S)),P.push(S)}}catch(w){O.errorHandler.tolerate(w)}return O.errorHandler.tolerant&&(P.errors=O.errors()),P}n.tokenize=v;var g=r(2);n.Syntax=g.Syntax,n.version="4.0.1"},function(i,n,r){Object.defineProperty(n,"__esModule",{value:!0});var s=r(2),a=(function(){function l(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return l.prototype.insertInnerComments=function(u,h){if(u.type===s.Syntax.BlockStatement&&u.body.length===0){for(var c=[],p=this.leading.length-1;p>=0;--p){var v=this.leading[p];h.end.offset>=v.start&&(c.unshift(v.comment),this.leading.splice(p,1),this.trailing.splice(p,1))}c.length&&(u.innerComments=c)}},l.prototype.findTrailingComments=function(u){var h=[];if(this.trailing.length>0){for(var c=this.trailing.length-1;c>=0;--c){var p=this.trailing[c];p.start>=u.end.offset&&h.unshift(p.comment)}return this.trailing.length=0,h}var v=this.stack[this.stack.length-1];if(v&&v.node.trailingComments){var g=v.node.trailingComments[0];g&&g.range[0]>=u.end.offset&&(h=v.node.trailingComments,delete v.node.trailingComments)}return h},l.prototype.findLeadingComments=function(u){for(var h=[],c;this.stack.length>0;){var p=this.stack[this.stack.length-1];if(p&&p.start>=u.start.offset)c=p.node,this.stack.pop();else break}if(c){for(var v=c.leadingComments?c.leadingComments.length:0,g=v-1;g>=0;--g){var b=c.leadingComments[g];b.range[1]<=u.start.offset&&(h.unshift(b),c.leadingComments.splice(g,1))}return c.leadingComments&&c.leadingComments.length===0&&delete c.leadingComments,h}for(var g=this.leading.length-1;g>=0;--g){var p=this.leading[g];p.start<=u.start.offset&&(h.unshift(p.comment),this.leading.splice(g,1))}return h},l.prototype.visitNode=function(u,h){if(!(u.type===s.Syntax.Program&&u.body.length>0)){this.insertInnerComments(u,h);var c=this.findTrailingComments(h),p=this.findLeadingComments(h);p.length>0&&(u.leadingComments=p),c.length>0&&(u.trailingComments=c),this.stack.push({node:u,start:h.start.offset})}},l.prototype.visitComment=function(u,h){var c=u.type[0]==="L"?"Line":"Block",p={type:c,value:u.value};if(u.range&&(p.range=u.range),u.loc&&(p.loc=u.loc),this.comments.push(p),this.attach){var v={comment:{type:c,value:u.value,range:[h.start.offset,h.end.offset]},start:h.start.offset};u.loc&&(v.comment.loc=u.loc),u.type=c,this.leading.push(v),this.trailing.push(v)}},l.prototype.visit=function(u,h){u.type==="LineComment"?this.visitComment(u,h):u.type==="BlockComment"?this.visitComment(u,h):this.attach&&this.visitNode(u,h)},l})();n.CommentHandler=a},function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(i,n,r){var s=this&&this.__extends||(function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var P in O)O.hasOwnProperty(P)&&(x[P]=O[P])};return function(x,O){m(x,O);function P(){this.constructor=x}x.prototype=O===null?Object.create(O):(P.prototype=O.prototype,new P)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=r(4),l=r(5),u=r(6),h=r(7),c=r(8),p=r(13),v=r(14);p.TokenName[100]="JSXIdentifier",p.TokenName[101]="JSXText";function g(m){var x;switch(m.type){case u.JSXSyntax.JSXIdentifier:var O=m;x=O.name;break;case u.JSXSyntax.JSXNamespacedName:var P=m;x=g(P.namespace)+":"+g(P.name);break;case u.JSXSyntax.JSXMemberExpression:var S=m;x=g(S.object)+"."+g(S.property);break}return x}var b=(function(m){s(x,m);function x(O,P,S){return m.call(this,O,P,S)||this}return x.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():m.prototype.parsePrimaryExpression.call(this)},x.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},x.prototype.finishJSX=function(){this.nextToken()},x.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},x.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},x.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},x.prototype.scanXHTMLEntity=function(O){for(var P="&",S=!0,w=!1,C=!1,E=!1;!this.scanner.eof()&&S&&!w;){var k=this.scanner.source[this.scanner.index];if(k===O)break;if(w=k===";",P+=k,++this.scanner.index,!w)switch(P.length){case 2:C=k==="#";break;case 3:C&&(E=k==="x",S=E||a.Character.isDecimalDigit(k.charCodeAt(0)),C=C&&!E);break;default:S=S&&!(C&&!a.Character.isDecimalDigit(k.charCodeAt(0))),S=S&&!(E&&!a.Character.isHexDigit(k.charCodeAt(0)));break}}if(S&&w&&P.length>2){var A=P.substr(1,P.length-2);C&&A.length>1?P=String.fromCharCode(parseInt(A.substr(1),10)):E&&A.length>2?P=String.fromCharCode(parseInt("0"+A.substr(1),16)):!C&&!E&&v.XHTMLEntities[A]&&(P=v.XHTMLEntities[A])}return P},x.prototype.lexJSX=function(){var O=this.scanner.source.charCodeAt(this.scanner.index);if(O===60||O===62||O===47||O===58||O===61||O===123||O===125){var P=this.scanner.source[this.scanner.index++];return{type:7,value:P,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(O===34||O===39){for(var S=this.scanner.index,w=this.scanner.source[this.scanner.index++],C="";!this.scanner.eof();){var E=this.scanner.source[this.scanner.index++];if(E===w)break;E==="&"?C+=this.scanXHTMLEntity(w):C+=E}return{type:8,value:C,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:S,end:this.scanner.index}}if(O===46){var k=this.scanner.source.charCodeAt(this.scanner.index+1),A=this.scanner.source.charCodeAt(this.scanner.index+2),P=k===46&&A===46?"...":".",S=this.scanner.index;return this.scanner.index+=P.length,{type:7,value:P,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:S,end:this.scanner.index}}if(O===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(a.Character.isIdentifierStart(O)&&O!==92){var S=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var E=this.scanner.source.charCodeAt(this.scanner.index);if(a.Character.isIdentifierPart(E)&&E!==92)++this.scanner.index;else if(E===45)++this.scanner.index;else break}var $=this.scanner.source.slice(S,this.scanner.index);return{type:100,value:$,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:S,end:this.scanner.index}}return this.scanner.lex()},x.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var O=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(O)),O},x.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var O=this.scanner.index,P="";!this.scanner.eof();){var S=this.scanner.source[this.scanner.index];if(S==="{"||S==="<")break;++this.scanner.index,P+=S,a.Character.isLineTerminator(S.charCodeAt(0))&&(++this.scanner.lineNumber,S==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
49
49
|
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var w={type:101,value:P,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:O,end:this.scanner.index};return P.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(w)),w},x.prototype.peekJSXToken=function(){var O=this.scanner.saveState();this.scanner.scanComments();var P=this.lexJSX();return this.scanner.restoreState(O),P},x.prototype.expectJSX=function(O){var P=this.nextJSXToken();(P.type!==7||P.value!==O)&&this.throwUnexpectedToken(P)},x.prototype.matchJSX=function(O){var P=this.peekJSXToken();return P.type===7&&P.value===O},x.prototype.parseJSXIdentifier=function(){var O=this.createJSXNode(),P=this.nextJSXToken();return P.type!==100&&this.throwUnexpectedToken(P),this.finalize(O,new l.JSXIdentifier(P.value))},x.prototype.parseJSXElementName=function(){var O=this.createJSXNode(),P=this.parseJSXIdentifier();if(this.matchJSX(":")){var S=P;this.expectJSX(":");var w=this.parseJSXIdentifier();P=this.finalize(O,new l.JSXNamespacedName(S,w))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var C=P;this.expectJSX(".");var E=this.parseJSXIdentifier();P=this.finalize(O,new l.JSXMemberExpression(C,E))}return P},x.prototype.parseJSXAttributeName=function(){var O=this.createJSXNode(),P,S=this.parseJSXIdentifier();if(this.matchJSX(":")){var w=S;this.expectJSX(":");var C=this.parseJSXIdentifier();P=this.finalize(O,new l.JSXNamespacedName(w,C))}else P=S;return P},x.prototype.parseJSXStringLiteralAttribute=function(){var O=this.createJSXNode(),P=this.nextJSXToken();P.type!==8&&this.throwUnexpectedToken(P);var S=this.getTokenRaw(P);return this.finalize(O,new h.Literal(P.value,S))},x.prototype.parseJSXExpressionAttribute=function(){var O=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var P=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(O,new l.JSXExpressionContainer(P))},x.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},x.prototype.parseJSXNameValueAttribute=function(){var O=this.createJSXNode(),P=this.parseJSXAttributeName(),S=null;return this.matchJSX("=")&&(this.expectJSX("="),S=this.parseJSXAttributeValue()),this.finalize(O,new l.JSXAttribute(P,S))},x.prototype.parseJSXSpreadAttribute=function(){var O=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var P=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(O,new l.JSXSpreadAttribute(P))},x.prototype.parseJSXAttributes=function(){for(var O=[];!this.matchJSX("/")&&!this.matchJSX(">");){var P=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();O.push(P)}return O},x.prototype.parseJSXOpeningElement=function(){var O=this.createJSXNode();this.expectJSX("<");var P=this.parseJSXElementName(),S=this.parseJSXAttributes(),w=this.matchJSX("/");return w&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(O,new l.JSXOpeningElement(P,w,S))},x.prototype.parseJSXBoundaryElement=function(){var O=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var P=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(O,new l.JSXClosingElement(P))}var S=this.parseJSXElementName(),w=this.parseJSXAttributes(),C=this.matchJSX("/");return C&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(O,new l.JSXOpeningElement(S,C,w))},x.prototype.parseJSXEmptyExpression=function(){var O=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(O,new l.JSXEmptyExpression)},x.prototype.parseJSXExpressionContainer=function(){var O=this.createJSXNode();this.expectJSX("{");var P;return this.matchJSX("}")?(P=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),P=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(O,new l.JSXExpressionContainer(P))},x.prototype.parseJSXChildren=function(){for(var O=[];!this.scanner.eof();){var P=this.createJSXChildNode(),S=this.nextJSXText();if(S.start<S.end){var w=this.getTokenRaw(S),C=this.finalize(P,new l.JSXText(S.value,w));O.push(C)}if(this.scanner.source[this.scanner.index]==="{"){var E=this.parseJSXExpressionContainer();O.push(E)}else break}return O},x.prototype.parseComplexJSXElement=function(O){for(var P=[];!this.scanner.eof();){O.children=O.children.concat(this.parseJSXChildren());var S=this.createJSXChildNode(),w=this.parseJSXBoundaryElement();if(w.type===u.JSXSyntax.JSXOpeningElement){var C=w;if(C.selfClosing){var E=this.finalize(S,new l.JSXElement(C,[],null));O.children.push(E)}else P.push(O),O={node:S,opening:C,closing:null,children:[]}}if(w.type===u.JSXSyntax.JSXClosingElement){O.closing=w;var k=g(O.opening.name),A=g(O.closing.name);if(k!==A&&this.tolerateError("Expected corresponding JSX closing tag for %0",k),P.length>0){var E=this.finalize(O.node,new l.JSXElement(O.opening,O.children,O.closing));O=P[P.length-1],O.children.push(E),P.pop()}else break}}return O},x.prototype.parseJSXElement=function(){var O=this.createJSXNode(),P=this.parseJSXOpeningElement(),S=[],w=null;if(!P.selfClosing){var C=this.parseComplexJSXElement({node:O,opening:P,closing:w,children:S});S=C.children,w=C.closing}return this.finalize(O,new l.JSXElement(P,S,w))},x.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var O=this.parseJSXElement();return this.finishJSX(),O},x.prototype.isStartOfExpression=function(){return m.prototype.isStartOfExpression.call(this)||this.match("<")},x})(c.Parser);n.JSXParser=b},function(i,n){Object.defineProperty(n,"__esModule",{value:!0});var r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};n.Character={fromCodePoint:function(s){return s<65536?String.fromCharCode(s):String.fromCharCode(55296+(s-65536>>10))+String.fromCharCode(56320+(s-65536&1023))},isWhiteSpace:function(s){return s===32||s===9||s===11||s===12||s===160||s>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(s)>=0},isLineTerminator:function(s){return s===10||s===13||s===8232||s===8233},isIdentifierStart:function(s){return s===36||s===95||s>=65&&s<=90||s>=97&&s<=122||s===92||s>=128&&r.NonAsciiIdentifierStart.test(n.Character.fromCodePoint(s))},isIdentifierPart:function(s){return s===36||s===95||s>=65&&s<=90||s>=97&&s<=122||s>=48&&s<=57||s===92||s>=128&&r.NonAsciiIdentifierPart.test(n.Character.fromCodePoint(s))},isDecimalDigit:function(s){return s>=48&&s<=57},isHexDigit:function(s){return s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102},isOctalDigit:function(s){return s>=48&&s<=55}}},function(i,n,r){Object.defineProperty(n,"__esModule",{value:!0});var s=r(6),a=(function(){function O(P){this.type=s.JSXSyntax.JSXClosingElement,this.name=P}return O})();n.JSXClosingElement=a;var l=(function(){function O(P,S,w){this.type=s.JSXSyntax.JSXElement,this.openingElement=P,this.children=S,this.closingElement=w}return O})();n.JSXElement=l;var u=(function(){function O(){this.type=s.JSXSyntax.JSXEmptyExpression}return O})();n.JSXEmptyExpression=u;var h=(function(){function O(P){this.type=s.JSXSyntax.JSXExpressionContainer,this.expression=P}return O})();n.JSXExpressionContainer=h;var c=(function(){function O(P){this.type=s.JSXSyntax.JSXIdentifier,this.name=P}return O})();n.JSXIdentifier=c;var p=(function(){function O(P,S){this.type=s.JSXSyntax.JSXMemberExpression,this.object=P,this.property=S}return O})();n.JSXMemberExpression=p;var v=(function(){function O(P,S){this.type=s.JSXSyntax.JSXAttribute,this.name=P,this.value=S}return O})();n.JSXAttribute=v;var g=(function(){function O(P,S){this.type=s.JSXSyntax.JSXNamespacedName,this.namespace=P,this.name=S}return O})();n.JSXNamespacedName=g;var b=(function(){function O(P,S,w){this.type=s.JSXSyntax.JSXOpeningElement,this.name=P,this.selfClosing=S,this.attributes=w}return O})();n.JSXOpeningElement=b;var m=(function(){function O(P){this.type=s.JSXSyntax.JSXSpreadAttribute,this.argument=P}return O})();n.JSXSpreadAttribute=m;var x=(function(){function O(P,S){this.type=s.JSXSyntax.JSXText,this.value=P,this.raw=S}return O})();n.JSXText=x},function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(i,n,r){Object.defineProperty(n,"__esModule",{value:!0});var s=r(2),a=(function(){function ce(ge){this.type=s.Syntax.ArrayExpression,this.elements=ge}return ce})();n.ArrayExpression=a;var l=(function(){function ce(ge){this.type=s.Syntax.ArrayPattern,this.elements=ge}return ce})();n.ArrayPattern=l;var u=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.ArrowFunctionExpression,this.id=null,this.params=ge,this.body=Ce,this.generator=!1,this.expression=Ue,this.async=!1}return ce})();n.ArrowFunctionExpression=u;var h=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.AssignmentExpression,this.operator=ge,this.left=Ce,this.right=Ue}return ce})();n.AssignmentExpression=h;var c=(function(){function ce(ge,Ce){this.type=s.Syntax.AssignmentPattern,this.left=ge,this.right=Ce}return ce})();n.AssignmentPattern=c;var p=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.ArrowFunctionExpression,this.id=null,this.params=ge,this.body=Ce,this.generator=!1,this.expression=Ue,this.async=!0}return ce})();n.AsyncArrowFunctionExpression=p;var v=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.FunctionDeclaration,this.id=ge,this.params=Ce,this.body=Ue,this.generator=!1,this.expression=!1,this.async=!0}return ce})();n.AsyncFunctionDeclaration=v;var g=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.FunctionExpression,this.id=ge,this.params=Ce,this.body=Ue,this.generator=!1,this.expression=!1,this.async=!0}return ce})();n.AsyncFunctionExpression=g;var b=(function(){function ce(ge){this.type=s.Syntax.AwaitExpression,this.argument=ge}return ce})();n.AwaitExpression=b;var m=(function(){function ce(ge,Ce,Ue){var $t=ge==="||"||ge==="&&";this.type=$t?s.Syntax.LogicalExpression:s.Syntax.BinaryExpression,this.operator=ge,this.left=Ce,this.right=Ue}return ce})();n.BinaryExpression=m;var x=(function(){function ce(ge){this.type=s.Syntax.BlockStatement,this.body=ge}return ce})();n.BlockStatement=x;var O=(function(){function ce(ge){this.type=s.Syntax.BreakStatement,this.label=ge}return ce})();n.BreakStatement=O;var P=(function(){function ce(ge,Ce){this.type=s.Syntax.CallExpression,this.callee=ge,this.arguments=Ce}return ce})();n.CallExpression=P;var S=(function(){function ce(ge,Ce){this.type=s.Syntax.CatchClause,this.param=ge,this.body=Ce}return ce})();n.CatchClause=S;var w=(function(){function ce(ge){this.type=s.Syntax.ClassBody,this.body=ge}return ce})();n.ClassBody=w;var C=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.ClassDeclaration,this.id=ge,this.superClass=Ce,this.body=Ue}return ce})();n.ClassDeclaration=C;var E=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.ClassExpression,this.id=ge,this.superClass=Ce,this.body=Ue}return ce})();n.ClassExpression=E;var k=(function(){function ce(ge,Ce){this.type=s.Syntax.MemberExpression,this.computed=!0,this.object=ge,this.property=Ce}return ce})();n.ComputedMemberExpression=k;var A=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.ConditionalExpression,this.test=ge,this.consequent=Ce,this.alternate=Ue}return ce})();n.ConditionalExpression=A;var $=(function(){function ce(ge){this.type=s.Syntax.ContinueStatement,this.label=ge}return ce})();n.ContinueStatement=$;var F=(function(){function ce(){this.type=s.Syntax.DebuggerStatement}return ce})();n.DebuggerStatement=F;var I=(function(){function ce(ge,Ce){this.type=s.Syntax.ExpressionStatement,this.expression=ge,this.directive=Ce}return ce})();n.Directive=I;var B=(function(){function ce(ge,Ce){this.type=s.Syntax.DoWhileStatement,this.body=ge,this.test=Ce}return ce})();n.DoWhileStatement=B;var j=(function(){function ce(){this.type=s.Syntax.EmptyStatement}return ce})();n.EmptyStatement=j;var M=(function(){function ce(ge){this.type=s.Syntax.ExportAllDeclaration,this.source=ge}return ce})();n.ExportAllDeclaration=M;var q=(function(){function ce(ge){this.type=s.Syntax.ExportDefaultDeclaration,this.declaration=ge}return ce})();n.ExportDefaultDeclaration=q;var X=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.ExportNamedDeclaration,this.declaration=ge,this.specifiers=Ce,this.source=Ue}return ce})();n.ExportNamedDeclaration=X;var Y=(function(){function ce(ge,Ce){this.type=s.Syntax.ExportSpecifier,this.exported=Ce,this.local=ge}return ce})();n.ExportSpecifier=Y;var V=(function(){function ce(ge){this.type=s.Syntax.ExpressionStatement,this.expression=ge}return ce})();n.ExpressionStatement=V;var oe=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.ForInStatement,this.left=ge,this.right=Ce,this.body=Ue,this.each=!1}return ce})();n.ForInStatement=oe;var ae=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.ForOfStatement,this.left=ge,this.right=Ce,this.body=Ue}return ce})();n.ForOfStatement=ae;var fe=(function(){function ce(ge,Ce,Ue,$t){this.type=s.Syntax.ForStatement,this.init=ge,this.test=Ce,this.update=Ue,this.body=$t}return ce})();n.ForStatement=fe;var D=(function(){function ce(ge,Ce,Ue,$t){this.type=s.Syntax.FunctionDeclaration,this.id=ge,this.params=Ce,this.body=Ue,this.generator=$t,this.expression=!1,this.async=!1}return ce})();n.FunctionDeclaration=D;var Z=(function(){function ce(ge,Ce,Ue,$t){this.type=s.Syntax.FunctionExpression,this.id=ge,this.params=Ce,this.body=Ue,this.generator=$t,this.expression=!1,this.async=!1}return ce})();n.FunctionExpression=Z;var L=(function(){function ce(ge){this.type=s.Syntax.Identifier,this.name=ge}return ce})();n.Identifier=L;var se=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.IfStatement,this.test=ge,this.consequent=Ce,this.alternate=Ue}return ce})();n.IfStatement=se;var de=(function(){function ce(ge,Ce){this.type=s.Syntax.ImportDeclaration,this.specifiers=ge,this.source=Ce}return ce})();n.ImportDeclaration=de;var ie=(function(){function ce(ge){this.type=s.Syntax.ImportDefaultSpecifier,this.local=ge}return ce})();n.ImportDefaultSpecifier=ie;var R=(function(){function ce(ge){this.type=s.Syntax.ImportNamespaceSpecifier,this.local=ge}return ce})();n.ImportNamespaceSpecifier=R;var Q=(function(){function ce(ge,Ce){this.type=s.Syntax.ImportSpecifier,this.local=ge,this.imported=Ce}return ce})();n.ImportSpecifier=Q;var xe=(function(){function ce(ge,Ce){this.type=s.Syntax.LabeledStatement,this.label=ge,this.body=Ce}return ce})();n.LabeledStatement=xe;var Re=(function(){function ce(ge,Ce){this.type=s.Syntax.Literal,this.value=ge,this.raw=Ce}return ce})();n.Literal=Re;var ke=(function(){function ce(ge,Ce){this.type=s.Syntax.MetaProperty,this.meta=ge,this.property=Ce}return ce})();n.MetaProperty=ke;var $e=(function(){function ce(ge,Ce,Ue,$t,pr){this.type=s.Syntax.MethodDefinition,this.key=ge,this.computed=Ce,this.value=Ue,this.kind=$t,this.static=pr}return ce})();n.MethodDefinition=$e;var te=(function(){function ce(ge){this.type=s.Syntax.Program,this.body=ge,this.sourceType="module"}return ce})();n.Module=te;var H=(function(){function ce(ge,Ce){this.type=s.Syntax.NewExpression,this.callee=ge,this.arguments=Ce}return ce})();n.NewExpression=H;var re=(function(){function ce(ge){this.type=s.Syntax.ObjectExpression,this.properties=ge}return ce})();n.ObjectExpression=re;var G=(function(){function ce(ge){this.type=s.Syntax.ObjectPattern,this.properties=ge}return ce})();n.ObjectPattern=G;var J=(function(){function ce(ge,Ce,Ue,$t,pr,Jr){this.type=s.Syntax.Property,this.key=Ce,this.computed=Ue,this.value=$t,this.kind=ge,this.method=pr,this.shorthand=Jr}return ce})();n.Property=J;var le=(function(){function ce(ge,Ce,Ue,$t){this.type=s.Syntax.Literal,this.value=ge,this.raw=Ce,this.regex={pattern:Ue,flags:$t}}return ce})();n.RegexLiteral=le;var ve=(function(){function ce(ge){this.type=s.Syntax.RestElement,this.argument=ge}return ce})();n.RestElement=ve;var we=(function(){function ce(ge){this.type=s.Syntax.ReturnStatement,this.argument=ge}return ce})();n.ReturnStatement=we;var K=(function(){function ce(ge){this.type=s.Syntax.Program,this.body=ge,this.sourceType="script"}return ce})();n.Script=K;var ue=(function(){function ce(ge){this.type=s.Syntax.SequenceExpression,this.expressions=ge}return ce})();n.SequenceExpression=ue;var me=(function(){function ce(ge){this.type=s.Syntax.SpreadElement,this.argument=ge}return ce})();n.SpreadElement=me;var Pe=(function(){function ce(ge,Ce){this.type=s.Syntax.MemberExpression,this.computed=!1,this.object=ge,this.property=Ce}return ce})();n.StaticMemberExpression=Pe;var Ve=(function(){function ce(){this.type=s.Syntax.Super}return ce})();n.Super=Ve;var He=(function(){function ce(ge,Ce){this.type=s.Syntax.SwitchCase,this.test=ge,this.consequent=Ce}return ce})();n.SwitchCase=He;var Tt=(function(){function ce(ge,Ce){this.type=s.Syntax.SwitchStatement,this.discriminant=ge,this.cases=Ce}return ce})();n.SwitchStatement=Tt;var Je=(function(){function ce(ge,Ce){this.type=s.Syntax.TaggedTemplateExpression,this.tag=ge,this.quasi=Ce}return ce})();n.TaggedTemplateExpression=Je;var ei=(function(){function ce(ge,Ce){this.type=s.Syntax.TemplateElement,this.value=ge,this.tail=Ce}return ce})();n.TemplateElement=ei;var qt=(function(){function ce(ge,Ce){this.type=s.Syntax.TemplateLiteral,this.quasis=ge,this.expressions=Ce}return ce})();n.TemplateLiteral=qt;var Bn=(function(){function ce(){this.type=s.Syntax.ThisExpression}return ce})();n.ThisExpression=Bn;var gn=(function(){function ce(ge){this.type=s.Syntax.ThrowStatement,this.argument=ge}return ce})();n.ThrowStatement=gn;var ji=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.TryStatement,this.block=ge,this.handler=Ce,this.finalizer=Ue}return ce})();n.TryStatement=ji;var Zs=(function(){function ce(ge,Ce){this.type=s.Syntax.UnaryExpression,this.operator=ge,this.argument=Ce,this.prefix=!0}return ce})();n.UnaryExpression=Zs;var yn=(function(){function ce(ge,Ce,Ue){this.type=s.Syntax.UpdateExpression,this.operator=ge,this.argument=Ce,this.prefix=Ue}return ce})();n.UpdateExpression=yn;var zt=(function(){function ce(ge,Ce){this.type=s.Syntax.VariableDeclaration,this.declarations=ge,this.kind=Ce}return ce})();n.VariableDeclaration=zt;var ti=(function(){function ce(ge,Ce){this.type=s.Syntax.VariableDeclarator,this.id=ge,this.init=Ce}return ce})();n.VariableDeclarator=ti;var Qn=(function(){function ce(ge,Ce){this.type=s.Syntax.WhileStatement,this.test=ge,this.body=Ce}return ce})();n.WhileStatement=Qn;var Hr=(function(){function ce(ge,Ce){this.type=s.Syntax.WithStatement,this.object=ge,this.body=Ce}return ce})();n.WithStatement=Hr;var Vs=(function(){function ce(ge,Ce){this.type=s.Syntax.YieldExpression,this.argument=ge,this.delegate=Ce}return ce})();n.YieldExpression=Vs},function(i,n,r){Object.defineProperty(n,"__esModule",{value:!0});var s=r(9),a=r(10),l=r(11),u=r(7),h=r(12),c=r(2),p=r(13),v="ArrowParameterPlaceHolder",g=(function(){function b(m,x,O){x===void 0&&(x={}),this.config={range:typeof x.range=="boolean"&&x.range,loc:typeof x.loc=="boolean"&&x.loc,source:null,tokens:typeof x.tokens=="boolean"&&x.tokens,comment:typeof x.comment=="boolean"&&x.comment,tolerant:typeof x.tolerant=="boolean"&&x.tolerant},this.config.loc&&x.source&&x.source!==null&&(this.config.source=String(x.source)),this.delegate=O,this.errorHandler=new a.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new h.Scanner(m,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return b.prototype.throwError=function(m){var x=Array.prototype.slice.call(arguments,1),O=m.replace(/%(\d)/g,function(C,E){return s.assert(E<x.length,"Message reference must be in range"),x[E]}),P=this.lastMarker.index,S=this.lastMarker.line,w=this.lastMarker.column+1;throw this.errorHandler.createError(P,S,w,O)},b.prototype.tolerateError=function(m){var x=Array.prototype.slice.call(arguments,1),O=m.replace(/%(\d)/g,function(C,E){return s.assert(E<x.length,"Message reference must be in range"),x[E]}),P=this.lastMarker.index,S=this.scanner.lineNumber,w=this.lastMarker.column+1;this.errorHandler.tolerateError(P,S,w,O)},b.prototype.unexpectedTokenError=function(m,x){var O=x||l.Messages.UnexpectedToken,P;if(m?(x||(O=m.type===2?l.Messages.UnexpectedEOS:m.type===3?l.Messages.UnexpectedIdentifier:m.type===6?l.Messages.UnexpectedNumber:m.type===8?l.Messages.UnexpectedString:m.type===10?l.Messages.UnexpectedTemplate:l.Messages.UnexpectedToken,m.type===4&&(this.scanner.isFutureReservedWord(m.value)?O=l.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(m.value)&&(O=l.Messages.StrictReservedWord))),P=m.value):P="ILLEGAL",O=O.replace("%0",P),m&&typeof m.lineNumber=="number"){var S=m.start,w=m.lineNumber,C=this.lastMarker.index-this.lastMarker.column,E=m.start-C+1;return this.errorHandler.createError(S,w,E,O)}else{var S=this.lastMarker.index,w=this.lastMarker.line,E=this.lastMarker.column+1;return this.errorHandler.createError(S,w,E,O)}},b.prototype.throwUnexpectedToken=function(m,x){throw this.unexpectedTokenError(m,x)},b.prototype.tolerateUnexpectedToken=function(m,x){this.errorHandler.tolerate(this.unexpectedTokenError(m,x))},b.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var m=this.scanner.scanComments();if(m.length>0&&this.delegate)for(var x=0;x<m.length;++x){var O=m[x],P=void 0;P={type:O.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(O.slice[0],O.slice[1])},this.config.range&&(P.range=O.range),this.config.loc&&(P.loc=O.loc);var S={start:{line:O.loc.start.line,column:O.loc.start.column,offset:O.range[0]},end:{line:O.loc.end.line,column:O.loc.end.column,offset:O.range[1]}};this.delegate(P,S)}}},b.prototype.getTokenRaw=function(m){return this.scanner.source.slice(m.start,m.end)},b.prototype.convertToken=function(m){var x={type:p.TokenName[m.type],value:this.getTokenRaw(m)};if(this.config.range&&(x.range=[m.start,m.end]),this.config.loc&&(x.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),m.type===9){var O=m.pattern,P=m.flags;x.regex={pattern:O,flags:P}}return x},b.prototype.nextToken=function(){var m=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var x=this.scanner.lex();return this.hasLineTerminator=m.lineNumber!==x.lineNumber,x&&this.context.strict&&x.type===3&&this.scanner.isStrictModeReservedWord(x.value)&&(x.type=4),this.lookahead=x,this.config.tokens&&x.type!==2&&this.tokens.push(this.convertToken(x)),m},b.prototype.nextRegexToken=function(){this.collectComments();var m=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(m))),this.lookahead=m,this.nextToken(),m},b.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},b.prototype.startNode=function(m,x){x===void 0&&(x=0);var O=m.start-m.lineStart,P=m.lineNumber;return O<0&&(O+=x,P--),{index:m.start,line:P,column:O}},b.prototype.finalize=function(m,x){if(this.config.range&&(x.range=[m.index,this.lastMarker.index]),this.config.loc&&(x.loc={start:{line:m.line,column:m.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(x.loc.source=this.config.source)),this.delegate){var O={start:{line:m.line,column:m.column,offset:m.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(x,O)}return x},b.prototype.expect=function(m){var x=this.nextToken();(x.type!==7||x.value!==m)&&this.throwUnexpectedToken(x)},b.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var m=this.lookahead;m.type===7&&m.value===","?this.nextToken():m.type===7&&m.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(m)):this.tolerateUnexpectedToken(m,l.Messages.UnexpectedToken)}else this.expect(",")},b.prototype.expectKeyword=function(m){var x=this.nextToken();(x.type!==4||x.value!==m)&&this.throwUnexpectedToken(x)},b.prototype.match=function(m){return this.lookahead.type===7&&this.lookahead.value===m},b.prototype.matchKeyword=function(m){return this.lookahead.type===4&&this.lookahead.value===m},b.prototype.matchContextualKeyword=function(m){return this.lookahead.type===3&&this.lookahead.value===m},b.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var m=this.lookahead.value;return m==="="||m==="*="||m==="**="||m==="/="||m==="%="||m==="+="||m==="-="||m==="<<="||m===">>="||m===">>>="||m==="&="||m==="^="||m==="|="},b.prototype.isolateCoverGrammar=function(m){var x=this.context.isBindingElement,O=this.context.isAssignmentTarget,P=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var S=m.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=x,this.context.isAssignmentTarget=O,this.context.firstCoverInitializedNameError=P,S},b.prototype.inheritCoverGrammar=function(m){var x=this.context.isBindingElement,O=this.context.isAssignmentTarget,P=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var S=m.call(this);return this.context.isBindingElement=this.context.isBindingElement&&x,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&O,this.context.firstCoverInitializedNameError=P||this.context.firstCoverInitializedNameError,S},b.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},b.prototype.parsePrimaryExpression=function(){var m=this.createNode(),x,O,P;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),x=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(m,new u.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,l.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),P=this.getTokenRaw(O),x=this.finalize(m,new u.Literal(O.value,P));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),P=this.getTokenRaw(O),x=this.finalize(m,new u.Literal(O.value==="true",P));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,O=this.nextToken(),P=this.getTokenRaw(O),x=this.finalize(m,new u.Literal(null,P));break;case 10:x=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,x=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":x=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":x=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,O=this.nextRegexToken(),P=this.getTokenRaw(O),x=this.finalize(m,new u.RegexLiteral(O.regex,P,O.pattern,O.flags));break;default:x=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?x=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?x=this.finalize(m,new u.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?x=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),x=this.finalize(m,new u.ThisExpression)):this.matchKeyword("class")?x=this.parseClassExpression():x=this.throwUnexpectedToken(this.nextToken()));break;default:x=this.throwUnexpectedToken(this.nextToken())}return x},b.prototype.parseSpreadElement=function(){var m=this.createNode();this.expect("...");var x=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(m,new u.SpreadElement(x))},b.prototype.parseArrayInitializer=function(){var m=this.createNode(),x=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),x.push(null);else if(this.match("...")){var O=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),x.push(O)}else x.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(m,new u.ArrayExpression(x))},b.prototype.parsePropertyMethod=function(m){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var x=this.context.strict,O=this.context.allowStrictDirective;this.context.allowStrictDirective=m.simple;var P=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&m.firstRestricted&&this.tolerateUnexpectedToken(m.firstRestricted,m.message),this.context.strict&&m.stricted&&this.tolerateUnexpectedToken(m.stricted,m.message),this.context.strict=x,this.context.allowStrictDirective=O,P},b.prototype.parsePropertyMethodFunction=function(){var m=!1,x=this.createNode(),O=this.context.allowYield;this.context.allowYield=!0;var P=this.parseFormalParameters(),S=this.parsePropertyMethod(P);return this.context.allowYield=O,this.finalize(x,new u.FunctionExpression(null,P.params,S,m))},b.prototype.parsePropertyMethodAsyncFunction=function(){var m=this.createNode(),x=this.context.allowYield,O=this.context.await;this.context.allowYield=!1,this.context.await=!0;var P=this.parseFormalParameters(),S=this.parsePropertyMethod(P);return this.context.allowYield=x,this.context.await=O,this.finalize(m,new u.AsyncFunctionExpression(null,P.params,S))},b.prototype.parseObjectPropertyKey=function(){var m=this.createNode(),x=this.nextToken(),O;switch(x.type){case 8:case 6:this.context.strict&&x.octal&&this.tolerateUnexpectedToken(x,l.Messages.StrictOctalLiteral);var P=this.getTokenRaw(x);O=this.finalize(m,new u.Literal(x.value,P));break;case 3:case 1:case 5:case 4:O=this.finalize(m,new u.Identifier(x.value));break;case 7:x.value==="["?(O=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):O=this.throwUnexpectedToken(x);break;default:O=this.throwUnexpectedToken(x)}return O},b.prototype.isPropertyKey=function(m,x){return m.type===c.Syntax.Identifier&&m.name===x||m.type===c.Syntax.Literal&&m.value===x},b.prototype.parseObjectProperty=function(m){var x=this.createNode(),O=this.lookahead,P,S=null,w=null,C=!1,E=!1,k=!1,A=!1;if(O.type===3){var $=O.value;this.nextToken(),C=this.match("["),A=!this.hasLineTerminator&&$==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),S=A?this.parseObjectPropertyKey():this.finalize(x,new u.Identifier($))}else this.match("*")?this.nextToken():(C=this.match("["),S=this.parseObjectPropertyKey());var F=this.qualifiedPropertyName(this.lookahead);if(O.type===3&&!A&&O.value==="get"&&F)P="get",C=this.match("["),S=this.parseObjectPropertyKey(),this.context.allowYield=!1,w=this.parseGetterMethod();else if(O.type===3&&!A&&O.value==="set"&&F)P="set",C=this.match("["),S=this.parseObjectPropertyKey(),w=this.parseSetterMethod();else if(O.type===7&&O.value==="*"&&F)P="init",C=this.match("["),S=this.parseObjectPropertyKey(),w=this.parseGeneratorMethod(),E=!0;else if(S||this.throwUnexpectedToken(this.lookahead),P="init",this.match(":")&&!A)!C&&this.isPropertyKey(S,"__proto__")&&(m.value&&this.tolerateError(l.Messages.DuplicateProtoProperty),m.value=!0),this.nextToken(),w=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))w=A?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),E=!0;else if(O.type===3){var $=this.finalize(x,new u.Identifier(O.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),k=!0;var I=this.isolateCoverGrammar(this.parseAssignmentExpression);w=this.finalize(x,new u.AssignmentPattern($,I))}else k=!0,w=$}else this.throwUnexpectedToken(this.nextToken());return this.finalize(x,new u.Property(P,S,C,w,E,k))},b.prototype.parseObjectInitializer=function(){var m=this.createNode();this.expect("{");for(var x=[],O={value:!1};!this.match("}");)x.push(this.parseObjectProperty(O)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(m,new u.ObjectExpression(x))},b.prototype.parseTemplateHead=function(){s.assert(this.lookahead.head,"Template literal must start with a template head");var m=this.createNode(),x=this.nextToken(),O=x.value,P=x.cooked;return this.finalize(m,new u.TemplateElement({raw:O,cooked:P},x.tail))},b.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var m=this.createNode(),x=this.nextToken(),O=x.value,P=x.cooked;return this.finalize(m,new u.TemplateElement({raw:O,cooked:P},x.tail))},b.prototype.parseTemplateLiteral=function(){var m=this.createNode(),x=[],O=[],P=this.parseTemplateHead();for(O.push(P);!P.tail;)x.push(this.parseExpression()),P=this.parseTemplateElement(),O.push(P);return this.finalize(m,new u.TemplateLiteral(O,x))},b.prototype.reinterpretExpressionAsPattern=function(m){switch(m.type){case c.Syntax.Identifier:case c.Syntax.MemberExpression:case c.Syntax.RestElement:case c.Syntax.AssignmentPattern:break;case c.Syntax.SpreadElement:m.type=c.Syntax.RestElement,this.reinterpretExpressionAsPattern(m.argument);break;case c.Syntax.ArrayExpression:m.type=c.Syntax.ArrayPattern;for(var x=0;x<m.elements.length;x++)m.elements[x]!==null&&this.reinterpretExpressionAsPattern(m.elements[x]);break;case c.Syntax.ObjectExpression:m.type=c.Syntax.ObjectPattern;for(var x=0;x<m.properties.length;x++)this.reinterpretExpressionAsPattern(m.properties[x].value);break;case c.Syntax.AssignmentExpression:m.type=c.Syntax.AssignmentPattern,delete m.operator,this.reinterpretExpressionAsPattern(m.left);break}},b.prototype.parseGroupExpression=function(){var m;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),m={type:v,params:[],async:!1};else{var x=this.lookahead,O=[];if(this.match("..."))m=this.parseRestElement(O),this.expect(")"),this.match("=>")||this.expect("=>"),m={type:v,params:[m],async:!1};else{var P=!1;if(this.context.isBindingElement=!0,m=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var S=[];for(this.context.isAssignmentTarget=!1,S.push(m);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var w=0;w<S.length;w++)this.reinterpretExpressionAsPattern(S[w]);P=!0,m={type:v,params:S,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),S.push(this.parseRestElement(O)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var w=0;w<S.length;w++)this.reinterpretExpressionAsPattern(S[w]);P=!0,m={type:v,params:S,async:!1}}else S.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(P)break}P||(m=this.finalize(this.startNode(x),new u.SequenceExpression(S)))}if(!P){if(this.expect(")"),this.match("=>")&&(m.type===c.Syntax.Identifier&&m.name==="yield"&&(P=!0,m={type:v,params:[m],async:!1}),!P)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),m.type===c.Syntax.SequenceExpression)for(var w=0;w<m.expressions.length;w++)this.reinterpretExpressionAsPattern(m.expressions[w]);else this.reinterpretExpressionAsPattern(m);var C=m.type===c.Syntax.SequenceExpression?m.expressions:[m];m={type:v,params:C,async:!1}}this.context.isBindingElement=!1}}}return m},b.prototype.parseArguments=function(){this.expect("(");var m=[];if(!this.match(")"))for(;;){var x=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(m.push(x),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),m},b.prototype.isIdentifierName=function(m){return m.type===3||m.type===4||m.type===1||m.type===5},b.prototype.parseIdentifierName=function(){var m=this.createNode(),x=this.nextToken();return this.isIdentifierName(x)||this.throwUnexpectedToken(x),this.finalize(m,new u.Identifier(x.value))},b.prototype.parseNewExpression=function(){var m=this.createNode(),x=this.parseIdentifierName();s.assert(x.name==="new","New expression must start with `new`");var O;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var P=this.parseIdentifierName();O=new u.MetaProperty(x,P)}else this.throwUnexpectedToken(this.lookahead);else{var S=this.isolateCoverGrammar(this.parseLeftHandSideExpression),w=this.match("(")?this.parseArguments():[];O=new u.NewExpression(S,w),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(m,O)},b.prototype.parseAsyncArgument=function(){var m=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,m},b.prototype.parseAsyncArguments=function(){this.expect("(");var m=[];if(!this.match(")"))for(;;){var x=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(m.push(x),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),m},b.prototype.parseLeftHandSideExpressionAllowCall=function(){var m=this.lookahead,x=this.matchContextualKeyword("async"),O=this.context.allowIn;this.context.allowIn=!0;var P;for(this.matchKeyword("super")&&this.context.inFunctionBody?(P=this.createNode(),this.nextToken(),P=this.finalize(P,new u.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):P=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var S=this.parseIdentifierName();P=this.finalize(this.startNode(m),new u.StaticMemberExpression(P,S))}else if(this.match("(")){var w=x&&m.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var C=w?this.parseAsyncArguments():this.parseArguments();if(P=this.finalize(this.startNode(m),new u.CallExpression(P,C)),w&&this.match("=>")){for(var E=0;E<C.length;++E)this.reinterpretExpressionAsPattern(C[E]);P={type:v,params:C,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var S=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),P=this.finalize(this.startNode(m),new u.ComputedMemberExpression(P,S))}else if(this.lookahead.type===10&&this.lookahead.head){var k=this.parseTemplateLiteral();P=this.finalize(this.startNode(m),new u.TaggedTemplateExpression(P,k))}else break;return this.context.allowIn=O,P},b.prototype.parseSuper=function(){var m=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(m,new u.Super)},b.prototype.parseLeftHandSideExpression=function(){s.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var m=this.startNode(this.lookahead),x=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var O=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),x=this.finalize(m,new u.ComputedMemberExpression(x,O))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var O=this.parseIdentifierName();x=this.finalize(m,new u.StaticMemberExpression(x,O))}else if(this.lookahead.type===10&&this.lookahead.head){var P=this.parseTemplateLiteral();x=this.finalize(m,new u.TaggedTemplateExpression(x,P))}else break;return x},b.prototype.parseUpdateExpression=function(){var m,x=this.lookahead;if(this.match("++")||this.match("--")){var O=this.startNode(x),P=this.nextToken();m=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&m.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(m.name)&&this.tolerateError(l.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(l.Messages.InvalidLHSInAssignment);var S=!0;m=this.finalize(O,new u.UpdateExpression(P.value,m,S)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(m=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&m.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(m.name)&&this.tolerateError(l.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(l.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var w=this.nextToken().value,S=!1;m=this.finalize(this.startNode(x),new u.UpdateExpression(w,m,S))}return m},b.prototype.parseAwaitExpression=function(){var m=this.createNode();this.nextToken();var x=this.parseUnaryExpression();return this.finalize(m,new u.AwaitExpression(x))},b.prototype.parseUnaryExpression=function(){var m;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var x=this.startNode(this.lookahead),O=this.nextToken();m=this.inheritCoverGrammar(this.parseUnaryExpression),m=this.finalize(x,new u.UnaryExpression(O.value,m)),this.context.strict&&m.operator==="delete"&&m.argument.type===c.Syntax.Identifier&&this.tolerateError(l.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?m=this.parseAwaitExpression():m=this.parseUpdateExpression();return m},b.prototype.parseExponentiationExpression=function(){var m=this.lookahead,x=this.inheritCoverGrammar(this.parseUnaryExpression);if(x.type!==c.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var O=x,P=this.isolateCoverGrammar(this.parseExponentiationExpression);x=this.finalize(this.startNode(m),new u.BinaryExpression("**",O,P))}return x},b.prototype.binaryPrecedence=function(m){var x=m.value,O;return m.type===7?O=this.operatorPrecedence[x]||0:m.type===4?O=x==="instanceof"||this.context.allowIn&&x==="in"?7:0:O=0,O},b.prototype.parseBinaryExpression=function(){var m=this.lookahead,x=this.inheritCoverGrammar(this.parseExponentiationExpression),O=this.lookahead,P=this.binaryPrecedence(O);if(P>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var S=[m,this.lookahead],w=x,C=this.isolateCoverGrammar(this.parseExponentiationExpression),E=[w,O.value,C],k=[P];P=this.binaryPrecedence(this.lookahead),!(P<=0);){for(;E.length>2&&P<=k[k.length-1];){C=E.pop();var A=E.pop();k.pop(),w=E.pop(),S.pop();var $=this.startNode(S[S.length-1]);E.push(this.finalize($,new u.BinaryExpression(A,w,C)))}E.push(this.nextToken().value),k.push(P),S.push(this.lookahead),E.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var F=E.length-1;x=E[F];for(var I=S.pop();F>1;){var B=S.pop(),j=I&&I.lineStart,$=this.startNode(B,j),A=E[F-1];x=this.finalize($,new u.BinaryExpression(A,E[F-2],x)),F-=2,I=B}}return x},b.prototype.parseConditionalExpression=function(){var m=this.lookahead,x=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var O=this.context.allowIn;this.context.allowIn=!0;var P=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=O,this.expect(":");var S=this.isolateCoverGrammar(this.parseAssignmentExpression);x=this.finalize(this.startNode(m),new u.ConditionalExpression(x,P,S)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return x},b.prototype.checkPatternParam=function(m,x){switch(x.type){case c.Syntax.Identifier:this.validateParam(m,x,x.name);break;case c.Syntax.RestElement:this.checkPatternParam(m,x.argument);break;case c.Syntax.AssignmentPattern:this.checkPatternParam(m,x.left);break;case c.Syntax.ArrayPattern:for(var O=0;O<x.elements.length;O++)x.elements[O]!==null&&this.checkPatternParam(m,x.elements[O]);break;case c.Syntax.ObjectPattern:for(var O=0;O<x.properties.length;O++)this.checkPatternParam(m,x.properties[O].value);break}m.simple=m.simple&&x instanceof u.Identifier},b.prototype.reinterpretAsCoverFormalsList=function(m){var x=[m],O,P=!1;switch(m.type){case c.Syntax.Identifier:break;case v:x=m.params,P=m.async;break;default:return null}O={simple:!0,paramSet:{}};for(var S=0;S<x.length;++S){var w=x[S];w.type===c.Syntax.AssignmentPattern?w.right.type===c.Syntax.YieldExpression&&(w.right.argument&&this.throwUnexpectedToken(this.lookahead),w.right.type=c.Syntax.Identifier,w.right.name="yield",delete w.right.argument,delete w.right.delegate):P&&w.type===c.Syntax.Identifier&&w.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(O,w),x[S]=w}if(this.context.strict||!this.context.allowYield)for(var S=0;S<x.length;++S){var w=x[S];w.type===c.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(O.message===l.Messages.StrictParamDupe){var C=this.context.strict?O.stricted:O.firstRestricted;this.throwUnexpectedToken(C,O.message)}return{simple:O.simple,params:x,stricted:O.stricted,firstRestricted:O.firstRestricted,message:O.message}},b.prototype.parseAssignmentExpression=function(){var m;if(!this.context.allowYield&&this.matchKeyword("yield"))m=this.parseYieldExpression();else{var x=this.lookahead,O=x;if(m=this.parseConditionalExpression(),O.type===3&&O.lineNumber===this.lookahead.lineNumber&&O.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var P=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(P),m={type:v,params:[P],async:!0}}if(m.type===v||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var S=m.async,w=this.reinterpretAsCoverFormalsList(m);if(w){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var C=this.context.strict,E=this.context.allowStrictDirective;this.context.allowStrictDirective=w.simple;var k=this.context.allowYield,A=this.context.await;this.context.allowYield=!0,this.context.await=S;var $=this.startNode(x);this.expect("=>");var F=void 0;if(this.match("{")){var I=this.context.allowIn;this.context.allowIn=!0,F=this.parseFunctionSourceElements(),this.context.allowIn=I}else F=this.isolateCoverGrammar(this.parseAssignmentExpression);var B=F.type!==c.Syntax.BlockStatement;this.context.strict&&w.firstRestricted&&this.throwUnexpectedToken(w.firstRestricted,w.message),this.context.strict&&w.stricted&&this.tolerateUnexpectedToken(w.stricted,w.message),m=S?this.finalize($,new u.AsyncArrowFunctionExpression(w.params,F,B)):this.finalize($,new u.ArrowFunctionExpression(w.params,F,B)),this.context.strict=C,this.context.allowStrictDirective=E,this.context.allowYield=k,this.context.await=A}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(l.Messages.InvalidLHSInAssignment),this.context.strict&&m.type===c.Syntax.Identifier){var j=m;this.scanner.isRestrictedWord(j.name)&&this.tolerateUnexpectedToken(O,l.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(j.name)&&this.tolerateUnexpectedToken(O,l.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(m):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),O=this.nextToken();var M=O.value,q=this.isolateCoverGrammar(this.parseAssignmentExpression);m=this.finalize(this.startNode(x),new u.AssignmentExpression(M,m,q)),this.context.firstCoverInitializedNameError=null}}return m},b.prototype.parseExpression=function(){var m=this.lookahead,x=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var O=[];for(O.push(x);this.lookahead.type!==2&&this.match(",");)this.nextToken(),O.push(this.isolateCoverGrammar(this.parseAssignmentExpression));x=this.finalize(this.startNode(m),new u.SequenceExpression(O))}return x},b.prototype.parseStatementListItem=function(){var m;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,l.Messages.IllegalExportDeclaration),m=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,l.Messages.IllegalImportDeclaration),m=this.parseImportDeclaration();break;case"const":m=this.parseLexicalDeclaration({inFor:!1});break;case"function":m=this.parseFunctionDeclaration();break;case"class":m=this.parseClassDeclaration();break;case"let":m=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:m=this.parseStatement();break}else m=this.parseStatement();return m},b.prototype.parseBlock=function(){var m=this.createNode();this.expect("{");for(var x=[];!this.match("}");)x.push(this.parseStatementListItem());return this.expect("}"),this.finalize(m,new u.BlockStatement(x))},b.prototype.parseLexicalBinding=function(m,x){var O=this.createNode(),P=[],S=this.parsePattern(P,m);this.context.strict&&S.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(S.name)&&this.tolerateError(l.Messages.StrictVarName);var w=null;return m==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),w=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(l.Messages.DeclarationMissingInitializer,"const")):(!x.inFor&&S.type!==c.Syntax.Identifier||this.match("="))&&(this.expect("="),w=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(O,new u.VariableDeclarator(S,w))},b.prototype.parseBindingList=function(m,x){for(var O=[this.parseLexicalBinding(m,x)];this.match(",");)this.nextToken(),O.push(this.parseLexicalBinding(m,x));return O},b.prototype.isLexicalDeclaration=function(){var m=this.scanner.saveState();this.scanner.scanComments();var x=this.scanner.lex();return this.scanner.restoreState(m),x.type===3||x.type===7&&x.value==="["||x.type===7&&x.value==="{"||x.type===4&&x.value==="let"||x.type===4&&x.value==="yield"},b.prototype.parseLexicalDeclaration=function(m){var x=this.createNode(),O=this.nextToken().value;s.assert(O==="let"||O==="const","Lexical declaration must be either let or const");var P=this.parseBindingList(O,m);return this.consumeSemicolon(),this.finalize(x,new u.VariableDeclaration(P,O))},b.prototype.parseBindingRestElement=function(m,x){var O=this.createNode();this.expect("...");var P=this.parsePattern(m,x);return this.finalize(O,new u.RestElement(P))},b.prototype.parseArrayPattern=function(m,x){var O=this.createNode();this.expect("[");for(var P=[];!this.match("]");)if(this.match(","))this.nextToken(),P.push(null);else{if(this.match("...")){P.push(this.parseBindingRestElement(m,x));break}else P.push(this.parsePatternWithDefault(m,x));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(O,new u.ArrayPattern(P))},b.prototype.parsePropertyPattern=function(m,x){var O=this.createNode(),P=!1,S=!1,w=!1,C,E;if(this.lookahead.type===3){var k=this.lookahead;C=this.parseVariableIdentifier();var A=this.finalize(O,new u.Identifier(k.value));if(this.match("=")){m.push(k),S=!0,this.nextToken();var $=this.parseAssignmentExpression();E=this.finalize(this.startNode(k),new u.AssignmentPattern(A,$))}else this.match(":")?(this.expect(":"),E=this.parsePatternWithDefault(m,x)):(m.push(k),S=!0,E=A)}else P=this.match("["),C=this.parseObjectPropertyKey(),this.expect(":"),E=this.parsePatternWithDefault(m,x);return this.finalize(O,new u.Property("init",C,P,E,w,S))},b.prototype.parseObjectPattern=function(m,x){var O=this.createNode(),P=[];for(this.expect("{");!this.match("}");)P.push(this.parsePropertyPattern(m,x)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(O,new u.ObjectPattern(P))},b.prototype.parsePattern=function(m,x){var O;return this.match("[")?O=this.parseArrayPattern(m,x):this.match("{")?O=this.parseObjectPattern(m,x):(this.matchKeyword("let")&&(x==="const"||x==="let")&&this.tolerateUnexpectedToken(this.lookahead,l.Messages.LetInLexicalBinding),m.push(this.lookahead),O=this.parseVariableIdentifier(x)),O},b.prototype.parsePatternWithDefault=function(m,x){var O=this.lookahead,P=this.parsePattern(m,x);if(this.match("=")){this.nextToken();var S=this.context.allowYield;this.context.allowYield=!0;var w=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=S,P=this.finalize(this.startNode(O),new u.AssignmentPattern(P,w))}return P},b.prototype.parseVariableIdentifier=function(m){var x=this.createNode(),O=this.nextToken();return O.type===4&&O.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(O,l.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(O):O.type!==3?this.context.strict&&O.type===4&&this.scanner.isStrictModeReservedWord(O.value)?this.tolerateUnexpectedToken(O,l.Messages.StrictReservedWord):(this.context.strict||O.value!=="let"||m!=="var")&&this.throwUnexpectedToken(O):(this.context.isModule||this.context.await)&&O.type===3&&O.value==="await"&&this.tolerateUnexpectedToken(O),this.finalize(x,new u.Identifier(O.value))},b.prototype.parseVariableDeclaration=function(m){var x=this.createNode(),O=[],P=this.parsePattern(O,"var");this.context.strict&&P.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(P.name)&&this.tolerateError(l.Messages.StrictVarName);var S=null;return this.match("=")?(this.nextToken(),S=this.isolateCoverGrammar(this.parseAssignmentExpression)):P.type!==c.Syntax.Identifier&&!m.inFor&&this.expect("="),this.finalize(x,new u.VariableDeclarator(P,S))},b.prototype.parseVariableDeclarationList=function(m){var x={inFor:m.inFor},O=[];for(O.push(this.parseVariableDeclaration(x));this.match(",");)this.nextToken(),O.push(this.parseVariableDeclaration(x));return O},b.prototype.parseVariableStatement=function(){var m=this.createNode();this.expectKeyword("var");var x=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(m,new u.VariableDeclaration(x,"var"))},b.prototype.parseEmptyStatement=function(){var m=this.createNode();return this.expect(";"),this.finalize(m,new u.EmptyStatement)},b.prototype.parseExpressionStatement=function(){var m=this.createNode(),x=this.parseExpression();return this.consumeSemicolon(),this.finalize(m,new u.ExpressionStatement(x))},b.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(l.Messages.StrictFunction),this.parseStatement()},b.prototype.parseIfStatement=function(){var m=this.createNode(),x,O=null;this.expectKeyword("if"),this.expect("(");var P=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),x=this.finalize(this.createNode(),new u.EmptyStatement)):(this.expect(")"),x=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),O=this.parseIfClause())),this.finalize(m,new u.IfStatement(P,x,O))},b.prototype.parseDoWhileStatement=function(){var m=this.createNode();this.expectKeyword("do");var x=this.context.inIteration;this.context.inIteration=!0;var O=this.parseStatement();this.context.inIteration=x,this.expectKeyword("while"),this.expect("(");var P=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(m,new u.DoWhileStatement(O,P))},b.prototype.parseWhileStatement=function(){var m=this.createNode(),x;this.expectKeyword("while"),this.expect("(");var O=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),x=this.finalize(this.createNode(),new u.EmptyStatement);else{this.expect(")");var P=this.context.inIteration;this.context.inIteration=!0,x=this.parseStatement(),this.context.inIteration=P}return this.finalize(m,new u.WhileStatement(O,x))},b.prototype.parseForStatement=function(){var m=null,x=null,O=null,P=!0,S,w,C=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){m=this.createNode(),this.nextToken();var E=this.context.allowIn;this.context.allowIn=!1;var k=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=E,k.length===1&&this.matchKeyword("in")){var A=k[0];A.init&&(A.id.type===c.Syntax.ArrayPattern||A.id.type===c.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(l.Messages.ForInOfLoopInitializer,"for-in"),m=this.finalize(m,new u.VariableDeclaration(k,"var")),this.nextToken(),S=m,w=this.parseExpression(),m=null}else k.length===1&&k[0].init===null&&this.matchContextualKeyword("of")?(m=this.finalize(m,new u.VariableDeclaration(k,"var")),this.nextToken(),S=m,w=this.parseAssignmentExpression(),m=null,P=!1):(m=this.finalize(m,new u.VariableDeclaration(k,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){m=this.createNode();var $=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")m=this.finalize(m,new u.Identifier($)),this.nextToken(),S=m,w=this.parseExpression(),m=null;else{var E=this.context.allowIn;this.context.allowIn=!1;var k=this.parseBindingList($,{inFor:!0});this.context.allowIn=E,k.length===1&&k[0].init===null&&this.matchKeyword("in")?(m=this.finalize(m,new u.VariableDeclaration(k,$)),this.nextToken(),S=m,w=this.parseExpression(),m=null):k.length===1&&k[0].init===null&&this.matchContextualKeyword("of")?(m=this.finalize(m,new u.VariableDeclaration(k,$)),this.nextToken(),S=m,w=this.parseAssignmentExpression(),m=null,P=!1):(this.consumeSemicolon(),m=this.finalize(m,new u.VariableDeclaration(k,$)))}}else{var F=this.lookahead,E=this.context.allowIn;if(this.context.allowIn=!1,m=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=E,this.matchKeyword("in"))(!this.context.isAssignmentTarget||m.type===c.Syntax.AssignmentExpression)&&this.tolerateError(l.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(m),S=m,w=this.parseExpression(),m=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||m.type===c.Syntax.AssignmentExpression)&&this.tolerateError(l.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(m),S=m,w=this.parseAssignmentExpression(),m=null,P=!1;else{if(this.match(",")){for(var I=[m];this.match(",");)this.nextToken(),I.push(this.isolateCoverGrammar(this.parseAssignmentExpression));m=this.finalize(this.startNode(F),new u.SequenceExpression(I))}this.expect(";")}}typeof S>"u"&&(this.match(";")||(x=this.parseExpression()),this.expect(";"),this.match(")")||(O=this.parseExpression()));var B;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),B=this.finalize(this.createNode(),new u.EmptyStatement);else{this.expect(")");var j=this.context.inIteration;this.context.inIteration=!0,B=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=j}return typeof S>"u"?this.finalize(C,new u.ForStatement(m,x,O,B)):P?this.finalize(C,new u.ForInStatement(S,w,B)):this.finalize(C,new u.ForOfStatement(S,w,B))},b.prototype.parseContinueStatement=function(){var m=this.createNode();this.expectKeyword("continue");var x=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var O=this.parseVariableIdentifier();x=O;var P="$"+O.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,P)||this.throwError(l.Messages.UnknownLabel,O.name)}return this.consumeSemicolon(),x===null&&!this.context.inIteration&&this.throwError(l.Messages.IllegalContinue),this.finalize(m,new u.ContinueStatement(x))},b.prototype.parseBreakStatement=function(){var m=this.createNode();this.expectKeyword("break");var x=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var O=this.parseVariableIdentifier(),P="$"+O.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,P)||this.throwError(l.Messages.UnknownLabel,O.name),x=O}return this.consumeSemicolon(),x===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(l.Messages.IllegalBreak),this.finalize(m,new u.BreakStatement(x))},b.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(l.Messages.IllegalReturn);var m=this.createNode();this.expectKeyword("return");var x=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,O=x?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(m,new u.ReturnStatement(O))},b.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(l.Messages.StrictModeWith);var m=this.createNode(),x;this.expectKeyword("with"),this.expect("(");var O=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),x=this.finalize(this.createNode(),new u.EmptyStatement)):(this.expect(")"),x=this.parseStatement()),this.finalize(m,new u.WithStatement(O,x))},b.prototype.parseSwitchCase=function(){var m=this.createNode(),x;this.matchKeyword("default")?(this.nextToken(),x=null):(this.expectKeyword("case"),x=this.parseExpression()),this.expect(":");for(var O=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)O.push(this.parseStatementListItem());return this.finalize(m,new u.SwitchCase(x,O))},b.prototype.parseSwitchStatement=function(){var m=this.createNode();this.expectKeyword("switch"),this.expect("(");var x=this.parseExpression();this.expect(")");var O=this.context.inSwitch;this.context.inSwitch=!0;var P=[],S=!1;for(this.expect("{");!this.match("}");){var w=this.parseSwitchCase();w.test===null&&(S&&this.throwError(l.Messages.MultipleDefaultsInSwitch),S=!0),P.push(w)}return this.expect("}"),this.context.inSwitch=O,this.finalize(m,new u.SwitchStatement(x,P))},b.prototype.parseLabelledStatement=function(){var m=this.createNode(),x=this.parseExpression(),O;if(x.type===c.Syntax.Identifier&&this.match(":")){this.nextToken();var P=x,S="$"+P.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,S)&&this.throwError(l.Messages.Redeclaration,"Label",P.name),this.context.labelSet[S]=!0;var w=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),w=this.parseClassDeclaration();else if(this.matchKeyword("function")){var C=this.lookahead,E=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(C,l.Messages.StrictFunction):E.generator&&this.tolerateUnexpectedToken(C,l.Messages.GeneratorInLegacyContext),w=E}else w=this.parseStatement();delete this.context.labelSet[S],O=new u.LabeledStatement(P,w)}else this.consumeSemicolon(),O=new u.ExpressionStatement(x);return this.finalize(m,O)},b.prototype.parseThrowStatement=function(){var m=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(l.Messages.NewlineAfterThrow);var x=this.parseExpression();return this.consumeSemicolon(),this.finalize(m,new u.ThrowStatement(x))},b.prototype.parseCatchClause=function(){var m=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var x=[],O=this.parsePattern(x),P={},S=0;S<x.length;S++){var w="$"+x[S].value;Object.prototype.hasOwnProperty.call(P,w)&&this.tolerateError(l.Messages.DuplicateBinding,x[S].value),P[w]=!0}this.context.strict&&O.type===c.Syntax.Identifier&&this.scanner.isRestrictedWord(O.name)&&this.tolerateError(l.Messages.StrictCatchVariable),this.expect(")");var C=this.parseBlock();return this.finalize(m,new u.CatchClause(O,C))},b.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},b.prototype.parseTryStatement=function(){var m=this.createNode();this.expectKeyword("try");var x=this.parseBlock(),O=this.matchKeyword("catch")?this.parseCatchClause():null,P=this.matchKeyword("finally")?this.parseFinallyClause():null;return!O&&!P&&this.throwError(l.Messages.NoCatchOrFinally),this.finalize(m,new u.TryStatement(x,O,P))},b.prototype.parseDebuggerStatement=function(){var m=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(m,new u.DebuggerStatement)},b.prototype.parseStatement=function(){var m;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:m=this.parseExpressionStatement();break;case 7:var x=this.lookahead.value;x==="{"?m=this.parseBlock():x==="("?m=this.parseExpressionStatement():x===";"?m=this.parseEmptyStatement():m=this.parseExpressionStatement();break;case 3:m=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":m=this.parseBreakStatement();break;case"continue":m=this.parseContinueStatement();break;case"debugger":m=this.parseDebuggerStatement();break;case"do":m=this.parseDoWhileStatement();break;case"for":m=this.parseForStatement();break;case"function":m=this.parseFunctionDeclaration();break;case"if":m=this.parseIfStatement();break;case"return":m=this.parseReturnStatement();break;case"switch":m=this.parseSwitchStatement();break;case"throw":m=this.parseThrowStatement();break;case"try":m=this.parseTryStatement();break;case"var":m=this.parseVariableStatement();break;case"while":m=this.parseWhileStatement();break;case"with":m=this.parseWithStatement();break;default:m=this.parseExpressionStatement();break}break;default:m=this.throwUnexpectedToken(this.lookahead)}return m},b.prototype.parseFunctionSourceElements=function(){var m=this.createNode();this.expect("{");var x=this.parseDirectivePrologues(),O=this.context.labelSet,P=this.context.inIteration,S=this.context.inSwitch,w=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)x.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=O,this.context.inIteration=P,this.context.inSwitch=S,this.context.inFunctionBody=w,this.finalize(m,new u.BlockStatement(x))},b.prototype.validateParam=function(m,x,O){var P="$"+O;this.context.strict?(this.scanner.isRestrictedWord(O)&&(m.stricted=x,m.message=l.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(m.paramSet,P)&&(m.stricted=x,m.message=l.Messages.StrictParamDupe)):m.firstRestricted||(this.scanner.isRestrictedWord(O)?(m.firstRestricted=x,m.message=l.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(O)?(m.firstRestricted=x,m.message=l.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(m.paramSet,P)&&(m.stricted=x,m.message=l.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(m.paramSet,P,{value:!0,enumerable:!0,writable:!0,configurable:!0}):m.paramSet[P]=!0},b.prototype.parseRestElement=function(m){var x=this.createNode();this.expect("...");var O=this.parsePattern(m);return this.match("=")&&this.throwError(l.Messages.DefaultRestParameter),this.match(")")||this.throwError(l.Messages.ParameterAfterRestParameter),this.finalize(x,new u.RestElement(O))},b.prototype.parseFormalParameter=function(m){for(var x=[],O=this.match("...")?this.parseRestElement(x):this.parsePatternWithDefault(x),P=0;P<x.length;P++)this.validateParam(m,x[P],x[P].value);m.simple=m.simple&&O instanceof u.Identifier,m.params.push(O)},b.prototype.parseFormalParameters=function(m){var x;if(x={simple:!0,params:[],firstRestricted:m},this.expect("("),!this.match(")"))for(x.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(x),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:x.simple,params:x.params,stricted:x.stricted,firstRestricted:x.firstRestricted,message:x.message}},b.prototype.matchAsyncFunction=function(){var m=this.matchContextualKeyword("async");if(m){var x=this.scanner.saveState();this.scanner.scanComments();var O=this.scanner.lex();this.scanner.restoreState(x),m=x.lineNumber===O.lineNumber&&O.type===4&&O.value==="function"}return m},b.prototype.parseFunctionDeclaration=function(m){var x=this.createNode(),O=this.matchContextualKeyword("async");O&&this.nextToken(),this.expectKeyword("function");var P=O?!1:this.match("*");P&&this.nextToken();var S,w=null,C=null;if(!m||!this.match("(")){var E=this.lookahead;w=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(E.value)&&this.tolerateUnexpectedToken(E,l.Messages.StrictFunctionName):this.scanner.isRestrictedWord(E.value)?(C=E,S=l.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(E.value)&&(C=E,S=l.Messages.StrictReservedWord)}var k=this.context.await,A=this.context.allowYield;this.context.await=O,this.context.allowYield=!P;var $=this.parseFormalParameters(C),F=$.params,I=$.stricted;C=$.firstRestricted,$.message&&(S=$.message);var B=this.context.strict,j=this.context.allowStrictDirective;this.context.allowStrictDirective=$.simple;var M=this.parseFunctionSourceElements();return this.context.strict&&C&&this.throwUnexpectedToken(C,S),this.context.strict&&I&&this.tolerateUnexpectedToken(I,S),this.context.strict=B,this.context.allowStrictDirective=j,this.context.await=k,this.context.allowYield=A,O?this.finalize(x,new u.AsyncFunctionDeclaration(w,F,M)):this.finalize(x,new u.FunctionDeclaration(w,F,M,P))},b.prototype.parseFunctionExpression=function(){var m=this.createNode(),x=this.matchContextualKeyword("async");x&&this.nextToken(),this.expectKeyword("function");var O=x?!1:this.match("*");O&&this.nextToken();var P,S=null,w,C=this.context.await,E=this.context.allowYield;if(this.context.await=x,this.context.allowYield=!O,!this.match("(")){var k=this.lookahead;S=!this.context.strict&&!O&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(k.value)&&this.tolerateUnexpectedToken(k,l.Messages.StrictFunctionName):this.scanner.isRestrictedWord(k.value)?(w=k,P=l.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(k.value)&&(w=k,P=l.Messages.StrictReservedWord)}var A=this.parseFormalParameters(w),$=A.params,F=A.stricted;w=A.firstRestricted,A.message&&(P=A.message);var I=this.context.strict,B=this.context.allowStrictDirective;this.context.allowStrictDirective=A.simple;var j=this.parseFunctionSourceElements();return this.context.strict&&w&&this.throwUnexpectedToken(w,P),this.context.strict&&F&&this.tolerateUnexpectedToken(F,P),this.context.strict=I,this.context.allowStrictDirective=B,this.context.await=C,this.context.allowYield=E,x?this.finalize(m,new u.AsyncFunctionExpression(S,$,j)):this.finalize(m,new u.FunctionExpression(S,$,j,O))},b.prototype.parseDirective=function(){var m=this.lookahead,x=this.createNode(),O=this.parseExpression(),P=O.type===c.Syntax.Literal?this.getTokenRaw(m).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(x,P?new u.Directive(O,P):new u.ExpressionStatement(O))},b.prototype.parseDirectivePrologues=function(){for(var m=null,x=[];;){var O=this.lookahead;if(O.type!==8)break;var P=this.parseDirective();x.push(P);var S=P.directive;if(typeof S!="string")break;S==="use strict"?(this.context.strict=!0,m&&this.tolerateUnexpectedToken(m,l.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(O,l.Messages.IllegalLanguageModeDirective)):!m&&O.octal&&(m=O)}return x},b.prototype.qualifiedPropertyName=function(m){switch(m.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return m.value==="["}return!1},b.prototype.parseGetterMethod=function(){var m=this.createNode(),x=!1,O=this.context.allowYield;this.context.allowYield=!x;var P=this.parseFormalParameters();P.params.length>0&&this.tolerateError(l.Messages.BadGetterArity);var S=this.parsePropertyMethod(P);return this.context.allowYield=O,this.finalize(m,new u.FunctionExpression(null,P.params,S,x))},b.prototype.parseSetterMethod=function(){var m=this.createNode(),x=!1,O=this.context.allowYield;this.context.allowYield=!x;var P=this.parseFormalParameters();P.params.length!==1?this.tolerateError(l.Messages.BadSetterArity):P.params[0]instanceof u.RestElement&&this.tolerateError(l.Messages.BadSetterRestParameter);var S=this.parsePropertyMethod(P);return this.context.allowYield=O,this.finalize(m,new u.FunctionExpression(null,P.params,S,x))},b.prototype.parseGeneratorMethod=function(){var m=this.createNode(),x=!0,O=this.context.allowYield;this.context.allowYield=!0;var P=this.parseFormalParameters();this.context.allowYield=!1;var S=this.parsePropertyMethod(P);return this.context.allowYield=O,this.finalize(m,new u.FunctionExpression(null,P.params,S,x))},b.prototype.isStartOfExpression=function(){var m=!0,x=this.lookahead.value;switch(this.lookahead.type){case 7:m=x==="["||x==="("||x==="{"||x==="+"||x==="-"||x==="!"||x==="~"||x==="++"||x==="--"||x==="/"||x==="/=";break;case 4:m=x==="class"||x==="delete"||x==="function"||x==="let"||x==="new"||x==="super"||x==="this"||x==="typeof"||x==="void"||x==="yield";break}return m},b.prototype.parseYieldExpression=function(){var m=this.createNode();this.expectKeyword("yield");var x=null,O=!1;if(!this.hasLineTerminator){var P=this.context.allowYield;this.context.allowYield=!1,O=this.match("*"),O?(this.nextToken(),x=this.parseAssignmentExpression()):this.isStartOfExpression()&&(x=this.parseAssignmentExpression()),this.context.allowYield=P}return this.finalize(m,new u.YieldExpression(x,O))},b.prototype.parseClassElement=function(m){var x=this.lookahead,O=this.createNode(),P="",S=null,w=null,C=!1,E=!1,k=!1,A=!1;if(this.match("*"))this.nextToken();else{C=this.match("["),S=this.parseObjectPropertyKey();var $=S;if($.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(x=this.lookahead,k=!0,C=this.match("["),this.match("*")?this.nextToken():S=this.parseObjectPropertyKey()),x.type===3&&!this.hasLineTerminator&&x.value==="async"){var F=this.lookahead.value;F!==":"&&F!=="("&&F!=="*"&&(A=!0,x=this.lookahead,S=this.parseObjectPropertyKey(),x.type===3&&x.value==="constructor"&&this.tolerateUnexpectedToken(x,l.Messages.ConstructorIsAsync))}}var I=this.qualifiedPropertyName(this.lookahead);return x.type===3?x.value==="get"&&I?(P="get",C=this.match("["),S=this.parseObjectPropertyKey(),this.context.allowYield=!1,w=this.parseGetterMethod()):x.value==="set"&&I&&(P="set",C=this.match("["),S=this.parseObjectPropertyKey(),w=this.parseSetterMethod()):x.type===7&&x.value==="*"&&I&&(P="init",C=this.match("["),S=this.parseObjectPropertyKey(),w=this.parseGeneratorMethod(),E=!0),!P&&S&&this.match("(")&&(P="init",w=A?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),E=!0),P||this.throwUnexpectedToken(this.lookahead),P==="init"&&(P="method"),C||(k&&this.isPropertyKey(S,"prototype")&&this.throwUnexpectedToken(x,l.Messages.StaticPrototype),!k&&this.isPropertyKey(S,"constructor")&&((P!=="method"||!E||w&&w.generator)&&this.throwUnexpectedToken(x,l.Messages.ConstructorSpecialMethod),m.value?this.throwUnexpectedToken(x,l.Messages.DuplicateConstructor):m.value=!0,P="constructor")),this.finalize(O,new u.MethodDefinition(S,C,w,P,k))},b.prototype.parseClassElementList=function(){var m=[],x={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():m.push(this.parseClassElement(x));return this.expect("}"),m},b.prototype.parseClassBody=function(){var m=this.createNode(),x=this.parseClassElementList();return this.finalize(m,new u.ClassBody(x))},b.prototype.parseClassDeclaration=function(m){var x=this.createNode(),O=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var P=m&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),S=null;this.matchKeyword("extends")&&(this.nextToken(),S=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var w=this.parseClassBody();return this.context.strict=O,this.finalize(x,new u.ClassDeclaration(P,S,w))},b.prototype.parseClassExpression=function(){var m=this.createNode(),x=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var O=this.lookahead.type===3?this.parseVariableIdentifier():null,P=null;this.matchKeyword("extends")&&(this.nextToken(),P=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var S=this.parseClassBody();return this.context.strict=x,this.finalize(m,new u.ClassExpression(O,P,S))},b.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var m=this.createNode(),x=this.parseDirectivePrologues();this.lookahead.type!==2;)x.push(this.parseStatementListItem());return this.finalize(m,new u.Module(x))},b.prototype.parseScript=function(){for(var m=this.createNode(),x=this.parseDirectivePrologues();this.lookahead.type!==2;)x.push(this.parseStatementListItem());return this.finalize(m,new u.Script(x))},b.prototype.parseModuleSpecifier=function(){var m=this.createNode();this.lookahead.type!==8&&this.throwError(l.Messages.InvalidModuleSpecifier);var x=this.nextToken(),O=this.getTokenRaw(x);return this.finalize(m,new u.Literal(x.value,O))},b.prototype.parseImportSpecifier=function(){var m=this.createNode(),x,O;return this.lookahead.type===3?(x=this.parseVariableIdentifier(),O=x,this.matchContextualKeyword("as")&&(this.nextToken(),O=this.parseVariableIdentifier())):(x=this.parseIdentifierName(),O=x,this.matchContextualKeyword("as")?(this.nextToken(),O=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(m,new u.ImportSpecifier(O,x))},b.prototype.parseNamedImports=function(){this.expect("{");for(var m=[];!this.match("}");)m.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),m},b.prototype.parseImportDefaultSpecifier=function(){var m=this.createNode(),x=this.parseIdentifierName();return this.finalize(m,new u.ImportDefaultSpecifier(x))},b.prototype.parseImportNamespaceSpecifier=function(){var m=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(l.Messages.NoAsAfterImportNamespace),this.nextToken();var x=this.parseIdentifierName();return this.finalize(m,new u.ImportNamespaceSpecifier(x))},b.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(l.Messages.IllegalImportDeclaration);var m=this.createNode();this.expectKeyword("import");var x,O=[];if(this.lookahead.type===8)x=this.parseModuleSpecifier();else{if(this.match("{")?O=O.concat(this.parseNamedImports()):this.match("*")?O.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(O.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?O.push(this.parseImportNamespaceSpecifier()):this.match("{")?O=O.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var P=this.lookahead.value?l.Messages.UnexpectedToken:l.Messages.MissingFromClause;this.throwError(P,this.lookahead.value)}this.nextToken(),x=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(m,new u.ImportDeclaration(O,x))},b.prototype.parseExportSpecifier=function(){var m=this.createNode(),x=this.parseIdentifierName(),O=x;return this.matchContextualKeyword("as")&&(this.nextToken(),O=this.parseIdentifierName()),this.finalize(m,new u.ExportSpecifier(x,O))},b.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(l.Messages.IllegalExportDeclaration);var m=this.createNode();this.expectKeyword("export");var x;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var O=this.parseFunctionDeclaration(!0);x=this.finalize(m,new u.ExportDefaultDeclaration(O))}else if(this.matchKeyword("class")){var O=this.parseClassDeclaration(!0);x=this.finalize(m,new u.ExportDefaultDeclaration(O))}else if(this.matchContextualKeyword("async")){var O=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();x=this.finalize(m,new u.ExportDefaultDeclaration(O))}else{this.matchContextualKeyword("from")&&this.throwError(l.Messages.UnexpectedToken,this.lookahead.value);var O=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),x=this.finalize(m,new u.ExportDefaultDeclaration(O))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var P=this.lookahead.value?l.Messages.UnexpectedToken:l.Messages.MissingFromClause;this.throwError(P,this.lookahead.value)}this.nextToken();var S=this.parseModuleSpecifier();this.consumeSemicolon(),x=this.finalize(m,new u.ExportAllDeclaration(S))}else if(this.lookahead.type===4){var O=void 0;switch(this.lookahead.value){case"let":case"const":O=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":O=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}x=this.finalize(m,new u.ExportNamedDeclaration(O,[],null))}else if(this.matchAsyncFunction()){var O=this.parseFunctionDeclaration();x=this.finalize(m,new u.ExportNamedDeclaration(O,[],null))}else{var w=[],C=null,E=!1;for(this.expect("{");!this.match("}");)E=E||this.matchKeyword("default"),w.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),C=this.parseModuleSpecifier(),this.consumeSemicolon();else if(E){var P=this.lookahead.value?l.Messages.UnexpectedToken:l.Messages.MissingFromClause;this.throwError(P,this.lookahead.value)}else this.consumeSemicolon();x=this.finalize(m,new u.ExportNamedDeclaration(null,w,C))}return x},b})();n.Parser=g},function(i,n){Object.defineProperty(n,"__esModule",{value:!0});function r(s,a){if(!s)throw new Error("ASSERT: "+a)}n.assert=r},function(i,n){Object.defineProperty(n,"__esModule",{value:!0});var r=(function(){function s(){this.errors=[],this.tolerant=!1}return s.prototype.recordError=function(a){this.errors.push(a)},s.prototype.tolerate=function(a){if(this.tolerant)this.recordError(a);else throw a},s.prototype.constructError=function(a,l){var u=new Error(a);try{throw u}catch(h){Object.create&&Object.defineProperty&&(u=Object.create(h),Object.defineProperty(u,"column",{value:l}))}return u},s.prototype.createError=function(a,l,u,h){var c="Line "+l+": "+h,p=this.constructError(c,u);return p.index=a,p.lineNumber=l,p.description=h,p},s.prototype.throwError=function(a,l,u,h){throw this.createError(a,l,u,h)},s.prototype.tolerateError=function(a,l,u,h){var c=this.createError(a,l,u,h);if(this.tolerant)this.recordError(c);else throw c},s})();n.ErrorHandler=r},function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(i,n,r){Object.defineProperty(n,"__esModule",{value:!0});var s=r(9),a=r(4),l=r(11);function u(p){return"0123456789abcdef".indexOf(p.toLowerCase())}function h(p){return"01234567".indexOf(p)}var c=(function(){function p(v,g){this.source=v,this.errorHandler=g,this.trackComment=!1,this.isModule=!1,this.length=v.length,this.index=0,this.lineNumber=v.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return p.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},p.prototype.restoreState=function(v){this.index=v.index,this.lineNumber=v.lineNumber,this.lineStart=v.lineStart},p.prototype.eof=function(){return this.index>=this.length},p.prototype.throwUnexpectedToken=function(v){return v===void 0&&(v=l.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,v)},p.prototype.tolerateUnexpectedToken=function(v){v===void 0&&(v=l.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,v)},p.prototype.skipSingleLineComment=function(v){var g=[],b,m;for(this.trackComment&&(g=[],b=this.index-v,m={start:{line:this.lineNumber,column:this.index-this.lineStart-v},end:{}});!this.eof();){var x=this.source.charCodeAt(this.index);if(++this.index,a.Character.isLineTerminator(x)){if(this.trackComment){m.end={line:this.lineNumber,column:this.index-this.lineStart-1};var O={multiLine:!1,slice:[b+v,this.index-1],range:[b,this.index-1],loc:m};g.push(O)}return x===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,g}}if(this.trackComment){m.end={line:this.lineNumber,column:this.index-this.lineStart};var O={multiLine:!1,slice:[b+v,this.index],range:[b,this.index],loc:m};g.push(O)}return g},p.prototype.skipMultiLineComment=function(){var v=[],g,b;for(this.trackComment&&(v=[],g=this.index-2,b={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var m=this.source.charCodeAt(this.index);if(a.Character.isLineTerminator(m))m===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(m===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){b.end={line:this.lineNumber,column:this.index-this.lineStart};var x={multiLine:!0,slice:[g+2,this.index-2],range:[g,this.index],loc:b};v.push(x)}return v}++this.index}else++this.index}if(this.trackComment){b.end={line:this.lineNumber,column:this.index-this.lineStart};var x={multiLine:!0,slice:[g+2,this.index],range:[g,this.index],loc:b};v.push(x)}return this.tolerateUnexpectedToken(),v},p.prototype.scanComments=function(){var v;this.trackComment&&(v=[]);for(var g=this.index===0;!this.eof();){var b=this.source.charCodeAt(this.index);if(a.Character.isWhiteSpace(b))++this.index;else if(a.Character.isLineTerminator(b))++this.index,b===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,g=!0;else if(b===47)if(b=this.source.charCodeAt(this.index+1),b===47){this.index+=2;var m=this.skipSingleLineComment(2);this.trackComment&&(v=v.concat(m)),g=!0}else if(b===42){this.index+=2;var m=this.skipMultiLineComment();this.trackComment&&(v=v.concat(m))}else break;else if(g&&b===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var m=this.skipSingleLineComment(3);this.trackComment&&(v=v.concat(m))}else break;else if(b===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var m=this.skipSingleLineComment(4);this.trackComment&&(v=v.concat(m))}else break;else break}return v},p.prototype.isFutureReservedWord=function(v){switch(v){case"enum":case"export":case"import":case"super":return!0;default:return!1}},p.prototype.isStrictModeReservedWord=function(v){switch(v){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},p.prototype.isRestrictedWord=function(v){return v==="eval"||v==="arguments"},p.prototype.isKeyword=function(v){switch(v.length){case 2:return v==="if"||v==="in"||v==="do";case 3:return v==="var"||v==="for"||v==="new"||v==="try"||v==="let";case 4:return v==="this"||v==="else"||v==="case"||v==="void"||v==="with"||v==="enum";case 5:return v==="while"||v==="break"||v==="catch"||v==="throw"||v==="const"||v==="yield"||v==="class"||v==="super";case 6:return v==="return"||v==="typeof"||v==="delete"||v==="switch"||v==="export"||v==="import";case 7:return v==="default"||v==="finally"||v==="extends";case 8:return v==="function"||v==="continue"||v==="debugger";case 10:return v==="instanceof";default:return!1}},p.prototype.codePointAt=function(v){var g=this.source.charCodeAt(v);if(g>=55296&&g<=56319){var b=this.source.charCodeAt(v+1);if(b>=56320&&b<=57343){var m=g;g=(m-55296)*1024+b-56320+65536}}return g},p.prototype.scanHexEscape=function(v){for(var g=v==="u"?4:2,b=0,m=0;m<g;++m)if(!this.eof()&&a.Character.isHexDigit(this.source.charCodeAt(this.index)))b=b*16+u(this.source[this.index++]);else return null;return String.fromCharCode(b)},p.prototype.scanUnicodeCodePointEscape=function(){var v=this.source[this.index],g=0;for(v==="}"&&this.throwUnexpectedToken();!this.eof()&&(v=this.source[this.index++],!!a.Character.isHexDigit(v.charCodeAt(0)));)g=g*16+u(v);return(g>1114111||v!=="}")&&this.throwUnexpectedToken(),a.Character.fromCodePoint(g)},p.prototype.getIdentifier=function(){for(var v=this.index++;!this.eof();){var g=this.source.charCodeAt(this.index);if(g===92)return this.index=v,this.getComplexIdentifier();if(g>=55296&&g<57343)return this.index=v,this.getComplexIdentifier();if(a.Character.isIdentifierPart(g))++this.index;else break}return this.source.slice(v,this.index)},p.prototype.getComplexIdentifier=function(){var v=this.codePointAt(this.index),g=a.Character.fromCodePoint(v);this.index+=g.length;var b;for(v===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,b=this.scanUnicodeCodePointEscape()):(b=this.scanHexEscape("u"),(b===null||b==="\\"||!a.Character.isIdentifierStart(b.charCodeAt(0)))&&this.throwUnexpectedToken()),g=b);!this.eof()&&(v=this.codePointAt(this.index),!!a.Character.isIdentifierPart(v));)b=a.Character.fromCodePoint(v),g+=b,this.index+=b.length,v===92&&(g=g.substr(0,g.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,b=this.scanUnicodeCodePointEscape()):(b=this.scanHexEscape("u"),(b===null||b==="\\"||!a.Character.isIdentifierPart(b.charCodeAt(0)))&&this.throwUnexpectedToken()),g+=b);return g},p.prototype.octalToDecimal=function(v){var g=v!=="0",b=h(v);return!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(g=!0,b=b*8+h(this.source[this.index++]),"0123".indexOf(v)>=0&&!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(b=b*8+h(this.source[this.index++]))),{code:b,octal:g}},p.prototype.scanIdentifier=function(){var v,g=this.index,b=this.source.charCodeAt(g)===92?this.getComplexIdentifier():this.getIdentifier();if(b.length===1?v=3:this.isKeyword(b)?v=4:b==="null"?v=5:b==="true"||b==="false"?v=1:v=3,v!==3&&g+b.length!==this.index){var m=this.index;this.index=g,this.tolerateUnexpectedToken(l.Messages.InvalidEscapedReservedWord),this.index=m}return{type:v,value:b,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},p.prototype.scanPunctuator=function(){var v=this.index,g=this.source[this.index];switch(g){case"(":case"{":g==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,g="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:g=this.source.substr(this.index,4),g===">>>="?this.index+=4:(g=g.substr(0,3),g==="==="||g==="!=="||g===">>>"||g==="<<="||g===">>="||g==="**="?this.index+=3:(g=g.substr(0,2),g==="&&"||g==="||"||g==="=="||g==="!="||g==="+="||g==="-="||g==="*="||g==="/="||g==="++"||g==="--"||g==="<<"||g===">>"||g==="&="||g==="|="||g==="^="||g==="%="||g==="<="||g===">="||g==="=>"||g==="**"?this.index+=2:(g=this.source[this.index],"<>=!+-*%&|^/".indexOf(g)>=0&&++this.index)))}return this.index===v&&this.throwUnexpectedToken(),{type:7,value:g,lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},p.prototype.scanHexLiteral=function(v){for(var g="";!this.eof()&&a.Character.isHexDigit(this.source.charCodeAt(this.index));)g+=this.source[this.index++];return g.length===0&&this.throwUnexpectedToken(),a.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+g,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},p.prototype.scanBinaryLiteral=function(v){for(var g="",b;!this.eof()&&(b=this.source[this.index],!(b!=="0"&&b!=="1"));)g+=this.source[this.index++];return g.length===0&&this.throwUnexpectedToken(),this.eof()||(b=this.source.charCodeAt(this.index),(a.Character.isIdentifierStart(b)||a.Character.isDecimalDigit(b))&&this.throwUnexpectedToken()),{type:6,value:parseInt(g,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},p.prototype.scanOctalLiteral=function(v,g){var b="",m=!1;for(a.Character.isOctalDigit(v.charCodeAt(0))?(m=!0,b="0"+this.source[this.index++]):++this.index;!this.eof()&&a.Character.isOctalDigit(this.source.charCodeAt(this.index));)b+=this.source[this.index++];return!m&&b.length===0&&this.throwUnexpectedToken(),(a.Character.isIdentifierStart(this.source.charCodeAt(this.index))||a.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(b,8),octal:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},p.prototype.isImplicitOctalLiteral=function(){for(var v=this.index+1;v<this.length;++v){var g=this.source[v];if(g==="8"||g==="9")return!1;if(!a.Character.isOctalDigit(g.charCodeAt(0)))return!0}return!0},p.prototype.scanNumericLiteral=function(){var v=this.index,g=this.source[v];s.assert(a.Character.isDecimalDigit(g.charCodeAt(0))||g===".","Numeric literal must start with a decimal digit or a decimal point");var b="";if(g!=="."){if(b=this.source[this.index++],g=this.source[this.index],b==="0"){if(g==="x"||g==="X")return++this.index,this.scanHexLiteral(v);if(g==="b"||g==="B")return++this.index,this.scanBinaryLiteral(v);if(g==="o"||g==="O")return this.scanOctalLiteral(g,v);if(g&&a.Character.isOctalDigit(g.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(g,v)}for(;a.Character.isDecimalDigit(this.source.charCodeAt(this.index));)b+=this.source[this.index++];g=this.source[this.index]}if(g==="."){for(b+=this.source[this.index++];a.Character.isDecimalDigit(this.source.charCodeAt(this.index));)b+=this.source[this.index++];g=this.source[this.index]}if(g==="e"||g==="E")if(b+=this.source[this.index++],g=this.source[this.index],(g==="+"||g==="-")&&(b+=this.source[this.index++]),a.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;a.Character.isDecimalDigit(this.source.charCodeAt(this.index));)b+=this.source[this.index++];else this.throwUnexpectedToken();return a.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(b),lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},p.prototype.scanStringLiteral=function(){var v=this.index,g=this.source[v];s.assert(g==="'"||g==='"',"String literal must starts with a quote"),++this.index;for(var b=!1,m="";!this.eof();){var x=this.source[this.index++];if(x===g){g="";break}else if(x==="\\")if(x=this.source[this.index++],!x||!a.Character.isLineTerminator(x.charCodeAt(0)))switch(x){case"u":if(this.source[this.index]==="{")++this.index,m+=this.scanUnicodeCodePointEscape();else{var O=this.scanHexEscape(x);O===null&&this.throwUnexpectedToken(),m+=O}break;case"x":var P=this.scanHexEscape(x);P===null&&this.throwUnexpectedToken(l.Messages.InvalidHexEscapeSequence),m+=P;break;case"n":m+=`
|
|
@@ -151,7 +151,7 @@ while`),Q.push(" (",D.call(L,"test"),");"),(0,s.concat)(Q)}case"DoExpression":{v
|
|
|
151
151
|
`),cooked:T===null?null:T.slice(1,W)},z.tail=U,this.next();const pe=this.finishNode(z,"TemplateElement");return this.resetEndLocation(pe,n(this.state.lastTokEndLoc,W)),pe}parseTemplate(f){const o=this.startNode();let d=this.parseTemplateElement(f);const y=[d],T=[];for(;!d.tail;)T.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),y.push(d=this.parseTemplateElement(f));return o.expressions=T,o.quasis=y,this.finishNode(o,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(f,o,d,y){d&&this.expectPlugin("recordAndTuple");const T=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let N=!1,z=!0;const U=this.startNode();for(U.properties=[],this.next();!this.match(f);){if(z)z=!1;else if(this.expect(12),this.match(f)){this.addTrailingCommaExtraToNode(U);break}let ee;o?ee=this.parseBindingProperty():(ee=this.parsePropertyDefinition(y),N=this.checkProto(ee,d,N,y)),d&&!this.isObjectProperty(ee)&&ee.type!=="SpreadElement"&&this.raise(O.InvalidRecordProperty,ee),ee.shorthand&&this.addExtra(ee,"shorthand",!0),U.properties.push(ee)}this.next(),this.state.inFSharpPipelineDirectBody=T;let W="ObjectExpression";return o?W="ObjectPattern":d&&(W="RecordExpression"),this.finishNode(U,W)}addTrailingCommaExtraToNode(f){this.addExtra(f,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(f,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(f){return!f.computed&&f.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(f){let o=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(O.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());const d=this.startNode();let y=!1,T=!1,N;if(this.match(21))return o.length&&this.unexpected(),this.parseSpread();o.length&&(d.decorators=o,o=[]),d.method=!1,f&&(N=this.state.startLoc);let z=this.eat(55);this.parsePropertyNamePrefixOperator(d);const U=this.state.containsEsc;if(this.parsePropertyName(d,f),!z&&!U&&this.maybeAsyncOrAccessorProp(d)){const{key:W}=d,ee=W.name;ee==="async"&&!this.hasPrecedingLineBreak()&&(y=!0,this.resetPreviousNodeTrailingComments(W),z=this.eat(55),this.parsePropertyName(d)),(ee==="get"||ee==="set")&&(T=!0,this.resetPreviousNodeTrailingComments(W),d.kind=ee,this.match(55)&&(z=!0,this.raise(O.AccessorIsGenerator,this.state.curPosition(),{kind:ee}),this.next()),this.parsePropertyName(d))}return this.parseObjPropValue(d,N,z,y,!1,T,f)}getGetterSetterExpectedParamCount(f){return f.kind==="get"?0:1}getObjectOrClassMethodParams(f){return f.params}checkGetterSetterParams(f){var o;const d=this.getGetterSetterExpectedParamCount(f),y=this.getObjectOrClassMethodParams(f);y.length!==d&&this.raise(f.kind==="get"?O.BadGetterArity:O.BadSetterArity,f),f.kind==="set"&&((o=y[y.length-1])==null?void 0:o.type)==="RestElement"&&this.raise(O.BadSetterRestParameter,f)}parseObjectMethod(f,o,d,y,T){if(T){const N=this.parseMethod(f,o,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(N),N}if(d||o||this.match(10))return y&&this.unexpected(),f.kind="method",f.method=!0,this.parseMethod(f,o,d,!1,!1,"ObjectMethod")}parseObjectProperty(f,o,d,y){if(f.shorthand=!1,this.eat(14))return f.value=d?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,y),this.finishObjectProperty(f);if(!f.computed&&f.key.type==="Identifier"){if(this.checkReservedWord(f.key.name,f.key.loc.start,!0,!1),d)f.value=this.parseMaybeDefault(o,this.cloneIdentifier(f.key));else if(this.match(29)){const T=this.state.startLoc;y!=null?y.shorthandAssignLoc===null&&(y.shorthandAssignLoc=T):this.raise(O.InvalidCoverInitializedName,T),f.value=this.parseMaybeDefault(o,this.cloneIdentifier(f.key))}else f.value=this.cloneIdentifier(f.key);return f.shorthand=!0,this.finishObjectProperty(f)}}finishObjectProperty(f){return this.finishNode(f,"ObjectProperty")}parseObjPropValue(f,o,d,y,T,N,z){const U=this.parseObjectMethod(f,d,y,T,N)||this.parseObjectProperty(f,o,T,z);return U||this.unexpected(),U}parsePropertyName(f,o){if(this.eat(0))f.computed=!0,f.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:d,value:y}=this.state;let T;if(ke(d))T=this.parseIdentifier(!0);else switch(d){case 135:T=this.parseNumericLiteral(y);break;case 134:T=this.parseStringLiteral(y);break;case 136:T=this.parseBigIntLiteral(y);break;case 139:{const N=this.state.startLoc;o!=null?o.privateKeyLoc===null&&(o.privateKeyLoc=N):this.raise(O.UnexpectedPrivateField,N),T=this.parsePrivateName();break}default:if(d===137){T=this.parseDecimalLiteral(y);break}this.unexpected()}f.key=T,d!==139&&(f.computed=!1)}}initFunction(f,o){f.id=null,f.generator=!1,f.async=o}parseMethod(f,o,d,y,T,N,z=!1){this.initFunction(f,d),f.generator=o,this.scope.enter(530|(z?576:0)|(T?32:0)),this.prodParam.enter(Fn(d,f.generator)),this.parseFunctionParams(f,y);const U=this.parseFunctionBodyAndFinish(f,N,!0);return this.prodParam.exit(),this.scope.exit(),U}parseArrayLike(f,o,d){o&&this.expectPlugin("recordAndTuple");const y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const T=this.startNode();return this.next(),T.elements=this.parseExprList(f,!o,d,T),this.state.inFSharpPipelineDirectBody=y,this.finishNode(T,o?"TupleExpression":"ArrayExpression")}parseArrowExpression(f,o,d,y){this.scope.enter(518);let T=Fn(d,!1);!this.match(5)&&this.prodParam.hasIn&&(T|=8),this.prodParam.enter(T),this.initFunction(f,d);const N=this.state.maybeInArrowParameters;return o&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(f,o,y)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(f,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=N,this.finishNode(f,"ArrowFunctionExpression")}setArrowFunctionParameters(f,o,d){this.toAssignableList(o,d,!1),f.params=o}parseFunctionBodyAndFinish(f,o,d=!1){return this.parseFunctionBody(f,!1,d),this.finishNode(f,o)}parseFunctionBody(f,o,d=!1){const y=o&&!this.match(5);if(this.expressionScope.enter(mm()),y)f.body=this.parseMaybeAssign(),this.checkParams(f,!1,o,!1);else{const T=this.state.strict,N=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),f.body=this.parseBlock(!0,!1,z=>{const U=!this.isSimpleParamList(f.params);z&&U&&this.raise(O.IllegalLanguageModeDirective,(f.kind==="method"||f.kind==="constructor")&&f.key?f.key.loc.end:f);const W=!T&&this.state.strict;this.checkParams(f,!this.state.strict&&!o&&!d&&!U,o,W),this.state.strict&&f.id&&this.checkIdentifier(f.id,65,W)}),this.prodParam.exit(),this.state.labels=N}this.expressionScope.exit()}isSimpleParameter(f){return f.type==="Identifier"}isSimpleParamList(f){for(let o=0,d=f.length;o<d;o++)if(!this.isSimpleParameter(f[o]))return!1;return!0}checkParams(f,o,d,y=!0){const T=!o&&new Set,N={type:"FormalParameters"};for(const z of f.params)this.checkLVal(z,N,5,T,y)}parseExprList(f,o,d,y){const T=[];let N=!0;for(;!this.eat(f);){if(N)N=!1;else if(this.expect(12),this.match(f)){y&&this.addTrailingCommaExtraToNode(y),this.next();break}T.push(this.parseExprListItem(f,o,d))}return T}parseExprListItem(f,o,d,y){let T;if(this.match(12))o||this.raise(O.UnexpectedToken,this.state.curPosition(),{unexpected:","}),T=null;else if(this.match(21)){const N=this.state.startLoc;T=this.parseParenItem(this.parseSpread(d),N)}else if(this.match(17)){this.expectPlugin("partialApplication"),y||this.raise(O.UnexpectedArgumentPlaceholder,this.state.startLoc);const N=this.startNode();this.next(),T=this.finishNode(N,"ArgumentPlaceholder")}else T=this.parseMaybeAssignAllowInOrVoidPattern(f,d,this.parseParenItem);return T}parseIdentifier(f){const o=this.startNode(),d=this.parseIdentifierName(f);return this.createIdentifier(o,d)}createIdentifier(f,o){return f.name=o,f.loc.identifierName=o,this.finishNode(f,"Identifier")}createIdentifierAt(f,o,d){return f.name=o,f.loc.identifierName=o,this.finishNodeAt(f,"Identifier",d)}parseIdentifierName(f){let o;const{startLoc:d,type:y}=this.state;ke(y)?o=this.state.value:this.unexpected();const T=Re(y);return f?T&&this.replaceToken(132):this.checkReservedWord(o,d,T,!1),this.next(),o}checkReservedWord(f,o,d,y){if(f.length>10||!ml(f))return;if(d&&pr(f)){this.raise(O.UnexpectedKeyword,o,{keyword:f});return}if((this.state.strict?y?$t:Ce:ge)(f,this.inModule)){this.raise(O.UnexpectedReservedWord,o,{reservedWord:f});return}else if(f==="yield"){if(this.prodParam.hasYield){this.raise(O.YieldBindingIdentifier,o);return}}else if(f==="await"){if(this.prodParam.hasAwait){this.raise(O.AwaitBindingIdentifier,o);return}if(this.scope.inStaticBlock){this.raise(O.AwaitBindingIdentifierInStaticBlock,o);return}this.expressionScope.recordAsyncArrowParametersError(o)}else if(f==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(O.ArgumentsInClass,o);return}}recordAwaitIfAllowed(){const f=this.prodParam.hasAwait;return f&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),f}parseAwait(f){const o=this.startNodeAt(f);return this.expressionScope.recordParameterInitializerError(O.AwaitExpressionFormalParameter,o),this.eat(55)&&this.raise(O.ObsoleteAwaitStar,o),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(o.argument=this.parseMaybeUnary(null,!0)),this.finishNode(o,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:f}=this.state;return f===53||f===10||f===0||Tt(f)||f===102&&!this.state.containsEsc||f===138||f===56||this.hasPlugin("v8intrinsic")&&f===54}parseYield(f){const o=this.startNodeAt(f);this.expressionScope.recordParameterInitializerError(O.YieldInParameter,o);let d=!1,y=null;if(!this.hasPrecedingLineBreak())switch(d=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!d)break;default:y=this.parseMaybeAssign()}return o.delegate=d,o.argument=y,this.finishNode(o,"YieldExpression")}parseImportCall(f){if(this.next(),f.source=this.parseMaybeAssignAllowIn(),f.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(f.source);else if(f.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(f.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(O.ImportCallArity,f)}}return this.expect(11),this.finishNode(f,"ImportExpression")}checkPipelineAtInfixOperator(f,o){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&f.type==="SequenceExpression"&&this.raise(O.PipelineHeadSequenceExpression,o)}parseSmartPipelineBodyInStyle(f,o){if(this.isSimpleReference(f)){const d=this.startNodeAt(o);return d.callee=f,this.finishNode(d,"PipelineBareFunction")}else{const d=this.startNodeAt(o);return this.checkSmartPipeTopicBodyEarlyErrors(o),d.expression=f,this.finishNode(d,"PipelineTopicExpression")}}isSimpleReference(f){switch(f.type){case"MemberExpression":return!f.computed&&this.isSimpleReference(f.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(f){if(this.match(19))throw this.raise(O.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(O.PipelineTopicUnused,f)}withTopicBindingContext(f){const o=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return f()}finally{this.state.topicContext=o}}withSmartMixTopicForbiddingContext(f){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const o=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return f()}finally{this.state.topicContext=o}}else return f()}withSoloAwaitPermittingContext(f){const o=this.state.soloAwait;this.state.soloAwait=!0;try{return f()}finally{this.state.soloAwait=o}}allowInAnd(f){const o=this.prodParam.currentFlags();if(8&~o){this.prodParam.enter(o|8);try{return f()}finally{this.prodParam.exit()}}return f()}disallowInAnd(f){const o=this.prodParam.currentFlags();if(8&o){this.prodParam.enter(o&-9);try{return f()}finally{this.prodParam.exit()}}return f()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(f){const o=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const d=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const y=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),o,f);return this.state.inFSharpPipelineDirectBody=d,y}parseModuleExpression(){this.expectPlugin("moduleBlocks");const f=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const o=this.startNodeAt(this.state.endLoc);this.next();const d=this.initializeScopes(!0);this.enterInitialScopes();try{f.body=this.parseProgram(o,8,"module")}finally{d()}return this.finishNode(f,"ModuleExpression")}parseVoidPattern(f){this.expectPlugin("discardBinding");const o=this.startNode();return f!=null&&(f.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(o,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(f,o,d){if(o!=null&&this.match(88)){const y=this.lookaheadCharCode();if(y===44||y===(f===3?93:f===8?125:41)||y===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(o))}return this.parseMaybeAssignAllowIn(o,d)}parsePropertyNamePrefixOperator(f){}}const hh={kind:1},jP={kind:2},ZP=/[\uD800-\uDFFF]/u,fh=/in(?:stanceof)?/y;function VP(_,f,o){for(let d=0;d<_.length;d++){const y=_[d],{type:T}=y;if(typeof T=="number"){if(T===139){const{loc:N,start:z,value:U,end:W}=y,ee=z+1,pe=n(N.start,1);_.splice(d,1,new Rn({type:Je(27),value:"#",start:z,end:ee,startLoc:N.start,endLoc:pe}),new Rn({type:Je(132),value:U,start:ee,end:W,startLoc:pe,endLoc:N.end})),d++;continue}if(Tt(T)){const{loc:N,start:z,value:U,end:W}=y,ee=z+1,pe=n(N.start,1);let Ee;f.charCodeAt(z-o)===96?Ee=new Rn({type:Je(22),value:"`",start:z,end:ee,startLoc:N.start,endLoc:pe}):Ee=new Rn({type:Je(8),value:"}",start:z,end:ee,startLoc:N.start,endLoc:pe});let Ae,Be,st,Ot;T===24?(Be=W-1,st=n(N.end,-1),Ae=U===null?null:U.slice(1,-1),Ot=new Rn({type:Je(22),value:"`",start:Be,end:W,startLoc:st,endLoc:N.end})):(Be=W-2,st=n(N.end,-2),Ae=U===null?null:U.slice(1,-2),Ot=new Rn({type:Je(23),value:"${",start:Be,end:W,startLoc:st,endLoc:N.end})),_.splice(d,1,Ee,new Rn({type:Je(20),value:Ae,start:ee,end:Be,startLoc:pe,endLoc:st}),Ot),d+=2;continue}y.type=Je(T)}}return _}class UP extends XP{parseTopLevel(f,o){return f.program=this.parseProgram(o,140,this.options.sourceType==="module"?"module":"script"),f.comments=this.comments,this.optionFlags&256&&(f.tokens=VP(this.tokens,this.input,this.startIndex)),this.finishNode(f,"File")}parseProgram(f,o,d){if(f.sourceType=d,f.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(f,!0,!0,o),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(const[T,N]of Array.from(this.scope.undefinedExports))this.raise(O.ModuleExportUndefined,N,{localName:T});this.addExtra(f,"topLevelAwait",this.state.hasTopLevelAwait)}let y;return o===140?y=this.finishNode(f,"Program"):y=this.finishNodeAt(f,"Program",n(this.state.startLoc,-1)),y}stmtToDirective(f){const o=this.castNodeTo(f,"Directive"),d=this.castNodeTo(f.expression,"DirectiveLiteral"),y=d.value,T=this.input.slice(this.offsetToSourcePos(d.start),this.offsetToSourcePos(d.end)),N=d.value=T.slice(1,-1);return this.addExtra(d,"raw",T),this.addExtra(d,"rawValue",N),this.addExtra(d,"expressionValue",y),o.value=d,delete f.expression,o}parseInterpreterDirective(){if(!this.match(28))return null;const f=this.startNode();return f.value=this.state.value,this.next(),this.finishNode(f,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;const f=this.nextTokenInLineStart(),o=this.codePointAtPos(f);if(this.isUnparsedContextual(f,"of")){const d=this.lookaheadCharCodeSince(f+2);if(d!==61&&d!==58&&d!==59)return!1}return!!(this.chStartsBindingIdentifier(o,f)||this.isUnparsedContextual(f,"void"))}nextTokenIsIdentifierOnSameLine(){const f=this.nextTokenInLineStart(),o=this.codePointAtPos(f);return this.chStartsBindingIdentifier(o,f)}isAwaitUsing(){if(!this.isContextual(96))return!1;let f=this.nextTokenInLineStart();if(this.isUnparsedContextual(f,"using")){f=this.nextTokenInLineStartSince(f+5);const o=this.codePointAtPos(f);if(this.chStartsBindingIdentifier(o,f))return!0}return!1}chStartsBindingIdentifier(f,o){if(zt(f)){if(fh.lastIndex=o,fh.test(this.input)){const d=this.codePointAtPos(fh.lastIndex);if(!ti(d)&&d!==92)return!1}return!0}else return f===92}chStartsBindingPattern(f){return f===91||f===123}hasFollowingBindingAtom(){const f=this.nextTokenStart(),o=this.codePointAtPos(f);return this.chStartsBindingPattern(o)||this.chStartsBindingIdentifier(o,f)}hasInLineFollowingBindingIdentifierOrBrace(){const f=this.nextTokenInLineStart(),o=this.codePointAtPos(f);return o===123||this.chStartsBindingIdentifier(o,f)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(f=!1){let o=0;return this.options.annexB&&!this.state.strict&&(o|=4,f&&(o|=8)),this.parseStatementLike(o)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(f){let o=null;return this.match(26)&&(o=this.parseDecorators(!0)),this.parseStatementContent(f,o)}parseStatementContent(f,o){const d=this.state.type,y=this.startNode(),T=!!(f&2),N=!!(f&4),z=f&1;switch(d){case 60:return this.parseBreakContinueStatement(y,!0);case 63:return this.parseBreakContinueStatement(y,!1);case 64:return this.parseDebuggerStatement(y);case 90:return this.parseDoWhileStatement(y);case 91:return this.parseForStatement(y);case 68:if(this.lookaheadCharCode()===46)break;return N||this.raise(this.state.strict?O.StrictFunction:this.options.annexB?O.SloppyFunctionAnnexB:O.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(y,!1,!T&&N);case 80:return T||this.unexpected(),this.parseClass(this.maybeTakeDecorators(o,y),!0);case 69:return this.parseIfStatement(y);case 70:return this.parseReturnStatement(y);case 71:return this.parseSwitchStatement(y);case 72:return this.parseThrowStatement(y);case 73:return this.parseTryStatement(y);case 96:if(this.isAwaitUsing())return this.allowsUsing()?T?this.recordAwaitIfAllowed()||this.raise(O.AwaitUsingNotInAsyncContext,y):this.raise(O.UnexpectedLexicalDeclaration,y):this.raise(O.UnexpectedUsingDeclaration,y),this.next(),this.parseVarStatement(y,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?T||this.raise(O.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(O.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(y,"using");case 100:{if(this.state.containsEsc)break;const ee=this.nextTokenStart(),pe=this.codePointAtPos(ee);if(pe!==91&&(!T&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(pe,ee)&&pe!==123))break}case 75:T||this.raise(O.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const ee=this.state.value;return this.parseVarStatement(y,ee)}case 92:return this.parseWhileStatement(y);case 76:return this.parseWithStatement(y);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(y);case 83:{const ee=this.lookaheadCharCode();if(ee===40||ee===46)break}case 82:{!(this.optionFlags&8)&&!z&&this.raise(O.UnexpectedImportExport,this.state.startLoc),this.next();let ee;return d===83?ee=this.parseImport(y):ee=this.parseExport(y,o),this.assertModuleNodeAllowed(ee),ee}default:if(this.isAsyncFunction())return T||this.raise(O.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(y,!0,!T&&N)}const U=this.state.value,W=this.parseExpression();return xe(d)&&W.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(y,U,W,f):this.parseExpressionStatement(y,W,o)}assertModuleNodeAllowed(f){!(this.optionFlags&8)&&!this.inModule&&this.raise(O.ImportOutsideModule,f)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(f,o,d){if(f){var y;(y=o.decorators)!=null&&y.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(O.DecoratorsBeforeAfterExport,o.decorators[0]),o.decorators.unshift(...f)):o.decorators=f,this.resetStartLocationFromNode(o,f[0]),d&&this.resetStartLocationFromNode(d,o)}return o}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(f){const o=[];do o.push(this.parseDecorator());while(this.match(26));if(this.match(82))f||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(O.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(O.UnexpectedLeadingDecorator,this.state.startLoc);return o}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const f=this.startNode();if(this.next(),this.hasPlugin("decorators")){const o=this.state.startLoc;let d;if(this.match(10)){const y=this.state.startLoc;this.next(),d=this.parseExpression(),this.expect(11),d=this.wrapParenthesis(y,d);const T=this.state.startLoc;f.expression=this.parseMaybeDecoratorArguments(d,y),this.getPluginOption("decorators","allowCallParenthesized")===!1&&f.expression!==d&&this.raise(O.DecoratorArgumentsOutsideParentheses,T)}else{for(d=this.parseIdentifier(!1);this.eat(16);){const y=this.startNodeAt(o);y.object=d,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),y.property=this.parsePrivateName()):y.property=this.parseIdentifier(!0),y.computed=!1,d=this.finishNode(y,"MemberExpression")}f.expression=this.parseMaybeDecoratorArguments(d,o)}}else f.expression=this.parseExprSubscripts();return this.finishNode(f,"Decorator")}parseMaybeDecoratorArguments(f,o){if(this.eat(10)){const d=this.startNodeAt(o);return d.callee=f,d.arguments=this.parseCallExpressionArguments(),this.toReferencedList(d.arguments),this.finishNode(d,"CallExpression")}return f}parseBreakContinueStatement(f,o){return this.next(),this.isLineTerminator()?f.label=null:(f.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(f,o),this.finishNode(f,o?"BreakStatement":"ContinueStatement")}verifyBreakContinue(f,o){let d;for(d=0;d<this.state.labels.length;++d){const y=this.state.labels[d];if((f.label==null||y.name===f.label.name)&&(y.kind!=null&&(o||y.kind===1)||f.label&&o))break}if(d===this.state.labels.length){const y=o?"BreakStatement":"ContinueStatement";this.raise(O.IllegalBreakContinue,f,{type:y})}}parseDebuggerStatement(f){return this.next(),this.semicolon(),this.finishNode(f,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const f=this.parseExpression();return this.expect(11),f}parseDoWhileStatement(f){return this.next(),this.state.labels.push(hh),f.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),f.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(f,"DoWhileStatement")}parseForStatement(f){this.next(),this.state.labels.push(hh);let o=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(o=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return o!==null&&this.unexpected(o),this.parseFor(f,null);const d=this.isContextual(100);{const U=this.isAwaitUsing(),W=U||this.isForUsing(),ee=d&&this.hasFollowingBindingAtom()||W;if(this.match(74)||this.match(75)||ee){const pe=this.startNode();let Ee;U?(Ee="await using",this.recordAwaitIfAllowed()||this.raise(O.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):Ee=this.state.value,this.next(),this.parseVar(pe,!0,Ee);const Ae=this.finishNode(pe,"VariableDeclaration"),Be=this.match(58);return Be&&W&&this.raise(O.ForInUsing,Ae),(Be||this.isContextual(102))&&Ae.declarations.length===1?this.parseForIn(f,Ae,o):(o!==null&&this.unexpected(o),this.parseFor(f,Ae))}}const y=this.isContextual(95),T=new Pl,N=this.parseExpression(!0,T),z=this.isContextual(102);if(z&&(d&&this.raise(O.ForOfLet,N),o===null&&y&&N.type==="Identifier"&&this.raise(O.ForOfAsync,N)),z||this.match(58)){this.checkDestructuringPrivate(T),this.toAssignable(N,!0);const U=z?"ForOfStatement":"ForInStatement";return this.checkLVal(N,{type:U}),this.parseForIn(f,N,o)}else this.checkExpressionErrors(T,!0);return o!==null&&this.unexpected(o),this.parseFor(f,N)}parseFunctionStatement(f,o,d){return this.next(),this.parseFunction(f,1|(d?2:0)|(o?8:0))}parseIfStatement(f){return this.next(),f.test=this.parseHeaderExpression(),f.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),f.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(f,"IfStatement")}parseReturnStatement(f){return this.prodParam.hasReturn||this.raise(O.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?f.argument=null:(f.argument=this.parseExpression(),this.semicolon()),this.finishNode(f,"ReturnStatement")}parseSwitchStatement(f){this.next(),f.discriminant=this.parseHeaderExpression();const o=f.cases=[];this.expect(5),this.state.labels.push(jP),this.scope.enter(256);let d;for(let y;!this.match(8);)if(this.match(61)||this.match(65)){const T=this.match(61);d&&this.finishNode(d,"SwitchCase"),o.push(d=this.startNode()),d.consequent=[],this.next(),T?d.test=this.parseExpression():(y&&this.raise(O.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),y=!0,d.test=null),this.expect(14)}else d?d.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),d&&this.finishNode(d,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(f,"SwitchStatement")}parseThrowStatement(f){return this.next(),this.hasPrecedingLineBreak()&&this.raise(O.NewlineAfterThrow,this.state.lastTokEndLoc),f.argument=this.parseExpression(),this.semicolon(),this.finishNode(f,"ThrowStatement")}parseCatchClauseParam(){const f=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&f.type==="Identifier"?8:0),this.checkLVal(f,{type:"CatchClause"},9),f}parseTryStatement(f){if(this.next(),f.block=this.parseBlock(),f.handler=null,this.match(62)){const o=this.startNode();this.next(),this.match(10)?(this.expect(10),o.param=this.parseCatchClauseParam(),this.expect(11)):(o.param=null,this.scope.enter(0)),o.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),f.handler=this.finishNode(o,"CatchClause")}return f.finalizer=this.eat(67)?this.parseBlock():null,!f.handler&&!f.finalizer&&this.raise(O.NoCatchOrFinally,f),this.finishNode(f,"TryStatement")}parseVarStatement(f,o,d=!1){return this.next(),this.parseVar(f,!1,o,d),this.semicolon(),this.finishNode(f,"VariableDeclaration")}parseWhileStatement(f){return this.next(),f.test=this.parseHeaderExpression(),this.state.labels.push(hh),f.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(f,"WhileStatement")}parseWithStatement(f){return this.state.strict&&this.raise(O.StrictWith,this.state.startLoc),this.next(),f.object=this.parseHeaderExpression(),f.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(f,"WithStatement")}parseEmptyStatement(f){return this.next(),this.finishNode(f,"EmptyStatement")}parseLabeledStatement(f,o,d,y){for(const N of this.state.labels)N.name===o&&this.raise(O.LabelRedeclaration,d,{labelName:o});const T=J(this.state.type)?1:this.match(71)?2:null;for(let N=this.state.labels.length-1;N>=0;N--){const z=this.state.labels[N];if(z.statementStart===f.start)z.statementStart=this.sourceToOffsetPos(this.state.start),z.kind=T;else break}return this.state.labels.push({name:o,kind:T,statementStart:this.sourceToOffsetPos(this.state.start)}),f.body=y&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),f.label=d,this.finishNode(f,"LabeledStatement")}parseExpressionStatement(f,o,d){return f.expression=o,this.semicolon(),this.finishNode(f,"ExpressionStatement")}parseBlock(f=!1,o=!0,d){const y=this.startNode();return f&&this.state.strictErrors.clear(),this.expect(5),o&&this.scope.enter(0),this.parseBlockBody(y,f,!1,8,d),o&&this.scope.exit(),this.finishNode(y,"BlockStatement")}isValidDirective(f){return f.type==="ExpressionStatement"&&f.expression.type==="StringLiteral"&&!f.expression.extra.parenthesized}parseBlockBody(f,o,d,y,T){const N=f.body=[],z=f.directives=[];this.parseBlockOrModuleBlockBody(N,o?z:void 0,d,y,T)}parseBlockOrModuleBlockBody(f,o,d,y,T){const N=this.state.strict;let z=!1,U=!1;for(;!this.match(y);){const W=d?this.parseModuleItem():this.parseStatementListItem();if(o&&!U){if(this.isValidDirective(W)){const ee=this.stmtToDirective(W);o.push(ee),!z&&ee.value.value==="use strict"&&(z=!0,this.setStrict(!0));continue}U=!0,this.state.strictErrors.clear()}f.push(W)}T?.call(this,z),N||this.setStrict(!1),this.next()}parseFor(f,o){return f.init=o,this.semicolon(!1),f.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),f.update=this.match(11)?null:this.parseExpression(),this.expect(11),f.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(f,"ForStatement")}parseForIn(f,o,d){const y=this.match(58);return this.next(),y?d!==null&&this.unexpected(d):f.await=d!==null,o.type==="VariableDeclaration"&&o.declarations[0].init!=null&&(!y||!this.options.annexB||this.state.strict||o.kind!=="var"||o.declarations[0].id.type!=="Identifier")&&this.raise(O.ForInOfLoopInitializer,o,{type:y?"ForInStatement":"ForOfStatement"}),o.type==="AssignmentPattern"&&this.raise(O.InvalidLhs,o,{ancestor:{type:"ForStatement"}}),f.left=o,f.right=y?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),f.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(f,y?"ForInStatement":"ForOfStatement")}parseVar(f,o,d,y=!1){const T=f.declarations=[];for(f.kind=d;;){const N=this.startNode();if(this.parseVarId(N,d),N.init=this.eat(29)?o?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,N.init===null&&!y&&(N.id.type!=="Identifier"&&!(o&&(this.match(58)||this.isContextual(102)))?this.raise(O.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(d==="const"||d==="using"||d==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(O.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:d})),T.push(this.finishNode(N,"VariableDeclarator")),!this.eat(12))break}return f}parseVarId(f,o){const d=this.parseBindingAtom();o==="using"||o==="await using"?(d.type==="ArrayPattern"||d.type==="ObjectPattern")&&this.raise(O.UsingDeclarationHasBindingPattern,d.loc.start):d.type==="VoidPattern"&&this.raise(O.UnexpectedVoidPattern,d.loc.start),this.checkLVal(d,{type:"VariableDeclarator"},o==="var"?5:8201),f.id=d}parseAsyncFunctionExpression(f){return this.parseFunction(f,8)}parseFunction(f,o=0){const d=o&2,y=!!(o&1),T=y&&!(o&4),N=!!(o&8);this.initFunction(f,N),this.match(55)&&(d&&this.raise(O.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),f.generator=!0),y&&(f.id=this.parseFunctionId(T));const z=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Fn(N,f.generator)),y||(f.id=this.parseFunctionId()),this.parseFunctionParams(f,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(f,y?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),y&&!d&&this.registerFunctionStatementId(f),this.state.maybeInArrowParameters=z,f}parseFunctionId(f){return f||xe(this.state.type)?this.parseIdentifier():null}parseFunctionParams(f,o){this.expect(10),this.expressionScope.enter(TP()),f.params=this.parseBindingList(11,41,2|(o?4:0)),this.expressionScope.exit()}registerFunctionStatementId(f){f.id&&this.scope.declareName(f.id.name,!this.options.annexB||this.state.strict||f.generator||f.async?this.scope.treatFunctionsAsVar?5:8201:17,f.id.loc.start)}parseClass(f,o,d){this.next();const y=this.state.strict;return this.state.strict=!0,this.parseClassId(f,o,d),this.parseClassSuper(f),f.body=this.parseClassBody(!!f.superClass,y),this.finishNode(f,o?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(f){return f.type==="Identifier"&&f.name==="constructor"||f.type==="StringLiteral"&&f.value==="constructor"}isNonstaticConstructor(f){return!f.computed&&!f.static&&this.nameIsConstructor(f.key)}parseClassBody(f,o){this.classScope.enter();const d={hadConstructor:!1,hadSuperClass:f};let y=[];const T=this.startNode();if(T.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(y.length>0)throw this.raise(O.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){y.push(this.parseDecorator());continue}const N=this.startNode();y.length&&(N.decorators=y,this.resetStartLocationFromNode(N,y[0]),y=[]),this.parseClassMember(T,N,d),N.kind==="constructor"&&N.decorators&&N.decorators.length>0&&this.raise(O.DecoratorConstructor,N)}}),this.state.strict=o,this.next(),y.length)throw this.raise(O.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(T,"ClassBody")}parseClassMemberFromModifier(f,o){const d=this.parseIdentifier(!0);if(this.isClassMethod()){const y=o;return y.kind="method",y.computed=!1,y.key=d,y.static=!1,this.pushClassMethod(f,y,!1,!1,!1,!1),!0}else if(this.isClassProperty()){const y=o;return y.computed=!1,y.key=d,y.static=!1,f.body.push(this.parseClassProperty(y)),!0}return this.resetPreviousNodeTrailingComments(d),!1}parseClassMember(f,o,d){const y=this.isContextual(106);if(y){if(this.parseClassMemberFromModifier(f,o))return;if(this.eat(5)){this.parseClassStaticBlock(f,o);return}}this.parseClassMemberWithIsStatic(f,o,d,y)}parseClassMemberWithIsStatic(f,o,d,y){const T=o,N=o,z=o,U=o,W=o,ee=T,pe=T;if(o.static=y,this.parsePropertyNamePrefixOperator(o),this.eat(55)){ee.kind="method";const Ye=this.match(139);if(this.parseClassElementName(ee),this.parsePostMemberNameModifiers(ee),Ye){this.pushClassPrivateMethod(f,N,!0,!1);return}this.isNonstaticConstructor(T)&&this.raise(O.ConstructorIsGenerator,T.key),this.pushClassMethod(f,T,!0,!1,!1,!1);return}const Ee=!this.state.containsEsc&&xe(this.state.type),Ae=this.parseClassElementName(o),Be=Ee?Ae.name:null,st=this.isPrivateName(Ae),Ot=this.state.startLoc;if(this.parsePostMemberNameModifiers(pe),this.isClassMethod()){if(ee.kind="method",st){this.pushClassPrivateMethod(f,N,!1,!1);return}const Ye=this.isNonstaticConstructor(T);let dt=!1;Ye&&(T.kind="constructor",d.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(O.DuplicateConstructor,Ae),Ye&&this.hasPlugin("typescript")&&o.override&&this.raise(O.OverrideOnConstructor,Ae),d.hadConstructor=!0,dt=d.hadSuperClass),this.pushClassMethod(f,T,!1,!1,Ye,dt)}else if(this.isClassProperty())st?this.pushClassPrivateProperty(f,U):this.pushClassProperty(f,z);else if(Be==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(Ae);const Ye=this.eat(55);pe.optional&&this.unexpected(Ot),ee.kind="method";const dt=this.match(139);this.parseClassElementName(ee),this.parsePostMemberNameModifiers(pe),dt?this.pushClassPrivateMethod(f,N,Ye,!0):(this.isNonstaticConstructor(T)&&this.raise(O.ConstructorIsAsync,T.key),this.pushClassMethod(f,T,Ye,!0,!1,!1))}else if((Be==="get"||Be==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(Ae),ee.kind=Be;const Ye=this.match(139);this.parseClassElementName(T),Ye?this.pushClassPrivateMethod(f,N,!1,!1):(this.isNonstaticConstructor(T)&&this.raise(O.ConstructorIsAccessor,T.key),this.pushClassMethod(f,T,!1,!1,!1,!1)),this.checkGetterSetterParams(T)}else if(Be==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(Ae);const Ye=this.match(139);this.parseClassElementName(z),this.pushClassAccessorProperty(f,W,Ye)}else this.isLineTerminator()?st?this.pushClassPrivateProperty(f,U):this.pushClassProperty(f,z):this.unexpected()}parseClassElementName(f){const{type:o,value:d}=this.state;if((o===132||o===134)&&f.static&&d==="prototype"&&this.raise(O.StaticPrototype,this.state.startLoc),o===139){d==="constructor"&&this.raise(O.ConstructorClassPrivateField,this.state.startLoc);const y=this.parsePrivateName();return f.key=y,y}return this.parsePropertyName(f),f.key}parseClassStaticBlock(f,o){var d;this.scope.enter(720);const y=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const T=o.body=[];this.parseBlockOrModuleBlockBody(T,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=y,f.body.push(this.finishNode(o,"StaticBlock")),(d=o.decorators)!=null&&d.length&&this.raise(O.DecoratorStaticBlock,o)}pushClassProperty(f,o){!o.computed&&this.nameIsConstructor(o.key)&&this.raise(O.ConstructorClassField,o.key),f.body.push(this.parseClassProperty(o))}pushClassPrivateProperty(f,o){const d=this.parseClassPrivateProperty(o);f.body.push(d),this.classScope.declarePrivateName(this.getPrivateNameSV(d.key),0,d.key.loc.start)}pushClassAccessorProperty(f,o,d){!d&&!o.computed&&this.nameIsConstructor(o.key)&&this.raise(O.ConstructorClassField,o.key);const y=this.parseClassAccessorProperty(o);f.body.push(y),d&&this.classScope.declarePrivateName(this.getPrivateNameSV(y.key),0,y.key.loc.start)}pushClassMethod(f,o,d,y,T,N){f.body.push(this.parseMethod(o,d,y,T,N,"ClassMethod",!0))}pushClassPrivateMethod(f,o,d,y){const T=this.parseMethod(o,d,y,!1,!1,"ClassPrivateMethod",!0);f.body.push(T);const N=T.kind==="get"?T.static?6:2:T.kind==="set"?T.static?5:1:0;this.declareClassPrivateMethodInScope(T,N)}declareClassPrivateMethodInScope(f,o){this.classScope.declarePrivateName(this.getPrivateNameSV(f.key),o,f.key.loc.start)}parsePostMemberNameModifiers(f){}parseClassPrivateProperty(f){return this.parseInitializer(f),this.semicolon(),this.finishNode(f,"ClassPrivateProperty")}parseClassProperty(f){return this.parseInitializer(f),this.semicolon(),this.finishNode(f,"ClassProperty")}parseClassAccessorProperty(f){return this.parseInitializer(f),this.semicolon(),this.finishNode(f,"ClassAccessorProperty")}parseInitializer(f){this.scope.enter(592),this.expressionScope.enter(mm()),this.prodParam.enter(0),f.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(f,o,d,y=8331){if(xe(this.state.type))f.id=this.parseIdentifier(),o&&this.declareNameFromIdentifier(f.id,y);else if(d||!o)f.id=null;else throw this.raise(O.MissingClassName,this.state.startLoc)}parseClassSuper(f){f.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(f,o){const d=this.parseMaybeImportPhase(f,!0),y=this.maybeParseExportDefaultSpecifier(f,d),T=!y||this.eat(12),N=T&&this.eatExportStar(f),z=N&&this.maybeParseExportNamespaceSpecifier(f),U=T&&(!z||this.eat(12)),W=y||N;if(N&&!z){if(y&&this.unexpected(),o)throw this.raise(O.UnsupportedDecoratorExport,f);return this.parseExportFrom(f,!0),this.sawUnambiguousESM=!0,this.finishNode(f,"ExportAllDeclaration")}const ee=this.maybeParseExportNamedSpecifiers(f);y&&T&&!N&&!ee&&this.unexpected(null,5),z&&U&&this.unexpected(null,98);let pe;if(W||ee){if(pe=!1,o)throw this.raise(O.UnsupportedDecoratorExport,f);this.parseExportFrom(f,W)}else pe=this.maybeParseExportDeclaration(f);if(W||ee||pe){var Ee;const Ae=f;if(this.checkExport(Ae,!0,!1,!!Ae.source),((Ee=Ae.declaration)==null?void 0:Ee.type)==="ClassDeclaration")this.maybeTakeDecorators(o,Ae.declaration,Ae);else if(o)throw this.raise(O.UnsupportedDecoratorExport,f);return this.sawUnambiguousESM=!0,this.finishNode(Ae,"ExportNamedDeclaration")}if(this.eat(65)){const Ae=f,Be=this.parseExportDefaultExpression();if(Ae.declaration=Be,Be.type==="ClassDeclaration")this.maybeTakeDecorators(o,Be,Ae);else if(o)throw this.raise(O.UnsupportedDecoratorExport,f);return this.checkExport(Ae,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(Ae,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(f){return this.eat(55)}maybeParseExportDefaultSpecifier(f,o){if(o||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",o?.loc.start);const d=o||this.parseIdentifier(!0),y=this.startNodeAtNode(d);return y.exported=d,f.specifiers=[this.finishNode(y,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(f){if(this.isContextual(93)){var o,d;(d=(o=f).specifiers)!=null||(o.specifiers=[]);const y=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),y.exported=this.parseModuleExportName(),f.specifiers.push(this.finishNode(y,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(f){if(this.match(5)){const o=f;o.specifiers||(o.specifiers=[]);const d=o.exportKind==="type";return o.specifiers.push(...this.parseExportSpecifiers(d)),o.source=null,this.hasPlugin("importAssertions")?o.assertions=[]:o.attributes=[],o.declaration=null,!0}return!1}maybeParseExportDeclaration(f){return this.shouldParseExportDeclaration()?(f.specifiers=[],f.source=null,this.hasPlugin("importAssertions")?f.assertions=[]:f.attributes=[],f.declaration=this.parseExportDeclaration(f),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;const f=this.nextTokenInLineStart();return this.isUnparsedContextual(f,"function")}parseExportDefaultExpression(){const f=this.startNode();if(this.match(68))return this.next(),this.parseFunction(f,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(f,13);if(this.match(80))return this.parseClass(f,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(O.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(O.UnsupportedDefaultExport,this.state.startLoc);const o=this.parseMaybeAssignAllowIn();return this.semicolon(),o}parseExportDeclaration(f){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:f}=this.state;if(xe(f)){if(f===95&&!this.state.containsEsc||f===100)return!1;if((f===130||f===129)&&!this.state.containsEsc){const y=this.nextTokenStart(),T=this.input.charCodeAt(y);if(T===123||this.chStartsBindingIdentifier(T,y)&&!this.input.startsWith("from",y))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const o=this.nextTokenStart(),d=this.isUnparsedContextual(o,"from");if(this.input.charCodeAt(o)===44||xe(this.state.type)&&d)return!0;if(this.match(65)&&d){const y=this.input.charCodeAt(this.nextTokenStartSince(o+4));return y===34||y===39}return!1}parseExportFrom(f,o){this.eatContextual(98)?(f.source=this.parseImportSource(),this.checkExport(f),this.maybeParseImportAttributes(f),this.checkJSONModuleImport(f)):o&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:f}=this.state;return f===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(O.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(O.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(O.UsingDeclarationExport,this.state.startLoc),!0):f===74||f===75||f===68||f===80||this.isLet()||this.isAsyncFunction()}checkExport(f,o,d,y){if(o){var T;if(d){if(this.checkDuplicateExports(f,"default"),this.hasPlugin("exportDefaultFrom")){var N;const z=f.declaration;z.type==="Identifier"&&z.name==="from"&&z.end-z.start===4&&!((N=z.extra)!=null&&N.parenthesized)&&this.raise(O.ExportDefaultFromAsIdentifier,z)}}else if((T=f.specifiers)!=null&&T.length)for(const z of f.specifiers){const{exported:U}=z,W=U.type==="Identifier"?U.name:U.value;if(this.checkDuplicateExports(z,W),!y&&z.local){const{local:ee}=z;ee.type!=="Identifier"?this.raise(O.ExportBindingIsString,z,{localName:ee.value,exportName:W}):(this.checkReservedWord(ee.name,ee.loc.start,!0,!1),this.scope.checkLocalExport(ee))}}else if(f.declaration){const z=f.declaration;if(z.type==="FunctionDeclaration"||z.type==="ClassDeclaration"){const{id:U}=z;if(!U)throw new Error("Assertion failure");this.checkDuplicateExports(f,U.name)}else if(z.type==="VariableDeclaration")for(const U of z.declarations)this.checkDeclaration(U.id)}}}checkDeclaration(f){if(f.type==="Identifier")this.checkDuplicateExports(f,f.name);else if(f.type==="ObjectPattern")for(const o of f.properties)this.checkDeclaration(o);else if(f.type==="ArrayPattern")for(const o of f.elements)o&&this.checkDeclaration(o);else f.type==="ObjectProperty"?this.checkDeclaration(f.value):f.type==="RestElement"?this.checkDeclaration(f.argument):f.type==="AssignmentPattern"&&this.checkDeclaration(f.left)}checkDuplicateExports(f,o){this.exportedIdentifiers.has(o)&&(o==="default"?this.raise(O.DuplicateDefaultExport,f):this.raise(O.DuplicateExport,f,{exportName:o})),this.exportedIdentifiers.add(o)}parseExportSpecifiers(f){const o=[];let d=!0;for(this.expect(5);!this.eat(8);){if(d)d=!1;else if(this.expect(12),this.eat(8))break;const y=this.isContextual(130),T=this.match(134),N=this.startNode();N.local=this.parseModuleExportName(),o.push(this.parseExportSpecifier(N,T,f,y))}return o}parseExportSpecifier(f,o,d,y){return this.eatContextual(93)?f.exported=this.parseModuleExportName():o?f.exported=this.cloneStringLiteral(f.local):f.exported||(f.exported=this.cloneIdentifier(f.local)),this.finishNode(f,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const f=this.parseStringLiteral(this.state.value),o=ZP.exec(f.value);return o&&this.raise(O.ModuleExportNameHasLoneSurrogate,f,{surrogateCharCode:o[0].charCodeAt(0)}),f}return this.parseIdentifier(!0)}isJSONModuleImport(f){return f.assertions!=null?f.assertions.some(({key:o,value:d})=>d.value==="json"&&(o.type==="Identifier"?o.name==="type":o.value==="type")):!1}checkImportReflection(f){const{specifiers:o}=f,d=o.length===1?o[0].type:null;if(f.phase==="source")d!=="ImportDefaultSpecifier"&&this.raise(O.SourcePhaseImportRequiresDefault,o[0].loc.start);else if(f.phase==="defer")d!=="ImportNamespaceSpecifier"&&this.raise(O.DeferImportRequiresNamespace,o[0].loc.start);else if(f.module){var y;d!=="ImportDefaultSpecifier"&&this.raise(O.ImportReflectionNotBinding,o[0].loc.start),((y=f.assertions)==null?void 0:y.length)>0&&this.raise(O.ImportReflectionHasAssertion,o[0].loc.start)}}checkJSONModuleImport(f){if(this.isJSONModuleImport(f)&&f.type!=="ExportAllDeclaration"){const{specifiers:o}=f;if(o!=null){const d=o.find(y=>{let T;if(y.type==="ExportSpecifier"?T=y.local:y.type==="ImportSpecifier"&&(T=y.imported),T!==void 0)return T.type==="Identifier"?T.name!=="default":T.value!=="default"});d!==void 0&&this.raise(O.ImportJSONBindingNotDefault,d.loc.start)}}}isPotentialImportPhase(f){return f?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(f,o,d,y){o||(d==="module"?(this.expectPlugin("importReflection",y),f.module=!0):this.hasPlugin("importReflection")&&(f.module=!1),d==="source"?(this.expectPlugin("sourcePhaseImports",y),f.phase="source"):d==="defer"?(this.expectPlugin("deferredImportEvaluation",y),f.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(f.phase=null))}parseMaybeImportPhase(f,o){if(!this.isPotentialImportPhase(o))return this.applyImportPhase(f,o,null),null;const d=this.startNode(),y=this.parseIdentifierName(!0),{type:T}=this.state;return(ke(T)?T!==98||this.lookaheadCharCode()===102:T!==12)?(this.applyImportPhase(f,o,y,d.loc.start),null):(this.applyImportPhase(f,o,null),this.createIdentifier(d,y))}isPrecedingIdImportPhase(f){const{type:o}=this.state;return xe(o)?o!==98||this.lookaheadCharCode()===102:o!==12}parseImport(f){return this.match(134)?this.parseImportSourceAndAttributes(f):this.parseImportSpecifiersAndAfter(f,this.parseMaybeImportPhase(f,!1))}parseImportSpecifiersAndAfter(f,o){f.specifiers=[];const y=!this.maybeParseDefaultImportSpecifier(f,o)||this.eat(12),T=y&&this.maybeParseStarImportSpecifier(f);return y&&!T&&this.parseNamedImportSpecifiers(f),this.expectContextual(98),this.parseImportSourceAndAttributes(f)}parseImportSourceAndAttributes(f){var o;return(o=f.specifiers)!=null||(f.specifiers=[]),f.source=this.parseImportSource(),this.maybeParseImportAttributes(f),this.checkImportReflection(f),this.checkJSONModuleImport(f),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(f,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(f,o,d){o.local=this.parseIdentifier(),f.specifiers.push(this.finishImportSpecifier(o,d))}finishImportSpecifier(f,o,d=8201){return this.checkLVal(f.local,{type:o},d),this.finishNode(f,o)}parseImportAttributes(){this.expect(5);const f=[],o=new Set;do{if(this.match(8))break;const d=this.startNode(),y=this.state.value;if(o.has(y)&&this.raise(O.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:y}),o.add(y),this.match(134)?d.key=this.parseStringLiteral(y):d.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(O.ModuleAttributeInvalidValue,this.state.startLoc);d.value=this.parseStringLiteral(this.state.value),f.push(this.finishNode(d,"ImportAttribute"))}while(this.eat(12));return this.expect(8),f}parseModuleAttributes(){const f=[],o=new Set;do{const d=this.startNode();if(d.key=this.parseIdentifier(!0),d.key.name!=="type"&&this.raise(O.ModuleAttributeDifferentFromType,d.key),o.has(d.key.name)&&this.raise(O.ModuleAttributesWithDuplicateKeys,d.key,{key:d.key.name}),o.add(d.key.name),this.expect(14),!this.match(134))throw this.raise(O.ModuleAttributeInvalidValue,this.state.startLoc);d.value=this.parseStringLiteral(this.state.value),f.push(this.finishNode(d,"ImportAttribute"))}while(this.eat(12));return f}maybeParseImportAttributes(f){let o;var d=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(o=this.parseModuleAttributes(),this.addExtra(f,"deprecatedWithLegacySyntax",!0)):o=this.parseImportAttributes(),d=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(O.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(f,"deprecatedAssertSyntax",!0),this.next(),o=this.parseImportAttributes()):o=[];!d&&this.hasPlugin("importAssertions")?f.assertions=o:f.attributes=o}maybeParseDefaultImportSpecifier(f,o){if(o){const d=this.startNodeAtNode(o);return d.local=o,f.specifiers.push(this.finishImportSpecifier(d,"ImportDefaultSpecifier")),!0}else if(ke(this.state.type))return this.parseImportSpecifierLocal(f,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(f){if(this.match(55)){const o=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(f,o,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(f){let o=!0;for(this.expect(5);!this.eat(8);){if(o)o=!1;else{if(this.eat(14))throw this.raise(O.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const d=this.startNode(),y=this.match(134),T=this.isContextual(130);d.imported=this.parseModuleExportName();const N=this.parseImportSpecifier(d,y,f.importKind==="type"||f.importKind==="typeof",T,void 0);f.specifiers.push(N)}}parseImportSpecifier(f,o,d,y,T){if(this.eatContextual(93))f.local=this.parseIdentifier();else{const{imported:N}=f;if(o)throw this.raise(O.ImportBindingIsString,f,{importName:N.value});this.checkReservedWord(N.name,f.loc.start,!0,!0),f.local||(f.local=this.cloneIdentifier(N))}return this.finishImportSpecifier(f,"ImportSpecifier",T)}isThisParam(f){return f.type==="Identifier"&&f.name==="this"}}class Pm extends UP{constructor(f,o,d){const y=S(f);super(y,o),this.options=y,this.initializeScopes(),this.plugins=d,this.filename=y.sourceFilename,this.startIndex=y.startIndex;let T=0;y.allowAwaitOutsideFunction&&(T|=1),y.allowReturnOutsideFunction&&(T|=2),y.allowImportExportEverywhere&&(T|=8),y.allowSuperOutsideMethod&&(T|=16),y.allowUndeclaredExports&&(T|=64),y.allowNewTargetOutsideFunction&&(T|=4),y.allowYieldOutsideFunction&&(T|=32),y.ranges&&(T|=128),y.tokens&&(T|=256),y.createImportExpressions&&(T|=512),y.createParenthesizedExpressions&&(T|=1024),y.errorRecovery&&(T|=2048),y.attachComment&&(T|=4096),y.annexB&&(T|=8192),this.optionFlags=T}getScopeHandler(){return Ws}parse(){this.enterInitialScopes();const f=this.startNode(),o=this.startNode();this.nextToken(),f.errors=null;const d=this.parseTopLevel(f,o);return d.errors=this.state.errors,d.comments.length=this.state.commentsLen,d}}function qP(_,f){var o;if(((o=f)==null?void 0:o.sourceType)==="unambiguous"){f=Object.assign({},f);try{f.sourceType="module";const d=ta(f,_),y=d.parse();if(d.sawUnambiguousESM)return y;if(d.ambiguousScriptDifferentAst)try{return f.sourceType="script",ta(f,_).parse()}catch{}else y.program.sourceType="script";return y}catch(d){try{return f.sourceType="script",ta(f,_).parse()}catch{}throw d}}else return ta(f,_).parse()}function WP(_,f){const o=ta(f,_);return o.options.strictMode&&(o.state.strict=!0),o.getExpression()}function YP(_){const f={};for(const o of Object.keys(_))f[o]=Je(_[o]);return f}const GP=YP(Q);function ta(_,f){let o=Pm;const d=new Map;if(_!=null&&_.plugins){for(const y of _.plugins){let T,N;typeof y=="string"?T=y:[T,N]=y,d.has(T)||d.set(T,N||{})}RP(d),o=HP(d)}return new o(_,f,d)}const Tm=new Map;function HP(_){const f=[];for(const y of zP)_.has(y)&&f.push(y);const o=f.join("|");let d=Tm.get(o);if(!d){d=Pm;for(const y of f)d=wm[y](d);Tm.set(o,d)}return d}return ns.parse=qP,ns.parseExpression=WP,ns.tokTypes=GP,ns}var F$=Q$();let g0=0;function y0(){g0++;const t=Math.random().toString(36).slice(2,6);return`t${g0}_${t}`}function R$(t){const e=[],i=[];if(!t.trim())return{tools:e,warnings:i};let n;try{n=Do.parse(t,{parser:{parse(s){return F$.parse(s,{sourceType:"module",plugins:["typescript"],allowAwaitOutsideFunction:!0,tokens:!0})}}})}catch(s){const a=s instanceof Error?s.message:String(s);return i.push(`Parse error: ${a}`),{tools:e,warnings:i}}const r=n.program?.body??[];for(const s of r){if(s.type==="ExportNamedDeclaration"&&s.declaration){const l=s.declaration;if(l.type==="FunctionDeclaration"){e.push(v0(l));continue}}if(s.type==="FunctionDeclaration"){e.push(v0(s));continue}if(s.type==="ExportNamedDeclaration"&&s.declaration?.type==="VariableDeclaration"){const l=s.declaration.declarations[0];if(l?.init?.type==="ArrowFunctionExpression"||l?.init?.type==="FunctionExpression"){e.push(O0(l));continue}}if(s.type==="VariableDeclaration"){const l=s.declarations[0];if(l?.init?.type==="ArrowFunctionExpression"||l?.init?.type==="FunctionExpression"){e.push(O0(l));continue}}const a=Do.print(s).code;a.trim()&&i.push(`Skipped non-tool code: ${a.slice(0,80)}${a.length>80?"...":""}`)}return{tools:e,warnings:i}}function v0(t){const e=t.id?.name??"unnamed",i=Kb(t.params),n=Do.print(t.body).code,{description:r,uid:s}=t1(t,e);return{uid:s,name:e,description:r,parameters:i,body:n}}function O0(t){const e=t.id?.name??"unnamed",i=t.init,n=Kb(i.params),r=i.body.type==="BlockStatement"?Do.print(i.body).code:`{ return ${Do.print(i.body).code} }`,{description:s,uid:a}=t1(t,e);return{uid:a,name:e,description:s,parameters:n,body:r}}function Kb(t){return t.map(e=>{let i="unknown",n="any",r=null;e.type==="Identifier"?(i=e.name,r=e.typeAnnotation?.typeAnnotation,r&&(n=gs(r))):e.type==="AssignmentPattern"&&e.left?.type==="Identifier"?(i=e.left.name,r=e.left.typeAnnotation?.typeAnnotation,r&&(n=gs(r))):e.type==="ObjectPattern"&&(i="params",r=e.typeAnnotation?.typeAnnotation,r&&(n=gs(r)));const s={name:i,type:n};if(r?.type==="TSTypeLiteral"&&(s.members=e1(r)),r?.type==="TSUnionType"){const a=gp(r);a&&(s.enumValues=a)}return s})}function e1(t){return t.members?t.members.filter(e=>e.type==="TSPropertySignature").map(e=>{const i=e.key?.name??e.key?.value??"unknown",n=e.typeAnnotation?.typeAnnotation,r=gs(n),s={name:i,type:r};if(n?.type==="TSTypeLiteral"&&(s.members=e1(n)),n?.type==="TSUnionType"){const a=gp(n);a&&(s.enumValues=a)}return s}):[]}function gp(t){const e=t.types??[];if(!(!e.every(n=>n.type==="TSLiteralType"&&typeof n.literal?.value=="string")||e.length===0))return e.map(n=>n.literal.value)}function gs(t){if(!t)return"any";switch(t.type){case"TSStringKeyword":return"string";case"TSNumberKeyword":return"number";case"TSBooleanKeyword":return"boolean";case"TSAnyKeyword":return"any";case"TSObjectKeyword":return"object";case"TSTypeLiteral":return"object";case"TSTypeReference":return t.typeName?.name??"any";case"TSArrayType":return`${gs(t.elementType)}[]`;case"TSUnionType":return gp(t)?"string":t.types?.map(i=>gs(i)).join(" | ")??"any";case"TSLiteralType":{const e=t.literal?.value;return typeof e=="string"?"string":typeof e=="number"?"number":"any"}default:return"any"}}function t1(t,e){const i=t.leadingComments;if(!i||i.length===0)return{description:`Tool: ${e}`,uid:y0()};let r=i[i.length-1].value?.trim()??"";r=r.replace(/^\*+\s*/gm,"").replace(/\s*\*+$/gm,"").replace(/^\/\*+\s*/,"").replace(/\s*\*+\/$/,"").trim();const s=r.match(/@id\s+(\S+)/),a=s?s[1]:y0();return{description:r.replace(/@id\s+\S+/,"").trim()||`Tool: ${e}`,uid:a}}function z$(t){return t.map(e=>{const i=e.parameters.map(a=>a.type&&a.type!=="any"?`${a.name}: ${a.type}`:a.name).join(", "),n=e.description&&e.description!==`Tool: ${e.name}`?e.description:"",r=e.uid?` @id ${e.uid}`:"";return`${n||r?`/** ${n}${r} */
|
|
152
152
|
`:""}export async function ${e.name}(${i}) ${e.body}`}).join(`
|
|
153
153
|
|
|
154
|
-
`)}function X$(t){const e=t.toLowerCase();return e==="number"||e==="integer"?"number":e==="boolean"?"boolean":e.endsWith("[]")?"array":e==="object"?"object":"string"}function x0(t){const e={type:X$(t.type)};return t.description&&(e.description=t.description),t.enumValues&&(e.enum=t.enumValues),e}function b0(t){return t.map(e=>{const i={},n=[];for(const r of e.parameters)if(r.members&&r.members.length>0)for(const s of r.members)i[s.name]=x0(s),n.push(s.name);else i[r.name]=x0(r),n.push(r.name);return{type:"function",function:{name:e.name,description:e.description,parameters:{type:"object",properties:i,required:n},...e.returnSchema?{returns:e.returnSchema}:{}}}})}function j$(){const t=Ud(),e=mT(),i=gT(),n=ze([]),r=ze([]),s=ze(null),a=ze(new Map),l=ze(""),u=ze([]),h=ze("synced"),c=ze([]);function p(){if(s.value==="canvas")return;s.value="store";const S=t.allTools,w=[],C=[];S.forEach((k,A)=>{const $=kh(k),F=a.value.get(k.id),I=k.canvasMeta?.position??{x:80+A%3*480,y:60+Math.floor(A/3)*400};w.push({id:k.id,type:"tool-function",position:I,data:{...$,executionStatus:F?.status??"idle",lastResult:F?.result,lastDurationMs:F?.durationMs,onUpdate:(B,j)=>v(k.id,B,j)}})});for(let k=1;k<w.length;k++){const A=w[k-1],$=w[k];C.push({id:`e-${A.id}-${$.id}`,source:A.id,target:$.id,animated:!0,style:{stroke:"var(--color-accent)",strokeWidth:2}})}n.value=w,r.value=C;const E=S.map(k=>kh(k));l.value=z$(E),c.value=b0(E),h.value="synced",vi(()=>{s.value=null})}Ge(()=>t.allTools,p,{deep:!0}),p();function v(S,w,C){const E=t.getById(S);if(!E)return;s.value="canvas";const A={...kh(E),[w]:C};if(w==="mappings"||w==="probeConfig"||w==="returnSchema"){const $={...E.canvasMeta,[w]:C};t.updateTool(S,{canvasMeta:$})}else{const $=fy(A,E);t.updateTool(S,$)}vi(()=>{s.value=null})}function g(S){for(const w of S)t.removeTool(w.id)}function b(S){const w=S.node.id,C=t.getById(w);if(!C)return;const E={...C.canvasMeta,position:{x:S.node.position.x,y:S.node.position.y}};t.updateTool(w,{canvasMeta:E})}function m(){return t.addTool({definition:{type:"function",function:{name:"new_tool",description:"A new tool",parameters:{type:"object",properties:{},required:[]}}}})}let x=null;function O(S){l.value=S,h.value="dirty",x&&clearTimeout(x),x=setTimeout(()=>{P(S)},500)}function P(S){const{tools:w,warnings:C}=R$(S);if(u.value=C,w.length===0&&C.length>0)return;s.value="canvas";const E=t.allTools,k=new Set;for(const A of w){let $=E.find(F=>F.id===A.uid);if($||($=E.find(F=>F.definition.function.name===A.name&&!k.has(F.id))),$){k.add($.id);const F=fy(A,$);t.updateTool($.id,F)}else t.addTool({definition:{type:"function",function:{name:A.name,description:A.description,parameters:{type:"object",properties:{},required:[]}}},implementation:{mode:"code",blocks:[],code:A.body}})}c.value=b0(w),h.value="synced",vi(()=>{s.value=null})}return Ge(()=>{const S=i.activeSessionId;return S?e.getToolCalls(S):null},S=>{if(!S){a.value=new Map;return}const w=new Map;for(const C of S){const E=t.findByFunctionName(C.functionName);if(!E)continue;const k=w.get(E.id);(!k||C.startedAt>(S.find(A=>A.functionName===k.status)?.startedAt??0))&&(C.status==="pending"||C.status==="executing"?w.set(E.id,{status:"executing"}):C.status==="completed"?w.set(E.id,{status:"completed",result:C.result,durationMs:C.durationMs}):C.status==="failed"&&w.set(E.id,{status:"failed",result:C.error,durationMs:C.durationMs,callArguments:C.arguments,callError:C.error}))}a.value=w;for(const C of n.value){const E=w.get(C.id),k=C.data;E?(k.executionStatus=E.status,k.lastResult=E.result,k.lastDurationMs=E.durationMs,k.lastCallArguments=E.callArguments,k.lastCallError=E.callError):k.executionStatus!=="idle"&&(k.executionStatus="idle",k.lastResult=void 0,k.lastDurationMs=void 0,k.lastCallArguments=void 0,k.lastCallError=void 0)}},{deep:!0}),Ge(()=>a.value,S=>{for(const[w,C]of S)(C.status==="completed"||C.status==="failed")&&setTimeout(()=>{if(a.value.get(w)===C){a.value.delete(w);const k=n.value.find(A=>A.id===w);k&&(k.data.executionStatus="idle")}},5e3)},{deep:!0}),{flowNodes:n,flowEdges:r,executionOverlays:a,combinedCode:l,codeWarnings:u,codeSyncStatus:h,schemas:c,onNodeDragStop:b,onNodesDelete:g,onCodeEdit:O,addNewTool:m,handleBlockUpdate:v}}const i1="llmxray-canvas-ai-intents",Fh="llmxray-canvas-ai-model";function Z$(){try{const t=localStorage.getItem(i1);if(t)return new Map(JSON.parse(t))}catch{}return new Map}function V$(t){localStorage.setItem(i1,JSON.stringify([...t.entries()]))}const n1=lT("canvas-ai",()=>{const t=ze(new Map),e=ze(new Map),i=ze(new Map),n=ze(Z$()),r=ze(localStorage.getItem(Fh)??null),s=ze(new Map),a=
|
|
154
|
+
`)}function X$(t){const e=t.toLowerCase();return e==="number"||e==="integer"?"number":e==="boolean"?"boolean":e.endsWith("[]")?"array":e==="object"?"object":"string"}function x0(t){const e={type:X$(t.type)};return t.description&&(e.description=t.description),t.enumValues&&(e.enum=t.enumValues),e}function b0(t){return t.map(e=>{const i={},n=[];for(const r of e.parameters)if(r.members&&r.members.length>0)for(const s of r.members)i[s.name]=x0(s),n.push(s.name);else i[r.name]=x0(r),n.push(r.name);return{type:"function",function:{name:e.name,description:e.description,parameters:{type:"object",properties:i,required:n},...e.returnSchema?{returns:e.returnSchema}:{}}}})}function j$(){const t=Ud(),e=mT(),i=gT(),n=ze([]),r=ze([]),s=ze(null),a=ze(new Map),l=ze(""),u=ze([]),h=ze("synced"),c=ze([]);function p(){if(s.value==="canvas")return;s.value="store";const S=t.allTools,w=[],C=[];S.forEach((k,A)=>{const $=kh(k),F=a.value.get(k.id),I=k.canvasMeta?.position??{x:80+A%3*480,y:60+Math.floor(A/3)*400};w.push({id:k.id,type:"tool-function",position:I,data:{...$,executionStatus:F?.status??"idle",lastResult:F?.result,lastDurationMs:F?.durationMs,onUpdate:(B,j)=>v(k.id,B,j)}})});for(let k=1;k<w.length;k++){const A=w[k-1],$=w[k];C.push({id:`e-${A.id}-${$.id}`,source:A.id,target:$.id,animated:!0,style:{stroke:"var(--color-accent)",strokeWidth:2}})}n.value=w,r.value=C;const E=S.map(k=>kh(k));l.value=z$(E),c.value=b0(E),h.value="synced",vi(()=>{s.value=null})}Ge(()=>t.allTools,p,{deep:!0}),p();function v(S,w,C){const E=t.getById(S);if(!E)return;s.value="canvas";const A={...kh(E),[w]:C};if(w==="mappings"||w==="probeConfig"||w==="returnSchema"){const $={...E.canvasMeta,[w]:C};t.updateTool(S,{canvasMeta:$})}else{const $=fy(A,E);t.updateTool(S,$)}vi(()=>{s.value=null})}function g(S){for(const w of S)t.removeTool(w.id)}function b(S){const w=S.node.id,C=t.getById(w);if(!C)return;const E={...C.canvasMeta,position:{x:S.node.position.x,y:S.node.position.y}};t.updateTool(w,{canvasMeta:E})}function m(){return t.addTool({definition:{type:"function",function:{name:"new_tool",description:"A new tool",parameters:{type:"object",properties:{},required:[]}}}})}let x=null;function O(S){l.value=S,h.value="dirty",x&&clearTimeout(x),x=setTimeout(()=>{P(S)},500)}function P(S){const{tools:w,warnings:C}=R$(S);if(u.value=C,w.length===0&&C.length>0)return;s.value="canvas";const E=t.allTools,k=new Set;for(const A of w){let $=E.find(F=>F.id===A.uid);if($||($=E.find(F=>F.definition.function.name===A.name&&!k.has(F.id))),$){k.add($.id);const F=fy(A,$);t.updateTool($.id,F)}else t.addTool({definition:{type:"function",function:{name:A.name,description:A.description,parameters:{type:"object",properties:{},required:[]}}},implementation:{mode:"code",blocks:[],code:A.body}})}c.value=b0(w),h.value="synced",vi(()=>{s.value=null})}return Ge(()=>{const S=i.activeSessionId;return S?e.getToolCalls(S):null},S=>{if(!S){a.value=new Map;return}const w=new Map;for(const C of S){const E=t.findByFunctionName(C.functionName);if(!E)continue;const k=w.get(E.id);(!k||C.startedAt>(S.find(A=>A.functionName===k.status)?.startedAt??0))&&(C.status==="pending"||C.status==="executing"?w.set(E.id,{status:"executing"}):C.status==="completed"?w.set(E.id,{status:"completed",result:C.result,durationMs:C.durationMs}):C.status==="failed"&&w.set(E.id,{status:"failed",result:C.error,durationMs:C.durationMs,callArguments:C.arguments,callError:C.error}))}a.value=w;for(const C of n.value){const E=w.get(C.id),k=C.data;E?(k.executionStatus=E.status,k.lastResult=E.result,k.lastDurationMs=E.durationMs,k.lastCallArguments=E.callArguments,k.lastCallError=E.callError):k.executionStatus!=="idle"&&(k.executionStatus="idle",k.lastResult=void 0,k.lastDurationMs=void 0,k.lastCallArguments=void 0,k.lastCallError=void 0)}},{deep:!0}),Ge(()=>a.value,S=>{for(const[w,C]of S)(C.status==="completed"||C.status==="failed")&&setTimeout(()=>{if(a.value.get(w)===C){a.value.delete(w);const k=n.value.find(A=>A.id===w);k&&(k.data.executionStatus="idle")}},5e3)},{deep:!0}),{flowNodes:n,flowEdges:r,executionOverlays:a,combinedCode:l,codeWarnings:u,codeSyncStatus:h,schemas:c,onNodeDragStop:b,onNodesDelete:g,onCodeEdit:O,addNewTool:m,handleBlockUpdate:v}}const i1="llmxray-canvas-ai-intents",Fh="llmxray-canvas-ai-model";function Z$(){try{const t=localStorage.getItem(i1);if(t)return new Map(JSON.parse(t))}catch{}return new Map}function V$(t){localStorage.setItem(i1,JSON.stringify([...t.entries()]))}const n1=lT("canvas-ai",()=>{const t=ze(new Map),e=ze(new Map),i=ze(new Map),n=ze(Z$()),r=ze(localStorage.getItem(Fh)??null),s=ze(new Map),a=EO(),l=Fe(()=>r.value??a.chatModelNames[0]??"");function u(w){r.value=w,w?localStorage.setItem(Fh,w):localStorage.removeItem(Fh)}function h(w,C){t.value=new Map(t.value).set(w,C)}function c(w){const C=new Map(t.value);C.delete(w),t.value=C}function p(w,C){e.value=new Map(e.value).set(w,C)}function v(w){const C=new Map(e.value);C.delete(w),e.value=C}function g(w,C){i.value=new Map(i.value).set(w,C)}function b(w){const C=new Map(i.value);C.delete(w),i.value=C}function m(w,C){n.value=new Map(n.value).set(w,C),V$(n.value)}function x(w){return n.value.get(w)}function O(w){P(w);const C=new AbortController;return s.value=new Map(s.value).set(w,C),C}function P(w){const C=s.value.get(w);if(C){C.abort();const E=new Map(s.value);E.delete(w),s.value=E}}function S(w){const C=new Map(s.value);C.delete(w),s.value=C}return{drafts:t,insights:e,autoMapSuggestions:i,intentMemory:n,canvasAiModel:r,activeRequests:s,effectiveModel:l,setCanvasAiModel:u,setDraft:h,clearDraft:c,setInsights:p,clearInsights:v,setAutoMapSuggestion:g,clearAutoMapSuggestion:b,setIntent:m,getIntent:x,startRequest:O,cancelRequest:P,finishRequest:S}});function Xc(){return"You are a code generator for LLMxRay, a local LLM observatory.\nYou generate the BODY of an `async function(args)` that runs in a browser environment (Vite/Vue app).\n\nAvailable in scope:\n- `args` — typed parameter object (described per-tool)\n- `fetch()` — standard browser fetch\n- `getGoogleToken()` — returns a Bearer token for Google OAuth2 APIs\n\nCoding standards (MUST follow):\n- Always wrap logic in try/catch with descriptive error messages: throw new Error('Failed to fetch X: ' + e.message)\n- Use `await fetch(url, options)` — never XMLHttpRequest, axios, or other patterns\n- Always set a timeout: `signal: AbortSignal.timeout(10000)`\n- Return structured data (object or array), never raw strings\n- Never use `import` or `require` — all dependencies are pre-available\n- Prefer `const` over `let`; never use `var`\n- Use template literals for URL construction\n\nForbidden:\n- console.log (throw for errors instead)\n- Hardcoded API keys or secrets\n- eval(), document.write()\n\nOutput ONLY the function body (no function signature, no wrapping)."}function yp(t,e,i){const n=i.map(r=>` - ${r.name}: ${r.type}${r.description?` — ${r.description}`:""}`);return[`Tool name: ${t}`,`Description: ${e}`,n.length>0?`Parameters (via args object):
|
|
155
155
|
${n.join(`
|
|
156
156
|
`)}`:"No parameters."].join(`
|
|
157
157
|
`)}function U$(t,e=2048){const i=JSON.stringify(t,null,2);return i.length<=e?i:i.slice(0,e)+`
|
|
@@ -212,7 +212,7 @@ Respond with JSON: {"fixedCode": "<corrected function body>", "explanation": "<w
|
|
|
212
212
|
constructor(\${params}) {
|
|
213
213
|
\${}
|
|
214
214
|
}
|
|
215
|
-
}`,{label:"class",detail:"definition",type:"keyword"}),ii('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ii('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],O8=oP.concat([ii("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ii("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ii("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),pO=new CB,lP=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function va(t){return(e,i)=>{let n=e.node.getChild("VariableDefinition");return n&&i(n,t),!0}}const x8=["FunctionDeclaration"],b8={FunctionDeclaration:va("function"),ClassDeclaration:va("class"),ClassExpression:()=>!0,EnumDeclaration:va("constant"),TypeAliasDeclaration:va("type"),NamespaceDeclaration:va("namespace"),VariableDefinition(t,e){t.matchContext(x8)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function uP(t,e){let i=pO.get(e);if(i)return i;let n=[],r=!0;function s(a,l){let u=t.sliceString(a.from,a.to);n.push({label:u,type:l})}return e.cursor(Pt.IncludeAnonymous).iterate(a=>{if(r)r=!1;else if(a.name){let l=b8[a.name];if(l&&l(a,s)||lP.has(a.name))return!1}else if(a.to-a.from>8192){for(let l of uP(t,a.node))n.push(l);return!1}}),pO.set(e,n),n}const mO=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,cP=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function S8(t){let e=Qt(t.state).resolveInner(t.pos,-1);if(cP.indexOf(e.name)>-1)return null;let i=e.name=="VariableName"||e.to-e.from<20&&mO.test(t.state.sliceDoc(e.from,e.to));if(!i&&!t.explicit)return null;let n=[];for(let r=e;r;r=r.parent)lP.has(r.name)&&(n=n.concat(uP(t.state.doc,r)));return{options:n,from:i?e.from:t.pos,validFor:mO}}const zr=zo.define({name:"javascript",parser:v8.configure({props:[Zp.add({IfStatement:mo({except:/^\s*({|else\b)/}),TryStatement:mo({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:UB,SwitchBody:t=>{let e=t.textAfter,i=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return t.baseIndent+(i?0:n?1:2)*t.unit},Block:VB({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":mo({except:/^\s*{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Up.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":XS,BlockComment(t){return{from:t.from+2,to:t.to-2}},JSXElement(t){let e=t.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let i=t.lastChild;return{from:e.to,to:i.type.isError?t.to:i.from}},"JSXSelfClosingTag JSXOpenTag"(t){var e;let i=(e=t.firstChild)===null||e===void 0?void 0:e.nextSibling,n=t.lastChild;return!i||i.type.isError?null:{from:i.to,to:n.type.isError?t.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),hP={test:t=>/^JSX/.test(t.name),facet:BS({commentTokens:{block:{open:"{/*",close:"*/}"}}})},w8=zr.configure({dialect:"ts"},"typescript"),P8=zr.configure({dialect:"jsx",props:[Xp.add(t=>t.isTop?[hP]:void 0)]}),T8=zr.configure({dialect:"jsx ts",props:[Xp.add(t=>t.isTop?[hP]:void 0)]},"typescript");let fP=t=>({label:t,type:"keyword"});const dP="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(fP),C8=dP.concat(["declare","implements","private","protected","public"].map(fP));function k8(t={}){let e=t.jsx?t.typescript?T8:P8:t.typescript?w8:zr,i=t.typescript?O8.concat(C8):oP.concat(dP);return new FS(e,[zr.data.of({autocomplete:p4(cP,Zw(i))}),zr.data.of({autocomplete:S8}),t.jsx?D8:[]])}function E8(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function gO(t,e,i=t.length){for(let n=e?.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return t.sliceString(n.from,Math.min(n.to,i));return""}const A8=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),D8=_e.inputHandler.of((t,e,i,n,r)=>{if((A8?t.composing:t.compositionStarted)||t.state.readOnly||e!=i||n!=">"&&n!="/"||!zr.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:a}=s,l=a.changeByRange(u=>{var h;let{head:c}=u,p=Qt(a).resolveInner(c-1,-1),v;if(p.name=="JSXStartTag"&&(p=p.parent),!(a.doc.sliceString(c-1,c)!=n||p.name=="JSXAttributeValue"&&p.to>c)){if(n==">"&&p.name=="JSXFragmentTag")return{range:u,changes:{from:c,insert:"</>"}};if(n=="/"&&p.name=="JSXStartCloseTag"){let g=p.parent,b=g.parent;if(b&&g.from==c-2&&((v=gO(a.doc,b.firstChild,c))||((h=b.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let m=`${v}>`;return{range:Oe.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(n==">"){let g=E8(p);if(g&&g.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(v=gO(a.doc,g,c)))return{range:u,changes:{from:c,insert:`</${v}>`}}}}return{range:u}});return l.changes.empty?!1:(t.dispatch([s,a.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),_8=zp({String:ne.string,Number:ne.number,"True False":ne.bool,PropertyName:ne.propertyName,Null:ne.null,", :":ne.separator,"[ ]":ne.squareBracket,"{ }":ne.brace}),I8=Yo.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[_8],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),N8=zo.define({name:"json",parser:I8.configure({props:[Zp.add({Object:mo({except:/^\s*\}/}),Array:mo({except:/^\s*\]/})}),Up.add({"Object Array":XS})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function M8(){return new FS(N8)}const $8="#e5c07b",yO="#e06c75",L8="#56b6c2",B8="#ffffff",Nu="#abb2bf",Xd="#7d8799",Q8="#61afef",F8="#98c379",vO="#d19a66",R8="#c678dd",z8="#21252b",OO="#2c313a",xO="#282c34",Of="#353a42",X8="#3E4451",bO="#528bff",j8=_e.theme({"&":{color:Nu,backgroundColor:xO},".cm-content":{caretColor:bO},".cm-cursor, .cm-dropCursor":{borderLeftColor:bO},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:X8},".cm-panels":{backgroundColor:z8,color:Nu},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:xO,color:Xd,border:"none"},".cm-activeLineGutter":{backgroundColor:OO},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Of},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Of,borderBottomColor:Of},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:OO,color:Nu}}},{dark:!0}),Z8=cl.define([{tag:ne.keyword,color:R8},{tag:[ne.name,ne.deleted,ne.character,ne.propertyName,ne.macroName],color:yO},{tag:[ne.function(ne.variableName),ne.labelName],color:Q8},{tag:[ne.color,ne.constant(ne.name),ne.standard(ne.name)],color:vO},{tag:[ne.definition(ne.name),ne.separator],color:Nu},{tag:[ne.typeName,ne.className,ne.number,ne.changed,ne.annotation,ne.modifier,ne.self,ne.namespace],color:$8},{tag:[ne.operator,ne.operatorKeyword,ne.url,ne.escape,ne.regexp,ne.link,ne.special(ne.string)],color:L8},{tag:[ne.meta,ne.comment],color:Xd},{tag:ne.strong,fontWeight:"bold"},{tag:ne.emphasis,fontStyle:"italic"},{tag:ne.strikethrough,textDecoration:"line-through"},{tag:ne.link,color:Xd,textDecoration:"underline"},{tag:ne.heading,fontWeight:"bold",color:yO},{tag:[ne.atom,ne.bool,ne.special(ne.variableName)],color:vO},{tag:[ne.processingInstruction,ne.string,ne.inserted],color:F8},{tag:ne.invalid,color:B8}]),V8=[j8,HS(Z8)],go=ot({__name:"CodeEditor",props:{modelValue:{},language:{default:"typescript"},readonly:{type:Boolean,default:!1},placeholder:{default:""},minHeight:{default:"100px"}},emits:["update:modelValue"],setup(t,{emit:e}){const i=t,n=e,r=Fe(()=>{const a=[i.language==="json"?M8():k8({typescript:!0}),V8,_e.theme({"&":{backgroundColor:"var(--color-surface-base, #0f172a)",minHeight:i.minHeight},".cm-gutters":{backgroundColor:"var(--color-surface-base, #0f172a)",borderRight:"1px solid var(--color-border-default)",color:"var(--color-text-muted)"},".cm-activeLineGutter":{backgroundColor:"color-mix(in srgb, var(--color-accent) 10%, transparent)"},".cm-activeLine":{backgroundColor:"color-mix(in srgb, var(--color-accent) 5%, transparent)"},"&.cm-focused":{outline:"none"},".cm-cursor":{borderLeftColor:"var(--color-accent)"},".cm-selectionBackground":{backgroundColor:"color-mix(in srgb, var(--color-accent) 20%, transparent) !important"},".cm-content":{caretColor:"var(--color-accent)"}}),_e.lineWrapping];return i.readonly&&a.push(_e.editable.of(!1)),a});function s(a){n("update:modelValue",a)}return(a,l)=>(ye(),Ct(Se(IR),{"model-value":t.modelValue,extensions:r.value,placeholder:t.placeholder,style:hi({minHeight:t.minHeight,fontSize:"12px",borderRadius:"6px",overflow:"hidden",border:"1px solid var(--color-border-default)"}),"onUpdate:modelValue":s},null,8,["model-value","extensions","placeholder","style"]))}}),U8={class:"ai-diff"},q8={key:0,class:"diff-explanation"},W8={class:"diff-code"},Y8={class:"diff-actions"},G8=ot({__name:"AiDiffView",props:{oldCode:{},newCode:{},explanation:{}},emits:["accept","dismiss"],setup(t){const e=t,i=Fe(()=>PT(e.oldCode,e.newCode));return(n,r)=>(ye(),be("div",U8,[t.explanation?(ye(),be("div",q8,Te(t.explanation),1)):Qe("",!0),he("div",W8,[(ye(!0),be(gt,null,Jt(i.value,(s,a)=>(ye(),be("div",{key:a,class:bt(["diff-line",{added:s.added,removed:s.removed}])},Te(s.value),3))),128))]),he("div",Y8,[he("button",{class:"diff-accept",onClick:r[0]||(r[0]=s=>n.$emit("accept"))},Te(n.$t("tools.aiDiff.accept")),1),he("button",{class:"diff-dismiss",onClick:r[1]||(r[1]=s=>n.$emit("dismiss"))},Te(n.$t("tools.aiDiff.dismiss")),1)])]))}}),H8=AO(G8,[["__scopeId","data-v-01c9471b"]]),J8={class:"block-header"},K8={class:"block-badge"},e6=["value","placeholder"],t6=["disabled","title"],i6=["disabled","title"],n6={key:0,class:"thinking-bar nodrag"},r6={class:"thinking-text"},s6={key:1,class:"insights-row"},a6={key:2,class:"insights-row"},o6=["onClick"],l6={key:3,class:"insight-detail nodrag nowheel"},u6={class:"insight-desc"},c6={class:"insight-suggestion-label"},h6={key:4,class:"exec-badge-row"},f6={key:0,class:"exec-badge exec-executing"},d6={key:2,class:"exec-badge exec-failed"},p6=["disabled"],m6={key:5,class:"exec-result-panel nodrag nowheel"},g6={class:"block-section"},y6=["value","placeholder"],v6={key:6,class:"block-section nodrag nowheel"},O6=["placeholder"],x6={class:"intent-actions"},b6=["disabled"],S6={key:0,class:"intent-error"},w6={class:"block-section"},P6={class:"param-header"},T6=["value","onChange","placeholder"],C6=["value","onChange","placeholder"],k6=["onClick"],E6={key:0,class:"param-empty"},A6={class:"block-section probe-section"},D6={class:"probe-badge"},_6={key:0,class:"probe-panel nodrag nowheel"},I6={class:"probe-url-row"},N6=["placeholder"],M6=["disabled"],$6={class:"diag-row"},L6={key:0,class:"diag-tag"},B6={key:1,class:"diag-tag"},Q6={key:2,class:"diag-tag diag-openapi"},F6={key:0,class:"diag-auth"},R6={class:"config-section"},z6={class:"config-header"},X6={class:"config-label"},j6=["onUpdate:modelValue","placeholder"],Z6=["onUpdate:modelValue","placeholder"],V6=["onClick","title"],U6=["onClick"],q6={key:1,class:"config-section"},W6={class:"config-label"},Y6={key:2,class:"ep-section"},G6={class:"config-label"},H6=["placeholder"],J6={class:"ep-list"},K6=["onClick"],e7={class:"ep-path"},t7={key:0,class:"ep-summary"},i7={key:0,class:"param-empty"},n7={class:"probe-ai-row"},r7=["disabled"],s7={key:0,class:"auto-map-reasoning"},a7={class:"probe-tree"},o7={key:1,class:"probe-footer"},l7={class:"probe-count"},u7={key:4,class:"probe-error"},c7={key:5,class:"probe-raw"},h7={key:7,class:"block-section mappings-section"},f7={class:"mappings-header"},d7={key:0,class:"stale-badge",title:"Some mapped fields are missing from the function body"},p7={class:"mappings-list"},m7=["title"],g7={class:"block-section nodrag nowheel"},y7=ot({__name:"ToolFunctionNode",props:{data:{}},setup(t){const e=n1(),i=t;function n(K,ue){i.data.onUpdate?.(K,ue)}function r(K,ue,me){const Pe=i.data.parameters.map((Ve,He)=>He===K?{...Ve,[ue]:me}:{...Ve});n("parameters",Pe)}function s(){n("parameters",[...i.data.parameters,{name:"arg",type:"string"}])}function a(K){n("parameters",i.data.parameters.filter((ue,me)=>me!==K))}const l=Fe(()=>{const K=i.data.mappings;if(!K||K.length===0)return[];const ue=i.data.body;return K.filter(me=>!ue.includes(me.returnKey))}),u=Fe(()=>l.value.length>0),h=ze(!1),c=ze(!1),p=ze(e.getIntent(i.data.uid)??""),v=Fe(()=>e.drafts.get(i.data.uid)),g=Fe(()=>v.value?.loading??!1);async function b(){if(!p.value.trim()||!e.effectiveModel)return;e.setIntent(i.data.uid,p.value),e.setDraft(i.data.uid,{toolId:i.data.uid,phase:"draft",code:"",explanation:"",loading:!0,intentText:p.value});const K=await Y$({model:e.effectiveModel,toolName:i.data.name,description:i.data.description,parameters:i.data.parameters,probeResponseSample:Q.value??void 0,intent:p.value});K.error?e.setDraft(i.data.uid,{toolId:i.data.uid,phase:"draft",code:"",explanation:"",loading:!1,error:K.error,intentText:p.value}):e.setDraft(i.data.uid,{toolId:i.data.uid,phase:"draft",code:K.code,explanation:K.explanation,loading:!1,trainingPairId:K.trainingPairId,intentText:p.value})}function m(){const K=v.value;!K||!K.code||(n("body",K.code),K.trainingPairId&&qd.updateAccepted(K.trainingPairId),e.clearDraft(i.data.uid))}function x(){e.clearDraft(i.data.uid)}const O=Fe(()=>e.insights.get(i.data.uid)),P=ze(null),S=ze(!1);Ge(()=>i.data.body,()=>{e.insights.get(i.data.uid)&&(e.clearInsights(i.data.uid),P.value=null)});const w=ze(null),C=["Thinking","Cogitating","Analyzing","Flexing","Scrutinizing","Neuroticizing","Polarizing","Rasterizing","Criticizing","Parameterizing","Inspecting","Evaluating","Dissecting","Probing","Examining","Parsing","Reviewing","Synthesizing"],E=ze(0);let k=null;const A=Fe(()=>C[E.value%C.length]);function $(){E.value=0,k=setInterval(()=>{E.value++},1500)}function F(){k&&(clearInterval(k),k=null)}function I(){if(!P.value?.suggestedCode){console.warn("[Insight] No suggestedCode to apply");return}const K=P.value.suggestedCode;console.log("[Insight] Applying fix, code length:",K.length),n("body",K),P.value=null}async function B(){if(!e.effectiveModel){w.value="No AI model selected. Choose one in the Canvas AI model selector.";return}S.value=!0,w.value=null,P.value=null,$();const K=await G$({model:e.effectiveModel,toolName:i.data.name,code:i.data.body,parameters:i.data.parameters});S.value=!1,F(),K.error?w.value=K.error:e.setInsights(i.data.uid,{toolId:i.data.uid,insights:K.insights,codeHash:i.data.body})}const j=ze(!1),M=ze("");async function q(){if(!e.effectiveModel||!Q.value)return;j.value=!0,M.value="";const K=await H$({model:e.effectiveModel,toolName:i.data.name,description:i.data.description,probeResponseSample:Q.value});j.value=!1,!K.error&&K.paths.length>0&&(M.value=K.reasoning,xe.value=new Set(K.paths))}const X=ze(!1);async function Y(){if(!e.effectiveModel)return;X.value=!0;const K=e.getIntent(i.data.uid),ue=await J$({model:e.effectiveModel,toolName:i.data.name,code:i.data.body,parameters:i.data.parameters,error:i.data.lastCallError??"Unknown error",arguments:i.data.lastCallArguments??{},originalIntent:K});X.value=!1,!ue.error&&ue.fixedCode&&e.setDraft(i.data.uid,{toolId:i.data.uid,phase:"fix",code:ue.fixedCode,explanation:ue.explanation,loading:!1,trainingPairId:ue.trainingPairId})}const V=ze(!1),oe=ze("idle"),ae=ze(i.data.probeConfig?.url??""),fe=ze(i.data.probeConfig?.method??"GET"),D=ze(null),Z=ze(null),L=ze(null),se=ze(i.data.probeConfig?.headers?Object.entries(i.data.probeConfig.headers).map(([K,ue])=>({key:K,value:ue})):[]),de=ze(new Set(i.data.probeConfig?.secretHeaders??[]));function ie(K){const ue=se.value[K].key.trim();if(!ue)return;const me=new Set(de.value);me.has(ue)?me.delete(ue):me.add(ue),de.value=me}const R=ze(""),Q=ze(null),xe=ze(new Set),Re=ze(""),ke=ze(null),$e=Fe(()=>{if(!L.value)return[];const K=Re.value.toLowerCase();return K?L.value.endpoints.filter(ue=>ue.path.toLowerCase().includes(K)||ue.summary?.toLowerCase().includes(K)||ue.operationId?.toLowerCase().includes(K)):L.value.endpoints});function te(K){return K>=200&&K<300?"var(--color-success)":K>=300&&K<400?"var(--color-warning, #f9e2af)":"var(--color-error)"}function H(K){switch(K){case"GET":return"var(--color-accent)";case"POST":return"var(--color-success)";case"PUT":return"var(--color-warning, #f9e2af)";case"DELETE":return"var(--color-error)";case"PATCH":return"#cba6f7";default:return"var(--color-text-muted)"}}async function re(){const K=ae.value.trim();if(!K)return;oe.value="discovering",D.value=null,Z.value=null,L.value=null,Q.value=null,xe.value=new Set,ke.value=null;const ue={};for(const Ve of se.value)Ve.key.trim()&&(ue[Ve.key.trim()]=Ve.value);const[me,Pe]=await Promise.allSettled([s3(K,{method:fe.value,headers:Object.keys(ue).length>0?ue:void 0,body:(fe.value==="POST"||fe.value==="PUT")&&R.value||void 0}),l3(K)]);me.status==="fulfilled"&&(D.value=me.value,me.value.data&&(Q.value=me.value.data),me.value.authHint&&se.value.length===0&&(me.value.authHint.type==="bearer"?se.value=[{key:"Authorization",value:"Bearer "}]:me.value.authHint.type==="apikey"?se.value=[{key:"X-API-Key",value:""}]:me.value.authHint.type==="basic"&&(se.value=[{key:"Authorization",value:"Basic "}]))),Pe.status==="fulfilled"&&Pe.value.spec&&(Z.value=Pe.value,L.value=t3(Pe.value.spec)),oe.value="diagnosed"}function G(K){ke.value=K;const ue=L.value?.info.baseUrl??"",me=ue?`${ue.replace(/\/$/,"")}${K.path}`:K.path;ae.value=me,fe.value=K.method;const Pe=K.operationId??K.path.replace(/[^a-zA-Z0-9]+/g,"_").replace(/^_|_$/g,"");n("name",Pe),(K.summary||K.description)&&n("description",K.summary??K.description??"");const Ve=K.parameters.filter(He=>He.in==="query"||He.in==="path").map(He=>({name:He.name,type:He.type}));Ve.length>0&&n("parameters",Ve)}function J(){se.value=[...se.value,{key:"",value:""}]}function le(K){se.value=se.value.filter((ue,me)=>me!==K)}function ve(K){const ue=new Set(xe.value);ue.has(K)?ue.delete(K):ue.add(K),xe.value=ue}function we(){const K=Array.from(xe.value);if(K.length===0)return;const ue={};for(const Je of se.value)Je.key.trim()&&(ue[Je.key.trim()]=Je.value);const me=Array.from(de.value),{body:Pe,addedParams:Ve}=yT(ae.value.trim(),K,{method:fe.value!=="GET"?fe.value:void 0,headers:Object.keys(ue).length>0?ue:void 0,body:(fe.value==="POST"||fe.value==="PUT")&&R.value||void 0,secretHeaders:me.length>0?me:void 0});n("body",Pe);const He=vT(K);if(n("mappings",He),Q.value){const Je=OT(He,Q.value);n("returnSchema",Je)}const Tt={url:ae.value.trim(),method:fe.value,headers:ue,...me.length>0?{secretHeaders:me}:{}};if(n("probeConfig",Tt),Ve.length>0){const Je=i.data.parameters.map(qt=>qt.name),ei=Ve.filter(qt=>!Je.includes(qt.name));ei.length>0&&n("parameters",[...i.data.parameters,...ei])}oe.value="picked"}return(K,ue)=>(ye(),be("div",{class:bt(["tool-block",{executing:t.data.executionStatus==="executing",completed:t.data.executionStatus==="completed",failed:t.data.executionStatus==="failed"}])},[ht(Se(Es),{type:"target",position:Se(Xe).Top},null,8,["position"]),he("div",J8,[he("span",K8,Te(K.$t("tools.node.badge")),1),he("input",{class:"block-name-input",value:t.data.name,onChange:ue[0]||(ue[0]=me=>n("name",me.target.value)),placeholder:K.$t("tools.node.functionNamePlaceholder")},null,40,e6),he("button",{class:bt(["ai-header-btn",{active:c.value}]),disabled:g.value,title:K.$t("tools.node.draftWithAi"),onClick:ue[1]||(ue[1]=Yi(me=>c.value=!c.value,["stop"]))},Te(g.value?"...":"✨"),11,t6),he("button",{class:"ai-header-btn ai-analyze",disabled:S.value||!t.data.body.trim(),title:K.$t("tools.node.aiInsights"),onClick:Yi(B,["stop"])},Te(S.value?"...":"🔍"),9,i6)]),S.value?(ye(),be("div",n6,[ue[14]||(ue[14]=he("span",{class:"thinking-dot"},null,-1)),he("span",r6,Te(A.value)+"...",1)])):Qe("",!0),w.value?(ye(),be("div",s6,[he("span",{class:"insight-badge error",onClick:ue[2]||(ue[2]=Yi(me=>w.value=null,["stop"]))},Te(w.value),1)])):Qe("",!0),O.value?.insights.length?(ye(),be("div",a6,[(ye(!0),be(gt,null,Jt(O.value.insights,(me,Pe)=>(ye(),be("span",{key:Pe,class:bt(["insight-badge",me.severity]),onClick:Yi(Ve=>P.value=P.value===me?null:me,["stop"])},Te(me.title),11,o6))),128))])):Qe("",!0),P.value?(ye(),be("div",l6,[he("p",u6,Te(P.value.description),1),P.value.suggestedCode?(ye(),be(gt,{key:0},[he("p",c6,Te(K.$t("tools.node.insightSuggestionLabel")),1),ht(go,{"model-value":P.value.suggestedCode,language:"typescript",readonly:!0,"min-height":"60px"},null,8,["model-value"])],64)):Qe("",!0),he("div",{class:"insight-actions",onMousedown:ue[4]||(ue[4]=Yi(()=>{},["stop"]))},[P.value.suggestedCode?(ye(),be("button",{key:0,class:"insight-apply",onClick:Yi(I,["stop","prevent"])},Te(K.$t("tools.node.applyFix")),1)):Qe("",!0),he("button",{class:"insight-close",onClick:ue[3]||(ue[3]=Yi(me=>P.value=null,["stop"]))},"× "+Te(K.$t("tools.node.closeInsight")),1)],32)])):Qe("",!0),t.data.executionStatus&&t.data.executionStatus!=="idle"?(ye(),be("div",h6,[t.data.executionStatus==="executing"?(ye(),be("span",f6,Te(K.$t("tools.node.running")),1)):t.data.executionStatus==="completed"?(ye(),be("button",{key:1,class:"exec-badge exec-completed",onClick:ue[5]||(ue[5]=Yi(me=>h.value=!h.value,["stop"]))}," ✓ "+Te(t.data.lastDurationMs!=null?`${t.data.lastDurationMs}ms`:K.$t("tools.node.done")),1)):t.data.executionStatus==="failed"?(ye(),be("span",d6," ✗ "+Te(K.$t("tools.node.failed")),1)):Qe("",!0),t.data.executionStatus==="failed"?(ye(),be("button",{key:3,class:"ai-fix-btn",disabled:X.value,onClick:Yi(Y,["stop"])},Te(X.value?"...":K.$t("tools.node.aiFix")),9,p6)):Qe("",!0)])):Qe("",!0),h.value&&t.data.lastResult!==void 0?(ye(),be("div",m6,[ht(rg,{label:"result",value:t.data.lastResult,path:"","selected-paths":new Set,depth:0,onTogglePath:()=>{}},null,8,["value","selected-paths"])])):Qe("",!0),he("div",g6,[he("label",null,Te(K.$t("tools.node.description")),1),he("input",{class:"block-input",value:t.data.description,onChange:ue[6]||(ue[6]=me=>n("description",me.target.value)),placeholder:K.$t("tools.node.descriptionPlaceholder")},null,40,y6)]),c.value?(ye(),be("div",v6,[he("label",null,Te(K.$t("tools.node.intent")),1),Vn(he("textarea",{"onUpdate:modelValue":ue[7]||(ue[7]=me=>p.value=me),class:"intent-textarea",placeholder:K.$t("tools.node.intentPlaceholder"),rows:"2"},null,8,O6),[[ia,p.value]]),he("div",x6,[he("button",{class:"intent-generate-btn",disabled:g.value||!p.value.trim(),onClick:b},Te(g.value?K.$t("tools.node.generating"):K.$t("tools.node.generate")),9,b6)]),v.value?.error?(ye(),be("div",S6,Te(v.value.error),1)):Qe("",!0)])):Qe("",!0),he("div",w6,[he("div",P6,[he("label",null,Te(K.$t("tools.node.parameters")),1),he("button",{class:"param-add-btn",onClick:s},Te(K.$t("tools.node.addParam")),1)]),(ye(!0),be(gt,null,Jt(t.data.parameters,(me,Pe)=>(ye(),be("div",{key:Pe,class:"param-row"},[he("input",{class:"param-name",value:me.name,onChange:Ve=>r(Pe,"name",Ve.target.value),placeholder:K.$t("tools.node.paramNamePlaceholder")},null,40,T6),he("input",{class:"param-type",value:me.type,onChange:Ve=>r(Pe,"type",Ve.target.value),placeholder:K.$t("tools.node.paramTypePlaceholder")},null,40,C6),he("button",{class:"param-remove-btn",onClick:Ve=>a(Pe)},"×",8,k6)]))),128)),t.data.parameters.length===0?(ye(),be("div",E6,Te(K.$t("tools.node.noParameters")),1)):Qe("",!0)]),he("div",A6,[he("div",{class:"probe-toggle",onClick:ue[8]||(ue[8]=me=>V.value=!V.value)},[he("span",{class:bt(["toggle-arrow",{open:V.value}])},"▶",2),he("label",null,Te(K.$t("tools.node.probeAndPick")),1),he("span",D6,Te(K.$t("tools.node.apiBadge")),1)]),V.value?(ye(),be("div",_6,[he("div",I6,[Vn(he("select",{"onUpdate:modelValue":ue[9]||(ue[9]=me=>fe.value=me),class:"method-select"},[...ue[15]||(ue[15]=[he("option",null,"GET",-1),he("option",null,"POST",-1),he("option",null,"PUT",-1),he("option",null,"DELETE",-1)])],512),[[hT,fe.value]]),Vn(he("input",{"onUpdate:modelValue":ue[10]||(ue[10]=me=>ae.value=me),class:"block-input probe-url",placeholder:K.$t("tools.node.urlPlaceholder"),onKeydown:fT(re,["enter"])},null,40,N6),[[ia,ae.value]]),he("button",{class:"probe-btn",disabled:oe.value==="discovering"||!ae.value.trim(),onClick:re},Te(oe.value==="discovering"?"...":K.$t("tools.node.probe")),9,M6)]),D.value&&oe.value!=="idle"?(ye(),be(gt,{key:0},[he("div",$6,[he("span",{class:"diag-status",style:hi({background:te(D.value.status)})},Te(D.value.status),5),D.value.headers["content-type"]?(ye(),be("span",L6,Te(D.value.headers["content-type"].split(";")[0]),1)):Qe("",!0),D.value.headers.server?(ye(),be("span",B6,Te(D.value.headers.server),1)):Qe("",!0),L.value?(ye(),be("span",Q6," OpenAPI · "+Te(L.value.endpoints.length)+" endpoints ",1)):Qe("",!0)]),D.value.authHint?(ye(),be("div",F6,[ue[16]||(ue[16]=he("span",{class:"diag-auth-icon"},"🔒",-1)),he("span",null,Te(D.value.authHint.message),1)])):Qe("",!0)],64)):Qe("",!0),he("div",R6,[he("div",z6,[he("span",X6,Te(K.$t("tools.node.headers")),1),he("button",{class:"param-add-btn",onClick:J},Te(K.$t("tools.node.addHeader")),1)]),(ye(!0),be(gt,null,Jt(se.value,(me,Pe)=>(ye(),be("div",{key:Pe,class:"param-row"},[Vn(he("input",{class:"param-name","onUpdate:modelValue":Ve=>se.value[Pe].key=Ve,placeholder:K.$t("tools.node.headerNamePlaceholder")},null,8,j6),[[ia,se.value[Pe].key]]),Vn(he("input",{class:bt(["param-type",{"secret-masked":de.value.has(se.value[Pe].key.trim())}]),"onUpdate:modelValue":Ve=>se.value[Pe].value=Ve,placeholder:K.$t("tools.node.headerValuePlaceholder")},null,10,Z6),[[ia,se.value[Pe].value]]),he("button",{class:bt(["secret-toggle-btn",{active:de.value.has(se.value[Pe].key.trim())}]),onClick:Ve=>ie(Pe),title:K.$t("tools.node.markAsSecret")}," 🔒 ",10,V6),he("button",{class:"param-remove-btn",onClick:Ve=>le(Pe)},"×",8,U6)]))),128))]),fe.value==="POST"||fe.value==="PUT"?(ye(),be("div",q6,[he("span",W6,Te(K.$t("tools.node.requestBody")),1),ht(go,{modelValue:R.value,"onUpdate:modelValue":ue[11]||(ue[11]=me=>R.value=me),language:"json","min-height":"60px",placeholder:'{"key": "value"}'},null,8,["modelValue"])])):Qe("",!0),L.value&&L.value.endpoints.length>0?(ye(),be("div",Y6,[he("span",G6,Te(K.$t("tools.node.endpoints")),1),Vn(he("input",{"onUpdate:modelValue":ue[12]||(ue[12]=me=>Re.value=me),class:"block-input ep-search",placeholder:K.$t("tools.node.searchEndpoints")},null,8,H6),[[ia,Re.value]]),he("div",J6,[(ye(!0),be(gt,null,Jt($e.value,me=>(ye(),be("div",{key:me.method+me.path,class:bt(["ep-row",{selected:ke.value===me}]),onClick:Pe=>G(me)},[he("span",{class:"ep-method",style:hi({background:H(me.method)})},Te(me.method),5),he("span",e7,Te(me.path),1),me.summary?(ye(),be("span",t7,Te(me.summary),1)):Qe("",!0)],10,K6))),128)),$e.value.length===0?(ye(),be("div",i7,Te(K.$t("tools.node.noMatchingEndpoints")),1)):Qe("",!0)])])):Qe("",!0),Q.value&&D.value&&D.value.ok?(ye(),be(gt,{key:3},[he("div",n7,[he("button",{class:"ai-suggest-btn",disabled:j.value,onClick:q},Te(j.value?K.$t("tools.node.thinking"):K.$t("tools.node.aiSuggest")),9,r7)]),M.value?(ye(),be("div",s7,Te(M.value),1)):Qe("",!0),he("div",a7,[ht(rg,{label:"response",value:Q.value,path:"","selected-paths":xe.value,depth:0,onTogglePath:ve},null,8,["value","selected-paths"])]),xe.value.size>0?(ye(),be("div",o7,[he("span",l7,Te(xe.value.size)+" "+Te(xe.value.size!==1?K.$t("tools.node.fields"):K.$t("tools.node.field")),1),he("button",{class:"probe-apply-btn",onClick:we},Te(K.$t("tools.node.apply")),1)])):Qe("",!0)],64)):Qe("",!0),D.value&&D.value.error&&!D.value.data?(ye(),be("div",u7,Te(D.value.error),1)):Qe("",!0),D.value?.rawText?(ye(),be("pre",c7,Te(D.value.rawText),1)):Qe("",!0)])):Qe("",!0)]),t.data.mappings&&t.data.mappings.length>0?(ye(),be("div",h7,[he("div",f7,[he("label",null,Te(K.$t("tools.node.mappings")),1),u.value?(ye(),be("span",d7,Te(K.$t("tools.node.outOfSync")),1)):Qe("",!0)]),he("div",p7,[(ye(!0),be(gt,null,Jt(t.data.mappings,me=>(ye(),be("span",{key:me.jsonPath,class:bt(["mapping-tag",{stale:l.value.some(Pe=>Pe.jsonPath===me.jsonPath)}]),title:me.jsonPath},Te(me.returnKey),11,m7))),128))])])):Qe("",!0),he("div",g7,[he("label",null,Te(K.$t("tools.node.bodyLabel")),1),v.value&&!v.value.loading&&v.value.code?(ye(),Ct(H8,{key:0,"old-code":t.data.body,"new-code":v.value.code,explanation:v.value.explanation,onAccept:m,onDismiss:x},null,8,["old-code","new-code","explanation"])):(ye(),Ct(go,{key:1,"model-value":t.data.body,language:"typescript","min-height":"100px",placeholder:K.$t("tools.node.bodyPlaceholder"),"onUpdate:modelValue":ue[13]||(ue[13]=me=>n("body",me))},null,8,["model-value","placeholder"]))]),ht(Se(Es),{type:"source",position:Se(Xe).Bottom},null,8,["position"])],2))}}),v7=AO(y7,[["__scopeId","data-v-655b6640"]]),O7={class:"flex h-full w-full relative"},x7={key:0,class:"w-[440px] flex flex-col border-e border-border-default bg-surface-base shrink-0"},b7={class:"p-3 border-b border-border-default flex items-center justify-between"},S7={class:"flex items-center gap-2"},w7={class:"text-sm font-semibold text-text-primary"},P7={class:"flex border-b border-border-default"},T7={class:"flex-1 flex flex-col p-3 gap-2 min-h-0 overflow-auto"},C7={class:"flex-1 flex flex-col p-3 gap-2 min-h-0"},k7={class:"flex items-center justify-between"},E7={class:"text-xs text-text-muted"},A7={class:"flex-1 overflow-auto"},D7={key:0,class:"p-3 border-t border-border-default"},_7={class:"text-xs text-warning uppercase tracking-wider"},I7={class:"mt-1 text-xs text-warning/80 list-disc ps-4 space-y-0.5"},N7={class:"p-3 border-t border-border-default text-xs text-text-muted"},M7={class:"flex-1 relative min-h-0 overflow-hidden"},$7={key:0,class:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none"},L7={class:"text-center pointer-events-auto"},B7={class:"text-text-muted text-sm mb-4"},Q7={class:"flex items-center gap-3"},F7={class:"absolute top-3 right-3 z-10 flex items-center gap-2"},R7=["value"],z7={value:""},X7=["value"],j7={class:"relative"},Z7={key:1,class:"absolute end-0 top-full z-20 mt-1 w-56 rounded-lg border border-border-default bg-surface-raised shadow-lg py-1"},V7=["title"],U7={key:1,class:"absolute inset-0 z-50 flex items-center justify-center bg-black/40"},q7={class:"rounded-xl bg-surface-raised border border-border-default p-6 shadow-2xl max-w-xs text-center"},W7={class:"text-sm text-text-primary mb-1 font-semibold"},Y7={class:"text-xs text-text-muted mb-4"},G7={class:"flex items-center justify-center gap-3"},H7={key:1,class:"w-[280px] flex flex-col border-s border-border-default bg-surface-base shrink-0"},J7={class:"p-3 border-b border-border-default flex items-center justify-between"},K7={class:"text-sm font-semibold text-text-primary"},e9={class:"flex-1 overflow-y-auto p-2 space-y-1"},t9=["title","onClick"],i9={class:"min-w-0 flex-1"},n9={class:"truncate text-[10px] text-text-muted"},r9=["title","onClick"],s9=["title","onClick"],a9={key:0,class:"px-3 py-4 text-xs text-text-muted text-center"},o9={class:"p-3 border-t border-border-default text-xs text-text-muted"},l9=ot({__name:"ToolCanvasView",emits:["add-template"],setup(t,{emit:e}){const i=e,n={"tool-function":io(v7)},r=Ud(),s=n1(),a=kO(),{flowNodes:l,flowEdges:u,combinedCode:h,codeWarnings:c,codeSyncStatus:p,schemas:v,onNodeDragStop:g,onNodesDelete:b,onCodeEdit:m,addNewTool:x}=j$(),{fitView:O}=vt();fn(()=>{a.models.length===0&&a.fetchModels()});const P=ze(!1),S=ze("code");Ge(P,()=>{l.value.length>0&&setTimeout(()=>{O({padding:.3,duration:300})},50)});const w=ze(!1);Ge(w,()=>{l.value.length>0&&setTimeout(()=>{O({padding:.3,duration:300})},50)});function C(X){r.removeTool(X)}const E=ze(!1);function k(){r.clearAll(),E.value=!1}const A=Fe(()=>JSON.stringify(v.value,null,2));function $(X){g({node:X.node})}function F(X){for(const Y of X)Y.type==="remove"&&b([{id:Y.id}])}function I(){const X=x();vi(()=>{O({nodes:[X],padding:.5,duration:300})})}async function B(){try{await navigator.clipboard.writeText(A.value)}catch{}}const j=ze(!1);function M(){const X=r.allTools.map(Y=>Y.definition);ng(X,"llmxray-tools.json"),j.value=!1}function q(X){const Y=r.allTools.find(V=>V.id===X);Y&&ng(Y.definition,`tool-${Y.definition.function.name}.json`)}return(X,Y)=>(ye(),be("div",O7,[P.value?(ye(),be("div",x7,[he("div",b7,[he("div",S7,[he("span",w7,Te(X.$t("tools.canvas.codePanel")),1),he("span",{class:bt(["sync-dot",Se(p)])},null,2)]),he("button",{class:"text-xs text-text-muted hover:text-text-primary transition-colors bg-transparent border-none cursor-pointer",onClick:Y[0]||(Y[0]=V=>P.value=!1)},Te(X.$t("tools.canvas.close")),1)]),he("div",P7,[he("button",{onClick:Y[1]||(Y[1]=V=>S.value="code"),class:bt(["flex-1 px-3 py-2 text-xs uppercase tracking-wider border-none cursor-pointer transition-colors",S.value==="code"?"bg-surface-raised text-accent font-bold":"bg-transparent text-text-muted"])},Te(X.$t("tools.canvas.source")),3),he("button",{onClick:Y[2]||(Y[2]=V=>S.value="schema"),class:bt(["flex-1 px-3 py-2 text-xs uppercase tracking-wider border-none cursor-pointer transition-colors",S.value==="schema"?"bg-surface-raised text-success font-bold":"bg-transparent text-text-muted"])},Te(X.$t("tools.canvas.schema")),3)]),Vn(he("div",T7,[ht(go,{"model-value":Se(h),language:"typescript",placeholder:"Combined tool source...","min-height":"200px","onUpdate:modelValue":Se(m)},null,8,["model-value","onUpdate:modelValue"])],512),[[ig,S.value==="code"]]),Vn(he("div",C7,[he("div",k7,[he("span",E7,Te(X.$t("tools.canvas.schemaManifest")),1),he("button",{onClick:B,class:"px-2 py-1 text-xs rounded bg-surface-overlay text-text-secondary hover:bg-surface-raised transition-colors cursor-pointer border-none"},Te(X.$t("tools.canvas.copy")),1)]),he("div",A7,[ht(go,{"model-value":A.value,language:"json",readonly:!0,"min-height":"200px"},null,8,["model-value"])])],512),[[ig,S.value==="schema"]]),Se(c).length>0?(ye(),be("div",D7,[he("label",_7,Te(X.$t("tools.canvas.warnings")),1),he("ul",I7,[(ye(!0),be(gt,null,Jt(Se(c),(V,oe)=>(ye(),be("li",{key:oe},Te(V),1))),128))])])):Qe("",!0),he("div",N7,Te(Se(l).length)+" tool"+Te(Se(l).length!==1?"s":"")+" · "+Te(Se(v).length)+" schema"+Te(Se(v).length!==1?"s":""),1)])):Qe("",!0),he("div",M7,[ht(Se(_D),{nodes:Se(l),edges:Se(u),"node-types":n,"default-viewport":{x:40,y:40,zoom:1},"min-zoom":.3,"max-zoom":2,"fit-view-on-init":Se(l).length>0,"fit-view-on-init-options":{padding:.3,minZoom:.6,maxZoom:1.2},class:"canvas-flow",onNodeDragStop:$,onNodesChange:F},{default:Ki(()=>[ht(Se(FD),{gap:24,size:1,"pattern-color":"var(--color-border-default)"}),ht(Se(g_)),ht(Se(JM))]),_:1},8,["nodes","edges","fit-view-on-init"]),Se(l).length===0?(ye(),be("div",$7,[he("div",L7,[he("div",B7,Te(X.$t("tools.canvas.emptyState")),1),he("div",Q7,[he("button",{onClick:I,class:"px-4 py-2 rounded-lg bg-accent text-surface-base font-semibold text-sm hover:opacity-90 transition-opacity cursor-pointer border-none"},Te(X.$t("tools.canvas.newTool")),1),he("button",{onClick:Y[3]||(Y[3]=V=>i("add-template")),class:"px-4 py-2 rounded-lg border border-dashed border-border-default text-text-muted text-sm font-medium hover:border-accent hover:text-text-primary transition-colors cursor-pointer bg-transparent"},Te(X.$t("tools.canvas.fromTemplate")),1)])])])):Qe("",!0),he("div",F7,[Se(a).chatModelNames.length>0?(ye(),be("select",{key:0,value:Se(s).canvasAiModel??"",onChange:Y[4]||(Y[4]=V=>Se(s).setCanvasAiModel(V.target.value||null)),class:"canvas-ai-model-select px-2 py-1.5 rounded-lg bg-surface-overlay/90 text-text-secondary text-xs border border-border-default shadow-lg cursor-pointer"},[he("option",z7,"AI: "+Te(Se(a).chatModelNames[0]??"none"),1),(ye(!0),be(gt,null,Jt(Se(a).chatModelNames,V=>(ye(),be("option",{key:V,value:V}," AI: "+Te(V)+" "+Te(Se(a).capabilityIcons(V)),9,X7))),128))],40,R7)):Qe("",!0),he("div",j7,[he("button",{class:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-surface-overlay/90 text-text-secondary text-xs font-medium hover:bg-surface-overlay transition-colors cursor-pointer border border-border-default shadow-lg",onClick:Y[5]||(Y[5]=V=>j.value=!j.value)},[ht(Se(sg),{class:"h-3.5 w-3.5"}),CO(" "+Te(X.$t("tools.canvas.export")),1)]),j.value?(ye(),be("div",{key:0,class:"fixed inset-0 z-10",onClick:Y[6]||(Y[6]=V=>j.value=!1)})):Qe("",!0),j.value?(ye(),be("div",Z7,[he("button",{class:"w-full px-3 py-2 text-start text-xs text-text-secondary hover:bg-surface-overlay",onClick:Y[7]||(Y[7]=V=>{Se(K$)(),j.value=!1})},Te(X.$t("tools.canvas.exportTitle")),1),he("button",{class:"w-full px-3 py-2 text-start text-xs text-text-secondary hover:bg-surface-overlay",onClick:M},Te(X.$t("tools.canvas.exportAllJson")),1)])):Qe("",!0)]),P.value?Qe("",!0):(ye(),be("button",{key:1,onClick:Y[8]||(Y[8]=V=>P.value=!0),class:"px-3 py-1.5 rounded-lg bg-surface-overlay/90 text-text-secondary text-xs font-medium hover:bg-surface-overlay transition-colors cursor-pointer border border-border-default shadow-lg"},Te(X.$t("tools.canvas.codePanel")),1)),he("button",{onClick:Y[9]||(Y[9]=V=>w.value=!w.value),class:bt(["px-3 py-1.5 rounded-lg bg-surface-overlay/90 text-xs font-medium hover:bg-surface-overlay transition-colors cursor-pointer border border-border-default shadow-lg",w.value?"text-accent":"text-text-secondary"])},Te(X.$t("tools.canvas.toolLibrary")),3),Se(l).length>0?(ye(),be("button",{key:2,onClick:Y[10]||(Y[10]=V=>E.value=!0),class:"px-3 py-1.5 rounded-lg bg-surface-overlay/90 text-text-secondary text-xs font-medium hover:bg-surface-overlay hover:text-error transition-colors cursor-pointer border border-border-default shadow-lg",title:X.$t("tools.canvas.clearAllTitle")},Te(X.$t("tools.canvas.clearAll")),9,V7)):Qe("",!0),he("button",{onClick:Y[11]||(Y[11]=V=>i("add-template")),class:"px-3 py-1.5 rounded-lg bg-surface-overlay/90 text-text-secondary text-xs font-medium hover:bg-surface-overlay transition-colors cursor-pointer border border-dashed border-border-default shadow-lg"},Te(X.$t("tools.canvas.fromTemplate")),1),Se(l).length>0?(ye(),be("button",{key:3,onClick:I,class:"px-3 py-1.5 rounded-lg bg-accent/90 text-surface-base font-semibold text-xs hover:bg-accent transition-colors cursor-pointer border-none shadow-lg"},Te(X.$t("tools.canvas.newTool")),1)):Qe("",!0)]),E.value?(ye(),be("div",U7,[he("div",q7,[he("p",W7,Te(X.$t("tools.canvas.clearAllConfirm")),1),he("p",Y7,Te(X.$t("tools.canvas.clearAllWarning",{count:Se(l).length})),1),he("div",G7,[he("button",{onClick:Y[12]||(Y[12]=V=>E.value=!1),class:"px-4 py-1.5 rounded-lg text-xs text-text-secondary bg-surface-overlay hover:bg-surface-raised transition-colors cursor-pointer border border-border-default"},Te(X.$t("tools.canvas.cancel")),1),he("button",{onClick:k,class:"px-4 py-1.5 rounded-lg text-xs text-white bg-error hover:opacity-90 transition-opacity cursor-pointer border-none"},Te(X.$t("tools.canvas.deleteAll")),1)])])])):Qe("",!0)]),w.value?(ye(),be("div",H7,[he("div",J7,[he("span",K7,Te(X.$t("tools.canvas.toolLibrary")),1),he("button",{class:"text-xs text-text-muted hover:text-text-primary transition-colors bg-transparent border-none cursor-pointer",onClick:Y[13]||(Y[13]=V=>w.value=!1)},Te(X.$t("tools.canvas.close")),1)]),he("div",e9,[(ye(!0),be(gt,null,Jt(Se(r).allTools,V=>(ye(),be("div",{key:V.id,class:"flex items-center gap-2 rounded-lg px-3 py-2 text-xs hover:bg-surface-overlay transition-colors"},[he("button",{class:bt(["h-4 w-7 shrink-0 rounded-full transition-colors",V.enabled?"bg-accent":"bg-surface-overlay"]),title:V.enabled?X.$t("tools.canvas.disableForChat"):X.$t("tools.canvas.enableForChat"),onClick:oe=>Se(r).toggleEnabled(V.id)},[he("span",{class:bt(["block h-3 w-3 rounded-full bg-white transition-transform",V.enabled?"translate-x-3.5":"translate-x-0.5"])},null,2)],10,t9),he("div",i9,[he("span",{class:bt(["font-mono block",V.enabled?"text-text-primary":"text-text-muted"])},Te(V.definition.function.name),3),he("p",n9,Te(V.definition.function.description),1)]),he("button",{class:"shrink-0 text-text-muted hover:text-accent transition-colors bg-transparent border-none cursor-pointer",title:X.$t("tools.canvas.exportToolJson"),onClick:oe=>q(V.id)},[ht(Se(sg),{class:"h-3.5 w-3.5"})],8,r9),he("button",{class:"shrink-0 text-text-muted hover:text-error transition-colors bg-transparent border-none cursor-pointer",title:X.$t("tools.canvas.deleteToolTitle"),onClick:oe=>C(V.id)},[ht(Se(bT),{class:"h-3.5 w-3.5"})],8,s9)]))),128)),Se(r).allTools.length===0?(ye(),be("p",a9,Te(X.$t("tools.canvas.noToolsYet")),1)):Qe("",!0)]),he("div",o9,Te(Se(r).enabledTools.length)+"/"+Te(Se(r).allTools.length)+" "+Te(X.$t("tools.canvas.enabledForChat")),1)])):Qe("",!0)]))}}),u9={class:"flex h-full overflow-hidden flex-col"},c9={class:"bg-surface-raised rounded-xl border border-border-default shadow-xl w-[480px] max-h-[70vh] overflow-hidden"},h9={class:"p-4 border-b border-border-default"},f9={class:"text-sm font-medium text-text-primary"},d9={class:"text-[10px] text-text-muted mt-0.5"},p9={class:"p-3 space-y-4 overflow-y-auto max-h-[50vh]"},m9={class:"text-[10px] font-semibold text-text-muted uppercase tracking-wider mb-2 px-1"},g9={class:"space-y-1.5"},y9=["onClick"],v9={class:"flex items-center justify-between"},O9={class:"text-xs font-medium text-text-primary"},x9={class:"text-[10px] text-text-muted mt-1"},b9={class:"p-3 border-t border-border-default"},z9=ot({__name:"ToolWorkshopPage",setup(t){const e=Ud(),{t:i}=dT(),n=ze(!1),r=[{name:"Current Time",description:"Returns the current date and time",category:"utility",definition:{type:"function",function:{name:"get_current_time",description:"Get the current date and time in ISO format",parameters:{type:"object",properties:{},required:[]}}},code:"return new Date().toISOString()"},{name:"Web Fetch",description:"Fetch readable text or JSON from a URL",category:"api",definition:{type:"function",function:{name:"fetch_url",description:"Fetch the content of a web page or API endpoint. Returns extracted text for HTML pages, or raw JSON for API responses.",parameters:{type:"object",properties:{url:{type:"string",description:"The URL to fetch"}},required:["url"]}}},code:`const res = await fetch(args.url)
|
|
215
|
+
}`,{label:"class",detail:"definition",type:"keyword"}),ii('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ii('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],O8=oP.concat([ii("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ii("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ii("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),pO=new CB,lP=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function va(t){return(e,i)=>{let n=e.node.getChild("VariableDefinition");return n&&i(n,t),!0}}const x8=["FunctionDeclaration"],b8={FunctionDeclaration:va("function"),ClassDeclaration:va("class"),ClassExpression:()=>!0,EnumDeclaration:va("constant"),TypeAliasDeclaration:va("type"),NamespaceDeclaration:va("namespace"),VariableDefinition(t,e){t.matchContext(x8)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function uP(t,e){let i=pO.get(e);if(i)return i;let n=[],r=!0;function s(a,l){let u=t.sliceString(a.from,a.to);n.push({label:u,type:l})}return e.cursor(Pt.IncludeAnonymous).iterate(a=>{if(r)r=!1;else if(a.name){let l=b8[a.name];if(l&&l(a,s)||lP.has(a.name))return!1}else if(a.to-a.from>8192){for(let l of uP(t,a.node))n.push(l);return!1}}),pO.set(e,n),n}const mO=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,cP=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function S8(t){let e=Qt(t.state).resolveInner(t.pos,-1);if(cP.indexOf(e.name)>-1)return null;let i=e.name=="VariableName"||e.to-e.from<20&&mO.test(t.state.sliceDoc(e.from,e.to));if(!i&&!t.explicit)return null;let n=[];for(let r=e;r;r=r.parent)lP.has(r.name)&&(n=n.concat(uP(t.state.doc,r)));return{options:n,from:i?e.from:t.pos,validFor:mO}}const zr=zo.define({name:"javascript",parser:v8.configure({props:[Zp.add({IfStatement:mo({except:/^\s*({|else\b)/}),TryStatement:mo({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:UB,SwitchBody:t=>{let e=t.textAfter,i=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return t.baseIndent+(i?0:n?1:2)*t.unit},Block:VB({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":mo({except:/^\s*{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Up.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":XS,BlockComment(t){return{from:t.from+2,to:t.to-2}},JSXElement(t){let e=t.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let i=t.lastChild;return{from:e.to,to:i.type.isError?t.to:i.from}},"JSXSelfClosingTag JSXOpenTag"(t){var e;let i=(e=t.firstChild)===null||e===void 0?void 0:e.nextSibling,n=t.lastChild;return!i||i.type.isError?null:{from:i.to,to:n.type.isError?t.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),hP={test:t=>/^JSX/.test(t.name),facet:BS({commentTokens:{block:{open:"{/*",close:"*/}"}}})},w8=zr.configure({dialect:"ts"},"typescript"),P8=zr.configure({dialect:"jsx",props:[Xp.add(t=>t.isTop?[hP]:void 0)]}),T8=zr.configure({dialect:"jsx ts",props:[Xp.add(t=>t.isTop?[hP]:void 0)]},"typescript");let fP=t=>({label:t,type:"keyword"});const dP="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(fP),C8=dP.concat(["declare","implements","private","protected","public"].map(fP));function k8(t={}){let e=t.jsx?t.typescript?T8:P8:t.typescript?w8:zr,i=t.typescript?O8.concat(C8):oP.concat(dP);return new FS(e,[zr.data.of({autocomplete:p4(cP,Zw(i))}),zr.data.of({autocomplete:S8}),t.jsx?D8:[]])}function E8(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function gO(t,e,i=t.length){for(let n=e?.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return t.sliceString(n.from,Math.min(n.to,i));return""}const A8=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),D8=_e.inputHandler.of((t,e,i,n,r)=>{if((A8?t.composing:t.compositionStarted)||t.state.readOnly||e!=i||n!=">"&&n!="/"||!zr.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:a}=s,l=a.changeByRange(u=>{var h;let{head:c}=u,p=Qt(a).resolveInner(c-1,-1),v;if(p.name=="JSXStartTag"&&(p=p.parent),!(a.doc.sliceString(c-1,c)!=n||p.name=="JSXAttributeValue"&&p.to>c)){if(n==">"&&p.name=="JSXFragmentTag")return{range:u,changes:{from:c,insert:"</>"}};if(n=="/"&&p.name=="JSXStartCloseTag"){let g=p.parent,b=g.parent;if(b&&g.from==c-2&&((v=gO(a.doc,b.firstChild,c))||((h=b.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let m=`${v}>`;return{range:Oe.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(n==">"){let g=E8(p);if(g&&g.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(v=gO(a.doc,g,c)))return{range:u,changes:{from:c,insert:`</${v}>`}}}}return{range:u}});return l.changes.empty?!1:(t.dispatch([s,a.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),_8=zp({String:ne.string,Number:ne.number,"True False":ne.bool,PropertyName:ne.propertyName,Null:ne.null,", :":ne.separator,"[ ]":ne.squareBracket,"{ }":ne.brace}),I8=Yo.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[_8],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),N8=zo.define({name:"json",parser:I8.configure({props:[Zp.add({Object:mo({except:/^\s*\}/}),Array:mo({except:/^\s*\]/})}),Up.add({"Object Array":XS})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function M8(){return new FS(N8)}const $8="#e5c07b",yO="#e06c75",L8="#56b6c2",B8="#ffffff",Nu="#abb2bf",Xd="#7d8799",Q8="#61afef",F8="#98c379",vO="#d19a66",R8="#c678dd",z8="#21252b",OO="#2c313a",xO="#282c34",Of="#353a42",X8="#3E4451",bO="#528bff",j8=_e.theme({"&":{color:Nu,backgroundColor:xO},".cm-content":{caretColor:bO},".cm-cursor, .cm-dropCursor":{borderLeftColor:bO},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:X8},".cm-panels":{backgroundColor:z8,color:Nu},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:xO,color:Xd,border:"none"},".cm-activeLineGutter":{backgroundColor:OO},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Of},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Of,borderBottomColor:Of},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:OO,color:Nu}}},{dark:!0}),Z8=cl.define([{tag:ne.keyword,color:R8},{tag:[ne.name,ne.deleted,ne.character,ne.propertyName,ne.macroName],color:yO},{tag:[ne.function(ne.variableName),ne.labelName],color:Q8},{tag:[ne.color,ne.constant(ne.name),ne.standard(ne.name)],color:vO},{tag:[ne.definition(ne.name),ne.separator],color:Nu},{tag:[ne.typeName,ne.className,ne.number,ne.changed,ne.annotation,ne.modifier,ne.self,ne.namespace],color:$8},{tag:[ne.operator,ne.operatorKeyword,ne.url,ne.escape,ne.regexp,ne.link,ne.special(ne.string)],color:L8},{tag:[ne.meta,ne.comment],color:Xd},{tag:ne.strong,fontWeight:"bold"},{tag:ne.emphasis,fontStyle:"italic"},{tag:ne.strikethrough,textDecoration:"line-through"},{tag:ne.link,color:Xd,textDecoration:"underline"},{tag:ne.heading,fontWeight:"bold",color:yO},{tag:[ne.atom,ne.bool,ne.special(ne.variableName)],color:vO},{tag:[ne.processingInstruction,ne.string,ne.inserted],color:F8},{tag:ne.invalid,color:B8}]),V8=[j8,HS(Z8)],go=ot({__name:"CodeEditor",props:{modelValue:{},language:{default:"typescript"},readonly:{type:Boolean,default:!1},placeholder:{default:""},minHeight:{default:"100px"}},emits:["update:modelValue"],setup(t,{emit:e}){const i=t,n=e,r=Fe(()=>{const a=[i.language==="json"?M8():k8({typescript:!0}),V8,_e.theme({"&":{backgroundColor:"var(--color-surface-base, #0f172a)",minHeight:i.minHeight},".cm-gutters":{backgroundColor:"var(--color-surface-base, #0f172a)",borderRight:"1px solid var(--color-border-default)",color:"var(--color-text-muted)"},".cm-activeLineGutter":{backgroundColor:"color-mix(in srgb, var(--color-accent) 10%, transparent)"},".cm-activeLine":{backgroundColor:"color-mix(in srgb, var(--color-accent) 5%, transparent)"},"&.cm-focused":{outline:"none"},".cm-cursor":{borderLeftColor:"var(--color-accent)"},".cm-selectionBackground":{backgroundColor:"color-mix(in srgb, var(--color-accent) 20%, transparent) !important"},".cm-content":{caretColor:"var(--color-accent)"}}),_e.lineWrapping];return i.readonly&&a.push(_e.editable.of(!1)),a});function s(a){n("update:modelValue",a)}return(a,l)=>(ye(),Ct(Se(IR),{"model-value":t.modelValue,extensions:r.value,placeholder:t.placeholder,style:hi({minHeight:t.minHeight,fontSize:"12px",borderRadius:"6px",overflow:"hidden",border:"1px solid var(--color-border-default)"}),"onUpdate:modelValue":s},null,8,["model-value","extensions","placeholder","style"]))}}),U8={class:"ai-diff"},q8={key:0,class:"diff-explanation"},W8={class:"diff-code"},Y8={class:"diff-actions"},G8=ot({__name:"AiDiffView",props:{oldCode:{},newCode:{},explanation:{}},emits:["accept","dismiss"],setup(t){const e=t,i=Fe(()=>PT(e.oldCode,e.newCode));return(n,r)=>(ye(),be("div",U8,[t.explanation?(ye(),be("div",q8,Te(t.explanation),1)):Qe("",!0),he("div",W8,[(ye(!0),be(gt,null,Jt(i.value,(s,a)=>(ye(),be("div",{key:a,class:bt(["diff-line",{added:s.added,removed:s.removed}])},Te(s.value),3))),128))]),he("div",Y8,[he("button",{class:"diff-accept",onClick:r[0]||(r[0]=s=>n.$emit("accept"))},Te(n.$t("tools.aiDiff.accept")),1),he("button",{class:"diff-dismiss",onClick:r[1]||(r[1]=s=>n.$emit("dismiss"))},Te(n.$t("tools.aiDiff.dismiss")),1)])]))}}),H8=AO(G8,[["__scopeId","data-v-01c9471b"]]),J8={class:"block-header"},K8={class:"block-badge"},e6=["value","placeholder"],t6=["disabled","title"],i6=["disabled","title"],n6={key:0,class:"thinking-bar nodrag"},r6={class:"thinking-text"},s6={key:1,class:"insights-row"},a6={key:2,class:"insights-row"},o6=["onClick"],l6={key:3,class:"insight-detail nodrag nowheel"},u6={class:"insight-desc"},c6={class:"insight-suggestion-label"},h6={key:4,class:"exec-badge-row"},f6={key:0,class:"exec-badge exec-executing"},d6={key:2,class:"exec-badge exec-failed"},p6=["disabled"],m6={key:5,class:"exec-result-panel nodrag nowheel"},g6={class:"block-section"},y6=["value","placeholder"],v6={key:6,class:"block-section nodrag nowheel"},O6=["placeholder"],x6={class:"intent-actions"},b6=["disabled"],S6={key:0,class:"intent-error"},w6={class:"block-section"},P6={class:"param-header"},T6=["value","onChange","placeholder"],C6=["value","onChange","placeholder"],k6=["onClick"],E6={key:0,class:"param-empty"},A6={class:"block-section probe-section"},D6={class:"probe-badge"},_6={key:0,class:"probe-panel nodrag nowheel"},I6={class:"probe-url-row"},N6=["placeholder"],M6=["disabled"],$6={class:"diag-row"},L6={key:0,class:"diag-tag"},B6={key:1,class:"diag-tag"},Q6={key:2,class:"diag-tag diag-openapi"},F6={key:0,class:"diag-auth"},R6={class:"config-section"},z6={class:"config-header"},X6={class:"config-label"},j6=["onUpdate:modelValue","placeholder"],Z6=["onUpdate:modelValue","placeholder"],V6=["onClick","title"],U6=["onClick"],q6={key:1,class:"config-section"},W6={class:"config-label"},Y6={key:2,class:"ep-section"},G6={class:"config-label"},H6=["placeholder"],J6={class:"ep-list"},K6=["onClick"],e7={class:"ep-path"},t7={key:0,class:"ep-summary"},i7={key:0,class:"param-empty"},n7={class:"probe-ai-row"},r7=["disabled"],s7={key:0,class:"auto-map-reasoning"},a7={class:"probe-tree"},o7={key:1,class:"probe-footer"},l7={class:"probe-count"},u7={key:4,class:"probe-error"},c7={key:5,class:"probe-raw"},h7={key:7,class:"block-section mappings-section"},f7={class:"mappings-header"},d7={key:0,class:"stale-badge",title:"Some mapped fields are missing from the function body"},p7={class:"mappings-list"},m7=["title"],g7={class:"block-section nodrag nowheel"},y7=ot({__name:"ToolFunctionNode",props:{data:{}},setup(t){const e=n1(),i=t;function n(K,ue){i.data.onUpdate?.(K,ue)}function r(K,ue,me){const Pe=i.data.parameters.map((Ve,He)=>He===K?{...Ve,[ue]:me}:{...Ve});n("parameters",Pe)}function s(){n("parameters",[...i.data.parameters,{name:"arg",type:"string"}])}function a(K){n("parameters",i.data.parameters.filter((ue,me)=>me!==K))}const l=Fe(()=>{const K=i.data.mappings;if(!K||K.length===0)return[];const ue=i.data.body;return K.filter(me=>!ue.includes(me.returnKey))}),u=Fe(()=>l.value.length>0),h=ze(!1),c=ze(!1),p=ze(e.getIntent(i.data.uid)??""),v=Fe(()=>e.drafts.get(i.data.uid)),g=Fe(()=>v.value?.loading??!1);async function b(){if(!p.value.trim()||!e.effectiveModel)return;e.setIntent(i.data.uid,p.value),e.setDraft(i.data.uid,{toolId:i.data.uid,phase:"draft",code:"",explanation:"",loading:!0,intentText:p.value});const K=await Y$({model:e.effectiveModel,toolName:i.data.name,description:i.data.description,parameters:i.data.parameters,probeResponseSample:Q.value??void 0,intent:p.value});K.error?e.setDraft(i.data.uid,{toolId:i.data.uid,phase:"draft",code:"",explanation:"",loading:!1,error:K.error,intentText:p.value}):e.setDraft(i.data.uid,{toolId:i.data.uid,phase:"draft",code:K.code,explanation:K.explanation,loading:!1,trainingPairId:K.trainingPairId,intentText:p.value})}function m(){const K=v.value;!K||!K.code||(n("body",K.code),K.trainingPairId&&qd.updateAccepted(K.trainingPairId),e.clearDraft(i.data.uid))}function x(){e.clearDraft(i.data.uid)}const O=Fe(()=>e.insights.get(i.data.uid)),P=ze(null),S=ze(!1);Ge(()=>i.data.body,()=>{e.insights.get(i.data.uid)&&(e.clearInsights(i.data.uid),P.value=null)});const w=ze(null),C=["Thinking","Cogitating","Analyzing","Flexing","Scrutinizing","Neuroticizing","Polarizing","Rasterizing","Criticizing","Parameterizing","Inspecting","Evaluating","Dissecting","Probing","Examining","Parsing","Reviewing","Synthesizing"],E=ze(0);let k=null;const A=Fe(()=>C[E.value%C.length]);function $(){E.value=0,k=setInterval(()=>{E.value++},1500)}function F(){k&&(clearInterval(k),k=null)}function I(){if(!P.value?.suggestedCode){console.warn("[Insight] No suggestedCode to apply");return}const K=P.value.suggestedCode;console.log("[Insight] Applying fix, code length:",K.length),n("body",K),P.value=null}async function B(){if(!e.effectiveModel){w.value="No AI model selected. Choose one in the Canvas AI model selector.";return}S.value=!0,w.value=null,P.value=null,$();const K=await G$({model:e.effectiveModel,toolName:i.data.name,code:i.data.body,parameters:i.data.parameters});S.value=!1,F(),K.error?w.value=K.error:e.setInsights(i.data.uid,{toolId:i.data.uid,insights:K.insights,codeHash:i.data.body})}const j=ze(!1),M=ze("");async function q(){if(!e.effectiveModel||!Q.value)return;j.value=!0,M.value="";const K=await H$({model:e.effectiveModel,toolName:i.data.name,description:i.data.description,probeResponseSample:Q.value});j.value=!1,!K.error&&K.paths.length>0&&(M.value=K.reasoning,xe.value=new Set(K.paths))}const X=ze(!1);async function Y(){if(!e.effectiveModel)return;X.value=!0;const K=e.getIntent(i.data.uid),ue=await J$({model:e.effectiveModel,toolName:i.data.name,code:i.data.body,parameters:i.data.parameters,error:i.data.lastCallError??"Unknown error",arguments:i.data.lastCallArguments??{},originalIntent:K});X.value=!1,!ue.error&&ue.fixedCode&&e.setDraft(i.data.uid,{toolId:i.data.uid,phase:"fix",code:ue.fixedCode,explanation:ue.explanation,loading:!1,trainingPairId:ue.trainingPairId})}const V=ze(!1),oe=ze("idle"),ae=ze(i.data.probeConfig?.url??""),fe=ze(i.data.probeConfig?.method??"GET"),D=ze(null),Z=ze(null),L=ze(null),se=ze(i.data.probeConfig?.headers?Object.entries(i.data.probeConfig.headers).map(([K,ue])=>({key:K,value:ue})):[]),de=ze(new Set(i.data.probeConfig?.secretHeaders??[]));function ie(K){const ue=se.value[K].key.trim();if(!ue)return;const me=new Set(de.value);me.has(ue)?me.delete(ue):me.add(ue),de.value=me}const R=ze(""),Q=ze(null),xe=ze(new Set),Re=ze(""),ke=ze(null),$e=Fe(()=>{if(!L.value)return[];const K=Re.value.toLowerCase();return K?L.value.endpoints.filter(ue=>ue.path.toLowerCase().includes(K)||ue.summary?.toLowerCase().includes(K)||ue.operationId?.toLowerCase().includes(K)):L.value.endpoints});function te(K){return K>=200&&K<300?"var(--color-success)":K>=300&&K<400?"var(--color-warning, #f9e2af)":"var(--color-error)"}function H(K){switch(K){case"GET":return"var(--color-accent)";case"POST":return"var(--color-success)";case"PUT":return"var(--color-warning, #f9e2af)";case"DELETE":return"var(--color-error)";case"PATCH":return"#cba6f7";default:return"var(--color-text-muted)"}}async function re(){const K=ae.value.trim();if(!K)return;oe.value="discovering",D.value=null,Z.value=null,L.value=null,Q.value=null,xe.value=new Set,ke.value=null;const ue={};for(const Ve of se.value)Ve.key.trim()&&(ue[Ve.key.trim()]=Ve.value);const[me,Pe]=await Promise.allSettled([s3(K,{method:fe.value,headers:Object.keys(ue).length>0?ue:void 0,body:(fe.value==="POST"||fe.value==="PUT")&&R.value||void 0}),l3(K)]);me.status==="fulfilled"&&(D.value=me.value,me.value.data&&(Q.value=me.value.data),me.value.authHint&&se.value.length===0&&(me.value.authHint.type==="bearer"?se.value=[{key:"Authorization",value:"Bearer "}]:me.value.authHint.type==="apikey"?se.value=[{key:"X-API-Key",value:""}]:me.value.authHint.type==="basic"&&(se.value=[{key:"Authorization",value:"Basic "}]))),Pe.status==="fulfilled"&&Pe.value.spec&&(Z.value=Pe.value,L.value=t3(Pe.value.spec)),oe.value="diagnosed"}function G(K){ke.value=K;const ue=L.value?.info.baseUrl??"",me=ue?`${ue.replace(/\/$/,"")}${K.path}`:K.path;ae.value=me,fe.value=K.method;const Pe=K.operationId??K.path.replace(/[^a-zA-Z0-9]+/g,"_").replace(/^_|_$/g,"");n("name",Pe),(K.summary||K.description)&&n("description",K.summary??K.description??"");const Ve=K.parameters.filter(He=>He.in==="query"||He.in==="path").map(He=>({name:He.name,type:He.type}));Ve.length>0&&n("parameters",Ve)}function J(){se.value=[...se.value,{key:"",value:""}]}function le(K){se.value=se.value.filter((ue,me)=>me!==K)}function ve(K){const ue=new Set(xe.value);ue.has(K)?ue.delete(K):ue.add(K),xe.value=ue}function we(){const K=Array.from(xe.value);if(K.length===0)return;const ue={};for(const Je of se.value)Je.key.trim()&&(ue[Je.key.trim()]=Je.value);const me=Array.from(de.value),{body:Pe,addedParams:Ve}=yT(ae.value.trim(),K,{method:fe.value!=="GET"?fe.value:void 0,headers:Object.keys(ue).length>0?ue:void 0,body:(fe.value==="POST"||fe.value==="PUT")&&R.value||void 0,secretHeaders:me.length>0?me:void 0});n("body",Pe);const He=vT(K);if(n("mappings",He),Q.value){const Je=OT(He,Q.value);n("returnSchema",Je)}const Tt={url:ae.value.trim(),method:fe.value,headers:ue,...me.length>0?{secretHeaders:me}:{}};if(n("probeConfig",Tt),Ve.length>0){const Je=i.data.parameters.map(qt=>qt.name),ei=Ve.filter(qt=>!Je.includes(qt.name));ei.length>0&&n("parameters",[...i.data.parameters,...ei])}oe.value="picked"}return(K,ue)=>(ye(),be("div",{class:bt(["tool-block",{executing:t.data.executionStatus==="executing",completed:t.data.executionStatus==="completed",failed:t.data.executionStatus==="failed"}])},[ht(Se(Es),{type:"target",position:Se(Xe).Top},null,8,["position"]),he("div",J8,[he("span",K8,Te(K.$t("tools.node.badge")),1),he("input",{class:"block-name-input",value:t.data.name,onChange:ue[0]||(ue[0]=me=>n("name",me.target.value)),placeholder:K.$t("tools.node.functionNamePlaceholder")},null,40,e6),he("button",{class:bt(["ai-header-btn",{active:c.value}]),disabled:g.value,title:K.$t("tools.node.draftWithAi"),onClick:ue[1]||(ue[1]=Yi(me=>c.value=!c.value,["stop"]))},Te(g.value?"...":"✨"),11,t6),he("button",{class:"ai-header-btn ai-analyze",disabled:S.value||!t.data.body.trim(),title:K.$t("tools.node.aiInsights"),onClick:Yi(B,["stop"])},Te(S.value?"...":"🔍"),9,i6)]),S.value?(ye(),be("div",n6,[ue[14]||(ue[14]=he("span",{class:"thinking-dot"},null,-1)),he("span",r6,Te(A.value)+"...",1)])):Qe("",!0),w.value?(ye(),be("div",s6,[he("span",{class:"insight-badge error",onClick:ue[2]||(ue[2]=Yi(me=>w.value=null,["stop"]))},Te(w.value),1)])):Qe("",!0),O.value?.insights.length?(ye(),be("div",a6,[(ye(!0),be(gt,null,Jt(O.value.insights,(me,Pe)=>(ye(),be("span",{key:Pe,class:bt(["insight-badge",me.severity]),onClick:Yi(Ve=>P.value=P.value===me?null:me,["stop"])},Te(me.title),11,o6))),128))])):Qe("",!0),P.value?(ye(),be("div",l6,[he("p",u6,Te(P.value.description),1),P.value.suggestedCode?(ye(),be(gt,{key:0},[he("p",c6,Te(K.$t("tools.node.insightSuggestionLabel")),1),ht(go,{"model-value":P.value.suggestedCode,language:"typescript",readonly:!0,"min-height":"60px"},null,8,["model-value"])],64)):Qe("",!0),he("div",{class:"insight-actions",onMousedown:ue[4]||(ue[4]=Yi(()=>{},["stop"]))},[P.value.suggestedCode?(ye(),be("button",{key:0,class:"insight-apply",onClick:Yi(I,["stop","prevent"])},Te(K.$t("tools.node.applyFix")),1)):Qe("",!0),he("button",{class:"insight-close",onClick:ue[3]||(ue[3]=Yi(me=>P.value=null,["stop"]))},"× "+Te(K.$t("tools.node.closeInsight")),1)],32)])):Qe("",!0),t.data.executionStatus&&t.data.executionStatus!=="idle"?(ye(),be("div",h6,[t.data.executionStatus==="executing"?(ye(),be("span",f6,Te(K.$t("tools.node.running")),1)):t.data.executionStatus==="completed"?(ye(),be("button",{key:1,class:"exec-badge exec-completed",onClick:ue[5]||(ue[5]=Yi(me=>h.value=!h.value,["stop"]))}," ✓ "+Te(t.data.lastDurationMs!=null?`${t.data.lastDurationMs}ms`:K.$t("tools.node.done")),1)):t.data.executionStatus==="failed"?(ye(),be("span",d6," ✗ "+Te(K.$t("tools.node.failed")),1)):Qe("",!0),t.data.executionStatus==="failed"?(ye(),be("button",{key:3,class:"ai-fix-btn",disabled:X.value,onClick:Yi(Y,["stop"])},Te(X.value?"...":K.$t("tools.node.aiFix")),9,p6)):Qe("",!0)])):Qe("",!0),h.value&&t.data.lastResult!==void 0?(ye(),be("div",m6,[ht(rg,{label:"result",value:t.data.lastResult,path:"","selected-paths":new Set,depth:0,onTogglePath:()=>{}},null,8,["value","selected-paths"])])):Qe("",!0),he("div",g6,[he("label",null,Te(K.$t("tools.node.description")),1),he("input",{class:"block-input",value:t.data.description,onChange:ue[6]||(ue[6]=me=>n("description",me.target.value)),placeholder:K.$t("tools.node.descriptionPlaceholder")},null,40,y6)]),c.value?(ye(),be("div",v6,[he("label",null,Te(K.$t("tools.node.intent")),1),Vn(he("textarea",{"onUpdate:modelValue":ue[7]||(ue[7]=me=>p.value=me),class:"intent-textarea",placeholder:K.$t("tools.node.intentPlaceholder"),rows:"2"},null,8,O6),[[ia,p.value]]),he("div",x6,[he("button",{class:"intent-generate-btn",disabled:g.value||!p.value.trim(),onClick:b},Te(g.value?K.$t("tools.node.generating"):K.$t("tools.node.generate")),9,b6)]),v.value?.error?(ye(),be("div",S6,Te(v.value.error),1)):Qe("",!0)])):Qe("",!0),he("div",w6,[he("div",P6,[he("label",null,Te(K.$t("tools.node.parameters")),1),he("button",{class:"param-add-btn",onClick:s},Te(K.$t("tools.node.addParam")),1)]),(ye(!0),be(gt,null,Jt(t.data.parameters,(me,Pe)=>(ye(),be("div",{key:Pe,class:"param-row"},[he("input",{class:"param-name",value:me.name,onChange:Ve=>r(Pe,"name",Ve.target.value),placeholder:K.$t("tools.node.paramNamePlaceholder")},null,40,T6),he("input",{class:"param-type",value:me.type,onChange:Ve=>r(Pe,"type",Ve.target.value),placeholder:K.$t("tools.node.paramTypePlaceholder")},null,40,C6),he("button",{class:"param-remove-btn",onClick:Ve=>a(Pe)},"×",8,k6)]))),128)),t.data.parameters.length===0?(ye(),be("div",E6,Te(K.$t("tools.node.noParameters")),1)):Qe("",!0)]),he("div",A6,[he("div",{class:"probe-toggle",onClick:ue[8]||(ue[8]=me=>V.value=!V.value)},[he("span",{class:bt(["toggle-arrow",{open:V.value}])},"▶",2),he("label",null,Te(K.$t("tools.node.probeAndPick")),1),he("span",D6,Te(K.$t("tools.node.apiBadge")),1)]),V.value?(ye(),be("div",_6,[he("div",I6,[Vn(he("select",{"onUpdate:modelValue":ue[9]||(ue[9]=me=>fe.value=me),class:"method-select"},[...ue[15]||(ue[15]=[he("option",null,"GET",-1),he("option",null,"POST",-1),he("option",null,"PUT",-1),he("option",null,"DELETE",-1)])],512),[[hT,fe.value]]),Vn(he("input",{"onUpdate:modelValue":ue[10]||(ue[10]=me=>ae.value=me),class:"block-input probe-url",placeholder:K.$t("tools.node.urlPlaceholder"),onKeydown:fT(re,["enter"])},null,40,N6),[[ia,ae.value]]),he("button",{class:"probe-btn",disabled:oe.value==="discovering"||!ae.value.trim(),onClick:re},Te(oe.value==="discovering"?"...":K.$t("tools.node.probe")),9,M6)]),D.value&&oe.value!=="idle"?(ye(),be(gt,{key:0},[he("div",$6,[he("span",{class:"diag-status",style:hi({background:te(D.value.status)})},Te(D.value.status),5),D.value.headers["content-type"]?(ye(),be("span",L6,Te(D.value.headers["content-type"].split(";")[0]),1)):Qe("",!0),D.value.headers.server?(ye(),be("span",B6,Te(D.value.headers.server),1)):Qe("",!0),L.value?(ye(),be("span",Q6," OpenAPI · "+Te(L.value.endpoints.length)+" endpoints ",1)):Qe("",!0)]),D.value.authHint?(ye(),be("div",F6,[ue[16]||(ue[16]=he("span",{class:"diag-auth-icon"},"🔒",-1)),he("span",null,Te(D.value.authHint.message),1)])):Qe("",!0)],64)):Qe("",!0),he("div",R6,[he("div",z6,[he("span",X6,Te(K.$t("tools.node.headers")),1),he("button",{class:"param-add-btn",onClick:J},Te(K.$t("tools.node.addHeader")),1)]),(ye(!0),be(gt,null,Jt(se.value,(me,Pe)=>(ye(),be("div",{key:Pe,class:"param-row"},[Vn(he("input",{class:"param-name","onUpdate:modelValue":Ve=>se.value[Pe].key=Ve,placeholder:K.$t("tools.node.headerNamePlaceholder")},null,8,j6),[[ia,se.value[Pe].key]]),Vn(he("input",{class:bt(["param-type",{"secret-masked":de.value.has(se.value[Pe].key.trim())}]),"onUpdate:modelValue":Ve=>se.value[Pe].value=Ve,placeholder:K.$t("tools.node.headerValuePlaceholder")},null,10,Z6),[[ia,se.value[Pe].value]]),he("button",{class:bt(["secret-toggle-btn",{active:de.value.has(se.value[Pe].key.trim())}]),onClick:Ve=>ie(Pe),title:K.$t("tools.node.markAsSecret")}," 🔒 ",10,V6),he("button",{class:"param-remove-btn",onClick:Ve=>le(Pe)},"×",8,U6)]))),128))]),fe.value==="POST"||fe.value==="PUT"?(ye(),be("div",q6,[he("span",W6,Te(K.$t("tools.node.requestBody")),1),ht(go,{modelValue:R.value,"onUpdate:modelValue":ue[11]||(ue[11]=me=>R.value=me),language:"json","min-height":"60px",placeholder:'{"key": "value"}'},null,8,["modelValue"])])):Qe("",!0),L.value&&L.value.endpoints.length>0?(ye(),be("div",Y6,[he("span",G6,Te(K.$t("tools.node.endpoints")),1),Vn(he("input",{"onUpdate:modelValue":ue[12]||(ue[12]=me=>Re.value=me),class:"block-input ep-search",placeholder:K.$t("tools.node.searchEndpoints")},null,8,H6),[[ia,Re.value]]),he("div",J6,[(ye(!0),be(gt,null,Jt($e.value,me=>(ye(),be("div",{key:me.method+me.path,class:bt(["ep-row",{selected:ke.value===me}]),onClick:Pe=>G(me)},[he("span",{class:"ep-method",style:hi({background:H(me.method)})},Te(me.method),5),he("span",e7,Te(me.path),1),me.summary?(ye(),be("span",t7,Te(me.summary),1)):Qe("",!0)],10,K6))),128)),$e.value.length===0?(ye(),be("div",i7,Te(K.$t("tools.node.noMatchingEndpoints")),1)):Qe("",!0)])])):Qe("",!0),Q.value&&D.value&&D.value.ok?(ye(),be(gt,{key:3},[he("div",n7,[he("button",{class:"ai-suggest-btn",disabled:j.value,onClick:q},Te(j.value?K.$t("tools.node.thinking"):K.$t("tools.node.aiSuggest")),9,r7)]),M.value?(ye(),be("div",s7,Te(M.value),1)):Qe("",!0),he("div",a7,[ht(rg,{label:"response",value:Q.value,path:"","selected-paths":xe.value,depth:0,onTogglePath:ve},null,8,["value","selected-paths"])]),xe.value.size>0?(ye(),be("div",o7,[he("span",l7,Te(xe.value.size)+" "+Te(xe.value.size!==1?K.$t("tools.node.fields"):K.$t("tools.node.field")),1),he("button",{class:"probe-apply-btn",onClick:we},Te(K.$t("tools.node.apply")),1)])):Qe("",!0)],64)):Qe("",!0),D.value&&D.value.error&&!D.value.data?(ye(),be("div",u7,Te(D.value.error),1)):Qe("",!0),D.value?.rawText?(ye(),be("pre",c7,Te(D.value.rawText),1)):Qe("",!0)])):Qe("",!0)]),t.data.mappings&&t.data.mappings.length>0?(ye(),be("div",h7,[he("div",f7,[he("label",null,Te(K.$t("tools.node.mappings")),1),u.value?(ye(),be("span",d7,Te(K.$t("tools.node.outOfSync")),1)):Qe("",!0)]),he("div",p7,[(ye(!0),be(gt,null,Jt(t.data.mappings,me=>(ye(),be("span",{key:me.jsonPath,class:bt(["mapping-tag",{stale:l.value.some(Pe=>Pe.jsonPath===me.jsonPath)}]),title:me.jsonPath},Te(me.returnKey),11,m7))),128))])])):Qe("",!0),he("div",g7,[he("label",null,Te(K.$t("tools.node.bodyLabel")),1),v.value&&!v.value.loading&&v.value.code?(ye(),Ct(H8,{key:0,"old-code":t.data.body,"new-code":v.value.code,explanation:v.value.explanation,onAccept:m,onDismiss:x},null,8,["old-code","new-code","explanation"])):(ye(),Ct(go,{key:1,"model-value":t.data.body,language:"typescript","min-height":"100px",placeholder:K.$t("tools.node.bodyPlaceholder"),"onUpdate:modelValue":ue[13]||(ue[13]=me=>n("body",me))},null,8,["model-value","placeholder"]))]),ht(Se(Es),{type:"source",position:Se(Xe).Bottom},null,8,["position"])],2))}}),v7=AO(y7,[["__scopeId","data-v-655b6640"]]),O7={class:"flex h-full w-full relative"},x7={key:0,class:"w-[440px] flex flex-col border-e border-border-default bg-surface-base shrink-0"},b7={class:"p-3 border-b border-border-default flex items-center justify-between"},S7={class:"flex items-center gap-2"},w7={class:"text-sm font-semibold text-text-primary"},P7={class:"flex border-b border-border-default"},T7={class:"flex-1 flex flex-col p-3 gap-2 min-h-0 overflow-auto"},C7={class:"flex-1 flex flex-col p-3 gap-2 min-h-0"},k7={class:"flex items-center justify-between"},E7={class:"text-xs text-text-muted"},A7={class:"flex-1 overflow-auto"},D7={key:0,class:"p-3 border-t border-border-default"},_7={class:"text-xs text-warning uppercase tracking-wider"},I7={class:"mt-1 text-xs text-warning/80 list-disc ps-4 space-y-0.5"},N7={class:"p-3 border-t border-border-default text-xs text-text-muted"},M7={class:"flex-1 relative min-h-0 overflow-hidden"},$7={key:0,class:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none"},L7={class:"text-center pointer-events-auto"},B7={class:"text-text-muted text-sm mb-4"},Q7={class:"flex items-center gap-3"},F7={class:"absolute top-3 right-3 z-10 flex items-center gap-2"},R7=["value"],z7={value:""},X7=["value"],j7={class:"relative"},Z7={key:1,class:"absolute end-0 top-full z-20 mt-1 w-56 rounded-lg border border-border-default bg-surface-raised shadow-lg py-1"},V7=["title"],U7={key:1,class:"absolute inset-0 z-50 flex items-center justify-center bg-black/40"},q7={class:"rounded-xl bg-surface-raised border border-border-default p-6 shadow-2xl max-w-xs text-center"},W7={class:"text-sm text-text-primary mb-1 font-semibold"},Y7={class:"text-xs text-text-muted mb-4"},G7={class:"flex items-center justify-center gap-3"},H7={key:1,class:"w-[280px] flex flex-col border-s border-border-default bg-surface-base shrink-0"},J7={class:"p-3 border-b border-border-default flex items-center justify-between"},K7={class:"text-sm font-semibold text-text-primary"},e9={class:"flex-1 overflow-y-auto p-2 space-y-1"},t9=["title","onClick"],i9={class:"min-w-0 flex-1"},n9={class:"truncate text-[10px] text-text-muted"},r9=["title","onClick"],s9=["title","onClick"],a9={key:0,class:"px-3 py-4 text-xs text-text-muted text-center"},o9={class:"p-3 border-t border-border-default text-xs text-text-muted"},l9=ot({__name:"ToolCanvasView",emits:["add-template"],setup(t,{emit:e}){const i=e,n={"tool-function":io(v7)},r=Ud(),s=n1(),a=EO(),{flowNodes:l,flowEdges:u,combinedCode:h,codeWarnings:c,codeSyncStatus:p,schemas:v,onNodeDragStop:g,onNodesDelete:b,onCodeEdit:m,addNewTool:x}=j$(),{fitView:O}=vt();fn(()=>{a.models.length===0&&a.fetchModels()});const P=ze(!1),S=ze("code");Ge(P,()=>{l.value.length>0&&setTimeout(()=>{O({padding:.3,duration:300})},50)});const w=ze(!1);Ge(w,()=>{l.value.length>0&&setTimeout(()=>{O({padding:.3,duration:300})},50)});function C(X){r.removeTool(X)}const E=ze(!1);function k(){r.clearAll(),E.value=!1}const A=Fe(()=>JSON.stringify(v.value,null,2));function $(X){g({node:X.node})}function F(X){for(const Y of X)Y.type==="remove"&&b([{id:Y.id}])}function I(){const X=x();vi(()=>{O({nodes:[X],padding:.5,duration:300})})}async function B(){try{await navigator.clipboard.writeText(A.value)}catch{}}const j=ze(!1);function M(){const X=r.allTools.map(Y=>Y.definition);ng(X,"llmxray-tools.json"),j.value=!1}function q(X){const Y=r.allTools.find(V=>V.id===X);Y&&ng(Y.definition,`tool-${Y.definition.function.name}.json`)}return(X,Y)=>(ye(),be("div",O7,[P.value?(ye(),be("div",x7,[he("div",b7,[he("div",S7,[he("span",w7,Te(X.$t("tools.canvas.codePanel")),1),he("span",{class:bt(["sync-dot",Se(p)])},null,2)]),he("button",{class:"text-xs text-text-muted hover:text-text-primary transition-colors bg-transparent border-none cursor-pointer",onClick:Y[0]||(Y[0]=V=>P.value=!1)},Te(X.$t("tools.canvas.close")),1)]),he("div",P7,[he("button",{onClick:Y[1]||(Y[1]=V=>S.value="code"),class:bt(["flex-1 px-3 py-2 text-xs uppercase tracking-wider border-none cursor-pointer transition-colors",S.value==="code"?"bg-surface-raised text-accent font-bold":"bg-transparent text-text-muted"])},Te(X.$t("tools.canvas.source")),3),he("button",{onClick:Y[2]||(Y[2]=V=>S.value="schema"),class:bt(["flex-1 px-3 py-2 text-xs uppercase tracking-wider border-none cursor-pointer transition-colors",S.value==="schema"?"bg-surface-raised text-success font-bold":"bg-transparent text-text-muted"])},Te(X.$t("tools.canvas.schema")),3)]),Vn(he("div",T7,[ht(go,{"model-value":Se(h),language:"typescript",placeholder:"Combined tool source...","min-height":"200px","onUpdate:modelValue":Se(m)},null,8,["model-value","onUpdate:modelValue"])],512),[[ig,S.value==="code"]]),Vn(he("div",C7,[he("div",k7,[he("span",E7,Te(X.$t("tools.canvas.schemaManifest")),1),he("button",{onClick:B,class:"px-2 py-1 text-xs rounded bg-surface-overlay text-text-secondary hover:bg-surface-raised transition-colors cursor-pointer border-none"},Te(X.$t("tools.canvas.copy")),1)]),he("div",A7,[ht(go,{"model-value":A.value,language:"json",readonly:!0,"min-height":"200px"},null,8,["model-value"])])],512),[[ig,S.value==="schema"]]),Se(c).length>0?(ye(),be("div",D7,[he("label",_7,Te(X.$t("tools.canvas.warnings")),1),he("ul",I7,[(ye(!0),be(gt,null,Jt(Se(c),(V,oe)=>(ye(),be("li",{key:oe},Te(V),1))),128))])])):Qe("",!0),he("div",N7,Te(Se(l).length)+" tool"+Te(Se(l).length!==1?"s":"")+" · "+Te(Se(v).length)+" schema"+Te(Se(v).length!==1?"s":""),1)])):Qe("",!0),he("div",M7,[ht(Se(_D),{nodes:Se(l),edges:Se(u),"node-types":n,"default-viewport":{x:40,y:40,zoom:1},"min-zoom":.3,"max-zoom":2,"fit-view-on-init":Se(l).length>0,"fit-view-on-init-options":{padding:.3,minZoom:.6,maxZoom:1.2},class:"canvas-flow",onNodeDragStop:$,onNodesChange:F},{default:Ki(()=>[ht(Se(FD),{gap:24,size:1,"pattern-color":"var(--color-border-default)"}),ht(Se(g_)),ht(Se(JM))]),_:1},8,["nodes","edges","fit-view-on-init"]),Se(l).length===0?(ye(),be("div",$7,[he("div",L7,[he("div",B7,Te(X.$t("tools.canvas.emptyState")),1),he("div",Q7,[he("button",{onClick:I,class:"px-4 py-2 rounded-lg bg-accent text-surface-base font-semibold text-sm hover:opacity-90 transition-opacity cursor-pointer border-none"},Te(X.$t("tools.canvas.newTool")),1),he("button",{onClick:Y[3]||(Y[3]=V=>i("add-template")),class:"px-4 py-2 rounded-lg border border-dashed border-border-default text-text-muted text-sm font-medium hover:border-accent hover:text-text-primary transition-colors cursor-pointer bg-transparent"},Te(X.$t("tools.canvas.fromTemplate")),1)])])])):Qe("",!0),he("div",F7,[Se(a).chatModelNames.length>0?(ye(),be("select",{key:0,value:Se(s).canvasAiModel??"",onChange:Y[4]||(Y[4]=V=>Se(s).setCanvasAiModel(V.target.value||null)),class:"canvas-ai-model-select px-2 py-1.5 rounded-lg bg-surface-overlay/90 text-text-secondary text-xs border border-border-default shadow-lg cursor-pointer"},[he("option",z7,"AI: "+Te(Se(a).chatModelNames[0]??"none"),1),(ye(!0),be(gt,null,Jt(Se(a).chatModelNames,V=>(ye(),be("option",{key:V,value:V}," AI: "+Te(V)+" "+Te(Se(a).capabilityIcons(V)),9,X7))),128))],40,R7)):Qe("",!0),he("div",j7,[he("button",{class:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-surface-overlay/90 text-text-secondary text-xs font-medium hover:bg-surface-overlay transition-colors cursor-pointer border border-border-default shadow-lg",onClick:Y[5]||(Y[5]=V=>j.value=!j.value)},[ht(Se(sg),{class:"h-3.5 w-3.5"}),CO(" "+Te(X.$t("tools.canvas.export")),1)]),j.value?(ye(),be("div",{key:0,class:"fixed inset-0 z-10",onClick:Y[6]||(Y[6]=V=>j.value=!1)})):Qe("",!0),j.value?(ye(),be("div",Z7,[he("button",{class:"w-full px-3 py-2 text-start text-xs text-text-secondary hover:bg-surface-overlay",onClick:Y[7]||(Y[7]=V=>{Se(K$)(),j.value=!1})},Te(X.$t("tools.canvas.exportTitle")),1),he("button",{class:"w-full px-3 py-2 text-start text-xs text-text-secondary hover:bg-surface-overlay",onClick:M},Te(X.$t("tools.canvas.exportAllJson")),1)])):Qe("",!0)]),P.value?Qe("",!0):(ye(),be("button",{key:1,onClick:Y[8]||(Y[8]=V=>P.value=!0),class:"px-3 py-1.5 rounded-lg bg-surface-overlay/90 text-text-secondary text-xs font-medium hover:bg-surface-overlay transition-colors cursor-pointer border border-border-default shadow-lg"},Te(X.$t("tools.canvas.codePanel")),1)),he("button",{onClick:Y[9]||(Y[9]=V=>w.value=!w.value),class:bt(["px-3 py-1.5 rounded-lg bg-surface-overlay/90 text-xs font-medium hover:bg-surface-overlay transition-colors cursor-pointer border border-border-default shadow-lg",w.value?"text-accent":"text-text-secondary"])},Te(X.$t("tools.canvas.toolLibrary")),3),Se(l).length>0?(ye(),be("button",{key:2,onClick:Y[10]||(Y[10]=V=>E.value=!0),class:"px-3 py-1.5 rounded-lg bg-surface-overlay/90 text-text-secondary text-xs font-medium hover:bg-surface-overlay hover:text-error transition-colors cursor-pointer border border-border-default shadow-lg",title:X.$t("tools.canvas.clearAllTitle")},Te(X.$t("tools.canvas.clearAll")),9,V7)):Qe("",!0),he("button",{onClick:Y[11]||(Y[11]=V=>i("add-template")),class:"px-3 py-1.5 rounded-lg bg-surface-overlay/90 text-text-secondary text-xs font-medium hover:bg-surface-overlay transition-colors cursor-pointer border border-dashed border-border-default shadow-lg"},Te(X.$t("tools.canvas.fromTemplate")),1),Se(l).length>0?(ye(),be("button",{key:3,onClick:I,class:"px-3 py-1.5 rounded-lg bg-accent/90 text-surface-base font-semibold text-xs hover:bg-accent transition-colors cursor-pointer border-none shadow-lg"},Te(X.$t("tools.canvas.newTool")),1)):Qe("",!0)]),E.value?(ye(),be("div",U7,[he("div",q7,[he("p",W7,Te(X.$t("tools.canvas.clearAllConfirm")),1),he("p",Y7,Te(X.$t("tools.canvas.clearAllWarning",{count:Se(l).length})),1),he("div",G7,[he("button",{onClick:Y[12]||(Y[12]=V=>E.value=!1),class:"px-4 py-1.5 rounded-lg text-xs text-text-secondary bg-surface-overlay hover:bg-surface-raised transition-colors cursor-pointer border border-border-default"},Te(X.$t("tools.canvas.cancel")),1),he("button",{onClick:k,class:"px-4 py-1.5 rounded-lg text-xs text-white bg-error hover:opacity-90 transition-opacity cursor-pointer border-none"},Te(X.$t("tools.canvas.deleteAll")),1)])])])):Qe("",!0)]),w.value?(ye(),be("div",H7,[he("div",J7,[he("span",K7,Te(X.$t("tools.canvas.toolLibrary")),1),he("button",{class:"text-xs text-text-muted hover:text-text-primary transition-colors bg-transparent border-none cursor-pointer",onClick:Y[13]||(Y[13]=V=>w.value=!1)},Te(X.$t("tools.canvas.close")),1)]),he("div",e9,[(ye(!0),be(gt,null,Jt(Se(r).allTools,V=>(ye(),be("div",{key:V.id,class:"flex items-center gap-2 rounded-lg px-3 py-2 text-xs hover:bg-surface-overlay transition-colors"},[he("button",{class:bt(["h-4 w-7 shrink-0 rounded-full transition-colors",V.enabled?"bg-accent":"bg-surface-overlay"]),title:V.enabled?X.$t("tools.canvas.disableForChat"):X.$t("tools.canvas.enableForChat"),onClick:oe=>Se(r).toggleEnabled(V.id)},[he("span",{class:bt(["block h-3 w-3 rounded-full bg-white transition-transform",V.enabled?"translate-x-3.5":"translate-x-0.5"])},null,2)],10,t9),he("div",i9,[he("span",{class:bt(["font-mono block",V.enabled?"text-text-primary":"text-text-muted"])},Te(V.definition.function.name),3),he("p",n9,Te(V.definition.function.description),1)]),he("button",{class:"shrink-0 text-text-muted hover:text-accent transition-colors bg-transparent border-none cursor-pointer",title:X.$t("tools.canvas.exportToolJson"),onClick:oe=>q(V.id)},[ht(Se(sg),{class:"h-3.5 w-3.5"})],8,r9),he("button",{class:"shrink-0 text-text-muted hover:text-error transition-colors bg-transparent border-none cursor-pointer",title:X.$t("tools.canvas.deleteToolTitle"),onClick:oe=>C(V.id)},[ht(Se(bT),{class:"h-3.5 w-3.5"})],8,s9)]))),128)),Se(r).allTools.length===0?(ye(),be("p",a9,Te(X.$t("tools.canvas.noToolsYet")),1)):Qe("",!0)]),he("div",o9,Te(Se(r).enabledTools.length)+"/"+Te(Se(r).allTools.length)+" "+Te(X.$t("tools.canvas.enabledForChat")),1)])):Qe("",!0)]))}}),u9={class:"flex h-full overflow-hidden flex-col"},c9={class:"bg-surface-raised rounded-xl border border-border-default shadow-xl w-[480px] max-h-[70vh] overflow-hidden"},h9={class:"p-4 border-b border-border-default"},f9={class:"text-sm font-medium text-text-primary"},d9={class:"text-[10px] text-text-muted mt-0.5"},p9={class:"p-3 space-y-4 overflow-y-auto max-h-[50vh]"},m9={class:"text-[10px] font-semibold text-text-muted uppercase tracking-wider mb-2 px-1"},g9={class:"space-y-1.5"},y9=["onClick"],v9={class:"flex items-center justify-between"},O9={class:"text-xs font-medium text-text-primary"},x9={class:"text-[10px] text-text-muted mt-1"},b9={class:"p-3 border-t border-border-default"},R9=ot({__name:"ToolWorkshopPage",setup(t){const e=Ud(),{t:i}=dT(),n=ze(!1),r=[{name:"Current Time",description:"Returns the current date and time",category:"utility",definition:{type:"function",function:{name:"get_current_time",description:"Get the current date and time in ISO format",parameters:{type:"object",properties:{},required:[]}}},code:"return new Date().toISOString()"},{name:"Web Fetch",description:"Fetch readable text or JSON from a URL",category:"api",definition:{type:"function",function:{name:"fetch_url",description:"Fetch the content of a web page or API endpoint. Returns extracted text for HTML pages, or raw JSON for API responses.",parameters:{type:"object",properties:{url:{type:"string",description:"The URL to fetch"}},required:["url"]}}},code:`const res = await fetch(args.url)
|
|
216
216
|
const contentType = res.headers.get('content-type') || ''
|
|
217
217
|
if (contentType.includes('application/json')) {
|
|
218
218
|
return await res.json()
|
|
@@ -373,4 +373,4 @@ const res = await fetch('https://gmail.googleapis.com/gmail/v1/users/me/messages
|
|
|
373
373
|
headers: { Authorization: 'Bearer ' + token },
|
|
374
374
|
})
|
|
375
375
|
if (!res.ok) throw new Error('Failed to trash email: ' + res.status)
|
|
376
|
-
return { success: true, trashed_message_id: args.message_id }`}],s=["utility","api","data","google","custom"],a=Fe(()=>{const u=[],h=new Map;for(const c of r){const p=c.category;h.has(p)||h.set(p,[]),h.get(p).push(c)}for(const c of s){const p=h.get(c);p&&p.length>0&&u.push({category:c,label:i(`tools.templates.categories.${c}`),items:p})}return u});function l(u){const h=e.addTool({definition:structuredClone(u.definition),implementation:{mode:"code",blocks:[],code:u.code},category:u.category});e.selectTool(h),n.value=!1}return(u,h)=>(ye(),be("div",u9,[ht(l9,{class:"flex-1",onAddTemplate:h[0]||(h[0]=c=>n.value=!0)}),(ye(),Ct(pT,{to:"body"},[n.value?(ye(),be("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:h[2]||(h[2]=Yi(c=>n.value=!1,["self"]))},[he("div",c9,[he("div",h9,[he("h3",f9,Te(u.$t("tools.templates.title")),1),he("p",d9,Te(u.$t("tools.templates.subtitle")),1)]),he("div",p9,[(ye(!0),be(gt,null,Jt(a.value,c=>(ye(),be("div",{key:c.category},[he("h4",m9,Te(c.label),1),he("div",g9,[(ye(!0),be(gt,null,Jt(c.items,p=>(ye(),be("button",{key:p.name,class:"w-full text-left rounded-lg border border-border-default hover:border-accent/50 p-3 transition-colors",onClick:v=>l(p)},[he("div",v9,[he("span",O9,Te(p.name),1)]),he("p",x9,Te(p.description),1)],8,y9))),128))])]))),128))]),he("div",b9,[he("button",{class:"w-full rounded-lg border border-border-default px-3 py-1.5 text-xs text-text-muted hover:text-text-primary transition-colors",onClick:h[1]||(h[1]=c=>n.value=!1)},Te(u.$t("common.actions.cancel")),1)])])])):Qe("",!0)]))]))}});export{
|
|
376
|
+
return { success: true, trashed_message_id: args.message_id }`}],s=["utility","api","data","google","custom"],a=Fe(()=>{const u=[],h=new Map;for(const c of r){const p=c.category;h.has(p)||h.set(p,[]),h.get(p).push(c)}for(const c of s){const p=h.get(c);p&&p.length>0&&u.push({category:c,label:i(`tools.templates.categories.${c}`),items:p})}return u});function l(u){const h=e.addTool({definition:structuredClone(u.definition),implementation:{mode:"code",blocks:[],code:u.code},category:u.category});e.selectTool(h),n.value=!1}return(u,h)=>(ye(),be("div",u9,[ht(l9,{class:"flex-1",onAddTemplate:h[0]||(h[0]=c=>n.value=!0)}),(ye(),Ct(pT,{to:"body"},[n.value?(ye(),be("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:h[2]||(h[2]=Yi(c=>n.value=!1,["self"]))},[he("div",c9,[he("div",h9,[he("h3",f9,Te(u.$t("tools.templates.title")),1),he("p",d9,Te(u.$t("tools.templates.subtitle")),1)]),he("div",p9,[(ye(!0),be(gt,null,Jt(a.value,c=>(ye(),be("div",{key:c.category},[he("h4",m9,Te(c.label),1),he("div",g9,[(ye(!0),be(gt,null,Jt(c.items,p=>(ye(),be("button",{key:p.name,class:"w-full text-left rounded-lg border border-border-default hover:border-accent/50 p-3 transition-colors",onClick:v=>l(p)},[he("div",v9,[he("span",O9,Te(p.name),1)]),he("p",x9,Te(p.description),1)],8,y9))),128))])]))),128))]),he("div",b9,[he("button",{class:"w-full rounded-lg border border-border-default px-3 py-1.5 text-xs text-text-muted hover:text-text-primary transition-colors",onClick:h[1]||(h[1]=c=>n.value=!1)},Te(u.$t("common.actions.cancel")),1)])])])):Qe("",!0)]))]))}});export{R9 as default};
|