From b76545ced95e819f1739c9a2d840aadb9c30facb Mon Sep 17 00:00:00 2001 From: char0n Date: Tue, 2 Apr 2024 09:37:15 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20swagger-?= =?UTF-8?q?api/apidom@7dd0bbd650eeeee9244cae6dafdf94df9c9150e3=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asset-manifest.json | 10 +++++----- index.html | 2 +- static/js/935.420dc187.chunk.js | 2 ++ static/js/935.420dc187.chunk.js.map | 1 + static/js/935.8f3294e5.chunk.js | 2 -- static/js/935.8f3294e5.chunk.js.map | 1 - static/js/main.27255b52.js | 3 +++ ...d49.js.LICENSE.txt => main.27255b52.js.LICENSE.txt} | 0 .../js/{main.57bc5d49.js.map => main.27255b52.js.map} | 2 +- static/js/main.57bc5d49.js | 3 --- 10 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 static/js/935.420dc187.chunk.js create mode 100644 static/js/935.420dc187.chunk.js.map delete mode 100644 static/js/935.8f3294e5.chunk.js delete mode 100644 static/js/935.8f3294e5.chunk.js.map create mode 100644 static/js/main.27255b52.js rename static/js/{main.57bc5d49.js.LICENSE.txt => main.27255b52.js.LICENSE.txt} (100%) rename static/js/{main.57bc5d49.js.map => main.27255b52.js.map} (60%) delete mode 100644 static/js/main.57bc5d49.js diff --git a/asset-manifest.json b/asset-manifest.json index 5c46088872..041fbfb080 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,8 +1,8 @@ { "files": { "main.css": "/apidom/static/css/main.e6c13ad2.css", - "main.js": "/apidom/static/js/main.57bc5d49.js", - "static/js/935.8f3294e5.chunk.js": "/apidom/static/js/935.8f3294e5.chunk.js", + "main.js": "/apidom/static/js/main.27255b52.js", + "static/js/935.420dc187.chunk.js": "/apidom/static/js/935.420dc187.chunk.js", "static/js/878.846c200a.chunk.js": "/apidom/static/js/878.846c200a.chunk.js", "static/js/824.d2e522c5.chunk.js": "/apidom/static/js/824.d2e522c5.chunk.js", "static/media/tree-sitter-yaml.wasm": "/apidom/static/media/tree-sitter-yaml.d396281e11774e0afa7a.wasm", @@ -10,13 +10,13 @@ "static/media/tree-sitter-json.wasm": "/apidom/static/media/tree-sitter-json.64a30dfa8a51b6a090eb.wasm", "index.html": "/apidom/index.html", "main.e6c13ad2.css.map": "/apidom/static/css/main.e6c13ad2.css.map", - "main.57bc5d49.js.map": "/apidom/static/js/main.57bc5d49.js.map", - "935.8f3294e5.chunk.js.map": "/apidom/static/js/935.8f3294e5.chunk.js.map", + "main.27255b52.js.map": "/apidom/static/js/main.27255b52.js.map", + "935.420dc187.chunk.js.map": "/apidom/static/js/935.420dc187.chunk.js.map", "878.846c200a.chunk.js.map": "/apidom/static/js/878.846c200a.chunk.js.map", "824.d2e522c5.chunk.js.map": "/apidom/static/js/824.d2e522c5.chunk.js.map" }, "entrypoints": [ "static/css/main.e6c13ad2.css", - "static/js/main.57bc5d49.js" + "static/js/main.27255b52.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 1fee3f0856..149bea9510 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -ApiDOM playground
\ No newline at end of file +ApiDOM playground
\ No newline at end of file diff --git a/static/js/935.420dc187.chunk.js b/static/js/935.420dc187.chunk.js new file mode 100644 index 0000000000..25ffc90ec9 --- /dev/null +++ b/static/js/935.420dc187.chunk.js @@ -0,0 +1,2 @@ +(()=>{var e={3850:(e,t,s)=>{"use strict";var n={};s.r(n),s.d(n,{hasElementSourceMap:()=>Ce,includesClasses:()=>Te,includesSymbols:()=>Re,isAnnotationElement:()=>$e,isArrayElement:()=>Se,isBooleanElement:()=>Ee,isCommentElement:()=>Oe,isElement:()=>ve,isLinkElement:()=>Ae,isMemberElement:()=>je,isNullElement:()=>xe,isNumberElement:()=>be,isObjectElement:()=>we,isParseResultElement:()=>Be,isPrimitiveElement:()=>qe,isRefElement:()=>Pe,isSourceMapElement:()=>Me,isStringElement:()=>ye});var i={};s.r(i),s.d(i,{detect:()=>Ns,detectionRegExp:()=>_s,lexicalAnalysis:()=>bt,mediaTypes:()=>Ds,namespace:()=>Is,parse:()=>Vs,syntacticAnalysis:()=>kt,syntacticAnalysisDirect:()=>kt,syntacticAnalysisIndirect:()=>ks});var r={};s.r(r),s.d(r,{detect:()=>Ni,lexicalAnalysis:()=>Gs,mediaTypes:()=>Di,namespace:()=>_i,parse:()=>Vi,syntacticAnalysis:()=>Ii});var o={};s.r(o),s.d(o,{isJSONReferenceElement:()=>To,isJSONSchemaElement:()=>Ro,isLinkDescriptionElement:()=>ko,isMediaElement:()=>Fo});var c={};s.r(c),s.d(c,{isReferenceLikeElement:()=>Ac,isSwaggerExtension:()=>jc});var a={};s.r(a),s.d(a,{isContactElement:()=>aa,isDefinitionsElement:()=>Pa,isExampleElement:()=>ya,isExternalDocumentationElement:()=>pa,isHeaderElement:()=>ba,isHeadersElement:()=>va,isInfoElement:()=>oa,isItemsElement:()=>ma,isLicenseElement:()=>ca,isOperationElement:()=>ua,isParameterElement:()=>da,isParametersDefinitionsElement:()=>$a,isPathItemElement:()=>ha,isPathsElement:()=>la,isReferenceElement:()=>Ea,isResponseElement:()=>fa,isResponsesDefinitionsElement:()=>ja,isResponsesElement:()=>ga,isSchemaElement:()=>wa,isScopesElement:()=>Ba,isSecurityDefinitionsElement:()=>Aa,isSecurityRequirementElement:()=>Ma,isSecuritySchemeElement:()=>Oa,isSwaggerElement:()=>ia,isSwaggerVersionElement:()=>ra,isTagElement:()=>xa,isXmlElement:()=>Sa});var l={};s.r(l),s.d(l,{detect:()=>jh,detectionRegExp:()=>Sh,mediaTypes:()=>wh,namespace:()=>Ph,parse:()=>Ah});var h={};s.r(h),s.d(h,{detect:()=>Bh,detectionRegExp:()=>Oh,mediaTypes:()=>$h,namespace:()=>qh,parse:()=>Mh});var u={};s.r(u),s.d(u,{isBooleanJsonSchemaElement:()=>Yp,isCallbackElement:()=>qp,isComponentsElement:()=>Cp,isContactElement:()=>Rp,isExampleElement:()=>Tp,isExternalDocumentationElement:()=>Fp,isHeaderElement:()=>kp,isInfoElement:()=>Ip,isLicenseElement:()=>_p,isLinkElement:()=>Dp,isMediaTypeElement:()=>sd,isOpenApi3_0Element:()=>Vp,isOpenapiElement:()=>Np,isOperationElement:()=>Lp,isParameterElement:()=>Jp,isPathItemElement:()=>Up,isPathsElement:()=>Hp,isReferenceElement:()=>Gp,isRequestBodyElement:()=>Kp,isResponseElement:()=>Wp,isResponsesElement:()=>Xp,isSchemaElement:()=>zp,isSecurityRequirementElement:()=>Qp,isSecuritySchemeElement:()=>Zp,isServerElement:()=>ed,isServerVariableElement:()=>td,isServersElement:()=>nd});var p={};s.r(p),s.d(p,{detect:()=>Hf,detectionRegExp:()=>Uf,mediaTypes:()=>Jf,namespace:()=>Kf,parse:()=>Gf});var d={};s.r(d),s.d(d,{detect:()=>zf,detectionRegExp:()=>Xf,mediaTypes:()=>Wf,namespace:()=>Qf,parse:()=>Yf});var m={};s.r(m),s.d(m,{isBooleanJsonSchemaElement:()=>Fy,isCallbackElement:()=>py,isComponentsElement:()=>dy,isContactElement:()=>my,isExampleElement:()=>gy,isExternalDocumentationElement:()=>fy,isHeaderElement:()=>vy,isInfoElement:()=>yy,isJsonSchemaDialectElement:()=>by,isLicenseElement:()=>xy,isLinkElement:()=>Ey,isMediaTypeElement:()=>Ny,isOpenApi3_1Element:()=>Sy,isOpenapiElement:()=>wy,isOperationElement:()=>jy,isParameterElement:()=>Ay,isPathItemElement:()=>Py,isPathItemElementExternal:()=>$y,isPathsElement:()=>Oy,isReferenceElement:()=>By,isReferenceElementExternal:()=>My,isRequestBodyElement:()=>qy,isResponseElement:()=>Cy,isResponsesElement:()=>Ry,isSchemaElement:()=>Ty,isSecurityRequirementElement:()=>ky,isSecuritySchemeElement:()=>Iy,isServerElement:()=>_y,isServerVariableElement:()=>Dy});var g={};s.r(g),s.d(g,{detect:()=>lx,detectionRegExp:()=>ax,mediaTypes:()=>cx,namespace:()=>ux,parse:()=>hx});var f={};s.r(f),s.d(f,{detect:()=>mx,detectionRegExp:()=>dx,mediaTypes:()=>px,namespace:()=>fx,parse:()=>gx});var v={};s.r(v),s.d(v,{isJSONReferenceElement:()=>To,isJSONSchemaElement:()=>qx,isLinkDescriptionElement:()=>Cx,isMediaElement:()=>Fo});var y={};s.r(y),s.d(y,{isJSONReferenceElement:()=>To,isJSONSchemaElement:()=>bw,isLinkDescriptionElement:()=>xw});var b={};s.r(b),s.d(b,{isAsyncApi2Element:()=>Tw,isAsyncApiVersionElement:()=>Fw,isBooleanJsonSchemaElement:()=>Xw,isChannelBindingsElement:()=>kw,isChannelItemElement:()=>Iw,isChannelsElement:()=>_w,isComponentsElement:()=>Dw,isContactElement:()=>Nw,isIdentifierElement:()=>Vw,isInfoElement:()=>Lw,isLicenseElement:()=>Jw,isOperationElement:()=>Uw,isParameterElement:()=>Hw,isParametersElement:()=>Gw,isReferenceElement:()=>Kw,isSchemaElement:()=>Ww,isSecurityRequirementElement:()=>zw,isServerBindingsElement:()=>Qw,isServerElement:()=>Yw,isServerVariableElement:()=>eS,isServersElement:()=>Zw});var x={};s.r(x),s.d(x,{detect:()=>JC,detectionRegExp:()=>LC,mediaTypes:()=>VC,namespace:()=>HC,parse:()=>UC});var E={};s.r(E),s.d(E,{detect:()=>WC,detectionRegExp:()=>KC,mediaTypes:()=>GC,namespace:()=>zC,parse:()=>XC});var w={};s.r(w),s.d(w,{isReferenceLikeElement:()=>PR,isWorkflowsSpecificationExtension:()=>AR});var S={};s.r(S),s.d(S,{isComponentsElement:()=>_T,isCriterionElement:()=>DT,isFailureActionCriteriaElement:()=>JT,isFailureActionElement:()=>LT,isInfoElement:()=>wT,isJSONSchemaElement:()=>UT,isParameterElement:()=>kT,isReferenceElement:()=>NT,isSourceDescriptionElement:()=>ST,isSourceDescriptionsElement:()=>jT,isStepDependsOnElement:()=>TT,isStepElement:()=>CT,isStepOnFailureElement:()=>MT,isStepOnSuccessElement:()=>BT,isStepOutputsElement:()=>qT,isStepParametersElement:()=>RT,isStepSuccessCriteriaElement:()=>FT,isSuccessActionCriteriaElement:()=>VT,isSuccessActionElement:()=>IT,isWorkflowElement:()=>OT,isWorkflowOutputsElement:()=>$T,isWorkflowStepsElement:()=>PT,isWorkflowsElement:()=>AT,isWorkflowsSpecElement:()=>xT,isWorkflowsSpecification1Element:()=>ET});var j={};s.r(j),s.d(j,{detect:()=>HF,detectionRegExp:()=>UF,mediaTypes:()=>JF,namespace:()=>KF,parse:()=>GF});var A={};s.r(A),s.d(A,{detect:()=>zF,detectionRegExp:()=>XF,mediaTypes:()=>WF,namespace:()=>QF,parse:()=>YF});var P={};s.r(P),s.d(P,{isInfoElement:()=>qI,isMainElement:()=>MI,isPrincipleElement:()=>CI,isRequirementElement:()=>RI,isRequirementLevelElement:()=>TI,isScenarioElement:()=>FI,isStandardElement:()=>kI,isStandardIdentifierElement:()=>II});var $=s(65959),O=s(85618),B=s(28182);class M extends O.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const q=M;class C extends O.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const R=C;var T=s(39146);class F extends O.wE{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if((0,T.A)(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const k=F;class I extends O.wE{constructor(e,t,s){super(e,t,s),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if("undefined"===typeof e)return;const t=new O.wE([e.start.row,e.start.column,e.start.char]),s=new O.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const _=I;class D extends O.g${constructor(){super(),this.register("annotation",q),this.register("comment",R),this.register("parseResult",k),this.register("sourceMap",_)}}const N=new D,V=e=>{const t=new D;return(0,B.A)(e)&&t.use(e),t},L=N,J=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:L).toRefract(e)};var U=s(52315),H=s(76985);const G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L;if((0,H.A)(e))try{return t.fromRefract(JSON.parse(e))}catch{}return(0,B.A)(e)&&(0,U.A)("element",e)?t.fromRefract(e):t.toElement(e)};var K=s(98158),W=s(41870),X=s(58009),z=s(21212);const Y=class extends z{constructor(e,t,s){if(super(e,t,s),this.name=this.constructor.name,"string"===typeof t&&(this.message=t),"function"===typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=s&&"object"===typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack="".concat(this.stack,"\nCAUSE: ").concat(e.stack))}}};class Q extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Y,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"===typeof e&&(this.message=e),"function"===typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"===typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack="".concat(this.stack,"\nCAUSE: ").concat(e.stack))}}}const Z=Q;const ee=class extends Z{constructor(e,t){if(super(e,t),null!=t&&"object"===typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},te=Symbol.for("nodejs.util.promisify.custom"),se=(e,t,s)=>{const n=e[t];if(null!=n){if(!s&&"function"===typeof n)return n;const e=s?n.leave:n.enter;if("function"===typeof e)return e}else{const n=s?e.leave:e.enter;if(null!=n){if("function"===typeof n)return n;const e=n[t];if("function"===typeof e)return e}}return null},ne={},ie=e=>null===e||void 0===e?void 0:e.type,re=e=>"string"===typeof ie(e),oe=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ce=function(e){let{visitFnGetter:t=se,nodeTypeGetter:s=ie,breakSymbol:n=ne,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:r=!1,exposeEdits:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(l){let h=l,u=!1;for(var p=arguments.length,d=new Array(p>1?p-1:0),m=1;m1?o-1:0),h=1;h1&&void 0!==arguments[1]?arguments[1]:{};const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(l){let h=l,u=!1;for(var p=arguments.length,d=new Array(p>1?p-1:0),m=1;m1?o-1:0),h=1;h2&&void 0!==arguments[2]?arguments[2]:{};const p=s||{};let d,m,g=Array.isArray(e),f=[e],v=-1,y=[],b=e;const x=[],E=[];do{v+=1;const e=v===f.length;let s;const S=e&&0!==y.length;if(e){if(s=0===E.length?void 0:x.pop(),b=m,m=E.pop(),S)if(g){b=b.slice();let e=0;for(const[t,s]of y){const n=t-e;s===r?(b.splice(n,1),e+=1):b[n]=s}}else{b=h(b);for(const[e,t]of y)b[e]=t}v=d.index,f=d.keys,y=d.edits,g=d.inArray,d=d.prev}else if(m!==r&&void 0!==m){if(s=g?v:f[v],b=m[s],b===r||void 0===b)continue;x.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new ee("Invalid AST Node: ".concat(String(b)),{node:b});if(u&&E.includes(b)){x.pop();continue}const r=c(t,a(b),e);if(r){for(const[e,s]of Object.entries(n))t[e]=s;j=r.call(t,b,s,m,x,E)}if(j===i)break;if(j===o){if(!e){x.pop();continue}}else if(void 0!==j&&(y.push([s,j]),!e)){if(!l(j)){x.pop();continue}b=j}}var w;if(void 0===j&&S&&y.push([s,b]),!e)d={inArray:g,index:v,keys:f,edits:y,prev:d},g=Array.isArray(b),f=g?b:null!==(w=p[a(b)])&&void 0!==w?w:[],v=-1,y=[],m!==r&&void 0!==m&&E.push(m),m=b}while(void 0!==d);return 0!==y.length?y[y.length-1][1]:e};ae[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:s=null,state:n={},breakSymbol:i=ne,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=se,nodeTypeGetter:a=ie,nodePredicate:l=re,nodeCloneFn:h=oe,detectCycles:u=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const p=s||{};let d,m,g=Array.isArray(e),f=[e],v=-1,y=[],b=e;const x=[],E=[];do{v+=1;const e=v===f.length;let s;const S=e&&0!==y.length;if(e){if(s=0===E.length?void 0:x.pop(),b=m,m=E.pop(),S)if(g){b=b.slice();let e=0;for(const[t,s]of y){const n=t-e;s===r?(b.splice(n,1),e+=1):b[n]=s}}else{b=h(b);for(const[e,t]of y)b[e]=t}v=d.index,f=d.keys,y=d.edits,g=d.inArray,d=d.prev}else if(m!==r&&void 0!==m){if(s=g?v:f[v],b=m[s],b===r||void 0===b)continue;x.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new ee("Invalid AST Node: ".concat(String(b)),{node:b});if(u&&E.includes(b)){x.pop();continue}const r=c(t,a(b),e);if(r){for(const[e,s]of Object.entries(n))t[e]=s;j=await r.call(t,b,s,m,x,E)}if(j===i)break;if(j===o){if(!e){x.pop();continue}}else if(void 0!==j&&(y.push([s,j]),!e)){if(!l(j)){x.pop();continue}b=j}}var w;if(void 0===j&&S&&y.push([s,b]),!e)d={inArray:g,index:v,keys:f,edits:y,prev:d},g=Array.isArray(b),f=g?b:null!==(w=p[a(b)])&&void 0!==w?w:[],v=-1,y=[],m!==r&&void 0!==m&&E.push(m),m=b}while(void 0!==d);return 0!==y.length?y[y.length-1][1]:e};var le=s(25384),he=s(8208);const ue=(e,t)=>"object"===typeof t&&null!==t&&e in t&&"function"===typeof t[e],pe=e=>"object"===typeof e&&null!=e&&"_storedElement"in e&&"string"===typeof e._storedElement&&"_content"in e,de=(e,t)=>"object"===typeof t&&null!==t&&"primitive"in t&&("function"===typeof t.primitive&&t.primitive()===e),me=(e,t)=>"object"===typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof O.wE)&&t.classes.includes(e),ge=(e,t)=>"object"===typeof t&&null!==t&&"element"in t&&t.element===e,fe=e=>e({hasMethod:ue,hasBasicElementProps:pe,primitiveEq:de,isElementType:ge,hasClass:me}),ve=fe((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Hg||t(e)&&s(void 0,e)})),ye=fe((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Om||t(e)&&s("string",e)})),be=fe((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.kT||t(e)&&s("number",e)})),xe=fe((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Os||t(e)&&s("null",e)})),Ee=fe((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.bd||t(e)&&s("boolean",e)})),we=fe((e=>{let{hasBasicElementProps:t,primitiveEq:s,hasMethod:n}=e;return e=>e instanceof O.Sh||t(e)&&s("object",e)&&n("keys",e)&&n("values",e)&&n("items",e)})),Se=fe((e=>{let{hasBasicElementProps:t,primitiveEq:s,hasMethod:n}=e;return e=>e instanceof O.wE&&!(e instanceof O.Sh)||t(e)&&s("array",e)&&n("push",e)&&n("unshift",e)&&n("map",e)&&n("reduce",e)})),je=fe((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.Pr||t(e)&&s("member",e)&&n(void 0,e)})),Ae=fe((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.Ft||t(e)&&s("link",e)&&n(void 0,e)})),Pe=fe((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.sI||t(e)&&s("ref",e)&&n(void 0,e)})),$e=fe((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof q||t(e)&&s("annotation",e)&&n("array",e)})),Oe=fe((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof R||t(e)&&s("comment",e)&&n("string",e)})),Be=fe((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof k||t(e)&&s("parseResult",e)&&n("array",e)})),Me=fe((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof _||t(e)&&s("sourceMap",e)&&n("array",e)})),qe=e=>ge("object",e)||ge("array",e)||ge("boolean",e)||ge("number",e)||ge("string",e)||ge("null",e)||ge("member",e),Ce=e=>Me(e.meta.get("sourceMap")),Re=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Se(s)&&(0,le.A)((0,he.A)(s.toValue()),e)},Te=(e,t)=>0===e.length||(0,le.A)((0,he.A)(t.classes.toValue()),e);const Fe=class extends ee{constructor(e,t){super(e,t),(0,K.A)(this,"value",void 0),"undefined"!==typeof t&&(this.value=t.value)}};const ke=class extends Fe{};const Ie=class extends Fe{},_e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof O.KeyValuePair){const{key:t,value:i}=e,r=ve(t)?_e(t,n):t,o=ve(i)?_e(i,n):i,c=new O.KeyValuePair(r,o);return s.set(e,c),c}if(e instanceof O.ot){const t=e=>_e(e,n),i=[...e].map(t),r=new O.ot(i);return s.set(e,r),r}if(e instanceof O.G6){const t=e=>_e(e,n),i=[...e].map(t),r=new O.G6(i);return s.set(e,r),r}if(ve(e)){const t=Ve(e);if(s.set(e,t),e.content)if(ve(e.content))t.content=_e(e.content,n);else if(e.content instanceof O.KeyValuePair)t.content=_e(e.content,n);else if(Array.isArray(e.content)){const s=e=>_e(e,n);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new ke("Value provided to cloneDeep function couldn't be cloned",{value:e})};_e.safe=e=>{try{return _e(e)}catch{return e}};const De=e=>{const{key:t,value:s}=e;return new O.KeyValuePair(t,s)},Ne=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=_e(e.meta)),e.attributes.length>0&&(t._attributes=_e(e.attributes)),ve(e.content)){const s=e.content;t.content=Ne(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof O.KeyValuePair?t.content=De(e.content):t.content=e.content;return t},Ve=e=>{if(e instanceof O.KeyValuePair)return De(e);if(e instanceof O.ot)return(e=>{const t=[...e];return new O.ot(t)})(e);if(e instanceof O.G6)return(e=>{const t=[...e];return new O.G6(t)})(e);if(ve(e))return Ne(e);throw new Ie("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ve.safe=e=>{try{return Ve(e)}catch{return e}};const Le=e=>we(e)?"ObjectElement":Se(e)?"ArrayElement":je(e)?"MemberElement":ye(e)?"StringElement":Ee(e)?"BooleanElement":be(e)?"NumberElement":xe(e)?"NullElement":Ae(e)?"LinkElement":Pe(e)?"RefElement":void 0,Je=e=>ve(e)?Ve(e):oe(e),Ue=(0,W.A)(Le,H.A),He={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class Ge{constructor(){let{predicate:e=X.A,returnOnTrue:t,returnOnFalse:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,K.A)(this,"result",void 0),(0,K.A)(this,"predicate",void 0),(0,K.A)(this,"returnOnTrue",void 0),(0,K.A)(this,"returnOnFalse",void 0),this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=s}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const Ke=function(e,t){let{keyMap:s=He,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ae(e,t,{keyMap:s,nodeTypeGetter:Le,nodePredicate:Ue,nodeCloneFn:Je,...n})};Ke[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:s=He,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ae[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:Le,nodePredicate:Ue,nodeCloneFn:Je,...n})};class We{constructor(){(0,K.A)(this,"result",""),(0,K.A)(this,"nestingLevel",0)}enter(e){const{element:t}=e,s=t.charAt(0).toUpperCase()+t.slice(1),n=" ".repeat(this.nestingLevel);this.result+=this.nestingLevel>0?"\n":"",this.result+="".concat(n,"(").concat(s,"Element"),this.nestingLevel+=1}leave(){this.nestingLevel-=1,this.result+=")"}}const Xe=e=>{const t=new We;return Ke(e,t),t.result};var ze=s(34887);const Ye=e=>"string"===typeof(null===e||void 0===e?void 0:e.type)?e.type:Le(e),Qe={EphemeralObject:["content"],EphemeralArray:["content"],...He},Ze=function(e,t){let{keyMap:s=Qe,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ke(e,t,{keyMap:s,nodeTypeGetter:Ye,nodePredicate:ze.A,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n})};Ze[Symbol.for("nodejs.util.promisify.custom")]=async function(e){let{keyMap:t=Qe,...s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ke[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Ye,nodePredicate:ze.A,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s})};const et=class{constructor(e){(0,K.A)(this,"type","EphemeralArray"),(0,K.A)(this,"content",[]),(0,K.A)(this,"reference",void 0),this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const tt=class{constructor(e){(0,K.A)(this,"type","EphemeralObject"),(0,K.A)(this,"content",[]),(0,K.A)(this,"reference",void 0),this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class st{constructor(){(0,K.A)(this,"ObjectElement",{enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new tt(e.content);return this.references.set(e,t),t}}),(0,K.A)(this,"EphemeralObject",{leave:e=>e.toObject()}),(0,K.A)(this,"MemberElement",{enter:e=>[e.key,e.value]}),(0,K.A)(this,"ArrayElement",{enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new et(e.content);return this.references.set(e,t),t}}),(0,K.A)(this,"EphemeralArray",{leave:e=>e.toArray()}),(0,K.A)(this,"references",new WeakMap)}BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e){var t;const s=arguments.length<=4?void 0:arguments[4];return"EphemeralObject"===(null===(t=s[s.length-1])||void 0===t?void 0:t.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ye(e.href)?e.href.toValue():""}}const nt=e=>ve(e)?ye(e)||be(e)||Ee(e)||xe(e)?e.toValue():Ze(e,new st):e;var it=s(13225),rt=s(47496),ot=s(69455);const ct=class extends Z{};const at=class extends ct{};const lt=class extends Array{constructor(){super(...arguments),(0,K.A)(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new at("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new at("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new at("latest method in MediaTypes class is not yet implemented.")}};const ht=class extends ee{constructor(e,t){super(e,t),(0,K.A)(this,"source",void 0),(0,K.A)(this,"parserOptions",void 0),"undefined"!==typeof t&&(this.source=t.source,this.parserOptions=t.parserOptions)}};const ut=class{constructor(){(0,K.A)(this,"adapters",[])}async detectAdapterCandidates(e){const t=[];for(const s of this.adapters)(0,rt.A)(s.detect)&&await s.detect(e)&&t.push(s);return t}async findAdapter(e,t){if((0,H.A)(t))return this.adapters.find((e=>!!(0,ot.A)(e.mediaTypes)&&e.mediaTypes.includes(t)));const s=await this.detectAdapterCandidates(e);return(0,it.A)(s)}use(e){return this.adapters.push(e),this}async findNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=await this.findAdapter(e,t.mediaType);return null===s||void 0===s?void 0:s.namespace}async findMediaType(e){const t=await this.findAdapter(e,void 0);if("undefined"===typeof t)return(new lt).unknownMediaType;if("undefined"===typeof t.mediaTypes)return(new lt).unknownMediaType;if("undefined"===typeof t.detectionRegExp)return t.mediaTypes.latest();const{detectionRegExp:s}=t,n=e.match(s);if(null===n)return(new lt).unknownMediaType;const{groups:i}=n,r=(null===i||void 0===i?void 0:i.version)||(null===i||void 0===i?void 0:i.version_json)||(null===i||void 0===i?void 0:i.version_yaml),o=null!==i&&void 0!==i&&i.version_json?"json":null!==i&&void 0!==i&&i.version_yaml?"yaml":"generic";return"undefined"===typeof r?t.mediaTypes.latest():t.mediaTypes.findBy(r,o)}async parse(e){let t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t=await this.findAdapter(e,s.mediaType)}catch(n){throw new ht("Encountered an unexpected error while matching parser adapters against the source.",{source:e,parserOptions:s,cause:n})}if((0,T.A)(t))throw new ht("Source did not match any registered parsers",{source:e,parserOptions:s});try{return t.parse(e,s)}catch(n){throw new ht("Parsing encountered an unexpected error.",{source:e,parserOptions:s,cause:n})}}};var pt=s(98921),dt=s(74921);const mt=globalThis.fetch;(0,rt.A)(mt)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),s=0;s{if(null===vt&&null===yt)yt=gt.init().then((()=>gt.Language.load(ft))).then((e=>{const t=new gt;return t.setLanguage(e),t})).finally((()=>{yt=null})),vt=await yt;else if(null===vt&&null!==yt)vt=await yt;else if(null===vt)throw new Z("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return vt.parse(e)};var xt=s(27317),Et=s(53163),wt=s(88868);const St=()=>({predicates:{...n},namespace:L}),jt={toolboxCreator:St,visitorOptions:{nodeTypeGetter:Le,exposeEdits:!0}},At=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===t.length)return e;const n=(0,xt.A)(jt,s),{toolboxCreator:i,visitorOptions:r}=n,o=i(),c=t.map((e=>e(o))),a=ce(c.map((0,Et.A)({},"visitor")),{...r});c.forEach((0,wt.A)(["pre"],[]));const l=Ke(e,a,r);return c.forEach((0,wt.A)(["post"],[])),l},Pt=(e,t)=>{let{Type:s,plugins:n=[]}=t;const i=new s(e);return ve(e)&&(e.meta.length>0&&(i.meta=_e(e.meta)),e.attributes.length>0&&(i.attributes=_e(e.attributes))),At(i,n,{toolboxCreator:St,visitorOptions:{nodeTypeGetter:Le}})},$t=e=>function(t){return Pt(t,{...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Type:e})};O.Sh.refract=$t(O.Sh),O.wE.refract=$t(O.wE),O.Om.refract=$t(O.Om),O.bd.refract=$t(O.bd),O.Os.refract=$t(O.Os),O.kT.refract=$t(O.kT),O.Ft.refract=$t(O.Ft),O.sI.refract=$t(O.sI),q.refract=$t(q),R.refract=$t(R),k.refract=$t(k),_.refract=$t(_);const Ot=class{constructor(e){(0,K.A)(this,"type",void 0),(0,K.A)(this,"startPosition",void 0),(0,K.A)(this,"endPosition",void 0),(0,K.A)(this,"startIndex",void 0),(0,K.A)(this,"endIndex",void 0),(0,K.A)(this,"text",void 0),(0,K.A)(this,"isNamed",void 0),(0,K.A)(this,"isMissing",void 0),(0,K.A)(this,"fieldName",void 0),(0,K.A)(this,"hasError",!1),(0,K.A)(this,"children",[]),this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return"function"===typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"===typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}pushChildren(){this.children.push(...arguments)}};class Bt{static toPosition(e){const t=new O.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),s=new O.wE([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),s.classes.push("position"),[t,s]}constructor(){(0,K.A)(this,"sourceMap",!1),(0,K.A)(this,"annotations",void 0),(0,K.A)(this,"ParseResultElement",{leave:e=>{const t=e.findElements(qe);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}}),this.annotations=[]}enter(e){if(e instanceof Ot&&!e.isNamed&&e.isMissing){const t=e.type||e.text,s="(Missing ".concat(t,")"),n=new q(s);n.classes.push("warning"),this.maybeAddSourceMap(e,n),this.annotations.push(n)}return null}document(e){const t=new k;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new O.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new O.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new O.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new O.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new O.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new O.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new O.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new O.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,s,n){const i=!e.hasError,r=e.text,o=i?"(Unexpected ".concat(r,")"):"(Error ".concat(r,")"),c=new q(o);if(c.classes.push("error"),this.maybeAddSourceMap(e,c),0===n.length){const e=new k;return e.push(c),e}return this.annotations.push(c),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new _,n=Bt.toPosition(e);if(null!==n){const[e,t]=n;s.push(e),s.push(t)}s.astNode=e,t.meta.set("sourceMap",s)}}const Mt=Bt;class qt{constructor(e){(0,K.A)(this,"cursor",void 0),this.cursor=e}document(){return new Ot(this.cursor)}object(){return new Ot(this.cursor).setFieldName(this.cursor)}array(){return new Ot(this.cursor).setFieldName(this.cursor)}pair(){return new Ot(this.cursor)}string(){return new Ot(this.cursor).setFieldName(this.cursor)}number(){return new Ot(this.cursor).setFieldName(this.cursor)}null(){return new Ot(this.cursor).setFieldName(this.cursor)}true(){return new Ot(this.cursor).setFieldName(this.cursor)}false(){return new Ot(this.cursor).setFieldName(this.cursor)}ERROR(){return new Ot(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Ot(this.cursor),this.cursor.gotoFirstChild()){const[t]=new qt(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new qt(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Ct=qt,Rt={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...He},Tt=e=>Be(e)?"ParseResultElement":ve(e)?Le(e):ie(e),Ft=e=>ve(e)||re(e),kt=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=new Mt,n=e.walk(),i=new Ct(n),[r]=Array.from(i);return ae(r,s,{keyMap:Rt,nodeTypeGetter:Tt,nodePredicate:Ft,state:{sourceMap:t}})};class It{constructor(){let{children:e=[],position:t,isMissing:s=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,K.A)(this,"type","node"),(0,K.A)(this,"isMissing",void 0),(0,K.A)(this,"children",void 0),(0,K.A)(this,"position",void 0),this.type=this.constructor.type,this.isMissing=s,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}}(0,K.A)(It,"type","node");const _t=It;const Dt=class extends _t{};class Nt extends Dt{get child(){return(0,it.A)(this.children)}}(0,K.A)(Nt,"type","document");const Vt=Nt;class Lt extends _t{get rootNode(){return(0,it.A)(this.children)}}(0,K.A)(Lt,"type","parseResult");const Jt=Lt;class Ut{constructor(e){let{row:t,column:s,char:n}=e;(0,K.A)(this,"type",Ut.type),(0,K.A)(this,"row",void 0),(0,K.A)(this,"column",void 0),(0,K.A)(this,"char",void 0),this.row=t,this.column=s,this.char=n}}(0,K.A)(Ut,"type","point");class Ht{constructor(e){let{start:t,end:s}=e;(0,K.A)(this,"type",Ht.type),(0,K.A)(this,"start",void 0),(0,K.A)(this,"end",void 0),this.start=t,this.end=s}}(0,K.A)(Ht,"type","position");const Gt=Ht;class Kt extends _t{constructor(){let{value:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({...t}),(0,K.A)(this,"value",void 0),this.value=e}}(0,K.A)(Kt,"type","literal");const Wt=Kt,Xt=(e,t)=>null!=t&&"object"===typeof t&&"type"in t&&t.type===e,zt=e=>Xt("string",e),Yt=e=>Xt("false",e),Qt=e=>Xt("true",e),Zt=e=>Xt("null",e),es=e=>Xt("number",e),ts=e=>Xt("array",e),ss=e=>Xt("object",e),ns=e=>Xt("property",e),is=e=>Xt("key",e);class rs extends Dt{get properties(){return this.children.filter(ns)}}(0,K.A)(rs,"type","object");const os=rs;class cs extends Dt{get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>Xt("stringContent",e))(e)||(e=>Xt("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}}(0,K.A)(cs,"type","string");const as=cs;class ls extends as{}(0,K.A)(ls,"type","key");const hs=ls;class us extends Dt{get key(){return this.children.find(is)}get value(){return this.children.find((e=>Yt(e)||Qt(e)||Zt(e)||es(e)||zt(e)||ts(e)||ss(e)))}}(0,K.A)(us,"type","property");const ps=us;class ds extends Dt{get items(){return this.children.filter((e=>Yt(e)||Qt(e)||Zt(e)||es(e)||zt(e)||ts(e)||ss))}}(0,K.A)(ds,"type","array");const ms=ds;class gs extends Dt{constructor(e){let{value:t,...s}=e;super({...s}),(0,K.A)(this,"value",void 0),this.value=t}}(0,K.A)(gs,"type","value");const fs=gs;class vs extends fs{}(0,K.A)(vs,"type","stringContent");const ys=vs;class bs extends fs{}(0,K.A)(bs,"type","number");const xs=bs;class Es extends fs{}(0,K.A)(Es,"type","null");const ws=Es;class Ss extends fs{}(0,K.A)(Ss,"type","true");const js=Ss;class As extends fs{}(0,K.A)(As,"type","false");const Ps=As;class $s extends _t{constructor(){let{value:e,isUnexpected:t=!1,...s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({...s}),(0,K.A)(this,"value",void 0),(0,K.A)(this,"isUnexpected",void 0),this.value=e,this.isUnexpected=t}}(0,K.A)($s,"type","error");const Os=$s,Bs={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class Ms{constructor(){(0,K.A)(this,"document",{enter:e=>{const t=Ms.toPosition(e);return new Vt({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Jt({children:[e]})})}static toPosition(e){const t=new Ut({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new Ut({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Gt({start:t,end:s})}enter(e){if(e instanceof Ot&&!e.isNamed){const t=Ms.toPosition(e),s=e.type||e.text,{isMissing:n}=e;return new Wt({value:s,position:t,isMissing:n})}}object(e){const t=Ms.toPosition(e);return new os({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=Ms.toPosition(e),s=e.children.slice(1),{keyNode:n}=e,i=new hs({children:(null===n||void 0===n?void 0:n.children)||[],position:null!=n?Ms.toPosition(n):void 0,isMissing:null!=n&&n.isMissing});return new ps({children:[i,...s],position:t,isMissing:e.isMissing})}array(e){const t=Ms.toPosition(e);return new ms({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=Ms.toPosition(e),s=new ys({value:JSON.parse(e.text)});return new as({children:[s],position:t,isMissing:e.isMissing})}number(e){const t=Ms.toPosition(e),s=e.text;return new xs({value:s,position:t,isMissing:e.isMissing})}null(e){const t=Ms.toPosition(e),s=e.text;return new ws({value:s,position:t,isMissing:e.isMissing})}true(e){const t=Ms.toPosition(e),s=e.text;return new js({value:s,position:t,isMissing:e.isMissing})}false(e){const t=Ms.toPosition(e),s=e.text;return new Ps({value:s,position:t,isMissing:e.isMissing})}ERROR(e,t,s,n){const i=Ms.toPosition(e),r=new Os({children:e.children,position:i,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?new Jt({children:[r]}):r}}const qs=Ms,Cs={[Jt.type]:["children"],[Vt.type]:["children"],[os.type]:["children"],[ps.type]:["children"],[ms.type]:["children"],[Os.type]:["children"],...He},Rs=e=>Be(e)?"ParseResultElement":ve(e)?Le(e):ie(e),Ts=e=>ve(e)||re(e);const Fs=class{constructor(){(0,K.A)(this,"sourceMap",!1),(0,K.A)(this,"annotations",void 0),(0,K.A)(this,"ParseResultElement",{leave:e=>{const t=e.findElements(qe);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}}),this.annotations=[]}document(e){const t=new k;return t._content=e.children,t}object(e){const t=new O.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new O.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new O.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new O.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new O.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new O.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new O.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new O.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new O.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t="(Missing ".concat(e.value,")"),s=new q(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,n){const i=e.isUnexpected?"(Unexpected ".concat(e.value,")"):"(Error ".concat(e.value,")"),r=new q(i);if(r.classes.push("error"),this.maybeAddSourceMap(e,r),0===n.length){const e=new k;return e.push(r),e}return this.annotations.push(r),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new _;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}},ks=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=e.walk(),n=new Ct(s),[i]=Array.from(n),r=new qs,o=new Fs,c=ae(i,r,{keyMap:Bs,state:{sourceMap:t}});return ae(c.rootNode,o,{keyMap:Cs,nodeTypeGetter:Rs,nodePredicate:Ts,state:{sourceMap:t}})},Is=V(),_s=/(?^\s*true\s*$)|(?^\s*false\s*$)|(?^\s*null\s*$)|(?^\s*\d+\s*$)|(?^\s*{\s*)|(?^\s*\[\s*)|(?^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/;const Ds=new class extends lt{latest(){return this[0]}}("application/json"),Ns=async e=>{if(!_s.test(e))return!1;try{return"ERROR"!==(await bt(e)).rootNode.type}catch{return!1}},Vs=async function(e){let{sourceMap:t=!1,syntacticAnalysis:s="direct"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await bt(e);let i;return i="indirect"===s?ks(n,{sourceMap:t}):kt(n,{sourceMap:t}),i},Ls=globalThis.fetch;(0,rt.A)(Ls)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),s=0;s{if(null===Us&&null===Hs)Hs=gt.init().then((()=>gt.Language.load(Js))).then((e=>{const t=new gt;return t.setLanguage(e),t})).finally((()=>{Hs=null})),Us=await Hs;else if(null===Us&&null!==Hs)Us=await Hs;else if(null===Us)throw new Z("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return Us.parse(e)};var Ks=s(33178);const Ws=class extends ee{};const Xs=class extends Ws{};const zs=class extends Xs{constructor(e,t){super(e,t),(0,K.A)(this,"specificTagName",void 0),(0,K.A)(this,"explicitTagName",void 0),(0,K.A)(this,"tagKind",void 0),(0,K.A)(this,"tagPosition",void 0),(0,K.A)(this,"nodeCanonicalContent",void 0),(0,K.A)(this,"node",void 0),"undefined"!==typeof t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};let Ys=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});class Qs extends _t{constructor(e){let{explicitName:t,kind:s,...n}=e;super({...n}),(0,K.A)(this,"explicitName",void 0),(0,K.A)(this,"kind",void 0),this.explicitName=t,this.kind=s}}(0,K.A)(Qs,"type","tag");const Zs=Qs;class en{constructor(){(0,K.A)(this,"tag",""),this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}}(0,K.A)(en,"uri","");const tn=en;class sn extends tn{test(e){return e.tag.kind===Ys.Mapping}}(0,K.A)(sn,"uri","tag:yaml.org,2002:map");const nn=sn;class rn extends tn{test(e){return e.tag.kind===Ys.Sequence}}(0,K.A)(rn,"uri","tag:yaml.org,2002:seq");const on=rn;class cn extends tn{}(0,K.A)(cn,"uri","tag:yaml.org,2002:str");const an=cn;var ln=s(60029),hn=s(26836),un=s(37879),pn=s(38579),dn=s(74818),mn=s(70515),gn=s(30439),fn=s(62658),vn=s(31179),yn=s(75882),bn=s(89520),xn=s(32509),En=s(45876),wn=s(10856),Sn=s(71090),jn=s(37152),An=s(96323);const Pn=/^(?