@swagger-api/apidom-parser-adapter-openapi-json-3-1 0.76.1 → 0.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiJson3_1=t():e.apidomParserAdapterOpenApiJson3_1=t()}(self,(()=>(()=>{var e={42:(e,t,r)=>{var n=r(5846);e.exports=n},8385:(e,t,r)=>{var n=r(6174);e.exports=n},5271:(e,t,r)=>{var n=r(7820);e.exports=n},7574:(e,t,r)=>{var n=r(2);e.exports=n},33:(e,t,r)=>{var n=r(5636);e.exports=n},9821:(e,t,r)=>{var n=r(2285);r(7148),r(9031),r(1875),e.exports=n},8008:(e,t,r)=>{var n=r(8535);e.exports=n},164:(e,t,r)=>{var n=r(6042);e.exports=n},6791:(e,t,r)=>{r(4339),r(4242),r(4016),r(8939),r(5454);var n=r(7545);e.exports=n.AggregateError},2089:(e,t,r)=>{r(2276);var n=r(5607);e.exports=n("Array").indexOf},2604:(e,t,r)=>{var n=r(8902),s=r(2089),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||n(i,e)&&t===i.indexOf?s:t}},3512:(e,t,r)=>{r(297);var n=r(7545).Object,s=e.exports=function(e,t,r){return n.defineProperty(e,t,r)};n.defineProperty.sham&&(s.sham=!0)},2921:(e,t,r)=>{r(6187);var n=r(7545);e.exports=n.Object.getOwnPropertySymbols},8651:(e,t,r)=>{r(2647);var n=r(7545);e.exports=n.Object.keys},5008:(e,t,r)=>{r(9106),r(6663),r(6187),r(9781),r(492),r(6681),r(9594),r(3665),r(9017),r(1250),r(9786),r(503),r(6565),r(9322),r(3610),r(6886),r(3514),r(8671),r(8556),r(1367);var n=r(7545);e.exports=n.Symbol},994:(e,t,r)=>{r(8939),r(6663),r(5454),r(3665);var n=r(9207);e.exports=n.f("iterator")},290:(e,t,r)=>{r(2432),r(3610);var n=r(9207);e.exports=n.f("toPrimitive")},6762:(e,t,r)=>{e.exports=r(3028)},3028:(e,t,r)=>{r(2752);var n=r(42);e.exports=n},2747:(e,t,r)=>{var n=r(8385);e.exports=n},229:(e,t,r)=>{var n=r(5271);e.exports=n},5090:(e,t,r)=>{var n=r(7574);e.exports=n},5483:(e,t,r)=>{var n=r(33);e.exports=n},2185:(e,t,r)=>{var n=r(9821);r(177),r(3346),r(3520),r(6658),r(8658),r(2725),r(1806),r(4212),r(4592),r(6680),e.exports=n},9982:(e,t,r)=>{var n=r(8008);e.exports=n},8241:(e,t,r)=>{var n=r(164);e.exports=n},6235:(e,t,r)=>{var n=r(6447),s=r(9288),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},7757:(e,t,r)=>{var n=r(6447),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+s(e)+" as a prototype")}},7423:e=>{e.exports=function(){}},1138:(e,t,r)=>{var n=r(5744),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},8180:(e,t,r)=>{var n=r(101),s=r(7739),i=r(4104),o=function(e){return function(t,r,o){var c,a=n(t),u=i(a),l=s(o,u);if(e&&r!=r){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},454:(e,t,r)=>{var n=r(8043),s=r(4120),i=r(2202),o=r(1795),c=r(4104),a=r(1321),u=s([].push),l=function(e){var t=1==e,r=2==e,s=3==e,l=4==e,p=6==e,m=7==e,h=5==e||p;return function(d,f,y,_){for(var g,b,v=o(d),E=i(v),w=n(f,y),j=c(E),x=0,O=_||a,S=t?O(d,j):r||m?O(d,0):void 0;j>x;x++)if((h||x in E)&&(b=w(g=E[x],x,v),e))if(t)S[x]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return x;case 2:u(S,g)}else switch(e){case 4:return!1;case 7:u(S,g)}return p?-1:s||l?l:S}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},242:(e,t,r)=>{var n=r(6192),s=r(8182),i=r(4218),o=s("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},424:(e,t,r)=>{"use strict";var n=r(6192);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},1923:(e,t,r)=>{var n=r(7739),s=r(4104),i=r(9361),o=Array,c=Math.max;e.exports=function(e,t,r){for(var a=s(e),u=n(t,a),l=n(void 0===r?a:r,a),p=o(c(l-u,0)),m=0;u<l;u++,m++)i(p,m,e[u]);return p.length=m,p}},3096:(e,t,r)=>{var n=r(4120);e.exports=n([].slice)},3712:(e,t,r)=>{var n=r(4770),s=r(2091),i=r(5744),o=r(8182)("species"),c=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(s(t)&&(t===c||n(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?c:t}},1321:(e,t,r)=>{var n=r(3712);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},9272:(e,t,r)=>{var n=r(4120),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},4696:(e,t,r)=>{var n=r(3471),s=r(6447),i=r(9272),o=r(8182)("toStringTag"),c=Object,a="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"==(n=i(t))&&s(t.callee)?"Arguments":n}},7987:(e,t,r)=>{var n=r(4500),s=r(3011),i=r(5141),o=r(2760);e.exports=function(e,t,r){for(var c=s(t),a=o.f,u=i.f,l=0;l<c.length;l++){var p=c[l];n(e,p)||r&&n(r,p)||a(e,p,u(t,p))}}},4635:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7271:e=>{e.exports=function(e,t){return{value:e,done:t}}},8711:(e,t,r)=>{var n=r(69),s=r(2760),i=r(774);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},774:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9361:(e,t,r)=>{"use strict";var n=r(77),s=r(2760),i=r(774);e.exports=function(e,t,r){var o=n(t);o in e?s.f(e,o,i(0,r)):e[o]=r}},2807:(e,t,r)=>{var n=r(2760);e.exports=function(e,t,r){return n.f(e,t,r)}},9362:(e,t,r)=>{var n=r(8711);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},5098:(e,t,r)=>{var n=r(8576),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},69:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},7449:(e,t,r)=>{var n=r(8576),s=r(5744),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9425:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},7365:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8989:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(e,t,r)=>{var n,s,i=r(8576),o=r(8989),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5607:(e,t,r)=>{var n=r(7545);e.exports=function(e){return n[e+"Prototype"]}},2952:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4503:(e,t,r)=>{var n=r(4120),s=Error,i=n("".replace),o=String(s("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},8266:(e,t,r)=>{var n=r(8711),s=r(4503),i=r(274),o=Error.captureStackTrace;e.exports=function(e,t,r,c){i&&(o?o(e,t):n(e,"stack",s(r,c)))}},274:(e,t,r)=>{var n=r(6192),s=r(774);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},3085:(e,t,r)=>{"use strict";var n=r(8576),s=r(6298),i=r(4914),o=r(6447),c=r(5141).f,a=r(9245),u=r(7545),l=r(8043),p=r(8711),m=r(4500),h=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,d,f,y,_,g,b,v,E=e.target,w=e.global,j=e.stat,x=e.proto,O=w?n:j?n[E]:(n[E]||{}).prototype,S=w?u:u[E]||p(u,E,{})[E],P=S.prototype;for(f in t)s=!(r=a(w?f:E+(j?".":"#")+f,e.forced))&&O&&m(O,f),_=S[f],s&&(g=e.dontCallGetSet?(v=c(O,f))&&v.value:O[f]),y=s&&g?g:t[f],s&&typeof _==typeof y||(b=e.bind&&s?l(y,n):e.wrap&&s?h(y):x&&o(y)?i(y):y,(e.sham||y&&y.sham||_&&_.sham)&&p(b,"sham",!0),p(S,f,b),x&&(m(u,d=E+"Prototype")||p(u,d,{}),p(u[d],f,y),e.real&&P&&(r||!P[f])&&p(P,f,y)))}},6192:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6298:(e,t,r)=>{var n=r(2784),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},8043:(e,t,r)=>{var n=r(4914),s=r(6235),i=r(2784),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},2784:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8922:(e,t,r)=>{var n=r(2784),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},2282:(e,t,r)=>{var n=r(69),s=r(4500),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},6419:(e,t,r)=>{var n=r(4120),s=r(6235);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},4914:(e,t,r)=>{var n=r(9272),s=r(4120);e.exports=function(e){if("Function"===n(e))return s(e)}},4120:(e,t,r)=>{var n=r(2784),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},150:(e,t,r)=>{var n=r(7545),s=r(8576),i=r(6447),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},8703:(e,t,r)=>{var n=r(4696),s=r(5037),i=r(5646),o=r(7771),c=r(8182)("iterator");e.exports=function(e){if(!i(e))return s(e,c)||s(e,"@@iterator")||o[n(e)]}},1669:(e,t,r)=>{var n=r(8922),s=r(6235),i=r(1138),o=r(9288),c=r(8703),a=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(s(r))return i(n(r,e));throw a(o(e)+" is not iterable")}},9202:(e,t,r)=>{var n=r(4120),s=r(4770),i=r(6447),o=r(9272),c=r(4845),a=n([].push);e.exports=function(e){if(i(e))return e;if(s(e)){for(var t=e.length,r=[],n=0;n<t;n++){var u=e[n];"string"==typeof u?a(r,u):"number"!=typeof u&&"Number"!=o(u)&&"String"!=o(u)||a(r,c(u))}var l=r.length,p=!0;return function(e,t){if(p)return p=!1,t;if(s(this))return t;for(var n=0;n<l;n++)if(r[n]===e)return t}}}},5037:(e,t,r)=>{var n=r(6235),s=r(5646);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8576:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},4500:(e,t,r)=>{var n=r(4120),s=r(1795),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},4535:e=>{e.exports={}},7403:(e,t,r)=>{var n=r(150);e.exports=n("document","documentElement")},188:(e,t,r)=>{var n=r(69),s=r(6192),i=r(7449);e.exports=!n&&!s((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(e,t,r)=>{var n=r(4120),s=r(6192),i=r(9272),o=Object,c=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?c(e,""):o(e)}:o},2643:(e,t,r)=>{var n=r(6447),s=r(5744),i=r(4469);e.exports=function(e,t,r){var o,c;return i&&n(o=t.constructor)&&o!==r&&s(c=o.prototype)&&c!==r.prototype&&i(e,c),e}},9516:(e,t,r)=>{var n=r(4120),s=r(6447),i=r(6434),o=n(Function.toString);s(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},273:(e,t,r)=>{var n=r(5744),s=r(8711);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},3326:(e,t,r)=>{var n,s,i,o=r(5278),c=r(8576),a=r(5744),u=r(8711),l=r(4500),p=r(6434),m=r(9766),h=r(4535),d="Object already initialized",f=c.TypeError,y=c.WeakMap;if(o||p.state){var _=p.state||(p.state=new y);_.get=_.get,_.has=_.has,_.set=_.set,n=function(e,t){if(_.has(e))throw f(d);return t.facade=e,_.set(e,t),t},s=function(e){return _.get(e)||{}},i=function(e){return _.has(e)}}else{var g=m("state");h[g]=!0,n=function(e,t){if(l(e,g))throw f(d);return t.facade=e,u(e,g,t),t},s=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=s(t)).type!==e)throw f("Incompatible receiver, "+e+" required");return r}}}},6109:(e,t,r)=>{var n=r(8182),s=r(7771),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},4770:(e,t,r)=>{var n=r(9272);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6447:(e,t,r)=>{var n=r(8382),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},2091:(e,t,r)=>{var n=r(4120),s=r(6192),i=r(6447),o=r(4696),c=r(150),a=r(9516),u=function(){},l=[],p=c("Reflect","construct"),m=/^\s*(?:class|function)\b/,h=n(m.exec),d=!m.exec(u),f=function(e){if(!i(e))return!1;try{return p(u,l,e),!0}catch(e){return!1}},y=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(m,a(e))}catch(e){return!0}};y.sham=!0,e.exports=!p||s((function(){var e;return f(f.call)||!f(Object)||!f((function(){e=!0}))||e}))?y:f},9245:(e,t,r)=>{var n=r(6192),s=r(6447),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r==l||r!=u&&(s(t)?n(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},5646:e=>{e.exports=function(e){return null==e}},5744:(e,t,r)=>{var n=r(6447),s=r(8382),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},5546:e=>{e.exports=!0},3236:(e,t,r)=>{var n=r(150),s=r(6447),i=r(8902),o=r(615),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,c(e))}},3442:(e,t,r)=>{var n=r(8043),s=r(8922),i=r(1138),o=r(9288),c=r(6109),a=r(4104),u=r(8902),l=r(1669),p=r(8703),m=r(6639),h=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;e.exports=function(e,t,r){var y,_,g,b,v,E,w,j=r&&r.that,x=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),S=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),A=n(t,j),F=function(e){return y&&m(y,"normal",e),new d(!0,e)},$=function(e){return x?(i(e),P?A(e[0],e[1],F):A(e[0],e[1])):P?A(e,F):A(e)};if(O)y=e.iterator;else if(S)y=e;else{if(!(_=p(e)))throw h(o(e)+" is not iterable");if(c(_)){for(g=0,b=a(e);b>g;g++)if((v=$(e[g]))&&u(f,v))return v;return new d(!1)}y=l(e,_)}for(E=O?e.next:y.next;!(w=s(E,y)).done;){try{v=$(w.value)}catch(e){m(y,"throw",e)}if("object"==typeof v&&v&&u(f,v))return v}return new d(!1)}},6639:(e,t,r)=>{var n=r(8922),s=r(1138),i=r(5037);e.exports=function(e,t,r){var o,c;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw r;if(c)throw o;return s(o),r}},5695:(e,t,r)=>{"use strict";var n=r(4413).IteratorPrototype,s=r(2853),i=r(774),o=r(1284),c=r(7771),a=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),c[l]=a,e}},5297:(e,t,r)=>{"use strict";var n=r(3085),s=r(8922),i=r(5546),o=r(2282),c=r(6447),a=r(5695),u=r(9341),l=r(4469),p=r(1284),m=r(8711),h=r(9362),d=r(8182),f=r(7771),y=r(4413),_=o.PROPER,g=o.CONFIGURABLE,b=y.IteratorPrototype,v=y.BUGGY_SAFARI_ITERATORS,E=d("iterator"),w="keys",j="values",x="entries",O=function(){return this};e.exports=function(e,t,r,o,d,y,S){a(r,t,o);var P,A,F,$=function(e){if(e===d&&N)return N;if(!v&&e in I)return I[e];switch(e){case w:case j:case x:return function(){return new r(this,e)}}return function(){return new r(this)}},k=t+" Iterator",R=!1,I=e.prototype,M=I[E]||I["@@iterator"]||d&&I[d],N=!v&&M||$(d),T="Array"==t&&I.entries||M;if(T&&(P=u(T.call(new e)))!==Object.prototype&&P.next&&(i||u(P)===b||(l?l(P,b):c(P[E])||h(P,E,O)),p(P,k,!0,!0),i&&(f[k]=O)),_&&d==j&&M&&M.name!==j&&(!i&&g?m(I,"name",j):(R=!0,N=function(){return s(M,this)})),d)if(A={values:$(j),keys:y?N:$(w),entries:$(x)},S)for(F in A)(v||R||!(F in I))&&h(I,F,A[F]);else n({target:t,proto:!0,forced:v||R},A);return i&&!S||I[E]===N||h(I,E,N,{name:d}),f[t]=N,A}},4413:(e,t,r)=>{"use strict";var n,s,i,o=r(6192),c=r(6447),a=r(5744),u=r(2853),l=r(9341),p=r(9362),m=r(8182),h=r(5546),d=m("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):f=!0),!a(n)||o((function(){var e={};return n[d].call(e)!==e}))?n={}:h&&(n=u(n)),c(n[d])||p(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},7771:e=>{e.exports={}},4104:(e,t,r)=>{var n=r(8445);e.exports=function(e){return n(e.length)}},7679:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},6016:(e,t,r)=>{var n=r(4845);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},2853:(e,t,r)=>{var n,s=r(1138),i=r(1187),o=r(2952),c=r(4535),a=r(7403),u=r(7449),l=r(9766),p="prototype",m="script",h=l("IE_PROTO"),d=function(){},f=function(e){return"<"+m+">"+e+"</"+m+">"},y=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;_="undefined"!=typeof document?document.domain&&n?y(n):(t=u("iframe"),r="java"+m+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete _[p][o[s]];return _()};c[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[p]=s(e),r=new d,d[p]=null,r[h]=e):r=_(),void 0===t?r:i.f(r,t)}},1187:(e,t,r)=>{var n=r(69),s=r(9600),i=r(2760),o=r(1138),c=r(101),a=r(7653);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=c(t),s=a(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},2760:(e,t,r)=>{var n=r(69),s=r(188),i=r(9600),o=r(1138),c=r(77),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",m="configurable",h="writable";t.f=n?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:m in r?r[m]:n[m],enumerable:p in r?r[p]:n[p],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=c(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},5141:(e,t,r)=>{var n=r(69),s=r(8922),i=r(6007),o=r(774),c=r(101),a=r(77),u=r(4500),l=r(188),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=c(e),t=a(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},4052:(e,t,r)=>{var n=r(9272),s=r(101),i=r(2092).f,o=r(1923),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return c&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return o(c)}}(e):i(s(e))}},2092:(e,t,r)=>{var n=r(7934),s=r(2952).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},4750:(e,t)=>{t.f=Object.getOwnPropertySymbols},9341:(e,t,r)=>{var n=r(4500),s=r(6447),i=r(1795),o=r(9766),c=r(4635),a=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=i(e);if(n(t,a))return t[a];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},8902:(e,t,r)=>{var n=r(4120);e.exports=n({}.isPrototypeOf)},7934:(e,t,r)=>{var n=r(4120),s=r(4500),i=r(101),o=r(8180).indexOf,c=r(4535),a=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(c,r)&&s(n,r)&&a(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||a(l,r));return l}},7653:(e,t,r)=>{var n=r(7934),s=r(2952);e.exports=Object.keys||function(e){return n(e,s)}},6007:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},4469:(e,t,r)=>{var n=r(6419),s=r(1138),i=r(7757);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},158:(e,t,r)=>{"use strict";var n=r(3471),s=r(4696);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},380:(e,t,r)=>{var n=r(8922),s=r(6447),i=r(5744),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&s(r=e.toString)&&!i(c=n(r,e)))return c;if(s(r=e.valueOf)&&!i(c=n(r,e)))return c;if("string"!==t&&s(r=e.toString)&&!i(c=n(r,e)))return c;throw o("Can't convert object to primitive value")}},3011:(e,t,r)=>{var n=r(150),s=r(4120),i=r(2092),o=r(4750),c=r(1138),a=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(c(e)),r=o.f;return r?a(t,r(e)):t}},7545:e=>{e.exports={}},7656:(e,t,r)=>{var n=r(2760).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},3209:(e,t,r)=>{var n=r(5646),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},1284:(e,t,r)=>{var n=r(3471),s=r(2760).f,i=r(8711),o=r(4500),c=r(158),a=r(8182)("toStringTag");e.exports=function(e,t,r,u){if(e){var l=r?e:e.prototype;o(l,a)||s(l,a,{configurable:!0,value:t}),u&&!n&&i(l,"toString",c)}}},9766:(e,t,r)=>{var n=r(8717),s=r(2759),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},6434:(e,t,r)=>{var n=r(8576),s=r(5098),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8717:(e,t,r)=>{var n=r(5546),s=r(6434);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(e,t,r)=>{var n=r(4120),s=r(1941),i=r(4845),o=r(3209),c=n("".charAt),a=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,p=i(o(t)),m=s(r),h=p.length;return m<0||m>=h?e?"":void 0:(n=a(p,m))<55296||n>56319||m+1===h||(l=a(p,m+1))<56320||l>57343?e?c(p,m):n:e?u(p,m,m+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},6770:(e,t,r)=>{var n=r(4218),s=r(6192),i=r(8576).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3407:(e,t,r)=>{var n=r(8922),s=r(150),i=r(8182),o=r(9362);e.exports=function(){var e=s("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,c=i("toPrimitive");t&&!t[c]&&o(t,c,(function(e){return n(r,this)}),{arity:1})}},8743:(e,t,r)=>{var n=r(150),s=r(4120),i=n("Symbol"),o=i.keyFor,c=s(i.prototype.valueOf);e.exports=i.isRegisteredSymbol||function(e){try{return void 0!==o(c(e))}catch(e){return!1}}},5128:(e,t,r)=>{for(var n=r(8717),s=r(150),i=r(4120),o=r(3236),c=r(8182),a=s("Symbol"),u=a.isWellKnownSymbol,l=s("Object","getOwnPropertyNames"),p=i(a.prototype.valueOf),m=n("wks"),h=0,d=l(a),f=d.length;h<f;h++)try{var y=d[h];o(a[y])&&c(y)}catch(e){}e.exports=function(e){if(u&&u(e))return!0;try{for(var t=p(e),r=0,n=l(m),s=n.length;r<s;r++)if(m[n[r]]==t)return!0}catch(e){}return!1}},31:(e,t,r)=>{var n=r(6770);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},7739:(e,t,r)=>{var n=r(1941),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},101:(e,t,r)=>{var n=r(2202),s=r(3209);e.exports=function(e){return n(s(e))}},1941:(e,t,r)=>{var n=r(7679);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8445:(e,t,r)=>{var n=r(1941),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},1795:(e,t,r)=>{var n=r(3209),s=Object;e.exports=function(e){return s(n(e))}},7888:(e,t,r)=>{var n=r(8922),s=r(5744),i=r(3236),o=r(5037),c=r(380),a=r(8182),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,a=o(e,l);if(a){if(void 0===t&&(t="default"),r=n(a,e,t),!s(r)||i(r))return r;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},77:(e,t,r)=>{var n=r(7888),s=r(3236);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},3471:(e,t,r)=>{var n={};n[r(8182)("toStringTag")]="z",e.exports="[object z]"===String(n)},4845:(e,t,r)=>{var n=r(4696),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},9288:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},2759:(e,t,r)=>{var n=r(4120),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},615:(e,t,r)=>{var n=r(6770);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(e,t,r)=>{var n=r(69),s=r(6192);e.exports=n&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(e,t,r)=>{var n=r(8576),s=r(6447),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8332:(e,t,r)=>{var n=r(7545),s=r(4500),i=r(9207),o=r(2760).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});s(t,e)||o(t,e,{value:i.f(e)})}},9207:(e,t,r)=>{var n=r(8182);t.f=n},8182:(e,t,r)=>{var n=r(8576),s=r(8717),i=r(4500),o=r(2759),c=r(6770),a=r(615),u=n.Symbol,l=s("wks"),p=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},426:(e,t,r)=>{"use strict";var n=r(150),s=r(4500),i=r(8711),o=r(8902),c=r(4469),a=r(7987),u=r(7656),l=r(2643),p=r(6016),m=r(273),h=r(8266),d=r(69),f=r(5546);e.exports=function(e,t,r,y){var _="stackTraceLimit",g=y?2:1,b=e.split("."),v=b[b.length-1],E=n.apply(null,b);if(E){var w=E.prototype;if(!f&&s(w,"cause")&&delete w.cause,!r)return E;var j=n("Error"),x=t((function(e,t){var r=p(y?t:e,void 0),n=y?new E(e):new E;return void 0!==r&&i(n,"message",r),h(n,x,n.stack,2),this&&o(w,this)&&l(n,this,x),arguments.length>g&&m(n,arguments[g]),n}));if(x.prototype=w,"Error"!==v?c?c(x,j):a(x,j,{name:!0}):d&&_ in E&&(u(x,E,_),u(x,E,"prepareStackTrace")),a(x,E),!f)try{w.name!==v&&i(w,"name",v),w.constructor=x}catch(e){}return x}}},4016:(e,t,r)=>{var n=r(3085),s=r(150),i=r(6298),o=r(6192),c=r(426),a="AggregateError",u=s(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3820:(e,t,r)=>{"use strict";var n=r(3085),s=r(8902),i=r(9341),o=r(4469),c=r(7987),a=r(2853),u=r(8711),l=r(774),p=r(273),m=r(8266),h=r(3442),d=r(6016),f=r(8182)("toStringTag"),y=Error,_=[].push,g=function(e,t){var r,n=s(b,this);o?r=o(y(),n?i(this):b):(r=n?this:a(b),u(r,f,"Error")),void 0!==t&&u(r,"message",d(t)),m(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var c=[];return h(e,_,{that:c}),u(r,"errors",c),r};o?o(g,y):c(g,y,{name:!0});var b=g.prototype=a(y.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},4242:(e,t,r)=>{r(3820)},9106:(e,t,r)=>{"use strict";var n=r(3085),s=r(6192),i=r(4770),o=r(5744),c=r(1795),a=r(4104),u=r(9425),l=r(9361),p=r(1321),m=r(242),h=r(8182),d=r(4218),f=h("isConcatSpreadable"),y=d>=51||!s((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),_=function(e){if(!o(e))return!1;var t=e[f];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!y||!m("concat")},{concat:function(e){var t,r,n,s,i,o=c(this),m=p(o,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(_(i=-1===t?o:arguments[t]))for(s=a(i),u(h+s),r=0;r<s;r++,h++)r in i&&l(m,h,i[r]);else u(h+1),l(m,h++,i);return m.length=h,m}})},2276:(e,t,r)=>{"use strict";var n=r(3085),s=r(4914),i=r(8180).indexOf,o=r(424),c=s([].indexOf),a=!!c&&1/c([1],1,-0)<0;n({target:"Array",proto:!0,forced:a||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return a?c(this,e,t)||0:i(this,e,t)}})},8939:(e,t,r)=>{"use strict";var n=r(101),s=r(7423),i=r(7771),o=r(3326),c=r(2760).f,a=r(5297),u=r(7271),l=r(5546),p=r(69),m="Array Iterator",h=o.set,d=o.getterFor(m);e.exports=a(Array,"Array",(function(e,t){h(this,{type:m,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var f=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==f.name)try{c(f,"name",{value:"values"})}catch(e){}},2432:()=>{},4339:(e,t,r)=>{var n=r(3085),s=r(8576),i=r(6298),o=r(426),c="WebAssembly",a=s[c],u=7!==Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(e,t){if(a&&a[e]){var r={};r[e]=o(c+"."+e,t,u),n({target:c,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},9704:(e,t,r)=>{var n=r(3085),s=r(150),i=r(6298),o=r(8922),c=r(4120),a=r(6192),u=r(6447),l=r(3236),p=r(3096),m=r(9202),h=r(6770),d=String,f=s("JSON","stringify"),y=c(/./.exec),_=c("".charAt),g=c("".charCodeAt),b=c("".replace),v=c(1..toString),E=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,x=!h||a((function(){var e=s("Symbol")();return"[null]"!=f([e])||"{}"!=f({a:e})||"{}"!=f(Object(e))})),O=a((function(){return'"\\udf06\\ud834"'!==f("\udf06\ud834")||'"\\udead"'!==f("\udead")})),S=function(e,t){var r=p(arguments),n=m(t);if(u(n)||void 0!==e&&!l(e))return r[1]=function(e,t){if(u(n)&&(t=o(n,this,d(e),t)),!l(t))return t},i(f,null,r)},P=function(e,t,r){var n=_(r,t-1),s=_(r,t+1);return y(w,e)&&!y(j,s)||y(j,e)&&!y(w,n)?"\\u"+v(g(e,0),16):e};f&&n({target:"JSON",stat:!0,arity:3,forced:x||O},{stringify:function(e,t,r){var n=p(arguments),s=i(x?S:f,null,n);return O&&"string"==typeof s?b(s,E,P):s}})},8671:(e,t,r)=>{var n=r(8576);r(1284)(n.JSON,"JSON",!0)},8556:()=>{},297:(e,t,r)=>{var n=r(3085),s=r(69),i=r(2760).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!s},{defineProperty:i})},7895:(e,t,r)=>{var n=r(3085),s=r(6770),i=r(6192),o=r(4750),c=r(1795);n({target:"Object",stat:!0,forced:!s||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(c(e)):[]}})},2647:(e,t,r)=>{var n=r(3085),s=r(1795),i=r(7653);n({target:"Object",stat:!0,forced:r(6192)((function(){i(1)}))},{keys:function(e){return i(s(e))}})},6663:()=>{},1367:()=>{},5454:(e,t,r)=>{"use strict";var n=r(863).charAt,s=r(4845),i=r(3326),o=r(5297),c=r(7271),a="String Iterator",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?c(void 0,!0):(e=n(r,s),t.index+=e.length,c(e,!1))}))},9781:(e,t,r)=>{r(8332)("asyncIterator")},9351:(e,t,r)=>{"use strict";var n=r(3085),s=r(8576),i=r(8922),o=r(4120),c=r(5546),a=r(69),u=r(6770),l=r(6192),p=r(4500),m=r(8902),h=r(1138),d=r(101),f=r(77),y=r(4845),_=r(774),g=r(2853),b=r(7653),v=r(2092),E=r(4052),w=r(4750),j=r(5141),x=r(2760),O=r(1187),S=r(6007),P=r(9362),A=r(2807),F=r(8717),$=r(9766),k=r(4535),R=r(2759),I=r(8182),M=r(9207),N=r(8332),T=r(3407),C=r(1284),q=r(3326),D=r(454).forEach,L=$("hidden"),B="Symbol",V="prototype",U=q.set,z=q.getterFor(B),G=Object[V],J=s.Symbol,W=J&&J[V],H=s.TypeError,K=s.QObject,Z=j.f,X=x.f,Q=E.f,Y=S.f,ee=o([].push),te=F("symbols"),re=F("op-symbols"),ne=F("wks"),se=!K||!K[V]||!K[V].findChild,ie=a&&l((function(){return 7!=g(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Z(G,t);n&&delete G[t],X(e,t,r),n&&e!==G&&X(G,t,n)}:X,oe=function(e,t){var r=te[e]=g(W);return U(r,{type:B,tag:e,description:t}),a||(r.description=t),r},ce=function(e,t,r){e===G&&ce(re,t,r),h(e);var n=f(t);return h(r),p(te,n)?(r.enumerable?(p(e,L)&&e[L][n]&&(e[L][n]=!1),r=g(r,{enumerable:_(0,!1)})):(p(e,L)||X(e,L,_(1,{})),e[L][n]=!0),ie(e,n,r)):X(e,n,r)},ae=function(e,t){h(e);var r=d(t),n=b(r).concat(me(r));return D(n,(function(t){a&&!i(ue,r,t)||ce(e,t,r[t])})),e},ue=function(e){var t=f(e),r=i(Y,this,t);return!(this===G&&p(te,t)&&!p(re,t))&&(!(r||!p(this,t)||!p(te,t)||p(this,L)&&this[L][t])||r)},le=function(e,t){var r=d(e),n=f(t);if(r!==G||!p(te,n)||p(re,n)){var s=Z(r,n);return!s||!p(te,n)||p(r,L)&&r[L][n]||(s.enumerable=!0),s}},pe=function(e){var t=Q(d(e)),r=[];return D(t,(function(e){p(te,e)||p(k,e)||ee(r,e)})),r},me=function(e){var t=e===G,r=Q(t?re:d(e)),n=[];return D(r,(function(e){!p(te,e)||t&&!p(G,e)||ee(n,te[e])})),n};u||(P(W=(J=function(){if(m(W,this))throw H("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=R(e),r=function(e){this===G&&i(r,re,e),p(this,L)&&p(this[L],t)&&(this[L][t]=!1),ie(this,t,_(1,e))};return a&&se&&ie(G,t,{configurable:!0,set:r}),oe(t,e)})[V],"toString",(function(){return z(this).tag})),P(J,"withoutSetter",(function(e){return oe(R(e),e)})),S.f=ue,x.f=ce,O.f=ae,j.f=le,v.f=E.f=pe,w.f=me,M.f=function(e){return oe(I(e),e)},a&&(A(W,"description",{configurable:!0,get:function(){return z(this).description}}),c||P(G,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:J}),D(b(ne),(function(e){N(e)})),n({target:B,stat:!0,forced:!u},{useSetter:function(){se=!0},useSimple:function(){se=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!a},{create:function(e,t){return void 0===t?g(e):ae(g(e),t)},defineProperty:ce,defineProperties:ae,getOwnPropertyDescriptor:le}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe}),T(),C(J,B),k[L]=!0},492:()=>{},9148:(e,t,r)=>{var n=r(3085),s=r(150),i=r(4500),o=r(4845),c=r(8717),a=r(31),u=c("string-to-symbol-registry"),l=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!a},{for:function(e){var t=o(e);if(i(u,t))return u[t];var r=s("Symbol")(t);return u[t]=r,l[r]=t,r}})},6681:(e,t,r)=>{r(8332)("hasInstance")},9594:(e,t,r)=>{r(8332)("isConcatSpreadable")},3665:(e,t,r)=>{r(8332)("iterator")},6187:(e,t,r)=>{r(9351),r(9148),r(5991),r(9704),r(7895)},5991:(e,t,r)=>{var n=r(3085),s=r(4500),i=r(3236),o=r(9288),c=r(8717),a=r(31),u=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!a},{keyFor:function(e){if(!i(e))throw TypeError(o(e)+" is not a symbol");if(s(u,e))return u[e]}})},1250:(e,t,r)=>{r(8332)("matchAll")},9017:(e,t,r)=>{r(8332)("match")},9786:(e,t,r)=>{r(8332)("replace")},503:(e,t,r)=>{r(8332)("search")},6565:(e,t,r)=>{r(8332)("species")},9322:(e,t,r)=>{r(8332)("split")},3610:(e,t,r)=>{var n=r(8332),s=r(3407);n("toPrimitive"),s()},6886:(e,t,r)=>{var n=r(150),s=r(8332),i=r(1284);s("toStringTag"),i(n("Symbol"),"Symbol")},3514:(e,t,r)=>{r(8332)("unscopables")},2752:(e,t,r)=>{r(4242)},7148:(e,t,r)=>{var n=r(8182),s=r(2760).f,i=n("metadata"),o=Function.prototype;void 0===o[i]&&s(o,i,{value:null})},177:(e,t,r)=>{r(8332)("asyncDispose")},9031:(e,t,r)=>{r(8332)("dispose")},3346:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0},{isRegisteredSymbol:r(8743)})},2725:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:r(8743)})},3520:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:r(5128)})},1806:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:r(5128)})},6658:(e,t,r)=>{r(8332)("matcher")},4212:(e,t,r)=>{r(8332)("metadataKey")},1875:(e,t,r)=>{r(8332)("metadata")},8658:(e,t,r)=>{r(8332)("observable")},4592:(e,t,r)=>{r(8332)("patternMatch")},6680:(e,t,r)=>{r(8332)("replaceAll")},162:(e,t,r)=>{r(8939);var n=r(7365),s=r(8576),i=r(4696),o=r(8711),c=r(7771),a=r(8182)("toStringTag");for(var u in n){var l=s[u],p=l&&l.prototype;p&&i(p)!==a&&o(p,a,u),c[u]=c.Array}},5846:(e,t,r)=>{r(2752);var n=r(6791);r(162),e.exports=n},6174:(e,t,r)=>{var n=r(2604);e.exports=n},7820:(e,t,r)=>{var n=r(3512);e.exports=n},2:(e,t,r)=>{var n=r(2921);e.exports=n},5636:(e,t,r)=>{var n=r(8651);e.exports=n},2285:(e,t,r)=>{var n=r(5008);r(162),e.exports=n},8535:(e,t,r)=>{var n=r(994);r(162),e.exports=n},6042:(e,t,r)=>{var n=r(290);e.exports=n},9515:(e,t,r)=>{var n=r(8761)(r(7772),"DataView");e.exports=n},9612:(e,t,r)=>{var n=r(2118),s=r(6909),i=r(8138),o=r(4174),c=r(7942);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},235:(e,t,r)=>{var n=r(3945),s=r(1846),i=r(8028),o=r(2344),c=r(4769);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},326:(e,t,r)=>{var n=r(8761)(r(7772),"Map");e.exports=n},6738:(e,t,r)=>{var n=r(2411),s=r(6417),i=r(6928),o=r(9493),c=r(4150);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1985:(e,t,r)=>{var n=r(8761)(r(7772),"Promise");e.exports=n},2143:(e,t,r)=>{var n=r(8761)(r(7772),"Set");e.exports=n},5386:(e,t,r)=>{var n=r(6738),s=r(2842),i=r(2482);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},6571:(e,t,r)=>{var n=r(235),s=r(5243),i=r(2858),o=r(4417),c=r(8605),a=r(1418);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},857:(e,t,r)=>{var n=r(7772).Symbol;e.exports=n},9162:(e,t,r)=>{var n=r(7772).Uint8Array;e.exports=n},3215:(e,t,r)=>{var n=r(8761)(r(7772),"WeakMap");e.exports=n},7552:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},1634:(e,t,r)=>{var n=r(6473),s=r(9631),i=r(6152),o=r(3226),c=r(9045),a=r(7598),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),p=!r&&!l&&o(e),m=!r&&!l&&!p&&a(e),h=r||l||p||m,d=h?n(e.length,String):[],f=d.length;for(var y in e)!t&&!u.call(e,y)||h&&("length"==y||p&&("offset"==y||"parent"==y)||m&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,f))||d.push(y);return d}},5067:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},7064:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},2218:(e,t,r)=>{var n=r(1225);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},1897:(e,t,r)=>{var n=r(5067),s=r(6152);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},3366:(e,t,r)=>{var n=r(857),s=r(2107),i=r(7157),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},5183:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},8746:(e,t,r)=>{var n=r(1952),s=r(5125);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,c))}},1952:(e,t,r)=>{var n=r(6571),s=r(4871),i=r(1491),o=r(7416),c=r(940),a=r(6152),u=r(3226),l=r(7598),p="[object Arguments]",m="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,f,y,_){var g=a(e),b=a(t),v=g?m:c(e),E=b?m:c(t),w=(v=v==p?h:v)==h,j=(E=E==p?h:E)==h,x=v==E;if(x&&u(e)){if(!u(t))return!1;g=!0,w=!1}if(x&&!w)return _||(_=new n),g||l(e)?s(e,t,r,f,y,_):i(e,t,v,r,f,y,_);if(!(1&r)){var O=w&&d.call(e,"__wrapped__"),S=j&&d.call(t,"__wrapped__");if(O||S){var P=O?e.value():e,A=S?t.value():t;return _||(_=new n),y(P,A,r,f,_)}}return!!x&&(_||(_=new n),o(e,t,r,f,y,_))}},6840:(e,t,r)=>{var n=r(1049),s=r(7394),i=r(9259),o=r(7035),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,p=u.hasOwnProperty,m=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?m:c).test(o(e))}},5522:(e,t,r)=>{var n=r(3366),s=r(1158),i=r(5125),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},6411:(e,t,r)=>{var n=r(6001),s=r(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6473:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},4019:(e,t,r)=>{var n=r(7772)["__core-js_shared__"];e.exports=n},4871:(e,t,r)=>{var n=r(5386),s=r(7064),i=r(9950);e.exports=function(e,t,r,o,c,a){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var d=-1,f=!0,y=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++d<l;){var _=e[d],g=t[d];if(o)var b=u?o(g,_,d,t,e,a):o(_,g,d,e,t,a);if(void 0!==b){if(b)continue;f=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(_===e||c(_,e,r,o,a)))return y.push(t)}))){f=!1;break}}else if(_!==g&&!c(_,g,r,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}},1491:(e,t,r)=>{var n=r(857),s=r(9162),i=r(1225),o=r(4871),c=r(5179),a=r(4207),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,m){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=c;case"[object Set]":var d=1&n;if(h||(h=a),e.size!=t.size&&!d)return!1;var f=m.get(e);if(f)return f==t;n|=2,m.set(e,t);var y=o(h(e),h(t),n,u,p,m);return m.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},7416:(e,t,r)=>{var n=r(3483),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!a)return!1;for(var p=l;p--;){var m=u[p];if(!(a?m in t:s.call(t,m)))return!1}var h=c.get(e),d=c.get(t);if(h&&d)return h==t&&d==e;var f=!0;c.set(e,t),c.set(t,e);for(var y=a;++p<l;){var _=e[m=u[p]],g=t[m];if(i)var b=a?i(g,_,m,t,e,c):i(_,g,m,e,t,c);if(!(void 0===b?_===g||o(_,g,r,i,c):b)){f=!1;break}y||(y="constructor"==m)}if(f&&!y){var v=e.constructor,E=t.constructor;v==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof E&&E instanceof E||(f=!1)}return c.delete(e),c.delete(t),f}},1242:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},3483:(e,t,r)=>{var n=r(1897),s=r(633),i=r(249);e.exports=function(e){return n(e,i,s)}},7937:(e,t,r)=>{var n=r(8304);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},8761:(e,t,r)=>{var n=r(6840),s=r(8109);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},2107:(e,t,r)=>{var n=r(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[c]=r:delete e[c]),s}},633:(e,t,r)=>{var n=r(7552),s=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},940:(e,t,r)=>{var n=r(9515),s=r(326),i=r(1985),o=r(2143),c=r(3215),a=r(3366),u=r(7035),l="[object Map]",p="[object Promise]",m="[object Set]",h="[object WeakMap]",d="[object DataView]",f=u(n),y=u(s),_=u(i),g=u(o),b=u(c),v=a;(n&&v(new n(new ArrayBuffer(1)))!=d||s&&v(new s)!=l||i&&v(i.resolve())!=p||o&&v(new o)!=m||c&&v(new c)!=h)&&(v=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case f:return d;case y:return l;case _:return p;case g:return m;case b:return h}return t}),e.exports=v},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,r)=>{var n=r(9191);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},4174:(e,t,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},7942:(e,t,r)=>{var n=r(9191);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,r)=>{var n,s=r(4019),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,r)=>{var n=r(2218),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},8028:(e,t,r)=>{var n=r(2218);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},2344:(e,t,r)=>{var n=r(2218);e.exports=function(e){return n(this.__data__,e)>-1}},4769:(e,t,r)=>{var n=r(2218);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},2411:(e,t,r)=>{var n=r(9612),s=r(235),i=r(326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},6417:(e,t,r)=>{var n=r(7937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,r)=>{var n=r(7937);e.exports=function(e){return n(this,e).get(e)}},9493:(e,t,r)=>{var n=r(7937);e.exports=function(e){return n(this,e).has(e)}},4150:(e,t,r)=>{var n=r(7937);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},9191:(e,t,r)=>{var n=r(8761)(Object,"create");e.exports=n},4248:(e,t,r)=>{var n=r(241)(Object.keys,Object);e.exports=n},4146:(e,t,r)=>{e=r.nmd(e);var n=r(1242),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7772:(e,t,r)=>{var n=r(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},5243:(e,t,r)=>{var n=r(235);e.exports=function(){this.__data__=new n,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,r)=>{var n=r(235),s=r(326),i=r(6738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},9631:(e,t,r)=>{var n=r(5183),s=r(5125),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,r)=>{var n=r(1049),s=r(1158);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},4335:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},3226:(e,t,r)=>{e=r.nmd(e);var n=r(7772),s=r(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},8149:(e,t,r)=>{var n=r(8746);e.exports=function(e,t){return n(e,t)}},1049:(e,t,r)=>{var n=r(3366),s=r(9259);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5877:e=>{e.exports=function(e){return null===e}},537:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5505:(e,t,r)=>{var n=r(3366),s=r(6152),i=r(5125);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},7598:(e,t,r)=>{var n=r(5522),s=r(7826),i=r(4146),o=i&&i.isTypedArray,c=o?s(o):n;e.exports=c},249:(e,t,r)=>{var n=r(1634),s=r(6411),i=r(7878);e.exports=function(e){return i(e)?n(e):s(e)}},1570:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1178:(e,t,r)=>{const n=r(1570);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},3026:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5140:(e,t,r)=>{const n=r(5877),s=r(5505),i=r(537),o=r(4335),c=r(9259),a=r(2947),u=r(3756);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=l,e.exports=l},3853:(e,t,r)=>{const n=r(1570),s=r(1178);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,r)=>{const n=r(6420),s=r(4152),i=r(9542),o=r(3710),c=r(3312),a=r(1641),u=r(8858),l=r(3860),p=r(5202),m=r(2320),h=r(1178),d=r(3853),f=r(3026);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=m,n.prototype.MemberElement=u,n.prototype.refract=y,h.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:m,refract:y,ArraySlice:h,ObjectSlice:d,KeyValuePair:f}},5202:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,r)=>{const n=r(5140),s=r(3756);t.lS=n,r(3026),s.ArraySlice,s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,r(2947),r(8910)},1641:(e,t,r)=>{const n=r(1570),s=r(6420),i=r(1178);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},3312:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,r)=>{const n=r(8149),s=r(3026),i=r(1178);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8858:(e,t,r)=>{const n=r(3026),s=r(6420);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},3860:(e,t,r)=>{const n=r(1570),s=r(9259),i=r(1641),o=r(8858),c=r(3853);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},9542:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,r)=>{const n=r(2947);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},2947:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},6591:e=>{!function(){"use strict";var t,r,n,s,i,o="properties",c="deepProperties",a="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",m="configuration",h="deepConfiguration",d="deepProps",f="deepStatics",y="deepConf",_="initializers",g="methods",b="composers",v="compose";function E(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function w(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var j=w.bind(0,(function(e,t){if(t)for(var r=E(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function x(e){return"function"==typeof e}function O(e){return e&&"object"==typeof e||x(e)}function S(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=w.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!S(n))return n;for(var s,i,o=E(n),c=0;c<o.length;)s=o[c++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(S(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function A(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return x(e)&&r.indexOf(e)===t}))).length?r:t}function F(e,t){function n(r,n){O(t[r])&&(O(e[r])||(e[r]={}),(n||j)(e[r],t[r]))}function s(n){(r=A(e[n],t[n]))&&(e[n]=r)}return t&&O(t=t[v]||t)&&(n(g),n(o),n(c,P),n(a),n(u),n(l,P),n(p),n(m),n(h,P),s(_),s(b)),e}function $(){return function(e){return r=function e(r){var n,s,i=e[v]||{},u={__proto__:i[g]},l=i[_],p=Array.prototype.slice.apply(arguments),m=i[c];if(m&&P(u,m),(m=i[o])&&j(u,m),(m=i[a])&&Object.defineProperties(u,m),!l||!l.length)return u;for(r===t&&(r={}),i=0;i<l.length;)x(n=l[i++])&&(u=(s=n.call(u,r,{instance:u,stamp:e,args:p}))===t?u:s);return u},(n=e[l])&&P(r,n),(n=e[u])&&j(r,n),(n=e[p])&&Object.defineProperties(r,n),n=x(r[v])?r[v]:$,j(r[v]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(F,{}))}function k(e){return x(e)&&x(e[v])}var R={};function I(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[v]||n).call(r,s)}}R[g]=I(g,j),R[o]=R.props=I(o,j),R[_]=R.init=I(_,A),R[b]=I(b,A),R[c]=R[d]=I(c,P),R[u]=R.statics=I(u,j),R[l]=R[f]=I(l,P),R[m]=R.conf=I(m,j),R[h]=R[y]=I(h,P),R[a]=I(a,j),R[p]=I(p,j),n=R[v]=j((function(){for(var e,E,w=0,x=[],S=arguments,F=this;w<S.length;)O(e=S[w++])&&x.push(k(e)?e:((s={})[g]=(E=e)[g]||t,n=E.props,s[o]=O((r=E[o])||n)?j({},n,r):t,s[_]=A(E.init,E[_]),s[b]=A(E[b]),n=E[d],s[c]=O((r=E[c])||n)?P({},n,r):t,s[a]=E[a],n=E.statics,s[u]=O((r=E[u])||n)?j({},n,r):t,n=E[f],s[l]=O((r=E[l])||n)?P({},n,r):t,r=E[p],s[p]=O((n=E.name&&{name:{value:E.name}})||r)?j({},r,n):t,n=E.conf,s[m]=O((r=E[m])||n)?j({},n,r):t,n=E[y],s[h]=O((r=E[h])||n)?P({},n,r):t,s));if(e=$.apply(F||i,x),F&&x.unshift(F),Array.isArray(S=e[v][b]))for(w=0;w<S.length;)e=k(F=S[w++]({stamp:e,composables:x}))?F:e;return e}),R),R.create=function(){return this.apply(t,arguments)},(s={})[u]=R,i=$(s),n[v]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},9794:(e,t,r)=>{var n=void 0!==n?n:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(n=Object.assign({},n,o),t=new Promise((t=>{var o,c={};for(o in n)n.hasOwnProperty(o)&&(c[o]=n[o]);var a,u,l,p,m=[],h="./this.program",d=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,a="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!a&&!p;var f,y,_,g,b,v="";a?(v=p?r(6287).dirname(v)+"/":"//",f=function(e,t){return g||(g=r(5530)),b||(b=r(6287)),e=b.normalize(e),g.readFileSync(e,t?null:"utf8")},_=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),I(t.buffer),t},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),m=process.argv.slice(2),e.exports=n,d=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(f=function(e){return read(e)}),_=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(I("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?m=scriptArgs:void 0!==arguments&&(m=arguments),"function"==typeof quit&&(d=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?v=self.location.href:void 0!==s&&s.currentScript&&(v=s.currentScript.src),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",f=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(_=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),y=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}),n.print||console.log.bind(console);var E=n.printErr||console.warn.bind(console);for(o in c)c.hasOwnProperty(o)&&(n[o]=c[o]);c=null,n.arguments&&(m=n.arguments),n.thisProgram&&(h=n.thisProgram),n.quit&&(d=n.quit);var w,j=16,x=[];function O(e,t){if(!w){w=new WeakMap;for(var r=0;r<Z.length;r++){var n=Z.get(r);n&&w.set(n,r)}}if(w.has(e))return w.get(e);var s=function(){if(x.length)return x.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1}();try{Z.set(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},s=1;s<t.length;++s)n.parameters.push(r[t[s]]);return new WebAssembly.Function(n,e)}var i=[1,0,1,96],o=t.slice(0,1),c=t.slice(1),a={i:127,j:126,f:125,d:124};for(i.push(c.length),s=0;s<c.length;++s)i.push(a[c[s]]);"v"==o?i.push(0):i=i.concat([1,a[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Z.set(s,i)}return w.set(e,s),s}var S,P=n.dynamicLibraries||[];n.wasmBinary&&(S=n.wasmBinary);var A,F=n.noExitRuntime||!0;function $(e,t,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":N[e>>0]=t;break;case"i16":C[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":D[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ce("invalid type for setValue: "+r)}}function k(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return N[e>>0];case"i16":return C[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return L[e>>3];default:ce("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ce("no native wasm support detected");var R=!1;function I(e,t){e||ce("Assertion failed: "+t)}var M,N,T,C,q,D,L,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,r){for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.subarray&&B)return B.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var c=63&e[t++];if(192!=(224&o)){var a=63&e[t++];if((o=224==(240&o)?(15&o)<<12|c<<6|a:(7&o)<<18|c<<12|a<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|c)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?V(T,e,t):""}function z(e,t,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<e.length;++o){var c=e.charCodeAt(o);if(c>=55296&&c<=57343&&(c=65536+((1023&c)<<10)|1023&e.charCodeAt(++o)),c<=127){if(r>=i)break;t[r++]=c}else if(c<=2047){if(r+1>=i)break;t[r++]=192|c>>6,t[r++]=128|63&c}else if(c<=65535){if(r+2>=i)break;t[r++]=224|c>>12,t[r++]=128|c>>6&63,t[r++]=128|63&c}else{if(r+3>=i)break;t[r++]=240|c>>18,t[r++]=128|c>>12&63,t[r++]=128|c>>6&63,t[r++]=128|63&c}}return t[r]=0,r-s}function G(e,t,r){return z(e,T,t,r)}function J(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function W(e){var t=J(e)+1,r=Ue(t);return z(e,N,r,t),r}function H(e){M=e,n.HEAP8=N=new Int8Array(e),n.HEAP16=C=new Int16Array(e),n.HEAP32=q=new Int32Array(e),n.HEAPU8=T=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=D=new Float32Array(e),n.HEAPF64=L=new Float64Array(e)}var K=n.INITIAL_MEMORY||33554432;(A=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:K/65536,maximum:32768}))&&(M=A.buffer),K=M.byteLength,H(M);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Q=[],Y=[],ee=[],te=!1,re=0,ne=null,se=null;function ie(e){re++,n.monitorRunDependencies&&n.monitorRunDependencies(re)}function oe(e){if(re--,n.monitorRunDependencies&&n.monitorRunDependencies(re),0==re&&(null!==ne&&(clearInterval(ne),ne=null),se)){var t=se;se=null,t()}}function ce(e){throw n.onAbort&&n.onAbort(e),E(e+=""),R=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ae,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function me(e){return e.startsWith("file://")}function he(e){try{if(e==ae&&S)return new Uint8Array(S);if(_)return _(e);throw"both async and sync fetching of the wasm failed"}catch(e){ce(e)}}pe(ae="tree-sitter.wasm")||(ae=function(e){return n.locateFile?n.locateFile(e,v):v+e}(ae));var de={},fe={get:function(e,t){return de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),de[t]}};function ye(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?Z.get(r)():Z.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(n)}}function _e(e){var t=0;function r(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(e instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(e,"dylink");I(0!=n.length,"need dylink section"),e=new Int8Array(n[0])}else I(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),I(0===e[8],"need the dylink section to be first"),t=9,r(),I(6===e[t]),I(e[++t]==="d".charCodeAt(0)),I(e[++t]==="y".charCodeAt(0)),I(e[++t]==="l".charCodeAt(0)),I(e[++t]==="i".charCodeAt(0)),I(e[++t]==="n".charCodeAt(0)),I(e[++t]==="k".charCodeAt(0)),t++;var s={};s.memorySize=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var i=r();s.neededDynlibs=[];for(var o=0;o<i;++o){var c=r(),a=e.subarray(t,t+c);t+=c;var u=V(a,0);s.neededDynlibs.push(u)}return s}var ge=0;function be(){return F||ge>0}function ve(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function Ee(e,t){for(var r in e)if(e.hasOwnProperty(r)){qe.hasOwnProperty(r)||(qe[r]=e[r]);var s=ve(r);n.hasOwnProperty(s)||(n[s]=e[r])}}var we={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var je=5250880;function xe(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Oe(e,t){var r={};for(var n in e){var s=e[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),r[n]=s}return function(e){for(var t in e)if(!xe(t)){var r=!1,n=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==de[t].value)&&("function"==typeof n?de[t].value=O(n):"number"==typeof n?de[t].value=n:E("unhandled export type for `"+t+"`: "+typeof n))}}(r),r}function Se(e,t){var r,s;return t&&(r=qe["orig$"+e]),r||(r=qe[e]),r||(r=n[ve(e)]),!r&&e.startsWith("invoke_")&&(s=e.split("_")[1],r=function(){var e=Be();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var s=n["dynCall_"+e];return r&&r.length?s.apply(null,[t].concat(r)):s.call(null,t)}(e,t,r):Z.get(t).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),r}function Pe(e,t){var r=_e(e);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,j);var s,i,o,c=(s=function(e){if(te)return De(e);var t=je,r=t+e+15&-16;return je=r,de.__heap_base.value=r,t}(r.memorySize+n),(i=n)||(i=j),Math.ceil(s/i)*i),a=Z.length;Z.grow(r.tableSize);for(var u=c;u<c+r.memorySize;u++)N[u]=0;for(u=a;u<a+r.tableSize;u++)Z.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return c;case"__table_base":return a}return t in qe?qe[t]:(t in e||(e[t]=function(){return r||(r=function(e){var t=Se(e,!1);return t||(t=o[e]),t}(t)),r.apply(null,arguments)}),e[t]);var r}}),p={"GOT.mem":new Proxy({},fe),"GOT.func":new Proxy({},fe),env:l,wasi_snapshot_preview1:l};function m(e){for(var n=0;n<r.tableSize;n++){var s=Z.get(a+n);s&&w.set(s,a+n)}o=Oe(e.exports,c),t.allowUndefined||Fe();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():Q.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var h=new WebAssembly.Instance(e,p);return Promise.resolve(m(h))}return WebAssembly.instantiate(e,p).then((function(e){return m(e.instance)}))}var d=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return m(h=new WebAssembly.Instance(d,p))}return t.loadAsync?r.neededDynlibs.reduce((function(e,r){return e.then((function(){return Ae(r,t)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(e){Ae(e,t)})),n())}function Ae(e,t){"__main__"!=e||we.loadedLibNames[e]||(we.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},we.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,s=we.loadedLibNames[e];if(s)return r=we.loadedLibs[s],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&Ee(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(n=e,fetch(n,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+n+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):_(e);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[e]){var r=n.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?i(e).then((function(e){return Pe(e,t)})):Pe(i(e),t)}function c(e){r.global&&Ee(e),r.module=e}return s=we.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},we.loadedLibNames[e]=s,we.loadedLibs[s]=r,t.loadAsync?o().then((function(e){return c(e),s})):(c(o()),s)}function Fe(){for(var e in de)if(0==de[e].value){var t=Se(e,!0);"function"==typeof t?de[e].value=O(t,t.sig):"number"==typeof t?de[e].value=t:I(!1,"bad export type for `"+e+"`: "+typeof t)}}n.___heap_base=je;var $e,ke=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Re(){ce()}n._abort=Re,Re.sig="v",$e=a?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Ie(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;r=$e()}return q[t>>2]=r/1e3|0,q[t+4>>2]=r%1e3*1e3*1e3|0,0}function Me(e){try{return A.grow(e-M.byteLength+65535>>>16),H(A.buffer),1}catch(e){}}function Ne(e){He(e)}function Te(e){}Ie.sig="iii",Ne.sig="vi",Te.sig="vi";var Ce,qe={__heap_base:je,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:ke,__table_base:1,abort:Re,clock_gettime:Ie,emscripten_memcpy_big:function(e,t,r){T.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=T.length;if((e>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,e+100663296),Me(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Ne,memory:A,setTempRet0:Te,tree_sitter_log_callback:function(e,t){if(ut){const r=U(t);ut(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,n,s){var i=at(t,{row:r,column:n});"string"==typeof i?($(s,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*e.length?r/2:e.length,s=0;s<n;++s){var i=e.charCodeAt(s);C[t>>1]=i,t+=2}C[t>>1]=0}(i,e,10240)):$(s,0,"i32")}},De=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,fe),"GOT.func":new Proxy(qe,fe)};function t(e,t){var r=e.exports;r=Oe(r,1024),n.asm=r;var s,i=_e(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),Ee(r),s=n.asm.__wasm_call_ctors,Q.unshift(s),oe()}function r(e){t(e.instance,e.module)}function s(t){return function(){if(!S&&(l||p)){if("function"==typeof fetch&&!me(ae))return fetch(ae,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ae+"'";return e.arrayBuffer()})).catch((function(){return he(ae)}));if(y)return new Promise((function(e,t){y(ae,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return he(ae)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){E("failed to asynchronously prepare wasm: "+e),ce(e)}))}if(ie(),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return E("Module.instantiateWasm callback failed with error: "+e),!1}S||"function"!=typeof WebAssembly.instantiateStreaming||pe(ae)||me(ae)||"function"!=typeof fetch?s(r):fetch(ae,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return E("wasm streaming compile failed: "+e),E("falling back to ArrayBuffer instantiation"),s(r)}))}))}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)},n._malloc=function(){return(De=n._malloc=n.asm.malloc).apply(null,arguments)}),Le=(n._calloc=function(){return(n._calloc=n.asm.calloc).apply(null,arguments)},n._realloc=function(){return(n._realloc=n.asm.realloc).apply(null,arguments)},n._free=function(){return(n._free=n.asm.free).apply(null,arguments)},n._ts_language_symbol_count=function(){return(n._ts_language_symbol_count=n.asm.ts_language_symbol_count).apply(null,arguments)},n._ts_language_version=function(){return(n._ts_language_version=n.asm.ts_language_version).apply(null,arguments)},n._ts_language_field_count=function(){return(n._ts_language_field_count=n.asm.ts_language_field_count).apply(null,arguments)},n._ts_language_symbol_name=function(){return(n._ts_language_symbol_name=n.asm.ts_language_symbol_name).apply(null,arguments)},n._ts_language_symbol_for_name=function(){return(n._ts_language_symbol_for_name=n.asm.ts_language_symbol_for_name).apply(null,arguments)},n._ts_language_symbol_type=function(){return(n._ts_language_symbol_type=n.asm.ts_language_symbol_type).apply(null,arguments)},n._ts_language_field_name_for_id=function(){return(n._ts_language_field_name_for_id=n.asm.ts_language_field_name_for_id).apply(null,arguments)},n._memcpy=function(){return(n._memcpy=n.asm.memcpy).apply(null,arguments)},n._ts_parser_delete=function(){return(n._ts_parser_delete=n.asm.ts_parser_delete).apply(null,arguments)},n._ts_parser_reset=function(){return(n._ts_parser_reset=n.asm.ts_parser_reset).apply(null,arguments)},n._ts_parser_set_language=function(){return(n._ts_parser_set_language=n.asm.ts_parser_set_language).apply(null,arguments)},n._ts_parser_timeout_micros=function(){return(n._ts_parser_timeout_micros=n.asm.ts_parser_timeout_micros).apply(null,arguments)},n._ts_parser_set_timeout_micros=function(){return(n._ts_parser_set_timeout_micros=n.asm.ts_parser_set_timeout_micros).apply(null,arguments)},n._memmove=function(){return(n._memmove=n.asm.memmove).apply(null,arguments)},n._memcmp=function(){return(n._memcmp=n.asm.memcmp).apply(null,arguments)},n._ts_query_new=function(){return(n._ts_query_new=n.asm.ts_query_new).apply(null,arguments)},n._ts_query_delete=function(){return(n._ts_query_delete=n.asm.ts_query_delete).apply(null,arguments)},n._iswspace=function(){return(n._iswspace=n.asm.iswspace).apply(null,arguments)},n._iswalnum=function(){return(n._iswalnum=n.asm.iswalnum).apply(null,arguments)},n._ts_query_pattern_count=function(){return(n._ts_query_pattern_count=n.asm.ts_query_pattern_count).apply(null,arguments)},n._ts_query_capture_count=function(){return(n._ts_query_capture_count=n.asm.ts_query_capture_count).apply(null,arguments)},n._ts_query_string_count=function(){return(n._ts_query_string_count=n.asm.ts_query_string_count).apply(null,arguments)},n._ts_query_capture_name_for_id=function(){return(n._ts_query_capture_name_for_id=n.asm.ts_query_capture_name_for_id).apply(null,arguments)},n._ts_query_string_value_for_id=function(){return(n._ts_query_string_value_for_id=n.asm.ts_query_string_value_for_id).apply(null,arguments)},n._ts_query_predicates_for_pattern=function(){return(n._ts_query_predicates_for_pattern=n.asm.ts_query_predicates_for_pattern).apply(null,arguments)},n._ts_tree_copy=function(){return(n._ts_tree_copy=n.asm.ts_tree_copy).apply(null,arguments)},n._ts_tree_delete=function(){return(n._ts_tree_delete=n.asm.ts_tree_delete).apply(null,arguments)},n._ts_init=function(){return(n._ts_init=n.asm.ts_init).apply(null,arguments)},n._ts_parser_new_wasm=function(){return(n._ts_parser_new_wasm=n.asm.ts_parser_new_wasm).apply(null,arguments)},n._ts_parser_enable_logger_wasm=function(){return(n._ts_parser_enable_logger_wasm=n.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},n._ts_parser_parse_wasm=function(){return(n._ts_parser_parse_wasm=n.asm.ts_parser_parse_wasm).apply(null,arguments)},n._ts_language_type_is_named_wasm=function(){return(n._ts_language_type_is_named_wasm=n.asm.ts_language_type_is_named_wasm).apply(null,arguments)},n._ts_language_type_is_visible_wasm=function(){return(n._ts_language_type_is_visible_wasm=n.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},n._ts_tree_root_node_wasm=function(){return(n._ts_tree_root_node_wasm=n.asm.ts_tree_root_node_wasm).apply(null,arguments)},n._ts_tree_edit_wasm=function(){return(n._ts_tree_edit_wasm=n.asm.ts_tree_edit_wasm).apply(null,arguments)},n._ts_tree_get_changed_ranges_wasm=function(){return(n._ts_tree_get_changed_ranges_wasm=n.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},n._ts_tree_cursor_new_wasm=function(){return(n._ts_tree_cursor_new_wasm=n.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},n._ts_tree_cursor_delete_wasm=function(){return(n._ts_tree_cursor_delete_wasm=n.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},n._ts_tree_cursor_reset_wasm=function(){return(n._ts_tree_cursor_reset_wasm=n.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_first_child_wasm=function(){return(n._ts_tree_cursor_goto_first_child_wasm=n.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_next_sibling_wasm=function(){return(n._ts_tree_cursor_goto_next_sibling_wasm=n.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_parent_wasm=function(){return(n._ts_tree_cursor_goto_parent_wasm=n.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_type_id_wasm=function(){return(n._ts_tree_cursor_current_node_type_id_wasm=n.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_named_wasm=function(){return(n._ts_tree_cursor_current_node_is_named_wasm=n.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_missing_wasm=function(){return(n._ts_tree_cursor_current_node_is_missing_wasm=n.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_id_wasm=function(){return(n._ts_tree_cursor_current_node_id_wasm=n.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},n._ts_tree_cursor_start_position_wasm=function(){return(n._ts_tree_cursor_start_position_wasm=n.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},n._ts_tree_cursor_end_position_wasm=function(){return(n._ts_tree_cursor_end_position_wasm=n.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},n._ts_tree_cursor_start_index_wasm=function(){return(n._ts_tree_cursor_start_index_wasm=n.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},n._ts_tree_cursor_end_index_wasm=function(){return(n._ts_tree_cursor_end_index_wasm=n.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},n._ts_tree_cursor_current_field_id_wasm=function(){return(n._ts_tree_cursor_current_field_id_wasm=n.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_wasm=function(){return(n._ts_tree_cursor_current_node_wasm=n.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},n._ts_node_symbol_wasm=function(){return(n._ts_node_symbol_wasm=n.asm.ts_node_symbol_wasm).apply(null,arguments)},n._ts_node_child_count_wasm=function(){return(n._ts_node_child_count_wasm=n.asm.ts_node_child_count_wasm).apply(null,arguments)},n._ts_node_named_child_count_wasm=function(){return(n._ts_node_named_child_count_wasm=n.asm.ts_node_named_child_count_wasm).apply(null,arguments)},n._ts_node_child_wasm=function(){return(n._ts_node_child_wasm=n.asm.ts_node_child_wasm).apply(null,arguments)},n._ts_node_named_child_wasm=function(){return(n._ts_node_named_child_wasm=n.asm.ts_node_named_child_wasm).apply(null,arguments)},n._ts_node_child_by_field_id_wasm=function(){return(n._ts_node_child_by_field_id_wasm=n.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},n._ts_node_next_sibling_wasm=function(){return(n._ts_node_next_sibling_wasm=n.asm.ts_node_next_sibling_wasm).apply(null,arguments)},n._ts_node_prev_sibling_wasm=function(){return(n._ts_node_prev_sibling_wasm=n.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},n._ts_node_next_named_sibling_wasm=function(){return(n._ts_node_next_named_sibling_wasm=n.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},n._ts_node_prev_named_sibling_wasm=function(){return(n._ts_node_prev_named_sibling_wasm=n.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},n._ts_node_parent_wasm=function(){return(n._ts_node_parent_wasm=n.asm.ts_node_parent_wasm).apply(null,arguments)},n._ts_node_descendant_for_index_wasm=function(){return(n._ts_node_descendant_for_index_wasm=n.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_index_wasm=function(){return(n._ts_node_named_descendant_for_index_wasm=n.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_descendant_for_position_wasm=function(){return(n._ts_node_descendant_for_position_wasm=n.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_position_wasm=function(){return(n._ts_node_named_descendant_for_position_wasm=n.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_start_point_wasm=function(){return(n._ts_node_start_point_wasm=n.asm.ts_node_start_point_wasm).apply(null,arguments)},n._ts_node_end_point_wasm=function(){return(n._ts_node_end_point_wasm=n.asm.ts_node_end_point_wasm).apply(null,arguments)},n._ts_node_start_index_wasm=function(){return(n._ts_node_start_index_wasm=n.asm.ts_node_start_index_wasm).apply(null,arguments)},n._ts_node_end_index_wasm=function(){return(n._ts_node_end_index_wasm=n.asm.ts_node_end_index_wasm).apply(null,arguments)},n._ts_node_to_string_wasm=function(){return(n._ts_node_to_string_wasm=n.asm.ts_node_to_string_wasm).apply(null,arguments)},n._ts_node_children_wasm=function(){return(n._ts_node_children_wasm=n.asm.ts_node_children_wasm).apply(null,arguments)},n._ts_node_named_children_wasm=function(){return(n._ts_node_named_children_wasm=n.asm.ts_node_named_children_wasm).apply(null,arguments)},n._ts_node_descendants_of_type_wasm=function(){return(n._ts_node_descendants_of_type_wasm=n.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},n._ts_node_is_named_wasm=function(){return(n._ts_node_is_named_wasm=n.asm.ts_node_is_named_wasm).apply(null,arguments)},n._ts_node_has_changes_wasm=function(){return(n._ts_node_has_changes_wasm=n.asm.ts_node_has_changes_wasm).apply(null,arguments)},n._ts_node_has_error_wasm=function(){return(n._ts_node_has_error_wasm=n.asm.ts_node_has_error_wasm).apply(null,arguments)},n._ts_node_is_missing_wasm=function(){return(n._ts_node_is_missing_wasm=n.asm.ts_node_is_missing_wasm).apply(null,arguments)},n._ts_query_matches_wasm=function(){return(n._ts_query_matches_wasm=n.asm.ts_query_matches_wasm).apply(null,arguments)},n._ts_query_captures_wasm=function(){return(n._ts_query_captures_wasm=n.asm.ts_query_captures_wasm).apply(null,arguments)},n._iswdigit=function(){return(n._iswdigit=n.asm.iswdigit).apply(null,arguments)},n._iswalpha=function(){return(n._iswalpha=n.asm.iswalpha).apply(null,arguments)},n._iswlower=function(){return(n._iswlower=n.asm.iswlower).apply(null,arguments)},n._towupper=function(){return(n._towupper=n.asm.towupper).apply(null,arguments)},n.___errno_location=function(){return(Le=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),Be=(n._memchr=function(){return(n._memchr=n.asm.memchr).apply(null,arguments)},n._strlen=function(){return(n._strlen=n.asm.strlen).apply(null,arguments)},n.stackSave=function(){return(Be=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Ve=n.stackRestore=function(){return(Ve=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},Ue=n.stackAlloc=function(){return(Ue=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},ze=n._setThrew=function(){return(ze=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=n.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},n.__Znwm=function(){return(n.__Znwm=n.asm._Znwm).apply(null,arguments)},n.__ZdlPv=function(){return(n.__ZdlPv=n.asm._ZdlPv).apply(null,arguments)},n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(e,t){var r;return r=1==t?Ue(e.length):De(e.length),e.subarray||e.slice?T.set(e,r):T.set(new Uint8Array(e),r),r},se=function e(){Ce||We(),Ce||(se=e)};var Je=!1;function We(e){function t(){Ce||(Ce=!0,n.calledRun=!0,R||(te=!0,ye(Q),ye(Y),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ke&&function(e){var t=n._main;if(t){var r=(e=e||[]).length+1,s=Ue(4*(r+1));q[s>>2]=W(h);for(var i=1;i<r;i++)q[(s>>2)+i]=W(e[i-1]);q[(s>>2)+r]=0;try{He(t(r,s),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),E("exception thrown: "+o),d(1,e)}}}(e),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),ee.unshift(e);var e;ye(ee)}()))}e=e||m,re>0||!Je&&(function(){if(P.length){if(!_)return ie(),void P.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),Fe()}));P.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),Fe()}else Fe()}(),Je=!0,re>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),X.unshift(e);var e;ye(X)}(),re>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}function He(e,t){t&&be()&&0===e||(be()||(n.onExit&&n.onExit(e),R=!0),d(e,new Ge(e)))}if(n.run=We,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ke=!0;n.noInitialRun&&(Ke=!1),We();const Ze=n,Xe={},Qe=4,Ye=5*Qe,et=2*Qe,tt=2*Qe+2*et,rt={row:0,column:0},nt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,ct,at,ut;class lt{static init(){ct=Ze._ts_init(),it=k(ct,"i32"),ot=k(ct+Qe,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=k(ct,"i32"),this[1]=k(ct+Qe,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==dt)throw new Error("Argument must be a Language");{t=e[0];const r=Ze._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)at=(t,r,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");at=e}this.logCallback?(ut=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let e=s=Ze._calloc(n,tt);for(let t=0;t<n;t++)St(e,r.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!i)throw at=null,ut=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,at);return at=null,ut=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,r,n){gt(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=ct;xt(t,e.startPosition),xt(t+=et,e.oldEndPosition),xt(t+=et,e.newEndPosition),$(t+=et,e.startIndex,"i32"),$(t+=Qe,e.oldEndIndex,"i32"),$(t+=Qe,e.newEndIndex,"i32"),t+=Qe}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),Et(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=k(ct,"i32"),r=k(ct+Qe,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=Pt(e),e+=tt;Ze._free(r)}return n}}class mt{constructor(e,t){gt(e),this.tree=t}get typeId(){return vt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return vt(this),Ze._ts_node_end_point_wasm(this.tree[0]),Ot(ct)}get endIndex(){return vt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return yt(this.tree,this.startIndex,this.endIndex)}isNamed(){return vt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return vt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return vt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return vt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return vt(this),Ze._ts_node_child_wasm(this.tree[0],e),Et(this.tree)}namedChild(e){return vt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),Et(this.tree)}childForFieldId(e){return vt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),Et(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return vt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return vt(this),Ze._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){vt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=k(ct,"i32"),t=k(ct+Qe,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=Et(this.tree,r),r+=Ye;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){vt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=k(ct,"i32"),t=k(ct+Qe,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=Et(this.tree,r),r+=Ye;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const i=Ze._malloc(Qe*n.length);for(let e=0,t=n.length;e<t;e++)$(i+e*Qe,n[e],"i32");vt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,r.row,r.column);const o=k(ct,"i32"),c=k(ct+Qe,"i32"),a=new Array(o);if(o>0){let e=c;for(let t=0;t<o;t++)a[t]=Et(this.tree,e),e+=Ye}return Ze._free(c),Ze._free(i),a}get nextSibling(){return vt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),Et(this.tree)}get previousSibling(){return vt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),Et(this.tree)}get nextNamedSibling(){return vt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),Et(this.tree)}get previousNamedSibling(){return vt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),Et(this.tree)}get parent(){return vt(this),Ze._ts_node_parent_wasm(this.tree[0]),Et(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let r=ct+Ye;return $(r,e,"i32"),$(r+Qe,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),Et(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let r=ct+Ye;return $(r,e,"i32"),$(r+Qe,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),Et(this.tree)}descendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let r=ct+Ye;return xt(r,e),xt(r+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),Et(this.tree)}namedDescendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let r=ct+Ye;return xt(r,e),xt(r+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),Et(this.tree)}walk(){return vt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Xe,this.tree)}toString(){vt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=T[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Ze._free(e),t}}class ht{constructor(e,t){gt(e),this.tree=t,jt(this)}delete(){wt(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){vt(e),wt(this,ct+Ye),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),jt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return wt(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return wt(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return wt(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return wt(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){wt(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return yt(this.tree,e,t)}get startPosition(){return wt(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),Ot(ct)}get endPosition(){return wt(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),Ot(ct)}get startIndex(){return wt(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return wt(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return wt(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),Et(this.tree)}currentFieldId(){return wt(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){wt(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return jt(this),1===e}gotoNextSibling(){wt(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return jt(this),1===e}gotoParent(){wt(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return jt(this),1===e}}class dt{constructor(e,t){gt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ze._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=J(e),n=Ze._malloc(r+1);G(e,n,r+1);const s=Ze._ts_language_symbol_for_name(this[0],n,r,t);return Ze._free(n),s||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=J(e),r=Ze._malloc(t+1);G(e,r,t+1);const n=Ze._ts_query_new(this[0],r,t,ct,ct+Qe);if(!n){const t=k(ct+Qe,"i32"),n=U(r,k(ct,"i32")).length,s=e.substr(n,100).split("\n")[0];let i,o=s.match(nt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),o=""}throw i.index=n,i.length=o.length,Ze._free(r),i}const s=Ze._ts_query_string_count(n),i=Ze._ts_query_capture_count(n),o=Ze._ts_query_pattern_count(n),c=new Array(i),a=new Array(s);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(n,e,ct),r=k(ct,"i32");c[e]=U(t,r)}for(let e=0;e<s;e++){const t=Ze._ts_query_string_value_for_id(n,e,ct),r=k(ct,"i32");a[e]=U(t,r)}const u=new Array(o),l=new Array(o),p=new Array(o),m=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=Ze._ts_query_predicates_for_pattern(n,e,ct),r=k(ct,"i32");m[e]=[],h[e]=[];const s=[];let i=t;for(let t=0;t<r;t++){const t=k(i,"i32"),r=k(i+=Qe,"i32");if(i+=Qe,1===t)s.push({type:"capture",name:c[r]});else if(2===t)s.push({type:"string",value:a[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,n=s[2].name;h[e].push((function(e){let s,i;for(const r of e)r.name===t&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const t=s[1].name,n=s[2].value;h[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const n=s[1].name,i=new RegExp(s[2].value);h[e].push((function(e){for(const t of e)if(t.name===n)return i.test(t.node.text)===r;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:m[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ze._free(r),new ft(Xe,n,c,h,m,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const n=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=r(5530);t=Promise.resolve(e.readFileSync(n))}else t=fetch(n).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Pe;return t.then((e=>n(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new dt(Xe,n)}))}}class ft{constructor(e,t,r,n,s,i,o,c){gt(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=c,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=k(ct,"i32"),o=k(ct+Qe,"i32"),c=k(ct+2*Qe,"i32"),a=new Array(i);this.exceededMatchLimit=!!c;let u=0,l=o;for(let t=0;t<i;t++){const r=k(l,"i32"),n=k(l+=Qe,"i32");l+=Qe;const s=new Array(n);if(l=_t(this,e.tree,l,s),this.textPredicates[r].every((e=>e(s)))){a[u++]={pattern:r,captures:s};const e=this.setProperties[r];e&&(a[t].setProperties=e);const n=this.assertedProperties[r];n&&(a[t].assertedProperties=n);const i=this.refutedProperties[r];i&&(a[t].refutedProperties=i)}}return a.length=u,Ze._free(o),a}captures(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=k(ct,"i32"),o=k(ct+Qe,"i32"),c=k(ct+2*Qe,"i32"),a=[];this.exceededMatchLimit=!!c;const u=[];let l=o;for(let t=0;t<i;t++){const t=k(l,"i32"),r=k(l+=Qe,"i32"),n=k(l+=Qe,"i32");if(l+=Qe,u.length=r,l=_t(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),a.push(e)}}return Ze._free(o),a}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function yt(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function _t(e,t,r,n){for(let s=0,i=n.length;s<i;s++){const i=k(r,"i32"),o=Et(t,r+=Qe);r+=Ye,n[s]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function bt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function vt(e){let t=ct;$(t,e.id,"i32"),$(t+=Qe,e.startIndex,"i32"),$(t+=Qe,e.startPosition.row,"i32"),$(t+=Qe,e.startPosition.column,"i32"),$(t+=Qe,e[0],"i32")}function Et(e,t=ct){const r=k(t,"i32");if(0===r)return null;const n=k(t+=Qe,"i32"),s=k(t+=Qe,"i32"),i=k(t+=Qe,"i32"),o=k(t+=Qe,"i32"),c=new mt(Xe,e);return c.id=r,c.startIndex=n,c.startPosition={row:s,column:i},c[0]=o,c}function wt(e,t=ct){$(t+0*Qe,e[0],"i32"),$(t+1*Qe,e[1],"i32"),$(t+2*Qe,e[2],"i32")}function jt(e){e[0]=k(ct+0*Qe,"i32"),e[1]=k(ct+1*Qe,"i32"),e[2]=k(ct+2*Qe,"i32")}function xt(e,t){$(e,t.row,"i32"),$(e+Qe,t.column,"i32")}function Ot(e){return{row:k(e,"i32"),column:k(e+Qe,"i32")}}function St(e,t){xt(e,t.startPosition),xt(e+=et,t.endPosition),$(e+=et,t.startIndex,"i32"),$(e+=Qe,t.endIndex,"i32"),e+=Qe}function Pt(e){const t={};return t.startPosition=Ot(e),e+=et,t.endPosition=Ot(e),e+=et,t.startIndex=k(e,"i32"),e+=Qe,t.endIndex=k(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=dt,n.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},5530:()=>{},6287:()=>{},1427:(e,t,r)=>{e.exports=r(6762)}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&!e;)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>Oy,detectionRegExp:()=>xy,mediaTypes:()=>jy,namespace:()=>Py,parse:()=>Sy});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>rn,includesClasses:()=>sn,includesSymbols:()=>nn,isAnnotationElement:()=>Xr,isArrayElement:()=>Wr,isBooleanElement:()=>Gr,isCommentElement:()=>Qr,isElement:()=>Br,isLinkElement:()=>Kr,isMemberElement:()=>Hr,isNullElement:()=>zr,isNumberElement:()=>Ur,isObjectElement:()=>Jr,isParseResultElement:()=>Yr,isPrimitiveElement:()=>tn,isRefElement:()=>Zr,isSourceMapElement:()=>en,isStringElement:()=>Vr});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>To,isJSONSchemaElement:()=>No,isLinkDescriptionElement:()=>qo,isMediaElement:()=>Co});var s={};r.r(s),r.d(s,{isOpenApi3_0LikeElement:()=>mc,isOpenApiExtension:()=>bc,isParameterLikeElement:()=>hc,isReferenceLikeElement:()=>dc,isRequestBodyLikeElement:()=>fc,isResponseLikeElement:()=>yc,isServerLikeElement:()=>_c,isTagLikeElement:()=>gc});var i={};r.r(i),r.d(i,{isBooleanJsonSchemaElement:()=>ka,isCallbackElement:()=>aa,isComponentsElement:()=>ua,isContactElement:()=>la,isExampleElement:()=>pa,isExternalDocumentationElement:()=>ma,isHeaderElement:()=>ha,isInfoElement:()=>da,isLicenseElement:()=>fa,isLinkElement:()=>ya,isLinkElementExternal:()=>_a,isMediaTypeElement:()=>Na,isOpenApi3_0Element:()=>ba,isOpenapiElement:()=>ga,isOperationElement:()=>va,isParameterElement:()=>Ea,isPathItemElement:()=>wa,isPathItemElementExternal:()=>ja,isPathsElement:()=>xa,isReferenceElement:()=>Oa,isReferenceElementExternal:()=>Sa,isRequestBodyElement:()=>Pa,isResponseElement:()=>Aa,isResponsesElement:()=>Fa,isSchemaElement:()=>$a,isSecurityRequirementElement:()=>Ra,isServerElement:()=>Ia,isServerVariableElement:()=>Ma});var o={};r.r(o),r.d(o,{isBooleanJsonSchemaElement:()=>jd,isCallbackElement:()=>Yh,isComponentsElement:()=>ed,isContactElement:()=>td,isExampleElement:()=>rd,isExternalDocumentationElement:()=>nd,isHeaderElement:()=>sd,isInfoElement:()=>id,isJsonSchemaDialectElement:()=>od,isLicenseElement:()=>cd,isLinkElement:()=>ad,isLinkElementExternal:()=>ud,isMediaTypeElement:()=>Pd,isOpenApi3_1Element:()=>pd,isOpenapiElement:()=>ld,isOperationElement:()=>md,isParameterElement:()=>hd,isPathItemElement:()=>dd,isPathItemElementExternal:()=>fd,isPathsElement:()=>yd,isReferenceElement:()=>_d,isReferenceElementExternal:()=>gd,isRequestBodyElement:()=>bd,isResponseElement:()=>vd,isResponsesElement:()=>Ed,isSchemaElement:()=>wd,isSecurityRequirementElement:()=>xd,isServerElement:()=>Od,isServerVariableElement:()=>Sd});const c=function(){return!1};const a=function(){return!0};function u(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function l(e){return function t(r){return 0===arguments.length||u(r)?t:e.apply(this,arguments)}}function p(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return u(r)?t:l((function(t){return e(r,t)}));default:return u(r)&&u(n)?t:u(r)?l((function(t){return e(t,n)})):u(n)?l((function(t){return e(r,t)})):e(r,n)}}}const m=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function h(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!m(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function d(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const f=function(){return this.xf["@@transducer/init"]()},y=function(e){return this.xf["@@transducer/result"](e)};var _=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=d(this.xf["@@transducer/step"](e,!1))),e},e}();function g(e){return function(t){return new _(e,t)}}const b=p(h(["all"],g,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function v(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function E(e,t,r){return function(){for(var n=[],s=0,i=e,o=0;o<t.length||s<arguments.length;){var c;o<t.length&&(!u(t[o])||s>=arguments.length)?c=t[o]:(c=arguments[s],s+=1),n[o]=c,u(c)||(i-=1),o+=1}return i<=0?r.apply(this,n):v(i,E(e,n,r))}}const w=p((function(e,t){return 1===e?l(t):v(e,E(e,[],t))}));function j(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function x(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function O(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const S="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var P=Object.prototype.toString;const A=function(){return"[object Arguments]"===P.call(arguments)?function(e){return"[object Arguments]"===P.call(e)}:function(e){return O("callee",e)}}();var F=!{toString:null}.propertyIsEnumerable("toString"),$=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),R=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const I="function"!=typeof Object.keys||k?l((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=k&&A(e);for(t in e)!O(t,e)||s&&"length"===t||(n[n.length]=t);if(F)for(r=$.length-1;r>=0;)O(t=$[r],e)&&!R(n,t)&&(n[n.length]=t),r-=1;return n})):l((function(e){return Object(e)!==e?[]:Object.keys(e)}));const M=l((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function N(e,t,r,n){var s=j(e);function i(e,t){return T(e,t,r.slice(),n.slice())}return!x((function(e,t){return!x(i,t,e)}),j(t),s)}function T(e,t,r,n){if(S(e,t))return!0;var s,i,o=M(e);if(o!==M(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!S(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!S(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=r.length-1;c>=0;){if(r[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&N(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&N(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=I(e);if(a.length!==I(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!O(p,t)||!T(t[p],e[p],u,l))return!1;c-=1}return!0}const C=p((function(e,t){return T(e,t,[],[])}));function q(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(C(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function D(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function L(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var B=function(e){return(e<10?"0":"")+e};const V="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+B(e.getUTCMonth()+1)+"-"+B(e.getUTCDate())+"T"+B(e.getUTCHours())+":"+B(e.getUTCMinutes())+":"+B(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function U(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function z(e){return"[object Object]"===Object.prototype.toString.call(e)}var G=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=y,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function J(e){return function(t){return new G(e,t)}}const W=p(h(["fantasy-land/filter","filter"],J,(function(e,t){return z(t)?U((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},I(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const H=p((function(e,t){return W((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function K(e,t){var r=function(r){var n=t.concat([e]);return q(r,n)?"<Circular>":K(r,n)},n=function(e,t){return D((function(t){return L(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+D(r,e).join(", ")+"))";case"[object Array]":return"["+D(r,e).concat(n(e,H((function(e){return/^\d+$/.test(e)}),I(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):L(V(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":L(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,I(e)).join(", ")+"}"}}const Z=l((function(e){return K(e,[])}));const X=p((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Z(e),o=r(i,Z(t));return void 0!==o&&o===i?e:t}));var Q=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=y,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Y=p(h(["fantasy-land/map","map"],(function(e){return function(t){return new Q(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return w(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return U((function(r,n){return r[n]=e(t[n]),r}),{},I(t));default:return D(e,t)}}))),ee=Number.isInteger||function(e){return e<<0===e};function te(e){return"[object String]"===Object.prototype.toString.call(e)}const re=p((function(e,t){var r=e<0?t.length+e:e;return te(t)?t.charAt(r):t[r]}));const ne=p((function(e,t){if(null!=t)return ee(e)?re(e,t):t[e]}));const se=p((function(e,t){return Y(ne(e),t)}));function ie(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return u(r)?t:p((function(t,n){return e(r,t,n)}));case 2:return u(r)&&u(n)?t:u(r)?p((function(t,r){return e(t,n,r)})):u(n)?p((function(t,n){return e(r,t,n)})):l((function(t){return e(r,n,t)}));default:return u(r)&&u(n)&&u(s)?t:u(r)&&u(n)?p((function(t,r){return e(t,r,s)})):u(r)&&u(s)?p((function(t,r){return e(t,n,r)})):u(n)&&u(s)?p((function(t,n){return e(r,t,n)})):u(r)?l((function(t){return e(t,n,s)})):u(n)?l((function(t){return e(r,t,s)})):u(s)?l((function(t){return e(r,n,t)})):e(r,n,s)}}}const oe=l((function(e){return!!m(e)||!!e&&("object"==typeof e&&(!te(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var ce="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ae(e,t,r){return function(n,s,i){if(oe(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[ce])return r(n,s,i[ce]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ue(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const le=p((function(e,t){return v(e.length,(function(){return e.apply(t,arguments)}))}));function pe(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function me(e,t,r,n){return e["@@transducer/result"](r[n](le(e["@@transducer/step"],e),t))}const he=ae(ue,me,pe);var de=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const fe=ie((function(e,t,r){return he("function"==typeof e?new de(e):e,t,r)}));const ye=l((function(e){return w(fe(X,0,se("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const _e=l((function(e){return function(){return e}}));const ge=l((function(e){return w(fe(X,0,se("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function be(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function ve(e,t,r,n){return r[n](e,t)}const Ee=ae(U,ve,be);const we=p((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:Ee((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,Y(r,t))}),[],e)}));const je=p((function(e,t){return e.apply(this,t)}));function xe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Oe=p((function(e,t){return e&&t}));const Se=p((function(e,t){var r=w(e,t);return w(e,(function(){return U(we,Y(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Pe=l((function(e){return Se(e.length,e)}));const Ae=p((function(e,t){return xe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Pe(Oe)(e,t)}));const Fe=l((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const $e=Pe(l((function(e){return!e})));function ke(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Re(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return m(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Ie=ie(Re("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Me=l(Re("tail",Ie(1,1/0)));function Ne(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,fe(ke,arguments[0],Me(arguments)))}const Te=l((function(e){return w(e.length,e)}));const Ce=p((function(e,t){return null==t||t!=t?e:t}));function qe(e,t,r){var n,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?e in r._items[s]||(t&&(r._items[s][e]=!0),!1):(t&&(r._items[s]={},r._items[s][e]=!0),!1);case"boolean":if(s in r._items){var i=e?1:0;return!!r._items[s][i]||(t&&(r._items[s][i]=!0),!1)}return t&&(r._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?!!q(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1);case"undefined":return!!r._items[s]||(t&&(r._items[s]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in r._items?!!q(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const De=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!qe(e,!0,this)},e.prototype.has=function(e){return qe(e,!1,this)},e}();const Le=p((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new De,c=0;c<i;c+=1)o.add(t[c]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r}));var Be=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=y,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?d(r):r},e}();function Ve(e){return function(t){return new Be(e,t)}}const Ue=p(h(["take"],Ve,(function(e,t){return Ie(0,e<0?1/0:e,t)})));var ze=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=y,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Ge(e){return function(t){return new ze(e,t)}}const Je=p(h(["dropWhile"],Ge,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Ie(r,1/0,t)})));const We=p((function(e,t){return e||t}));const He=p((function(e,t){return xe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Pe(We)(e,t)}));var Ke=l((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():m(e)?[]:te(e)?"":z(e)?{}:A(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Ze=Ke;const Xe=l((function(e){return w(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const Qe=l((function(e){return null==e}));const Ye=p((function(e,t){if(0===e.length||Qe(t))return!1;for(var r=t,n=0;n<e.length;){if(Qe(r)||!O(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const et=p((function(e,t){return Ye([e],t)}));const tt=p((function(e,t){return!Qe(t)&&e in t}));const rt=re(0);var nt=function(e,t){switch(arguments.length){case 0:return nt;case 1:return function t(r){return 0===arguments.length?t:S(e,r)};default:return S(e,t)}};const st=nt;const it=ie((function(e,t,r){return w(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const ot=p(q);const ct=Ie(0,-1);"function"==typeof Object.assign&&Object.assign;const at=p((function(e,t){return w(e+1,(function(){var r=arguments[e];if(null!=r&&xe(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Z(r)+' does not have a method named "'+t+'"')}))}));const ut=l((function(e){return null!=e&&C(e,Ze(e))}));const lt=at(1,"join");const pt=re(-1);const mt=p((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=ee(r)?re(r,n):n[r],s+=1}return n}))}));const ht=p((function(e,t){return mt([e],t)[0]}));const dt=p((function(e,t){return U((function(r,n){return r[n]=e(t[n],n,t),r}),{},I(t))}));const ft=p((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var o in t)n.hasOwnProperty(o)||(r[o]=t[o]);return r}));const yt=ie((function(e,t,r){return e(ht(t,r))}));const _t=p((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const gt=ie((function(e,t,r){return Ce(e,ne(t,r))}));const bt=ie((function(e,t,r){return e(ne(t,r))}));function vt(e){return"[object Number]"===Object.prototype.toString.call(e)}const Et=p((function(e,t){if(!vt(e)||!vt(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const wt=l(d);var jt=p((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const xt=jt;const Ot=at(1,"split");const St=p((function(e,t){return C(Ue(e.length,t),e)}));const Pt=p((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Z(e));var r;return function(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}(e).test(t)}));var At="\t\n\v\f\r                 \u2028\u2029\ufeff";String.prototype.trim;const Ft=_e(void 0);const $t=C(Ft());const kt=$e($t);var Rt=r(7952);const It=C(null);const Mt=$e(It);function Nt(e){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(e)}const Tt=function(e){return"object"===Nt(e)};const Ct=w(1,Ae(Mt,Tt));const qt=w(1,Ne(M,st("GeneratorFunction")));const Dt=w(1,Ne(M,st("AsyncFunction")));const Lt=ge([Ne(M,st("Function")),qt,Dt]);var Bt=Ne(M,st("Object")),Vt=Ne(Z,C(Z(Object))),Ut=yt(Ae(Lt,Vt),["constructor"]);const zt=w(1,(function(e){if(!Ct(e)||!Bt(e))return!1;var t=Object.getPrototypeOf(e);return!!It(t)||Ut(t)}));class Gt extends Rt.RP{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Jt=Gt;class Wt extends Rt.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Ht=Wt;class Kt extends Rt.ON{constructor(e,t,r){super(e,t,r),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($t(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Zt=Kt;class Xt extends Rt.ON{constructor(e,t,r){super(e,t,r),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(null===e)return;const t=new Rt.ON([e.start.row,e.start.column,e.start.char]),r=new Rt.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Qt=Xt;class Yt extends Rt.lS{constructor(){super(),this.register("annotation",Jt),this.register("comment",Ht),this.register("parseResult",Zt),this.register("sourceMap",Qt)}}const er=new Yt,tr=e=>{const t=new Yt;return zt(e)&&t.use(e),t},rr=er;const nr=w(1,Ne(M,st("String"))),sr=r.p+"23aac571c96605dc25219087ad291441.wasm",ir=globalThis.fetch;Lt(ir)&&(globalThis.fetch=(...e)=>nr(e[0])&&e[0].endsWith("tree-sitter.wasm")?ir.apply(globalThis,[sr,Me(e)]):ir.apply(globalThis,e));var or,cr=r(9794),ar=r(1427);const ur=null!==(or=globalThis.AggregateError)&&void 0!==or?or:ar;const lr=class extends ur{constructor(e,t,r){if(super(e,t,r),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,zt(r)&&tt("cause",r)&&!tt("cause",this)){const{cause:e}=r;this.cause=e,e instanceof Error&&tt("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}};class pr extends Error{static[Symbol.hasInstance](e){return Function.prototype[Symbol.hasInstance].call(pr,e)||Function.prototype[Symbol.hasInstance].call(lr,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,zt(t)&&tt("cause",t)&&!tt("cause",this)){const{cause:e}=t;this.cause=e,e instanceof Error&&tt("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const mr=pr,hr=r.p+"7c7ca323880d9fa6e48d1d1b2e78e140.wasm";let dr=null,fr=null;const yr=async e=>{if(null===dr&&null===fr)fr=cr.init().then((()=>cr.Language.load(hr))).then((e=>{const t=new cr;return t.setLanguage(e),t})).finally((()=>{fr=null})),dr=await fr;else if(null===dr&&null!==fr)dr=await fr;else if(null===dr)throw new mr("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return dr.parse(e)};var _r=r(229),gr=r(2185),br=r(9982);function vr(e){return vr="function"==typeof gr&&"symbol"==typeof br?function(e){return typeof e}:function(e){return e&&"function"==typeof gr&&e.constructor===gr&&e!==gr.prototype?"symbol":typeof e},vr(e)}var Er=r(8241);function wr(e){var t=function(e,t){if("object"!==vr(e)||null===e)return e;var r=e[Er];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==vr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vr(t)?t:String(t)}function jr(e,t,r){return(t=wr(t))in e?_r(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?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},Or={},Sr=e=>null==e?void 0:e.type,Pr=e=>"string"==typeof Sr(e),Ar=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Or,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=xr,nodeTypeGetter:a=Sr,nodePredicate:u=Pr,detectCycles:l=!0}={})=>{const p=r||{};let m,h,d=Array.isArray(e),f=[e],y=-1,_=[];const g=[],b=[];let v=e;do{y+=1;const e=y===f.length;let r,E;const w=e&&0!==_.length;if(e){if(r=0===b.length?void 0:g.pop(),E=h,h=b.pop(),w){E=d?E.slice():Object.create(Object.getPrototypeOf(E),Object.getOwnPropertyDescriptors(E));let e=0;for(let t=0;t<_.length;t+=1){let r=_[t][0];const n=_[t][1];d&&(r-=e),d&&n===i?(E.splice(r,1),e+=1):E[r]=n}}y=m.index,f=m.keys,_=m.edits,d=m.inArray,m=m.prev}else{if(r=h?d?y:f[y]:void 0,E=h?h[r]:v,E===i||void 0===E)continue;h&&g.push(r)}if(b.includes(E))continue;let j;if(!Array.isArray(E)){if(!u(E))throw new mr(`Invalid AST Node: ${JSON.stringify(E)}`);if(l&&b.includes(E)){g.pop();continue}const i=c(t,a(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(j=i.call(t,E,r,h,g,b),j===s)break;if(j===o){if(!e){g.pop();continue}}else if(void 0!==j&&(_.push([r,j]),!e)){if(!u(j)){g.pop();continue}E=j}}}void 0===j&&w&&_.push([r,E]),e||(m={inArray:d,index:y,keys:f,edits:_,prev:m},d=Array.isArray(E),f=d?E:p[a(E)]||[],y=-1,_=[],h&&b.push(h),h=E)}while(void 0!==m);return 0!==_.length&&([,v]=_[_.length-1]),v};Ar[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Or,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=xr,nodeTypeGetter:a=Sr,nodePredicate:u=Pr,detectCycles:l=!0}={})=>{const p=r||{};let m,h,d=Array.isArray(e),f=[e],y=-1,_=[];const g=[],b=[];let v=e;do{y+=1;const e=y===f.length;let r,E;const w=e&&0!==_.length;if(e){if(r=0===b.length?void 0:g.pop(),E=h,h=b.pop(),w){E=d?E.slice():Object.create(Object.getPrototypeOf(E),Object.getOwnPropertyDescriptors(E));let e=0;for(let t=0;t<_.length;t+=1){let r=_[t][0];const n=_[t][1];d&&(r-=e),d&&n===i?(E.splice(r,1),e+=1):E[r]=n}}y=m.index,f=m.keys,_=m.edits,d=m.inArray,m=m.prev}else{if(r=h?d?y:f[y]:void 0,E=h?h[r]:v,E===i||void 0===E)continue;h&&g.push(r)}let j;if(!Array.isArray(E)){if(!u(E))throw new mr(`Invalid AST Node: ${JSON.stringify(E)}`);if(l&&b.includes(E)){g.pop();continue}const i=c(t,a(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(j=await i.call(t,E,r,h,g,b),j===s)break;if(j===o){if(!e){g.pop();continue}}else if(void 0!==j&&(_.push([r,j]),!e)){if(!u(j)){g.pop();continue}E=j}}}void 0===j&&w&&_.push([r,E]),e||(m={inArray:d,index:y,keys:f,edits:_,prev:m},d=Array.isArray(E),f=d?E:p[a(E)]||[],y=-1,_=[],h&&b.push(h),h=E)}while(void 0!==m);return 0!==_.length&&([,v]=_[_.length-1]),v};var Fr=r(5090),$r=r(2747),kr=r(5483);function Rr(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},i=kr(e);for(n=0;n<i.length;n++)r=i[n],$r(t).call(t,r)>=0||(s[r]=e[r]);return s}(e,t);if(Fr){var i=Fr(e);for(n=0;n<i.length;n++)r=i[n],$r(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var Ir=r(6591);const Mr=Xe(ot),Nr=(e,t)=>"function"==typeof(null==t?void 0:t[e]),Tr=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),Cr=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},qr=(e,t)=>{var r,n;return(null==t||null===(r=t.classes)||void 0===r||null===(n=r.includes)||void 0===n?void 0:n.call(r,e))||!1},Dr=(e,t)=>(null==t?void 0:t.element)===e,Lr=e=>e({hasMethod:Nr,hasBasicElementProps:Tr,primitiveEq:Cr,isElementType:Dr,hasClass:qr}),Br=Lr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.W_||e(r)&&t(void 0,r))),Vr=Lr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.RP||e(r)&&t("string",r))),Ur=Lr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.VL||e(r)&&t("number",r))),zr=Lr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.zr||e(r)&&t("null",r))),Gr=Lr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.hh||e(r)&&t("boolean",r))),Jr=Lr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Rt.Sb||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Wr=Lr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Rt.ON&&!(n instanceof Rt.Sb)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Hr=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rt.c6||e(n)&&t("member",n)&&r(void 0,n))),Kr=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rt.EA||e(n)&&t("link",n)&&r(void 0,n))),Zr=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rt.tK||e(n)&&t("ref",n)&&r(void 0,n))),Xr=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jt||e(n)&&t("annotation",n)&&r("array",n))),Qr=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ht||e(n)&&t("comment",n)&&r("string",n))),Yr=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zt||e(n)&&t("parseResult",n)&&r("array",n))),en=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qt||e(n)&&t("sourceMap",n)&&r("array",n))),tn=e=>Dr("object",e)||Dr("array",e)||Dr("boolean",e)||Dr("number",e)||Dr("string",e)||Dr("null",e)||Dr("member",e),rn=e=>{var t,r;return en(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},nn=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Wr(r)&&b(Mr(r.toValue()),e)},sn=(e,t)=>0===e.length||b(Mr(t.classes.toValue()),e),on=["keyMap"],cn=["keyMap"];function an(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?an(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):an(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ln=e=>Jr(e)?"ObjectElement":Wr(e)?"ArrayElement":Hr(e)?"MemberElement":Vr(e)?"StringElement":Gr(e)?"BooleanElement":Ur(e)?"NumberElement":zr(e)?"NullElement":Kr(e)?"LinkElement":Zr(e)?"RefElement":void 0,pn=Ne(ln,nr),mn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},hn=(Ir({props:{result:[],predicate:c,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),(e,t,r={})=>{let{keyMap:n=mn}=r,s=Rr(r,on);return Ar(e,t,un({keyMap:n,nodeTypeGetter:ln,nodePredicate:pn},s))});hn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{let{keyMap:n=mn}=r,s=Rr(r,cn);return Ar[Symbol.for("nodejs.util.promisify.custom")](e,t,un({keyMap:n,nodeTypeGetter:ln,nodePredicate:pn},s))};const dn=$e(Lt);const fn=w(1,Lt(Array.isArray)?Array.isArray:Ne(M,st("Array")));const yn=Ae(fn,ut);const _n=w(3,(function(e,t,r){var n=ht(e,r),s=ht(ct(e),r);if(!dn(n)&&!yn(e)){var i=le(n,s);return je(i,t)}}));function gn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const bn=()=>({predicates:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),namespace:rr}),vn=(e,t,r={})=>{if(0===t.length)return e;const n=gt(bn,"toolboxCreator",r),s=gt({},"visitorOptions",r),i=gt(ln,"nodeTypeGetter",s),o=n(),c=t.map((e=>e(o))),a=((e,{visitFnGetter:t=xr,nodeTypeGetter:r=Sr}={})=>{const n=new Array(e.length);return{enter(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const c=t(e[o],r(s),!1);if("function"==typeof c){const t=c.call(e[o],s,...i);if(!1===t)n[o]=s;else if(t===Or)n[o]=Or;else if(void 0!==t)return t}}},leave(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const c=t(e[o],r(s),!0);if("function"==typeof c){const t=c.call(e[o],s,...i);if(t===Or)n[o]=Or;else if(void 0!==t&&!1!==t)return t}}else n[o]===s&&(n[o]=null)}}})(c.map(gt({},"visitor")),{nodeTypeGetter:i});c.forEach(_n(["pre"],[]));const u=hn(e,a,s);return c.forEach(_n(["post"],[])),u};function En(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?En(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const jn=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return vn(n,r,{toolboxCreator:bn,visitorOptions:{nodeTypeGetter:ln}})},xn=e=>(t,r={})=>jn(t,wn(wn({},r),{},{Type:e}));Rt.Sb.refract=xn(Rt.Sb),Rt.ON.refract=xn(Rt.ON),Rt.RP.refract=xn(Rt.RP),Rt.hh.refract=xn(Rt.hh),Rt.zr.refract=xn(Rt.zr),Rt.VL.refract=xn(Rt.VL),Rt.EA.refract=xn(Rt.EA),Rt.tK.refract=xn(Rt.tK),Jt.refract=xn(Jt),Ht.refract=xn(Ht),Zt.refract=xn(Zt),Qt.refract=xn(Qt);const On=class{constructor(e){jr(this,"type",void 0),jr(this,"startPosition",void 0),jr(this,"endPosition",void 0),jr(this,"startIndex",void 0),jr(this,"endIndex",void 0),jr(this,"text",void 0),jr(this,"isNamed",void 0),jr(this,"isMissing",void 0),jr(this,"fieldName",void 0),jr(this,"hasError",!1),jr(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(...e){this.children.push(...e)}},Sn=Ir({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Qt,n=(e=>{const t=new Rt.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new Rt.ON([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),r.classes.push("position"),[t,r]})(e);if(null!==n){const[e,t]=n;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)};this.enter=function(t){if(t instanceof On&&!t.isNamed&&t.isMissing){const r=t.type||t.text,n=new Jt(`(Missing ${r})`);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.document=function(t){const r=new Zt;return r._content=t.children,e(t,r),r},this.ParseResultElement={leave(e){const t=e.findElements(tn);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const r=new Rt.Sb;return r._content=t.children,e(t,r),r},this.array=function(t){const r=new Rt.ON;return r._content=t.children,e(t,r),r},this.pair=function(t){const r=new Rt.c6;return r.content.key=t.keyNode,r.content.value=t.valueNode,e(t,r),t.children.length>3&&t.children.filter((e=>"ERROR"===e.type)).forEach((e=>{this.ERROR(e,t,[],[t])})),r},this.string=function(t){const r=new Rt.RP(JSON.parse(t.text));return e(t,r),r},this.number=function(t){const r=new Rt.VL(Number(t.text));return e(t,r),r},this.null=function(t){const r=new Rt.zr;return e(t,r),r},this.true=function(t){const r=new Rt.hh(!0);return e(t,r),r},this.false=function(t){const r=new Rt.hh(!1);return e(t,r),r},this.ERROR=function(t,r,n,s){const i=!t.hasError,o=t.text,c=new Jt(i?`(Unexpected ${o})`:`(Error ${o})`);if(c.classes.push("error"),e(t,c),0===s.length){const e=new Zt;return e.push(c),e}return this.annotations.push(c),null}}});let Pn;Pn=Symbol.iterator;class An{constructor(e){jr(this,"cursor",void 0),this.cursor=e}document(){return new On(this.cursor)}object(){return new On(this.cursor).setFieldName(this.cursor)}array(){return new On(this.cursor).setFieldName(this.cursor)}pair(){return new On(this.cursor)}string(){return new On(this.cursor).setFieldName(this.cursor)}number(){return new On(this.cursor).setFieldName(this.cursor)}null(){return new On(this.cursor).setFieldName(this.cursor)}true(){return new On(this.cursor).setFieldName(this.cursor)}false(){return new On(this.cursor).setFieldName(this.cursor)}ERROR(){return new On(this.cursor).setHasError(this.cursor)}*[Pn](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new On(this.cursor),this.cursor.gotoFirstChild()){const[t]=new An(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new An(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Fn=An;function $n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const kn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},mn),Rn=e=>Yr(e)?"ParseResultElement":Br(e)?ln(e):Sr(e),In=e=>Br(e)||Pr(e),Mn=(e,{sourceMap:t=!1}={})=>{const r=Sn(),n=e.walk(),s=[...new Fn(n)].at(0);return Ar(s,r,{keyMap:kn,nodeTypeGetter:Rn,nodePredicate:In,state:{sourceMap:t}})},Nn=Ir({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:e=null,column:t=null,char:r=null}={}){this.row=e,this.column=t,this.char=r}}),Tn=Ir({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:e=null,end:t=null}={}){this.start=e,this.end=t}}),Cn=Ir({props:{type:null,position:null,children:[]},init({children:e=[],position:t=null,isMissing:r=!1}={},{stamp:n={}}){this.type=n.type,this.isMissing=r,this.children=e,this.position=t},methods:{clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}}}),qn=Ir(Cn,{statics:{type:"literal"},props:{value:null},init({value:e=null}={}){this.value=e}}),Dn=Ir(Cn),Ln=Ir(Dn,{statics:{type:"document"},methods:{get child(){return rt(this.children)}}}),Bn=Ir(Cn,{statics:{type:"parseResult"},methods:{get rootNode(){return rt(this.children)}}}),Vn=(e,t)=>(null==t?void 0:t.type)===e,Un=(Vn.bind(void 0,"literal"),Vn.bind(void 0,"position"),Vn.bind(void 0,"point"),Vn.bind(void 0,"parseResult"),Vn.bind(void 0,"document"),Vn.bind(void 0,"string")),zn=Vn.bind(void 0,"false"),Gn=Vn.bind(void 0,"true"),Jn=Vn.bind(void 0,"null"),Wn=Vn.bind(void 0,"number"),Hn=Vn.bind(void 0,"array"),Kn=Vn.bind(void 0,"object"),Zn=Vn.bind(void 0,"stringContent"),Xn=Vn.bind(void 0,"escapeSequence"),Qn=Vn.bind(void 0,"property"),Yn=Vn.bind(void 0,"key"),es=Ir(Dn,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Qn)}}}),ts=Ir(Dn,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((e=>Zn(e)||Xn(e))).reduce(((e,t)=>e+t.value),"")}}}),rs=Ir(ts,{statics:{type:"key"}}),ns=Ir(Dn,{statics:{type:"property"},methods:{get key(){return this.children.find(Yn)},get value(){return this.children.find((e=>zn(e)||Gn(e)||Jn(e)||Wn(e)||Un(e)||Hn(e)||Kn(e)))}}}),ss=Ir(Dn,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>zn(e)||Gn(e)||Jn(e)||Wn(e)||Un(e)||Hn(e)||Kn))}}}),is=Ir(Dn,{statics:{type:"value"},props:{value:null},init({value:e=null}={}){this.value=e}}),os=Ir(is,{statics:{type:"stringContent"}}),cs=Ir(is,{statics:{type:"number"}}),as=Ir(is,{statics:{type:"null"}}),us=Ir(is,{statics:{type:"true"}}),ls=Ir(is,{statics:{type:"false"}}),ps=Ir(Cn,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:e=null,isUnexpected:t=!1}={}){this.value=e,this.isUnexpected=t}}),ms={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},hs=Ir({init(){const e=e=>{const t=Nn({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=Nn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return Tn({start:t,end:r})};this.enter=function(t){if(t instanceof On&&!t.isNamed){const r=e(t),n=t.type||t.text,{isMissing:s}=t;return qn({value:n,position:r,isMissing:s})}},this.document={enter(t){const r=e(t);return Ln({children:t.children,position:r,isMissing:t.isMissing})},leave:e=>Bn({children:[e]})},this.object=function(t){const r=e(t);return es({children:t.children,position:r,isMissing:t.isMissing})},this.pair=function(t){const r=e(t),n=t.children.slice(1),{keyNode:s}=t,i=rs({children:(null==s?void 0:s.children)||[],position:null!=s?e(s):null,isMissing:null!=s&&s.isMissing});return ns({children:[i,...n],position:r,isMissing:t.isMissing})},this.array=function(t){const r=e(t);return ss({children:t.children,position:r,isMissing:t.isMissing})},this.string=function(t){const r=e(t),n=os({value:JSON.parse(t.text)});return ts({children:[n],position:r,isMissing:t.isMissing})},this.number=function(t){const r=e(t),n=t.text;return cs({value:n,position:r,isMissing:t.isMissing})},this.null=function(t){const r=e(t),n=t.text;return as({value:n,position:r,isMissing:t.isMissing})},this.true=function(t){const r=e(t),n=t.text;return us({value:n,position:r,isMissing:t.isMissing})},this.false=function(t){const r=e(t),n=t.text;return ls({value:n,position:r,isMissing:t.isMissing})},this.ERROR=function(t,r,n,s){const i=e(t),o=ps({children:t.children,position:i,isUnexpected:!t.hasError,isMissing:t.isMissing,value:t.text});return 0===s.length?Bn({children:[o]}):o}}});function ds(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const fs=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({[Bn.type]:["children"],[Ln.type]:["children"],[es.type]:["children"],[ns.type]:["children"],[ss.type]:["children"],[ps.type]:["children"]},mn),ys=e=>Yr(e)?"ParseResultElement":Br(e)?ln(e):Sr(e),_s=e=>Br(e)||Pr(e),gs=Ir({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Qt;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)};this.document=function(e){const t=new Zt;return t._content=e.children,t},this.ParseResultElement={leave(e){const t=e.findElements(tn);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const r=new Rt.Sb;return r._content=t.children,e(t,r),r},this.property=function(t){const r=new Rt.c6;return r.content.key=t.key,r.content.value=t.value,e(t,r),t.children.length>3&&t.children.filter((e=>"error"===e.type)).forEach((e=>{this.error(e,t,[],[t])})),r},this.key=function(t){const r=new Rt.RP(t.value);return e(t,r),r},this.array=function(t){const r=new Rt.ON;return r._content=t.children,e(t,r),r},this.string=function(t){const r=new Rt.RP(t.value);return e(t,r),r},this.number=function(t){const r=new Rt.VL(Number(t.value));return e(t,r),r},this.null=function(t){const r=new Rt.zr;return e(t,r),r},this.true=function(t){const r=new Rt.hh(!0);return e(t,r),r},this.false=function(t){const r=new Rt.hh(!1);return e(t,r),r},this.literal=function(t){if(t.isMissing){const r=`(Missing ${t.value})`,n=new Jt(r);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.error=function(t,r,n,s){const i=t.isUnexpected?`(Unexpected ${t.value})`:`(Error ${t.value})`,o=new Jt(i);if(o.classes.push("error"),e(t,o),0===s.length){const e=new Zt;return e.push(o),e}return this.annotations.push(o),null}}}),bs=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=[...new Fn(r)].at(0),s=hs(),i=gs(),o=Ar(n,s,{keyMap:ms,state:{sourceMap:t}});return Ar(o.rootNode,i,{keyMap:fs,nodeTypeGetter:ys,nodePredicate:_s,state:{sourceMap:t}})},vs=(tr(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class Es extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const ws=Es;class js extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const xs=js;class Os extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Ss=Os;class Ps extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const As=Ps;class Fs extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const $s=Fs;class ks extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Rs=ks;class Is extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ms=Is;class Ns extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Rt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Rt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Ns.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ts=Ns;class Cs extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const qs=Cs;class Ds extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ls=Ds;class Bs extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Vr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Vr(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Vs=Bs;class Us extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const zs=Us;class Gs extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Js=Gs;class Ws extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const Hs=Ws;class Ks extends Rt.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Zs=Ks;class Xs extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Qs=Xs;class Ys extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Rt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const ei=Ys;class ti extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new Rt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Rt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(ti.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ri=ti;class ni extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const si=ni;class ii extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const oi=ii;class ci extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const ai=ci;class ui extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new Rt.hh(!1)}set required(e){this.set("required",e)}}const li=ui;class pi extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const mi=pi;class hi extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const di=hi;class fi extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("idProp",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const yi=fi;class _i extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const gi=_i;class bi extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const vi=bi;class Ei extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const wi=Ei;const ji=Te((function(e,t){return Ne(Ot(""),Je(Mr(e)),lt(""))(t)})),xi=(e,t)=>{const r=Ce(e,t);return dt((e=>{if(zt(e)&&et("$ref",e)&&bt(nr,"$ref",e)){const t=ht(["$ref"],e),n=ji("#/",t);return ht(n.split("/"),r)}return zt(e)?xi(e,r):e}),e)},Oi=Ir({props:{element:null},methods:{copyMetaAndAttributes(e,t){rn(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Si=Ir(Oi,{methods:{enter(e){return this.element=e.clone(),Or}}});const Pi=_e(Ft());function Ai(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Fi=e=>{if(Br(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},$i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ai(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},mn);function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ri(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ii=Ir(Oi,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return _t(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ne(ht(["visitors",...e,"fixedFields"]),I)(this.specObj)},retrieveVisitor(e){return yt(Lt,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(Ri(Ri({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return $t(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(hn(t,n,Ri({keyMap:$i,nodeTypeGetter:Fi},r)),n.element)}}}),Mi=Ir(Ii,{props:{specPath:Pi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Vr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Rt.c6(n.clone(),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),Or}}}),Ni=Ir(Mi,Si,{props:{specPath:_e(["document","objects","JSONSchema"])},init(){this.element=new yi}}),Ti=Si,Ci=Si,qi=Si,Di=Si,Li=Si,Bi=Si,Vi=Si,Ui=Si,zi=Si,Gi=Si,Ji=Ir({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Wi=e=>Jr(e)&&e.hasKey("$ref"),Hi=Ir(Ii,Ji,Si,{methods:{ObjectElement(e){const t=Wi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Or},ArrayElement(e){return this.element=new Rt.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Wi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Or}}}),Ki=Si,Zi=Si,Xi=Si,Qi=Si,Yi=Si,eo=Ir(Si,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),Or}}});const to=$e(w(1,Ae(Mt,He(Tt,Lt))));const ro=$e(ut);const no=ye([nr,to,ro]),so=Ir(Ii,{props:{fieldPatternPredicate:c,specPath:Pi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Rt.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),Or}}}),io=Ir(so,{props:{fieldPatternPredicate:no}}),oo=Ir(io,Ji,Si,{props:{specPath:e=>Wi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-properties")}}),co=Ir(io,Ji,Si,{props:{specPath:e=>Wi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-patternProperties")}}),ao=Ir(io,Ji,Si,{props:{specPath:e=>Wi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-dependencies")}}),uo=Ir(Si,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),Or}}}),lo=Ir(Si,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Or},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Or}}}),po=Ir(Ii,Ji,Si,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Wi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Or}}}),mo=Ir(Ii,Ji,Si,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Wi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Or}}}),ho=Ir(Ii,Ji,Si,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Wi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Or}}}),fo=Ir(io,Ji,Si,{props:{specPath:e=>Wi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-definitions")}}),yo=Si,_o=Si,go=Si,bo=Si,vo=Si,Eo=Ir(Ii,Ji,Si,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Or}}}),wo=Si,jo=Ir(Mi,Si,{props:{specPath:_e(["document","objects","JSONReference"])},init(){this.element=new gi},methods:{ObjectElement(e){const t=Mi.compose.methods.ObjectElement.call(this,e);return Vr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),xo=Ir(Si,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Or}}});const Oo=$e(Qe);const So=Ae(fn,ro);function Po(e){return function(e){if(Array.isArray(e))return Ao(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ao(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ao(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Fo=Ne(xt(Fe((function(e,t){return e.length>t.length}))),rt,ne("length")),$o=Te((function(e,t,r){var n=r.apply(void 0,Po(e));return Oo(n)?wt(n):t}));const ko=it(So,(function(e){var t=Fo(e);return w(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return fe($o(r),void 0,e)}))}),Ft),Ro=Ir(Ii,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>it(e,_e(t),Ft))),r=ko(t)(e);return this.element=this.toRefractedElement(r,e),Or}}}),Io=Ir(Ro,{props:{alternator:[{predicate:Wi,specPath:["document","objects","JSONReference"]},{predicate:a,specPath:["document","objects","JSONSchema"]}]}}),Mo={visitors:{value:Si,JSONSchemaOrJSONReferenceVisitor:Io,document:{objects:{JSONSchema:{$visitor:Ni,fixedFields:{id:Ti,$schema:Ci,multipleOf:qi,maximum:Di,exclusiveMaximum:Li,minimum:Bi,exclusiveMinimum:Vi,maxLength:Ui,minLength:zi,pattern:Gi,additionalItems:Io,items:Hi,maxItems:Ki,minItems:Zi,uniqueItems:Xi,maxProperties:Qi,minProperties:Yi,required:eo,properties:oo,additionalProperties:Io,patternProperties:co,dependencies:ao,enum:uo,type:lo,allOf:po,anyOf:mo,oneOf:ho,not:Io,definitions:fo,title:yo,description:_o,default:go,format:bo,base:vo,links:Eo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:wo}},JSONReference:{$visitor:jo,fixedFields:{$ref:xo}},Media:{$visitor:Ir(Mi,Si,{props:{specPath:_e(["document","objects","Media"])},init(){this.element=new vi}}),fixedFields:{binaryEncoding:Si,type:Si}},LinkDescription:{$visitor:Ir(Mi,Si,{props:{specPath:_e(["document","objects","LinkDescription"])},init(){this.element=new wi}}),fixedFields:{href:Si,rel:Si,title:Si,targetSchema:Io,mediaType:Si,method:Si,encType:Si,schema:Io}}}}}},No=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yi||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),To=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gi||e(n)&&t("JSONReference",n)&&r("object",n))),Co=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vi||e(n)&&t("media",n)&&r("object",n))),qo=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wi||e(n)&&t("linkDescription",n)&&r("object",n))),Do={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",yi),t.register("jSONReference",gi),t.register("media",vi),t.register("linkDescription",wi),t}};function Lo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Vo=()=>{const e=tr(Do);return{predicates:Bo(Bo({},t),{},{isStringElement:Vr}),namespace:e}};function Uo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const zo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Mo}={})=>{const s=(0,Rt.Qc)(e),i=xi(n),o=_n(t,[],i);return hn(s,o,{state:{specObj:i}}),vn(o.element,r,{toolboxCreator:Vo,visitorOptions:{keyMap:$i,nodeTypeGetter:Fi}})},Go=e=>(t,r={})=>zo(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));yi.refract=Go(["visitors","document","objects","JSONSchema","$visitor"]),gi.refract=Go(["visitors","document","objects","JSONReference","$visitor"]),vi.refract=Go(["visitors","document","objects","Media","$visitor"]),wi.refract=Go(["visitors","document","objects","LinkDescription","$visitor"]);const Jo=class extends yi{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Wo extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Ho=Wo;class Ko extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Zo=Ko;class Xo extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Qo=Xo;class Yo extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const ec=Yo;class tc extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const rc=tc;class nc extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const sc=nc,ic=Ir({props:{element:null},methods:{copyMetaAndAttributes(e,t){rn(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}});function oc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const cc=e=>{if(Br(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ac=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oc(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},mn);function uc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uc(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const pc=Ir(ic,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return _t(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ne(ht(["visitors",...e,"fixedFields"]),I)(this.specObj)},retrieveVisitor(e){return yt(Lt,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(lc(lc({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return $t(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(hn(t,n,lc({keyMap:ac,nodeTypeGetter:cc},r)),n.element)}}}),mc=e=>Jr(e)&&e.hasKey("openapi")&&e.hasKey("info"),hc=e=>Jr(e)&&e.hasKey("name")&&e.hasKey("in"),dc=e=>Jr(e)&&e.hasKey("$ref"),fc=e=>Jr(e)&&e.hasKey("content"),yc=e=>Jr(e)&&e.hasKey("description"),_c=Jr,gc=Jr,bc=e=>Vr(e.key)&&St("x-",e.key.toValue()),vc=Ir(pc,{props:{specPath:Pi,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:bc},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Vr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Rt.c6(n.clone(),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),Or}}}),Ec=Ir(ic,{methods:{enter(e){return this.element=e.clone(),Or}}}),wc=Ir(vc,Ec,{props:{specPath:_e(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Qs},methods:{ObjectElement(e){return this.unrefractedElement=e,vc.compose.methods.ObjectElement.call(this,e)}}}),jc=Ir(pc,Ec,{methods:{StringElement(e){const t=new Zs(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,Or}}}),xc=Ir(pc,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),Or}}}),Oc=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new qs}}),Sc=Ec,Pc=Ec,Ac=Ec,Fc=Ir(Ec,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),Or}}}),$c=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ss}}),kc=Ec,Rc=Ec,Ic=Ec,Mc=Ir(vc,Ec,{props:{specPath:_e(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ls}}),Nc=Ec,Tc=Ec,Cc=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Vs},methods:{ObjectElement(e){const t=vc.compose.methods.ObjectElement.call(this,e);return(Vr(this.element.operationId)||Vr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),qc=Ir(Ec,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Or}}}),Dc=Ir(Ec,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Or}}}),Lc=Ir(pc,{props:{fieldPatternPredicate:c,specPath:Pi,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:bc},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Rt.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),Or}}}),Bc=Ir(Lc,{props:{fieldPatternPredicate:no}});class Vc extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Vc.primaryClass)}}jr(Vc,"primaryClass","link-parameters");const Uc=Vc,zc=Ir(Bc,Ec,{props:{specPath:_e(["value"])},init(){this.element=new Uc}}),Gc=Ec,Jc=Ec,Wc=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Qo}}),Hc=Ir(Ec,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),Or}}}),Kc=Ec;class Zc extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Zc.primaryClass)}}jr(Zc,"primaryClass","servers");const Xc=Zc,Qc=Ir(pc,Ec,{init(){this.element=new Xc},methods:{ArrayElement(e){return e.forEach((e=>{const t=_c(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Or}}}),Yc=Ir(vc,Ec,{props:{specPath:_e(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new ec}}),ea=Ec,ta=Ec,ra=Ec;class na extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(na.primaryClass)}}jr(na,"primaryClass","server-variables");const sa=na,ia=Ir(Bc,Ec,{props:{specPath:_e(["document","objects","ServerVariable"])},init(){this.element=new sa}}),oa=Ir(vc,Ec,{props:{specPath:_e(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new zs}}),ca=Ir(pc,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>it(e,_e(t),Ft))),r=ko(t)(e);return this.element=this.toRefractedElement(r,e),Or}}}),aa=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ws||e(n)&&t("callback",n)&&r("object",n))),ua=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xs||e(n)&&t("components",n)&&r("object",n))),la=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ss||e(n)&&t("contact",n)&&r("object",n))),pa=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rs||e(n)&&t("example",n)&&r("object",n))),ma=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ms||e(n)&&t("externalDocumentation",n)&&r("object",n))),ha=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ts||e(n)&&t("header",n)&&r("object",n))),da=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qs||e(n)&&t("info",n)&&r("object",n))),fa=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ls||e(n)&&t("license",n)&&r("object",n))),ya=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vs||e(n)&&t("link",n)&&r("object",n))),_a=e=>{if(!ya(e))return!1;if(!Vr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ga=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zs||e(n)&&t("openapi",n)&&r("string",n))),ba=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Qs||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),va=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ei||e(n)&&t("operation",n)&&r("object",n))),Ea=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ri||e(n)&&t("parameter",n)&&r("object",n))),wa=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof si||e(n)&&t("pathItem",n)&&r("object",n))),ja=e=>{if(!wa(e))return!1;if(!Vr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},xa=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oi||e(n)&&t("paths",n)&&r("object",n))),Oa=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ai||e(n)&&t("reference",n)&&r("object",n))),Sa=e=>{if(!Oa(e))return!1;if(!Vr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Pa=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof li||e(n)&&t("requestBody",n)&&r("object",n))),Aa=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mi||e(n)&&t("response",n)&&r("object",n))),Fa=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof di||e(n)&&t("responses",n)&&r("object",n))),$a=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jo||e(n)&&t("schema",n)&&r("object",n))),ka=e=>Gr(e)&&e.classes.includes("boolean-json-schema"),Ra=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ho||e(n)&&t("securityRequirement",n)&&r("object",n))),Ia=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qo||e(n)&&t("server",n)&&r("object",n))),Ma=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ec||e(n)&&t("serverVariable",n)&&r("object",n))),Na=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zs||e(n)&&t("mediaType",n)&&r("object",n))),Ta=Ir(ca,Ec,{props:{alternator:[{predicate:dc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=ca.compose.methods.enter.call(this,e);return Oa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Ca=Ec,qa=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new Rt.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Da extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Da.primaryClass),this.classes.push("examples")}}jr(Da,"primaryClass","media-type-examples");const La=Da,Ba=Ir(qa,{init(){this.element=new La}});class Va extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Va.primaryClass)}}jr(Va,"primaryClass","media-type-encoding");const Ua=Va,za=Ir(Bc,Ec,{props:{specPath:_e(["document","objects","Encoding"])},init(){this.element=new Ua}}),Ga=Ir(Bc,Ec,{props:{specPath:_e(["value"])},init(){this.element=new Ho}});class Ja extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Ja.primaryClass)}}jr(Ja,"primaryClass","security");const Wa=Ja,Ha=Ir(pc,Ec,{init(){this.element=new Wa},methods:{ArrayElement(e){return e.forEach((e=>{if(Jr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),Or}}}),Ka=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new xs}}),Za=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new rc}}),Xa=Ec,Qa=Ec,Ya=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new ai},methods:{ObjectElement(e){const t=vc.compose.methods.ObjectElement.call(this,e);return Vr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),eu=Ir(Ec,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Or}}}),tu=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new ri},methods:{ObjectElement(e){const t=vc.compose.methods.ObjectElement.call(this,e);return Jr(this.element.contentProp)&&this.element.contentProp.filter(Na).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),ru=Ec,nu=Ec,su=Ec,iu=Ec,ou=Ec,cu=Ec,au=Ec,uu=Ec,lu=Ec,pu=Ir(ca,Ec,{props:{alternator:[{predicate:dc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=ca.compose.methods.enter.call(this,e);return Oa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),mu=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ts}}),hu=Ec,du=Ec,fu=Ec,yu=Ec,_u=Ec,gu=Ec,bu=Ec,vu=Ir(ca,Ec,{props:{alternator:[{predicate:dc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=ca.compose.methods.enter.call(this,e);return Oa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Eu=Ec;class wu extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(wu.primaryClass),this.classes.push("examples")}}jr(wu,"primaryClass","header-examples");const ju=wu,xu=Ir(qa,{init(){this.element=new ju}}),Ou=Ir(Bc,Ec,{props:{specPath:_e(["document","objects","MediaType"])},init(){this.element=new Rt.Sb,this.element.classes.push("content")}});class Su extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Su.primaryClass),this.classes.push("content")}}jr(Su,"primaryClass","header-content");const Pu=Su,Au=Ir(Ou,{init(){this.element=new Pu}}),Fu=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new Jo}}),{allOf:$u}=Mo.visitors.document.objects.JSONSchema.fixedFields,ku=Ir($u,{methods:{ArrayElement(e){const t=$u.compose.methods.ArrayElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Ru}=Mo.visitors.document.objects.JSONSchema.fixedFields,Iu=Ir(Ru,{methods:{ArrayElement(e){const t=Ru.compose.methods.ArrayElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Mu}=Mo.visitors.document.objects.JSONSchema.fixedFields,Nu=Ir(Mu,{methods:{ArrayElement(e){const t=Mu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{definitions:Tu}=Mo.visitors.document.objects.JSONSchema.fixedFields,Cu=Ir(Tu,{methods:{ObjectElement(e){const t=Tu.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{dependencies:qu}=Mo.visitors.document.objects.JSONSchema.fixedFields,Du=Ir(qu,{methods:{ObjectElement(e){const t=qu.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Lu}=Mo.visitors.document.objects.JSONSchema.fixedFields,Bu=Ir(Lu,{methods:{ObjectElement(e){const t=Lu.compose.methods.ObjectElement.call(this,e);return Oa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),Or}}}),{properties:Vu}=Mo.visitors.document.objects.JSONSchema.fixedFields,Uu=Ir(Vu,{methods:{ObjectElement(e){const t=Vu.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{patternProperties:zu}=Mo.visitors.document.objects.JSONSchema.fixedFields,Gu=Ir(zu,{methods:{ObjectElement(e){const t=zu.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Ju}=Mo.visitors.document.objects.JSONSchema.fixedFields,Wu=Ir(Ju,{methods:{ArrayElement(e){return this.element=e.clone(),Or}}}),Hu=Ec,Ku=Ec,Zu=Ec,Xu=Ec,{JSONSchemaOrJSONReferenceVisitor:Qu}=Mo.visitors,Yu=Ir(Qu,{methods:{ObjectElement(e){const t=Qu.compose.methods.enter.call(this,e);return Oa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),el=Object.fromEntries(Object.entries(Mo.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===Mo.visitors.JSONSchemaOrJSONReferenceVisitor?[e,Yu]:[e,t]))),tl=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new As}}),rl=Ec;class nl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(nl.primaryClass)}}jr(nl,"primaryClass","discriminator-mapping");const sl=nl,il=Ir(Bc,Ec,{props:{specPath:_e(["value"])},init(){this.element=new sl}}),ol=Ir(vc,Ec,{props:{specPath:_e(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new sc}}),cl=Ec,al=Ec,ul=Ec,ll=Ec,pl=Ec,ml=Ec;class hl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(hl.primaryClass),this.classes.push("examples")}}jr(hl,"primaryClass","parameter-examples");const dl=hl,fl=Ir(qa,{init(){this.element=new dl}});class yl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(yl.primaryClass),this.classes.push("content")}}jr(yl,"primaryClass","parameter-content");const _l=yl,gl=Ir(Ou,{init(){this.element=new _l}});class bl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(bl.primaryClass)}}jr(bl,"primaryClass","components-schemas");const vl=bl,El=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new vl},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class wl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(wl.primaryClass)}}jr(wl,"primaryClass","components-responses");const jl=wl,xl=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new jl},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Aa).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}});class Ol extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ol.primaryClass),this.classes.push("parameters")}}jr(Ol,"primaryClass","components-parameters");const Sl=Ol,Pl=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new Sl},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class Al extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Al.primaryClass),this.classes.push("examples")}}jr(Al,"primaryClass","components-examples");const Fl=Al,$l=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new Fl},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class kl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(kl.primaryClass)}}jr(kl,"primaryClass","components-request-bodies");const Rl=kl,Il=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new Rl},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class Ml extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ml.primaryClass)}}jr(Ml,"primaryClass","components-headers");const Nl=Ml,Tl=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Nl},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(ha).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}});class Cl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Cl.primaryClass)}}jr(Cl,"primaryClass","components-security-schemes");const ql=Cl,Dl=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new ql},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class Ll extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ll.primaryClass)}}jr(Ll,"primaryClass","components-links");const Bl=Ll,Vl=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Bl},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class Ul extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ul.primaryClass)}}jr(Ul,"primaryClass","components-callbacks");const zl=Ul,Gl=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new zl},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Jl=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Rs},methods:{ObjectElement(e){const t=vc.compose.methods.ObjectElement.call(this,e);return Vr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Wl=Ec,Hl=Ec,Kl=Ec,Zl=Ir(Ec,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Or}}}),Xl=Ir(vc,Ec,{props:{specPath:_e(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ms}}),Ql=Ec,Yl=Ec,ep=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new $s},methods:{ObjectElement(e){const t=vc.compose.methods.ObjectElement.call(this,e);return Jr(this.element.headers)&&this.element.headers.filter(ha).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),tp=Ec;class rp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(rp.primaryClass)}}jr(rp,"primaryClass","encoding-headers");const np=rp,sp=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new np},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ha(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),ip=Ec,op=Ec,cp=Ec,ap=Ir(Lc,Ec,{props:{fieldPatternPredicate:Pt(/^\/(?<path>.*)$/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new oi},methods:{ObjectElement(e){const t=Lc.compose.methods.ObjectElement.call(this,e);return this.element.filter(wa).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),up=Ir(vc,Ec,{props:{specPath:_e(["document","objects","RequestBody"])},init(){this.element=new li},methods:{ObjectElement(e){const t=vc.compose.methods.ObjectElement.call(this,e);return Jr(this.element.contentProp)&&this.element.contentProp.filter(Na).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),lp=Ec;class pp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(pp.primaryClass),this.classes.push("content")}}jr(pp,"primaryClass","request-body-content");const mp=pp,hp=Ir(Ou,{init(){this.element=new mp}}),dp=Ec,fp=Ir(Lc,Ec,{props:{fieldPatternPredicate:Pt(/{(?<expression>.*)}/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new ws},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(wa).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),yp=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Response"])},init(){this.element=new mi},methods:{ObjectElement(e){const t=vc.compose.methods.ObjectElement.call(this,e);return Jr(this.element.contentProp)&&this.element.contentProp.filter(Na).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),Jr(this.element.headers)&&this.element.headers.filter(ha).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),_p=Ec;class gp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(gp.primaryClass)}}jr(gp,"primaryClass","response-headers");const bp=gp,vp=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new bp},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ha(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}});class Ep extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ep.primaryClass),this.classes.push("content")}}jr(Ep,"primaryClass","response-content");const wp=Ep,jp=Ir(Ou,{init(){this.element=new wp}});class xp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(xp.primaryClass)}}jr(xp,"primaryClass","response-links");const Op=xp,Sp=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Op},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),Pp=Ir(vc,Lc,{props:{specPathFixedFields:Pi,specPathPatternedFields:Pi},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Le(e.keys(),t)],vc.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Lc.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Or}}}),Ap=Ir(Pp,Ec,{props:{specPathFixedFields:_e(["document","objects","Responses"]),specPathPatternedFields:e=>dc(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:Pt(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Et(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new di},methods:{ObjectElement(e){const t=Pp.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Aa).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),Fp=Ir(ca,Ec,{props:{alternator:[{predicate:dc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=ca.compose.methods.enter.call(this,e);return Oa(this.element)?this.element.setMetaProperty("referenced-element","response"):Aa(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),$p=Ir(vc,Ec,{props:{specPath:_e(["document","objects","Operation"])},init(){this.element=new ei}});class kp extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(kp.primaryClass)}}jr(kp,"primaryClass","operation-tags");const Rp=kp,Ip=Ir(Ec,{init(){this.element=new Rp},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),Or}}}),Mp=Ec,Np=Ec,Tp=Ec;class Cp extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Cp.primaryClass),this.classes.push("parameters")}}jr(Cp,"primaryClass","operation-parameters");const qp=Cp,Dp=Ir(pc,Ec,{init(){this.element=new Rt.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=dc(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Oa(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Or}}}),Lp=Ir(Dp,{init(){this.element=new qp}}),Bp=Ir(ca,{props:{alternator:[{predicate:dc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=ca.compose.methods.enter.call(this,e);return Oa(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class Vp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Vp.primaryClass)}}jr(Vp,"primaryClass","operation-callbacks");const Up=Vp,zp=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Up},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(Oa).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Gp=Ec;class Jp extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Jp.primaryClass),this.classes.push("security")}}jr(Jp,"primaryClass","operation-security");const Wp=Jp,Hp=Ir(pc,Ec,{init(){this.element=new Wp},methods:{ArrayElement(e){return e.forEach((e=>{const t=Jr(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Or}}});class Kp extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Kp.primaryClass),this.classes.push("servers")}}jr(Kp,"primaryClass","operation-servers");const Zp=Kp,Xp=Ir(Qc,{init(){this.element=new Zp}}),Qp=Ir(vc,Ec,{props:{specPath:_e(["document","objects","PathItem"])},init(){this.element=new si},methods:{ObjectElement(e){const t=vc.compose.methods.ObjectElement.call(this,e);return this.element.filter(va).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),Vr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Yp=Ir(Ec,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Or}}}),em=Ec,tm=Ec;class rm extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(rm.primaryClass),this.classes.push("servers")}}jr(rm,"primaryClass","path-item-servers");const nm=rm,sm=Ir(Qc,{init(){this.element=new nm}});class im extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(im.primaryClass),this.classes.push("parameters")}}jr(im,"primaryClass","path-item-parameters");const om=im,cm=Ir(Dp,{init(){this.element=new om}}),am=Ir(vc,Ec,{props:{specPath:_e(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zo}}),um=Ec,lm=Ec,pm=Ec,mm=Ec,hm=Ec,dm=Ec,fm=Ec,ym=Ir(vc,Ec,{props:{specPath:_e(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Hs}}),_m=Ir(vc,Ec,{props:{specPath:_e(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Js}}),gm=Ec,bm=Ec,vm=Ec;class Em extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Em.primaryClass)}}jr(Em,"primaryClass","oauth-flow-scopes");const wm=Em,jm=Ir(Bc,Ec,{props:{specPath:_e(["value"])},init(){this.element=new wm}});class xm extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(xm.primaryClass)}}jr(xm,"primaryClass","tags");const Om=xm,Sm=Ir(pc,Ec,{init(){this.element=new Om},methods:{ArrayElement(e){return e.forEach((e=>{const t=gc(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Or}}});function Pm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Am(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pm(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Fm={$visitor:Ya,fixedFields:{$ref:eu}},$m={$visitor:Fu,fixedFields:Am(Am({},el),{},{allOf:ku,anyOf:Iu,oneOf:Nu,definitions:Cu,items:Bu,dependencies:Du,properties:Uu,patternProperties:Gu,type:Wu,nullable:Hu,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:Ku,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Zu,deprecated:Xu})},km={visitors:{value:Ec,document:{objects:{OpenApi:{$visitor:wc,fixedFields:{openapi:jc,info:{$ref:"#/visitors/document/objects/Info"},servers:Qc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Ha,tags:Sm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Oc,fixedFields:{title:Sc,description:Pc,termsOfService:Ac,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Fc}},Contact:{$visitor:$c,fixedFields:{name:kc,url:Rc,email:Ic}},License:{$visitor:Mc,fixedFields:{name:Nc,url:Tc}},Server:{$visitor:Wc,fixedFields:{url:Hc,description:Kc,variables:ia}},ServerVariable:{$visitor:Yc,fixedFields:{enum:ea,default:ta,description:ra}},Components:{$visitor:Ka,fixedFields:{schemas:El,responses:xl,parameters:Pl,examples:$l,requestBodies:Il,headers:Tl,securitySchemes:Dl,links:Vl,callbacks:Gl}},Paths:{$visitor:ap},PathItem:{$visitor:Qp,fixedFields:{$ref:Yp,summary:em,description:tm,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:sm,parameters:cm}},Operation:{$visitor:$p,fixedFields:{tags:Ip,summary:Mp,description:Np,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Tp,parameters:Lp,requestBody:Bp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:zp,deprecated:Gp,security:Hp,servers:Xp}},ExternalDocumentation:{$visitor:Xl,fixedFields:{description:Ql,url:Yl}},Parameter:{$visitor:tu,fixedFields:{name:ru,in:nu,description:su,required:iu,deprecated:ou,allowEmptyValue:cu,style:au,explode:uu,allowReserved:lu,schema:pu,example:ml,examples:fl,content:gl}},RequestBody:{$visitor:up,fixedFields:{description:lp,content:hp,required:dp}},MediaType:{$visitor:oa,fixedFields:{schema:Ta,example:Ca,examples:Ba,encoding:za}},Encoding:{$visitor:ep,fixedFields:{contentType:tp,headers:sp,style:ip,explode:op,allowReserved:cp}},Responses:{$visitor:Ap,fixedFields:{default:Fp}},Response:{$visitor:yp,fixedFields:{description:_p,headers:vp,content:jp,links:Sp}},Callback:{$visitor:fp},Example:{$visitor:Jl,fixedFields:{summary:Wl,description:Hl,value:Kl,externalValue:Zl}},Link:{$visitor:Cc,fixedFields:{operationRef:qc,operationId:Dc,parameters:zc,requestBody:Gc,description:Jc,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:mu,fixedFields:{description:hu,required:du,deprecated:fu,allowEmptyValue:yu,style:_u,explode:gu,allowReserved:bu,schema:vu,example:Eu,examples:xu,content:Au}},Tag:{$visitor:Za,fixedFields:{name:Xa,description:Qa,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:Fm,Reference:Fm,JSONSchema:$m,Schema:$m,LinkDescription:Mo.visitors.document.objects.LinkDescription,Media:Mo.visitors.document.objects.Media,Discriminator:{$visitor:tl,fixedFields:{propertyName:rl,mapping:il}},XML:{$visitor:ol,fixedFields:{name:cl,namespace:al,prefix:ul,attribute:ll,wrapped:pl}},SecurityScheme:{$visitor:am,fixedFields:{type:um,description:lm,name:pm,in:mm,scheme:hm,bearerFormat:dm,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:fm}},OAuthFlows:{$visitor:ym,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:_m,fixedFields:{authorizationUrl:gm,tokenUrl:bm,refreshUrl:vm,scopes:jm}},SecurityRequirement:{$visitor:Ga}},extension:{$visitor:xc}}}},Rm={namespace:e=>{const{base:t}=e;return t.register("callback",ws),t.register("components",xs),t.register("contact",Ss),t.register("discriminator",As),t.register("encoding",$s),t.register("example",Rs),t.register("externalDocumentation",Ms),t.register("header",Ts),t.register("info",qs),t.register("license",Ls),t.register("link",Vs),t.register("mediaType",zs),t.register("oAuthFlow",Js),t.register("oAuthFlows",Hs),t.register("openapi",Zs),t.register("openApi3_0",Qs),t.register("operation",ei),t.register("parameter",ri),t.register("pathItem",si),t.register("paths",oi),t.register("reference",ai),t.register("requestBody",li),t.register("response",mi),t.register("responses",di),t.register("schema",Jo),t.register("securityRequirement",Ho),t.register("securityScheme",Zo),t.register("server",Qo),t.register("serverVariable",ec),t.register("tag",rc),t.register("xml",sc),t}};function Im(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Im(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Im(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Nm=()=>{const e=tr(Rm);return{predicates:Mm(Mm(Mm({},s),i),{},{isStringElement:Vr}),namespace:e}};function Tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Cm=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Rt.Qc)(e),s=xi(km),i=_n(t,[],s);return hn(n,i,{state:{specObj:s}}),vn(i.element,r,{toolboxCreator:Nm,visitorOptions:{keyMap:ac,nodeTypeGetter:cc}})},qm=e=>(t,r={})=>Cm(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tm(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));ws.refract=qm(["visitors","document","objects","Callback","$visitor"]),xs.refract=qm(["visitors","document","objects","Components","$visitor"]),Ss.refract=qm(["visitors","document","objects","Contact","$visitor"]),Rs.refract=qm(["visitors","document","objects","Example","$visitor"]),As.refract=qm(["visitors","document","objects","Discriminator","$visitor"]),$s.refract=qm(["visitors","document","objects","Encoding","$visitor"]),Ms.refract=qm(["visitors","document","objects","ExternalDocumentation","$visitor"]),Ts.refract=qm(["visitors","document","objects","Header","$visitor"]),qs.refract=qm(["visitors","document","objects","Info","$visitor"]),Ls.refract=qm(["visitors","document","objects","License","$visitor"]),Vs.refract=qm(["visitors","document","objects","Link","$visitor"]),zs.refract=qm(["visitors","document","objects","MediaType","$visitor"]),Js.refract=qm(["visitors","document","objects","OAuthFlow","$visitor"]),Hs.refract=qm(["visitors","document","objects","OAuthFlows","$visitor"]),Zs.refract=qm(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Qs.refract=qm(["visitors","document","objects","OpenApi","$visitor"]),ei.refract=qm(["visitors","document","objects","Operation","$visitor"]),ri.refract=qm(["visitors","document","objects","Parameter","$visitor"]),si.refract=qm(["visitors","document","objects","PathItem","$visitor"]),oi.refract=qm(["visitors","document","objects","Paths","$visitor"]),ai.refract=qm(["visitors","document","objects","Reference","$visitor"]),li.refract=qm(["visitors","document","objects","RequestBody","$visitor"]),mi.refract=qm(["visitors","document","objects","Response","$visitor"]),di.refract=qm(["visitors","document","objects","Responses","$visitor"]),Jo.refract=qm(["visitors","document","objects","Schema","$visitor"]),Ho.refract=qm(["visitors","document","objects","SecurityRequirement","$visitor"]),Zo.refract=qm(["visitors","document","objects","SecurityScheme","$visitor"]),Qo.refract=qm(["visitors","document","objects","Server","$visitor"]),ec.refract=qm(["visitors","document","objects","ServerVariable","$visitor"]),rc.refract=qm(["visitors","document","objects","Tag","$visitor"]),sc.refract=qm(["visitors","document","objects","XML","$visitor"]);const Dm=class extends ws{};const Lm=class extends xs{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Bm=class extends Ss{};const Vm=class extends As{};const Um=class extends $s{};const zm=class extends Rs{};const Gm=class extends Ms{};const Jm=class extends Ts{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Wm=class extends qs{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Hm extends Rt.RP{constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}jr(Hm,"default",new Hm("https://spec.openapis.org/oas/3.1/dialect/base"));const Km=Hm;const Zm=class extends Ls{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Xm=class extends Vs{};const Qm=class extends zs{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ym=class extends Js{};const eh=class extends Hs{};const th=class extends Zs{};class rh extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const nh=rh;const sh=class extends ei{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const ih=class extends ri{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const oh=class extends si{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const ch=class extends oi{};class ah extends ai{}Object.defineProperty(ah.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(ah.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const uh=ah;const lh=class extends li{};const ph=class extends mi{};const mh=class extends di{};class hh extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}}const dh=hh;const fh=class extends Ho{};const yh=class extends Zo{};const _h=class extends Qo{};const gh=class extends ec{};const bh=class extends rc{};const vh=class extends sc{},Eh=Ir(vc,Ec,{props:{specPath:_e(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new nh,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,vc.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:wh}}}}}=km,jh=Ir(wh,{init(){this.element=new Wm}}),xh=Ec,{visitors:{document:{objects:{Contact:{$visitor:Oh}}}}}=km,Sh=Ir(Oh,{init(){this.element=new Bm}}),{visitors:{document:{objects:{License:{$visitor:Ph}}}}}=km,Ah=Ir(Ph,{init(){this.element=new Zm}}),Fh=Ec,{visitors:{document:{objects:{Link:{$visitor:$h}}}}}=km,kh=Ir($h,{init(){this.element=new Xm}}),Rh=Ir(pc,Ec,{methods:{StringElement(e){const t=new Km(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,Or}}}),{visitors:{document:{objects:{Server:{$visitor:Ih}}}}}=km,Mh=Ir(Ih,{init(){this.element=new _h}}),{visitors:{document:{objects:{ServerVariable:{$visitor:Nh}}}}}=km,Th=Ir(Nh,{init(){this.element=new gh}}),{visitors:{document:{objects:{MediaType:{$visitor:Ch}}}}}=km,qh=Ir(Ch,{init(){this.element=new Qm}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:Dh}}}}}=km,Lh=Ir(Dh,{init(){this.element=new fh}}),{visitors:{document:{objects:{Components:{$visitor:Bh}}}}}=km,Vh=Ir(Bh,{init(){this.element=new Lm}}),{visitors:{document:{objects:{Tag:{$visitor:Uh}}}}}=km,zh=Ir(Uh,{init(){this.element=new bh}}),{visitors:{document:{objects:{Reference:{$visitor:Gh}}}}}=km,Jh=Ir(Gh,{init(){this.element=new uh}}),Wh=Ec,Hh=Ec,{visitors:{document:{objects:{Parameter:{$visitor:Kh}}}}}=km,Zh=Ir(Kh,{init(){this.element=new ih}}),{visitors:{document:{objects:{Header:{$visitor:Xh}}}}}=km,Qh=Ir(Xh,{init(){this.element=new Jm}}),Yh=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dm||e(n)&&t("callback",n)&&r("object",n))),ed=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lm||e(n)&&t("components",n)&&r("object",n))),td=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bm||e(n)&&t("contact",n)&&r("object",n))),rd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zm||e(n)&&t("example",n)&&r("object",n))),nd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gm||e(n)&&t("externalDocumentation",n)&&r("object",n))),sd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jm||e(n)&&t("header",n)&&r("object",n))),id=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wm||e(n)&&t("info",n)&&r("object",n))),od=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Km||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),cd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zm||e(n)&&t("license",n)&&r("object",n))),ad=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xm||e(n)&&t("link",n)&&r("object",n))),ud=e=>{if(!ad(e))return!1;if(!Vr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ld=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof th||e(n)&&t("openapi",n)&&r("string",n))),pd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof nh||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),md=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sh||e(n)&&t("operation",n)&&r("object",n))),hd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ih||e(n)&&t("parameter",n)&&r("object",n))),dd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oh||e(n)&&t("pathItem",n)&&r("object",n))),fd=e=>{if(!dd(e))return!1;if(!Vr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},yd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ch||e(n)&&t("paths",n)&&r("object",n))),_d=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uh||e(n)&&t("reference",n)&&r("object",n))),gd=e=>{if(!_d(e))return!1;if(!Vr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},bd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lh||e(n)&&t("requestBody",n)&&r("object",n))),vd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ph||e(n)&&t("response",n)&&r("object",n))),Ed=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mh||e(n)&&t("responses",n)&&r("object",n))),wd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dh||e(n)&&t("schema",n)&&r("object",n))),jd=e=>Gr(e)&&e.classes.includes("boolean-json-schema"),xd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fh||e(n)&&t("securityRequirement",n)&&r("object",n))),Od=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _h||e(n)&&t("server",n)&&r("object",n))),Sd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gh||e(n)&&t("serverVariable",n)&&r("object",n))),Pd=Lr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qm||e(n)&&t("mediaType",n)&&r("object",n))),Ad=Ir({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Fd=Ir(vc,Ad,Ec,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&od(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&Vr(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():Km.default.toValue(),e},t=t=>{if(It(this.parent)&&!Vr(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(wd(this.parent)&&!Vr(t.get("$schema"))){var r,n;const e=Ce(null===(r=this.parent.meta.get("inherited$schema"))||void 0===r?void 0:r.toValue(),null===(n=this.parent.$schema)||void 0===n?void 0:n.toValue());this.element.setMetaProperty("inherited$schema",e)}},r=e=>{var t;const r=null!==this.parent?this.parent.getMetaProperty("inherited$id",[]).clone():new Rt.ON,n=null===(t=e.get("$id"))||void 0===t?void 0:t.toValue();no(n)&&r.push(n),this.element.setMetaProperty("inherited$id",r)};this.ObjectElement=function(e){this.element=new dh,t(e),r(e),this.parent=this.element;const n=vc.compose.methods.ObjectElement.call(this,e);return Vr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),n},this.BooleanElement=function(e){return this.element=e.clone(),this.element.classes.push("boolean-json-schema"),Or}}}),$d=Ec,kd=Ir(Ec,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-$vocabulary"),Or}}}),Rd=Ec,Id=Ec,Md=Ec,Nd=Ec,Td=Ir(Ec,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Or}}}),Cd=Ir(Bc,Ad,Ec,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-$defs")}}),qd=Ec,Dd=Ir(pc,Ad,Ec,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Jr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Or}}}),Ld=Ir(pc,Ad,Ec,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Jr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Or}}}),Bd=Ir(pc,Ad,Ec,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Jr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Or}}}),Vd=Ir(Bc,Ad,Ec,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),Ud=Ir(pc,Ad,Ec,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if(Jr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Or}}}),zd=Ir(Bc,Ad,Ec,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-properties")}}),Gd=Ir(Bc,Ad,Ec,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-patternProperties")}}),Jd=Ir(Ec,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Or},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Or}}}),Wd=Ir(Ec,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),Or}}}),Hd=Ec,Kd=Ec,Zd=Ec,Xd=Ec,Qd=Ec,Yd=Ec,ef=Ec,tf=Ec,rf=Ec,nf=Ec,sf=Ec,of=Ec,cf=Ec,af=Ec,uf=Ec,lf=Ec,pf=Ir(Ec,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),Or}}}),mf=Ir(Ec,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-dependentRequired"),Or}}}),hf=Ec,df=Ec,ff=Ec,yf=Ec,_f=Ec,gf=Ec,bf=Ir(Ec,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-examples"),Or}}}),vf=Ec,Ef=Ec,wf=Ec,jf=Ec,{visitors:{document:{objects:{Discriminator:{$visitor:xf}}}}}=km,Of=Ir(xf,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new Vm}}),{visitors:{document:{objects:{XML:{$visitor:Sf}}}}}=km,Pf=Ir(Sf,{init(){this.element=new vh}}),Af=Ir(Bc,Ec,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new vl}});class Ff extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ff.primaryClass)}}jr(Ff,"primaryClass","components-path-items");const $f=Ff,kf=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new $f},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(_d).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:Rf}}}}}=km,If=Ir(Rf,{init(){this.element=new zm}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:Mf}}}}}=km,Nf=Ir(Mf,{init(){this.element=new Gm}}),{visitors:{document:{objects:{Encoding:{$visitor:Tf}}}}}=km,Cf=Ir(Tf,{init(){this.element=new Um}}),{visitors:{document:{objects:{Paths:{$visitor:qf}}}}}=km,Df=Ir(qf,{init(){this.element=new ch}}),{visitors:{document:{objects:{RequestBody:{$visitor:Lf}}}}}=km,Bf=Ir(Lf,{init(){this.element=new lh}}),{visitors:{document:{objects:{Callback:{$visitor:Vf}}}}}=km,Uf=Ir(Vf,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Dm},methods:{ObjectElement(e){const t=Vf.compose.methods.ObjectElement.call(this,e);return this.element.filter(_d).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:zf}}}}}=km,Gf=Ir(zf,{init(){this.element=new ph}}),{visitors:{document:{objects:{Responses:{$visitor:Jf}}}}}=km,Wf=Ir(Jf,{init(){this.element=new mh}}),{visitors:{document:{objects:{Operation:{$visitor:Hf}}}}}=km,Kf=Ir(Hf,{init(){this.element=new sh}}),{visitors:{document:{objects:{PathItem:{$visitor:Zf}}}}}=km,Xf=Ir(Zf,{init(){this.element=new oh}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:Qf}}}}}=km,Yf=Ir(Qf,{init(){this.element=new yh}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:ey}}}}}=km,ty=Ir(ey,{init(){this.element=new eh}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:ry}}}}}=km,ny=Ir(ry,{init(){this.element=new Ym}});class sy extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(sy.primaryClass)}}jr(sy,"primaryClass","webhooks");const iy=sy,oy=Ir(Bc,Ec,{props:{specPath:e=>dc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new iy},methods:{ObjectElement(e){const t=Bc.compose.methods.ObjectElement.call(this,e);return this.element.filter(_d).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(dd).forEach(((e,t)=>{e.setMetaProperty("webhook-name",t.toValue())})),t}}}),cy={visitors:{value:km.visitors.value,document:{objects:{OpenApi:{$visitor:Eh,fixedFields:{openapi:km.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Rh,servers:km.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:oy,components:{$ref:"#/visitors/document/objects/Components"},security:km.visitors.document.objects.OpenApi.fixedFields.security,tags:km.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:jh,fixedFields:{title:km.visitors.document.objects.Info.fixedFields.title,description:km.visitors.document.objects.Info.fixedFields.description,summary:xh,termsOfService:km.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:km.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Sh,fixedFields:{name:km.visitors.document.objects.Contact.fixedFields.name,url:km.visitors.document.objects.Contact.fixedFields.url,email:km.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Ah,fixedFields:{name:km.visitors.document.objects.License.fixedFields.name,identifier:Fh,url:km.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Mh,fixedFields:{url:km.visitors.document.objects.Server.fixedFields.url,description:km.visitors.document.objects.Server.fixedFields.description,variables:km.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Th,fixedFields:{enum:km.visitors.document.objects.ServerVariable.fixedFields.enum,default:km.visitors.document.objects.ServerVariable.fixedFields.default,description:km.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Vh,fixedFields:{schemas:Af,responses:km.visitors.document.objects.Components.fixedFields.responses,parameters:km.visitors.document.objects.Components.fixedFields.parameters,examples:km.visitors.document.objects.Components.fixedFields.examples,requestBodies:km.visitors.document.objects.Components.fixedFields.requestBodies,headers:km.visitors.document.objects.Components.fixedFields.headers,securitySchemes:km.visitors.document.objects.Components.fixedFields.securitySchemes,links:km.visitors.document.objects.Components.fixedFields.links,callbacks:km.visitors.document.objects.Components.fixedFields.callbacks,pathItems:kf}},Paths:{$visitor:Df},PathItem:{$visitor:Xf,fixedFields:{$ref:km.visitors.document.objects.PathItem.fixedFields.$ref,summary:km.visitors.document.objects.PathItem.fixedFields.summary,description:km.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:km.visitors.document.objects.PathItem.fixedFields.servers,parameters:km.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Kf,fixedFields:{tags:km.visitors.document.objects.Operation.fixedFields.tags,summary:km.visitors.document.objects.Operation.fixedFields.summary,description:km.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:km.visitors.document.objects.Operation.fixedFields.operationId,parameters:km.visitors.document.objects.Operation.fixedFields.parameters,requestBody:km.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:km.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:km.visitors.document.objects.Operation.fixedFields.deprecated,security:km.visitors.document.objects.Operation.fixedFields.security,servers:km.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Nf,fixedFields:{description:km.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:km.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Zh,fixedFields:{name:km.visitors.document.objects.Parameter.fixedFields.name,in:km.visitors.document.objects.Parameter.fixedFields.in,description:km.visitors.document.objects.Parameter.fixedFields.description,required:km.visitors.document.objects.Parameter.fixedFields.required,deprecated:km.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:km.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:km.visitors.document.objects.Parameter.fixedFields.style,explode:km.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:km.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:km.visitors.document.objects.Parameter.fixedFields.example,examples:km.visitors.document.objects.Parameter.fixedFields.examples,content:km.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Bf,fixedFields:{description:km.visitors.document.objects.RequestBody.fixedFields.description,content:km.visitors.document.objects.RequestBody.fixedFields.content,required:km.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:qh,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:km.visitors.document.objects.MediaType.fixedFields.example,examples:km.visitors.document.objects.MediaType.fixedFields.examples,encoding:km.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Cf,fixedFields:{contentType:km.visitors.document.objects.Encoding.fixedFields.contentType,headers:km.visitors.document.objects.Encoding.fixedFields.headers,style:km.visitors.document.objects.Encoding.fixedFields.style,explode:km.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:km.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Wf,fixedFields:{default:km.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Gf,fixedFields:{description:km.visitors.document.objects.Response.fixedFields.description,headers:km.visitors.document.objects.Response.fixedFields.headers,content:km.visitors.document.objects.Response.fixedFields.content,links:km.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Uf},Example:{$visitor:If,fixedFields:{summary:km.visitors.document.objects.Example.fixedFields.summary,description:km.visitors.document.objects.Example.fixedFields.description,value:km.visitors.document.objects.Example.fixedFields.value,externalValue:km.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:kh,fixedFields:{operationRef:km.visitors.document.objects.Link.fixedFields.operationRef,operationId:km.visitors.document.objects.Link.fixedFields.operationId,parameters:km.visitors.document.objects.Link.fixedFields.parameters,requestBody:km.visitors.document.objects.Link.fixedFields.requestBody,description:km.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Qh,fixedFields:{description:km.visitors.document.objects.Header.fixedFields.description,required:km.visitors.document.objects.Header.fixedFields.required,deprecated:km.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:km.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:km.visitors.document.objects.Header.fixedFields.style,explode:km.visitors.document.objects.Header.fixedFields.explode,allowReserved:km.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:km.visitors.document.objects.Header.fixedFields.example,examples:km.visitors.document.objects.Header.fixedFields.examples,content:km.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:zh,fixedFields:{name:km.visitors.document.objects.Tag.fixedFields.name,description:km.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Jh,fixedFields:{$ref:km.visitors.document.objects.Reference.fixedFields.$ref,summary:Wh,description:Hh}},Schema:{$visitor:Fd,fixedFields:{$schema:$d,$vocabulary:kd,$id:Rd,$anchor:Id,$dynamicAnchor:Md,$dynamicRef:Nd,$ref:Td,$defs:Cd,$comment:qd,allOf:Dd,anyOf:Ld,oneOf:Bd,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:Vd,prefixItems:Ud,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:zd,patternProperties:Gd,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:Jd,enum:Wd,const:Hd,multipleOf:Kd,maximum:Zd,exclusiveMaximum:Xd,minimum:Qd,exclusiveMinimum:Yd,maxLength:ef,minLength:tf,pattern:rf,maxItems:nf,minItems:sf,uniqueItems:of,maxContains:cf,minContains:af,maxProperties:uf,minProperties:lf,required:pf,dependentRequired:mf,title:hf,description:df,default:ff,deprecated:yf,readOnly:_f,writeOnly:gf,examples:bf,format:vf,contentEncoding:Ef,contentMediaType:wf,contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:jf}},Discriminator:{$visitor:Of,fixedFields:{propertyName:km.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:km.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Pf,fixedFields:{name:km.visitors.document.objects.XML.fixedFields.name,namespace:km.visitors.document.objects.XML.fixedFields.namespace,prefix:km.visitors.document.objects.XML.fixedFields.prefix,attribute:km.visitors.document.objects.XML.fixedFields.attribute,wrapped:km.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Yf,fixedFields:{type:km.visitors.document.objects.SecurityScheme.fixedFields.type,description:km.visitors.document.objects.SecurityScheme.fixedFields.description,name:km.visitors.document.objects.SecurityScheme.fixedFields.name,in:km.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:km.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:km.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:km.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:ty,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:ny,fixedFields:{authorizationUrl:km.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:km.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:km.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:km.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Lh}},extension:{$visitor:km.visitors.document.extension.$visitor}}}};function ay(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const uy=e=>{if(Br(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ly=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ay(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ay(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},mn),py={namespace:e=>{const{base:t}=e;return t.register("callback",Dm),t.register("components",Lm),t.register("contact",Bm),t.register("discriminator",Vm),t.register("encoding",Um),t.register("example",zm),t.register("externalDocumentation",Gm),t.register("header",Jm),t.register("info",Wm),t.register("jsonSchemaDialect",Km),t.register("license",Zm),t.register("link",Xm),t.register("mediaType",Qm),t.register("oAuthFlow",Ym),t.register("oAuthFlows",eh),t.register("openapi",th),t.register("openApi3_1",nh),t.register("operation",sh),t.register("parameter",ih),t.register("pathItem",oh),t.register("paths",ch),t.register("reference",uh),t.register("requestBody",lh),t.register("response",ph),t.register("responses",mh),t.register("schema",dh),t.register("securityRequirement",fh),t.register("securityScheme",yh),t.register("server",_h),t.register("serverVariable",gh),t.register("tag",bh),t.register("xml",vh),t}};function my(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?my(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):my(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const dy=()=>{const e=tr(py);return{predicates:hy(hy({},o),{},{isStringElement:Vr,isArrayElement:Wr,isObjectElement:Jr,includesClasses:sn}),namespace:e}};function fy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const yy=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Rt.Qc)(e),s=xi(cy),i=_n(t,[],s);return hn(n,i,{state:{specObj:s}}),vn(i.element,r,{toolboxCreator:dy,visitorOptions:{keyMap:ly,nodeTypeGetter:uy}})},_y=e=>(t,r={})=>yy(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fy(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));Dm.refract=_y(["visitors","document","objects","Callback","$visitor"]),Lm.refract=_y(["visitors","document","objects","Components","$visitor"]),Bm.refract=_y(["visitors","document","objects","Contact","$visitor"]),zm.refract=_y(["visitors","document","objects","Example","$visitor"]),Vm.refract=_y(["visitors","document","objects","Discriminator","$visitor"]),Um.refract=_y(["visitors","document","objects","Encoding","$visitor"]),Gm.refract=_y(["visitors","document","objects","ExternalDocumentation","$visitor"]),Jm.refract=_y(["visitors","document","objects","Header","$visitor"]),Wm.refract=_y(["visitors","document","objects","Info","$visitor"]),Km.refract=_y(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Zm.refract=_y(["visitors","document","objects","License","$visitor"]),Xm.refract=_y(["visitors","document","objects","Link","$visitor"]),Qm.refract=_y(["visitors","document","objects","MediaType","$visitor"]),Ym.refract=_y(["visitors","document","objects","OAuthFlow","$visitor"]),eh.refract=_y(["visitors","document","objects","OAuthFlows","$visitor"]),th.refract=_y(["visitors","document","objects","OpenApi","fixedFields","openapi"]),nh.refract=_y(["visitors","document","objects","OpenApi","$visitor"]),sh.refract=_y(["visitors","document","objects","Operation","$visitor"]),ih.refract=_y(["visitors","document","objects","Parameter","$visitor"]),oh.refract=_y(["visitors","document","objects","PathItem","$visitor"]),ch.refract=_y(["visitors","document","objects","Paths","$visitor"]),uh.refract=_y(["visitors","document","objects","Reference","$visitor"]),lh.refract=_y(["visitors","document","objects","RequestBody","$visitor"]),ph.refract=_y(["visitors","document","objects","Response","$visitor"]),mh.refract=_y(["visitors","document","objects","Responses","$visitor"]),dh.refract=_y(["visitors","document","objects","Schema","$visitor"]),fh.refract=_y(["visitors","document","objects","SecurityRequirement","$visitor"]),yh.refract=_y(["visitors","document","objects","SecurityScheme","$visitor"]),_h.refract=_y(["visitors","document","objects","Server","$visitor"]),gh.refract=_y(["visitors","document","objects","ServerVariable","$visitor"]),bh.refract=_y(["visitors","document","objects","Tag","$visitor"]),vh.refract=_y(["visitors","document","objects","XML","$visitor"]);const gy=class extends mr{};const by=class extends gy{};const vy=class extends Array{constructor(...e){super(...e),jr(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new by('"filterByFormat" method is not implemented.')}findBy(){throw new by('"findBy" method is not implemented.')}latest(){throw new by('"latest" method is not implemented.')}};class Ey extends vy{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return pt(this.filterByFormat(e))}}const wy=new Ey("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),jy=new Ey(...wy.filterByFormat("generic"),...wy.filterByFormat("json")),xy=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/,Oy=async e=>xy.test(e)&&await(async e=>{if(!vs.test(e))return!1;try{return"ERROR"!==(await yr(e)).rootNode.type}catch{return!1}})(e),Sy=async(e,t={})=>{const r=gt({},"refractorOpts",t),n=ft(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const n=await yr(e);let s;return s="indirect"===r?bs(n,{sourceMap:t}):Mn(n,{sourceMap:t}),s})(e,n),{result:i}=s;if(kt(i)){const e=nh.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s},Py=tr(py)})(),n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiJson3_1=t():e.apidomParserAdapterOpenApiJson3_1=t()}(self,(()=>(()=>{var e={42:(e,t,s)=>{var n=s(5846);e.exports=n},6791:(e,t,s)=>{s(4339),s(4242),s(4016),s(8939),s(5454);var n=s(7545);e.exports=n.AggregateError},6762:(e,t,s)=>{e.exports=s(3028)},3028:(e,t,s)=>{s(2752);var n=s(42);e.exports=n},6235:(e,t,s)=>{var n=s(6447),r=s(9288),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(r(e)+" is not a function")}},7757:(e,t,s)=>{var n=s(6447),r=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+r(e)+" as a prototype")}},7423:e=>{e.exports=function(){}},1138:(e,t,s)=>{var n=s(5744),r=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(r(e)+" is not an object")}},8180:(e,t,s)=>{var n=s(101),r=s(7739),i=s(4104),o=function(e){return function(t,s,o){var a,c=n(t),l=i(c),u=r(o,l);if(e&&s!=s){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===s)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9272:(e,t,s)=>{var n=s(4120),r=n({}.toString),i=n("".slice);e.exports=function(e){return i(r(e),8,-1)}},4696:(e,t,s)=>{var n=s(3471),r=s(6447),i=s(9272),o=s(8182)("toStringTag"),a=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,s,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?s:c?i(t):"Object"==(n=i(t))&&r(t.callee)?"Arguments":n}},7987:(e,t,s)=>{var n=s(4500),r=s(3011),i=s(5141),o=s(2760);e.exports=function(e,t,s){for(var a=r(t),c=o.f,l=i.f,u=0;u<a.length;u++){var p=a[u];n(e,p)||s&&n(s,p)||c(e,p,l(t,p))}}},4635:(e,t,s)=>{var n=s(6192);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7271:e=>{e.exports=function(e,t){return{value:e,done:t}}},8711:(e,t,s)=>{var n=s(69),r=s(2760),i=s(774);e.exports=n?function(e,t,s){return r.f(e,t,i(1,s))}:function(e,t,s){return e[t]=s,e}},774:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9362:(e,t,s)=>{var n=s(8711);e.exports=function(e,t,s,r){return r&&r.enumerable?e[t]=s:n(e,t,s),e}},5098:(e,t,s)=>{var n=s(8576),r=Object.defineProperty;e.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(s){n[e]=t}return t}},69:(e,t,s)=>{var n=s(6192);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:e=>{var t="object"==typeof document&&document.all,s=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:s}},7449:(e,t,s)=>{var n=s(8576),r=s(5744),i=n.document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},7365:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8989:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(e,t,s)=>{var n,r,i=s(8576),o=s(8989),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(r=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(r=+n[1]),e.exports=r},2952:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4503:(e,t,s)=>{var n=s(4120),r=Error,i=n("".replace),o=String(r("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!r.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},8266:(e,t,s)=>{var n=s(8711),r=s(4503),i=s(274),o=Error.captureStackTrace;e.exports=function(e,t,s,a){i&&(o?o(e,t):n(e,"stack",r(s,a)))}},274:(e,t,s)=>{var n=s(6192),r=s(774);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},3085:(e,t,s)=>{"use strict";var n=s(8576),r=s(6298),i=s(4914),o=s(6447),a=s(5141).f,c=s(9245),l=s(7545),u=s(8043),p=s(8711),m=s(4500),h=function(e){var t=function(s,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,n)}return new e(s,n,i)}return r(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,r,d,f,_,y,g,b,v,E=e.target,x=e.global,w=e.stat,j=e.proto,S=x?n:w?n[E]:(n[E]||{}).prototype,O=x?l:l[E]||p(l,E,{})[E],P=O.prototype;for(f in t)r=!(s=c(x?f:E+(w?".":"#")+f,e.forced))&&S&&m(S,f),y=O[f],r&&(g=e.dontCallGetSet?(v=a(S,f))&&v.value:S[f]),_=r&&g?g:t[f],r&&typeof y==typeof _||(b=e.bind&&r?u(_,n):e.wrap&&r?h(_):j&&o(_)?i(_):_,(e.sham||_&&_.sham||y&&y.sham)&&p(b,"sham",!0),p(O,f,b),j&&(m(l,d=E+"Prototype")||p(l,d,{}),p(l[d],f,_),e.real&&P&&(s||!P[f])&&p(P,f,_)))}},6192:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6298:(e,t,s)=>{var n=s(2784),r=Function.prototype,i=r.apply,o=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},8043:(e,t,s)=>{var n=s(4914),r=s(6235),i=s(2784),o=n(n.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},2784:(e,t,s)=>{var n=s(6192);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8922:(e,t,s)=>{var n=s(2784),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},2282:(e,t,s)=>{var n=s(69),r=s(4500),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=r(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},6419:(e,t,s)=>{var n=s(4120),r=s(6235);e.exports=function(e,t,s){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},4914:(e,t,s)=>{var n=s(9272),r=s(4120);e.exports=function(e){if("Function"===n(e))return r(e)}},4120:(e,t,s)=>{var n=s(2784),r=Function.prototype,i=r.call,o=n&&r.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},150:(e,t,s)=>{var n=s(7545),r=s(8576),i=s(6447),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(r[e]):n[e]&&n[e][t]||r[e]&&r[e][t]}},8703:(e,t,s)=>{var n=s(4696),r=s(5037),i=s(5646),o=s(7771),a=s(8182)("iterator");e.exports=function(e){if(!i(e))return r(e,a)||r(e,"@@iterator")||o[n(e)]}},1669:(e,t,s)=>{var n=s(8922),r=s(6235),i=s(1138),o=s(9288),a=s(8703),c=TypeError;e.exports=function(e,t){var s=arguments.length<2?a(e):t;if(r(s))return i(n(s,e));throw c(o(e)+" is not iterable")}},5037:(e,t,s)=>{var n=s(6235),r=s(5646);e.exports=function(e,t){var s=e[t];return r(s)?void 0:n(s)}},8576:function(e,t,s){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof s.g&&s.g)||function(){return this}()||this||Function("return this")()},4500:(e,t,s)=>{var n=s(4120),r=s(1795),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}},4535:e=>{e.exports={}},7403:(e,t,s)=>{var n=s(150);e.exports=n("document","documentElement")},188:(e,t,s)=>{var n=s(69),r=s(6192),i=s(7449);e.exports=!n&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(e,t,s)=>{var n=s(4120),r=s(6192),i=s(9272),o=Object,a=n("".split);e.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):o(e)}:o},2643:(e,t,s)=>{var n=s(6447),r=s(5744),i=s(4469);e.exports=function(e,t,s){var o,a;return i&&n(o=t.constructor)&&o!==s&&r(a=o.prototype)&&a!==s.prototype&&i(e,a),e}},273:(e,t,s)=>{var n=s(5744),r=s(8711);e.exports=function(e,t){n(t)&&"cause"in t&&r(e,"cause",t.cause)}},3326:(e,t,s)=>{var n,r,i,o=s(5278),a=s(8576),c=s(5744),l=s(8711),u=s(4500),p=s(6434),m=s(9766),h=s(4535),d="Object already initialized",f=a.TypeError,_=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new _);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw f(d);return t.facade=e,y.set(e,t),t},r=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=m("state");h[g]=!0,n=function(e,t){if(u(e,g))throw f(d);return t.facade=e,l(e,g,t),t},r=function(e){return u(e,g)?e[g]:{}},i=function(e){return u(e,g)}}e.exports={set:n,get:r,has:i,enforce:function(e){return i(e)?r(e):n(e,{})},getterFor:function(e){return function(t){var s;if(!c(t)||(s=r(t)).type!==e)throw f("Incompatible receiver, "+e+" required");return s}}}},6109:(e,t,s)=>{var n=s(8182),r=s(7771),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},6447:(e,t,s)=>{var n=s(8382),r=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},9245:(e,t,s)=>{var n=s(6192),r=s(6447),i=/#|\.prototype\./,o=function(e,t){var s=c[a(e)];return s==u||s!=l&&(r(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},5646:e=>{e.exports=function(e){return null==e}},5744:(e,t,s)=>{var n=s(6447),r=s(8382),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},5546:e=>{e.exports=!0},3236:(e,t,s)=>{var n=s(150),r=s(6447),i=s(8902),o=s(615),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&i(t.prototype,a(e))}},3442:(e,t,s)=>{var n=s(8043),r=s(8922),i=s(1138),o=s(9288),a=s(6109),c=s(4104),l=s(8902),u=s(1669),p=s(8703),m=s(6639),h=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;e.exports=function(e,t,s){var _,y,g,b,v,E,x,w=s&&s.that,j=!(!s||!s.AS_ENTRIES),S=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),A=n(t,w),$=function(e){return _&&m(_,"normal",e),new d(!0,e)},F=function(e){return j?(i(e),P?A(e[0],e[1],$):A(e[0],e[1])):P?A(e,$):A(e)};if(S)_=e.iterator;else if(O)_=e;else{if(!(y=p(e)))throw h(o(e)+" is not iterable");if(a(y)){for(g=0,b=c(e);b>g;g++)if((v=F(e[g]))&&l(f,v))return v;return new d(!1)}_=u(e,y)}for(E=S?e.next:_.next;!(x=r(E,_)).done;){try{v=F(x.value)}catch(e){m(_,"throw",e)}if("object"==typeof v&&v&&l(f,v))return v}return new d(!1)}},6639:(e,t,s)=>{var n=s(8922),r=s(1138),i=s(5037);e.exports=function(e,t,s){var o,a;r(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw s;if(a)throw o;return r(o),s}},5695:(e,t,s)=>{"use strict";var n=s(4413).IteratorPrototype,r=s(2853),i=s(774),o=s(1284),a=s(7771),c=function(){return this};e.exports=function(e,t,s,l){var u=t+" Iterator";return e.prototype=r(n,{next:i(+!l,s)}),o(e,u,!1,!0),a[u]=c,e}},5297:(e,t,s)=>{"use strict";var n=s(3085),r=s(8922),i=s(5546),o=s(2282),a=s(6447),c=s(5695),l=s(9341),u=s(4469),p=s(1284),m=s(8711),h=s(9362),d=s(8182),f=s(7771),_=s(4413),y=o.PROPER,g=o.CONFIGURABLE,b=_.IteratorPrototype,v=_.BUGGY_SAFARI_ITERATORS,E=d("iterator"),x="keys",w="values",j="entries",S=function(){return this};e.exports=function(e,t,s,o,d,_,O){c(s,t,o);var P,A,$,F=function(e){if(e===d&&T)return T;if(!v&&e in I)return I[e];switch(e){case x:case w:case j:return function(){return new s(this,e)}}return function(){return new s(this)}},k=t+" Iterator",R=!1,I=e.prototype,M=I[E]||I["@@iterator"]||d&&I[d],T=!v&&M||F(d),C="Array"==t&&I.entries||M;if(C&&(P=l(C.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===b||(u?u(P,b):a(P[E])||h(P,E,S)),p(P,k,!0,!0),i&&(f[k]=S)),y&&d==w&&M&&M.name!==w&&(!i&&g?m(I,"name",w):(R=!0,T=function(){return r(M,this)})),d)if(A={values:F(w),keys:_?T:F(x),entries:F(j)},O)for($ in A)(v||R||!($ in I))&&h(I,$,A[$]);else n({target:t,proto:!0,forced:v||R},A);return i&&!O||I[E]===T||h(I,E,T,{name:d}),f[t]=T,A}},4413:(e,t,s)=>{"use strict";var n,r,i,o=s(6192),a=s(6447),c=s(5744),l=s(2853),u=s(9341),p=s(9362),m=s(8182),h=s(5546),d=m("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(r=u(u(i)))!==Object.prototype&&(n=r):f=!0),!c(n)||o((function(){var e={};return n[d].call(e)!==e}))?n={}:h&&(n=l(n)),a(n[d])||p(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},7771:e=>{e.exports={}},4104:(e,t,s)=>{var n=s(8445);e.exports=function(e){return n(e.length)}},7679:e=>{var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?s:t)(n)}},6016:(e,t,s)=>{var n=s(4845);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},2853:(e,t,s)=>{var n,r=s(1138),i=s(1187),o=s(2952),a=s(4535),c=s(7403),l=s(7449),u=s(9766),p="prototype",m="script",h=u("IE_PROTO"),d=function(){},f=function(e){return"<"+m+">"+e+"</"+m+">"},_=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;y="undefined"!=typeof document?document.domain&&n?_(n):(t=l("iframe"),s="java"+m+":",t.style.display="none",c.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):_(n);for(var r=o.length;r--;)delete y[p][o[r]];return y()};a[h]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(d[p]=r(e),s=new d,d[p]=null,s[h]=e):s=y(),void 0===t?s:i.f(s,t)}},1187:(e,t,s)=>{var n=s(69),r=s(9600),i=s(2760),o=s(1138),a=s(101),c=s(7653);t.f=n&&!r?Object.defineProperties:function(e,t){o(e);for(var s,n=a(t),r=c(t),l=r.length,u=0;l>u;)i.f(e,s=r[u++],n[s]);return e}},2760:(e,t,s)=>{var n=s(69),r=s(188),i=s(9600),o=s(1138),a=s(77),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",m="configurable",h="writable";t.f=n?i?function(e,t,s){if(o(e),t=a(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&h in s&&!s[h]){var n=u(e,t);n&&n[h]&&(e[t]=s.value,s={configurable:m in s?s[m]:n[m],enumerable:p in s?s[p]:n[p],writable:!1})}return l(e,t,s)}:l:function(e,t,s){if(o(e),t=a(t),o(s),r)try{return l(e,t,s)}catch(e){}if("get"in s||"set"in s)throw c("Accessors not supported");return"value"in s&&(e[t]=s.value),e}},5141:(e,t,s)=>{var n=s(69),r=s(8922),i=s(6007),o=s(774),a=s(101),c=s(77),l=s(4500),u=s(188),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!r(i.f,e,t),e[t])}},2092:(e,t,s)=>{var n=s(7934),r=s(2952).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},4750:(e,t)=>{t.f=Object.getOwnPropertySymbols},9341:(e,t,s)=>{var n=s(4500),r=s(6447),i=s(1795),o=s(9766),a=s(4635),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var s=t.constructor;return r(s)&&t instanceof s?s.prototype:t instanceof l?u:null}},8902:(e,t,s)=>{var n=s(4120);e.exports=n({}.isPrototypeOf)},7934:(e,t,s)=>{var n=s(4120),r=s(4500),i=s(101),o=s(8180).indexOf,a=s(4535),c=n([].push);e.exports=function(e,t){var s,n=i(e),l=0,u=[];for(s in n)!r(a,s)&&r(n,s)&&c(u,s);for(;t.length>l;)r(n,s=t[l++])&&(~o(u,s)||c(u,s));return u}},7653:(e,t,s)=>{var n=s(7934),r=s(2952);e.exports=Object.keys||function(e){return n(e,r)}},6007:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!s.call({1:2},1);t.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:s},4469:(e,t,s)=>{var n=s(6419),r=s(1138),i=s(7757);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=n(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,n){return r(s),i(n),t?e(s,n):s.__proto__=n,s}}():void 0)},158:(e,t,s)=>{"use strict";var n=s(3471),r=s(4696);e.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},380:(e,t,s)=>{var n=s(8922),r=s(6447),i=s(5744),o=TypeError;e.exports=function(e,t){var s,a;if("string"===t&&r(s=e.toString)&&!i(a=n(s,e)))return a;if(r(s=e.valueOf)&&!i(a=n(s,e)))return a;if("string"!==t&&r(s=e.toString)&&!i(a=n(s,e)))return a;throw o("Can't convert object to primitive value")}},3011:(e,t,s)=>{var n=s(150),r=s(4120),i=s(2092),o=s(4750),a=s(1138),c=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),s=o.f;return s?c(t,s(e)):t}},7545:e=>{e.exports={}},7656:(e,t,s)=>{var n=s(2760).f;e.exports=function(e,t,s){s in e||n(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},3209:(e,t,s)=>{var n=s(5646),r=TypeError;e.exports=function(e){if(n(e))throw r("Can't call method on "+e);return e}},1284:(e,t,s)=>{var n=s(3471),r=s(2760).f,i=s(8711),o=s(4500),a=s(158),c=s(8182)("toStringTag");e.exports=function(e,t,s,l){if(e){var u=s?e:e.prototype;o(u,c)||r(u,c,{configurable:!0,value:t}),l&&!n&&i(u,"toString",a)}}},9766:(e,t,s)=>{var n=s(8717),r=s(2759),i=n("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},6434:(e,t,s)=>{var n=s(8576),r=s(5098),i="__core-js_shared__",o=n[i]||r(i,{});e.exports=o},8717:(e,t,s)=>{var n=s(5546),r=s(6434);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(e,t,s)=>{var n=s(4120),r=s(1941),i=s(4845),o=s(3209),a=n("".charAt),c=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,s){var n,u,p=i(o(t)),m=r(s),h=p.length;return m<0||m>=h?e?"":void 0:(n=c(p,m))<55296||n>56319||m+1===h||(u=c(p,m+1))<56320||u>57343?e?a(p,m):n:e?l(p,m,m+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},6770:(e,t,s)=>{var n=s(4218),r=s(6192),i=s(8576).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},7739:(e,t,s)=>{var n=s(1941),r=Math.max,i=Math.min;e.exports=function(e,t){var s=n(e);return s<0?r(s+t,0):i(s,t)}},101:(e,t,s)=>{var n=s(2202),r=s(3209);e.exports=function(e){return n(r(e))}},1941:(e,t,s)=>{var n=s(7679);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8445:(e,t,s)=>{var n=s(1941),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},1795:(e,t,s)=>{var n=s(3209),r=Object;e.exports=function(e){return r(n(e))}},7888:(e,t,s)=>{var n=s(8922),r=s(5744),i=s(3236),o=s(5037),a=s(380),c=s(8182),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var s,c=o(e,u);if(c){if(void 0===t&&(t="default"),s=n(c,e,t),!r(s)||i(s))return s;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},77:(e,t,s)=>{var n=s(7888),r=s(3236);e.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}},3471:(e,t,s)=>{var n={};n[s(8182)("toStringTag")]="z",e.exports="[object z]"===String(n)},4845:(e,t,s)=>{var n=s(4696),r=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},9288:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},2759:(e,t,s)=>{var n=s(4120),r=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+i,36)}},615:(e,t,s)=>{var n=s(6770);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(e,t,s)=>{var n=s(69),r=s(6192);e.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(e,t,s)=>{var n=s(8576),r=s(6447),i=n.WeakMap;e.exports=r(i)&&/native code/.test(String(i))},8182:(e,t,s)=>{var n=s(8576),r=s(8717),i=s(4500),o=s(2759),a=s(6770),c=s(615),l=n.Symbol,u=r("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},426:(e,t,s)=>{"use strict";var n=s(150),r=s(4500),i=s(8711),o=s(8902),a=s(4469),c=s(7987),l=s(7656),u=s(2643),p=s(6016),m=s(273),h=s(8266),d=s(69),f=s(5546);e.exports=function(e,t,s,_){var y="stackTraceLimit",g=_?2:1,b=e.split("."),v=b[b.length-1],E=n.apply(null,b);if(E){var x=E.prototype;if(!f&&r(x,"cause")&&delete x.cause,!s)return E;var w=n("Error"),j=t((function(e,t){var s=p(_?t:e,void 0),n=_?new E(e):new E;return void 0!==s&&i(n,"message",s),h(n,j,n.stack,2),this&&o(x,this)&&u(n,this,j),arguments.length>g&&m(n,arguments[g]),n}));if(j.prototype=x,"Error"!==v?a?a(j,w):c(j,w,{name:!0}):d&&y in E&&(l(j,E,y),l(j,E,"prepareStackTrace")),c(j,E),!f)try{x.name!==v&&i(x,"name",v),x.constructor=j}catch(e){}return j}}},4016:(e,t,s)=>{var n=s(3085),r=s(150),i=s(6298),o=s(6192),a=s(426),c="AggregateError",l=r(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},3820:(e,t,s)=>{"use strict";var n=s(3085),r=s(8902),i=s(9341),o=s(4469),a=s(7987),c=s(2853),l=s(8711),u=s(774),p=s(273),m=s(8266),h=s(3442),d=s(6016),f=s(8182)("toStringTag"),_=Error,y=[].push,g=function(e,t){var s,n=r(b,this);o?s=o(_(),n?i(this):b):(s=n?this:c(b),l(s,f,"Error")),void 0!==t&&l(s,"message",d(t)),m(s,g,s.stack,1),arguments.length>2&&p(s,arguments[2]);var a=[];return h(e,y,{that:a}),l(s,"errors",a),s};o?o(g,_):a(g,_,{name:!0});var b=g.prototype=c(_.prototype,{constructor:u(1,g),message:u(1,""),name:u(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},4242:(e,t,s)=>{s(3820)},8939:(e,t,s)=>{"use strict";var n=s(101),r=s(7423),i=s(7771),o=s(3326),a=s(2760).f,c=s(5297),l=s(7271),u=s(5546),p=s(69),m="Array Iterator",h=o.set,d=o.getterFor(m);e.exports=c(Array,"Array",(function(e,t){h(this,{type:m,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,s=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,l(void 0,!0)):l("keys"==s?n:"values"==s?t[n]:[n,t[n]],!1)}),"values");var f=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!u&&p&&"values"!==f.name)try{a(f,"name",{value:"values"})}catch(e){}},4339:(e,t,s)=>{var n=s(3085),r=s(8576),i=s(6298),o=s(426),a="WebAssembly",c=r[a],l=7!==Error("e",{cause:7}).cause,u=function(e,t){var s={};s[e]=o(e,t,l),n({global:!0,constructor:!0,arity:1,forced:l},s)},p=function(e,t){if(c&&c[e]){var s={};s[e]=o(a+"."+e,t,l),n({target:a,stat:!0,constructor:!0,arity:1,forced:l},s)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},5454:(e,t,s)=>{"use strict";var n=s(863).charAt,r=s(4845),i=s(3326),o=s(5297),a=s(7271),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:r(e),index:0})}),(function(){var e,t=u(this),s=t.string,r=t.index;return r>=s.length?a(void 0,!0):(e=n(s,r),t.index+=e.length,a(e,!1))}))},2752:(e,t,s)=>{s(4242)},162:(e,t,s)=>{s(8939);var n=s(7365),r=s(8576),i=s(4696),o=s(8711),a=s(7771),c=s(8182)("toStringTag");for(var l in n){var u=r[l],p=u&&u.prototype;p&&i(p)!==c&&o(p,c,l),a[l]=a.Array}},5846:(e,t,s)=>{s(2752);var n=s(6791);s(162),e.exports=n},9515:(e,t,s)=>{var n=s(8761)(s(7772),"DataView");e.exports=n},9612:(e,t,s)=>{var n=s(2118),r=s(6909),i=s(8138),o=s(4174),a=s(7942);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},235:(e,t,s)=>{var n=s(3945),r=s(1846),i=s(8028),o=s(2344),a=s(4769);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},326:(e,t,s)=>{var n=s(8761)(s(7772),"Map");e.exports=n},6738:(e,t,s)=>{var n=s(2411),r=s(6417),i=s(6928),o=s(9493),a=s(4150);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1985:(e,t,s)=>{var n=s(8761)(s(7772),"Promise");e.exports=n},2143:(e,t,s)=>{var n=s(8761)(s(7772),"Set");e.exports=n},5386:(e,t,s)=>{var n=s(6738),r=s(2842),i=s(2482);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new n;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=i,e.exports=o},6571:(e,t,s)=>{var n=s(235),r=s(5243),i=s(2858),o=s(4417),a=s(8605),c=s(1418);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},857:(e,t,s)=>{var n=s(7772).Symbol;e.exports=n},9162:(e,t,s)=>{var n=s(7772).Uint8Array;e.exports=n},3215:(e,t,s)=>{var n=s(8761)(s(7772),"WeakMap");e.exports=n},7552:e=>{e.exports=function(e,t){for(var s=-1,n=null==e?0:e.length,r=0,i=[];++s<n;){var o=e[s];t(o,s,e)&&(i[r++]=o)}return i}},1634:(e,t,s)=>{var n=s(6473),r=s(9631),i=s(6152),o=s(3226),a=s(1735),c=s(7598),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&r(e),p=!s&&!u&&o(e),m=!s&&!u&&!p&&c(e),h=s||u||p||m,d=h?n(e.length,String):[],f=d.length;for(var _ in e)!t&&!l.call(e,_)||h&&("length"==_||p&&("offset"==_||"parent"==_)||m&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,f))||d.push(_);return d}},5067:e=>{e.exports=function(e,t){for(var s=-1,n=t.length,r=e.length;++s<n;)e[r+s]=t[s];return e}},7064:e=>{e.exports=function(e,t){for(var s=-1,n=null==e?0:e.length;++s<n;)if(t(e[s],s,e))return!0;return!1}},2218:(e,t,s)=>{var n=s(1225);e.exports=function(e,t){for(var s=e.length;s--;)if(n(e[s][0],t))return s;return-1}},1897:(e,t,s)=>{var n=s(5067),r=s(6152);e.exports=function(e,t,s){var i=t(e);return r(e)?i:n(i,s(e))}},3366:(e,t,s)=>{var n=s(857),r=s(2107),i=s(7157),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):i(e)}},5183:(e,t,s)=>{var n=s(3366),r=s(5125);e.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}},8746:(e,t,s)=>{var n=s(1952),r=s(5125);e.exports=function e(t,s,i,o,a){return t===s||(null==t||null==s||!r(t)&&!r(s)?t!=t&&s!=s:n(t,s,i,o,e,a))}},1952:(e,t,s)=>{var n=s(6571),r=s(4871),i=s(1491),o=s(7416),a=s(940),c=s(6152),l=s(3226),u=s(7598),p="[object Arguments]",m="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,f,_,y){var g=c(e),b=c(t),v=g?m:a(e),E=b?m:a(t),x=(v=v==p?h:v)==h,w=(E=E==p?h:E)==h,j=v==E;if(j&&l(e)){if(!l(t))return!1;g=!0,x=!1}if(j&&!x)return y||(y=new n),g||u(e)?r(e,t,s,f,_,y):i(e,t,v,s,f,_,y);if(!(1&s)){var S=x&&d.call(e,"__wrapped__"),O=w&&d.call(t,"__wrapped__");if(S||O){var P=S?e.value():e,A=O?t.value():t;return y||(y=new n),_(P,A,s,f,y)}}return!!j&&(y||(y=new n),o(e,t,s,f,_,y))}},6840:(e,t,s)=>{var n=s(1049),r=s(7394),i=s(9259),o=s(7035),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,m=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||r(e))&&(n(e)?m:a).test(o(e))}},5522:(e,t,s)=>{var n=s(3366),r=s(1158),i=s(5125),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&r(e.length)&&!!o[n(e)]}},6411:(e,t,s)=>{var n=s(6001),r=s(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return r(e);var t=[];for(var s in Object(e))i.call(e,s)&&"constructor"!=s&&t.push(s);return t}},6473:e=>{e.exports=function(e,t){for(var s=-1,n=Array(e);++s<e;)n[s]=t(s);return n}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},4019:(e,t,s)=>{var n=s(7772)["__core-js_shared__"];e.exports=n},4871:(e,t,s)=>{var n=s(5386),r=s(7064),i=s(9950);e.exports=function(e,t,s,o,a,c){var l=1&s,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var d=-1,f=!0,_=2&s?new n:void 0;for(c.set(e,t),c.set(t,e);++d<u;){var y=e[d],g=t[d];if(o)var b=l?o(g,y,d,t,e,c):o(y,g,d,e,t,c);if(void 0!==b){if(b)continue;f=!1;break}if(_){if(!r(t,(function(e,t){if(!i(_,t)&&(y===e||a(y,e,s,o,c)))return _.push(t)}))){f=!1;break}}else if(y!==g&&!a(y,g,s,o,c)){f=!1;break}}return c.delete(e),c.delete(t),f}},1491:(e,t,s)=>{var n=s(857),r=s(9162),i=s(1225),o=s(4871),a=s(5179),c=s(4207),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,n,l,p,m){switch(s){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var d=1&n;if(h||(h=c),e.size!=t.size&&!d)return!1;var f=m.get(e);if(f)return f==t;n|=2,m.set(e,t);var _=o(h(e),h(t),n,l,p,m);return m.delete(e),_;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},7416:(e,t,s)=>{var n=s(3483),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,a){var c=1&s,l=n(e),u=l.length;if(u!=n(t).length&&!c)return!1;for(var p=u;p--;){var m=l[p];if(!(c?m in t:r.call(t,m)))return!1}var h=a.get(e),d=a.get(t);if(h&&d)return h==t&&d==e;var f=!0;a.set(e,t),a.set(t,e);for(var _=c;++p<u;){var y=e[m=l[p]],g=t[m];if(i)var b=c?i(g,y,m,t,e,a):i(y,g,m,e,t,a);if(!(void 0===b?y===g||o(y,g,s,i,a):b)){f=!1;break}_||(_="constructor"==m)}if(f&&!_){var v=e.constructor,E=t.constructor;v==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof E&&E instanceof E||(f=!1)}return a.delete(e),a.delete(t),f}},1242:(e,t,s)=>{var n="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=n},3483:(e,t,s)=>{var n=s(1897),r=s(633),i=s(249);e.exports=function(e){return n(e,i,r)}},7937:(e,t,s)=>{var n=s(8304);e.exports=function(e,t){var s=e.__data__;return n(t)?s["string"==typeof t?"string":"hash"]:s.map}},8761:(e,t,s)=>{var n=s(6840),r=s(8109);e.exports=function(e,t){var s=r(e,t);return n(s)?s:void 0}},2107:(e,t,s)=>{var n=s(857),r=Object.prototype,i=r.hasOwnProperty,o=r.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var n=!0}catch(e){}var r=o.call(e);return n&&(t?e[a]=s:delete e[a]),r}},633:(e,t,s)=>{var n=s(7552),r=s(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:r;e.exports=a},940:(e,t,s)=>{var n=s(9515),r=s(326),i=s(1985),o=s(2143),a=s(3215),c=s(3366),l=s(7035),u="[object Map]",p="[object Promise]",m="[object Set]",h="[object WeakMap]",d="[object DataView]",f=l(n),_=l(r),y=l(i),g=l(o),b=l(a),v=c;(n&&v(new n(new ArrayBuffer(1)))!=d||r&&v(new r)!=u||i&&v(i.resolve())!=p||o&&v(new o)!=m||a&&v(new a)!=h)&&(v=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,n=s?l(s):"";if(n)switch(n){case f:return d;case _:return u;case y:return p;case g:return m;case b:return h}return t}),e.exports=v},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,s)=>{var n=s(9191);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,s)=>{var n=s(9191),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return r.call(t,e)?t[e]:void 0}},4174:(e,t,s)=>{var n=s(9191),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)}},7942:(e,t,s)=>{var n=s(9191);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},1735:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var n=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<s}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,s)=>{var n,r=s(4019),i=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var s=e&&e.constructor;return e===("function"==typeof s&&s.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,s)=>{var n=s(2218),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=n(t,e);return!(s<0)&&(s==t.length-1?t.pop():r.call(t,s,1),--this.size,!0)}},8028:(e,t,s)=>{var n=s(2218);e.exports=function(e){var t=this.__data__,s=n(t,e);return s<0?void 0:t[s][1]}},2344:(e,t,s)=>{var n=s(2218);e.exports=function(e){return n(this.__data__,e)>-1}},4769:(e,t,s)=>{var n=s(2218);e.exports=function(e,t){var s=this.__data__,r=n(s,e);return r<0?(++this.size,s.push([e,t])):s[r][1]=t,this}},2411:(e,t,s)=>{var n=s(9612),r=s(235),i=s(326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}},6417:(e,t,s)=>{var n=s(7937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,s)=>{var n=s(7937);e.exports=function(e){return n(this,e).get(e)}},9493:(e,t,s)=>{var n=s(7937);e.exports=function(e){return n(this,e).has(e)}},4150:(e,t,s)=>{var n=s(7937);e.exports=function(e,t){var s=n(this,e),r=s.size;return s.set(e,t),this.size+=s.size==r?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,n){s[++t]=[n,e]})),s}},9191:(e,t,s)=>{var n=s(8761)(Object,"create");e.exports=n},4248:(e,t,s)=>{var n=s(241)(Object.keys,Object);e.exports=n},4146:(e,t,s)=>{e=s.nmd(e);var n=s(1242),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(s){return e(t(s))}}},7772:(e,t,s)=>{var n=s(1242),r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}},5243:(e,t,s)=>{var n=s(235);e.exports=function(){this.__data__=new n,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,s)=>{var n=s(235),r=s(326),i=s(6738);e.exports=function(e,t){var s=this.__data__;if(s instanceof n){var o=s.__data__;if(!r||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},9631:(e,t,s)=>{var n=s(5183),r=s(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return r(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,s)=>{var n=s(1049),r=s(1158);e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},4335:(e,t,s)=>{var n=s(3366),r=s(5125);e.exports=function(e){return!0===e||!1===e||r(e)&&"[object Boolean]"==n(e)}},3226:(e,t,s)=>{e=s.nmd(e);var n=s(7772),r=s(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||r;e.exports=c},8149:(e,t,s)=>{var n=s(8746);e.exports=function(e,t){return n(e,t)}},1049:(e,t,s)=>{var n=s(3366),r=s(9259);e.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5877:e=>{e.exports=function(e){return null===e}},537:(e,t,s)=>{var n=s(3366),r=s(5125);e.exports=function(e){return"number"==typeof e||r(e)&&"[object Number]"==n(e)}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5505:(e,t,s)=>{var n=s(3366),r=s(6152),i=s(5125);e.exports=function(e){return"string"==typeof e||!r(e)&&i(e)&&"[object String]"==n(e)}},7598:(e,t,s)=>{var n=s(5522),r=s(7826),i=s(4146),o=i&&i.isTypedArray,a=o?r(o):n;e.exports=a},249:(e,t,s)=>{var n=s(1634),r=s(6411),i=s(7878);e.exports=function(e){return i(e)?n(e):r(e)}},1570:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1178:(e,t,s)=>{const n=s(1570);function r(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((n=>{const r=e.bind(t)(n);r&&s.push(r)})),s}filter(e,t){return e=r(e),new i(this.elements.filter(e,t))}reject(e,t){return e=r(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=r(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},3026:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5140:(e,t,s)=>{const n=s(5877),r=s(5505),i=s(537),o=s(4335),a=s(9259),c=s(2947),l=s(3756);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(n,l.NullElement,!1).detect(r,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const n=this.elementDetection[s][0],r=this.elementDetection[s][1];if(n(e)){t=new r(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},3853:(e,t,s)=>{const n=s(1570),r=s(1178);class i extends r{map(e,t){return this.elements.map((s=>e.bind(t)(s.value,s.key,s)))}filter(e,t){return new i(this.elements.filter((s=>e.bind(t)(s.value,s.key,s))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,n)=>{e.bind(t)(s.value,s.key,s,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,s)=>{const n=s(6420),r=s(4152),i=s(9542),o=s(3710),a=s(3312),c=s(1641),l=s(8858),u=s(3860),p=s(5202),m=s(2320),h=s(1178),d=s(3853),f=s(3026);function _(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new r;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new u(e)}return e}n.prototype.ObjectElement=u,n.prototype.RefElement=m,n.prototype.MemberElement=l,n.prototype.refract=_,h.prototype.refract=_,e.exports={Element:n,NullElement:r,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:m,refract:_,ArraySlice:h,ObjectSlice:d,KeyValuePair:f}},5202:(e,t,s)=>{const n=s(6420);e.exports=class extends n{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,s)=>{const n=s(6420);e.exports=class extends n{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,s)=>{const n=s(5140),r=s(3756);t.lS=n,t.KeyValuePair=s(3026),t.O4=r.ArraySlice,t.rm=r.ObjectSlice,t.W_=r.Element,t.RP=r.StringElement,t.VL=r.NumberElement,t.hh=r.BooleanElement,t.zr=r.NullElement,t.ON=r.ArrayElement,t.Sb=r.ObjectElement,t.c6=r.MemberElement,t.tK=r.RefElement,t.EA=r.LinkElement,t.Qc=r.refract,s(2947),s(8910)},1641:(e,t,s)=>{const n=s(1570),r=s(6420),i=s(1178);class o extends r{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((n=>{const r=e.bind(t)(n);r&&s.push(r)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];n="object"===this.primitive()?this.refract(e(n,s.value,s.key,s,this)):this.refract(e(n,s,t,this))}return n}forEach(e,t){this.content.forEach(((s,n)=>{e.bind(t)(s,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const s=t||{},n=!!s.recursive,r=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:r,recursive:n}),e(t,s,i)&&r.push(t)})),r}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},3312:(e,t,s)=>{const n=s(6420);e.exports=class extends n{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,s)=>{const n=s(8149),r=s(3026),i=s(1178);class o{constructor(e,t,s){t&&(this.meta=t),s&&(this.attributes=s),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof r?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let s=new i;const n=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(n,e),s.content instanceof r&&(s.content.key&&o(e,s.content.key),s.content.value&&o(e,s.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter((t=>{let s=t.parents.map((e=>e.element));for(const t in e){const n=e[t],r=s.indexOf(n);if(-1===r)return!1;s=s.splice(0,r)}return!0}))),s}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof r)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof r){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8858:(e,t,s)=>{const n=s(3026),r=s(6420);e.exports=class extends r{constructor(e,t,s,r){super(new n,s,r),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,s)=>{const n=s(6420);e.exports=class extends n{constructor(e,t,s){super(e||null,t,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,s)=>{const n=s(6420);e.exports=class extends n{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},3860:(e,t,s)=>{const n=s(1570),r=s(9259),i=s(1641),o=s(8858),a=s(3853);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((s=>s.key.toValue()!==e||(t=s,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(r(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,n=this.getMember(s);return n?n.value=t:this.content.push(new o(s,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((n,r,i)=>{const o=e.bind(t)(n,r,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},9542:(e,t,s)=>{const n=s(6420);e.exports=class extends n{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,s)=>{const n=s(2947);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const s={element:e.element};e._meta&&e._meta.length>0&&(s.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(s.attributes=this.serialiseObject(n))}if(n)s.content=this.enumSerialiseContent(e,s);else if(this[`${e.element}SerialiseContent`])s.content=this[`${e.element}SerialiseContent`](e,s);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(s.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(s.content=[]);return s}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),s=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let r=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),r.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.length&&r.unshift(e.content),r=r.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),r.length&&t.set("samples",r),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),s=new t;s.element!==e.element&&(s.element=e.element),e.meta&&this.deserialiseObject(e.meta,s.meta),e.attributes&&this.deserialiseObject(e.attributes,s.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==s.content||(s.content=n),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const r=new t(n);r.element=s.element,e.push(r)}))}));const r=e.shift();s.content=r?r.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let n=s.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=s.element,s.attributes.set("default",e)}}else if("dataStructure"===s.element&&Array.isArray(s.content))[s.content]=s.content;else if("category"===s.element){const e=s.attributes.get("meta");e&&(s.attributes.set("metadata",e),s.attributes.remove("meta"))}else"member"===s.element&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,s)=>{if(e){const n=s.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},2947:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const s=this.deserialiseContent(e.content);return void 0===s&&null!==t.content||(t.content=s),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},6591:e=>{!function(){"use strict";var t,s,n,r,i,o="properties",a="deepProperties",c="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",m="configuration",h="deepConfiguration",d="deepProps",f="deepStatics",_="deepConf",y="initializers",g="methods",b="composers",v="compose";function E(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function x(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var w=x.bind(0,(function(e,t){if(t)for(var s=E(t),n=0;n<s.length;n+=1)Object.defineProperty(e,s[n],Object.getOwnPropertyDescriptor(t,s[n]));return e}));function j(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||j(e)}function O(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=x.bind(0,(function e(s,n){if(n===t)return s;if(Array.isArray(n))return(Array.isArray(s)?s:[]).concat(n);if(!O(n))return n;for(var r,i,o=E(n),a=0;a<o.length;)r=o[a++],(i=Object.getOwnPropertyDescriptor(n,r)).hasOwnProperty("value")?i.value!==t&&(s[r]=e(O(s[r])||Array.isArray(n[r])?s[r]:{},n[r])):Object.defineProperty(s,r,i);return s}));function A(){return(s=Array.prototype.concat.apply([],arguments).filter((function(e,t,s){return j(e)&&s.indexOf(e)===t}))).length?s:t}function $(e,t){function n(s,n){S(t[s])&&(S(e[s])||(e[s]={}),(n||w)(e[s],t[s]))}function r(n){(s=A(e[n],t[n]))&&(e[n]=s)}return t&&S(t=t[v]||t)&&(n(g),n(o),n(a,P),n(c),n(l),n(u,P),n(p),n(m),n(h,P),r(y),r(b)),e}function F(){return function(e){return s=function e(s){var n,r,i=e[v]||{},l={__proto__:i[g]},u=i[y],p=Array.prototype.slice.apply(arguments),m=i[a];if(m&&P(l,m),(m=i[o])&&w(l,m),(m=i[c])&&Object.defineProperties(l,m),!u||!u.length)return l;for(s===t&&(s={}),i=0;i<u.length;)j(n=u[i++])&&(l=(r=n.call(l,s,{instance:l,stamp:e,args:p}))===t?l:r);return l},(n=e[u])&&P(s,n),(n=e[l])&&w(s,n),(n=e[p])&&Object.defineProperties(s,n),n=j(s[v])?s[v]:F,w(s[v]=function(){return n.apply(this,arguments)},e),s}(Array.prototype.concat.apply([this],arguments).reduce($,{}))}function k(e){return j(e)&&j(e[v])}var R={};function I(e,i){return function(){return(r={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((s=this)&&s[v]||n).call(s,r)}}R[g]=I(g,w),R[o]=R.props=I(o,w),R[y]=R.init=I(y,A),R[b]=I(b,A),R[a]=R[d]=I(a,P),R[l]=R.statics=I(l,w),R[u]=R[f]=I(u,P),R[m]=R.conf=I(m,w),R[h]=R[_]=I(h,P),R[c]=I(c,w),R[p]=I(p,w),n=R[v]=w((function(){for(var e,E,x=0,j=[],O=arguments,$=this;x<O.length;)S(e=O[x++])&&j.push(k(e)?e:((r={})[g]=(E=e)[g]||t,n=E.props,r[o]=S((s=E[o])||n)?w({},n,s):t,r[y]=A(E.init,E[y]),r[b]=A(E[b]),n=E[d],r[a]=S((s=E[a])||n)?P({},n,s):t,r[c]=E[c],n=E.statics,r[l]=S((s=E[l])||n)?w({},n,s):t,n=E[f],r[u]=S((s=E[u])||n)?P({},n,s):t,s=E[p],r[p]=S((n=E.name&&{name:{value:E.name}})||s)?w({},s,n):t,n=E.conf,r[m]=S((s=E[m])||n)?w({},n,s):t,n=E[_],r[h]=S((s=E[h])||n)?P({},n,s):t,r));if(e=F.apply($||i,j),$&&j.unshift($),Array.isArray(O=e[v][b]))for(x=0;x<O.length;)e=k($=O[x++]({stamp:e,composables:j}))?$:e;return e}),R),R.create=function(){return this.apply(t,arguments)},(r={})[l]=R,i=F(r),n[v]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},9794:(e,t,s)=>{var n=void 0!==n?n:{},r=function(){var t,r="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(n=Object.assign({},n,o),t=new Promise((t=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var c,l,u,p,m=[],h="./this.program",d=function(e,t){throw t};u="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,l=!u&&!c&&!p;var f,_,y,g,b,v="";c?(v=p?s(6287).dirname(v)+"/":"//",f=function(e,t){return g||(g=s(5530)),b||(b=s(6287)),e=b.normalize(e),g.readFileSync(e,t?null:"utf8")},y=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),I(t.buffer),t},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),m=process.argv.slice(2),e.exports=n,d=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"}):l?("undefined"!=typeof read&&(f=function(e){return read(e)}),y=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(I("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?m=scriptArgs:void 0!==arguments&&(m=arguments),"function"==typeof quit&&(d=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(u||p)&&(p?v=self.location.href:void 0!==r&&r.currentScript&&(v=r.currentScript.src),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",f=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,s){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):s()},n.onerror=s,n.send(null)}),n.print||console.log.bind(console);var E=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null,n.arguments&&(m=n.arguments),n.thisProgram&&(h=n.thisProgram),n.quit&&(d=n.quit);var x,w=16,j=[];function S(e,t){if(!x){x=new WeakMap;for(var s=0;s<Z.length;s++){var n=Z.get(s);n&&x.set(n,s)}}if(x.has(e))return x.get(e);var r=function(){if(j.length)return j.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1}();try{Z.set(r,e)}catch(s){if(!(s instanceof TypeError))throw s;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var s={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[s[t[0]]]},r=1;r<t.length;++r)n.parameters.push(s[t[r]]);return new WebAssembly.Function(n,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),r=0;r<a.length;++r)i.push(c[a[r]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var l=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),u=new WebAssembly.Module(l);return new WebAssembly.Instance(u,{e:{f:e}}).exports.f}(e,t);Z.set(r,i)}return x.set(e,r),r}var O,P=n.dynamicLibraries||[];n.wasmBinary&&(O=n.wasmBinary);var A,$=n.noExitRuntime||!0;function F(e,t,s,n){switch("*"===(s=s||"i8").charAt(s.length-1)&&(s="i32"),s){case"i1":case"i8":T[e>>0]=t;break;case"i16":N[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":ue=[t>>>0,(le=t,+Math.abs(le)>=1?le>0?(0|Math.min(+Math.floor(le/4294967296),4294967295))>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],q[e>>2]=ue[0],q[e+4>>2]=ue[1];break;case"float":L[e>>2]=t;break;case"double":D[e>>3]=t;break;default:ae("invalid type for setValue: "+s)}}function k(e,t,s){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return T[e>>0];case"i16":return N[e>>1];case"i32":case"i64":return q[e>>2];case"float":return L[e>>2];case"double":return D[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var R=!1;function I(e,t){e||ae("Assertion failed: "+t)}var M,T,C,N,q,L,D,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,s){for(var n=t+s,r=t;e[r]&&!(r>=n);)++r;if(r-t>16&&e.subarray&&B)return B.decode(e.subarray(t,r));for(var i="";t<r;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?V(C,e,t):""}function z(e,t,s,n){if(!(n>0))return 0;for(var r=s,i=s+n-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(s>=i)break;t[s++]=a}else if(a<=2047){if(s+1>=i)break;t[s++]=192|a>>6,t[s++]=128|63&a}else if(a<=65535){if(s+2>=i)break;t[s++]=224|a>>12,t[s++]=128|a>>6&63,t[s++]=128|63&a}else{if(s+3>=i)break;t[s++]=240|a>>18,t[s++]=128|a>>12&63,t[s++]=128|a>>6&63,t[s++]=128|63&a}}return t[s]=0,s-r}function G(e,t,s){return z(e,C,t,s)}function J(e){for(var t=0,s=0;s<e.length;++s){var n=e.charCodeAt(s);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++s)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function W(e){var t=J(e)+1,s=Ue(t);return z(e,T,s,t),s}function H(e){M=e,n.HEAP8=T=new Int8Array(e),n.HEAP16=N=new Int16Array(e),n.HEAP32=q=new Int32Array(e),n.HEAPU8=C=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=L=new Float32Array(e),n.HEAPF64=D=new Float64Array(e)}var K=n.INITIAL_MEMORY||33554432;(A=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:K/65536,maximum:32768}))&&(M=A.buffer),K=M.byteLength,H(M);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],Q=[],ee=[],te=!1,se=0,ne=null,re=null;function ie(e){se++,n.monitorRunDependencies&&n.monitorRunDependencies(se)}function oe(e){if(se--,n.monitorRunDependencies&&n.monitorRunDependencies(se),0==se&&(null!==ne&&(clearInterval(ne),ne=null),re)){var t=re;re=null,t()}}function ae(e){throw n.onAbort&&n.onAbort(e),E(e+=""),R=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ce,le,ue;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function me(e){return e.startsWith("file://")}function he(e){try{if(e==ce&&O)return new Uint8Array(O);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return n.locateFile?n.locateFile(e,v):v+e}(ce));var de={},fe={get:function(e,t){return de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),de[t]}};function _e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var s=t.func;"number"==typeof s?void 0===t.arg?Z.get(s)():Z.get(s)(t.arg):s(void 0===t.arg?null:t.arg)}else t(n)}}function ye(e){var t=0;function s(){for(var s=0,n=1;;){var r=e[t++];if(s+=(127&r)*n,n*=128,!(128&r))break}return s}if(e instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(e,"dylink");I(0!=n.length,"need dylink section"),e=new Int8Array(n[0])}else I(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),I(0===e[8],"need the dylink section to be first"),t=9,s(),I(6===e[t]),I(e[++t]==="d".charCodeAt(0)),I(e[++t]==="y".charCodeAt(0)),I(e[++t]==="l".charCodeAt(0)),I(e[++t]==="i".charCodeAt(0)),I(e[++t]==="n".charCodeAt(0)),I(e[++t]==="k".charCodeAt(0)),t++;var r={};r.memorySize=s(),r.memoryAlign=s(),r.tableSize=s(),r.tableAlign=s();var i=s();r.neededDynlibs=[];for(var o=0;o<i;++o){var a=s(),c=e.subarray(t,t+a);t+=a;var l=V(c,0);r.neededDynlibs.push(l)}return r}var ge=0;function be(){return $||ge>0}function ve(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function Ee(e,t){for(var s in e)if(e.hasOwnProperty(s)){qe.hasOwnProperty(s)||(qe[s]=e[s]);var r=ve(s);n.hasOwnProperty(r)||(n[r]=e[s])}}var xe={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var we=5250880;function je(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Se(e,t){var s={};for(var n in e){var r=e[n];"object"==typeof r&&(r=r.value),"number"==typeof r&&(r+=t),s[n]=r}return function(e){for(var t in e)if(!je(t)){var s=!1,n=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],s=!0),de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(s||0==de[t].value)&&("function"==typeof n?de[t].value=S(n):"number"==typeof n?de[t].value=n:E("unhandled export type for `"+t+"`: "+typeof n))}}(s),s}function Oe(e,t){var s,r;return t&&(s=qe["orig$"+e]),s||(s=qe[e]),s||(s=n[ve(e)]),!s&&e.startsWith("invoke_")&&(r=e.split("_")[1],s=function(){var e=Be();try{return function(e,t,s){return e.includes("j")?function(e,t,s){var r=n["dynCall_"+e];return s&&s.length?r.apply(null,[t].concat(s)):r.call(null,t)}(e,t,s):Z.get(t).apply(null,s)}(r,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),s}function Pe(e,t){var s=ye(e);function n(){var n=Math.pow(2,s.memoryAlign);n=Math.max(n,w);var r,i,o,a=(r=function(e){if(te)return Le(e);var t=we,s=t+e+15&-16;return we=s,de.__heap_base.value=s,t}(s.memorySize+n),(i=n)||(i=w),Math.ceil(r/i)*i),c=Z.length;Z.grow(s.tableSize);for(var l=a;l<a+s.memorySize;l++)T[l]=0;for(l=c;l<c+s.tableSize;l++)Z.set(l,null);var u=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in qe?qe[t]:(t in e||(e[t]=function(){return s||(s=function(e){var t=Oe(e,!1);return t||(t=o[e]),t}(t)),s.apply(null,arguments)}),e[t]);var s}}),p={"GOT.mem":new Proxy({},fe),"GOT.func":new Proxy({},fe),env:u,wasi_snapshot_preview1:u};function m(e){for(var n=0;n<s.tableSize;n++){var r=Z.get(c+n);r&&x.set(r,c+n)}o=Se(e.exports,a),t.allowUndefined||$e();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():Y.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var h=new WebAssembly.Instance(e,p);return Promise.resolve(m(h))}return WebAssembly.instantiate(e,p).then((function(e){return m(e.instance)}))}var d=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return m(h=new WebAssembly.Instance(d,p))}return t.loadAsync?s.neededDynlibs.reduce((function(e,s){return e.then((function(){return Ae(s,t)}))}),Promise.resolve()).then((function(){return n()})):(s.neededDynlibs.forEach((function(e){Ae(e,t)})),n())}function Ae(e,t){"__main__"!=e||xe.loadedLibNames[e]||(xe.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},xe.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var s,r=xe.loadedLibNames[e];if(r)return s=xe.loadedLibs[r],t.global&&!s.global&&(s.global=!0,"loading"!==s.module&&Ee(s.module)),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,t.loadAsync?Promise.resolve(r):r;function i(e){if(t.fs){var s=t.fs.readFile(e,{encoding:"binary"});return s instanceof Uint8Array||(s=new Uint8Array(s)),t.loadAsync?Promise.resolve(s):s}return t.loadAsync?(n=e,fetch(n,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+n+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):y(e);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[e]){var s=n.preloadedWasm[e];return t.loadAsync?Promise.resolve(s):s}return t.loadAsync?i(e).then((function(e){return Pe(e,t)})):Pe(i(e),t)}function a(e){s.global&&Ee(e),s.module=e}return r=xe.nextHandle++,s={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},xe.loadedLibNames[e]=r,xe.loadedLibs[r]=s,t.loadAsync?o().then((function(e){return a(e),r})):(a(o()),r)}function $e(){for(var e in de)if(0==de[e].value){var t=Oe(e,!0);"function"==typeof t?de[e].value=S(t,t.sig):"number"==typeof t?de[e].value=t:I(!1,"bad export type for `"+e+"`: "+typeof t)}}n.___heap_base=we;var Fe,ke=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Re(){ae()}n._abort=Re,Re.sig="v",Fe=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Ie(e,t){var s;if(0===e)s=Date.now();else{if(1!==e&&4!==e)return 28,q[De()>>2]=28,-1;s=Fe()}return q[t>>2]=s/1e3|0,q[t+4>>2]=s%1e3*1e3*1e3|0,0}function Me(e){try{return A.grow(e-M.byteLength+65535>>>16),H(A.buffer),1}catch(e){}}function Te(e){He(e)}function Ce(e){}Ie.sig="iii",Te.sig="vi",Ce.sig="vi";var Ne,qe={__heap_base:we,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:ke,__table_base:1,abort:Re,clock_gettime:Ie,emscripten_memcpy_big:function(e,t,s){C.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=C.length;if((e>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var r=s*(1+.2/n);if(r=Math.min(r,e+100663296),Me(Math.min(2147483648,((t=Math.max(e,r))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Te,memory:A,setTempRet0:Ce,tree_sitter_log_callback:function(e,t){if(lt){const s=U(t);lt(s,0!==e)}},tree_sitter_parse_callback:function(e,t,s,n,r){var i=ct(t,{row:s,column:n});"string"==typeof i?(F(r,i.length,"i32"),function(e,t,s){if(void 0===s&&(s=2147483647),s<2)return 0;for(var n=(s-=2)<2*e.length?s/2:e.length,r=0;r<n;++r){var i=e.charCodeAt(r);N[t>>1]=i,t+=2}N[t>>1]=0}(i,e,10240)):F(r,0,"i32")}},Le=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,fe),"GOT.func":new Proxy(qe,fe)};function t(e,t){var s=e.exports;s=Se(s,1024),n.asm=s;var r,i=ye(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),Ee(s),r=n.asm.__wasm_call_ctors,Y.unshift(r),oe()}function s(e){t(e.instance,e.module)}function r(t){return function(){if(!O&&(u||p)){if("function"==typeof fetch&&!me(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return he(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return he(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){E("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return E("Module.instantiateWasm callback failed with error: "+e),!1}O||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||me(ce)||"function"!=typeof fetch?r(s):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(s,(function(e){return E("wasm streaming compile failed: "+e),E("falling back to ArrayBuffer instantiation"),r(s)}))}))}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)},n._malloc=function(){return(Le=n._malloc=n.asm.malloc).apply(null,arguments)}),De=(n._calloc=function(){return(n._calloc=n.asm.calloc).apply(null,arguments)},n._realloc=function(){return(n._realloc=n.asm.realloc).apply(null,arguments)},n._free=function(){return(n._free=n.asm.free).apply(null,arguments)},n._ts_language_symbol_count=function(){return(n._ts_language_symbol_count=n.asm.ts_language_symbol_count).apply(null,arguments)},n._ts_language_version=function(){return(n._ts_language_version=n.asm.ts_language_version).apply(null,arguments)},n._ts_language_field_count=function(){return(n._ts_language_field_count=n.asm.ts_language_field_count).apply(null,arguments)},n._ts_language_symbol_name=function(){return(n._ts_language_symbol_name=n.asm.ts_language_symbol_name).apply(null,arguments)},n._ts_language_symbol_for_name=function(){return(n._ts_language_symbol_for_name=n.asm.ts_language_symbol_for_name).apply(null,arguments)},n._ts_language_symbol_type=function(){return(n._ts_language_symbol_type=n.asm.ts_language_symbol_type).apply(null,arguments)},n._ts_language_field_name_for_id=function(){return(n._ts_language_field_name_for_id=n.asm.ts_language_field_name_for_id).apply(null,arguments)},n._memcpy=function(){return(n._memcpy=n.asm.memcpy).apply(null,arguments)},n._ts_parser_delete=function(){return(n._ts_parser_delete=n.asm.ts_parser_delete).apply(null,arguments)},n._ts_parser_reset=function(){return(n._ts_parser_reset=n.asm.ts_parser_reset).apply(null,arguments)},n._ts_parser_set_language=function(){return(n._ts_parser_set_language=n.asm.ts_parser_set_language).apply(null,arguments)},n._ts_parser_timeout_micros=function(){return(n._ts_parser_timeout_micros=n.asm.ts_parser_timeout_micros).apply(null,arguments)},n._ts_parser_set_timeout_micros=function(){return(n._ts_parser_set_timeout_micros=n.asm.ts_parser_set_timeout_micros).apply(null,arguments)},n._memmove=function(){return(n._memmove=n.asm.memmove).apply(null,arguments)},n._memcmp=function(){return(n._memcmp=n.asm.memcmp).apply(null,arguments)},n._ts_query_new=function(){return(n._ts_query_new=n.asm.ts_query_new).apply(null,arguments)},n._ts_query_delete=function(){return(n._ts_query_delete=n.asm.ts_query_delete).apply(null,arguments)},n._iswspace=function(){return(n._iswspace=n.asm.iswspace).apply(null,arguments)},n._iswalnum=function(){return(n._iswalnum=n.asm.iswalnum).apply(null,arguments)},n._ts_query_pattern_count=function(){return(n._ts_query_pattern_count=n.asm.ts_query_pattern_count).apply(null,arguments)},n._ts_query_capture_count=function(){return(n._ts_query_capture_count=n.asm.ts_query_capture_count).apply(null,arguments)},n._ts_query_string_count=function(){return(n._ts_query_string_count=n.asm.ts_query_string_count).apply(null,arguments)},n._ts_query_capture_name_for_id=function(){return(n._ts_query_capture_name_for_id=n.asm.ts_query_capture_name_for_id).apply(null,arguments)},n._ts_query_string_value_for_id=function(){return(n._ts_query_string_value_for_id=n.asm.ts_query_string_value_for_id).apply(null,arguments)},n._ts_query_predicates_for_pattern=function(){return(n._ts_query_predicates_for_pattern=n.asm.ts_query_predicates_for_pattern).apply(null,arguments)},n._ts_tree_copy=function(){return(n._ts_tree_copy=n.asm.ts_tree_copy).apply(null,arguments)},n._ts_tree_delete=function(){return(n._ts_tree_delete=n.asm.ts_tree_delete).apply(null,arguments)},n._ts_init=function(){return(n._ts_init=n.asm.ts_init).apply(null,arguments)},n._ts_parser_new_wasm=function(){return(n._ts_parser_new_wasm=n.asm.ts_parser_new_wasm).apply(null,arguments)},n._ts_parser_enable_logger_wasm=function(){return(n._ts_parser_enable_logger_wasm=n.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},n._ts_parser_parse_wasm=function(){return(n._ts_parser_parse_wasm=n.asm.ts_parser_parse_wasm).apply(null,arguments)},n._ts_language_type_is_named_wasm=function(){return(n._ts_language_type_is_named_wasm=n.asm.ts_language_type_is_named_wasm).apply(null,arguments)},n._ts_language_type_is_visible_wasm=function(){return(n._ts_language_type_is_visible_wasm=n.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},n._ts_tree_root_node_wasm=function(){return(n._ts_tree_root_node_wasm=n.asm.ts_tree_root_node_wasm).apply(null,arguments)},n._ts_tree_edit_wasm=function(){return(n._ts_tree_edit_wasm=n.asm.ts_tree_edit_wasm).apply(null,arguments)},n._ts_tree_get_changed_ranges_wasm=function(){return(n._ts_tree_get_changed_ranges_wasm=n.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},n._ts_tree_cursor_new_wasm=function(){return(n._ts_tree_cursor_new_wasm=n.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},n._ts_tree_cursor_delete_wasm=function(){return(n._ts_tree_cursor_delete_wasm=n.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},n._ts_tree_cursor_reset_wasm=function(){return(n._ts_tree_cursor_reset_wasm=n.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_first_child_wasm=function(){return(n._ts_tree_cursor_goto_first_child_wasm=n.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_next_sibling_wasm=function(){return(n._ts_tree_cursor_goto_next_sibling_wasm=n.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_parent_wasm=function(){return(n._ts_tree_cursor_goto_parent_wasm=n.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_type_id_wasm=function(){return(n._ts_tree_cursor_current_node_type_id_wasm=n.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_named_wasm=function(){return(n._ts_tree_cursor_current_node_is_named_wasm=n.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_missing_wasm=function(){return(n._ts_tree_cursor_current_node_is_missing_wasm=n.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_id_wasm=function(){return(n._ts_tree_cursor_current_node_id_wasm=n.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},n._ts_tree_cursor_start_position_wasm=function(){return(n._ts_tree_cursor_start_position_wasm=n.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},n._ts_tree_cursor_end_position_wasm=function(){return(n._ts_tree_cursor_end_position_wasm=n.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},n._ts_tree_cursor_start_index_wasm=function(){return(n._ts_tree_cursor_start_index_wasm=n.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},n._ts_tree_cursor_end_index_wasm=function(){return(n._ts_tree_cursor_end_index_wasm=n.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},n._ts_tree_cursor_current_field_id_wasm=function(){return(n._ts_tree_cursor_current_field_id_wasm=n.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_wasm=function(){return(n._ts_tree_cursor_current_node_wasm=n.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},n._ts_node_symbol_wasm=function(){return(n._ts_node_symbol_wasm=n.asm.ts_node_symbol_wasm).apply(null,arguments)},n._ts_node_child_count_wasm=function(){return(n._ts_node_child_count_wasm=n.asm.ts_node_child_count_wasm).apply(null,arguments)},n._ts_node_named_child_count_wasm=function(){return(n._ts_node_named_child_count_wasm=n.asm.ts_node_named_child_count_wasm).apply(null,arguments)},n._ts_node_child_wasm=function(){return(n._ts_node_child_wasm=n.asm.ts_node_child_wasm).apply(null,arguments)},n._ts_node_named_child_wasm=function(){return(n._ts_node_named_child_wasm=n.asm.ts_node_named_child_wasm).apply(null,arguments)},n._ts_node_child_by_field_id_wasm=function(){return(n._ts_node_child_by_field_id_wasm=n.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},n._ts_node_next_sibling_wasm=function(){return(n._ts_node_next_sibling_wasm=n.asm.ts_node_next_sibling_wasm).apply(null,arguments)},n._ts_node_prev_sibling_wasm=function(){return(n._ts_node_prev_sibling_wasm=n.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},n._ts_node_next_named_sibling_wasm=function(){return(n._ts_node_next_named_sibling_wasm=n.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},n._ts_node_prev_named_sibling_wasm=function(){return(n._ts_node_prev_named_sibling_wasm=n.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},n._ts_node_parent_wasm=function(){return(n._ts_node_parent_wasm=n.asm.ts_node_parent_wasm).apply(null,arguments)},n._ts_node_descendant_for_index_wasm=function(){return(n._ts_node_descendant_for_index_wasm=n.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_index_wasm=function(){return(n._ts_node_named_descendant_for_index_wasm=n.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_descendant_for_position_wasm=function(){return(n._ts_node_descendant_for_position_wasm=n.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_position_wasm=function(){return(n._ts_node_named_descendant_for_position_wasm=n.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_start_point_wasm=function(){return(n._ts_node_start_point_wasm=n.asm.ts_node_start_point_wasm).apply(null,arguments)},n._ts_node_end_point_wasm=function(){return(n._ts_node_end_point_wasm=n.asm.ts_node_end_point_wasm).apply(null,arguments)},n._ts_node_start_index_wasm=function(){return(n._ts_node_start_index_wasm=n.asm.ts_node_start_index_wasm).apply(null,arguments)},n._ts_node_end_index_wasm=function(){return(n._ts_node_end_index_wasm=n.asm.ts_node_end_index_wasm).apply(null,arguments)},n._ts_node_to_string_wasm=function(){return(n._ts_node_to_string_wasm=n.asm.ts_node_to_string_wasm).apply(null,arguments)},n._ts_node_children_wasm=function(){return(n._ts_node_children_wasm=n.asm.ts_node_children_wasm).apply(null,arguments)},n._ts_node_named_children_wasm=function(){return(n._ts_node_named_children_wasm=n.asm.ts_node_named_children_wasm).apply(null,arguments)},n._ts_node_descendants_of_type_wasm=function(){return(n._ts_node_descendants_of_type_wasm=n.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},n._ts_node_is_named_wasm=function(){return(n._ts_node_is_named_wasm=n.asm.ts_node_is_named_wasm).apply(null,arguments)},n._ts_node_has_changes_wasm=function(){return(n._ts_node_has_changes_wasm=n.asm.ts_node_has_changes_wasm).apply(null,arguments)},n._ts_node_has_error_wasm=function(){return(n._ts_node_has_error_wasm=n.asm.ts_node_has_error_wasm).apply(null,arguments)},n._ts_node_is_missing_wasm=function(){return(n._ts_node_is_missing_wasm=n.asm.ts_node_is_missing_wasm).apply(null,arguments)},n._ts_query_matches_wasm=function(){return(n._ts_query_matches_wasm=n.asm.ts_query_matches_wasm).apply(null,arguments)},n._ts_query_captures_wasm=function(){return(n._ts_query_captures_wasm=n.asm.ts_query_captures_wasm).apply(null,arguments)},n._iswdigit=function(){return(n._iswdigit=n.asm.iswdigit).apply(null,arguments)},n._iswalpha=function(){return(n._iswalpha=n.asm.iswalpha).apply(null,arguments)},n._iswlower=function(){return(n._iswlower=n.asm.iswlower).apply(null,arguments)},n._towupper=function(){return(n._towupper=n.asm.towupper).apply(null,arguments)},n.___errno_location=function(){return(De=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),Be=(n._memchr=function(){return(n._memchr=n.asm.memchr).apply(null,arguments)},n._strlen=function(){return(n._strlen=n.asm.strlen).apply(null,arguments)},n.stackSave=function(){return(Be=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Ve=n.stackRestore=function(){return(Ve=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},Ue=n.stackAlloc=function(){return(Ue=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},ze=n._setThrew=function(){return(ze=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=n.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},n.__Znwm=function(){return(n.__Znwm=n.asm._Znwm).apply(null,arguments)},n.__ZdlPv=function(){return(n.__ZdlPv=n.asm._ZdlPv).apply(null,arguments)},n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(e,t){var s;return s=1==t?Ue(e.length):Le(e.length),e.subarray||e.slice?C.set(e,s):C.set(new Uint8Array(e),s),s},re=function e(){Ne||We(),Ne||(re=e)};var Je=!1;function We(e){function t(){Ne||(Ne=!0,n.calledRun=!0,R||(te=!0,_e(Y),_e(Q),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ke&&function(e){var t=n._main;if(t){var s=(e=e||[]).length+1,r=Ue(4*(s+1));q[r>>2]=W(h);for(var i=1;i<s;i++)q[(r>>2)+i]=W(e[i-1]);q[(r>>2)+s]=0;try{He(t(s,r),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),E("exception thrown: "+o),d(1,e)}}}(e),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||m,se>0||!Je&&(function(){if(P.length){if(!y)return ie(),void P.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),$e()}));P.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),$e()}else $e()}(),Je=!0,se>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),X.unshift(e);var e;_e(X)}(),se>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}function He(e,t){t&&be()&&0===e||(be()||(n.onExit&&n.onExit(e),R=!0),d(e,new Ge(e)))}if(n.run=We,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ke=!0;n.noInitialRun&&(Ke=!1),We();const Ze=n,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+2*et,st={row:0,column:0},nt=/[\w-.]*/g,rt=/^_?tree_sitter_\w+/;var it,ot,at,ct,lt;class ut{static init(){at=Ze._ts_init(),it=k(at,"i32"),ot=k(at+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=k(at,"i32"),this[1]=k(at+Ye,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==dt)throw new Error("Argument must be a Language");{t=e[0];const s=Ze._ts_language_version(t);if(s<ot||it<s)throw new Error(`Incompatible language version ${s}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,s){if("string"==typeof e)ct=(t,s,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(lt=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(lt=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let n=0,r=0;if(s&&s.includedRanges){n=s.includedRanges.length;let e=r=Ze._calloc(n,tt);for(let t=0;t<n;t++)Ot(e,s.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,r,n);if(!i)throw ct=null,lt=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,ct);return ct=null,lt=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,s,n){gt(e),this[0]=t,this.language=s,this.textCallback=n}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;jt(t,e.startPosition),jt(t+=et,e.oldEndPosition),jt(t+=et,e.newEndPosition),F(t+=et,e.startIndex,"i32"),F(t+=Ye,e.oldEndIndex,"i32"),F(t+=Ye,e.newEndIndex,"i32"),t+=Ye}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),Et(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=k(at,"i32"),s=k(at+Ye,"i32"),n=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)n[s]=Pt(e),e+=tt;Ze._free(s)}return n}}class mt{constructor(e,t){gt(e),this.tree=t}get typeId(){return vt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return vt(this),Ze._ts_node_end_point_wasm(this.tree[0]),St(at)}get endIndex(){return vt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(this.tree,this.startIndex,this.endIndex)}isNamed(){return vt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return vt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return vt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return vt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return vt(this),Ze._ts_node_child_wasm(this.tree[0],e),Et(this.tree)}namedChild(e){return vt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),Et(this.tree)}childForFieldId(e){return vt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),Et(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return vt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return vt(this),Ze._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){vt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=k(at,"i32"),t=k(at+Ye,"i32");if(this._children=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._children[t]=Et(this.tree,s),s+=Qe;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){vt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=k(at,"i32"),t=k(at+Ye,"i32");if(this._namedChildren=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._namedChildren[t]=Et(this.tree,s),s+=Qe;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,s){Array.isArray(e)||(e=[e]),t||(t=st),s||(s=st);const n=[],r=this.tree.language.types;for(let t=0,s=r.length;t<s;t++)e.includes(r[t])&&n.push(t);const i=Ze._malloc(Ye*n.length);for(let e=0,t=n.length;e<t;e++)F(i+e*Ye,n[e],"i32");vt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,s.row,s.column);const o=k(at,"i32"),a=k(at+Ye,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=Et(this.tree,e),e+=Qe}return Ze._free(a),Ze._free(i),c}get nextSibling(){return vt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),Et(this.tree)}get previousSibling(){return vt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),Et(this.tree)}get nextNamedSibling(){return vt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),Et(this.tree)}get previousNamedSibling(){return vt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),Et(this.tree)}get parent(){return vt(this),Ze._ts_node_parent_wasm(this.tree[0]),Et(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let s=at+Qe;return F(s,e,"i32"),F(s+Ye,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),Et(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let s=at+Qe;return F(s,e,"i32"),F(s+Ye,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),Et(this.tree)}descendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let s=at+Qe;return jt(s,e),jt(s+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),Et(this.tree)}namedDescendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let s=at+Qe;return jt(s,e),jt(s+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),Et(this.tree)}walk(){return vt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Xe,this.tree)}toString(){vt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var s=C[e++>>0];if(!s)return t;t+=String.fromCharCode(s)}}(e);return Ze._free(e),t}}class ht{constructor(e,t){gt(e),this.tree=t,wt(this)}delete(){xt(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){vt(e),xt(this,at+Qe),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),wt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return xt(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return xt(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return xt(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return xt(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){xt(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return _t(this.tree,e,t)}get startPosition(){return xt(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),St(at)}get endPosition(){return xt(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),St(at)}get startIndex(){return xt(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return xt(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return xt(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),Et(this.tree)}currentFieldId(){return xt(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){xt(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return wt(this),1===e}gotoNextSibling(){xt(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return wt(this),1===e}gotoParent(){xt(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return wt(this),1===e}}class dt{constructor(e,t){gt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ze._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const s=J(e),n=Ze._malloc(s+1);G(e,n,s+1);const r=Ze._ts_language_symbol_for_name(this[0],n,s,t);return Ze._free(n),r||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=J(e),s=Ze._malloc(t+1);G(e,s,t+1);const n=Ze._ts_query_new(this[0],s,t,at,at+Ye);if(!n){const t=k(at+Ye,"i32"),n=U(s,k(at,"i32")).length,r=e.substr(n,100).split("\n")[0];let i,o=r.match(nt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${r}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${r}'...`),o=""}throw i.index=n,i.length=o.length,Ze._free(s),i}const r=Ze._ts_query_string_count(n),i=Ze._ts_query_capture_count(n),o=Ze._ts_query_pattern_count(n),a=new Array(i),c=new Array(r);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(n,e,at),s=k(at,"i32");a[e]=U(t,s)}for(let e=0;e<r;e++){const t=Ze._ts_query_string_value_for_id(n,e,at),s=k(at,"i32");c[e]=U(t,s)}const l=new Array(o),u=new Array(o),p=new Array(o),m=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=Ze._ts_query_predicates_for_pattern(n,e,at),s=k(at,"i32");m[e]=[],h[e]=[];const r=[];let i=t;for(let t=0;t<s;t++){const t=k(i,"i32"),s=k(i+=Ye,"i32");if(i+=Ye,1===t)r.push({type:"capture",name:a[s]});else if(2===t)r.push({type:"string",value:c[s]});else if(r.length>0){if("string"!==r[0].type)throw new Error("Predicates must begin with a literal value");const t=r[0].value;let s=!0;switch(t){case"not-eq?":s=!1;case"eq?":if(3!==r.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(r.length-1));if("capture"!==r[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${r[1].value}"`);if("capture"===r[2].type){const t=r[1].name,n=r[2].name;h[e].push((function(e){let r,i;for(const s of e)s.name===t&&(r=s.node),s.name===n&&(i=s.node);return void 0===r||void 0===i||r.text===i.text===s}))}else{const t=r[1].name,n=r[2].value;h[e].push((function(e){for(const r of e)if(r.name===t)return r.node.text===n===s;return!0}))}break;case"not-match?":s=!1;case"match?":if(3!==r.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${r.length-1}.`);if("capture"!==r[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${r[1].value}".`);if("string"!==r[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${r[2].value}.`);const n=r[1].name,i=new RegExp(r[2].value);h[e].push((function(e){for(const t of e)if(t.name===n)return i.test(t.node.text)===s;return!0}));break;case"set!":if(r.length<2||r.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${r.length-1}.`);if(r.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][r[1].value]=r[2]?r[2].value:null;break;case"is?":case"is-not?":if(r.length<2||r.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${r.length-1}.`);if(r.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?u:p;o[e]||(o[e]={}),o[e][r[1].value]=r[2]?r[2].value:null;break;default:m[e].push({operator:t,operands:r.slice(1)})}r.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(p[e])}return Ze._free(s),new ft(Xe,n,a,h,m,Object.freeze(l),Object.freeze(u),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const n=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=s(5530);t=Promise.resolve(e.readFileSync(n))}else t=fetch(n).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const s=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${s}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Pe;return t.then((e=>n(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),s=t.find((e=>rt.test(e)&&!e.includes("external_scanner_")));s||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[s]();return new dt(Xe,n)}))}}class ft{constructor(e,t,s,n,r,i,o,a){gt(e),this[0]=t,this.captureNames=s,this.textPredicates=n,this.predicates=r,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,s,n){t||(t=st),s||(s=st),n||(n={});let r=n.matchLimit;if(void 0===r)r=0;else if("number"!=typeof r)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r);const i=k(at,"i32"),o=k(at+Ye,"i32"),a=k(at+2*Ye,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let l=0,u=o;for(let t=0;t<i;t++){const s=k(u,"i32"),n=k(u+=Ye,"i32");u+=Ye;const r=new Array(n);if(u=yt(this,e.tree,u,r),this.textPredicates[s].every((e=>e(r)))){c[l++]={pattern:s,captures:r};const e=this.setProperties[s];e&&(c[t].setProperties=e);const n=this.assertedProperties[s];n&&(c[t].assertedProperties=n);const i=this.refutedProperties[s];i&&(c[t].refutedProperties=i)}}return c.length=l,Ze._free(o),c}captures(e,t,s,n){t||(t=st),s||(s=st),n||(n={});let r=n.matchLimit;if(void 0===r)r=0;else if("number"!=typeof r)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r);const i=k(at,"i32"),o=k(at+Ye,"i32"),a=k(at+2*Ye,"i32"),c=[];this.exceededMatchLimit=!!a;const l=[];let u=o;for(let t=0;t<i;t++){const t=k(u,"i32"),s=k(u+=Ye,"i32"),n=k(u+=Ye,"i32");if(u+=Ye,l.length=s,u=yt(this,e.tree,u,l),this.textPredicates[t].every((e=>e(l)))){const e=l[n],s=this.setProperties[t];s&&(e.setProperties=s);const r=this.assertedProperties[t];r&&(e.assertedProperties=r);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ze._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,s){const n=s-t;let r=e.textCallback(t,null,s);for(t+=r.length;t<s;){const n=e.textCallback(t,null,s);if(!(n&&n.length>0))break;t+=n.length,r+=n}return t>s&&(r=r.slice(0,n)),r}function yt(e,t,s,n){for(let r=0,i=n.length;r<i;r++){const i=k(s,"i32"),o=Et(t,s+=Ye);s+=Qe,n[r]={name:e.captureNames[i],node:o}}return s}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function bt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function vt(e){let t=at;F(t,e.id,"i32"),F(t+=Ye,e.startIndex,"i32"),F(t+=Ye,e.startPosition.row,"i32"),F(t+=Ye,e.startPosition.column,"i32"),F(t+=Ye,e[0],"i32")}function Et(e,t=at){const s=k(t,"i32");if(0===s)return null;const n=k(t+=Ye,"i32"),r=k(t+=Ye,"i32"),i=k(t+=Ye,"i32"),o=k(t+=Ye,"i32"),a=new mt(Xe,e);return a.id=s,a.startIndex=n,a.startPosition={row:r,column:i},a[0]=o,a}function xt(e,t=at){F(t+0*Ye,e[0],"i32"),F(t+1*Ye,e[1],"i32"),F(t+2*Ye,e[2],"i32")}function wt(e){e[0]=k(at+0*Ye,"i32"),e[1]=k(at+1*Ye,"i32"),e[2]=k(at+2*Ye,"i32")}function jt(e,t){F(e,t.row,"i32"),F(e+Ye,t.column,"i32")}function St(e){return{row:k(e,"i32"),column:k(e+Ye,"i32")}}function Ot(e,t){jt(e,t.startPosition),jt(e+=et,t.endPosition),F(e+=et,t.startIndex,"i32"),F(e+=Ye,t.endIndex,"i32"),e+=Ye}function Pt(e){const t={};return t.startPosition=St(e),e+=et,t.endPosition=St(e),e+=et,t.startIndex=k(e,"i32"),e+=Ye,t.endIndex=k(e,"i32"),t}for(const e of Object.getOwnPropertyNames(ut.prototype))Object.defineProperty(i.prototype,e,{value:ut.prototype[e],enumerable:!1,writable:!1});i.Language=dt,n.onRuntimeInitialized=()=>{ut.init(),t()}})))}}return i}();e.exports=r},5530:()=>{},6287:()=>{},1427:(e,t,s)=>{e.exports=s(6762)}},t={};function s(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})();var n={};return(()=>{"use strict";s.r(n),s.d(n,{detect:()=>t_,detectionRegExp:()=>e_,mediaTypes:()=>Qf,namespace:()=>n_,parse:()=>s_});var e={};s.r(e),s.d(e,{hasElementSourceMap:()=>zs,includesClasses:()=>Js,includesSymbols:()=>Gs,isAnnotationElement:()=>Ls,isArrayElement:()=>Ts,isBooleanElement:()=>Is,isCommentElement:()=>Ds,isElement:()=>$s,isLinkElement:()=>Ns,isMemberElement:()=>Cs,isNullElement:()=>Rs,isNumberElement:()=>ks,isObjectElement:()=>Ms,isParseResultElement:()=>Bs,isPrimitiveElement:()=>Us,isRefElement:()=>qs,isSourceMapElement:()=>Vs,isStringElement:()=>Fs});var t={};s.r(t),s.d(t,{isJSONReferenceElement:()=>Ao,isJSONSchemaElement:()=>Po,isLinkDescriptionElement:()=>Fo,isMediaElement:()=>$o});var r={};s.r(r),s.d(r,{isOpenApi3_0LikeElement:()=>Yo,isOpenApiExtension:()=>ia,isParameterLikeElement:()=>Qo,isReferenceLikeElement:()=>ea,isRequestBodyLikeElement:()=>ta,isResponseLikeElement:()=>sa,isServerLikeElement:()=>na,isTagLikeElement:()=>ra});var i={};s.r(i),s.d(i,{isBooleanJsonSchemaElement:()=>yc,isCallbackElement:()=>Ha,isComponentsElement:()=>Ka,isContactElement:()=>Za,isExampleElement:()=>Xa,isExternalDocumentationElement:()=>Ya,isHeaderElement:()=>Qa,isInfoElement:()=>ec,isLicenseElement:()=>tc,isLinkElement:()=>sc,isLinkElementExternal:()=>nc,isMediaTypeElement:()=>Ec,isOpenApi3_0Element:()=>ic,isOpenapiElement:()=>rc,isOperationElement:()=>oc,isParameterElement:()=>ac,isPathItemElement:()=>cc,isPathItemElementExternal:()=>lc,isPathsElement:()=>uc,isReferenceElement:()=>pc,isReferenceElementExternal:()=>mc,isRequestBodyElement:()=>hc,isResponseElement:()=>dc,isResponsesElement:()=>fc,isSchemaElement:()=>_c,isSecurityRequirementElement:()=>gc,isServerElement:()=>bc,isServerVariableElement:()=>vc});var o={};s.r(o),s.d(o,{isBooleanJsonSchemaElement:()=>nd,isCallbackElement:()=>Ih,isComponentsElement:()=>Mh,isContactElement:()=>Th,isExampleElement:()=>Ch,isExternalDocumentationElement:()=>Nh,isHeaderElement:()=>qh,isInfoElement:()=>Lh,isJsonSchemaDialectElement:()=>Dh,isLicenseElement:()=>Bh,isLinkElement:()=>Vh,isLinkElementExternal:()=>Uh,isMediaTypeElement:()=>ad,isOpenApi3_1Element:()=>Gh,isOpenapiElement:()=>zh,isOperationElement:()=>Jh,isParameterElement:()=>Wh,isPathItemElement:()=>Hh,isPathItemElementExternal:()=>Kh,isPathsElement:()=>Zh,isReferenceElement:()=>Xh,isReferenceElementExternal:()=>Yh,isRequestBodyElement:()=>Qh,isResponseElement:()=>ed,isResponsesElement:()=>td,isSchemaElement:()=>sd,isSecurityRequirementElement:()=>rd,isServerElement:()=>id,isServerVariableElement:()=>od});const a=function(){return!1};const c=function(){return!0};function l(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function u(e){return function t(s){return 0===arguments.length||l(s)?t:e.apply(this,arguments)}}function p(e){return function t(s,n){switch(arguments.length){case 0:return t;case 1:return l(s)?t:u((function(t){return e(s,t)}));default:return l(s)&&l(n)?t:l(s)?u((function(t){return e(t,n)})):l(n)?u((function(t){return e(s,t)})):e(s,n)}}}const m=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function h(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!m(n)){for(var r=0;r<e.length;){if("function"==typeof n[e[r]])return n[e[r]].apply(n,Array.prototype.slice.call(arguments,0,-1));r+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return s.apply(this,arguments)}}function d(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const f=function(){return this.xf["@@transducer/init"]()},_=function(e){return this.xf["@@transducer/result"](e)};var y=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=d(this.xf["@@transducer/step"](e,!1))),e},e}();function g(e){return function(t){return new y(e,t)}}const b=p(h(["all"],g,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0})));function v(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,s){return t.apply(this,arguments)};case 3:return function(e,s,n){return t.apply(this,arguments)};case 4:return function(e,s,n,r){return t.apply(this,arguments)};case 5:return function(e,s,n,r,i){return t.apply(this,arguments)};case 6:return function(e,s,n,r,i,o){return t.apply(this,arguments)};case 7:return function(e,s,n,r,i,o,a){return t.apply(this,arguments)};case 8:return function(e,s,n,r,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,s,n,r,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,s,n,r,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function E(e,t,s){return function(){for(var n=[],r=0,i=e,o=0;o<t.length||r<arguments.length;){var a;o<t.length&&(!l(t[o])||r>=arguments.length)?a=t[o]:(a=arguments[r],r+=1),n[o]=a,l(a)||(i-=1),o+=1}return i<=0?s.apply(this,n):v(i,E(e,n,s))}}const x=p((function(e,t){return 1===e?u(t):v(e,E(e,[],t))}));function w(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function j(e,t,s){for(var n=0,r=s.length;n<r;){if(e(t,s[n]))return!0;n+=1}return!1}function S(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const O="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var P=Object.prototype.toString;const A=function(){return"[object Arguments]"===P.call(arguments)?function(e){return"[object Arguments]"===P.call(e)}:function(e){return S("callee",e)}}();var $=!{toString:null}.propertyIsEnumerable("toString"),F=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),R=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1};const I="function"!=typeof Object.keys||k?u((function(e){if(Object(e)!==e)return[];var t,s,n=[],r=k&&A(e);for(t in e)!S(t,e)||r&&"length"===t||(n[n.length]=t);if($)for(s=F.length-1;s>=0;)S(t=F[s],e)&&!R(n,t)&&(n[n.length]=t),s-=1;return n})):u((function(e){return Object(e)!==e?[]:Object.keys(e)}));const M=u((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function T(e,t,s,n){var r=w(e);function i(e,t){return C(e,t,s.slice(),n.slice())}return!j((function(e,t){return!j(i,t,e)}),w(t),r)}function C(e,t,s,n){if(O(e,t))return!0;var r,i,o=M(e);if(o!==M(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(r=e.constructor,null==(i=String(r).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!O(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!O(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=s.length-1;a>=0;){if(s[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&T(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&T(e.values(),t.values(),s.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=I(e);if(c.length!==I(t).length)return!1;var l=s.concat([e]),u=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!S(p,t)||!C(t[p],e[p],l,u))return!1;a-=1}return!0}const N=p((function(e,t){return C(e,t,[],[])}));function q(e,t){return function(e,t,s){var n,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;s<e.length;){if(0===(r=e[s])&&1/r===n)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(r=e[s])&&r!=r)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(N(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function L(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}function D(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var B=function(e){return(e<10?"0":"")+e};const V="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+B(e.getUTCMonth()+1)+"-"+B(e.getUTCDate())+"T"+B(e.getUTCHours())+":"+B(e.getUTCMinutes())+":"+B(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function U(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}function z(e){return"[object Object]"===Object.prototype.toString.call(e)}var G=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=_,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function J(e){return function(t){return new G(e,t)}}const W=p(h(["fantasy-land/filter","filter"],J,(function(e,t){return z(t)?U((function(s,n){return e(t[n])&&(s[n]=t[n]),s}),{},I(t)):function(e,t){for(var s=0,n=t.length,r=[];s<n;)e(t[s])&&(r[r.length]=t[s]),s+=1;return r}(e,t)})));const H=p((function(e,t){return W((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function K(e,t){var s=function(s){var n=t.concat([e]);return q(s,n)?"<Circular>":K(s,n)},n=function(e,t){return L((function(t){return D(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+L(s,e).join(", ")+"))";case"[object Array]":return"["+L(s,e).concat(n(e,H((function(e){return/^\d+$/.test(e)}),I(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):D(V(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":D(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var r=e.toString();if("[object Object]"!==r)return r}return"{"+n(e,I(e)).join(", ")+"}"}}const Z=u((function(e){return K(e,[])}));const X=p((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var n=s(e,t);if(void 0!==n)return n;var r=s(typeof e,typeof t);if(void 0!==r)return r===typeof e?e:t;var i=Z(e),o=s(i,Z(t));return void 0!==o&&o===i?e:t}));var Y=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=_,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Q=p(h(["fantasy-land/map","map"],(function(e){return function(t){return new Y(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return x(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return U((function(s,n){return s[n]=e(t[n]),s}),{},I(t));default:return L(e,t)}}))),ee=Number.isInteger||function(e){return e<<0===e};function te(e){return"[object String]"===Object.prototype.toString.call(e)}const se=p((function(e,t){var s=e<0?t.length+e:e;return te(t)?t.charAt(s):t[s]}));const ne=p((function(e,t){if(null!=t)return ee(e)?se(e,t):t[e]}));const re=p((function(e,t){return Q(ne(e),t)}));function ie(e){return function t(s,n,r){switch(arguments.length){case 0:return t;case 1:return l(s)?t:p((function(t,n){return e(s,t,n)}));case 2:return l(s)&&l(n)?t:l(s)?p((function(t,s){return e(t,n,s)})):l(n)?p((function(t,n){return e(s,t,n)})):u((function(t){return e(s,n,t)}));default:return l(s)&&l(n)&&l(r)?t:l(s)&&l(n)?p((function(t,s){return e(t,s,r)})):l(s)&&l(r)?p((function(t,s){return e(t,n,s)})):l(n)&&l(r)?p((function(t,n){return e(s,t,n)})):l(s)?u((function(t){return e(t,n,r)})):l(n)?u((function(t){return e(s,t,r)})):l(r)?u((function(t){return e(s,n,t)})):e(s,n,r)}}}const oe=u((function(e){return!!m(e)||!!e&&("object"==typeof e&&(!te(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var ae="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ce(e,t,s){return function(n,r,i){if(oe(i))return e(n,r,i);if(null==i)return r;if("function"==typeof i["fantasy-land/reduce"])return t(n,r,i,"fantasy-land/reduce");if(null!=i[ae])return s(n,r,i[ae]());if("function"==typeof i.next)return s(n,r,i);if("function"==typeof i.reduce)return t(n,r,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function le(e,t,s){for(var n=0,r=s.length;n<r;){if((t=e["@@transducer/step"](t,s[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const ue=p((function(e,t){return v(e.length,(function(){return e.apply(t,arguments)}))}));function pe(e,t,s){for(var n=s.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=s.next()}return e["@@transducer/result"](t)}function me(e,t,s,n){return e["@@transducer/result"](s[n](ue(e["@@transducer/step"],e),t))}const he=ce(le,me,pe);var de=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const fe=ie((function(e,t,s){return he("function"==typeof e?new de(e):e,t,s)}));const _e=u((function(e){return x(fe(X,0,re("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const ye=u((function(e){return function(){return e}}));const ge=u((function(e){return x(fe(X,0,re("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function be(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function ve(e,t,s,n){return s[n](e,t)}const Ee=ce(U,ve,be);const xe=p((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:Ee((function(e,s){return function(e,t){var s;t=t||[];var n=(e=e||[]).length,r=t.length,i=[];for(s=0;s<n;)i[i.length]=e[s],s+=1;for(s=0;s<r;)i[i.length]=t[s],s+=1;return i}(e,Q(s,t))}),[],e)}));const we=p((function(e,t){return e.apply(this,t)}));function je(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Se=p((function(e,t){return e&&t}));const Oe=p((function(e,t){var s=x(e,t);return x(e,(function(){return U(xe,Q(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Pe=u((function(e){return Oe(e.length,e)}));const Ae=p((function(e,t){return je(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Pe(Se)(e,t)}));const $e=u((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));const Fe=Pe(u((function(e){return!e})));function ke(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Re(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return m(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const Ie=ie(Re("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const Me=u(Re("tail",Ie(1,1/0)));function Te(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,fe(ke,arguments[0],Me(arguments)))}const Ce=u((function(e){return x(e.length,e)}));const Ne=p((function(e,t){return null==t||t!=t?e:t}));function qe(e,t,s){var n,r=typeof e;switch(r){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?e in s._items[r]||(t&&(s._items[r][e]=!0),!1):(t&&(s._items[r]={},s._items[r][e]=!0),!1);case"boolean":if(r in s._items){var i=e?1:0;return!!s._items[r][i]||(t&&(s._items[r][i]=!0),!1)}return t&&(s._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?!!q(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1);case"undefined":return!!s._items[r]||(t&&(s._items[r]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(r=Object.prototype.toString.call(e))in s._items?!!q(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1)}}const Le=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!qe(e,!0,this)},e.prototype.has=function(e){return qe(e,!1,this)},e}();const De=p((function(e,t){for(var s=[],n=0,r=e.length,i=t.length,o=new Le,a=0;a<i;a+=1)o.add(t[a]);for(;n<r;)o.add(e[n])&&(s[s.length]=e[n]),n+=1;return s}));var Be=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=_,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?d(s):s},e}();function Ve(e){return function(t){return new Be(e,t)}}const Ue=p(h(["take"],Ve,(function(e,t){return Ie(0,e<0?1/0:e,t)})));var ze=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=_,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Ge(e){return function(t){return new ze(e,t)}}const Je=p(h(["dropWhile"],Ge,(function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return Ie(s,1/0,t)})));const We=p((function(e,t){return e||t}));const He=p((function(e,t){return je(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Pe(We)(e,t)}));var Ke=u((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():m(e)?[]:te(e)?"":z(e)?{}:A(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Ze=Ke;const Xe=u((function(e){return x(e.length,(function(t,s){var n=Array.prototype.slice.call(arguments,0);return n[0]=s,n[1]=t,e.apply(this,n)}))}));const Ye=u((function(e){return null==e}));const Qe=p((function(e,t){if(0===e.length||Ye(t))return!1;for(var s=t,n=0;n<e.length;){if(Ye(s)||!S(e[n],s))return!1;s=s[e[n]],n+=1}return!0}));const et=p((function(e,t){return Qe([e],t)}));const tt=p((function(e,t){return!Ye(t)&&e in t}));const st=se(0);var nt=function(e,t){switch(arguments.length){case 0:return nt;case 1:return function t(s){return 0===arguments.length?t:O(e,s)};default:return O(e,t)}};const rt=nt;const it=ie((function(e,t,s){return x(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const ot=p(q);const at=Ie(0,-1);"function"==typeof Object.assign&&Object.assign;const ct=p((function(e,t){return x(e+1,(function(){var s=arguments[e];if(null!=s&&je(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Z(s)+' does not have a method named "'+t+'"')}))}));const lt=u((function(e){return null!=e&&N(e,Ze(e))}));const ut=ct(1,"join");const pt=se(-1);const mt=p((function(e,t){return e.map((function(e){for(var s,n=t,r=0;r<e.length;){if(null==n)return;s=e[r],n=ee(s)?se(s,n):n[s],r+=1}return n}))}));const ht=p((function(e,t){return mt([e],t)[0]}));const dt=p((function(e,t){return U((function(s,n){return s[n]=e(t[n],n,t),s}),{},I(t))}));const ft=p((function(e,t){for(var s={},n={},r=0,i=e.length;r<i;)n[e[r]]=1,r+=1;for(var o in t)n.hasOwnProperty(o)||(s[o]=t[o]);return s}));const _t=ie((function(e,t,s){return e(ht(t,s))}));const yt=p((function(e,t){for(var s={},n=0;n<e.length;)e[n]in t&&(s[e[n]]=t[e[n]]),n+=1;return s}));const gt=ie((function(e,t,s){return Ne(e,ne(t,s))}));const bt=ie((function(e,t,s){return e(ne(t,s))}));function vt(e){return"[object Number]"===Object.prototype.toString.call(e)}const Et=p((function(e,t){if(!vt(e)||!vt(t))throw new TypeError("Both arguments to range must be numbers");for(var s=[],n=e;n<t;)s.push(n),n+=1;return s}));const xt=u(d);var wt=p((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const jt=wt;const St=ct(1,"split");const Ot=p((function(e,t){return N(Ue(e.length,t),e)}));const Pt=p((function(e,t){if(s=e,"[object RegExp]"!==Object.prototype.toString.call(s))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Z(e));var s;return function(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}(e).test(t)}));var At="\t\n\v\f\r                 \u2028\u2029\ufeff";String.prototype.trim;const $t=ye(void 0);const Ft=N($t());const kt=Fe(Ft);var Rt=s(7952);const It=N(null);const Mt=Fe(It);function Tt(e){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}const Ct=function(e){return"object"===Tt(e)};const Nt=x(1,Ae(Mt,Ct));const qt=x(1,Te(M,rt("GeneratorFunction")));const Lt=x(1,Te(M,rt("AsyncFunction")));const Dt=ge([Te(M,rt("Function")),qt,Lt]);var Bt=Te(M,rt("Object")),Vt=Te(Z,N(Z(Object))),Ut=_t(Ae(Dt,Vt),["constructor"]);const zt=x(1,(function(e){if(!Nt(e)||!Bt(e))return!1;var t=Object.getPrototypeOf(e);return!!It(t)||Ut(t)}));class Gt extends Rt.RP{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 Jt=Gt;class Wt extends Rt.RP{constructor(e,t,s){super(e,t,s),this.element="comment"}}const Ht=Wt;class Kt extends Rt.ON{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(Ft(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const Zt=Kt;class Xt extends Rt.ON{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(null===e)return;const t=new Rt.ON([e.start.row,e.start.column,e.start.char]),s=new Rt.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const Yt=Xt;class Qt extends Rt.lS{constructor(){super(),this.register("annotation",Jt),this.register("comment",Ht),this.register("parseResult",Zt),this.register("sourceMap",Yt)}}const es=new Qt,ts=e=>{const t=new Qt;return zt(e)&&t.use(e),t},ss=es;const ns=x(1,Te(M,rt("String"))),rs=s.p+"23aac571c96605dc25219087ad291441.wasm",is=globalThis.fetch;Dt(is)&&(globalThis.fetch=(...e)=>ns(e[0])&&e[0].endsWith("tree-sitter.wasm")?is.apply(globalThis,[rs,Me(e)]):is.apply(globalThis,e));var os=s(9794),as=s(1427);const cs=class extends as{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,zt(s)&&tt("cause",s)&&!tt("cause",this)){const{cause:e}=s;this.cause=e,e instanceof Error&&tt("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}};class ls extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(cs,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,zt(t)&&tt("cause",t)&&!tt("cause",this)){const{cause:e}=t;this.cause=e,e instanceof Error&&tt("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const us=ls,ps=s.p+"7c7ca323880d9fa6e48d1d1b2e78e140.wasm";let ms=null,hs=null;const ds=async e=>{if(null===ms&&null===hs)hs=os.init().then((()=>os.Language.load(ps))).then((e=>{const t=new os;return t.setLanguage(e),t})).finally((()=>{hs=null})),ms=await hs;else if(null===ms&&null!==hs)ms=await hs;else if(null===ms)throw new us("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return ms.parse(e)},fs=(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},_s={},ys=e=>null==e?void 0:e.type,gs=e=>"string"==typeof ys(e),bs=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),vs=(e,t,{keyMap:s=null,state:n={},breakSymbol:r=_s,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=fs,nodeTypeGetter:c=ys,nodePredicate:l=gs,nodeCloneFn:u=bs,detectCycles:p=!0}={})=>{const m=s||{};let h,d,f=Array.isArray(e),_=[e],y=-1,g=[],b=e;const v=[],E=[];do{y+=1;const e=y===_.length;let s;const w=e&&0!==g.length;if(e){if(s=0===E.length?void 0:v.pop(),b=d,d=E.pop(),w)if(f){b=b.slice();let e=0;for(const[t,s]of g){const n=t-e;s===i?(b.splice(n,1),e+=1):b[n]=s}}else{b=u(b);for(const[e,t]of g)b[e]=t}y=h.index,_=h.keys,g=h.edits,f=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(s=f?y:_[y],b=d[s],b===i||void 0===b)continue;v.push(s)}if(E.includes(b))continue;let j;if(!Array.isArray(b)){if(!l(b))throw new us(`Invalid AST Node: ${JSON.stringify(b)}`);if(p&&E.includes(b)){v.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(n))t[e]=s;j=i.call(t,b,s,d,v,E)}if(j===r)break;if(j===o){if(!e){v.pop();continue}}else if(void 0!==j&&(g.push([s,j]),!e)){if(!l(j)){v.pop();continue}b=j}}var x;if(void 0===j&&w&&g.push([s,b]),!e)h={inArray:f,index:y,keys:_,edits:g,prev:h},f=Array.isArray(b),_=f?b:null!==(x=m[c(b)])&&void 0!==x?x:[],y=-1,g=[],d!==i&&void 0!==d&&E.push(d),d=b}while(void 0!==h);return 0!==g.length?g.at(-1)[1]:e};vs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:n={},breakSymbol:r=_s,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=fs,nodeTypeGetter:c=ys,nodePredicate:l=gs,nodeCloneFn:u=bs,detectCycles:p=!0}={})=>{const m=s||{};let h,d,f=Array.isArray(e),_=[e],y=-1,g=[],b=e;const v=[],E=[];do{y+=1;const e=y===_.length;let s;const w=e&&0!==g.length;if(e){if(s=0===E.length?void 0:v.pop(),b=d,d=E.pop(),w)if(f){b=b.slice();let e=0;for(const[t,s]of g){const n=t-e;s===i?(b.splice(n,1),e+=1):b[n]=s}}else{b=u(b);for(const[e,t]of g)b[e]=t}y=h.index,_=h.keys,g=h.edits,f=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(s=f?y:_[y],b=d[s],b===i||void 0===b)continue;v.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new us(`Invalid AST Node: ${JSON.stringify(b)}`);if(p&&E.includes(b)){v.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(n))t[e]=s;j=await i.call(t,b,s,d,v,E)}if(j===r)break;if(j===o){if(!e){v.pop();continue}}else if(void 0!==j&&(g.push([s,j]),!e)){if(!l(j)){v.pop();continue}b=j}}var x;if(void 0===j&&w&&g.push([s,b]),!e)h={inArray:f,index:y,keys:_,edits:g,prev:h},f=Array.isArray(b),_=f?b:null!==(x=m[c(b)])&&void 0!==x?x:[],y=-1,g=[],d!==i&&void 0!==d&&E.push(d),d=b}while(void 0!==h);return 0!==g.length?g.at(-1)[1]:e};var Es=s(6591);const xs=Xe(ot),ws=(e,t)=>"function"==typeof(null==t?void 0:t[e]),js=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),Ss=(e,t)=>{var s;return(null==t||null===(s=t.primitive)||void 0===s?void 0:s.call(t))===e},Os=(e,t)=>{var s,n;return(null==t||null===(s=t.classes)||void 0===s||null===(n=s.includes)||void 0===n?void 0:n.call(s,e))||!1},Ps=(e,t)=>(null==t?void 0:t.element)===e,As=e=>e({hasMethod:ws,hasBasicElementProps:js,primitiveEq:Ss,isElementType:Ps,hasClass:Os}),$s=As((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof Rt.W_||e(s)&&t(void 0,s))),Fs=As((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof Rt.RP||e(s)&&t("string",s))),ks=As((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof Rt.VL||e(s)&&t("number",s))),Rs=As((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof Rt.zr||e(s)&&t("null",s))),Is=As((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof Rt.hh||e(s)&&t("boolean",s))),Ms=As((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>n=>n instanceof Rt.Sb||e(n)&&t("object",n)&&s("keys",n)&&s("values",n)&&s("items",n))),Ts=As((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>n=>n instanceof Rt.ON&&!(n instanceof Rt.Sb)||e(n)&&t("array",n)&&s("push",n)&&s("unshift",n)&&s("map",n)&&s("reduce",n))),Cs=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Rt.c6||e(n)&&t("member",n)&&s(void 0,n))),Ns=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Rt.EA||e(n)&&t("link",n)&&s(void 0,n))),qs=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Rt.tK||e(n)&&t("ref",n)&&s(void 0,n))),Ls=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Jt||e(n)&&t("annotation",n)&&s("array",n))),Ds=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ht||e(n)&&t("comment",n)&&s("string",n))),Bs=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Zt||e(n)&&t("parseResult",n)&&s("array",n))),Vs=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Yt||e(n)&&t("sourceMap",n)&&s("array",n))),Us=e=>Ps("object",e)||Ps("array",e)||Ps("boolean",e)||Ps("number",e)||Ps("string",e)||Ps("null",e)||Ps("member",e),zs=e=>{var t,s;return Vs(null==e||null===(t=e.meta)||void 0===t||null===(s=t.get)||void 0===s?void 0:s.call(t,"sourceMap"))},Gs=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Ts(s)&&b(xs(s.toValue()),e)},Js=(e,t)=>0===e.length||b(xs(t.classes.toValue()),e);const Ws=class extends us{constructor(e,t){super(e,t),void 0!==t&&Object.assign(this,ft(["cause"],t))}};const Hs=class extends Ws{};const Ks=class extends Hs{};const Zs=class extends Hs{},Xs=e=>"function"==typeof(null==e?void 0:e.clone)?e.clone():e,Ys=e=>{if(e instanceof Rt.rm){const t=[...e].map(Xs);return new Rt.rm(t)}if(e instanceof Rt.O4){const t=[...e].map(Xs);return new Rt.O4(t)}if("function"==typeof(null==e?void 0:e.clone))return e.clone();throw new Ks("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ys.safe=e=>{try{return Ys(e)}catch{return e}};const Qs=e=>{const{key:t,value:s}=e;return new Rt.KeyValuePair(t,s)},en=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Ys(e.meta)),e.attributes.length>0&&(t._attributes=Ys(e.attributes)),$s(e.content)){const s=e.content;t.content=en(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Rt.KeyValuePair?t.content=Qs(e.content):t.content=e.content;return t},tn=e=>{if(e instanceof Rt.KeyValuePair)return Qs(e);if(e instanceof Rt.rm)return(e=>{const t=[...e];return new Rt.rm(t)})(e);if(e instanceof Rt.O4)return(e=>{const t=[...e];return new Rt.O4(t)})(e);if($s(e))return en(e);throw new Zs("Value provided to cloneShallow function couldn't be cloned",{value:e})};tn.safe=e=>{try{return tn(e)}catch{return e}};const sn=e=>Ms(e)?"ObjectElement":Ts(e)?"ArrayElement":Cs(e)?"MemberElement":Fs(e)?"StringElement":Is(e)?"BooleanElement":ks(e)?"NumberElement":Rs(e)?"NullElement":Ns(e)?"LinkElement":qs(e)?"RefElement":void 0,nn=e=>$s(e)?tn(e):bs(e),rn=Te(sn,ns),on={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},an=(Es({props:{result:[],predicate:a,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:s=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=s},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),(e,t,{keyMap:s=on,...n}={})=>vs(e,t,{keyMap:s,nodeTypeGetter:sn,nodePredicate:rn,nodeCloneFn:nn,...n}));an[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=on,...n}={})=>vs[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:sn,nodePredicate:rn,nodeCloneFn:nn,...n});const cn=Fe(Dt);const ln=x(1,Dt(Array.isArray)?Array.isArray:Te(M,rt("Array")));const un=Ae(ln,lt);const pn=x(3,(function(e,t,s){var n=ht(e,s),r=ht(at(e),s);if(!cn(n)&&!un(e)){var i=ue(n,r);return we(i,t)}})),mn=()=>({predicates:{...e},namespace:ss}),hn=(e,t,s={})=>{if(0===t.length)return e;const n=gt(mn,"toolboxCreator",s),r=gt({},"visitorOptions",s),i=gt(sn,"nodeTypeGetter",r),o=n(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=fs,nodeTypeGetter:s=ys}={})=>{const n=new Array(e.length).fill(null);return{enter(r,...i){for(let o=0;o<e.length;o+=1)if(null===n[o]){const a=t(e[o],s(r),!1);if("function"==typeof a){const t=a.call(e[o],r,...i);if(!1===t)n[o]=r;else if(t===_s)n[o]=_s;else if(void 0!==t)return t}}},leave(r,...i){for(let o=0;o<e.length;o+=1)if(null===n[o]){const a=t(e[o],s(r),!0);if("function"==typeof a){const t=a.call(e[o],r,...i);if(t===_s)n[o]=_s;else if(void 0!==t&&!1!==t)return t}}else n[o]===r&&(n[o]=null)}}})(a.map(gt({},"visitor")),{nodeTypeGetter:i});a.forEach(pn(["pre"],[]));const l=an(e,c,r);return a.forEach(pn(["post"],[])),l},dn=(e,{Type:t,plugins:s=[]})=>{const n=new t(e);return hn(n,s,{toolboxCreator:mn,visitorOptions:{nodeTypeGetter:sn}})},fn=e=>(t,s={})=>dn(t,{...s,Type:e});Rt.Sb.refract=fn(Rt.Sb),Rt.ON.refract=fn(Rt.ON),Rt.RP.refract=fn(Rt.RP),Rt.hh.refract=fn(Rt.hh),Rt.zr.refract=fn(Rt.zr),Rt.VL.refract=fn(Rt.VL),Rt.EA.refract=fn(Rt.EA),Rt.tK.refract=fn(Rt.tK),Jt.refract=fn(Jt),Ht.refract=fn(Ht),Zt.refract=fn(Zt),Yt.refract=fn(Yt);const _n=class{hasError=!1;children=[];constructor(e){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(...e){this.children.push(...e)}},yn=Es({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const e=(e,t)=>{if(!this.sourceMap)return;const s=new Yt,n=(e=>{const t=new Rt.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),s=new Rt.ON([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),s.classes.push("position"),[t,s]})(e);if(null!==n){const[e,t]=n;s.push(e),s.push(t)}s.astNode=e,t.meta.set("sourceMap",s)};this.enter=function(t){if(t instanceof _n&&!t.isNamed&&t.isMissing){const s=t.type||t.text,n=new Jt(`(Missing ${s})`);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.document=function(t){const s=new Zt;return s._content=t.children,e(t,s),s},this.ParseResultElement={leave(e){const t=e.findElements(Us);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const s=new Rt.Sb;return s._content=t.children,e(t,s),s},this.array=function(t){const s=new Rt.ON;return s._content=t.children,e(t,s),s},this.pair=function(t){const s=new Rt.c6;return s.content.key=t.keyNode,s.content.value=t.valueNode,e(t,s),t.children.length>3&&t.children.filter((e=>"ERROR"===e.type)).forEach((e=>{this.ERROR(e,t,[],[t])})),s},this.string=function(t){const s=new Rt.RP(JSON.parse(t.text));return e(t,s),s},this.number=function(t){const s=new Rt.VL(Number(t.text));return e(t,s),s},this.null=function(t){const s=new Rt.zr;return e(t,s),s},this.true=function(t){const s=new Rt.hh(!0);return e(t,s),s},this.false=function(t){const s=new Rt.hh(!1);return e(t,s),s},this.ERROR=function(t,s,n,r){const i=!t.hasError,o=t.text,a=new Jt(i?`(Unexpected ${o})`:`(Error ${o})`);if(a.classes.push("error"),e(t,a),0===r.length){const e=new Zt;return e.push(a),e}return this.annotations.push(a),null}}});class gn{constructor(e){this.cursor=e}document(){return new _n(this.cursor)}object(){return new _n(this.cursor).setFieldName(this.cursor)}array(){return new _n(this.cursor).setFieldName(this.cursor)}pair(){return new _n(this.cursor)}string(){return new _n(this.cursor).setFieldName(this.cursor)}number(){return new _n(this.cursor).setFieldName(this.cursor)}null(){return new _n(this.cursor).setFieldName(this.cursor)}true(){return new _n(this.cursor).setFieldName(this.cursor)}false(){return new _n(this.cursor).setFieldName(this.cursor)}ERROR(){return new _n(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new _n(this.cursor),this.cursor.gotoFirstChild()){const[t]=new gn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new gn(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const bn=gn,vn={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...on},En=e=>Bs(e)?"ParseResultElement":$s(e)?sn(e):ys(e),xn=e=>$s(e)||gs(e),wn=(e,{sourceMap:t=!1}={})=>{const s=yn(),n=e.walk(),r=[...new bn(n)].at(0);return vs(r,s,{keyMap:vn,nodeTypeGetter:En,nodePredicate:xn,state:{sourceMap:t}})},jn=Es({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:e=null,column:t=null,char:s=null}={}){this.row=e,this.column=t,this.char=s}}),Sn=Es({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:e=null,end:t=null}={}){this.start=e,this.end=t}}),On=Es({props:{type:null,position:null,children:[]},init({children:e=[],position:t=null,isMissing:s=!1}={},{stamp:n={}}){this.type=n.type,this.isMissing=s,this.children=e,this.position=t},methods:{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}}}),Pn=Es(On,{statics:{type:"literal"},props:{value:null},init({value:e=null}={}){this.value=e}}),An=Es(On),$n=Es(An,{statics:{type:"document"},methods:{get child(){return st(this.children)}}}),Fn=Es(On,{statics:{type:"parseResult"},methods:{get rootNode(){return st(this.children)}}}),kn=(e,t)=>(null==t?void 0:t.type)===e,Rn=(kn.bind(void 0,"literal"),kn.bind(void 0,"position"),kn.bind(void 0,"point"),kn.bind(void 0,"parseResult"),kn.bind(void 0,"document"),kn.bind(void 0,"string")),In=kn.bind(void 0,"false"),Mn=kn.bind(void 0,"true"),Tn=kn.bind(void 0,"null"),Cn=kn.bind(void 0,"number"),Nn=kn.bind(void 0,"array"),qn=kn.bind(void 0,"object"),Ln=kn.bind(void 0,"stringContent"),Dn=kn.bind(void 0,"escapeSequence"),Bn=kn.bind(void 0,"property"),Vn=kn.bind(void 0,"key"),Un=Es(An,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Bn)}}}),zn=Es(An,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((e=>Ln(e)||Dn(e))).reduce(((e,t)=>e+t.value),"")}}}),Gn=Es(zn,{statics:{type:"key"}}),Jn=Es(An,{statics:{type:"property"},methods:{get key(){return this.children.find(Vn)},get value(){return this.children.find((e=>In(e)||Mn(e)||Tn(e)||Cn(e)||Rn(e)||Nn(e)||qn(e)))}}}),Wn=Es(An,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>In(e)||Mn(e)||Tn(e)||Cn(e)||Rn(e)||Nn(e)||qn))}}}),Hn=Es(An,{statics:{type:"value"},props:{value:null},init({value:e=null}={}){this.value=e}}),Kn=Es(Hn,{statics:{type:"stringContent"}}),Zn=Es(Hn,{statics:{type:"number"}}),Xn=Es(Hn,{statics:{type:"null"}}),Yn=Es(Hn,{statics:{type:"true"}}),Qn=Es(Hn,{statics:{type:"false"}}),er=Es(On,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:e=null,isUnexpected:t=!1}={}){this.value=e,this.isUnexpected=t}}),tr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},sr=Es({init(){const e=e=>{const t=jn({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=jn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return Sn({start:t,end:s})};this.enter=function(t){if(t instanceof _n&&!t.isNamed){const s=e(t),n=t.type||t.text,{isMissing:r}=t;return Pn({value:n,position:s,isMissing:r})}},this.document={enter(t){const s=e(t);return $n({children:t.children,position:s,isMissing:t.isMissing})},leave:e=>Fn({children:[e]})},this.object=function(t){const s=e(t);return Un({children:t.children,position:s,isMissing:t.isMissing})},this.pair=function(t){const s=e(t),n=t.children.slice(1),{keyNode:r}=t,i=Gn({children:(null==r?void 0:r.children)||[],position:null!=r?e(r):null,isMissing:null!=r&&r.isMissing});return Jn({children:[i,...n],position:s,isMissing:t.isMissing})},this.array=function(t){const s=e(t);return Wn({children:t.children,position:s,isMissing:t.isMissing})},this.string=function(t){const s=e(t),n=Kn({value:JSON.parse(t.text)});return zn({children:[n],position:s,isMissing:t.isMissing})},this.number=function(t){const s=e(t),n=t.text;return Zn({value:n,position:s,isMissing:t.isMissing})},this.null=function(t){const s=e(t),n=t.text;return Xn({value:n,position:s,isMissing:t.isMissing})},this.true=function(t){const s=e(t),n=t.text;return Yn({value:n,position:s,isMissing:t.isMissing})},this.false=function(t){const s=e(t),n=t.text;return Qn({value:n,position:s,isMissing:t.isMissing})},this.ERROR=function(t,s,n,r){const i=e(t),o=er({children:t.children,position:i,isUnexpected:!t.hasError,isMissing:t.isMissing,value:t.text});return 0===r.length?Fn({children:[o]}):o}}}),nr={[Fn.type]:["children"],[$n.type]:["children"],[Un.type]:["children"],[Jn.type]:["children"],[Wn.type]:["children"],[er.type]:["children"],...on},rr=e=>Bs(e)?"ParseResultElement":$s(e)?sn(e):ys(e),ir=e=>$s(e)||gs(e),or=Es({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const e=(e,t)=>{if(!this.sourceMap)return;const s=new Yt;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)};this.document=function(e){const t=new Zt;return t._content=e.children,t},this.ParseResultElement={leave(e){const t=e.findElements(Us);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const s=new Rt.Sb;return s._content=t.children,e(t,s),s},this.property=function(t){const s=new Rt.c6;return s.content.key=t.key,s.content.value=t.value,e(t,s),t.children.length>3&&t.children.filter((e=>"error"===e.type)).forEach((e=>{this.error(e,t,[],[t])})),s},this.key=function(t){const s=new Rt.RP(t.value);return e(t,s),s},this.array=function(t){const s=new Rt.ON;return s._content=t.children,e(t,s),s},this.string=function(t){const s=new Rt.RP(t.value);return e(t,s),s},this.number=function(t){const s=new Rt.VL(Number(t.value));return e(t,s),s},this.null=function(t){const s=new Rt.zr;return e(t,s),s},this.true=function(t){const s=new Rt.hh(!0);return e(t,s),s},this.false=function(t){const s=new Rt.hh(!1);return e(t,s),s},this.literal=function(t){if(t.isMissing){const s=`(Missing ${t.value})`,n=new Jt(s);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.error=function(t,s,n,r){const i=t.isUnexpected?`(Unexpected ${t.value})`:`(Error ${t.value})`,o=new Jt(i);if(o.classes.push("error"),e(t,o),0===r.length){const e=new Zt;return e.push(o),e}return this.annotations.push(o),null}}}),ar=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),n=[...new bn(s)].at(0),r=sr(),i=or(),o=vs(n,r,{keyMap:tr,state:{sourceMap:t}});return vs(o.rootNode,i,{keyMap:nr,nodeTypeGetter:rr,nodePredicate:ir,state:{sourceMap:t}})},cr=(ts(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class lr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="callback"}}const ur=lr;class pr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const mr=pr;class hr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const dr=hr;class fr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const _r=fr;class yr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const gr=yr;class br extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const vr=br;class Er extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const xr=Er;class wr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Rt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Rt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(wr.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const jr=wr;class Sr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Or=Sr;class Pr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ar=Pr;class $r extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Fs(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Fs(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Fr=$r;class kr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Rr=kr;class Ir extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Mr=Ir;class Tr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const Cr=Tr;class Nr extends Rt.RP{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const qr=Nr;class Lr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Dr=Lr;class Br extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Rt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Vr=Br;class Ur extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new Rt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Rt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Ur.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const zr=Ur;class Gr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Jr=Gr;class Wr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="paths"}}const Hr=Wr;class Kr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Zr=Kr;class Xr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new Rt.hh(!1)}set required(e){this.set("required",e)}}const Yr=Xr;class Qr extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const ei=Qr;class ti extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const si=ti;class ni extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("idProp",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const ri=ni;class ii extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const oi=ii;class ai extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const ci=ai;class li extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const ui=li;const pi=Ce((function(e,t){return Te(St(""),Je(xs(e)),ut(""))(t)})),mi=(e,t)=>{const s=Ne(e,t);return dt((e=>{if(zt(e)&&et("$ref",e)&&bt(ns,"$ref",e)){const t=ht(["$ref"],e),n=pi("#/",t);return ht(n.split("/"),s)}return zt(e)?mi(e,s):e}),e)},hi=Es({props:{element:null},methods:{copyMetaAndAttributes(e,t){zs(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),di=Es(hi,{methods:{enter(e){return this.element=Ys(e),_s}}});const fi=ye($t()),_i=e=>"string"==typeof(null==e?void 0:e.type)?e.type:sn(e),yi={EphemeralObject:["content"],EphemeralArray:["content"],...on},gi=(e,t,{keyMap:s=yi,...n}={})=>an(e,t,{keyMap:s,nodeTypeGetter:_i,nodePredicate:c,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});gi[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=yi,...s}={})=>an[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:_i,nodePredicate:c,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const bi=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const vi=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},Ei=Es.init((function(){const e=new WeakMap;this.BooleanElement=function(e){return e.toValue()},this.NumberElement=function(e){return e.toValue()},this.StringElement=function(e){return e.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(t){if(e.has(t))return e.get(t).toReference();const s=new vi(t.content);return e.set(t,s),s}},this.EphemeralObject={leave:e=>e.toObject()},this.MemberElement={enter:e=>[e.key,e.value]},this.ArrayElement={enter(t){if(e.has(t))return e.get(t).toReference();const s=new bi(t.content);return e.set(t,s),s}},this.EphemeralArray={leave:e=>e.toArray()}})),xi=e=>$s(e)?Fs(e)||ks(e)||Is(e)||Rs(e)?e.toValue():gi(e,Ei()):e,wi=e=>{if($s(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ji={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...on},Si=Es(hi,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return yt(this.passingOptionsNames,this)},retrieveFixedFields(e){return Te(ht(["visitors",...e,"fixedFields"]),I)(this.specObj)},retrieveVisitor(e){return _t(Dt,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return this.retrieveVisitor(e)({...s,...t})},toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s),r=Object.getPrototypeOf(n);return Ft(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===r?Ys(t):(an(t,n,{keyMap:ji,nodeTypeGetter:wi,...s}),n.element)}}}),Oi=Es(Si,{props:{specPath:fi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,n,r)=>{if(Fs(n)&&s.includes(xi(n))&&!this.ignoredFields.includes(xi(n))){const s=this.toRefractedElement([...t,"fixedFields",xi(n)],e),i=new Rt.c6(Ys(n),s);this.copyMetaAndAttributes(r,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(xi(n))||this.element.content.push(Ys(r))})),this.copyMetaAndAttributes(e,this.element),_s}}}),Pi=Es(Oi,di,{props:{specPath:ye(["document","objects","JSONSchema"])},init(){this.element=new ri}}),Ai=di,$i=di,Fi=di,ki=di,Ri=di,Ii=di,Mi=di,Ti=di,Ci=di,Ni=di,qi=Es({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Li=e=>Ms(e)&&e.hasKey("$ref"),Di=Es(Si,qi,di,{methods:{ObjectElement(e){const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),_s},ArrayElement(e){return this.element=new Rt.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),_s}}}),Bi=di,Vi=di,Ui=di,zi=di,Gi=di,Ji=Es(di,{methods:{ArrayElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-required"),_s}}});const Wi=Fe(x(1,Ae(Mt,He(Ct,Dt))));const Hi=Fe(lt);const Ki=_e([ns,Wi,Hi]),Zi=Es(Si,{props:{fieldPatternPredicate:a,specPath:fi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(xi(t))&&this.fieldPatternPredicate(xi(t))){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new Rt.c6(Ys(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(xi(t))||this.element.content.push(Ys(s))})),this.copyMetaAndAttributes(e,this.element),_s}}}),Xi=Es(Zi,{props:{fieldPatternPredicate:Ki}}),Yi=Es(Xi,qi,di,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-properties")}}),Qi=Es(Xi,qi,di,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-patternProperties")}}),eo=Es(Xi,qi,di,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-dependencies")}}),to=Es(di,{methods:{ArrayElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-enum"),_s}}}),so=Es(di,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-type"),_s},ArrayElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-type"),_s}}}),no=Es(Si,qi,di,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),_s}}}),ro=Es(Si,qi,di,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),_s}}}),io=Es(Si,qi,di,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),_s}}}),oo=Es(Xi,qi,di,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-definitions")}}),ao=di,co=di,lo=di,uo=di,po=di,mo=Es(Si,qi,di,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),_s}}}),ho=di,fo=Es(Oi,di,{props:{specPath:ye(["document","objects","JSONReference"])},init(){this.element=new oi},methods:{ObjectElement(e){const t=Oi.compose.methods.ObjectElement.call(this,e);return Fs(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),_o=Es(di,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("reference-value"),_s}}});const yo=Fe(Ye);const go=Ae(ln,Hi);function bo(e){return function(e){if(Array.isArray(e))return vo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return vo(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);"Object"===s&&e.constructor&&(s=e.constructor.name);if("Map"===s||"Set"===s)return Array.from(e);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return vo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,n=new Array(t);s<t;s++)n[s]=e[s];return n}var Eo=Te(jt($e((function(e,t){return e.length>t.length}))),st,ne("length")),xo=Ce((function(e,t,s){var n=s.apply(void 0,bo(e));return yo(n)?xt(n):t}));const wo=it(go,(function(e){var t=Eo(e);return x(t,(function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return fe(xo(s),void 0,e)}))}),$t),jo=Es(Si,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>it(e,ye(t),$t))),s=wo(t)(e);return this.element=this.toRefractedElement(s,e),_s}}}),So=Es(jo,{props:{alternator:[{predicate:Li,specPath:["document","objects","JSONReference"]},{predicate:c,specPath:["document","objects","JSONSchema"]}]}}),Oo={visitors:{value:di,JSONSchemaOrJSONReferenceVisitor:So,document:{objects:{JSONSchema:{$visitor:Pi,fixedFields:{id:Ai,$schema:$i,multipleOf:Fi,maximum:ki,exclusiveMaximum:Ri,minimum:Ii,exclusiveMinimum:Mi,maxLength:Ti,minLength:Ci,pattern:Ni,additionalItems:So,items:Di,maxItems:Bi,minItems:Vi,uniqueItems:Ui,maxProperties:zi,minProperties:Gi,required:Ji,properties:Yi,additionalProperties:So,patternProperties:Qi,dependencies:eo,enum:to,type:so,allOf:no,anyOf:ro,oneOf:io,not:So,definitions:oo,title:ao,description:co,default:lo,format:uo,base:po,links:mo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:ho}},JSONReference:{$visitor:fo,fixedFields:{$ref:_o}},Media:{$visitor:Es(Oi,di,{props:{specPath:ye(["document","objects","Media"])},init(){this.element=new ci}}),fixedFields:{binaryEncoding:di,type:di}},LinkDescription:{$visitor:Es(Oi,di,{props:{specPath:ye(["document","objects","LinkDescription"])},init(){this.element=new ui}}),fixedFields:{href:di,rel:di,title:di,targetSchema:So,mediaType:di,method:di,encType:di,schema:So}}}}}},Po=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ri||e(n)&&t("JSONSchemaDraft4",n)&&s("object",n))),Ao=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof oi||e(n)&&t("JSONReference",n)&&s("object",n))),$o=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ci||e(n)&&t("media",n)&&s("object",n))),Fo=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ui||e(n)&&t("linkDescription",n)&&s("object",n))),ko={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ri),t.register("jSONReference",oi),t.register("media",ci),t.register("linkDescription",ui),t}},Ro=()=>{const e=ts(ko);return{predicates:{...t,isStringElement:Fs},namespace:e}},Io=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:n=Oo}={})=>{const r=(0,Rt.Qc)(e),i=mi(n),o=pn(t,[],i);return an(r,o,{state:{specObj:i}}),hn(o.element,s,{toolboxCreator:Ro,visitorOptions:{keyMap:ji,nodeTypeGetter:wi}})},Mo=e=>(t,s={})=>Io(t,{specPath:e,...s});ri.refract=Mo(["visitors","document","objects","JSONSchema","$visitor"]),oi.refract=Mo(["visitors","document","objects","JSONReference","$visitor"]),ci.refract=Mo(["visitors","document","objects","Media","$visitor"]),ui.refract=Mo(["visitors","document","objects","LinkDescription","$visitor"]);const To=class extends ri{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Co extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const No=Co;class qo extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Lo=qo;class Do extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Bo=Do;class Vo extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Uo=Vo;class zo extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Go=zo;class Jo extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Wo=Jo,Ho=Es({props:{element:null},methods:{copyMetaAndAttributes(e,t){zs(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Ko=e=>{if($s(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Zo={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...on},Xo=Es(Ho,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:s=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=s},methods:{retrievePassingOptions(){return yt(this.passingOptionsNames,this)},retrieveFixedFields(e){return Te(ht(["visitors",...e,"fixedFields"]),I)(this.specObj)},retrieveVisitor(e){return _t(Dt,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return this.retrieveVisitor(e)({...s,...t})},toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s),r=Object.getPrototypeOf(n);return Ft(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===r?Ys(t):(an(t,n,{keyMap:Zo,nodeTypeGetter:Ko,...s}),n.element)}}}),Yo=e=>Ms(e)&&e.hasKey("openapi")&&e.hasKey("info"),Qo=e=>Ms(e)&&e.hasKey("name")&&e.hasKey("in"),ea=e=>Ms(e)&&e.hasKey("$ref"),ta=e=>Ms(e)&&e.hasKey("content"),sa=e=>Ms(e)&&e.hasKey("description"),na=Ms,ra=Ms,ia=e=>Fs(e.key)&&Ot("x-",xi(e.key)),oa=Es(Xo,{props:{specPath:fi,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:ia},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:s=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=s,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,n,r)=>{if(Fs(n)&&s.includes(xi(n))&&!this.ignoredFields.includes(xi(n))){const s=this.toRefractedElement([...t,"fixedFields",xi(n)],e),i=new Rt.c6(Ys(n),s);this.copyMetaAndAttributes(r,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else this.ignoredFields.includes(xi(n))||this.element.content.push(Ys(r))})),this.copyMetaAndAttributes(e,this.element),_s}}}),aa=Es(Ho,{methods:{enter(e){return this.element=Ys(e),_s}}}),ca=Es(oa,aa,{props:{specPath:ye(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Dr},methods:{ObjectElement(e){return this.unrefractedElement=e,oa.compose.methods.ObjectElement.call(this,e)}}}),la=Es(Xo,aa,{methods:{StringElement(e){const t=new qr(xi(e));return this.copyMetaAndAttributes(e,t),this.element=t,_s}}}),ua=Es(Xo,{methods:{MemberElement(e){return this.element=Ys(e),this.element.classes.push("specification-extension"),_s}}}),pa=Es(oa,aa,{props:{specPath:ye(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Or}}),ma=aa,ha=aa,da=aa,fa=Es(aa,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("api-version"),this.element.classes.push("version"),_s}}}),_a=Es(oa,aa,{props:{specPath:ye(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new dr}}),ya=aa,ga=aa,ba=aa,va=Es(oa,aa,{props:{specPath:ye(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ar}}),Ea=aa,xa=aa,wa=Es(oa,aa,{props:{specPath:ye(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Fr},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return(Fs(this.element.operationId)||Fs(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),ja=Es(aa,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("reference-value"),_s}}}),Sa=Es(aa,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("reference-value"),_s}}}),Oa=Es(Xo,{props:{fieldPatternPredicate:a,specPath:fi,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:ia},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:s=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=s,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){return e.forEach(((e,t,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(xi(t))&&this.fieldPatternPredicate(xi(t))){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new Rt.c6(Ys(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(xi(t))||this.element.content.push(Ys(s))})),this.copyMetaAndAttributes(e,this.element),_s}}}),Pa=Es(Oa,{props:{fieldPatternPredicate:Ki}});class Aa extends Rt.Sb{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Aa.primaryClass)}}const $a=Aa,Fa=Es(Pa,aa,{props:{specPath:ye(["value"])},init(){this.element=new $a}}),ka=aa,Ra=aa,Ia=Es(oa,aa,{props:{specPath:ye(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bo}}),Ma=Es(aa,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("server-url"),_s}}}),Ta=aa;class Ca extends Rt.ON{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Ca.primaryClass)}}const Na=Ca,qa=Es(Xo,aa,{init(){this.element=new Na},methods:{ArrayElement(e){return e.forEach((e=>{const t=na(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),_s}}}),La=Es(oa,aa,{props:{specPath:ye(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Uo}}),Da=aa,Ba=aa,Va=aa;class Ua extends Rt.Sb{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Ua.primaryClass)}}const za=Ua,Ga=Es(Pa,aa,{props:{specPath:ye(["document","objects","ServerVariable"])},init(){this.element=new za}}),Ja=Es(oa,aa,{props:{specPath:ye(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new Rr}}),Wa=Es(Xo,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>it(e,ye(t),$t))),s=wo(t)(e);return this.element=this.toRefractedElement(s,e),_s}}}),Ha=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ur||e(n)&&t("callback",n)&&s("object",n))),Ka=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof mr||e(n)&&t("components",n)&&s("object",n))),Za=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof dr||e(n)&&t("contact",n)&&s("object",n))),Xa=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof vr||e(n)&&t("example",n)&&s("object",n))),Ya=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof xr||e(n)&&t("externalDocumentation",n)&&s("object",n))),Qa=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof jr||e(n)&&t("header",n)&&s("object",n))),ec=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Or||e(n)&&t("info",n)&&s("object",n))),tc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ar||e(n)&&t("license",n)&&s("object",n))),sc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Fr||e(n)&&t("link",n)&&s("object",n))),nc=e=>{if(!sc(e))return!1;if(!Fs(e.operationRef))return!1;const t=xi(e.operationRef);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},rc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof qr||e(n)&&t("openapi",n)&&s("string",n))),ic=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:n})=>r=>r instanceof Dr||e(r)&&t("openApi3_0",r)&&s("object",r)&&n("api",r))),oc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Vr||e(n)&&t("operation",n)&&s("object",n))),ac=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof zr||e(n)&&t("parameter",n)&&s("object",n))),cc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Jr||e(n)&&t("pathItem",n)&&s("object",n))),lc=e=>{if(!cc(e))return!1;if(!Fs(e.$ref))return!1;const t=xi(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},uc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Hr||e(n)&&t("paths",n)&&s("object",n))),pc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Zr||e(n)&&t("reference",n)&&s("object",n))),mc=e=>{if(!pc(e))return!1;if(!Fs(e.$ref))return!1;const t=xi(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},hc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Yr||e(n)&&t("requestBody",n)&&s("object",n))),dc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof ei||e(n)&&t("response",n)&&s("object",n))),fc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof si||e(n)&&t("responses",n)&&s("object",n))),_c=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof To||e(n)&&t("schema",n)&&s("object",n))),yc=e=>Is(e)&&e.classes.includes("boolean-json-schema"),gc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof No||e(n)&&t("securityRequirement",n)&&s("object",n))),bc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Bo||e(n)&&t("server",n)&&s("object",n))),vc=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Uo||e(n)&&t("serverVariable",n)&&s("object",n))),Ec=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Rr||e(n)&&t("mediaType",n)&&s("object",n))),xc=Es(Wa,aa,{props:{alternator:[{predicate:ea,specPath:["document","objects","Reference"]},{predicate:c,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Wa.compose.methods.enter.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),wc=aa,jc=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new Rt.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Sc extends Rt.Sb{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Sc.primaryClass),this.classes.push("examples")}}const Oc=Sc,Pc=Es(jc,{init(){this.element=new Oc}});class Ac extends Rt.Sb{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Ac.primaryClass)}}const $c=Ac,Fc=Es(Pa,aa,{props:{specPath:ye(["document","objects","Encoding"])},init(){this.element=new $c}}),kc=Es(Pa,aa,{props:{specPath:ye(["value"])},init(){this.element=new No}});class Rc extends Rt.ON{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Rc.primaryClass)}}const Ic=Rc,Mc=Es(Xo,aa,{init(){this.element=new Ic},methods:{ArrayElement(e){return e.forEach((e=>{if(Ms(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Ys(e))})),this.copyMetaAndAttributes(e,this.element),_s}}}),Tc=Es(oa,aa,{props:{specPath:ye(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new mr}}),Cc=Es(oa,aa,{props:{specPath:ye(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new Go}}),Nc=aa,qc=aa,Lc=Es(oa,aa,{props:{specPath:ye(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new Zr},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Fs(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Dc=Es(aa,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("reference-value"),_s}}}),Bc=Es(oa,aa,{props:{specPath:ye(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new zr},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Ms(this.element.contentProp)&&this.element.contentProp.filter(Ec).forEach(((e,t)=>{e.setMetaProperty("media-type",xi(t))})),t}}}),Vc=aa,Uc=aa,zc=aa,Gc=aa,Jc=aa,Wc=aa,Hc=aa,Kc=aa,Zc=aa,Xc=Es(Wa,aa,{props:{alternator:[{predicate:ea,specPath:["document","objects","Reference"]},{predicate:c,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Wa.compose.methods.enter.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Yc=Es(oa,aa,{props:{specPath:ye(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new jr}}),Qc=aa,el=aa,tl=aa,sl=aa,nl=aa,rl=aa,il=aa,ol=Es(Wa,aa,{props:{alternator:[{predicate:ea,specPath:["document","objects","Reference"]},{predicate:c,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Wa.compose.methods.enter.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),al=aa;class cl extends Rt.Sb{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(cl.primaryClass),this.classes.push("examples")}}const ll=cl,ul=Es(jc,{init(){this.element=new ll}}),pl=Es(Pa,aa,{props:{specPath:ye(["document","objects","MediaType"])},init(){this.element=new Rt.Sb,this.element.classes.push("content")}});class ml extends Rt.Sb{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(ml.primaryClass),this.classes.push("content")}}const hl=ml,dl=Es(pl,{init(){this.element=new hl}}),fl=Es(oa,aa,{props:{specPath:ye(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new To}}),{allOf:_l}=Oo.visitors.document.objects.JSONSchema.fixedFields,yl=Es(_l,{methods:{ArrayElement(e){const t=_l.compose.methods.ArrayElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:gl}=Oo.visitors.document.objects.JSONSchema.fixedFields,bl=Es(gl,{methods:{ArrayElement(e){const t=gl.compose.methods.ArrayElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:vl}=Oo.visitors.document.objects.JSONSchema.fixedFields,El=Es(vl,{methods:{ArrayElement(e){const t=vl.compose.methods.ArrayElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{definitions:xl}=Oo.visitors.document.objects.JSONSchema.fixedFields,wl=Es(xl,{methods:{ObjectElement(e){const t=xl.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{dependencies:jl}=Oo.visitors.document.objects.JSONSchema.fixedFields,Sl=Es(jl,{methods:{ObjectElement(e){const t=jl.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Ol}=Oo.visitors.document.objects.JSONSchema.fixedFields,Pl=Es(Ol,{methods:{ObjectElement(e){const t=Ol.compose.methods.ObjectElement.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=Ys(e),_s}}}),{properties:Al}=Oo.visitors.document.objects.JSONSchema.fixedFields,$l=Es(Al,{methods:{ObjectElement(e){const t=Al.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{patternProperties:Fl}=Oo.visitors.document.objects.JSONSchema.fixedFields,kl=Es(Fl,{methods:{ObjectElement(e){const t=Fl.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Rl}=Oo.visitors.document.objects.JSONSchema.fixedFields,Il=Es(Rl,{methods:{ArrayElement(e){return this.element=Ys(e),_s}}}),Ml=aa,Tl=aa,Cl=aa,Nl=aa,{JSONSchemaOrJSONReferenceVisitor:ql}=Oo.visitors,Ll=Es(ql,{methods:{ObjectElement(e){const t=ql.compose.methods.enter.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Dl=Object.fromEntries(Object.entries(Oo.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===Oo.visitors.JSONSchemaOrJSONReferenceVisitor?[e,Ll]:[e,t]))),Bl=Es(oa,aa,{props:{specPath:ye(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new _r}}),Vl=aa;class Ul extends Rt.Sb{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Ul.primaryClass)}}const zl=Ul,Gl=Es(Pa,aa,{props:{specPath:ye(["value"])},init(){this.element=new zl}}),Jl=Es(oa,aa,{props:{specPath:ye(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Wo}}),Wl=aa,Hl=aa,Kl=aa,Zl=aa,Xl=aa,Yl=aa;class Ql extends Rt.Sb{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Ql.primaryClass),this.classes.push("examples")}}const eu=Ql,tu=Es(jc,{init(){this.element=new eu}});class su extends Rt.Sb{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(su.primaryClass),this.classes.push("content")}}const nu=su,ru=Es(pl,{init(){this.element=new nu}});class iu extends Rt.Sb{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(iu.primaryClass)}}const ou=iu,au=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new ou},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class cu extends Rt.Sb{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(cu.primaryClass)}}const lu=cu,uu=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new lu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(dc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",xi(t))})),t}}});class pu extends Rt.Sb{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(pu.primaryClass),this.classes.push("parameters")}}const mu=pu,hu=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new mu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class du extends Rt.Sb{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(du.primaryClass),this.classes.push("examples")}}const fu=du,_u=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new fu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class yu extends Rt.Sb{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(yu.primaryClass)}}const gu=yu,bu=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new gu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class vu extends Rt.Sb{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(vu.primaryClass)}}const Eu=vu,xu=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Eu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Qa).forEach(((e,t)=>{e.setMetaProperty("header-name",xi(t))})),t}}});class wu extends Rt.Sb{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(wu.primaryClass)}}const ju=wu,Su=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new ju},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class Ou extends Rt.Sb{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Ou.primaryClass)}}const Pu=Ou,Au=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Pu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class $u extends Rt.Sb{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push($u.primaryClass)}}const Fu=$u,ku=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Fu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Ru=Es(oa,aa,{props:{specPath:ye(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new vr},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Fs(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Iu=aa,Mu=aa,Tu=aa,Cu=Es(aa,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("reference-value"),_s}}}),Nu=Es(oa,aa,{props:{specPath:ye(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new xr}}),qu=aa,Lu=aa,Du=Es(oa,aa,{props:{specPath:ye(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new gr},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Ms(this.element.headers)&&this.element.headers.filter(Qa).forEach(((e,t)=>{e.setMetaProperty("header-name",xi(t))})),t}}}),Bu=aa;class Vu extends Rt.Sb{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Vu.primaryClass)}}const Uu=Vu,zu=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Uu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Qa(e))return;const s=xi(t);e.setMetaProperty("headerName",s)})),t}}}),Gu=aa,Ju=aa,Wu=aa,Hu=Es(Oa,aa,{props:{fieldPatternPredicate:Pt(/^\/(?<path>.*)$/),specPath:ye(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Hr},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(cc).forEach(((e,t)=>{e.setMetaProperty("path",Ys(t))})),t}}}),Ku=Es(oa,aa,{props:{specPath:ye(["document","objects","RequestBody"])},init(){this.element=new Yr},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Ms(this.element.contentProp)&&this.element.contentProp.filter(Ec).forEach(((e,t)=>{e.setMetaProperty("media-type",xi(t))})),t}}}),Zu=aa;class Xu extends Rt.Sb{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Xu.primaryClass),this.classes.push("content")}}const Yu=Xu,Qu=Es(pl,{init(){this.element=new Yu}}),ep=aa,tp=Es(Oa,aa,{props:{fieldPatternPredicate:Pt(/{(?<expression>.*)}/),specPath:ye(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new ur},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(cc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",xi(t))})),t}}}),sp=Es(oa,aa,{props:{specPath:ye(["document","objects","Response"])},init(){this.element=new ei},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Ms(this.element.contentProp)&&this.element.contentProp.filter(Ec).forEach(((e,t)=>{e.setMetaProperty("media-type",xi(t))})),Ms(this.element.headers)&&this.element.headers.filter(Qa).forEach(((e,t)=>{e.setMetaProperty("header-name",xi(t))})),t}}}),np=aa;class rp extends Rt.Sb{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(rp.primaryClass)}}const ip=rp,op=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new ip},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Qa(e))return;const s=xi(t);e.setMetaProperty("header-name",s)})),t}}});class ap extends Rt.Sb{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(ap.primaryClass),this.classes.push("content")}}const cp=ap,lp=Es(pl,{init(){this.element=new cp}});class up extends Rt.Sb{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(up.primaryClass)}}const pp=up,mp=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new pp},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),hp=Es(oa,Oa,{props:{specPathFixedFields:fi,specPathPatternedFields:fi},methods:{ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...De(e.keys(),t)],oa.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Oa.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return _s}}}),dp=Es(hp,aa,{props:{specPathFixedFields:ye(["document","objects","Responses"]),specPathPatternedFields:e=>ea(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:Pt(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Et(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new si},methods:{ObjectElement(e){const t=hp.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(dc).forEach(((e,t)=>{const s=Ys(t);this.fieldPatternPredicate(xi(s))&&e.setMetaProperty("http-status-code",s)})),t}}}),fp=Es(Wa,aa,{props:{alternator:[{predicate:ea,specPath:["document","objects","Reference"]},{predicate:c,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Wa.compose.methods.enter.call(this,e);return pc(this.element)?this.element.setMetaProperty("referenced-element","response"):dc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),_p=Es(oa,aa,{props:{specPath:ye(["document","objects","Operation"])},init(){this.element=new Vr}});class yp extends Rt.ON{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(yp.primaryClass)}}const gp=yp,bp=Es(aa,{init(){this.element=new gp},methods:{ArrayElement(e){return this.element=this.element.concat(Ys(e)),_s}}}),vp=aa,Ep=aa,xp=aa;class wp extends Rt.ON{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(wp.primaryClass),this.classes.push("parameters")}}const jp=wp,Sp=Es(Xo,aa,{init(){this.element=new Rt.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ea(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);pc(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),_s}}}),Op=Es(Sp,{init(){this.element=new jp}}),Pp=Es(Wa,{props:{alternator:[{predicate:ea,specPath:["document","objects","Reference"]},{predicate:c,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Wa.compose.methods.enter.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class Ap extends Rt.Sb{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Ap.primaryClass)}}const $p=Ap,Fp=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new $p},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),kp=aa;class Rp extends Rt.ON{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Rp.primaryClass),this.classes.push("security")}}const Ip=Rp,Mp=Es(Xo,aa,{init(){this.element=new Ip},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ms(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),_s}}});class Tp extends Rt.ON{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Tp.primaryClass),this.classes.push("servers")}}const Cp=Tp,Np=Es(qa,{init(){this.element=new Cp}}),qp=Es(oa,aa,{props:{specPath:ye(["document","objects","PathItem"])},init(){this.element=new Jr},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach(((e,t)=>{const s=Ys(t);s.content=xi(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Fs(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Lp=Es(aa,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("reference-value"),_s}}}),Dp=aa,Bp=aa;class Vp extends Rt.ON{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Vp.primaryClass),this.classes.push("servers")}}const Up=Vp,zp=Es(qa,{init(){this.element=new Up}});class Gp extends Rt.ON{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Gp.primaryClass),this.classes.push("parameters")}}const Jp=Gp,Wp=Es(Sp,{init(){this.element=new Jp}}),Hp=Es(oa,aa,{props:{specPath:ye(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Lo}}),Kp=aa,Zp=aa,Xp=aa,Yp=aa,Qp=aa,em=aa,tm=aa,sm=Es(oa,aa,{props:{specPath:ye(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Cr}}),nm=Es(oa,aa,{props:{specPath:ye(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Mr}}),rm=aa,im=aa,om=aa;class am extends Rt.Sb{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(am.primaryClass)}}const cm=am,lm=Es(Pa,aa,{props:{specPath:ye(["value"])},init(){this.element=new cm}});class um extends Rt.ON{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(um.primaryClass)}}const pm=um,mm={$visitor:Lc,fixedFields:{$ref:Dc}},hm={$visitor:fl,fixedFields:{...Dl,allOf:yl,anyOf:bl,oneOf:El,definitions:wl,items:Pl,dependencies:Sl,properties:$l,patternProperties:kl,type:Il,nullable:Ml,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:Tl,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Cl,deprecated:Nl}},dm={visitors:{value:aa,document:{objects:{OpenApi:{$visitor:ca,fixedFields:{openapi:la,info:{$ref:"#/visitors/document/objects/Info"},servers:qa,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Mc,tags:Es(Xo,aa,{init(){this.element=new pm},methods:{ArrayElement(e){return e.forEach((e=>{const t=ra(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),_s}}}),externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:pa,fixedFields:{title:ma,description:ha,termsOfService:da,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:fa}},Contact:{$visitor:_a,fixedFields:{name:ya,url:ga,email:ba}},License:{$visitor:va,fixedFields:{name:Ea,url:xa}},Server:{$visitor:Ia,fixedFields:{url:Ma,description:Ta,variables:Ga}},ServerVariable:{$visitor:La,fixedFields:{enum:Da,default:Ba,description:Va}},Components:{$visitor:Tc,fixedFields:{schemas:au,responses:uu,parameters:hu,examples:_u,requestBodies:bu,headers:xu,securitySchemes:Su,links:Au,callbacks:ku}},Paths:{$visitor:Hu},PathItem:{$visitor:qp,fixedFields:{$ref:Lp,summary:Dp,description:Bp,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:zp,parameters:Wp}},Operation:{$visitor:_p,fixedFields:{tags:bp,summary:vp,description:Ep,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:xp,parameters:Op,requestBody:Pp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Fp,deprecated:kp,security:Mp,servers:Np}},ExternalDocumentation:{$visitor:Nu,fixedFields:{description:qu,url:Lu}},Parameter:{$visitor:Bc,fixedFields:{name:Vc,in:Uc,description:zc,required:Gc,deprecated:Jc,allowEmptyValue:Wc,style:Hc,explode:Kc,allowReserved:Zc,schema:Xc,example:Yl,examples:tu,content:ru}},RequestBody:{$visitor:Ku,fixedFields:{description:Zu,content:Qu,required:ep}},MediaType:{$visitor:Ja,fixedFields:{schema:xc,example:wc,examples:Pc,encoding:Fc}},Encoding:{$visitor:Du,fixedFields:{contentType:Bu,headers:zu,style:Gu,explode:Ju,allowReserved:Wu}},Responses:{$visitor:dp,fixedFields:{default:fp}},Response:{$visitor:sp,fixedFields:{description:np,headers:op,content:lp,links:mp}},Callback:{$visitor:tp},Example:{$visitor:Ru,fixedFields:{summary:Iu,description:Mu,value:Tu,externalValue:Cu}},Link:{$visitor:wa,fixedFields:{operationRef:ja,operationId:Sa,parameters:Fa,requestBody:ka,description:Ra,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Yc,fixedFields:{description:Qc,required:el,deprecated:tl,allowEmptyValue:sl,style:nl,explode:rl,allowReserved:il,schema:ol,example:al,examples:ul,content:dl}},Tag:{$visitor:Cc,fixedFields:{name:Nc,description:qc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:mm,Reference:mm,JSONSchema:hm,Schema:hm,LinkDescription:Oo.visitors.document.objects.LinkDescription,Media:Oo.visitors.document.objects.Media,Discriminator:{$visitor:Bl,fixedFields:{propertyName:Vl,mapping:Gl}},XML:{$visitor:Jl,fixedFields:{name:Wl,namespace:Hl,prefix:Kl,attribute:Zl,wrapped:Xl}},SecurityScheme:{$visitor:Hp,fixedFields:{type:Kp,description:Zp,name:Xp,in:Yp,scheme:Qp,bearerFormat:em,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:tm}},OAuthFlows:{$visitor:sm,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:nm,fixedFields:{authorizationUrl:rm,tokenUrl:im,refreshUrl:om,scopes:lm}},SecurityRequirement:{$visitor:kc}},extension:{$visitor:ua}}}},fm={namespace:e=>{const{base:t}=e;return t.register("callback",ur),t.register("components",mr),t.register("contact",dr),t.register("discriminator",_r),t.register("encoding",gr),t.register("example",vr),t.register("externalDocumentation",xr),t.register("header",jr),t.register("info",Or),t.register("license",Ar),t.register("link",Fr),t.register("mediaType",Rr),t.register("oAuthFlow",Mr),t.register("oAuthFlows",Cr),t.register("openapi",qr),t.register("openApi3_0",Dr),t.register("operation",Vr),t.register("parameter",zr),t.register("pathItem",Jr),t.register("paths",Hr),t.register("reference",Zr),t.register("requestBody",Yr),t.register("response",ei),t.register("responses",si),t.register("schema",To),t.register("securityRequirement",No),t.register("securityScheme",Lo),t.register("server",Bo),t.register("serverVariable",Uo),t.register("tag",Go),t.register("xml",Wo),t}},_m=()=>{const e=ts(fm);return{predicates:{...r,...i,isStringElement:Fs},namespace:e}},ym=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const n=(0,Rt.Qc)(e),r=mi(dm),i=pn(t,[],r);return an(n,i,{state:{specObj:r}}),hn(i.element,s,{toolboxCreator:_m,visitorOptions:{keyMap:Zo,nodeTypeGetter:Ko}})},gm=e=>(t,s={})=>ym(t,{specPath:e,...s});ur.refract=gm(["visitors","document","objects","Callback","$visitor"]),mr.refract=gm(["visitors","document","objects","Components","$visitor"]),dr.refract=gm(["visitors","document","objects","Contact","$visitor"]),vr.refract=gm(["visitors","document","objects","Example","$visitor"]),_r.refract=gm(["visitors","document","objects","Discriminator","$visitor"]),gr.refract=gm(["visitors","document","objects","Encoding","$visitor"]),xr.refract=gm(["visitors","document","objects","ExternalDocumentation","$visitor"]),jr.refract=gm(["visitors","document","objects","Header","$visitor"]),Or.refract=gm(["visitors","document","objects","Info","$visitor"]),Ar.refract=gm(["visitors","document","objects","License","$visitor"]),Fr.refract=gm(["visitors","document","objects","Link","$visitor"]),Rr.refract=gm(["visitors","document","objects","MediaType","$visitor"]),Mr.refract=gm(["visitors","document","objects","OAuthFlow","$visitor"]),Cr.refract=gm(["visitors","document","objects","OAuthFlows","$visitor"]),qr.refract=gm(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Dr.refract=gm(["visitors","document","objects","OpenApi","$visitor"]),Vr.refract=gm(["visitors","document","objects","Operation","$visitor"]),zr.refract=gm(["visitors","document","objects","Parameter","$visitor"]),Jr.refract=gm(["visitors","document","objects","PathItem","$visitor"]),Hr.refract=gm(["visitors","document","objects","Paths","$visitor"]),Zr.refract=gm(["visitors","document","objects","Reference","$visitor"]),Yr.refract=gm(["visitors","document","objects","RequestBody","$visitor"]),ei.refract=gm(["visitors","document","objects","Response","$visitor"]),si.refract=gm(["visitors","document","objects","Responses","$visitor"]),To.refract=gm(["visitors","document","objects","Schema","$visitor"]),No.refract=gm(["visitors","document","objects","SecurityRequirement","$visitor"]),Lo.refract=gm(["visitors","document","objects","SecurityScheme","$visitor"]),Bo.refract=gm(["visitors","document","objects","Server","$visitor"]),Uo.refract=gm(["visitors","document","objects","ServerVariable","$visitor"]),Go.refract=gm(["visitors","document","objects","Tag","$visitor"]),Wo.refract=gm(["visitors","document","objects","XML","$visitor"]);const bm=class extends ur{};const vm=class extends mr{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Em=class extends dr{};const xm=class extends _r{};const wm=class extends gr{};const jm=class extends vr{};const Sm=class extends xr{};const Om=class extends jr{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Pm=class extends Or{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Am extends Rt.RP{static default=new Am("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const $m=Am;const Fm=class extends Ar{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const km=class extends Fr{};const Rm=class extends Rr{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Im=class extends Mr{};const Mm=class extends Cr{};const Tm=class extends qr{};class Cm extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Nm=Cm;const qm=class extends Vr{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Lm=class extends zr{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Dm=class extends Jr{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const Bm=class extends Hr{};class Vm extends Zr{}Object.defineProperty(Vm.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Vm.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Um=Vm;const zm=class extends Yr{};const Gm=class extends ei{};const Jm=class extends si{};class Wm extends Rt.Sb{constructor(e,t,s){super(e,t,s),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}}const Hm=Wm;const Km=class extends No{};const Zm=class extends Lo{};const Xm=class extends Bo{};const Ym=class extends Uo{};const Qm=class extends Go{};const eh=class extends Wo{},th=Es(oa,aa,{props:{specPath:ye(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Nm,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,oa.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:sh}}}}}=dm,nh=Es(sh,{init(){this.element=new Pm}}),rh=aa,{visitors:{document:{objects:{Contact:{$visitor:ih}}}}}=dm,oh=Es(ih,{init(){this.element=new Em}}),{visitors:{document:{objects:{License:{$visitor:ah}}}}}=dm,ch=Es(ah,{init(){this.element=new Fm}}),lh=aa,{visitors:{document:{objects:{Link:{$visitor:uh}}}}}=dm,ph=Es(uh,{init(){this.element=new km}}),mh=Es(Xo,aa,{methods:{StringElement(e){const t=new $m(xi(e));return this.copyMetaAndAttributes(e,t),this.element=t,_s}}}),{visitors:{document:{objects:{Server:{$visitor:hh}}}}}=dm,dh=Es(hh,{init(){this.element=new Xm}}),{visitors:{document:{objects:{ServerVariable:{$visitor:fh}}}}}=dm,_h=Es(fh,{init(){this.element=new Ym}}),{visitors:{document:{objects:{MediaType:{$visitor:yh}}}}}=dm,gh=Es(yh,{init(){this.element=new Rm}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:bh}}}}}=dm,vh=Es(bh,{init(){this.element=new Km}}),{visitors:{document:{objects:{Components:{$visitor:Eh}}}}}=dm,xh=Es(Eh,{init(){this.element=new vm}}),{visitors:{document:{objects:{Tag:{$visitor:wh}}}}}=dm,jh=Es(wh,{init(){this.element=new Qm}}),{visitors:{document:{objects:{Reference:{$visitor:Sh}}}}}=dm,Oh=Es(Sh,{init(){this.element=new Um}}),Ph=aa,Ah=aa,{visitors:{document:{objects:{Parameter:{$visitor:$h}}}}}=dm,Fh=Es($h,{init(){this.element=new Lm}}),{visitors:{document:{objects:{Header:{$visitor:kh}}}}}=dm,Rh=Es(kh,{init(){this.element=new Om}}),Ih=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof bm||e(n)&&t("callback",n)&&s("object",n))),Mh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof vm||e(n)&&t("components",n)&&s("object",n))),Th=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Em||e(n)&&t("contact",n)&&s("object",n))),Ch=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof jm||e(n)&&t("example",n)&&s("object",n))),Nh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Sm||e(n)&&t("externalDocumentation",n)&&s("object",n))),qh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Om||e(n)&&t("header",n)&&s("object",n))),Lh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Pm||e(n)&&t("info",n)&&s("object",n))),Dh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof $m||e(n)&&t("jsonSchemaDialect",n)&&s("string",n))),Bh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Fm||e(n)&&t("license",n)&&s("object",n))),Vh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof km||e(n)&&t("link",n)&&s("object",n))),Uh=e=>{if(!Vh(e))return!1;if(!Fs(e.operationRef))return!1;const t=xi(e.operationRef);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},zh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Tm||e(n)&&t("openapi",n)&&s("string",n))),Gh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:n})=>r=>r instanceof Nm||e(r)&&t("openApi3_1",r)&&s("object",r)&&n("api",r))),Jh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof qm||e(n)&&t("operation",n)&&s("object",n))),Wh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Lm||e(n)&&t("parameter",n)&&s("object",n))),Hh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Dm||e(n)&&t("pathItem",n)&&s("object",n))),Kh=e=>{if(!Hh(e))return!1;if(!Fs(e.$ref))return!1;const t=xi(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Zh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Bm||e(n)&&t("paths",n)&&s("object",n))),Xh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Um||e(n)&&t("reference",n)&&s("object",n))),Yh=e=>{if(!Xh(e))return!1;if(!Fs(e.$ref))return!1;const t=xi(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Qh=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof zm||e(n)&&t("requestBody",n)&&s("object",n))),ed=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Gm||e(n)&&t("response",n)&&s("object",n))),td=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Jm||e(n)&&t("responses",n)&&s("object",n))),sd=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Hm||e(n)&&t("schema",n)&&s("object",n))),nd=e=>Is(e)&&e.classes.includes("boolean-json-schema"),rd=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Km||e(n)&&t("securityRequirement",n)&&s("object",n))),id=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Xm||e(n)&&t("server",n)&&s("object",n))),od=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Ym||e(n)&&t("serverVariable",n)&&s("object",n))),ad=As((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>n=>n instanceof Rm||e(n)&&t("mediaType",n)&&s("object",n))),cd=Es({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),ld=Es(oa,cd,aa,{props:{specPath:ye(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&Dh(this.openApiSemanticElement.jsonSchemaDialect)?xi(this.openApiSemanticElement.jsonSchemaDialect):null!==this.openApiGenericElement&&Fs(this.openApiGenericElement.get("jsonSchemaDialect"))?xi(this.openApiGenericElement.get("jsonSchemaDialect")):xi($m.default),e},t=t=>{if(It(this.parent)&&!Fs(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(sd(this.parent)&&!Fs(t.get("$schema"))){const e=Ne(xi(this.parent.meta.get("inherited$schema")),xi(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}},s=e=>{const t=null!==this.parent?Ys(this.parent.getMetaProperty("inherited$id",[])):new Rt.ON,s=xi(e.get("$id"));Ki(s)&&t.push(s),this.element.setMetaProperty("inherited$id",t)};this.ObjectElement=function(e){this.element=new Hm,t(e),s(e),this.parent=this.element;const n=oa.compose.methods.ObjectElement.call(this,e);return Fs(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),n},this.BooleanElement=function(e){return this.element=Ys(e),this.element.classes.push("boolean-json-schema"),_s}}}),ud=aa,pd=Es(aa,{methods:{ObjectElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-$vocabulary"),_s}}}),md=aa,hd=aa,dd=aa,fd=aa,_d=Es(aa,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("reference-value"),_s}}}),yd=Es(Pa,cd,aa,{props:{specPath:ye(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-$defs")}}),gd=aa,bd=Es(Xo,cd,aa,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Ms(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ys(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),_s}}}),vd=Es(Xo,cd,aa,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Ms(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ys(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),_s}}}),Ed=Es(Xo,cd,aa,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Ms(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ys(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),_s}}}),xd=Es(Pa,cd,aa,{props:{specPath:ye(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),wd=Es(Xo,cd,aa,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if(Ms(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ys(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),_s}}}),jd=Es(Pa,cd,aa,{props:{specPath:ye(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-properties")}}),Sd=Es(Pa,cd,aa,{props:{specPath:ye(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-patternProperties")}}),Od=Es(aa,{methods:{StringElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-type"),_s},ArrayElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-type"),_s}}}),Pd=Es(aa,{methods:{ArrayElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-enum"),_s}}}),Ad=aa,$d=aa,Fd=aa,kd=aa,Rd=aa,Id=aa,Md=aa,Td=aa,Cd=aa,Nd=aa,qd=aa,Ld=aa,Dd=aa,Bd=aa,Vd=aa,Ud=aa,zd=Es(aa,{methods:{ArrayElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-required"),_s}}}),Gd=Es(aa,{methods:{ObjectElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-dependentRequired"),_s}}}),Jd=aa,Wd=aa,Hd=aa,Kd=aa,Zd=aa,Xd=aa,Yd=Es(aa,{methods:{ArrayElement(e){return this.element=Ys(e),this.element.classes.push("json-schema-examples"),_s}}}),Qd=aa,ef=aa,tf=aa,sf=aa,{visitors:{document:{objects:{Discriminator:{$visitor:nf}}}}}=dm,rf=Es(nf,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new xm}}),{visitors:{document:{objects:{XML:{$visitor:of}}}}}=dm,af=Es(of,{init(){this.element=new eh}}),cf=Es(Pa,aa,{props:{specPath:ye(["document","objects","Schema"])},init(){this.element=new ou}});class lf extends Rt.Sb{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(lf.primaryClass)}}const uf=lf,pf=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new uf},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(Xh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:mf}}}}}=dm,hf=Es(mf,{init(){this.element=new jm}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:df}}}}}=dm,ff=Es(df,{init(){this.element=new Sm}}),{visitors:{document:{objects:{Encoding:{$visitor:_f}}}}}=dm,yf=Es(_f,{init(){this.element=new wm}}),{visitors:{document:{objects:{Paths:{$visitor:gf}}}}}=dm,bf=Es(gf,{init(){this.element=new Bm}}),{visitors:{document:{objects:{RequestBody:{$visitor:vf}}}}}=dm,Ef=Es(vf,{init(){this.element=new zm}}),{visitors:{document:{objects:{Callback:{$visitor:xf}}}}}=dm,wf=Es(xf,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new bm},methods:{ObjectElement(e){const t=xf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Xh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:jf}}}}}=dm,Sf=Es(jf,{init(){this.element=new Gm}}),{visitors:{document:{objects:{Responses:{$visitor:Of}}}}}=dm,Pf=Es(Of,{init(){this.element=new Jm}}),{visitors:{document:{objects:{Operation:{$visitor:Af}}}}}=dm,$f=Es(Af,{init(){this.element=new qm}}),{visitors:{document:{objects:{PathItem:{$visitor:Ff}}}}}=dm,kf=Es(Ff,{init(){this.element=new Dm}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:Rf}}}}}=dm,If=Es(Rf,{init(){this.element=new Zm}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:Mf}}}}}=dm,Tf=Es(Mf,{init(){this.element=new Mm}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:Cf}}}}}=dm,Nf=Es(Cf,{init(){this.element=new Im}});class qf extends Rt.Sb{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(qf.primaryClass)}}const Lf=qf,Df=Es(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Lf},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(Xh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Hh).forEach(((e,t)=>{e.setMetaProperty("webhook-name",xi(t))})),t}}}),Bf={visitors:{value:dm.visitors.value,document:{objects:{OpenApi:{$visitor:th,fixedFields:{openapi:dm.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:mh,servers:dm.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Df,components:{$ref:"#/visitors/document/objects/Components"},security:dm.visitors.document.objects.OpenApi.fixedFields.security,tags:dm.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:nh,fixedFields:{title:dm.visitors.document.objects.Info.fixedFields.title,description:dm.visitors.document.objects.Info.fixedFields.description,summary:rh,termsOfService:dm.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:dm.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:oh,fixedFields:{name:dm.visitors.document.objects.Contact.fixedFields.name,url:dm.visitors.document.objects.Contact.fixedFields.url,email:dm.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:ch,fixedFields:{name:dm.visitors.document.objects.License.fixedFields.name,identifier:lh,url:dm.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:dh,fixedFields:{url:dm.visitors.document.objects.Server.fixedFields.url,description:dm.visitors.document.objects.Server.fixedFields.description,variables:dm.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:_h,fixedFields:{enum:dm.visitors.document.objects.ServerVariable.fixedFields.enum,default:dm.visitors.document.objects.ServerVariable.fixedFields.default,description:dm.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:xh,fixedFields:{schemas:cf,responses:dm.visitors.document.objects.Components.fixedFields.responses,parameters:dm.visitors.document.objects.Components.fixedFields.parameters,examples:dm.visitors.document.objects.Components.fixedFields.examples,requestBodies:dm.visitors.document.objects.Components.fixedFields.requestBodies,headers:dm.visitors.document.objects.Components.fixedFields.headers,securitySchemes:dm.visitors.document.objects.Components.fixedFields.securitySchemes,links:dm.visitors.document.objects.Components.fixedFields.links,callbacks:dm.visitors.document.objects.Components.fixedFields.callbacks,pathItems:pf}},Paths:{$visitor:bf},PathItem:{$visitor:kf,fixedFields:{$ref:dm.visitors.document.objects.PathItem.fixedFields.$ref,summary:dm.visitors.document.objects.PathItem.fixedFields.summary,description:dm.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:dm.visitors.document.objects.PathItem.fixedFields.servers,parameters:dm.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:$f,fixedFields:{tags:dm.visitors.document.objects.Operation.fixedFields.tags,summary:dm.visitors.document.objects.Operation.fixedFields.summary,description:dm.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:dm.visitors.document.objects.Operation.fixedFields.operationId,parameters:dm.visitors.document.objects.Operation.fixedFields.parameters,requestBody:dm.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:dm.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:dm.visitors.document.objects.Operation.fixedFields.deprecated,security:dm.visitors.document.objects.Operation.fixedFields.security,servers:dm.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:ff,fixedFields:{description:dm.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:dm.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Fh,fixedFields:{name:dm.visitors.document.objects.Parameter.fixedFields.name,in:dm.visitors.document.objects.Parameter.fixedFields.in,description:dm.visitors.document.objects.Parameter.fixedFields.description,required:dm.visitors.document.objects.Parameter.fixedFields.required,deprecated:dm.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:dm.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:dm.visitors.document.objects.Parameter.fixedFields.style,explode:dm.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:dm.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:dm.visitors.document.objects.Parameter.fixedFields.example,examples:dm.visitors.document.objects.Parameter.fixedFields.examples,content:dm.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Ef,fixedFields:{description:dm.visitors.document.objects.RequestBody.fixedFields.description,content:dm.visitors.document.objects.RequestBody.fixedFields.content,required:dm.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:gh,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:dm.visitors.document.objects.MediaType.fixedFields.example,examples:dm.visitors.document.objects.MediaType.fixedFields.examples,encoding:dm.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:yf,fixedFields:{contentType:dm.visitors.document.objects.Encoding.fixedFields.contentType,headers:dm.visitors.document.objects.Encoding.fixedFields.headers,style:dm.visitors.document.objects.Encoding.fixedFields.style,explode:dm.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:dm.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Pf,fixedFields:{default:dm.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Sf,fixedFields:{description:dm.visitors.document.objects.Response.fixedFields.description,headers:dm.visitors.document.objects.Response.fixedFields.headers,content:dm.visitors.document.objects.Response.fixedFields.content,links:dm.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:wf},Example:{$visitor:hf,fixedFields:{summary:dm.visitors.document.objects.Example.fixedFields.summary,description:dm.visitors.document.objects.Example.fixedFields.description,value:dm.visitors.document.objects.Example.fixedFields.value,externalValue:dm.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:ph,fixedFields:{operationRef:dm.visitors.document.objects.Link.fixedFields.operationRef,operationId:dm.visitors.document.objects.Link.fixedFields.operationId,parameters:dm.visitors.document.objects.Link.fixedFields.parameters,requestBody:dm.visitors.document.objects.Link.fixedFields.requestBody,description:dm.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Rh,fixedFields:{description:dm.visitors.document.objects.Header.fixedFields.description,required:dm.visitors.document.objects.Header.fixedFields.required,deprecated:dm.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:dm.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:dm.visitors.document.objects.Header.fixedFields.style,explode:dm.visitors.document.objects.Header.fixedFields.explode,allowReserved:dm.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:dm.visitors.document.objects.Header.fixedFields.example,examples:dm.visitors.document.objects.Header.fixedFields.examples,content:dm.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:jh,fixedFields:{name:dm.visitors.document.objects.Tag.fixedFields.name,description:dm.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Oh,fixedFields:{$ref:dm.visitors.document.objects.Reference.fixedFields.$ref,summary:Ph,description:Ah}},Schema:{$visitor:ld,fixedFields:{$schema:ud,$vocabulary:pd,$id:md,$anchor:hd,$dynamicAnchor:dd,$dynamicRef:fd,$ref:_d,$defs:yd,$comment:gd,allOf:bd,anyOf:vd,oneOf:Ed,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:xd,prefixItems:wd,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:jd,patternProperties:Sd,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:Od,enum:Pd,const:Ad,multipleOf:$d,maximum:Fd,exclusiveMaximum:kd,minimum:Rd,exclusiveMinimum:Id,maxLength:Md,minLength:Td,pattern:Cd,maxItems:Nd,minItems:qd,uniqueItems:Ld,maxContains:Dd,minContains:Bd,maxProperties:Vd,minProperties:Ud,required:zd,dependentRequired:Gd,title:Jd,description:Wd,default:Hd,deprecated:Kd,readOnly:Zd,writeOnly:Xd,examples:Yd,format:Qd,contentEncoding:ef,contentMediaType:tf,contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:sf}},Discriminator:{$visitor:rf,fixedFields:{propertyName:dm.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:dm.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:af,fixedFields:{name:dm.visitors.document.objects.XML.fixedFields.name,namespace:dm.visitors.document.objects.XML.fixedFields.namespace,prefix:dm.visitors.document.objects.XML.fixedFields.prefix,attribute:dm.visitors.document.objects.XML.fixedFields.attribute,wrapped:dm.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:If,fixedFields:{type:dm.visitors.document.objects.SecurityScheme.fixedFields.type,description:dm.visitors.document.objects.SecurityScheme.fixedFields.description,name:dm.visitors.document.objects.SecurityScheme.fixedFields.name,in:dm.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:dm.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:dm.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:dm.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Tf,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Nf,fixedFields:{authorizationUrl:dm.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:dm.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:dm.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:dm.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:vh}},extension:{$visitor:dm.visitors.document.extension.$visitor}}}},Vf=e=>{if($s(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Uf={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...on},zf={namespace:e=>{const{base:t}=e;return t.register("callback",bm),t.register("components",vm),t.register("contact",Em),t.register("discriminator",xm),t.register("encoding",wm),t.register("example",jm),t.register("externalDocumentation",Sm),t.register("header",Om),t.register("info",Pm),t.register("jsonSchemaDialect",$m),t.register("license",Fm),t.register("link",km),t.register("mediaType",Rm),t.register("oAuthFlow",Im),t.register("oAuthFlows",Mm),t.register("openapi",Tm),t.register("openApi3_1",Nm),t.register("operation",qm),t.register("parameter",Lm),t.register("pathItem",Dm),t.register("paths",Bm),t.register("reference",Um),t.register("requestBody",zm),t.register("response",Gm),t.register("responses",Jm),t.register("schema",Hm),t.register("securityRequirement",Km),t.register("securityScheme",Zm),t.register("server",Xm),t.register("serverVariable",Ym),t.register("tag",Qm),t.register("xml",eh),t}},Gf=()=>{const e=ts(zf);return{predicates:{...o,isStringElement:Fs,isArrayElement:Ts,isObjectElement:Ms,includesClasses:Js},namespace:e}},Jf=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const n=(0,Rt.Qc)(e),r=mi(Bf),i=pn(t,[],r);return an(n,i,{state:{specObj:r}}),hn(i.element,s,{toolboxCreator:Gf,visitorOptions:{keyMap:Uf,nodeTypeGetter:Vf}})},Wf=e=>(t,s={})=>Jf(t,{specPath:e,...s});bm.refract=Wf(["visitors","document","objects","Callback","$visitor"]),vm.refract=Wf(["visitors","document","objects","Components","$visitor"]),Em.refract=Wf(["visitors","document","objects","Contact","$visitor"]),jm.refract=Wf(["visitors","document","objects","Example","$visitor"]),xm.refract=Wf(["visitors","document","objects","Discriminator","$visitor"]),wm.refract=Wf(["visitors","document","objects","Encoding","$visitor"]),Sm.refract=Wf(["visitors","document","objects","ExternalDocumentation","$visitor"]),Om.refract=Wf(["visitors","document","objects","Header","$visitor"]),Pm.refract=Wf(["visitors","document","objects","Info","$visitor"]),$m.refract=Wf(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Fm.refract=Wf(["visitors","document","objects","License","$visitor"]),km.refract=Wf(["visitors","document","objects","Link","$visitor"]),Rm.refract=Wf(["visitors","document","objects","MediaType","$visitor"]),Im.refract=Wf(["visitors","document","objects","OAuthFlow","$visitor"]),Mm.refract=Wf(["visitors","document","objects","OAuthFlows","$visitor"]),Tm.refract=Wf(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Nm.refract=Wf(["visitors","document","objects","OpenApi","$visitor"]),qm.refract=Wf(["visitors","document","objects","Operation","$visitor"]),Lm.refract=Wf(["visitors","document","objects","Parameter","$visitor"]),Dm.refract=Wf(["visitors","document","objects","PathItem","$visitor"]),Bm.refract=Wf(["visitors","document","objects","Paths","$visitor"]),Um.refract=Wf(["visitors","document","objects","Reference","$visitor"]),zm.refract=Wf(["visitors","document","objects","RequestBody","$visitor"]),Gm.refract=Wf(["visitors","document","objects","Response","$visitor"]),Jm.refract=Wf(["visitors","document","objects","Responses","$visitor"]),Hm.refract=Wf(["visitors","document","objects","Schema","$visitor"]),Km.refract=Wf(["visitors","document","objects","SecurityRequirement","$visitor"]),Zm.refract=Wf(["visitors","document","objects","SecurityScheme","$visitor"]),Xm.refract=Wf(["visitors","document","objects","Server","$visitor"]),Ym.refract=Wf(["visitors","document","objects","ServerVariable","$visitor"]),Qm.refract=Wf(["visitors","document","objects","Tag","$visitor"]),eh.refract=Wf(["visitors","document","objects","XML","$visitor"]);const Hf=class extends us{};const Kf=class extends Hf{};const Zf=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Kf('"filterByFormat" method is not implemented.')}findBy(){throw new Kf('"findBy" method is not implemented.')}latest(){throw new Kf('"latest" method is not implemented.')}};class Xf extends Zf{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return pt(this.filterByFormat(e))}}const Yf=new Xf("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Qf=new Xf(...Yf.filterByFormat("generic"),...Yf.filterByFormat("json")),e_=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/,t_=async e=>e_.test(e)&&await(async e=>{if(!cr.test(e))return!1;try{return"ERROR"!==(await ds(e)).rootNode.type}catch{return!1}})(e),s_=async(e,t={})=>{const s=gt({},"refractorOpts",t),n=ft(["refractorOpts"],t),r=await(async(e,{sourceMap:t=!1,syntacticAnalysis:s="direct"}={})=>{const n=await ds(e);let r;return r="indirect"===s?ar(n,{sourceMap:t}):wn(n,{sourceMap:t}),r})(e,n),{result:i}=r;if(kt(i)){const e=Nm.refract(i,s);e.classes.push("result"),r.replaceResult(e)}return r},n_=ts(zf)})(),n})()));