From 32e9731eb6453b2c717cb3adeb09c3fa73f5e836 Mon Sep 17 00:00:00 2001 From: char0n Date: Tue, 30 Apr 2024 12:11:11 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20swagger-?= =?UTF-8?q?api/apidom@ef20891d132098ac44f1ac6197710e43fccdc64c=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 +- .../{221.768d7de7.chunk.js => 155.066da4a5.chunk.js} | 4 ++-- static/js/155.066da4a5.chunk.js.map | 1 + static/js/221.768d7de7.chunk.js.map | 1 - static/js/main.bb0c5e35.js.map | 1 - static/js/{main.bb0c5e35.js => main.d9927f99.js} | 6 +++--- ...e35.js.LICENSE.txt => main.d9927f99.js.LICENSE.txt} | 0 static/js/main.d9927f99.js.map | 1 + 9 files changed, 13 insertions(+), 13 deletions(-) rename static/js/{221.768d7de7.chunk.js => 155.066da4a5.chunk.js} (52%) create mode 100644 static/js/155.066da4a5.chunk.js.map delete mode 100644 static/js/221.768d7de7.chunk.js.map delete mode 100644 static/js/main.bb0c5e35.js.map rename static/js/{main.bb0c5e35.js => main.d9927f99.js} (56%) rename static/js/{main.bb0c5e35.js.LICENSE.txt => main.d9927f99.js.LICENSE.txt} (100%) create mode 100644 static/js/main.d9927f99.js.map diff --git a/asset-manifest.json b/asset-manifest.json index e851543bd..d6214687d 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.bb0c5e35.js", - "static/js/221.768d7de7.chunk.js": "/apidom/static/js/221.768d7de7.chunk.js", + "main.js": "/apidom/static/js/main.d9927f99.js", + "static/js/155.066da4a5.chunk.js": "/apidom/static/js/155.066da4a5.chunk.js", "static/js/878.846c200a.chunk.js": "/apidom/static/js/878.846c200a.chunk.js", "static/js/498.c21039c1.chunk.js": "/apidom/static/js/498.c21039c1.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.bb0c5e35.js.map": "/apidom/static/js/main.bb0c5e35.js.map", - "221.768d7de7.chunk.js.map": "/apidom/static/js/221.768d7de7.chunk.js.map", + "main.d9927f99.js.map": "/apidom/static/js/main.d9927f99.js.map", + "155.066da4a5.chunk.js.map": "/apidom/static/js/155.066da4a5.chunk.js.map", "878.846c200a.chunk.js.map": "/apidom/static/js/878.846c200a.chunk.js.map", "498.c21039c1.chunk.js.map": "/apidom/static/js/498.c21039c1.chunk.js.map" }, "entrypoints": [ "static/css/main.e6c13ad2.css", - "static/js/main.bb0c5e35.js" + "static/js/main.d9927f99.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 0517dcf8d..886a86b4e 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/221.768d7de7.chunk.js b/static/js/155.066da4a5.chunk.js similarity index 52% rename from static/js/221.768d7de7.chunk.js rename to static/js/155.066da4a5.chunk.js index db070cbf0..3b7a552d7 100644 --- a/static/js/221.768d7de7.chunk.js +++ b/static/js/155.066da4a5.chunk.js @@ -1,2 +1,2 @@ -(()=>{var e={13628:(e,t,s)=>{"use strict";var n={};s.r(n),s.d(n,{hasElementSourceMap:()=>qe,includesClasses:()=>Re,includesSymbols:()=>Ce,isAnnotationElement:()=>Pe,isArrayElement:()=>we,isBooleanElement:()=>xe,isCommentElement:()=>$e,isElement:()=>fe,isLinkElement:()=>je,isMemberElement:()=>Se,isNullElement:()=>be,isNumberElement:()=>ye,isObjectElement:()=>Ee,isParseResultElement:()=>Oe,isPrimitiveElement:()=>Me,isRefElement:()=>Ae,isSourceMapElement:()=>Be,isStringElement:()=>ve});var i={};s.r(i),s.d(i,{detect:()=>Ds,detectionRegExp:()=>Is,lexicalAnalysis:()=>yt,mediaTypes:()=>_s,namespace:()=>ks,parse:()=>Ns,syntacticAnalysis:()=>Ft,syntacticAnalysisDirect:()=>Ft,syntacticAnalysisIndirect:()=>Fs});var r={};s.r(r),s.d(r,{detect:()=>Di,lexicalAnalysis:()=>Hs,mediaTypes:()=>_i,namespace:()=>Ii,parse:()=>Ni,syntacticAnalysis:()=>ki});var o={};s.r(o),s.d(o,{isJSONReferenceElement:()=>jo,isJSONSchemaElement:()=>So,isLinkDescriptionElement:()=>Po,isMediaElement:()=>Ao});var c={};s.r(c),s.d(c,{isReferenceLikeElement:()=>mc,isSwaggerExtension:()=>dc});var a={};s.r(a),s.d(a,{isContactElement:()=>Yc,isDefinitionsElement:()=>ga,isExampleElement:()=>ca,isExternalDocumentationElement:()=>ta,isHeaderElement:()=>aa,isHeadersElement:()=>oa,isInfoElement:()=>Xc,isItemsElement:()=>na,isLicenseElement:()=>zc,isOperationElement:()=>ea,isParameterElement:()=>sa,isParametersDefinitionsElement:()=>fa,isPathItemElement:()=>Zc,isPathsElement:()=>Qc,isReferenceElement:()=>ua,isResponseElement:()=>ra,isResponsesDefinitionsElement:()=>da,isResponsesElement:()=>ia,isSchemaElement:()=>ha,isScopesElement:()=>ya,isSecurityDefinitionsElement:()=>ma,isSecurityRequirementElement:()=>ba,isSecuritySchemeElement:()=>va,isSwaggerElement:()=>Kc,isSwaggerVersionElement:()=>Wc,isTagElement:()=>la,isXmlElement:()=>pa});var l={};s.r(l),s.d(l,{detect:()=>du,detectionRegExp:()=>pu,mediaTypes:()=>hu,namespace:()=>gu,parse:()=>mu});var u={};s.r(u),s.d(u,{detect:()=>yu,detectionRegExp:()=>vu,mediaTypes:()=>fu,namespace:()=>xu,parse:()=>bu});var h={};s.r(h),s.d(h,{isBooleanJsonSchemaElement:()=>Np,isCallbackElement:()=>xp,isComponentsElement:()=>Ep,isContactElement:()=>wp,isExampleElement:()=>Sp,isExternalDocumentationElement:()=>jp,isHeaderElement:()=>Ap,isInfoElement:()=>Pp,isLicenseElement:()=>$p,isLinkElement:()=>Op,isMediaTypeElement:()=>Hp,isOpenApi3_0Element:()=>Mp,isOpenapiElement:()=>Bp,isOperationElement:()=>qp,isParameterElement:()=>Cp,isPathItemElement:()=>Rp,isPathsElement:()=>Tp,isReferenceElement:()=>Fp,isRequestBodyElement:()=>kp,isResponseElement:()=>Ip,isResponsesElement:()=>_p,isSchemaElement:()=>Dp,isSecurityRequirementElement:()=>Vp,isSecuritySchemeElement:()=>Lp,isServerElement:()=>Jp,isServerVariableElement:()=>Up,isServersElement:()=>Gp});var p={};s.r(p),s.d(p,{detect:()=>Tf,detectionRegExp:()=>Rf,mediaTypes:()=>Cf,namespace:()=>kf,parse:()=>Ff});var d={};s.r(d),s.d(d,{detect:()=>Df,detectionRegExp:()=>_f,mediaTypes:()=>If,namespace:()=>Vf,parse:()=>Nf});var m={};s.r(m),s.d(m,{isBooleanJsonSchemaElement:()=>jy,isCallbackElement:()=>ty,isComponentsElement:()=>sy,isContactElement:()=>ny,isExampleElement:()=>iy,isExternalDocumentationElement:()=>ry,isHeaderElement:()=>oy,isInfoElement:()=>cy,isJsonSchemaDialectElement:()=>ay,isLicenseElement:()=>ly,isLinkElement:()=>uy,isMediaTypeElement:()=>By,isOpenApi3_1Element:()=>py,isOpenapiElement:()=>hy,isOperationElement:()=>dy,isParameterElement:()=>my,isPathItemElement:()=>gy,isPathItemElementExternal:()=>fy,isPathsElement:()=>vy,isReferenceElement:()=>yy,isReferenceElementExternal:()=>by,isRequestBodyElement:()=>xy,isResponseElement:()=>Ey,isResponsesElement:()=>wy,isSchemaElement:()=>Sy,isSecurityRequirementElement:()=>Ay,isSecuritySchemeElement:()=>Py,isServerElement:()=>$y,isServerVariableElement:()=>Oy});var g={};s.r(g),s.d(g,{detect:()=>Qb,detectionRegExp:()=>Yb,mediaTypes:()=>zb,namespace:()=>ex,parse:()=>Zb});var f={};s.r(f),s.d(f,{detect:()=>nx,detectionRegExp:()=>sx,mediaTypes:()=>tx,namespace:()=>rx,parse:()=>ix});var v={};s.r(v),s.d(v,{isJSONReferenceElement:()=>jo,isJSONSchemaElement:()=>Sx,isLinkDescriptionElement:()=>jx,isMediaElement:()=>Ao});var y={};s.r(y),s.d(y,{isJSONReferenceElement:()=>jo,isJSONSchemaElement:()=>dw,isLinkDescriptionElement:()=>mw});var b={};s.r(b),s.d(b,{isAsyncApi2Element:()=>Ow,isAsyncApiVersionElement:()=>Bw,isBooleanJsonSchemaElement:()=>Jw,isChannelBindingsElement:()=>Mw,isChannelItemElement:()=>qw,isChannelsElement:()=>Cw,isComponentsElement:()=>Rw,isContactElement:()=>Tw,isIdentifierElement:()=>Fw,isInfoElement:()=>kw,isLicenseElement:()=>Iw,isOperationElement:()=>_w,isParameterElement:()=>Dw,isParametersElement:()=>Nw,isReferenceElement:()=>Vw,isSchemaElement:()=>Lw,isSecurityRequirementElement:()=>Uw,isServerBindingsElement:()=>Gw,isServerElement:()=>Hw,isServerVariableElement:()=>Ww,isServersElement:()=>Kw});var x={};s.r(x),s.d(x,{detect:()=>IC,detectionRegExp:()=>kC,mediaTypes:()=>FC,namespace:()=>DC,parse:()=>_C});var E={};s.r(E),s.d(E,{detect:()=>LC,detectionRegExp:()=>VC,mediaTypes:()=>NC,namespace:()=>UC,parse:()=>JC});var w={};s.r(w),s.d(w,{isReferenceLikeElement:()=>xR,isWorkflowsSpecificationExtension:()=>bR});var S={};s.r(S),s.d(S,{isComponentsElement:()=>CT,isCriterionElement:()=>RT,isFailureActionCriteriaElement:()=>IT,isFailureActionElement:()=>kT,isInfoElement:()=>fT,isJSONSchemaElement:()=>_T,isParameterElement:()=>MT,isReferenceElement:()=>TT,isSourceDescriptionElement:()=>vT,isSourceDescriptionsElement:()=>yT,isStepDependsOnElement:()=>OT,isStepElement:()=>PT,isStepOnFailureElement:()=>jT,isStepOnSuccessElement:()=>ST,isStepOutputsElement:()=>AT,isStepParametersElement:()=>$T,isStepSuccessCriteriaElement:()=>BT,isSuccessActionCriteriaElement:()=>FT,isSuccessActionElement:()=>qT,isWorkflowElement:()=>wT,isWorkflowOutputsElement:()=>ET,isWorkflowStepsElement:()=>xT,isWorkflowsElement:()=>bT,isWorkflowsSpecElement:()=>mT,isWorkflowsSpecification1Element:()=>gT});var j={};s.r(j),s.d(j,{detect:()=>DF,detectionRegExp:()=>_F,mediaTypes:()=>IF,namespace:()=>VF,parse:()=>NF});var A={};s.r(A),s.d(A,{detect:()=>UF,detectionRegExp:()=>JF,mediaTypes:()=>LF,namespace:()=>GF,parse:()=>HF});var P={};s.r(P),s.d(P,{isInfoElement:()=>PI,isMainElement:()=>AI,isPrincipleElement:()=>$I,isRequirementElement:()=>OI,isRequirementLevelElement:()=>BI,isScenarioElement:()=>MI,isStandardElement:()=>qI,isStandardIdentifierElement:()=>CI});var $=s(65959),O=s(85618),B=s(32457);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(84335);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(98806);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=(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},se={},ne=e=>null===e||void 0===e?void 0:e.type,ie=e=>"string"===typeof ne(e),re=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),oe=function(e){let{visitFnGetter:t=te,nodeTypeGetter:s=ne,breakSymbol:n=se,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 u=l,h=!1;for(var p=arguments.length,d=new Array(p>1?p-1:0),m=1;m1?o-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:{};const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(l){let u=l,h=!1;for(var p=arguments.length,d=new Array(p>1?p-1:0),m=1;m1?o-1:0),u=1;u2&&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 j=e&&0!==y.length;if(e){if(s=0===E.length?void 0:x.pop(),b=m,m=E.pop(),j)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=u(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 A;if(!Array.isArray(b)){var w;if(!l(b))throw new ee("Invalid AST Node: ".concat(String(b)),{node:b});if(h&&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;A=r.call(t,b,s,m,x,E)}if("function"===typeof(null===(w=A)||void 0===w?void 0:w.then))throw new ee("Async visitor not supported in sync mode",{visitor:t,visitFn:r});if(A===i)break;if(A===o){if(!e){x.pop();continue}}else if(void 0!==A&&(y.push([s,A]),!e)){if(!l(A)){x.pop();continue}b=A}}var S;if(void 0===A&&j&&y.push([s,b]),!e)d={inArray:g,index:v,keys:f,edits:y,prev:d},g=Array.isArray(b),f=g?b:null!==(S=p[a(b)])&&void 0!==S?S:[],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};ce[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:s=null,state:n={},breakSymbol:i=se,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=te,nodeTypeGetter:a=ne,nodePredicate:l=ie,nodeCloneFn:u=re,detectCycles:h=!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=u(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(h&&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 ae=s(25384),le=s(80642);const ue=(e,t)=>"object"===typeof t&&null!==t&&e in t&&"function"===typeof t[e],he=e=>"object"===typeof e&&null!=e&&"_storedElement"in e&&"string"===typeof e._storedElement&&"_content"in e,pe=(e,t)=>"object"===typeof t&&null!==t&&"primitive"in t&&("function"===typeof t.primitive&&t.primitive()===e),de=(e,t)=>"object"===typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof O.wE)&&t.classes.includes(e),me=(e,t)=>"object"===typeof t&&null!==t&&"element"in t&&t.element===e,ge=e=>e({hasMethod:ue,hasBasicElementProps:he,primitiveEq:pe,isElementType:me,hasClass:de}),fe=ge((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Hg||t(e)&&s(void 0,e)})),ve=ge((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Om||t(e)&&s("string",e)})),ye=ge((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.kT||t(e)&&s("number",e)})),be=ge((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Os||t(e)&&s("null",e)})),xe=ge((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.bd||t(e)&&s("boolean",e)})),Ee=ge((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)})),we=ge((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)})),Se=ge((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.Pr||t(e)&&s("member",e)&&n(void 0,e)})),je=ge((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.Ft||t(e)&&s("link",e)&&n(void 0,e)})),Ae=ge((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.sI||t(e)&&s("ref",e)&&n(void 0,e)})),Pe=ge((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof q||t(e)&&s("annotation",e)&&n("array",e)})),$e=ge((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof R||t(e)&&s("comment",e)&&n("string",e)})),Oe=ge((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof k||t(e)&&s("parseResult",e)&&n("array",e)})),Be=ge((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof _||t(e)&&s("sourceMap",e)&&n("array",e)})),Me=e=>me("object",e)||me("array",e)||me("boolean",e)||me("number",e)||me("string",e)||me("null",e)||me("member",e),qe=e=>Be(e.meta.get("sourceMap")),Ce=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!we(s)&&(0,ae.A)((0,le.A)(s.toValue()),e)},Re=(e,t)=>0===e.length||(0,ae.A)((0,le.A)(t.classes.toValue()),e);const Te=class extends ee{constructor(e,t){super(e,t),(0,K.A)(this,"value",void 0),"undefined"!==typeof t&&(this.value=t.value)}};const Fe=class extends Te{};const ke=class extends Te{},Ie=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=fe(t)?Ie(t,n):t,o=fe(i)?Ie(i,n):i,c=new O.KeyValuePair(r,o);return s.set(e,c),c}if(e instanceof O.ot){const t=e=>Ie(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=>Ie(e,n),i=[...e].map(t),r=new O.G6(i);return s.set(e,r),r}if(fe(e)){const t=Ne(e);if(s.set(e,t),e.content)if(fe(e.content))t.content=Ie(e.content,n);else if(e.content instanceof O.KeyValuePair)t.content=Ie(e.content,n);else if(Array.isArray(e.content)){const s=e=>Ie(e,n);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new Fe("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ie.safe=e=>{try{return Ie(e)}catch{return e}};const _e=e=>{const{key:t,value:s}=e;return new O.KeyValuePair(t,s)},De=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Ie(e.meta)),e.attributes.length>0&&(t._attributes=Ie(e.attributes)),fe(e.content)){const s=e.content;t.content=De(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof O.KeyValuePair?t.content=_e(e.content):t.content=e.content;return t},Ne=e=>{if(e instanceof O.KeyValuePair)return _e(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(fe(e))return De(e);throw new ke("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ne.safe=e=>{try{return Ne(e)}catch{return e}};const Ve=e=>Ee(e)?"ObjectElement":we(e)?"ArrayElement":Se(e)?"MemberElement":ve(e)?"StringElement":xe(e)?"BooleanElement":ye(e)?"NumberElement":be(e)?"NullElement":je(e)?"LinkElement":Ae(e)?"RefElement":void 0,Le=e=>fe(e)?Ne(e):re(e),Je=(0,W.A)(Ve,H.A),Ue={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class He{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 Ge=function(e,t){let{keyMap:s=Ue,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ce(e,t,{keyMap:s,nodeTypeGetter:Ve,nodePredicate:Je,nodeCloneFn:Le,...n})};Ge[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:s=Ue,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ce[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:Ve,nodePredicate:Je,nodeCloneFn:Le,...n})};class Ke{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 We=e=>{const t=new Ke;return Ge(e,t),t.result};var Xe=s(34887);const ze=e=>"string"===typeof(null===e||void 0===e?void 0:e.type)?e.type:Ve(e),Ye={EphemeralObject:["content"],EphemeralArray:["content"],...Ue},Qe=function(e,t){let{keyMap:s=Ye,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ge(e,t,{keyMap:s,nodeTypeGetter:ze,nodePredicate:Xe.A,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n})};Qe[Symbol.for("nodejs.util.promisify.custom")]=async function(e){let{keyMap:t=Ye,...s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ge[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:ze,nodePredicate:Xe.A,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s})};const Ze=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 et=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 tt{constructor(){(0,K.A)(this,"ObjectElement",{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,"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 Ze(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 ve(e.href)?e.href.toValue():""}}const st=e=>fe(e)?ve(e)||ye(e)||xe(e)||be(e)?e.toValue():Qe(e,new tt):e;var nt=s(13225),it=s(74442),rt=s(83346);const ot=class extends Z{};const ct=class extends ot{};const at=class extends Array{constructor(){super(...arguments),(0,K.A)(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new ct("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new ct("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new ct("latest method in MediaTypes class is not yet implemented.")}};const lt=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,it.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,rt.A)(e.mediaTypes)&&e.mediaTypes.includes(t)));const s=await this.detectAdapterCandidates(e);return(0,nt.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 at).unknownMediaType;if("undefined"===typeof t.mediaTypes)return(new at).unknownMediaType;if("undefined"===typeof t.detectionRegExp)return t.mediaTypes.latest();const{detectionRegExp:s}=t,n=e.match(s);if(null===n)return(new at).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 lt("Encountered an unexpected error while matching parser adapters against the source.",{source:e,parserOptions:s,cause:n})}if((0,T.A)(t))throw new lt("Source did not match any registered parsers",{source:e,parserOptions:s});try{return t.parse(e,s)}catch(n){throw new lt("Parsing encountered an unexpected error.",{source:e,parserOptions:s,cause:n})}}};var ht=s(98921),pt=s(74921);const dt=globalThis.fetch;(0,it.A)(dt)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),s=0;s{if(null===ft&&null===vt)vt=mt.init().then((()=>mt.Language.load(gt))).then((e=>{const t=new mt;return t.setLanguage(e),t})).finally((()=>{vt=null})),ft=await vt;else if(null===ft&&null!==vt)ft=await vt;else if(null===ft)throw new Z("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return ft.parse(e)};var bt=s(27317),xt=s(53163),Et=s(56146);const wt=()=>({predicates:{...n},namespace:L}),St={toolboxCreator:wt,visitorOptions:{nodeTypeGetter:Ve,exposeEdits:!0}},jt=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===t.length)return e;const n=(0,bt.A)(St,s),{toolboxCreator:i,visitorOptions:r}=n,o=i(),c=t.map((e=>e(o))),a=oe(c.map((0,xt.A)({},"visitor")),{...r});c.forEach((0,Et.A)(["pre"],[]));const l=Ge(e,a,r);return c.forEach((0,Et.A)(["post"],[])),l};jt[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===t.length)return e;const n=(0,bt.A)(St,s),{toolboxCreator:i,visitorOptions:r}=n,o=i(),c=t.map((e=>e(o))),a=oe[Symbol.for("nodejs.util.promisify.custom")],l=Ge[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map((0,xt.A)({},"visitor")),{...r});await Promise.allSettled(c.map((0,Et.A)(["pre"],[])));const h=await l(e,u,r);return await Promise.allSettled(c.map((0,Et.A)(["post"],[]))),h};const At=(e,t)=>{let{Type:s,plugins:n=[]}=t;const i=new s(e);return fe(e)&&(e.meta.length>0&&(i.meta=Ie(e.meta)),e.attributes.length>0&&(i.attributes=Ie(e.attributes))),jt(i,n,{toolboxCreator:wt,visitorOptions:{nodeTypeGetter:Ve}})},Pt=e=>function(t){return At(t,{...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Type:e})};O.Sh.refract=Pt(O.Sh),O.wE.refract=Pt(O.wE),O.Om.refract=Pt(O.Om),O.bd.refract=Pt(O.bd),O.Os.refract=Pt(O.Os),O.kT.refract=Pt(O.kT),O.Ft.refract=Pt(O.Ft),O.sI.refract=Pt(O.sI),q.refract=Pt(q),R.refract=Pt(R),k.refract=Pt(k),_.refract=Pt(_);const $t=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 Ot{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(Me);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 $t&&!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=Ot.toPosition(e);if(null!==n){const[e,t]=n;s.push(e),s.push(t)}s.astNode=e,t.meta.set("sourceMap",s)}}const Bt=Ot;class Mt{constructor(e){(0,K.A)(this,"cursor",void 0),this.cursor=e}document(){return new $t(this.cursor)}object(){return new $t(this.cursor).setFieldName(this.cursor)}array(){return new $t(this.cursor).setFieldName(this.cursor)}pair(){return new $t(this.cursor)}string(){return new $t(this.cursor).setFieldName(this.cursor)}number(){return new $t(this.cursor).setFieldName(this.cursor)}null(){return new $t(this.cursor).setFieldName(this.cursor)}true(){return new $t(this.cursor).setFieldName(this.cursor)}false(){return new $t(this.cursor).setFieldName(this.cursor)}ERROR(){return new $t(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new $t(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Mt(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Mt(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const qt=Mt,Ct={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...Ue},Rt=e=>Oe(e)?"ParseResultElement":fe(e)?Ve(e):ne(e),Tt=e=>fe(e)||ie(e),Ft=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=new Bt,n=e.walk(),i=new qt(n),[r]=Array.from(i);return ce(r,s,{keyMap:Ct,nodeTypeGetter:Rt,nodePredicate:Tt,state:{sourceMap:t}})};class kt{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)(kt,"type","node");const It=kt;const _t=class extends It{};class Dt extends _t{get child(){return(0,nt.A)(this.children)}}(0,K.A)(Dt,"type","document");const Nt=Dt;class Vt extends It{get rootNode(){return(0,nt.A)(this.children)}}(0,K.A)(Vt,"type","parseResult");const Lt=Vt;class Jt{constructor(e){let{row:t,column:s,char:n}=e;(0,K.A)(this,"type",Jt.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)(Jt,"type","point");class Ut{constructor(e){let{start:t,end:s}=e;(0,K.A)(this,"type",Ut.type),(0,K.A)(this,"start",void 0),(0,K.A)(this,"end",void 0),this.start=t,this.end=s}}(0,K.A)(Ut,"type","position");const Ht=Ut;class Gt extends It{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)(Gt,"type","literal");const Kt=Gt,Wt=(e,t)=>null!=t&&"object"===typeof t&&"type"in t&&t.type===e,Xt=e=>Wt("string",e),zt=e=>Wt("false",e),Yt=e=>Wt("true",e),Qt=e=>Wt("null",e),Zt=e=>Wt("number",e),es=e=>Wt("array",e),ts=e=>Wt("object",e),ss=e=>Wt("property",e),ns=e=>Wt("key",e);class is extends _t{get properties(){return this.children.filter(ss)}}(0,K.A)(is,"type","object");const rs=is;class os extends _t{get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>Wt("stringContent",e))(e)||(e=>Wt("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}}(0,K.A)(os,"type","string");const cs=os;class as extends cs{}(0,K.A)(as,"type","key");const ls=as;class us extends _t{get key(){return this.children.find(ns)}get value(){return this.children.find((e=>zt(e)||Yt(e)||Qt(e)||Zt(e)||Xt(e)||es(e)||ts(e)))}}(0,K.A)(us,"type","property");const hs=us;class ps extends _t{get items(){return this.children.filter((e=>zt(e)||Yt(e)||Qt(e)||Zt(e)||Xt(e)||es(e)||ts))}}(0,K.A)(ps,"type","array");const ds=ps;class ms extends _t{constructor(e){let{value:t,...s}=e;super({...s}),(0,K.A)(this,"value",void 0),this.value=t}}(0,K.A)(ms,"type","value");const gs=ms;class fs extends gs{}(0,K.A)(fs,"type","stringContent");const vs=fs;class ys extends gs{}(0,K.A)(ys,"type","number");const bs=ys;class xs extends gs{}(0,K.A)(xs,"type","null");const Es=xs;class ws extends gs{}(0,K.A)(ws,"type","true");const Ss=ws;class js extends gs{}(0,K.A)(js,"type","false");const As=js;class Ps extends It{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)(Ps,"type","error");const $s=Ps,Os={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class Bs{constructor(){(0,K.A)(this,"document",{enter:e=>{const t=Bs.toPosition(e);return new Nt({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Lt({children:[e]})})}static toPosition(e){const t=new Jt({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new Jt({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Ht({start:t,end:s})}enter(e){if(e instanceof $t&&!e.isNamed){const t=Bs.toPosition(e),s=e.type||e.text,{isMissing:n}=e;return new Kt({value:s,position:t,isMissing:n})}}object(e){const t=Bs.toPosition(e);return new rs({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=Bs.toPosition(e),s=e.children.slice(1),{keyNode:n}=e,i=new ls({children:(null===n||void 0===n?void 0:n.children)||[],position:null!=n?Bs.toPosition(n):void 0,isMissing:null!=n&&n.isMissing});return new hs({children:[i,...s],position:t,isMissing:e.isMissing})}array(e){const t=Bs.toPosition(e);return new ds({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=Bs.toPosition(e),s=new vs({value:JSON.parse(e.text)});return new cs({children:[s],position:t,isMissing:e.isMissing})}number(e){const t=Bs.toPosition(e),s=e.text;return new bs({value:s,position:t,isMissing:e.isMissing})}null(e){const t=Bs.toPosition(e),s=e.text;return new Es({value:s,position:t,isMissing:e.isMissing})}true(e){const t=Bs.toPosition(e),s=e.text;return new Ss({value:s,position:t,isMissing:e.isMissing})}false(e){const t=Bs.toPosition(e),s=e.text;return new As({value:s,position:t,isMissing:e.isMissing})}ERROR(e,t,s,n){const i=Bs.toPosition(e),r=new $s({children:e.children,position:i,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?new Lt({children:[r]}):r}}const Ms=Bs,qs={[Lt.type]:["children"],[Nt.type]:["children"],[rs.type]:["children"],[hs.type]:["children"],[ds.type]:["children"],[$s.type]:["children"],...Ue},Cs=e=>Oe(e)?"ParseResultElement":fe(e)?Ve(e):ne(e),Rs=e=>fe(e)||ie(e);const Ts=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(Me);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)}},Fs=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=e.walk(),n=new qt(s),[i]=Array.from(n),r=new Ms,o=new Ts,c=ce(i,r,{keyMap:Os,state:{sourceMap:t}});return ce(c.rootNode,o,{keyMap:qs,nodeTypeGetter:Cs,nodePredicate:Rs,state:{sourceMap:t}})},ks=V(),Is=/(?^\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 _s=new class extends at{latest(){return this[0]}}("application/json"),Ds=async e=>{if(!Is.test(e))return!1;try{return"ERROR"!==(await yt(e)).rootNode.type}catch{return!1}},Ns=async function(e){let{sourceMap:t=!1,syntacticAnalysis:s="direct"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await yt(e);let i;return i="indirect"===s?Fs(n,{sourceMap:t}):Ft(n,{sourceMap:t}),i},Vs=globalThis.fetch;(0,it.A)(Vs)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),s=0;s{if(null===Js&&null===Us)Us=mt.init().then((()=>mt.Language.load(Ls))).then((e=>{const t=new mt;return t.setLanguage(e),t})).finally((()=>{Us=null})),Js=await Us;else if(null===Js&&null!==Us)Js=await Us;else if(null===Js)throw new Z("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return Js.parse(e)};var Gs=s(33178);const Ks=class extends ee{};const Ws=class extends Ks{};const Xs=class extends Ws{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 zs=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});class Ys extends It{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)(Ys,"type","tag");const Qs=Ys;class Zs{constructor(){(0,K.A)(this,"tag",""),this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}}(0,K.A)(Zs,"uri","");const en=Zs;class tn extends en{test(e){return e.tag.kind===zs.Mapping}}(0,K.A)(tn,"uri","tag:yaml.org,2002:map");const sn=tn;class nn extends en{test(e){return e.tag.kind===zs.Sequence}}(0,K.A)(nn,"uri","tag:yaml.org,2002:seq");const rn=nn;class on extends en{}(0,K.A)(on,"uri","tag:yaml.org,2002:str");const cn=on;var an=s(60029),ln=s(26836),un=s(37879),hn=s(38579),pn=s(74818),dn=s(70515),mn=s(30439),gn=s(62658),fn=s(31179),vn=s(34967),yn=s(23738),bn=s(84711),xn=s(29288),En=s(6977),wn=s(26500),Sn=s(89129),jn=s(96323);const An=/^(?